diff --git a/src/tools/docbook/libxml2/AUTHORS b/src/tools/docbook/libxml2/AUTHORS deleted file mode 100644 index cf2e9a6fad..0000000000 --- a/src/tools/docbook/libxml2/AUTHORS +++ /dev/null @@ -1,5 +0,0 @@ -Daniel Veillard -Bjorn Reese -William Brack -Igor Zlatkovic for the Windows port -Aleksey Sanin diff --git a/src/tools/docbook/libxml2/ChangeLog b/src/tools/docbook/libxml2/ChangeLog deleted file mode 100644 index f6b31ef0fa..0000000000 --- a/src/tools/docbook/libxml2/ChangeLog +++ /dev/null @@ -1,17734 +0,0 @@ -Tue Jun 6 17:50:43 CEST 2006 Daniel Veillard - - * configure.ini NEWS doc//* libxml.spec.in : preparing release of 2.6.26 - -Tue Jun 6 17:25:23 CEST 2006 Kasimier Buchcik - - * xpath.c: Fixed self-invented a segfault in xmlXPathCtxtCompile(), - when the expression was not valid and @comp was NULL and I - tried to do the d-o-s rewrite. - -Tue Jun 6 15:19:57 CEST 2006 Daniel Veillard - - * configure.ini NEWS doc//* libxml.spec.in : preparing release of 2.6.25 - -Tue Jun 6 11:28:15 CEST 2006 Kasimier Buchcik - - * xpath.c: Enabled the compound traversal again; I added a - check to use this only if the have an expression starting - with the document node; so in the case of "//foo", we - already know at compilation-time, that there will be only - 1 initial context node. Added the rewrite also to - xmlXPathEvalExpr(). - -Tue Jun 6 10:23:10 CEST 2006 Daniel Veillard - - * xinclude.c: fix bug #343968, include='text' can't lead to a - recursion. - -Fri Jun 2 22:47:08 CEST 2006 Kasimier Buchcik - - * xpath.c: Disabled the compound traversal for the release; - I need first to assure that this is done only if we have - 1 initial node. - -Wed May 31 13:53:41 PST 2006 Aleksey Sanin - - * xpath.c: fixed memory leak in xpath error reporting - -Wed May 31 15:30:16 CEST 2006 Daniel Veillard - - * libxml.h triodef.h: applied patch from Olli Savia for LynxOS - -Wed May 31 14:33:00 CEST 2006 Kasimier Buchcik - - * xpath.c include/libxml/xpath.h runsuite.c: - Changed the name of the recently added public function - xmlXPathContextSetObjectCache() to - xmlXPathContextSetCache(); so a more generic one, in - case we decide to cache more things than only XPath - objects. - -Tue May 30 21:36:16 CEST 2006 Kasimier Buchcik - - * xpath.c: Optimized xmlXPathNodeCollectAndTest() and - xmlXPathNodeCollectAndTestNth() to evaluate a compound - traversal of 2 axes when we have a "//foo" expression. - This is done with a rewrite of the XPath AST in - xmlXPathRewriteDOSExpression(); I added an additional field - to xmlXPathStepOp for this (but the field's name should be - changed). The mechanism: the embracing descendant-or-self - axis traversal (also optimized to return only nodes which - can hold elements), will produce context nodes for the - inner traversal of the child axis. This way we avoid a full - node-collecting traversal of the descendant-or-self axis. - Some tests indicate that this can reduce execution time of - "//foo" to 50%. Together with the XPath object cache this - all significantly speeds up libxslt. - -Tue May 30 11:38:47 CEST 2006 Kasimier Buchcik - - * xmlschemas.c: A warning will now be reported in the value of - the XSD attribute 'schemaLocation' does not consist of tuples - (namespace-name, document-URI). A warning will be reported - if a schema document could not be found at the specified - location (via 'schemaLocation' or - 'noNamespaceSchemaLocation'). - * include/libxml/xmlerror.h: Added XML_SCHEMAV_MISC to - xmlParserErrors. - -Tue May 30 11:21:34 CEST 2006 Kasimier Buchcik - - * xpath.c: Enhanced xmlXPathNodeCollectAndTest() to avoid - recreation (if possible) of the node-set which is used to - collect the nodes in the current axis for the currect context - node. Especially for "//foo" this will decrease dramatically - the number of created node-sets, since for each node in the - result node-set of the evaluation of descendant-or-self::node() - a new temporary node-set was created. Added node iterator - xmlXPathNextChildElement() as a tiny optimization for - child::foo. - -Mon May 29 18:06:17 CEST 2006 Kasimier Buchcik - - * xpath.c include/libxml/xpath.h: Added an XPath object cache. - It sits on an xmlXPathContext and need to be explicitely - activated (or deactivated again) with - xmlXPathContextSetObjectCache(). The cache consists of 5 - lists for node-set, string, number, boolean and misc XPath - objects. Internally the xpath.c module will use object- - deposition and -acquisition functions which will try to reuse - as many XPath objects as possible, and fallback to normal - free/create behaviour if no cache is available or if the cache - is full. - * runsuite.c: Adjusted to deactivate the cache for XML Schema - tests if a cache-creation is turned on by default for the whole - library, e.g. for testing purposes of the cache. It is - deactivated here in order to avoid confusion of the memory leak - detection in runsuite.c. - -Wed May 24 10:54:25 CEST 2006 Kasimier Buchcik - - * xpath.c: Removed a memcpy if xmlXPathNodeSetMerge(); it - seems we really need to walk the whole list, since those - nastly namespace nodes need to be added with - xmlXPathNodeSetDupNs(); thus a pure memcpy is not possible. - A flag on the node-set indicating if namespace nodes are in - the set would help here; this is the 3rd flag which would - be usefull with node-sets. The current flags I have in mind: - 1) Is a node-set already sorted? - This would allow for rebust and optimizable sorting - behaviour. - 2) Of what type are the nodes in the set (or of mixed type)? - This would allow for faster merging of node-sets. - 3) Are namespace nodes in the set? - This would allow to skipp all the namespace node specific - special handling. Faster node-set merging if the first - set is empty; just memcpy the set. - -Mon May 22 17:14:00 CEST 2006 Kasimier Buchcik - - * xpath.c: Optimization of count(): eliminated sorting - (see bug #165547). Optimization of XPATH_OP_FILTER if the - predicate is a [1] (disable with XP_OPTIMIZED_FILTER_FIRST if - it produces trouble). Tiny opt in xmlXPathNodeSetMerge(). - -Mon May 22 13:33:12 CEST 2006 Rob Richards - - * tree.c: Revert behavior change in xmlSetProp to handle attributes - with colons in name and no namespace. - -Fri May 19 21:56:43 CEST 2006 Kasimier Buchcik - - * xpath.c: Substituted all remaining calls to xmlXPathCmpNodes() - for xmlXPathCmpNodesExt(). Tiny further enhancement of - xmlXPathCmpNodesExt(). Added additional checks in various code - parts to avoid calling sorting or merging functions if the - node-set(s) don't need them; i.e., if they are empty or contain - just one node. - -Fri May 19 13:16:58 CEST 2006 Kasimier Buchcik - - * xpath.c: Optimized the comparison for non-element nodes - in xmlXPathCmpNodesExt(); the comparison is used for sorting - of node-sets. This enhancement is related to bug #165547. - There are other places where the old comparison function - xmlXPathCmpNodes() is still called, but I currently don't - know exactly what those calls are for; thus if they can be - substituted (if it makes sense) for the new function. - -Tue May 16 16:55:13 CEST 2006 Kasimier Buchcik - - * xpath.c: Applied patch from Rob Richards, fixing a potential - memory leak in xmlXPathTryStreamCompile(), when a list of - namespaces was assigned to the XPath compilation context; - here a new namespace list was created and passed to - xmlPatterncompile(); but this list was not freed afterwards. - Additionally we avoid now in xmlXPathTryStreamCompile() to - compile the expression, if it has a colon - indicating - prefixed name tests - and no namespace list was given. The - streaming XPath mechanism needs a namespace list at - compilation time (unlike normal XPath, where we can bind - namespace names to prefixes at execution time). - * pattern.c: Enhanced to use a string dict for local-names, - ns-prefixes and and namespace-names. - Fixed xmlStreamPushInternal() not to use string-pointer - comparison if a dict is available; this won't work, since - one does not know it the given strings originate from the - same dict - and they normally don't do, since e.g. - namespaces are hold on xmlNs->href. I think this would be - worth an investigation: if we can add a @doc field to xmlNs - and put the @href in to a additionan namespace dict hold - in xmlDoc. Daniel will surely not like this idea :-) But - evaluation of tons of elements/attributes in namespaces - with xmlStrEqual() isn't the way we should go forever. - -Thu May 11 18:03:49 CEST 2006 Kasimier Buchcik - - * xmlschemas.c: Fixed bug #341337, reported by David Grohmann. - The code expected a node (xmlNodePtr) on the info for a - non-existent default attribute, which clearly cannot be - expected, since the attribute does not exist. I can only - guess that this sneaked trying to eliminate the query - for the owner-element, which is unavoidable actually. - Note that creation of default attributes won't have an - effect if validating via SAX/XMLReader; i.e., the processor - won't fire additional start-attribute events (I'm not even - sure if Libxml2 has such a SAX-event; I think it hands them - all over in the start-element event). - -Tue May 9 21:47:58 CEST 2006 Kasimier Buchcik - - * xmlschemas.c: Fixed bug #341150, reported by Michael Romer. - In xmlSchemaBuildContentModelForSubstGroup(), - xmlAutomataNewOnceTrans2() was incorrectly used instead of - xmlAutomataNewTransition2() to mimic a xs:choice for - substitution-groups. - * test/schemas/subst-group-1_1.xsd - test/schemas/subst-group-1_0.xml - result/schemas/subst-group-1_0_1 - result/schemas/subst-group-1_0_1.err: Added regression test - supplied by Michael Romer for bug #341150. - -Sat May 6 11:05:24 HKT 2006 William M. Brack - - * relaxng.c: Fixed compilation error with patch supplied by - Graham Bennett. - -Thu May 4 19:14:03 CEST 2006 Kasimier Buchcik - - * xmlschemas.c: We'll raise an internal error and stop - validation now when an entity is found in the instance - document, since we don't support automatic entity - substitution by the schema processor (yet?) - - see bug #340316, reported by Nick Wellnhofer. - -Wed May 3 15:16:00 CEST 2006 Daniel Veillard - - * configure.in: applied another Python detection patch from Joseph Sacco - * libxml.spec.in: cleanup the changelog section, asciifies the spec file - too - -Tue May 2 22:34:54 CEST 2006 Daniel Veillard - - * xmlIO.c: fix a mix of code and declarations showing up on Windows - patch from Kjartan Maraas, fixing #340404 - -Tue May 2 14:24:40 CEST 2006 Daniel Veillard - - * encoding.c: fixing bug #340398 xmlCharEncOutFunc writing to - input buffer - -Fri Apr 28 18:29:22 CEST 2006 Daniel Veillard - - * NEWS configure.in doc//*: preparing 2.6.24 release, fixed Python - paths at the last moment - * relaxng.c testapi.c tree.c: fix some comments - -Thu Apr 27 10:15:45 CEST 2006 Daniel Veillard - - * xmlIO.c: applied patch from Roland Schwingel to allow UTF-8 - file paths on Windows - -Thu Apr 27 10:10:58 CEST 2006 Daniel Veillard - - * xmlwriter.c: patch from Jason Viers for line breaks after EndPI - -Tue Apr 25 22:22:58 CEST 2006 Daniel Veillard - - * tree.c: fix compilation without tree - -Tue Apr 25 18:17:37 CEST 2006 Daniel Veillard - - * xmllint.c: applied patch from Gary Coady to really make sure - xmllint --nonet would not reach the network, should fix #337483. - -Tue Apr 25 14:52:15 CEST 2006 Daniel Veillard - - * configure.in: applied patch from Joseph Sacco changing slightly - the python detection scheme should fix bug #338526 - -Mon Apr 24 10:50:19 CEST 2006 Daniel Veillard - - * parser.c: fix the error message for invalid code point in content - c.f. bug #339311 - -Wed Apr 19 13:16:23 CEST 2006 Kasimier Buchcik - - * xmlschemas.c test/schemas/restriction-enum-1* - result/schemas/restriction-enum-1*: Fixed incorrect - validation of restricted enumerations. Added related - regression tests. - -Thu Apr 13 09:47:25 CEST 2006 Daniel Veillard - - * xmlschemas.c: fixing a deallocation problem in xmlSchemaAddSchemaDoc() - in case of errors, should fix bug #338303 - -Thu Apr 13 09:31:45 CEST 2006 Daniel Veillard - - * relaxng.c: fixing a deallocation problem in xmlRelaxNGParse() - in case of errors, should fix bug #338306 - -Thu Apr 6 10:22:17 CEST 2006 Daniel Veillard - - * doc/xmlcatalog.1 doc/xmlcatalog_man.xml doc/xmllint.1 doc/xmllint.xml: - applied man page improvements from Daniel Leidert - -Mon Mar 27 11:44:07 CEST 2006 Daniel Veillard - - * xmlschemas.c: removed unused code or variables, from Stefan Kost - fixing #336163 and #336164 - -Mon Mar 27 11:38:21 CEST 2006 Daniel Veillard - - * xmlschemas.c: applied patch from Stefan Kost fixing #336160 - -Mon Mar 27 11:23:39 CEST 2006 Daniel Veillard - - * chvalid.c genChRanges.py genUnicode.py xmlunicode.c - include/libxml/chvalid.h include/libxml/xmlunicode.h: applied - patches from Aivars Kalvans to make unicode tables const, fixes - bug #336096, this also updates to Unicode 4.01 final with a couple - of character ranges fixes. - -Mon Mar 27 00:51:40 CEST 2006 Daniel Veillard - - * chvalid.c genChRanges.py include/libxml/chvalid.h: fixed bug - #335603 and resync'ed genChRanges.py to the expected output. - -Wed Mar 22 00:14:34 CET 2006 Daniel Veillard - - * xmlregexp.c: applied patch from Youri Golovanov fixing bug - #316338 and adding a couple of optimizations in the regexp - compilation engine. - * test/regexp/bug316338 result/regexp/bug316338: added regression - tests based on the examples provided in the bug report. - -Fri Mar 10 08:40:55 EST 2006 Daniel Veillard - - * c14n.c encoding.c xmlschemas.c xpath.c xpointer.c: fix a few - warning raised by gcc-4.1 and latests changes - -Fri Mar 10 01:34:42 CET 2006 Daniel Veillard - - * runtest.c schematron.c testAutomata.c tree.c valid.c xinclude.c - xmlcatalog.c xmlreader.c xmlregexp.c xpath.c: end of first - pass on coverity reports. - -Thu Mar 9 19:36:14 CET 2006 Daniel Veillard - - * relaxng.c xmlschemas.c xmlschemastypes.c: more cleanups based - on coverity reports. - -Thu Mar 9 17:47:40 CET 2006 Daniel Veillard - - * SAX2.c catalog.c encoding.c entities.c example/gjobread.c - python/libxml.c: more cleanups based on coverity reports. - -Thu Mar 9 15:12:19 CET 2006 Daniel Veillard - - * HTMLparser.c parser.c parserInternals.c pattern.c uri.c: a bunch - of small cleanups based on coverity reports. - -Thu Mar 9 09:42:10 CET 2006 Daniel Veillard - - * win32/Makefile.bcb: added schematron as pointed out by Eric Zurcher - -Tue Mar 7 09:50:09 CET 2006 Daniel Veillard - - * xml2-config.in: fix Red Hat bug #184170 - -Mon Mar 6 14:21:08 CET 2006 Kasimier Buchcik - - * tree.c: Simplified usage of the internal xmlNsMap. Added a - "strict" lookup for namespaces based on a prefix. Fixed a - namespace processing issue in the clone-node function, which - occured if a @ctxt argument was given. - -Fri Mar 3 17:44:10 CET 2006 Rob Richards - - * valid.c: fix HTML attribute ID checking for input element. - Maintain current attribute "name" behavior for now. - -Thu Mar 2 18:59:50 CET 2006 Kasimier Buchcik - - * tree.c: Bundled lookup of attr-nodes and retrieving their - values into the functions xmlGetPropNodeInternal() and - xmlGetPropNodeValueInternal(). Changed relevant code - to use those functions. - -Mon Feb 27 20:42:04 CET 2006 Daniel Veillard - - * xpath.c: workaround HP-UX compiler bug by Rick Jones - -Mon Feb 27 10:57:05 CET 2006 Daniel Veillard - - * python/libxml2.py: remove a tab, as pointed out on IRC - -Sat Feb 25 18:12:10 CET 2006 Rob Richards - - * tree.c: Fix the add sibling functions when passing attributes. - Modify testing for ID in xmlSetProp. - No longer remove IDness when unlinking or replacing an attribute. - -Fri Feb 24 21:20:33 CET 2006 Daniel Veillard - - * catalog.c: Martin Cole pointed out a bug in xmlCatalogAdd() - if /etc/xml/catalog doesn't exist. - -Thu Feb 23 23:06:18 CET 2006 Daniel Veillard - - * doc//*: updated the Ruby bindings links, and regenerated the - docs. - -Thu Feb 23 09:12:27 CET 2006 Daniel Veillard - - * catalog.c: improve catalog debugging message patch from Rick Jones - -Wed Feb 22 16:09:10 CET 2006 Daniel Veillard - - * python/types.c: Nic Ferrier found debug statement left in the - XPath conversion code - -Tue Feb 21 20:23:14 CET 2006 Daniel Veillard - - * doc/xmllint.1 doc/xmllint.xml: small man page improvements from - Daniel Leidert - -Mon Feb 20 15:45:19 CET 2006 Kasimier Buchcik - - * xmlschemas.c: Fixed a side-effect of the previous XSI bugfix: - The constructor needs a bucket to be assigned during component - fixup. - -Mon Feb 20 14:32:36 CET 2006 Kasimier Buchcik - - * xmlschemas.c xmlschemastypes.c: Fixed xs:boolean to reject - the empty string (reported by Bas Driessen on the mailing-list). - Fixed schema XSI-acquisition and construction: the schemata - (xmlSchema) didn't get the targetNamespace in some cases, thus - the component resolution mechanism failed to work. The XSI - stuff needs to be tested more intensively; think about how - to test this for regression. - -Mon Feb 20 09:57:41 CET 2006 Daniel Veillard - - * doc/xmllint.1 doc/xmllint.xml: more man page improvements from - Daniel Leidert - -Sun Feb 19 22:31:33 CET 2006 Daniel Veillard - - * doc/xmllint.1 doc/xmllint.xml: man page improvements from Daniel - Leidert, c.f. #331290 - -Sun Feb 19 17:54:04 CET 2006 Daniel Veillard - - * xmllint.c: fix an error report when using --path and --valid - closes bug #331290 - -Sun Feb 19 16:20:43 CET 2006 Daniel Veillard - - * relaxng.c: trying to fix #331062, this is again a problem - around interleave, there is no good fix unless reimplementing - but this works around some cases and allow to validate in that - case. - -Wed Feb 15 11:55:22 CET 2006 Kasimier Buchcik - - * tree.c: Fixed bug #328896 reported by Liron. The path - for text- and CDATA-section-nodes was computed incorrectly - in xmlGetNodePath(). - -Sun Feb 12 20:12:22 CET 2006 Daniel Veillard - - * xmlregexp.c: bug fixes for #327167 as well as some cleanups - and more thorough tests on atoms comparisons. - -Thu Feb 9 10:07:20 CET 2006 Daniel Veillard - - * include/wsockcompat.h: patch from Eric Zurcher to compile with - Borland C++ 6 - -Sun Feb 5 04:03:59 CET 2006 Daniel Veillard - - * parser.c: bill pointed out a missing block in xmlParseComment - trying to fill with a normal processing of the given character. - -Sun Feb 5 03:41:39 CET 2006 Daniel Veillard - - * parser.c: fixed the comment streaming bug raised by Graham Bennett - * test/badcomment.xml result//badcomment.xml*: added to the regression - suite. - -Fri Feb 3 17:36:41 CET 2006 Kasimier Buchcik - - * include/libxml/tree.h: Added the xmlDOMWrapCloneNode() to - the header file. - -Fri Feb 3 17:29:22 CET 2006 Kasimier Buchcik - - * tree.c: Added an initial version of xmlDOMWrapCloneNode() to - the API. It will be used to reflect DOM's Node.cloneNode and - Document.importNode methods. - The pros: 1) non-recursive, 2) optimized ns-lookup - (mostly pointer comparison), 3) user defined ns-lookup, - 4) save ns-processing. The function is in an unfinished - and experimental state and should be only used to test it. - -Fri Feb 3 10:42:48 CET 2006 Daniel Veillard - - * uri.c: applied patch from Rob Richards fixing the URI regressions - tests on Windows which seems to indicate bad escaping. - -Thu Feb 2 13:11:26 CET 2006 Kasimier Buchcik - - * tree.c: Fixed some bugs xmlDOMWrapReconcileNamespaces() wrt - the previous addition of the removal of redundant ns-decls. - -Wed Feb 1 17:32:25 CET 2006 Kasimier Buchcik - - * tree.c: Enhanced xmlDOMWrapReconcileNamespaces() to remove - redundant ns-decls if the option XML_DOM_RECONNS_REMOVEREDUND - was given. Note that I haven't moved this option to the - header file yet; so just call this function with an @option - of 1 to test the behaviour. - -Wed Feb 1 12:21:08 CET 2006 Kasimier Buchcik - - * tapi.c win32/Makefile.*: Added changed as proposed on - the mailing list by venkat naidu in order to compile - testapi.c on windows. - -Thu Jan 19 09:57:28 CET 2006 Daniel Veillard - - * configure.in xml2-config.in: trying to fix windows/configure - issues reported by Tim Van Holder - -Wed Jan 18 18:21:15 CET 2006 Daniel Veillard - - * HTMLparser.c libxml.h parser.c: try to fix xmlParseInNodeContext - when operating on an HTML document. - -Mon Jan 9 17:27:15 CET 2006 Kasimier Buchcik - - * relaxng.c include/libxml/relaxng.h: Added - xmlRelaxNGSetParserStructuredErrors() to the API. - -Mon Jan 9 15:33:16 CET 2006 Daniel Veillard - - * parser.c: reverted first patches for #319279 which led to #326295 - and fixed the problem in xmlParseChunk() instead - * test/ent11 result//ent11*: added test for #326295 to the regression - suite - -Thu Jan 5 16:25:06 CET 2006 Daniel Veillard - - * NEWS configure.in libxml.spec.in testapi.c doc/*: upated the news - regenerated the docs, preparing for release of 2.6.23 - * pattern.c xmlschemas.c: fixed some comments - -Thu Jan 5 15:48:27 CET 2006 Kasimier Buchcik - - * test/XPath/docs/nodes test/XPath/tests/nodespat - result/XPath/tests/nodespat: Added regression tests for - the latest XPath/pattern fixes. - -Thu Jan 5 15:43:38 CET 2006 Kasimier Buchcik - - * pattern.c: Another fix to handle "foo//.": "foo" was not - included in the resulting node-set. - -Thu Jan 5 13:22:29 CET 2006 Kasimier Buchcik - - * pattern.c xpath.c include/libxml/pattern.h: - Fixed bug #322928, reported by Erich Schubert: The bug was - in pattern.c, which is used for a tiny subset of xpath - expression which can be evaluated in an optimized way. - The doc-node was never considered when evaluating "//" - expressions. Additionally, we fixed resolution - to nodes of any type in pattern.c; i.e. a "//." didn't work - yet, as it did select only element-nodes. Due to this - issue the pushing of nodes in xpath.c needed to be adjusted - as well. - -Wed Jan 4 18:07:47 CET 2006 Daniel Veillard - - * parser.c: tiny refactoring patch from Bjorn Reese - -Wed Jan 4 15:00:51 CET 2006 Daniel Veillard - - * SAX2.c: fix bug #324432 with - * test/ns7 resul//ns7*: added to the regression tests - -Wed Jan 4 10:53:56 CET 2006 Daniel Veillard - - * include/wsockcompat.h: applied patch from Mark Junker, fixing a - MinGW compilation problem, should close bug #324943 - -Tue Jan 3 11:49:54 CET 2006 Kasimier Buchcik - - * xmlschemas.c: Removed last dependency on the obsolete enum - xmlSchemaValidError. - -Mon Jan 2 11:20:00 CET 2006 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h xmlschemas.c: compilation - and doc build fixes from Michael Day - -Wed Dec 28 22:12:34 CET 2005 Daniel Veillard - - * xmlregexp.c: bug in xmlRegExecPushString2() pointed out by - Sreeni Nair. - -Tue Dec 20 16:55:31 CET 2005 Rob Richards - - * tree.c: fix bug #322136 in xmlNodeBufGetContent when entity ref is - a child of an element (fix by Oleksandr Kononenko). - * HTMLtree.c include/libxml/HTMLtree.h: Add htmlDocDumpMemoryFormat. - -Tue Dec 20 11:43:06 CET 2005 Kasimier Buchcik - - * xmlschemas.c xmlstring.c: Fixed a segfault during - text concatenation when validating a node tree: - xmlStrncat was called with a @len of -1; but unlike - xmlStrncatNew, it does not calculate the length - automatically in such a case (reported by Judy Hay - on the mailing list). - Updated the descriptions of the involved string - functions to note this. - -Thu Dec 15 12:11:07 CET 2005 Daniel Veillard - - * nanohttp.c: applied patch from Gary Coady to accept gzipped - http resources. - -Wed Dec 14 18:41:26 CET 2005 Kasimier Buchcik - - * win32/configure.js: Added enable/disable of runtime - debugging (LIBXML_DEBUG_RUNTIME). - -Wed Dec 14 18:11:50 CET 2005 Kasimier Buchcik - - * include/libxml/xmlversion.h.in: Fixed to define - LIBXML_DEBUG_RUNTIME on the basis of @WITH_RUN_DEBUG@. - -Tue Dec 13 12:49:23 CET 2005 Kasimier Buchcik - - * test/schemas/bug321475* result/schemas/bug321475*: - Added regression test for bug #321475 (reported by - Gabor Nagy). Fixing of bug #323510 seemed to have - fixed this bug as well. - -Mon Dec 12 16:19:16 CET 2005 Kasimier Buchcik - - * test/schemas/bug323510* result/schemas/bug323510*: - Added regression test for bug #323510. - -Mon Dec 12 16:11:13 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Workaround for bug #323510 (reported by - Jonathan Filiatrault): substituted the epsilon transition - for a labelled transition, in order to avoid a bug in - xmlregexp.c which eliminated the epsilon transition and - marked the initial state as final. - -Mon Dec 12 14:25:46 CET 2005 Daniel Veillard - - * xmlreader.c: Gary Coady pointed a memory leak in - xmlTextReaderReadInnerXml() applied patch fixing #323864 - -Sat Dec 10 12:08:28 CET 2005 Daniel Veillard - - * HTMLparser.c configure.in parserInternals.c runsuite.c runtest.c - testapi.c xmlschemas.c xmlschemastypes.c xmlstring.c: fixed a number - of warnings shown by HP-UX compiler and reported by Rick Jones - -Fri Dec 9 18:57:31 CET 2005 Rob Richards - - * xmlwriter.c: Insert space between pubid and sysid when both - passed to xmlTextWriterStartDTD and indenting not being used. - Remove no longer used Mem callbacks. - -Fri Dec 9 11:01:16 CET 2005 Kasimier Buchcik - - * runsuite.c: Changed to instantly mark instance-tests as - failed if the corresponding schema was invalid. This - reflects the side of the Python code for the XML Schema test - suite. We now get the same number of failed tests on both - sides. - -Wed Dec 7 14:59:01 CET 2005 Kasimier Buchcik - - * xmlreader.c include/libxml/xmlreader.h: Added - xmlTextReaderSchemaValidateCtxt() to the API. - -Wed Dec 7 12:59:56 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed a segfault: the instance document was - still tried to be validated, if the schema, dynamically - acquired using XSI was invalid, thus mangled. The - validation will stop (or rather won't validate) now in - such a case. The schema parser error code will be set - on the validion context now; this is somehow not nice, - but it assures that the validation context indicates an - error in there was a parser error. - -Tue Dec 6 18:57:23 CET 2005 Daniel Veillard - - * xmlreader.c: small doc patch from Aron Stansvik - * legacy.c: another doc patch for a deprecated API - -Mon Dec 5 16:23:49 CET 2005 Kasimier Buchcik - - * Makefile.am: Tiny change for 'make tests': raised - the number of expected failures for James Clark's - XML Schema datatype tests from 10 to 11. The additional - reported error was agreed to be correct long time ago, - but we missed to adjust the message reported by - the testing script. - -Fri Dec 2 13:51:14 CET 2005 Kasimier Buchcik - - * result/schemas/decimal* result/schemas/bug322411*: - Added missing regression test results for the latest IDC - and xs:decimal bugs. - -Wed Nov 30 12:22:23 CET 2005 Kasimier Buchcik - - * test/schemas/decimal* test/schemas/bug322411*: Added - regression tests for the latest IDC and xs:decimal bugs. - -Wed Nov 30 11:57:35 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed bubbling of duplicate IDC nodes: the - parent's list of duplicates was filled with NULLs instead - of the nodes under certain conditions. This lead to a - segfault when the list's entries were accessed. - -Mon Nov 28 17:28:53 CET 2005 Kasimier Buchcik - - * xmlschemastypes.c: Fixed parsing of xs:decimal to - allow/deny special lexical forms. Fixed the totalDigits - for values in the range (x < 1) && (x > -1) && (x != 0); - E.g "0.123" has now a totalDigits of 3 (was 4 previously). - Adjusted the comparison function for decimals due to this - change. As a side effect comparison against zeroes was - optimized. - -Mon Nov 28 13:25:11 CET 2005 Kasimier Buchcik - - * xmlschemas.c: An assignment to a local variable, which was - used to access the IDC node list, was missing after the - reallocation of the list (reported by Fabrice GUY - bug #322411). Renamed the define ENABLE_IDC_NODE_TABLES - to ENABLE_IDC_NODE_TABLES_TEST and *disabled* it, since - it is used to force bubbling of IDC node tables even - if not necessary; this was intended to be used for test - purposes, but I obviously missed to disable it (although - it apparently helped finding the bug). - -Wed Nov 23 17:34:52 CET 2005 Kasimier Buchcik - - * xmlschemas.c: In xmlSchemaAssembleByXSI() the return value - of xmlSchemaGetMetaAttrInfo() was not assigned to anything; - this caused XSI-driven-dynamic schema acquisition to fail - with @noNamespaceSchemaLocation (reported by Julien Lamy - on the mailing list). - -Tue Nov 22 18:31:34 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed a bug in xmlSchemaFindRedefCompInGraph() - which caused the search for components to stop at the - first encountered attribute group component. - Fixed error report in xmlSchemaCheckSRCRedefineFirst(): the - designation of a not-found component was not reported. - -Mon Nov 21 12:23:28 CET 2005 Daniel Veillard - - * xmlschemastypes.c: Albert Chin found another signed/unsigned problem - in the date and time code raised on IRIX 6.5 - -Fri Nov 18 18:13:38 CET 2005 Kasimier Buchcik - - * xmlschemas.c include/libxml/xmlschemas.h: - Added xmlSchemaSetParserStructuredErrors() to the API. - Fixed channeling of error relevant information to - subsequent parser/validation contexts. - -Thu Nov 17 14:11:43 CET 2005 Daniel Veillard - - * parserInternals.c: removed unreachable code pointed out by - Oleksandr Kononenko, fixes bug #321695 - -Thu Nov 17 08:24:31 CET 2005 Daniel Veillard - - * parser.c: use ctxt->standalone = -2 to indicate that the - XMLDecl was parsed but no standalone attribute was found, - suggested by Michael Day to detect if an XMLDecl was found. - -Tue Nov 15 09:49:24 CET 2005 Daniel Veillard - - * runtest.c: Hisashi Fujinaka pointed that errors in Schemas tests - were not properly reported. - -Sun Nov 13 13:42:41 CET 2005 Daniel Veillard - - * xmlIO.c: applied patch from Geert Jansen to remove xmlBufferClose() - which is not needed. - -Fri Nov 11 13:48:52 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Changed xmlSchemaFormatIDCKeySequence() - to use xmlSchemaGetCanonValueWhtspExt() in order to - correctly report values for xs:anySimpleType. - * test/schemas/idc-keyref-err1* - result/schemas/idc-keyref-err1*: Added a test for this change. - -Wed Nov 9 13:07:24 EST 2005 Rob Richards - - * xmlIO.c xmlwriter.c: function consolidation when writing to xmlBuffer. - Return error condition not len if xmlwriter fails writing to buffer. - -Wed Nov 9 09:54:54 CET 2005 Daniel Veillard - - * xmlsave.c xmlIO.c include/libxml/xmlIO.h include/libxml/xmlsave.h: - applied patch from Geert Jansen to implement the save function to - a xmlBuffer, and a bit of cleanup. - -Mon Nov 7 14:58:39 CET 2005 Kasimier Buchcik - - * xmlschemas.c xmlschemastypes.c: Fixed the type of the - totalDigits value to be positiveInteger. - Fixed crash in an error report function when we gave it - the document node; only element and attribute nodes are - processed now (reported by Rob Richards). - -Tue Nov 1 16:22:29 CET 2005 Daniel Veillard - - * xmlregexp.c: fix bug #319897, problem with counted atoms - when the transition itself is counted too - * result/regexp/hard test/regexp/hard: augmented the regression - tests with the problem exposed. - -Tue Nov 1 11:54:39 CET 2005 Daniel Veillard - - * win32/Makefile.mingw include/win32config.h: applied patch from - Mark Junker to fix compilation with MinGW - -Fri Oct 28 18:36:08 CEST 2005 Daniel Veillard - - * libxml.3: tiny fix from Albert Chin - * runsuite.c runtest.c testapi.c: portability cleanup for arch - needing trio for *printf - -Fri Oct 28 12:21:39 EDT 2005 Rob Richards - - * tree.c: add additional checks to prevent tree corruption. fix problem - copying attribute using xmlDocCopyNode from one document to another. - -Fri Oct 28 17:58:13 CEST 2005 Daniel Veillard - - * config.h.in configure.in vms/config.vms macos/src/config-mac.h: - cleanup from Albert Chin - * doc/Makefile.am: html/index.sgml doesn't exist anymore - -Fri Oct 28 16:53:51 CEST 2005 Daniel Veillard - - * xmlIO.c xmlmodule.c: more portability patches from Albert Chin for - HP-UX and AIX - -Fri Oct 28 10:36:10 CEST 2005 Daniel Veillard - - * xmlmodule.c configure.in: applied 2 patches from Albert Chin for - module portability - -Fri Oct 28 10:24:39 CEST 2005 Daniel Veillard - - * error.c: fixing a portability problem on some old Unices with - patch from Albert Chin - -2005-10-27 Aleksey Sanin - - * c14n.c result/c14n/exc-without-comments/test-2 - test/c14n/exc-without-comments/test-2.xml - test/c14n/exc-without-comments/test-2.xpath: fixing - bug in exc-c14n namespace visibility + test case (bug #319367) - -Thu Oct 27 16:10:31 CEST 2005 Daniel Veillard - - * python/libxml.py: remove warnings to stdout patch from Nic Ferrier - -Thu Oct 27 13:54:52 CEST 2005 Daniel Veillard - - * valid.c xmlregexp.c include/libxml/valid.h - include/libxml/xmlregexp.h: avoid function parameters names 'list' - as this seems to give troubles with VC6 and stl as reported by - Samuel Diaz Garcia. - -Wed Oct 26 10:59:21 CEST 2005 Daniel Veillard - - * parserInternals.c: fix a problem in some error case on Solaris - when passed a NULL filename, pointed by Albert Chin. - -Tue Oct 25 14:34:58 CEST 2005 Daniel Veillard - - * HTMLparser.c: script HTML parser error fix, corrects bug #319715 - * result/HTML/53867* test/HTML/53867.html: added test from Michael Day - to the regression suite - -Tue Oct 25 14:21:11 CEST 2005 Daniel Veillard - - * HTMLparser.c: typo fix from Michael Day - -Mon Oct 24 20:16:23 EDT 2005 Rob Richards - - * tree.c: fix issue adding non-namespaced attributes in xmlAddChild(), - xmlAddNextSibling() and xmlAddPrevSibling() (bug #319108) - part 1. - -Sat Oct 22 10:00:41 HKT 2005 William Brack - - * parser.c: fixed second spot where CRLF split between chunks - could cause trouble (bug #319279) - * gentest.py, testapi.c: fixed two problems involved with - --with-minimum compilation (compilation errors with schematron - and formal expressions tests) - -Fri Oct 21 10:50:14 EDT 2005 Rob Richards - - * xmlsave.c: prevent output of fragment tags when serializing XHTML. - -Wed Oct 19 16:53:47 BST 2005 Daniel Veillard - - * xmlregexp.c: commiting a some fixes and debug done yesterday in - the London airport. - -Thu Oct 20 12:54:23 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Removed creation of a temporary parser context - during validation when processing xsi:type; this previously - added a string to the dict of the schema - to assure thread - safety, we don't want to modify a given schema during - validation. - -Thu Oct 20 17:05:29 HKT 2005 William Brack - - * xmlwriter.c: fixed problem in xmlTextWriterVSprintf caused by - misuse of vsnprintf - * configure.in, config.h.in: added a configuration check for - va_copy and added a define for VA_COPY for xmlwriter.c fix - * parser.c: fixed problem with CRLF split between chunks (bug - #319279) (fix provided by Brion Vibber) - -Wed Oct 19 18:49:52 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed a potential memory leak in - xmlSchemaCheckCSelectorXPath() when an internal error occurs. - Fixed setting of ctxt->err to the given error code in - the parsing error functions. - * pattern.c: Added internal xmlCompileIDCXPathPath() as a - starting point for IDC XPath compilation; this and some other - tiny changes fixes issues regarding whitespace in the - expressions and IDC selector/field relevant restrictions of - the subset of XPath. Fixed a missing blocking of attributes - in xmlStreamPushInternal(). - -Mon Oct 17 15:06:05 EDT 2005 Daniel Veillard - - * runtest.c: removed the error message - * relaxng.c xmlschemas.c: removed 2 instability warnings from function - documentation - * include/libxml/schemasInternals.h: changed warning about API stability - * xmlregexp.c: trying to improve runtime execution of non-deterministic - regexps and automata. Not fully finished but should be way better. - -Mon Oct 17 16:12:02 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed a memory leak in - xmlSchemaContentModelDump(). Added output of local types - in xmlSchemaElementDump(). Tiny cosmetical changes to the - dump output. - -Mon Oct 17 14:29:08 CEST 2005 Kasimier Buchcik - - * tree.c pattern.c: Silenced intel compiler warnings (reported - by Kjartan Maraas, bug #318517). - * xmlschemas.c: The above changes in pattern.c revealed an - inconsistency wrt IDCs: we now _only_ pop XPath states, if - we really pushed them beforehand; this was previously not - checked for the case when we discover an element node to be - invalid wrt the content model. - Fixed segfault in xmlSchemaGetEffectiveValueConstraint(). - -Fri Oct 14 16:40:18 CEST 2005 Kasimier Buchcik - - * result/schemas/*.err: Adapted regression test results. - -Fri Oct 14 16:21:22 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed some identity-constraint issues: - Restructured IDC node-tables - Allowed IDCs to resolve also to nodes of complex type with - simple content. - Added check for keyrefs with references to keyrefs. - IDC target-nodes were interferring with IDC node-tables, - since they used one list of entries only. I separated this - one big list into 3 lists: 1 for IDC node-table entries, - 1 for _duplicates_ of IDC node-table entries and 1 for - IDC target-nodes. More code, but cleaner and it works at last. - Keyrefs will fail to resolve to duplicate key/unique entries. - I thought this was already working this way, but it didn't. - The wording of the definition for [node table] in the spec - can lead to a scenario, where keyrefs resolve perfectly, even - if the relevant key-sequences of the referenced key/unique have - duplicates in the subtree. Currently only Saxon 8.5.1 is - dissallowing resolution to duplicate entries correctly - we - will follow Saxon here. - Removed some intel compiler warnings (reported by - Kjartan Maraas, bug #318517). - * pattern.c: Fixed an IDC-XPath problem when resolving to - attributes. - -Mon Oct 14 01:15:14 CEST 2005 Rob Richards - * nanohttp.c include/wsockcompat.h: applied patch from Kolja Nowak - to use getaddrinfo() if supported in Windows build (bug# 317431). - -Mon Oct 10 15:33:48 CEST 2005 Kasimier Buchcik - - * result/schemas/*: Adapted regression test results. - -Mon Oct 10 15:12:43 CEST 2005 Kasimier Buchcik - - * xmlschemas.c include/libxml/schemasInternals.h - include/libxml/xmlerror.h: Initial implementation for - redefinitions; this still misses checks for restrictions - of the content model of complex types. - Fixed default/fixed values for attributes (looks like they - did not work in the last releases). - Completed constraints for attribute uses. - Seperated attribute derivation from attribute constraints. - Completed constraints for attribute group definitions. - Disallowing s of schemas in no target namespace if the - importing schema is a chameleon schema. This contradicts - the way Saxon, Xerces-J, XSV and IBM's SQC works, but the - W3C XML Schema WG, thinks it is correct to dissalow such - imports. - Added cos-all-limited constraints. - Restructured reference resolution to model groups and element - declarations. - Misc cleanup. - -Fri Oct 7 04:34:12 CEST 2005 Rob Richards - - * schematron.c xmlregexp.c: remove warnings under Windows. - -Wed Sep 28 23:42:14 CEST 2005 Daniel Veillard - - * parser.c: applied patch from Massimo Morara fixing bug #317447 - about risk of invalid write in xmlStringLenDecodeEntities - -Tue Sep 27 11:20:57 CEST 2005 Daniel Veillard - - * error.c: Adrian Mouat pointed out redundancies in xmlReportError() - -Mon Sep 26 19:18:24 CEST 2005 Daniel Veillard - - * xmlregexp.c: seems a test to avoid duplicate transition is - really needed at all times. Luka Por gave an example hitting - this. Changed back the internal API. - -Thu Sep 22 13:14:07 CEST 2005 Daniel Veillard - - * xmlreader.c: fixing leak in xmlTextReaderReadString() #316924 - -Thu Sep 15 16:12:44 CEST 2005 Daniel Veillard - - * uri.c: more fixes to the behaviour of xmlBuildRelativeURI - -Thu Sep 15 15:08:21 CEST 2005 Daniel Veillard - - * xmlregexp.c: detect combinatory explosion and return with - a runtime error in those case, c.f. #316338 though maybe we - should not see such an explosion with that specific regexp, - more checking needs to be done. - -Wed Sep 14 19:52:18 CEST 2005 Kasimier Buchcik - - * include/libxml/schemasInternals.h: Added some comments for the - struct fields. - -Wed Sep 14 13:24:27 HKT 2005 William Brack - - * uri.c: fixed problem when xmlBuildRelativeURI was given a - blank path (bug 316224) - -Mon Sep 12 23:41:40 CEST 2005 Daniel Veillard - - * NEWS configure.in doc//*: release of 2.6.22 updated doc and - rebuild. - * xmlsave.c include/libxml/xmlsave.h: added XML_SAVE_NO_XHTML - xmlSaveOption - * xmlschemas.c: minor cleanups - -Mon Sep 12 21:42:47 CEST 2005 Kasimier Buchcik - - * test/schemas/import1_0.xsd: And adapting another one. - -Mon Sep 12 21:29:35 CEST 2005 Kasimier Buchcik - - * result/schemas/derivation-ok-extension_0_0: Adapted result. - -Mon Sep 12 21:20:41 CEST 2005 Kasimier Buchcik - - * result/schemas/allsg_0_3.err result/schemas/allsg_0_4.err - result/schemas/changelog093_1_0.err - result/schemas/derivation-ok-extension_0_0.err - result/schemas/import1_0_0.err - result/schemas/derivation-ok-restriction-2-1-1_0_0.err: - Adapted regression results. - -Mon Sep 12 21:00:53 CEST 2005 Kasimier Buchcik - - * xmlschemas.c include/libxml/schemasInternals.h - include/libxml/xmlerror.h: Completion of the schema graph. - Centralisation, more robustness of the schema document - aquisition story. Centralised and restructured component fixup. - Fixed attribute derivation when 'prohibiting' attribute uses. - Added warnings: when schema documents cannot be localized - during imports; when we get duplicate and pointless attribute - prohibitions. Changed error reports for IDCs to report - the relevant IDC designation as well (requested by GUY Fabrice). - Misc code-cleanup. - -Mon Sep 12 16:02:12 CEST 2005 Daniel Veillard - - * xmlsave.c: applied second patch from David Madore to be less intrusive - when handling scripts and style elements in XHTML1 should fix #316041 - * test/xhtml1 result//xhtml1\*: updated the test accordingly - -Mon Sep 12 15:09:09 CEST 2005 Daniel Veillard - - * libxml.spec.in doc/devhelp/*: finished the integration with - devhelp, completing the index and inserted into the gtk-doc - database at "make install" stage - -Mon Sep 12 14:14:12 CEST 2005 Rob Richards - - * include/libxml/xmlsave.h xmlsave.c: add XML_SAVE_NO_EMPTY save option - and use option from xmlSaveCtxtPtr rather than global during output. - * xmlsave.c: fix some output formatting for meta element under XHTML. - -Mon Sep 12 11:12:03 CEST 2005 Daniel Veillard - - * include/libxml/parser.h parser.c xmllint.c: damn XML_FEATURE_UNICODE - clashes with Expat headers rename to XML_WITH_ to fix bug #316053. - * doc/Makefile.am: build devhelp before the examples. - * doc/*: regenerated the API - -Mon Sep 12 02:03:12 CEST 2005 Daniel Veillard - - * xmlsave.c: fix bug #316034, where xmlElemDump() can crash if - given a document pointer instead of an element - -Mon Sep 12 01:26:16 CEST 2005 Daniel Veillard - - * doc/devhelp/devhelp.xsl: improvements on the html generation, - should be complete with navigation, what is left done is glueing - -Mon Sep 12 00:03:27 CEST 2005 Daniel Veillard - - * configure.in doc/Makefile.am doc/apibuild.py doc/libxml2-api.xml - doc/devhelp/*: started work needed to generate devhelp content, - not too hard based on the existing format and extractor. - -Fri Sep 9 12:56:19 CEST 2005 Daniel Veillard - - * parser.c: fixes bug #315617 when using push CDATA in some cases. - -Thu Sep 8 23:39:41 CEST 2005 Daniel Veillard - - * xmllint.c: patch from Stéphane Bidoul to compile without schematron - -Wed Sep 7 00:16:27 CEST 2005 Daniel Veillard - - * debugXML.c: patch from Oleg Paraschenko to fix xmlDebugDumpNode() - when handled a namespace node. - -Sun Sep 4 23:36:45 CEST 2005 Daniel Veillard - - * NEWS elfgcchack.h testapi.c doc/*: updated the docs and rebuild - releasing 2.6.21 - * include/libxml/threads.h threads.c: removed xmlIsThreadsEnabled() - * threads.c include/libxml/threads.h xmllint.c: added the more - generic xmlHasFeature() as suggested by Bjorn Reese, xmllint uses it. - -Sun Sep 4 22:45:49 CEST 2005 Daniel Veillard - - * configure.in doc/* configure.in: prepare for release - * xpath.c: work for #303289, fix a formatting bug for MIN_INT - -Sun Sep 4 15:48:57 CEST 2005 Daniel Veillard - - * relaxng.c: real fix for #314881 and #314759 is was a bit more complex - than initially expected as ctxt->error == NULL had behaviour side - effects at the compilation level itself. - -Sun Sep 4 14:01:00 CEST 2005 Daniel Veillard - - * pattern.c xpath.c include/libxml/pattern.h: fixing yet another - pattern induced XPath bug #314282 - * relaxng.c: reverted back last change it was seriously broken - -Sat Sep 3 16:51:55 CEST 2005 Rob Richards - - * xmlsave.c: check for NULL to prevent crash with meta elements - -Sat Sep 3 16:26:55 CEST 2005 Daniel Veillard - - * relaxng.c: structured error reporting problem with Relax-NG - should fix #314881 and #314759 - -Sat Sep 3 15:42:29 CEST 2005 Daniel Veillard - - * pattern.c: fixes a portability problem raised by C370 on Z/OS - -Sat Sep 3 15:26:31 CEST 2005 Daniel Veillard - - * SAX2.c tree.c valid.c: fixing a number of issues raised by xml:id - but more generally related to attributes and ID handling, fixes - #314358 among other things - -Fri Sep 2 14:26:43 CEST 2005 Daniel Veillard - - * encoding.c parserInternals.c: avoid passing a char[] as snprintf - first argument. - * threads.c include/libxml/threads.h: implemented xmlIsThreadsEnabled() - based on Andrew W. Nosenko idea. - * doc/* elfgcchack.h: regenerated the API - -Thu Sep 1 14:44:42 CEST 2005 Daniel Veillard - - * configure.in: the use of AM_PATH_PYTHON is not portable enough - reverting back to AM_PATH_PROG - -Thu Sep 1 11:42:39 CEST 2005 Daniel Veillard - - * HTMLparser.c: Applied the last patch from Gary Coady for #304637 - changing the behaviour when text nodes are found in body - * result/HTML/*: this changes the output of some tests - -Thu Sep 1 11:22:37 CEST 2005 Daniel Veillard - - * doc/downloads.html doc/xml.html: adding reference to Bull AIX rpms - c.f. #160598 - -Wed Aug 31 11:39:02 CEST 2005 Daniel Veillard - - * xml2-config.in: removed the obsolete --libtool-libs option, c.f. - bug #314853 - -Fri Aug 26 17:33:26 CEST 2005 Rob Richards - - * xmlsave.c: move handling of meta element for http-equiv in XHTML docs - to serialization and no longer modify internal tree. - -Fri Aug 26 00:51:58 CEST 2005 Daniel Veillard - - * libxml.spec.in: the profiling usually don't work, disabled - * doc/*: rebuilt - -Thu Aug 25 23:47:55 CEST 2005 Daniel Veillard - - * configure.in: trying to fix the first part of #310033 by - detecting gcc <= 3.2 - -Thu Aug 25 22:13:37 CEST 2005 Daniel Veillard - - * error.c: fixed bug #310033, the URI extraction code given a - node is a bit twisted and broke in the last months. - -Thu Aug 25 16:18:15 CEST 2005 Daniel Veillard - - * debugXML.c result/XPath/xptr/strrange2: uninitialized field and - fix on test. - -Thu Aug 25 16:03:05 CEST 2005 Daniel Veillard - - * debugXML.c: change verbosity depending on API - * result/XPath/tests/* result/XPath/xptr/* result/xmlid/*: get back - to previous outputs - -Thu Aug 25 15:14:56 CEST 2005 Daniel Veillard - - * HTMLparser.c parser.c SAX2.c debugXML.c tree.c valid.c xmlreader.c - xmllint.c include/libxml/HTMLparser.h include/libxml/parser.h: - added a parser XML_PARSE_COMPACT option to allocate small - text nodes (less than 8 bytes on 32bits, less than 16bytes on 64bits) - directly within the node, various changes to cope with this. - * result/XPath/tests/* result/XPath/xptr/* result/xmlid/*: this - slightly change the output - -Thu Aug 25 12:16:26 CEST 2005 Daniel Veillard - - * configure.in: patch from Andrew W. Nosenko, use se $GCC = 'yes' - instead of $CC = 'gcc' because GCC may have a different name - -Thu Aug 25 00:18:20 CEST 2005 Daniel Veillard - - * configure.in: changes the way the python binary is found, should - also fix bug #308004 - -Wed Aug 24 16:44:41 CEST 2005 Daniel Veillard - - * parser.c: found another bug while looking at #309616 on missing - entities. - * result/ent2.sax* result/ent7.sax* result/xml2.sax*: this changed the - SAX stream in missing conditions for a few tests - -Wed Aug 24 16:19:00 CEST 2005 Daniel Veillard - - * encoding.c: applied the patch suggested #309565 which can avoid - looping in error conditions. - -Wed Aug 24 16:04:17 CEST 2005 Daniel Veillard - - * SAX2.c tree.c: line numbers are now carried by most nodes, fixing - xmlGetLineNo() c.f. bug #309205 - -Wed Aug 24 14:43:34 CEST 2005 Daniel Veillard - - * encoding.c error.c include/libxml/xmlerror.h: finally converted - the encoding module to the common error reporting mechanism - * doc/* doc/html/libxml-xmlerror.html: rebuilt - -Wed Aug 24 11:35:26 CEST 2005 Daniel Veillard - - * xpath.c: removed a potentially uninitialized variable error - * python/generator.py: fixed a deprecation warning - * python/tests/tstLastError.py: silent the damn test when Okay ! - -Wed Aug 24 00:11:16 CEST 2005 Daniel Veillard - - * SAX2.c globals.c runtest.c testC14N.c testapi.c tree.c - include/libxml/SAX2.h include/libxml/xmlregexp.h: fixed compilation - when configured --without-sax1 and other cleanups fixes bug #172683 - * doc/* elfgcchack.h: regenerated - -Tue Aug 23 20:05:05 CEST 2005 Daniel Veillard - - * parser.c: fixed bug #170489 reported by Jirka Kosek - * test/valid/objednavka.xml test/valid/dtds/objednavka.dtd - result/valid/objednavka*: added the test to the regression suite. - -Tue Aug 23 18:04:08 CEST 2005 Daniel Veillard - - * HTMLparser.c include/libxml/HTMLparser.h: added a recovery mode - for the HTML parser based on the suggestions of bug #169834 by - Paul Loberg - -Tue Aug 23 15:38:46 CEST 2005 Daniel Veillard - - * elfgcchack.h testapi.c doc/*: regenerated - * schematron.c: fixed a compilation problem - * xmlregexp.c include/libxml/xmlregexp.h: some cleanups and one bug fix - * result/expr/base: slightly changes the number of Cons. - -Mon Aug 22 23:19:50 CEST 2005 Daniel Veillard - - * elfgcchack.h testapi.c doc/*: rescanned code and rebuilt - * xmlregexp.c: small cleanup - * include/libxml/schematron.h include/libxml/xmlexports.h - include/libxml/xmlversion.h.in: cleanup problems from code scanner - -Mon Aug 22 18:00:18 CEST 2005 Daniel Veillard - - * xmlschemastypes.c: applied patch from Kuba Nowakowski fixing bug - #313982 - * result/schemas/bug313982* test/schemas/bug313982*: also added - the test case to the regression suite. - -Mon Aug 22 17:50:20 CEST 2005 Daniel Veillard - - * testRegexp.c: printed the wrong string - -Mon Aug 22 16:42:07 CEST 2005 Daniel Veillard - - * testRegexp.c xmlregexp.c include/libxml/xmlregexp.h: exported - xmlExpExpDerive(), added it to the testRegexp command line - tool when providing multiple expressions. - -Mon Aug 22 14:57:13 CEST 2005 Daniel Veillard - - * Makefile.am result/expr/base test/expr/base: added the first - regression test suite set for the new expression support - -Mon Aug 22 13:49:18 CEST 2005 Daniel Veillard - - * valid.c: fixed an uninitialized variable - * xmlregexp.c include/libxml/xmlregexp.h: extended the API to - add the parser, serializer and some debugging - * include/libxml/xmlversion.h.in: made the new support compiled - by default if Schemas is included - * testRegexp.c: cleanup and integration of the first part of the - new code with a special switch - * xmllint.c: show up Expr in --version if compiled in - * include/libxml/tree.h: moved the xmlBuffer definition up - -Mon Aug 22 12:11:10 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Some preparation for the creation of a graph - of imported/included/redefined schemas; this is needed for - at least the redefinitions. - Centralized the creation of the parser context in one function. - -Mon Aug 22 02:19:33 CEST 2005 Daniel Veillard - - * xmlregexp.c include/libxml/xmlregexp.h: pushing the formal expression - handling code to have it in CVs from now. Not plugged, and misses - APIs it's not compiled in yet. - -Sat Aug 20 23:13:27 CEST 2005 Daniel Veillard - - * xmlreader.c: applied another patch from Rob Richards to fix - xmlTextReaderGetAttributeNs and xmlTextReaderMoveToAttributeNs - -Wed Aug 17 09:06:33 CEST 2005 Daniel Veillard - - * xmlreader.c: applied patch from Rob Richards to fix - xmlTextReaderGetAttribute behaviour with namespace declarations - -Fri Aug 12 14:12:56 CEST 2005 Kasimier Buchcik - - * xmlschemas.c include/libxml/xmlerror.h: - Changed output for keyref-match errors; the target-node will - be now reported rather than the scope-node of the keyref - definition - allowing easier chasing of instance errors. - This was reported by Guy Fabrice to the mailing list. - Some initial parsing code for schema redefinitions. - * result/schemas/bug303566_1_1.err - result/schemas/bug312957_1_0.err: Adapted test results due - to the keyref changes. - -Fri Aug 12 12:17:52 CEST 2005 Daniel Veillard - - * valid.c: applied patch from Derek Poon fixing bug #310692 - -Wed Aug 10 23:39:02 CEST 2005 Daniel Veillard - - * xmlschemas.c: fix for bug #312945 as pointed by Dean Hill, the - context type was not always properly initialized. - -Wed Aug 10 18:21:41 CEST 2005 Daniel Veillard - - * relaxng.c: fixed bug #307377 about validation of choices in - list values. - * test/relaxng/307377* result/relaxng/307377* Makefile.am runtest.c: - added examples to the regression tests, problem is that streaming - version gives slightly more informations. - -Wed Aug 10 15:25:53 CEST 2005 Daniel Veillard - - * xinclude.c: fixed bug #302302, nasty but the fix is rather simple. - -Wed Aug 10 11:59:46 CEST 2005 Kasimier Buchcik - - * result/schemas/any6_1_0*: Added missing test results. - -Tue Aug 9 23:37:22 CEST 2005 Daniel Veillard - - * xmlregexp.c: fixed a determinism detection problem exposed by - ##other tests commited by Kasimier, also added a small speedup - of determinism detection. - * test/results/any6_2_0* any8_1_0* any7_1_2* any7_2_2*: added - the results to the regression tests now - -Tue Aug 9 15:54:09 CEST 2005 Kasimier Buchcik - - * test/schemas/any7_2.xml test/schemas/any6_2.xsd - test/schemas/any8_1.xsd test/schemas/any8_0.xml: - Added some more tests for element wildcards. - -Tue Aug 9 14:22:47 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed #312957 reported by Carol Hunter: - streaming XPath states were not popped in every case, - thus failed to resolve correctly for subsequent input. - * test/schemas/bug312957* result/schemas/bug312957*: - Added the test submitted by Carol Hunter. - -Tue Aug 9 13:07:27 CEST 2005 Daniel Veillard - - * xmlregexp.c xmlschemas.c: trying to nail down the remaining - ##other issues - * result/schemas/any7* test/schemas/any7: completed the tests - and added the results - * result/schemas/any3_0_0.err result/schemas/any5_0_0.err - result/schemas/any5_1_0.err: this slightly chnages the output - from 3 existing tests - -Mon Aug 8 22:33:08 CEST 2005 Daniel Veillard - - * nanoftp.c nanohttp.c xmlschemastypes.c: applied patch from - Marcus Boerger to remove warnings on Windows. - -Mon Aug 8 16:43:04 CEST 2005 Daniel Veillard - - * xmlsave.c include/libxml/xmlsave.h: fixed #145092 by adding - an xmlSaveOption to omit XML declaration - -Mon Aug 8 15:44:54 CEST 2005 Daniel Veillard - - * HTMLtree.c: fixed bug #310333 with a patch close to the provided - patch for HTML UTF-8 serialization - * result/HTML/script2.html: this changed the output of that test - -Mon Aug 8 15:01:51 CEST 2005 Daniel Veillard - - * xmlregexp.c: fixed bug #310264, basically it's about reentrancy - of count based transition, when going though the counter must - be reset to 0 - * test/schemas/bug310264* result/schemas/bug310264*: added the - regression test. - -Mon Aug 8 14:40:52 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed a memory leak: xmlSchemaFreeAnnot() was - only freeing the first annotation in the list. - -Mon Aug 8 09:44:34 CEST 2005 Daniel Veillard - - * xmlreader.c: applied patch from Rob Richards fixing - xmlTextReaderGetAttribute - -Mon Aug 8 01:41:53 CEST 2005 Daniel Veillard - - * HTMLparser.c: fixed an uninitialized memory access spotted by - valgrind - -Sun Aug 7 12:39:35 CEST 2005 Daniel Veillard - - * test/relaxng/docbook_0.xml: get rid of the dependancy on a locally - installed DTD - * uri.c include/libxml/uri.h xmlIO.c nanoftp.c nanohttp.c: try to - cleanup the Path/URI conversion mess, needed fixing in various - layers and a new API to the uri module which also fixes #306861 - * runtest.c: integrated a regression test specific to check the - URI conversions done before calling the I/O handlers. - -Sat Aug 6 11:06:24 CEST 2005 Daniel Veillard - - * doc/XSLT.html doc/xml.html: small doc fix for #312647 - -Tue Aug 2 13:26:42 CEST 2005 Daniel Veillard - - * win32/configure.js: applied patch from Rob Richards to allow - disabling modules in win32, fixes #304071 - -Mon Aug 1 07:18:53 CEST 2005 Daniel Veillard - - * python/libxml.c: applied fix from Jakub Piotr Clapa for - xmlAttr.parent(), closing #312181 - -Sun Jul 31 18:48:55 CEST 2005 Daniel Veillard - - * schematron.c: report improvement - * test/schematron/zvon* result/schematron/zvon*: more tests - -Sun Jul 31 16:02:59 CEST 2005 Daniel Veillard - - * win32/Makefile.msvc win32/configure.js: applied patch from Rob - Richards to add schematron to the build on Windows - * test/schematron/zvon3* result/schematron/zvon3*: second test - * test/schematron/zvon10* result/schematron/zvon10*: this is the - real second test 10 and 2 are swapped. - -Sun Jul 31 15:42:31 CEST 2005 Daniel Veillard - - * schematron.c: more bug fixes, improve the error reporting. - * test/schematron/zvon2* result/schematron/zvon2*: second test - -Sun Jul 31 14:15:31 CEST 2005 Daniel Veillard - - * schematron.c xmllint.c: fixing the loop bug, fixing schematron - text error rendering - * Makefile.am result/schematron/* test/schematron/zvon1*.sct: - started integrating within "make tests" - -Sat Jul 30 17:26:58 EDT 2005 Daniel Veillard - - * test/schematron/*: a few first tests from Zvon unfortunately - with the old syntax - -Sat Jul 30 17:08:07 EDT 2005 Daniel Veillard - - * schematron.c xmllint.c include/libxml/schematron.h: commiting - work done on the plane last week-end - -Sat Jul 30 15:16:29 CEST 2005 Daniel Veillard - - * runtest.c: allows an extra argument to subset the tests - * xmlregexp.c: big speedup for validation, basically avoided - transition creation explosion when removing epsilon transition - -Sat Jul 30 00:00:46 CEST 2005 Daniel Veillard - - * Makefile.am globals.c parserInternals.c xmlreader.c xmlunicode.c - xmlwriter.c: more cleanups based on sparse reports, added - "make sparse" - -Fri Jul 29 12:11:25 CEST 2005 Daniel Veillard - - * python/libxml.c: don't output any message on failed resolver lookups, - better done by the python user provided resolver layer. - -Fri Jul 29 01:48:02 CEST 2005 Daniel Veillard - - * HTMLparser.c SAX2.c encoding.c globals.c parser.c relaxng.c - runsuite.c runtest.c schematron.c testHTML.c testReader.c - testRegexp.c testSAX.c testThreads.c valid.c xinclude.c xmlIO.c - xmllint.c xmlmodule.c xmlschemas.c xpath.c xpointer.c: a lot of - small cleanups based on Linus' sparse check output. - -Thu Jul 28 21:28:33 CEST 2005 Daniel Veillard - - * include/libxml/Makefile.am: added schematron.h, oops ... - -Thu Jul 28 02:38:21 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Added creation of the content type of - xs:anyType. This is needed when trying to extend xs:anyType - (although it makes no sense to extend it; IMHO the schema - people should have ruled this out). This was reported - by Yong Chen to the mailing list. - * xmlschemas.c: Fixed handling of xs:anyType in - xmlSchemaCheckCOSCTExtends() (reported by Young Chen). Tiny - adjustment to an error report output. - * test/schemas/extension2* result/schemas/extension2*: - Added a test case provided by Young Chen. - -Mon Jul 25 11:41:18 PDT 2005 William Brack - - * uri.c: enhanced xmlBuildRelativeURI to allow the URI and the - base to be in "relative" form - -Sun Jul 24 10:25:41 EDT 2005 Daniel Veillard - - * schematron.c xmllint.c: started adding schematron to the xmllint - tool, the report infrastructure is gonna be fun. - -Sat Jul 23 23:23:51 CEST 2005 Kasimier Buchcik - - * test/schemas/any6* test/schemas/any7*: Added regression tests - (they fail currently), but did not added results yet. - -Sat Jul 23 23:07:05 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Removed the workaround code in - xmlSchemaValidateElemWildcard() for the wildcard - with namespace == ##other. Support for such wildcards was - implemented by Daniel at the automaton level recently, and - the workaround code iterfered with it. - -Sat Jul 23 10:55:50 EDT 2005 Daniel Veillard - - * pattern.c include/libxml/pattern.h: changed xmlPatterncompile - signature to pass an int and not an enum since it can generate - ABI compat troubles. - * include/libxml/schematron.h schematron.c: adding the new - schematron code, work in progress lots to be left and needing - testing - * include/libxml/xmlversion.h.in include/libxml/xmlwin32version.h.in - Makefile.am configure.in: integration of schematron into the - build - * xpath.c include/libxml/xpath.h: adding flags to control compilation - options right now just XML_XPATH_CHECKNS. - -Sat Jul 23 16:39:35 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Removed an "internal error" message from - xmlSchemaBuildAContentModel() when an empty model group - definition is hit. - -Sat Jul 23 00:34:07 CEST 2005 Kasimier Buchcik - - * pattern.c: Changed xmlCompileStepPattern() and - xmlCompileAttributeTest() to handle the "xml" prefix without - caring if the XML namespace was supplied by the user. - -Fri Jul 22 00:08:43 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed xmlSchemaPSimpleTypeErr(), which did not - output the given string arguments correctly. - -Thu Jul 21 09:21:00 EDT 2005 Daniel Veillard - - * error.c globals.c parser.c runtest.c testHTML.c testSAX.c - threads.c valid.c xmllint.c xmlreader.c xmlschemas.c xmlstring.c - xmlwriter.c include/libxml/parser.h include/libxml/relaxng.h - include/libxml/valid.h include/libxml/xmlIO.h - include/libxml/xmlerror.h include/libxml/xmlexports.h - include/libxml/xmlschemas.h: applied a patch from Marcus Boerger - to fix problems with calling conventions on Windows this should - fix #309757 - -Wed Jul 20 14:45:39 CEST 2005 Daniel Veillard - - * parser.c: an optimization of the char data inner loop, - can gain up to 10% in pure SAX2 parsing speed - * xmlschemas.c: applied patch from Kupriyanov Anatolij fixing - a bug in XML Schemas facet comparison #310893 - -Tue Jul 19 17:27:26 CEST 2005 Daniel Veillard - - * xmlregexp.c xmlschemas.c: fixed the error reporting for - not transitions - * result/schemas/any5_0_0* result/schemas/any5_0_2* - result/schemas/any5_1_0*: fixed output - -Tue Jul 19 15:34:12 CEST 2005 Daniel Veillard - - * xmlregexp.c xmlschemas.c include/libxml/xmlautomata.h: fixing - bug #172215 about foreign namespaces by adding support for - negated string transitions. Error messages still need to be - improved. - * test/schemas/any5* result/schemas/any5*: adding regression - tests for this. - -Tue Jul 19 12:33:31 CEST 2005 Daniel Veillard - - * tree.c: applied patch from Alexander Pohoyda fixing xmlGetNodePath - on namespaced attributes #310417. - -Mon Jul 18 23:01:15 CEST 2005 Daniel Veillard - - * doc/xmllint.1 doc/xmllint.html doc/xmllint.xml: --nonet was - ducplicated - -Mon Jul 18 20:49:28 CEST 2005 Daniel Veillard - - * xmlschemas.c: fixed xsd:all when used in conjunction with - substitution groups - * test/schemas/allsg_* result/schemas/allsg_*: adding specific - regression tests, strangely missing from NIST/Sun/Microsoft - testsuites - -Sun Jul 17 07:11:27 CEST 2005 Daniel Veillard - - * xmlschemas.c: fixed bug #307508, a bad automata was built but - this showed as an indeterminist result - -Thu Jul 14 17:53:02 CEST 2005 Daniel Veillard - - * xmlschemastypes.c: found the last bug raised by NIST tests in - comparing base64 strings, result from runsuite: - ## NIST test suite for Schemas version NIST2004-01-14 - Ran 23170 tests (3953 schemata), no errors - -Thu Jul 14 14:57:36 CEST 2005 Daniel Veillard - - * testRegexp.c: fixed where xmlMemoryDump() should be called. - * xmlregexp.c: fixed handling of {0}, \n, \r and \t, two bugs - affecting NIST regression tests - -Thu Jul 14 11:30:24 CEST 2005 Daniel Veillard - - * configure.in: applied a patch from Gerrit P. Haase to add - module support on cygwin - -Thu Jul 14 10:56:42 CEST 2005 Daniel Veillard - - * HTMLparser.c: fixed a potential buffer overrun error introduced - on last commit to htmlParseScript() c.f. #310229 - -Thu Jul 14 23:48:17 PDT 2005 William Brack - - * xpath.c: Changed the behaviour of xmlXPathEqualNodeSetFloat to - return TRUE if a nodeset with a numeric value of NaN is compared - for inequality with any numeric value (bug 309914). - -Thu Jul 14 01:03:03 CEST 2005 Daniel Veillard - - * error.c relaxng.c xmlreader.c xmlschemas.c include/libxml/relaxng.h - include/libxml/xmlschemas.h: applied patch from Marcus Boerger - to route relaxng and schemas error messages when using the reader - through the structured interface if activated. - * elfgcchack.h doc/* testapi.c: rebuilt since this add new APIs - to test. - -Wed Jul 13 18:35:47 CEST 2005 Daniel Veillard - - * HTMLparser.c: applied UTF-8 script parsing bug #310229 fix from - Jiri Netolicky - * result/HTML/script2.html* test/HTML/script2.html: added the test - case from the regression suite - -Tue Jul 12 17:08:11 CEST 2005 Daniel Veillard - - * nanohttp.c: fixed bug #310105 with http_proxy environments with - patch provided by Peter Breitenlohner - -Mon Jul 11 00:28:10 CEST 2005 Daniel Veillard - - * Makefile.am NEWS configure.in doc/*: preparing release 2.6.20 - * xmllint.c: removed a compilation problem - -Sun Jul 10 23:33:41 CEST 2005 Daniel Veillard - - * xstc/Makefile.am README README.tests Makefile.tests Makefile.am: - preparing to make testsuite releases along with code source releases - * gentest.py testapi.c: fixed a couple of problem introduced by - the new Schemas support for Readers - * xpath.c: fixed the XPath attribute:: bug #309580, #309864 in a crude - but simple way. - * xmlschemas.c include/libxml/tree.h: fixed a couple of problems - raised by the doc builder. - * doc/*: made rebuild - -Sun Jul 10 21:51:16 CEST 2005 Daniel Veillard - - * xmlschemas.c: fixed a bug introduced on last commit - -Sun Jul 10 21:00:54 CEST 2005 Daniel Veillard - - * doc/xmllint.1 doc/xmllint.html doc/xmllint.xml: fixed a typo - pointed by Jeroen Ruigrok - * include/libxml/xmlreader.h include/libxml/xmlschemas.h: increased - the APIs for xmlReader schemas validation support - * xmllint.c xmlreader.c xmlschemas.c: xmlReader schemas validation - implementation and testing as xmllint --stream --schema ... - -Sun Jul 10 16:11:26 CEST 2005 Daniel Veillard - - * include/libxml/xmlwin32version.h.in: try to avoid conflicts. - -Sat Jul 9 19:29:10 CEST 2005 Daniel Veillard - - * parser.c: fix for #309761 from Dylan Shell - * xmlschemas.c include/libxml/xmlschemas.h: added xmlSchemaSAXPlug - and xmlSchemaSAXUnplug generic APIs for SAX Schemas validation. - * xmllint.c: couple of fixes plus added descriptions for --sax and - --sax1 - -Fri Jul 8 23:35:00 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Added c-props-correct constraint to check - for equal cardinality of keyref/key. - * include/libxml/xmlerror.h: Added an error code. - -Fri Jul 8 21:56:04 CEST 2005 Kasimier Buchcik - - * pattern.c: Fixed evaluation of attributes. Actually only - attribute at the first level were evaluated (e.g. "@attr"); - expression like "foo/@attr" always failed. - -Fri Jul 8 20:04:29 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: tiny fix in xmlSchemaValidateStream() if a - user-provided SAX handler is given. - -Fri Jul 8 19:25:26 CEST 2005 Daniel Veillard - - * parser.c: fix some potential leaks in error cases. - * xmllint.c: added --sax, to allow testing of --schemas --sax and - various other combinations. - * xmlschemas.c: fix a couple of tiny problems in - xmlSchemaValidateStream() - -Fri Jul 8 18:34:22 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Changed xmlSchemaValidateFile() to use - xmlSchemaValidateStream() internally. - -Fri Jul 8 17:02:14 CEST 2005 Daniel Veillard - - * test/relaxng/docbook_0.xml: added the missing entity to the - document internal subset to avoid errors if the DocBook catalogs - are not there - * xmlschemas.c: first cut at implementing xmlSchemaValidateStream() - untested yet - -Wed Jul 6 15:45:48 PDT 2005 William Brack - - * parser.c: fixed problem with free on dupl attribute in - dtd (bug309637). - * test/errors/attr3.xml, result/errors/attr3.*: added - regression test for this - -Wed Jul 6 13:11:35 PDT 2005 William Brack - - * win32/Makefile.msvc: try again to fix file format for Windows - -Wed Jul 6 12:20:13 PDT 2005 William Brack - - * win32/Makefile.msvc: removed spurious ^M - * runtest.c: added check for option O_BINARY - * test/schemas/bug309338*, result/schemas/bug309338*: changed - sticky tag to 'binary' - -Wed Jul 6 10:38:02 PDT 2005 William Brack - - * debugXML.c: excluded content string check for XML_ELEMENT_DECL - in xmlCtxtGenericNodeCheck - * runtest.c: changed "open" calls to include O_BINARY for Windows - -Wed Jul 6 17:14:03 CEST 2005 Daniel Veillard - - * parser.c: fixing bug #166777 (and #169838), it was an heuristic - in areBlanks which failed. - * result/winblanks.xml* result/noent/winblanks.xml test/winblanks.xml: - added the input file to the regression tests - -Wed Jul 6 13:40:22 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Fixed bug #309338, reported by Kupriyanov - Anotolij. - * test/schemas/bug309338* result/schemas/bug309338*: - Added a regression test for the above bug. - -Tue Jul 5 16:03:05 CEST 2005 Daniel Veillard - - * Makefile.am: first steps toward a testsuite dist - * SAX2.c include/libxml/xmlerror.h: fixed bug #307870 - -Tue Jul 5 12:38:36 CEST 2005 Kasimier Buchcik - - * runsuite.c runtest.c: Tiny portability adjustment for win. - * win32/Makefile.*: Added runtest.exe and runsuite.exe to - be created. - -Mon Jul 4 17:44:26 CEST 2005 Daniel Veillard - - * runsuite.c: first stb at unimplemnted detection - * runtest.c: fixing Windows code - -Mon Jul 4 17:19:31 CEST 2005 Daniel Veillard - - * runsuite.c: fix on schemas error - * runtest.c: portability glob() on Windows - -Mon Jul 4 16:23:54 CEST 2005 Daniel Veillard - - * runsuite.c runtest.c: cleanups, logfile and portability - * xmllint.c: fixed a memory leak - -Mon Jul 4 13:11:12 CEST 2005 Daniel Veillard - - * parser.c: fixed a bug failing to detect UTF-8 violations in - CData in push mode. - * result/errors/cdata.xml* test/errors/cdata.xml: added the test - to the regressions - -Mon Jul 4 11:26:57 CEST 2005 Daniel Veillard - - * debugXML.c: added enhancement for #309057 in xmllint shell - -Mon Jul 4 00:58:44 CEST 2005 Daniel Veillard - - * HTMLparser.c: applied patch from James Bursa fixing an html parsing - bug in push mode - * result/HTML/repeat.html* test/HTML/repeat.html: added the test to the - regression suite - -Sun Jul 3 23:42:31 CEST 2005 Daniel Veillard - - * testapi.c tree.c: fixing a leak detected by testapi in - xmlDOMWrapAdoptNode, and fixing another side effect in testapi - seems to pass tests fine now. - * include/libxml/parser.h parser.c: xmlStopParser() is no more limited - to push mode - * error.c: remove a warning - * runtest.c xmllint.c: avoid compilation errors if only some parts - of the library are compiled in. - -Mon Jul 4 00:39:35 CEST 2005 Daniel Veillard - - * gentest.py testapi.c: fix a problem with previous patch to - testapi.c - -Sun Jul 3 22:59:28 CEST 2005 Daniel Veillard - - * runsuite.c runtest.c tree.c: fixing compilations when - disabling parts of the library at configure time. - -Sun Jul 3 18:17:58 CEST 2005 Daniel Veillard - - * parserInternals.c: fix bug raised by zamez on IRC - * testapi.c: regenerated, seems to pop-up leaks in new tree functions - * tree.c: added comments missing. - * doc/*: regenerated - -Sun Jul 3 18:06:55 CEST 2005 Daniel Veillard - - * testapi.c runsuite.c runtest.c: fixing #307823 and a couple of - assorted bugs - * python/generator.py python/libxml2-python-api.xml: fixed - conditionals in generator too - * doc/apibuild.py doc/libxml2-api.xml doc/* elfgcchack.h: some - cleanups too and rebuilt - -Sun Jul 3 16:42:00 CEST 2005 Daniel Veillard - - * xmlIO.c: fixed bug #307503 misplaced #ifdef - -Sun Jul 3 16:34:47 CEST 2005 Daniel Veillard - - * runsuite.c: expanded test - * xmlregexp.c: found and fixed the leak exposed by Microsoft regtests - -Sat Jul 2 23:38:24 CEST 2005 Daniel Veillard - - * runsuite.c: a bit of progresses on xstc - -Sat Jul 2 09:30:13 CEST 2005 Daniel Veillard - - * runsuite.c: completed the simple checks for Relax-NG suites - back to the same 11 errors as in the Python runs. - -Thu Jun 30 15:01:52 CEST 2005 Daniel Veillard - - * runtest.c: complete, checking on other platforms is needed - * README: updated - * debugXML.c: fix a bug raised by bill on IRC - * relaxng.c: fix a leak in weird circumstances - * runsuite.c Makefile.am: standalone test tool agaisnt - the regression suites, work in progress - -Tue Jun 28 08:30:26 CEST 2005 Daniel Veillard - - * runtest.c: adding URI tests - -Mon Jun 27 23:55:56 CEST 2005 Daniel Veillard - - * runtest.c: adding xml:id - -Mon Jun 27 23:29:36 CEST 2005 Daniel Veillard - - * runtest.c: finishing XPath, adding XPointer - -Mon Jun 27 17:39:27 CEST 2005 Daniel Veillard - - * runtest.c: adding more coverage, XInclude and starting XPath - -Mon Jun 27 17:02:14 CEST 2005 Kasimier Buchcik - - * tree.c include/libxml/tree.h: Added allocation/deallocation - functions for the DOM-wrapper context. - -Mon Jun 27 15:41:30 CEST 2005 Kasimier Buchcik - - * tree.c: Commented the new functions to be experimental. - -Mon Jun 27 14:41:14 CEST 2005 Daniel Veillard - - * error.c valid.c: working some weird error reporting problem for - DTD validation. - * runtest.c: augmented with DTD validation tests - * result/VC/OneID*: slight change in validation output. - -Mon Jun 27 13:44:41 CEST 2005 Daniel Veillard - - * runtest.c: added most HTML tests - -Mon Jun 27 14:06:10 CEST 2005 Kasimier Buchcik - - * test/namespaces/reconcile/tests.xml - test/namespaces/reconcile/tests-to-c.xsl: Added initial tests - for some new DOM-wrapper helping functions. - -Mon Jun 27 14:01:06 CEST 2005 Kasimier Buchcik - - * xstc/xstc-to-python.xsl: Cleanup. - * xstc/sun-test-def.xml xstc/nist-test-def.xml xstc/ms-test-def.xml: - Removed, those are not needed anymore due to the new test suite. - -Mon Jun 27 11:39:50 CEST 2005 Daniel Veillard - - * result/*.sax2 MAkefile.am: added SAXv2 regression tests apparently - missing. - * runtest.c: added SAX1/SAX2 checks. - -Mon Jun 27 12:24:54 CEST 2005 Kasimier Buchcik - - * tree.c include/libxml/tree.h: Added - xmlDOMWrapReconcileNamespaces(), xmlDOMWrapAdoptNode() and - xmlDOMWrapRemoveNode() to the API. These are functions intended - to be used with DOM-wrappers. - -Mon Jun 27 10:14:57 CEST 2005 Daniel Veillard - - * runtest.c: continue to increase the tests - -Mon Jun 27 09:21:49 CEST 2005 Daniel Veillard - - * runtest.c: continue to increase the tests - -Mon Jun 27 01:01:32 CEST 2005 Daniel Veillard - - * runtest.c: continue to increase the tests - -Sun Jun 26 20:08:24 CEST 2005 Daniel Veillard - - * include/libxml/valid.h valid.c: avoid name glob in agruments as - it matches the glob() routine. - * runtest.c Makefile.am: first steps toward a C regression test - framework. - -Sat Jun 25 01:37:22 PDT 2005 William Brack - - * configure.in: fixed a problem with the detection of - ss_family for ipV6, as reported on the mailing list by - Doug Orleans. - -Tue Jun 21 10:44:34 CEST 2005 Kasimier Buchcik - - * test/schemas/empty-value* result/schemas/empty-value*: - Added regression tests (from Dhyanesh). - -Tue Jun 21 10:35:43 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed NULL values to be validated as empty - string values (reported by Dhyanesh to the mailing list). - Adjusted text concatenation of mixed content. - -Mon Jun 20 18:11:32 CEST 2005 Daniel Veillard - - * tree.c valid.c: applied patch from Rob Richards for removal - of ID (and xml:id) - * xmlreader.c: applied patch from James Wert implementing - xmlTextReaderReadInnerXml and xmlTextReaderReadOuterXml - -Thu Jun 16 14:38:22 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed SAX2 validation: grow of internal - namespace list, appending of element character content. - * xstc/xstc.py: Added "--sax" option for SAX2 validation. - -Wed Jun 15 15:34:52 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Added missing function descriptions. - -Wed Jun 15 15:26:14 CEST 2005 Daniel Veillard - - * xmllint.c: if sax1 is used and input is a file use the old - API xmlParseFile() - * xmlschemas.c: cleanups - * doc/* testapi.c elfgcchack.h: rebuilt to add python bindings - for the new functions in Schemas. - -Wed Jun 15 14:50:48 CEST 2005 Kasimier Buchcik - - * xmlschemas.c include/libxml/xmlschemas.h: Added - xmlSchemaValidateFile() to the public API. This will use - SAX2-driven validation. - -Wed Jun 15 11:11:38 CEST 2005 Kasimier Buchcik - - * result/schemas/bug306806_1_0 result/schemas/bug306806_1_0.err: - Added schema test results (Tom Browder, bug #306806). - -Wed Jun 15 11:08:34 CEST 2005 Kasimier Buchcik - - * test/schemas/bug306806_1.xsd test/schemas/bug306806_0.xml: - Added schema tests submitted by Tom Browder (bug #306806). - -Tue Jun 14 15:03:22 PDT 2005 William Brack - - * pattern.c: adjusted last change to xmlCompilePathPattern, - fixed one compilation warning - -Tue Jun 14 21:19:16 CEST 2005 Kasimier Buchcik - - * pattern.c: Some changes/fixes to the streaming evaluation. - * xmlschemas.c: A bit of support for parsing the schema for - schema. Fixed attribute derivation when the use is - "prohibited" and was "optional". Fixed an attribute construction - bug, a left-over from the time, where , - , etc. where created as structs. - -Tue Jun 14 12:35:12 CEST 2005 Daniel Veillard - - * libxml-2.0.pc.in: removed a redundant include path - -Mon Jun 13 14:58:33 CEST 2005 Kasimier Buchcik - - * xstc/Makefile.am: Some more adjustments. - -Mon Jun 13 14:35:59 CEST 2005 Kasimier Buchcik - - * xstc/Makefile.am: Changed test extraction process, since some - boxes don't know about "tar --strip-path". - -Mon Jun 13 13:39:43 CEST 2005 Daniel Veillard - - * relaxng.c: fixed a bug exposed by Rob Richards in the mailing-list - * result//compare0* test//compare0*: added the regression test in - the suite as this went unnoticed ! - -Wed Jun 9 11:07:42 PDT 2005 William Brack - - * pattern.c, xpath.c, include/libxml/pattern.h: Further - enhancement for XPath streaming, consolidated with - schemas usage of pattern.c. Added a new enum - xmlPatternFlags. - * doc/*, testapi.c, elfgcchack.h: updated to reflect new - enum. - * test/XPath/tests/mixedpat, test/XPath/docs/mixed, - result/XPath/mixedpat: added regression test for problems - reported in bug306348 - -Thu Jun 9 16:51:31 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Changed non-prefixed QNames to be bound to a - default namespace if existent. - -Thu Jun 9 15:11:38 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Fixed a bug which I invented: hexBinary's string - values were not duplicated corrently when creating a computed value - in xmlSchemaValAtomicType. - -Thu Jun 9 13:20:57 CEST 2005 Kasimier Buchcik - - * xmlschemas.c result/schemas/include1_0_0.err: - Fixed an attribute fixed/default value constraint error. - -Thu Jun 9 12:51:23 CEST 2005 Kasimier Buchcik - - * result/schemas/*: Adapted regression test results. - -Thu Jun 9 12:22:45 CEST 2005 Kasimier Buchcik - - * xmlschemas.c xmlschemastypes.c include/libxml/schemasInternals.h - include/libxml/xmlschemastypes.h: Changed the validation process - to be able to work in streaming mode. Some datatype fixes, - especially for list and union types. Due to the changes the - error report output has changed in most cases. Initial migration to - functions usable by both, the parser and the validator. This should - ease a yet-to-come XS construction API in the long term as well. - -Thu Jun 9 10:16:11 CEST 2005 Daniel Veillard - - * parser.c: applied patch from Malcolm Rowe to avoid namespace - troubles on rollback parsing of elements start #304761 - * test/nsclean.xml result/noent/nsclean.xml result/nsclean.xml*: - added it to the regression tests. - -Thu Jun 9 00:33:50 CEST 2005 Daniel Veillard - - * parser.c include/libxml/xmlerror.h: applied patch from Rob Richards - for xml:space and xml:lang handling with SAX2 api. - -Wed Jun 8 19:41:38 CEST 2005 Daniel Veillard - - * globals.c: applied patch from Morten Welinder, closing bug #306901 - on compiling subsets of the library - -Wed Jun 8 19:11:42 CEST 2005 Kasimier Buchcik - - * xstc/Makefile.am xstc.py xstc-to-python.xsl: Adapted the - XS tests to use the new release of tests and test-definitions. - -2005-06-07 Aleksey Sanin - - * c14n.c: fix rendering of attributes when parent node - is not in the node set - -2005-06-06 Aleksey Sanin - - * c14n.c: fixed xml attributes processing bug in exc c14n - * xmllint.c: added --exc-c14n command line option - -Mon Jun 6 06:43:33 PDT 2005 William Brack - - * xpath.c, pattern.c: Enhanced xmlXPathRunStreamEval, fixed - handling of depth/level for cases like union operator - (bug #306348 reported by Bob Stayton). Also enhanced - several comments throughout pattern.c. - * doc/apibuild.py: fixed problem in handling of - 'signed' declaration. Rebuilt the docs. - -Tue May 31 20:35:27 PDT 2005 William Brack - - * xinclude.c: Enhanced handling of xml:base for included - elements, fixing bugs 169209 and 302353. - -Wed May 25 18:59:53 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed facet errors to be channelled back for - union type members; facet-validation will stop now on the - first error. Reported by GUY Fabrice to the mailing-list. - * xmlschemastypes.c: Changed to ignore lengh-related facet - validation for QNames and NOTATIONs as proposed by the - schema people. - * test/schemas/union2* result/schemas/union2*: Added - regression tests for union types (by GUY Fabrice). - -Fri May 20 20:48:08 CEST 2005 Daniel Veillard - - * xmlsave.c: applied patch from Mark Vakoc fixing saving of - CDATA with NULL content. - -Thu May 12 15:14:26 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Changed the VALID_TZO macro to restrict - the timezone to -840 to 840. - -Thu May 12 15:05:11 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Applied patch from Steve Nairn (bug #303670) - for "signed int" of the date-time timezone field. Silenced - a warning. - -Wed May 11 20:04:09 CEST 2005 Daniel Veillard - - * tree.c: applied patch for replaceNode from Brent Hendricks - -Tue May 10 17:27:52 CEST 2005 Daniel Veillard - - * tree.c: fixed bug #303682 of a leak reported by Malcolm Rowe - -Tue May 10 11:50:16 CEST 2005 Daniel Veillard - - * testapi.c: applied patch from Steve Nairn tof fix the compilation - problem exposed in bug #303640 - -Tue May 10 11:11:26 CEST 2005 Kasimier Buchcik - - * test/schemas/bug303566_1* result/schemas/bug303566_1_1*: - Added regression a test provided by Heiko Oberdiek (bug #303566). - -Mon May 9 17:56:58 CEST 2005 Kasimier Buchcik - - * pattern.c: Changed the XPath "." to resolve only on the first - level for XML Schema IDCs (bug #303566 reported by Heiko Oberdiek). - This should not affect pattern-like resolution on every level. - -Sun May 8 13:35:39 CEST 2005 Daniel Veillard - - * xmlmemory.c: fixed #169630 segfault in xmlMemDisplay - -Fri May 6 13:40:03 CEST 2005 Daniel Veillard - - * nanoftp.c: fixing bug #303068 increasing the nanoftp buffer. - * doc/apibuild.py: fixed __attribute() parsing problem - * doc/* testapi.c: regenerated the descriptions and docs. - -Wed May 4 11:16:00 CEST 2005 Daniel Veillard - - * Makefile.am configure.in threads.c: on linux/gcc use weak definitions - to avoid linking with pthread library on non-threaded environments. - * xpath.c: applied patch from Mark Vakoc w.r.t. a buggy namespace - list allocation. - -Fri Apr 29 11:27:37 CEST 2005 Kasimier Buchcik - - * parser.c: Fixed a test for duplicate attributes: Non-prefixed - attributes were treated as being bound to the default namespace. - -Tue Apr 19 17:51:32 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Fixed date-time related validation - (reported by David Crossley, bug #300576). - -Tue Apr 19 16:55:40 CEST 2005 Kasimier Buchcik - - * xmlschemas.c xmlregexp.c: Removed 5 unnecessary - dereferences (reported by Andriy, bug #301074). - -Tue Apr 19 22:33:18 HKT 2005 William Brack - - * xpath.c: Added some code to avoid integer overflow for - ceil, floor and round functions (bug 301162) - -Tue Apr 19 13:21:54 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Removed workaround for bug #172215, since it - does more harm in some scenarios. Added some of the - "Particle Restriction OK" constraints - not yet enabled. - -Mon Apr 18 13:02:55 CEST 2005 Kasimier Buchcik - - * result/schemas/changelog093*: Added test results. - -Mon Apr 18 12:42:14 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Added output of canonical values in - identity-constraint error messages. - * xmlschemastypes.c include/libxml/xmlschemastypes.h: - Added xmlSchemaGetCanonValueWhtsp() to the API. - Further enhancement of the canonical value - conversion. - * test/schemas/changelog093_0.*: Added test with an XSD - submitted by Randy J. Ray. - -Fri Apr 15 09:33:21 HKT 2005 William Brack - - * valid.c: Applied Daniel's fix for memory leak in dtd - prefix (bug 300550). - * xpath.c: minor change to comment only - -Thu Apr 14 20:52:41 CEST 2005 Daniel Veillard - - * xmlmemory.c: added the call to the breakpoint routine - when a monitored block is reallocated or freed - -Wed Apr 13 05:55:51 CEST 2005 Daniel Veillard - - * nanohttp.c: applied patch from Aron Stansvik for bug #172525 - about HTTP query string parameter being lost - -Tue Apr 12 04:03:32 CEST 2005 Daniel Veillard - - * python/libxml.c python/libxml.py: applied patch from Brent Hendricks - adding namespace removal at the python level #300209 - * python/tests/Makefile.am python/tests/nsdel.py: added the regression - test - -Sun Apr 10 09:03:22 HKT 2005 William Brack - - * xpath.c: fixed several places where memory cleanup was not - properly done after an error was detected (problem was - reported on the mailing list by Pawel Palucha) - -Fri Apr 8 21:58:04 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Added substitution group constraints; changed - the build of the pre-computed substitution groups. Channeled - errors during xsi assembling of schemas to the validation - context. Fixed a big memory leak, which occured when using - IDCs: the precomputed value of attributes was not freed if - the attribute did not resolve to an IDC field (discovered - with the help of Randy J. Ray's schema, posted to the - xmlschema-dev maling list). - -Fri Apr 8 13:22:01 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Added "Particle correct 2" to parsing of model groups. - Added handling substitution groups inside and ; - for this is not supported yet. Changed circular checks for - model groups definitions. "memberTypes" are processed at different - levels now: component resolution first, construction later; this - goes hand in hand with a global change to handle component - resolution in a distinct phase. Fixed invalid default values for - elements to mark the schema as invalid; this just resulted in an - error report previously, but the schema was handled as valid. - Separated the assignment of the model groups to referencing - model group definition references (i.e. particles); this was - needed to perform the circularity check for model group definitions. - Added "Element Declaration Properties Correct (e-props-correct)" - constraints. Separated component resolution for simple/complex - types. - * include/libxml/schemasInternals.h: Added a flag for substitution - group heads. - -Wed Apr 6 23:14:03 CEST 2005 Igor Zlatkovic - - * win32/Makefile.*: make install cleanup - -Wed Apr 6 22:42:23 CEST 2005 Igor Zlatkovic - - * win32/Makefile.mingw: fixed mingw compilation - * testModule.c: removed mingw warnings - -Wed Apr 6 21:59:11 CEST 2005 Igor Zlatkovic - - * .cvsignore: added Eclipse project files to ignore list - -Wed Apr 6 16:08:10 CEST 2005 Daniel Veillard - - * xpath.c: fixed the bug in lang() as raised by Elliotte Rusty Harold - * result/XPath/tests/langsimple test/XPath/tests/langsimple - test/XPath/docs/lang: added a regression test - -Tue Apr 5 23:48:35 CEST 2005 Daniel Veillard - - * nanoftp.c: applied fix from Rob Richards to compile on Windows. - -Tue Apr 5 17:02:58 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Added "Type Derivation OK (Complex)" constraints - and anchored them in the "Element Locally Valid (Element)" - constraints. This restricts the type substitution via "xsi:type". - -Tue Apr 5 13:10:06 CEST 2005 Daniel Veillard - - * xmlschemas.c: patch from Matthew Burgess to improve some schemas - facets validation messages. - -Sat Apr 2 12:48:41 CEST 2005 Daniel Veillard - - * doc/* configure.in NEWS: preparing release 2.6.19, updated docs and - rebuilding. - -Sat Apr 2 13:27:32 CEST 2005 Daniel Veillard - - * xstc/Makefile.am: integrated fixup-tests.py - -Fri Apr 1 19:14:18 CEST 2005 Daniel Veillard - - * xmlschemastypes.c: fixed a lack of comment and missing test for - a pointer in the API. - -Fri Apr 1 17:54:22 CEST 2005 Kasimier Buchcik - - * xstc/fixup-tests.py: A tiny script to fixup some of the schema - files used for the tests. - -Fri Apr 1 17:33:50 CEST 2005 Kasimier Buchcik - - * xmlschemas.c include/libxml/schemasInternals.h - result/schemas/src-element2-*.err result/schemas/element-*.err: - Committing again, since the CVS server aborted. - -Fri Apr 1 15:29:27 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Corrected 'length' facet validation for - QNames and notations. Corrected xmlSchemaGetCanonValue: some - data types did not return a value if already in normalized - form. - * xmlschemas.c include/libxml/schemasInternals.h: - Eliminated creation of structs for , , - , , and : the - information is now set directly on the corresponding simple/ - complex type. Added some more complex type constraints. - Added facet derivation constraints. Introduced "particle" - components, which seem to be really needed if applying - constraints. Corrected/change some of the parsing functions. - This is all a bit scary, since a significant change to the code. - * result/schemas/src-element2-*.err result/schemas/element-*.err: - Adapted regression test results. - -Fri Apr 1 16:07:59 CEST 2005 Daniel Veillard - - * doc/apibuild.py doc/elfgcchack.xsl: revamped the elfgcchack.h - format to cope with gcc4 change of aliasing allowed scopes, had - to add extra informations to doc/libxml2-api.xml to separate - the header from the c module source. - * *.c: updated all c library files to add a #define bottom_xxx - and reimport elfgcchack.h thereafter, and a bit of cleanups. - * doc//* testapi.c: regenerated when rebuilding the API - -Thu Mar 31 17:20:32 CEST 2005 Daniel Veillard - - * xmlsave.c: fixed bug reported by Petr Pajas, in the absence of - encoding UTF-8 should really be assumed. This may break if - the HTTP headers indicates for example ISO-8859-1 since this - then becomes a well formedness error. - -Thu Mar 31 16:57:18 CEST 2005 Daniel Veillard - - * SAX.c: fixed #172260 redundant assignment. - * parser.c include/libxml/parser.h: fixed xmlSAXParseDoc() and - xmlParseDoc() signatures #172257. - -Thu Mar 31 16:11:10 CEST 2005 Daniel Veillard - - * parser.c: fix potential crash if ctxt->sax->ignorableWhitespace - is NULL as reported by bug #172255 - -Thu Mar 31 15:36:52 CEST 2005 Daniel Veillard - - * relaxng.c: fixed a problem in Relax-NG validation #159968 - * test/relaxng/list.* result/relaxng/list_*: added the test - to the regression suite - -Thu Mar 31 13:06:02 CEST 2005 Daniel Veillard - - * python/libxml.c: fixed bug #168504 - -Thu Mar 31 12:22:54 CEST 2005 Daniel Veillard - - * config.h.in configure.in nanoftp.c nanohttp.c xmllint.c - macos/src/config-mac.h: use XML_SOCKLEN_T instead of SOCKLEN_T - since apparently IBM can't avoid breaking common defines #166922 - -Thu Mar 31 10:41:45 CEST 2005 Daniel Veillard - - * encoding.c: fix unitinialized variable in not frequently used - code bug #172182 - -Thu Mar 31 00:45:18 CEST 2005 Daniel Veillard - - * python/generator.py python/libxml.py: another patch from Brent - Hendricks to add new handlers with the various validity contexts - * python/tests/Makefile.am python/tests/validDTD.py - python/tests/validRNG.py python/tests/validSchemas.py: also - added the regression tests he provided - -Wed Mar 30 09:39:27 CEST 2005 Daniel Veillard - - * python/generator.py python/libxml.c: applied patch from Brent - Hendricks to avoid leak in python bindings when using schemas - error handlers. - -Tue Mar 29 22:29:28 CEST 2005 Daniel Veillard - - * HTMLtree.c: fixing bug 168196, must be URI escaped too - -Sun Mar 27 13:24:24 CEST 2005 Daniel Veillard - - * tree.c: cleanup of the Prop related functions and xmlNewNodeEatName - by Rob Richards - -Thu Mar 24 19:01:22 PST 2005 William Brack - - * gentest.py, testapi.c: fixed problem with 'minimal library' - compilation (LIBXML_PATTERN_ENABLED not properly checked) reported - by Greg Morgan - -Thu Mar 24 12:01:30 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed call to a facet error report: the type of - the error was wrong, resulting in a segfault (bug #171220, reported - by GUY Fabrice). - -Mon Mar 21 22:58:37 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Removed a stupid bug in xmlSchemaValidateAttributes, - failing to build a linked list correctly (bug #169898, reported - by bing song, hmm...). - -Mon Mar 21 21:09:07 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed a segfault, which occured during bubbling - of IDC nodes (bug #170779 and #170778, reported by GUY Fabrice): - a variable was missed to be reset in a loop. Deactivated bubbling, - if not referenced by a keyref. - -Sun Mar 20 11:13:02 PST 2005 Aleksey Sanin - - * c14n.c include/libxml/xmlerror.h: special case "DAV:" namespace - in c14n relative namespaces check and add structured error messages - to c14n code - -Thu Mar 17 12:55:23 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Removed inheritance of "mixed" content type for - short-hand restrictions of "anyType" (reported by Guy Fabrice - to the mailing list). Added the namespace conversion (chameleon - includes) for the base type reference of and - . - * test/schemas/bug152470_1.xsd: Adapted due to the above change - of "mixed" inheritance. - -Thu Mar 17 11:03:59 CET 2005 Daniel Veillard - - * xmlschemas.c: fixed a = -> == error pointed by GUY Fabrice - -Wed Mar 16 22:53:53 CET 2005 Daniel Veillard - - * xmlschemas.c: more debug messages from Matthew Burgess - * xmlschemastypes.c: xmlSchemaValidateLengthFacet API missing check. - -Wed Mar 16 17:37:04 CET 2005 Kasimier Buchcik - - * xmlschemastypes.c: Aaaannnd putting back the previous changes done - by Daniel, which I overwrote with the previous commit. - -Wed Mar 16 17:20:25 CET 2005 Kasimier Buchcik - - * xmlschemas.c xmlschemastypes.c include/libxml/xmlschemastypes.h: - Hopefully finished validation against facets to use the normalized - value of both, the facets and instance values. Added - xmlSchemaValidateLengthFacetWhtsp(), xmlSchemaValidateFacetWhtsp() - and xmlSchemaGetValType() to the schema API. - -Wed Mar 16 13:55:31 CET 2005 Daniel Veillard - - * libxml.spec.in: do not package .la files - * xmllint.c: applied patch from Gerry Murphy for xmllint return code - * xmlschemastypes.c: fixed a couple of missing tests of parameters - at public API entry points. - -Tue Mar 15 23:31:14 HKT 2005 William Brack - - * xmlschemastypes.c: a couple of more changes to various - decimal-handling routines. Fixes python some problems - turned up by the python tests. - * Makefile.am: change SchemasPythonTests message to warn - that there are 10 'expected' errors (rather than 6) since - we now reject a '+' sign on an unsigned. - -Tue Mar 15 15:43:27 CET 2005 Kasimier Buchcik - - * xmlschemastypes.c xmlschemastypes.h: In preparation to use - normalized values of facets during validation: changed the - arguments of some string comparison functions; added a static - xmlSchemaValidateFacetInternal() with more arguments to be - more flexible. Prepared XML_SCHEMA_FACET_ENUMERATION validation - to use the comparison functions. Fixed some assignments in - xmlSchemaValAtomicType(): total digit count, lo, mi, hi. - -Sun Mar 13 19:32:03 CET 2005 Daniel Veillard - - * NEWS configure.in testapi.c doc/*: preparing release of 2.6.18 - updated docs and rebuilt - * libxml.spec.in: reactivated gcc profiling for gcc >= 4.0.0 - -Sat Mar 12 19:50:22 CET 2005 Daniel Veillard - - * encoding.c: removed a static buffer in xmlByteConsumed(), - as pointed by Ben Maurer, fixes #170086 - * xmlschemas.c: remove a potentially uninitialized pointer warning - -Fri Mar 11 23:53:13 HKT 2005 William Brack - - * xmlschemastypes.c: enhanced the parsing of XML_SCHEMAS_DECIMAL - and much of the routine xmlSchemaCompareDecimals. The - changes were necessary to fix a problem reported on the - mailing list by John Hockaday. - -Fri Mar 11 13:22:52 CET 2005 Kasimier Buchcik - - * xmlschemas.c: The schema parser will stop if components could - not be resolved. This is not conforming to the spec but for now - will avoid internal errors during type fixup and content model - creation. Restructured inclusion/import of schemata: this avoids - duplicate, self and circular inclusion. Chameleon includes are - still workarounded. Added restriction to disallow references to - non-imported namespaces. Corrected parsing of . - * result/schemas/bug167754_0_0*: Added a missing test result. - -Thu Mar 10 16:02:17 CET 2005 Daniel Veillard - - * doc/xml.html doc/encoding.html: Enriched encoding.html with more - link and foreword warning to avoid problem with ignorant - programmers, c.f #169721 - -Thu Mar 10 15:01:34 CET 2005 Daniel Veillard - - * python/tests/Makefile.am python/tests/readernext.py: added - a regression test from Rob Richards for the previous bug - -Thu Mar 10 13:22:36 CET 2005 Daniel Veillard - - * xmlreader.c: applied fix for xmlTextReaderNext() bug from - Rob Richards - -Thu Mar 10 11:35:57 CET 2005 Daniel Veillard - - * xmlmodule.c: second patch from Rick Jones, portability fix for - HP-UX - * doc/examples/xpath1.c doc/examples/xpath2.c: first fix from Rick Jones - to avoid warnings. - -Thu Mar 10 10:20:23 CET 2005 Daniel Veillard - - * include/libxml/hash.h libxml.h libxml.spec.in: some gcc4 portability - patches, including a serious aliasing bug exposed in s390 - when trying to convert data pointer to code pointer. - -Mon Mar 7 18:34:00 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Tiny restructuring of the validation start-up - functions. Added cleanup of the validation context at the - end of validation. This takes care of the validation context - being reused. - -Mon Mar 7 12:12:01 CET 2005 Kasimier Buchcik - - * xmlschemastypes.c: Tiny changes in the comparison functions - I forgot to commit last time. - -Fri Mar 4 22:51:42 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Added IDC validation of anySimpleType attribute - values; anyway the IDC key comparison is restricted to - anySimpleType <--> string based types. For other types we - would possibly need the canonical lexical representation of - them; this sounds not performant, since we would need to - build such a representation each time we want to compare against - anySimpleType. TODO: think about buffering the canonical values - somewhere. Fixed error reports for default attributes to work - without a node being specified. This all and the enabling of IDC - validation fixes bug #165346 (reported by Benoit Gr?goire - could - not read his last name correctly from bugzilla). - -Fri Mar 4 18:57:44 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Enabled IDC parsing and validation. - * xmlschemastypes.c include/libxml/xmlschemastypes.h: - Added xmlSchemaCopyValue to the API; this was done due to - validation of default attributes against IDCs: since IDC keys - consume the precomputed value, one needs a copy. - * pattern.c: Enabled IDC support; this is currently done - via calling xmlPatterncompile with a flag arg of 1. - -Wed Mar 2 11:45:18 CET 2005 Daniel Veillard - - * Makefile.am doc/examples/Makefile.am python/tests/Makefile.am - xstc/Makefile.am: try to fix a problem with valgrind. - * python/generator.py python/libxml.c python/tests/Makefile.am - python/tests/tstmem.py: applied memory leak fix from Brent Hendricks - c.f. bug #165349 - -Mon Feb 28 11:18:24 CET 2005 Kasimier Buchcik - - * tree.c: Changed xmlSearchNsByHref to call xmlNsInScope with - the prefix instead of the namespace name. - * test/schemas/annot-err_0.xsd test/schemas/element-err_0.xsd: - Adapted invalid values of the "id" attribute, since they are - validated now. - -Fri Feb 25 08:31:16 CET 2005 Daniel Veillard - - * threads.c: new version with fixes from Rob Richards - -Thu Feb 24 16:37:51 CET 2005 Daniel Veillard - - * threads.c: applied patch from Rich Salz for multithreading on - Windows. - -Wed Feb 23 15:04:46 CET 2005 Daniel Veillard - - * xmlwriter.c: applied a patch from Rob Richards fixing a couple - of bugs in the writer - -Mon Feb 21 21:51:03 HKT 2005 William Brack - - * xmlsave.c: fixed problem when XMLLINT_INDENT was empty (bug 168033). - * xpath.c: fixed compilation warning, no change to logic. - * xmlschemastypes.c: fixed compilation warning, no change to logic. - -Mon Feb 21 14:48:27 CET 2005 Daniel Veillard - - * xmlwriter.c: applied patch from Rob Richards to fix a problem with - xmlTextWriterStartAttributeNS - -Mon Feb 21 11:41:41 CET 2005 Daniel Veillard - - * pattern.c xpath.c: fixed remaining known bugs in the XPath streaming, - and switched XPath to use it by default when possible - -Sat Feb 19 19:25:14 CET 2005 Daniel Veillard - - * xmlschemastypes.c: a bit of cleanup - * elfgcchack.h testapi.c doc/*: rebuilt the API the tests and - the documentation as a result. - -Fri Feb 18 20:34:03 CET 2005 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h: applied patch from - Aron Stansvik to add xmlTextReaderByteConsumed() - * testReader.c: added a test option - * xmlschemastypes.c: fix a lack of pointer checking in APIs - -Fri Feb 18 12:41:10 CET 2005 Kasimier Buchcik - - * test/schemas/bug167754_0*: Added the regression test of Frans - Englich for bug #167754. - -Fri Feb 18 12:31:49 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Started support for IDC resolution to default - attributes. If building the content model for : ensured - to put element declarations and not the particles into the - content model automaton (this was bug #167754, reported by - Frans Englich). - -Thu Feb 17 22:31:58 CET 2005 Kasimier Buchcik - - * pattern.c pattern.h: Some experimental addition for parsing - of expressions and streamable validation. - Added xmlStreamPushAttr to the API. - -Thu Feb 17 19:57:35 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Added validation for the attribute "id" in the - schemata; doing this needed error report fixes for notations, - facets and group. Changed NOTATION validation to work with the - declared NOTATIONs in the schema; this does have no impact on - the validation via the relaxng module. - * xmlschemastypes.c include/libxml/xmlschemastypes.h: - Added xmlSchemaNewNOTATIONValue to the API to be able to do - the NOTATION validation described above. - * test/schemas/element-err_0.xsd test/schemas/annot-err_0.xsd: - Fixed the values of the "id" attributes, which were not validated - previously. - -Thu Feb 17 12:03:46 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed comparison for default/fixed attribute - values, if the type was 'xsd:string'. Changed the comparison - for IDCs to use the whitespace aware comparison function. - * xmlschemastypes.c include/libxml/xmlschemastypes.h: - Added xmlSchemaGetCanonValue, xmlSchemaNewStringValue and - xmlSchemaCompareValuesWhtsp to the API. Added functions - to compare strings with whitespace combinations of "preserve", - "replace" and "collapse". - -Wed Feb 16 13:24:35 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Further work on IDCs, especially evaluation for - attribute nodes. - -Wed Feb 16 01:19:27 CET 2005 Daniel Veillard - - * encoding.c: fix the comment to describe the real return values - * pattern.c xpath.c include/libxml/pattern.h: lot of work on - the patterns, pluggin in the XPath default evaluation, but - disabled right now because it's not yet good enough for XSLT. - pattern.h streaming API are likely to be changed to handle - relative and absolute paths in the same expression. - -Tue Feb 15 15:33:32 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Added IDC evaluation for attribute nodes. - Made 'nil'ed elements work. Added a specific error message - for 'strict' attribute wildcards. - * include/libxml/xmlerror.h: Added an error code for - wildcards. - * result/schemas/anyAttr-processContents-err1_0_0.err: Adapted. - -Sun Feb 13 16:15:03 HKT 2005 William Brack - - This change started out as a simple desire to speed up the - execution time of testapi.c, which was being delayed by - nameserver requests for non-existent URL's. From there it - just sort of grew, and grew.... - * nanohttp.c, nanoftp.c: changed the processing of URL's - to use the uri.c routines instead of custom code. - * include/libxml/xmlerror.h: added code XML_FTP_URL_SYNTAX - * uri.c: added accepting ipV6 addresses, in accordance with - RFC's 2732 and 2373 (TODO: allow ipV4 within ipV6) - * gentest.py, testapi.c: fixed a few problems with the - testing of the nanoftp and nanohttp routines. - * include/libxml/xmlversion.h: minor change to fix a - warning on the docs generation - * regenerated the docs - -Sat Feb 12 09:07:11 HKT 2005 William Brack - - * xinclude.c: fixed xmlXIncludeParseFile to prevent - overwriting XML_COMPLETE_ATTRS when setting pctxt->loadsubset - (bug 166199) - * Makefile.am, python/tests/Makefile.am, xstc/Makefile.am: added - code to add $(top_builddir)/.libs to LD_LIBRARY_PATH whenever - PYTHONPATH is set, to assure new libxml2 routines are used. - -Fri Feb 11 22:20:41 HKT 2005 William Brack - - * parser.c: fixed problem when no initial "chunk" was - given to xmlCreatePushParser (bug 162613) - -Fri Feb 11 18:37:22 HKT 2005 William Brack - - * dict.c: fixed compilation warning - * parser.c: changed xmlWarningMsg so ctxt->errNo is not set - * xmllint.c: changed to return non-zero status if error - on xinclude processing - * xmlsave.c: minor deletion of a redundant condition statement - -Wed Feb 9 17:47:40 CET 2005 Daniel Veillard - - * tree.c: applied patch to xmlSetNsProp from Mike Hommey - -Sun Feb 6 00:17:57 CET 2005 Daniel Veillard - - * pattern.c xmllint.c: fixed implementation for | - * test/pattern/conj.* result/pattern/conj: added a specific regression - test - -Sat Feb 5 18:36:56 CET 2005 Daniel Veillard - - * pattern.c: first implementation for | support - -Sat Feb 5 14:58:46 CET 2005 Daniel Veillard - - * pattern.c: fixed the namespaces support - * tree.c: fixed xmlGetNodePath when namespaces are used - * result/pattern/multiple result/pattern/namespaces - test/pattern/multiple.* test/pattern/namespaces.*: added - more regression tests - -Fri Feb 4 18:26:43 CET 2005 Daniel Veillard - - * xmlschemas.c: fixed one internal function - * doc/Makefile.am doc/wiki.xsl: applied patch from Joel Reed - * testapi.c doc/libxml2-api.xml doc/libxml2-refs.xml: regenerated - -Fri Feb 4 00:25:43 CET 2005 Daniel Veillard - - * Makefile.am: use the walker to test the patterns instead of - the normal reader - * pattern.c xmllint.c: bug fixes in the train including fixing the - stupid build break. - -Tue Feb 1 18:15:52 CET 2005 Daniel Veillard - - * pattern.c: more bug fixes for the XPath streaming code. - -Mon Jan 31 17:59:24 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Integrated the streaming pattern from the - pattern module. Fixed some IDC code bugs. Changed - fallback for attribute declaration addition to work like for - element declarations. - -Mon Jan 31 01:27:22 CET 2005 Daniel Veillard - - * pattern.c xmllint.c: bugfixes around the streaming patterns - -Sun Jan 30 23:35:19 CET 2005 Daniel Veillard - - * Makefile.am configure.in result/pattern/simple - test/pattern/simple.*: added first test for the patterns - * pattern.c xmllint.c: a few fixes - -Sun Jan 30 19:27:23 CET 2005 Daniel Veillard - - * pattern.c include/libxml/pattern.h xmllint.c: added a - streaming pattern detector for a subset of XPath, should - help Kasimier for identity constraints - * python/generator.py: applied Stephane Bidoul patch to find - paths without breaking. - -Fri Jan 28 18:53:40 CET 2005 Daniel Veillard - - * xmlschemas.c: fixed an untested pointer dereference and a & vs && - -Fri Jan 28 18:37:18 CET 2005 Daniel Veillard - - * xmlreader.c: implementation of xmlTextReaderReadString by - Bjorn Reese - -Fri Jan 28 16:51:47 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Corrected an ambigious symbol-space for - local attribute declarations. IFDEFed more IDC code to - surpress compiler warnings. - -Fri Jan 28 00:57:04 CET 2005 Daniel Veillard - - * bakefile/Readme.txt bakefile/Bakefiles.bkgen bakefile/libxml2.bkl: - files for the Bakefile generator for Makefiles from Francesco - Montorsi - * win32/configure.js: fixes for Windows compilation with non-default - flags by Joel Reed - -Thu Jan 27 18:23:50 CET 2005 Daniel Veillard - - * tree.c: fixed xmlCopyDoc to also copy the doc->URL as pointed - by Martijn Faassen - -Thu Jan 27 13:39:04 CET 2005 Kasimier Buchcik - - * xmlschemas.c include/libxml/schemasInternals.h: - Added an initial skeleton for indentity-constraints. This is all - defined out, since not complete, plus it needs support from other - modules. - Added machanism to store element information for the - ancestor-or-self axis; this is needed for identity-constraints - and should be helpfull for a future streamable validation. - * include/libxml/xmlerror.h: Added an error code for - identity-constraints. - -Wed Jan 26 01:03:37 CET 2005 Daniel Veillard - - * gentest.py testapi.c: had to fix generation and rebuild. - * valid.c: the testapi found a bug in the last code of course ! - -Wed Jan 26 00:43:05 CET 2005 Daniel Veillard - - * Makefile.am testapi.c doc/Makefile.am: fixing the way testapi.c - is generated, fixes bug #161386 - * dict.c: fix a comment typo - * elfgcchack.h doc/*: regenerated - -Tue Jan 25 22:39:33 CET 2005 Daniel Veillard - - * parser.c: found and fixed 2 problems in the internal subset scanning - code affecting the push parser (and the reader), fixes #165126 - * test/intsubset2.xml result//intsubset2.xml*: added the test case - to the regression tests. - -Tue Jan 25 01:20:11 CET 2005 Daniel Veillard - - * testdso.c xmlregexp.c: warning patches from Peter Breitenlohner - * include/libxml/valid.h valid.c parser.c: serious DTD parsing - speedups, start to deprecate 3 ElementDef related entry point - and replace them with better ones. - -Mon Jan 24 00:47:41 CET 2005 Daniel Veillard - - * xmlschemas.c: more hash dictionary interning changes - -Sun Jan 23 23:54:39 CET 2005 Daniel Veillard - - * hash.c include/libxml/hash.h: added xmlHashCreateDict where - the hash reuses the dictionnary for internal strings - * entities.c valid.c parser.c: reuse that new API, leads to a decent - speedup when parsing for example DocBook documents. - -Sun Jan 23 21:14:20 CET 2005 Daniel Veillard - - * parser.c: small speedup in skipping blanks characters - * entities.c: interning the entities strings - -Sun Jan 23 18:35:00 CET 2005 Daniel Veillard - - * parser.c: boosting common commnent parsing code, it was really - slow. - * test/comment[3-5].xml result//comment[3-5].xml*: added sprecific - regression tests - -Sun Jan 23 01:00:09 CET 2005 Daniel Veillard - - * parser.c: small optimization back. - -Sat Jan 22 00:40:31 CET 2005 Daniel Veillard - - * dict.c parser.c include/libxml/dict.h: a single lock version - mostly avoid the cost penalty of the lock in case of low - parallelism, so applying that version instead. - -Fri Jan 21 17:54:06 CET 2005 Daniel Veillard - - * dict.c: patch from Gary Coady to fix a race in dict reference - counting in multithreaded apps. - -Fri Jan 21 16:08:21 CET 2005 Daniel Veillard - - * parser.c: fixed bug #164556 where non-fatal errors stopped - push parsing and xmlreader. - * Makefile.am: fixup - * test/errors/webdav.xml result/errors/webdav*: adding regression - test for this problem. - -Wed Jan 19 17:24:34 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Corrected targetNamespace in - xmlSchemaElementDump. Cosmetic changes to the dump output. - -Sun Jan 16 21:00:53 CET 2005 Daniel Veillard - - * configure.in NEWS doc/*: preparing release of 2.6.17, - updated and rebuilt the docs - -Sun Jan 16 19:58:36 CET 2005 Daniel Veillard - - * parser.c: better fix for #151694 not killing c14n regression tests - * xmlschemastypes.c: fixing bug #157653 - -Sun Jan 16 19:01:06 CET 2005 Daniel Veillard - - * parser.c: fixing bug #151694, line should always be set in the - elements. - -Sun Jan 16 01:04:18 CET 2005 Daniel Veillard - - * xmlschemastypes.c: trying to fix at least the message from - bug #158628 - * include/libxml/xmlsave.h xmlsave.c: added first xmlsave option - for format, c.f. bug #159997 - -Sat Jan 15 18:44:30 CET 2005 Daniel Veillard - - * python/libxml.py: make __str__ call serialize() on nodes, c.f. - bug #157872 - -Sat Jan 15 18:18:07 CET 2005 Daniel Veillard - - * nanoftp.c: applied patch from Dan McNichol for compilation on AIX - -Sat Jan 15 13:35:19 CET 2005 Daniel Veillard - - * relaxng.c: fixed bug #157633 in relaxng choice optimization - * result/relaxng/choice0* test/relaxng/choice0*: added regression - tests about it. - * doc/*: rebuilt - * testdso.c: removed a warning due to a missing void in signature. - -Thu Jan 13 17:42:55 CET 2005 Kasimier Buchcik - - * include/libxml/schemasInternals.h xmlschemas.c: - Exposed targetNamespace for simple/complex types, model groups, - attribute groups and notations (reported by Michael Hewarth - to the mailing list). Added targetNamespace to xmlSchemaType, - xmlSchemaAttributeGroup and xmlSchemaNotation. - Tiny cosmetic change to the content model error report output. - * result//all_*.err result//any3_0_0.err result//choice_*.err - result//list0_0_1.err result//list0_1_1.err: Adapted output - of regression tests. - -Thu Jan 13 13:20:51 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Put the fix of Daniel (from Tue Jan 11 14:41:47 CET) - back in, since I missed to update xmlschemas.c before doing - the previous commit. - -Thu Jan 13 12:59:25 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Integrated xmlRegExecErrInfo and xmlRegExecNextValues - from xmlregexp.c to report expected elements on content model errors. - * all_*.err any3_0_0.err choice_*.err list0_0_1.err list0_1_1.err: - Adapted output of regression tests. - -Thu Jan 13 12:24:09 CET 2005 Daniel Veillard - - * config.h.in configure.in xmlmodule.c: trying to work around - the compilation problem on HP-UX - -Wed Jan 12 22:03:33 CET 2005 Daniel Veillard - - * pattern.c: fixed the fixed size array structure problem reported by - Patrick Streule - -Wed Jan 12 15:15:02 CET 2005 Daniel Veillard - - * elfgcchack.h testapi.c doc/libxml2-api.xml doc/*: regenerated - the API description, rebuilt, improved navigation in documentation - a bit. - -Wed Jan 12 14:17:14 CET 2005 Daniel Veillard - - * include/libxml/xmlregexp.h xmlregexp.c: extended xmlRegExecErrInfo() - and xmlRegExecNextValues() to return error transition strings too, - and sink state detection and handling. - -Tue Jan 11 14:41:47 CET 2005 Daniel Veillard - - * xmlschemas.c: fixed bug #163641 when the value passed for - an atomic list type is NULL. - -Tue Jan 11 10:14:33 HKT 2005 William Brack - - * Makefile.am configure.in: fixed dependency on python 2.3, - also small improvement for cygwin (bug 163273) - -Sun Jan 9 18:46:32 CET 2005 Daniel Veillard - - * gentest.py testapi.c: William noticed I forgot to add special - support for xmlmodules.c define - * xmlregexp.c include/libxml/xmlregexp.h: added terminal to - xmlRegExecErrInfo() API, adding new xmlRegExecNextValues() - entry point and refactored to use both code. - -Mon Jan 10 01:02:41 HKT 2006 William Brack - - * doc/xml.html, doc/FAQ.html: added an FAQ under Developer for - setting up a "private" library (after some list posts about - people having trouble doing it) - -Sat Jan 8 23:04:10 CET 2005 Daniel Veillard - - * xmlregexp.c: fixing behaviour for xmlRegExecErrInfo in case of - rollback - -Fri Jan 7 14:54:51 CET 2005 Daniel Veillard - - * TODO: small update - * xmlregexp.c: trying to add an API to get useful error informations - back from a failing regexp context. - -Thu Jan 6 17:35:41 HKT 2005 William Brack - - * xpath.c: fixed problem with xmlXPathErr when error number - subscript was out of range (bug 163055) - -Thu Jan 6 09:57:03 HKT 2005 William Brack - - * uri.c: fixed problem with xmlURIEscape when query part was - empty (actually fixed xmlURIEscapeStr to return an empty - string rather than NULL for empty string input) (bug 163079) - -Tue Jan 4 17:08:45 PST 2005 Aleksey Sanin - - * parser.c, parserInternal.c: fixed "col" calculation for - struct _xmlParserInput (based on patch from Rob Richards) - * include/libxml/xmlerror.h, error.c: propagated error column - number in the xmlError structure - -Tue Jan 4 22:47:22 CET 2005 Daniel Veillard - - * parser.c: fixed namespace bug in push mode reported by - Rob Richards - * test/ns6 result//ns6*: added it to the regression tests - * xmlmodule.c testModule.c include/libxml/xmlmodule.h: - added an extra option argument to module opening and defined - a couple of flags to the API. - -Tue Jan 4 21:16:05 CET 2005 Daniel Veillard - - * xmlmodule.c include/libxml/xmlmodule.h: applied patch from - Bjorn Reese, plus some cleanups - * elfgcchack.h doc/elfgcchack.xsl: fixed the stylesheet to - add the new header - * doc/* testapi.c: regenerated the API - -Tue Jan 4 18:47:19 CET 2005 Daniel Veillard - - * configure.in: making DSO support an option - * xmlmodule.c xmlreader.c include/libxml/xmlmodule.h: code - and documentation cleanups - * elfgcchack.h testapi.c doc/*: regenerated the docs and - checks for new module - * test/valid/REC-xml-19980210.xml: fix a small change introduced - previously - -Tue Jan 4 16:07:52 CET 2005 Daniel Veillard - - * Makefile.am config.h.in configure.in error.c libxml-2.0.pc.in - testModule.c testdso.c xml2-config.in xmllint.c xmlmodule.c - include/libxml/Makefile.am include/libxml/xmlerror.h - include/libxml/xmlmodule.h include/libxml/xmlversion.h.in - include/libxml/xmlwin32version.h.in: applied DSO support - patch 2 from Joel Reed - -Tue Jan 4 15:30:15 CET 2005 Daniel Veillard - - * configure.in: applied patch from Marcin Konicki for BeOS - -Mon Jan 3 13:57:21 PST 2005 Aleksey Sanin - - * parser.c: added GetLineNumber and GetColumnNumber functions for xmlReader - -Sun Jan 2 17:51:18 HKT 2005 William Brack - - Re-examined the problems of configuring a "minimal" library. - Synchronized the header files with the library code in order - to assure that all the various conditionals (LIBXML_xxxx_ENABLED) - were the same in both. Modified the API database content to more - accurately reflect the conditionals. Enhanced the generation - of that database. Although there was no substantial change to - any of the library code's logic, a large number of files were - modified to achieve the above, and the configuration script - was enhanced to do some automatic enabling of features (e.g. - --with-xinclude forces --with-xpath). Additionally, all the format - errors discovered by apibuild.py were corrected. - * configure.in: enhanced cross-checking of options - * doc/apibuild.py, doc/elfgcchack.xsl, doc/libxml2-refs.xml, - doc/libxml2-api.xml, gentest.py: changed the usage of the - element in module descriptions - * elfgcchack.h, testapi.c: regenerated with proper conditionals - * HTMLparser.c, SAX.c, globals.c, tree.c, xmlschemas.c, xpath.c, - testSAX.c: cleaned up conditionals - * include/libxml/[SAX.h, SAX2.h, debugXML.h, encoding.h, entities.h, - hash.h, parser.h, parserInternals.h, schemasInternals.h, tree.h, - valid.h, xlink.h, xmlIO.h, xmlautomata.h, xmlreader.h, xpath.h]: - synchronized the conditionals with the corresponding module code - * doc/examples/tree2.c, doc/examples/xpath1.c, doc/examples/xpath2.c: - added additional conditions required for compilation - * doc/*.html, doc/html/*.html: rebuilt the docs - -Sat Dec 25 18:10:02 HKT 2004 William Brack - - * parserInternals.c: fixed to skip (if necessary) the BOM for - encoding 'utf-16'. Completes the fix for bug #152286. - * tree.c, parser.c: minor warning cleanup, no change to logic - -Fri Dec 24 16:31:22 HKT 2004 William Brack - - * python/generator.py: added most required entires to - foreign encoding table, plus some additional logic to - assure only the 1st param uses the 't#' format. Fixes - bug #152286, but may still have some other UTF-16 problems. - -Thu Dec 23 23:44:08 HKT 2004 William Brack - - * Makefile.am, gentest.py: enhanced for enabling build in - a different directory. Added (optional) param to gentest.py - to specify the source directory (bug #155468) - * doc/Makefile.am: changed destination of NEWS from (top_srcdir) - to (top_builddir) (bug #155468) - * python/Makefile.am, python/generator.py: enhanced for enabling - build in a different directory(bug #155468). Added (optional) - param to generator.py to specify the source directory. Added - a new table of functions which have possible "foreign" encodings - (e.g. UTF16), and code to use python 't' format instead of - 'z' format (mostly solving bug #152286, but still need to - populate the table). - -Tue Dec 21 08:10:44 MST 2004 John Fleck - - * doc/site.xsl, doc/xml.html, plus rebuilt all the html pages - Change reference to new site for Solaris binaries, fixing bug - 160598 - - -Mon Dec 20 08:02:57 PST 2004 William Brack - - * parser.c: reset input->base within xmlStopParser - * xmlstring.c: removed call to xmlUTF8Strlen from within - xmlUTF8Strpos (Bill Moseley pointed out it was not - useful) - -Fri Dec 17 16:03:41 PST 2004 William Brack - - * valid.c: changed xmlErrValidWarning to use ctxt->warning - instead of ctxt->error for its reports (bug #160662) - -Fri Dec 17 14:52:17 PST 2004 William Brack - - * python/generator.py: modified to allow the ns and nsDefs - accessors to return None instead of error when no namespace - is present (bug #) - -Fri Dec 17 11:40:21 PST 2004 William Brack - - * doc/Makefile.am: changed maintainer-clean dependency with - suggestion from Crispin Flowerday (bug #157634) - * debugXML.c: fixed crash when ATTRIBUTE or DOCUMENT nodes - were specified with debugDumpNode (bug #160621) - -Fri Dec 10 11:24:41 CET 2004 Daniel Veillard - - * valid.c: fixed ID deallocation problem based on patch from - Steve Shepard fixes bug #160893 - * xmlmemory.c: improving comment. - * testapi.c: new test for xmlDictExists() is generated. - -Wed Dec 1 22:35:37 HKT 2004 William Brack - - * dict.c, xpath.c, include/libxml/hash.h: fixed up some gcc warnings, - no change to logic. New macro XML_CAST_FPTR to circumvent gcc - warnings on function pointer <-> object pointer (a hack). - -Mon Nov 29 14:07:18 CET 2004 Daniel Veillard - - * xpath.c: fixed a memory leak on errors in some circumstances #159812 - -Fri Nov 26 23:20:48 HKT 2004 William Brack - - * xmlIO.c: added a check within xmlOutputBufferWriteEscape to prevent - a dead loop on bad data (bug 159550) - -Fri Nov 26 13:09:04 CET 2004 Kasimier Buchcik - - * xmlschemas.c: Fixed strict/lax element wildcards: the children - of elements for which a declaration existed were still processed - by the wildcard mechanism (reported by philippe ventrillon to the - mailing list). - Changed the import and include machanism to share dictionaries. - -Fri Nov 26 11:44:36 CET 2004 Daniel Veillard - - * HTMLparser.c parser.c: make sure xmlCtxtReadFile and htmlCtxtReadFile - go through the catalog resolution. - * gentest.py testapi.c: fix a side effect wrning of the change - -Wed Nov 24 13:41:52 CET 2004 Daniel Veillard - - * dict.c include/libxml/dict.h: added xmlDictExists() to the - dictionnary interface. - * xmlreader.c: applying xmlTextReaderHasAttributes fix for namespaces - from Rob Richards - -Wed Nov 17 13:54:37 CET 2004 Kasimier Buchcik - - * xmlschemas.c: tiny enhancement for content model error reports - (#157190, #143948). Removed abbreviations: CT, ST and WC - (#157190, reported by Frans Englich). - Initial: no report of local components. - * result/schemas/all* result/schemas/any3_0_0.err - result/schemas/choice* - result/schemas/cos-st-restricts-1-2-err_0_0.err - result/schemas/derivation-ok-extension-err_0_0.err - result/schemas/derivation-ok-extension_0_0.err - result/schemas/derivation-ok-restriction-2-1-1_0_0.err - result/schemas/derivation-ok-restriction-4-1-err_0_0.err - result/schemas/deter0_0_0.err result/schemas/extension1_0_2.err - result/schemas/facet-unionST-err1_0_0.err - result/schemas/hexbinary_0_1.err - result/schemas/list* result/schemas/restriction-attr1_0_0.err - result/schemas/vdv-first4_0_1.err result/schemas/vdv-first4_0_2.err: - Adapted output. - -Mon Nov 15 13:04:28 CET 2004 Kasimier Buchcik - - * xmlschemas.c: Moved execution of xmlSchemaCheckDefaults to - xmlSchemaTypeFixup; this ensures facets of inherited types to be - checked prior to facets of derived types - which caused a seg - fault otherwise (bug #158216, reported by Frans Englich). - -Sun Nov 14 22:23:18 HKT 2004 William Brack - - * gentest.py, testapi.c: further enhancement, now all - compilation warnings have been fixed. - * xmlschemastypes.c: added NULL check for one function - -Fri Nov 12 23:58:14 HKT 2004 William Brack - - * xpath.c: trivial change (changed CHECK_CONTEXT to CHECK_CTXT - on a couple of lines) - * gentest.py, testapi.c: enhanced to reduce compilation warnings - -Fri Nov 12 16:12:48 CET 2004 Kasimier Buchcik - - * xmlschemas.c: Un-commented a TODO in xmlSchemaParseElement. - -Fri Nov 12 14:55:36 CET 2004 Kasimier Buchcik - - * xmlschemas.c: Correct symbol space for 'all' and 'choice'. - * xmlschemastypes.c include/xmlschemastypes.h: Added 'replace' - normalization for 'normalizedString'. - Added xmlSchemaWhiteSpaceReplace to the API. - -Thu Nov 11 21:43:02 CET 2004 Daniel Veillard - - * Makefile.am: forgot a $(srcdir) - * encoding.c: stupid error wrong name #157976 - -Wed Nov 10 15:35:25 CET 2004 Daniel Veillard - - * NEWS configure.in doc/*: preparing release of libxml2-2.6.16 - -Wed Nov 10 12:55:18 CET 2004 Daniel Veillard - - * python/generator.py python/libxml.c python/libxml2class.txt - python/libxml_wrap.h python/types.c: Applied patch from Brent - Hendricks adding support for late DTD validation. - * python/tests/Makefile.am python/tests/dtdvalid.py - python/tests/test.dtd: integrated the provided regression test - -Tue nov 9 19:24:31 CET 2004 Dodji Seketeli - - * configure.in: detect when struct sockaddr_storage - has the __ss_family member instead of ss_family and - behave accordingly. We now can use ipv6 on aix. - -Tue Nov 9 17:15:46 CET 2004 Daniel Veillard - - * Makefile.am gentest.py testapi.c: integrated in "make tests" - added -q option, and more conditional features fixes - * catalog.c debugXML.c parser.c testThreads.c xmllint.c - xmlschemastypes.c xmlwriter.cinclude/libxml/catalog.h - include/libxml/debugXML.h: various compilation and conditional - cleanups. - * doc/*: regenerated - -Tue Nov 9 15:59:50 CET 2004 Daniel Veillard - - * gentest.py testapi.c: better handling of conditional features - * HTMLparser.c SAX2.c parserInternals.c xmlwriter.c: more testing - on parser contexts closed leaks, error messages - -Tue Nov 9 10:21:37 GMT 2004 William Brack - - * xpath.c: fixed problem concerning XPath context corruption - during function argument evaluation (bug 157652) - -Mon Nov 8 18:54:52 CET 2004 Daniel Veillard - - * testapi.c: more types. - * parserInternals.c xpath.c: more fixes - -Mon Nov 8 18:16:43 CET 2004 Daniel Veillard - - * gentest.py testapi.c: better parser options coverage - * SAX2.c xpath.c: more cleanups. - -Tue Nov 9 01:50:08 CET 2004 Daniel Veillard - - * testapi.c: trying to fix some optional support brokenness - -Mon Nov 8 17:25:27 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more coverage - * debugXML.c parser.c xmlregexp.c xpath.c: more fixes - -Mon Nov 8 15:02:39 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more coverage - * SAX2.c parser.c parserInternals.c: more fixes - -Mon Nov 8 12:55:16 CET 2004 Daniel Veillard - - * parser.c testapi.c xmlIO.c xmlstring.c: more fixes. - -Mon Nov 8 11:24:57 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more types, more coverage - * parser.c parserInternals.c relaxng.c valid.c xmlIO.c - xmlschemastypes.c: more problems fixed - -Mon Nov 8 10:24:28 HKT 2004 William Brack - - * gentest.py: fixed test file corruption problem - -Sun Nov 7 13:18:05 CET 2004 Daniel Veillard - - * gentest.py testapi.c: fixed typos and avoid Catalogs verbosity - -Sat Nov 6 23:25:16 CET 2004 Daniel Veillard - - * testapi.c: augmented the number of types - -Sat Nov 6 20:24:07 CET 2004 Daniel Veillard - - * HTMLtree.c tree.c xmlreader.c xmlwriter.c: a number of new - bug fixes and documentation updates. - -Sat Nov 6 15:50:11 CET 2004 Daniel Veillard - - * gentest.py testapi.c: augmented type autogeneration for enums - * xpath.c include/libxml/xpath.h: removed direct error reporting. - -Sat Nov 6 14:27:18 CET 2004 Daniel Veillard - - * encoding.c: fixed a regression in iconv support. - -Fri Nov 5 18:19:23 CET 2004 Daniel Veillard - - * gentest.py testapi.c: autogenerate a minimal NULL value sequence - for unknown pointer types - * HTMLparser.c SAX2.c chvalid.c encoding.c entities.c parser.c - parserInternals.c relaxng.c valid.c xmlIO.c xmlreader.c - xmlsave.c xmlschemas.c xmlschemastypes.c xmlstring.c xpath.c - xpointer.c: This uncovered an impressive amount of entry points - not checking for NULL pointers when they ought to, closing all - the open gaps. - -Fri Nov 5 16:26:28 UTC 2004 William Brack - - * catalog.c: fixed problem with NULL entry (bug 157407) - * xpath.c: fixed a couple of warnings (no change to logic) - -Fri Nov 5 15:30:43 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more coverage - * xmlunicode.c: one fix - -Fri Nov 5 23:15:51 CET 2004 Daniel Veillard - - * entities.c: fixed a compilation problem on a recent change - -Fri Nov 5 12:50:09 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more coverage - * nanoftp.c tree.c: more fixes - -Fri Nov 5 11:02:28 CET 2004 Daniel Veillard - - * gentest.py testapi.c: fixed the way the generator works, - extended the testing, especially with more real trees and nodes. - * HTMLtree.c tree.c valid.c xinclude.c xmlIO.c xmlsave.c: a bunch - of real problems found and fixed. - * entities.c: fix error reporting to go through the new handlers - -Thu Nov 4 18:44:56 CET 2004 Daniel Veillard - - * parser.c: dohh ... stupid change killing xmlParseDoc() - -Thu Nov 4 18:32:22 CET 2004 Daniel Veillard - - * gentest.py testapi.c: changing the way the .c is generated, - extending the tests coverage - * include/libxml/nanoftp.h nanoftp.c elfgcchack.h doc/*: fixing some - function signatures, regenerating stuff - * SAX2.c parser.c xmlIO.c: another set of bug fixes and API hardening - -Thu Nov 4 13:32:19 CET 2004 Daniel Veillard - - * gentest.py testapi.c: extending the tests coverage - -Thu Nov 4 11:52:28 CET 2004 Daniel Veillard - - * Makefile.am: gentest.py was missing from the EXTRA_DIST - -Thu Nov 4 11:48:47 CET 2004 Daniel Veillard - - * gentest.py testapi.c: extending the tests coverage - * HTMLtree.c tree.c xmlsave.c xpointer.c: more fixes and cleanups - -Thu Nov 4 00:25:36 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more fixes and extending the tests coverage - * nanoftp.c xmlIO.c: more fixes and hardening - -Wed Nov 3 20:16:24 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more fixes and extending the tests coverage - * valid.c: bunch of cleanups and 2 leaks removed - -Wed Nov 3 18:06:44 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more fixes and extending the tests coverage - * list.c tree.c: more fixes and hardening - -Wed Nov 3 15:19:22 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more fixes and extending the tests coverage - * relaxng.c include/libxml/relaxng.h: adding a type init interface - * include/libxml/xmlerror.h parser.c xmlreader.c xmlwriter.c: more - cleanups and bug fixes raised by the regression tests - -Wed Nov 3 12:49:30 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more fixes and extending the tests coverage - * xmlwriter.c list.c: more hardeing of APIs - * doc/apibuild.py: skip testapi.c when scanning the C files. - -Tue Nov 2 23:09:06 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more testing and coverage - * elfgcchack.h xmlstring.c include/libxml/xmlstring.h: more cleanups - * doc/*: rebuilt - -Tue Nov 2 19:44:32 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more developments on the API testing - * HTMLparser.c tree.c: more cleanups - * doc/*: rebuilt - -Tue Nov 2 15:49:34 CET 2004 Daniel Veillard - - * xmlmemory.c include/libxml/xmlmemory.h: adding xmlMemBlocks() - * Makefile.am gentest.py testapi.c: work on generator of an - automatic API regression test tool. - * SAX2.c nanoftp.c parser.c parserInternals.c tree.c xmlIO.c - xmlstring.c: various API hardeing changes as a result of running - teh first set of automatic API regression tests. - * test/slashdot16.xml: apparently missing from CVS, commited it - -Mon Nov 1 15:54:18 CET 2004 Daniel Veillard - - * xpath.c: fixed an UTF-8 parsing bug reported by Markus Bertheau - on #fedora-devel - -Sun Oct 31 22:03:38 CET 2004 Daniel Veillard - - * parser.c: fixed a bug reported by Petr Pajas on the list and - affecting XML::Libxml - -Sun Oct 31 16:33:54 CET 2004 Daniel Veillard - - * encoding.c doc/examples/testWriter.c: Fixed bug #153937, making - sure the conversion functions return the number of byte written. - Had to fix one of the examples. - -Fri Oct 29 14:16:56 CEST 2004 Daniel Veillard - - * doc/xmllint.1 doc/xmllint.xml: indicate - means stdin closing #156626 - -Fri Oct 29 14:03:36 CEST 2004 Daniel Veillard - - * python/libxml.c: register xmlSchemaSetValidErrors, patch from - Brent Hendricks in the mailing-list - * include/libxml/valid.h HTMLparser.c SAX2.c valid.c - parserInternals.c: fix #156626 and more generally how to find out - if a validation contect is part of a parsing context or not. This - can probably be improved to make 100% sure that vctxt->userData - is the parser context too. It's a bit hairy because we can't - change the xmlValidCtxt structure without breaking the ABI since - this change xmlParserCtxt information indexes. - -Wed Oct 27 19:26:20 CEST 2004 Daniel Veillard - - * ChangeLog NEWS configure.in doc/*: preparing release 2.6.15 - * debugXML.c nanoftp.c xmlschemas.c xmlschemastypes.c: cleanups - -Wed Oct 27 09:31:24 PDT 2004 William Brack - - * uri.c: fixed a stupid mistake in xmlBuildRelativeURI - (bug 156527) - -Wed Oct 27 11:44:35 CEST 2004 Daniel Veillard - - * nanoftp.c nanohttp.c: second part of the security fix for - xmlNanoFTPConnect() and xmlNanoHTTPConnectHost(). - -Tue Oct 26 23:57:02 CEST 2004 Daniel Veillard - - * nanoftp.c: applied fixes for a couple of potential security problems - * tree.c valid.c xmllint.c: more fixes on the string interning checks - -Tue Oct 26 18:09:59 CEST 2004 Daniel Veillard - - * debugXML.c include/libxml/xmlerror.h: added checking for names - values and dictionnaries generates a tons of errors - * SAX2.ccatalog.c parser.c relaxng.c tree.c xinclude.c xmlwriter.c - include/libxml/tree.h: fixing the errors in the regression tests - -Mon Oct 25 16:04:22 PDT 2004 William Brack - - * parser.c: modified the handling of _private for entity - expansion (bug 155816) - -Mon Oct 25 17:11:37 CEST 2004 Daniel Veillard - - * parser.c: fixed the leak reported by Volker Roth on the list - * test/ent10 result//ent10*: added a specific test for the problem - -Sat Oct 23 11:07:41 PDT 2004 William Brack - - * valid.c: unlinked the internal subset within xmlValidateDtd - (bug 141827) - * configure.in: added -Wall to developer's flags - * doc/examples/reader4.res: added to CVS - -Fri Oct 22 16:36:50 CEST 2004 Daniel Veillard - - * HTMLparser.c: added support for HTML PIs #156087 - * test/HTML/python.html result/HTML/python.html*: added specific tests - -Fri Oct 22 15:20:23 CEST 2004 Daniel Veillard - - * threads.c: fixed nasty bug #156087 - -Fri Oct 22 21:04:20 CEST 2004 Daniel Veillard - - * python/libxml.c: fixed a problem occuring only in x86_64 when - very large error messages are raised to the Python handlers. - -Thu Oct 21 18:03:21 CEST 2004 Daniel Veillard - - * xmlschemas.c: fixed a memory bug - * doc/examples/reader4.c doc/examples/*: added test from Graham Bennett - and regenerated the directory - -Tue Oct 19 11:06:39 CEST 2004 Daniel Veillard - - * include/libxml/xmlreader.h xmlreader.c: applied patch from - Graham Bennett adding 4 convenience functions to the reader API. - -Fri Oct 15 11:22:48 PDT 2004 William Brack - - * debugXML.c: excluded a few nodes (with no content) from the - string check routine. - -Fri Oct 15 10:48:30 EDT 2004 Daniel Veillard - - * debugXML.c include/libxml/xmlerror.h: added UTF-8 string checking, - raise a problem, need debug - -Wed Oct 13 02:17:36 CEST 2004 Daniel Veillard - - * python/Makefile.am: applied patch from Thomas Fitzsimmons fixing - #155240 building outside the source tree. but make tests fails. - -Mon Oct 11 16:26:51 CEST 2004 Daniel Veillard - - * debugXML.c include/libxml/xmlerror.h: added namespace checking - -Sat Oct 9 22:36:21 CEST 2004 Daniel Veillard - - * debugXML.c: some framework preparation to add namespace checkings - -Thu Oct 7 15:12:58 CEST 2004 Daniel Veillard - - * debugXML.c include/libxml/debugXML.h include/libxml/xmlerror.h: - adding the tree debug mode - * parser.c relaxng.c tree.c xpath.c: fixing various problems reported - by the debug mode. - * SAX2.c: another tree fix from Rob Richards - -Wed Oct 6 10:50:03 PDT 2004 William Brack - - * catalog.c: small change to last fix, to get xml:base right - -Wed Oct 6 09:33:51 PDT 2004 William Brack - - * catalog.c: added code to handle , including dumping - to output (bug 151924). - * xmlcatalog.c, xmlstring.c, parser.c: minor compiler warning - cleanup (no change to logic) - -Mon Oct 4 16:09:07 CEST 2004 Daniel Veillard - - * configure.in debugXML.c include/libxml/xmlversion.h.in - include/libxml/xmlwin32version.h.in: revamped the XML debugging - module and prepare for a new checking mode - -Mon Oct 4 13:53:24 CEST 2004 Daniel Veillard - - * parser.c: applied patch from Malcolm Tredinnick fixing bug #152426 - -Mon Oct 4 12:26:28 CEST 2004 Daniel Veillard - - * python/generator.py python/libxml.c python/tests/outbuf.py: - applied patch from Malcolm Tredinnick fixing bug #154294 - related to saving to python file objects. - -Sat Oct 2 21:08:51 PDT 2004 William Brack - - * tree.c: changed xmlHasNsProp to properly handle a request for - the default namespace (bug 153557) - -Sat Oct 2 18:18:27 PDT 2004 William Brack - - * parser.c: fixed problem with dictionary handling within - xmlParseInNodeContext (bug 153175) - -Sat Oct 2 15:46:37 PDT 2004 William Brack - - * check-relaxng-test-suite.py, check-relaxng-test-suite2.py, - check-xinclude-test-suite.py, check-xml-test-suite.py, - check-xsddata-test-suite.py, doc/examples/index.py: changed - changed sys.path setting from 'append' to 'insert' (patch - supplied by Malcolm Tredinnick) (bug 153716) - -Sat Oct 2 15:03:14 PDT 2004 William Brack - - * include/libxml/parserInternals.h: added two new macros - IS_ASCII_LETTER and IS_ASCII_DIGIT used with (html) - parsing and xpath for testing data not necessarily - unicode. - * HTMLparser.c, xpath.c: changed use of IS_LETTER_CH and - IS_DIGIT_CH macros to ascii versions (bug 153936). - -Fri Oct 1 20:37:25 PDT 2004 William Brack - - * error.c: added some coding to attempt to display which file - contains an error when using XInclude (bug 152623) - -Thu Sep 30 11:19:17 CEST 2004 Daniel Veillard - - * configure.in: stupid cut'n paste bug in xmllint detection - -Wed Sep 29 17:47:56 CEST 2004 Daniel Veillard - - * configure.in doc/*: releasing 2.6.14, rebuilding the docs - -Wed Sep 29 15:00:11 CEST 2004 Kasimier Buchcik - - * xmlschemas.c include/libxml/xmlerror.h include/libxml/xmlschemas.h - include/libxml/schemasInternals.h: Parsing of - - handle attribute 'mixed', catch illegal attributes. - Parsing of - handle attributes 'abstract', - 'final' and 'block', catch illegal attributes. - Validation of complex types - handle abstract types. - Added handling of default/fixed attributes and element values. - Per validation option attribute nodes/text nodes are created - on the instance. - Added the corresponding constraints for fixed/default. - Added xmlSchemaSetValidOptions, xmlSchemaGetValidOptions - to the external API. - Extended element declaration constraints. - Got rid of perseverative creation of temporery validation/parser - contexts. - Added handling of xsi:schemaLocation and - xsi:noNamespaceSchemaLocation. - Fixed xsi:type component resolution if using non-prefixed - QNames. - * xmlregexp.c xmlschemas.c include/libxml/xmlautomata.h: - Enabled namespace awareness of the content model if using the - model group "all". - * test/schemas/bug152470_1.xsd: Removed an "abstract" attribute, - which broke the test. - * xstc/xstc.py: Workaround to accomodate case insensitive - test definitions in ms-test.def.xml (was missing in a previous - commit). - -Wed Sep 29 11:03:10 CEST 2004 Daniel Veillard - - * python/drv_libxml2.py: another patch from Malcolm Tredinnick - adding option not to load dtd from the drv_libxml2.py module - #134633 - -Tue Sep 28 14:30:22 CEST 2004 Daniel Veillard - - * acconfig.h config.h.in configure.in xmlIO.c xmlregexp.c xmlschemas.c - xmlschemastypes.c: another patch from Malcolm Tredinnick fixing - warning generated by the Nonstop Kernel Open System Services - compiler #151710 - -Tue Sep 28 13:07:37 CEST 2004 Daniel Veillard - - * python/libxml.py: applied patch from Malcolm Tredinnick fixing - python exception hierarchy #139824 - -Sun Sep 26 16:40:24 CEST 2004 Daniel Veillard - - * valid.c TODO: applied patch from Malcolm Tredinnick fixing errata - E20 concerning NMTOKENS and co. validation #153722 - * result/VC/AttributeNmtokens test/VC/AttributeNmtokens - test/VCM/AttributeNmtokens.xml: also added tests from Malcolm - -Sun Sep 26 16:24:44 CEST 2004 Daniel Veillard - - * xstc/xstc.py: applied patch from Malcolm Tredinnick fixing space/tabs - #153713 - * xpath.c: fixed a realloc potential problem - -Fri Sep 24 16:14:12 CEST 2004 Daniel Veillard - - * Makefile.am: fixed make valgrind xstc - -Thu Sep 23 18:23:46 CEST 2004 Daniel Veillard - - * xmlschemastypes.c: fixing an out of bound adressing issue - -Thu Sep 23 15:14:12 CEST 2004 Daniel Veillard - - * HTMLparser.c parser.c relaxng.c xmlschemas.c: more memory related - code cleanups. - -Thu Sep 23 01:04:30 CEST 2004 Daniel Veillard - - * parser.c: fixed a bunch of errors when realloc failed. - -Wed Sep 22 23:56:05 CEST 2004 Daniel Veillard - - * threads.c uri.c: couple of memory fixes from Mark Vakoc reported - by Purify on Windows. - -Mon Sep 20 22:01:47 CEST 2004 Daniel Veillard - - * xmllint.c: added --timing --copy timing for the copy - * vms/build_libxml.com: applied patch from Craig Berry - to build with recent releases - -Fri Sep 17 21:25:33 PDT 2004 William Brack - - * nanohttp.c, include/libxml/nanohttp.h: added the routine - xmlNanoHTTPContentLength to the external API (bug151968). - * parser.c: fixed unnecessary internal error message (bug152060); - also changed call to strncmp over to xmlStrncmp. - * encoding.c: fixed compilation warning (bug152307). - * tree.c: fixed segfault in xmlCopyPropList (bug152368); fixed - a couple of compilation warnings. - * HTMLtree.c, debugXML.c, xmlmemory.c: fixed a few compilation - warnings; no change to logic. - -Fri Sep 17 10:40:23 CEST 2004 Daniel Veillard - - * parser.c: removed some extern before function code reported by - Kjartan Maraas on IRC - * legacy.c: fixed compiling when configuring out the HTML parser - * Makefile.am: added a declaration for CVS_EXTRA_DIST - * HTMLparser.c: beginning of an attempt at cleaning up the construction - of the HTML parser data structures, current data generate a huge - amount of ELF relocations at loading time. - -Fri Sep 17 10:36:23 CEST 2004 Daniel Veillard - - * ChangeLog: applied fix from Stepan Kasal to fix duplication - in the change log and cleanup of space/tabs issues. - -Thu Sep 16 13:24:27 CEST 2004 Kasimier Buchcik - - * xmlschemas.c include/libxml/schemasInternals.h - test/schemas/bug152470_1.* result/schemas/bug152470_1_1*: - Simpified attribute wildcard creation and assignment to get rid - of memory leaks. - Restructured the validation process. - Restructured and expanded parsing of . - Added initial handing of xsi:type. - Advanced handling of xsi:nil (should work now for simple types). - Added construction of schemata using xsi:schemaLocation and - xsi:noNamespaceSchemaLocation; this is not enabled, since - no corresponding API exists yet. - Moved the content model to complex type components. - Resolution of types for attributes will look for simple types - only (incl. all the built-in simple types). - Extended parsing of 'anyAttribute'. - Fixed content-type type for complex types if derived from - 'anyType' using the short-hand form (see bug # 152470, - submitted by Thilo Jeremias). - * include/libxml/xmlschematypes.h: Cleaned up some comments. - * xstc/xstc.py: Workaround to accomodate case insensitive - test definitions in ms-test.def.xml. - * result/schemas/deter0_0_0.err result/schemas/ns0_0_2.err - result/schemas/ns0_1_2.err: Adapted. - -Sat Sep 11 09:04:22 PDT 2004 William Brack - - * xmlwriter.c: changed char array initialisation to avoid a - complaint from some compiler(s) (bug 152308) - -Thu Sep 9 07:22:11 PDT 2004 William Brack - - * encoding.c: applied fixes for the UTF8ToISO8859x transcoding - routine suggested by Mark Itzcovitz - -Wed Sep 8 22:50:27 CEST 2004 Daniel Veillard - - * valid.c xmlsave.c: fixed 2 problems raised by #152140, one - which is that notation not in the internal subset should - not be saved, and the second more nasty on an error saving - NOTATIONs, if there is a proof that nobody uses notations ! - -Wed Sep 8 11:04:27 CEST 2004 Kasimier Buchcik - - * xmlschemas.c include/libxml/xmlschemas.h: Added the function - xmlSchemaValidateOneElement to the XML Schema validation API, - as proposed by Jeffrey Fink - see bug # 152073. - -Tue Sep 7 11:10:36 CEST 2004 Daniel Veillard - - * configure.in doc/Makefile.am xstc/Makefile.am: some cleanup - checking for xmllint and xsltproc in configure.in, fixed - make dist w.r.t. the new xstc subdir. - * doc/*: rebuilt - -Mon Sep 6 16:42:59 CEST 2004 Kasimier Buchcik - - * xstc/xstc.py: Changed to finally validate instance documents. - -Mon Sep 6 16:04:01 CEST 2004 Daniel Veillard - - * xstc/Makefile.am Makefile.am: integrated to "make valgrind", - heavy ... weight 250MB of VM ! - -Mon Sep 6 14:54:39 CEST 2004 Daniel Veillard - - * xstc/Makefile.am xstc/xstc-to-python.xsl xstc/xstc.py Makefile.am: - more cleanup in integrating the xstc testsuite - -Mon Sep 6 13:56:28 CEST 2004 Daniel Veillard - - * Makefile.am configure.in xstc/.cvsignore xstc/Makefile.am: - starting to integrate the xstc suite in the normal regression - tests - -Mon Sep 6 13:14:11 CEST 2004 Kasimier Buchcik - - * xstc/sun-test-def.xml: The "tsDir" attribute was not - set correctly. - -Mon Sep 6 11:52:50 CEST 2004 Daniel Veillard - - * check-xinclude-test-suite.py: when output and expected do not match - exactly run diff to put the differences in the log c.f. #148691 - -Mon Sep 6 11:17:35 CEST 2004 Kasimier Buchcik - - * xstc/xstc-to-python.xslt xstc/ms-test-def.xml xstc/nist-test-def.xml - xstc/sun-test-def.xml: Initial release of generation files to - create python test scripts, which will run the W3C XML Schema Test - Collection. The ms-test-def.xml and sun-test-def.xml files - were extracted from the online HTML XSTC results [1], since they did - not exist for the SUN tests, and only partially did exist for the - MS tests. The NIST definition file was created by concatenation - of the existing definition files for each single datatype. - The stylesheet "xstc-to-python.xslt" should be run against the - definition files to produce the python scripts. - [1] "http://www.w3.org/XML/2001/05/xmlschema-test-collection/ - results-master.html" - -Fri Sep 3 20:29:59 CEST 2004 Kasimier Buchcik - - * xmlschemas.c include/libxml/schemasInternals.h - include/libxml/xmlerror.h: Fixed a seg fault in xmlGetQNameProp: - a format argument was missing. - Fixed wrong assignment of the owner of a wildcard in - xmlSchemaBuildAttributeValidation (in the shorthandform of - ; this caused a seg fault, due to a double-free - of the wildcard. - Added a check for circular attribute group references. - Added a check for circular model group definition references. - Fixed a dublicate xmlParserErrors enum value - see bug #151738. - -Fri Sep 3 10:08:13 PDT 2004 William Brack - - * xmlstring.c: modified comments on xmlGetUTF8Char in - response to bug 151760 (no change to logic) - -Tue Aug 31 09:46:18 PDT 2004 William Brack - - * xmlstring.c: fixed error reported on the list caused by - my last change - -Tue Aug 31 15:41:52 CEST 2004 Daniel Veillard - - * NEWS configure.in doc/*: release of libxml2-2.6.13 - -Tue Aug 31 14:14:30 CEST 2004 Daniel Veillard - - * xmlIO.c: fixing #151456, an encoding error could generate - a serialization loop. - -Tue Aug 31 11:34:04 CEST 2004 Daniel Veillard - - * Makefile.am: also produce a tar ball with just the sources - * xmllint.c: added --path option and --load-trace options to - xmllint, RFE #147740 based on xsltproc versions - * doc/xmllint.* doc/*: updated the man page and rebuilt - -Tue Aug 31 10:37:23 CEST 2004 Daniel Veillard - - * xmlschemastypes.c: "" is a valid hexbinary string dixit xmlschema-dev - * result/schemas/hexbinary_0_1.err test/schemas/hexbinary_1.xml: - update the test. - * test/ns5 result//ns5*: added a test for the namespace bug fixed - in previous commit. - * Makefile.am: added a message in the regression tests - -Mon Aug 30 23:36:21 PDT 2004 William Brack - - * SAX2.c: fixed bug introduced during OOM fixup causing problems - with default namespace when a named prefix with the same href - was present (reported on the mailing list by Karl Eichwalder. - * xmlstring.c: modified xmlCheckUTF8 with suggested code from - Julius Mittenzwei. - * dict.c: added a typecast to try to avoid problem reported by - Pascal Rodes. - -Mon Aug 30 12:45:46 CEST 2004 Kasimier Buchcik - - * xmlschemas.c: Fixed a bug in xmlSchemasCheckFacet, which did - not create a computed value on a facet and thus crashed during - validation of instances. - Expanded validity checks for min/maxOccurs attributes. - Expanded validity checks for the value of the attribute "form". - -Fri Aug 27 18:32:24 PST 2004 William Brack - - * xmlstring.c: fixed a problem with xmlCheckUTF8 reported on the - mailing list by Julius Mittenzwei - -Fri Aug 27 00:13:39 CEST 2004 Daniel Veillard - - * libxml.spec.in: added BuildRequires: zlib-devel, fixes - Red Hat bug #124942 - -Thu Aug 26 12:27:23 CEST 2004 Daniel Veillard - - * parser.c: remove a warning on Solaris - * xmlschemastype.c: fix a crashing bug #151111 - -Wed Aug 25 22:20:18 CEST 2004 Kasimier Buchcik - - * test/schemas/import-bad-1_0.imp: Added missing test file. - * xmlschemas.c include/libxml/xmlerror.h include/libxml/xmlschemas.h: - Substituted the obsolete xmlSchemaValidError(s) for xmlParserErrors - - see #150840. - Changed the import of schemas to allow failure of location - of a resource to be imported. - * result/schemas/all_* result/schemas/any3_0_0.err - result/schemas/choice_* result/schemas/import1_0_0.err - result/schemas/list0_0_1.err result/schemas/list0_1_0.err - result/schemas/list0_1_1.err result/schemas/ns0_0_2.err - result/schemas/ns0_1_2.err: Adapted regression test results. - -Tue Aug 24 20:49:15 MDT 2004 John Fleck - - * doc/tutorial/xmltutorial.xml, xmltutorial.pdf, *.html - fix Xpath memory leak (thanks to sKaBoy and William Brack) - -Tue Aug 24 21:10:59 CEST 2004 Igor Zlatkovic - - * parser.c: fixed path problem in DTD loading reported by - Sameer Abhinkar - -Tue Aug 24 16:40:51 CEST 2004 Igor Zlatkovic - - * win32/configure.js: added support for version extra - * win32/Makefile.*: upgraded to zlib 1.2.1 - -Mon Aug 23 14:33:54 CEST 2004 Daniel Veillard - - * configure.in: removing -O -g from default gcc flags #150828 - -Sun Aug 22 16:26:46 CEST 2004 Daniel Veillard - - * configure.in doc/* NEWS: preparing 2.6.12 release, updated and - and rebuilt the docs. - -Sun Aug 22 16:07:20 CEST 2004 Daniel Veillard - - * python/libxml.c: fix a problem on last commit - -Sun Aug 22 15:16:53 CEST 2004 Daniel Veillard - - * xmllint.c xpath.c include/libxml/xpath.h - include/libxml/xpathInternals.h python/libxml.c - python/libxml_wrap.h: trying to remove some warning when compiling - on Fedora Core 3 and 64bits - -Sat Aug 21 0:035:10 CET 2004 Kasimier Buchcik - - * xmlschemas.c: modified parsing of , , , - , , , . - Fixed schema defaults (elementFormDefault, etc.) for included - schemas. - Fixed a bug which reported attributes as invalid on - elements declarations with the built-in type 'anyType'. - Added "lax" validation of the content of elements of type - 'anyType'. - Fixed: element declarations with the same name were treated - as duplicate if located in the subtree of -> . - (This was bug 150623, submitted by Roland Lezuo) - Fixed cleanup of error codes in xmlSchemaValidateDoc as proposed - by Igor Kapitanker. (This was bug 150647, submitted by Igor - Kapitanker) - * xmlschemastypes.c: Changed the type of anyType to - XML_SCHEMAS_ANYTYPE. - * include/libxml/xmlerror.h: Added schema parser errors. - * result/schemas/bug145246_0_0* - result/schemas/extension1_0_2.err: Changed test results. - * result/schemas/ct-sc-nobase_0_0* - result/schemas/facet-whiteSpace_0_0* - result/schemas/import1_0_0* result/schemas/import2_0_0* - result/schemas/include2_0_0* result/schemas/include3_0_0* - result/schemas/restriction-attr1_0_0* - result/schemas/seq-dubl-elem1_0_0* - result/schemas/xsd-list-itemType_0_0*: Added new rest results. - test/schemas/bug145246.xsd.imp test/schemas/ct-sc-nobase_0* - test/schemas/facet-whiteSpace_0* test/schemas/import1_0* - test/schemas/import2_0* test/schemas/include2_0* - test/schemas/include3_0* test/schemas/restriction-attr1_0* - test/schemas/seq-dubl-elem1_0* test/schemas/xml.xsd - test/schemas/xsd-list-itemType_0*: Added new tests and missing - files. - -Fri Aug 20 18:51:36 CEST 2004 Daniel Veillard - - * Makefile.am configure.in: a bit of cleanup and a extra variable for - CVS dist - -Thu Aug 19 07:44:07 MDT 2004 John Fleck - - * doc/xmllint.xml, xmllint.1, xmllint.html: - Edit and rebuild the man pages with Daniel's C14 update - -Wed Aug 18 19:15:27 PDT 2004 William Brack - - * parser.c: fixed missing line numbers on entity as reported - on the list by Steve Cheng - -Wed Aug 18 14:04:31 PDT 2004 William Brack - - * configure.in globals.c include/libxml/xmlversion.h.in - include/libxml/xmlwin32version.h.in: added some code to - include the CVS ChangeLog version in the xmlParserVersion - string (printed by xmllint with --version) - -Wed Aug 18 11:14:06 CEST 2004 Daniel Veillard - - * xmlschemas.c include/libxml/xmlschemas.h python/generator.py - python/libxml.c python/libxml_wrap.h python/types.c - python/tests/schema.py python/tests/Makefile.am: Applied patch - from Torkel Lyng to add Schemas support to the Python bindings - and extend the schemas error API, registered a new test. - * doc/* elfgcchack.h: rebuilt to regenerate the bindings - -Mon Aug 16 14:36:25 CEST 2004 Daniel Veillard - - * debugXML.c: added help for new set shell command - * xinclude.c xmllint.c xmlreader.c include/libxml/parser.h: - added parser option to not generate XInclude start/end nodes, - added a specific option to xmllint to test it fixes #130769 - * Makefile.am: regression test the new feature - * doc/xmllint.1 doc/xmllint.xml: updated man page to document option. - -Mon Aug 16 02:42:30 CEST 2004 Daniel Veillard - - * xmlIO.c: small typo pointed out by Mike Hommey - * doc/xmllint.xml, xmllint.html, xmllint.1: slightly improved - the --c14n description, c.f. #144675 . - * nanohttp.c nanoftp.c: applied a first simple patch from - Mike Hommey for $no_proxy, c.f. #133470 - * parserInternals.c include/libxml/parserInternals.h - include/libxml/xmlerror.h: cleanup to avoid 'error' identifier - in includes #137414 - * parser.c SAX2.c debugXML.c include/libxml/parser.h: - first version of the inplementation of parsing within - the context of a node in the tree #142359, new function - xmlParseInNodeContext(), added support at the xmllint --shell - level as the "set" function - * test/scripts/set* result/scripts/* Makefile.am: extended - the script based regression tests to instrument the new function. - -Sat Aug 14 18:53:08 MDT 2004 John Fleck - - * doc/xmllint.xml, xmllint.html, xmllint.1: - add c14n to man page (man, it's hard to keep up with - Daniel!) - -Sat Aug 14 18:45:38 MDT 2004 John Fleck - - * doc/xmllint.xml, xmllint.html, xmllint.1: - add pattern, walker, maxmem, output and xmlout to man page - fixes #144675 - -Sun Aug 15 00:41:12 CEST 2004 Daniel Veillard - - * xmllint.c: added a --c14n option to canonicalize the output - should close the RFE #143226 - -Sat Aug 14 23:50:10 CEST 2004 Daniel Veillard - - * tree.c: Dodji pointed out a bug in xmlGetNodePath() - * xmlcatalog.c: applied patch from Albert Chin to add a - --no-super-update option to xmlcatalog see #145461 - and another patch also from Albert Chin to not crash - on -sgml --del without args see #145462 - * Makefile.am: applied another patch from Albert Chin to - fix a problem with diff on Solaris #145511 - * xmlstring.c: fix xmlCheckUTF8() according to the suggestion - in bug #148115 - * python/libxml.py: apply fix from Marc-Antoine Parent about - the errors in libxml(2).py on the node wrapper #135547 - -Sat Aug 14 13:18:57 CEST 2004 Daniel Veillard - - * Makefile.am: added a dumb rule to able to compile tst.c - when people submit a sample test program - * xmlschemas.c: applied small patch from Eric Haszlakiewicz - to document xmlSchemasSetValidErrors() limitations, #141827 - * error.c: Add information in generic and structured error - setter functions that this need to be done per thread #144308 - * xmlsave.c: fixed bug whith missing NOTATION(s) serialization - bug #144162 - * doc/xmllint.xml: typo fix #144840 - -Tue Aug 10 07:19:31 PDT 2004 Daniel Veillard - - * configure.in xmlregexp.c xmlschemas.c xmlschemastypes.c - include/libxml/schemasInternals.h include/libxml/xmlerror.h - include/libxml/xmlschemastypes.h: applied Schemas patches - from Kasimier Buchcik - * test/ result/ bug141333* annot-err* any[1-4]* bug145246* - element-err* element-minmax-err* include1* restrict-CT-attr-ref*: - lot of new tests for things fixed by the patch - -Fri Aug 6 09:22:34 PDT 2004 William Brack - - * valid.c: fixed my mis-handling of External ID on last - change. - -Wed Aug 4 23:40:21 PDT 2004 William Brack - - * valid.c: changed the parsing of a document's DTD to use - the proper base path (bug 144366) - -Wed Aug 4 16:58:08 CEST 2004 Daniel Veillard - - * Makefile.am config.h.in configure.in python/Makefile.am: - applied a patch from Gerrit P. Haase to get python bindings - on Cygwin - -Tue Aug 3 15:08:22 PDT 2004 William Brack - - * include/libxml/valid.h: elaborated on description of - xmlValidityWarningFunc and xmlValidityErrorFunc (bug - 144760) - * xmlIO.c, xmlschemastypes.c, include/libxml/schemasinternals.h: - minor fixes to comments for doc rebuilding errors. - * doc/*.html: rebuilt the docs - -Tue Aug 3 23:59:23 CEST 2004 Daniel Veillard - - * doc/ChangeLog.xsl doc/downloads.html doc/xml.html doc/*: - fixes documentation glitches raised by Oliver Stoeneberg - -Tue Aug 3 09:42:31 PDT 2004 William Brack - - * tree.c: fixed problem with memory leak on text nodes in DTD - (bug 148965) with patch provided by Darrell Kindred - -Tue Aug 3 08:14:44 PDT 2004 William Brack - - * HTMLparser.c: fixed initialisation problem for htmlReadMemory - (bug 149041) - -Sat Jul 31 11:01:33 PDT 2004 William Brack - - * doc/buildDocBookCatalog: enhanced per bug 119876. Further - info posted to the mailing list. - -Sat Jul 31 09:12:44 PDT 2004 William Brack - - * SAX2.c, encoding.c, error.c, parser.c, tree.c, uri.c, xmlIO.c, - xmlreader.c, include/libxml/tree.h: many further little changes - for OOM problems. Now seems to be getting closer to "ok". - * testOOM.c: added code to intercept more errors, found more - problems with library. Changed method of flagging / counting - errors intercepted. - -Fri Jul 30 13:57:55 CEST 2004 Daniel Veillard - - * tree.c: applied a couple of patch one from Oliver Stoeneberg - and another one from Rob Richards fixing #148448 - -Thu Jul 29 13:20:28 CEST 2004 Daniel Veillard - - * HTMLparser.c: 1 line patch, apparently htmlNewDoc() was not - setting doc->charset. - -Thu Jul 29 00:05:58 PDT 2004 William Brack - - * SAX2.c, tree.c, uri.c, xmlIO.c, xmlreader.c: further - fixes for out of memory condition, mostly from Olivier - Andrieu. - * testOOM.c: some further improvement by Olivier, with - a further small enhancement for easier debugging. - -Tue Jul 27 00:34:07 PDT 2004 William Brack - - * SAX2.c, error.c, parser.c, tree.c, xmlreader.c: - implemented patches supplied by Olivier Andrieu - (bug 148588), plus made some further enhancements, to - correct some problems with out of memory conditions. - * testOOM.c: improved with patches from Olivier Andrieu - -Mon Jul 26 11:03:18 PDT 2004 William Brack - - * tree.c: put in patch for Windows buffer re-allocation - submitted by Steve Hay (bug 146697) - -Sun Jul 25 17:18:39 PDT 2004 William Brack - - * xinclude.c: added some code to check, when an include is - done, whether the requested URL gets mapped to some other - location (e.g. with a catalog entry) and, if so, take care - of the xml:base properly (bug 146988) - -Sun Jul 25 14:02:24 PDT 2004 William Brack - - * error.c: fixed to assure user data param is set correctly - when user structured error handler is called (bug 144823) - -Thu Jul 22 10:14:48 PDT 2004 William Brack - - * xmlreader.c: fixed problem with reader state after - processing attributes (bug 147993) - -Wed Jul 21 17:04:27 HKT 2004 William Brack - - * configure.in, Makefile.am: put in an auto* check for the - path to perl (if it exists), and modified make Timingtests - to use that path instead of just executing the dbgenattr.pl - script (bug 148056) - -Fri Jul 16 18:36:33 HKT 2004 William Brack - - * python/generator.py: added a check on the argument for some - classes (e.g. xmlDoc and xmlNode) to prevent a segfault (as - reported on the list). Further enhancement should be done - to auto-create the appropriate object. - * python/libxml.c: minor fix for a warning message; added a - routine, currently not used, to report the description of a - PyCObject. - * python/libxml2class.txt: regenerated - -Fri Jul 16 11:01:40 CEST 2004 Daniel Veillard - - * catalog.c test/catalogs/white* result/catalogs/white*: - applied patches from Peter Breitenlohner to fix handling - of white space normalization in public ids and add tests - -Tue Jul 13 17:24:13 CEST 2004 Daniel Veillard - - * xmlmemory.c: applied a small fix from Steve Hay - -Tue Jul 13 23:02:19 HKT 2004 William Brack - - * xpath.c: Added code to in PREDICATE/FILTER handling to reset - the xpath context document pointer (part of fix to libxslt - bug 147445) - -Tue Jul 13 00:14:08 HKT 2004 William Brack - - * python/libxml.py: ran 'expand' on the file to get rid of mixture - of tabs and spaces (bug 147424) - -Sun Jul 11 22:38:29 HKT 2004 William Brack - - * python/drv_libxml.py: added an encoding "special comment" to avoid - warning message in python2.3 (bug 146889) - * Makefile.am, python/Makefile.am, python/tests/Makefile.am: small - change to make "make tests" a little quieter (MAKEFLAGS+=--silent) - * xpath.c: enhanced to take advantage of current libxslt handling - of tmpRVT. Fixes bug 145547. - -Fri Jul 9 14:02:54 CEST 2004 Daniel Veillard - - * libxml.h uri.c: fixed a couple of problems in the new - elfgcchack.h trick pointed by Peter Breitenlohner - -Wed Jul 7 00:45:48 CEST 2004 Daniel Veillard - - * elfgcchack.h doc/apibuild.py doc/libxml2-api.xml: fixed a bug - which prevented building with --with-minimum - -Mon Jul 5 19:43:51 CEST 2004 Daniel Veillard - - * configure.in doc/*: releasing 2.6.11, updated and regenerated the - docs - -Mon Jul 5 18:43:47 CEST 2004 Daniel Veillard - - * parser.c: make the push interfaces synchronous - * python/tests/sync.py: added a specific test - * python/tests/Makefile.am doc/examples/Makefile.am - doc/examples/index.py: added the new test, cleaning up - "make tests" output - -Mon Jul 5 15:09:17 CEST 2004 Daniel Veillard - - * xmlschemas.c: applied patch from Kasimier to fix some Relax-NG - datatype facet problem with recent changes. - -Sat Jul 3 11:31:02 HKT 2004 William Brack - - * python/libxml.c: Changed the number of XPath extension functions - allowed to be variable-length (patch supplied by Marc-Antoine - Parent, bug 143805). Added code to "unregister" the functions - when the parser cleanup takes place. - -Fri Jul 2 14:22:14 CEST 2004 Daniel Veillard - - * xmlmemory.c python/libxml.c python/libxml2-python-api.xml: - some updates with memory debugging facilities while messing - with libxslt python bindings - -Thu Jul 1 14:53:36 CEST 2004 Daniel Veillard - - * python/libxml.c python/generator.py python/libxml.py - python/libxml2-python-api.xml python/libxml2class.txt: - applied patch from Stéphane Bidoul to fix some Python bindings - initialization, then had to change the parserCleanup() - to handle memory released there. - * xmlmemory.c: added more debugging comments. - -Thu Jul 1 13:18:02 CEST 2004 Daniel Veillard - - * xmlreader.c: seems the reader buffer could be used while not - allocated, fixes bug #145218 - -Thu Jul 1 11:34:10 CEST 2004 Daniel Veillard - - * python/generator.py: do not provide functions used as destructor - of classes as public methods to avoid double-free problem like - in bug #145185 - -Wed Jun 30 19:45:23 HKT 2004 William Brack - - * xmlschemas.c, xmlschemastypes.c: warning message cleanup. - Now compiles warning-free, all tests passed. - * SAX2.c: small change to comments for documentation. - No change to logic. - -Tue Jun 29 15:00:13 PDT 2004 Daniel Veillard - - * xmlschemas.c: more fixes with Kasimier, looks far cleaner :-) - -Tue Jun 29 23:00:05 CEST 2004 Daniel Veillard - - * xmlschemas.c: Kasimier Buchcik fixed the memory access and - allocation problem - -Tue Jun 29 19:00:32 CEST 2004 Daniel Veillard - - * xmlschemas.c xmlschemastypes.c include/libxml/xmlerror.h - include/libxml/schemasInternals.h include/libxml/xmlschemastypes.h: - applied Schemas patches from Kasimier Buchcik, there is still - one open issue about referencing freed memory. - * test/schemas/* result/schemas/*: updated with new tests from - Kasimier - -Tue Jun 29 14:52:18 CEST 2004 Daniel Veillard - - * include/libxml/globals.h include/libxml/xmlIO.h - doc/libxml2-api.xml doc/libxml2-refs.xml: moved some definitions - to globals.h to avoid some troubles pointed out by Rob Richards - -Mon Jun 28 11:25:31 CEST 2004 Daniel Veillard - - * libxml.m4: applied changes suggested by Mike Hommey, remove - libxml1 support and use CPPFLAGS instead of CFLAGS - -Sun Jun 27 14:17:15 CEST 2004 Daniel Veillard - - * libxml.spec.in: another, more 'experimental' feature to - get compiler optimization based on gcc runtime profiling - -Sun Jun 27 14:02:36 CEST 2004 Daniel Veillard - - * elfgcchack.h doc/elfgcchack.xsl libxml.h: hack based on Arjan van de - Ven suggestion to reduce ELF footprint and generated code. Based on - aliasing of libraries function to generate direct call instead of - indirect ones - * doc/libxml2-api.xml doc/Makefile.am doc/apibuild.py: added automatic - generation of elfgcchack.h based on the API description, extended - the API description to show the conditionals configuration flags - required for symbols. - * nanohttp.c parser.c xmlsave.c include/libxml/*.h: lot of cleanup - * doc/*: regenerated the docs. - -Sun Jun 27 10:02:28 HKT 2004 William Brack - - * regressions.py, regressions.xml: new files for running - regression tests under Python. Not yet complete, but - should provide good testing under both Linux and Windows. - * testHTML.c, testSAX.c, xmllint.c: changed the 'fopen' used - for --push testing to include the 'rb' param when compiled - under Windows. - -Fri Jun 25 13:38:57 HKT 2004 William Brack - - * uri.c: fixed a problem when base path was "./xxx" - * result/XInclude/*: 5 test results changed by above. - * Makefile.am: fixed a couple of spots where a new - result file used different flags that the testing one. - -Thu Jun 24 16:27:44 HKT 2004 William Brack - - * valid.c: suppressed warnings from within xmlValidGetValidElements - (bug 144644) - * doc/examples/testWriter.c: corrected typo in comment for ISO-8859-1 - (bug 144245) - -Thu Jun 24 10:17:31 HKT 2004 William Brack - - * valid.c: implemented bugfix from Massimo Morara for DTD - dumping problem. - * test/valid/t10.xml, result/valid/t10.*: added regression - for above - * configure.in: small change for my profile settings - -Wed Jun 23 20:18:19 MDT 2004 John Fleck - - * doc/xmlcatalog_man.xml, xmlcatalog.1 - Docs patch from Ville Skytta, bugzilla #144841 - -Sat Jun 19 18:34:11 MDT 2004 John Fleck - - * doc/xmllint.xml, xmllint.html, xmllint.1 - update man page to reflect William's newly disciplined return - code mojo - -Thu Jun 17 00:51:55 CEST 2004 Daniel Veillard - - * doc/examples/io2.c doc/examples/parse4.c: fixing a couple of - compilation errors when configured with --with-minimum - -Wed Jun 16 16:07:10 CEST 2004 Daniel Veillard - - * debugXML.c: applied patch from Stefano Debenedetti to register - namespaces in the debug shell - -Mon Jun 14 21:56:31 CEST 2004 Daniel Veillard - - * xmlreader.c: fix from Steve Ball and update of the comment. - * Makefile.am result/errors/*.str: William pointed out that - the streaming error checking part wasn't streaming, fixing - -Mon Jun 14 14:11:52 CEST 2004 Daniel Veillard - - * catalog.c: patch from Igor for the default catalog path on Windows - -Sat Jun 12 09:03:57 HKT 2004 William Brack - - * configure.in: apparently wasn't updated last time - -Thu Jun 10 20:57:48 HKT 2004 William Brack - - * configure.in, xmlmemory.c, globals.c: fixed problem when - configuring using --with-thread-alloc - -Wed Jun 9 16:31:24 CEST 2004 Igor Zlatkovic - - * win32/configure.js win32/Makefile.* minor changes for the new - layout of the Windows binary package - -Tue Jun 8 19:50:25 CEST 2004 Daniel Veillard - - * xmlschemas.c include/libxml/xmlerror.h: applied another patch - from Kasimier Buchcik for Schema Component Constraints - * test/schemas/* result/schemas/*: added the regression tests - -Tue Jun 8 21:27:03 HKT 2004 William Brack - - * xmllint.c: fixed missing error return code for schema - validation (bug 143880), also changed over to an enum for - defining the error return codes for all conditions. - -Tue Jun 8 14:01:14 CEST 2004 Daniel Veillard - - * parser.c xmlreader.c include/libxml/parser.h: fixed a serious - problem when substituing entities using the Reader, the entities - content might be freed and if rereferenced would crash - * Makefile.am test/* result/*: added a new test case and a new - test operation for the reader with substitution of entities. - -Tue Jun 8 12:14:16 CEST 2004 Daniel Veillard - - * globals.c xmlIO.c include/libxml/globals.h include/libxml/xmlIO.h: - applied patch from Rob Richards for the per thread I/O mappings - -Tue Jun 8 09:58:31 HKT 2004 William Brack - - * xinclude.c: some further enhancement to take care of - xml:base for XPointer elements (bug 143886). Also fixed - a problem when xml:base was already specified on an - XInclude'd element. - -Mon Jun 7 22:14:58 HKT 2004 William Brack - - * relaxng.c: fixed a problem with internal cleanup of
element - (bug 143738). - -Mon Jun 7 16:57:43 HKT 2004 William Brack - - * uri.c, include/libxml/uri.h: added a new routine - xmlBuildRelativeURI needed for enhancement of xinclude.c - * xinclude.c: changed handling of xml:base (bug 135864) - * result/XInclude/*: results of 5 tests changed as a result - of the above change - -Fri Jun 4 11:27:37 CEST 2004 Daniel Veillard - - * test/schemas/* result/schemas/*: added a bunch of tests from - Kasimier Buchcik posted on May 11 - -Thu Jun 3 17:58:25 CEST 2004 Daniel Veillard - - * xmlschemas.c: new patch from Kasimier Buchcik for processContents - of wildcards attribute handling - * test/schemas/anyAttr-* result/schemas/anyAttr-*: added specific - regression tests - -Thu Jun 3 13:20:36 CEST 2004 Daniel Veillard - - * parser.c: fixed a bug where invalid charrefs may not be detected - sometimes as pointed by Morus Walter. - * test/errors/charref1.xm result/errors/charref1.xml*: added the - test in the regression suite. - -Thu Jun 3 18:38:27 HKT 2004 William Brack - - * xmlschemas.c: small change to xmlSchemaValidateAttributes, - also corrected typo on error code enum. - * include/libxml/xmlerror.h: corrected typo on schema error - code enum - -Thu Jun 3 10:12:38 HKT 2004 William Brack - - * xmlschemas.c: minor cosmetic changes, no change to logic. - * result/schemas/attruse_0_[12].err: regenerated - * globals.c: added a newline at end to make gcc happy - -Wed Jun 2 21:16:26 CEST 2004 Daniel Veillard - - * xmlschemas.c include/libxml/schemasInternals.h - include/libxml/xmlerror.h: applied a patch from Kasimier Buchcik - implementing attribute uses and wildcards. - * test/schemas/* result/schemas/*: added/fixed a bunch of tests - -Wed Jun 2 18:15:51 CEST 2004 Daniel Veillard - - * globals.c xmlIO.c include/libxml/globals.h: applied patch from - Rob Richards for custom I/O BufferCreateFilenane fixes bug - #143366 - -Wed Jun 02 16:25:32 HKT 2004 William Brack - - * xpath.c: fixed problem with predicate evaluation on an - empty nodeset (bug 143409) - -Wed Jun 02 11:26:41 HKT 2004 William Brack - - * testSAX.c: fixed problem with attribute listing (bug 142674) - and added macro LIBXML_TEST_VERSION to assure xmlInitParser - gets called (bug 142686) - -Sat May 29 21:35:52 CEST 2004 Daniel Veillard - - * test/schemas/date_0.xml xmlschemastypes.c: applied a patch from - Charles Bozeman fixing a side effect in date handling - -Thu May 27 19:47:48 MDT 2004 John Fleck - - * doc/tutorial/xmltutorial.xml fix lack of cast in Xpath example - * doc/tutorial/*.html, xmltutorial.pdf rebuild html, pdf - -2004-05-25 Aleksey Sanin - - * c14n.c: fixed c14n bug with serializing attribute namespaces - -Mon May 24 08:22:48 HKT 2004 William Brack - - * xpath.c: fixed to allow '+' in exponent of number - (bug 143005) - * SAX2.c: fixed typo in last commit - -Sat May 22 09:08:24 HKT 2004 William Brack - - * SAX2.c: skipped call to xmlValidateNCName when compiling - --with-minimum (bug 142917) - -Tue May 18 06:48:00 CEST 2004 Daniel Veillard - - * catalog.c: reverted the broken change. - -Mon May 17 23:07:15 CEST 2004 Daniel Veillard - - * NEWS doc/*: updated the docs for 2.6.10 - -Mon May 17 05:52:03 CEST 2004 Daniel Veillard - - * configure.in : releasing 2.6.10 - -Sun May 16 23:12:35 CEST 2004 Daniel Veillard - - * tree.c: avoid returning default namespace when searching - from an attribute - * entities.c xmlwriter.c: reverse xmlEncodeSpecialChars() behaviour - back to escaping " since the normal serialization routines do not - use it anymore, should close bug #134477 . Tried to make - the writer avoid it too but it didn't work. - -Sun May 16 01:07:16 CEST 2004 Daniel Veillard - - * doc/ChangeLog.awk doc/ChangeLog.xsl: fixed escaping - handling and added direct links to bugzilla report for - bug numbers. - -Sun May 16 11:11:13 HKT 2004 William Brack - - * error.c: modified to assure proper user data is sent to - structured error routine (bug 142598) - -Sun May 16 03:18:52 CEST 2004 Daniel Veillard - - * catalog.c: a couple of large static variable which should really - not be declared as such cluttered the .bss section. - -Sun May 16 03:06:31 CEST 2004 Daniel Veillard - - * doc/ChangeLog.awk: fixed a couple of problems when parsing - libxslt ChangeLog - -Sat May 15 20:14:21 CEST 2004 Daniel Veillard - - * doc/ChangeLog.awk doc/ChangeLog.xsl: first steps of a good - ChangeLog page generation. The awk shoudl escape characters - not okay in XML and the xslt should make links to functions - or variables or bug reported in the entries. - -Sat May 15 14:57:40 CEST 2004 Daniel Veillard - - * xmlsave.c include/libxml/xmlsave.h: start adding API for - escaping customization. - -Sat May 15 12:38:17 CEST 2004 Daniel Veillard - - * xmlsave.c: more xmlSave cleanup, optimization and refactoring - -Fri May 14 17:51:48 CEST 2004 Daniel Veillard - - * xmlIO.c xmlsave.c: third pass at the escaping refactoring. - -Fri May 14 12:37:24 HKT 2004 William Brack - - * parser.c: enhanced the enhancement, fixed another couple of - special cases. - -Fri May 14 11:48:33 HKT 2004 William Brack - - * parser.c: small enhancement to dtd handling of (a?)+ (bug 142487) - -Thu May 13 23:19:00 CEST 2004 Daniel Veillard - - * xmlIO.c xmlsave.c include/libxml/xmlIO.h: second pass on escaping - handling, start to looks better, need to be completed and added - directly at the saving context level. - -Thu May 13 10:31:28 CEST 2004 Daniel Veillard - - * xmlIO.c xmlsave.c include/libxml/xmlIO.h: first pass at refactoring - the escape on save routines for better performances (less malloc) - and more flexibility using the new saving context. Preliminary - work, interface will change. - -Wed May 12 22:34:03 HKT 2004 William Brack - - * xmlschemas.c: added code in xmlSchemaBuildAContentModel to handle - element reference within the xs:all construct (bug 139897) - -Wed May 12 17:27:18 HKT 2004 William Brack - - * xinclude.c: a little further fixing of fallback processing, this - time for fallback with children (bug 139520). - -Wed May 12 08:21:33 HKT 2004 William Brack - - * xmlschemas.c: added code in xmlSchemaBuildContentModel to - allow ref in group definition (bug 134411). Also fixed - misc compilation warning messages. - * result/schema/group0_0_0, result/schema/group0_0_0.err: - regenerated (now no error reported). - -Tue May 11 11:55:59 CEST 2004 Daniel Veillard - - * xmlIO.c: fix to the fix for #141864 from Paul Elseth - * HTMLparser.c result/HTML/doc3.htm: apply fix from David Gatwood for - #141195 about text between comments. - -Tue May 11 23:04:47 HKT 2004 William Brack - - * xmlschemas.c, include/libxml/schemasInternals.h, - include/libxml/xmlerror.h: Applied patches supplied by - Kasimier Buchcik. - * test/schemas/po1_0.xml, test/schemas/po1_0.xsd: - changed test to account for above patch. - -Tue May 11 09:06:53 CEST 2004 Daniel Veillard - - * python/tests/tstLastError.py: better portability fix for f(*args), - use apply(f, args) as Stephane Bidoul suggested - -Mon May 10 15:49:22 HKT 2004 William Brack - - * xmlregexp.c: enhanced xmlRegStateAddTrans to check if transition - is already present and, if so, to ignore the request to add it. - This has a very dramatic effect on memory requirements as well - as efficiency. It also fixes bug 141762. - -Sun May 9 20:40:59 CEST 2004 Daniel Veillard - - * Makefile.am python/tests/Makefile.am python/tests/tstLastError.py: - applied patch from Ed Davis to allow "make tests" to work - with Python 1.5 - -Sun May 9 19:46:13 CEST 2004 Daniel Veillard - - * xmlsave.c: apply fix for XHTML1 formating from Nick Wellnhofer - fixes bug #141266 - * test/xhtmlcomp result//xhtmlcomp*: added the specific regression - test - -Sun May 9 14:07:21 CEST 2004 Daniel Veillard - - * Makefile.am: fix for a pedantic make check without make all request - -Sat May 8 22:56:22 CEST 2004 Daniel Veillard - - * uri.c xmlIO.c: fixing some problems in URI unescaping - and output buffer opening, this should fix #141864 - -Fri May 7 22:31:54 CEST 2004 Daniel Veillard - - * valid.c include/libxml/valid.h: fixes the use of 'list' as a parameter - * xmlIO.c include/libxml/xmlIO.h: added xmlPopInputCallback for - Matt Sergeant - -Thu May 6 21:14:38 PDT 2004 William Brack - - * xmlregexp.c: enhanced the handling of subexpression ranges - which have a minOccurs of 0 (bug 140478 again); cleaned up - comments throughout the module. - -Tue May 4 00:52:16 CEST 2004 Daniel Veillard - - * xmllint.c: adding a --maxmem option to check memory used. - -Sat May 1 01:08:44 CEST 2004 Daniel Veillard - - * xmllint.c xmlsave.c python/generator.py python/libxml.c: Fixed - bug #141529 i.e. various problems when building with --without-html - -Fri Apr 30 18:12:31 CEST 2004 Daniel Veillard - - * xmllint.c xmlreader.c: fixing bug #141384 where the reader didn't - call the deregistering functions. Also added the check to - xmllint --stream --chkregister . - -Fri Apr 30 08:57:47 CEST 2004 Daniel Veillard - - * win32/Makefile.msvc: applied a second patch from Mark Vakoc for - regression tests on Windows - -Thu Apr 29 21:47:23 CEST 2004 Daniel Veillard - - * xmlreader.c: never commit without running make tests first ! - -Thu Apr 29 20:15:20 CEST 2004 Daniel Veillard - - * xmlreader.c: fix a nasty problem with reading over the end - * xmlsave.c: fix a reported memory leak apparently - -Thu Apr 29 17:05:00 CEST 2004 Daniel Veillard - - * win32/Makefile.msvc: patch from Mark Vakoc for regression tests - on Windows. - * xpath.c: the NaN problem also shows up on Borland - -Mon Apr 26 23:37:12 HKT 2004 William Brack - - * xmlregexp.c: enhanced xmlFARegExec range evaluation for min - occurs 0 problems - fixes bug 140478. - -Thu Apr 22 09:12:47 CEST 2004 Daniel Veillard - - * rngparser.c: tiny path fixes the "xmlConvertCRNGFile" function name - from Kasimier Buchcik - * xmlschemas.c: recursive xs:extension fix from taihei goi - -Wed Apr 21 00:19:29 CEST 2004 Daniel Veillard - - * tree.c: small buffer resizing improvement from Morten Welinder - closes #140629 - -Tue Apr 20 23:40:14 CEST 2004 Daniel Veillard - - * xpath.c: last version of the fix for MSC version 1200 - -Tue Apr 20 19:40:37 CEST 2004 Daniel Veillard - - * parser.c: killing the strncmp vs. memcmp controversy and #140593 - -Tue Apr 20 13:27:06 CEST 2004 Daniel Veillard - - * include/libxml/SAX2.h: Kasimier Buchcik pointed out some - inexistent functions, cleaned them out. - -Tue Apr 20 11:42:50 CEST 2004 Daniel Veillard - - * error.c: Johnson Cameron pointed out that - initGenericErrorDefaultFunc() was really wrong. - * xmlreader.c include/libxml/xmlreader.h: xmlTextReaderMode enum - must be made public, added some missing comments on the XMLReader - header. - * c14n.c: Alexsey fixed C14N bug with processing namespaces - from attributes - -Mon Apr 19 23:27:46 CEST 2004 Daniel Veillard - - * xpath.c: fixed a stupid () error + Mark name. - -Sun Apr 18 23:45:46 CEST 2004 Daniel Veillard - - * configure.in: preparing 2.6.9 release - * doc/* News: updated and rebuilt the docs - -Sun Apr 18 22:51:43 CEST 2004 Daniel Veillard - - * xpath.c: relaxed id() to not check taht the name(s) passed - are actually NCName, decided this in agreement with Aleksey Sanin - since existing specs like Visa3D broke that conformance checking - and other tools seems to not implement it sigh... - * SAX2.c: check attribute decls for xml:id and the value is an - NCName. - * test/xmlid/id_err* result/xmlid/id_err*: added error testing - -Sun Apr 18 21:46:17 CEST 2004 Daniel Veillard - - * xpath.c: work around Microsoft compiler NaN bug raise reported - by Mark Vakoc - * xmlschemas.c include/libxml/schemasInternals.h - include/libxml/xmlerror.h: fixed a recusive extention schemas - compilation error raised by taihei goi - -Sun Apr 18 16:57:02 CEST 2004 Daniel Veillard - - * libxml.spec.in: keep the ChangeLog compressed - * xmlreader.c: fix a segfault when using Close() - * python/tests/Makefile.am python/tests/reader8.py: test for - the Close() reader API. - -Sat Apr 17 22:42:13 HKT 2004 William Brack - - * xmlschemas.c, xmlwriter.c, doc/examples/parse4.c, - doc/examples/io2.c: minor warning cleanup (no change to logic) - * xinclude: fixed return value for internal function - xmlXIncludeLoadFallback (now always 0 or -1) - -Sat Apr 17 21:32:32 HKT 2004 William Brack - - * valid.c: small enhancement to fix bug 139791 - -Fri Apr 16 18:44:47 CEST 2004 Daniel Veillard - - * xmlschemas.c include/libxml/schemasInternals.h - include/libxml/xmlerror.h: applied patches from Kasimier Buchcik - for the attribute use support - * test/schemas/attruse* result/schemas/attruse*: added the - tests to the regression suite. - -Fri Apr 16 18:22:25 CEST 2004 Daniel Veillard - - * xmlsave.c: move the TODO as comments as the function while not - finished are usable as-is - * xmlschemas.c include/libxml/xmlerror.h: patch from Kasimier Buchcik - implementing union - * test/schemas/union_0_0.x* result/schemas/union_0_0*: added example - * python/Makefile.am: applied fix from Mike Hommey - -Fri Apr 16 23:58:42 HKT 2004 William Brack - - * parser.c: fixed problem with detecting external dtd - encoding (bug 135229). - * Makefile.am: minor change to test label - -Fri Apr 16 16:09:31 HKT 2004 William Brack - - * xinclude.c: fixed problem causing duplicate fallback - execution (bug 139520) - * test/XInclude/docs/fallback2.xml result/XInclude/fallback2.*: - added testcase - -Fri Apr 9 23:49:37 CEST 2004 Daniel Veillard - - * SAX2.c include/libxml/tree.h: adding xml:id draft support - * Makefile.am test/xmlid/id_tst* result/xmlid/id_tst*: adding - 4 first regression tests - -Fri Apr 9 11:56:08 CEST 2004 Daniel Veillard - - * libxml.spec.in: fixing Red Hat bug #120482 , libxml2-python - should depend on the version of python used to compile it. - -Mon Apr 5 09:07:24 CEST 2004 Daniel Veillard - - * HTMLparser.c: applied patch from James Bursa, frameset should - close head. - -Fri Apr 2 22:02:24 HKT 2004 William Brack - - * relaxng.c: fixed problem in xmlRelaxNGCompareNameClasses - which was causing check-relaxng-test-suite.py test 351 to fail. - -Fri Apr 2 17:03:48 HKT 2004 William Brack - - * nanohttp.c: implemented fix for M$ IIS redirect provided - by Ian Hummel - * relaxng.c: fixed problem with notAllowed compilation - (bug 138793) - -Thu Apr 1 22:07:52 CEST 2004 Daniel Veillard - - * uri.c: fix for xmlUriEscape on "http://user@somewhere.com" - from Mark Vakoc. - -2004-04-01 Johan Dahlin - - * python/.cvsignore: Add generated files, to make cvs silent. - -Thu Apr 1 12:41:36 CEST 2004 Daniel Veillard - - * xmlschemas.c: small signed-ness patch from Steve Little - -Wed Mar 31 17:47:28 CEST 2004 Daniel Veillard - - * xmlregexp.c: patched a bug in parsing production 1 and 2 of - xmlschemas regexp that William pointed out while working on - #134120 - * test/regexp/branch result/regexp/branch: added a specific - regression test - -Wed Mar 31 09:50:32 HKT 2004 William Brack - - * Makefile.am: added PYTHONPATH to python tests for Schemas - and RelaxNG - * test/xsdtest/xsdtestsuite.xml: added testfile for - SchemasPythonTests - -Mon Mar 29 16:56:49 CEST 2004 Daniel Veillard - - * doc/examples/examples.xsl doc/examples/index.html: added - information about compiling on Unix - -Mon Mar 29 14:18:12 CEST 2004 Daniel Veillard - - * catalog.c: fixes the comments for xmlCatalogDump and xmlDumpACatalog - * doc/*: rebuilt to update - -Sun Mar 28 18:11:41 CEST 2004 Daniel Veillard - - * xmlsave.c: optimize indentation based on the new context - -Sun Mar 28 14:17:10 CEST 2004 Daniel Veillard - - * doc/examples/xpath2.c doc/examples/xpath2.res: handle and explain - a very tricky problem when modifying the tree based on an XPath - result query. - -Sat Mar 27 09:56:14 PST 2004 William Brack - - * relaxng.c: fixed problem with IS_COMPILABLE flag - (bug 130216) - -Fri Mar 26 18:28:32 CET 2004 Daniel Veillard - - * parser.c: applied patch from Dave Beckett to correct line number - errors when using push with CDATA - -Fri Mar 26 14:53:58 CET 2004 Daniel Veillard - - * doc/examples/xpath1.c: added a test template - * doc/examples/xpath2.c doc/examples/xpath2.res doc/examples/*: - added a new example, and make valgrind target - -Fri Mar 26 11:47:29 CET 2004 Daniel Veillard - - * parser.c: apply fix for #136693 - -Thu Mar 25 20:21:01 MST 2004 John Fleck - - * doc/examples/io2.c - * doc/examples/io2.res - add xmlDocDumpMemory example in response to mailing list FAQ - (rebuilt xml and html also) - -Thu Mar 25 10:33:05 CET 2004 Daniel Veillard - - * debugXML.c testXPath.c xmllint.c xmlschemastypes.c: applied - patch from Mark Vakoc avoiding using xmlParse* option and use - xmlRead* instead - * win32/Makefile.bcb: patch to Borland C++ builder from Eric Zurcher - to avoid problems with some pathnames. - -Tue Mar 23 12:35:08 CET 2004 Daniel Veillard - - * configure.in doc/* News: preparing 2.6.8 release, updated and rebuilt - the docs. - * Makefile.am: use valgring fro the new Python based regression tests - -Mon Mar 22 20:07:27 CET 2004 Daniel Veillard - - * relaxng.c: remove a memory leak on schemas type facets. - * check-relaxng-test-suite.py check-relaxng-test-suite2.py - check-xsddata-test-suite.py: reduce verbosity - * configure.in Makefile.am: incorporated the Python regressions - tests for Relax-NG and Schemas Datatype to "make tests" - -Mon Mar 22 16:16:18 CET 2004 Daniel Veillard - - * xmlwriter.c include/libxml/xmlwriter.h doc/* : applied patch from - Alfred Mickautsch for better DTD support. - * SAX2.c HTMLparser.c parser.c xinclude.c xmllint.c xmlreader.c - xmlschemas.c: fixed bug #137867 i.e. fixed properly the way - reference counting is handled in the XML parser which had the - side effect of removing a lot of hazardous cruft added to try - to fix the problems associated as they popped up. - * xmlIO.c: FILE * close fixup for stderr/stdout - -Sun Mar 21 19:19:41 HKT 2004 William Brack - - * relaxng.c: added an error message when an element is not - found within a (bug 126093) - -Sat Mar 20 22:25:18 HKT 2004 William Brack - - * xmlregexp.c: enhanced the logic of parsing char groups to - better handle initial or ending '-' (bug 135972) - -Sat Mar 20 19:26:03 HKT 2004 William Brack - - * relaxng.c: added check for external reference in - xmlRelaxNGGetElements (bug 137718) - * test/relaxng/rngbug-001.*, result/relaxng/rngbug-001*: added - regression test for above - -Wed Mar 17 16:37:22 HKT 2004 William Brack - - * nanohttp.c: added a close for the local file descriptor - (bug 137474) - -Mon Mar 15 15:46:59 CET 2004 Daniel Veillard - - * xmlsave.c: switched the output routines to use the new context. - -Mon Mar 15 10:37:18 HKT 2004 William Brack - - * relaxng.c: enhanced to ignore XML_XINCLUDE_START and XML_XINCLUDE_END - nodes (bug 137153) - -Sun Mar 14 13:19:20 CET 2004 Daniel Veillard - - * xmlschemastypes.c: applied patch from John Belmonte for anyURI. - -Wed Mar 10 17:22:48 CET 2004 Daniel Veillard - - * parser.c: fix bug reported by Holger Rauch - * test/att8 result/noent/att8 result/att8 result/att8.rdr - result/att8.sax: added the test to th regression suite - -Wed Mar 10 19:42:22 HKT 2004 William Brack - - * doc/search.php: Minor change for later verson of php requiring - $HTTP_GET_VARS. - -Wed Mar 10 00:12:31 HKT 2004 William Brack - - * tree.c: Changed the flag to xmlDocCopyNode (and similar routines), - previously used only for recursion, to use a value of '2' to - indicate copy properties & namespaces, but not children. - * xinclude.c: changed the handling of ranges to use the above new - facility. Fixes Bug 134268. - -Tue Mar 9 18:48:51 HKT 2004 William Brack - - * win32/Makefile.bcb, win32/Makefile.mingw, win32/Makefile.msvc: - added new module xmlsave with patch supplied by Eric Zurcher - (second attempt - don't know what happened to the first one!) - -Tue Mar 9 09:59:25 CET 2004 Daniel Veillard - - * python/libxml.c python/libxml.py: applied patch from Anthony Carrico - providing Python bindings for the Canonicalization C14N support. - -Mon Mar 8 11:12:23 CET 2004 Hagen Moebius - - * .cvsignore and python/.cvsignore patched - -Mon Mar 8 22:33:14 HKT 2004 William Brack - - * xinclude.c: enhanced to assure that if xpointer is called - for a document, the XML_PARSE_NOENT flag is set before parsing - the included document so that entities will automatically get - taken care of. - * xpointer.c: corrected code so that, if an XML_ENTITY_REF node - is encountered, it will log it and not crash (bug 135713) - -Sun Mar 7 19:03:48 HKT 2004 William Brack - - * xinclude.c: modified to make sub-includes inherit the - parse flags from the parent document (bug 132597) - -Fri Mar 5 01:13:22 CET 2004 Daniel Veillard - - * xmlschemas.c: QName handling fixes for the XML Schemas - support from Adam Dickmeiss - * test/schemas/po1_0.xsd: also fix the schemas - * test/schemas/ns[12]* result/schemas/ns[12]*: added the specific - regression tests - -Thu Mar 4 23:03:02 CET 2004 Daniel Veillard - - * configure.in doc/Makefile.am include/libxml/Makefile.am: - paalied patch from Julio M. Merino Vidal fixing bug #134751 - to fix --with-html-dir option. - * doc/*: rebuilt fully the docs - * doc/html/libxml-xmlsave.html: new file from new header. - -Thu Mar 4 16:57:50 CET 2004 Daniel Veillard - - * debugXML.c testHTML.c tree.c doc/examples/*.c - include/libxml/xmlsave.h: fixing compilation bug with some options - disabled as well as --with-minimum should fix #134695 - -Thu Mar 4 15:00:45 CET 2004 Daniel Veillard - - * xmlcatalog.c: allow fallback to URI lookup when SYSTEM fails, - should close #134092 - -Thu Mar 4 14:39:38 CET 2004 Daniel Veillard - - * Makefile.am tree.c xmlsave.c include/libxml/xmlsave.h: commiting - the new xmlsave module before the actuall big code change. - -Thu Mar 4 12:38:53 CET 2004 Daniel Veillard - - * xmlschemas.c: applied patch from Adam Dickmeiss for mixed content - * test/schemas/mixed* result/schemas/mixed*: added his regression - tests too. - -Mon Mar 1 15:22:06 CET 2004 Daniel Veillard - - * testSAX.c: fix a compilation problem about a missing timb include - -Sat Feb 28 22:35:32 HKT 2004 William Brack - - * testSAX.c: small enhancement to prevent trying to print - strings with null pointers (caused "make tests" errors on - HP-UX) - -Thu Feb 26 20:19:40 MST 2004 John Fleck - - * doc/xmllint.xml - * doc/xmllint.1 - * doc/xmllint.html - * doc/xmlcatalog_man.xml - * doc/xmlcatalog.1 - * doc/xmlcatalog_man.html - applying patch from Mike Hommey to clarify XML_CATALOG_FILES - use - -Thu Feb 26 23:47:43 CET 2004 Daniel Veillard - - * Makefile.am: patch for cross-compilation to Windows from - Christophe de VIENNE. - -Thu Feb 26 18:52:11 HKT 2004 William Brack - - * doc/*.html, doc/html/*.html: regenerated docs using older - version of xsltproc pending resolution of AVT problem - -Thu Feb 26 10:56:29 CET 2004 Daniel Veillard - - * Makefile.am: applied patch from Charles Bozeman to not use - the system xmllint. - -Wed Feb 25 18:07:05 CET 2004 Daniel Veillard - - * include/libxml/xmlexports.h: applied patch from Roland Schwingel - for MingW - -Wed Feb 25 13:57:25 CET 2004 Daniel Veillard - - * Makefile.am catalog.c configure.in: applied a cleanup patch - from Peter Breitenlohner - * tree.c: removed a doc build warning by fixing a param comment - * doc/* : rebuilt the docs - -Wed Feb 25 13:33:07 CET 2004 Daniel Veillard - - * valid.c HTMLparser.c: avoid ID error message if using - HTML_PARSE_NOERROR should fix #130762 - -Wed Feb 25 12:50:53 CET 2004 Daniel Veillard - - * debugXML.c relaxng.c valid.c xinclude.c xmllint.c xmlreader.c: - fixing compilation and link option when configuring with - --without-valid should fix #135309 - -Wed Feb 25 11:36:06 CET 2004 Daniel Veillard - - * catalog.c: fixed the main issues reported by Peter Breitenlohner - * parser.c: cleanup - * valid.c: speedup patch from Petr Pajas - -Wed Feb 25 16:07:14 HKT 2004 William Brack - - * xpath.c: fixed a memory leak (xmlXPathLangFunction) reported - on the list by Mike Hommey - -Mon Feb 23 17:28:34 CET 2004 Daniel Veillard - - * doc/* NEWS configure.in: preparing 2.6.7 release, updated and - rebuilt the documentation. - -Mon Feb 23 11:52:12 CET 2004 Daniel Veillard - - * python/tests/*.py: applied patch from Malcolm Tredinnick - to avoid tabs in python sources, should fix #135095 - -Sun Feb 22 23:16:23 CET 2004 Daniel Veillard - - * testSAX.c: add --timing option - * relaxng.c: use the psvi field of the nodes instead of _private - which may be used for other purposes. - -Sat Feb 21 16:57:48 CET 2004 Daniel Veillard - - * encoding.c: small patch to try to fix a warning with Sun One compiler - -Sat Feb 21 16:22:35 CET 2004 Daniel Veillard - - * encoding.c: small patch removing a warning with MS compiler. - -Sat Feb 21 13:52:30 CET 2004 Daniel Veillard - - * debugXML.c: added "relaxng" option to the debugging shell - * Makefile.am test/errors/* result/errors/*: some regression tests - for some error tests cases. - -Fri Feb 20 09:56:47 CET 2004 Daniel Veillard - - * tree.c: xmlAttrSerializeTxtContent don't segfault if NULL - is passed. - * test/att7 result//att7*: adding an old regression test - laying around on my laptop - -Thu Feb 19 17:33:36 CET 2004 Daniel Veillard - - * xmlreader.c: fixed xmllint --memory --stream memory consumption - on large file by using xmlParserInputBufferCreateStatic() with - the mmap'ed file - -Thu Feb 19 13:56:53 CET 2004 Daniel Veillard - - * tree.c: some clarification in xmlDocDumpMemory() documentation - * xmllint.c: fixed xmllint --stream --timing to get timings back - -Wed Feb 18 15:20:42 CET 2004 Daniel Veillard - - * parser.c: fixed a problem in push mode when attribute contains - unescaped '>' characters, fixes bug #134566 - * test/att6 result//att6*: added the test to the regression suite - -Tue Feb 17 17:26:31 CET 2004 Daniel Veillard - - * valid.c: removing a non-linear behaviour from ID/IDREF raised - by Petr Pajas. Call xmlListAppend instead of xmlListInsert in - xmlAddRef - -Tue Feb 17 13:27:27 CET 2004 Daniel Veillard - - * python/tests/indexes.py python/tests/reader.py: indicated - encoding of the test file, needed for python 2.3 - -Tue Feb 17 21:08:11 HKT 2004 William Brack - - * xpath.c: fixed problem with numbers having > 19 - fractional places (bug 133921) - -Tue Feb 17 12:47:20 CET 2004 Daniel Veillard - - * xpath.c: applied optimization patch from Petr Pajas - -Tue Feb 17 12:39:08 CET 2004 Daniel Veillard - - * xmlwriter.c include/libxml/xmlwriter.h: applied update - from Alfred Mickautsch and the added patch from Lucas Brasilino - -Sun Feb 15 12:01:30 CET 2004 Daniel Veillard - - * benchmark.png index.html xml.html: updating the benchmark - graph and using a PNG instead of a GIF - * xmlreader.c: updated the TODO - -Sat Feb 14 18:55:40 MST 2004 John Fleck - - * doc/tutorial/xmltutorial.xml - * doc/tutorial/xmltutorial.pdf - * doc/tutorial/*.html - Fix bug in XPath example in the tutorial, thanks to Carlos, whose - last name I don't know, for pointing this out - -Thu Feb 12 16:28:12 CET 2004 Daniel Veillard - - * NEWS configure.in: preparing release of 2.6.6 - * doc/*: updated the docs and rebuilt them - -Thu Feb 12 13:41:16 CET 2004 Daniel Veillard - - * xmlregexp.c: fixing bug #132930 with the provided patch, a bit - suspicious about it but this is fairly contained and regression - tests still passes. - * test/schemas/all1* result/schemas/all1*: added the test to - the regression suite. - -Thu Feb 12 12:54:26 CET 2004 Daniel Veillard - - * parser.c: fixed bug #132575 about finding the end of the - internal subset in push mode. - * test/intsubset.xml result/intsubset.xml* result/noent/intsubset.xml: - added the test to the regression suite - -Wed Feb 11 14:19:31 CET 2004 Daniel Veillard - - * parserInternals.c xmlIO.c encoding.c include/libxml/parser.h - include/libxml/xmlIO.h: added xmlByteConsumed() interface - * doc/*: updated the benchmark rebuilt the docs - * python/tests/Makefile.am python/tests/indexes.py: added a - specific regression test for xmlByteConsumed() - * include/libxml/encoding.h rngparser.c tree.c: small cleanups - -Wed Feb 11 08:13:58 HKT 2004 William Brack - - * encoding.c: applied patch supplied by Christophe Dubach - to fix problem with --with-minimum configuration - (bug 133773) - * nanoftp.c: fixed potential buffer overflow problem, - similar to fix just applied to nanohttp.c. - -Mon Feb 9 18:40:21 CET 2004 Igor Zlatkovic - - * nanohttp.c: fixed the fix for the buffer overflow, thanx - William :-) - -Mon Feb 9 22:37:14 HKT 2004 William Brack - - * acinclude.m4, configure.in: fixed problem concerning - determining SOCKLEN_T as pointed out by Daniel Richard G. - on the mailing list - -Mon Feb 9 15:31:24 CET 2004 Igor Zlatkovic - - * nanohttp.c: fixed buffer overflow reported by Yuuichi Teranishi - -Mon Feb 9 13:45:59 CET 2004 Daniel Veillard - - * xpath.c: small patch from Philip Ludlam to avoid warnings. - -Mon Feb 9 13:41:47 CET 2004 Daniel Veillard - - * encoding.c: applied a small patch from Alfred Mickautsch - to avoid an out of bound error in isolat1ToUTF8() - -Mon Feb 9 13:35:50 CET 2004 Daniel Veillard - - * xinclude.c: remove the warning on the 2001 namespace - * parser.c parserInternals.c xpath.c: remove some warnings - when compiling with MSVC6 - * nanohttp.c: applied a patch when using _WINSOCKAPI_ - -Sun Feb 8 12:09:55 HKT 2004 William Brack - - * xinclude.c: added a small hack to fix interference between - my fixes for bugs 132585 and 132588. - * python/libxml.c: fixed problem with serialization of namespace - reported on the mailing list by Anthony Carrico - -Sat Feb 7 16:53:11 HKT 2004 William Brack - - * xinclude.c: fixed problem with function xmlXIncludeCopyRange - (bug 133686). - -Fri Feb 6 21:03:41 HKT 2004 William Brack - - * xmlwriter.c: fixed problem with return value of - xmlTextWriterWriteIndent() (bug 133297) - -Fri Feb 6 19:07:04 HKT 2004 William Brack - - * xinclude.c: changed coding to output good XIncludes when - one or more bad ones are present (bug 132588) - -Fri Feb 6 17:34:21 HKT 2004 William Brack - - * xinclude.c: corrected handling of empty fallback condition - (bug 132585) - -Fri Feb 6 15:28:36 HKT 2004 William Brack - - * HTMLparser.c: added initialisation for ctxt->vctxt - in HTMLInitParser (bug 133127) - * valid.c: minor cosmetic change (removed ATTRIBUTE_UNUSED - from several function params) - -Tue Feb 3 16:48:57 PST 2004 William Brack - - * xinclude.c: fixed problem regarding freeing of dictionary - when there are errors within an XInclude file (bug 133106). - Thanks to Oleg Paraschenko for the assistance. - -Tue Feb 3 09:53:18 PST 2004 William Brack - - * xmlschemastypes.c: fixed validation of maxLength with no - content using patch submitted by Eric Haszlakiewicz - (bug 133259) - -Tue Feb 3 09:21:09 CET 2004 Igor Zlatkovic - - * include/libxml/xmlreader.h include/libxml/xmlmemory.h: added - calling convention to the public function prototypes (rep by - Cameron Johnson) - * include/libxml/xmlexports.h: fixed mingw+msys compilation - (rep by Mikhail Grushinskiy) - -Mon Feb 2 20:22:18 PST 2004 William Brack - - * xmlwriter.c: enhanced output indenting (bug 133264) - -Mon Feb 2 16:13:33 PST 2004 William Brack - - * xmlreader.c, include/libxml/xmlreader.h: applied patch from - Steve Ball to provide structured error reports. - -Sun Feb 1 01:48:14 PST 2004 William Brack - - * tree.c, include/libxml/tree.h: moved serialization of - attribute text data (xmlSerializeContent) into a separate - routine (xmlSerializeTxtContent) so it can be used by xmlwriter.c - * xmlwriter.c: changed handling of attribute string to use the - routine above (fixed bug 131548) - -Sat Jan 31 08:22:02 MST 2004 John Fleck 2.6, rebuild - html - this time doing it correctly :-) - -Fri Jan 30 20:45:36 MST 2004 John Fleck - - * doc/examples/examples.xml - * doc/examples/*.html - add note that reader examples need libmxl2 > 2.6, rebuild - html - -Thu Jan 29 23:51:48 PST 2004 William Brack - - * xpath.c: added (void *) type override to prevent - warning on Solaris (Bug 132671) - -Wed Jan 28 07:20:37 MST 2004 John Fleck - - * doc/examples/Makefile.am - per Jan. 15 email to the list from oliverst, the index.html - file from this directory wasn't making it into the tarball - -Mon Jan 26 18:01:00 CET 2004 Daniel Veillard - - * acinclude.m4: applied fix from Alexander Winston for a problem - related to automake-1.8 , c.f. #132513 and #129861 - -Mon Jan 26 12:53:11 CET 2004 Daniel Veillard - - * doc/examples/index.py: don't rely on . being on the path for - make tests, should keep Mr. Crozat quiet until next time... - -Sun Jan 25 21:45:03 CET 2004 Daniel Veillard - - * configure.in NEWS doc/*: preparing release 2.6.5, rebuilt the - docs, checked rngparser stuff does not end up in the tarball - -Sun Jan 25 20:59:20 CET 2004 Daniel Veillard - - * python/libxml.c: applied patch from Frederic Peters - fixing the wrong arg order in xpath callback in bug #130980 - -Sun Jan 25 20:52:09 CET 2004 Daniel Veillard - - * xinclude.c: fixing #130453 XInclude element with no href attribute - * relaxng.c rngparser.c include/libxml2/relaxng.h: fully integrating - the compact syntax will require more work, postponed for the - 2.6.5 release. - -Sat Jan 24 09:30:22 CET 2004 Daniel Veillard - - * include/libxml/schemasInternals.h xmlschemas.c: applied patch from - Steve Ball to avoid a double-free. - -Fri Jan 23 14:03:21 CET 2004 Daniel Veillard - - * doc/examples/*: added io1.c an example ox xmlIO usage and io1.res - test result, fixed a awful lot of memory leaks showing up in - testWriter.c, changed the examples and the Makefiles to test - memory leaks. - * xmlwriter.c: fixed a memory leak - * Makefile.am: run the doc/examples regression tests as part of - make tests - * xpath.c include/libxml/xpath.h: added xmlXPathCtxtCompile() to - compile an XPath expression within a context, currently the goal - is to be able to reuse the XSLT stylesheet dictionnary, but this - opens the door to others possible optimizations. - * dict.c include/libxml/dict.h: added xmlDictCreateSub() which allows - to build a new dictionnary based on another read-only dictionnary. - This is needed for XSLT to keep the stylesheet dictionnary read-only - while being able to reuse the strings for the transformation - dictionnary. - * xinclude.c: fixed a dictionnar reference counting problem occuring - when document parsing failed. - * testSAX.c: adding option --repeat for timing 100times the parsing - * doc/* : rebuilt all the docs - -Thu Jan 22 14:17:05 2004 Aleksey Sanin - - * xmlmemory.c: make xmlReallocLoc() accept NULL pointer - -Thu Jan 22 08:26:20 CET 2004 Daniel Veillard - - * xmlschemastypes.c: applied patch from John Belmonte for - normalizedString datatype support. - -Thu Jan 22 10:43:22 HKT 2004 William Brack - - * xpath.c: fixed problem with union when last() is used - in predicate (bug #131971) - * xpointer.c: minor change to comment for doc generation - -Wed Jan 21 17:03:17 CET 2004 Daniel Veillard - - * parser.c: fixed bug #131745 raised by Shaun McCance with the - suggested patch - -Wed Jan 21 10:59:55 CET 2004 Daniel Veillard - - * xmlwriter.c: applied patch from Alfred Mickautsch fixing a memory - leak reported on the list. - -Thu Jan 15 00:48:46 CET 2004 Daniel Veillard - - * python/generator.py python/tests/tstLastError.py: applied - patch from Stephane Bidoul to add enums to the Python bindings. - -Tue Jan 13 21:50:05 CET 2004 Daniel Veillard - - * testHTML.c: another small patch from Mark Vakoc - -Tue Jan 13 21:39:58 CET 2004 Daniel Veillard - - * HTMLparser.c relaxng.c testRelax.c testSchemas.c: applied - patch from Mark Vakoc to not use SAX1 unless necessary. - -Mon Jan 12 17:22:57 CET 2004 Daniel Veillard - - * dict.c parser.c xmlstring.c: some parser optimizations, - xmllint --memory --timing --repeat --stream ./db10000.xml - went down from 16.5 secs to 15.5 secs. - -Thu Jan 8 17:57:50 CET 2004 Daniel Veillard - - * xmlschemas.c: removed a memory leak remaining from the switch - to a dictionnary for string allocations c.f. #130891 - -Thu Jan 8 17:48:46 CET 2004 Daniel Veillard - - * xmlreader.c: fixing some problem if configured --without-xinclude - c.f. #130902 - -Thu Jan 8 17:42:48 CET 2004 Daniel Veillard - - * configure.in: changed AC_OUTPUT() macro to avoid a cygwin problem - c.f. #130896 - -Thu Jan 8 00:36:00 CET 2004 Daniel Veillard - - * win32/Makefile.bcb win32/Makefile.mingw win32/Makefile.msvc: - applying patch from Mark Vakoc for Windows - * doc/catalog.html doc/encoding.html doc/xml.html: applied doc - fixes from Sven Zimmerman - -Tue Jan 6 23:51:46 CET 2004 Daniel Veillard - - * python/libxml2-python-api.xml python/libxml_wrap.h python/types.c - python/tests/Makefile.am python/tests/tstLastError.py: applied - patch from Stephane Bidoul for structured error handling from - python, and the associated test - -Tue Jan 6 23:18:11 HKT 2004 William Brack - - * configure.in: fixed Bug130593 - * xmlwriter.c: fixed compilation warning - -Tue Jan 6 15:15:23 CET 2004 Daniel Veillard - - * include/libxml/xmlstring.h: fixed the comment in the header - * doc/*: rebuilt the docs - -Tue Jan 6 19:40:04 HKT 2004 William Brack - - * encoding.c, parser.c, xmlstring.c, Makefile.am, - include/libxml/Makefile.am, include/libxml/catalog.c, - include/libxml/chvalid.h, include/libxml/encoding.h, - include/libxml/parser.h, include/libxml/relaxng.h, - include/libxml/tree.h, include/libxml/xmlwriter.h, - include/libxml/xmlstring.h: - moved string and UTF8 routines out of parser.c and encoding.c - into a new module xmlstring.c with include file - include/libxml/xmlstring.h mostly using patches from Reid - Spencer. Since xmlChar now defined in xmlstring.h, several - include files needed to have a #include added for safety. - * doc/apibuild.py: added some additional sorting for various - references displayed in the APIxxx.html files. Rebuilt the - docs, and also added new file for xmlstring module. - * configure.in: small addition to help my testing; no effect on - normal usage. - * doc/search.php: added $_GET[query] so that persistent globals - can be disabled (for recent versions of PHP) - -Mon Jan 5 20:47:07 MST 2004 John Fleck - - * doc/tutorial/customfo.xsl - * doc/tutorial/customhtml.xsl - update custom tutorial-building stylesheets in preparation - for tutorial update - -Tue Jan 6 00:10:33 CET 2004 Daniel Veillard - - * rngparser.c: commiting the compact relax ng parser. It's not - completely finished, it's not integrated but I want to save the - current state - -Mon Jan 5 22:22:48 HKT 2004 William Brack - - * doc/apibuild.py, doc/APIconstructors.html, doc/libxml2-refs.xml, - win32/libxml2.def.src: fixed apibuild.py's generation of - "constructors" to be in alphabetical order (instead of previous - random sequence); regenerated resulting files. - -Mon Jan 5 14:03:59 CET 2004 Daniel Veillard - - * xmlwriter.c: applied patch from Lucas Brasilino fixing an indent - problem. - -Sun Jan 4 18:54:29 MST 2004 John Fleck - - * doc/newapi.xsl: change background color of function - declaration to improve readability - * doc/*: rebuild docs with new stylesheet - -Sun Jan 4 22:45:14 HKT 2004 William Brack - - * parser.c, include/libxml/parser.h: added a routine - xmlStrncatNew to create a new string from 2 frags. - * tree.c: added code to check if node content is from - dictionary before trying to change or concatenate. - -Sun Jan 4 08:57:51 HKT 2004 William Brack - - * xmlmemory.c: applied suggestion from Miloslav Trmac (see - Bug 130419) and eliminated xmlInitMemoryDone. More - improvement needed. - * xml2-config.in: added an additional flag (--exec-prefix) to - allow library directory to be different from include directory - (Bug 129558). - -Fri Jan 2 21:22:18 CET 2004 Daniel Veillard - - * error.c: applied patch from Stéphane Bidoul for structured error - reporting. - -Fri Jan 2 21:03:17 CET 2004 Daniel Veillard - - * include/libxml/xmlwriter.h xmlwriter.c: applied the patch from - Lucas Brasilino to add indentation support to xmlWriter - -Fri Jan 2 22:58:29 HKT 2004 William Brack - - * xinclude.c: fixed problem with "recursive" include (fallback - contains another include - Bug 129969) - -Fri Jan 2 11:40:06 CET 2004 Daniel Veillard - - * SAX2.c: found and fixed a bug misallocating some non - blank text node strings from the dictionnary. - * xmlmemory.c: fixed a problem with the memory debug mutex - release. - -Wed Dec 31 22:02:37 HKT 2003 William Brack - - * xinclude.c: fixed problem caused by wrong dictionary - reference count, reported on the list by Christopher - Grayce. - -Wed Dec 31 15:55:55 HKT 2003 William Brack - - * python/generator.py, python/libxml2class.txt: fixed problem - pointed out by Stéphane Bidoul on the list. - * xinclude.c, xpointer.c, xpath.c, include/libxml/xpointer.h: - completed modifications required to fix Bug 129967 (at last!). - Now wait to see how long before further trouble... - -Tue Dec 30 16:26:13 HKT 2003 William Brack - - * parser.c, xmlmemory.c, include/libxml/xmlmemory.h: Fixed - memory leak reported by Dave Beckett - * xmlschemas.c: Removed spurious comment reported on the mailing - list - * xinclude.c, xpath.c, xpointer.c, libxml/include/xpointer.h: - Further work on Bug 129967 concerning xpointer range handling - and range-to function; much better, but still not complete - -Mon Dec 29 18:08:05 CET 2003 Daniel Veillard - - * valid.c: xmlValidateElement could crash for element holding a - namespace declaration but not in a namespace. Oliver Fischer - provided the example. - -Mon Dec 29 11:29:31 CET 2003 Daniel Veillard - - * xmllint.c: issue validation status on stderr, not stdout as suggested - by Pawel Palucha - * result/relaxng/*: this change slightly all the output from RNG - regressions. - -Mon Dec 28 10:47:32 HKT 2003 William Brack - - * xmlschemas.c: edited a couple of comments in accordance with - posting on the mailing list (no logic change) - * xpointer.c: working on Bug 129967, added check for NULL - nodeset to prevent crash. Further work required. - * xpath.c: working on Bug 129967, added code to handle - XPATH_LOCATIONSET in RANGETO code, also added code to - handle it in xmlXPathEvaluatePredicateResult. Further - work required. - -Sat Dec 27 12:32:58 HKT 2003 William Brack - - * xmlschemas.c: added tests for xs:all to assure minOccurs - and maxOccurs <= 1 (Bug 130020) - -Sat Dec 27 09:53:06 HKT 2003 William Brack - - * xmlregexp.c: fixed xmlFAParseCharRange for Unicode ranges - with patch from Charles Bozeman. - -Fri Dec 26 14:03:41 HKT 2003 William Brack - - * xmlregexp.c: fixed problem causing segfault on validation error - condition (reported on mailing list) - -Thu Dec 25 21:16:22 HKT 2003 William Brack - - * xmlschemas.c: fixed missing dictionaries for Memory and Doc - parser contexts (problem reported on mailing list) - * doc/apibuild.py: small change to prevent duplicate lines - on API functions list. It will take effect the next time - the docs are rebuilt. - -Wed Dec 24 12:54:25 CET 2003 Daniel Veillard - - * configure.in NEWS doc/*: updated the docs and prepared a new - release 2.6.4 - -Wed Dec 24 12:07:52 CET 2003 Daniel Veillard - - * legacy.c: remove deprecated warning on startElement() - -Wed Dec 24 12:04:35 CET 2003 Daniel Veillard - - * xinclude.c result/XInclude/nodes2.*: XInclude xpointer support - was broken with the new namespace. Fixes #129932 - -Wed Dec 24 00:29:30 CET 2003 Daniel Veillard - - * xmlschemas.c include/libxml/schemasInternals.h: types might be - redefined in includes, quick fix to allow this but lacks the - equality of the redefinition test. - -Tue Dec 23 15:14:37 HKT 2003 William Brack - - * valid.c: fixed bug concerning validation using external - dtd of element with mutiple namespace declarations - (Bug 129821) - -Tue Dec 23 11:41:42 HKT 2003 William Brack - - * tree.c: inhibited production of "(null):" in xmlGetNodePath - when node has default namespace (Bug 129710) - -Tue Dec 23 09:29:14 HKT 2003 William Brack - - * xpath.c: small enhancement to xmlXPathCmpNodes to assure - document order for attributes is retained (Bug 129331) - -Mon Dec 22 19:06:16 CET 2003 Daniel Veillard - - * parser.c xmlreader.c: change xmlReadFd() xmlCtxtReadFd() - xmlReaderNewFd() xmlReaderForFd(), change those to not close - the file descriptor. Updated the comment, should close #129683 - -Mon Dec 22 00:34:09 CET 2003 Daniel Veillard - - * xinclude.c: fixed a serious problem in XInclude #129021 - -Sun Dec 21 13:59:54 CET 2003 Daniel Veillard - - * parser.c: fixed bug #129489, propagation of parsing flags - in entities. - * parser.c xmlreader.c: improved the comments of parsing options - -Sun Dec 21 18:14:04 HKT 2003 William Brack - - * python/Makefile.am, python/tests/Makefile.am, - doc/Makefile.am: applied fixes to allow build from - 'outside' directory (Bug 129172) - -Sat Dec 20 16:42:07 MST 2003 John Fleck - - * tree.c - add explanation of namespace inheritance when - ns is NULL to xmlNewChild and xmlNewTextChild API doc - -Sat Dec 20 18:17:28 HKT 2003 William Brack - - * include/libxml/xpathInternals.h: undid last change (my - bad). Put necessary fix in libxslt/libexslt instead. - * include/libxml/DOCBparser.h: put test for __GCC__ on - warning directive (Bug 129105) - -Sat Dec 20 10:48:37 HKT 2003 William Brack - - * include/libxml/xpathInternals.h: fixed xmlXPathReturnString - to cater for NULL pointer (bug 129561) - * globals.c: added comment to suppress documentation warning - * doc/apibuild.py: fixed problem which caused last APIchunkxx.html - to be lost. Rebuilt doc/* (including adding APIchunk26.html) - -Fri Dec 19 18:24:02 CET 2003 Daniel Veillard - - * xmlreader.c: trying to fix #129692 xmlTextReaderExpand() when - using an xmlReaderWalker() - -Thu Dec 18 20:10:34 MST 2003 John Fleck - - * tree.c: fix misc. typos in doc comments - * include/libxml/tree.h: elaborate on macro define doc comments - * doc/*: rebuild docs - -Wed Dec 17 16:07:33 CET 2003 Daniel Veillard - - * doc/examples/*: don't call the result files .out but .res as - the Makefiles tend to try generating binaries for .out targets... - -Tue Dec 16 20:53:54 MST 2003 John Fleck - - * doc/html/libxml-pattern.html: - cvs add API docs for new - pattern stuff - -Tue Dec 16 20:40:40 MST 2003 John Fleck - - * tree.c - * doc/*: - Elaborate in documentation discussion of xmlNewChild - and xmlNewTextChild. Thanks to Steve Lenti for pointing - out the usefulness of a more explicit explanation of the - reserved character escaping issue. - -Fri Dec 12 15:55:15 CET 2003 Daniel Veillard - - * xmlcatalog.c: applied patch from Stefan Kost - -Thu Dec 11 15:15:31 CET 2003 Daniel Veillard - - * doc/examples/testWriter.c: applied small fix from Lucas Brasilino - -Thu Dec 11 14:55:22 CET 2003 Igor Zlatkovic - - * win32/Makefile.* win32/configure.js: Added pattern support - -Wed Dec 10 14:11:20 CET 2003 Daniel Veillard - - * configure.in doc/* libxml.spec.in: preparing release of - libxml2-2.6.3, updated and regenerated the docs. - -Wed Dec 10 11:43:33 CET 2003 Daniel Veillard - - * SAX2.c pattern.c: removed some compilation warnings - -Wed Dec 10 11:16:29 CET 2003 Daniel Veillard - - * xmllint.c: fixing bug #119264 xmllint failing to report - serialization errors in some cases. - -Tue Dec 9 23:50:23 CET 2003 Daniel Veillard - - * entities.c: fixed an XML entites content serialization - potentially triggered by XInclude, see #126817 - -Tue Dec 9 16:12:50 CET 2003 Daniel Veillard - - * xmlwriter.c: applied the patch to xmlTextWriterStartPI() - suggested by Daniel Schulman in #128313 - -Tue Dec 9 15:18:32 CET 2003 Daniel Veillard - - * configure.in Makefile.am: another patch from Kenneth Haley - for Mingw, c.f. #128787 - -Tue Dec 9 15:07:09 CET 2003 Daniel Veillard - - * include/libxml/xmlexports.h: applied patch from Kenneth Haley - for compiling on Mingw see #128786 - -Tue Dec 9 14:52:59 CET 2003 Daniel Veillard - - * xmllint.c: some flags were not passed down correctly as - parsing options. Fixes #126806 - -Tue Dec 9 12:29:26 CET 2003 Daniel Veillard - - * xinclude.c xmllint.c xmlreader.c include/libxml/xinclude.h - include/libxml/xmlerror.h: augmented the XInclude API - to be able to pass XML parser flags down to the Inclusion - process. Also resynchronized with the Last Call W3C Working - Draft 10 November 2003 for the xpointer attribute. - * Makefile.am test/XInclude/docs/nodes[23].xml - result/XInclude/*: augmented the tests for the new namespace and - testing the xpointer attribute, changed the way error messages - are tested - * doc/*: regenerated the documentation - -Mon Dec 8 18:38:26 CET 2003 Daniel Veillard - - * error.c: filter warning messages if the global setting blocks them - * xinclude.c xmlreader.c include/libxml/xinclude.h - include/libxml/xmlerror.h: updated the change of namespace at - the XInclude level, raise a warning if the old one is found, - and some cleanup - -Mon Dec 8 13:09:39 CET 2003 Daniel Veillard - - * tree.c: tentative fix for #126117 character reference in - attributes output problem in some cornercase. - -Mon Dec 8 11:08:45 CET 2003 Daniel Veillard - - * python/libxml.py: tried to fix the problems reported in - bug #126735 - * xpath.c SAX2.c error.c parser.c valid.c include/libxml/xmlerror.h: - fixed again some problem trying to use the structured error - handlers, c.f. bug #126735 - * result/VC/ElementValid: tiny change due to the fix - -Sun Dec 7 22:27:31 CET 2003 Daniel Veillard - - * error.c: fixed __xmlRaiseError to use structured error handlers - defined by xmlSetStructuredErrorFunc(), fixes bug #126211 - -Sun Dec 7 20:30:53 CET 2003 Daniel Veillard - - * parser.c: attempt to fix #126211 ... - -Fri Dec 5 17:07:29 CET 2003 Daniel Veillard - - * pattern.c xmlreader.c xmllint.c include/libxml/pattern.h - include/libxml/xmlreader.h: fixed the pattern interfaces - but not yet the parser to handle the namespaces. - * doc/examples/reader3.c doc/*: fixed the example, rebuilt the docs. - -Fri Dec 5 15:49:44 CET 2003 Daniel Veillard - - * globals.c xmlwriter.c doc/apibuild.py include/libxml/globals.h - include/libxml/pattern.h include/libxml/schemasInternals.h - include/libxml/xmlexports.h include/libxml/xmlwriter.h: cleanup - the make rebuild in doc, this include new directive to stop - documentation warnings - * doc/* doc/html/*: rebuilt the docs - * pattern.c xmlreader.c include/libxml/pattern.h - include/libxml/xmlreader.h: adding xmlTextReaderPreservePattern() - to save nodes while scanning the tree with the reader, cleanup - the way element were freed, and xmlTextReaderPreserve() - implementation, the API might change for namespace binding support - when compiling patterns. - * doc/examples/*: added reader3.c exposing the xmlTextReaderPreserve() - -Thu Dec 4 15:10:57 CET 2003 Daniel Veillard - - * python/libxml.py: oops forgot to modify/commit the new code. - -Thu Dec 4 13:29:19 CET 2003 Daniel Veillard - - * python/generator.py python/libxml.c python/libxml_wrap.h: - cleanup the output buffer support to at least get the basic - to work - * python/tests/outbuf.py python/tests/serialize.py: fixes and - cleanup. - * include/libxml/xmlwriter.h: cleanup - -Wed Dec 3 21:38:56 MST 2003 John Fleck - - * include/libxml/xmlversion.h.in - * doc/*: add WITH_TRIO comment so it shows up in the docs, rebuild - docs - -Wed Dec 3 13:10:08 CET 2003 Daniel Veillard - - * config.h.in configure.in xmlregexp.c: fix bug #128401 affecting - regexp quantifiers - -Tue Dec 2 23:29:56 CET 2003 Daniel Veillard - - * pattern.c include/libxml/pattern.h: adding the pattern node - selection code. Inheried in part from libxslt but smaller. - * Makefile.am configure.in include/libxml/xmlversion.h.in: - integrated the pattern module, made it a configure time option - * xmllint.c: added --pattern to test when doing --stream - -Tue Dec 2 11:25:25 CET 2003 Daniel Veillard - - * xmlreader.c: fixed a problem in xmlreader validation when - streaming exposed by reader2 example. - -Mon Dec 1 20:40:51 MST 2003 John Fleck - - * doc/xml.html - * doc/docs.html: - add reference to the Code Examples page to docs.html list - of resources - -Mon Dec 1 12:30:28 CET 2003 Igor Zlatkovic - - * win32/Makefile.bcb win32/configure.js: Applied the BCB patch - from Eric - -Sun Nov 30 21:33:37 MST 2003 John Fleck - - * include/libxml/xinclude.h - * doc/*: Add comments for macro definitions in xinclude.h and - rebuild the docs - -Sun Nov 30 21:06:29 MST 2003 John Fleck - - * doc/docdescr.doc - Updating William's explanation of how to build docs, - reflecting Daniel's new docs build system - -Sat Nov 29 18:38:22 HKT 2003 William Brack - - * xmlmemory.c: enhanced by adding mutex to protect global - structures in a multi-threading environment. This fixed - some random errors on the Threads regression tests. - -Fri Nov 28 21:39:49 MST 2003 John Fleck - - * doc/xml.html doc/python.html: fix tst.py text, which didn't - import sys - -Fri Nov 28 17:28:47 HKT 2003 William Brack - - * encoding.c, include/libxml/encoding.h: Enhanced the handling of - UTF-16, UTF-16LE and UTF-16BE encodings. Now UTF-16 output is - handled internally by default, with proper BOM and UTF-16LE - encoding. Native UTF-16LE and UTF-16BE encoding will not generate - BOM on output, and will be automatically recognized on input. - * test/utf16lebom.xml, test/utf16bebom.xml, result/utf16?ebom*: - added regression tests for above. - -Thu Nov 27 19:25:10 CET 2003 Igor Zlatkovic - - * win32/Makefile.* win32/configure.js: Modified to allow coexistent - build with all compilers. Added C-Runtime option for MSVC. Included - xmlWriter. - * xmlwriter.c: Added IN_LIBXML macro - -Wed Nov 26 21:54:01 CET 2003 Igor Zlatkovic - - * win32/Makefile.bcb: applied patch from Eric - -Wed Nov 26 21:33:14 CET 2003 Daniel Veillard - - * include/libxml/tree.h: stefan on IRC pointed out that XML_GET_LINE - is broken on 2.6.x - -Tue Nov 25 18:39:44 CET 2003 Daniel Veillard - - * entities.c: fixed #127877, never output " in element content - * result/isolat3 result/slashdot16.xml result/noent/isolat3 - result/noent/slashdot16.xml result/valid/REC-xml-19980210.xml - result/valid/index.xml result/valid/xlink.xml: this changes the - output of a few tests - -Tue Nov 25 16:36:21 CET 2003 Daniel Veillard - - * include/libxml/schemasInternals.h include/libxml/xmlerror.h - testSchemas.c xmlschemas.c: added xsd:include support, fixed - testSchemas behaviour when a schemas failed to parse. - * test/schemas/vdv-* result/schemas/vdv-first5_0_0*: added one - test for xsd:include from Eric Van der Vlist - -Tue Nov 25 08:18:12 CET 2003 Daniel Veillard - - * parser.c: swapped the attribute defaulting and attribute checking - parts of parsing a new element start, fixes bug #127772 - * result/valid/127772.* test/valid/127772.xml - test/valid/dtds/127772.dtd: added the example in the regression tests - -Tue Nov 25 08:00:15 CET 2003 Daniel Veillard - - * parser.c: moved xmlCleanupThreads() to the end of xmlCleanupParser() - to avoid bug #127851 - -Mon Nov 24 15:26:21 CET 2003 Daniel Veillard - - * xmlregexp.c: fixing some Negative Character Group and - Character Class Subtraction handling. - -Mon Nov 24 14:01:57 CET 2003 Daniel Veillard - - * xmlregexp.c xmlschemas.c: more XML Schemas fixes based - on Eric van der Vlist examples - * result/schemas/vdv-first4* test/schemas/vdv-first4*: - added regression tests - * doc/examples/Makefile.am doc/examples/index.py: do not - regenerate the index on make all target, but only on - make rebuild to avoid troubles. - -Sat Nov 22 21:35:42 CET 2003 Daniel Veillard - - * xmlschemas.c xmlschemastypes.c include/libxml/xmlerror.h - include/libxml/schemasInternals.h: lot of bug fixes, cleanup, - starting to add proper namespace support too. - * test/schemas/* result/schemas/*: added a number of tests - fixed the result from some regression tests too. - -Fri Nov 21 20:50:59 MST 2003 John Fleck - - * doc/xml.html, docs.html: remove reference to gtk-doc now that - Daniel has removed it, fix link to George's IBM article, other - minor edits - -Fri Nov 21 01:26:00 CET 2003 Daniel Veillard - - * xmlschemas.c: applied patch from Robert Stepanek to start - import os schemas support, cleaned up stuff and the patch. - * test/schemas/import0_0.* result/schemas/import0_0_0*: added test - to regression, fixed a few regressions too. - -Thu Nov 20 22:58:00 CET 2003 Daniel Veillard - - * HTMLparser.c: applied two parsing fixes from James Bursa - -Thu Nov 20 19:20:46 CET 2003 Daniel Veillard - - * doc/examples/*: added two xmlReader examples - * xmlreader.c: cleaned up some bugs in the process - -Thu Nov 20 12:54:30 CET 2003 Daniel Veillard - - * xmlwriter.c include/libxml/xmlwriter.h: applied patch from - Alfred Mickautsch, bugfixes and comments - * doc/examples/*: added his test as the xmlWriter example - * doc/html/ doc/*.html: this resulted in some improvements - * include/libxml/hash.h: fixed an inclusion problem when - wasn't preceeded by - -Wed Nov 19 17:19:35 CET 2003 Daniel Veillard - - * xinclude.c: fix an error message - * doc/examples/*: added tree2 example from Lucas Brasilino - -Wed Nov 19 17:50:47 HKT 2003 William Brack - - * doc/newapi.xsl: improve the sort sequence for page content - * doc/html/*.html: regenerate the web pages - -Wed Nov 19 00:48:56 CET 2003 Daniel Veillard - - * Makefile.am: do not package cvs versioning temp files. - * doc/apibuild.py doc/libxml2-api.xml doc/newapi.xsl: more cleanup, - slightly improved the API xml format, fixed a lot of small - rendering problems - * doc/html/libxml*.html: rebuilt - -Tue Nov 18 21:51:15 CET 2003 Daniel Veillard - - * include/libxml/*.h include/libxml/*.h.in: modified the file - header to add more informations, painful... - * genChRanges.py genUnicode.py: updated to generate said changes - in headers - * doc/apibuild.py: extract headers, add them to libxml2-api.xml - * *.html *.xsl *.xml: updated the stylesheets to flag geprecated - APIs modules. Updated the stylesheets, some cleanups, regenerated - * doc/html/*.html: regenerated added back book1 and libxml-lib.html - -Tue Nov 18 14:43:16 CET 2003 Daniel Veillard - - * doc/Makefile.am doc/*.xsl doc/*.html doc/apibuild.py: cleaned up - the build process to remove all remains from the old gtk-doc - inherited, libxml2-refs.xml is now generated by apibuild.py, the - stylesheets have been improved, and the API*html now generated - are XHTML1 valid too - -Tue Nov 18 14:28:32 HKT 2003 William Brack - - * genChRanges.py, chvalid.c, include/libxml/chvalid.h: minor - enhancement to prevent comment with unreferenced variable. - * threads.c xmlreader.c xmlwriter.c: edited some comments to - improve auto-generation of documentation - * apibuild.py: minor change to an error message - -Mon Nov 17 17:55:51 CET 2003 Daniel Veillard - - * doc/apibuild.py doc/libxml2-api.xml doc/newapi.xsl: more cleanup, - improving navigation - * doc/html/*.html: updated the result - -Mon Nov 17 14:54:38 CET 2003 Daniel Veillard - - * doc/Makefile.am doc/apibuild.py doc/libxml2-api.xml doc/newapi.xsl: - improvement of the stylesheets, fixed a API generation problem, - switched the stylesheet and Makefile to build the HTML output. - * doc/html/*.html: complete update, ditched some old files, might - introduce some breakage... - -Mon Nov 17 12:50:28 CET 2003 Daniel Veillard - - * doc/newapi.xsl: lot of improvements, this starts looking good - enough to be usable. - -Mon Nov 17 00:58:09 CET 2003 Daniel Veillard - - * doc/newapi.xsl: stylesheet to build HTML pages from the - API XML description, Work in Progress - -Sun Nov 16 16:03:24 HKT 2003 William Brack - - * xpath.c: fixed bug 126976 (string != empty nodeset - should be false) - -Sun Nov 16 14:00:08 HKT 2003 William Brack - - * doc/html/*.html: Finally - found the problem with the - page generation (XMLPUBFUN not recognized by gtkdoc). - Re-created the pages using a temporary version of - include/libxml/*.h. - * testOOMlib.c,include/libxml/encoding.h, - include/libxml/schemasInternals.h,include/libxml/valid.h, - include/libxml/xlink.h,include/libxml/xmlwin32version.h, - include/libxml/xmlwin32version.h.in, - include/libxml/xpathInternals.h: minor edit of comments - to help automatic documentation generation - * doc/docdescr.doc: small elaboration - * doc/examples/test1.c,doc/examples/Makefile.am: re-commit - (messed up on last try) - * xmlreader.c: minor change to clear warning. - -Sat Nov 15 19:20:32 CET 2003 Daniel Veillard - - * Copyright: fixed some wording - * libxml.spec.in: make sure doc/examples is packaged - * include/libxml/tree.h valid.c xmlreader.c: fixed the really - annoying problem about xmlRemoveID and xmlReader streaming. - Thing looks fixed now, had to add a doc reference to the - xmlID structure though... - -Sat Nov 15 09:53:36 MST 2003 John Fleck - - * doc/docdescr.doc: added description of man page building - -Sat Nov 15 19:08:22 HKT 2003 William Brack - - * doc/html/libxml-chvalid.html, doc/html/libxml-dict.html, - doc/html/libxml-list.html, doc/html/libxml-testOOMlib.html, - doc/html/libxml-wincecompat, doc/html/winsockcompat.html, - doc/html/libxml-xmlexports.html, doc/html/libxml-xmlversion.html, - doc/html/libxml-xmlwin32version.html, doc/html/libxml-xmlwriter.html: - added missing pages for the website. - -Sat Nov 15 18:23:48 HKT 2003 William Brack - - * doc/Makefile.am doc/*.html doc/html/*.html: rebuilt the - generated pages (again), manually restored doc/html/index.html - and manually edited generated file doc/gnome-xml.xml to put - in appropriate headings. - * doc/docdescr.doc: new file to describe details of the - document generation (helps my memory for the next time) - * genChRanges.py,chvalid.c,include/libxml/chvalid.h: minor - enhancement to please the automatic documentation generation. - -Fri Nov 14 23:47:31 HKT 2003 William Brack - - * catalog.c,relaxng.c,testAutomata.c,xpointer.c,genChRanges.py, - chvalid.c,include/libxml/chvalid.h,doc/examples/test1.c: - minor error cleanup for gcc-3.3.[12] compilation warnings. - -Fri Nov 14 15:08:13 HKT 2003 William Brack - - * tree.c: minor changes to some comments - * doc/*.html: rebuilt the generated HTML pages for changes - from jfleck (bug 126945) - -Thu Nov 13 12:44:14 CET 2003 Daniel Veillard - - * doc/examples/*: added Dodji's example, added output handling - -Thu Nov 13 11:35:35 CET 2003 Daniel Veillard - - * doc/examples/*: added Aleksey XPath example, fixed bugs - in the indexer - -Wed Nov 12 23:48:26 CET 2003 Daniel Veillard - - * doc/*: integrating the examples in the navigation menus - * doc/examples/*: added make tests, updated the navigation, - added a new test, cleanups, updates. - -Wed Nov 12 17:50:36 CET 2003 Daniel Veillard - - * doc/*.html: rebuilt the generated HTML pages - * doc/examples/*: updated the stylesheets, added a synopsis, - Makefile.am is now generated by index.py - -Wed Nov 12 01:38:16 CET 2003 Daniel Veillard - - * doc/site.xsl doc/examples/Makefile.am doc/examples/index.html: - added autogeneration of a web page for the examples - * doc/examples/example1.c doc/examples/.cvsignore - doc/examples/examples.xml doc/examples/index.py: updated the - informations extracted, improved the format and indexing. - -Tue Nov 11 22:08:59 CET 2003 Daniel Veillard - - * check-xinclude-test-suite.py: less verbose on difference - * libxml.spec.in: cleanup - * parser.c: fixed xmlCleanupParser() doc - * doc/Makefile.am doc/apibuild.py doc/libxml2-api.xml - doc/examples/Makefile.am doc/examples/example1.c - doc/examples/examples.xml doc/examples/index.py - doc/examples/test1.xml: work on adding C examples and - generating automated information about those. examples.xml - is autogenerated describing the examples. - * example/Makefile.am: cleanup - -Mon Nov 10 23:47:03 HKT 2003 William Brack - - * genUnicode.py, xmlunicode.c, include/libxml/xmlunicode.h: - fixed missing '-' in block names, enhanced the hack for - ABI aliasing. - -Sun Nov 9 20:28:21 HKT 2003 William Brack - - * genUnicode.py, xmlunicode.c, include/libxml/xmlunicode.h, - python/libxml2class.txt: enhanced for range checking, - updated to Unicode version 4.0.1 (API docs also updated) - * python/generator.py: minor change to fix a warning - -Wed Nov 5 23:46:36 CET 2003 Daniel Veillard - - * Makefile.am: apply fix from Karl Eichwalder for script path - -Wed Nov 5 10:49:20 CET 2003 Daniel Veillard - - * win32/configure.js: applied patch from Mark Vakoc to simplify - his work from CVS checkouts. - -Tue Nov 4 21:16:47 MST 2003 John Fleck - - * doc/xmlreader.html: minor cleanups - -Tue Nov 4 15:52:28 PST 2003 William Brack - - * include/libxml/xmlversion.h.in: changed macro ATTRIBUTE_UNUSED - for gcc so that, if undefined, it's defined as - __attribute__((unused)) - -Tue Nov 4 15:28:07 PST 2003 William Brack - - * python/generator.py: small enhancement to assure ATTRIBUTE_UNUSED - appears after the variable declaration. - * valid.c: trivial change to eliminate a warning message - -Tue Nov 4 11:24:04 CET 2003 Daniel Veillard - - * configure.in NEWS doc/*: preparing release 2.6.2, updated and - rebuilt the docs - -Tue Nov 4 09:38:46 CET 2003 Daniel Veillard - - * xmllint.c: change --html to make sure we use the HTML serialization - rule by default when HTML parser is used, add --xmlout to allow to - force the XML serializer on HTML. - * HTMLtree.c: ugly tweak to fix the output on

element and - solve #125093 - * result/HTML/*: this changes the output of some tests - -Mon Nov 3 17:51:28 CET 2003 Daniel Veillard - - * xinclude.c: fixed bug #125812, about XPointer in XInclude - failing but not returning an error. - -Mon Nov 3 17:18:22 CET 2003 Daniel Veillard - - * valid.c: fixed bug #125811 related to DTD post validation - where the DTD doesn't pertain to a document. - -Mon Nov 3 15:25:58 CET 2003 Daniel Veillard - - * parser.c xmlIO.c include/libxml/parserInternals.h: implemented - the XML_PARSE_NONET parser option. - * xmllint.c: converted xmllint.c to use the option instead of - relying on the global resolver variable. - -Mon Nov 3 13:26:32 CET 2003 Daniel Veillard - - * xinclude.c xmlreader.c include/libxml/xinclude.h: adding XInclude - support to the reader interface. Lot of testing of the walker, - various bug fixes. - * xmllint.c: added --walker and made sure --xinclude --stream --debug - works as expected - * Makefile.am result/dtd11.rdr result/ent6.rdr test/dtd11 test/ent6 - result/XInclude/*.rdr: added regression tests for the walker and - XInclude xmlReader support, had to slightly change a couple of tests - because the walker can't distinguish from - -Sat Nov 1 17:42:27 CET 2003 Daniel Veillard - - * tree.c nanohttp.c threads.c: second BeOS patch from - Marcin 'Shard' Konicki - -Fri Oct 31 15:35:20 CET 2003 Daniel Veillard - - * parser.c: always generate line numbers - -Fri Oct 31 11:53:46 CET 2003 Daniel Veillard - - * parser.c: fixed another regression introduced in fixing #125823 - -Fri Oct 31 11:33:18 CET 2003 Daniel Veillard - - * python/libxml.c: previous fix for #124044 was broken, correct - fix provided. - * HTMLparser.c parser.c parserInternals.c xmlIO.c: fix xmlStopParser() - and the error handlers to address #125877 - -Thu Oct 30 23:10:46 CET 2003 Daniel Veillard - - * parser.c: side effect of #123105 patch, namespace resolution - would fail when defined in internal entities, fixes #125823 - -Thu Oct 30 14:10:42 CET 2003 Daniel Veillard - - * python/libxml.c: be more defensive in the xmlReader python bindings - fixing bug #124044 - -Thu Oct 30 11:14:31 CET 2003 Daniel Veillard - - * valid.c: the a-posteriori DTD validation code was not validating - the namespace declarations, this fixes #124110 - -Wed Oct 29 14:13:03 PDT 2003 William Brack - - * xmlIO.c: enhanced to bypass compression detection code - when input file is stdin (bug 125801) - -Wed Oct 29 18:21:00 CET 2003 Daniel Veillard - - * xmlIO.c: fix needed when HTTP is not compiled in by Mark Vakoc - -Wed Oct 29 18:05:53 CET 2003 Daniel Veillard - - * xpath.c: more fixes about unregistering objects - * include/libxml/relaxng.h: applied patch from Mark Vakoc - missing _cplusplus processing clause - -Wed Oct 29 07:49:52 2003 Aleksey Sanin - - * include/libxml/parser.h parser.c: added xmlStrVPrintf function - -Wed Oct 29 14:37:40 CET 2003 Daniel Veillard - - * nanoftp.c nanohttp.c testThreads.c threads.c: applied patch from - Marcin 'Shard' Konicki to provide BeOS thread support. - -Wed Oct 29 14:20:14 CET 2003 Daniel Veillard - - * xmlschemas.c include/libxml/xmlschemas.h: applied patch - from Steve Ball to make a schema parser from a preparsed document. - -Wed Oct 29 13:52:25 CET 2003 Daniel Veillard - - * tree.c: applied a couple of patches from Mark Lilback about text - nodes coalescing - -Wed Oct 29 12:16:52 CET 2003 Daniel Veillard - - * xpath.c: change suggested by Anthony Carrico when unregistering - a namespace prefix to a context - * hash.c: be more careful about calling callbacks with NULL payloads. - -Wed Oct 29 00:04:26 CET 2003 Daniel Veillard - - * configure.in NEWS doc/*: preparing release 2.6.1, updated and - regenerated docs and APIs - * parser.c: cleanup and last change to fix #123105 - -Tue Oct 28 23:02:29 CET 2003 Daniel Veillard - - * HTMLparser.c: Fix #124907 by simply backporting the same - fix as for the XML parser - * result/HTML/doc3.htm.err: change to ID detecting modified one - test result. - -Tue Oct 28 22:28:50 CET 2003 Daniel Veillard - - * parser.c include/libxml/parser.h: included a new function - to reuse a Push parser context, based on Graham Bennett original - code - * valid.c: in HTML, a name in an input is not an ID - * TODO: bug list update - -Tue Oct 28 19:54:37 CET 2003 Daniel Veillard - - * xpath.c: applied patch from nico@xtradyne.com for #125030 - -Tue Oct 28 16:42:16 CET 2003 Daniel Veillard - - * Makefile.am: cleanup - * error.c valid.c include/libxml/xmlerror.h: fixing bug #125653 - sometimes the error handlers can get a parser context on DTD - errors, and sometime they don't. So be very careful when trying - to grab those informations. - -Tue Oct 28 15:26:18 CET 2003 Daniel Veillard - - * tree.c: applied patch from Kasimier Buchcik which fixes a - problem in xmlSearchNs introduced in 2.6.0 - -Tue Oct 28 14:57:03 CET 2003 Daniel Veillard - - * parser.c: fixed #123263, the encoding is mandatory in a textdecl. - -Tue Oct 28 13:48:52 CET 2003 Daniel Veillard - - * tree.c: fix bug #125047 about serializing when finding a - document fragment node. - -Mon Oct 27 11:11:29 EST 2003 Daniel Veillard - - * testSAX.c: fix bug #125592 need a NULL check - * include/libxml/chvalid.h: rename a parameter - -Mon Oct 27 09:43:48 EST 2003 Daniel Veillard - - * parser.c: applied patch from #123105 about defaulted attributes - from element coming from an entity - -Mon Oct 27 21:12:27 HKT 2003 William Brack - - * xmllint.c: fixed warning message from IRIX (bug 125182) - * python/libxml.py: removed tabs, replaced with spaces - (bug 125572) - -Mon Oct 27 06:17:30 EST 2003 Daniel Veillard - - * libxml.h parserInternals.c xmlIO.c: make sure we report errors - if xmlNewInputFromFile() fails. - * xmlreader.c: avoid using _private for the node or document - elements. - -Sat Oct 25 17:33:59 CEST 2003 Igor Zlatkovic - - * win32/configure.js: added declaration for verMicroSuffix - -Fri Oct 24 23:08:17 CEST 2003 Daniel Veillard - - * libxml.m4: applied patch from Patrick Welche provided in - bug #125432 , future proofing the .m4 file. - * parser.c: resetting the context should also reset the error - * TODO: problem of conformance w.r.t. E20 was raised in the - XML Core telconf and libxml2 isn't conformant there. - -Wed Oct 22 14:33:05 CEST 2003 Daniel Veillard - - * xmlwriter.c: applied patch from Alfred Mickautsch fixing #125180 - -Wed Oct 22 10:50:31 CEST 2003 Daniel Veillard - - * chvalid.c genChRanges.py: Stephane Bidoul pointed out another - small glitch missing a const - -Wed Oct 22 10:43:21 CEST 2003 Daniel Veillard - - * chvalid.c genChRanges.py: Stephane Bidoul pointed out that - it doesn't define IN_LIBXML - -Tue Oct 21 21:14:55 CEST 2003 Daniel Veillard - - * win32/Makefile.mingw: typo pointed out by Stephane Bidoul - -Tue Oct 21 11:26:36 CEST 2003 Daniel Veillard - - * win32/Makefile.bcb win32/Makefile.mingw win32/Makefile.msvc - win32/configure.js: set of Win32 patches for 2.6.0 by Joachim Bauch - -Tue Oct 21 02:07:22 CEST 2003 Daniel Veillard - - * tree.c: last minute patch from Eric Zurcher making it into 2.6.0 - -Tue Oct 21 02:03:03 CEST 2003 Daniel Veillard - - * configure.in NEWS doc/libxml2.xsa: preparing libxml2-2.6.0 - * doc/*: updated and regenerated the docs and API - -Tue Oct 21 01:01:55 CEST 2003 Daniel Veillard - - * SAX2.c error.c tree.c: moved the line number to their proper - field in elements now. - -Tue Oct 21 00:28:20 CEST 2003 Daniel Veillard - - * configure.in xmlwriter.c Makefile.am include/libxml/xmlwriter.h - include/libxml/Makefile.am include/libxml/xmlversion.h.in: - added the xmlWriter module contributed by Alfred Mickautsch - * include/libxml/tree.h: added room for line and extra information - * xmlreader.c python/tests/reader6.py: bugfixing some problem some - of them introduced in September - * win32/libxml2.def.src doc/libxml2-api.xml: regenerated the API - -Mon Oct 20 19:02:53 CEST 2003 Daniel Veillard - - * Makefile.am configure.in xmldwalk.c xmlreader.c - include/libxml/Makefile.am include/libxml/xmldwalk.h - include/libxml/xmlversion.h.in: removing xmldwalk module - since it got merged with the xmlreader. - * parser.c: cleanup - * win32/libxml2.def.src python/libxml2class.txt doc/libxml2-api.xml: - rebuilt the API - * python/tests/Makefile.am python/tests/reader7.py - python/tests/walker.py: adding regression testing for the - new xmlreader APIs, new APIs for reader creation, including - makeing reader "walker" operating on preparsed document trees. - -Sun Oct 20 22:37:03 HKT 2003 William Brack - - * entities.c, valid.c: fixed problem reported on the mailing - list by Melvyn Sopacua - wrong argument order on functions - called through xmlHashScan. - -Sun Oct 19 23:57:45 CEST 2003 Daniel Veillard - - * valid.c xmlIO.c: fixes for compiling using --with-minimum - -Sun Oct 19 23:46:04 CEST 2003 Daniel Veillard - - * tree.c: cleanup xmlNodeGetContent() reusing xmlNodeBufGetContent(), - tested it through the xslt regression suite. - -Sun Oct 19 22:42:16 CEST 2003 Daniel Veillard - - * tree.c include/libxml/tree.h: adding xmlNodeBufGetContent() - allowing to grab the content without forcing allocations. - * python/libxml2class.txt doc/libxml2-api.xml: rebuilt the API - * xpath.c xmldwalk.c: removed a couple of comment errors. - -Sun Oct 19 16:39:36 CEST 2003 Daniel Veillard - - * parser.c: applied patch from Chris Anderson to change back - memcmp with CMPx() - -Sun Oct 19 16:24:19 CEST 2003 Daniel Veillard - - * HTMLparser.c: fixed to not send NULL to %s printing - * python/tests/error.py result/HTML/doc3.htm.err - result/HTML/test3.html.err result/HTML/wired.html.err - result/valid/t8.xml.err result/valid/t8a.xml.err: cleaning - up some of the regression tests error - -Sun Oct 19 15:31:43 CEST 2003 Daniel Veillard - - * include/libxml/nanohttp.h include/libxml/parserInternals.h - include/libxml/xmlIO.h nanohttp.c parserInternals.c xmlIO.c: - Fixed the HTTP<->parser interraction, which should fix 2 long - standing bugs #104790 and #124054 , this also fix the fact that - HTTP error code (> 400) should not generate data, we usually - don't want to parse the HTML error information instead of the - resource looked at. - -Sun Oct 19 19:20:48 HKT 2003 William Brack - - * doc/Makefile.am: enhanced the installation of tutorial files - to avoid installing CVS subdirectories (bug 122943) - -Sun Oct 19 17:33:27 HKT 2003 William Brack - - * xmlIO.c: fixed segfault when input file not present - * tree.c: changed output formatting of XML_CDATA_SECTION - (bug 120917) - -Sun Oct 19 00:15:38 HKT 2003 William Brack - - * include/libxml/parserInternals.h HTMLparser.c HTMLtree.c - SAX2.c catalog.c debugXML.c entities.c parser.c relaxng.c - testSAX.c tree.c valid.c xmlschemas.c xmlschemastypes.c - xpath.c: Changed all (?) occurences where validation macros - (IS_xxx) had single-byte arguments to use IS_xxx_CH instead - (e.g. IS_BLANK changed to IS_BLANK_CH). This gets rid of - many warning messages on certain platforms, and also high- - lights places in the library which may need to be enhanced - for proper UTF8 handling. - -Sat Oct 18 20:34:18 HKT 2003 William Brack - - * genChRanges.py, chvalid.c, include/libxml/chvalid.h, - doc/apibuild.py: enhanced to include enough comments to - make the api doc generation happy. - -Sat Oct 18 07:28:25 EDT 2003 Daniel Veillard - - * nanohttp.c xmlIO.c include/libxml/nanohttp.h: starting work - to fix the HTTP/XML parser integration. - -Sat Oct 18 11:04:32 CEST 2003 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h: added new APIs - for creating reader from sources or reusing a reader with - a new source, like the xmlReadxx and xmlCtxtReadxxx - * win32/libxml2.def.src doc/libxml2-api.xml doc/apibuild.py - doc/Makefile.am: regenerated the APIs - * doc/xml.html: applied a patch from Stefan Kost for namesapce docs - -Sat Oct 18 12:46:02 HKT 2003 William Brack - - * genChRanges.py, chvalid.c, include/libxml/chvalid.h, - include/libxml/parserInternals.h: enhanced macros to avoid - breaking ABI from previous versions. - * catalog.c, parser.c, tree.c: modified to use IS_* macros - defined in parserInternals.h. Makes maintenance much easier. - * testHTML.c, testSAX.c, python/libxml.c: minor fixes to avoid - compilation warnings - * configuration.in: fixed pushHTML test error; enhanced for - better devel (me) testing - -Fri Oct 17 14:38:54 CEST 2003 Daniel Veillard - - * legacy.c: remove the warning for startDocument(), as it is used by - glade (or glade-python) - * parser.c relaxng.c xmlschemastypes.c: fixed an assorted set of - invalid accesses found by running some Python based regression - tests under valgrind. There is still a few leaks reported by the - relaxng regressions which need some attention. - * doc/Makefile.am: fixed a make install problem c.f. #124539 - * include/libxml/parserInternals.h: addition of xmlParserMaxDepth - patch from crutcher - -Wed Oct 15 12:47:33 CEST 2003 Daniel Veillard - - * parser.c: Marc Liyanage pointed out that xmlCleanupParser() - was missing xmlCleanupInputCallbacks and xmlCleanupOutputCallbacks - calls. - -Wed Oct 15 10:16:47 CEST 2003 Daniel Veillard - - * vms/build_libxml.com trionan.c: VMS patch from Craig A. Berry - -Mon Oct 13 21:46:25 CEST 2003 Daniel Veillard - - * Makefile.am: small fix from Bjorn Reese - -Mon Oct 13 15:59:25 CEST 2003 Daniel Veillard - - * valid.c: fix a call missing arguments - -Sun Oct 12 18:42:18 HKT 2003 William Brack - - * genChRanges.py, chvalid.c, include/libxml/chvalid.h: fixed - a bug in the range search; enhanced range generation (inline code - if a small number of intervals); enhanced the readability of the - output files. - -Sun Oct 12 00:52:14 CEST 2003 Daniel Veillard - - * chvalid.def chvalid.c include/libxml/chvalid.h: rebuilt - chvalid.def from scratch based on XML 2nd edition REC - and regenerated the code. - -Sat Oct 11 22:54:13 CEST 2003 Daniel Veillard - - * check-xml-test-suite.py: removed some annoying warnings - * chvalid.def chvalid.c include/libxml/chvalid.h: fixed a bug - in the PubidChars definition, regenerated, there is still - a bug left somewhere - * genChRanges.py: save the header directly in include/libxml/ - * configure.in: I generated a 2.6.0beta6 earlier today - -Sat Oct 11 23:32:47 HKT 2003 William Brack - - * fixed small error on previous commit (chvalid.h in - base dir instead of include directory) - -Sat Oct 11 23:11:22 HKT 2003 William Brack - - * genChRange.py, chvalid.def, chvalid.c, include/libxml/chvalid.h: - new files for a different method for doing range validation - of character data. - * Makefile.am, parserInternals.c, include/libxml/Makefile.am, - include/libxml/parserInternals.h: modified for new range method. - * catalog.c: small enhance for warning message (using one - of the new range routines) - -Sat Oct 11 13:24:57 CEST 2003 Daniel Veillard - - * valid.c include/libxml/valid.h: adding an serror field to - the validation context breaks the ABI for the xmlParserCtxt - structure since it's embedded by content and not by reference - -Sat Oct 11 12:46:49 CEST 2003 Daniel Veillard - - * configure.in: patch from Mike Hommey - * threads.c: applied Windows patch from Jesse Pelton and Stephane - Bidoul - * parser.c: fix the potentially nasty access to ctxt->serror - without checking first that the SAX block is version 2 - -Fri Oct 10 21:34:01 CEST 2003 Daniel Veillard - - * SAX2.c: fixed a nasty bug with interning some text strings - * configure.in: prepare for beta5 of 2.6.0 - * libxml.h nanoftp.c nanohttp.c xmlIO.c include/libxml/xmlerror.h: - better error handling for I/O and converted FTP and HTTP - * parser.c: fixed another bug - -Fri Oct 10 16:45:20 CEST 2003 Daniel Veillard - - * SAX2.c: fixed uninitialized new field. - * result/VC/OneID2 result/relaxng/*.err: fixed a typo updating - all messages - -Fri Oct 10 16:19:17 CEST 2003 Daniel Veillard - - * include/libxml/tree.h: make room in Doc, Element, Attributes - for PSVI type informations. - -Fri Oct 10 16:08:02 CEST 2003 Daniel Veillard - - * HTMLparser.c c14n.c catalog.c error.c globals.c parser.c - parserInternals.c relaxng.c valid.c xinclude.c xmlIO.c xmlregexp.c - xmlschemas.c xpath.c xpointer.c include/libxml/globals.h - include/libxml/parser.h include/libxml/valid.h - include/libxml/xmlerror.h: Setting up the framework for structured - error reporting, touches a lot of modules, but little code now - the error handling trail has been cleaned up. - -Fri Oct 10 14:29:42 CEST 2003 Daniel Veillard - - * c14n.c include/libxml/xmlerror.h: converted the C14N module too - -Fri Oct 10 13:40:51 CEST 2003 Daniel Veillard - - * xpath.c: cleanup - * xpointer.c include/libxml/xmlerror.h: migrated XPointer module - to the new error mechanism - -Fri Oct 10 12:49:53 CEST 2003 Daniel Veillard - - * error.c xmlschemas.c: a bit of cleanup - * result/schemas/*.err: updated with the new result strings - -Fri Oct 10 03:58:39 PDT 2003 William Brack - - * xpath.c: fixed bug 124061 - -Fri Oct 10 02:47:22 CEST 2003 Daniel Veillard - - * Makefile.am: cleanup - * encoding.c: fix a funny typo - * error.c xmlschemas.c xmlschemastypes.c include/libxml/xmlerror.h: - converted the Schemas code to the new error handling. PITA, - still need to check output from regression tests. - -Thu Oct 9 15:13:53 CEST 2003 Daniel Veillard - - * HTMLtree.c include/libxml/xmlerror.h: converted too - * tree.c: small cleanup - -Thu Oct 9 13:44:57 CEST 2003 Daniel Veillard - - * xinclude.c: comment fix - * catalog.c include/libxml/xmlerror.h: migrating the catalog code - to the new infrastructure - -Thu Oct 9 00:36:03 CEST 2003 Daniel Veillard - - * xmlIO.c: final error handling cleanup - * xinclude.c error.c: converted XInclude to the new error handling - * include/libxml/xmlerror.h: added XInclude errors - -Wed Oct 8 23:31:23 CEST 2003 Daniel Veillard - - * parser.c: bug in compression saving was crashing galeon - reported by teuf - -Wed Oct 8 21:18:12 CEST 2003 Daniel Veillard - - * error.c tree.c xmlIO.c xmllint.c: more cleanup through the - I/O error path - -Wed Oct 8 20:57:27 CEST 2003 Daniel Veillard - - * xmlIO.c: better handling of error cases - -Wed Oct 8 13:51:14 CEST 2003 Daniel Veillard - - * xmlIO.c xmllint.c include/libxml/xmlerror.h: first pass at - cleaning up error handling in the I/O module. - -Wed Oct 8 10:52:05 CEST 2003 Daniel Veillard - - * xmlregexp.c include/libxml/xmlerror.h: error handling - cleanup of the Regexp module. - -Wed Oct 8 01:09:05 CEST 2003 Daniel Veillard - - * tree.c: converting the tree module too - * error.c include/libxml/xmlerror.h: created a simpler internal - error reporting function. - -Tue Oct 7 23:19:39 CEST 2003 Daniel Veillard - - * error.c include/libxml/xmlerror.h include/libxml/xpath.h - include/libxml/xpathInternals.h xpath.c: cleaning up XPath - error reporting that time. - * threads.c: applied the two patches for TLS threads - on Windows from Jesse Pelton - * parser.c: tiny safety patch for xmlStrPrintf() make sure the - return is always zero terminated. Should also help detecting - passing wrong buffer size easilly. - * result/VC/* result/valid/rss.xml.err result/valid/xlink.xml.err: - updated the results to follow the errors string generated by - last commit. - -Tue Oct 7 14:16:45 CEST 2003 Daniel Veillard - - * relaxng.c include/libxml/xmlerror.h: last cleanup of error - handling in the Relax-NG module. - -Tue Oct 7 13:30:39 CEST 2003 Daniel Veillard - - * error.c relaxng.c include/libxml/xmlerror.h: switched Relax-NG - module to teh new error reporting. Better default report, adds - the element associated if found, context and node are included - in the xmlError - * python/tests/reader2.py: the error messages changed. - * result/relaxng/*: error message changed too. - -Mon Oct 6 10:46:35 CEST 2003 Daniel Veillard - - * win32/Makefile.bcb win32/Makefile.mingw win32/Makefile.msvc - win32/configure.js: applied patch from Stéphane Bidoul to - fix the compilation of 2.6.0 code on Win32 - -Mon Oct 6 10:16:30 CEST 2003 Daniel Veillard - - * check-xml-test-suite.py: fixing the script - * parser.c: replace sequences of RAW && NXT(.) == '.' with - memcmp calls, seems to not break conformance, slightly inflate - the size of the gcc generated code though. - -Sun Oct 5 23:30:48 CEST 2003 Daniel Veillard - - * parserInternals.c parser.c valid.c include/libxml/parserInternals.h: - more cleanup of error handling in parserInternals, sharing the - routine for memory errors. - -Sun Oct 5 15:49:14 CEST 2003 Daniel Veillard - - * HTMLparser.c Makefile.am legacy.c parser.c parserInternals.c - include/libxml/xmlerror.h: more code cleanup, especially around - error messages, the HTML parser has now been upgraded to the new - handling. - * result/HTML/*: a few changes in the resulting error messages - -Sat Oct 4 23:06:41 CEST 2003 Daniel Veillard - - * parser.c include/libxml/xmlerror.h: more error/warning - handling cleanups, the XML parser module should be okay now. - -Sat Oct 4 01:58:27 CEST 2003 Daniel Veillard - - * Makefile.am configure.in xmldwalk.c include/libxml/Makefile.am - include/libxml/xmldwalk.h include/libxml/xmlversion.h.in: - integrated the xmlDocWalker API given by Alfred Mickautsch, - and providing an xmlReader like API but working on a xmlDocPtr. - -Sat Oct 4 00:18:29 CEST 2003 Daniel Veillard - - * Makefile.am: more cleanup in make tests - * error.c valid.c parser.c include/libxml/xmlerror.h: more work - in the transition to the new error reporting strategy. - * python/tests/reader2.py result/VC/* result/valid/*: - few changes in the strings generated by the validation output - -Fri Oct 3 00:19:02 CEST 2003 Daniel Veillard - - * Makefile.am: changed 'make tests' to use a concise output, - scrolling to see where thing broke wasn't pleasant - * configure.in: some beta4 preparation, but not ready yet - * error.c globals.c include/libxml/globals.h include/libxml/xmlerror.h: - new error handling code, last error informations are stored - in the parsing context or a global variable, new APIs to - handle the xmlErrorPtr type. - * parser.c parserInternals.c valid.c : started migrating to the - new error handling code, it's a royal pain. - * include/libxml/parser.h include/libxml/parserInternals.h: - moved the definition of xmlNewParserCtxt() - * parser.c: small potential buffer access problem in push code - provided by Justin Fletcher - * result/*.sax result/VC/PENesting* result/namespaces/* - result/valid/*.err: some error messages were sligthly changed. - -Thu Oct 2 13:01:13 2003 Aleksey Sanin - - * include/libxml/parser.h parser.c: introduced xmlStrPrintf - function (wrapper around snprintf) - -Wed Oct 1 21:12:06 CEST 2003 Daniel Veillard - - * entities.c: Fix error on output of high codepoint charref like - 􏿿 , reported by Eric Hanchrow - -Wed Oct 1 14:20:10 CEST 2003 Daniel Veillard - - * DOCBparser.c include/libxml/DOCBparser.h: let's see how much - of a pain murrayc is really gonna be. - -Wed Oct 1 11:03:40 CEST 2003 Daniel Veillard - - * xmlreader.c: Applied fix for bug #123481 reported by Peter Derr - -Tue Sep 30 15:34:31 CEST 2003 Daniel Veillard - - * entities.c legacy.c parser.c: made the predefined entities - static predefined structures to avoid the work, memory and - hazards associated to initialization/cleanup. - -Tue Sep 30 14:30:47 CEST 2003 Daniel Veillard - - * HTMLparser.c Makefile.am configure.in legacy.c parser.c - parserInternals.c testHTML.c xmllint.c include/libxml/HTMLparser.h - include/libxml/parser.h include/libxml/parserInternals.h - include/libxml/xmlversion.h.in: added a new configure - option --with-push, some cleanups, chased code size anomalies. - Now a library configured --with-minimum is around 150KB, - sounds good enough. - -Tue Sep 30 12:31:00 AEST 2003 Malcolm Tredinnick - - * libxml-2.0-uninstalled.pc.in: New file for building against - uninstalled libxml2 builds. - * configure.in, Makefile.am: Support the *-uninstalled.pc file. - * .cvsignore: Ignore the new generated *.pc file. - -Tue Sep 30 02:38:16 CEST 2003 Daniel Veillard - - * Makefile.am SAX.c SAX2.c configure.in globals.c parser.c - parserInternals.c testReader.c testSAX.c xmlIO.c xmllint.c - xmlreader.c example/gjobread.c include/libxml/xmlversion.h.in: - added 2 new configure option: --with-reader --with-sax1 - to allow removing the reader or non-xmlReadxxx() interfaces. - -Mon Sep 29 19:58:26 CEST 2003 Daniel Veillard - - * configure.in entities.c tree.c valid.c xmllint.c - include/libxml/tree.h include/libxml/xmlversion.h.in: - Adding a configure option to remove tree manipulation - code which is not strictly needed by the parser. - -Mon Sep 29 15:23:41 CEST 2003 Daniel Veillard - - * nanoftp.c nanohttp.c: last finishing touch to the BeOS - patch from Marcin 'Shard' Konicki - -Mon Sep 29 15:15:08 CEST 2003 Daniel Veillard - - * HTMLtree.c SAX2.c c14n.c catalog.c configure.in debugXML.c - encoding.c entities.c nanoftp.c nanohttp.c parser.c relaxng.c - testAutomata.c testC14N.c testHTML.c testRegexp.c testRelax.c - testSchemas.c testXPath.c threads.c tree.c valid.c xmlIO.c - xmlcatalog.c xmllint.c xmlmemory.c xmlreader.c xmlschemas.c - example/gjobread.c include/libxml/HTMLtree.h include/libxml/c14n.h - include/libxml/catalog.h include/libxml/debugXML.h - include/libxml/entities.h include/libxml/nanohttp.h - include/libxml/relaxng.h include/libxml/tree.h - include/libxml/valid.h include/libxml/xmlIO.h - include/libxml/xmlschemas.h include/libxml/xmlversion.h.in - include/libxml/xpathInternals.h python/libxml.c: - Okay this is scary but it is just adding a configure option - to disable output, this touches most of the files. - -Mon Sep 29 12:53:56 CEST 2003 Daniel Veillard - - * xmlmemory.c: better fix, avoids breaking the python bindings - -Mon Sep 29 11:21:33 CEST 2003 Daniel Veillard - - * xmlmemory.c: fix a compilation problem when configuring - with debug but without mem-debug - -Sun Sep 28 20:53:17 CEST 2003 Daniel Veillard - - * Makefile.am: cleanup, creating a new legacy.c module, - made sure make tests ran in reduced conditions - * SAX.c SAX2.c configure.in entities.c globals.c parser.c - parserInternals.c tree.c valid.c xlink.c xmlIO.c xmlcatalog.c - xmlmemory.c xpath.c xmlmemory.c include/libxml/xmlversion.h.in: - increased the modularization, allow to configure out - validation code and legacy code, added a configuration - option --with-minimum compiling only the mandatory code - which then shrink to 200KB. - -Sun Sep 28 02:15:07 CEST 2003 Daniel Veillard - - * parser.c: fix a bug raised by the Mips compiler. - * include/libxml/SAX.h include/libxml/parser.h: move the - SAXv1 block definitions to parser.h fixes bug #123380 - * xmlreader.c include/libxml/xmlreader.h: reinstanciate - the attribute and element pool borken 2 commits ago. - Start playing with an entry point to preserve a subtree. - * entities.c: remove a warning. - -Sat Sep 27 12:19:38 PDT 2003 William Brack - - * encoding.c, parser.c, relaxng.c: further (final?) minor - changes for compilation warnings. No change to logic. - -Fri Sep 26 18:03:42 PDT 2003 William Brack - - * parser.c: fixed small problem with missing entities (test/ent2) - -Sat Sep 27 01:25:39 CEST 2003 Daniel Veillard - - * parser.c: William's change allowed to spot a nasty bug in xmlDoRead - if the result is not well formed that ctxt->myDoc is not NULL - and uses the context dictionnary. - -Fri Sep 26 21:09:34 CEST 2003 Daniel Veillard - - * parser.c: other patches from William Brack to avoid - compilation warnings on AIX. - -Fri Sep 26 11:03:08 PDT 2003 William Brack - - * HTMLparser.c, entities.c, xmlreader.c: minor change to - avoid compilation warnings on some (e.g. AIX) systems - -Fri Sep 26 16:49:25 CEST 2003 Daniel Veillard - - * parserInternals.c: fixed a backward compatibility problem - when formatting "deprecated SAXv1 function ignorableWhitespace" - could be reproduced by xmllint --format - -Fri Sep 26 15:50:44 CEST 2003 Daniel Veillard - - * doc/libxml2-api.xml: rebuilt the API - * xmllint.c doc/xmllint.1 doc/xmllint.xml: added the new options - --nocdata and --nsclean to remove CDATA section and surperfluous - namespace declarations - * parser.c SAX2.c: implementation of the 2 new options - -Fri Sep 26 14:41:53 CEST 2003 Daniel Veillard - - * HTMLparser.c testHTML.c xmllint.c include/libxml/HTMLparser.h: - added the same htmlRead APIs than their XML counterparts - * include/libxml/parser.h: new parser options, not yet implemented, - added an options field to the context. - * tree.c: patch from Shaun McCance to fix bug #123238 when ]]> - is found within a cdata section. - * result/noent/cdata2 result/cdata2 result/cdata2.rdr - result/cdata2.sax test/cdata2: add one more cdata test - -Thu Sep 25 23:03:23 CEST 2003 Daniel Veillard - - * parser.c xmllint.c doc/libxml2-api.xml include/libxml/parser.h: - Changed the new xmlRead/xmlCtxtRead APIs to have an extra - base URL parameter when not loading from a file or URL. - -Thu Sep 25 16:23:58 CEST 2003 Daniel Veillard - - * configure.in: preparing a beta3 solving the ABI problems - * globals.c parser.c parserInternals.c testHTML.c HTMLparser.c SAX.c - include/libxml/globals.h include/libxml/SAX.h: make sure the - global variables for the default SAX handler are V1 ones to - avoid ABI compat problems. - * xmlreader.c: cleanup of uneeded code - * hash.c: fix a comment - -Thu Sep 25 14:16:51 CEST 2003 Daniel Veillard - - * SAX2.c hash.c parser.c include/libxml/xmlexports.h - include/libxml/xmlmemory.h include/libxml/xmlversion.h.in: - fixing some comments to avoid warnings from apibuild.py - -Wed Sep 24 23:42:08 CEST 2003 Daniel Veillard - - * win32/configure.js: patch from Stephane Bidoul for configuring - the beta2 version #123104 - -Wed Sep 24 23:17:59 CEST 2003 Daniel Veillard - - * Makefile.am: adding repeated parsing and validating tests - * SAX2.c parser.c tree.c include/libxml/parser.h: make the new - DOM tree building interfaces use the dictionary from the - parsing context to build the element and attributes names - as well as formatting spaces and short text nodes - * include/libxml/dict.h dict.c: added some reference counting - for xmlDictPtr because they can be shared by documents and - a parser context. - * xmlreader.c: a bit of cleanup, remove the specific tree freeing - functions and use the standard ones now. - * xmllint.c: add --nodict - * python/libxml.c: fix a stupid bug so that ns() works on - attribute nodes. - -Tue Sep 23 23:07:45 CEST 2003 Daniel Veillard - - * parser.c include/libxml/parser.h: adding a new set of - API for parsing xmlReadDoc() xmlReadFile() ... xmlReadIO() - and xmlCtxtReadDoc() ... xmlCtxtReadIO(). That with - a clear define of xmlParserOption, xmlCtxtUseOptions() - should simplify custom parsing without being tempted to - use global variables, and xmlCtxtReset() should allow reuse - of a context for multiple parsing. - * xmllint.c: switched to use xmlReadXXX, allow options to - be used simultaneously with less troubles. - * tree.c: simple warning removal - * doc/apibuild.py: small fix - * doc/libxml2-api.xml win32/libxml2.def.src: updated - -Tue Sep 23 11:15:23 CEST 2003 Daniel Veillard - - * parser.c: revert xmlCreateDocParserCtxt() since this break - the parseDoc() python bindings - -Tue Sep 23 11:00:18 CEST 2003 Daniel Veillard - - * parser.c: make sure xmlDetectSAX2() is called only at - parsing time to avoid breaking apps changing the SAX - callbacks after context allocation, change xmlCreateDocParserCtxt() - to use an immutable buffer instead of a copy - -Tue Sep 23 09:40:33 CEST 2003 Daniel Veillard - - * xmlIO.c: applied patch from Markus Keim fixing a problem - with I/O callback registration. - * include/libxml/xmlerror.h: fixed #122994 comment numbering - for xmlParserErrors - -Mon Sep 22 12:21:11 CEST 2003 Daniel Veillard - - * tree.c include/libxml/tree.h: the uri arg to xmlNodeSetBase is - really a const xmlChar* - * xmlreader.c include/libxml/xmlreader.h: addin the - xmlTextReaderConstString() to get an interned string from - the reader - -Sun Sep 20 17:22:20 PDT 2003 William Brack - - * error.c: fixed a warning message (trivial) - * doc/search.php: removed incorrect warning message when word - search not found in last of multiple tables (bug 119535) - -Fri Sep 19 14:26:28 CEST 2003 Daniel Veillard - - * configure.in: preparing a 2.6.0-beta2 release - * xmlIO.c: avoid a warning - * tree.c: avoid duplicate code in xmlReplaceNode as pointed out - by Chris Ryland - * include/libxml/dict.h: add a QName access lookup to the - dictionary. - * xmlreader.c include/libxml/xmlreader.h: adding const access - based on the dictionary interface for string read from the - reader, the node content access is still TODO, it's too different - -Fri Sep 19 00:01:08 CEST 2003 Daniel Veillard - - * SAX2.c: fixing namespace DTD validations - * result/valid/ns2.xml result/valid/ns.xml: the output of defaulted - namespaces is slightly different now. - * Makefile.am: report the memory used in Timingtests (as well as time) - -Thu Sep 18 15:29:46 CEST 2003 Daniel Veillard - - * Makefile.am: add streaming on memory regression tests, found - bad bugs in the reader interface - * xmlreader.c: fixing bugs w.r.t. very large names, and special - condition in end of file. - * xmlIO.c tree.c include/libxml/tree.h include/libxml/xmlIO.h: - adding immutable buffers, and parser input based on those, - but this should not be used (yet) for general parsing - * parser.c: added a comment about using immutable buffers for - general parsing. - * result/bigname.xml.rdr result/bigname2.xml.rdr: fixing the - output of the regression tests - * xmllint.c: using the immutable buffers when streaming on - mmaped file (--stream --memory) - -Thu Sep 18 12:04:50 CEST 2003 Daniel Veillard - - * dict.c: the last patch broke unicity of returned strings, removed - -Thu Sep 18 00:31:02 CEST 2003 Daniel Veillard - - * Makefile.am: add a Timingtests target to check bad behaviour - from the streaming engine - * dbgen.pl dbgenattr.pl: perl script to generate big instances - * xmlreader.c: fix a bad behaviour on large buffer inputs - -Wed Sep 17 23:25:47 CEST 2003 Daniel Veillard - - * dict.c xmlreader.c: two small improvements - -Wed Sep 17 22:53:32 CEST 2003 Daniel Veillard - - * parserInternals.c: avoid a leak with previous patch - -Wed Sep 17 22:06:11 CEST 2003 Daniel Veillard - - * python/libxml.c: use stderr and not stdout for default errors - in python environment bug #122552 - -Wed Sep 17 21:33:57 CEST 2003 Daniel Veillard - - * parserInternals.c: small fix from Rob Richards for input filename - * xmllint.c: fixes for --repeat and --memory/--stream for speed tests - * xmlIO: adding a guard in one function - -Wed Sep 17 15:57:44 CEST 2003 Daniel Veillard - - * SAX2.c xmlreader.c include/libxml/parser.h: more performance hunting - reducing memory allocation and free and avoiding expensive routines - -Wed Sep 17 12:23:41 CEST 2003 Daniel Veillard - - * SAX2.c parser.c parserInternals.c xmlreader.c: started messing - seriously with per-document dict and element and attribute nodes - reuse in the xmlReader. This seems to lead to an interesting - speedup of the xmlReader already. - -Wed Sep 17 01:07:56 CEST 2003 Daniel Veillard - - * dict.c include/libxml/dict.h: do string allocations in large - pools, allowing to find if a string pertain to a dict quickly - * xmllint.c: fix --stream --repeat --timing - * Makefile.am: the testThreads run output should be seen. - -Mon Sep 15 16:46:28 CEST 2003 Daniel Veillard - - * SAX2.c include/libxml/parser.h: starting work on reusing the - parser dictionary for the element and attribute tag names. - Add pools for Element and Attributes in the parser context, - which should help speeding up the reader. - * Makefile.am result/*.rdr : adding non-python reader regression - tests. - -Mon Sep 15 14:54:42 CEST 2003 Daniel Veillard - - * SAX2.c parser.c valid.c: starting to cleanup some of the - problems exposed by the W3C/NIST regression suite. - * result/ent7.sax result/xml2.sax: small fixes. - -Mon Sep 15 11:46:47 CEST 2003 Daniel Veillard - - * parser.c: more parser error factoring - -Sun Sep 14 21:53:39 PDT 2003 William Brack - - * HTMLtree.c: Fixed bug 121394 - missing ns on attributes - -Sun Sep 14 21:43:32 CEST 2003 Daniel Veillard - - * parser.c include/libxml/xmlerror.h: factoring of more - error handling code, serious size reduction and more lisibility - of the resulting code. - * parserInternals.c parser.c include/libxml/parserInternals.h - include/libxml/parser.h: changing the way VC:Proper Group/PE Nesting - checks are done, use a counter for entities. Entities where freed and - reallocated at the same address failing the check. - * tree.c: avoid a warning - * result/valid/* result/VC/*: this slightly changes some validation - error messages. - -Sun Sep 14 11:03:27 PDT 2003 William Brack - - * valid.c: fixed bug 121759 - early declaration of - attribute-list in external DTD - -Sat Sep 13 14:42:11 CEST 2003 Daniel Veillard - - * parser.c include/libxml/xmlerror.h: starting cleaning up - error handling, factorize error processing - * doc/xmllint.html: update of the page, remove --sgml - -Sat Sep 13 02:13:50 CEST 2003 Daniel Veillard - - * Makefile.am DOCBparser.c parserInternals.c testDocbook.c - xmllint.c doc/xmllint.xml doc/xmllint.1: removing the - broken pseudo SGML DocBook parser code. - -Fri Sep 12 17:24:11 CEST 2003 Daniel Veillard - - * xpath.c: fix a problem with strcpy() in xmlXPathFormatNumber() - valgrind pointed out the strings overlapped. cleanup . - -Fri Sep 12 11:43:12 CEST 2003 Daniel Veillard - - * tree.c: applied speedup to xmlSearchNs() as suggested by - Luca Padovani. Cleaned up xmlSearchNsByHref() in the process - applying the same trick. - -Fri Sep 12 01:36:20 CEST 2003 Daniel Veillard - - * parser.c parserInternals.c tree.c include/libxml/parser.h - include/libxml/xmlerror.h: adding namespace checkings - while making sure they still parse as wellformed documents. - Add an nsWellFormed status report to the context, and - provide new appropriate error codes. - * Makefile.am result/namespaces/* test/namespaces/*: add - specific regression testing for the new namespace support - * test/att5 result/noent/att5 result/att5 result/att5.sax: - add more coverage for the attribute parsing and normalization - code. - -Fri Sep 12 01:34:19 CEST 2003 Daniel Veillard - - * threads.c: backport of a thread bugfix from 2_5_X branch - -Thu Sep 11 18:29:18 CEST 2003 Daniel Veillard - - * parser.c: fixed a bug in one corner case of attribute parsing. - -Thu Sep 11 16:21:53 CEST 2003 Daniel Veillard - - * configure.in doc/* : 2.6.0beta1 changes - * SAX2.c hash.c parser.c parserInternals.c: Fixing attribute - normalization, might not be totally fixed but this should - make sure SAX event provide the right strings for attributes - except entities for which libxml2 is different by default - This should fix #109564 - * result/attrib.xml.sax result/ent3.sax result/p3p.sax: minor changes - in attribute callback values - * result/c14n/with-comments/example-4 - result/c14n/without-comments/example-4: this also fixes a subtle - bug in the canonicalization tests. - -Wed Sep 10 12:38:44 CEST 2003 Daniel Veillard - - Time to commit 3 days of work rewriting the parser internal, - fixing bugs and migrating to SAX2 interface by default. There - is some work letf TODO, like namespace validation and attributes - normalization (this break C14N right now) - * Makefile.am: fixed the test rules - * include/libxml/SAX2.h include/libxml/parser.h - include/libxml/parserInternals.h SAX2.c parser.c - parserInternals.c: changing the parser, migrating to SAX2, - adding new interface to switch back to SAX1 or initialize a - SAX block for v1 or v2. Most of the namespace work is done - below SAX, as well as attribute defaulting - * globals.c: changed initialization of the default SAX handlers - * hash.c tree.c include/libxml/hash.h: added QName specific handling - * xmlIO.c: small fix - * xmllint.c testSAX.c: provide a --sax1 switch to test the old - version code path - * result/p3p result/p3p.sax result/noent/p3p test/p3p: the new code - pointed out a typo in a very old test namespace - -Sun Sep 7 19:58:33 PTD 2003 William Brack - - * xmlIO.c include/libxml/xmlIO.h parser.c: Implemented detection - of compressed files, setting doc->compressed appropriately - (bug #120503). - -Sun Sep 7 22:53:06 CEST 2003 Daniel Veillard - - * parser.c: try to cope with the fact that apps may still - have allocated smaller SAX callbak block - -Sun Sep 7 11:11:45 CEST 2003 Daniel Veillard - - * dict.c: allow to give -1 for undefined length in lookups - * include/libxml/parser.h parser.c parserInternals.c testSAX.c: - first round of work on the new SAX2 interfaces, the API - will change but commiting before changing for historical - reference. - -Sat Sep 6 10:55:01 PTD 2003 William Brack - - * SAX2.c, xmlIO.c: fixed bug #121210 (callback to sax->error, - sax->warning with wrong params). - -Fri Sep 5 10:33:42 CEST 2003 Daniel Veillard - - * include/libxml/globals.h: patch from Stéphane Bidoul to export - globals entry points to the python bindings - -Wed Sep 3 15:24:41 CEST 2003 Daniel Veillard - - * HTMLparser.c: when creating a DOCTYPE use "html" lowercase - by default instead of "HTML" - * parser.c xmlreader.c: optimization, gain a few % parsing speed by - avoiding calls to "areBlanks" when not needed. - * include/libxml/parser.h include/libxml/tree.h: some structure - extensions for future work on using per-document dictionaries. - -Wed Sep 3 15:08:06 CEST 2003 Daniel Veillard - - * Makefile.am results/*.sax SAXResult/*: removing the SAXresults - tree, keeping result in the same tree, added SAXtests to the - default "make tests" - -Tue Sep 2 15:59:04 CEST 2003 Igor Zlatkovic - - * include/libxml/xmlexports.h: defined additional macros which - affect exports and added mingw section - -Mon Sep 1 15:15:18 PDT 2003 William Brack - - * doc/index.py: fixed problem parsing xhtml docs - * doc/xmlreader.html,doc/guidelines.html: small modification - to avoid problem in python parsing. - * doc/search.php: fixed upper case filename problem for XSLT docs - -Mon Sep 1 22:55:09 CEST 2003 Daniel Veillard - - * xinclude.c: patch from Mark Vakoc that allows compiling - with XInclude but without XPointer support. - -Mon Sep 1 22:31:38 CEST 2003 Daniel Veillard - - * configure.in xml2-config.in: Applied a patch from Kevin P. Fleming - to add --libtool-libs option to xml2-config script. - -Sun Aug 31 21:52:12 PDT 2003 William Brack - - * doc/README.docs, doc/Makefile.am: new file added, - giving some description of the documentation generation process - * doc/search.php: fixed problem with upper case on filenames - -Fri Aug 29 12:25:01 CEST 2003 Igor Zlatkovic - - * win32/Makefile.bcb: updates by Eric Zurcher - -Thu Aug 28 22:58:38 PDT 2003 William Brack - - * doc/apibuild.py, doc/libxml2-api.xml: enhanced code - to compensate for pollution from Igor's header taint - (quick before Daniel notices) - -Thu Aug 28 23:01:36 CEST 2003 Daniel Veillard - - * SAX2.c: fixed a namespace error on attribute reporting bug - pointed out by Tobias Reif - * test/p3p result/p3p result/noent/p3p: this test case was wrong - using xmlsn instead of xmlns... - -Thu Aug 28 18:25:07 CEST 2003 Igor Zlatkovic - - * include/libxml/globals.h include/libxml/xmlexports.h: fixed - typos reported by Mark Vakoc - -Thu Aug 28 08:59:51 MDT 2003 John Fleck - - add: - * doc/tutorial/api.html - * doc/tutorial/ar01s09.html - * doc/tutorial/includexpath.c - updated - * doc/tutorial/*.html - fix my bad - forgot to check in new files when I last - updated - -Thu Aug 28 14:31:13 CEST 2003 Igor Zlatkovic - - * win32/Makefile.bcb: new file, support for Borland C++ - * xmllint.c: fixed time inclusion for various compilers - -Thu Aug 28 12:32:59 CEST 2003 Igor Zlatkovic - - * parser.c parserInternals.c DOCBparser.c HTMLparser.c: added - few casts to shut the compiler warnings - -Thu Aug 28 12:23:51 CEST 2003 Igor Zlatkovic - - * win32/Makefile.* win32/configure.js: fixed for mingw - -Thu Aug 28 10:01:44 CEST 2003 Daniel Veillard - - * globals.c threads.c: fixing bug #120870 try to avoid problem - with uninitialized mutexes - -Wed Aug 27 16:12:41 CEST 2003 Daniel Veillard - - * relaxng.c: fixed an error reporting bug in Relax-NG when we end - up with multiple states, select the "best" one. Fix #120682 - * result/relaxng/tutor11_2_3.err: small change resulting - -Wed Aug 27 11:25:25 CEST 2003 Daniel Veillard - - * xmlschemastypes.c: applied base64 support patch from Anthony Carrico - -Wed Aug 27 10:58:51 CEST 2003 Igor Zlatkovic - - * include/libxml/[threads-xpointer].h: realigned parameters - after taint - -Wed Aug 27 09:59:54 CEST 2003 Igor Zlatkovic - - * include/libxml/xmlexports.h: fixed defs for Borland compiler, - as reported by Eric Zurcher - -Tue Aug 26 15:54:04 CEST 2003 Daniel Veillard - - * relaxng.c: fixed bug #120386 again a problem introduced when - trying to reuse automata for content validation. Fix a bug report - problem on zeroOrMore - * result/relaxng/tutor3_7_err: change slightly error reporting. - -Mon Aug 25 13:24:57 CEST 2003 Daniel Veillard - - * include/libxml/Makefile.am: make sure the new header will - be included when generating a new distribution. - -Mon Aug 25 12:37:05 CEST 2003 Daniel Veillard - - * relaxng.c: fixed a couple of stupid bugs in the state allocation - routines which led to bug #120040 and the ones reported by - Martijn Faassen - -Mon Aug 25 12:37:23 CEST 2003 Igor Zlatkovic - - * include/libxml/parserInternals.h include/libxml/relaxng.h - include/libxml/SAX.h include/libxml/SAX2.h: realigned the - parameters after taint. - -Mon Aug 25 11:16:01 CEST 2003 Igor Zlatkovic - - * include/libxml/xmlversion.h.in: moved export defs to a separate - file for consistency. - * include/libxml/xmlexports.h: new file, contains export defs. - -Mon Aug 25 11:01:49 CEST 2003 Igor Zlatkovic - - * include/libxml/*.h genUnicode.py: exportability taint - of the headers. - -Thu Aug 21 12:37:46 CEST 2003 Daniel Veillard - - * SAX.c: make the deprecated interfaces log an error message - to be sure it won't get used. - -Thu Aug 21 00:50:32 CEST 2003 Daniel Veillard - - * Makefile.am SAX2.c include/libxml/Makefile.am include/libxml/SAX2.h: - Adding new version of the SAX interface, it's not there yet, - currently just preparing the work - * globals.c parser.c SAX.c include/libxml/SAX.h - include/libxml/globals.h include/libxml/parser.h: doing some - refactoring of the SAXv1 interfaces, obsoleting a bunch of them - while keeping functionalities, preparing SAX2 integration. - * dict.c: small cleanup. - -Wed Aug 20 00:20:01 CEST 2003 Daniel Veillard - - * tree.c: fixes a small bug introduced in last commit and detected - by valgrind. - -Tue Aug 19 16:54:18 CEST 2003 Daniel Veillard - - * dict.c hash.c: optimization when freeing hash tables. - * parser.c xmlIO.c include/libxml/tree.h: some tuning of buffer - allocations - * parser.c parserInternals.c include/libxml/parser.h: keep a - single allocated block for all the attributes callbacks, - avoid useless malloc()/free() - * tree.c: do not realloc() when growing a buffer if the buffer - ain't full, malloc/memcpy/free avoid copying memory. - -Mon Aug 18 18:37:01 CEST 2003 Daniel Veillard - - * xmllint.c doc/xmllint.xml doc/xmllint.1: added option - --dtdvalidfpi for Tobias Reif - -Mon Aug 18 14:03:03 CEST 2003 Daniel Veillard - - * dict.c include/libxml/dict.h Makefile.am include/libxml/Makefile.am: - new dictionary module to keep a single instance of the names used - by the parser - * DOCBparser.c HTMLparser.c parser.c parserInternals.c valid.c: - switched all parsers to use the dictionary internally - * include/libxml/HTMLparser.h include/libxml/parser.h - include/libxml/parserInternals.h include/libxml/valid.h: - Some of the interfaces changed as a result to receive or return - "const xmlChar *" instead of "xmlChar *", this is either - insignificant from an user point of view or when the returning - value changed, those function are really parser internal methods - that no user code should really change - * doc/libxml2-api.xml doc/html/*: the API interface changed and - the docs were regenerated - -Sun Aug 17 23:05:38 CEST 2003 Daniel Veillard - - * parser.c: applied patch to xmlCleanupParser from Dave Beckett - -Sat Aug 16 22:53:42 HKT 2003 William Brack - - * doc/parsedecl.py, doc/libxml2-refs.xml, doc/API*.html: - fixed part (2) of bug 119535 (wrong alpha case on filenames) - -Sat Aug 16 20:35:28 HKT 2003 William Brack - - * doc/API*.html, doc/html/*: regenerated API documentation - for xmlsoft.org (part of Bug 119535) - -Fri Aug 15 14:58:37 HKT 2003 William Brack - - * encoding.c, threads.c, include/libxml/HTMLparser.h, - doc/libxml2-api.xml: Minor changes to comments, etc. for - improving documentation generation - * doc/Makefile.am: further adjustment to auto-generation of - win32/libxml2.def.src - -Fri Aug 15 02:24:20 CEST 2003 Daniel Veillard - - * News configure.in: preparing libxml2-2.5.10 release - * doc/* : updated the doc and rebuilt - -Fri Aug 15 01:55:53 CEST 2003 Daniel Veillard - - * parser.c: fixing the xmlSAXParseDTD bug #119536 raised by - Malcolm Tredinnick with the patch he suggested. - -Fri Aug 15 01:37:10 CEST 2003 Daniel Veillard - - * HTMLparser.c: allocation error #119784 raised by Oliver Stoeneberg - -Fri Aug 15 00:41:58 CEST 2003 Daniel Veillard - - * uri.c: fixing an use of strcpy() where both strings overlap - pointed out by valgrind. - -Thu Aug 14 17:10:39 CEST 2003 Daniel Veillard - - * DOCBparser.c globals.c include/libxml/xmlmemory.h: get rid of - some compilation warnings. - * xinclude.c: fix the performance problem reported by Kevin Ruscoe - plus some cleanup and better error reporting. - -Thu Aug 14 14:13:43 CEST 2003 Daniel Veillard - - * encoding.c: applied UTF-16 encoding handling patch provided by - Mark Itzcovitz - * encoding.c parser.c: more cleanup and fixes for UTF-16 when - not having iconv support. - -Thu Aug 14 03:19:08 CEST 2003 Daniel Veillard - - * Makefile.am configure.in example/Makefile.am libxml.h nanoftp.c - nanohttp.c xmllint.c: Applied patch from Mikhail Grushinskiy for - mingw compiler on Windows. - -Thu Aug 14 02:28:36 CEST 2003 Daniel Veillard - - * parser.c: fixed the serious CPU usage problem reported by - Grant Goodale - * HTMLparser.c: applied patch from Oliver Stoeneberg about a free - missing in htmlSAXParseDoc - -Tue Aug 12 22:48:10 HKT 2003 William Brack - - * doc/Makefile.am: Removed dependency from libxml2.def.src - -Tue Aug 12 18:55:08 HKT 2003 William Brack - - * autogen.sh: took away the requirement for automake-1.4, - changed the messages for getting auto* tools to current - gnu pages. - * configure.in: added check for Linux Dec alpha requiring - -ieee flag, fixed test for ipv6 - * trionan.c: fixed problem for compiling on Linux Dec alpha - using native compiler - * doc/Makefile.am: implemented regeneration of win32/libxml2.def.src - whenever libxml2-api.xml is changed. - -Mon Aug 11 17:02:23 CEST 2003 Daniel Veillard - - * parser.c: cleaning up a problem when parsing UTF-16 and libiconv - is not used. - -Sun Aug 10 08:13:22 HKT 2003 William Brack - - * win32/libxml2.def.src: renerated with fixed libxml2-api.xml - -Sun Aug 10 00:22:55 CEST 2003 Daniel Veillard - - * News configure.in: preparing libxml2-2.5.9 release - * doc/* : updated the doc and rebuilt - -Sat Aug 9 20:00:13 CEST 2003 Daniel Veillard - - * include/libxml/xmlreader.h doc/libxml2-api.xml: changing an enum - definition to get a correct API XML description. This was apparently - breaking Windows build. - -Sat Aug 9 13:41:21 CEST 2003 Daniel Veillard - - * HTMLparser.c: fixed a nasty bug #119387, bad heuristic from - the progressive HTML parser front-end on large character data - island leading to an erroneous end of data detection by the - parser. Some cleanup too to get closer from the XML progressive - parser. - -Sat Aug 9 00:42:47 HKT 2003 William Brack - - * win32/configure.js: Added in support for the ISO8859X - module (patch provided by Jesse Pelton) - -Fri Aug 8 15:56:32 CEST 2003 Daniel Veillard - - * HTMLtree.c tree.c threads.c: hum try to avoid some troubles - when the library is not initialized and one try to save, the - locks in threaded env might not been initialized, playing safe - * xmlschemastypes.c: apply patch for hexBinary from Charles Bozeman - * test/schemas/hexbinary_* result/schemas/hexbinary_*: also added - his tests to the regression suite. - -Fri Aug 8 18:47:38 HKT 2003 William Brack - - * win32/defgen.xsl, win32/libxml2.def.src: Bug 119343 - (with apologies to Igor) - Enhanced handling of docb and - nanohttp. - -Thu Aug 7 21:13:22 HKT 2003 William Brack - - * encoding.c: further small changes for warnings when - configured with --with-iconv=no - -Wed Aug 6 12:32:11 HKT 2003 William Brack - - * error.c trionan.[ch] testThreads.c python/generator.py: - further small changes to elminate most of the remaining - warnings. - -Tue Aug 5 23:51:21 HKT 2003 William Brack - - * error.c HTMLparser.c testC14N.c testHTML.c testURI.c - xmlcatalog.c xmlmemory.c xmlreader.c xmlschemastypes.c - python/libxml.c include/libxml/xmlmemory.h: small changes - to syntax to get rid of compiler warnings. No changes - to logic. - -Mon Aug 4 22:40:54 CEST 2003 Daniel Veillard - - * doc/libxml2-api.xml doc/html/*: rebuilt the API and docs. - -Mon Aug 4 21:40:34 CEST 2003 Daniel Veillard - - * tree.c: fixed a small problem in the patch for #118763 - * result/HTML/doc3.htm*: this reverts back to the previous result - -Sun Aug 3 21:41:49 EDT 2003 Daniel Veillard - - * doc/FAQ.html doc/xml.html: applied doc patch to xml.html - and rebuilt, apparently some C++ wrappers are not available, - c.f. bug #118943 - -Sun Aug 3 21:30:31 EDT 2003 Daniel Veillard - - * tree.c: fixing HTML attribute serialization bug #118763 - applying a modified version of the patch from Bacek - * result/HTML/doc3.htm*: this modifies the output from one test - -Sun Aug 3 21:02:30 EDT 2003 Daniel Veillard - - * tree.c include/libxml/tree.h: added a new API to split a - QName without generating any memory allocation - * valid.c: fixed another problem with namespaces on element - in mixed content case - * python/tests/reader2.py: updated the testcase with - Bjorn Reese fix to reader for unsignificant white space - * parser.c HTMLparser.c: cleanup. - -Sun Aug 3 20:55:40 EDT 2003 Daniel Veillard - - * catalog.c: trying to fix #118754 of possible recursion in the - catalogs. Not fantastically happy about the current fix since - it's likely to break under very thread intensive concurrent - access to the catalog. Better solution might to keep the depth - an extra argument to the resolution functions. - -Sun Aug 3 18:56:54 EDT 2003 Daniel Veillard - - * valid.c: fixed bug #118712 about mixed content, and namespaced - element names. - * test/valid/mixed_ns.xml result/valid/mixed_ns*: added a check - in the regression tests - -Fri Aug 1 23:55:23 HKT 2003 William Brack - - Coninuing work on bug 118559 - * DOCBparser.c: removed 2 unsed vars - * xmlregexp.c: changed some numeric const to their enum symbols - * xmlreader.c: changed one var define from int to enum - (a little more to be done, awaiting co-ordination) - * relaxng.c: deleted one unused var - * xmllint.c: deleted some unused vars, changed one arg - val from int to enum - * testHTML.c, testDocbook.c: changed some arg vals to enum const - * xmlIO.c: fixed typo from last night (small warning msg) - -Thu Jul 31 22:44:33 HKT 2003 William Brack - - Working on bug 118559 - * error.c: deleted unused variable - * parserInternals.c: deleted unneeded 'const' qualifier - * parser.c: changed variable type for enum temp storage - * xmlIO.c: changed debugging var to be inside #ifdef - * valid.c: removed unused variable - * HTMLparser.c: removed some unneeded 'const' qualifiers - * xpath.c: added some type casts, removed some unused vars - * xinclude.c: added one type cast - * nanohttp.c: repositioned some #ifdef to avoid unused var - * nanoftp.c: removed unused var - -Wed Jul 30 14:57:55 EDT 2003 Daniel Veillard - - * HTMLparser.c: applied a patch from William Brack about - the problem of parsing very large HTML instance with comments - as raised by Nick Kew - -Wed Jul 30 12:29:38 EDT 2003 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h: applying cleanup - patch from Bjorn Reese for xmlTextReaderNodeType() and - significant whitespace. There is an enum for node type - values now. - -Wed Jul 30 11:08:21 EDT 2003 Daniel Veillard - - * encoding.c: applying patch from Peter Jacobi to added - ISO-8859-x encoding support when iconv is not available - * configure.in include/libxml/xmlversion.h.in - include/libxml/xmlwin32version.h.in: added the glue needed - at the configure level and made it the default for Windows - -Tue Jul 29 16:43:48 EDT 2003 Daniel Veillard - - * python/generator.py python/libxml.c python/libxml2class.txt: - patch from Joachim Bauch + cleanup for Relax NG error callbacks - in python - -Tue Jul 29 12:46:08 EDT 2003 Daniel Veillard - - * parser.c parserInternals.c tree.c: applied Peter Jacobi encoding - cleanup patch, and also avoided a possible memory leak - -Tue Jul 29 09:28:09 EDT 2003 Daniel Veillard - - * encoding.c: fix the previous commit - -Tue Jul 29 12:28:17 HKT 2003 William Brack - - * HTMLparser.c: fixed problem with comments reported by Nick Kew - * encoding.c: added routines xmlUTF8Size and xmlUTF8Charcmp for - some future cleanup of UTF8 handling - -Mon Jul 28 16:39:14 EDT 2003 Daniel Veillard - - * xpath.c: applied a change suggested by Sean Griffin in bug - #118494 about a memory leak in EXSLT - -Sun Jul 27 14:30:56 EDT 2003 Daniel Veillard - - * relaxng.c: fixed a Relax-NG compilation/streaming bug introduced - when fixing the previous Relax-NG bugs - * result/relaxng/*: This slightly changes the output messages of - some regression tests. - * configure.in: added support of -with-fexceptions for nested C++ - support. - -Thu Jul 24 15:46:02 MDT 2003 John Fleck - - * doc/tutorial/apa.html - * doc/tutorial/apb.html - * doc/tutorial/apc.html - * doc/tutorial/apd.html - * doc/tutorial/ape.html - * doc/tutorial/apf.html - * doc/tutorial/apg.html - * doc/tutorial/aph.html - * doc/tutorial/ar01s02.html - * doc/tutorial/ar01s03.html - * doc/tutorial/ar01s04.html - * doc/tutorial/ar01s05.html - * doc/tutorial/ar01s06.html - * doc/tutorial/ar01s07.html - * doc/tutorial/ar01s08.html - * doc/tutorial/index.html - * doc/tutorial/ix01.html - * doc/tutorial/xmltutorial.pdf - * doc/tutorial/xmltutorial.xml - update tutorial with XPath example - -Thu Jul 24 17:07:06 IST 2003 Daniel Veillard - - * SAX.c parser.c: fixing a bug about a special case of namespace - handling, this closes bug #116841 - -Wed Jul 23 20:52:36 IST 2003 Daniel Veillard - - * relaxng.c result/relaxng/*: checked and fixed the compilation - of RNG schemas, fixes a couple of bugs #117097 and #117001 . - This slightly changes the output messages of some regression tests. - -Wed Jul 23 15:15:08 IST 2003 Daniel Veillard - - * xmlreader.c: fixed an out of bound error #118052 , the good - part if that base64 code was not in use yet ... - -Tue Jul 22 19:42:15 MDT 2003 John Fleck - - * doc/xmllint.html - include html version of the xmllint man page, so an - up-to-date version is visible on the Web - -Mon Jul 21 21:53:43 IST 2003 Daniel Veillard - - * xinclude.c include/libxml/xinclude.h: added a new API - xmlXIncludeProcessTree() to process XInclude only on a subtree - this should fix bug #115385 - -Fri Jul 18 17:11:42 CEST 2003 Daniel Veillard - - * relaxng.c include/libxml/relaxng.h: adding Get interface for - the error callback and parameters of parsing and validation - contexts - * xmlreader.c: patch to fix bug #117702 about incomplete Read() - on text nodes. - -Wed Jul 16 23:15:53 CEST 2003 Daniel Veillard - - * parserInternals.c: patch from Dodji Seketeli about UTF16 BOM - when using the push XML parser. - * result/utf16bom.xml result/noent/utf16bom.xml test/utf16bom.xml: - added the test to the regression suite. - -Tue Jul 15 22:03:13 CEST 2003 Daniel Veillard - - * globals.c: add xmlThrDefMutex = NULL in xmlCleanupGlobals() - as suggested by Rob Richards - -Tue Jul 15 15:30:55 CEST 2003 Daniel Veillard - - * DOCBparser.c HTMLparser.c entities.c parser.c relaxng.c - xmlschemas.c xpath.c: removed some warnings by casting xmlChar - to unsigned int and a couple of others. - -Fri Jul 11 16:44:22 CEST 2003 Daniel Veillard - - * xmlschemastypes.c: fixes a segfault on empty hexBinary strings - -Thu Jul 10 16:02:47 CEST 2003 Daniel Veillard - - * nanoftp.c nanohttp.c: cleanup patches from Peter Breitenlohner - -Tue Jul 8 16:02:19 CEST 2003 Daniel Veillard - - * globals.c threads.c: fixes some problem when freeing unititialized - mutexes - -Tue Jul 8 14:15:07 CEST 2003 Daniel Veillard - - * nanoftp.c nanohttp.c: the modules should not import - directly, some cleanups - * xmlschemas.c: Peter Sobisch found a nasty bug in the Schemas - validation code. - -Mon Jul 7 18:00:51 CEST 2003 Daniel Veillard - - * win32/configure.js: Jesse Pelton pointed out a problem in the - javascript code. - -Mon Jul 7 16:39:31 CEST 2003 Daniel Veillard - - * NEWS doc/*: regenerated - * nanoftp.c nanohttp.c: might fix includes problems with the - Ipv6 support on solaris - * tree.c: patch from Markus Keim about xmlHasNsProp() on attributes - defined as #IMPLIED - -Sun Jul 6 23:09:13 CEST 2003 Daniel Veillard - - * configure.in doc/*: preparing release 2.5.8 - * nanohttp.c: changed some preprocessor block - * xmlschemastypes.c: applied patch from Charles Bozeman adding - hexBinary schema datatype and adding support for totalDigits and - fractionDigits facets. - -Sun Jul 6 19:56:18 CEST 2003 Daniel Veillard - - * debugXML.c xpath.c: fixed 2 bugs pointed in #116448 - -Sun Jul 6 19:34:17 CEST 2003 Daniel Veillard - - * xinclude.c: fixed bug #116095 removing the error message when - reapplying XInclude to a document. - -Sat Jul 5 22:40:23 CEST 2003 Daniel Veillard - - * xmlIO.c: applied small changes to portability layer for - compilation on DJGPP Ms-DOS compiler. - -Sat Jul 5 22:30:25 CEST 2003 Daniel Veillard - - * parser.c HTMLparser.c: use the character() SAX callback - if the cdataBlock ain't defined. - * xpath.c: fix bug #115349 allowing compilation when configured - with --without-xpath since the Schemas code needs NAN and co. - -Sat Jul 5 00:51:30 HKT 2003 William Brack - - Fixed problem with multi-threading, shown by the test program - testThreads. After fix, ran mutiple tests on various speed - machines (single and dual processor X86), which all seem okay. - - * catalog.c: added missing xmlRMutexUnlock in xmlLoadCatalog - - * threads.c: added missing initialisation for condition variable - in xmlNewRMutex. - -Sat Jun 21 16:10:24 CEST 2003 Daniel Veillard - - Applying IPv6 patch from Archana Shah - closing bug #114837 - - * configure.in: Added checks for IPv6 support and getaddrinfo(). - - * acconfig.h: Defined HAVE_GETADDRINFO and SUPPORT_IP6. - - * config.h.in: Defined HAVE_GETADDRINFO and SUPPORT_IP6. - - * nanoftp.c: Structure xmlNanoFTPCtxt contains either sockaddr_storage - field or sockaddr_in field, depending upon the availability of IPv6 - support. - have_ipv6(): Added to check for run-time IPv6 support. - (xmlNanoFTPScanURL), (xmlNanoFTPUpdateURL), (xmlNanoFTPScanProxy): - Modified to parse a URI with IPv6 address given in []. - (xmlNanoFTPConnect): Changed to use getaddrinfo for address - resolution, if it is available on the system, as gethostbyname - does not return IPv6 addresses on some platforms. - (xmlNanoFTPGetConnection): Modified type of dataAddr variable to - sockaddr_storage or sockaddr_in depending upon the IPv6 support. - Sending EPSV, EPRT or PASV, PORT depending upon the type of address - we are dealing with. - - * nanohttp.c: (have_ipv6): Added to check for run-time IPv6 support. - (xmlNanoHTTPScanURL), (xmlNanoHTTPScanProxy): Modified to parse - a URI with IPv6 address given in []. - (xmlNanoHTTPConnectHost): Modified to use getaddrinfo if it is - available on the system. Also IPv6 addresses will be resolved by - gethostbyname only if IPv6 run-time support is available. - (xmlNanoHTTPConnectAttempt): Modified to deal with IPv6 address. - -Sat Jun 14 18:46:51 CEST 2003 Igor Zlatkovic - - * win32/configure.js include/win32config.h - include/libxml/xmlversion.h.in: Applied the patch for BCB - by Eric Zurcher. - -Fri Jun 13 14:27:19 CEST 2003 Daniel Veillard - - * doc/Makefile.am doc/html/*: reverted back patch for #113521, - due to #115104 and while fixing #115101 . HTML URLs must not - be version dependant. - -Fri Jun 13 12:03:30 CEST 2003 Daniel Veillard - - * entities.c: do not generate " for " outside of attributes - * result//*: this changes the output of some tests - -Mon Jun 9 12:28:58 CEST 2003 Daniel Veillard - - * parser.c xmlIO.c: trying to fix #114277 about when file - remapping and escaping should really be attempted. - -Mon Jun 9 11:06:09 CEST 2003 Daniel Veillard - - * doc/*: applied a patch from Gman for building docs - * valid.c xmllint.c include/libxml/valid.h: applied a patch from - Gary Pennington to provide an allocator for xmlValidCtxt - * xmlreader.c: applied patch from Jacek Konieczny fixing bug - #113580 about data not being passed immediately. - -Thu Jun 5 11:31:02 CEST 2003 Daniel Veillard - - * tree.c: applied a couple of patches from Mark Itzcovitz - to handle saving back "UTF-16" documents. - -Mon Jun 2 21:56:15 MVT 2003 Daniel Veillard - - * relaxng.c xmlschemas.c include/libxml/schemasInternals.h: commiting - some work done while in the Maldives (hence the timezone on the - laptop !) - * result/schemas/length3* test/schemas/deter0_* - test/schemas/group0_*: some tests added too - -Mon Jun 2 15:34:17 CEST 2003 Daniel Veillard - - * encoding.c: small fix - * xmlIO.c: fixed an error message - -Tue May 20 14:21:23 CEST 2003 Daniel Veillard - - * parserInternals.c: fixing Red Hat bug #91013 where xmllint was - accepting an improper UTF8 sequence - -Sat May 17 12:53:11 CEST 2003 Igor Zlatkovic - - * threads.c: applied the patch from Stéphane Bidoul for getting - rid of extra threads in a dynamic library. - * win32/configure.js: threads default to 'native' now. - -Fri May 16 13:17:52 EDT 2003 Daniel Veillard - - * HTMLtree.c: fixing bug #112904: html output method escaped - plus sign character in URI attribute. - -Thu May 15 18:06:18 EDT 2003 Daniel Veillard - - * build_glob.py global.data globals.c parser.c - include/libxml/globals.h: patch from Stéphane Bidoul for setting - up threads global defaults. - * doc/libxml2-api.xml: this extends the API with new functions - * python/tests/Makefile.am python/tests/reader2.py - python/tests/thread2.py: integrated the associated testcase and - fixed the error string used in reader2 - -Wed May 14 14:56:46 EDT 2003 Daniel Veillard - - * configure.in libxml.spec.in python/Makefile.am: trying - to conciliate --with-python= requirements and RPM builds, - a PITA really... - -Tue May 13 18:30:34 EDT 2003 Daniel Veillard - - * HTMLparser.c: oops last commit introduced a memory leak. - -Tue May 13 18:10:38 EDT 2003 Daniel Veillard - - * xmllint.c doc/xmllint.xml: added --nonet option - * doc/Makefile.am: fixing #112803 by adding --nonet when calling - xsltproc or xmllint - * doc/xmllint.xml doc/xmllint.1: also added --schema doc and - rebuilt - * HTMLparser.c: cleaned up the HTML parser context build when - using an URL - -Tue May 13 16:35:04 EDT 2003 Daniel Veillard - - * libxml.spec.in: added a comment about bug #112902 - -Mon May 12 21:58:00 EDT 2003 William Brack - - * minor cleanup of configure '--help' display - * error.c: enhanced xmlParserPrintFileContext to fix bug #109942 - -Mon May 12 17:53:30 EDT 2003 Daniel Veillard - - * tree.c: PI nodes in external subset were not freed :-\ - fixes bug #112842 - -Mon May 12 11:23:27 EDT 2003 Daniel Veillard - - * xmllint.c: added --schema option to run WXS schema validation - * xmlschemas.c xmlschemastypes.c include/libxml/schemasInternals.h: - tried to improve error reporting in the Schema code, some cleanup - too. - -Sun May 11 16:13:20 EDT 2003 Daniel Veillard - - * xmlschemas.c: fixed some problems in the handling of errors, - and attributes addressed by references. - * test/schemas/* result/schemas/*: dropped the verbosity level - and added a couple of new tests - -Sat May 10 16:01:21 EDT 2003 Daniel Veillard - - * relaxng.c: Stéphane Bidoul found an off by one addressing - error on the error handling. - -Fri May 9 19:08:20 EDT 2003 Daniel Veillard - - * xmlschemastypes.c: trying to fix #112673 - -Fri May 9 18:14:16 EDT 2003 Daniel Veillard - - * DOCBparser.c catalog.c parser.c relaxng.c: removed multiple - warning, this fixed a bug and should close #111574 - -Fri May 9 15:34:32 EDT 2003 Daniel Veillard - - * xmlschemas.c: fixing bug #104081 with xs:all with an element - holding minOccurs="0" - * test/schemas/all_* result/schemas/all_*: added some regression - tests for that bug - * xmllint.c xmlreader.c: patches from Joerg Schmitz-Linneweber and - Garry Pennington to compile without schemas support. - -Thu May 1 10:02:35 CEST 2003 Daniel Veillard - - * tree.c: fixed a problem with xmlUnlinkNode() for DTDs. - -Wed Apr 30 14:16:08 CEST 2003 Daniel Veillard - - * xml2-config.in: try to fix Red hat bug #89957, do not - output -L/usr/lib64 - * xmlreader.c: fixed a typo in a comment - -Tue Apr 29 07:32:02 MDT 2003 John Fleck - - * doc/tutorial/aph.html, ix01.html - forgot to cvs add the new files. Thanks to Roland van Laar - for pointing this out - -Tue Apr 29 14:36:49 CEST 2003 Daniel Veillard - - * xmlschemas.c doc/libxml2-api.xml: fixing a function comment - * doc/Makefile.am doc/apibuild.py doc/gnome-xml.sgml: switching - to the XML/XSLT doc generation closing #111799 - * doc/html/*: complete update of the HTML results - -Mon Apr 28 14:51:41 CEST 2003 Igor Zlatkovic - - * win32/defgen.xsl: fixed the conditional for unicode map, - removed hardcoded schema entries - -Mon Apr 28 02:19:00 CEST 2003 Igor Zlatkovic - - * win32/defgen.xsl: new file, stylesheet for generating - win32/libxml2.def.src from doc/libxml2-api.xml - * win32/libxml2.def.src: is autogenerated from now on, changes - to this file will not appear here anymore - -Mon Apr 28 00:12:11 CEST 2003 Daniel Veillard - - * win32/configure.js python/setup.py.in: applied patch - from Stéphane Bidoul for the Python bindings on the new - release. - -Sun Apr 27 17:56:21 CEST 2003 Igor Zlatkovic - - * debugXML.c: included libxml/uri.h for xmlCanonicPath - declaration - * win32/configure.js: thread-enabled build is now default - * win32/libxml2.def.src: added more exports - -Sun Apr 27 00:23:05 CEST 2003 Daniel Veillard - - * NEWS doc/*.xsl doc/*.html: updated the web site separated - developers from common pages, made the transition to XHTML1, - added validity checking to the makefile rules. - -Sat Apr 26 23:17:51 CEST 2003 Daniel Veillard - - * parser.c: fix for xmlIOParseDTD same as previous and reported - by Petr Pajas - -Sat Apr 26 15:26:04 CEST 2003 Daniel Veillard - - * parser.c: applied fix to xmlSAXParseDTD from Malcolm Tredinnick - closing #111638 - -Sat Apr 26 14:00:58 CEST 2003 Daniel Veillard - - * python/generator.py: fixed a problem in the generator where - the way functions are remapped as methods on classes was - not symetric and dependant on python internal hash order, - as reported by Stéphane Bidoul - -Fri Apr 25 21:52:33 MDT 2003 John Fleck - - * doc/tutorial: - xmltutorial.xml - xmltutorial.pdf - *.html - add appendix on generating compiler flags, more indexing - -Sat Apr 26 01:10:48 CEST 2003 Daniel Veillard - - * triodef.h vms/build_libxml.com: applied patch from Craig A. Berry - to get libxml-2.5.7 to compile on OpenVMS - -Fri Apr 25 18:42:35 CEST 2003 Daniel Veillard - - * parser.c: fixing an xmlParseDTD bug raised by Petr Pajas - -Fri Apr 25 15:20:29 CEST 2003 Daniel Veillard - - * doc/Makefile.am doc/xmlcatalog.1 doc/xmlcatalog_man.xml - doc/xmllint.1 doc/xmllint.xml: automated the generation of the - man page based on xsltproc and a stylesheet PI in the XML. - -Fri Apr 25 12:37:33 CEST 2003 Daniel Veillard - - * doc/xmllint.*: trying to fix #110541 where   generated - character preventing rendering by the man command. - -Fri Apr 25 01:09:23 CEST 2003 Daniel Veillard - - * NEWS configure.in: preparing release 2.5.7 - * doc/*: updated and rebuilt the docs - * doc/apibuild.py: fixed the script - -Thu Apr 24 19:11:12 CEST 2003 Daniel Veillard - - * Makefile.am doc/apibuild.py: make sure the OOM code don't - get in the way of the builds - * doc/libxml2-api.xml python/libxml2class.txt: automatic update - -Thu Apr 24 18:01:46 CEST 2003 Daniel Veillard - - * Makefile.am testOOM.c testOOMlib.[ch] : integrated the Out Of - Memory test from Havoc Pennington #109368 - * SAX.c parser.c parserInternals.c tree.c uri.c valid.c - xmlmemory.c xmlreader.c xmlregexp.c include/libxml/tree.h - include/libxml/parser.h: a lot of memory allocation cleanups - based on the results of the OOM testing - * check-relaxng-test-suite2.py: seems I forgot to commit the - script. - -Wed Apr 23 17:16:41 CEST 2003 Daniel Veillard - - * xmlschemastypes.c: trivial fix for 109774 removing a warning - -Wed Apr 23 15:49:32 CEST 2003 Daniel Veillard - - * DOCBparser.c SAX.c catalog.c debugXML.c parser.c: try to find - more places where xmlCanonicPath() must be used to convert - filenames to URLs, trying to fix #111088 - -Wed Apr 23 09:35:12 CEST 2003 Daniel Veillard - - * python/libxml.c python/libxml.py: applied patch from - Brent M Hendricks adding binding for xmlCatalogAddLocal - -Tue Apr 22 15:18:01 CEST 2003 Daniel Veillard - - * HTMLparser.c: tried to fix #98879 again in a more solid - way. - -Tue Apr 22 13:58:43 CEST 2003 Igor Zlatkovic - - * win32/libxml2.def.src: added more exports from the relaxng and - xmlreader clan - -Tue Apr 22 10:35:13 CEST 2003 Daniel Veillard - - * SAX.c test/valid/ns* test/result/ns*: applied the patch - provided by Brent Hendricks fixing #105992 and integrated the - examples in the testsuite. - -Tue Apr 22 01:06:09 CEST 2003 Daniel Veillard - - * TODO: updated a bit - * configure.in: fixed the comment, threads now default to on - * parserInternals.c: fixed an erroneous xmlMallocAtomic() call - -Mon Apr 21 23:33:38 CEST 2003 Daniel Veillard - - * globals.c libxml.h parser.c parserInternals.c tree.c xmllint.c - xmlreader.c include/libxml/parser.h: a lot of performance work - especially the speed of streaming through the reader and push - interface. Some thread related optimizations. Nearly doubled the - speed of parsing through the reader. - -Sun Apr 20 10:36:05 MDT 2003 John Fleck - - * doc/xmllint.xml - * doc/xmllint.1 - update man page to explain use of --stream - -Sat Apr 19 02:03:24 CEST 2003 Daniel Veillard - - * DOCBparser.c HTMLparser.c c14n.c catalog.c encoding.c globals.c - nanohttp.c parser.c parserInternals.c relaxng.c tree.c uri.c - xmlmemory.c xmlreader.c xmlregexp.c xpath.c xpointer.c - include/libxml/globals.h include/libxml/xmlmemory.h: added - xmlMallocAtomic() to be used when allocating blocks which - do not contains pointers, add xmlGcMemSetup() and xmlGcMemGet() - to allow registering the full set of functions needed by - a garbage collecting allocator like libgc, ref #109944 - -Fri Apr 18 16:37:41 CEST 2003 Daniel Veillard - - * configure.in: switched to have thread support enabled by default, - didn't got troubles with ABI compatibility on Linux, hope it - won't break on strange OSes, if yes, report the system ID - * doc/libxml2-api.xml: just rebuilt the API - -Fri Apr 18 14:31:15 CEST 2003 Daniel Veillard - - * libxml.h include/libxml/parser.h parser.c xmlIO.c DOCBparser.c: - added support for large file, tested with a 3+GB instance, - and some cleanup. - * catalog.c: added a TODO - * Makefile.am: added some "make tests" comments - -Thu Apr 17 14:51:57 CEST 2003 Daniel Veillard - - * relaxng.c: some cleanups - * doc/xmlreader.html: extended the document to cover RelaxNG and - tree operations - * python/tests/Makefile.am python/tests/reader[46].py: added some - xmlReader example/regression tests - * result/relaxng/tutor*.err: updated the output of a number of tests - -Thu Apr 17 11:35:37 CEST 2003 Daniel Veillard - - * relaxng.c: valgrind pointed out an uninitialized variable error. - -Thu Apr 17 11:06:28 CEST 2003 Daniel Veillard - - * include/libxml/relaxng.h relaxng.c include/libxml/xmlreader.h - xmlreader.c: augnemting the APIs, cleanups. - * parser.c: cleanup bug #111005 - * xmlIO.c: added some missing comments - -Wed Apr 16 17:46:50 CEST 2003 Daniel Veillard - - * relaxng.c xmllint.c: more work on RelaxNG streaming validation - trying to improve the subset compiled, and more testing. - * doc/downloads.html doc/xml.html doc/xmlmem.html: some updates on the - documentation - * test/relaxng/tutor11_1_3.xml: fixes the DTD path - * result/relaxng/*.err: fix some of the outputs - -Wed Apr 16 01:28:15 CEST 2003 Daniel Veillard - - * relaxng.c xmlreader.c xmllint.c include/libxml/relaxng.h - include/libxml/xmlreader.h: implemented streaming of - RelaxNG (when possible) on top of the xmlReader interface, - provided it as xmllint --stream --relaxng .rng .xml - This seems to mostly work. - * Makefile.am: updated to test RelaxNG streaming - -Mon Apr 14 18:08:33 CEST 2003 Daniel Veillard - - * relaxng.c include/libxml/relaxng.h: integrated the regexp - based validity checking of fragments of the document for - which the RNG can be compiled to regexps. Works on all regression - tests, only fix needed is related to error messages. - -Sun Apr 13 21:51:00 CEST 2003 Daniel Veillard - - * relaxng.c xmlregexp.c include/libxml/xmlautomata.h - include/libxml/xmlregexp.h: Starting work precompiling - parts of RelaxNG schemas. Not plugged onto validity checking - yet, just the regexp building part. Needed to extend some - of the automata and regexp APIs. - -Fri Apr 11 21:36:21 CEST 2003 Daniel Veillard - - * xmllint.c xmlreader.c include/libxml/xmlreader.h: make sure - xmllint --stream and xmllint --stream --valid returns errors - code appropriately - -Fri Apr 11 10:59:24 CEST 2003 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h: Added the Expand() - and Next() operation to work on subtrees within the reader - framework. - * doc/libxml2-api.xml python/libxml2class.txt: resulting updates - * python/tests/reader5.py: added an example for those new - functions of the reader. - -Thu Apr 10 23:38:13 CEST 2003 Daniel Veillard - - * HTMLtree.c: patch from Vasily Tchekalkin to fix #109865 - -Thu Apr 10 15:32:44 CEST 2003 Daniel Veillard - - * xmlreader.c: fixing HasValue for namespace as raised by - Denys Duchier - -Wed Apr 9 14:07:18 CEST 2003 Daniel Veillard - - * HTMLparser.c include/libxml/HTMLparser.h: exported - htmlCreateMemoryParserCtxt() it was static - -Wed Apr 9 13:21:48 CEST 2003 Daniel Veillard - - * xmlschemas.c xmlschemastypes.c include/libxml/xmlschemas.h: - update from Charles Bozeman for date and duration types - * test/schemas/date_0.* test/schemas/dur_0.* - result/schemas/date_0.* result/schemas/dur_0.*: updated too - -Mon Apr 7 12:19:26 CEST 2003 Daniel Veillard - - * tree.c valid.c xpath.c include/libxml/tree.h include/libxml/valid.h: - fixing bug #107129, removing excessive allocation and calls - to *printf in the code to build QName strings. - -Sat Apr 5 11:41:36 CEST 2003 Igoe Zlatkovic - - * win32/libxml2.def.src: fixed conditional exports, reported by - Luke Murray. - -Fri Apr 4 18:08:00 CEST 2003 Daniel Veillard - - * parser.c: fixed a possible problem with xmlRecoverMemory() - -Thu Apr 3 17:24:44 CEST 2003 Daniel Veillard - - * trio.c trio.h triodef.h trionan.c trionan.h triop.h triostr.c - triostr.h: Bjorn sent an update for the TRIO portability layer. - -Tue Apr 1 21:57:26 CEST 2003 Igor Zlatkovic - - * win32/libxml2.def.src: exported new functions - -Tue Apr 1 13:09:46 CEST 2003 Daniel Veillard - - * configure.in NEWS: preparing release 2.5.6 - * doc/*: updated and rebuilt the docs - -Tue Apr 1 11:52:15 CEST 2003 Daniel Veillard - - * SAX.c: fixed an uninitialized memory access pointed by valgrind - on C14Ntests - -Tue Apr 1 00:12:28 CEST 2003 Daniel Veillard - - * relaxng.c: one more fixup of error message reporting - -Mon Mar 31 18:36:32 CEST 2003 Daniel Veillard - - * relaxng.c: more work on bug #109225, and fixed an uninitialized - variable pointed out by valgrind - -Mon Mar 31 18:05:22 CEST 2003 Daniel Veillard - - * relaxng.c: try to work on bug #109225 and provide better - error reports. - * result/relaxng/* : this change the output of a number of tests - * xinclude.c: fixing the parsed entity redefinition problem - raised on the list. - * test/schemas/date_0.xsd: updated the date test c.f. E2-12 - -Mon Mar 31 13:19:04 CEST 2003 Daniel Veillard - - * xmlschemastypes.c: fixed date comparison to handle the tzo - The only failures left are disagreements on Notations and - '+1' not being allowed for ulong, uint, ushort and ubyte. - -Mon Mar 31 12:11:47 CEST 2003 Daniel Veillard - - * xmlschemastypes.c: fixed gMonth parsing routine accordingly - to the XML Schemas errata - http://www.w3.org/2001/05/xmlschema-errata#e2-12 - -Sun Mar 30 23:04:18 CEST 2003 Daniel Veillard - - * relaxng.c xmlschemastypes.c: more work on XML Schemas datatypes - and facets support. Currently only schemas with binHex or - base64 don't compile. A few error left in the test suite: - found 1035 test instances: 919 success 23 failures - most are gdate or gdateyear failing check, and a few cases where - James clark tests results are strange. - * valid.c: allow to reuse the Notation checking routine without - having a validation context. - * SAX.c: removed a #if 0 - -Sat Mar 29 17:35:05 CET 2003 Daniel Veillard - - * xinclude.c: forgot to apply one check from #106931 patch - * xmlschemastypes.c: more work on XML Schemas datatypes - -Sat Mar 29 11:49:25 CET 2003 Daniel Veillard - - * relaxng.c include/libxml/relaxng.h xmlschemastypes.c: more work - on cleaning up XML Schemas datatypes based on James Clark tests - test/xsdtest/xsdtest.xml - -Fri Mar 28 14:24:08 CET 2003 Daniel Veillard - - * relaxng.c: implemented comparisons for Schemas values. - * xmlschemastypes.c include/libxml/xmlschemastypes.h: fixed - some bugs in duration handling, comparisons for durations - and decimals, removed all memory leaks pointed out by James - testsuite. Current status is now - found 238 test schemas: 197 success 41 failures - found 1035 test instances: 803 success 130 failures - -Fri Mar 28 00:41:55 CET 2003 Daniel Veillard - - * xmlschemas.c include/libxml/xmlschemas.h: fixed bugs and memory - leaks in the W3C XML Schemas code - * xmlschemastypes.c: implemented nonPositiveInteger - * test/schemas/length2_0.xsd result/schemas/length2_0_0.err: - fixed the test and result. - -Thu Mar 27 22:23:07 CET 2003 Daniel Veillard - - * HTMLparser.c tree.c: two patches from James Bursa on the HTML - parser and a typo - * xmlschemastypes.c: reindenting, fixing a memory access - problem with dates. - -Thu Mar 27 15:53:35 CET 2003 Daniel Veillard - - * parser.c: fixing #109227 providing more context in case of - start/end tag mismatch - * python/tests/ctxterror.py python/tests/readererr.py: update the - tests accordingly - -Thu Mar 27 15:22:41 CET 2003 Daniel Veillard - - * xinclude.c: should fix #109327 errors on memory accesses - -Thu Mar 27 15:06:13 CET 2003 Daniel Veillard - - * HTMLtree.c: Fixed reopening of #78662

- is an URI reference - -Wed Mar 26 22:38:39 CET 2003 Daniel Veillard - - * xpath.c: fixed bug #109160 on non-ASCII IDs - -Wed Mar 26 17:30:37 CET 2003 Daniel Veillard - - * parser.c: Norm suggested a nicer error message for xml:space values - errors - -Wed Mar 26 01:34:19 CET 2003 Daniel Veillard - - * xpath.c include/libxml/xpath.h: first part of the fix to - performance bug #108905, adds xmlXPathOrderDocElems() providing - document order for nodes. - * python/libxml.c: Python may require TRIO as Albert Chin pointed out - -Tue Mar 25 16:07:00 CET 2003 Daniel Veillard - - * xmlschemastypes.c: removing a warning with Sun compiler - bug #109154 - -Tue Mar 25 07:02:56 MST 2003 John Fleck - - * doc/xmllint.xml - * doc/xmllint.1 - update xmllint man page with --relaxng option - -Tue Mar 25 12:07:03 CET 2003 Daniel Veillard - - * python/setup.py.in : was missing "drv_libxml2.py" - -Mon Mar 24 19:38:05 CET 2003 Daniel Veillard - - * tree.c xpath.c: some changes related to the new way of - handling Result Value Tree, before 2.5.5 - -Mon Mar 24 16:36:23 CET 2003 Daniel Veillard - - * configure.in NEWS: preparing release 2.5.5 - * doc/* : updated the documentation and regenerated it. - -Mon Mar 24 14:56:01 CET 2003 Daniel Veillard - - * xpath.c: fixed some problems related to #75813 about handling - of Result Value Trees - -Sun Mar 23 22:57:20 CET 2003 Daniel Veillard - - * uri.c: applied a set of patches from Lorenzo Viali correcting - URI parsing errors. - -Sun Mar 23 22:00:14 CET 2003 Daniel Veillard - - * parser.c: validity status was not passed back when validating in - entities, but raised by Oliver Fischer - -Sun Mar 23 21:30:50 CET 2003 Daniel Veillard - - * HTMLtree.c: avoid escaping ',' in URIs - -Sun Mar 23 12:57:00 CET 2003 Daniel Veillard - - * parser.c: fixing bug #108976 get the ID/REFs to reference - the ID in the document content and not in the entity copy - * SAX.c include/libxml/parser.h: more checking of the ID/REF - stuff, better solution for #107208 - * xmlregexp.c: removed a direct printf, dohhh - * xmlreader.c: fixed a bug on streaming validation of empty - elements in entities - * result/VC/ElementValid8 test/VCM/v20.xml result/valid/xhtml1.xhtml: - cleanup of the validation tests - * test/valid/id* test/valid/dtds/destfoo.ent result/valid/id*: - added more ID/IDREF tests to the suite - -Sat Mar 22 23:38:08 CET 2003 Daniel Veillard - - * xmlreader.c: fixed #107043 removing 2 warnings with Sun One - compiler. - -Sat Mar 22 18:50:45 CET 2003 Daniel Veillard - - * relaxng.c: valgrind'ed and cleaned up a couple of memory issues. - -Sat Mar 22 16:15:50 CET 2003 Daniel Veillard - - * SAX.c: fix bug #107208 avoid false duplicates when ID/REFs are - defined in entities content - -Sat Mar 22 15:53:27 CET 2003 Daniel Veillard - - * SAX.c: Fixed validation bug #108858 on namespace names using - entities and reported by Brent Hendricks - * xmllint.c: report xmlTextReaderHasValue() result in --stream - --debug output. - -Sat Mar 22 13:32:39 CET 2003 Daniel Veillard - - * xmlreader.c: fixed bug #108801 reported by Malcolm Tredinnick - about the DocType node not being reported sometimes. - * python/tests/reader.py: added to test to the regression checks - -Sat Mar 22 01:57:40 CET 2003 Daniel Veillard - - * xmlreader.c: fixed bug #108546 on long CDATA (or text nodes) - reported by Edd Dumbill - -Sat Mar 23 01:00:24 CET 2003 Daniel Veillard - - * HTMLparser.c parser.c parserInternals.c: patch from - johan@evenhuis.nl for #107937 fixing some line counting - problems, and some other cleanups. - * result/HTML/: this result in some line number changes - -Fri Mar 21 22:19:14 CET 2003 Daniel Veillard - - * configure.in Makefile.am: fixed Red Hat bug #86118 use libxml2.spec - instead of libxml.spec - * relaxng.c: fixed some of the error reporting excessive - verbosity - * catalog.c debugXML.c valid.c xmlreader.c xmlschemas.c xpath.c - xmlschemastypes.c: removed some warnings from gcc - * doc/libxml2-api.xml: rebuilt - -Fri Mar 21 17:25:23 CET 2003 Daniel Veillard - - * relaxng.c: another optimization, for choice this time - * result/relaxng/spec1* result/relaxng/tutor12_1* - result/relaxng/tutor3_7: cleanups. - -Fri Mar 21 13:41:23 CET 2003 Daniel Veillard - - * relaxng.c: fixed xmlRelaxNGNodeMatchesList - * test/relaxng/testsuite.xml: augmented the test suite - * result/relaxng/spec1* result/relaxng/tutor12_1*: this fixes - some schemas validation tests in the presence of foreign - namespaces. - -Fri Mar 21 02:23:34 CET 2003 Daniel Veillard - - * relaxng.c: added another interleave speedup. - -Thu Mar 20 17:22:00 CET 2003 Daniel Veillard - - * xmlschemastypes.c: added integer and fixed one of the - IDREFS regression tests pbm - * result/relaxng/docbook_0.err: updated - -Wed Mar 19 21:58:47 CET 2003 Daniel Veillard - - * valid.c xmlschemastypes.c: attempt to cope with ID/IDREF(S) - declared both in the DTD and in the Schemas - * relaxng.c: more debug, added a big optimization for - * test/relaxng/testsuite.xml: augmented the testsuite - * test/relaxng/ result/relaxng: added the RelaxNG spec and a - DocBook example to the regression tests - -Wed Mar 19 11:34:10 CET 2003 Daniel Veillard - - * check-xsddata-test-suite.py: cosmetic change for output - * relaxng.c: try to minimize calls to malloc/free for states. - -Tue Mar 18 17:50:31 CET 2003 Daniel Veillard - - * tree.c: removed a warning - * xmlschemastypes.c: more cleanup, added ENTITY and ENTITIES - support - * check-relaxng-test-suite.py check-xsddata-test-suite.py: - cleanup/improvements of the regression tests batch - * test/relaxng/testsuite.xml: augmented libxml2 own testsuite - -Tue Mar 18 12:36:22 CET 2003 Daniel Veillard - - * relaxng.c: fixed error msg cleanup deallocation - * xmlschemastypes.c: added a function to handle lists of - atomic types, added support for IDREFS - -Tue Mar 18 01:28:15 CET 2003 Daniel Veillard - - * relaxng.c valid.c xmlschemastypes.c: added Datatype ID - and IDREF, usable from RelaxNG now - * include/libxml/xmlschemastypes.h: need to add a new interface - because the validation modifies the infoset - * test/relaxng/testsuite.xml: extended the testsuite - -Mon Mar 17 16:34:07 CET 2003 Daniel Veillard - - * relaxng.c: fixed the last core RelaxNG bug known #107083, - shemas datatype ID/IDREF support still missing though. - * xmlreader.c: fix a crashing bug with prefix raised by - Merijn Broeren - * test/relaxng/testsuite.xml: augmented the testsuite with - complex inheritance tests - -Sun Mar 16 18:45:50 CET 2003 Daniel Veillard - - * relaxng.c: switched back to the previous Relax-NG code base, - the derivation algorithm need severe constraining code to avoid - combinatorial explosion. Fixed the problem with Sebastian Rahtz - TEI based example and other bugs - * result/relaxng/*err: updated the results - * test/relaxng/testsuite.xml: started a new test suite - -Sat Mar 15 22:26:46 CET 2003 Daniel Veillard - - * relaxng.c include/libxml/relaxng.h: After coming to the conclusion - that the original RelaxNG validation code was un-fixeable, it got - rewritten to use the derivation algorithm from James Clark and - redebugged it (nearly) from scratch: - found 373 test schemas: 372 success 1 failures - found 529 test instances: 529 success 0 failures - -Tue Mar 11 12:08:23 CET 2003 Daniel Veillard - - * SAX.c parser.c: fix some recursion problems introduced in the - last release. - * relaxng.c: more debugging of the RNG validation engine, still - problems though. - -Mon Mar 10 14:10:47 CET 2003 Daniel Veillard - - * Makefile.am: stop generating wrong result file with * in name - * relaxng.c: fixing the include bug raised by Sebastian Rahtz - * result/relaxng/demo* test/relaxng/demo: added the tests from - Sebastian reproducing the problem. - -Sun Mar 9 18:02:31 MST 2003 John Fleck - - * doc/xmllint.1: regenerating man page from xmllint.xml to pick - up Aleksey's change - -Sun Mar 9 13:53:16 2003 Aleksey Sanin - - * xmllint.c doc/xmllint.xml: use $XMLLINT_INDENT environment - variable to control the indentation for the xmllint "--format" - option - -Sat Mar 8 14:27:43 CET 2003 Igor Zlatkovic - - * encoding.c: applied Gennady's patch against buffer overrun - -Fri Mar 7 19:29:40 CET 2003 Daniel Veillard - - * test/xsdtest/xsdtest.xml uri.c: after and exchange with James - Clark it appeared I had bug in URI parsing code ... - * relaxng.c include/libxml/relaxng.h: completely revamped error - reporting to not loose message from optional parts. - * xmllint.c: added timing for RNG validation steps - * result/relaxng/*: updated the result, all error messages changed - -Fri Mar 7 15:18:32 CET 2003 Daniel Veillard - - * xpath.c: fix bug #107804, the algorithm used for document order - computation was failing on attributes. - -Thu Mar 6 22:35:50 CET 2003 Daniel Veillard - - * valid.c: fix bug #107764 , possibility of buffer overflow - in xmlValidDebug() - -Wed Mar 5 17:41:37 CET 2003 Daniel Veillard - - * nanoftp.c include/libxml/nanoftp.h: adding xmlNanoFTPDele() - from Philipp Dunkel - -Wed Mar 5 10:57:09 CET 2003 Daniel Veillard - - * xmlschemastype.c: made powten array static it should not be exported - * HTMLparser.c: fix bug #107361 by reusing the code from the XML - parser function. - * testHTML.c: get rid of valgrind messages on the HTML SAX tests - -Fri Feb 28 00:23:00 CET 2003 Daniel Veillard - - * tree.c: fixed a node dump crash on attributes - * test/xsdtest/xsdtest.xml test/xsdtest/xsdtest.xsl: fixed - an URI test bug and get better output. - -Thu Feb 27 22:28:40 CET 2003 Daniel Veillard - - * check-xsddata-test-suite.py: give more infos - * relaxng.c: fix a bug reported by Sebastian Rahtz and - REF->DEF in attribute values. - -Thu Feb 27 21:09:32 CET 2003 Daniel Veillard - - * check-xsddata-test-suite.py test/xsdtest/xsdtest.xml - test/xsdtest/xsdtest.xsl: import of the XSD Datatype - regression tests from James Clark. - -Thu Feb 27 18:40:04 CET 2003 Daniel Veillard - - * relaxng.c xmlschemas.c xmlschemastypes.c - include/libxml/xmlschemastypes.h: added param support for relaxng - type checking, started to increment the pool of simple types - registered, still much work to be done on simple types and - facets checkings. - -Wed Feb 26 16:45:39 CET 2003 Daniel Veillard - - * entities.c: fixes again one of the problem raised by - James Clark in #106788 - -Wed Feb 26 15:46:48 CET 2003 Daniel Veillard - - * relaxng.c: Fixed a couple of problem raised by James Clark - in bug #107083, the support for ID/IDREF/IDREFS at the WXS - datatype level still not fixed though. - -Mon Feb 24 21:09:19 CET 2003 Daniel Veillard - - * configure.in: preparing release 2.5.4 - * doc/*: updated and rebuilt the docs - * relaxng.c: removed warnings - * result/relaxng/*: updated the results - -Mon Feb 24 20:53:17 CET 2003 Daniel Veillard - - * valid.c: fixes a DTD regexp generation problem. - -Mon Feb 24 20:12:57 CET 2003 Daniel Veillard - - * parser.c: fixes bug #105998 about false detection of - attribute consumption loop. - -Mon Feb 24 19:14:57 CET 2003 Daniel Veillard - - * xinclude.c: Fixes bug #106931 in XInclude entities merging. - -Mon Feb 24 18:50:35 CET 2003 Daniel Veillard - - * SAX.c: fixed bug #105992 - -Mon Feb 24 18:14:16 CET 2003 Daniel Veillard - - * tree.c: fixed xmlSetProp and al. when the node passed is not an - element. - * relaxng.c: fixed bugs 7.3 (though not complete) and memory leaks - found 373 test schemas: 369 success 4 failures - found 529 test instances: 525 success 4 failures - * check-relaxng-test-suite.py: added memory debug reporting - -Mon Feb 24 12:41:54 CET 2003 Daniel Veillard - - * uri.c parser.c: some warning removal on Igor's patch - * tree.c: seems I messed up with #106788 fix - * python/libxml.c: fixed some base problems when Python provides - the resolver. - * relaxng.c: fixed the interleave algorithm - found 373 test schemas: 364 success 9 failures - found 529 test instances: 525 success 4 failures - the resulting failures are bug in the algorithm from 7.3 and - lack of support for params - -Sun Feb 23 14:49:39 CET 2003 Daniel Veillard - - * parser.c: another fix for nodeinfo in entities problem - * tree.c entities.c: fixed bug #106788 from James Clark - some spaces need to be serialized as character references. - -Sat Feb 22 18:28:16 CET 2003 Igor Zlatkovic - - * parser.c uri.c: fixed the bug I introduced in the path - handling, reported by Sebastian Bergmann - -Sat Feb 22 00:19:48 CET 2003 Daniel Veillard - - * parser.c: fixing some nodeinfo in entities problem raised - by Glenn W. Bach - * relaxng.c: implemented the first section 7.3 check - * result/relaxng/*: updated the results - -Fri Feb 21 18:12:19 CET 2003 Daniel Veillard - - * relaxng.c: fixed some problems in the previous commit - and finished implementing 4.16 rules checking - found 373 test schemas: 353 success 20 failures - found 529 test instances: 519 success 6 failures - * result/relaxng/*: updated the results - -Fri Feb 21 16:37:39 CET 2003 Daniel Veillard - - * relaxng.c: implemented checks from section 7.2 - -Thu Feb 20 16:00:31 CET 2003 Daniel Veillard - - * relaxng.c: implemented the checks from section 7.1, fixed - some of the 4.20 and 4.21 problems. - found 373 test schemas: 338 success 35 failures - found 529 test instances: 519 success 6 failures - * result/relaxng/*: updated the results - -Thu Feb 20 01:09:24 CET 2003 Daniel Veillard - - * relaxng.c: implemented the 4.20 and 4.21 simplification rules. - * result/relaxng/*: updated the results - -Wed Feb 19 18:30:30 CET 2003 Daniel Veillard - - * relaxng.c: more bugfixes - * result/relaxng/*: updated the results - -Wed Feb 19 15:39:56 CET 2003 Igor Zlatkovic - - * DOCBparser.c: obsoleted xmlNormalizeWindowsPath - * HTMLparser.c: obsoleted xmlNormalizeWindowsPath - * SAX.c: ensured xmlDoc.URL is always canonic - * parser.c: obsoleted xmlNormalizeWindowsPath - * uri.c include/libxml/uri.h: introduced xmlCanonicPath - * xmlIO.c include/libxml/xmlIO.h: obsoleted xmlNormalizeWindowsPath - * win32/libxml2.def.src: added few exports - -Wed Feb 19 14:26:51 CET 2003 Daniel Veillard - - * Makefile.am configure.in: patched to have shared libraries - for Python regression tests and static binaries for gdb debug - in my development environment - * relaxng.c: more bugfixes - found 373 test schemas: 296 success 77 failures - found 529 test instances: 516 success 8 failures - * result/relaxng/*: updated the results - -Wed Feb 19 01:17:48 CET 2003 Daniel Veillard - - * relaxng.c: guess what ! Relax-NG bugfixing, what a surprize... - -Tue Feb 18 22:09:50 CET 2003 Daniel Veillard - - * xmlschemastypes.c: float/double check bugfix - * tree.c include/libxml/tree.h: exported a function for NMTOKEN - validation - * xmlreader.c: add a TODO for Jody - * relaxng.c: bugfix bugfix bugfix - found 373 test schemas: 300 success 73 failures - found 529 test instances: 507 success 10 failures - * result/relaxng/*: updated the results - -Tue Feb 18 00:33:17 CET 2003 Daniel Veillard - - * relaxng.c check-relaxng-test-suite.py: more RelaxNG bug hunting - -Mon Feb 17 18:23:32 CET 2003 Daniel Veillard - - * relaxng.c check-relaxng-test-suite.py: more work on the - RelaxNG implementation conformance testing. - found 373 test schemas: 284 success 89 failures - found 529 test instances: 448 success 47 failures - * result/relaxng/*: updated the results - -Sun Feb 16 16:48:38 CET 2003 Daniel Veillard - - * ChangeLog tree.c doc/libxml-doc.el doc/libxml2-api.xml: applied - a patch from Kjartan Maraas to fix some typos - -Sun Feb 16 16:40:52 CET 2003 Daniel Veillard - - * relaxng.c: more bug-hunting - * testRelax.c include/libxml/relaxng.h: added --tree to dump the - intermediate rng tree - * python/generator.py: patch from Stephane Bidoul to fix the generator - on python < 2.2 - -Fri Feb 14 17:49:26 CET 2003 Daniel Veillard - - * check-relaxng-test-suite.py relaxng.c: more testing on the - Relax-NG front, cleaning up the regression tests failures - current state and I forgot support for "mixed": - found 373 test schemas: 280 success 93 failures - found 529 test instances: 401 success 68 failures - * tree.c include/libxml/tree.h xmlschemastypes.c: finished and - moved the Name, NCName and QName validation routine in tree.c - * uri.c: fixed handling of URI ending up with #, i.e. having - an empty fragment ID. - * result/relaxng/*: updated the results - -Thu Feb 13 16:49:24 CET 2003 Daniel Veillard - - * check-xinclude-test-suite.py: improved the script accordingly - to the XInclude regression tests updates - * xpointer.c: Implemented XPointer element() Scheme W3C PR of 13 - November 2002 - * result/XPath/xptr/chapterschildseq result/XPath/xptr/vidchildseq - test/XPath/xptr/chapterschildseq test/XPath/xptr/vidchildseq: - augmented the Xpointer testsuite for the element() scheme - -Thu Feb 13 12:00:30 CET 2003 Daniel Veillard - - * relaxng.c: added TODO for the DTD compatibility spec - * xinclude.c: more bug fixes driven by the testsuite - -Tue Feb 11 19:01:02 CET 2003 Daniel Veillard - - * check-xinclude-test-suite.py xinclude.c: Work on the W3C/NIST - regression tests for XInclude, improved the script, improving - XInclude error reporting mechanism - -Mon Feb 10 17:19:14 CET 2003 Daniel Veillard - - * NEWS doc/* configure.in: preparing release 2.5.3 - -Mon Feb 10 17:11:22 CET 2003 Daniel Veillard - - * tree.c: trying to fix #104934 about some XHTML1 serialization - issues. - -Mon Feb 10 16:41:13 CET 2003 Daniel Veillard - - * encoding.c xmlIO.c: fixing bug #104646 about iconv based - encoding conversion when the input buffer stops in the - middle of a multibyte char - -Mon Feb 10 15:24:47 CET 2003 Daniel Veillard - - * test/relaxng/OASIS/spectest.xml: OASIS RelaxNG testsuite - * check-relaxng-test-suite.py: python script to run regression - against OASIS RelaxNG testsuite - * relaxng.c: some cleanup tweaks - * HTMLparser.c globals.c: cleanups in comments - * doc/libxml2-api.xml: updated the API - * result/relaxng/*: errors moved files, so large diffs but - no changes at the semantic level. - -Mon Feb 10 01:00:31 CET 2003 Daniel Veillard - - * tree.c: fixing #105678 problem when dumping a namespace node. - -Mon Feb 10 00:30:01 CET 2003 Daniel Veillard - - * xpath.c: fixed doc comment problems - * python/generator.py python/libxml_wrap.h python/types.c: adding - RelaxNG wrappers - * python/tests/Makefile.am python/tests/relaxng.py: added a specific - test of those early Python RelaxNG bindings - -Sun Feb 9 15:18:43 CET 2003 Daniel Veillard - - * libxml.spec.in: fixes a libtool problem on AMD 64bits builds - * relaxng.c: found the validation problem I had with interleave - when not covering all remaining siblings - * Makefile.am test.relaxng/* result/relaxng/*: augmented the - testsuite and check the RNG schemas against the RNG schemas - given in appendix A - -Sat Feb 8 18:55:43 CET 2003 Igor Zlatkovic - - * win32/Makefile.msvc: updates for RelaxNG - * win32/Makefile.mingw: updates for RelaxNG - * win32/libxml2.def.src: added RelaxNG exports - -Fri Feb 7 14:00:53 CET 2003 Daniel Veillard - - * xinclude.c: applied another bug fix from Sean Chittenden - -Fri Feb 7 13:34:08 CET 2003 Daniel Veillard - - * configure.in xmllint.c: I f...ed up the default configuration - of schemas and --relaxng option display in xmllint, pointed by - Morus Walter. - * xlink.c: Sean Chittenden pointed a couple of errors in the XLink - detection module, fixes bug #105374. - -Fri Feb 7 01:43:38 CET 2003 Daniel Veillard - - * xmlschemastypes.c: added the boolean base type. - -Thu Feb 6 10:23:52 CET 2003 Daniel Veillard - - * xmlschemastypes.c: started implementing some of the missing - default simple types - * result/relaxng/*: updated the results - -Wed Feb 5 15:28:04 CET 2003 Daniel Veillard - - * NEWS doc/*: updated the docs, ready for 2.5.2 release - -Wed Feb 5 14:15:59 CET 2003 Daniel Veillard - - * HTMLparser.c tree.c xmlIO.c: comments cleanups - * Makefile.am: use xmllint for doing the RelaxNG tests - * configure.in: preparing 2.5.2 made schemas support default to - on instead of off - * relaxng.c: removed the verbosity - * xmllint.c: added --relaxng option - * python/generator.py python/libxml_wrap.h: prepared the integration - of the new RelaxNG module and schemas - * result/relaxng/*: less verbose output - -Wed Feb 5 12:00:36 CET 2003 Daniel Veillard - - * valid.c: do not run content model validation if the - content is not determinist - -Wed Feb 5 11:43:58 CET 2003 Daniel Veillard - - * SAX.c: added the redefinition of namespaced attribute - check that was missing as Fabrice Desré pointed out. - -Wed Feb 5 11:09:29 CET 2003 Daniel Veillard - - * HTMLparser.c include/libxml/HTMLparser.h: applied HTML - improvements from Nick Kew, allowing to do more checking - to HTML elements and attributes. - -Tue Feb 4 23:47:06 CET 2003 Daniel Veillard - - * xinclude.c: fixing bug #105137 about entities declaration - needing to be copied to the including document. - -Tue Feb 4 20:26:22 CET 2003 Daniel Veillard - - * catalog.c: fixed bug #104817 with delegateURI - * xpath.c: fixing bugs #104123 and #104125 - -Tue Feb 4 17:12:56 CET 2003 Daniel Veillard - - * configure.in valid.c xmlreader.c python/libxml_wrap.h - python/types.c: fixing #104096 to compile without regexps - -Tue Feb 4 16:31:55 CET 2003 Daniel Veillard - - * valid.c: fixing bug #103969 forgot to add an epsilon transition - when building the automata for elem* - -Tue Feb 4 16:21:07 CET 2003 Daniel Veillard - - * HTMLparser.c: applied patch from Arne de Bruijn fixing - bug #103827 - -Tue Feb 4 16:17:09 CET 2003 Daniel Veillard - - * HTMLparser.c: updating a comment, fixing #103776 - -Tue Feb 4 16:05:53 CET 2003 Daniel Veillard - - * parser.c: fixing bug 105049 for validity checking of content - within recursive entities. - -Tue Feb 4 15:40:54 CET 2003 Daniel Veillard - - * HTMLparser.c: try to fix # 105049 - * relaxng.c xmlschemastypes.c: a couple of changes and extensions - * tree.c: updated a function comment - -Tue Feb 4 00:20:58 CET 2003 Daniel Veillard - - * relaxng: more work on grammars and refs/defs - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Mon Feb 3 14:16:59 CET 2003 Daniel Veillard - - * relaxng: more work on name classes, except support - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Mon Feb 3 11:56:05 CET 2003 Daniel Veillard - - * relaxng: more work on name classes, the "validate all" schemas - seems to work now. - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Mon Feb 3 09:50:26 CET 2003 Daniel Veillard - - * python/libxml.c: removed an unprotedted debug message Aleksi Suhonen - * parser.c: put a guard against infinite document depth, basically - trying to avoid another kind of DoS attack. - * relaxng.c: some code w.r.t. nameClasses - -Sun Feb 2 17:01:43 CET 2003 Daniel Veillard - - * test/relaxng/* result/relaxng/*: check all the namespace support - was actually correct based on tutorial section 10. - -Sun Feb 2 15:33:38 CET 2003 Daniel Veillard - - * relaxng: include seems to work okay now - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Sat Feb 1 19:44:58 CET 2003 Daniel Veillard - - * relaxng.c: a bit of work done in the train back. - * test/relaxng/*: added one of the include tests - -Thu Jan 30 14:06:55 CET 2003 Daniel Veillard - - * relaxng: more work done in the train - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Wed Jan 29 23:44:58 CET 2003 Daniel Veillard - - * relaxng.c: debugging of externalRef - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Wed Jan 29 22:06:04 CET 2003 Daniel Veillard - - * relaxng.c: more work on Relax-NG, implementing externalRef - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - * Makefile.am: cleanup to Relaxtests target - -Wed Jan 29 00:08:38 CET 2003 Daniel Veillard - - * relaxng.c: more work on Relax-NG, implementing interleave - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Tue Jan 28 21:56:49 CET 2003 Daniel Veillard - - * relaxng.c: more work on Relax-NG, implementing interleave - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Mon Jan 27 07:35:29 MST 2003 John Fleck - - * doc/tutorial/customfo.xsl - * doc/tutorial/customhtml.xsl - adding stylesheet customizations used to generate fo - for pdf and html - -Mon Jan 27 13:29:43 CET 2003 Daniel Veillard - - * relaxng.c: more work on Relax-NG - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - * xmlschemastypes.c: added a number of base type definition but not - the associated checks, those are still TODOs - -Sun Jan 26 17:37:06 MST 2003 John Fleck - - in docs/tutorial: - * apa.html - * apb.html - * apc.html - * apd.html - * ape.html - * apf.html - * apg.html - * ar01s02.html - * ar01s03.html - * ar01s04.html - * ar01s05.html - * ar01s06.html - * ar01s07.html - * ar01s08.html - * index.html - * xmltutorial.pdf - * xmltutorial.xml - add index to tutorial - -Sun Jan 26 17:02:29 MST 2003 John Fleck - - * doc/xmlcatalog.1 - * doc/xmlcatalog_man.html - * doc/xmlcatalog_man.xml - belatedly fixing bug #93622 (adds rewriteURI type to - "--add" option in xmlcatalog man page - -Sun Jan 26 20:47:26 CET 2003 Daniel Veillard - - * xmlcatalog.c xmllint.c: applied patch for NetBSD by - Julio Merino, closing #104475 - -Sun Jan 26 20:38:43 CET 2003 Daniel Veillard - - * relaxng.c: more work on Relax-NG - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Sun Jan 26 01:49:58 CET 2003 Daniel Veillard - - * relaxng.c: more work on Relax-NG - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Sat Jan 25 18:59:54 CET 2003 Daniel Veillard - - * README: updated the policy on private mail answers - * relaxng.c: more work on Relax-NG - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Fri Jan 24 15:12:44 CET 2003 Daniel Veillard - - * error.c parser.c tree.c: applied a documentation patch from - Stefan Kost - -Fri Jan 24 02:00:50 CET 2003 Daniel Veillard - - * relaxng.c: more work on Relax-NG - * doc/*: regenerated the docs - * test/relaxng/* result/relaxng/*: updated and augmented the - Relax-NG regression tests and results - -Thu Jan 23 19:26:20 CET 2003 Daniel Veillard - - * Makefile.am configure.in relaxng.c include/libxml/relaxng.h: - First commit of the new Relax-NG validation code, not generally - useful yet. - * test/relaxng/* result/relaxng/*: current state of the regression - tests - -Thu Jan 23 19:22:54 CET 2003 Daniel Veillard - - * tree.c: minimized the memory allocated for GetContent - and a bit of cleanup. - -Thu Jan 23 17:41:37 CET 2003 Daniel Veillard - - * python/generator.py: seems there is no good reasons to - not generate bindings for XPointer - -Tue Jan 21 13:19:35 CET 2003 Daniel Veillard - - * xmlreader.c doc/apibuild.py: applied a new patch from - Stéphane Bidoul for cleanups - * doc/libxml2-api.xml: rebuilt the API description with - new entry points - -Mon Jan 20 23:25:00 CET 2003 Daniel Veillard - - * xmlreader.c python/drv_libxml2.py python/generator.py - python/libxml.c python/libxml.py python/libxml_wrap.h - python/types.c: patch from Stéphane Bidoul for better per - context error message APIs - * python/tests/ctxterror.py python/tests/readererr.py: - update of the tests - -Sun Jan 19 17:09:28 MST 2003 John Fleck - - * doc/guidelines.html - grammar and spelling cleanup - -Fri Jan 17 00:31:30 CET 2003 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h python/generator.py - python/libxml.c python/libxml.py win32/libxml2.def.src: applied - a patch from Stéphane Bidoul to allow per XMLtextReader error - and warning handling - * python/tests/Makefile.am python/tests/readererr.py: adding the - specific regression test - -Tue Jan 14 17:00:08 CET 2003 Daniel Veillard - - * xpath.c: Alexey Efimov pointed out that concat('a', 'b', ) - should raise a syntax error - -Tue Jan 14 15:39:14 CET 2003 Daniel Veillard - - * python/libxml.c: cleanup patch from Stéphane Bidoul - -Tue Jan 14 14:41:18 CET 2003 Daniel Veillard - - * encoding.c: fixing bug #103100 with a dummy UTF8ToUTF8 copy - -Tue Jan 14 12:40:29 CET 2003 Daniel Veillard - - * python/generator.py python/libxml.c python/libxml.py - python/libxml_wrap.h python/types.c: applied and fixed a patch - from Stéphane Bidoul to provide per parser error handlers at the - Python level. - * python/tests/Makefile.am python/tests/ctxterror.py: added a - regression test for it. - -Tue Jan 14 01:15:04 CET 2003 Daniel Veillard - - * xmlreader.c: fixed the streaming property of the reader, - it was generating tree faster than consuming it. Pointed out - by Nate Myers - * tree.c: fixed a bug in xmlSaveFormatFileEnc if passed a NULL doc - -Sun Jan 12 22:18:02 CET 2003 Igor Zlatkovic - - * win32/libxml2.def.src: added more xmlreader and other exports - -Fri Jan 10 18:04:32 CET 2003 Daniel Veillard - - * xpath.c: fix to the XPath implementation for parent and - ancestors axis when operating on a Result Value Tree. - Fixes bug #100271 - -Fri Jan 10 17:07:01 CET 2003 Daniel Veillard - - * nanoftp.c nanohttp.c xmlIO.c: patch from Stefano Zacchiroli - to fix some URI/file escaping problems - -Fri Jan 10 16:20:34 CET 2003 Daniel Veillard - - * python/generator.py: fixed a bug raised by Raymond Wiker, - docSetRootElement() should not raise an exception if the - return is None - -Fri Jan 10 14:13:03 CET 2003 Daniel Veillard - - * python/libxml.py python/libxml.c python/libxml2-python-api.xml: - fixed bug #102181 by applying the suggested change and fixing - the generation/registration problem. - -Fri Jan 10 13:47:55 CET 2003 Daniel Veillard - - * HTMLparser.c: fixed bug #102960 by reusing the XML name parsing - routines. - -Fri Jan 10 00:16:49 CET 2003 Daniel Veillard - - * parser.c: one more IsEmptyElement crazyness, that time in - external parsed entities if substitution is asked. - * python/tests/reader3.py: added a specific test. - -Thu Jan 9 22:35:31 CET 2003 Daniel Veillard - - * python/drv_libxml2.py: update from Stéphane Bidoul: python 2.1 - support and improved error handler registration - -Thu Jan 9 14:16:38 CET 2003 Daniel Veillard - - * HTMLtree.c tree.c: fixes #102920 about namespace handling in - HTML output and section 16.2 "HTML Output Method" of XSLT-1.0 - * README: fixed a link - -Wed Jan 8 18:32:25 CET 2003 Daniel Veillard - - * configure.in doc/* NEWS: preparing 2.5.1 release - * SAX.c parser.c: fixing XmlTextReader bug - -Wed Jan 8 00:13:01 CET 2003 Daniel Veillard - - * SAX.c: fuck, I introduced a memory leak on external parsed - entities in 2.5.0 :-( - -Tue Jan 7 12:12:45 CET 2003 Daniel Veillard - - * xmllint.c: another fix needed as pointed by Christophe Merlet - for --stream --debug if compiled without debug support. - -Mon Jan 6 20:53:08 MST 2003 John Fleck - - * doc/xmllint.xml - * doc/xmllint.1: - update man page with --stream and --chkregister - -Tue Jan 7 01:17:26 CET 2003 Daniel Veillard - - * globals.c: fixed --with-threads compile - * xmllint.c: fixed --without-debug compile - * include/libxml/globals.h: cleanup - * include/libxml/schemasInternals.h: add a missing include - -Mon Jan 6 14:06:07 CET 2003 Daniel Veillard - - * configure.in NEWS: preparing 2.5.0 release - * SAX.c: only warn in pedantic mode about namespace name - brokeness - * globals.c: fix a doc generation problem - * uri.c: fix #101520 - * doc/*: updated and rebuilt the doc for the release, includuding - stylesheet update - * python/Makefile.am: fix a filename bug - -Mon Jan 6 12:05:12 CET 2003 Daniel Veillard - - * doc/tutorial/* : fixed #101894 if doc == NULL xmlFreeDoc - should not be called. - -Mon Jan 6 11:59:09 CET 2003 Daniel Veillard - - * libxml-2.0.pc.in: applied the patch to fix #101894 - -Sun Jan 5 23:35:47 CET 2003 Daniel Veillard - - * tree.c : applied patch from Lukas Schroeder for register callbacks - * valid.c: modified patch from Lukas Schroeder to test - register callbacks with --chkregister - -Sun Jan 5 02:23:20 CET 2003 Daniel Veillard - - * xmlreader.c: seriously changed the way data are pushed to - the underlying parser, go by block of 512 bytes instead of - tryng to detect tag boundaries at that level. Changed the - way empty element are detected and tagged. - * python/tests/reader.py python/tests/reader2.py - python/tests/reader3.py: small changes mostly due to context - reporting being different and DTD node being reported. Some - errors previously undetected are now caught and fixed. - * doc/xmlreader.html: flagged last section as TODO - -Sat Jan 4 20:40:28 CET 2003 Daniel Veillard - - * python/libxml.py: integrated the Python 2.2 optimizations - from Hannu Krosing, while maintaining compatibility with - 1.5 and 2.1 - -Sat Jan 4 17:33:17 CET 2003 Daniel Veillard - - * xmllint.c: a bit of cleanup - * xmlreader.c: small fix - * doc/xmlreader.html: more work on the XmlTextReader tutorial - * python/libxml.py: a few fixes pointed out by Hannu Krosing - -Sat Jan 4 13:46:14 CET 2003 Daniel Veillard - - * python/setup.py.in: patch from Stéphane Bidoul to include - drv_libxml2.py in setup.py - -Sat Jan 4 01:43:06 CET 2003 Daniel Veillard - - * doc/xmlreader.html: starting documenting the new XmlTextReader - interface. - -Fri Jan 3 17:18:32 CET 2003 Daniel Veillard - - * xmllint.c: added the --stream flag to use the TextReader API - * xmlreader.c: small performance tweak - -Fri Jan 3 13:50:55 CET 2003 Daniel Veillard - - * xmlreader.c python/tests/reader2py: okay the DTD validation - code on top of the XMLTextParser API should be solid now. - -Fri Jan 3 02:17:18 CET 2003 Daniel Veillard - - * xmlreader.c python/tests/reader2py: Fixing some more mess - with validation and recursive entities while using the - reader interface, it's getting a bit messy... - -Thu Jan 2 15:15:26 CET 2003 Daniel Veillard - - * xmlreader.c python/tests/reader.py: another couple of problem - related to IsEmptyElement reported by Stéphane Bidoul needed - some fixes. - -Thu Jan 2 13:57:07 CET 2003 Daniel Veillard - - * libxml.spec.in python/Makefile.am python/drv_libxml2.py: - integrated drv_libxml2.py Python xml.sax driver from Stéphane Bidoul - based on the python XmlTextReader interface. - -Wed Jan 1 22:05:40 CET 2003 Daniel Veillard - - * tree.c: backing out one change in the last patch which broke the - regression tests - -Wed Jan 1 21:57:28 CET 2003 Daniel Veillard - - * global.data globals.c tree.c include/libxml/globals.h: applied - an old patch from Lukas Schroeder to track node creation and - destruction. Probably missing a lot of references at the moment - and not usable reliably. - -Wed Jan 1 20:12:07 CET 2003 Daniel Veillard - - * NEWS doc/Makefile.am doc/news.xsl: generate the NEWS file - from doc/news.html and a stylesheet - -Wed Jan 1 16:09:57 CET 2003 Daniel Veillard - - * xmlreader.c python/tests/reader.py: fixed another couple of - xmlreader bugs reported by Stéphane Bidoul and added tests. - -Wed Jan 1 15:42:54 CET 2003 Daniel Veillard - - * xmlreader.c python/tests/reader2.py: fixed another validity - checking in external parsed entities raised by Stéphane Bidoul - and added a specific regression test. - * python/tests/reader3.py: cleanup - -Tue Dec 31 15:44:02 CET 2002 Daniel Veillard - - * xmlreader.c python/tests/reader2.py: fixed a problem with - validation within entities pointed by Stéphane Bidoul, augmented - the tests to catch those. - -Tue Dec 31 12:15:37 CET 2002 Daniel Veillard - - * python/generator.py: modified the generator to allow keeping - class references when creating new classes, needed to fix a bug - pointed by Stéphane Bidoul where the input buffer of the - xmlTextReader instance gets destroyed if the python wrapper for - the input is not referenced anymore. - -Mon Dec 30 19:39:36 CET 2002 Daniel Veillard - - * xmlreader.c python/tests/reader.py: fixed another pair of problem - pointed by Stéphane Bidoul: depth start at 0 and a parse problem. - -Mon Dec 30 13:36:50 CET 2002 Daniel Veillard - - * xmlreader.c python/tests/reader.py: fixed another problem - pointed by Stéphane Bidoul - -Mon Dec 30 12:39:55 CET 2002 Daniel Veillard - - * xmlreader.c python/tests/reader.py: fixed a limit case problem - with "" - -Mon Dec 30 11:53:44 CET 2002 Daniel Veillard - - * SAX.c: warn on xmlns:prefix="foo" - * xmlreader.c python/tests/reader.py: fixed a couple of problem - for namespace attributes handling. - -Mon Dec 30 00:59:07 CET 2002 Daniel Veillard - - * entities.c parser.c tree.c include/libxml/entities.h: Fixed - a really nasty problem raised by a DocBook XSLT transform - provided by Sebastian Bergmann - -Sun Dec 29 12:13:18 CET 2002 Daniel Veillard - - * xmlreader.c python/tests/reader.py: fixed a bug pointed out - by Stéphane Bidoul and integrated it into the tests - -Sat Dec 28 23:49:12 CET 2002 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h doc/libxml2-api.xml: - extended the XmlTextReader API a bit, addding accessors for - the current doc and node, and an entity substitution mode for - the parser. - * python/libxml.py python/libxml2class.txt: related updates - * python/tests/Makefile.am python/tests/reader.py - python/tests/reader2.py python/tests/reader3.py: updated a bit - the old tests and added a new one to test the entities handling - -Sat Dec 28 22:11:57 CET 2002 Daniel Veillard - - * python/generator.py python/libxml2class.txt - python/tests/reader.py python/tests/reader2.py: changed the - generator to provide casing for the XmlTextReader similar to - C# so that examples and documentation are more directly transposable. - Fixed the couple of tests in the suite. - -Sat Dec 28 15:55:32 CET 2002 Daniel Veillard - - * doc/guidelines.html: added a document on guildeline for - publishing and deploying XML - -Fri Dec 27 20:35:15 CET 2002 Daniel Veillard - - * valid.c xmlreader.c: final touch running DTD validation - on the XmlTextReader - * python/tests/Makefile.am python/tests/reader2.py: added a - specific run based on the examples from test/valid/*.xml - -Fri Dec 27 15:17:20 CET 2002 Daniel Veillard - - * python/libxml.py: added a few predefined xmlTextReader parser - configuration values. - -Fri Dec 27 12:57:22 CET 2002 Daniel Veillard - - * python/libxml_wrap.h: trying to fix #102037 - -Fri Dec 27 12:18:14 CET 2002 Daniel Veillard - - * SAX.c: fixing bug #95296, when the predefined entities - are redefined in the DTD the default one must be used - instead anyway. - -Wed Dec 25 19:22:06 MST 2002 John Fleck - - * doc/xmllint.xml - * doc/xmllint.1 - Add discussion of XML_DEBUG_CATALOG to xmllint man - page - bug #100907 - -Mon Dec 23 16:54:22 CET 2002 Daniel Veillard - - * xmlreader.c: Fixed the empty node detection to avoid reporting - an inexistant close tag. - -Mon Dec 23 15:42:24 CET 2002 Daniel Veillard - - * python/libxml.c python/setup.py.in: patch from Stéphane Bidoul - for Python 2.1 - -Sun Dec 22 11:24:06 CET 2002 Daniel Veillard - - * testC14N.c vms/config.vms: applied Craig A. Berry patches for VMS - -Fri Dec 20 11:27:49 CET 2002 Daniel Veillard - - * doc/libxml2-api.xml python/tests/reader.py: one really need - to provide the base URI information when creating a reader parser - from an input stream. Updated the API and the example using it. - -Fri Dec 20 01:11:30 CET 2002 Daniel Veillard - - * testReader.c xmlreader.c valid.c include/libxml/tree.h - include/libxml/valid.h include/libxml/xmlreader.h: working on - DTD validation on top of xml reader interfaces. Allows to - validate arbitrary large instances. This required some extensions - to the valid module interface and augmenting the size of xmlID - and xmlRef structs a bit. - * uri.c xmlregexp.c: simple cleanup. - -Wed Dec 18 15:51:22 CET 2002 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h doc/libxml2-api.xml: more - work on the xml reader interfaces. - * AUTHORS MAINTAINERS doc/* win32/*: updated Igor's mail and the - Web page for the Windows binaries. - -Tue Dec 17 19:31:07 CET 2002 Daniel Veillard - - * xmlIO.c: applied a patch for VMS following the report by - Nigel Hall - -Tue Dec 17 11:29:41 CET 2002 Daniel Veillard - - * parser.c: the parseStartTag bug fix wasn't complete. - -Mon Dec 16 23:00:05 CET 2002 Daniel Veillard - - * parser.c: Vyacheslav Pindyura managed to trigger a bug in - parseStartTag, fixing it. - * test/att4 result/att4 result/noent/att4: adding the test - * xmlreader.c include/libxml/xmlreader.h doc/libxml2-api.xml: added - more methods to XmlTextReader. - -Mon Dec 16 19:31:16 CET 2002 Igor Zlatkovic - - * win32/libxml2.def.src: added more xml reader exports - * win32/Makefile.msvc win32/Makefile.mingw: added xml reader interface - to the build - -Mon Dec 16 06:36:54 MST 2002 John Fleck - - * doc/tutorial/xmltutorial.xml - plus generated html and pdf - Updating tutorial again based on further comments from Niraj - Tolia on the last iteration - -Sun Dec 15 21:27:30 MST 2002 John Fleck - - * doc/tutorial/xmltutorial.xml - * doc/tutorial/includekeyword.c - * doc/tutorial/includegetattribute.c - plus generated html and pdf - Adding fix from Niraj Tolia to tutorial to properly free memory. - -Mon Dec 16 00:34:25 CET 2002 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h doc/libxml2-api.xml: added - more methods of XmlTextReader. - * python/libxml2class.txt python/tests/reader.py: this increased the - methods in the bndings, augmented the test to check those new - functions. - -Sat Dec 14 23:57:39 CET 2002 Daniel Veillard - - * xmlreader.c doc/libxml2-api.xml: added the close and getattribute - methods of XmlTextReader. - * python/generator.py python/libxml_wrap.h python/types.c - python/libxml2class.txt: added the reader to the Python bindings - * python/tests/Makefile.am python/tests/reader.py: added a specific - test for the Python bindings of the Reader APIs - * parser.c: small cleanup. - -Fri Dec 13 11:39:44 CET 2002 Daniel Veillard - - * xinclude.c: fallback was only copying the first child not the - full child list of the fallback element, closes #89684 as reopened - by Bernd Kuemmerlen - -Thu Dec 12 13:34:59 CET 2002 Igor Zlatkovic - - * win32/libxml2.def.src: exported htmlNodeDumpOutput - -Thu Dec 12 10:59:11 CET 2002 Daniel Veillard - - * configure.in: preparing release of 2.4.30 - * doc/apibuild.py doc/libxml2-api.xml: fixups to the api builder, - gives enum values, fix functype return type, put back fields in - structs - * doc/*: updated the docs rebuilt - -Thu Dec 12 01:09:34 CET 2002 Daniel Veillard - - * HTMLtree.c include/libxml/HTMLtree.h: patch from Mark Vakoc - about htmlNodeDumpOutput location. - * xpath.c: removed an undefined function signature - * doc/apibuild.py doc/libxml2-api.xml: the script was exporting - too many symbols in the API breaking the python bindings. - Updated with the libxslt/libexslt changes. - -Wed Dec 11 20:26:15 CET 2002 Daniel Veillard - - * configure.in: preparing release of 2.4.29 - * doc/*: rebuilt the docs and API - * xmlreader.c: a few more fixes for the XmlTextReader API - -Wed Dec 11 18:01:15 CET 2002 Igor Zlatkovic - - * include/win32config.h: applied mingw patch from Magnus Henoch - -Wed Dec 11 16:58:48 CET 2002 Daniel Veillard - - * catalog.c doc/libxml2-api.xml: a bit more cleanup - -Wed Dec 11 14:54:47 CET 2002 Daniel Veillard - - * doc/apibuild.py doc/libxml2-api.xml doc/Makefile.am: new API - building Python script, does the C parsing directly, generates - a better API description including structure fieds defs and - enums. Still a couple of bugs, but good enough for the python - wrappers now. - * DOCBparser.c SAX.c nanohttp.c parser.c parserInternals.c tree.c - valid.c xmlIO.c xmlmemory.c xmlreader.c xmlregexp.c xmlschemas.c - include/libxml/schemasInternals.h include/libxml/tree.h: more - cleanup based on the python analysis script reports. - * libxml.spec.in: make sure the API XML description is part of the - devel package. - -Tue Dec 10 16:16:34 CET 2002 Daniel Veillard - - * DOCBparser.c HTMLparser.c c14n.c debugXML.c encoding.c hash.c - nanoftp.c nanohttp.c parser.c parserInternals.c testC14N.c - testDocbook.c threads.c tree.c valid.c xmlIO.c xmllint.c xmlmemory.c - xmlreader.c xmlregexp.c xmlschemas.c xmlschemastypes.c xpath.c: - code cleanup, especially the function comments. - * tree.c: fixed a small bug when freeing nodes which are XInclude ones. - -Mon Dec 9 15:08:17 CET 2002 Daniel Veillard - - * Makefile.am xmlreader.c include/libxml/Makefile.am - include/libxml/xmlreader.h: Adding a new set of APIs based on - the C# TextXmlReader API but converted to C. Allow to parse - in constant memory usage, far simpler to program and explain - than the SAX like APIs, unfinished but working. - * testReader.c: test program - -Sun Dec 8 18:36:01 CET 2002 Igor Zlatkovic - - * win32/libxml2.def.src: applied YALDSP from Mark Vakoc - -Wed Dec 4 16:08:49 CET 2002 Daniel Veillard - - * tree.c: Chip turner indicated that XHTML1 serialization - rule for style actually break on both IE and Mozilla, - try to avoid the rule if escaping ain't necessary - -Wed Dec 4 12:43:28 CET 2002 Daniel Veillard - - * nanhttp.c: handle HTTP URL escaping, problem reported by - Glen Nakamura and Stefano Zacchiroli - -Sat Nov 30 12:19:17 CET 2002 Daniel Veillard - - * DOCBparser.c HTMLparser.c parser.c valid.c xpath.c: code cleanup - -Thu Nov 28 12:53:22 CET 2002 Daniel Veillard - - * uri.c: Johann Richard pointed out some XPointer problems for - URN based URI references in XInclude. Modified the URI parsing - and saving routines to allow correct parsing and saving of - XPointers, especially when attached to "opaque" scheme accordingly - to RFC 2396 - -Wed Nov 27 20:36:08 CET 2002 Daniel Veillard - - * HTMLtree.c include/libxml/HTMLtree.h: applied the same kind - of refactoring to the HTML saving code. - * doc/libxml2-*.xml doc/API*.html: slight API changes got reflected - in the doc. - -Wed Nov 27 12:40:16 CET 2002 Daniel Veillard - - * tree.c include/libxml/tree.h: refactored the XML dump of a node - to a buffer API to reuse the generic dump to an OutputIO layer, - this reduces code, fixes xmlNodeDump() for XHTML, also made - xmlNodeDump() now return the number of byte written. - -Wed Nov 27 09:00:00 CET 2002 Daniel Veillard - - * python/setup.py.in: another patch from Stéphane Bidoul for - Python bindings on Windows - * doc/parsedecl.py: small cleanup - -Mon Nov 25 17:28:53 CET 2002 Daniel Veillard - - * libxml.spec.in configure.in: add a line in %changelog for releases - -Mon Nov 25 14:18:27 CET 2002 Daniel Veillard - - * parser.c: patch from Marcus Clarke fixing a problem in entities - parsing that was detected in KDe documentations environment. - -Mon Nov 24 14:13:21 CET 2002 ERDI Gergo - - * python/libxml.c (libxml_prev): Return the previous as opposed to - the next node (I guess this is the result of some cut & paste programming:) - -Sat Nov 23 17:22:22 CET 2002 Daniel Veillard - - * doc/Makefile.am: Jan Rafaj pointed a bug in the Makefile. - -Sat Nov 23 12:21:24 CET 2002 Daniel Veillard - - * python/generator.py python/libxml.c python/setup.py.in: trying - to fix the Python bindings build on Windows (Stéphane Bidoul) - -Fri Nov 22 22:41:34 CEST 2002 Igor Zlatkovic - - * win32/configure.js: added option for python bindings - * win32/libxml2.def.src: added more exports - -Fri Nov 22 18:50:34 CET 2002 Igor Zlatkovic - - * win32/Makefile.mingw: fixed unresolved symbols when linking with - pthreads - * win32/wince/*: applied updates to Windows CE port from Javier - -Fri Nov 22 15:51:22 CET 2002 Daniel Veillard - - * configure.in: preparing 2.4.28 - * libxml.spec.in doc/Makefile.am: some cleanup - * doc/*: updated the news and regenerated. - -Fri Nov 22 14:15:14 CET 2002 Daniel Veillard - - * HTMLparser.c: final touch at closing #87235

end tags - need to be generated. - * result/HTML/cf_128.html result/HTML/test2.html result/HTML/test3.html: - this change slightly the output of a few tests - * doc/*: regenerated - -Fri Nov 22 13:26:19 CET 2002 Daniel Veillard - - * parserInternals.c: fixing bug #99190 when UTF8 document are - parsed using the progressive parser and the end of the chunk - is in the middle of an UTF8 multibyte character. - -Fri Nov 22 13:13:00 HKT 2002 William Brack - - * threads.c: fixed initialization problem in xmlNewGlobalState - which was causing crash. - * globals.c: removed duplicate call to initxmlDefaultSAXHandler - in xmlInitializeGlobalState. - * parserInternals.c: cleaned up ctxt->sax initialisation. - -Thu Nov 21 15:05:45 CET 2002 Daniel Veillard - - * tree.c include/libxml/tree.h: modified the existing APIs - to handle XHTML1 serialization rules automatically, also add - xmlIsXHTML() to libxml2 API. Some tweaking to make sure - libxslt serialization uses it when needed without changing - the library API. - * test/xhtml1 result/noent/xhtml1 result/valid/xhtml1.xhtml - result/xhtml1: added a new test specifically for xhtml1 output - and updated the result of one XHTML1 test - -Wed Nov 20 14:24:56 CET 2002 Daniel Veillard - - * xinclude.c parserInternals.c encoding.c: fixed #99082 - for xi:include encoding="..." support on text includes. - * result/XInclude/tstencoding.xml test/XInclude/docs/tstencoding.xml - test/XInclude/ents/isolatin.txt : added a specific regression test - * python/generator.py python/libxml2class.txt: fixed the generator - the new set of comments generated for doc/libxml2-api.xml were - breaking the python generation. - -Tue Nov 19 23:25:47 CET 2002 Daniel Veillard - - * doc/Makefile.am: repair some problem if gtk-doc fail or such - * configure.in: patch for Solaris on new autoconf closes #98880 - * doc/parsedecl.py: repair the frigging API building script, - did I say that python xmllib sucks ? - * doc/libxml2-api.xml doc/libxml2-refs.xml: regenerated, reordering - and some comment are no more truncated. - -Tue Nov 19 09:09:04 CET 2002 Daniel Veillard - - * parser.c: Martin Stoilov pointed out a potential leak in - xmlCreateMemoryParserCtxt - -Mon Nov 18 16:05:51 CET 2002 Daniel Veillard - - * HTMLparser.c: fixed bug #98879 a corner case when 0 is - included in HTML documents and using the push parser. - -Mon Nov 18 00:11:24 CET 2002 ERDI Gergo - - * configure.in (PYTHON_SITE_PACKAGES): If --with-python is - specified, look for the Python interpreter not just in the - specified root but also in the specified location. Fixes #98825 - -Sun Nov 17 23:36:06 CET 2002 Daniel Veillard - - * python/libxml.c: fixing bug #98792 , node may have no doc - and dereferencing without checking ain't good ... - -Sun Nov 17 10:25:43 CET 2002 Daniel Veillard - - * configure.in: preparing release 2.4.27 - * doc/* : updated and rebuilt the docs - * doc/Makefile.am libxml.spec.in: try to make sure the tutorial - and all the docs are actually packaged and in the final RPMs - * parser.c parserInternals.c include/libxml/parser.h: restore - xmllint --recover feature. - -Sat Nov 16 16:30:25 CET 2002 Daniel Veillard - - * parser.c xpath.c: fixing #96925 wich was also dependent on the - processing of parsed entities, and XPath computation on sustitued - entities. - * testXPath.c: make sure entities are substitued. - -Fri Nov 15 16:22:54 CET 2002 Daniel Veillard - - * parser.c: fixed #96594, which was totally dependent on the - processing of internal parsed entities, which had to be changed. - -Fri Nov 15 12:16:07 CET 2002 Daniel Veillard - - * Makefile.am python/Makefile.am python/tests/Makefile.am: - trying to fix bug #98517 about building outside the source tree - * doc/xml.html doc/FAQ.html: fixed the link to libiconv #94585 - -Thu Nov 14 18:41:55 CEST 2002 Igor Zlatkovic - - * include/win32config.h: cleanup - * win32/Makefile.mingw: integrated mingw in JScript configure - * win32/Makefile.msvc: modified to allow mingw coexistence - * win32/configure.js: integrated mingw - * win32/Readme.txt: cleanup - -Tue Nov 12 22:06:45 CET 2002 Daniel Veillard - - * HTMLparser.c: strengthen the guard in the Pop macros, - like in the XML parser, closes bug #97315 - -Tue Nov 12 21:56:39 CET 2002 Daniel Veillard - - * include/libxml/parser.h: fixed bug #98338 , fatalError SAX - callback is never used. - -Tue Nov 12 13:32:50 CET 2002 Daniel Veillard - - * parserInternals.c: fixed the initialization of the SAX structure - which was breaking xsltproc - * xpath.c: patch from Petr Pajas for CDATA nodes - * tree.c: patch from Petr Pajas improving xmlGetNodePath() - * parser.c include/libxml/parser.h: patch from Peter Jones - removing a leak in xmlSAXParseMemory() and adding the - function xmlSAXParseMemoryWithData() - -Mon Nov 11 20:47:03 MST 2002 John Fleck - - adding pdf of tutorial, changing web page to link to it - * doc/tutorial/xmltutorial.pdf - * doc/xml.html - * doc/docs.html - -Sun Nov 10 20:48:57 MST 2002 John Fleck - - * doc/tutorial/ar01s08.html - adding file what I forgot for tutorial - -Sun Nov 10 20:33:13 MST 2002 John Fleck - - Adding encoding discussion to tutorial - Added: - * doc/tutorial/images/*.png: DocBook admonition image files - * doc/tutorial/apf.html, apg.html: new generated html - * doc/tutorial/includeconvert.c: conversion code entity file - changed: - * doc/tutorial/xmltutorial.xml: DocBook original - * doc/tutorial/*.html: generated html - -Fri Nov 8 17:59:32 CEST 2002 Igor Zlatkovic - - * include/libxml/*.h: retired xmlwin32version.h - * doc/Makefile.am: retired xmlwin32version.h - * win32/configure.js: retired xmlwin32version.h - -Fri Nov 8 16:55:47 CEST 2002 Igor Zlatkovic - - * win32/libxml2.def.src: exported additional symbols - * include/libxml/xmlmemory.h: exported the rest of the xmlMem* - sisterhood - -Fri Nov 8 16:08:13 CET 2002 Daniel Veillard - - * globals.c: fixed a typo pointed out by Igor - * xpath.c: try to speed up node compare using line numbers - if available. - -Thu Nov 7 15:16:02 CET 2002 Daniel Veillard - - * tree.c: make xmlFreeNode() handle attributes correctly. - -Wed Nov 6 23:51:11 CET 2002 Igor Zlatkovic - - * catalog.c: completed the #96963 fix, as reported by Karl - Eichwalder - -Wed Nov 6 16:48:44 CET 2002 Daniel Veillard - - * xpointer.c: tried to fix bug #97852 reported by Nicolas Noffke - -Sun Nov 3 10:43:44 CET 2002 Daniel Veillard - - * Makefile.am: switched the order of a couple of includes - to fix bugs #97100 - -Thu Oct 31 17:11:46 CEST 2002 Igor Zlatkovic - - * catalog.c: fixed bug #96963, reverted to the old behaviour of - xmlLoadCatalogs that used to separate directories with a ':'. - -Thu Oct 31 16:55:21 CEST 2002 Igor Zlatkovic - - * threads.c: improvements to the Windows-side of thread handling - * testThreads.c: conditionally excluded unistd.h - * testThradsWin32.c: broke overlong lines - * include/win32config.h: adapted thread-related macros to the new - scheme and for pthreads on Windows - * win32/Makefile.msvc: introduced a more flexible thread build, - added testThreads[Win32].c to the build - * win32/configure.js: introduced a more flexible thread config - -2002-10-31 John Fleck - - * doc/xml.html (and, by implication, FAQ.html) - added UTF-8 conversaion FAQ from Marcus Labib Iskander - -Tue Oct 29 18:32:33 CET 2002 Igor Zlatkovic - - * configure.in: removed xmlwin32version.h - * include/libxml/Makefile.am: removed xmlwin32version.h - -Mon Oct 28 14:01:29 CET 2002 Daniel Veillard - - * tree.c: applied patch from Brian Stafford to fix a bug - in xmlReconciliateNs() - -Mon Oct 28 13:51:55 CET 2002 Daniel Veillard - - * tree.c: applied patch from Christian Glahn to allow - xmlNewChild() on document fragment nodes - -Sat Oct 26 15:27:00 CEST 2002 Daniel Veillard - - * parser.c: Christian Glahn found a problem with a recent - patch to xmlParseBalancedChunkMemoryRecover() - * xmlschemas.c: Charles Bozeman fixed some Schemas validation - problems - * result/schemas/elem* result/schemas/seq* test/schemas.elem* - test/schemas/seq*: added the test cases from Charles - -Wed Oct 23 16:42:29 CEST 2002 Daniel Veillard - - * Makefile.am config.h.in libxml.spec.in doc/Makefile.am: - serious cleanup of the spec file and associated changes - in the Makefiles. - * valid.c: try to remove some warnings on x86_64 - -Wed Oct 23 10:53:42 CEST 2002 Daniel Veillard - - * include/Makefile.am: added winsockcompat.h to EXTRA_DIST to - fix bug #96586 - -Tue Oct 22 21:13:06 CEST 2002 Daniel Veillard - - * HTMLparser.c: Mikhail Sogrine pointed out a bug in HTML - parsing, applied his patch - * result/HTML/attrents.html result/HTML/attrents.html.err - result/HTML/attrents.html.sax test/HTML/attrents.html: - added the test and result case provided by Mikhail Sogrine - -Tue Oct 22 19:33:20 CEST 2002 Daniel Veillard - - * vms/build_libxml.com vms/config.vms vms/readme.vms - include/libxml/parser.h include/libxml/parserInternals.h - include/libxml/tree.h include/libxml/xmlIO.h - HTMLparser.c catalog.c debugXML.c parser.c parserInternals.c - tree.c triodef.h trionan.c uri.c xmlIO.c xpath.c: - Applied the VMS update patch from Craig A. Berry - * doc/*.html: update - -Tue Oct 22 16:27:31 CEST 2002 Daniel Veillard - - * include/libxml/encoding.h encoding.c: made xmlGetUTF8Char public - -Tue Oct 22 16:25:18 CEST 2002 Daniel Veillard - - * debugXML.c: adding a grep command to --shell in xmllint - for T.V. Raman - -Tue Oct 22 16:23:57 CEST 2002 Daniel Veillard - - * xmlcatalog.c: tried to fix some of the problem with --sgml - -Mon Oct 21 09:57:10 CEST 2002 Daniel Veillard - - * parser.c: tried to fix bug #91500 where doc->children may - be overriden by a call to xmlParseBalancedChunkMemory() - -Mon Oct 21 09:04:32 CEST 2002 Daniel Veillard - - * catalog.c: tried to fix bug #90945 w.r.t. parsing of system - identifiers in SGML catalogs containing '&' - -Sun Oct 20 23:31:47 CEST 2002 Daniel Veillard - - * python/types.c: fixed bugs when passing result value tree - to Python functions. - -Fri Oct 18 13:18:53 CEST 2002 Daniel Veillard - - * configure.in: preparing the release of 2.4.26 - * doc/*: updated and rebuilt the documentation - -Wed Oct 16 20:01:46 CEST 2002 Daniel Veillard - - * parser.c: fixed a XML Namespace compliance bug reported by - Alexander Grimalovsky - -Wed Oct 16 17:18:42 CEST 2002 Daniel Veillard - - * HTMLtree.c: fixed serialization of script and style when - they are not lowercase (i.e. added using the API to the tree). - -Wed Oct 16 16:31:05 CEST 2002 Daniel Veillard - - * valid.c: make xmlValidateDocument emit a warning msg if there - is no DTD, pointed by Christian Glahn - -Wed Oct 16 16:05:38 CEST 2002 Daniel Veillard - - * xmlregexp.c xmlschemas.c: fixed the validation of sequences - content model when some of the blocks have min or max, and a couple - of bugs found in the process. - * result/schemas/list0* test/schemas/list0*: added some specific - regression tests - -Tue Oct 15 12:41:01 CEST 2002 Daniel Veillard - - * README: updated the contact informations - -Tue Oct 15 10:35:57 CEST 2002 Daniel Veillard - - * Makefile.am: use test -f instead of test -e since Solaris /bin/sh - misses it, reported by Peter Bray. - -Mon Oct 14 17:37:32 CEST 2002 Daniel Veillard - - * tree.c: investigating xmlNodeGetContent() on namespace nodes - and removed a few warnings - -Mon Oct 14 13:12:55 CEST 2002 Daniel Veillard - - * parser.c: Christian Glahn found a small bug in the push parser. - * xmlIO.c include/libxml/xmlIO.h: cleaned up and made xmlCheckFilename - public - -Wed Oct 9 23:11:02 CEST 2002 Daniel Veillard - - * xmlschemas.c include/libxml/xmlschemas.h: added - xmlSchemaNewMemParserCtxt to parse a schemas from a memory area - * testSchemas.c: added --memory to test the new interface - -Wed Oct 9 16:22:54 CEST 2002 Daniel Veillard - - * doc/index.py doc/search.php: integrated the XSLT indexing, - a few fixed in the indexer, added a scope selection at the - search level. - -Wed Oct 9 12:18:37 CEST 2002 Daniel Veillard - - * valid.c: Joe Marcus Clarke reported a segfault on FBsd - this was due to uninitialized parts of the validation context - -Tue Oct 8 23:24:20 CEST 2002 Daniel Veillard - - * debugXML.c: applied patch from Mark Vakoc except the API - change, preserved it. - * doc/*: updated the docs to point to the search engine for - information lookup or before bug/help reports. - -Tue Oct 8 18:53:31 CEST 2002 Daniel Veillard - - * doc/index.py doc/search.php: added mailing-list archives - indexing and lookup - -Tue Oct 8 10:25:07 CEST 2002 Daniel Veillard - - * tree.c: patch from Mark Vakoc to fix xmlNodeGetPath() - -Mon Oct 7 13:12:03 CEST 2002 Daniel Veillard - - * doc/index.py: improved HTML indexing - * doc/search.php: make the queries also lookup the HTML based indexes - -Sun Oct 6 23:50:29 CEST 2002 Daniel Veillard - - * doc/index.py: added HTML page indexing - -Fri Oct 4 15:33:55 CEST 2002 Igor Zlatkovic - - * xmlIO.c: extended Windows path normalisation to fix the base - problem in libxslt. - * catalog.c: fixed list handling in XML_CATALOG_FILES - -Fri Oct 4 13:43:02 CEST 2002 Daniel Veillard - - * valid.c: typo/bug found by Christian Glahn - -Sun Sep 29 19:44:10 CEST 2002 Igor Zlatkovic - - * xmlIO.c: applied Windows CE patch from Javier. - * win32/wince: new directory, contains support for the PocketPC - with Windows CE from Javier. - * include/win32config.h: reorganised, removed duplicate - definitions and applied WinCE patch from Javier. - * include/wsockcompat.h: new file, now contains WinSock - compatibility macros. - * win32/Makefile.msvc: introduced double-run compilation. - -Thu Sep 26 19:48:06 CEST 2002 Daniel Veillard - - * configure.in include/libxml/xmlwin32version.h: preparing release - of 2.4.25 - * doc/*: updated and regenerated teh docs and web pages. - -Thu Sep 26 17:33:46 CEST 2002 Daniel Veillard - - * SAX.c valid.c include/libxml/valid.h: fixed bug #92518 validation - error were not covering namespace declarations. - * result/valid/dia.xml test/valid/dia.xml: the test wasn't valid, - it was missing the attribute declaration for the namespace - * result/VC/NS3: the fix now report breakages in that test - -Thu Sep 26 14:39:07 CEST 2002 Daniel Veillard - - * HTMLtree.c: fixing bug #94241 on HTML boolean attributes - -Thu Sep 26 14:25:33 CEST 2002 Daniel Veillard - - * doc/*: added the 3 new modules xmlregexp xmlautomata and xmlunicode - and regenerated the docs and web site - -Thu Sep 26 11:45:42 CEST 2002 Daniel Veillard - - * xinclude.c xmlschemas.c xmlschemastypes.c xpath.c: make sure - ATTRIBUTE_UNUSED is always put after the attribute declaration, - not before - -Thu Sep 26 11:33:28 CEST 2002 Daniel Veillard - - * python/generator.py python/libxml2class.txt: fixed a stupid error - breaking the python API - -Thu Sep 26 00:31:46 CEST 2002 Daniel Veillard - - * trio.c trio.h triodef.h trionan.c trionan.h triop.h - triostr.c triostr.h: applied a trio update patch from - Bjorn Reese which should work with MinGW - -Thu Sep 26 00:21:18 CEST 2002 Daniel Veillard - - * tree.c: improving some documentation comments - * xmlregexp.c: found and fixed a mem leak with python regression tests - * doc/*: rebuilt the doc and the API XML file including the - xmlregexp.h xmlautomata.h and xmlunicode.h headers - * python/generator.py python/libxml2class.txt python/libxml_wrap.h - python/types.c: added access to the XML Schemas regexps from - python - * python/tests/Makefile.am python/tests/regexp.py: added a - simple regexp bindings test - -Tue Sep 24 08:10:48 MDT 2002 John Fleck - - * doc/xml.html: - fixing ftp links - thanks to Vitaly Ostanin - -Tue Sep 24 16:08:17 CEST 2002 Daniel Veillard - - * xmlregexp.c: fixed the data callback on transition functionality - which was broken when using the compact form - * result/schemas/*: updated the results, less verbose, all tests - pass like before - * DOCBparser.c testAutomata.c testC14N.c testSchemas.c testThreads.c - testXPath.c valid.c xinclude.c xmllint.c xmlregexp.c xmlschemas.c - xmlschemastypes.c xpath.c python/libxml.c: removed a bunch of - annoying warnings - * xpath.c: try to provide better error report when possible - -Sat Sep 21 14:56:37 CEST 2002 Daniel Veillard - - * Makefile.am: fixed a breakage raised by Jacob - -Fri Sep 20 20:08:18 CEST 2002 Igor Zlatkovic - - * include/win32config.h: added HAVE_ERRNO_H definition for parts - which don't use sockets - -Fri Sep 20 18:40:50 CEST 2002 Igor Zlatkovic - - * win32/Makefile.msvc: applied zlib patch from Daniel Gehriger - * win32/configure.js: applied zlib patch from Daniel Gehriger - -Fri Sep 20 15:40:14 CEST 2002 Igor Zlatkovic - - * win32/configure.js: applied the patch from Mark Vakoc for - regexp support - * win32/libxml2.def.src: applied the patch from Mark Vakoc - for regexp support - -Fri Sep 20 15:35:33 CEST 2002 Daniel Veillard - - * xmlschemastypes.c: as pointed by Igor Float and Double - parsing ain't finished yet - -Fri Sep 20 14:00:16 CEST 2002 Daniel Veillard - - * Makefile.am configure.in: trying to fix #88412 by bypassing - all the python subdir if python ain't detected - -Thu Sep 19 21:46:53 CEST 2002 Daniel Veillard - - * Makefile.am configure.in include/libxml/xmlversion.h.in: - made configuring with regexps/automata/unicode the default - but without schemas ATM - * testRegexp.c valid.c xmlregexp.c include/libxml/xmlregexp.h: - fixed the regexp based DTD validation performance and memory - problem by switching to a compact form for determinist regexps - and detecting the determinism property in the process. Seems - as fast as the old DTD validation specific engine :-) despite - the regexp built and compaction process. - -Wed Sep 18 18:27:26 CEST 2002 Daniel Veillard - - * valid.c: determinism is debugged, new DTD checking code now works - but xmlFAComputesDeterminism takes far too much CPU and the whole - set usues too much memory to be really usable as-is - -Wed Sep 18 00:54:30 CEST 2002 Daniel Veillard - - * tree.c: fixed another stupid bug in xmlGetNodePath() - * xmllint.c: --version now report the options compiled in - -Tue Sep 17 23:48:07 CEST 2002 Daniel Veillard - - * HTMLparser.c: small cleanup - * valid.c xmlregexp.c: switched DTD validation to use only regexp - when configured with them. A bit of debugging around the determinism - checks is still needed - -Tue Sep 17 21:22:25 CEST 2002 Daniel Veillard - - * python/libxml_wrap.h: stupid bug found by mattam@netcourrier.com - -Tue Sep 17 19:58:26 CEST 2002 Daniel Veillard - - * xmlIO.c: small portability glitch fixed. - -Mon Sep 17 12:38:08 CEST 2002 Daniel Veillard - - * xmlschemastypes.c: incomplete steps for real/double support - * testAutomata.c include/libxml/xmlautomata.h - include/libxml/xmlregexp.h: avoiding a compilation problem - * valid.c include/libxml/valid.h: starting the work toward using - the regexps for actual DTD validation - -Fri Sep 13 16:46:14 CEST 2002 Daniel Veillard - - * hash.c: cosmetic cleanup - * valid.c include/libxml/tree.h include/libxml/valid.h: started - integrating a DTD validation layer based on the regexps - -Thu Sep 12 18:01:29 CEST 2002 Daniel Veillard - - * xmlregexp.c xmlschemas.c: fixed a bug reported by Jeff Goff, - the determinism was tested before eliminating the epsilon - transitions :-( - -Thu Sep 12 16:57:45 CEST 2002 Daniel Veillard - - * python/generator.py python/libxml.c python/libxml.py - python/libxml2-python-api.xml python/libxml2class.txt - python/libxml_wrap.h python/types.c: updated the python - bindings, added code for easier File I/O, and the ability to - define a resolver from Python fixing bug #91635 - * python/tests/Makefile.am python/tests/inbuf.py - python/tests/outbuf.py python/tests/pushSAXhtml.py - python/tests/resolver.py python/tests/serialize.py: updated - and augmented the set of Python tests. - -Tue Sep 10 21:05:28 CEST 2002 Igor Zlatkovic - - * win32/configure.js: added more readme info for the binary - package. - -Tue Sep 10 14:15:18 CEST 2002 Daniel Veillard - - * xmlIO.c: fixed a stupid out of bound array error - -Tue Sep 10 13:09:14 CEST 2002 Daniel Veillard - - * include/libxml/xmlIO.h xmlIO.c parser.c HTMLparser.c DOCBparser.c: - messing around with support for Windows path, cleanups, - trying to identify and fix the various code path to the - filename access. Added xmlNormalizeWindowsPath() - -Thu Sep 5 16:19:18 CEST 2002 Daniel Veillard - - * error.c valid.c: working on better error reporting of validity - errors, especially providing an accurate context. - * result/valid/xlink.xml.err result/valid/rss.xml.err: better - error reports in those cases. - -Thu Sep 5 13:29:47 CEST 2002 Daniel Veillard - - * DOCBparser.c HTMLparser.c c14n.c entities.c list.c - parser.c parserInternals.c xmlIO.c: get rid of all the - perror() calls made in the library execution paths. This - should fix both #92059 and #92385 - -Thu Sep 5 13:13:17 CEST 2002 Daniel Veillard - - * xmllint.c: memory leak reporting was broken after a change - of the preprocessor symbol used to activate it. - -Thu Sep 5 13:10:57 CEST 2002 Daniel Veillard - - * tree.c: try to make the copy function work for node of - type XML_DOCUMENT_FRAG_NODE, they are only created by the - DOM layers though, not libxml2 itself. - -Thu Sep 5 12:57:38 CEST 2002 Daniel Veillard - - * valid.c: try to provide file and line informations, not all - messages are covered, but it's a (good) start - -Thu Sep 5 12:49:35 CEST 2002 Daniel Veillard - - * xinclude.c: reimplemented a large part of the XInclude - processor, trying to minimize resources used, James Henstridge - provided a huge test case which was exhibiting severe memory - consumption problems. - -Thu Sep 5 10:07:13 CEST 2002 Daniel Veillard - - * python/Makefile.am: applied patch from Christophe Merlet to - reestablish DESTDIR - -Wed Sep 4 14:13:34 CEST 2002 Daniel Veillard - - * libxml.spec.in: fixes libary path for x86_64 AMD - -Tue Sep 3 21:14:19 MDT 2002 John Fleck - - * doc/tutorial/includekeyword.c - * doc/tutorial/xmltutorial.xml: - (plus resulting generated html files) - fixing one spot I missed in the tutorial where I hadn't freed - memory properly - -Sat Aug 31 19:31:17 MDT 2002 John Fleck - - * doc/tutorial/includeaddattribute.c - * doc/tutorial/includeaddkeyword.c - * doc/tutorial/includegetattribute.c - * doc/tutorial/includekeyword.c - * doc/tutorial/xmltutorial.xml - * doc/tutorial/*.html: - update tutorial to properly free memory (thanks to Christopher - R. Harris for pointing out that this needs to be done) - * doc/tutorial/images/callouts/*.png: - added image files so the callouts are graphical, making it - easier to read ( use "--param callout.graphics 1" to generate - html with graphical callouts) - -Wed Aug 28 13:44:54 CEST 2002 Daniel Veillard - - * doc/Libxml2-Logo-180x168.gif doc/Libxml2-Logo-90x34.gif: - nice logos generated by Marc Liyanage - * doc/site.xsl *.html: changed the stylesheet to show the new - logo and regenerated the pages - -Sun Aug 25 16:38:05 CEST 2002 Daniel Veillard - - * xmlIO.c: handle Windows sepecific file://localhost/ semantic ... - -Thu Aug 22 22:03:19 CEST 2002 Daniel Veillard - - * xpath.c: possible mem leak patch from Jason Adams - -Thu Aug 22 17:27:30 CEST 2002 Daniel Veillard - - * xpath.c: integrated xf:escape-uri() from Wesley Terpstra - in the XQuery namespace - * configure.in: preparing 2.4.24 - * doc/*.html: updated the web pages - -Thu Aug 22 16:19:42 CEST 2002 Daniel Veillard - - * python/generator.py: closing bug #85258 by generating conditional - compile check to avoid linking to routines not configured in. - -2002-08-22 Havoc Pennington - - * autogen.sh: update error message for missing automake - -Thu Aug 22 11:45:50 CEST 2002 Daniel Veillard - - * python/Makefile.am: typo in target name resulted in libxml2.py - to not be rebuilt. fixed DESTDIR similary to the libxslt one. - -Thu Aug 22 09:15:00 CEST 2002 Daniel Veillard - - * win32/win32/Makefile.mingw: updated with version from - Elizabeth Barham at http://soggytrousers.net/repository/ - -Tue Aug 20 16:40:48 CEST 2002 Igor Zlatkovic - - * win32/Makefile.msvc: added the prefix location to the include - and lib search path. - -2002-08-18 Havoc Pennington - - * autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with - both automake 1.6 and 1.4 installed get the right automake. Means - compilation from CVS will now require the latest automake 1.4 - release, or manually creating symlinks called "automake-1.4" and - "aclocal-1.4" - -Wed Aug 14 18:54:19 CEST 2002 Daniel Veillard - - * configure.in python/Makefile.am: more AMD 64 induced changes from - Frederic Crozat - -Wed Aug 14 16:43:53 CEST 2002 Daniel Veillard - - * xinclude.c: oops I was missing the xml:base fixup too - * result/XInclude/*.xml: this adds xml:base attributes to most - results of the tests - -Wed Aug 14 16:05:37 CEST 2002 Daniel Veillard - - * xinclude.c: quick but apparently working implementation of - xi:fallback, should close bug #89684 - * Makefile.am test/XInclude/docs/fallback.xml - result/XInclude/fallback.xml: added a basic test for fallback, - and run with --nowarning to avoid a spurious warning - * configure.in: applied patch from Frederic Crozat for python - bindings on AMD 64bits machines. - -Wed Aug 14 10:47:46 CEST 2002 Daniel Veillard - - * parser.c: xmlSAXUserParseMemory() really ought to fail if - the caller don't pass a SAX callback block. - -Wed Aug 14 10:29:02 CEST 2002 Daniel Veillard - - * tree.c: applied the same fix for the XML-1.0 namespace to - xmlSearchNsByHref() as was done for xmlSearchNs() - -Mon Aug 12 16:52:08 CEST 2002 Daniel Veillard - - * libxml.3: small cleanup of the man page - * HTMLtree.c: fixed a potential problem raised by Petr Vandrovec - when serializing HREF attributes generated by XSLT. - -Mon Aug 12 15:24:05 CEST 2002 Daniel Veillard - - * HTMLtree.c include/libxml/HTMLtree.h: integrated a cleaned up - version of Marc Liyanage' patch for boolean attributes in HTML - output - -Mon Aug 12 14:11:59 CEST 2002 Daniel Veillard - - * python/tests/serialize.py: fixed the test results, indenting - behaviour changed slightly - -Thu Aug 8 11:00:26 2002 Aleksey Sanin - - * win32/dsp/libxml2.def.src win32/libxml2.def.src: added - new c14n function to Windows def files - -Fri Aug 2 16:46:46 2002 Aleksey Sanin - - * c14n.c: fixed a memory leak in c14n code - -Sat Aug 3 00:15:06 CEST 2002 Daniel Veillard - - * parser.c include/libxml/parser.h: adding a new API for Christian - Glahn: xmlParseBalancedChunkMemoryRecover - * valid.c: patch from Rick Jones for some grammar cleanup in - validation messages - * result/VC/* result/valid/*: this slightly change some of the - regression tests outputs - -Thu Aug 1 14:50:28 CEST 2002 Daniel Veillard - - * tree.c: trying to fix a problem in namespaced attribute handling - raised by Christian Glahn - -Thu Aug 1 12:17:30 CEST 2002 Daniel Veillard - - * encoding.c include/libxml/encoding.h: Opening the interface - xmlNewCharEncodingHandler as requested in #89415 - * python/generator.py python/setup.py.in: applied cleanup - patches from Marc-Andre Lemburg - * tree.c: fixing bug #89332 on a specific case of loosing - the XML-1.0 namespace on xml:xxx attributes - -Wed Jul 31 23:27:42 2002 Aleksey Sanin - - * c14n.c include/libxml/c14n.h: fixed one more c14n + namespaces - corner case from new Merlin's test suite and added a callback - that will be used to improve xmlsec performance - -Mon Jul 29 18:22:00 CEST 2002 Daniel Veillard - - * HTMLtree.c: trying to fix the API Alphabetic Index A-B for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index A-B for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter A:

A-Z
xmlCheckLanguageID
-
A-Za-z
xmlParseEncName
-
A-Za-z0-9
xmlParseEncName
-
ABC
xmlXPathTranslateFunction
-
ABI
_xmlError
-
ALL
xmlAutomataNewAllTrans
-
ANY
xmlIsMixedElement
-xmlParseElementContentDecl
-
APIs
LIBXML_LEGACY_ENABLED
-
ARRAY
xmlStrlen
-xmlUTF8Strsize
-
ASCII
UTF8ToHtml
-docbEncodeEntities
-htmlEncodeEntities
-xmlAddEncodingAlias
-xmlDelEncodingAlias
-xmlEncodeEntitiesReentrant
-xmlGetEncodingAlias
-xmlNewCharEncodingHandler
-xmlParseCharEncoding
-
ATTLIST
xmlTextWriterStartDTDAttlist
-xmlTextWriterStartDTDEntity
-xmlTextWriterWriteDTDAttlist
-xmlTextWriterWriteFormatDTDAttlist
-xmlTextWriterWriteVFormatDTDAttlist
-
ATTRIBUTE
xmlAddChild
-xmlAddNextSibling
-xmlAddPrevSibling
-
Absolute
xmlBuildURI
-
Accessor
xmlSchemaGetValType
-xmlSchemaValueGetAsBoolean
-xmlSchemaValueGetAsString
-xmlSchemaValueGetNext
-
Activation
xmlTextReaderRelaxNGSetSchema
-xmlTextReaderRelaxNGValidate
-xmlTextReaderSchemaValidate
-xmlTextReaderSchemaValidateCtxt
-xmlTextReaderSetSchema
-
Actually
XML_SCHEMAS_TYPE_VARIETY_ABSENT
-
Add
xmlACatalogAdd
-xmlAddChild
-xmlAddChildList
-xmlAddNextSibling
-xmlAddPrevSibling
-xmlAddSibling
-xmlBufferAdd
-xmlBufferAddHead
-xmlCatalogAdd
-xmlCatalogAddLocal
-xmlDictLookup
-xmlDictQLookup
-xmlHashAddEntry
-xmlHashAddEntry2
-xmlHashAddEntry3
-xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-
Additional
_htmlElemDesc
-xmlCleanupGlobals
-xmlInitGlobals
-
AegeanNumbers
xmlUCSIsAegeanNumbers
-
All
_xmlSchema
-_xmlSchemaType
-xmlNanoFTPGet
-xmlNanoFTPList
-xmlParseAttValue
-xmlTextWriterEndDocument
-
Allocate
xmlNanoFTPNewCtxt
-xmlNewDocElementContent
-xmlNewElementContent
-xmlNewParserCtxt
-xmlNewValidCtxt
-xmlSchemaNewFacet
-xmlSchemaNewNOTATIONValue
-xmlSchemaNewQNameValue
-xmlSchemaNewStringValue
-
Allocates
xmlDOMWrapNewCtxt
-
Allows
xmlCatalogSetDefaultPrefer
-
AlphabeticPresentationForms
xmlUCSIsAlphabeticPresentationForms
-
Also
xmlCheckUTF8
-xmlParseAttribute
-xmlValidCtxtNormalizeAttributeValue
-
Always
IS_COMBINING_CH
-
Append
xmlBufferCCat
-xmlBufferCat
-xmlNodeAddContent
-xmlNodeAddContentLen
-
Appendix
xmlRegexpCompile
-
Appends
xmlSchemaValueAppend
-
Applies
htmlCtxtUseOptions
-xmlCtxtUseOptions
-xmlNormalizeURIPath
-
Apply
XML_SCHEMAS_ANYATTR_STRICT
-XML_SCHEMAS_ANY_STRICT
-
Arabic
xmlUCSIsArabic
-
ArabicPresentationForms-A
xmlUCSIsArabicPresentationFormsA
-
ArabicPresentationForms-B
xmlUCSIsArabicPresentationFormsB
-
Armenian
xmlUCSIsArmenian
-
Array
_xmlXPathContext
-
Arrows
xmlUCSIsArrows
-
Associate
xmlSetNs
-
Att
xmlParseStartTag
-
AttDef
xmlParseAttributeListDecl
-
AttType
xmlParseAttributeListDecl
-xmlParseAttributeType
-
AttValue
htmlParseElement
-xmlParseAttValue
-xmlParseAttribute
-xmlParseDefaultDecl
-
AttlistDecl
xmlParseAttributeListDecl
-xmlParseMarkupDecl
-
Attribute
_xmlAttribute
-htmlNodeStatus
-htmlParseElement
-xmlParseAttribute
-xmlParseAttributeListDecl
-xmlParseAttributeType
-xmlParseDefaultDecl
-xmlParseStartTag
-xmlTextReaderIsDefault
-xmlTextReaderMoveToElement
-xmlValidateAttributeDecl
-xmlValidateOneAttribute
-xmlValidateOneElement
-xmlValidateOneNamespace
-
Attribute-Value
xmlParseAttValue
-
Attributes
_htmlElemDesc
-xmlParseNotationType
-xmlValidateOneAttribute
-xmlValidateOneNamespace
-xmlXPtrBuildNodeList
-
Automatic
docbCreateFileParserCtxt
-docbParseFile
-docbSAXParseFile
-htmlCreateFileParserCtxt
-htmlParseFile
-htmlSAXParseFile
-xmlCreateEntityParserCtxt
-xmlCreateFileParserCtxt
-xmlCreateURLParserCtxt
-xmlOutputBufferCreateFilename
-xmlParseFile
-xmlParserInputBufferCreateFilename
-xmlRecoverFile
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXUserParseFile
-
Automatically
xmlIsBaseCharQ
-xmlIsBaseChar_ch
-xmlIsBlankQ
-xmlIsBlank_ch
-xmlIsCharQ
-xmlIsChar_ch
-xmlIsCombiningQ
-xmlIsDigitQ
-xmlIsDigit_ch
-xmlIsExtenderQ
-xmlIsExtender_ch
-xmlIsIdeographicQ
-xmlIsPubidCharQ
-xmlIsPubidChar_ch
-

Letter B:

BASE
xmlNodeGetBase
-
BAr
xmlXPathTranslateFunction
-
BOM
xmlCharEncOutFunc
-
Balanced
xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseEntity
-xmlParseInNodeContext
-xmlSAXParseEntity
-
Base
_xmlParserInput
-_xmlSchemaType
-xmlNodeGetBase
-
BaseChar
IS_BASECHAR
-IS_LETTER
-xmlIsLetter
-
Based
xmlExpExpDerive
-xmlXPathIsInf
-xmlXPathIsNaN
-
BasicLatin
xmlUCSIsBasicLatin
-
Basically
xmlValidateDtd
-
Before
xmlParseAttValue
-
Behaves
IS_CHAR_CH
-IS_DIGIT_CH
-IS_EXTENDER_CH
-
Behaviour
IS_BLANK_CH
-
Bengali
xmlUCSIsBengali
-
Best
xmlTextReaderGetRemainder
-
BinHex
xmlTextWriterWriteBinHex
-
Bit
XML_COMPLETE_ATTRS
-XML_DETECT_IDS
-XML_SKIP_IDS
-
BlockElements
xmlUCSIsBlockElements
-
Blocks
xmlStopParser
-
Bopomofo
xmlUCSIsBopomofo
-
BopomofoExtended
xmlUCSIsBopomofoExtended
-
Both
XML_SUBSTITUTE_BOTH
-xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-
BoxDrawing
xmlUCSIsBoxDrawing
-
BraillePatterns
xmlUCSIsBraillePatterns
-
Brzozowski
xmlExpExpDerive
-xmlExpStringDerive
-
Buffer
xmlIOParseDTD
-
Bugs:
_htmlElemDesc
-
Buhid
xmlUCSIsBuhid
-
Build
xmlCopyAttributeTable
-xmlCopyDocElementContent
-xmlCopyElementContent
-xmlCopyElementTable
-xmlCopyEntitiesTable
-xmlCopyNotationTable
-xmlGetNodePath
-xmlNodeListGetString
-xmlRegNewExecCtxt
-xmlValidBuildContentModel
-xmlValidGetPotentialChildren
-xmlXPtrBuildNodeList
-
Builds
xmlBuildQName
-xmlNodeListGetRawString
-
But
xmlValidateNotationDecl
-
ByzantineMusicalSymbols
xmlUCSIsByzantineMusicalSymbols
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk1.html b/src/tools/docbook/libxml2/doc/APIchunk1.html deleted file mode 100644 index 7c9ff725ba..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk1.html +++ /dev/null @@ -1,378 +0,0 @@ - - -API Alphabetic Index C-C for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index C-C for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter C:

C14N
xmlC14NDocSaveTo
-xmlC14NExecute
-
CATALOG
xmlLoadACatalog
-xmlLoadCatalog
-xmlLoadSGMLSuperCatalog
-
CDATA
HTML_PRESERVE_NODE
-_htmlElemDesc
-xmlKeepBlanksDefault
-xmlNewCDataBlock
-xmlNewChild
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlParseAttValue
-xmlParseAttributeType
-xmlParseCDSect
-xmlParseCharData
-xmlTextWriterEndCDATA
-xmlTextWriterStartCDATA
-xmlTextWriterWriteCDATA
-xmlTextWriterWriteFormatCDATA
-xmlTextWriterWriteVFormatCDATA
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-
CDEnd
xmlParseCDSect
-
CDSect
xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseCDSect
-xmlParseContent
-xmlParseInNodeContext
-
CDStart
xmlParseCDSect
-
CData
xmlParseCDSect
-xmlRelaxNGValidatePushCData
-xmlValidatePushCData
-
CJKCompatibility
xmlUCSIsCJKCompatibility
-
CJKCompatibilityForms
xmlUCSIsCJKCompatibilityForms
-
CJKCompatibilityIdeographs
xmlUCSIsCJKCompatibilityIdeographs
-
CJKCompatibilityIdeographsSupplement
xmlUCSIsCJKCompatibilityIdeographsSupplement
-
CJKRadicalsSupplement
xmlUCSIsCJKRadicalsSupplement
-
CJKSymbolsandPunctuation
xmlUCSIsCJKSymbolsandPunctuation
-
CJKUnifiedIdeographs
xmlUCSIsCJKUnifiedIdeographs
-
CJKUnifiedIdeographsExtensionA
xmlUCSIsCJKUnifiedIdeographsExtensionA
-
CJKUnifiedIdeographsExtensionB
xmlUCSIsCJKUnifiedIdeographsExtensionB
-
CVS
LIBXML_VERSION_EXTRA
-
CWD
xmlNanoFTPCwd
-
Cache
_xmlXPathContext
-
Call
htmlInitAutoClose
-xmlInitParser
-xmlXPathOrderDocElems
-
Callback
externalSubset
-externalSubsetSAXFunc
-internalSubset
-internalSubsetSAXFunc
-xmlEntityReferenceFunc
-xmlHashCopier
-xmlHashDeallocator
-xmlHashScanner
-xmlHashScannerFull
-xmlInputCloseCallback
-xmlInputMatchCallback
-xmlInputOpenCallback
-xmlInputReadCallback
-xmlListDataCompare
-xmlListDeallocator
-xmlListWalker
-xmlOutputCloseCallback
-xmlOutputMatchCallback
-xmlOutputOpenCallback
-xmlOutputWriteCallback
-xmlParserInputDeallocate
-xmlSAX2ExternalSubset
-xmlSAX2InternalSubset
-xmlValidityErrorFunc
-xmlValidityWarningFunc
-
Callback:
resolveEntitySAXFunc
-
Called
cdataBlockSAXFunc
-endDocumentSAXFunc
-endElementSAXFunc
-referenceSAXFunc
-startDocumentSAXFunc
-startElementSAXFunc
-
Calling
xmlCleanupParser
-xmlRegisterHTTPPostCallbacks
-
Canonical
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-
Canonicalization
LIBXML_C14N_ENABLED
-xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-
Carl
xmlURIEscape
-
Catalog
LIBXML_CATALOG_ENABLED
-XML_CATALOG_PI
-xmlACatalogAdd
-xmlACatalogDump
-xmlACatalogRemove
-xmlACatalogResolve
-xmlACatalogResolvePublic
-xmlACatalogResolveSystem
-xmlACatalogResolveURI
-xmlCatalogSetDefaultPrefer
-xmlFreeCatalog
-xmlLoadACatalog
-xmlNewCatalog
-
Catalogs
XML_CATALOGS_NAMESPACE
-xmlLoadACatalog
-xmlLoadSGMLSuperCatalog
-
Change
xmlSetFeature
-xmlTextReaderSetParserProp
-
Changes
xmlSetExternalEntityLoader
-
Char
IS_BYTE_CHAR
-IS_CHAR
-xmlParseCDSect
-xmlParseCharRef
-xmlParseComment
-xmlParsePI
-
CharData
xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseCharData
-xmlParseContent
-xmlParseInNodeContext
-
CharRef
htmlParseCharRef
-xmlCharEncOutFunc
-xmlDecodeEntities
-xmlEncodeEntitiesReentrant
-xmlParseCharRef
-xmlParseReference
-xmlParserHandleReference
-xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-
Character
xmlDocDumpFormatMemoryEnc
-xmlDocDumpMemoryEnc
-xmlGetCharEncodingName
-xmlParseCharEncoding
-xmlParseCharRef
-
Characters
xmlParseCharRef
-
Checka
xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-
Checks
htmlAttrAllowed
-htmlElementAllowedHere
-htmlElementAllowedHereDesc
-htmlElementStatusHere
-htmlNodeStatus
-xmlAutomataIsDeterminist
-xmlCheckLanguageID
-xmlCheckUTF8
-xmlIsBlankNode
-xmlSchemaCheckFacet
-xmlSchemaValidateListSimpleTypeFacet
-xmlXPathNodeSetIsEmpty
-xmlXPathStackIsExternal
-
Cherokee
xmlUCSIsCherokee
-
Children
xmlParseElementContentDecl
-
Chunk
docbParseChunk
-htmlParseChunk
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseChunk
-xmlParseInNodeContext
-
Cleanup
xmlCleanupCharEncodingHandlers
-xmlCleanupParser
-xmlCleanupPredefinedEntities
-xmlCtxtResetLastError
-xmlNanoFTPCleanup
-xmlNanoHTTPCleanup
-xmlRelaxNGCleanupTypes
-xmlResetError
-xmlResetLastError
-xmlSchemaCleanupTypes
-xmlSchemaFreeValue
-xmlXPathRegisteredFuncsCleanup
-xmlXPathRegisteredNsCleanup
-xmlXPathRegisteredVariablesCleanup
-
Clear
xmlClearNodeInfoSeq
-xmlClearParserCtxt
-xmlPopInputCallbacks
-
Clears
xmlSetupParserForBuffer
-
Close
xmlFileClose
-xmlIOFTPClose
-xmlIOHTTPClose
-xmlNanoFTPClose
-xmlNanoFTPCloseConnection
-xmlSaveClose
-
Closed
xmlTextReaderClose
-
CombiningChar
IS_COMBINING
-xmlNamespaceParseNCName
-xmlParseName
-xmlScanName
-xmlXPathParseNCName
-xmlXPathParseName
-
CombiningDiacriticalMarks
xmlUCSIsCombiningDiacriticalMarks
-
CombiningDiacriticalMarksforSymbols
xmlUCSIsCombiningDiacriticalMarksforSymbols
-
CombiningHalfMarks
xmlUCSIsCombiningHalfMarks
-
CombiningMarksforSymbols
xmlUCSIsCombiningMarksforSymbols
-
Comment
xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseComment
-xmlParseContent
-xmlParseInNodeContext
-xmlParseMarkupDecl
-xmlParseMisc
-
Compare
xmlParseCharEncoding
-xmlSchemaCompareValues
-xmlSchemaCompareValuesWhtsp
-xmlXPathCmpNodes
-
Compile
xmlAutomataCompile
-xmlPatterncompile
-xmlXPathCompile
-xmlXPathCtxtCompile
-xmlXPathStringEvalNumber
-
Compress
docbCreateFileParserCtxt
-docbParseFile
-docbSAXParseFile
-htmlCreateFileParserCtxt
-htmlParseFile
-htmlSAXParseFile
-xmlCreateEntityParserCtxt
-xmlCreateFileParserCtxt
-xmlCreateURLParserCtxt
-xmlOutputBufferCreateFilename
-xmlParseFile
-xmlParserInputBufferCreateFilename
-xmlRecoverFile
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXUserParseFile
-
Computes
xmlBuildURI
-
Concat
xmlTextConcat
-
Constructs
xmlCanonicPath
-
Content
xmlNodeGetBase
-xmlParseElementContentDecl
-
Content-Type
xmlNanoHTTPFetch
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-
Contrary
xmlEncodeEntitiesReentrant
-
ControlPictures
xmlUCSIsControlPictures
-
Convenient
xmlBoolToText
-
Convert
xmlCatalogConvert
-xmlConvertSGMLCatalog
-
Converts
xmlXPathCastBooleanToNumber
-xmlXPathCastBooleanToString
-xmlXPathCastNodeSetToBoolean
-xmlXPathCastNodeSetToNumber
-xmlXPathCastNodeSetToString
-xmlXPathCastNodeToNumber
-xmlXPathCastNodeToString
-xmlXPathCastNumberToBoolean
-xmlXPathCastNumberToString
-xmlXPathCastStringToBoolean
-xmlXPathCastStringToNumber
-xmlXPathCastToBoolean
-xmlXPathCastToNumber
-xmlXPathCastToString
-xmlXPathConvertBoolean
-xmlXPathConvertNumber
-xmlXPathConvertString
-
Copies
xmlSchemaCopyValue
-
Copy
xmlCopyEnumeration
-xmlGetFeaturesList
-xmlReconciliateNs
-
Correct
xmlSetCompressMode
-xmlSetDocCompressMode
-
Could
_xmlSchemaType
-
Count
xmlLsCountNode
-
Creates
htmlNewDoc
-htmlNewDocNoDtD
-xmlCreateDocParserCtxt
-xmlExpNewCtxt
-xmlNewDoc
-xmlXIncludeNewContext
-xmlXPathContextSetCache
-
Creation
xmlNewCDataBlock
-xmlNewCharRef
-xmlNewChild
-xmlNewComment
-xmlNewDocComment
-xmlNewDocFragment
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlNewDocPI
-xmlNewDocRawNode
-xmlNewDocText
-xmlNewDocTextLen
-xmlNewDtd
-xmlNewGlobalNs
-xmlNewNode
-xmlNewNodeEatName
-xmlNewNs
-xmlNewPI
-xmlNewReference
-xmlNewText
-xmlNewTextChild
-xmlNewTextLen
-
CurrencySymbols
xmlUCSIsCurrencySymbols
-
Current
_xmlParserCtxt
-_xmlParserInput
-_xmlValidCtxt
-
Currently
xmlNanoFTPGetConnection
-xmlNanoFTPInit
-xmlNanoHTTPInit
-xmlTextReaderNextSibling
-
Cut
xmlReconciliateNs
-
CypriotSyllabary
xmlUCSIsCypriotSyllabary
-
Cyrillic
xmlUCSIsCyrillic
-
CyrillicSupplement
xmlUCSIsCyrillicSupplement
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk10.html b/src/tools/docbook/libxml2/doc/APIchunk10.html deleted file mode 100644 index 0486624d14..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk10.html +++ /dev/null @@ -1,602 +0,0 @@ - - -API Alphabetic Index a-a for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index a-a for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter a:

a-z
xmlCheckLanguageID
-xmlURIEscapeStr
-
a-zA-Z
IS_ASCII_LETTER
-
a-zA-Z0-9
IS_PUBIDCHAR
-
a-zA-Z0-9_
xmlParseVersionNum
-
a@b
xmlNanoFTPProxy
-
abc
xmlXPathTranslateFunction
-
abc-
xmlXPathTranslateFunction
-
able
xmlEntityReferenceFunc
-xmlFindCharEncodingHandler
-xmlGetCharEncodingHandler
-xmlParserInputBufferGrow
-xmlXPathOrderDocElems
-
about
_xmlParserCtxt
-xmlDebugDumpString
-xmlShellDir
-xmlTextWriterWriteRawLen
-
above
xmlParseMarkupDecl
-xmlStreamWantsAnyNode
-xmlXPathSubstringFunction
-
absent
XML_SCHEMAS_ELEM_BLOCK_ABSENT
-XML_SCHEMAS_ELEM_BLOCK_EXTENSION
-XML_SCHEMAS_ELEM_FINAL_ABSENT
-XML_SCHEMAS_TYPE_VARIETY_ABSENT
-
absoluteURI
xmlParseURI
-xmlParseURIRaw
-xmlParseURIReference
-
abstract
XML_SCHEMAS_ELEM_ABSTRACT
-XML_SCHEMAS_TYPE_ABSTRACT
-
accept
xmlExpMaxToken
-xmlGetNoNsProp
-xmlIsMixedElement
-
acceptable
xmlRegExecErrInfo
-xmlRegExecNextValues
-
accepted
IS_BYTE_CHAR
-xmlCatalogGetDefaults
-xmlCatalogSetDefaultPrefer
-xmlCatalogSetDefaults
-xmlExpGetStart
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlTextReaderNormalization
-
accepting
xmlTextReaderNormalization
-
accepts
xmlExpIsNillable
-xmlExpSubsume
-
access
xmlGcMemGet
-xmlGcMemSetup
-xmlMemGet
-xmlMemSetup
-xmlNewMutex
-xmlNewRMutex
-
accessed
xmlTextReaderCurrentDoc
-xmlTextReaderCurrentNode
-
accesses
xmlCreateURLParserCtxt
-xmlNoNetExternalEntityLoader
-
accexpted
xmlExpSubsume
-
accommodate
xmlBufferResize
-
according
xmlBuildURI
-xmlDetectCharEncoding
-xmlSAXVersion
-xmlSchemaValidateFacetWhtsp
-xmlURIEscape
-xmlXPathCompareValues
-
accordingly
xmlParseCharEncoding
-xmlParserHandlePEReference
-xmlParserHandleReference
-xmlValidCtxtNormalizeAttributeValue
-
account
xmlSchemaValidateFacetWhtsp
-
act
xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-
activate
xmlTextReaderSetParserProp
-
activated
DEBUG_MEMORY
-xmlAutomataNewAllTrans
-xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewNegTrans
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlAutomataNewTransition
-xmlAutomataNewTransition2
-xmlTextReaderRelaxNGSetSchema
-xmlTextReaderRelaxNGValidate
-xmlTextReaderSchemaValidate
-xmlTextReaderSchemaValidateCtxt
-xmlTextReaderSetSchema
-
activates
xmlXPathContextSetCache
-
activation
xmlGetLineNo
-
acts
xmlGetProp
-
actual
xmlGetUTF8Char
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-xmlXPathFreeNodeSet
-xmlXPtrFreeLocationSet
-
actually
_xmlDoc
-_xmlParserCtxt
-setDocumentLocator
-setDocumentLocatorSAXFunc
-xmlAddEncodingAlias
-xmlCurrentChar
-xmlDelEncodingAlias
-xmlGetEncodingAlias
-xmlNewCharEncodingHandler
-xmlParseCharEncoding
-xmlParseNotationDecl
-xmlSAX2SetDocumentLocator
-xmlStringCurrentChar
-xmlTextReaderByteConsumed
-xmlXPathOrderDocElems
-
actuate
xlinkExtendedLinkFunk
-
add
xmlACatalogAdd
-xmlBufferAdd
-xmlBufferAddHead
-xmlBufferCat
-xmlBufferWriteCHAR
-xmlBufferWriteChar
-xmlBufferWriteQuotedString
-xmlCatalogAdd
-xmlListPushBack
-xmlListPushFront
-xmlXPathAddValues
-xmlXPathNodeSetAdd
-xmlXPathNodeSetAddNs
-xmlXPathNodeSetAddUnique
-xmlXPtrLocationSetAdd
-
added
attribute
-attributeSAXFunc
-htmlDocContentDumpFormatOutput
-htmlDocContentDumpOutput
-htmlDocDumpMemoryFormat
-htmlNodeDump
-htmlNodeDumpFile
-htmlNodeDumpFileFormat
-htmlNodeDumpFormatOutput
-htmlNodeDumpOutput
-htmlSaveFileEnc
-htmlSaveFileFormat
-xmlAddChild
-xmlAddNextSibling
-xmlAddPrevSibling
-xmlDocDumpFormatMemory
-xmlDocDumpFormatMemoryEnc
-xmlDocFormatDump
-xmlNewChild
-xmlNewTextChild
-xmlSaveFormatFile
-xmlSaveFormatFileEnc
-xmlSaveFormatFileTo
-xmlStrcat
-xmlStrncat
-xmlXPathNodeSetMerge
-xmlXPtrLocationSetMerge
-
adding
xmlLoadSGMLSuperCatalog
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-
addition
xmlHashAddEntry
-xmlHashAddEntry2
-xmlHashAddEntry3
-xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-xmlXPathSubstringFunction
-
additional
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-
additionally
xmlStreamWantsAnyNode
-
address
xmlModuleSymbol
-xmlNewTextWriterDoc
-
adds
xmlAutomataNewAllTrans
-xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewCountedTrans
-xmlAutomataNewCounterTrans
-xmlAutomataNewEpsilon
-xmlAutomataNewNegTrans
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlAutomataNewTransition
-xmlAutomataNewTransition2
-xmlBufferWriteCHAR
-
adequate
xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-
adjacent
xmlAddChild
-xmlAddChildList
-xmlAddPrevSibling
-xmlAddSibling
-
adoption
xmlDOMWrapCloneNode
-
affect
xmlKeepBlanksDefault
-
affiliation
_xmlSchemaElement
-
afraid
xmlEncodeEntities
-
after
UTF8ToHtml
-UTF8Toisolat1
-docbEncodeEntities
-htmlEncodeEntities
-isolat1ToUTF8
-xmlAutomataCompile
-xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-xmlNanoFTPCheckResponse
-xmlNanoFTPFreeCtxt
-xmlNanoFTPGetResponse
-xmlReconciliateNs
-xmlSaveFileTo
-xmlSaveFormatFileTo
-xmlValidGetValidElements
-xmlXPathNextFollowing
-xmlXPathStringFunction
-
again
xmlCreatePushParserCtxt
-
against
LIBXML_TEST_VERSION
-XML_SCHEMAS_ELEM_INTERNAL_CHECKED
-checkNamespace
-xmlCheckVersion
-xmlRegexpCompile
-xmlRegexpExec
-xmlSchemaValidateFacet
-xmlSchemaValidateFacetWhtsp
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-xmlSchemaValidateListSimpleTypeFacet
-xmlSchematronValidateDoc
-xmlShellValidate
-xmlValidateDtd
-
aggregate
xmlNodeBufGetContent
-xmlNodeGetContent
-
algebraic
xmlExpExpDerive
-
alias
xmlAddEncodingAlias
-xmlDelEncodingAlias
-xmlGetEncodingAlias
-
aliases
xmlCleanupCharEncodingHandlers
-xmlCleanupEncodingAliases
-
aliasing
XML_CAST_FPTR
-xmlSearchNsByHref
-
allocate
_xmlDoc
-xmlBufferGrow
-xmlBuildQName
-xmlMallocAtomicLoc
-xmlMallocLoc
-xmlMemMalloc
-xmlMemRealloc
-xmlNewMutex
-xmlNewRMutex
-xmlReallocLoc
-xmlXPathObjectCopy
-
allocation
xmlBufferSetAllocationScheme
-xmlGetBufferAllocationScheme
-xmlMallocAtomicLoc
-xmlMallocLoc
-xmlMemMalloc
-xmlMemRealloc
-xmlMemStrdupLoc
-xmlMemoryStrdup
-xmlNormalizeURIPath
-xmlReallocLoc
-xmlSetBufferAllocationScheme
-xmlTextReaderGetRemainder
-
allocations
xmlGcMemGet
-xmlGcMemSetup
-xmlMemSetup
-xmlParserInputDeallocate
-
allocator
DEBUG_MEMORY
-
allocators
xmlGcMemGet
-xmlGcMemSetup
-
allow
XML_SCHEMAS_ATTR_GLOBAL
-XML_SCHEMAS_ATTR_NSDEFAULT
-XML_SCHEMAS_ELEM_NSDEFAULT
-docbCreatePushParserCtxt
-htmlAttrAllowed
-htmlNodeStatus
-xmlAutomataNewAllTrans
-xmlCheckUTF8
-xmlCreatePushParserCtxt
-xmlKeepBlanksDefault
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlSearchNs
-xmlShell
-xmlValidateNCName
-xmlValidateNMToken
-xmlValidateName
-xmlValidateQName
-
allowable
xmlSkipBlankChars
-
allowed
_htmlElemDesc
-_xmlElement
-_xmlSchemaWildcard
-htmlElementAllowedHere
-htmlElementAllowedHereDesc
-htmlNodeStatus
-xmlAutomataNewAllTrans
-xmlAutomataNewCounterTrans
-xmlIsLetter
-xmlNodeDump
-xmlNodeDumpOutput
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseInNodeContext
-xmlValidGetPotentialChildren
-xmlXPathNormalizeFunction
-
allowing
xmlNoNetExternalEntityLoader
-xmlTextReaderCurrentDoc
-xmlTextReaderCurrentNode
-
allows
htmlAutoCloseTag
-htmlIsAutoClosed
-xmlCatalogAdd
-xmlNewChild
-xmlParseURIRaw
-xmlTextReaderConstString
-
already
XML_SCHEMAS_ATTRGROUP_GLOBAL
-XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED
-_xmlParserInput
-xmlAddNextSibling
-xmlAddPrevSibling
-xmlAddSibling
-xmlBuildRelativeURI
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlFreeFunc
-xmlGcMemSetup
-xmlMemSetup
-xmlParseCharEncoding
-xmlParseNotationType
-xmlParserInputGrow
-xmlParserInputRead
-xmlReallocFunc
-xmlReplaceNode
-xmlXPathNodeSetAddUnique
-xmlXPtrLocationSetAdd
-
also
xmlCharEncodingOutputFunc
-xmlCheckHTTPInput
-xmlHasProp
-xmlKeepBlanksDefault
-xmlNanoFTPProxy
-xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-xmlTextReaderPreserve
-xmlTextReaderPreservePattern
-xmlXPathStringEvalNumber
-
alternative
xmlTextWriterStartDTD
-xmlTextWriterWriteDTD
-xmlTextWriterWriteDTDEntity
-xmlTextWriterWriteDTDExternalEntity
-xmlTextWriterWriteDTDExternalEntityContents
-xmlTextWriterWriteDTDNotation
-xmlTextWriterWriteFormatDTD
-xmlTextWriterWriteVFormatDTD
-
always
INPUT_CHUNK
-xmlDecodeEntities
-xmlSubstituteEntitiesDefault
-
amd
xmlCatalogIsEmpty
-
amount
INPUT_CHUNK
-_xmlParserInputBuffer
-xmlMemUsed
-xmlParserInputBufferGrow
-xmlParserInputBufferRead
-
amp
xmlParseEntityRef
-xmlParseSDDecl
-xmlParserHandleReference
-
ampersand
xmlNewTextChild
-
analysis
_xmlParserCtxt
-_xmlValidCtxt
-
analyze
xmlParseURI
-xmlParseURIRaw
-xmlParseURIReference
-
analyzed
_xmlParserInput
-
ancestor
xmlNodeGetLang
-xmlNodeGetSpacePreserve
-xmlShellPwd
-xmlXPathLangFunction
-xmlXPathNextAncestor
-
ancestor-or-self
xmlXPathNextAncestorOrSelf
-
ancestors
xmlXPathNextAncestor
-xmlXPathNextAncestorOrSelf
-xmlXPathNextPreceding
-
anchored
xmlGetNsProp
-xmlHasNsProp
-
angle
xmlParseCharData
-
annotation
_xmlSchemaAnnot
-
another
xmlCharEncodingOutputFunc
-xmlInputMatchCallback
-xmlOutputMatchCallback
-xmlSetGenericErrorFunc
-
anySimpleType
xmlSchemaNewStringValue
-
anyURI
xmlSchemaGetCanonValue
-
anymore
XML_SCHEMAS_ANYATTR_LAX
-XML_SCHEMAS_ANYATTR_SKIP
-XML_SCHEMAS_ANYATTR_STRICT
-XML_SCHEMAS_ELEM_NSDEFAULT
-xmlNamespaceParseNCName
-xmlNamespaceParseNSDef
-xmlNamespaceParseQName
-
anyway
xmlRecoverDoc
-xmlRecoverFile
-xmlRecoverMemory
-xmlValidateNotationDecl
-
apart
xmlXPathStringFunction
-
apos
xmlParseEntityRef
-xmlParseSDDecl
-xmlParserHandleReference
-
appear
xmlNewTextChild
-xmlParseAttributeType
-xmlParseElementMixedContentDecl
-xmlParsePEReference
-xmlParseSDDecl
-xmlParseStartTag
-xmlParserHandlePEReference
-
appearing
xmlValidatePopElement
-xmlValidatePushElement
-
appears
xmlExpGetStart
-xmlParseCharData
-xmlParseElementChildrenContentDecl
-xmlParseEntityRef
-xmlParseSDDecl
-
append
xmlCopyChar
-xmlCopyCharMultiByte
-xmlValidGetValidElements
-
appended
xmlParseAttValue
-xmlSchemaValueAppend
-
appending
xmlParseAttValue
-
appendix
xmlDetectCharEncoding
-
applicable
xmlCopyNode
-xmlDocCopyNode
-
application
_xmlAttr
-_xmlAttribute
-_xmlDoc
-_xmlDtd
-_xmlElement
-_xmlEntity
-_xmlNode
-_xmlNs
-resolveEntity
-resolveEntitySAXFunc
-xmlCheckVersion
-xmlCurrentChar
-xmlGetExternalEntityLoader
-xmlLineNumbersDefault
-xmlParseAttValue
-xmlSAX2ResolveEntity
-xmlSetExternalEntityLoader
-
applications
xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-
applied
xmlHashCopy
-xmlHashScan
-xmlHashScan3
-xmlHashScanFull
-xmlHashScanFull3
-
applies
xmlParseElementChildrenContentDecl
-xmlParseElementMixedContentDecl
-
apply
xmlListReverseWalk
-xmlListWalk
-xmlParseMarkupDecl
-xmlParseSDDecl
-xmlSchemaValPredefTypeNodeNoNorm
-xmlValidateRoot
-
applying
xmlGetNsList
-xmlXPathIdFunction
-
appropriate
xlinkIsLink
-xmlCheckHTTPInput
-xmlParseURIReference
-
arcs
xlinkExtendedLinkFunk
-
area
xmlBufferCreateStatic
-xmlMallocAtomicLoc
-xmlMallocLoc
-xmlMemMalloc
-xmlMemRealloc
-xmlParserInputBufferCreateMem
-xmlParserInputBufferCreateStatic
-xmlReallocLoc
-
areas
xmlGcMemGet
-xmlGcMemSetup
-xmlMemBlocks
-xmlMemShow
-
args
CHECK_ARITY
-x
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseCtxtExternalEntity
-xmlParseExternalEntity
-xmlXPtrRangeToFunction
-
around
xmlFileOpen
-
arrays
_xmlParserCtxt
-
arry
xmlParserInputBufferPush
-
asked
xmlParseReference
-
assume
xmlStrcat
-xmlStrdup
-
assumed
xmlCheckUTF8
-
assumes
xmlBuildRelativeURI
-
assuming
xmlSaveFileTo
-xmlSaveFormatFileTo
-
assure
xmlGetUTF8Char
-
atom
xmlExpNewAtom
-xmlExpNewOr
-xmlExpNewRange
-xmlExpNewSeq
-
atomic
xmlGcMemGet
-xmlGcMemSetup
-
attached
xmlTextReaderGetRemainder
-
attr
XML_SCHEMAS_ATTRGROUP_HAS_REFS
-XML_SCHEMAS_ATTRGROUP_MARKED
-XML_SCHEMAS_ATTRGROUP_REDEFINED
-_xmlID
-_xmlRef
-
attribute-
xmlStreamPushNode
-
attribute-list
xmlParseDefaultDecl
-xmlParseEntityRef
-
attribute-node
xmlStreamPushAttr
-
attribute-nodes
xmlStreamWantsAnyNode
-
attributeFormDefault
XML_SCHEMAS_QUALIF_ATTR
-
augmented
docbParseDocument
-htmlParseDocument
-xmlParseDocument
-xmlParseExtParsedEnt
-xmlTextMerge
-
autark
xmlDOMWrapRemoveNode
-
authentication
xmlNanoHTTPAuthHeader
-
author
htmlNodeStatus
-
authority
_xmlURI
-
authorized
xmlValidGetValidElements
-
auto
htmlHandleOmittedElem
-
auto-repair
_htmlElemDesc
-
autoclose
htmlAutoCloseTag
-
autoclosed
htmlIsAutoClosed
-
autogeneration
xmlKeepBlanksDefault
-
automatically
XML_SCHEMAS_TYPE_VARIETY_ABSENT
-xmlCharEncOutFunc
-xmlNewTextChild
-xmlStrncatNew
-
automaton
_xmlSchemaType
-
autoreference
_xmlDoc
-
avoiding
xmlTextReaderNext
-xmlTextReaderNextSibling
-
aware
xmlGetProp
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk11.html b/src/tools/docbook/libxml2/doc/APIchunk11.html deleted file mode 100644 index 515f882a4c..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk11.html +++ /dev/null @@ -1,306 +0,0 @@ - - -API Alphabetic Index b-b for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index b-b for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter b:

back
xmlEntityReferenceFunc
-xmlKeepBlanksDefault
-xmlNanoFTPGet
-xmlNanoFTPList
-xmlRelaxNGDump
-xmlSetEntityReferenceFunc
-
badly
xmlParseExternalID
-
bahaviour
xmlTextReaderNormalization
-
balanced
xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseInNodeContext
-
bar
xmlXPathTranslateFunction
-
base64
xmlTextWriterWriteBase64
-
based
xmlGetCompressMode
-xmlGetDocCompressMode
-xmlGetNodePath
-xmlNewEntityInputStream
-xmlNewInputFromFile
-xmlNewStringInputStream
-xmlRelaxNGNewValidCtxt
-xmlSchemaNewStringValue
-xmlSchematronNewValidCtxt
-xmlSetCompressMode
-xmlSetDocCompressMode
-xmlStrcat
-xmlStrdup
-xmlStrsub
-xmlURIEscape
-
basically
getSystemId
-xmlIsMixedElement
-xmlSAX2GetSystemId
-xmlValidateAttributeDecl
-xmlValidateDocument
-xmlValidateDocumentFinal
-xmlValidateDtdFinal
-xmlValidateElementDecl
-xmlValidateNotationDecl
-xmlValidateOneAttribute
-xmlValidateOneElement
-xmlValidateOneNamespace
-xmlValidateRoot
-
basis
xmlSubstituteEntitiesDefault
-
bear
xmlParseAttributeType
-
becomes
xmlAddAttributeDecl
-
before
htmlInitAutoClose
-xmlBuildRelativeURI
-xmlCatalogAdd
-xmlCurrentChar
-xmlGcMemSetup
-xmlGetLineNo
-xmlInitParser
-xmlMemSetup
-xmlTextReaderRelaxNGSetSchema
-xmlTextReaderRelaxNGValidate
-xmlTextReaderSchemaValidate
-xmlTextReaderSchemaValidateCtxt
-xmlTextReaderSetParserProp
-xmlTextReaderSetSchema
-xmlValidGetValidElements
-xmlXPathNextPreceding
-xmlXPathStringFunction
-
beginning
xmlBufferAddHead
-xmlBufferShrink
-xmlByteConsumed
-xmlListInsert
-xmlListPushFront
-xmlStringCurrentChar
-xmlTextReaderByteConsumed
-xmlValidGetValidElements
-
begins
_xmlParserNodeInfo
-
behaves
IS_LETTER_CH
-
behavior
htmlSAXParseDoc
-xmlCurrentChar
-xmlKeepBlanksDefault
-xmlSubstituteEntitiesDefault
-
behaviour
htmlNodeDump
-htmlNodeDumpFile
-htmlNodeDumpFileFormat
-htmlNodeDumpFormatOutput
-htmlNodeDumpOutput
-resolveEntity
-resolveEntitySAXFunc
-xmlElemDump
-xmlFreeNode
-xmlFreeNodeList
-xmlNodeDump
-xmlNodeDumpOutput
-xmlNodeGetSpacePreserve
-xmlNodeSetSpacePreserve
-xmlSAX2ResolveEntity
-xmlTextReaderSetParserProp
-xmlUTF8Strsize
-
below
_xmlParserCtxt
-xmlParseExternalID
-
better
resolveEntity
-resolveEntitySAXFunc
-xmlNormalizeWindowsPath
-xmlSAX2ResolveEntity
-xmlSAXDefaultVersion
-xmlSAXUserParseMemory
-
between
xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlCatalogSetDefaultPrefer
-xmlParseQuotedString
-xmlXPathDifference
-
beyond
xmlXPathStringFunction
-
binary
xmlCharInRange
-xmlEncodeEntities
-xmlParseNamespace
-xmlParseQuotedString
-xmlTextWriterWriteBase64
-xmlTextWriterWriteBinHex
-
bindings
_xmlSchema
-
bit
xmlStrEqual
-
blanks
xmlKeepBlanksDefault
-xmlSkipBlankChars
-
bloc
xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseExternalEntity
-
blockDefault
XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION
-XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION
-XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION
-
blocked
xmlGcMemSetup
-xmlMemSetup
-
blocking
xmlNanoFTPRead
-xmlNanoHTTPRead
-
blocks
IS_CHAR
-XML_SAX2_MAGIC
-initdocbDefaultSAXHandler
-inithtmlDefaultSAXHandler
-initxmlDefaultSAXHandler
-xmlMemBlocks
-xmlMemDisplay
-xmlMemoryDump
-
book1
xmlBuildRelativeURI
-
bool
xmlBoolToText
-
both
xmlBufferFree
-xmlNanoFTPClose
-xmlNodeGetBase
-xmlParseElementChildrenContentDecl
-xmlParseMarkupDecl
-xmlParseStartTag
-xmlStrEqual
-xmlXPathCompareValues
-xmlXPathIntersection
-
bound
xmlExpNewRange
-
boundaries
_xmlParserCtxt
-xmlSearchNs
-
boundary
xmlParseElementChildrenContentDecl
-xmlParseElementMixedContentDecl
-
bracket
xmlParseCharData
-
branch
xmlDOMWrapRemoveNode
-
break
_xmlError
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlLineNumbersDefault
-
breaking
xmlEncodeEntities
-
breaks
xmlCurrentChar
-
broke
XML_CAST_FPTR
-
broken
xmlParseBalancedChunkMemoryRecover
-xmlTextReaderNormalization
-
buf
xmlSaveFileTo
-xmlSaveFormatFileTo
-
buffered
xmlAllocOutputBuffer
-xmlAllocParserInputBuffer
-xmlFreeParserInputBuffer
-xmlOutputBufferClose
-xmlOutputBufferCreateBuffer
-xmlOutputBufferCreateFd
-xmlOutputBufferCreateFile
-xmlOutputBufferCreateFilename
-xmlOutputBufferCreateIO
-xmlOutputBufferFlush
-xmlOutputBufferWrite
-xmlOutputBufferWriteEscape
-xmlOutputBufferWriteString
-xmlParserInputBufferCreateFd
-xmlParserInputBufferCreateFile
-xmlParserInputBufferCreateFilename
-xmlParserInputBufferCreateIO
-xmlParserInputBufferCreateMem
-xmlParserInputBufferCreateStatic
-xmlParserInputBufferGrow
-xmlParserInputBufferPush
-xmlParserInputBufferRead
-xmlTextReaderGetRemainder
-
builded
XML_SCHEMAS_ATTRGROUP_GLOBAL
-XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED
-
building
_xmlParserCtxt
-docbSAXParseDoc
-docbSAXParseFile
-htmlSAXParseFile
-ignorableWhitespace
-ignorableWhitespaceSAXFunc
-xmlBuildURI
-xmlSAX2IgnorableWhitespace
-xmlSAXParseDoc
-xmlSAXParseEntity
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-xmlShellPwd
-
builds
xmlRegexpCompile
-
built
_xmlParserCtxt
-xmlCleanupParser
-xmlParseAttributeType
-xmlParseEnumeratedType
-xmlParseEnumerationType
-xmlParseNotationType
-xmlParseURI
-xmlParseURIRaw
-xmlRecoverDoc
-xmlRecoverFile
-xmlRecoverMemory
-xmlRelaxNGParse
-xmlSchemaGetBuiltInType
-xmlSchemaGetCanonValue
-xmlSchemaGetCanonValueWhtsp
-xmlSchemaParse
-xmlSchematronParse
-xmlTextReaderNextSibling
-
built-in
_xmlSchemaType
-xmlSchemaGetBuiltInListSimpleTypeItemType
-xmlSchemaGetBuiltInType
-xmlSchemaIsBuiltInTypeFacet
-xmlSchemaValidateFacetWhtsp
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-
builtin
XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE
-initGenericErrorDefaultFunc
-
bunch
xmlParseNamespace
-
bypass
xmlParseCatalogFile
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk12.html b/src/tools/docbook/libxml2/doc/APIchunk12.html deleted file mode 100644 index 1c552b14ff..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk12.html +++ /dev/null @@ -1,911 +0,0 @@ - - -API Alphabetic Index c-c for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index c-c for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter c:

cache
xmlXPathContextSetCache
-
cached
xmlXPathContextSetCache
-
caching:
xmlXPathContextSetCache
-
calculated
xmlStrncatNew
-
calculates
xmlUTF8Size
-
calling
_xmlXPathContext
-xmlBuildRelativeURI
-xmlC14NDocDumpMemory
-xmlCheckFilename
-xmlGetLineNo
-xmlTextReaderCurrentDoc
-xmlXPathAddValues
-xmlXPathDivValues
-xmlXPathModValues
-xmlXPathMultValues
-xmlXPathSubValues
-xmlXPathValueFlipSign
-
calls
xlinkNodeDetectFunc
-xmlXPathAxisFunc
-
came
xmlPopInput
-
cannot
xmlParseAttribute
-
canonic
xmlCanonicPath
-
canonical
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlGetCharEncodingName
-xmlSchemaGetCanonValue
-
canonicalization
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-
canonicalized
xmlNormalizeWindowsPath
-
canonization
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-
canonized
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-
capable
xmlCheckUTF8
-
caracters
xmlOutputBufferWriteEscape
-
cardinality
xmlExpParse
-
carried
xmlNewDocProp
-xmlNewNsProp
-xmlNewNsPropEatName
-xmlNewProp
-xmlNodeBufGetContent
-xmlNodeGetContent
-xmlNodeGetLang
-xmlNodeGetSpacePreserve
-xmlSetNsProp
-xmlSetProp
-xmlUnsetNsProp
-xmlUnsetProp
-
carries
xlinkIsLink
-
carrying
xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-xlinkSimpleLinkFunk
-xmlIsID
-xmlIsRef
-xmlNewGlobalNs
-xmlNewNs
-
case-ignoring
xmlStrcasestr
-
cases
XML_SKIP_IDS
-xmlC14NExecute
-xmlParseElementContentDecl
-xmlScanName
-
cast
BAD_CAST
-CAST_TO_BOOLEAN
-CAST_TO_NUMBER
-CAST_TO_STRING
-xmlXPathConvertFunc
-
casting
XML_CAST_FPTR
-
cat
xmlShellCat
-
catalogs
xmlCatalogAddLocal
-xmlCatalogCleanup
-xmlCatalogFreeLocal
-xmlCatalogGetDefaults
-xmlCatalogLocalResolve
-xmlCatalogLocalResolveURI
-xmlCatalogSetDebug
-xmlCatalogSetDefaults
-xmlLoadCatalogs
-
category
xmlUCSIsCat
-
cause
xmlShellPrintXPathError
-
cdata-section-
xmlStreamPushNode
-xmlStreamWantsAnyNode
-
ceiling
xmlXPathCeilingFunction
-
certainly
xmlTextReaderGetRemainder
-
chained
xmlFreeNsList
-
change
htmlSetMetaEncoding
-xmlCtxtResetLastError
-xmlNanoFTPCwd
-xmlParseSDDecl
-xmlResetLastError
-xmlSchemaCollapseString
-xmlSchemaWhiteSpaceReplace
-xmlSubstituteEntitiesDefault
-xmlSwitchEncoding
-xmlSwitchInputEncoding
-xmlSwitchToEncoding
-
changed
xmlNodeSetBase
-xmlNodeSetLang
-xmlNodeSetName
-xmlNodeSetSpacePreserve
-xmlTextReaderSetParserProp
-xmlValidityErrorFunc
-xmlValidityWarningFunc
-
changes
xmlRegisterHTTPPostCallbacks
-xmlTextReaderClose
-
changing
xmlSubstituteEntitiesDefault
-xmlTextReaderSetParserProp
-
channel
xmlFileClose
-xmlFileRead
-xmlIOFTPClose
-xmlIOFTPOpen
-xmlIOFTPRead
-xmlIOHTTPClose
-xmlIOHTTPOpen
-xmlIOHTTPRead
-xmlOutputBufferClose
-xmlOutputBufferFlush
-xmlShellPrintXPathError
-
characters
ignorableWhitespace
-ignorableWhitespaceSAXFunc
-xmlCreatePushParserCtxt
-xmlKeepBlanksDefault
-xmlParseAttValue
-xmlStrPrintf
-xmlStrVPrintf
-xmlURIEscapeStr
-xmlUTF8Strlen
-xmlUTF8Strsize
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-xmlXPathIdFunction
-xmlXPathNormalizeFunction
-xmlXPathStringLengthFunction
-xmlXPathSubstringFunction
-xmlXPathTranslateFunction
-
charencoding
xmlGetCharEncodingName
-
chars??
xmlTextWriterWriteRawLen
-
charset
xmlAllocParserInputBuffer
-xmlCreateIOParserCtxt
-xmlIOParseDTD
-xmlNewIOInputStream
-xmlOutputBufferCreateIO
-xmlParserInputBufferCreateFd
-xmlParserInputBufferCreateFile
-xmlParserInputBufferCreateFilename
-xmlParserInputBufferCreateIO
-xmlParserInputBufferCreateMem
-xmlParserInputBufferCreateStatic
-
checked
XML_SCHEMAS_ELEM_INTERNAL_CHECKED
-xmlNodeGetBase
-xmlNodeGetLang
-xmlNodeGetSpacePreserve
-xmlParseAttValue
-xmlParseAttributeType
-xmlSetNsProp
-
checking
xlinkIsLink
-xmlBufferWriteQuotedString
-xmlBuildURI
-xmlExpParse
-xmlMemFree
-xmlUTF8Strlen
-
checkings
xmlExpParse
-xmlValidateOneElement
-
checks
XML_SCHEMAS_ATTRGROUP_MARKED
-XML_SCHEMAS_TYPE_MARKED
-htmlAutoCloseTag
-htmlIsAutoClosed
-htmlNodeStatus
-xmlCheckFilename
-xmlCheckHTTPInput
-xmlCheckUTF8
-xmlNanoFTPInit
-xmlNanoHTTPInit
-xmlParseElementChildrenContentDecl
-xmlParseElementMixedContentDecl
-xmlReconciliateNs
-xmlURIEscape
-xmlURIUnescapeString
-xmlValidateAttributeDecl
-xmlValidateDocument
-xmlValidateDocumentFinal
-xmlValidateDtdFinal
-xmlValidateElementDecl
-xmlValidateNotationDecl
-xmlValidateOneAttribute
-xmlValidateOneElement
-xmlValidateOneNamespace
-xmlXPathNodeSetContains
-
child-
_xmlAttr
-_xmlDoc
-_xmlDtd
-_xmlNode
-
childrens
_xmlEntity
-
childs
_xmlNode
-xmlIsMixedElement
-xmlValidGetValidElements
-
choice
xmlExpNewOr
-xmlExpParse
-xmlParseElementChildrenContentDecl
-
choices
xmlParseElementMixedContentDecl
-
choices:
xmlParseNotationDecl
-
chunk
docbParseChunk
-htmlParseChunk
-xmlEntityReferenceFunc
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseChunk
-xmlParseEntity
-xmlParseExternalEntity
-xmlParseInNodeContext
-xmlSAXParseEntity
-
circular
XML_SCHEMAS_ATTRGROUP_MARKED
-XML_SCHEMAS_ELEM_CIRCULAR
-XML_SCHEMAS_TYPE_MARKED
-
cleanly
xmlCheckHTTPInput
-
cleans
xmlNanoFTPScanProxy
-xmlNanoHTTPScanProxy
-
cleanup
xmlCleanupGlobals
-xmlCleanupThreads
-xmlNanoFTPCleanup
-
clear
xmlListMerge
-
clears
xmlCleanupInputCallbacks
-xmlCleanupOutputCallbacks
-
client
xmlKeepBlanksDefault
-
clone
xmlDOMWrapCloneNode
-
close
htmlAutoCloseTag
-htmlCtxtReadIO
-htmlIsAutoClosed
-htmlReadIO
-xmlCharEncCloseFunc
-xmlCreateIOParserCtxt
-xmlCtxtReadIO
-xmlInputCloseCallback
-xmlModuleClose
-xmlOutputBufferClose
-xmlOutputBufferCreateIO
-xmlOutputCloseCallback
-xmlParserInputBufferCreateIO
-xmlReadIO
-xmlReaderForIO
-xmlReaderNewIO
-xmlSaveToIO
-xmlTextReaderClose
-
closed
xmlCtxtReadFd
-xmlModuleClose
-xmlNewTextWriter
-xmlReadFd
-xmlReaderForFd
-xmlReaderNewFd
-xmlTextWriterEndDocument
-
closes
xmlNanoHTTPClose
-xmlNanoHTTPSave
-
closest
xmlXPathCeilingFunction
-xmlXPathFloorFunction
-xmlXPathRoundFunction
-
closing
htmlInitAutoClose
-xmlNanoFTPFreeCtxt
-xmlParseElementChildrenContentDecl
-xmlParseStartTag
-
cncerning
xmlDebugDumpDocumentHead
-
coding
xmlSAXDefaultVersion
-
collapse
XML_SCHEMAS_FACET_COLLAPSE
-XML_SCHEMAS_TYPE_WHITESPACE_COLLAPSE
-
collect
DEBUG_MEMORY
-xmlIOHTTPOpenW
-
collected
xmlGcMemGet
-xmlGcMemSetup
-
colon
xmlLoadCatalogs
-
column
_xmlError
-getColumnNumber
-xmlSAX2GetColumnNumber
-xmlTextReaderGetParserColumnNumber
-
com
getSystemId
-xmlBuildRelativeURI
-xmlSAX2GetSystemId
-
combining
IS_COMBINING_CH
-
come
xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-
coment
xmlTextWriterEndComment
-
comes
xmlValidityErrorFunc
-xmlValidityWarningFunc
-
coming
xmlXIncludeProcessNode
-
command
ftpDataCallback
-ftpListCallback
-xmlNanoFTPCheckResponse
-xmlNanoFTPGetResponse
-xmlNanoFTPQuit
-xmlShellDu
-
commandline
xmlShell
-
commands
xmlShellPwd
-
comment
HTML_COMMENT_NODE
-comment
-commentSAXFunc
-xmlNewComment
-xmlNewDocComment
-xmlParseComment
-xmlTextWriterStartComment
-xmlTextWriterWriteComment
-xmlTextWriterWriteFormatComment
-xmlTextWriterWriteVFormatComment
-xmlXPathIsNodeType
-
comment-
xmlStreamPushNode
-xmlStreamWantsAnyNode
-
comments
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlDocGetRootElement
-xmlDocSetRootElement
-xmlParseComment
-
commodity
xmlKeepBlanksDefault
-
common
_xmlDoc
-_xmlDtd
-_xmlNode
-
comp
xmlFreePattern
-xmlFreePatternList
-xmlXPathFreeCompExpr
-
compare
xmlListDataCompare
-xmlUTF8Charcmp
-xmlXPathCompareValues
-
compared
xmlXPathCompareValues
-
compares
xmlUTF8Charcmp
-
comparing
xmlXPathCompareValues
-
comparison
xmlHashScan3
-xmlHashScanFull3
-xmlListCreate
-xmlParseCharEncoding
-xmlStrcasecmp
-xmlStrcmp
-xmlStrncasecmp
-xmlStrncmp
-xmlXPathCompareValues
-
comparisons
xmlTextReaderConstString
-xmlXPathSubstringFunction
-
compatibility
LIBXML_LEGACY_ENABLED
-xmlChildrenNode
-xmlCopyChar
-xmlEncodeEntities
-xmlKeepBlanksDefault
-xmlParseCharData
-xmlParseComment
-xmlParseNamespace
-xmlParseQuotedString
-xmlRootNode
-
compatible
LIBXML_TEST_VERSION
-xmlShellPwd
-
compilation
LIBXML_VERSION_EXTRA
-XML_XPATH_CHECKNS
-_xmlXPathContext
-xmlPatterncompile
-xmlXPathCompile
-xmlXPathCtxtCompile
-
compile
xmlPatterncompile
-
compile-time
docbCreateFileParserCtxt
-docbParseFile
-docbSAXParseFile
-htmlCreateFileParserCtxt
-htmlParseFile
-htmlSAXParseFile
-xmlCreateEntityParserCtxt
-xmlCreateFileParserCtxt
-xmlCreateURLParserCtxt
-xmlOutputBufferCreateFilename
-xmlParseFile
-xmlParserInputBufferCreateFilename
-xmlRecoverFile
-xmlSAXParseFile
-xmlSAXParseFileWithData
-
compiled
LIBXML_AUTOMATA_ENABLED
-LIBXML_EXPR_ENABLED
-LIBXML_LEGACY_ENABLED
-LIBXML_MODULES_ENABLED
-LIBXML_REGEXP_ENABLED
-LIBXML_SCHEMAS_ENABLED
-LIBXML_SCHEMATRON_ENABLED
-LIBXML_TEST_VERSION
-LIBXML_UNICODE_ENABLED
-_xmlSchemaAttribute
-_xmlSchemaElement
-_xmlSchemaFacet
-xmlAutomataCompile
-xmlCheckVersion
-xmlExpDump
-xmlExpMaxToken
-xmlGetLastError
-xmlHasFeature
-xmlPatterncompile
-xmlRegexpCompile
-xmlRegexpExec
-xmlRegexpIsDeterminist
-xmlRegexpPrint
-xmlSaveFile
-xmlSaveFormatFile
-xmlXPathCompiledEval
-xmlXPathDebugDumpCompExpr
-
compiled-in
xmlCleanupInputCallbacks
-xmlCleanupOutputCallbacks
-xmlPopInputCallbacks
-xmlRegisterDefaultInputCallbacks
-xmlRegisterDefaultOutputCallbacks
-
compiling
xmlRelaxNGNewDocParserCtxt
-
complement
xmlXPathStringEvalNumber
-
complete
XML_COMPLETE_ATTRS
-XML_SCHEMAS_WILDCARD_COMPLETE
-_xmlParserCtxt
-xmlACatalogResolve
-xmlACatalogResolveURI
-xmlCatalogLocalResolve
-xmlCatalogLocalResolveURI
-xmlCatalogResolve
-xmlCatalogResolveURI
-
completed
xmlValidateDocumentFinal
-
completely
xmlGetUTF8Char
-xmlNodeGetBase
-
complex
XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION
-XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION
-_xmlSchemaType
-
complexType
XML_SCHEMAS_TYPE_ABSTRACT
-XML_SCHEMAS_TYPE_BLOCK_DEFAULT
-XML_SCHEMAS_TYPE_BLOCK_EXTENSION
-XML_SCHEMAS_TYPE_BLOCK_RESTRICTION
-XML_SCHEMAS_TYPE_FINAL_EXTENSION
-XML_SCHEMAS_TYPE_FINAL_RESTRICTION
-XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD
-
complicated
xmlBuildRelativeURI
-
component
_xmlSchemaType
-
components
_xmlSchema
-
compound
xmlXPathFreeNodeSet
-xmlXPtrFreeLocationSet
-
compress
xmlNewTextWriterDoc
-xmlNewTextWriterFilename
-xmlNewTextWriterMemory
-xmlNewTextWriterPushParser
-xmlNewTextWriterTree
-
compressed
_xmlParserInputBuffer
-docbCreateFileParserCtxt
-docbParseFile
-docbSAXParseFile
-htmlCreateFileParserCtxt
-htmlParseFile
-htmlSAXParseFile
-xmlCreateEntityParserCtxt
-xmlCreateFileParserCtxt
-xmlCreateURLParserCtxt
-xmlOutputBufferCreateFilename
-xmlParseFile
-xmlParserInputBufferCreateFilename
-xmlRecoverFile
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXUserParseFile
-
compression
_xmlDoc
-xmlC14NDocSave
-xmlGetCompressMode
-xmlGetDocCompressMode
-xmlIOHTTPOpenW
-xmlNewTextWriterMemory
-xmlNewTextWriterPushParser
-xmlOutputBufferCreateFilename
-xmlSaveFile
-xmlSaveFormatFile
-xmlSetCompressMode
-xmlSetDocCompressMode
-
comprising
xmlXPathIntersection
-
computation
xmlXPathOrderDocElems
-
compute
xmlUTF8Strlen
-
computed
XML_SCHEMAS_TYPE_FACETSNEEDVALUE
-_xmlEntity
-xmlByteConsumed
-xmlSchemaValPredefTypeNode
-xmlSchemaValPredefTypeNodeNoNorm
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-xmlSchemaValidatePredefinedType
-xmlSchemaValueAppend
-xmlSchemaValueGetAsBoolean
-xmlSchemaValueGetAsString
-xmlSchemaValueGetNext
-xmlTextReaderByteConsumed
-
computes
xmlSchemaCheckFacet
-
concat
xmlXPathConcatFunction
-
concatenated
xmlStrcat
-
concatenation
xmlXPathConcatFunction
-
condition
xmlSchemaValidateFacet
-xmlSchemaValidateFacetWhtsp
-
conditionalSect
xmlParseExternalSubset
-
configured
DEBUG_MEMORY
-DEBUG_MEMORY_LOCATION
-LIBXML_C14N_ENABLED
-LIBXML_CATALOG_ENABLED
-LIBXML_DEBUG_ENABLED
-LIBXML_DEBUG_RUNTIME
-LIBXML_DOCB_ENABLED
-LIBXML_FTP_ENABLED
-LIBXML_HTML_ENABLED
-LIBXML_HTTP_ENABLED
-LIBXML_OUTPUT_ENABLED
-LIBXML_PATTERN_ENABLED
-LIBXML_PUSH_ENABLED
-LIBXML_READER_ENABLED
-LIBXML_SAX1_ENABLED
-LIBXML_THREAD_ENABLED
-LIBXML_TREE_ENABLED
-LIBXML_VALID_ENABLED
-LIBXML_WRITER_ENABLED
-LIBXML_XINCLUDE_ENABLED
-LIBXML_XPATH_ENABLED
-LIBXML_XPTR_ENABLED
-WITHOUT_TRIO
-WITH_TRIO
-
conforming
xmlRegexpCompile
-
conforms
xmlCheckLanguageID
-xmlSchemaValPredefTypeNode
-xmlSchemaValPredefTypeNodeNoNorm
-xmlSchemaValidatePredefinedType
-xmlValidateNCName
-xmlValidateNMToken
-xmlValidateName
-xmlValidateQName
-
conjunction
xmlSchemaIsBuiltInTypeFacet
-
connection
xmlNanoFTPClose
-xmlNanoFTPCloseConnection
-xmlNanoFTPConnect
-xmlNanoFTPConnectTo
-xmlNanoFTPFreeCtxt
-xmlNanoFTPGetConnection
-xmlNanoFTPGetSocket
-xmlNanoFTPRead
-xmlNanoFTPUpdateURL
-xmlNanoHTTPClose
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-xmlNanoHTTPRead
-
connector
xmlParseElementChildrenContentDecl
-
cononical
xmlSchemaGetCanonValue
-xmlSchemaGetCanonValueWhtsp
-
consequent
_xmlError
-
consideration
xmlBuildRelativeURI
-
considered
xmlHashScan3
-xmlHashScanFull3
-xmlParserInputBufferRead
-xmlXPathSubstringFunction
-
consist
xmlXPathNextAncestor
-
constant
XML_SAX2_MAGIC
-xmlByteConsumed
-
constraint
_xmlSchemaAttribute
-_xmlSchemaElement
-_xmlSchemaWildcard
-_xmlSchemaWildcardNs
-xmlParseEntityRef
-xmlValidateNotationDecl
-
constraints
XML_SCHEMAS_ELEM_INTERNAL_CHECKED
-xmlParseAttributeType
-xmlParseDefaultDecl
-xmlValidGetValidElements
-
construct
xmlParseElementChildrenContentDecl
-
construction
xmlCanonicPath
-
constructs
xmlExpParse
-xmlParseNamespace
-
consumed
UTF8ToHtml
-UTF8Toisolat1
-_xmlParserInput
-_xmlParserInputBuffer
-docbEncodeEntities
-htmlEncodeEntities
-isolat1ToUTF8
-xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-xmlExpNewOr
-xmlExpNewRange
-xmlExpNewSeq
-xmlGetUTF8Char
-xmlParserInputBufferRead
-xmlSchemaNewNOTATIONValue
-xmlSchemaNewQNameValue
-xmlSchemaNewStringValue
-
consuming
xmlExpExpDerive
-xmlScanName
-
contain
xmlNewTextChild
-xmlParseAttribute
-xmlParseEntityRef
-xmlParsePEReference
-xmlParseSDDecl
-xmlParserHandlePEReference
-xmlParserHandleReference
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlRelaxNGNewMemParserCtxt
-xmlRelaxNGNewParserCtxt
-xmlSchemaNewMemParserCtxt
-xmlSchemaNewParserCtxt
-xmlSchematronNewMemParserCtxt
-xmlSchematronNewParserCtxt
-xmlXPathLeading
-xmlXPathLeadingSorted
-xmlXPathNodeLeading
-xmlXPathNodeLeadingSorted
-xmlXPathNodeTrailing
-xmlXPathNodeTrailingSorted
-xmlXPathSubstringAfterFunction
-xmlXPathSubstringBeforeFunction
-xmlXPathTrailing
-xmlXPathTrailingSorted
-
contained
xmlGetUTF8Char
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlParseElementChildrenContentDecl
-xmlParseMarkupDecl
-xmlStrlen
-xmlXPathDistinct
-xmlXPathDistinctSorted
-
contains
XML_SCHEMAS_ATTRGROUP_HAS_REFS
-xmlCurrentChar
-xmlParseEntityRef
-xmlParsePEReference
-xmlParserHandlePEReference
-xmlTextReaderMoveToElement
-xmlValidityErrorFunc
-xmlValidityWarningFunc
-xmlXPathContainsFunction
-xmlXPathNextAncestor
-xmlXPathNextAncestorOrSelf
-xmlXPathNextChild
-xmlXPathNextDescendant
-xmlXPathNextDescendantOrSelf
-xmlXPathNextFollowing
-xmlXPathNextFollowingSibling
-xmlXPathNextNamespace
-xmlXPathNextParent
-xmlXPathNextPreceding
-xmlXPathNextPrecedingSibling
-xmlXPathNextSelf
-xmlXPathNodeSetContains
-xmlXPathSubstringFunction
-xmlXPtrNewContext
-
content:
xmlParseContent
-xmlXPathEqualValues
-xmlXPathNotEqualValues
-
contentType
xmlNanoHTTPFetch
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-
contents
xmlDictFree
-xmlHashFree
-xmlLineNumbersDefault
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlSetupParserForBuffer
-xmlTextReaderExpand
-xmlTextReaderReadInnerXml
-xmlTextReaderReadOuterXml
-xmlTextReaderReadString
-xmlTextWriterWriteDTDExternalEntityContents
-
contentspec
xmlParseElementContentDecl
-xmlParseElementDecl
-
contextual
xmlRelaxNGGetParserErrors
-xmlRelaxNGSetParserErrors
-xmlRelaxNGSetParserStructuredErrors
-xmlSchemaGetParserErrors
-xmlSchemaSetParserErrors
-
continuing
xmlXPathSubstringFunction
-
contraint
_xmlSchemaElement
-
contrary
xmlNodeListGetRawString
-xmlXPathFreeNodeSetList
-
control
_xmlXPathContext
-resolveEntity
-resolveEntitySAXFunc
-xmlNanoFTPClose
-xmlNanoFTPConnect
-xmlNanoFTPConnectTo
-xmlSAX2ResolveEntity
-
conveniently
xmlCurrentChar
-
conversion
_xmlXPathType
-xmlCharEncOutFunc
-xmlParseEncodingDecl
-xmlXPathConvertFunc
-xmlXPathPopBoolean
-xmlXPathPopExternal
-xmlXPathPopNodeSet
-xmlXPathPopNumber
-xmlXPathPopString
-
conversions
_xmlOutputBuffer
-_xmlParserInputBuffer
-
convert
UTF8ToHtml
-UTF8Toisolat1
-attribute
-attributeSAXFunc
-docbEncodeEntities
-htmlEncodeEntities
-isolat1ToUTF8
-xmlBuildRelativeURI
-xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-xmlEncodeEntities
-xmlEncodeEntitiesReentrant
-xmlEncodeSpecialChars
-xmlXPathAddValues
-xmlXPathDivValues
-xmlXPathModValues
-xmlXPathMultValues
-xmlXPathSubValues
-xmlXPathValueFlipSign
-
converted
xmlCatalogConvert
-xmlConvertSGMLCatalog
-xmlXPathCompareValues
-xmlXPathEvalPredicate
-xmlXPathEvaluatePredicateResult
-xmlXPathIdFunction
-xmlXPathNormalizeFunction
-xmlXPathStringFunction
-xmlXPathStringLengthFunction
-
converter
xmlAllocOutputBuffer
-xmlOutputBufferCreateBuffer
-xmlOutputBufferCreateFd
-xmlOutputBufferCreateFile
-xmlOutputBufferCreateFilename
-
converting
xmlSaveFileEnc
-xmlXPathEvalPredicate
-xmlXPathEvaluatePredicateResult
-
converts
xmlXPathBooleanFunction
-xmlXPathStringFunction
-
copied
xmlBufferCreateStatic
-xmlCopyDoc
-xmlGetFeaturesList
-xmlSchemaCopyValue
-xmlXPathNodeSetMerge
-
copier
xmlHashCopy
-
copying
xmlParserInputBufferGrow
-
correct
xmlCheckLanguageID
-
correctly
xmlURIEscape
-
correponding
xmlTextReaderCurrentDoc
-xmlTextReaderCurrentNode
-
correspond
xmlIsXHTML
-xmlParseEntity
-xmlSAXParseEntity
-
corresponding
xmlGetDocEntity
-xmlGetDtdEntity
-xmlGetParameterEntity
-xmlSetProp
-xmlXPathTranslateFunction
-
cost
xmlByteConsumed
-
costly
XML_MAX_NAMELEN
-xmlByteConsumed
-
could
xmlByteConsumed
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlModuleClose
-xmlSchemaGetCanonValue
-xmlSchemaGetCanonValueWhtsp
-xmlTextReaderByteConsumed
-xmlTextReaderRelaxNGSetSchema
-xmlTextReaderRelaxNGValidate
-xmlTextReaderSchemaValidate
-xmlTextReaderSchemaValidateCtxt
-xmlTextReaderSetSchema
-xmlValidateDtd
-
count
ftpListCallback
-xmlExpRef
-xmlLsCountNode
-xmlSaveDoc
-xmlSaveTree
-xmlSchematronValidateDoc
-xmlTextReaderAttributeCount
-xmlXPathCountFunction
-
counter
xmlAutomataNewCountedTrans
-xmlAutomataNewCounter
-xmlAutomataNewCounterTrans
-xmlDictReference
-
counterparts
xmlEncodeEntitiesReentrant
-
course
xmlTextReaderNormalization
-
cover
xmlSearchNs
-
create
xmlBufferCreate
-xmlBufferCreateSize
-xmlBufferCreateStatic
-xmlCatalogIsEmpty
-xmlCreateEntitiesTable
-xmlCreateEnumeration
-xmlNewCatalog
-xmlNewDtd
-xmlNewNs
-
creates
xmlAutomataNewAllTrans
-xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewCountedTrans
-xmlAutomataNewCounterTrans
-xmlAutomataNewEpsilon
-xmlAutomataNewNegTrans
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlAutomataNewTransition
-xmlAutomataNewTransition2
-xmlCreateURI
-xmlStrncatNew
-xmlXPathContextSetCache
-
creating
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-
creation
xmlIOHTTPOpenW
-xmlNewNs
-xmlRegisterNodeDefault
-
cross
xmlSearchNs
-
crossed
xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-
cshema
XML_SCHEMAS_FINAL_DEFAULT_LIST
-
ctrio
xmlXPathIsInf
-xmlXPathIsNaN
-
ctxt
xmlExpNewOr
-xmlExpNewRange
-xmlExpNewSeq
-
ctxt-
docbFreeParserCtxt
-htmlFreeParserCtxt
-xmlFreeParserCtxt
-xmlPopInput
-xmlValidCtxtNormalizeAttributeValue
-xmlValidityErrorFunc
-xmlValidityWarningFunc
-
cur
xmlXPathAxisFunc
-
currently
XML_SCHEMAS_INCLUDING_CONVERT_NS
-xmlDOMWrapCloneNode
-xmlGcMemGet
-xmlMemBlocks
-xmlMemGet
-xmlMemUsed
-xmlOutputBufferCreateFilename
-xmlXPathContextSetCache
-
custom
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlSaveSetAttrEscape
-xmlSaveSetEscape
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk13.html b/src/tools/docbook/libxml2/doc/APIchunk13.html deleted file mode 100644 index 5980cc29a1..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk13.html +++ /dev/null @@ -1,630 +0,0 @@ - - -API Alphabetic Index d-d for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index d-d for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter d:

dangerous
xmlTextReaderCurrentNode
-
data-type
xmlSchemaCopyValue
-
datatype
xmlSchemaGetBuiltInListSimpleTypeItemType
-
day
ftpListCallback
-
day:minute
ftpListCallback
-
de-coupled
xmlValidateDtd
-
deactivated
xmlTextReaderRelaxNGSetSchema
-xmlTextReaderSchemaValidate
-xmlTextReaderSchemaValidateCtxt
-xmlTextReaderSetSchema
-
deallocate
_xmlParserInput
-xmlCleanupParser
-xmlDecodeEntities
-xmlListDeallocator
-xmlParserInputDeallocate
-xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-xmlXPathFreeNodeSetList
-
deallocated
xmlDictFree
-xmlEncodeEntitiesReentrant
-xmlEncodeSpecialChars
-xmlGetFeaturesList
-xmlHashFree
-xmlNewTextWriter
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlSaveUri
-xmlTextReaderConstBaseUri
-xmlTextReaderConstEncoding
-xmlTextReaderConstLocalName
-xmlTextReaderConstName
-xmlTextReaderConstNamespaceUri
-xmlTextReaderConstPrefix
-xmlTextReaderConstString
-xmlTextReaderConstValue
-xmlTextReaderConstXmlVersion
-xmlTextReaderGetAttribute
-xmlTextReaderGetAttributeNo
-xmlTextReaderGetAttributeNs
-xmlTextReaderLookupNamespace
-xmlTextReaderReadInnerXml
-xmlTextReaderReadOuterXml
-xmlTextReaderReadString
-xmlTextReaderRelaxNGSetSchema
-xmlTextReaderSetSchema
-xmlTextReaderValue
-
deallocation
xmlListRemoveAll
-xmlListRemoveFirst
-xmlListRemoveLast
-
deallocator
xmlHashFree
-xmlHashRemoveEntry
-xmlHashRemoveEntry2
-xmlHashRemoveEntry3
-xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-xmlListCreate
-
debug
DEBUG_MEMORY
-xmlCatalogSetDebug
-xmlDebugDumpAttr
-xmlDebugDumpAttrList
-xmlDebugDumpDTD
-xmlDebugDumpDocument
-xmlDebugDumpDocumentHead
-xmlDebugDumpEntities
-xmlDebugDumpNode
-xmlDebugDumpNodeList
-xmlDebugDumpOneNode
-xmlRegexpPrint
-xmlSnprintfElementContent
-
debugging
DEBUG_MEMORY
-DEBUG_MEMORY_LOCATION
-LIBXML_DEBUG_RUNTIME
-xmlCatalogSetDebug
-xmlXPathDebugDumpObject
-
decimal
xmlXPathStringFunction
-
decl
XML_SCHEMAS_ELEM_INTERNAL_CHECKED
-xmlAddAttributeDecl
-xmlNewDocElementContent
-xmlNewElementContent
-
declarations
_xmlXPathContext
-htmlParseCharRef
-startElementNsSAX2Func
-xmlParseCharRef
-xmlParseEntityDecl
-xmlParseEntityRef
-xmlParseEntityValue
-xmlParseExternalSubset
-xmlParseMarkupDecl
-xmlParsePEReference
-xmlParseSDDecl
-xmlReconciliateNs
-xmlSAX2StartElementNs
-xmlTextWriterWriteFormatDTD
-xmlTextWriterWriteVFormatDTD
-xmlValidateNotationDecl
-xmlXPtrBuildNodeList
-
declare
xmlParseEntityRef
-xmlParserHandleReference
-xmlSearchNs
-
declared
_xmlElement
-_xmlParserCtxt
-xmlParseAttValue
-xmlParseAttribute
-xmlParseAttributeType
-xmlParseDefaultDecl
-xmlParseElementDecl
-xmlParseEntityDecl
-xmlParseEntityRef
-xmlParseNamespace
-xmlParseNotationType
-xmlReconciliateNs
-xmlTextReaderStandalone
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-
declaring
xmlGetID
-
decode
xmlDecodeEntities
-
def
xmlParseAttributeListDecl
-xmlParseAttributeType
-
defaulted
XML_COMPLETE_ATTRS
-_xmlParserCtxt
-startElementNsSAX2Func
-xmlSAX2StartElementNs
-xmlTextReaderIsDefault
-
defaultexternal
xmlSetExternalEntityLoader
-
defaults
xmlShell
-xmlXPathLocalNameFunction
-xmlXPathNamespaceURIFunction
-xmlXPathNormalizeFunction
-xmlXPathStringFunction
-xmlXPathStringLengthFunction
-
define
DEBUG_MEMORY
-XML_CAST_FPTR
-xmlHandleEntity
-xmlSchemaGetCanonValue
-
defined
WITHOUT_TRIO
-WITH_TRIO
-_xmlXPathContext
-xmlGetNsList
-xmlHandleEntity
-xmlNewNs
-xmlNodeGetBase
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseElementContentDecl
-xmlParseInNodeContext
-xmlSchemaGetBuiltInListSimpleTypeItemType
-xmlSearchNs
-xmlSearchNsByHref
-xmlTextReaderIsDefault
-xmlValidGetValidElements
-xmlValidateDtdFinal
-xmlXPathNextAncestorOrSelf
-
defining
XINCLUDE_FALLBACK
-XINCLUDE_HREF
-XINCLUDE_NODE
-XINCLUDE_NS
-XINCLUDE_OLD_NS
-XINCLUDE_PARSE
-XINCLUDE_PARSE_ENCODING
-XINCLUDE_PARSE_TEXT
-XINCLUDE_PARSE_XML
-XINCLUDE_PARSE_XPOINTER
-xmlGetID
-xmlReconciliateNs
-xmlShellDu
-xmlTextReaderConstNamespaceUri
-xmlTextReaderNamespaceUri
-
definitions
_xmlNode
-startElementNsSAX2Func
-xmlLoadCatalog
-xmlLoadCatalogs
-xmlPatterncompile
-xmlSAX2StartElementNs
-xmlTextReaderPreservePattern
-xmlValidateDtd
-
defs
_xmlSchema
-_xmlSchemaElement
-
delayed
xmlOutputBufferWrite
-xmlOutputBufferWriteEscape
-xmlOutputBufferWriteString
-
delegation
xmlCatalogSetDefaultPrefer
-
delete
xmlNanoFTPDele
-
deletion
xmlCatalogSetDefaultPrefer
-
dependant
xmlXPathContextSetCache
-
depending
xmlIsID
-xmlIsRef
-xmlListDataCompare
-xmlParseReference
-xmlXPathEqualValues
-xmlXPathLangFunction
-xmlXPathNotEqualValues
-
deprecated
LIBXML_LEGACY_ENABLED
-_htmlElemDesc
-htmlAttrAllowed
-htmlElementAllowedHere
-htmlElementStatusHere
-htmlNodeStatus
-xmlCheckLanguageID
-xmlCreateEntitiesTable
-xmlDecodeEntities
-xmlParserHandleReference
-xmlScanName
-
depth
_xmlParserCtxt
-_xmlValidCtxt
-xmlPatternMaxDepth
-xmlPatternMinDepth
-xmlTextReaderDepth
-
deregistration
xmlDeregisterNodeDefault
-
derivation
XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION
-XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION
-xmlExpExpDerive
-xmlExpStringDerive
-
des
xmlTextReaderRelaxNGSetSchema
-xmlTextReaderRelaxNGValidate
-xmlTextReaderSetSchema
-
desactivated
xmlTextReaderRelaxNGSetSchema
-xmlTextReaderRelaxNGValidate
-xmlTextReaderSetSchema
-
descend
xmlDOMWrapCloneNode
-
descendant
xmlXPathNextDescendant
-
descendant-or-self
xmlXPathNextDescendantOrSelf
-
descendants
xmlXPathNextDescendant
-xmlXPathNextDescendantOrSelf
-xmlXPathNextFollowing
-
described
xmlStreamWantsAnyNode
-xmlValidateAttributeDecl
-xmlValidateDocument
-xmlValidateDocumentFinal
-xmlValidateDtdFinal
-xmlValidateElementDecl
-xmlValidateNotationDecl
-xmlValidateOneAttribute
-xmlValidateOneElement
-xmlValidateOneNamespace
-xmlValidateRoot
-
describing
docbParseDoc
-docbParseFile
-docbSAXParseDoc
-docbSAXParseFile
-htmlCreateFileParserCtxt
-htmlParseDoc
-htmlParseFile
-htmlSAXParseDoc
-htmlSAXParseFile
-xmlFindCharEncodingHandler
-xmlParseElementChildrenContentDecl
-xmlParseElementMixedContentDecl
-
description
_htmlElemDesc
-_htmlEntityDesc
-htmlElementAllowedHereDesc
-xmlCopyDocElementContent
-xmlCopyElementContent
-xmlGetDtdAttrDesc
-xmlGetDtdElementDesc
-xmlGetDtdNotationDesc
-xmlGetDtdQAttrDesc
-xmlGetDtdQElementDesc
-xmlIsMixedElement
-xmlNodeSetLang
-
descriptor
htmlCtxtReadFd
-htmlReadFd
-xmlCtxtReadFd
-xmlMemDisplay
-xmlMemShow
-xmlOutputBufferCreateFd
-xmlParserInputBufferCreateFd
-xmlReadFd
-xmlReaderForFd
-xmlReaderNewFd
-xmlSaveToFd
-xmlSaveToIO
-
designed
xmlCharEncodingOutputFunc
-
desired
xmlBufferResize
-xmlIOHTTPOpenW
-xmlUTF8Strloc
-xmlUTF8Strpos
-
destination
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlIOHTTPOpenW
-xmlURIUnescapeString
-
destroy
xmlTextReaderCurrentDoc
-
destroyed
xmlAddChild
-xmlAddNextSibling
-xmlAddPrevSibling
-xmlTextReaderCurrentNode
-
destruction
xmlDeregisterNodeDefault
-
details
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-
detect
xlinkIsLink
-xmlCreatePushParserCtxt
-xmlInputMatchCallback
-xmlKeepBlanksDefault
-xmlOutputMatchCallback
-xmlXPathIsInf
-xmlXPathIsNaN
-
detected
CHECK_ERROR
-CHECK_ERROR0
-endDocument
-endDocumentSAXFunc
-endElement
-endElementNsSAX2Func
-endElementSAXFunc
-reference
-referenceSAXFunc
-startElementNsSAX2Func
-xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-xlinkIsLink
-xmlParserHandlePEReference
-xmlParserHandleReference
-xmlSAX2EndDocument
-xmlSAX2EndElement
-xmlSAX2EndElementNs
-xmlSAX2Reference
-xmlSAX2StartElementNs
-
detection
docbCreatePushParserCtxt
-xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-xlinkGetDefaultDetect
-xlinkNodeDetectFunc
-xlinkSetDefaultDetect
-xlinkSimpleLinkFunk
-xmlCreatePushParserCtxt
-xmlIsID
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseExternalEntity
-
determine
xmlC14NExecute
-xmlCharInRange
-
determined
xmlXPathLangFunction
-
determinist
xmlAutomataIsDeterminist
-xmlRegexpIsDeterminist
-
dict
_xmlDoc
-
dictionary
_xmlParserCtxt
-xmlDictCleanup
-xmlDictCreate
-xmlDictCreateSub
-xmlDictReference
-xmlHashCreateDict
-xmlPatterncompile
-xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-
dictionnary
_xmlParserCtxt
-_xmlXPathContext
-xmlDictCreate
-xmlDictCreateSub
-xmlDictExists
-xmlDictFree
-xmlDictLookup
-xmlDictOwns
-xmlDictQLookup
-xmlDictReference
-xmlDictSize
-xmlExpNewCtxt
-
dicts
xmlDOMWrapCloneNode
-
did
XML_SCHEMAS_TYPE_BLOCK_DEFAULT
-xmlTextReaderGetRemainder
-xmlTextReaderStandalone
-
difference
xmlXPathDifference
-
different
xmlACatalogAdd
-xmlBuildQName
-xmlCatalogAdd
-xmlNodeGetBase
-xmlStrEqual
-xmlStrQEqual
-
differentiate
xmlXPathOrderDocElems
-
differently
xmlTextReaderGetRemainder
-
digit
xmlXPathStringFunction
-
digits
xmlXPathStringFunction
-
dir
xmlShellDir
-
direct
htmlElementAllowedHere
-htmlElementAllowedHereDesc
-htmlElementStatusHere
-xmlExpExpDerive
-xmlParseAttribute
-xmlURIUnescapeString
-
direction
xmlXPathNextAncestor
-xmlXPathNextAncestorOrSelf
-xmlXPathNextAttribute
-xmlXPathNextChild
-xmlXPathNextDescendant
-xmlXPathNextDescendantOrSelf
-xmlXPathNextFollowing
-xmlXPathNextFollowingSibling
-xmlXPathNextNamespace
-xmlXPathNextParent
-xmlXPathNextPreceding
-xmlXPathNextPrecedingSibling
-xmlXPathNextSelf
-
directly
xmlNodeBufGetContent
-xmlNodeGetContent
-xmlNormalizeURIPath
-xmlParseAttribute
-xmlParseElementContentDecl
-xmlParsePEReference
-xmlParseSDDecl
-xmlParserHandlePEReference
-xmlParserHandleReference
-xmlParserInputBufferGrow
-xmlXPathConvertBoolean
-xmlXPathConvertNumber
-xmlXPathConvertString
-xmlXPtrNewContext
-
directories
xmlLoadCatalogs
-
directory
_xmlParserCtxt
-_xmlParserInput
-xmlCheckFilename
-xmlNanoFTPCwd
-xmlNanoFTPDele
-xmlParserGetDirectory
-xmlShellList
-
disable
xmlCatalogSetDebug
-
disabled
XML_CAST_FPTR
-_xmlParserCtxt
-xmlParseURIRaw
-
disables
xmlXPathContextSetCache
-
disabling
xmlNoNetExternalEntityLoader
-
disallowed
XML_SCHEMAS_ELEM_BLOCK_EXTENSION
-XML_SCHEMAS_ELEM_BLOCK_RESTRICTION
-XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION
-
discard
xmlParserInputRead
-
discarding
xmlParseAttValue
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-
disconnected
xmlAutomataNewState
-
discovering
xmlSwitchEncoding
-xmlSwitchInputEncoding
-xmlSwitchToEncoding
-
disctionary
xmlDictOwns
-
display
errorSAXFunc
-fatalErrorSAXFunc
-warningSAXFunc
-xmlMemShow
-xmlParserError
-xmlParserValidityError
-xmlParserValidityWarning
-xmlParserWarning
-
distinct
xmlXPathDistinct
-xmlXPathDistinctSorted
-
distinguish
xmlXPathStringFunction
-
div
xmlXPathDivValues
-xmlXPathSubstringFunction
-
doc
htmlNodeDumpFileFormat
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapRemoveNode
-xmlNewTextWriterDoc
-
doc-
xmlDOMWrapRemoveNode
-xmlDocGetRootElement
-xmlDocSetRootElement
-xmlNewTextWriterTree
-
docs
xmlBuildRelativeURI
-
doctypedecl
xmlParseDocTypeDecl
-xmlParseDocument
-
documents
xmlIsID
-xmlParseEntityRef
-xmlParserHandleReference
-xmlSAXParseDoc
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-xmlXPathOrderDocElems
-
doesn
_htmlElemDesc
-htmlElementAllowedHere
-xmlCleanupParser
-xmlCreateEntitiesTable
-xmlFreeNode
-xmlInitCharEncodingHandlers
-xmlKeepBlanksDefault
-xmlNodeListGetRawString
-xmlParserInputRead
-xmlPatternMatch
-xmlRemoveProp
-xmlUTF8Strlen
-xmlValidateRoot
-xmlXPathLeading
-xmlXPathLeadingSorted
-xmlXPathNodeLeading
-xmlXPathNodeLeadingSorted
-xmlXPathNodeTrailing
-xmlXPathNodeTrailingSorted
-xmlXPathTrailing
-xmlXPathTrailingSorted
-
don
XML_SCHEMAS_ANY_LAX
-xlinkIsLink
-xmlCreatePushParserCtxt
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlParseStartTag
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlSearchNs
-xmlXPathFreeNodeSetList
-xmlXPathNodeSetFreeNs
-
dotgnu
xmlTextReaderNodeType
-
double
val
-xmlBufferWriteQuotedString
-xmlGetBufferAllocationScheme
-xmlSetBufferAllocationScheme
-xmlXPathIsInf
-xmlXPathIsNaN
-xmlXPathNewFloat
-xmlXPathNodeSetCreate
-xmlXPathReturnNumber
-xmlXPathStringEvalNumber
-xmlXPtrLocationSetCreate
-
double-hyphen
xmlParseComment
-
double-quotes
xmlBufferWriteQuotedString
-
doublequotes
xmlParseQuotedString
-
down
xmlGetBufferAllocationScheme
-xmlSetBufferAllocationScheme
-
draft
XINCLUDE_OLD_NS
-
drop
xmlFileRead
-xmlIOFTPRead
-xmlIOHTTPRead
-xmlParseNamespace
-xmlParseQuotedString
-xmlXPtrBuildNodeList
-
dtd
getSystemId
-htmlNewDoc
-htmlNewDocNoDtD
-xmlCopyDtd
-xmlSAX2GetSystemId
-xmlValidateDtd
-
dtds
getSystemId
-xmlSAX2GetSystemId
-xmlValidateDtdFinal
-
dump
xmlBufferAdd
-xmlBufferCCat
-xmlBufferDump
-xmlBufferShrink
-xmlDumpAttributeDecl
-xmlDumpAttributeTable
-xmlDumpElementDecl
-xmlDumpElementTable
-xmlDumpEntitiesTable
-xmlDumpEntityDecl
-xmlDumpNotationDecl
-xmlDumpNotationTable
-xmlLsOneNode
-xmlMemShow
-xmlSnprintfElementContent
-xmlXPathDebugDumpObject
-
dumps
xmlShellBase
-xmlShellCat
-xmlShellDir
-
duplicate
xmlCanonicPath
-
duplicated
xmlRelaxNGNewDocParserCtxt
-xmlXPathNodeSetFreeNs
-
duplicates
xmlSchemaCopyValue
-
duration
xmlSchemaGetCanonValue
-
during
xmlSAXDefaultVersion
-xmlSchemaNewDocParserCtxt
-xmlSchematronNewDocParserCtxt
-
dynamic
LIBXML_MODULE_EXTENSION
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk14.html b/src/tools/docbook/libxml2/doc/APIchunk14.html deleted file mode 100644 index f5134af22a..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk14.html +++ /dev/null @@ -1,455 +0,0 @@ - - -API Alphabetic Index e-e for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index e-e for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter e:

each
_xmlParserCtxt
-xmlHashCopy
-xmlHashScan
-xmlHashScan3
-xmlHashScanFull
-xmlHashScanFull3
-xmlParseAttributeType
-xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-xmlValidateOneElement
-xmlXPathIdFunction
-xmlXPathSubstringFunction
-
edition
xmlCheckLanguageID
-
effect
xmlXPathContextSetCache
-
effective
xmlLoadCatalog
-xmlLoadCatalogs
-
efficiency
xmlBuildRelativeURI
-
either
xmlBoolToText
-xmlCurrentChar
-xmlLoadACatalog
-xmlNodeBufGetContent
-xmlNodeGetContent
-xmlParseElementChildrenContentDecl
-xmlParseElementContentDecl
-xmlParseMarkupDecl
-xmlParsePEReference
-xmlParseStartTag
-xmlParserHandlePEReference
-xmlTextReaderNormalization
-
either:
resolveEntity
-resolveEntitySAXFunc
-xmlSAX2ResolveEntity
-
elem
XML_SCHEMAS_ELEM_INTERNAL_CHECKED
-
element-
xmlStreamPushNode
-xmlXPathOrderDocElems
-
element-node
xmlDOMWrapReconcileNamespaces
-xmlStreamPush
-
element-nodes
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlStreamWantsAnyNode
-
elementFormDefault
XML_SCHEMAS_QUALIF_ELEM
-
elementdecl
xmlParseElementDecl
-xmlParseMarkupDecl
-
elements
XML_CATALOGS_NAMESPACE
-XML_COMPLETE_ATTRS
-XML_SCHEMAS_ATTR_GLOBAL
-XML_SCHEMAS_ATTR_NSDEFAULT
-XML_SCHEMAS_ELEM_NSDEFAULT
-_xmlDtd
-htmlElementAllowedHere
-htmlNodeStatus
-xlinkIsLink
-xmlDictSize
-xmlFreePatternList
-xmlHashSize
-xmlLineNumbersDefault
-xmlListMerge
-xmlListReverse
-xmlListSize
-xmlListSort
-xmlParseAttributeType
-xmlParseDefaultDecl
-xmlParseSDDecl
-xmlShellPwd
-xmlTextWriterEndDocument
-xmlXPathIdFunction
-xmlXPathOrderDocElems
-
else
UTF8ToHtml
-UTF8Toisolat1
-docbEncodeEntities
-htmlEncodeEntities
-isolat1ToUTF8
-xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-
embedded
XML_CTXT_FINISH_DTD_0
-XML_CTXT_FINISH_DTD_1
-
emitted
xmlSetGenericErrorFunc
-
empty-element
xmlParseStartTag
-
enable
xmlCatalogSetDebug
-
enabled
xmlSaveFile
-xmlSaveFormatFile
-
enables
xmlXPathContextSetCache
-
enabling
xmlLineNumbersDefault
-xmlPedanticParserDefault
-
enc
xmlParserInputBufferCreateFilename
-
encapsulate
xmlBufferFree
-
encapsulating
_htmlElemDesc
-xmlNewIOInputStream
-
enclose
xmlTextReaderQuoteChar
-
encode
xmlTextWriterWriteBase64
-xmlTextWriterWriteBinHex
-
encoded
_xmlOutputBuffer
-_xmlParserInput
-_xmlParserInputBuffer
-xmlCheckUTF8
-xmlGetUTF8Char
-xmlSplitQName
-xmlStrcat
-xmlStrdup
-xmlTextWriterWriteBase64
-xmlTextWriterWriteBinHex
-xmlUTF8Strlen
-xmlUTF8Strsize
-xmlUTF8Strsub
-
encoder
_xmlOutputBuffer
-_xmlParserInputBuffer
-xmlCharEncOutFunc
-xmlCharEncodingOutputFunc
-
encoder==NULL
xmlC14NDocSaveTo
-xmlC14NExecute
-
enconding
xmlCharEncCloseFunc
-xmlCharEncFirstLine
-xmlCharEncOutFunc
-
encountered
xmlEncodeEntities
-
encountering
XML_CAST_FPTR
-
end-tag
xmlParseElement
-
end-up
xmlParseReference
-
ended
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlCleanupThreads
-
ending
xmlXPtrNewCollapsedRange
-xmlXPtrNewRange
-xmlXPtrNewRangeNodeObject
-xmlXPtrNewRangeNodePoint
-xmlXPtrNewRangeNodes
-xmlXPtrNewRangePointNode
-xmlXPtrNewRangePoints
-
ends
_xmlParserNodeInfo
-xmlNanoHTTPClose
-
engine
xmlXPathAxisFunc
-xmlXPathFuncLookupFunc
-xmlXPathVariableLookupFunc
-
englobing
xmlExpExpDerive
-xmlExpSubsume
-xmlSnprintfElementContent
-xmlSprintfElementContent
-
enhancements
htmlNodeStatus
-
enough
xmlBuildQName
-
ensure
xmlCopyNodeList
-xmlNewTextChild
-
ensures
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-
ensuring
xmlDOMWrapRemoveNode
-
entire
xmlCleanupInputCallbacks
-xmlCleanupOutputCallbacks
-
entities:
xmlParseEntityRef
-xmlParserHandleReference
-
entproc
xmlParserHandlePEReference
-xmlParserHandleReference
-
entries
xmlACatalogAdd
-xmlACatalogRemove
-xmlCatalogAdd
-xmlCatalogConvert
-xmlCatalogRemove
-xmlConvertSGMLCatalog
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlHashAddEntry3
-xmlLoadACatalog
-xmlLoadCatalog
-xmlLoadSGMLSuperCatalog
-xmlMemShow
-
entry
xmlACatalogAdd
-xmlACatalogRemove
-xmlCatalogAdd
-xmlCatalogAddLocal
-xmlCatalogRemove
-xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-xmlXPathNodeSetRemove
-xmlXPtrLocationSetRemove
-
enumerated
attributeDecl
-attributeDeclSAXFunc
-xmlSAX2AttributeDecl
-
enumeration
_xmlAttribute
-xmlAddAttributeDecl
-xmlCopyEnumeration
-xmlCreateEnumeration
-xmlFreeEnumeration
-xmlParseAttributeType
-xmlParseEnumeratedType
-xmlParseEnumerationType
-
environment
xmlNanoFTPProxy
-xmlReconciliateNs
-xmlShell
-xmlXPathInit
-
epsilon
xmlAutomataNewAllTrans
-xmlAutomataNewCountedTrans
-xmlAutomataNewCounterTrans
-xmlAutomataNewEpsilon
-
equal
xmlAddChild
-xmlAddNextSibling
-xmlAddPrevSibling
-xmlDOMWrapCloneNode
-xmlStrEqual
-xmlStrQEqual
-xmlTextReaderConstName
-xmlTextReaderName
-xmlXPathCompareValues
-xmlXPathEqualValues
-xmlXPathEvalPredicate
-xmlXPathEvaluatePredicateResult
-xmlXPathIdFunction
-xmlXPathNotEqualValues
-xmlXPathPositionFunction
-xmlXPathSubstringFunction
-
equality
_xmlParserInput
-xmlListDataCompare
-
equivalent
xmlMallocAtomicLoc
-xmlMallocLoc
-xmlMemFree
-xmlMemMalloc
-xmlMemRealloc
-xmlMemStrdupLoc
-xmlMemoryStrdup
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlReallocLoc
-xmlUTF8Strpos
-xmlXPathCastToString
-xmlXPathConvertBoolean
-xmlXPathConvertNumber
-xmlXPathConvertString
-
errror
xmlDOMWrapNewCtxt
-
escape
docbEncodeEntities
-htmlEncodeEntities
-xmlURIEscape
-xmlURIEscapeStr
-
escaped
xmlNewChild
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlNewTextChild
-xmlParseCDSect
-xmlParseCharData
-xmlSaveUri
-xmlURIEscape
-xmlURIEscapeStr
-
escapes
xmlOutputBufferWriteEscape
-xmlURIEscapeStr
-
escaping
xmlOutputBufferWriteEscape
-xmlSaveSetAttrEscape
-xmlSaveSetEscape
-
especially
xmlExpParse
-
established
xmlNanoFTPUpdateURL
-
etc
_xmlSchemaFacet
-xmlDocGetRootElement
-xmlDocSetRootElement
-xmlParseInNodeContext
-
evaluate
xmlXPathEvalExpr
-
evaluated
xmlXPathEvalPredicate
-xmlXPathEvaluatePredicateResult
-xmlXPtrNewContext
-
evaluating
xmlXPathEvalPredicate
-xmlXPathEvaluatePredicateResult
-
evaluation
_xmlXPathFunct
-_xmlXPathParserContext
-valuePop
-valuePush
-xmlRegNewExecCtxt
-xmlShellPrintXPathResult
-xmlXPathCompiledEval
-xmlXPathEval
-xmlXPathEvalExpression
-xmlXPathEvalFunc
-xmlXPathEvalPredicate
-xmlXPathEvaluatePredicateResult
-xmlXPtrBuildNodeList
-xmlXPtrEval
-
evaulation
xmlRegFreeExecCtxt
-
even
_xmlParserInput
-xmlExpNewOr
-xmlExpNewRange
-xmlExpNewSeq
-xmlNodeGetBase
-xmlParseBalancedChunkMemoryRecover
-xmlTextWriterFullEndElement
-xmlXPathRoundFunction
-
events
htmlSAXParseDoc
-
ever
xmlExpCtxtNbCons
-
everywhere
xmlSAXParseFileWithData
-xmlSAXParseMemoryWithData
-
exact
xmlGetBufferAllocationScheme
-xmlSetBufferAllocationScheme
-
examined
xmlHasFeature
-
example
xmlParserInputBufferCreateStatic
-xmlReconciliateNs
-xmlTextReaderConstString
-xmlXPathSubstringAfterFunction
-xmlXPathSubstringBeforeFunction
-xmlXPathSubstringFunction
-xmlXPathTranslateFunction
-
examples
xmlBuildRelativeURI
-
except
xmlAutomataNewNegTrans
-xmlGetNoNsProp
-xmlParseAttValue
-xmlParseCatalogFile
-xmlParseEntityRef
-xmlParserHandleReference
-
exception
xmlURIEscapeStr
-
excluding
IS_CHAR
-xmlXPathNextFollowing
-xmlXPathNextPreceding
-
exclusions
XML_SCHEMAS_ELEM_FINAL_ABSENT
-
exclusions:
XML_SCHEMAS_ELEM_FINAL_EXTENSION
-XML_SCHEMAS_ELEM_FINAL_RESTRICTION
-
exclusive
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-
executed
xmlAutomataCompile
-
execution
xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlRegExecPushString
-xmlRegExecPushString2
-
exist
xmlHasFeature
-xmlXPtrLocationSetAdd
-
existent
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-
exists
xmlDictExists
-xmlShellPwd
-xmlTextReaderConstXmlLang
-xmlTextReaderXmlLang
-xmlValidateNotationDecl
-
expand
xmlLoadSGMLSuperCatalog
-
expanded
xmlRelaxNGValidateFullElement
-xmlSchemaNewStringValue
-xmlXPathNamespaceURIFunction
-
expected
x
-xmlBufferCreateStatic
-xmlParserInputBufferCreateStatic
-xmlRelaxNGNewMemParserCtxt
-xmlRelaxNGNewParserCtxt
-xmlSchemaNewMemParserCtxt
-xmlSchemaNewParserCtxt
-xmlSchemaValidateListSimpleTypeFacet
-xmlSchematronNewMemParserCtxt
-xmlSchematronNewParserCtxt
-xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-
experimental
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlDOMWrapRemoveNode
-
explicitly
xmlSAXDefaultVersion
-
explored
xmlXPathAxisFunc
-
exposing
xmlTextReaderRead
-
expressions
LIBXML_EXPR_ENABLED
-LIBXML_REGEXP_ENABLED
-xmlExpExpDerive
-xmlExpNewCtxt
-xmlExpParse
-xmlExpSubsume
-
exslSetsDistinctSorted
xmlXPathDistinct
-
exslSetsLeadingSorted
xmlXPathLeading
-
exslSetsNodeLeadingSorted
xmlXPathNodeLeading
-
ext
_xmlParserCtxt
-
extParsedEnt
xmlParseCtxtExternalEntity
-xmlParseEntity
-xmlParseExtParsedEnt
-xmlParseExternalEntity
-xmlSAXParseEntity
-
extSubset
xmlParseExternalSubset
-
extSubsetDecl
xmlParseExternalSubset
-
extend
xmlStrncat
-xmlValidGetPotentialChildren
-
extended
xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-xmlXPathNodeSetMerge
-xmlXPtrLocationSetMerge
-
extension
XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION
-XML_SCHEMAS_ELEM_FINAL_EXTENSION
-XML_SCHEMAS_FINAL_DEFAULT_EXTENSION
-XML_SCHEMAS_TYPE_BLOCK_EXTENSION
-XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION
-XML_SCHEMAS_TYPE_FINAL_EXTENSION
-
extensions
_xmlSAXHandler
-
extract
XML_GET_CONTENT
-XML_GET_LINE
-xmlBufferContent
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk15.html b/src/tools/docbook/libxml2/doc/APIchunk15.html deleted file mode 100644 index 4ac0a55acf..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk15.html +++ /dev/null @@ -1,431 +0,0 @@ - - -API Alphabetic Index f-f for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index f-f for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter f:

fTP
xmlNanoFTPConnectTo
-
facet
XML_SCHEMAS_FACET_COLLAPSE
-XML_SCHEMAS_FACET_PRESERVE
-XML_SCHEMAS_FACET_REPLACE
-XML_SCHEMAS_FACET_UNKNOWN
-_xmlSchemaFacetLink
-xmlSchemaCheckFacet
-xmlSchemaFreeFacet
-xmlSchemaGetFacetValueAsULong
-xmlSchemaIsBuiltInTypeFacet
-xmlSchemaValidateFacet
-xmlSchemaValidateFacetWhtsp
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-xmlSchemaValidateListSimpleTypeFacet
-
facets
XML_SCHEMAS_TYPE_FACETSNEEDVALUE
-XML_SCHEMAS_TYPE_HAS_FACETS
-XML_SCHEMAS_TYPE_NORMVALUENEEDED
-_xmlSchemaType
-xmlSchemaCheckFacet
-
facility
xmlExpCtxtNbCons
-xmlExpCtxtNbNodes
-
fail
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlShellPrintXPathError
-
failed
xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-xmlNanoFTPConnectTo
-xmlNanoFTPCwd
-xmlNanoFTPDele
-xmlRemoveID
-xmlRemoveRef
-xmlShellLoad
-xmlXIncludeProcess
-xmlXIncludeProcessFlags
-xmlXIncludeProcessNode
-xmlXIncludeProcessTree
-xmlXIncludeProcessTreeFlags
-xmlXPathCompareValues
-
fails
UTF8ToHtml
-UTF8Toisolat1
-_htmlElemDesc
-docbEncodeEntities
-htmlEncodeEntities
-xmlCanonicPath
-xmlCharEncFirstLine
-xmlCharEncInFunc
-xmlCharEncOutFunc
-xmlCheckFilename
-xmlFileOpen
-
fallback
XINCLUDE_FALLBACK
-docbSAXParseDoc
-docbSAXParseFile
-htmlSAXParseDoc
-htmlSAXParseFile
-xmlFileOpen
-xmlSAXParseDoc
-xmlSAXParseEntity
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-
far
_xmlParserCtxt
-fatalErrorSAXFunc
-
fashion
xmlNewRMutex
-
fast
htmlInitAutoClose
-
faster
htmlNodeStatus
-xmlStrEqual
-
fatal
fatalErrorSAXFunc
-
fatalError
fatalErrorSAXFunc
-
favor
xmlNewElementContent
-
feature
xmlGetFeature
-xmlGetFeaturesList
-xmlHasFeature
-xmlSetFeature
-
features
xmlGetFeaturesList
-
fed
xmlCreatePushParserCtxt
-xmlNewTextReader
-xmlNewTextReaderFilename
-xmlStreamPushNode
-xmlStreamWantsAnyNode
-
fetch
xmlNanoFTPGetSocket
-xmlNanoFTPOpen
-xmlNanoHTTPFetch
-
fetching
docbCreatePushParserCtxt
-htmlCreatePushParserCtxt
-xmlCreatePushParserCtxt
-xmlUTF8Strpos
-
field
XML_COMPLETE_ATTRS
-XML_CTXT_FINISH_DTD_0
-XML_CTXT_FINISH_DTD_1
-XML_DETECT_IDS
-XML_SKIP_IDS
-_xmlError
-xmlParseMisc
-xmlXPathOrderDocElems
-
fields
XML_SAX2_MAGIC
-_htmlElemDesc
-_xmlParserCtxt
-_xmlSAXHandler
-xmlParseURIReference
-
files
xmlNanoFTPList
-
filesystem
htmlCtxtReadFile
-htmlReadFile
-xmlCanonicPath
-xmlCtxtReadFile
-xmlReadFile
-xmlReaderForFile
-xmlReaderNewFile
-
filled
xmlGetFeaturesList
-
fills
xmlParseURIReference
-
filters
xmlParseEncodingDecl
-
final
XML_SCHEMAS_TYPE_FINAL_DEFAULT
-XML_SCHEMAS_TYPE_FINAL_EXTENSION
-XML_SCHEMAS_TYPE_FINAL_LIST
-XML_SCHEMAS_TYPE_FINAL_RESTRICTION
-XML_SCHEMAS_TYPE_FINAL_UNION
-xmlAutomataSetFinalState
-xmlBuildURI
-xmlRegExecPushString
-xmlRegExecPushString2
-xmlValidateDocumentFinal
-xmlValidateDtdFinal
-
finalDefault
XML_SCHEMAS_FINAL_DEFAULT_EXTENSION
-XML_SCHEMAS_FINAL_DEFAULT_LIST
-XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION
-XML_SCHEMAS_FINAL_DEFAULT_UNION
-
find
xmlGetThreadId
-xmlIsXHTML
-
finding
xmlNanoFTPScanProxy
-xmlNanoFTPUpdateURL
-xmlNanoHTTPScanProxy
-
finds
xmlSearchNs
-xmlSearchNsByHref
-
finishDtd
XML_CTXT_FINISH_DTD_0
-XML_CTXT_FINISH_DTD_1
-
finished
_xmlValidCtxt
-xmlCleanupParser
-xmlSkipBlankChars
-xmlTextReaderCurrentDoc
-xmlTextReaderPreserve
-xmlTextReaderPreservePattern
-
finishing
xmlByteConsumed
-
finite
xmlExpParse
-
firs
xmlCharEncOutFunc
-
fist
xmlEntityReferenceFunc
-
fit
xmlCharEncFirstLine
-xmlCharEncInFunc
-xmlCharEncOutFunc
-
fixed
XML_SCHEMAS_ATTR_FIXED
-XML_SCHEMAS_ELEM_FIXED
-xmlParseDefaultDecl
-xmlSchemaGetCanonValue
-
fixup
XML_SCHEMAS_TYPE_FIXUP_1
-
flag
XML_SCHEMAS_ELEM_CIRCULAR
-htmlSetMetaEncoding
-initxmlDefaultSAXHandler
-xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlSAX2InitDefaultSAXHandler
-xmlTextReaderIsValid
-
flagged
_htmlElemDesc
-htmlGetMetaEncoding
-
flags
XML_SCHEMAS_TYPE_VARIETY_ABSENT
-_xmlXPathContext
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlPatterncompile
-xmlReaderForDoc
-xmlReaderForFd
-xmlReaderForFile
-xmlReaderForIO
-xmlReaderForMemory
-xmlReaderNewDoc
-xmlReaderNewFd
-xmlReaderNewFile
-xmlReaderNewIO
-xmlReaderNewMemory
-xmlRelaxParserSetFlag
-xmlXIncludeSetFlags
-
flat
xmlStringGetNodeList
-xmlStringLenGetNodeList
-
floor
xmlXPathFloorFunction
-
flow
xmlScanName
-
flushes
xmlOutputBufferClose
-xmlOutputBufferFlush
-
follow
xmlAutomataNewNegTrans
-xmlXPathNodeTrailing
-xmlXPathNodeTrailingSorted
-xmlXPathSubstringFunction
-xmlXPathTrailing
-xmlXPathTrailingSorted
-
following-sibling
xmlXPathNextFollowingSibling
-
follows
xmlXPathStringFunction
-xmlXPathSubstringAfterFunction
-
follows:
xmlParseAttValue
-xmlXPathBooleanFunction
-xmlXPathStringFunction
-
fonctionnalities
xmlInputMatchCallback
-xmlOutputMatchCallback
-
for:
xmlSchemaGetCanonValue
-xmlXPathContextSetCache
-
forbid
XML_XPATH_NOVAR
-
force
xmlKeepBlanksDefault
-xmlSetGenericErrorFunc
-
forced
xmlValidGetValidElements
-
form
docbParseDoc
-docbParseFile
-docbSAXParseDoc
-docbSAXParseFile
-htmlCreateFileParserCtxt
-htmlParseDoc
-htmlParseFile
-htmlSAXParseDoc
-htmlSAXParseFile
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlPatterncompile
-xmlXPathStringFunction
-
formal
LIBXML_EXPR_ENABLED
-
formatted
xmlTextWriterWriteFormatAttribute
-xmlTextWriterWriteFormatAttributeNS
-xmlTextWriterWriteFormatCDATA
-xmlTextWriterWriteFormatDTD
-xmlTextWriterWriteFormatDTDAttlist
-xmlTextWriterWriteFormatDTDElement
-xmlTextWriterWriteFormatDTDInternalEntity
-xmlTextWriterWriteFormatElement
-xmlTextWriterWriteFormatElementNS
-xmlTextWriterWriteFormatPI
-xmlTextWriterWriteFormatRaw
-xmlTextWriterWriteFormatString
-xmlTextWriterWriteVFormatAttribute
-xmlTextWriterWriteVFormatAttributeNS
-xmlTextWriterWriteVFormatCDATA
-xmlTextWriterWriteVFormatDTD
-xmlTextWriterWriteVFormatDTDAttlist
-xmlTextWriterWriteVFormatDTDElement
-xmlTextWriterWriteVFormatDTDInternalEntity
-xmlTextWriterWriteVFormatElement
-xmlTextWriterWriteVFormatElementNS
-xmlTextWriterWriteVFormatPI
-xmlTextWriterWriteVFormatRaw
-xmlTextWriterWriteVFormatString
-
formatting
htmlDocContentDumpFormatOutput
-htmlDocDumpMemoryFormat
-htmlNodeDump
-htmlNodeDumpFile
-htmlNodeDumpFileFormat
-htmlNodeDumpFormatOutput
-htmlNodeDumpOutput
-htmlSaveFileEnc
-htmlSaveFileFormat
-xmlDocDumpFormatMemory
-xmlDocDumpFormatMemoryEnc
-xmlDocFormatDump
-xmlNodeDump
-xmlNodeDumpOutput
-xmlSaveFormatFile
-xmlSaveFormatFileEnc
-xmlSaveFormatFileTo
-xmlStrPrintf
-xmlStrVPrintf
-
formed
_xmlParserCtxt
-htmlSAXParseDoc
-htmlSAXParseFile
-xmlParseCtxtExternalEntity
-xmlParseExternalEntity
-
fptr
XML_CAST_FPTR
-
fragment
_xmlURI
-xmlNewDocFragment
-xmlParseURI
-xmlParseURIRaw
-xmlParseURIReference
-xmlPushInput
-
fragments
xmlParseURIRaw
-
freeing
xmlCanonicPath
-xmlParserInputDeallocate
-
frees
xmlBufferFree
-xmlXPathContextSetCache
-
front
xmlValidateNCName
-xmlValidateNMToken
-xmlValidateName
-xmlValidateQName
-
front-end
xmlCharEncCloseFunc
-xmlCharEncInFunc
-xmlCharEncOutFunc
-
ftp:
xmlNanoFTPOpen
-xmlNanoFTPScanProxy
-
ftp_proxy
xmlNanoFTPProxy
-
ftp_proxy_password
xmlNanoFTPProxy
-
ftp_proxy_user
xmlNanoFTPProxy
-
full
_xmlEntity
-_xmlXPathParserContext
-htmlAttrAllowed
-xlinkIsLink
-xmlHashScannerFull
-xmlRelaxNGValidateFullElement
-xmlRelaxNGValidatePushElement
-xmlSaveDoc
-xmlShellPwd
-xmlSplitQName2
-xmlSplitQName3
-xmlTextReaderExpand
-xmlURIUnescapeString
-xmlUTF8Strlen
-
fully
_htmlElemDesc
-xmlSaveDoc
-xmlSaveTree
-
func
_xmlXPathContext
-
funcs
_xmlXPathContext
-
function:
xmlXPathDifference
-xmlXPathDistinct
-xmlXPathDistinctSorted
-xmlXPathHasSameNodes
-xmlXPathIntersection
-xmlXPathLeading
-xmlXPathLeadingSorted
-xmlXPathNodeLeading
-xmlXPathNodeLeadingSorted
-xmlXPathNodeTrailing
-xmlXPathNodeTrailingSorted
-xmlXPathTrailing
-xmlXPathTrailingSorted
-
functionality
xmlNewGlobalNs
-xmlXPathNodeSetGetLength
-xmlXPathNodeSetItem
-
functions
htmlCtxtReadIO
-htmlReadIO
-xmlC14NDocDumpMemory
-xmlCtxtReadIO
-xmlGcMemGet
-xmlGcMemSetup
-xmlMemGet
-xmlMemSetup
-xmlReadIO
-xmlReaderForIO
-xmlReaderNewIO
-xmlRelaxNGGetValidErrors
-xmlRelaxNGSetParserErrors
-xmlRelaxNGSetParserStructuredErrors
-xmlRelaxNGSetValidErrors
-xmlRelaxNGSetValidStructuredErrors
-xmlSchemaSetParserErrors
-xmlSchemaSetParserStructuredErrors
-xmlShellCmd
-xmlSwitchEncoding
-xmlSwitchInputEncoding
-xmlSwitchToEncoding
-xmlXPathRegisterAllFunctions
-xmlXPathRegisteredFuncsCleanup
-
further
xmlParseAttValue
-xmlStopParser
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-xmlXIncludeSetFlags
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk16.html b/src/tools/docbook/libxml2/doc/APIchunk16.html deleted file mode 100644 index 5585cd581d..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk16.html +++ /dev/null @@ -1,352 +0,0 @@ - - -API Alphabetic Index g-h for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index g-h for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter g:

gDay
xmlSchemaGetCanonValue
-
gMonth
xmlSchemaGetCanonValue
-
gMonthDay
xmlSchemaGetCanonValue
-
gYear
xmlSchemaGetCanonValue
-
gYearMonth
xmlSchemaGetCanonValue
-
garanteed
xmlUTF8Strsize
-
garbage
xmlGcMemGet
-xmlGcMemSetup
-
gcc
XML_CAST_FPTR
-
gcc4
XML_CAST_FPTR
-
genChRanges
xmlIsBaseCharQ
-xmlIsBaseChar_ch
-xmlIsBlankQ
-xmlIsBlank_ch
-xmlIsCharQ
-xmlIsChar_ch
-xmlIsCombiningQ
-xmlIsDigitQ
-xmlIsDigit_ch
-xmlIsExtenderQ
-xmlIsExtender_ch
-xmlIsIdeographicQ
-xmlIsPubidCharQ
-xmlIsPubidChar_ch
-
general
XML_SUBSTITUTE_BOTH
-XML_SUBSTITUTE_REF
-xmlCharEncFirstLine
-xmlCharEncInFunc
-xmlCharEncOutFunc
-xmlParseCtxtExternalEntity
-xmlParseEntityRef
-xmlParseExtParsedEnt
-xmlParseExternalEntity
-
generally
xmlSAXDefaultVersion
-
generate
xmlDocDumpFormatMemoryEnc
-xmlDocDumpMemoryEnc
-xmlHashAddEntry
-xmlHashAddEntry2
-xmlHashAddEntry3
-xmlLoadExternalEntity
-xmlParseExternalID
-
generated
xmlDocDumpFormatMemoryEnc
-xmlDocDumpMemoryEnc
-xmlIsBaseCharQ
-xmlIsBaseChar_ch
-xmlIsBlankQ
-xmlIsBlank_ch
-xmlIsCharQ
-xmlIsChar_ch
-xmlIsCombiningQ
-xmlIsDigitQ
-xmlIsDigit_ch
-xmlIsExtenderQ
-xmlIsExtender_ch
-xmlIsIdeographicQ
-xmlIsPubidCharQ
-xmlIsPubidChar_ch
-xmlKeepBlanksDefault
-xmlSearchNs
-xmlShellPrintXPathResult
-xmlTextReaderIsDefault
-
generates
xmlRegexpExec
-
generating
xmlDocDumpFormatMemoryEnc
-xmlDocDumpMemoryEnc
-xmlExpExpDerive
-xmlKeepBlanksDefault
-xmlRegExecErrInfo
-
generic
initGenericErrorDefaultFunc
-xmlShellCmd
-xmlShellReadlineFunc
-
get
_xmlSAXHandler
-_xmlSAXHandlerV1
-fatalErrorSAXFunc
-xmlBufferLength
-xmlCatalogGetDefaults
-xmlGetCompressMode
-xmlGetDocCompressMode
-xmlGetNoNsProp
-xmlGetNsProp
-xmlGetProp
-xmlNamespaceParseQName
-xmlNanoFTPInit
-xmlNewPI
-xmlSplitQName
-xmlSplitQName2
-xmlTextReaderCurrentDoc
-xmlTextReaderCurrentNode
-xmlTextReaderGetParserProp
-xmlTextReaderGetRemainder
-xmlValidateNotationDecl
-
gif
xmlBuildRelativeURI
-
give
_xmlParserInput
-_xmlSchema
-xmlValidateDtd
-
gives
xmlParserError
-xmlParserValidityError
-xmlParserValidityWarning
-xmlParserWarning
-
giving
xmlNewDoc
-xmlParseVersionNum
-
global
XML_SCHEMAS_ELEM_GLOBAL
-XML_SCHEMAS_TYPE_GLOBAL
-_xmlNs
-globalNamespace
-xmlCatalogDump
-xmlCleanupParser
-xmlCtxtResetLastError
-xmlEncodeEntitiesReentrant
-xmlEncodeSpecialChars
-xmlGetGlobalState
-xmlGetLastError
-xmlInitializeGlobalState
-xmlResetLastError
-
globally
xmlSAXDefaultVersion
-
good
xmlTextReaderGetRemainder
-
grafted
xmlCopyProp
-xmlCopyPropList
-
grammar:
xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseInNodeContext
-
greater
xmlXPathCompareValues
-xmlXPathFloorFunction
-xmlXPathSubstringFunction
-
greater-than
xmlNewTextChild
-
group
XML_SCHEMAS_ATTRGROUP_HAS_REFS
-XML_SCHEMAS_ATTRGROUP_MARKED
-XML_SCHEMAS_ATTRGROUP_REDEFINED
-XML_SCHEMAS_ELEM_FINAL_ABSENT
-XML_SCHEMAS_ELEM_FINAL_EXTENSION
-XML_SCHEMAS_ELEM_FINAL_RESTRICTION
-XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD
-_xmlSchemaAttributeGroup
-_xmlSchemaElement
-ftpListCallback
-
groups
xmlParseElementChildrenContentDecl
-
grow
xmlValidGetValidElements
-
grows
xmlBufferWriteCHAR
-xmlBufferWriteChar
-xmlBufferWriteQuotedString
-

Letter h:

had
xmlNewGlobalNs
-
hand
xmlLoadACatalog
-
handled
xmlLoadACatalog
-xmlParseAttValue
-xmlParseAttribute
-xmlParseDefaultDecl
-xmlParseElementContentDecl
-xmlParsePEReference
-xmlParserHandlePEReference
-
handlers
xlinkSetDefaultHandler
-xmlCleanupCharEncodingHandlers
-xmlRegisterDefaultInputCallbacks
-xmlRegisterDefaultOutputCallbacks
-xmlTextReaderSetErrorHandler
-xmlTextReaderSetStructuredErrorHandler
-
handles
xmlSaveFileTo
-xmlSaveFormatFileTo
-xmlStructuredErrorFunc
-xmlUnsetProp
-xmlXPathStringEvalNumber
-
handling
XML_SCHEMAS_FACET_UNKNOWN
-attribute
-attributeSAXFunc
-htmlHandleOmittedElem
-xmlHandleEntity
-xmlNamespaceParseNCName
-xmlNamespaceParseNSDef
-xmlNamespaceParseQName
-xmlNodeListGetRawString
-xmlOutputBufferCreateFilenameDefault
-xmlParserHandlePEReference
-xmlParserHandleReference
-xmlParserInputBufferCreateFilenameDefault
-xmlRegNewExecCtxt
-xmlRegisterInputCallbacks
-xmlRegisterOutputCallbacks
-xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-xmlXPathPopBoolean
-xmlXPathPopExternal
-xmlXPathPopNodeSet
-xmlXPathPopNumber
-xmlXPathPopString
-
has-same-nodes
xmlXPathHasSameNodes
-
haystack
xmlStrcasestr
-xmlStrstr
-xmlStrsub
-
head
XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD
-
header
xmlNanoHTTPAuthHeader
-xmlNanoHTTPContentLength
-xmlNanoHTTPRedir
-xmlParseTextDecl
-xmlParseXMLDecl
-
headers
xmlNanoHTTPEncoding
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlNanoHTTPMimeType
-
heading
xmlCharEncodingOutputFunc
-
helper
XML_SCHEMAS_ELEM_CIRCULAR
-
here
_xmlXPathContext
-htmlNodeStatus
-xmlParseAttValue
-xmlParseElementContentDecl
-xmlParseNamespace
-xmlXPathNextAncestorOrSelf
-
heuristic
xmlKeepBlanksDefault
-xmlURIEscape
-
heuristic:
xmlIsRef
-
hex
xmlURIEscapeStr
-
hierarchy
xmlParseElementChildrenContentDecl
-xmlSchemaGetBuiltInListSimpleTypeItemType
-
highly
htmlParseElement
-xmlParseElement
-
hold
xmlDOMWrapReconcileNamespaces
-xmlNewTextWriterDoc
-xmlNewTextWriterPushParser
-xmlReconciliateNs
-
holding
_xmlAttribute
-_xmlID
-_xmlRef
-xmlAddID
-xmlAddRef
-xmlNewNsProp
-xmlNewNsPropEatName
-xmlNewProp
-
holds
xmlBufferWriteQuotedString
-
host
xmlNanoFTPProxy
-xmlNanoFTPScanProxy
-xmlNanoFTPUpdateURL
-xmlNanoHTTPScanProxy
-
hosting
xmlXPathFuncLookupFunc
-xmlXPathNodeSetAddNs
-xmlXPathVariableLookupFunc
-
hostname
xmlNanoFTPInit
-xmlNanoFTPUpdateURL
-
hour
ftpListCallback
-
how
_xmlError
-
href
XINCLUDE_HREF
-
href==NULL
xmlNewNs
-
hrefs
xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-
html
xmlBuildRelativeURI
-xmlTextReaderNodeType
-
htmlAttrAllowed
htmlNodeStatus
-
htmlElemDescPtr
htmlTagLookup
-
htmlElementAllowedHere
htmlNodeStatus
-
htmlElementStatusHere
htmlNodeStatus
-
htmlEntityDescPtr
htmlEntityLookup
-htmlEntityValueLookup
-htmlParseEntityRef
-
htmlNodePtr
htmlNodeStatus
-
htmlParserOption
htmlCtxtReadDoc
-htmlCtxtReadFd
-htmlCtxtReadFile
-htmlCtxtReadIO
-htmlCtxtReadMemory
-htmlCtxtUseOptions
-htmlReadDoc
-htmlReadFd
-htmlReadFile
-htmlReadIO
-htmlReadMemory
-
htmlStartClose
htmlAutoCloseTag
-htmlIsAutoClosed
-
htmlStartCloseIndex
htmlInitAutoClose
-
http:
XINCLUDE_NS
-XINCLUDE_OLD_NS
-getSystemId
-xmlBuildRelativeURI
-xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlGetCharEncodingName
-xmlNanoHTTPScanProxy
-xmlParserHandlePEReference
-xmlParserHandleReference
-xmlSAX2GetSystemId
-xmlSchemaGetPredefinedType
-xmlTextReaderNodeType
-xmlXPathIsInf
-xmlXPathIsNaN
-
human-readable
_xmlError
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk17.html b/src/tools/docbook/libxml2/doc/APIchunk17.html deleted file mode 100644 index 071403e871..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk17.html +++ /dev/null @@ -1,544 +0,0 @@ - - -API Alphabetic Index i-i for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index i-i for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter i:

iconv
LIBXML_ICONV_ENABLED
-LIBXML_ISO8859X_ENABLED
-
identify
xmlParseAttributeType
-
identity-constraint
_xmlSchema
-_xmlSchemaElement
-
ignorable
ignorableWhitespace
-ignorableWhitespaceSAXFunc
-xmlIsBlankNode
-xmlKeepBlanksDefault
-xmlSAX2IgnorableWhitespace
-
ignorableWhitespace
xmlKeepBlanksDefault
-
ignored
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-
ignoring
xmlURIEscapeStr
-
image
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-
imbrication
xmlNodeDump
-xmlNodeDumpOutput
-
img
xmlBuildRelativeURI
-
immediately
xmlCheckVersion
-xmlOutputBufferWrite
-xmlOutputBufferWriteEscape
-xmlOutputBufferWriteString
-xmlXPathStringFunction
-
immutable
xmlBufferCreateStatic
-xmlParserInputBufferCreateStatic
-
implementation
xmlFreeFunc
-xmlMallocFunc
-xmlReallocFunc
-xmlStrdupFunc
-xmlTextReaderGetRemainder
-xmlXPathRegisterFunc
-xmlXPathRegisterFuncNS
-
implementation-defined
xmlXPathNextNamespace
-
implemented
HTML_COMMENT_NODE
-HTML_ENTITY_REF_NODE
-HTML_PI_NODE
-HTML_PRESERVE_NODE
-HTML_TEXT_NODE
-xmlModuleOpen
-xmlSaveDoc
-xmlSaveTree
-xmlSchemaCopyValue
-xmlTextReaderNextSibling
-
implicitly
htmlAutoCloseTag
-htmlIsAutoClosed
-
implied
_htmlElemDesc
-
impossible
xmlURIEscape
-
improves
xmlGetBufferAllocationScheme
-xmlSetBufferAllocationScheme
-
in-
xmlParserInputBufferGrow
-
in-extenso
xmlMemDisplay
-xmlMemoryDump
-
in-memory
_xmlDoc
-_xmlParserCtxt
-docbParseDoc
-docbSAXParseDoc
-htmlCreateMemoryParserCtxt
-htmlCtxtReadDoc
-htmlCtxtReadMemory
-htmlParseDoc
-htmlReadDoc
-htmlReadMemory
-htmlSAXParseDoc
-xmlCreateDocParserCtxt
-xmlCreateMemoryParserCtxt
-xmlCtxtReadDoc
-xmlCtxtReadMemory
-xmlParseDoc
-xmlParseMemory
-xmlReadDoc
-xmlReadMemory
-xmlReaderForDoc
-xmlReaderForMemory
-xmlReaderNewDoc
-xmlReaderNewMemory
-xmlRecoverDoc
-xmlRecoverMemory
-xmlSAXParseDoc
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-xmlSAXUserParseMemory
-
incase
xmlNanoFTPClose
-xmlNanoFTPCloseConnection
-xmlNanoFTPCwd
-xmlNanoFTPDele
-xmlNanoFTPGet
-xmlNanoFTPGetConnection
-xmlNanoFTPList
-xmlNanoHTTPFetch
-xmlNanoHTTPSave
-
incl
_xmlSchemaType
-
include
XINCLUDE_NODE
-xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlCheckVersion
-xmlListMerge
-
include:
xmlBuildRelativeURI
-
included
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlDocDumpMemory
-xmlFreeDoc
-xmlNanoHTTPContentLength
-xmlParseNotationType
-
includes
_xmlSchema
-xmlCleanupInputCallbacks
-xmlCleanupOutputCallbacks
-xmlPopInputCallbacks
-xmlXIncludeProcessFlags
-xmlXIncludeProcessTreeFlags
-xmlXIncludeSetFlags
-
including
XML_SCHEMAS_INCLUDING_CONVERT_NS
-attribute
-attributeSAXFunc
-ftpListCallback
-startElement
-startElementSAXFunc
-xmlSAX2StartElement
-xmlTextReaderReadInnerXml
-xmlTextReaderReadOuterXml
-xmlXPathStringFunction
-
inclusive
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-
increase
xmlParserInputGrow
-
increment
xmlAutomataNewCountedTrans
-
incremental
xmlValidateDocumentFinal
-
indent
xmlTextWriterSetIndent
-
indentation
xmlDebugDumpAttr
-xmlDebugDumpAttrList
-xmlDebugDumpNode
-xmlDebugDumpNodeList
-xmlDebugDumpOneNode
-xmlKeepBlanksDefault
-xmlTextWriterSetIndent
-xmlTextWriterSetIndentString
-xmlXPathDebugDumpCompExpr
-xmlXPathDebugDumpObject
-
indentation?
xmlTextWriterSetIndent
-
indented
xmlSaveFormatFile
-
indenting
xmlDocDumpFormatMemory
-xmlDocDumpFormatMemoryEnc
-xmlDocFormatDump
-xmlNodeDump
-xmlNodeDumpOutput
-xmlSaveFormatFile
-xmlSaveFormatFileEnc
-
independently
xmlGetProp
-xmlParseAttribute
-
index
index
-inputPush
-namePush
-nodePush
-xmlByteConsumed
-xmlParserFindNodeInfoIndex
-xmlStrsub
-xmlTextReaderByteConsumed
-xmlTextReaderGetAttributeNo
-xmlTextReaderMoveToAttributeNo
-xmlXPathNodeSetRemove
-xmlXPtrLocationSetRemove
-xmlXPtrNewRange
-
indicate
xmlParseExternalID
-xmlParserInputGrow
-xmlParserInputRead
-xmlRegExecPushString
-xmlRegExecPushString2
-xmlURIUnescapeString
-
indicated
xmlNanoHTTPFetch
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-
indicates
XML_SCHEMAS_TYPE_FACETSNEEDVALUE
-XML_SCHEMAS_TYPE_INTERNAL_INVALID
-XML_SCHEMAS_TYPE_INTERNAL_RESOLVED
-XML_SCHEMAS_TYPE_NORMVALUENEEDED
-xmlHasNsProp
-xmlNanoFTPRead
-xmlNanoFTPScanProxy
-xmlNanoFTPUpdateURL
-xmlNanoHTTPContentLength
-xmlNanoHTTPRead
-xmlNanoHTTPScanProxy
-
indicating
xmlParseCharData
-xmlParserFindNodeInfoIndex
-xmlShellCmd
-xmlTextReaderNormalization
-xmlXPathAxisFunc
-
indication
xmlNanoFTPRead
-xmlNanoHTTPRead
-
indicative
xmlParserInputBufferGrow
-xmlParserInputBufferRead
-xmlParserInputGrow
-xmlParserInputRead
-
indicator
docbParseChunk
-htmlParseChunk
-xmlParseChunk
-
indirect
xmlParseAttribute
-
indirectly
xmlParseAttribute
-xmlParsePEReference
-xmlParserHandlePEReference
-
infinite
xmlExpExpDerive
-xmlExpNewRange
-xmlExpParse
-
infinity
xmlXPathCeilingFunction
-xmlXPathFloorFunction
-xmlXPathStringFunction
-
info
_xmlParserCtxt
-xmlCharEncodingOutputFunc
-xmlClearNodeInfoSeq
-xmlCopyDoc
-xmlInitNodeInfoSeq
-xmlMallocAtomicLoc
-xmlMallocLoc
-xmlMemMalloc
-xmlMemRealloc
-xmlMemStrdupLoc
-xmlMemoryStrdup
-xmlNanoFTPList
-xmlParserAddNodeInfo
-xmlParserFindNodeInfo
-xmlParserFindNodeInfoIndex
-xmlReallocLoc
-
information
LIBXML_VERSION_EXTRA
-_xmlError
-xmlDebugDumpAttr
-xmlDebugDumpAttrList
-xmlDebugDumpDTD
-xmlDebugDumpDocument
-xmlDebugDumpDocumentHead
-xmlDebugDumpEntities
-xmlDebugDumpNode
-xmlDebugDumpNodeList
-xmlDebugDumpOneNode
-xmlNanoFTPUpdateURL
-xmlNanoHTTPFetch
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-xmlNewTextReader
-xmlRelaxNGGetParserErrors
-xmlSchemaGetParserErrors
-xmlTextReaderByteConsumed
-xmlXPathOrderDocElems
-
informations
_xmlAttr
-_xmlDoc
-_xmlNode
-_xmlParserCtxt
-endElementNsSAX2Func
-startElementNsSAX2Func
-xmlDebugDumpString
-xmlErrMemory
-xmlNanoFTPCleanup
-xmlNanoFTPInit
-xmlNanoFTPProxy
-xmlNanoFTPScanProxy
-xmlNanoHTTPInit
-xmlNanoHTTPScanProxy
-xmlParserPrintFileInfo
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlRelaxNGGetValidErrors
-xmlRelaxNGSetValidErrors
-xmlRelaxParserSetFlag
-xmlSAX2EndElementNs
-xmlSAX2StartElementNs
-xmlShellDir
-xmlXIncludeProcessNode
-
informative
_xmlError
-
infos
_xmlParserCtxt
-
inherited
_xmlParserCtxt
-_xmlSchemaType
-xmlEntityReferenceFunc
-xmlNodeGetSpacePreserve
-xmlXPathNextAttribute
-
inheriting
xmlDictCreateSub
-
inherits
xmlNewChild
-xmlNewTextChild
-
initial
_xmlDoc
-_xmlSchemaAttribute
-xmlAutomataGetInitState
-xmlBufferCreateSize
-xmlInitNodeInfoSeq
-xmlMemRealloc
-xmlMemStrdupLoc
-xmlMemoryStrdup
-xmlReallocLoc
-xmlShell
-xmlXPathNodeSetAdd
-xmlXPathNodeSetAddNs
-xmlXPathNodeSetAddUnique
-xmlXPathNodeSetCreate
-xmlXPathNodeSetDel
-xmlXPathNodeSetRemove
-xmlXPtrLocationSetAdd
-xmlXPtrLocationSetCreate
-xmlXPtrLocationSetDel
-xmlXPtrLocationSetRemove
-
initialisation
xmlInitGlobals
-
initialization
xmlInitializeCatalog
-xmlLoadCatalog
-xmlLoadCatalogs
-xmlSAXDefaultVersion
-
initialize
XML_COMPLETE_ATTRS
-XML_DETECT_IDS
-XML_SKIP_IDS
-htmlNewDocNoDtD
-xmlCharEncodingOutputFunc
-xmlCreateEntitiesTable
-xmlCreateEnumeration
-xmlInitThreads
-xmlInitializeGlobalState
-xmlNanoFTPNewCtxt
-xmlNanoFTPScanProxy
-xmlNanoHTTPScanProxy
-xmlNewParserCtxt
-xmlXPathNewNodeSet
-xmlXPathNewNodeSetList
-xmlXPathNewValueTree
-xmlXPtrNewLocationSetNodeSet
-xmlXPtrNewLocationSetNodes
-
initialized
XML_SAX2_MAGIC
-
initializes
xmlDOMWrapNewCtxt
-
initiate
xmlCharEncOutFunc
-
initiated
xmlXPtrNewContext
-
inline
_htmlElemDesc
-
inlined
resolveEntity
-resolveEntitySAXFunc
-xmlSAX2ResolveEntity
-
inputs
_xmlParserCtxt
-
insensitive
xmlParseCharEncoding
-
insert
xmlValidGetValidElements
-
inserted
xmlAddNextSibling
-xmlAddPrevSibling
-xmlAddSibling
-xmlReplaceNode
-xmlValidGetValidElements
-
insertion
htmlHandleOmittedElem
-xmlValidGetValidElements
-
inspect
xmlXPathDebugDumpObject
-
instace
xmlSchematronValidateDoc
-
installed
xmlDictSize
-xmlHashSize
-
instances
_xmlParserInput
-xmlParseDefaultDecl
-xmlRelaxNGParse
-xmlSchemaParse
-xmlSchematronParse
-
instead
XML_SCHEMAS_ELEM_TOPLEVEL
-xmlAddChild
-xmlAddNextSibling
-xmlAddPrevSibling
-xmlCopyElementContent
-xmlFreeElementContent
-xmlIsBaseChar
-xmlIsBlank
-xmlIsChar
-xmlIsCombining
-xmlIsDigit
-xmlIsExtender
-xmlIsIdeographic
-xmlIsPubidChar
-xmlKeepBlanksDefault
-xmlRegisterHTTPPostCallbacks
-xmlSaveDoc
-xmlSaveTree
-xmlSubstituteEntitiesDefault
-xmlXPtrEvalRangePredicate
-
instruction
HTML_PI_NODE
-processingInstruction
-processingInstructionSAXFunc
-xmlNewDocPI
-xmlNewPI
-xmlSAX2ProcessingInstruction
-
insufficient
xmlCanonicPath
-
intact
xmlParseURIRaw
-
integer
xmlStrcasecmp
-xmlStrcmp
-xmlStrncasecmp
-xmlStrncmp
-xmlXPathCeilingFunction
-xmlXPathFloorFunction
-xmlXPathRoundFunction
-xmlXPathStringFunction
-
intended
xmlSchemaNewStringValue
-
interact
xmlParseExternalID
-
interface
LIBXML_PATTERN_ENABLED
-LIBXML_READER_ENABLED
-LIBXML_SAX1_ENABLED
-LIBXML_WRITER_ENABLED
-_xmlParserCtxt
-docbParseDocument
-htmlParseDocument
-xmlParseDocument
-xmlParseReference
-xmlTextReaderCurrentDoc
-xmlTextReaderCurrentNode
-
interfaces
LIBXML_AUTOMATA_ENABLED
-LIBXML_EXPR_ENABLED
-LIBXML_MODULES_ENABLED
-LIBXML_PUSH_ENABLED
-LIBXML_REGEXP_ENABLED
-LIBXML_SCHEMAS_ENABLED
-LIBXML_SCHEMATRON_ENABLED
-LIBXML_UNICODE_ENABLED
-xmlNamespaceParseNCName
-xmlNamespaceParseNSDef
-xmlNamespaceParseQName
-
intern
xmlTextReaderConstString
-
internally
xmlBufferWriteQuotedString
-xmlExpNewCtxt
-xmlRelaxNGNewDocParserCtxt
-xmlRemoveID
-xmlRemoveRef
-xmlXPathContextSetCache
-
interned
xmlPatterncompile
-xmlTextReaderConstString
-
interning
xmlCopyNodeList
-xmlNewPI
-
interoperability
xmlParseElementChildrenContentDecl
-
interprestation
xmlXPathFunction
-
interpreter
xmlXPathAxisFunc
-
intersection
xmlXPathIntersection
-
invalid
XML_SCHEMAS_TYPE_INTERNAL_INVALID
-xmlReconciliateNs
-xmlValidateDtdFinal
-
invited
xmlValidGetValidElements
-
invoking
xmlGetLineNo
-
isinf
xmlXPathIsInf
-
isn
xmlRegisterCharEncodingHandler
-xmlXPathCastToString
-
isnan
xmlXPathIsNaN
-
issue
xmlEncodeEntities
-
issued
xlinkIsLink
-
item
XML_SCHEMAS_TYPE_BLOCK_DEFAULT
-XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE
-XML_SCHEMAS_TYPE_MARKED
-_xmlXPathContext
-xmlHashRemoveEntry
-xmlHashRemoveEntry2
-xmlHashRemoveEntry3
-xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-xmlNanoFTPDele
-xmlSchemaGetBuiltInListSimpleTypeItemType
-xmlXPathNodeSetItem
-
items
valuePush
-xmlHashCopy
-xmlHashFree
-xmlHashScan
-xmlHashScan3
-xmlHashScanFull
-xmlHashScanFull3
-xmlSchemaValidateListSimpleTypeFacet
-
itself
_xmlDoc
-xlinkIsLink
-xmlCharEncFirstLine
-xmlParsePEReference
-xmlParserHandlePEReference
-xmlXPathNextSelf
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk18.html b/src/tools/docbook/libxml2/doc/APIchunk18.html deleted file mode 100644 index 60efc29dec..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk18.html +++ /dev/null @@ -1,426 +0,0 @@ - - -API Alphabetic Index j-l for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index j-l for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter j:

just
htmlSetMetaEncoding
-inputPop
-namePop
-nodePop
-valuePop
-xmlCopyEnumeration
-xmlCreateEntitiesTable
-xmlCreateEnumeration
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlHandleEntity
-xmlNanoFTPInit
-xmlNanoHTTPInit
-xmlSnprintfElementContent
-xmlTextReaderByteConsumed
-xmlXPathNewContext
-xmlXPathNewParserContext
-xmlXPathNextSelf
-xmlXPtrNewContext
-

Letter k:

keep
xmlExpNewOr
-xmlExpNewRange
-xmlExpNewSeq
-xmlParseURIRaw
-xmlParserInputGrow
-xmlSubstituteEntitiesDefault
-xmlTextReaderPreserve
-xmlTextReaderPreservePattern
-xmlXPathNextNamespace
-
keeps
xmlGetBufferAllocationScheme
-xmlSetBufferAllocationScheme
-
kept
_xmlParserCtxt
-_xmlXPathContext
-htmlAutoCloseTag
-htmlIsAutoClosed
-xmlKeepBlanksDefault
-xmlXPathOrderDocElems
-
keyword
xmlParseDefaultDecl
-
kill
xmlCheckVersion
-
kind
_xmlSchemaAttributeGroup
-_xmlSchemaElement
-_xmlSchemaFacet
-_xmlSchemaNotation
-_xmlSchemaType
-_xmlSchemaWildcard
-
know
BAD_CAST
-
knowledge
htmlAttrAllowed
-
known
_xmlParserInput
-xmlAllocParserInputBuffer
-xmlCreateIOParserCtxt
-xmlIOParseDTD
-xmlNewIOInputStream
-xmlOutputBufferCreateIO
-xmlParseCharEncoding
-xmlParserInputBufferCreateFd
-xmlParserInputBufferCreateFile
-xmlParserInputBufferCreateFilename
-xmlParserInputBufferCreateIO
-xmlParserInputBufferCreateMem
-xmlParserInputBufferCreateStatic
-

Letter l:

labeled
xmlParseCtxtExternalEntity
-xmlParseExtParsedEnt
-xmlParseExternalEntity
-
lack
xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-xmlMallocAtomicLoc
-xmlMallocLoc
-xmlMemMalloc
-xmlMemRealloc
-xmlReallocLoc
-
lang
xmlNodeGetLang
-xmlXPathLangFunction
-
language
xmlNodeGetLang
-xmlNodeSetLang
-xmlXPathLangFunction
-
languages
xmlExpExpDerive
-xmlExpGetStart
-xmlExpSubsume
-
large
_xmlParserCtxt
-_xmlParserInput
-
largest
xmlXPathFloorFunction
-
later
xmlHashAddEntry
-xmlHashAddEntry2
-xmlHashAddEntry3
-xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-xmlKeepBlanksDefault
-xmlParseAttValue
-
latest
xmlNanoHTTPReturnCode
-
layer
xmlChildrenNode
-xmlInitMemory
-xmlNanoFTPCleanup
-xmlNanoFTPInit
-xmlNanoHTTPCleanup
-xmlNanoHTTPInit
-xmlRootNode
-xmlSaveFileTo
-xmlSaveFormatFileTo
-
leading
xmlParseAttValue
-xmlParseElementChildrenContentDecl
-xmlParseElementMixedContentDecl
-xmlParseNotationType
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-xmlXPathLeading
-xmlXPathLeadingSorted
-xmlXPathNodeLeading
-xmlXPathNodeLeadingSorted
-xmlXPathNormalizeFunction
-xmlXPathStringFunction
-
least
xmlDetectCharEncoding
-xmlXPathStringFunction
-
left
xmlExpNewOr
-xmlExpNewSeq
-xmlTextReaderGetRemainder
-
legacy
htmlNodeStatus
-
len
xmlBufferAdd
-xmlBufferAddHead
-xmlCharStrndup
-xmlDecodeEntities
-xmlExpStringDerive
-xmlGetFeaturesList
-xmlGetUTF8Char
-xmlNewDocTextLen
-xmlNewTextLen
-xmlSplitQName3
-xmlStrncat
-xmlStrncatNew
-xmlStrndup
-xmlUTF8Strndup
-xmlUTF8Strsize
-
lenght
xmlExpGetLanguage
-xmlExpGetStart
-xmlExpNewAtom
-xmlRelaxNGValidatePushCData
-xmlSplitQName3
-xmlValidatePushCData
-
length-1
xmlXPathNodeSetItem
-
less
xmlExpExpDerive
-xmlSaveToFilename
-xmlXPathCeilingFunction
-xmlXPathCompareValues
-xmlXPathSubstringFunction
-
less-than
xmlNewTextChild
-
level
XML_SCHEMAS_ELEM_TOPLEVEL
-_xmlDoc
-xmlC14NDocSave
-xmlCatalogSetDebug
-xmlCleanupMemory
-xmlDebugDumpAttr
-xmlDebugDumpAttrList
-xmlDebugDumpNode
-xmlDebugDumpNodeList
-xmlDebugDumpOneNode
-xmlNodeDump
-xmlNodeDumpOutput
-xmlShellPwd
-xmlStreamPop
-xmlXPathDebugDumpCompExpr
-xmlXPathDebugDumpObject
-
lexical
xmlParseDefaultDecl
-xmlSchemaGetCanonValue
-xmlSchemaValPredefTypeNode
-xmlSchemaValPredefTypeNodeNoNorm
-xmlSchemaValidateFacet
-xmlSchemaValidateFacetWhtsp
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-xmlSchemaValidateListSimpleTypeFacet
-xmlSchemaValidatePredefinedType
-xmlValidateNCName
-xmlValidateNMToken
-xmlValidateName
-xmlValidateQName
-
lib
xmlCheckVersion
-
libc
DEBUG_MEMORY
-
libraries
LIBXML_MODULE_EXTENSION
-xmlRelaxNGInitTypes
-
library
_xmlError
-_xmlSchema
-xmlCleanupMemory
-xmlCleanupParser
-xmlCleanupThreads
-xmlHasFeature
-xmlInitThreads
-xmlInitializeGlobalState
-xmlLockLibrary
-xmlModuleFree
-xmlModuleOpen
-xmlOutputBufferCreateFilename
-xmlParseNamespace
-xmlRelaxNGCleanupTypes
-xmlSAXDefaultVersion
-xmlSchemaCleanupTypes
-xmlSchemaFreeValue
-xmlSchemaGetPredefinedType
-xmlSchemaInitTypes
-xmlUnlockLibrary
-
libs
xmlKeepBlanksDefault
-
libxml
DEBUG_MEMORY
-LIBXML_TEST_VERSION
-_xmlParserCtxt
-xmlC14NDocSave
-xmlGcMemSetup
-xmlMemSetup
-xmlRegisterHTTPPostCallbacks
-xmlSAXParseFileWithData
-xmlSAXParseMemoryWithData
-xmlShellPrintXPathError
-xmlXPathNodeSetFreeNs
-
libxml1
xmlChildrenNode
-xmlRootNode
-
libxml2
xmlCleanupThreads
-xmlFreeMutex
-xmlInitThreads
-xmlLockLibrary
-xmlMutexLock
-xmlMutexUnlock
-xmlNewMutex
-xmlRMutexLock
-xmlRMutexUnlock
-xmlUnlockLibrary
-
lifetime
xmlBufferCreateStatic
-xmlExpCtxtNbCons
-
like
IS_CHAR_CH
-IS_DIGIT_CH
-IS_EXTENDER_CH
-IS_LETTER_CH
-LIBXML_DOTTED_VERSION
-LIBXML_TREE_ENABLED
-xmlCharEncOutFunc
-xmlLoadSGMLSuperCatalog
-xmlNanoFTPScanProxy
-xmlNanoHTTPScanProxy
-xmlParseCatalogFile
-xmlShellList
-xmlTextReaderNormalization
-xmlValidityErrorFunc
-xmlValidityWarningFunc
-
limit
xmlCharEncFirstLine
-xmlDecodeEntities
-xmlPatternMaxDepth
-
limited
_htmlElemDesc
-
linear
htmlEntityLookup
-htmlEntityValueLookup
-xmlExpExpDerive
-
linked
_xmlSchemaAttributeLink
-_xmlSchemaFacetLink
-_xmlSchemaTypeLink
-
linking
xlinkIsLink
-
links
ftpListCallback
-
listing
xmlNanoFTPList
-xmlShellList
-
lists
XML_COMPLETE_ATTRS
-_xmlXPathContext
-
literal
xmlCurrentChar
-xmlParseAttValue
-xmlParsePubidLiteral
-xmlParserHandlePEReference
-
load
xmlLoadExternalEntity
-xmlNanoHTTPFetch
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-xmlNoNetExternalEntityLoader
-xmlParseCtxtExternalEntity
-xmlParseExternalEntity
-xmlShell
-xmlShellLoad
-
loaded
_xmlParserCtxt
-
loader
resolveEntity
-resolveEntitySAXFunc
-xmlLoadCatalog
-xmlLoadCatalogs
-xmlNoNetExternalEntityLoader
-xmlSAX2ResolveEntity
-
loaders
xmlExternalEntityLoader
-
loading
resolveEntity
-resolveEntitySAXFunc
-xmlIsID
-xmlSAX2ResolveEntity
-xmlShellLoad
-
loads
xmlShellLoad
-
loadsubset
XML_COMPLETE_ATTRS
-XML_DETECT_IDS
-XML_SKIP_IDS
-
local-name
xmlXPathLocalNameFunction
-
localname
startElementNsSAX2Func
-xmlSAX2StartElementNs
-xmlStrQEqual
-
location
htmlParseEntityRef
-xmlGetFeature
-xmlNanoHTTPFetch
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-xmlRelaxNGNewParserCtxt
-xmlSchemaNewParserCtxt
-xmlSchematronNewParserCtxt
-xmlSetFeature
-xmlUTF8Strloc
-xmlXPtrLocationSetAdd
-
locations
_xmlLocationSet
-
locator
setDocumentLocator
-setDocumentLocatorSAXFunc
-xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-xmlCanonicPath
-xmlSAX2SetDocumentLocator
-xmlTextReaderLocatorBaseURI
-xmlTextReaderLocatorLineNumber
-
locators
xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-
lock
xmlLockLibrary
-xmlMutexLock
-xmlNewRMutex
-xmlRMutexLock
-xmlUnlockLibrary
-
logging
xmlMallocAtomicLoc
-xmlMallocLoc
-xmlMemMalloc
-xmlMemRealloc
-xmlMemStrdupLoc
-xmlMemoryStrdup
-xmlReallocLoc
-
long
IS_BASECHAR
-IS_COMBINING
-IS_DIGIT
-xmlDetectCharEncoding
-xmlParserFindNodeInfoIndex
-xmlSchemaGetFacetValueAsULong
-
longer
XML_MAX_NAMELEN
-xmlCheckUTF8
-xmlXPathTranslateFunction
-
look-ahead
_xmlParserCtxt
-
lookahead
xmlParserInputGrow
-xmlParserInputRead
-
looked
_xmlNodeSet
-xmlPatternFromRoot
-
looks
xmlGetNoNsProp
-xmlGetNsProp
-xmlGetProp
-xmlHasNsProp
-xmlHasProp
-
lookups
XML_DETECT_IDS
-xmlParseCatalogFile
-
loop
xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseExternalEntity
-
loops
_xmlParserCtxt
-
lossless
xmlOutputBufferWrite
-xmlOutputBufferWriteEscape
-xmlOutputBufferWriteString
-
lower
xmlExpNewRange
-
lowercase
htmlTagLookup
-xmlIsRef
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk19.html b/src/tools/docbook/libxml2/doc/APIchunk19.html deleted file mode 100644 index 8541fe1a02..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk19.html +++ /dev/null @@ -1,367 +0,0 @@ - - -API Alphabetic Index m-m for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index m-m for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter m:

machine
xmlCheckFilename
-
macro
XML_CAST_FPTR
-xmlTextWriterWriteDocType
-xmlTextWriterWriteProcessingInstruction
-
made
LIBXML_ISO8859X_ENABLED
-xmlCharEncOutFunc
-xmlExpParse
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlSetEntityReferenceFunc
-xmlXPtrNewLocationSetNodes
-
main
xmlIsMainThread
-
maintained
xmlRemoveID
-xmlRemoveRef
-
major
xmlDecodeEntities
-
make
xmlCreateEntitiesTable
-xmlNewNode
-xmlSaveClose
-xmlSaveFlush
-
makes
xmlLoadCatalog
-xmlLoadCatalogs
-xmlTextReaderExpand
-
malloc
xmlGcMemGet
-xmlGcMemSetup
-xmlMallocAtomicLoc
-xmlMallocFunc
-xmlMallocLoc
-xmlMemGet
-xmlMemMalloc
-xmlMemSetup
-
mallocAtomicFunc
xmlGcMemGet
-xmlGcMemSetup
-
manage
xmlBufferWriteChar
-xmlBufferWriteQuotedString
-
manages
xmlBufferWriteCHAR
-
mandatory
xmlParseTextDecl
-
manipulated
xmlNewRMutex
-
manipulating
xmlExpNewCtxt
-xmlLoadSGMLSuperCatalog
-
manipulation
LIBXML_TREE_ENABLED
-
many
_xmlParserInput
-xmlXPathStringFunction
-
maps
xmlTextReaderLookupNamespace
-xmlTextWriterWriteDocType
-xmlTextWriterWriteProcessingInstruction
-
mark
xmlStrcat
-xmlStrdup
-xmlTextReaderQuoteChar
-
marked
XML_SCHEMAS_ATTRGROUP_MARKED
-XML_SCHEMAS_TYPE_MARKED
-_xmlParserInput
-
marker
xmlDecodeEntities
-xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-
marking
xmlParseCharData
-
marks
xmlParseCharData
-
markup
xmlParseMarkupDecl
-xmlParseSDDecl
-xmlTextReaderReadInnerXml
-xmlTextReaderReadOuterXml
-xmlTextWriterWriteFormatDTD
-xmlTextWriterWriteVFormatDTD
-
markupdecl
xmlParseDocTypeDecl
-xmlParseExternalSubset
-xmlParseMarkupDecl
-
masked
xmlReconciliateNs
-
matched
xmlTextReaderPreservePattern
-
matches
CHECK_ARITY
-xmlFileMatch
-xmlIOFTPMatch
-xmlIOHTTPMatch
-xmlParseCtxtExternalEntity
-xmlParseExtParsedEnt
-xmlParseExternalEntity
-xmlPatternMatch
-xmlRegexpExec
-xmlValidateDtdFinal
-
matching
xmlFileMatch
-xmlFileOpen
-xmlHashScan3
-xmlHashScanFull3
-xmlIOFTPMatch
-xmlIOFTPOpen
-xmlIOHTTPMatch
-xmlIOHTTPOpen
-xmlRegNewExecCtxt
-xmlValidateAttributeDecl
-xmlValidateOneAttribute
-xmlValidateOneNamespace
-xmlXPathIdFunction
-
max
_xmlXPathContext
-_xmlXPathParserContext
-xmlExpParse
-xmlGetCompressMode
-xmlGetDocCompressMode
-xmlOutputBufferCreateFilename
-xmlSetCompressMode
-xmlSetDocCompressMode
-xmlStrncasecmp
-xmlStrncmp
-
maxLength
xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-
maximal
xmlAutomataNewCounter
-
maximum
xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlCheckUTF8
-xmlExpMaxToken
-xmlExpNewCtxt
-xmlPatternMaxDepth
-xmlXPathContextSetCache
-
maybe
_xmlSchemaElement
-
mean
xmlPatternMinDepth
-
means
xmlExpNewRange
-xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-
mechanism
_xmlXPathContext
-xmlStructuredErrorFunc
-xmlXPathRegisterFuncLookup
-xmlXPathRegisterVariableLookup
-
mechanisms
xmlNodeGetBase
-
meet
xmlParseDefaultDecl
-
member
xmlSAXParseFileWithData
-xmlSAXParseMemoryWithData
-xmlTextWriterWriteVFormatAttribute
-xmlTextWriterWriteVFormatAttributeNS
-xmlTextWriterWriteVFormatCDATA
-xmlTextWriterWriteVFormatComment
-xmlTextWriterWriteVFormatDTD
-xmlTextWriterWriteVFormatDTDAttlist
-xmlTextWriterWriteVFormatDTDElement
-xmlTextWriterWriteVFormatDTDInternalEntity
-xmlTextWriterWriteVFormatElement
-xmlTextWriterWriteVFormatElementNS
-xmlTextWriterWriteVFormatPI
-xmlTextWriterWriteVFormatRaw
-xmlTextWriterWriteVFormatString
-xmlXPathStringFunction
-
member-types
_xmlSchemaType
-
memo
getSystemId
-xmlSAX2GetSystemId
-
memorylist
xmlMemDisplay
-xmlMemoryDump
-
merged
xmlTextMerge
-
merging
xmlAddChild
-xmlAddChildList
-xmlAddNextSibling
-xmlAddPrevSibling
-xmlAddSibling
-
message
_xmlError
-errorSAXFunc
-fatalErrorSAXFunc
-warningSAXFunc
-xmlGenericErrorFunc
-xmlParserError
-xmlParserValidityError
-xmlParserValidityWarning
-xmlParserWarning
-xmlStrPrintf
-xmlStrVPrintf
-xmlValidityErrorFunc
-xmlValidityWarningFunc
-xmlXPatherror
-
messages
errorSAXFunc
-fatalErrorSAXFunc
-warningSAXFunc
-xmlParserError
-xmlParserValidityError
-xmlParserValidityWarning
-xmlParserWarning
-xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-
method
XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION
-XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION
-_xmlBuffer
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlRegisterHTTPPostCallbacks
-xmlSetBufferAllocationScheme
-xmlTextReaderClose
-xmlTextReaderGetRemainder
-
might
xmlNewTextChild
-
migrate
xmlEncodeEntities
-
min
xmlExpParse
-
minLength
xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-
minimal
xmlAutomataNewCounter
-xmlExpParse
-
minimum
xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlBufferGrow
-xmlBufferResize
-xmlGetUTF8Char
-xmlPatternMinDepth
-
minus
xmlXPathStringFunction
-
minute
ftpListCallback
-
misc
xmlXPathContextSetCache
-
misleading
xmlParsePEReference
-xmlParserHandlePEReference
-
mixed
XML_SCHEMAS_TYPE_MIXED
-xmlKeepBlanksDefault
-
mixed-content
xmlParseElementMixedContentDecl
-
mmap
xmlParserInputBufferCreateStatic
-
mod
xmlXPathModValues
-
mode
_xmlParserCtxt
-docbCreatePushParserCtxt
-htmlCreatePushParserCtxt
-xmlCreatePushParserCtxt
-xmlGetCompressMode
-xmlKeepBlanksDefault
-xmlNanoFTPGetConnection
-xmlParseReference
-xmlParserInputBufferGrow
-xmlParserInputBufferPush
-xmlSAXParseDoc
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-xmlSetCompressMode
-
model
_xmlSchemaType
-xmlValidBuildContentModel
-
modified
xmlBufferCreateStatic
-xmlNodeAddContent
-xmlNodeAddContentLen
-xmlNodeSetContent
-xmlNodeSetContentLen
-xmlSchemaNewDocParserCtxt
-xmlSchematronNewDocParserCtxt
-
modifies
xmlRelaxNGNewDocParserCtxt
-
modify
xmlShell
-
module
LIBXML_DEBUG_ENABLED
-LIBXML_MODULES_ENABLED
-xmlInputMatchCallback
-xmlModuleClose
-xmlModuleFree
-xmlModuleOpen
-xmlModuleSymbol
-xmlOutputMatchCallback
-xmlStructuredErrorFunc
-
modules
LIBXML_MODULE_EXTENSION
-
moment
xmlDOMWrapReconcileNamespaces
-xmlDOMWrapRemoveNode
-
month
ftpListCallback
-
more
XML_MAX_NAMELEN
-xmlExpGetLanguage
-xmlExpGetStart
-xmlParseAttributeType
-xmlParseElementDecl
-xmlParseElementMixedContentDecl
-xmlParseStartTag
-xmlStrEqual
-xmlTextReaderByteConsumed
-xmlTextReaderNext
-xmlTextReaderNextSibling
-xmlTextReaderRead
-xmlTextReaderReadAttributeValue
-xmlXPathStringFunction
-
moreover
xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-
most
xmlC14NExecute
-xmlGetFeaturesList
-
move
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-
moved
xmlTextReaderMoveToElement
-
much
xmlReconciliateNs
-
multi-threaded
xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-
multi-threading
xmlCleanupGlobals
-xmlInitGlobals
-
multiple
xmlCurrentChar
-xmlStringCurrentChar
-
multiply
xmlXPathMultValues
-
multithreaded
htmlInitAutoClose
-xmlInitParser
-
mutex
xmlDictCleanup
-xmlFreeMutex
-xmlFreeRMutex
-xmlMutexLock
-xmlMutexUnlock
-xmlNewMutex
-xmlNewRMutex
-xmlRMutexLock
-xmlRMutexUnlock
-
myDoc
docbFreeParserCtxt
-htmlFreeParserCtxt
-xmlFreeParserCtxt
-
myproxy
xmlNanoFTPScanProxy
-xmlNanoHTTPScanProxy
-
myproxy:3128
xmlNanoFTPScanProxy
-xmlNanoHTTPScanProxy
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk2.html b/src/tools/docbook/libxml2/doc/APIchunk2.html deleted file mode 100644 index 93faeafb5c..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk2.html +++ /dev/null @@ -1,437 +0,0 @@ - - -API Alphabetic Index D-E for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index D-E for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter D:

DEBUG_MEMORY
DEBUG_MEMORY
-
DEBUG_MEMORY_FREED
DEBUG_MEMORY
-
DEBUG_MEMORY_LOCATION
DEBUG_MEMORY
-
DELE
xmlNanoFTPDele
-
DELEGATE
xmlLoadSGMLSuperCatalog
-
DEMO
getPublicId
-xmlSAX2GetPublicId
-
DEPRECATED
checkNamespace
-getNamespace
-globalNamespace
-namespaceDecl
-setDocumentLocator
-setNamespace
-xmlCatalogGetPublic
-xmlCatalogGetSystem
-xmlIsBaseChar
-xmlIsBlank
-xmlIsChar
-xmlIsCombining
-xmlIsDigit
-xmlIsExtender
-xmlIsIdeographic
-xmlIsPubidChar
-xmlNewGlobalNs
-
DOCTYPE
xmlParseDocTypeDecl
-
DOM
LIBXML_TREE_ENABLED
-_xmlParserCtxt
-attribute
-attributeSAXFunc
-docbSAXParseDoc
-docbSAXParseFile
-htmlSAXParseDoc
-htmlSAXParseFile
-ignorableWhitespace
-ignorableWhitespaceSAXFunc
-resolveEntity
-resolveEntitySAXFunc
-xmlDOMWrapReconcileNamespaces
-xmlDOMWrapRemoveNode
-xmlDocDumpFormatMemoryEnc
-xmlDocDumpMemoryEnc
-xmlKeepBlanksDefault
-xmlSAX2IgnorableWhitespace
-xmlSAX2ResolveEntity
-xmlSAXParseDoc
-xmlSAXParseEntity
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-xmlXPathNodeSetGetLength
-xmlXPathNodeSetItem
-
DOM-wrapper
xmlDOMWrapFreeCtxt
-xmlDOMWrapNewCtxt
-
DTDs
XML_COMPLETE_ATTRS
-xmlParserHandlePEReference
-
Data
xmlParseCDSect
-
Datatype
xmlRegexpCompile
-
Datatypes
xmlSchemaGetBuiltInListSimpleTypeItemType
-
Deallocate
xmlFreeAttributeTable
-xmlFreeElementTable
-xmlFreeEntitiesTable
-xmlFreeIDTable
-xmlFreeNotationTable
-xmlFreeRefTable
-xmlFreeTextReader
-xmlFreeTextWriter
-xmlRelaxNGFree
-xmlSchemaFree
-xmlSchemaFreeFacet
-xmlSchemaFreeType
-xmlSchematronFree
-
Deallocates
xmlSchemaFreeWildcard
-
Debugging
LIBXML_DEBUG_ENABLED
-xmlExpCtxtNbCons
-xmlExpCtxtNbNodes
-
Declaration
xmlParseElementDecl
-xmlParseMarkupDecl
-xmlParseSDDecl
-xmlValidCtxtNormalizeAttributeValue
-xmlValidateElementDecl
-
Declared
xmlParseEntityDecl
-xmlParseEntityRef
-xmlParsePEReference
-xmlParserHandlePEReference
-xmlParserHandleReference
-xmlValidateNotationUse
-
Default
xmlHandleEntity
-xmlParseAttributeType
-xmlParseDefaultDecl
-xmlValidateAttributeDecl
-xmlValidateOneAttribute
-xmlValidateOneNamespace
-
DefaultDecl
xmlParseAttributeListDecl
-xmlParseDefaultDecl
-
Deletes
xmlListDelete
-
Depth
_xmlParserCtxt
-_xmlValidCtxt
-
Dereference
xmlExpFree
-
DeregisterNodeFunc
xmlDeregisterNodeDefault
-
Deseret
xmlUCSIsDeseret
-
Determine
htmlIsBooleanAttr
-xmlIsID
-xmlIsRef
-xmlTextReaderConstEncoding
-xmlTextReaderConstXmlVersion
-xmlTextReaderIsNamespaceDecl
-xmlTextReaderStandalone
-
Devanagari
xmlUCSIsDevanagari
-
Different
xmlStreamPushNode
-
Digit
IS_DIGIT
-xmlNamespaceParseNCName
-xmlParseName
-xmlScanName
-xmlXPathParseNCName
-xmlXPathParseName
-
Digits
xmlXPathStringEvalNumber
-
Digits?
xmlXPathStringEvalNumber
-
Dingbats
xmlUCSIsDingbats
-
Display
errorSAXFunc
-fatalErrorSAXFunc
-warningSAXFunc
-xmlParserError
-xmlParserValidityError
-xmlParserValidityWarning
-xmlParserWarning
-
Displays
xmlParserPrintFileContext
-xmlParserPrintFileInfo
-
DocBook
docbCreatePushParserCtxt
-initdocbDefaultSAXHandler
-xmlSAX2InitDocbDefaultSAXHandler
-
Docbook
LIBXML_DOCB_ENABLED
-_xmlParserCtxt
-docbParseFile
-
Document
xmlDocDumpFormatMemoryEnc
-xmlDocDumpMemoryEnc
-xmlNodeGetBase
-xmlParseSDDecl
-xmlValidCtxtNormalizeAttributeValue
-xmlXIncludeNewContext
-
Does
hasExternalSubset
-hasExternalSubsetSAXFunc
-hasInternalSubset
-hasInternalSubsetSAXFunc
-xmlCharInRange
-xmlSAX2HasExternalSubset
-xmlSAX2HasInternalSubset
-xmlShellList
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-xmlValidateDocumentFinal
-xmlValidateDtdFinal
-
Douglas
xmlURIEscape
-
Draft
xmlParseNamespace
-
DtD
xmlGetDtdAttrDesc
-xmlGetDtdElementDesc
-xmlGetDtdNotationDesc
-xmlGetDtdQAttrDesc
-xmlGetDtdQElementDesc
-xmlValidateDtd
-
DtDs
xlinkIsLink
-xmlIsMixedElement
-
Dtd
_xmlValidCtxt
-xmlValidGetValidElements
-
Dumps
xmlBufferDump
-xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlDebugDumpAttr
-xmlDebugDumpAttrList
-xmlDebugDumpDTD
-xmlDebugDumpDocument
-xmlDebugDumpDocumentHead
-xmlDebugDumpEntities
-xmlDebugDumpNode
-xmlDebugDumpNodeList
-xmlDebugDumpOneNode
-xmlDebugDumpString
-xmlXPathDebugDumpCompExpr
-
Duplicate
xmlHashAddEntry
-xmlHashAddEntry2
-xmlHashAddEntry3
-xmlListDup
-xmlParseElementMixedContentDecl
-xmlValidateElementDecl
-

Letter E:

ELEMENT
_xmlElementContent
-
EMPTY
xmlParseElementContentDecl
-
ENTITIES
xmlParseAttributeType
-xmlValidateAttributeValue
-xmlValidateDtdFinal
-
ENTITY
htmlParseEntityRef
-xmlParseAttributeType
-xmlParseEntityRef
-xmlParseEntityValue
-xmlValidateAttributeValue
-xmlValidateDtdFinal
-
ENTITY_REF
xmlNodeBufGetContent
-xmlNodeGetContent
-
ENTITY_REFs
xmlNewChild
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlStringGetNodeList
-xmlStringLenGetNodeList
-
ETag
htmlParseElement
-xmlParseElement
-xmlParseEndTag
-
EXSLT
xmlXPathDifference
-xmlXPathDistinct
-xmlXPathDistinctSorted
-xmlXPathHasSameNodes
-xmlXPathIntersection
-xmlXPathLeading
-xmlXPathLeadingSorted
-xmlXPathNodeLeading
-xmlXPathNodeLeadingSorted
-xmlXPathNodeTrailing
-xmlXPathNodeTrailingSorted
-xmlXPathTrailing
-xmlXPathTrailingSorted
-
Element
_xmlAttribute
-_xmlElement
-_xmlElementContent
-htmlNodeStatus
-xmlParseAttributeType
-xmlParseDocTypeDecl
-xmlParseElement
-xmlParseElementChildrenContentDecl
-xmlParseElementContentDecl
-xmlParseElementDecl
-xmlParseElementMixedContentDecl
-xmlTextReaderReadString
-xmlValidateElementDecl
-xmlValidateOneElement
-xmlValidateRoot
-
ElementTable
htmlTagLookup
-
Empties
xmlXPathEmptyNodeSet
-
EmptyElemTag
htmlParseElement
-xmlParseElement
-xmlParseStartTag
-
EmptyElement
xmlParseStartTag
-
EncName
xmlParseEncName
-xmlParseEncodingDecl
-
Encapsulating
xmlNodeGetBase
-
EnclosedAlphanumerics
xmlUCSIsEnclosedAlphanumerics
-
EnclosedCJKLettersandMonths
xmlUCSIsEnclosedCJKLettersandMonths
-
Encoding
htmlGetMetaEncoding
-xmlGetCharEncodingName
-xmlParseCharEncoding
-
EncodingDecl
xmlParseEncodingDecl
-xmlParseTextDecl
-
EncodingDecl?
xmlParseXMLDecl
-
End
_xmlDoc
-_xmlDtd
-_xmlNode
-xmlTextReaderGetRemainder
-xmlTextWriterEndAttribute
-xmlTextWriterEndCDATA
-xmlTextWriterEndComment
-xmlTextWriterEndDTD
-xmlTextWriterEndDTDAttlist
-xmlTextWriterEndDTDElement
-xmlTextWriterEndDTDEntity
-xmlTextWriterEndDocument
-xmlTextWriterEndElement
-xmlTextWriterEndPI
-xmlTextWriterFullEndElement
-
End-of-Line
xmlCurrentChar
-
Ensures
xmlDOMWrapReconcileNamespaces
-
Entities
xmlGetCharEncodingName
-xmlParseCharEncoding
-
EntitiesTable
htmlEntityLookup
-htmlEntityValueLookup
-
Entity
_xmlEntity
-xmlNewEntityInputStream
-xmlNodeBufGetContent
-xmlNodeGetBase
-xmlNodeGetContent
-xmlParseAttribute
-xmlParseAttributeType
-xmlParseEntityRef
-xmlParsePEReference
-xmlParserHandlePEReference
-xmlParserHandleReference
-xmlValidateAttributeValue
-xmlValidateOneAttribute
-xmlValidateOneNamespace
-
EntityDecl
xmlParseEntityDecl
-xmlParseMarkupDecl
-
EntityDef
xmlParseEntityDecl
-
EntityRef
htmlParseEntityRef
-xmlDecodeEntities
-xmlParseEntityRef
-xmlParseReference
-xmlParserHandleReference
-xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-
EntityReference
xmlTextReaderReadAttributeValue
-
EntityValue
xmlParseEntityDecl
-xmlParseEntityValue
-
Enumerated
xmlParseEnumeratedType
-
EnumeratedType
xmlParseAttributeType
-xmlParseEnumeratedType
-
Enumeration
_xmlEnumeration
-xmlParseEnumeratedType
-xmlParseEnumerationType
-xmlValidateAttributeDecl
-
Equal
xmlStrQEqual
-
Escaping
xmlURIEscape
-
Ethiopic
xmlUCSIsEthiopic
-
Evaluate
xmlXPathCompiledEval
-xmlXPathEval
-xmlXPathEvalExpression
-xmlXPathEvalPredicate
-xmlXPathEvaluatePredicateResult
-xmlXPtrEval
-xmlXPtrEvalRangePredicate
-
Evaluates
xmlExpExpDerive
-xmlSchemaIsBuiltInTypeFacet
-
Everything
_xmlParserCtxt
-setDocumentLocator
-setDocumentLocatorSAXFunc
-xmlSAX2SetDocumentLocator
-
Examines
xmlHasFeature
-
Exclusive
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-
Existing
xmlAddEncodingAlias
-xmlHashRemoveEntry
-xmlHashRemoveEntry2
-xmlHashRemoveEntry3
-xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-
Exp
xmlAutomataCompile
-
Experimental
htmlNodeStatus
-
Expr
xmlXPathEvalPredicate
-xmlXPathEvaluatePredicateResult
-xmlXPtrEvalRangePredicate
-
Expresses
xmlBuildRelativeURI
-
Expression
xmlXPathEvalPredicate
-xmlXPathEvaluatePredicateResult
-
Extender
IS_EXTENDER
-xmlNamespaceParseNCName
-xmlParseName
-xmlScanName
-xmlXPathParseNCName
-xmlXPathParseName
-
External
_xmlDtd
-_xmlEntity
-xmlACatalogResolve
-xmlCatalogLocalResolve
-xmlCatalogResolve
-xmlExternalEntityLoader
-xmlParseAttribute
-xmlParseDTD
-xmlParseExternalID
-xmlSAXParseDTD
-
ExternalID
xmlParseDocTypeDecl
-xmlParseEntityDecl
-xmlParseExternalID
-xmlParseNotationDecl
-
Extract
xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlSchemaGetFacetValueAsULong
-xmlStrsub
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk20.html b/src/tools/docbook/libxml2/doc/APIchunk20.html deleted file mode 100644 index ffcf1250f6..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk20.html +++ /dev/null @@ -1,340 +0,0 @@ - - -API Alphabetic Index n-n for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index n-n for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter n:

named
xmlAddEncodingAlias
-
names
_xmlDoc
-_xmlParserCtxt
-_xmlSchema
-htmlInitAutoClose
-xmlGetFeaturesList
-xmlHashAddEntry
-xmlHashScan3
-xmlHashScanFull3
-xmlParseNotationType
-xmlValidGetPotentialChildren
-xmlValidGetValidElements
-
namespace-binding
xmlSetProp
-
namespace-uri
xmlXPathNamespaceURIFunction
-
namespace:
XINCLUDE_NS
-XINCLUDE_OLD_NS
-xmlParseAttribute
-xmlParseStartTag
-
namespaces
XML_XPATH_CHECKNS
-_xmlParserCtxt
-_xmlSchemaWildcard
-_xmlXPathContext
-xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlCopyDoc
-xmlCopyNode
-xmlDocCopyNode
-xmlFreeNsList
-xmlGetProp
-xmlParseInNodeContext
-xmlReconciliateNs
-
naming
xmlChildrenNode
-xmlRootNode
-
nbval
xmlRegExecErrInfo
-xmlRegExecNextValues
-
ncname
xmlBuildQName
-
ndata
_xmlEntity
-
nearest
xmlNodeGetLang
-xmlNodeGetSpacePreserve
-xmlXPathLangFunction
-
nearly
xmlSAXParseFileWithData
-xmlSAXParseMemoryWithData
-
necessary
XML_SCHEMAS_TYPE_VARIETY_ABSENT
-_htmlElemDesc
-xmlCheckUTF8
-xmlDebugDumpString
-
need
WITH_TRIO
-XML_SCHEMAS_TYPE_FACETSNEEDVALUE
-XML_SCHEMAS_TYPE_NORMVALUENEEDED
-XML_SUBSTITUTE_BOTH
-XML_SUBSTITUTE_NONE
-XML_SUBSTITUTE_PEREF
-XML_SUBSTITUTE_REF
-xmlCreatePushParserCtxt
-xmlGetNsList
-xmlInitCharEncodingHandlers
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlNewTextChild
-xmlParseEntityRef
-xmlParserHandleReference
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlSchemaNewStringValue
-xmlStreamWantsAnyNode
-xmlValidGetValidElements
-xmlXPathNewContext
-
needed
_xmlParserCtxt
-_xmlXPathContext
-htmlEntityLookup
-htmlEntityValueLookup
-xlinkIsLink
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlGetBufferAllocationScheme
-xmlLoadSGMLSuperCatalog
-xmlNewNodeEatName
-xmlParseElementChildrenContentDecl
-xmlParseElementMixedContentDecl
-xmlReconciliateNs
-xmlSetBufferAllocationScheme
-xmlShellPwd
-xmlStrncat
-xmlTextReaderCurrentDoc
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-xmlXPathCastToString
-xmlXPathPopBoolean
-xmlXPathPopExternal
-xmlXPathPopNodeSet
-xmlXPathPopNumber
-xmlXPathPopString
-xmlXPathStringFunction
-
needing
xmlCharEncOutFunc
-xmlURIEscape
-
needle
xmlStrcasestr
-xmlStrstr
-
needs
xmlEntityReferenceFunc
-xmlSchemaValidateFacetWhtsp
-xmlStreamWantsAnyNode
-xmlXPathNodeSetFreeNs
-
negated
_xmlSchemaWildcard
-
negative
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlRegExecPushString
-xmlRegExecPushString2
-xmlRegexpExec
-xmlRegexpIsDeterminist
-xmlShellCmd
-xmlXPathBooleanFunction
-xmlXPathCeilingFunction
-xmlXPathStringEvalNumber
-xmlXPathStringFunction
-
neither
xmlHasNsProp
-xmlHasProp
-xmlParseElementChildrenContentDecl
-xmlTextReaderReadInnerXml
-xmlTextReaderReadOuterXml
-xmlXPathBooleanFunction
-xmlXPathCompareValues
-
nested
xmlParseElementChildrenContentDecl
-xmlParseMarkupDecl
-
net
xmlXPathIsInf
-xmlXPathIsNaN
-
network
htmlCtxtReadFile
-htmlReadFile
-xmlCtxtReadFile
-xmlNoNetExternalEntityLoader
-xmlReadFile
-xmlReaderForFile
-xmlReaderNewFile
-
nice
xmlBuildRelativeURI
-
nillable
XML_SCHEMAS_ELEM_NILLABLE
-xmlExpIsNillable
-
nod
xmlEntityReferenceFunc
-
node-
xmlDOMWrapRemoveNode
-xmlValidGetValidElements
-
node-set?
xmlXPathLocalNameFunction
-xmlXPathNamespaceURIFunction
-
nodelist
xmlParseBalancedChunkMemoryRecover
-
nodes1
xmlXPathDifference
-
nodes2
xmlXPathDifference
-
nodeset
xmlXPathNodeSetFreeNs
-
nodesets
xmlXPathNodeSetMerge
-
non
XML_SCHEMAS_ANYATTR_LAX
-xmlEncodeEntitiesReentrant
-xmlNewChild
-xmlNewTextChild
-xmlXPathParseNCName
-
non-CDATA
_xmlParserCtxt
-
non-NULL
htmlParseEntityRef
-xmlCreatePushParserCtxt
-xmlParseEntityValue
-
non-UTF-8
xmlByteConsumed
-
non-blank
xmlParseElementChildrenContentDecl
-
non-determinist
_xmlValidCtxt
-
non-empty
xmlXPathBooleanFunction
-
non-exclusive
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-
non-final
xmlRegExecPushString
-xmlRegExecPushString2
-
non-negative
xmlC14NDocSaveTo
-xmlC14NExecute
-
non-normative
xmlDetectCharEncoding
-
non-null
xmlShellPrintNode
-
non-stateless
xmlCharEncOutFunc
-
non-validating
xmlParseAttValue
-xmlParseEntityRef
-
non-zero
initxmlDefaultSAXHandler
-xmlHasFeature
-xmlIsLetter
-xmlSAX2InitDefaultSAXHandler
-xmlXPathBooleanFunction
-
none
XML_SCHEMAS_TYPE_VARIETY_ABSENT
-getNamespace
-xmlDOMWrapCloneNode
-xmlDecodeEntities
-xmlGetLastChild
-xmlOutputBufferCreateFilename
-xmlSchemaValueGetAsString
-xmlSchemaValueGetNext
-xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-xmlTextReaderConstXmlLang
-xmlTextReaderXmlLang
-
nor
xmlBufferCreateStatic
-xmlBuildQName
-xmlParseElementChildrenContentDecl
-xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-xmlTextReaderReadInnerXml
-xmlTextReaderReadOuterXml
-xmlXPathBooleanFunction
-
normal
xmlInitCharEncodingHandlers
-xmlParserInputBufferGrow
-
normalization
xmlNormalizeURIPath
-xmlParseSDDecl
-xmlSchemaValPredefTypeNodeNoNorm
-xmlSchemaValidateFacetWhtsp
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-
normalization:
xmlCurrentChar
-
normalizations
xmlTextReaderNormalization
-
normalize
xmlParseAttValue
-xmlSchemaCollapseString
-xmlTextReaderNormalization
-
normalize-space
xmlXPathNormalizeFunction
-
normalized
XML_SCHEMAS_TYPE_NORMVALUENEEDED
-xmlParseAttValue
-xmlSchemaValidateFacetWhtsp
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-xmlXPathNormalizeFunction
-
normalizing
xmlCurrentChar
-
normally
c
-xmlValidityErrorFunc
-xmlValidityWarningFunc
-
notations
_xmlDtd
-xmlValidateDtdFinal
-
note
xmlCheckUTF8
-xmlLoadExternalEntity
-
now
XML_CAST_FPTR
-_xmlSchema
-_xmlSchemaElement
-xmlDecodeEntities
-xmlParserHandleReference
-xmlScanName
-
ns-binding
xmlSetProp
-
ns-decls
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-
ns-references
xmlDOMWrapReconcileNamespaces
-xmlDOMWrapRemoveNode
-
nsDef
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapRemoveNode
-
null
xmlHashScan3
-xmlHashScanFull3
-xmlShellDu
-
null-terminated
xmlCheckUTF8
-
number:
LIBXML_VERSION
-
number?
xmlXPathSubstringFunction
-
numbers
xmlLineNumbersDefault
-xmlUTF8Size
-xmlXPathAddValues
-xmlXPathCompareValues
-xmlXPathDivValues
-xmlXPathModValues
-xmlXPathMultValues
-xmlXPathOrderDocElems
-xmlXPathRoundFunction
-xmlXPathSubValues
-xmlXPathValueFlipSign
-
numeric
xmlXPathAddValues
-xmlXPathDivValues
-xmlXPathModValues
-xmlXPathMultValues
-xmlXPathStringFunction
-xmlXPathSubValues
-xmlXPathSubstringFunction
-xmlXPathValueFlipSign
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk21.html b/src/tools/docbook/libxml2/doc/APIchunk21.html deleted file mode 100644 index f503ffe810..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk21.html +++ /dev/null @@ -1,376 +0,0 @@ - - -API Alphabetic Index o-o for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index o-o for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter o:

object?
xmlXPathNumberFunction
-xmlXPathStringFunction
-
objects
_xmlXPathContext
-xmlXPathCompareValues
-xmlXPathContextSetCache
-xmlXPathDivValues
-xmlXPathEqualValues
-xmlXPathFreeNodeSetList
-xmlXPathNotEqualValues
-
objects:
xmlXPathAddValues
-xmlXPathCompareValues
-xmlXPathModValues
-xmlXPathMultValues
-xmlXPathSubValues
-
obligated
xmlParseEntityRef
-
obsolete
xmlNormalizeWindowsPath
-
obsolete:
XML_SCHEMAS_ELEM_TOPLEVEL
-
occupied
xmlCanonicPath
-
occur
XML_SCHEMAS_TYPE_VARIETY_ABSENT
-xmlParseComment
-xmlParseMarkupDecl
-
occured
xmlCtxtGetLastError
-xmlDictCreate
-xmlDictCreateSub
-xmlGetLastError
-xmlHashCreate
-xmlHashCreateDict
-xmlListRemoveFirst
-xmlListRemoveLast
-
occurences
xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-
occurred
xmlMemStrdupLoc
-xmlMemoryStrdup
-
occurrence
xmlStrcasestr
-xmlStrchr
-xmlStrstr
-xmlStrsub
-xmlXPathSubstringAfterFunction
-xmlXPathSubstringBeforeFunction
-
occurrences
xmlXPathTranslateFunction
-
occurs
xmlNormalizeURIPath
-xmlParseSDDecl
-xmlStrPrintf
-xmlStrVPrintf
-
octets
UTF8ToHtml
-UTF8Toisolat1
-docbEncodeEntities
-htmlEncodeEntities
-isolat1ToUTF8
-xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-
of:
xmlParseSDDecl
-
off
xmlGetNoNsProp
-xmlGetNsProp
-xmlGetProp
-xmlHasNsProp
-xmlHasProp
-xmlLineNumbersDefault
-xmlParseExternalID
-
okay
_xmlParserCtxt
-
old
_xmlDoc
-globalNamespace
-xmlDocSetRootElement
-xmlKeepBlanksDefault
-xmlLineNumbersDefault
-xmlListCopy
-xmlNewGlobalNs
-xmlOutputBufferCreateFilenameDefault
-xmlParserInputBufferCreateFilenameDefault
-xmlParserInputBufferGrow
-xmlParserInputBufferRead
-xmlRegisterNodeDefault
-xmlReplaceNode
-xmlXPathConvertBoolean
-xmlXPathConvertNumber
-xmlXPathConvertString
-
oldNs
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapRemoveNode
-
older
LIBXML_SAX1_ENABLED
-xmlParseNamespace
-
omitted
htmlHandleOmittedElem
-xmlXPathLocalNameFunction
-xmlXPathNamespaceURIFunction
-xmlXPathNormalizeFunction
-xmlXPathStringFunction
-xmlXPathStringLengthFunction
-
once
htmlInitAutoClose
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlCleanupThreads
-xmlEncodeEntities
-xmlInitParser
-xmlInitializeCatalog
-xmlLoadCatalog
-xmlLoadCatalogs
-xmlParseAttributeType
-xmlParseElementDecl
-xmlParseElementMixedContentDecl
-xmlParsePI
-xmlParseStartTag
-xmlTextReaderCurrentDoc
-xmlTextReaderPreserve
-xmlTextReaderPreservePattern
-xmlValidateDocumentFinal
-xmlValidateDtdFinal
-xmlXPathNodeSetMerge
-xmlXPtrLocationSetMerge
-
ones
XML_COMPLETE_ATTRS
-startElementNsSAX2Func
-xmlCatalogConvert
-xmlConvertSGMLCatalog
-
ononymous
_xmlSchema
-
onto
xmlParserInputBufferGrow
-xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-
opaque
_xmlSchema
-_xmlURI
-
open
htmlCtxtReadFd
-htmlDocDump
-htmlReadFd
-xmlCtxtReadFd
-xmlDocDump
-xmlDocFormatDump
-xmlIOFTPOpen
-xmlIOHTTPOpen
-xmlInputOpenCallback
-xmlNanoFTPConnect
-xmlNanoFTPConnectTo
-xmlNanoFTPGetConnection
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-xmlOutputOpenCallback
-xmlReadFd
-xmlReaderForFd
-xmlReaderNewFd
-xmlTextWriterEndDocument
-
opening
startElement
-startElementSAXFunc
-xmlParseElementChildrenContentDecl
-xmlSAX2StartElement
-
operands
xmlXPathAddValues
-xmlXPathDivValues
-xmlXPathModValues
-xmlXPathMultValues
-xmlXPathSubValues
-xmlXPathValueFlipSign
-
operating
_xmlParserCtxt
-xmlParserInputBufferGrow
-xmlParserInputBufferPush
-
operation
xmlBuildRelativeURI
-xmlCatalogSetDebug
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlExpNewOr
-xmlExpNewRange
-xmlExpNewSeq
-xmlTextReaderConstValue
-xmlXPathAddValues
-xmlXPathCompareValues
-xmlXPathConvertBoolean
-xmlXPathConvertNumber
-xmlXPathConvertString
-xmlXPathDivValues
-xmlXPathEqualValues
-xmlXPathModValues
-xmlXPathMultValues
-xmlXPathNotEqualValues
-xmlXPathSubValues
-xmlXPathValueFlipSign
-
operations
xmlModuleClose
-xmlModuleFree
-xmlReconciliateNs
-
operator
xmlExpParse
-xmlXPathCompareValues
-
operators
xmlExpParse
-xmlXPathAddValues
-xmlXPathDivValues
-xmlXPathModValues
-xmlXPathMultValues
-xmlXPathSubValues
-xmlXPathValueFlipSign
-
optimized
xmlXPathNodeSetAddUnique
-
option
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlGetLineNo
-
options
htmlCtxtUseOptions
-xmlCtxtUseOptions
-xmlDOMWrapRemoveNode
-xmlModuleOpen
-xmlSaveToBuffer
-xmlSaveToFd
-xmlSaveToFilename
-xmlSaveToIO
-xmlTextReaderSchemaValidateCtxt
-xmlXPathContextSetCache
-
ordered
xmlListAppend
-xmlListInsert
-xmlXPathNextAncestor
-xmlXPathNextFollowing
-xmlXPathNextPreceding
-
ordering
xmlListDataCompare
-
org
XINCLUDE_NS
-XINCLUDE_OLD_NS
-xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlGetCharEncodingName
-xmlParserHandlePEReference
-xmlParserHandleReference
-xmlSchemaGetPredefinedType
-xmlTextReaderNodeType
-
oriented
xmlValidityErrorFunc
-xmlValidityWarningFunc
-
origin
_xmlXPathContext
-
original
_xmlSchemaElement
-_xmlSchemaFacet
-xmlCharEncodingInputFunc
-xmlCopyError
-xmlGetEncodingAlias
-xmlListMerge
-xmlParseEntityValue
-xmlParseURIRaw
-xmlShellSave
-xmlStrcat
-xmlStrncat
-xmlStrncatNew
-xmlXPathObjectCopy
-
other
XML_SCHEMAS_INCLUDING_CONVERT_NS
-htmlAutoCloseTag
-htmlIsAutoClosed
-htmlNodeStatus
-xmlAutomataNewNegTrans
-xmlCatalogAdd
-xmlGcMemSetup
-xmlLoadACatalog
-xmlMemSetup
-xmlNanoFTPUpdateURL
-xmlParseAttValue
-xmlParseAttribute
-xmlParseNamespace
-xmlParseSDDecl
-xmlSchemaNewStringValue
-xmlTextReaderIsNamespaceDecl
-xmlTextReaderReadString
-xmlValidateRoot
-xmlXPathIdFunction
-xmlXPathNormalizeFunction
-xmlXPathStringFunction
-xmlXPathStringLengthFunction
-
our
setDocumentLocator
-setDocumentLocatorSAXFunc
-xmlSAX2SetDocumentLocator
-
out
UTF8ToHtml
-UTF8Toisolat1
-docbEncodeEntities
-htmlEncodeEntities
-isolat1ToUTF8
-xmlCharEncodingInputFunc
-xmlLockLibrary
-xmlParseEntity
-xmlSAXParseEntity
-xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-xmlTextReaderNormalization
-xmlXPathFunction
-xmlXPathNodeSetItem
-
out-of
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-
output?
xmlNewTextWriterDoc
-xmlNewTextWriterFilename
-xmlNewTextWriterMemory
-xmlNewTextWriterPushParser
-xmlNewTextWriterTree
-
outside
xmlReconciliateNs
-
over
xmlExpCtxtNbCons
-
overflow
_xmlParserInput
-
override
resolveEntity
-resolveEntitySAXFunc
-xmlCatalogAdd
-xmlSAX2ResolveEntity
-
overwrite
xmlACatalogAdd
-xmlCatalogAdd
-
overwritten
xmlAddEncodingAlias
-
own
_xmlEntity
-_xmlParserCtxt
-resolveEntity
-resolveEntitySAXFunc
-xmlCleanupMemory
-xmlSAX2ResolveEntity
-
owned
xmlClearParserCtxt
-xmlDictOwns
-
owner
ftpListCallback
-xmlDOMWrapRemoveNode
-
ownership
xmlAddAttributeDecl
-
owning
xmlCopyDocElementContent
-xmlFreeDocElementContent
-xmlNewDocFragment
-
owns
XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk22.html b/src/tools/docbook/libxml2/doc/APIchunk22.html deleted file mode 100644 index f4c832163a..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk22.html +++ /dev/null @@ -1,591 +0,0 @@ - - -API Alphabetic Index p-p for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index p-p for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter p:

pairs
startElement
-startElementNsSAX2Func
-startElementSAXFunc
-xmlSAX2StartElement
-xmlSAX2StartElementNs
-
param
_xmlDtd
-
parameter-entity
xmlParseElementChildrenContentDecl
-xmlParseMarkupDecl
-
parameters
ATTRIBUTE_UNUSED
-errorSAXFunc
-fatalErrorSAXFunc
-warningSAXFunc
-xmlNewChild
-xmlNewTextChild
-xmlParserError
-xmlParserValidityError
-xmlParserValidityWarning
-xmlParserWarning
-xmlStrPrintf
-xmlStrVPrintf
-xmlTextWriterWriteFormatAttribute
-xmlTextWriterWriteFormatAttributeNS
-xmlTextWriterWriteFormatCDATA
-xmlTextWriterWriteFormatComment
-xmlTextWriterWriteFormatDTD
-xmlTextWriterWriteFormatDTDAttlist
-xmlTextWriterWriteFormatDTDElement
-xmlTextWriterWriteFormatDTDInternalEntity
-xmlTextWriterWriteFormatElement
-xmlTextWriterWriteFormatElementNS
-xmlTextWriterWriteFormatPI
-xmlTextWriterWriteFormatRaw
-xmlTextWriterWriteFormatString
-xmlXPathEvalFunc
-
parent-
_xmlNode
-
parentheses
xmlParseElementChildrenContentDecl
-
parenthesis
xmlSnprintfElementContent
-xmlSprintfElementContent
-
parenthesized
xmlParseElementChildrenContentDecl
-
parents
xmlSearchNs
-xmlSearchNsByHref
-
partial
xmlOutputBufferWrite
-xmlOutputBufferWriteEscape
-xmlOutputBufferWriteString
-
particular
_xmlNodeSet
-
pass
xmlCurrentChar
-xmlRelaxParserSetFlag
-xmlTextReaderSetErrorHandler
-xmlTextReaderSetStructuredErrorHandler
-
passed
CHECK_ARITY
-xmlAutomataNewNegTrans
-xmlAutomataNewTransition
-xmlAutomataNewTransition2
-xmlHashScan
-xmlHashScan3
-xmlHashScanFull
-xmlHashScanFull3
-xmlListReverseWalk
-xmlListWalk
-xmlNanoFTPGet
-xmlNanoFTPList
-xmlParseAttValue
-xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-xmlXPathEvalFunc
-xmlXPathIntersection
-
passive
xmlNanoFTPGetConnection
-
password
xmlNanoFTPProxy
-
past
attribute
-attributeSAXFunc
-xmlTextReaderGetRemainder
-
paste
xmlReconciliateNs
-
path
_xmlURI
-xmlCanonicPath
-xmlCheckFilename
-xmlGetNodePath
-xmlLoadACatalog
-xmlLoadCatalog
-xmlLoadSGMLSuperCatalog
-xmlModuleOpen
-xmlNanoFTPGetSocket
-xmlNanoFTPUpdateURL
-xmlNormalizeURIPath
-xmlNormalizeWindowsPath
-xmlParserGetDirectory
-xmlShellPwd
-xmlShellValidate
-xmlTextReaderRelaxNGValidate
-xmlTextReaderSchemaValidate
-
pattern
XML_SCHEMAS_TYPE_NORMVALUENEEDED
-xmlPatternFromRoot
-xmlPatternGetStreamCtxt
-xmlPatternMatch
-xmlPatternMaxDepth
-xmlPatternMinDepth
-xmlPatternStreamable
-xmlPatterncompile
-xmlSchemaValidateFacetWhtsp
-xmlStreamWantsAnyNode
-xmlTextReaderPreservePattern
-
patterns
_xmlSchemaFacet
-
pcdata
cdataBlock
-cdataBlockSAXFunc
-xmlSAX2CDataBlock
-
pedantic
_xmlParserCtxt
-xmlPedanticParserDefault
-
per
xmlGetLastError
-xmlParseAttributeType
-xmlValidateElementDecl
-xmlXPathContextSetCache
-
performance
xmlGetBufferAllocationScheme
-xmlSetBufferAllocationScheme
-
performed
htmlNodeStatus
-
pertain
xmlNewDocTextLen
-
pertains
xmlNodeGetBase
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseExternalEntity
-
phase
xmlRegNewExecCtxt
-
pic1
xmlBuildRelativeURI
-
piece
xmlNewChild
-xmlNewDocNode
-xmlNewDocNodeEatName
-
pieces
xmlParseURIRaw
-
place
xmlCatalogAdd
-xmlCopyError
-xmlGcMemGet
-xmlMemGet
-xmlReplaceNode
-
places
xmlStrPrintf
-xmlStrVPrintf
-
plug
xmlXPathFuncLookupFunc
-xmlXPathVariableLookupFunc
-
plus
UTF8ToHtml
-docbEncodeEntities
-htmlEncodeEntities
-
pnetlib-doc
xmlTextReaderNodeType
-
pointed
xmlPopInput
-
pointers
xmlParserInputGrow
-xmlParserInputRead
-xmlReconciliateNs
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlValidGetValidElements
-
points
_xmlChRangeGroup
-
pop
xmlPopInput
-
popped
xmlXPathFunction
-
pops
xmlSkipBlankChars
-
port
_xmlURI
-xmlNanoFTPConnectTo
-xmlNanoFTPProxy
-xmlNanoFTPScanProxy
-xmlNanoFTPUpdateURL
-xmlNanoHTTPScanProxy
-
portable
xmlXPathIsInf
-xmlXPathIsNaN
-
pos
xmlUTF8Strsub
-
position:
xmlXPathSubstringFunction
-
positioned
xmlTextReaderReadString
-
positionned
xmlTextReaderReadAttributeValue
-
positions
xmlUTF8Strsub
-
positive
UTF8ToHtml
-UTF8Toisolat1
-docbEncodeEntities
-htmlEncodeEntities
-isolat1ToUTF8
-xmlBufferAdd
-xmlBufferAddHead
-xmlBufferCCat
-xmlBufferCat
-xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-xmlRelaxNGValidateDoc
-xmlSchemaCheckFacet
-xmlSchemaValPredefTypeNode
-xmlSchemaValPredefTypeNodeNoNorm
-xmlSchemaValidateFacet
-xmlSchemaValidateFacetWhtsp
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-xmlSchemaValidateListSimpleTypeFacet
-xmlSchemaValidatePredefinedType
-xmlTextReaderPreservePattern
-xmlValidateNCName
-xmlValidateNMToken
-xmlValidateName
-xmlValidateQName
-xmlXPathBooleanFunction
-xmlXPathFloorFunction
-xmlXPathStringFunction
-
possible
xmlCopyNodeList
-xmlCreateEntityParserCtxt
-xmlParseDefaultDecl
-xmlParseExternalID
-xmlReconciliateNs
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlTextReaderRelaxNGSetSchema
-xmlTextReaderRelaxNGValidate
-xmlTextReaderSchemaValidate
-xmlTextReaderSchemaValidateCtxt
-xmlTextReaderSetSchema
-xmlValidateDtdFinal
-
possibly
xmlDocGetRootElement
-xmlDocSetRootElement
-xmlIsBlankNode
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseExternalEntity
-xmlSaveToFilename
-xmlXPathStringFunction
-
posteriori
xmlSetNs
-
potential
xmlDebugCheckDocument
-xmlValidGetPotentialChildren
-
potentially
_xmlURI
-
pre-interned
_xmlParserCtxt
-
preallocated
xmlBuildQName
-
precede
xmlParseEntityRef
-xmlParsePEReference
-xmlParserHandlePEReference
-xmlXPathLeading
-xmlXPathLeadingSorted
-xmlXPathNodeLeading
-xmlXPathNodeLeadingSorted
-
preceded
xmlXPathStringFunction
-
precedes
xmlXPathSubstringBeforeFunction
-
preceding
_xmlXPathParserContext
-xmlXPathNextPreceding
-xmlXPathNextPrecedingSibling
-
preceding-sibling
xmlXPathNextPrecedingSibling
-
precisely
xmlXPathSubstringFunction
-
precompiled
_xmlXPathParserContext
-xmlPatternFromRoot
-xmlPatternGetStreamCtxt
-xmlPatternMatch
-xmlPatternMaxDepth
-xmlPatternMinDepth
-xmlPatternStreamable
-xmlRegNewExecCtxt
-xmlRelaxNGNewValidCtxt
-xmlSchematronNewValidCtxt
-xmlTextReaderRelaxNGSetSchema
-xmlTextReaderSetSchema
-xmlXPathDebugDumpCompExpr
-
precomputed
xmlSchemaCopyValue
-xmlSchemaGetCanonValue
-xmlSchemaGetCanonValueWhtsp
-xmlSchemaValidateFacet
-xmlSchemaValidateFacetWhtsp
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-
predefined
XML_XML_NAMESPACE
-xmlCleanupPredefinedEntities
-xmlEncodeEntitiesReentrant
-xmlEncodeSpecialChars
-xmlGetDocEntity
-xmlGetPredefinedEntity
-xmlInitializePredefinedEntities
-xmlParseReference
-xmlSchemaValPredefTypeNode
-xmlSchemaValPredefTypeNodeNoNorm
-xmlSchemaValidatePredefinedType
-
predicate
xmlXPathEvalPredicate
-xmlXPathEvaluatePredicateResult
-xmlXPtrEvalRangePredicate
-
preferably
xmlInitializeCatalog
-xmlLoadCatalog
-xmlLoadCatalogs
-xmlNewPI
-
preference
xmlCatalogGetDefaults
-xmlCatalogSetDefaultPrefer
-xmlCatalogSetDefaults
-
prefixes
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-
preparsed
xmlReaderNewWalker
-xmlReaderWalker
-xmlRelaxNGNewDocParserCtxt
-xmlSchemaNewDocParserCtxt
-xmlSchematronNewDocParserCtxt
-
prepend
xmlValidGetValidElements
-
present
xmlBufferCreateStatic
-xmlDictLookup
-xmlDictQLookup
-xmlGetUTF8Char
-xmlNewNs
-xmlTextReaderConstValue
-xmlTextReaderValue
-xmlValidateDocument
-xmlValidateDtd
-xmlValidateOneElement
-
preserve
XML_SCHEMAS_FACET_PRESERVE
-XML_SCHEMAS_TYPE_WHITESPACE_PRESERVE
-_xmlParserCtxt
-xmlNodeGetSpacePreserve
-xmlNodeSetSpacePreserve
-xmlParserInputGrow
-xmlParserInputRead
-xmlTextReaderPreserve
-xmlTextReaderPreservePattern
-
preserved
HTML_PRESERVE_NODE
-xmlNewTextChild
-xmlParserInputBufferGrow
-
preserving
xmlNodeGetSpacePreserve
-xmlNodeSetSpacePreserve
-
prev
xmlValidGetValidElements
-
prevent
_xmlParserCtxt
-xmlCleanupParser
-
previous
_xmlAttr
-_xmlAttribute
-_xmlDoc
-_xmlDtd
-_xmlElement
-_xmlEntity
-_xmlNode
-htmlHandleOmittedElem
-xmlAddPrevSibling
-xmlCatalogSetDebug
-xmlCatalogSetDefaultPrefer
-xmlDeregisterNodeDefault
-xmlKeepBlanksDefault
-xmlLineNumbersDefault
-xmlPedanticParserDefault
-xmlPushInput
-xmlSAXDefaultVersion
-xmlSubstituteEntitiesDefault
-xmlXPathAxisFunc
-
primitive
XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE
-xmlXPathConvertFunc
-
print
xmlShellPrintNode
-xmlSnprintfElementContent
-xmlSprintfElementContent
-
printed
htmlNodeDump
-htmlNodeDumpFile
-htmlNodeDumpFileFormat
-htmlNodeDumpFormatOutput
-htmlNodeDumpOutput
-xmlElemDump
-xmlNodeDump
-xmlNodeDumpOutput
-
prior
xmlSetupParserForBuffer
-
private
xmlCatalogLocalResolve
-xmlCatalogLocalResolveURI
-xmlRelaxParserSetFlag
-
problem
xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseCtxtExternalEntity
-xmlParseExternalEntity
-xmlRelaxNGValidateFullElement
-xmlRelaxNGValidatePopElement
-xmlRelaxNGValidatePushCData
-xmlRelaxNGValidatePushElement
-xmlTextReaderGetRemainder
-xmlUTF8Strsub
-xmlValidatePopElement
-xmlValidatePushCData
-xmlValidatePushElement
-
problems
xmlBufferResize
-xmlDebugCheckDocument
-xmlLoadExternalEntity
-xmlValidateDtd
-
procedure
initxmlDefaultSAXHandler
-xmlSAX2InitDefaultSAXHandler
-
process
xmlCleanupParser
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlDecodeEntities
-xmlNewTextReaderFilename
-xmlParseAttValue
-xmlParseEntityRef
-xmlRelaxNGNewDocParserCtxt
-xmlSchemaNewDocParserCtxt
-xmlSchematronNewDocParserCtxt
-xmlSkipBlankChars
-xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-
processed
_xmlParserCtxt
-startDocument
-startDocumentSAXFunc
-startElement
-startElementSAXFunc
-xmlBuildURI
-xmlParseAttValue
-xmlSAX2StartDocument
-xmlSAX2StartElement
-xmlTextReaderRelaxNGSetSchema
-xmlTextReaderRelaxNGValidate
-xmlTextReaderSchemaValidate
-xmlTextReaderSchemaValidateCtxt
-xmlTextReaderSetSchema
-
processing-instruction
xmlXPathIsNodeType
-
processing-instruction-node
xmlStreamPushNode
-
processing-instruction-nodes
xmlStreamWantsAnyNode
-
processor
xmlCurrentChar
-xmlParseAttValue
-xmlParseEntityRef
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-
procgressed
xmlTextReaderGetRemainder
-
produce
xmlCharEncodingOutputFunc
-xmlStringGetNodeList
-xmlStringLenGetNodeList
-
produced
xmlCharEncodingOutputFunc
-xmlCurrentChar
-
producing
xmlCheckUTF8
-
production:
xmlCheckLanguageID
-
productions
xmlCheckLanguageID
-
program
xmlXPtrNewContext
-
programs
htmlInitAutoClose
-xmlInitParser
-
progresses
xmlRegNewExecCtxt
-
progressive
_xmlParserCtxt
-xmlAllocParserInputBuffer
-xmlOutputBufferCreateBuffer
-xmlOutputBufferCreateFd
-xmlOutputBufferCreateFile
-xmlOutputBufferCreateFilename
-xmlOutputBufferCreateIO
-xmlParserInputBufferCreateFd
-xmlParserInputBufferCreateFile
-xmlParserInputBufferCreateFilename
-xmlParserInputBufferCreateIO
-xmlParserInputBufferCreateMem
-xmlParserInputBufferCreateStatic
-xmlParserInputBufferPush
-xmlRegNewExecCtxt
-
prohibited
XML_SCHEMAS_ATTR_USE_PROHIBITED
-
projects
xmlXPathIsInf
-xmlXPathIsNaN
-
prolog
xmlParseDocument
-
prompt
xmlShellReadlineFunc
-
proper
xmlValidateAttributeValue
-
properly
xmlParseElementChildrenContentDecl
-xmlParseMarkupDecl
-xmlReconciliateNs
-
properties
_xmlNode
-xmlAddChild
-xmlAddNextSibling
-xmlAddPrevSibling
-xmlCopyNode
-xmlDocCopyNode
-xmlTextReaderRead
-xmlTextReaderSetParserProp
-
property
_xmlAttr
-_xmlDtd
-xmlAddChild
-xmlFreePropList
-xmlNewDocProp
-xmlNewNsProp
-xmlNewNsPropEatName
-xmlNewProp
-xmlTextReaderGetParserProp
-
protocol
xmlNanoFTPCleanup
-xmlNanoFTPInit
-xmlNanoFTPScanProxy
-xmlNanoFTPUpdateURL
-xmlNanoHTTPCleanup
-xmlNanoHTTPInit
-xmlNanoHTTPScanProxy
-
prototype
xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-xlinkNodeDetectFunc
-xlinkSimpleLinkFunk
-
provenance
xmlEntityReferenceFunc
-
provide
xmlDocDumpFormatMemory
-xmlDocDumpFormatMemoryEnc
-xmlDocFormatDump
-xmlInputMatchCallback
-xmlNodeDump
-xmlNodeDumpOutput
-xmlOutputMatchCallback
-xmlSaveFormatFile
-xmlSaveFormatFileEnc
-xmlUTF8Strloc
-xmlUTF8Strpos
-
provides
endElementNsSAX2Func
-startElementNsSAX2Func
-xmlByteConsumed
-xmlExpCtxtNbCons
-xmlExpCtxtNbNodes
-xmlSAX2EndElementNs
-xmlSAX2StartElementNs
-xmlTextReaderByteConsumed
-
providing
INPUT_CHUNK
-
provoked
xmlCheckUTF8
-
proximity
_xmlXPathContext
-
proxy
xmlNanoFTPCleanup
-xmlNanoFTPInit
-xmlNanoFTPProxy
-xmlNanoFTPScanProxy
-xmlNanoHTTPInit
-xmlNanoHTTPScanProxy
-
prune
xmlReplaceNode
-
publicID
xmlParseExternalID
-
pull
xmlParserInputBufferGrow
-
pure
xmlParseCDSect
-
purposes
xmlXPathDebugDumpObject
-
push
LIBXML_PUSH_ENABLED
-_xmlParserCtxt
-docbCreatePushParserCtxt
-htmlCreatePushParserCtxt
-xmlCreatePushParserCtxt
-xmlCtxtResetPush
-xmlParserInputBufferPush
-xmlStreamPop
-xmlXPathEvalExpr
-
pushed
xmlRegExecErrInfo
-xmlStreamPushNode
-xmlStreamWantsAnyNode
-xmlXPathFunction
-
pushing
xmlParsePEReference
-
put
xmlCatalogAdd
-
putative
xmlCheckUTF8
-
pwd
xmlShellPwd
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk23.html b/src/tools/docbook/libxml2/doc/APIchunk23.html deleted file mode 100644 index 4a782246a2..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk23.html +++ /dev/null @@ -1,659 +0,0 @@ - - -API Alphabetic Index q-r for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index q-r for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter q:

qualified
XML_SCHEMAS_QUALIF_ATTR
-XML_SCHEMAS_QUALIF_ELEM
-xmlGetDtdQAttrDesc
-xmlNamespaceParseQName
-xmlSplitQName
-xmlSplitQName2
-xmlSplitQName3
-xmlTextReaderConstName
-xmlTextReaderGetAttribute
-xmlTextReaderMoveToAttribute
-xmlTextReaderName
-xmlValidatePopElement
-xmlValidatePushElement
-xmlXPathParseNCName
-
query
_xmlURI
-
quot
xmlParseEntityRef
-xmlParseSDDecl
-xmlParserHandleReference
-
quotation
xmlTextReaderQuoteChar
-
quote
docbEncodeEntities
-htmlEncodeEntities
-xmlBufferWriteQuotedString
-
quoted
xmlBufferWriteQuotedString
-
quotes
xmlParseQuotedString
-

Letter r:

raise
XP_ERROR
-XP_ERROR0
-
raised
_xmlError
-xmlCheckHTTPInput
-xmlNanoFTPUpdateURL
-xmlStructuredErrorFunc
-xmlXPathCheckError
-
range
IS_BYTE_CHAR
-xmlAutomataNewCounterTrans
-xmlBufferAdd
-xmlBufferAddHead
-xmlCharInRange
-xmlExpNewRange
-xmlTextReaderNormalization
-xmlXPathNodeSetItem
-xmlXPtrLocationSetAdd
-xmlXPtrLocationSetDel
-xmlXPtrLocationSetRemove
-xmlXPtrNewCollapsedRange
-xmlXPtrNewLocationSetNodes
-xmlXPtrNewRange
-xmlXPtrNewRangeNodeObject
-xmlXPtrNewRangeNodePoint
-xmlXPtrNewRangeNodes
-xmlXPtrNewRangePointNode
-xmlXPtrNewRangePoints
-
range-to
xmlXPtrRangeToFunction
-
ranges
_xmlChRangeGroup
-xmlXPtrFreeLocationSet
-xmlXPtrLocationSetMerge
-
rangesets
xmlXPtrLocationSetMerge
-
rather
xmlTextReaderIsNamespaceDecl
-
ratio
xmlGetDocCompressMode
-xmlSetCompressMode
-xmlSetDocCompressMode
-
ration
xmlOutputBufferCreateFilename
-
raw
_xmlParserInputBuffer
-xmlNamespaceParseNCName
-xmlNamespaceParseNSDef
-xmlNamespaceParseQName
-xmlParseCDSect
-xmlParserInputBufferGrow
-xmlTextWriterWriteFormatRaw
-xmlTextWriterWriteRaw
-xmlTextWriterWriteVFormatRaw
-
re-entrant
xmlLockLibrary
-xmlNewRMutex
-xmlUnlockLibrary
-
reachable
xmlPatternMaxDepth
-xmlPatternMinDepth
-
reached
xmlRegExecPushString
-xmlRegExecPushString2
-
read-only
xmlDictCreateSub
-
readable
xmlStrEqual
-
reader-
xmlTextReaderGetRemainder
-
reading
xmlShell
-
ready
INPUT_CHUNK
-xmlAutomataCompile
-
realloc
_xmlBuffer
-xmlGcMemGet
-xmlGcMemSetup
-xmlMemGet
-xmlMemRealloc
-xmlMemSetup
-xmlReallocFunc
-xmlReallocLoc
-
reallocated
xmlReallocFunc
-xmlStrncat
-
really
HTML_COMMENT_NODE
-HTML_ENTITY_REF_NODE
-HTML_PI_NODE
-HTML_PRESERVE_NODE
-HTML_TEXT_NODE
-htmlEntityLookup
-htmlEntityValueLookup
-xmlBuildRelativeURI
-xmlCreateEntitiesTable
-
reasonable
xmlBuildRelativeURI
-
receive
xmlExpDump
-
received
ftpDataCallback
-xmlNanoHTTPReturnCode
-
receives
xmlParseExternalID
-
receiving
characters
-ignorableWhitespace
-xmlParseExternalID
-xmlSAX2Characters
-xmlSAX2IgnorableWhitespace
-xmlValidGetValidElements
-
reclaim
xmlCleanupParser
-xmlFreeMutex
-xmlFreeRMutex
-
recognized
xmlParseCharEncoding
-
recommendation
xmlDetectCharEncoding
-
recommendation:
xmlValidateAttributeDecl
-xmlValidateElementDecl
-xmlValidateNotationDecl
-xmlValidateOneAttribute
-xmlValidateOneElement
-xmlValidateOneNamespace
-xmlValidateRoot
-
recomputed
xmlBufferAdd
-xmlBufferAddHead
-xmlDictExists
-xmlDictLookup
-
reconciliate
xmlReconciliateNs
-
record
xmlACatalogAdd
-xmlCatalogAdd
-xmlParserAddNodeInfo
-xmlParserFindNodeInfoIndex
-
recover
xmlParseBalancedChunkMemoryRecover
-
recovery
_xmlParserCtxt
-xmlSAXParseDoc
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-
recurse
xmlLoadACatalog
-xmlLoadCatalog
-xmlSearchNs
-xmlValidateRoot
-
recursive
htmlNodeDump
-htmlNodeDumpFile
-htmlNodeDumpFileFormat
-htmlNodeDumpFormatOutput
-htmlNodeDumpOutput
-htmlParseElement
-xmlCopyDoc
-xmlCopyEnumeration
-xmlCopyNode
-xmlCopyNodeList
-xmlDebugDumpDocument
-xmlDebugDumpDocumentHead
-xmlDebugDumpNode
-xmlDebugDumpNodeList
-xmlDebugDumpOneNode
-xmlDocCopyNode
-xmlDocCopyNodeList
-xmlElemDump
-xmlFreeEnumeration
-xmlFreeNode
-xmlFreeNodeList
-xmlNewRMutex
-xmlNodeDump
-xmlNodeDumpOutput
-xmlParseElement
-xmlParsePEReference
-xmlParserHandlePEReference
-
recursively
xmlLoadACatalog
-xmlParseAttValue
-
redeclared
xmlReconciliateNs
-
redefined
XML_SCHEMAS_ATTRGROUP_REDEFINED
-XML_SCHEMAS_TYPE_REDEFINED
-
redefinition
xmlErrMemory
-
redir
xmlNanoHTTPMethodRedir
-
redirected
xmlNanoHTTPMethodRedir
-xmlNanoHTTPOpenRedir
-xmlNanoHTTPRedir
-
redirection
xmlCheckHTTPInput
-xmlNanoHTTPRedir
-
reentrant
htmlInitAutoClose
-xmlEncodeEntitiesReentrant
-xmlEncodeSpecialChars
-xmlFreeRMutex
-xmlInitParser
-xmlNewRMutex
-xmlRMutexLock
-xmlRMutexUnlock
-
ref
XML_SCHEMAS_ATTR_INTERNAL_RESOLVED
-XML_SCHEMAS_ELEM_INTERNAL_RESOLVED
-_xmlEntity
-xmlAddRef
-xmlFreeRefTable
-xmlNewCharRef
-
referenced
xmlLinkGetData
-xmlParseAttValue
-
references
XML_SCHEMAS_ATTRGROUP_HAS_REFS
-XML_SCHEMAS_ATTR_INTERNAL_RESOLVED
-XML_SCHEMAS_ELEM_CIRCULAR
-XML_SCHEMAS_ELEM_INTERNAL_RESOLVED
-htmlParseEntityRef
-xmlGetRefs
-xmlLoadSGMLSuperCatalog
-xmlNewChild
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlNodeBufGetContent
-xmlNodeGetContent
-xmlParseAttribute
-xmlParseCharRef
-xmlParseEntityRef
-xmlParseMarkupDecl
-xmlParsePEReference
-xmlParseReference
-xmlParseSDDecl
-xmlParserHandlePEReference
-xmlScanName
-xmlSubstituteEntitiesDefault
-
referencing
xmlGetDocEntity
-xmlGetDtdEntity
-xmlGetParameterEntity
-
referred
xmlParseAttribute
-xmlParseCharRef
-
refresh
xmlParserInputRead
-
refs
_xmlDoc
-_xmlParserCtxt
-
refuse
xmlNewNs
-
regex
_xmlSchemaFacet
-
regexp
_xmlElement
-xmlAutomataCompile
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlRegExecPushString
-xmlRegExecPushString2
-xmlRegFreeRegexp
-xmlRegNewExecCtxt
-xmlRegexpPrint
-
regexps
xmlExpParse
-
register
xmlXPathRegisterVariableLookup
-
registered
xmlCtxtGetLastError
-xmlCtxtResetLastError
-xmlFindCharEncodingHandler
-xmlGetCharEncodingHandler
-xmlGetLastError
-xmlPopInputCallbacks
-xmlRegisterInputCallbacks
-xmlRegisterOutputCallbacks
-xmlResetLastError
-xmlSearchNs
-xmlTextReaderGetErrorHandler
-xmlXPathRegisteredFuncsCleanup
-xmlXPathRegisteredNsCleanup
-xmlXPathRegisteredVariablesCleanup
-
registers
xmlInitCharEncodingHandlers
-xmlNewCharEncodingHandler
-
registration
XML_SKIP_IDS
-xmlOutputBufferCreateFilenameDefault
-xmlParserInputBufferCreateFilenameDefault
-xmlRegisterNodeDefault
-
regular
LIBXML_REGEXP_ENABLED
-xmlRegFreeExecCtxt
-xmlRegNewExecCtxt
-xmlRegexpCompile
-xmlRegexpExec
-xmlRegexpIsDeterminist
-xmlRegexpPrint
-xmlTextReaderIsNamespaceDecl
-
reinitialize
xmlClearNodeInfoSeq
-xmlClearParserCtxt
-
related
LIBXML_UNICODE_ENABLED
-htmlTagLookup
-xmlCleanupParser
-xmlCleanupThreads
-xmlInitThreads
-xmlNanoHTTPClose
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-
relationships
_htmlElemDesc
-
relative
xmlBuildRelativeURI
-xmlByteConsumed
-xmlTextReaderByteConsumed
-xmlTextReaderGetAttributeNo
-xmlTextReaderMoveToAttributeNo
-xmlUTF8Strloc
-xmlUTF8Strsub
-
relativeURI
xmlParseURI
-xmlParseURIRaw
-xmlParseURIReference
-
release
xmlClearNodeInfoSeq
-xmlClearParserCtxt
-xmlDecodeEntities
-xmlExpNewOr
-xmlExpNewRange
-xmlExpNewSeq
-xmlUnlockLibrary
-
releases
xmlTextReaderClose
-
reliable
xmlSaveToFilename
-
rely
xmlParseNamespace
-
remainder
xmlTextReaderGetRemainder
-
remaining
xmlCreatePushParserCtxt
-xmlValidityErrorFunc
-xmlValidityWarningFunc
-
remapped
xmlCharEncOutFunc
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-
remote
xmlNanoFTPCwd
-
removal
xmlHashRemoveEntry
-xmlHashRemoveEntry2
-xmlHashRemoveEntry3
-
remove
xmlACatalogRemove
-xmlBufferShrink
-xmlCatalogRemove
-xmlDecodeEntities
-xmlEncodeEntities
-xmlHashRemoveEntry
-xmlHashRemoveEntry2
-xmlHashRemoveEntry3
-xmlParseNamespace
-xmlParserInputBufferGrow
-xmlXPathNodeSetRemove
-xmlXPtrLocationSetRemove
-
removed
inputPop
-namePop
-nodePop
-valuePop
-xmlACatalogRemove
-xmlBufferShrink
-xmlCatalogRemove
-xmlCheckLanguageID
-xmlDOMWrapRemoveNode
-xmlFreeDocElementContent
-xmlFreeElementContent
-xmlHandleEntity
-xmlHashRemoveEntry
-xmlHashRemoveEntry2
-xmlHashRemoveEntry3
-xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-xmlNewGlobalNs
-xmlParseNamespace
-xmlParseQuotedString
-xmlXPathTranslateFunction
-
removes
xmlParserInputShrink
-
removing
xmlLoadSGMLSuperCatalog
-
rename
_xmlError
-
repeat
xmlXPathAxisFunc
-
repeated
xmlExpNewRange
-
repetition
xmlExpNewRange
-
replace
XML_SCHEMAS_FACET_REPLACE
-XML_SCHEMAS_TYPE_WHITESPACE_REPLACE
-_xmlParserCtxt
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlValidGetValidElements
-
replaced
xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-xmlNewTextChild
-xmlXPathTranslateFunction
-
replacement
xmlACatalogAdd
-xmlCatalogAdd
-xmlEntityReferenceFunc
-xmlParseAttValue
-xmlParseAttribute
-xmlParseElementChildrenContentDecl
-xmlParseMarkupDecl
-
replaces
DEBUG_MEMORY
-
replacing
xmlEncodeEntitiesReentrant
-xmlEncodeSpecialChars
-xmlParseAttValue
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-xmlXPathNormalizeFunction
-
reporting
INPUT_CHUNK
-_xmlXPathContext
-xmlStructuredErrorFunc
-
reports
docbCreatePushParserCtxt
-htmlCreatePushParserCtxt
-xmlCreatePushParserCtxt
-
repr
xmlSchemaValidateFacet
-xmlSchemaValidateFacetWhtsp
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-xmlSchemaValidateListSimpleTypeFacet
-
representation
_htmlElemDesc
-xmlSchemaGetCanonValue
-xmlSchemaGetCanonValueWhtsp
-
representations
xmlNewTextChild
-xmlSchemaGetCanonValue
-
represented
xmlParseCharData
-xmlXPathStringFunction
-
represented:
_htmlElemDesc
-
representing
xmlMemBlocks
-xmlMemUsed
-
request
xmlIOHTTPOpenW
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-xmlNanoHTTPReturnCode
-
requested
xmlExternalEntityLoader
-xmlHasFeature
-xmlIsID
-xmlMallocFunc
-xmlReallocFunc
-
requests
xmlRegisterHTTPPostCallbacks
-
required
XML_SCHEMAS_ATTR_USE_REQUIRED
-htmlRequiredAttrs
-xmlCatalogSetDebug
-xmlSchemaCollapseString
-xmlSchemaWhiteSpaceReplace
-xmlXPathStringFunction
-
requires
_htmlElemDesc
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlGetLineNo
-xmlRelaxNGValidatePushElement
-
requred
xmlC14NDocSave
-
reserved
xmlNewTextChild
-xmlURIEscapeStr
-
reset
initGenericErrorDefaultFunc
-xmlCtxtReadFd
-xmlNodeSetBase
-xmlNodeSetName
-xmlNodeSetSpacePreserve
-xmlReadFd
-xmlReaderForFd
-xmlReaderNewFd
-xmlSetGenericErrorFunc
-xmlSetNsProp
-xmlSetProp
-xmlSetStructuredErrorFunc
-xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-
resides
xmlTextReaderConstXmlLang
-xmlTextReaderXmlLang
-
resize
xmlBufferResize
-
resolution
resolveEntity
-resolveEntitySAXFunc
-xmlACatalogResolve
-xmlACatalogResolveURI
-xmlCatalogLocalResolve
-xmlCatalogLocalResolveURI
-xmlCatalogResolve
-xmlCatalogResolveURI
-xmlCatalogSetDefaultPrefer
-xmlNoNetExternalEntityLoader
-xmlSAX2ResolveEntity
-
resolveEntity
resolveEntity
-resolveEntitySAXFunc
-
resolved
XML_SCHEMAS_ATTR_INTERNAL_RESOLVED
-XML_SCHEMAS_ELEM_INTERNAL_RESOLVED
-xmlTextReaderLookupNamespace
-
resolver
xmlGetExternalEntityLoader
-xmlSetExternalEntityLoader
-
resources
xmlClearParserCtxt
-xmlFreeMutex
-xmlFreeRMutex
-xmlFreeTextReader
-xmlFreeTextWriter
-xmlOutputBufferClose
-xmlRelaxNGFreeParserCtxt
-xmlRelaxNGFreeValidCtxt
-xmlSchemaFreeParserCtxt
-xmlSchematronFreeParserCtxt
-xmlSchematronFreeValidCtxt
-xmlTextReaderClose
-xmlXIncludeSetFlags
-
respect
xmlExpStringDerive
-
respecting
xmlValidGetValidElements
-
response
xmlNanoFTPCheckResponse
-xmlNanoFTPGetResponse
-xmlNanoHTTPContentLength
-
responsible
xmlC14NDocDumpMemory
-xmlCanonicPath
-
restored
xmlTextReaderSetErrorHandler
-xmlTextReaderSetStructuredErrorHandler
-
restrict
xmlParseExternalID
-
restriction
XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION
-XML_SCHEMAS_ELEM_BLOCK_RESTRICTION
-XML_SCHEMAS_ELEM_FINAL_RESTRICTION
-XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION
-XML_SCHEMAS_TYPE_BLOCK_RESTRICTION
-XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION
-XML_SCHEMAS_TYPE_FINAL_RESTRICTION
-
results
xmlXPathEqualValues
-xmlXPathNotEqualValues
-
retValue
xmlSchemaGetCanonValue
-
retrieve
xmlGetGlobalState
-xmlNanoFTPGet
-xmlNanoFTPGetSocket
-
retrieved
xmlHashAddEntry
-xmlHashAddEntry2
-xmlHashAddEntry3
-xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-
retry
xmlValidGetValidElements
-
returning
xmlXPathStringFunction
-
reusal
_xmlXPathContext
-
reuse
xmlReconciliateNs
-xmlRegExecPushString
-xmlRegExecPushString2
-
reused
xmlXPathContextSetCache
-
reuses
htmlCtxtReadDoc
-htmlCtxtReadFd
-htmlCtxtReadFile
-htmlCtxtReadIO
-htmlCtxtReadMemory
-xmlCtxtReadDoc
-xmlCtxtReadFd
-xmlCtxtReadFile
-xmlCtxtReadIO
-xmlCtxtReadMemory
-xmlReaderNewDoc
-xmlReaderNewFd
-xmlReaderNewFile
-xmlReaderNewIO
-xmlReaderNewMemory
-xmlReaderNewWalker
-
reusing
xmlCleanupParser
-xmlXIncludeProcessNode
-
reverse
xmlListReverseSearch
-xmlListReverseWalk
-xmlXPathNextAncestor
-xmlXPathNextAncestorOrSelf
-xmlXPathNextPreceding
-xmlXPathNextPrecedingSibling
-
rewrite
xmlTextReaderGetRemainder
-
right
xmlAutomataNewCounterTrans
-xmlCheckFilename
-xmlExpNewOr
-xmlExpNewSeq
-xmlParseCharData
-xmlSetListDoc
-xmlSetTreeDoc
-
role
xlinkSimpleLinkFunk
-
roles
xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-
rollback
xmlScanName
-
root
externalSubset
-externalSubsetSAXFunc
-internalSubset
-internalSubsetSAXFunc
-xmlDocGetRootElement
-xmlDocSetRootElement
-xmlParseDocTypeDecl
-xmlParseNamespace
-xmlPatternFromRoot
-xmlSAX2ExternalSubset
-xmlSAX2InternalSubset
-xmlShellPwd
-xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-xmlValidateRoot
-xmlXPathNewValueTree
-xmlXPathRoot
-
round
xmlXPathRoundFunction
-
routines
docbSAXParseDoc
-docbSAXParseFile
-htmlSAXParseFile
-xmlGcMemSetup
-xmlMemSetup
-xmlParserHandleReference
-xmlSAXParseDoc
-xmlSAXParseEntity
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-xmlSAXUserParseFile
-xmlSAXUserParseMemory
-
rule
xmlParseEntityRef
-xmlParseStartTag
-
rules
XML_CAST_FPTR
-XML_SCHEMAS_ANYATTR_STRICT
-XML_SCHEMAS_ANY_STRICT
-xmlXPathSubstringFunction
-
run
_xmlParserCtxt
-xmlByteConsumed
-
running
xmlKeepBlanksDefault
-
runtime
LIBXML_DEBUG_RUNTIME
-XML_MAX_NAMELEN
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk24.html b/src/tools/docbook/libxml2/doc/APIchunk24.html deleted file mode 100644 index 6ac493b1b3..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk24.html +++ /dev/null @@ -1,911 +0,0 @@ - - -API Alphabetic Index s-s for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index s-s for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter s:

s390
XML_CAST_FPTR
-
safe
BAD_CAST
-xmlInitializeCatalog
-xmlLoadCatalog
-xmlLoadCatalogs
-
same
HTML_COMMENT_NODE
-HTML_ENTITY_REF_NODE
-HTML_PI_NODE
-HTML_PRESERVE_NODE
-HTML_TEXT_NODE
-IS_BLANK_CH
-checkNamespace
-xmlParseElementChildrenContentDecl
-xmlParseElementMixedContentDecl
-xmlParseMarkupDecl
-xmlParseStartTag
-xmlReplaceNode
-xmlStrEqual
-xmlStrncatNew
-xmlXPathCmpNodes
-xmlXPathIdFunction
-xmlXPathLangFunction
-xmlXPathNextAncestorOrSelf
-xmlXPathNextFollowing
-xmlXPathNextPreceding
-xmlXPathNormalizeFunction
-
save
htmlNodeDumpFileFormat
-xmlGcMemGet
-xmlMemGet
-xmlNanoHTTPFetch
-xmlShell
-xmlShellSave
-
saved
_htmlElemDesc
-xmlNanoHTTPFetch
-xmlNanoHTTPSave
-xmlSaveFormatFileEnc
-
saves
xmlNanoFTPRead
-xmlNanoHTTPRead
-xmlNanoHTTPSave
-xmlShellWrite
-
saving
LIBXML_OUTPUT_ENABLED
-LIBXML_WRITER_ENABLED
-xmlKeepBlanksDefault
-xmlOutputBufferCreateBuffer
-xmlOutputBufferCreateFd
-xmlOutputBufferCreateFile
-xmlOutputBufferCreateFilename
-xmlOutputBufferCreateIO
-xmlSaveClose
-xmlSaveDoc
-xmlSaveFlush
-xmlSaveSetAttrEscape
-xmlSaveSetEscape
-xmlSaveToBuffer
-xmlSaveToFd
-xmlSaveToFilename
-xmlSaveToIO
-xmlSaveTree
-
sax
docbSAXParseDoc
-docbSAXParseFile
-htmlSAXParseDoc
-htmlSAXParseFile
-xmlSAXParseDoc
-xmlSAXParseEntity
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-
say
xmlParseElementChildrenContentDecl
-xmlParseMarkupDecl
-
says
xmlParseComment
-
scan
htmlEntityLookup
-htmlEntityValueLookup
-xmlXPathStringEvalNumber
-
scanner
xmlHashScan
-xmlHashScan3
-xmlHashScanFull
-xmlHashScanFull3
-xmlHashScanner
-xmlHashScannerFull
-
scanning
xmlHashScanner
-xmlHashScannerFull
-
scannner
xmlHashScanner
-xmlHashScannerFull
-
schemas
xmlRelaxNGNewDocParserCtxt
-xmlRelaxNGNewMemParserCtxt
-xmlSchemaGetFacetValueAsULong
-xmlSchemaGetValType
-xmlSchemaNewMemParserCtxt
-xmlSchemaValidateFacet
-xmlSchemaValidateFacetWhtsp
-xmlSchematronNewMemParserCtxt
-xmlTextReaderSchemaValidate
-xmlTextReaderSchemaValidateCtxt
-
schematron
xmlSchematronValidateDoc
-
scheme
_xmlURI
-xmlBufferSetAllocationScheme
-xmlGetBufferAllocationScheme
-
schemes
xmlParseCharEncoding
-
scope
_xmlXPathContext
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlSetNsProp
-xmlSetProp
-xmlTextReaderConstXmlLang
-xmlTextReaderLookupNamespace
-xmlTextReaderXmlLang
-
scoping
xmlNewGlobalNs
-
script
htmlIsScriptAttribute
-
search
XML_SCHEMAS_ELEM_CIRCULAR
-_xmlXPathAxis
-xmlCharInRange
-xmlGetDtdAttrDesc
-xmlGetDtdElementDesc
-xmlGetDtdNotationDesc
-xmlGetDtdQAttrDesc
-xmlGetDtdQElementDesc
-xmlListReverseSearch
-xmlListSearch
-xmlSearchNs
-xmlStrcasestr
-xmlStrchr
-xmlStrstr
-
searched
xmlDictCreateSub
-
section
HTML_PRESERVE_NODE
-xmlBuildURI
-xmlCatalogSetDefaultPrefer
-xmlParseCharData
-xmlParseCharEncoding
-xmlTextWriterEndCDATA
-xmlTextWriterStartCDATA
-
sections
xmlKeepBlanksDefault
-xmlNodeGetBase
-
seems
xmlNamespaceParseNCName
-xmlNamespaceParseNSDef
-xmlNamespaceParseQName
-xmlScanName
-xmlValidateNotationDecl
-
selection
LIBXML_PATTERN_ENABLED
-
selects
xmlXPathIdFunction
-
self
xmlXPathNextSelf
-
semantic
xmlAutomataNewNegTrans
-xmlXPathNodeSetFreeNs
-
semantics
xmlXPathContextSetCache
-
sense
xmlCreateEntitiesTable
-
separated
xmlLoadCatalogs
-
separately
xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-xmlValidateAttributeDecl
-xmlValidateOneAttribute
-xmlValidateOneElement
-xmlValidateOneNamespace
-
seq
xmlParseElementChildrenContentDecl
-
sequence
_xmlSchemaFacet
-_xmlSchemaType
-xmlCharEncOutFunc
-xmlClearNodeInfoSeq
-xmlCurrentChar
-xmlExpNewSeq
-xmlExpParse
-xmlGetUTF8Char
-xmlInitNodeInfoSeq
-xmlParseAttValue
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseInNodeContext
-xmlParserAddNodeInfo
-xmlParserFindNodeInfoIndex
-xmlUTF8Strlen
-xmlUTF8Strsize
-xmlUTF8Strsub
-xmlXPathIdFunction
-
sequences
xmlCheckUTF8
-xmlExpParse
-xmlParseAttValue
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-xmlXPathNormalizeFunction
-
sequqnce
xmlExpIsNillable
-
serialization
LIBXML_OUTPUT_ENABLED
-xmlSaveToBuffer
-xmlSaveToFd
-xmlSaveToFilename
-xmlSaveToIO
-xmlShellCat
-xmlShellWrite
-xmlValidatePopElement
-xmlValidatePushElement
-
serializing
xmlSaveToBuffer
-xmlSaveToFd
-xmlSaveToFilename
-xmlSaveToIO
-
server
_xmlURI
-xmlNanoFTPCheckResponse
-xmlNanoFTPCloseConnection
-xmlNanoFTPConnectTo
-xmlNanoFTPCwd
-xmlNanoFTPDele
-xmlNanoFTPGet
-xmlNanoFTPGetConnection
-xmlNanoFTPGetResponse
-xmlNanoFTPGetSocket
-xmlNanoFTPList
-xmlNanoFTPQuit
-
set:difference
xmlXPathDifference
-
set:distinct
xmlXPathDistinct
-xmlXPathDistinctSorted
-
set:has-same-node
xmlXPathHasSameNodes
-
set:intersection
xmlXPathIntersection
-
set:leading
xmlXPathLeading
-xmlXPathLeadingSorted
-xmlXPathNodeLeading
-xmlXPathNodeLeadingSorted
-
set:trailing
xmlXPathNodeTrailing
-xmlXPathNodeTrailingSorted
-xmlXPathTrailing
-xmlXPathTrailingSorted
-
sets
initxmlDefaultSAXHandler
-xmlGetUTF8Char
-xmlSAX2InitDefaultSAXHandler
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-xmlXPathDifference
-xmlXPathIntersection
-
setting
xmlSetGenericErrorFunc
-xmlXPathContextSetCache
-
setups
xmlParseEncodingDecl
-
sgmlsource
getSystemId
-xmlSAX2GetSystemId
-
shadowed
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-
shall
_xmlParserCtxt
-
shared
LIBXML_MODULE_EXTENSION
-xmlCatalogAdd
-xmlModuleFree
-xmlModuleOpen
-
shares
xmlXPathHasSameNodes
-
shell
DEBUG_MEMORY
-xmlShell
-xmlShellBase
-xmlShellCat
-xmlShellCmd
-xmlShellDir
-xmlShellDu
-xmlShellList
-xmlShellLoad
-xmlShellPwd
-xmlShellReadlineFunc
-xmlShellSave
-xmlShellValidate
-xmlShellWrite
-
shorten
xmlDebugDumpString
-
shorthand
xmlTextReaderConstPrefix
-xmlTextReaderPrefix
-
show
LIBXML_VERSION_EXTRA
-xlinkExtendedLinkFunk
-xmlMemDisplay
-xmlMemShow
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlShellDu
-
shown
ftpListCallback
-
sibling
_xmlAttr
-_xmlAttribute
-_xmlDoc
-_xmlDtd
-_xmlElement
-_xmlEntity
-_xmlNode
-xmlAddNextSibling
-xmlAddPrevSibling
-xmlSchemaValueAppend
-xmlSchemaValueGetNext
-xmlXPathNextPrecedingSibling
-
siblings
xmlAddSibling
-xmlFreeNodeList
-xmlFreePropList
-xmlXPathNextFollowingSibling
-xmlXPathNextPrecedingSibling
-
sign
xmlXPathStringFunction
-
signal
ATTRIBUTE_UNUSED
-_xmlParserCtxt
-
signature
xmlShellCmd
-xmlShellReadlineFunc
-
signs
xmlNewTextChild
-
similar
xmlGetNoNsProp
-xmlNewNs
-xmlShell
-xmlShellPwd
-xmlValidityErrorFunc
-xmlValidityWarningFunc
-xmlXPathNodeSetGetLength
-xmlXPathNodeSetItem
-
simple
XML_SCHEMAS_TYPE_ABSTRACT
-XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION
-XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION
-_xmlSchemaType
-xlinkSimpleLinkFunk
-xmlAttrSerializeTxtContent
-xmlFreeMutex
-xmlHashScanner
-xmlIsRef
-xmlMutexLock
-xmlMutexUnlock
-xmlNewMutex
-xmlSchemaGetBuiltInListSimpleTypeItemType
-xmlSchemaNewStringValue
-xmlSchemaValidateListSimpleTypeFacet
-
simpleType
XML_SCHEMAS_TYPE_FINAL_DEFAULT
-XML_SCHEMAS_TYPE_FINAL_LIST
-XML_SCHEMAS_TYPE_FINAL_RESTRICTION
-XML_SCHEMAS_TYPE_FINAL_UNION
-XML_SCHEMAS_TYPE_VARIETY_ABSENT
-XML_SCHEMAS_TYPE_VARIETY_ATOMIC
-XML_SCHEMAS_TYPE_VARIETY_LIST
-XML_SCHEMAS_TYPE_VARIETY_UNION
-
simply
xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-
since
XML_SCHEMAS_TYPE_VARIETY_ABSENT
-xmlBuildRelativeURI
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlParseExternalID
-xmlRelaxNGNewDocParserCtxt
-
single
IS_DIGIT_CH
-xmlCurrentChar
-xmlParseAttValue
-xmlParseElementMixedContentDecl
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-xmlValidateAttributeDecl
-xmlValidateElementDecl
-xmlValidateNotationDecl
-xmlValidateOneAttribute
-xmlValidateOneElement
-xmlValidateOneNamespace
-xmlXPathNewNodeSet
-xmlXPathNormalizeFunction
-xmlXPtrNewCollapsedRange
-xmlXPtrNewLocationSetNodes
-
single-byte
IS_CHAR_CH
-IS_EXTENDER_CH
-IS_PUBIDCHAR_CH
-
site1
xmlBuildRelativeURI
-
site2
xmlBuildRelativeURI
-
sizes
xmlGetBufferAllocationScheme
-xmlSetBufferAllocationScheme
-
skip
xmlSkipBlankChars
-
skipped
xmlParseElementChildrenContentDecl
-xmlParseElementMixedContentDecl
-xmlSkipBlankChars
-
slot
xmlXPathContextSetCache
-
slots
xmlXPathContextSetCache
-
smallest
xmlXPathCeilingFunction
-
socket
xmlCheckFilename
-xmlNanoFTPGetSocket
-
software
LIBXML_TEST_VERSION
-
solution
xmlNormalizeWindowsPath
-
some
XML_SKIP_IDS
-characters
-charactersSAXFunc
-ignorableWhitespace
-ignorableWhitespaceSAXFunc
-xmlBuildRelativeURI
-xmlGcMemSetup
-xmlHandleEntity
-xmlMemSetup
-xmlParseAttributeType
-xmlParserInputDeallocate
-xmlRelaxNGValidatePushCData
-xmlSAX2Characters
-xmlSAX2IgnorableWhitespace
-xmlTextReaderSetParserProp
-xmlValidatePushCData
-xmlXIncludeProcess
-xmlXIncludeProcessFlags
-xmlXIncludeProcessNode
-xmlXIncludeProcessTree
-xmlXIncludeProcessTreeFlags
-
sometimes
xmlExpExpDerive
-
somewhat
xmlCheckLanguageID
-
sorted
xmlParserAddNodeInfo
-xmlParserFindNodeInfoIndex
-xmlXPathDistinct
-xmlXPathDistinctSorted
-xmlXPathLeading
-xmlXPathLeadingSorted
-xmlXPathNodeLeading
-xmlXPathNodeLeadingSorted
-xmlXPathNodeTrailing
-xmlXPathNodeTrailingSorted
-xmlXPathTrailing
-xmlXPathTrailingSorted
-
source
_xmlXPathContext
-htmlCtxtReadIO
-htmlGetMetaEncoding
-htmlReadIO
-xlinkExtendedLinkFunk
-xmlCheckFilename
-xmlCopyError
-xmlCtxtReadIO
-xmlNewTextReader
-xmlReadIO
-xmlReaderForIO
-xmlReaderNewIO
-
sourceDoc
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-
sourceforge
xmlXPathIsInf
-xmlXPathIsNaN
-
spaces
_xmlParserCtxt
-htmlDocContentDumpFormatOutput
-htmlDocContentDumpOutput
-htmlDocDumpMemoryFormat
-htmlNodeDumpFileFormat
-htmlNodeDumpFormatOutput
-htmlNodeDumpOutput
-htmlSaveFileEnc
-htmlSaveFileFormat
-xmlDocDumpFormatMemory
-xmlDocDumpFormatMemoryEnc
-xmlDocFormatDump
-xmlKeepBlanksDefault
-xmlParseElementChildrenContentDecl
-xmlParseElementMixedContentDecl
-xmlSaveFormatFile
-xmlSaveFormatFileEnc
-xmlSaveFormatFileTo
-xmlSchemaCollapseString
-xmlValidateNCName
-xmlValidateNMToken
-xmlValidateName
-xmlValidateQName
-
span
xmlCurrentChar
-xmlStringCurrentChar
-
spec
xmlCatalogSetDefaultPrefer
-xmlParseComment
-
spec:
IS_BASECHAR
-IS_BLANK
-IS_BYTE_CHAR
-IS_CHAR
-IS_COMBINING
-IS_DIGIT
-IS_EXTENDER
-IS_IDEOGRAPHIC
-IS_LETTER
-IS_PUBIDCHAR
-
special
XML_SKIP_IDS
-XML_XML_ID
-XML_XML_NAMESPACE
-xmlNewChild
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlTextWriterWriteRawLen
-
specialized
xmlGcMemGet
-xmlGcMemSetup
-
specific
XML_CATALOG_PI
-_xmlValidCtxt
-_xmlXPathContext
-xmlNoNetExternalEntityLoader
-xmlParseNamespace
-xmlSchemaIsBuiltInTypeFacet
-
specification
XML_XML_NAMESPACE
-xmlTextReaderNormalization
-
specifications
xmlParseSDDecl
-
specify
XML_SCHEMAS_TYPE_BLOCK_DEFAULT
-xmlTextReaderLookupNamespace
-xmlTextReaderStandalone
-
specifying
xmlMallocAtomicLoc
-xmlMallocLoc
-xmlMemMalloc
-xmlMemRealloc
-xmlReallocLoc
-
speed
xmlXPathOrderDocElems
-
speedup
xmlTextReaderConstString
-
split
xmlXPathIdFunction
-
stacked
_xmlXPathParserContext
-xmlPushInput
-
stage
XML_SCHEMAS_TYPE_FIXUP_1
-
stamps
xmlXPathOrderDocElems
-
standalone
_xmlDoc
-_xmlParserCtxt
-_xmlParserInput
-isStandalone
-xmlCurrentChar
-xmlParseSDDecl
-xmlSAX2IsStandalone
-xmlTextReaderStandalone
-
standalone=
xmlParseEntityRef
-xmlParsePEReference
-xmlParserHandlePEReference
-
standalone?
isStandaloneSAXFunc
-
standard
docbParseDocument
-htmlParseDocument
-xmlKeepBlanksDefault
-xmlParseDocument
-xmlXPathSubstringFunction
-
start
_htmlElemDesc
-startDocument
-startDocumentSAXFunc
-startElementNsSAX2Func
-xmlByteConsumed
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlExpGetStart
-xmlParseStartTag
-xmlRelaxNGValidatePushElement
-xmlSAX2StartDocument
-xmlSAX2StartElementNs
-xmlSplitQName3
-xmlTextReaderByteConsumed
-xmlValidatePushElement
-xmlXPtrNewLocationSetNodes
-xmlXPtrNewRange
-
start-tag
xmlParseElement
-xmlParseStartTag
-
started
xmlTextWriterWriteDTDExternalEntity
-
starting
xmlAutomataNewAllTrans
-xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewCountedTrans
-xmlAutomataNewCounterTrans
-xmlAutomataNewEpsilon
-xmlAutomataNewNegTrans
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlAutomataNewTransition
-xmlAutomataNewTransition2
-xmlByteConsumed
-xmlNewCharRef
-xmlNewTextWriterTree
-xmlSaveTree
-xmlXPathOrderDocElems
-xmlXPathSubstringFunction
-xmlXPtrNewCollapsedRange
-xmlXPtrNewRange
-xmlXPtrNewRangeNodeObject
-xmlXPtrNewRangeNodePoint
-xmlXPtrNewRangeNodes
-xmlXPtrNewRangePointNode
-xmlXPtrNewRangePoints
-
starts
xmlXPathStartsWithFunction
-
starts-with
xmlXPathStartsWithFunction
-
startup
setDocumentLocator
-setDocumentLocatorSAXFunc
-xmlInitializeCatalog
-xmlLoadCatalog
-xmlLoadCatalogs
-xmlSAX2SetDocumentLocator
-
stashed
xmlNanoHTTPAuthHeader
-
stat
xmlCheckFilename
-
stateful
xmlCharEncodingOutputFunc
-
states
_xmlValidCtxt
-
static
xmlXPathOrderDocElems
-
status
xmlTextReaderIsValid
-xmlTextReaderStandalone
-
stderr
xmlSetGenericErrorFunc
-
stdin
xmlParserInputBufferCreateFilename
-
stdout
htmlSaveFile
-xmlOutputBufferCreateFilename
-xmlSaveFile
-xmlSaveFormatFile
-xmlShell
-
step
xmlExpStringDerive
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-xmlValidateDocumentFinal
-xmlValidateDtdFinal
-
steps
xmlNormalizeURIPath
-xmlValidateDocumentFinal
-
still
xmlModuleFree
-xmlNoNetExternalEntityLoader
-xmlParseNamespace
-xmlReconciliateNs
-
stop
xmlListWalker
-
stops
xmlTextReaderGetRemainder
-
storage
xmlUTF8Strsize
-
store
UTF8ToHtml
-UTF8Toisolat1
-docbEncodeEntities
-htmlEncodeEntities
-htmlParseEntityRef
-isolat1ToUTF8
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-xmlExpGetLanguage
-xmlExpGetStart
-xmlGetFeature
-xmlInputReadCallback
-xmlOutputBufferWrite
-xmlOutputBufferWriteEscape
-xmlOutputBufferWriteString
-xmlParseAttribute
-xmlParseEntityValue
-xmlValidGetPotentialChildren
-xmlValidGetValidElements
-
stored
xmlParseElementContentDecl
-xmlParserInputBufferGrow
-xmlParserInputBufferPush
-xmlParserInputBufferRead
-xmlSAXParseFileWithData
-xmlSAXParseMemoryWithData
-xmlXPathOrderDocElems
-
str
htmlParseEntityRef
-xmlBufferAdd
-
strcasecmp
xmlStrcasecmp
-
strcat
xmlStrcat
-
strchr
xmlStrchr
-
strcmp
xmlStrcmp
-
strdup
xmlCharStrdup
-xmlGcMemGet
-xmlGcMemSetup
-xmlMemGet
-xmlMemSetup
-xmlMemStrdupLoc
-xmlMemoryStrdup
-xmlStrdup
-xmlStrdupFunc
-
streamable
xmlPatternStreamable
-
streaming
xmlPatternGetStreamCtxt
-xmlStreamWantsAnyNode
-
streams
_xmlParserCtxt
-xmlSkipBlankChars
-
strict
XML_SCHEMAS_ANYATTR_STRICT
-XML_SCHEMAS_ANY_STRICT
-xmlParseExternalID
-xmlXPathCompareValues
-
string--that
xmlNormalizeURIPath
-
string-length
xmlXPathStringLengthFunction
-
string?
xmlXPathNormalizeFunction
-xmlXPathStringLengthFunction
-
stringi
xmlXPathSubstringAfterFunction
-
strings
_xmlParserCtxt
-xmlDictCreateSub
-xmlExpGetLanguage
-xmlExpGetStart
-xmlExpParse
-xmlGetFeaturesList
-xmlPatterncompile
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlRegexpCompile
-xmlStrEqual
-xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-xmlStrncatNew
-
stripping
xmlXPathNormalizeFunction
-
strncasecmp
xmlStrncasecmp
-
strncat
xmlStrncat
-
strncmp
xmlStrncmp
-
strndup
xmlCharStrndup
-xmlStrndup
-xmlUTF8Strndup
-
strstr
xmlStrcasestr
-xmlStrstr
-
struct
xmlFreeMutex
-xmlFreeURI
-xmlNewMutex
-xmlParserFindNodeInfo
-xmlSchemaGetBuiltInType
-xmlSchemaNewNOTATIONValue
-xmlSchemaNewQNameValue
-xmlSchemaNewStringValue
-
structured
xmlRelaxNGSetValidStructuredErrors
-xmlSchemaSetParserStructuredErrors
-xmlSetStructuredErrorFunc
-
structures
xmlFreeDoc
-xmlFreeNs
-xmlFreeNsList
-xmlLoadACatalog
-xmlNewRMutex
-xmlRegFreeExecCtxt
-
struture
xmlRelaxNGParse
-xmlSchemaParse
-xmlSchematronParse
-
stuff
_xmlXPathContext
-xmlParseNamespace
-
style
xmlSAXDefaultVersion
-
sub
xmlExpExpDerive
-
sub-elements
_htmlElemDesc
-
subelement
_htmlElemDesc
-htmlDefaultSubelement
-xmlNewDocElementContent
-xmlNewElementContent
-
subelements
_htmlElemDesc
-
subexpression
xmlExpExpDerive
-xmlExpSubsume
-
subexpressions
xmlExpParse
-
subject
xmlParseSDDecl
-
sublanguage
xmlXPathLangFunction
-
submits
xmlRegisterHTTPPostCallbacks
-
subsequent
xmlIOHTTPOpenW
-xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-
subset?
hasExternalSubsetSAXFunc
-
subsets
xmlGetParameterEntity
-xmlValidateDtdFinal
-
substituion
XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION
-
substitute
xmlDOMWrapRemoveNode
-
substituted
XML_SUBSTITUTE_BOTH
-XML_SUBSTITUTE_NONE
-XML_SUBSTITUTE_PEREF
-XML_SUBSTITUTE_REF
-xmlNodeBufGetContent
-xmlNodeGetContent
-xmlParseEntityValue
-
substituting
xmlSubstituteEntitiesDefault
-
substitutionGroup
XML_SCHEMAS_ELEM_INTERNAL_RESOLVED
-
substitutions
XML_SCHEMAS_ELEM_BLOCK_EXTENSION
-xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-xmlXIncludeProcess
-xmlXIncludeProcessFlags
-xmlXIncludeProcessNode
-xmlXIncludeProcessTree
-xmlXIncludeProcessTreeFlags
-
substitutions:
XML_SCHEMAS_ELEM_BLOCK_RESTRICTION
-XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION
-
substring
xmlNodeAddContent
-xmlNodeAddContentLen
-xmlStrsub
-xmlUTF8Strsub
-xmlXPathSubstringAfterFunction
-xmlXPathSubstringBeforeFunction
-xmlXPathSubstringFunction
-
substring-after
xmlXPathSubstringAfterFunction
-
substring-before
xmlXPathSubstringBeforeFunction
-
subtraction
xmlXPathSubValues
-
subtree
attribute
-attributeSAXFunc
-xmlFreeDocElementContent
-xmlFreeElementContent
-xmlReconciliateNs
-xmlRelaxNGValidateFullElement
-xmlSaveTree
-xmlShellDu
-xmlShellWrite
-xmlTextReaderExpand
-xmlTextReaderNext
-xmlTextReaderNextSibling
-xmlValidateElement
-xmlXIncludeProcessNode
-xmlXIncludeProcessTree
-xmlXIncludeProcessTreeFlags
-
succeed
xmlNewTextWriter
-
succeeded
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlHashAddEntry
-xmlHashAddEntry2
-xmlHashAddEntry3
-xmlHashRemoveEntry
-xmlHashRemoveEntry2
-xmlHashRemoveEntry3
-xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-xmlSchemaValueAppend
-xmlXPathCompareValues
-xmlXPathContextSetCache
-
succeeds
xmlCheckFilename
-xmlNewTextWriterPushParser
-
successful
xmlACatalogAdd
-xmlACatalogRemove
-xmlBufferAdd
-xmlBufferAddHead
-xmlBufferCCat
-xmlBufferCat
-xmlCatalogAdd
-xmlCatalogConvert
-xmlCatalogRemove
-xmlConvertSGMLCatalog
-xmlGetLineNo
-xmlListPushBack
-xmlListPushFront
-xmlSaveSetAttrEscape
-xmlSaveSetEscape
-xmlTextReaderSetParserProp
-xmlUnsetNsProp
-xmlUnsetProp
-
successfully
xmlTextReaderNext
-xmlTextReaderNextSibling
-xmlTextReaderRead
-
succession
xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-
successive
xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-
such
xmlNewTextChild
-xmlParseEntityRef
-xmlSetProp
-xmlValidityErrorFunc
-xmlValidityWarningFunc
-xmlXPathLangFunction
-xmlXPathNodeSetFreeNs
-xmlXPathRoundFunction
-
suffix
LIBXML_MODULE_EXTENSION
-
suggested
_htmlElemDesc
-
suitable
xmlNewIOInputStream
-xmlRegexpCompile
-
sum
xmlXPathSubstringFunction
-xmlXPathSumFunction
-
super
xmlLoadSGMLSuperCatalog
-
super-strict
xmlCheckUTF8
-
supplied
xmlGetRefs
-
supported
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapRemoveNode
-xmlInitCharEncodingHandlers
-xmlNanoFTPGetConnection
-xmlSchemaGetCanonValue
-xmlSchemaGetCanonValueWhtsp
-xmlTextReaderNormalization
-
supposed
xmlIsMixedElement
-xmlNewChild
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlStrcat
-xmlStrdup
-
sure
xmlSaveClose
-xmlSaveFlush
-xmlURIEscape
-xmlXPathNodeSetAddUnique
-
surprising
xmlRegisterCharEncodingHandler
-
surrogate
IS_CHAR
-
switch
xmlKeepBlanksDefault
-xmlParseReference
-xmlPushInput
-
symbol
xmlModuleSymbol
-
synchronizing
xmlNewMutex
-xmlNewRMutex
-
syntax
xmlParseAttributeType
-
systematically
xmlIsID
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk25.html b/src/tools/docbook/libxml2/doc/APIchunk25.html deleted file mode 100644 index befc7fa5a2..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk25.html +++ /dev/null @@ -1,449 +0,0 @@ - - -API Alphabetic Index t-t for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index t-t for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter t:

tag
_htmlElemDesc
-htmlAutoCloseTag
-htmlIsAutoClosed
-htmlTagLookup
-startElement
-startElementSAXFunc
-xmlNodeSetName
-xmlParseEndTag
-xmlParseStartTag
-xmlSAX2StartElement
-xmlTextWriterFullEndElement
-
tagged
isStandalone
-isStandaloneSAXFunc
-xmlNewNsProp
-xmlNewNsPropEatName
-xmlSAX2IsStandalone
-
tags
htmlAutoCloseTag
-htmlGetMetaEncoding
-htmlHandleOmittedElem
-htmlInitAutoClose
-htmlIsAutoClosed
-htmlSetMetaEncoding
-
take
xmlLockLibrary
-
takes
xmlSchemaValidateFacetWhtsp
-
tatkes
xmlExpExpDerive
-
tell
XML_COMPLETE_ATTRS
-XML_DETECT_IDS
-XML_SKIP_IDS
-_htmlElemDesc
-
tells
xmlTextReaderPreserve
-xmlTextReaderPreservePattern
-
temporary
_xmlValidCtxt
-_xmlXPathContext
-xmlIOHTTPOpenW
-
terminal
xmlRegExecErrInfo
-xmlRegExecNextValues
-
terminals
xmlExpParse
-
terminated
htmlCtxtReadDoc
-htmlReadDoc
-startElement
-startElementSAXFunc
-xmlBufferCCat
-xmlBufferCat
-xmlCtxtReadDoc
-xmlDocDumpMemory
-xmlExpParse
-xmlGetNsList
-xmlOutputBufferWriteEscape
-xmlOutputBufferWriteString
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlReadDoc
-xmlReaderForDoc
-xmlReaderNewDoc
-xmlSAX2StartElement
-xmlStrdupFunc
-
termination
xmlStrcat
-xmlStrdup
-
terms
xmlBuildRelativeURI
-
test
xmlDOMWrapCloneNode
-xmlParserHandleReference
-xmlXPathEqualValues
-xmlXPathNotEqualValues
-
tested
_xmlParserInput
-
testing
xmlRegexpCompile
-
text-
xmlStreamPushNode
-xmlStreamWantsAnyNode
-
text-node
xmlIsBlankNode
-
textDecl?
xmlParseExternalSubset
-
than
xmlCheckUTF8
-xmlExpExpDerive
-xmlExpGetLanguage
-xmlExpGetStart
-xmlNewNs
-xmlParseAttribute
-xmlParseAttributeType
-xmlParseElementDecl
-xmlParseElementMixedContentDecl
-xmlParseSDDecl
-xmlParseStartTag
-xmlSetGenericErrorFunc
-xmlStrEqual
-xmlTextReaderIsNamespaceDecl
-xmlXPathCeilingFunction
-xmlXPathCompareValues
-xmlXPathFloorFunction
-xmlXPathSubstringFunction
-xmlXPathTranslateFunction
-
their
xmlCharEncOutFunc
-xmlEncodeEntities
-xmlEncodeEntitiesReentrant
-xmlLoadCatalogs
-xmlNewTextChild
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlParseEntityRef
-xmlXPathAddValues
-xmlXPathDivValues
-xmlXPathIdFunction
-xmlXPathModValues
-xmlXPathMultValues
-xmlXPathSubValues
-xmlXPathValueFlipSign
-
them
xmlExpGetLanguage
-xmlExpGetStart
-xmlExpNewOr
-xmlExpNewSeq
-xmlNanoFTPRead
-xmlNanoHTTPRead
-xmlParseAttValue
-xmlParseAttributeType
-xmlRegExecErrInfo
-xmlRegExecNextValues
-
these
_htmlElemDesc
-xmlCheckUTF8
-xmlParseSDDecl
-
they
_htmlElemDesc
-xmlCreatePushParserCtxt
-xmlStrEqual
-xmlStrQEqual
-xmlStrcat
-xmlStrdup
-
third
xmlHashAddEntry3
-xmlHashLookup3
-xmlHashQLookup3
-xmlHashRemoveEntry3
-xmlHashScan3
-xmlHashScanFull3
-xmlHashScannerFull
-xmlHashUpdateEntry3
-xmlXPathSubstringFunction
-xmlXPathTranslateFunction
-
this?
_xmlSchemaType
-
those
xmlCheckLanguageID
-xmlKeepBlanksDefault
-xmlParseSDDecl
-xmlSearchNs
-xmlXPathSubstringFunction
-
though
xmlDocDumpMemory
-xmlNoNetExternalEntityLoader
-
thread
LIBXML_THREAD_ENABLED
-xmlCleanupThreads
-xmlGetGlobalState
-xmlGetLastError
-xmlGetThreadId
-xmlInitThreads
-xmlInitializeCatalog
-xmlIsMainThread
-xmlLoadCatalog
-xmlLoadCatalogs
-xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-
through
xmlBuildRelativeURI
-xmlCreatePushParserCtxt
-xmlDecodeEntities
-xmlNormalizeURIPath
-
thumblers
xmlShellPwd
-
thus
xmlDOMWrapRemoveNode
-xmlNewRMutex
-xmlXPathNextAncestor
-xmlXPathNextAncestorOrSelf
-xmlXPathNextDescendantOrSelf
-
time
xmlExpExpDerive
-xmlXPathAxisFunc
-
title
xlinkSimpleLinkFunk
-
titles
xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-
todo:
_xmlError
-
token
xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlFreeMutex
-xmlMutexLock
-xmlMutexUnlock
-xmlNewMutex
-xmlRegExecPushString
-xmlRegExecPushString2
-
token_r
xmlNewRMutex
-xmlRMutexLock
-xmlRMutexUnlock
-
tokens
xmlExpGetLanguage
-xmlExpGetStart
-xmlParseEnumerationType
-xmlXPathIdFunction
-
too
DEBUG_MEMORY
-htmlNodeDump
-htmlNodeDumpFile
-htmlNodeDumpFileFormat
-htmlNodeDumpFormatOutput
-htmlNodeDumpOutput
-xmlCopyDoc
-xmlElemDump
-xmlFreeNode
-xmlFreeNodeList
-xmlFreeProp
-xmlFreePropList
-xmlGetDocEntity
-xmlNodeDump
-xmlNodeDumpOutput
-xmlParseElementMixedContentDecl
-xmlRemoveProp
-
top
CAST_TO_BOOLEAN
-CAST_TO_NUMBER
-CAST_TO_STRING
-CHECK_TYPE
-CHECK_TYPE0
-XML_SCHEMAS_ELEM_TOPLEVEL
-inputPop
-inputPush
-namePop
-namePush
-nodePop
-nodePush
-valuePop
-valuePush
-xmlNamespaceParseNCName
-xmlNamespaceParseNSDef
-xmlNamespaceParseQName
-xmlPopInputCallbacks
-xmlPushInput
-xmlReconciliateNs
-xmlSetTreeDoc
-
total
_xmlOutputBuffer
-xmlGetFeaturesList
-xmlUTF8Strsub
-
touch
_xmlParserCtxt
-
track
xmlEntityReferenceFunc
-
tracking
xmlParserPrintFileContext
-
trailing
xmlParseAttValue
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-xmlXPathNodeTrailing
-xmlXPathNodeTrailingSorted
-xmlXPathNormalizeFunction
-xmlXPathTrailing
-xmlXPathTrailingSorted
-
trancoding
xmlSaveFileTo
-xmlSaveFormatFileTo
-
transaction
xmlNanoHTTPSave
-
transcoding
UTF8ToHtml
-UTF8Toisolat1
-docbEncodeEntities
-htmlEncodeEntities
-xmlCharEncFirstLine
-xmlCharEncInFunc
-xmlCharEncOutFunc
-xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-xmlOutputBufferWrite
-xmlOutputBufferWriteEscape
-xmlOutputBufferWriteString
-xmlParserInputBufferGrow
-xmlParserInputBufferPush
-xmlParserInputBufferRead
-
transfered
xmlParsePI
-
transformation
xmlCharEncCloseFunc
-xmlCharEncFirstLine
-xmlCharEncInFunc
-xmlCharEncOutFunc
-
transformed
xmlRelaxNGDumpTree
-
transitions
xmlAutomataNewAllTrans
-xmlRegExecErrInfo
-xmlRegExecNextValues
-
translate
xmlXPathTranslateFunction
-
translation
xmlURIUnescapeString
-
transmit
errorSAXFunc
-fatalErrorSAXFunc
-warningSAXFunc
-xmlParserError
-xmlParserValidityError
-xmlParserValidityWarning
-xmlParserWarning
-
transport
xmlNanoFTPClose
-
traversal
xmlXPathAxisFunc
-xmlXPathNextAncestor
-xmlXPathNextAncestorOrSelf
-xmlXPathNextAttribute
-xmlXPathNextChild
-xmlXPathNextDescendant
-xmlXPathNextDescendantOrSelf
-xmlXPathNextFollowing
-xmlXPathNextFollowingSibling
-xmlXPathNextNamespace
-xmlXPathNextParent
-xmlXPathNextPreceding
-xmlXPathNextPrecedingSibling
-xmlXPathNextSelf
-xmlXPtrNewContext
-
traverse
xmlXPathAxisFunc
-
treaming
_xmlParserCtxt
-
treated
xmlParseAttValue
-
tries
INPUT_CHUNK
-xlinkIsLink
-xmlCleanupParser
-xmlNanoFTPRead
-xmlNanoHTTPRead
-xmlParserInputGrow
-xmlSAXParseDoc
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-
trio
WITHOUT_TRIO
-WITH_TRIO
-xmlXPathIsInf
-xmlXPathIsNaN
-
troubles
_xmlParserInput
-xmlSearchNs
-
try
CAST_TO_BOOLEAN
-CAST_TO_NUMBER
-CAST_TO_STRING
-UTF8ToHtml
-UTF8Toisolat1
-_xmlParserCtxt
-docbEncodeEntities
-htmlEncodeEntities
-htmlNodeDumpFileFormat
-isolat1ToUTF8
-xlinkIsLink
-xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-xmlFileOpen
-xmlKeepBlanksDefault
-xmlNanoHTTPFetch
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-xmlParserInputRead
-xmlReconciliateNs
-xmlURIEscape
-xmlValidateRoot
-
ttribute
xmlTextReaderReadAttributeValue
-
tune
xmlBufferSetAllocationScheme
-
tuple
xmlHashAddEntry2
-xmlHashAddEntry3
-xmlHashLookup2
-xmlHashLookup3
-xmlHashQLookup2
-xmlHashQLookup3
-xmlHashRemoveEntry
-xmlHashRemoveEntry2
-xmlHashRemoveEntry3
-xmlHashScan3
-xmlHashScanFull3
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-
tuples
xmlHashAddEntry2
-
turn
xmlBoolToText
-
turned
xmlGetNoNsProp
-xmlGetNsProp
-xmlGetProp
-xmlHasNsProp
-xmlHasProp
-xmlLineNumbersDefault
-
two
_xmlParserCtxt
-xmlStrncatNew
-xmlTextMerge
-xmlUTF8Charcmp
-xmlXPathCmpNodes
-xmlXPathDifference
-xmlXPathNodeSetMerge
-xmlXPathRoundFunction
-xmlXPtrLocationSetMerge
-xmlXPtrNewLocationSetNodes
-
two-character
xmlCurrentChar
-
type:
xmlStreamPushNode
-
typefixed
XML_SCHEMAS_TYPE_INTERNAL_RESOLVED
-
types
XML_SCHEMAS_FACET_COLLAPSE
-_xmlSchemaType
-_xmlXPathContext
-xmlExternalEntityLoader
-xmlParseSDDecl
-xmlSchemaGetCanonValue
-xmlSchemaNewStringValue
-xmlSchemaValidateFacetWhtsp
-xmlStreamWantsAnyNode
-
typo
xmlParseTextDecl
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk26.html b/src/tools/docbook/libxml2/doc/APIchunk26.html deleted file mode 100644 index be247f2649..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk26.html +++ /dev/null @@ -1,310 +0,0 @@ - - -API Alphabetic Index u-v for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index u-v for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter u:

ugly
_xmlParserCtxt
-htmlEntityLookup
-htmlEntityValueLookup
-
unary
xmlXPathValueFlipSign
-
unclean
_xmlURI
-
uncompressed
xmlC14NDocSave
-xmlGetCompressMode
-xmlGetDocCompressMode
-xmlSetCompressMode
-xmlSetDocCompressMode
-
under
xmlBuildRelativeURI
-xmlSearchNs
-xmlSetTreeDoc
-xmlShellDu
-xmlShellWrite
-xmlValidateElement
-
underlying
xmlTextReaderClose
-xmlTextReaderCurrentNode
-
understand
xmlExpParse
-
unescape
xmlURIUnescapeString
-
unescaped
xmlFileOpen
-xmlURIUnescapeString
-
unescaping
xmlParseURIRaw
-
unicode
htmlEntityValueLookup
-xmlIsLetter
-
unimplemented
htmlCtxtUseOptions
-xmlCtxtUseOptions
-
union
XML_SCHEMAS_FINAL_DEFAULT_UNION
-XML_SCHEMAS_TYPE_FINAL_UNION
-XML_SCHEMAS_TYPE_VARIETY_ATOMIC
-XML_SCHEMAS_TYPE_VARIETY_UNION
-_xmlSchemaType
-xmlXPathIdFunction
-
unique
_xmlParserInput
-_xmlSchema
-xmlExpGetLanguage
-xmlExpGetStart
-xmlXPathIdFunction
-
uniquely
xmlParseAttributeType
-xmlXPathStringFunction
-
uniqueness
xmlValidateAttributeDecl
-xmlValidateOneAttribute
-xmlValidateOneNamespace
-
units
xmlUTF8Strsub
-
unknown
XML_SCHEMAS_ANYATTR_SKIP
-XML_SCHEMAS_ANY_SKIP
-XML_SCHEMAS_FACET_UNKNOWN
-htmlCtxtUseOptions
-xmlCtxtUseOptions
-xmlHasFeature
-xmlUCSIsBlock
-xmlUCSIsCat
-
unless
htmlSAXParseDoc
-htmlSAXParseFile
-xmlExpNewOr
-xmlExpNewRange
-xmlExpNewSeq
-xmlGetNoNsProp
-xmlGetNsProp
-xmlGetProp
-xmlHasNsProp
-xmlHasProp
-xmlXPathNextNamespace
-
unliked
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-
unlink
xmlFreeNode
-
unlinked
xmlAddNextSibling
-xmlAddPrevSibling
-xmlAddSibling
-xmlReplaceNode
-
unload
xmlModuleClose
-xmlModuleFree
-
unloaded
xmlModuleClose
-
unlock
xmlMutexUnlock
-xmlRMutexUnlock
-
unparsed
_xmlEntity
-unparsedEntityDecl
-unparsedEntityDeclSAXFunc
-xmlLoadExternalEntity
-xmlParseAttributeType
-xmlParseEntityRef
-xmlParserHandleReference
-xmlSAX2UnparsedEntityDecl
-
unpredictable
UTF8ToHtml
-UTF8Toisolat1
-docbEncodeEntities
-htmlEncodeEntities
-isolat1ToUTF8
-
unpredictiable
xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-
unregisters
xmlCleanupCharEncodingHandlers
-xmlXPathRegisterFunc
-xmlXPathRegisterFuncNS
-xmlXPathRegisterNs
-xmlXPathRegisterVariable
-xmlXPathRegisterVariableNS
-
unsafe
xmlSprintfElementContent
-
unsigned
c
-xmlURIUnescapeString
-
unsupported
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-
until
xmlBufferCreateStatic
-xmlParserInputBufferCreateStatic
-xmlSearchNs
-xmlSearchNsByHref
-xmlTextReaderExpand
-xmlTextReaderRelaxNGSetSchema
-xmlTextReaderSetSchema
-xmlXPathAxisFunc
-
unused
ATTRIBUTE_UNUSED
-_xmlEntity
-_xmlSAXHandler
-_xmlSAXHandlerV1
-_xmlSchema
-_xmlXPathContext
-xmlDOMWrapReconcileNamespaces
-xmlDOMWrapRemoveNode
-xmlShellBase
-xmlShellCat
-xmlShellDir
-xmlShellDu
-xmlShellList
-xmlShellLoad
-xmlShellPwd
-xmlShellSave
-xmlShellValidate
-xmlShellWrite
-
update
xmlCheckHTTPInput
-xmlNanoFTPUpdateURL
-xmlSetListDoc
-xmlSetTreeDoc
-xmlSplitQName3
-xmlValidCtxtNormalizeAttributeValue
-
updated
xmlCatalogAddLocal
-xmlGetFeaturesList
-xmlNamespaceParseQName
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlSplitQName
-xmlSplitQName2
-
upon
checkNamespace
-xlinkNodeDetectFunc
-
upper
xmlExpNewRange
-xmlIsRef
-
uri
xmlNormalizeWindowsPath
-
usage
xmlGetBufferAllocationScheme
-xmlSetBufferAllocationScheme
-
used:
XML_DEFAULT_VERSION
-
used?
_xmlSchemaAttribute
-_xmlSchemaElement
-
useful
xmlGcMemGet
-xmlGcMemSetup
-xmlNewRMutex
-xmlParserInputBufferCreateStatic
-
useless
setDocumentLocator
-setDocumentLocatorSAXFunc
-xmlSAX2SetDocumentLocator
-
userData
xmlValidityErrorFunc
-xmlValidityWarningFunc
-
users
_xmlSchema
-
uses
htmlNodeStatus
-
usual
xmlExpParse
-
usually
LIBXML_MODULE_EXTENSION
-c
-xmlExpExpDerive
-xmlInitCharEncodingHandlers
-xmlSchemaGetPredefinedType
-xmlTextReaderGetParserProp
-xmlTextReaderSetParserProp
-xmlValidityErrorFunc
-xmlValidityWarningFunc
-
utf8
xmlCharEncFirstLine
-xmlCharEncInFunc
-xmlCharEncOutFunc
-

Letter v:

val1
xmlXPtrLocationSetMerge
-
validated
xmlCharInRange
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-
validates
xmlSchemaValPredefTypeNode
-xmlSchemaValPredefTypeNodeNoNorm
-xmlSchemaValidatePredefinedType
-xmlValidateDocument
-xmlValidateNCName
-xmlValidateNMToken
-xmlValidateName
-xmlValidateQName
-
validating
_xmlAttr
-_xmlElement
-_xmlValidCtxt
-xmlKeepBlanksDefault
-xmlRelaxNGValidatePushElement
-xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-
validity
_xmlParserCtxt
-_xmlValidCtxt
-xlinkIsLink
-xmlGenericErrorFunc
-xmlParseAttValue
-xmlParserValidityError
-xmlParserValidityWarning
-xmlTextReaderIsValid
-xmlURIEscape
-xmlURIUnescapeString
-xmlValidGetValidElements
-xmlValidateDocumentFinal
-xmlValidateNotationDecl
-xmlValidityErrorFunc
-xmlValidityWarningFunc
-
value:
xmlCheckUTF8
-
values:
xmlSetCompressMode
-xmlSetDocCompressMode
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-
varags
xmlGenericErrorFunc
-
vararg
xmlValidityErrorFunc
-xmlValidityWarningFunc
-
variables
XML_XPATH_NOVAR
-_xmlXPathContext
-xmlNanoFTPProxy
-xmlXPathRegisteredNsCleanup
-xmlXPathRegisteredVariablesCleanup
-
variant
xmlDetectCharEncoding
-
variety
XML_SCHEMAS_TYPE_VARIETY_ABSENT
-XML_SCHEMAS_TYPE_VARIETY_ATOMIC
-XML_SCHEMAS_TYPE_VARIETY_LIST
-XML_SCHEMAS_TYPE_VARIETY_UNION
-
very
_htmlElemDesc
-_xmlParserInput
-xmlCharEncFirstLine
-
via
xmlNanoHTTPFetch
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-
view
xmlShell
-
violated
XML_CAST_FPTR
-
visible
xmlC14NExecute
-
void
XML_CAST_FPTR
-xmlSAXParseFileWithData
-xmlSAXParseMemoryWithData
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk27.html b/src/tools/docbook/libxml2/doc/APIchunk27.html deleted file mode 100644 index 2473a347db..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk27.html +++ /dev/null @@ -1,325 +0,0 @@ - - -API Alphabetic Index w-w for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index w-w for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter w:

walker
xmlListReverseWalk
-xmlListWalk
-xmlListWalker
-
walking
_xmlXPathContext
-_xmlXPathParserContext
-xmlListWalker
-
want
xmlCharEncFirstLine
-xmlCharEncInFunc
-xmlCharEncOutFunc
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-
warn
xmlCheckVersion
-
warning
XML_CAST_FPTR
-_xmlValidCtxt
-docbCreatePushParserCtxt
-htmlCreatePushParserCtxt
-initxmlDefaultSAXHandler
-warningSAXFunc
-xmlCreatePushParserCtxt
-xmlEncodeEntities
-xmlParserValidityWarning
-xmlParserWarning
-xmlRelaxNGGetParserErrors
-xmlRelaxNGGetValidErrors
-xmlRelaxNGSetParserErrors
-xmlRelaxNGSetValidErrors
-xmlSAX2InitDefaultSAXHandler
-xmlSchemaGetParserErrors
-xmlSchemaSetParserErrors
-xmlSearchNs
-xmlTextReaderSetErrorHandler
-xmlTextReaderSetStructuredErrorHandler
-xmlValidityWarningFunc
-
warnings
_xmlParserCtxt
-xmlPedanticParserDefault
-xmlTextReaderSetErrorHandler
-xmlTextReaderSetStructuredErrorHandler
-
way
HTML_COMMENT_NODE
-HTML_ENTITY_REF_NODE
-HTML_PI_NODE
-HTML_PRESERVE_NODE
-HTML_TEXT_NODE
-_xmlDoc
-xmlBoolToText
-xmlKeepBlanksDefault
-xmlNewGlobalNs
-
ways:
xmlValidGetValidElements
-
well
_xmlParserCtxt
-htmlSAXParseDoc
-htmlSAXParseFile
-startElementNsSAX2Func
-xmlCopyDoc
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseCtxtExternalEntity
-xmlParseExternalEntity
-xmlParseInNodeContext
-xmlSAX2StartElementNs
-xmlSchemaNewStringValue
-
well-balanced
xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseInNodeContext
-
well-formed
xmlParseCtxtExternalEntity
-xmlParseEntityRef
-xmlParseExtParsedEnt
-xmlParseExternalEntity
-xmlParserHandleReference
-xmlValidateDtdFinal
-
well-formedness
xmlCtxtResetLastError
-xmlParseEntityRef
-xmlResetLastError
-
wellformed
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlParseFile
-
were
_xmlParserCtxt
-xmlCheckLanguageID
-xmlKeepBlanksDefault
-xmlMemShow
-xmlXIncludeProcess
-xmlXIncludeProcessFlags
-xmlXIncludeProcessNode
-xmlXIncludeProcessTree
-xmlXIncludeProcessTreeFlags
-
wether
_xmlNodeSet
-
what
xmlCatalogGetDefaults
-xmlCatalogSetDefaults
-xmlParseNamespace
-xmlTextReaderGetRemainder
-xmlTextWriterWriteRawLen
-
where
_htmlElemDesc
-xmlCopyProp
-xmlCopyPropList
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlExpGetLanguage
-xmlExpGetStart
-xmlFileRead
-xmlIOFTPRead
-xmlIOHTTPRead
-xmlNanoHTTPFetch
-xmlNanoHTTPSave
-xmlNewNs
-xmlParseMarkupDecl
-xmlParseSDDecl
-
while
xmlInitCharEncodingHandlers
-xmlParseAttributeType
-xmlParseEnumeratedType
-xmlParseEnumerationType
-xmlParseNotationType
-xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-xmlTextReaderNext
-xmlTextReaderNextSibling
-xmlValidGetValidElements
-
white
xmlKeepBlanksDefault
-xmlParseSDDecl
-xmlSchemaCollapseString
-xmlTextReaderNormalization
-xmlXPathNormalizeFunction
-
whitespace
xmlIsBlankNode
-xmlParseAttValue
-xmlSchemaCompareValuesWhtsp
-xmlSchemaGetCanonValueWhtsp
-xmlSchemaValidateFacetWhtsp
-xmlSchemaValidateLengthFacetWhtsp
-xmlXPathIdFunction
-xmlXPathNormalizeFunction
-
whitespace-facet
XML_SCHEMAS_TYPE_WHITESPACE_COLLAPSE
-XML_SCHEMAS_TYPE_WHITESPACE_PRESERVE
-XML_SCHEMAS_TYPE_WHITESPACE_REPLACE
-
whitespace-separated
xmlXPathIdFunction
-
whitespaces
ignorableWhitespace
-ignorableWhitespaceSAXFunc
-xmlSAX2IgnorableWhitespace
-
whole
xmlFreeDocElementContent
-xmlFreeElementContent
-
whose
xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlTextReaderLookupNamespace
-
wierd
xmlBuildRelativeURI
-
wildcard
XML_SCHEMAS_ATTRGROUP_GLOBAL
-XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED
-XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD
-XML_SCHEMAS_WILDCARD_COMPLETE
-xmlSchemaFreeWildcard
-
wildcards
XML_SCHEMAS_ANY_LAX
-XML_SCHEMAS_ANY_STRICT
-XML_SCHEMAS_ATTR_USE_PROHIBITED
-
with_ns
_xmlNodeSet
-
within
_xmlValidCtxt
-xmlAutomataNewCounterTrans
-xmlGetUTF8Char
-xmlNewDocComment
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlNewDocRawNode
-xmlNewDocText
-xmlNodeGetBase
-xmlParseCharData
-xmlParseComment
-xmlParseCtxtExternalEntity
-xmlParseInNodeContext
-xmlParseMarkupDecl
-xmlParseSDDecl
-xmlParserFindNodeInfo
-xmlParserHandlePEReference
-xmlParserPrintFileContext
-xmlReconciliateNs
-xmlSAXParseFileWithData
-xmlSAXParseMemoryWithData
-xmlSchemaCopyValue
-xmlSearchNs
-xmlTextReaderConstXmlLang
-xmlTextReaderXmlLang
-xmlTextWriterWriteBase64
-xmlTextWriterWriteBinHex
-xmlValidGetValidElements
-xmlXPathIntersection
-
without
XML_CAST_FPTR
-_xmlEntity
-entityDecl
-entityDeclSAXFunc
-htmlNewDocNoDtD
-xmlNewGlobalNs
-xmlParseEntityRef
-xmlParsePEReference
-xmlParseSDDecl
-xmlParserHandlePEReference
-xmlSAX2EntityDecl
-xmlScanName
-xmlSplitQName3
-xmlValidateOneAttribute
-xmlValidateOneNamespace
-
won
_xmlParserCtxt
-xmlAutomataNewNegTrans
-xmlBufferCreateStatic
-xmlLoadSGMLSuperCatalog
-xmlParseAttValue
-
word
_htmlElemDesc
-
words
xmlXPathNormalizeFunction
-xmlXPathStringLengthFunction
-
work
xmlNodeGetBase
-xmlPatternStreamable
-xmlRemoveProp
-xmlSAXParseDoc
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-
worked
xmlNanoFTPCwd
-xmlNanoFTPDele
-
works
xmlShellDu
-
worry
XML_SCHEMAS_ANY_LAX
-
worthwhile
xmlBuildRelativeURI
-
would
_xmlError
-htmlAutoCloseTag
-xmlTextReaderGetRemainder
-
wrapper
xmlDOMWrapReconcileNamespaces
-xmlDOMWrapRemoveNode
-
wraps
xmlTextReaderByteConsumed
-
write
xmlFileRead
-xmlFindCharEncodingHandler
-xmlGetCharEncodingHandler
-xmlIOFTPRead
-xmlIOHTTPRead
-xmlNewCharEncodingHandler
-xmlOutputBufferCreateIO
-xmlOutputWriteCallback
-xmlSaveToIO
-xmlShellWrite
-
writer
xmlFreeTextWriter
-xmlNewTextWriter
-xmlNewTextWriterPushParser
-
writes
xmlBufferWriteQuotedString
-xmlOutputBufferWrite
-xmlOutputBufferWriteEscape
-xmlOutputBufferWriteString
-
writing
xmlOutputBufferCreateFilename
-
wrt
xmlDOMWrapRemoveNode
-
www
XINCLUDE_NS
-XINCLUDE_OLD_NS
-getSystemId
-xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlGetCharEncodingName
-xmlParserHandlePEReference
-xmlParserHandleReference
-xmlSAX2GetSystemId
-xmlSchemaGetPredefinedType
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk28.html b/src/tools/docbook/libxml2/doc/APIchunk28.html deleted file mode 100644 index b5471fb3d0..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk28.html +++ /dev/null @@ -1,536 +0,0 @@ - - -API Alphabetic Index x-x for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index x-x for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter x:

x00B7
IS_EXTENDER
-
x02D0
IS_EXTENDER
-
x02D1
IS_EXTENDER
-
x0387
IS_EXTENDER
-
x0640
IS_EXTENDER
-
x0E46
IS_EXTENDER
-
x0EC6
IS_EXTENDER
-
x10000-
IS_CHAR
-
x10FFFF
IS_CHAR
-
x20
IS_BLANK
-IS_BYTE_CHAR
-IS_PUBIDCHAR
-xmlParseAttValue
-xmlParseName
-xmlParseNmtoken
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-
x20-
IS_CHAR
-
x3005
IS_EXTENDER
-
x3007
IS_IDEOGRAPHIC
-
x3021-
IS_IDEOGRAPHIC
-
x3029
IS_IDEOGRAPHIC
-
x3031-
IS_EXTENDER
-
x3035
IS_EXTENDER
-
x309D-
IS_EXTENDER
-
x309E
IS_EXTENDER
-
x30FC-
IS_EXTENDER
-
x30FE
IS_EXTENDER
-
x4E00-
IS_IDEOGRAPHIC
-
x9FA5
IS_IDEOGRAPHIC
-
xD7FF
IS_CHAR
-
xE000-
IS_CHAR
-
xFFFD
IS_CHAR
-
xlink
xlinkGetDefaultDetect
-xlinkGetDefaultHandler
-xlinkSetDefaultDetect
-xlinkSetDefaultHandler
-
xlinkHandlerPtr
xlinkGetDefaultHandler
-
xlinkType
xlinkIsLink
-
xml-c14n
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-
xml-exc-c14n
xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-
xml-name
xmlParseNamespace
-
xml:
XML_XML_NAMESPACE
-
xml:base
xmlNodeSetBase
-
xml:id
XML_XML_ID
-
xml:lang
xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-xmlNodeGetLang
-xmlNodeSetLang
-xmlTextReaderConstXmlLang
-xmlTextReaderXmlLang
-xmlXPathLangFunction
-
xml:space
_xmlParserCtxt
-xmlNodeGetSpacePreserve
-xmlNodeSetSpacePreserve
-
xmlAttr
attribute
-attributeSAXFunc
-
xmlAttrPtr
xmlCopyProp
-xmlCopyPropList
-xmlGetID
-
xmlAttributePtr
xmlGetDtdAttrDesc
-xmlGetDtdQAttrDesc
-
xmlAttributeTablePtr
xmlCopyAttributeTable
-
xmlBuffer
xmlCharEncFirstLine
-xmlCharEncInFunc
-xmlCharEncOutFunc
-xmlOutputBufferCreateBuffer
-
xmlBufferPtr
xmlNewTextWriterMemory
-xmlOutputBufferCreateBuffer
-
xmlBuildURI
xmlBuildRelativeURI
-
xmlBytesConsumed
xmlTextReaderByteConsumed
-
xmlCatalogAllow
xmlCatalogGetDefaults
-
xmlCatalogPtr
xmlNewCatalog
-
xmlCatalogResolvePublic
xmlCatalogGetPublic
-
xmlCatalogResolveSystem
xmlCatalogGetSystem
-
xmlCharEncoding
_xmlDoc
-_xmlParserCtxt
-xmlGetCharEncodingHandler
-
xmlCharEncodingHandler
xmlNewCharEncodingHandler
-
xmlCharEncodingHandlerPtr
xmlNewCharEncodingHandler
-xmlRegisterCharEncodingHandler
-
xmlCharEncodingInputFunc
xmlNewCharEncodingHandler
-
xmlCharEncodingOutputFunc
xmlNewCharEncodingHandler
-
xmlChars
_xmlParserInput
-xmlBufferWriteCHAR
-xmlParserInputGrow
-xmlParserInputRead
-
xmlCleanupParser
xmlCleanupParser
-
xmlCleanupThreads
xmlCleanupThreads
-
xmlCopyDocElementContent
xmlCopyElementContent
-
xmlCreateIntSubset
xmlNewDtd
-
xmlDOMWrapCtxtPtr
xmlDOMWrapNewCtxt
-
xmlDefaultSAXLocator
setDocumentLocator
-setDocumentLocatorSAXFunc
-xmlSAX2SetDocumentLocator
-
xmlDocCopyNodeList
xmlCopyNodeList
-
xmlDocNewPI
xmlNewPI
-
xmlDocPtr
xmlCopyDoc
-xmlNewTextWriterDoc
-xmlNewTextWriterTree
-xmlTextReaderCurrentDoc
-
xmlDocumentGetBase
xmlNodeGetBase
-
xmlDtdPtr
xmlCopyDtd
-xmlIOParseDTD
-xmlParseDTD
-xmlSAXParseDTD
-
xmlElementContentPtr
xmlCopyDocElementContent
-xmlCopyElementContent
-xmlParseElementChildrenContentDecl
-xmlParseElementMixedContentDecl
-
xmlElementPtr
xmlGetDtdElementDesc
-xmlGetDtdQElementDesc
-
xmlElementTablePtr
xmlCopyElementTable
-
xmlEncodeEntities
xmlEncodeEntities
-xmlEncodeEntitiesReentrant
-
xmlEncodeEntitiesReentrant
xmlEncodeEntities
-xmlNewChild
-xmlNewDocNode
-xmlNewDocNodeEatName
-
xmlEntitiesTablePtr
xmlCopyEntitiesTable
-xmlCreateEntitiesTable
-
xmlEntityPtr
getEntity
-getEntitySAXFunc
-getParameterEntity
-getParameterEntitySAXFunc
-xmlNewEntityInputStream
-xmlParseEntityRef
-xmlSAX2GetEntity
-xmlSAX2GetParameterEntity
-
xmlEnumerationPtr
xmlCopyEnumeration
-xmlCreateEnumeration
-
xmlExpFree
xmlExpNewOr
-xmlExpNewRange
-xmlExpNewSeq
-
xmlExpRef
xmlExpNewOr
-xmlExpNewRange
-xmlExpNewSeq
-
xmlExternalEntityLoader
xmlGetExternalEntityLoader
-
xmlFileOpen_real
xmlFileOpen
-
xmlFree
xmlC14NDocDumpMemory
-xmlDocDumpFormatMemory
-xmlDocDumpFormatMemoryEnc
-xmlDocDumpMemory
-xmlDocDumpMemoryEnc
-xmlGetNoNsProp
-xmlGetNsProp
-xmlGetProp
-xmlNodeGetBase
-xmlNodeGetContent
-xmlNodeGetLang
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlTextReaderValue
-
xmlFreeDoc
xmlTextReaderCurrentDoc
-
xmlFreeDocElementContent
xmlFreeElementContent
-
xmlFreeMutex
xmlFreeMutex
-
xmlFreeStreamCtxt
xmlPatternGetStreamCtxt
-
xmlGetGlobalState
xmlGetGlobalState
-
xmlGetNoNsProp
xmlGetProp
-
xmlGetNsProp
xmlGetProp
-
xmlGetProp
xmlGetNoNsProp
-
xmlGetThreadId
xmlGetThreadId
-
xmlHashTablePtr
xmlHashCreate
-xmlHashCreateDict
-
xmlIDPtr
xmlAddID
-
xmlIndentTreeOutput
xmlDocDumpFormatMemory
-xmlDocDumpFormatMemoryEnc
-xmlDocFormatDump
-xmlNodeDump
-xmlNodeDumpOutput
-xmlSaveFormatFile
-xmlSaveFormatFileEnc
-
xmlInitParser
htmlInitAutoClose
-
xmlInitThreads
xmlInitThreads
-
xmlInitializeCatalog
xmlCatalogAdd
-
xmlInitializeGlobalState
xmlInitializeGlobalState
-
xmlInputCloseCallback
xmlRegisterInputCallbacks
-
xmlInputMatchCallback
xmlRegisterInputCallbacks
-
xmlInputOpenCallback
xmlRegisterInputCallbacks
-
xmlInputReadCallback
xmlRegisterInputCallbacks
-
xmlIsBaseCharQ
xmlIsBaseChar
-
xmlIsBaseChar_ch
xmlIsBaseChar
-
xmlIsBlankNode
xmlKeepBlanksDefault
-
xmlIsBlankQ
xmlIsBlank
-
xmlIsBlank_ch
xmlIsBlank
-
xmlIsCharQ
xmlIsChar
-
xmlIsChar_ch
xmlIsChar
-
xmlIsCombiningQ
xmlIsCombining
-
xmlIsDigitQ
xmlIsDigit
-
xmlIsDigit_ch
xmlIsDigit
-
xmlIsExtenderQ
xmlIsExtender
-
xmlIsExtender_ch
xmlIsExtender
-
xmlIsIdeographicQ
xmlIsIdeographic
-
xmlIsMainThread
xmlIsMainThread
-
xmlIsPubidCharQ
xmlIsPubidChar
-
xmlIsPubidChar_ch
xmlIsPubidChar
-
xmlKeepBlanksDefault
xmlDocDumpFormatMemory
-xmlDocDumpFormatMemoryEnc
-xmlDocFormatDump
-xmlNodeDump
-xmlNodeDumpOutput
-xmlSaveFormatFile
-xmlSaveFormatFileEnc
-
xmlLineNumbersDefault
xmlGetLineNo
-
xmlListWalk
xmlListWalker
-
xmlLoadExtDtdDefaultValue
XML_COMPLETE_ATTRS
-XML_DETECT_IDS
-XML_SKIP_IDS
-
xmlLocationSetPtr
xmlXPtrFreeLocationSet
-xmlXPtrLocationSetCreate
-
xmlLockLibrary
xmlLockLibrary
-
xmlModuleOption
xmlModuleOpen
-
xmlMutexLock
xmlMutexLock
-
xmlMutexUnlock
xmlMutexUnlock
-
xmlNanoFTPGet
ftpDataCallback
-
xmlNanoFTPList
ftpListCallback
-
xmlNewChild
xmlNewTextChild
-
xmlNewDocElementContent
xmlNewElementContent
-
xmlNewDocRawNode
xmlNewDocNode
-xmlNewDocNodeEatName
-
xmlNewMutex
xmlNewMutex
-
xmlNewNode
xmlNewNodeEatName
-
xmlNewTextChild
xmlNewChild
-xmlNewTextChild
-
xmlNewTextWriter
xmlNewTextWriter
-xmlNewTextWriterDoc
-xmlNewTextWriterFilename
-xmlNewTextWriterMemory
-xmlNewTextWriterPushParser
-xmlNewTextWriterTree
-
xmlNodeListGetString
xmlNodeListGetRawString
-
xmlNodePtr
xmlCopyNode
-xmlCopyNodeList
-xmlDocCopyNode
-xmlDocCopyNodeList
-xmlDocGetRootElement
-xmlNewTextWriterTree
-xmlTextReaderCurrentNode
-xmlTextReaderPreserve
-xmlXPathNodeSetAdd
-xmlXPathNodeSetAddUnique
-xmlXPathNodeSetCreate
-xmlXPathNodeSetDel
-xmlXPathNodeSetItem
-xmlXPtrBuildNodeList
-
xmlNodeSetPtr
xmlXPathFreeNodeSet
-xmlXPathNodeSetCreate
-
xmlNodeType
xmlTextReaderNodeType
-
xmlNotationPtr
xmlGetDtdNotationDesc
-
xmlNotationTablePtr
xmlCopyNotationTable
-
xmlNsPtr
getNamespace
-xmlCopyNamespace
-xmlCopyNamespaceList
-xmlGetNsList
-
xmlOutputBufferClose
xmlSaveFileTo
-xmlSaveFormatFileTo
-
xmlOutputBufferPtr
xmlNewTextWriter
-
xmlOutputCloseCallback
xmlRegisterOutputCallbacks
-
xmlOutputMatchCallback
xmlRegisterOutputCallbacks
-
xmlOutputOpenCallback
xmlRegisterOutputCallbacks
-
xmlOutputWriteCallback
xmlRegisterOutputCallbacks
-
xmlParseAttValue
xmlParseDefaultDecl
-
xmlParseChunk
xmlCreatePushParserCtxt
-
xmlParseElementContentDecl
xmlParseElementChildrenContentDecl
-xmlParseElementMixedContentDecl
-
xmlParseElementDecl
xmlParseElementContentDecl
-
xmlParseExternalID
xmlParseNotationDecl
-
xmlParseFile
xmlParseCatalogFile
-
xmlParseNamespace:
xmlParseNamespace
-
xmlParseURI
xmlURIEscape
-
xmlParserCtxt
XML_CTXT_FINISH_DTD_0
-XML_CTXT_FINISH_DTD_1
-
xmlParserCtxtPtr
xmlNewParserCtxt
-xmlNewTextWriterPushParser
-
xmlParserError
_xmlError
-
xmlParserErrors
docbParseChunk
-htmlParseChunk
-xmlParseChunk
-
xmlParserFindNodeInfoIndex
xmlParserFindNodeInfoIndex
-
xmlParserHandleReference
xmlScanName
-
xmlParserInputBufferPtr
xmlNewTextReader
-xmlTextReaderGetRemainder
-
xmlParserInputPtr
resolveEntity
-resolveEntitySAXFunc
-xmlFreeInputStream
-xmlLoadExternalEntity
-xmlNoNetExternalEntityLoader
-xmlParserPrintFileContext
-xmlParserPrintFileInfo
-xmlSAX2ResolveEntity
-
xmlParserNodeInfo
xmlParserFindNodeInfo
-
xmlParserProperties
xmlTextReaderGetParserProp
-xmlTextReaderSetParserProp
-
xmlPattern
LIBXML_PATTERN_ENABLED
-
xmlPatternFlags
xmlPatterncompile
-
xmlPatternGetStreamCtxt
xmlPatternStreamable
-
xmlPatterncompile
xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-
xmlPopInput:
xmlPopInput
-
xmlPushInput:
xmlPushInput
-
xmlRFreeMutex
xmlFreeRMutex
-
xmlRMutexLock
xmlRMutexLock
-
xmlRMutexUnlock
xmlRMutexUnlock
-
xmlRNewMutex
xmlNewRMutex
-
xmlReader
LIBXML_READER_ENABLED
-
xmlRefPtr
xmlAddRef
-
xmlRelaxNGParserFlag
xmlRelaxParserSetFlag
-
xmlRelaxNGValidatePushElement
xmlRelaxNGValidateFullElement
-
xmlSAX2Attribute
attribute
-
xmlSAX2AttributeDecl
attributeDecl
-
xmlSAX2CDataBlock
cdataBlock
-
xmlSAX2Characters
characters
-xmlSAX2IgnorableWhitespace
-
xmlSAX2Comment
comment
-xmlSAX2Comment
-
xmlSAX2ElementDecl
elementDecl
-
xmlSAX2EndDocument
endDocument
-
xmlSAX2EndElement
endElement
-
xmlSAX2EntityDecl
entityDecl
-
xmlSAX2ExternalSubset
externalSubset
-
xmlSAX2GetColumnNumber
getColumnNumber
-
xmlSAX2GetEntity
getEntity
-
xmlSAX2GetLineNumber
getLineNumber
-
xmlSAX2GetParameterEntity
getParameterEntity
-
xmlSAX2GetPublicId
getPublicId
-
xmlSAX2GetSystemId
getSystemId
-
xmlSAX2HasExternalSubset
hasExternalSubset
-
xmlSAX2HasInternalSubset
hasInternalSubset
-
xmlSAX2IgnorableWhitespace
ignorableWhitespace
-xmlKeepBlanksDefault
-
xmlSAX2InitDefaultSAXHandler
initxmlDefaultSAXHandler
-
xmlSAX2InitDocbDefaultSAXHandler
initdocbDefaultSAXHandler
-
xmlSAX2InitHtmlDefaultSAXHandler
inithtmlDefaultSAXHandler
-
xmlSAX2InternalSubset
internalSubset
-
xmlSAX2IsStandalone
isStandalone
-
xmlSAX2NotationDecl
notationDecl
-
xmlSAX2ProcessingInstruction
processingInstruction
-
xmlSAX2Reference
reference
-xmlSAX2Reference
-
xmlSAX2ResolveEntity
resolveEntity
-xmlSAX2ResolveEntity
-
xmlSAX2StartDocument
startDocument
-
xmlSAX2StartElement
startElement
-
xmlSAX2UnparsedEntityDecl
unparsedEntityDecl
-
xmlSAXVersion
xmlSAXDefaultVersion
-
xmlSaveOptions
xmlSaveToBuffer
-xmlSaveToFd
-xmlSaveToFilename
-xmlSaveToIO
-
xmlSchemaValType
xmlSchemaGetValType
-
xmlSchematronValidOptions
xmlSchematronNewValidCtxt
-
xmlSetExternalEntityLoader
resolveEntity
-resolveEntitySAXFunc
-xmlSAX2ResolveEntity
-
xmlSnprintfElementContent
xmlSprintfElementContent
-
xmlStrcmp
xmlStrEqual
-
xmlStrdup
xmlNewNode
-
xmlStreamPush
xmlStreamPushNode
-
xmlStringDecodeEntities
xmlDecodeEntities
-
xmlStringGetNodeList
xmlParseAttValue
-
xmlStrncat
xmlStrncatNew
-
xmlStrncmp
xmlUTF8Charcmp
-
xmlTextReader
xmlNewTextReader
-xmlNewTextReaderFilename
-xmlReaderNewDoc
-xmlReaderNewFd
-xmlReaderNewFile
-xmlReaderNewIO
-xmlReaderNewMemory
-xmlReaderNewWalker
-xmlTextReaderCurrentDoc
-xmlTextReaderCurrentNode
-
xmlTextReaderCurrentDoc
xmlTextReaderPreserve
-xmlTextReaderPreservePattern
-
xmlTextReaderLocatorPtr
xmlTextReaderLocatorBaseURI
-xmlTextReaderLocatorLineNumber
-
xmlTextReaderRead
xmlTextReaderExpand
-
xmlTextWriterStartDTDEntity
xmlTextWriterWriteDTDExternalEntity
-
xmlTextWriterWriteDTD
xmlTextWriterWriteDocType
-
xmlTextWriterWritePI
xmlTextWriterWriteProcessingInstruction
-
xmlURI
xmlCreateURI
-xmlFreeURI
-xmlPrintURI
-xmlSaveUri
-
xmlURIEscapeStr
xmlURIEscape
-
xmlURIFromPath
xmlNormalizeWindowsPath
-
xmlURIPtr
xmlParseURI
-xmlParseURIRaw
-
xmlUnlinkNode
xmlFreeNode
-
xmlUnlockLibrary
xmlUnlockLibrary
-
xmlValidCtxtPtr
xmlValidityErrorFunc
-xmlValidityWarningFunc
-
xmlValidGetValidElements
xmlValidGetValidElements
-
xmlValidateAttributeDecl
xmlParseDefaultDecl
-
xmlValidateAttributeValue
xmlParseAttributeType
-
xmlValidateOneAttribute
xmlValidateOneElement
-
xmlWriter
LIBXML_WRITER_ENABLED
-
xmlXPathCheckError
xmlXPathPopBoolean
-xmlXPathPopExternal
-xmlXPathPopNodeSet
-xmlXPathPopNumber
-xmlXPathPopString
-
xmlXPathCompExprPtr
xmlXPathCompile
-xmlXPathCtxtCompile
-
xmlXPathContext
xmlXPathFreeContext
-xmlXPathNewContext
-xmlXPtrNewContext
-
xmlXPathError
err
-
xmlXPathEvalPredicate
xmlXPtrEvalRangePredicate
-
xmlXPathFreeObject
xmlXPathFreeNodeSetList
-
xmlXPathFunction
xmlXPathFunctionLookup
-xmlXPathFunctionLookupNS
-
xmlXPathNodeTrailingSorted
xmlXPathNodeTrailing
-
xmlXPathObject
xmlXPathContextSetCache
-
xmlXPathObjectPtr
xmlXPathCompiledEval
-xmlXPathEval
-xmlXPathEvalExpression
-xmlXPathFreeNodeSetList
-xmlXPathFreeObject
-xmlXPathNewBoolean
-xmlXPathNewCString
-xmlXPathNewFloat
-xmlXPathNewNodeSet
-xmlXPathNewNodeSetList
-xmlXPathNewString
-xmlXPathNewValueTree
-xmlXPathWrapNodeSet
-xmlXPtrEval
-xmlXPtrLocationSetAdd
-xmlXPtrLocationSetCreate
-xmlXPtrLocationSetDel
-xmlXPtrNewCollapsedRange
-xmlXPtrNewLocationSetNodeSet
-xmlXPtrNewLocationSetNodes
-xmlXPtrNewRange
-xmlXPtrNewRangeNodeObject
-xmlXPtrNewRangeNodePoint
-xmlXPtrNewRangeNodes
-xmlXPtrNewRangePointNode
-xmlXPtrNewRangePoints
-xmlXPtrWrapLocationSet
-
xmlXPathParserContext
xmlXPathFreeParserContext
-xmlXPathNewParserContext
-
xmlXPathTrailingSorted
xmlXPathTrailing
-
xmlns
xmlNamespaceParseNSDef
-
xmlns:???
xmlParseAttribute
-
xmltextReader
xmlReaderForDoc
-xmlReaderForFd
-xmlReaderForIO
-xmlReaderForMemory
-xmlReaderNewDoc
-xmlReaderNewFd
-xmlReaderNewIO
-xmlReaderNewMemory
-xmlReaderNewWalker
-xmlReaderWalker
-
xpath
xmlShellPrintXPathError
-xmlShellPrintXPathResult
-
xpointer
XINCLUDE_PARSE_XPOINTER
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk29.html b/src/tools/docbook/libxml2/doc/APIchunk29.html deleted file mode 100644 index 92c88b4057..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk29.html +++ /dev/null @@ -1,127 +0,0 @@ - - -API Alphabetic Index y-z for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index y-z for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter y:

year
ftpListCallback
-
yes
xmlInputMatchCallback
-xmlIsBlankNode
-xmlIsMixedElement
-xmlNodeIsText
-xmlOutputMatchCallback
-xmlParseEntityRef
-xmlParsePEReference
-xmlParseSDDecl
-xmlParserHandlePEReference
-xmlRegexpIsDeterminist
-xmlTextWriterStartDocument
-
yet
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlModuleOpen
-xmlSaveDoc
-xmlSaveTree
-xmlSchemaGetCanonValue
-xmlSchemaGetCanonValueWhtsp
-xmlTextReaderSchemaValidateCtxt
-
you
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlNewTextChild
-xmlSchemaGetBuiltInType
-xmlSearchNs
-

Letter z:

zero
docbEncodeEntities
-docbParseChunk
-htmlCtxtReadDoc
-htmlEncodeEntities
-htmlParseChunk
-htmlReadDoc
-xmlBufferCCat
-xmlBufferCat
-xmlByteConsumed
-xmlCopyDoc
-xmlCtxtReadDoc
-xmlDocDumpMemory
-xmlHasFeature
-xmlOutputBufferWriteEscape
-xmlOutputBufferWriteString
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseChunk
-xmlReadDoc
-xmlReaderForDoc
-xmlReaderNewDoc
-xmlStrdupFunc
-xmlStrsub
-xmlXPathBooleanFunction
-xmlXPathStringFunction
-
zero-based
xmlTextReaderGetAttributeNo
-xmlTextReaderMoveToAttributeNo
-
zeros
xmlXPathStringFunction
-
zlib
_xmlDoc
-xmlC14NDocSave
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk3.html b/src/tools/docbook/libxml2/doc/APIchunk3.html deleted file mode 100644 index b1d3caef74..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk3.html +++ /dev/null @@ -1,339 +0,0 @@ - - -API Alphabetic Index F-I for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index F-I for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter F:

FALSE
xmlTextWriterStartDTDEntity
-xmlTextWriterWriteDTDEntity
-xmlTextWriterWriteDTDExternalEntity
-xmlTextWriterWriteDTDInternalEntity
-xmlTextWriterWriteFormatDTDInternalEntity
-xmlTextWriterWriteVFormatDTDInternalEntity
-
FFFE
IS_CHAR
-
FFFF
IS_CHAR
-
FIXED
xmlGetNoNsProp
-xmlGetNsProp
-xmlGetProp
-xmlHasNsProp
-xmlHasProp
-xmlParseDefaultDecl
-
FREE
xmlSchemaGetCanonValue
-
Facet
xmlSchemaFreeFacet
-xmlSchemaNewFacet
-
False
xmlBoolToText
-
Fetch
xmlNanoFTPGet
-
File
xmlTextReaderGetRemainder
-
Fills
xmlNodeBufGetContent
-
Find
xmlExpGetLanguage
-xmlExpGetStart
-xmlGetRefs
-xmlHashLookup
-xmlHashLookup2
-xmlHashLookup3
-xmlHashQLookup
-xmlHashQLookup2
-xmlHashQLookup3
-xmlHashRemoveEntry
-xmlHashRemoveEntry2
-xmlHashRemoveEntry3
-xmlParserFindNodeInfo
-xmlParserFindNodeInfoIndex
-
Finds
xmlExpIsNillable
-
First
XML_SCHEMAS_TYPE_FIXUP_1
-_xmlEntity
-
Fixed
xmlParseDefaultDecl
-xmlValidateOneAttribute
-xmlValidateOneNamespace
-
Float
xmlXPathStringEvalNumber
-
Flush
xmlSaveFlush
-xmlTextWriterFlush
-
For
_xmlParserCtxt
-xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlCtxtResetLastError
-xmlParseComment
-xmlParseElementChildrenContentDecl
-xmlResetLastError
-xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-xmlXPathSubstringAfterFunction
-xmlXPathSubstringBeforeFunction
-xmlXPathSubstringFunction
-xmlXPathTranslateFunction
-
Form
xmlBuildURI
-
Formating
htmlDocContentDumpOutput
-
Formats
xmlStrPrintf
-xmlStrVPrintf
-xmlXPatherror
-
Formed
xmlRecoverDoc
-xmlRecoverFile
-xmlRecoverMemory
-xmlSAXParseDoc
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-
Fragment
xmlNewDocFragment
-
Frameset
_htmlElemDesc
-
Frees
xmlBufferFree
-xmlDOMWrapFreeCtxt
-xmlNanoFTPFreeCtxt
-
Front-end
xmlCharEncFirstLine
-
Function
xmlBufferContent
-xmlBufferLength
-xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-xmlXPathFunctionLookup
-xmlXPathFunctionLookupNS
-

Letter G:

GCC
ATTRIBUTE_UNUSED
-
GEDecl
xmlParseEntityDecl
-
GET
xmlNanoHTTPFetch
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-
GeneralPunctuation
xmlUCSIsGeneralPunctuation
-
Generic
xmlCharEncCloseFunc
-xmlCharEncInFunc
-xmlCharEncOutFunc
-
GeometricShapes
xmlUCSIsGeometricShapes
-
Georgian
xmlUCSIsGeorgian
-
Gets
xmlTextReaderReadState
-
Gives
xmlSchemaGetBuiltInType
-
Global
_xmlDoc
-
Gothic
xmlUCSIsGothic
-
Greek
xmlUCSIsGreek
-
GreekExtended
xmlUCSIsGreekExtended
-
GreekandCoptic
xmlUCSIsGreekandCoptic
-
Group
xmlParseElementChildrenContentDecl
-xmlParseElementMixedContentDecl
-
Grow
xmlBufferGrow
-xmlParserInputBufferGrow
-
Guess
xmlDetectCharEncoding
-
Gujarati
xmlUCSIsGujarati
-
Gurmukhi
xmlUCSIsGurmukhi
-

Letter H:

HTML_DEPRECATED
htmlAttrAllowed
-htmlElementStatusHere
-
HTML_INVALID
htmlAttrAllowed
-htmlElementStatusHere
-
HTML_NA
htmlNodeStatus
-
HTML_REQUIRED
htmlAttrAllowed
-
HTML_VALID
htmlAttrAllowed
-htmlElementStatusHere
-
Hacking
xmlTextReaderCurrentDoc
-xmlTextReaderCurrentNode
-
HalfwidthandFullwidthForms
xmlUCSIsHalfwidthandFullwidthForms
-
Handle
attribute
-attributeSAXFunc
-xmlErrMemory
-xmlXPathErr
-
Handling
xmlCurrentChar
-
HangulCompatibilityJamo
xmlUCSIsHangulCompatibilityJamo
-
HangulJamo
xmlUCSIsHangulJamo
-
HangulSyllables
xmlUCSIsHangulSyllables
-
Hanunoo
xmlUCSIsHanunoo
-
Has
htmlAttrAllowed
-
Hash
_xmlDoc
-_xmlDtd
-_xmlXPathContext
-
Hebrew
xmlUCSIsHebrew
-
Hence
xmlParseNotationDecl
-
HighPrivateUseSurrogates
xmlUCSIsHighPrivateUseSurrogates
-
HighSurrogates
xmlUCSIsHighSurrogates
-
Hiragana
xmlUCSIsHiragana
-
Hmm
xmlSchemaValueGetAsBoolean
-
Holds
_xmlSchemaType
-
How
_xmlParserInput
-
However
docbFreeParserCtxt
-htmlFreeParserCtxt
-xmlFreeParserCtxt
-xmlNodeGetBase
-

Letter I:

I18N
_xmlOutputBuffer
-_xmlParserInputBuffer
-xmlOutputBufferWrite
-xmlOutputBufferWriteEscape
-xmlOutputBufferWriteString
-xmlParserInputBufferGrow
-xmlParserInputBufferPush
-xmlParserInputBufferRead
-
IDREF
xmlParseAttributeType
-xmlValidateAttributeDecl
-xmlValidateAttributeValue
-xmlValidateDocumentFinal
-xmlValidateDtd
-xmlValidateOneAttribute
-xmlValidateOneElement
-xmlValidateOneNamespace
-
IDREFS
xmlParseAttributeType
-xmlValidateAttributeValue
-xmlValidateDocumentFinal
-
IDREFs
_xmlDoc
-
IDs
xmlXPathIdFunction
-
IEEE
xmlXPathCompareValues
-xmlXPathStringFunction
-xmlXPathSubstringFunction
-
IMPLIED
xmlParseAttributeType
-xmlParseDefaultDecl
-
IPAExtensions
xmlUCSIsIPAExtensions
-
ISO
UTF8Toisolat1
-XML_CAST_FPTR
-isolat1ToUTF8
-
ISO-8859-
LIBXML_ISO8859X_ENABLED
-
ISO-Latin
xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-
ISO639Code
xmlCheckLanguageID
-
ISOLatin
_xmlOutputBuffer
-
IS_BLANK
IS_BLANK_CH
-
IS_CHAR
IS_CHAR_CH
-
IS_DIGIT
IS_DIGIT_CH
-
IS_EXTENDER
IS_EXTENDER_CH
-
IS_LETTER
IS_LETTER_CH
-
IS_PUBIDCHAR
IS_PUBIDCHAR_CH
-
IanaCode
xmlCheckLanguageID
-
Identifier
xmlACatalogResolve
-xmlCatalogLocalResolve
-xmlCatalogResolve
-
Identifiers
XML_MAX_NAMELEN
-
Ideographic
IS_IDEOGRAPHIC
-IS_LETTER
-xmlIsLetter
-
IdeographicDescriptionCharacters
xmlUCSIsIdeographicDescriptionCharacters
-
Ignore
XML_SCHEMAS_ANYATTR_LAX
-
Ignored
xmlCopyChar
-
Implements
xmlShell
-xmlShellBase
-xmlShellCat
-xmlShellDir
-xmlShellDu
-xmlShellList
-xmlShellLoad
-xmlShellPwd
-xmlShellSave
-xmlShellValidate
-xmlShellWrite
-xmlXPathDifference
-xmlXPathDistinct
-xmlXPathDistinctSorted
-xmlXPathHasSameNodes
-xmlXPathIntersection
-xmlXPathLeading
-xmlXPathLeadingSorted
-xmlXPathNodeLeading
-xmlXPathNodeLeadingSorted
-xmlXPathNodeSetItem
-xmlXPathNodeTrailing
-xmlXPathNodeTrailingSorted
-xmlXPathTrailing
-xmlXPathTrailingSorted
-
Included
xmlParserHandlePEReference
-
Increase
xmlExpRef
-
Increment
xmlDictReference
-
Indicate
xmlExpMaxToken
-
Indicates
_xmlSchemaWildcard
-
Infinity
xmlXPathStringFunction
-
Initial
xmlAutomataGetInitState
-
Initialization
xmlInitParser
-
Initialize
docbDefaultSAXHandlerInit
-htmlDefaultSAXHandlerInit
-htmlInitAutoClose
-initdocbDefaultSAXHandler
-inithtmlDefaultSAXHandler
-initxmlDefaultSAXHandler
-xmlDefaultSAXHandlerInit
-xmlInitCharEncodingHandlers
-xmlInitMemory
-xmlInitNodeInfoSeq
-xmlInitParserCtxt
-xmlNanoFTPInit
-xmlNanoFTPScanProxy
-xmlNanoHTTPInit
-xmlNanoHTTPScanProxy
-xmlSAX2InitDefaultSAXHandler
-xmlSAX2InitDocbDefaultSAXHandler
-xmlSAX2InitHtmlDefaultSAXHandler
-xmlSAXVersion
-xmlSchemaInitTypes
-xmlXPathInit
-xmlXPathRoot
-
Initially
xmlSubstituteEntitiesDefault
-
Initiate
xmlNanoFTPGetSocket
-
Initilize
xmlRelaxNGInitTypes
-
Input
_xmlParserCtxt
-xmlIOParseDTD
-xmlInputCloseCallback
-xmlInputMatchCallback
-xmlInputOpenCallback
-xmlInputReadCallback
-xmlNewIOInputStream
-
Insert
xmlListAppend
-xmlListInsert
-xmlParserAddNodeInfo
-
Instruction
xmlParsePI
-
Instuction
XML_CATALOG_PI
-
Intended
xmlSnprintfElementContent
-
Internal
xmlParseMarkupDecl
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk4.html b/src/tools/docbook/libxml2/doc/APIchunk4.html deleted file mode 100644 index 561a7437e5..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk4.html +++ /dev/null @@ -1,363 +0,0 @@ - - -API Alphabetic Index J-N for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index J-N for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter J:

Jan
_htmlElemDesc
-
Java
xmlCheckUTF8
-

Letter K:

Kanbun
xmlUCSIsKanbun
-
KangxiRadicals
xmlUCSIsKangxiRadicals
-
Kannada
xmlUCSIsKannada
-
Katakana
xmlUCSIsKatakana
-
KatakanaPhoneticExtensions
xmlUCSIsKatakanaPhoneticExtensions
-
Khmer
xmlUCSIsKhmer
-
KhmerSymbols
xmlUCSIsKhmerSymbols
-

Letter L:

Langcode
xmlCheckLanguageID
-
LanguageID
xmlCheckLanguageID
-
Lao
xmlUCSIsLao
-
Last
_xmlEntity
-
Latin
UTF8Toisolat1
-isolat1ToUTF8
-
Latin-1Supplement
xmlUCSIsLatin1Supplement
-
LatinExtended-A
xmlUCSIsLatinExtendedA
-
LatinExtended-B
xmlUCSIsLatinExtendedB
-
LatinExtendedAdditional
xmlUCSIsLatinExtendedAdditional
-
Legal
xmlParseCharRef
-xmlParseDefaultDecl
-xmlValidateAttributeDecl
-
Length
xmlDocDumpFormatMemoryEnc
-xmlDocDumpMemoryEnc
-
Letter
IS_LETTER
-xmlIsLetter
-xmlNamespaceParseNCName
-xmlParseName
-xmlScanName
-xmlXPathParseNCName
-xmlXPathParseName
-
LetterlikeSymbols
xmlUCSIsLetterlikeSymbols
-
Like
xmlXPathOrderDocElems
-
Limbu
xmlUCSIsLimbu
-
LinearBIdeograms
xmlUCSIsLinearBIdeograms
-
LinearBSyllabary
xmlUCSIsLinearBSyllabary
-
List
_xmlElement
-_xmlParserCtxt
-
Literal
xmlParseSystemLiteral
-
Load
xmlIOParseDTD
-xmlLoadACatalog
-xmlLoadCatalog
-xmlLoadCatalogs
-xmlLoadExternalEntity
-xmlLoadSGMLSuperCatalog
-xmlParseDTD
-xmlSAXParseDTD
-
Local
_xmlOutputBuffer
-_xmlParserInputBuffer
-_xmlSchemaType
-
LocalPart
xmlNamespaceParseQName
-xmlSplitQName
-xmlSplitQName2
-
Location
xmlXPathEval
-xmlXPtrEval
-xmlXPtrEvalRangePredicate
-
LocationSet
xmlXPtrFreeLocationSet
-xmlXPtrLocationSetAdd
-xmlXPtrLocationSetDel
-xmlXPtrLocationSetMerge
-xmlXPtrLocationSetRemove
-xmlXPtrNewLocationSetNodeSet
-xmlXPtrNewLocationSetNodes
-xmlXPtrWrapLocationSet
-
Locator
setDocumentLocator
-setDocumentLocatorSAXFunc
-xmlSAX2SetDocumentLocator
-
Lookup
htmlEntityLookup
-htmlEntityValueLookup
-htmlTagLookup
-xmlGetEncodingAlias
-xmlModuleSymbol
-xmlSchemaGetBuiltInListSimpleTypeItemType
-xmlSchemaGetPredefinedType
-
Loose
_htmlElemDesc
-
LowSurrogates
xmlUCSIsLowSurrogates
-

Letter M:

META
htmlSetMetaEncoding
-
MODIFIER
_htmlElemDesc
-
MULT
_xmlElementContent
-
MUST
xmlC14NDocSaveTo
-xmlC14NExecute
-xmlTextReaderNormalization
-
Makes
xmlAutomataSetFinalState
-
Malayalam
xmlUCSIsMalayalam
-
Maps
xmlChildrenNode
-xmlRootNode
-
Marks
XML_SCHEMAS_ATTRGROUP_MARKED
-XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE
-XML_SCHEMAS_TYPE_MARKED
-
Markup
xmlParseExternalSubset
-xmlParseMarkupDecl
-
Match
xmlParseElement
-
MathematicalAlphanumericSymbols
xmlUCSIsMathematicalAlphanumericSymbols
-
MathematicalOperators
xmlUCSIsMathematicalOperators
-
Max
_xmlParserCtxt
-_xmlValidCtxt
-
May
xmlURIEscape
-
Memory
xmlDocDumpFormatMemoryEnc
-xmlDocDumpMemoryEnc
-
Merge
xmlTextMerge
-
Merges
xmlXPathNodeSetMerge
-xmlXPtrLocationSetMerge
-
Meta
htmlGetMetaEncoding
-htmlSetMetaEncoding
-
Method
xmlTextReaderGetRemainder
-
Mime-Type
xmlNanoHTTPMimeType
-
Minimal
xmlExpParse
-
Misc
xmlParseDocument
-xmlParseMisc
-
MiscellaneousMathematicalSymbols-A
xmlUCSIsMiscellaneousMathematicalSymbolsA
-
MiscellaneousMathematicalSymbols-B
xmlUCSIsMiscellaneousMathematicalSymbolsB
-
MiscellaneousSymbols
xmlUCSIsMiscellaneousSymbols
-
MiscellaneousSymbolsandArrows
xmlUCSIsMiscellaneousSymbolsandArrows
-
MiscellaneousTechnical
xmlUCSIsMiscellaneousTechnical
-
Mixed
xmlIsMixedElement
-xmlParseElementChildrenContentDecl
-xmlParseElementContentDecl
-xmlParseElementMixedContentDecl
-
Mongolian
xmlUCSIsMongolian
-
More
xmlXPathSubstringFunction
-
Move
xmlListCopy
-
Moves
xmlTextReaderMoveToAttribute
-xmlTextReaderMoveToAttributeNo
-xmlTextReaderMoveToAttributeNs
-xmlTextReaderMoveToElement
-xmlTextReaderMoveToFirstAttribute
-xmlTextReaderMoveToNextAttribute
-xmlTextReaderRead
-
MusicalSymbols
xmlUCSIsMusicalSymbols
-
Myanmar
xmlUCSIsMyanmar
-

Letter N:

NAME
xmlParseDTD
-xmlSAXParseDTD
-
NCName
xmlNamespaceParseNCName
-xmlNamespaceParseNSDef
-xmlNamespaceParseQName
-xmlSplitQName
-xmlSplitQName2
-xmlValidateNCName
-xmlXPathParseNCName
-
NCNameChar
xmlNamespaceParseNCName
-xmlXPathParseNCName
-
NDATA
xmlParseEntityDecl
-
NDataDecl
xmlParseEntityDecl
-
NDataDecl?
xmlParseEntityDecl
-
NMTOKEN
xmlParseAttributeType
-xmlValidateAttributeValue
-
NMTOKENS
xmlParseAttributeType
-xmlValidateAttributeValue
-
NMToken
xmlValidateNMToken
-
NOTATION
xmlParseEnumeratedType
-xmlParseNotationType
-xmlSchemaGetCanonValue
-xmlSchemaNewNOTATIONValue
-xmlValidateDtdFinal
-
NOTE
xmlCtxtReadFd
-xmlParseExternalID
-xmlParseNotationDecl
-xmlReadFd
-xmlReaderForFd
-xmlReaderNewFd
-
NOTE:
_xmlParserInput
-htmlSetMetaEncoding
-xmlCheckLanguageID
-xmlGetProp
-xmlInitCharEncodingHandlers
-xmlNewChild
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlNewTextChild
-xmlNewTextWriter
-xmlNewTextWriterPushParser
-xmlParseExternalID
-xmlParsePEReference
-xmlParserHandlePEReference
-xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-xmlTextReaderCurrentDoc
-
NRK
_htmlElemDesc
-
NSDef
xmlNamespaceParseNSDef
-
NaN
xmlXPathBooleanFunction
-xmlXPathIsNaN
-xmlXPathStringFunction
-
NameChar
xmlParseName
-xmlParseNmtoken
-xmlScanName
-xmlXPathParseName
-
Names
xmlParseAttributeType
-xmlParseName
-xmlScanName
-xmlValidateAttributeValue
-xmlValidateNamesValue
-
Namespace
XML_XML_NAMESPACE
-_xmlElementContent
-xmlNewGlobalNs
-xmlNewNs
-xmlXPathNodeSetFreeNs
-xmlXPtrBuildNodeList
-
Nanespace
_xmlParserCtxt
-
Needed
xmlScanName
-
Nesting
xmlParseElementChildrenContentDecl
-xmlParseElementMixedContentDecl
-xmlParseMarkupDecl
-
New
_htmlElemDesc
-
Nmtoken
xmlParseAttributeType
-xmlParseEnumerationType
-xmlParseNmtoken
-xmlValidateAttributeValue
-xmlValidateNmtokenValue
-
Nmtokens
xmlParseAttributeType
-xmlParseNmtoken
-xmlValidateAttributeValue
-xmlValidateNmtokensValue
-
Node
_xmlParserCtxt
-_xmlValidCtxt
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlXPathNewNodeSet
-
NodeList
xmlXPathNodeSetGetLength
-xmlXPathNodeSetItem
-
NodePtr
xmlXPathNewNodeSet
-xmlXPathNewValueTree
-xmlXPathWrapNodeSet
-xmlXPtrNewLocationSetNodes
-
NodeSet
xmlXPathFreeNodeSet
-xmlXPathNewNodeSet
-xmlXPathNewNodeSetList
-xmlXPathNodeSetAdd
-xmlXPathNodeSetAddNs
-xmlXPathNodeSetAddUnique
-xmlXPathNodeSetDel
-xmlXPathNodeSetMerge
-xmlXPathNodeSetRemove
-
NodeSetList
xmlXPathFreeNodeSetList
-
NodeType
xmlXPathIsNodeType
-
Nodeset
xmlXPathNewNodeSetList
-xmlXPathWrapNodeSet
-
Non-static
xmlIOHTTPOpenW
-
Normalization
xmlNormalizeURIPath
-
Normalization:
xmlParseAttValue
-
Not
_xmlSchemaElement
-
NotaNumber
xmlXPathIsNaN
-
Notation
_xmlNotation
-xmlParseEntityDecl
-xmlParseNotationType
-xmlValidateNotationUse
-xmlValidateOneAttribute
-xmlValidateOneNamespace
-
NotationDecl
xmlParseMarkupDecl
-xmlParseNotationDecl
-
NotationType
xmlParseEnumeratedType
-xmlParseNotationType
-
Note
ftpListCallback
-htmlElementAllowedHere
-xmlAddAttributeDecl
-xmlAutomataNewNegTrans
-xmlCheckUTF8
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlDocDumpFormatMemory
-xmlDocDumpFormatMemoryEnc
-xmlDocDumpMemoryEnc
-xmlDocFormatDump
-xmlExpNewOr
-xmlExpNewRange
-xmlExpNewSeq
-xmlHasNsProp
-xmlNanoHTTPContentLength
-xmlNodeDump
-xmlNodeDumpOutput
-xmlParseCharEncoding
-xmlParseEntityRef
-xmlRemoveProp
-xmlSAXDefaultVersion
-xmlSaveFormatFile
-xmlSaveFormatFileEnc
-xmlSchemaValidateFacetWhtsp
-xmlStrncat
-xmlTextReaderSetParserProp
-xmlValidateDtd
-
Note:
fatalErrorSAXFunc
-xmlBuildRelativeURI
-xmlCharEncodingOutputFunc
-xmlGetDtdEntity
-xmlParseAttValue
-xmlParseNotationType
-xmlRelaxNGNewDocParserCtxt
-xmlUTF8Strsub
-
Number
_xmlParserCtxt
-xmlXPathStringEvalNumber
-xmlXPathStringFunction
-
NumberForms
xmlUCSIsNumberForms
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk5.html b/src/tools/docbook/libxml2/doc/APIchunk5.html deleted file mode 100644 index 3ebc5a88d0..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk5.html +++ /dev/null @@ -1,291 +0,0 @@ - - -API Alphabetic Index O-P for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index O-P for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter O:

OBSOLETE:
xmlHandleEntity
-
ONCE
_xmlElementContent
-
OPT
_xmlElementContent
-
OUT
xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlRegExecErrInfo
-xmlRegExecNextValues
-
OUT:
htmlDocDumpMemory
-htmlDocDumpMemoryFormat
-xmlDocDumpFormatMemory
-xmlDocDumpMemory
-
Obsolete
XML_SCHEMAS_ANYATTR_LAX
-XML_SCHEMAS_ANYATTR_SKIP
-XML_SCHEMAS_ANYATTR_STRICT
-XML_SCHEMAS_ELEM_NSDEFAULT
-_xmlSchema
-_xmlSchemaElement
-_xmlSchemaFacet
-_xmlSchemaType
-
Obtain
xmlTextReaderLocatorBaseURI
-xmlTextReaderLocatorLineNumber
-
Ogham
xmlUCSIsOgham
-
OldItalic
xmlUCSIsOldItalic
-
One
INPUT_CHUNK
-xmlParseAttributeType
-xmlSetGenericErrorFunc
-xmlValidateElementDecl
-
Open
xmlIOHTTPOpenW
-
Opens
xmlModuleOpen
-
OpticalCharacterRecognition
xmlUCSIsOpticalCharacterRecognition
-
Optimize
xmlDOMWrapCloneNode
-
Optional
_htmlElemDesc
-
Oriya
xmlUCSIsOriya
-
Osmanya
xmlUCSIsOsmanya
-
Other
xmlXPathContextSetCache
-
Otherwise
xmlStreamPush
-xmlStreamPushAttr
-
Output
xmlOutputCloseCallback
-xmlOutputMatchCallback
-xmlOutputOpenCallback
-xmlOutputWriteCallback
-xmlURIUnescapeString
-
OutputBufferCreateFilenameFunc
xmlOutputBufferCreateFilenameDefault
-
Override
xmlGcMemSetup
-xmlMemSetup
-

Letter P:

P32
xmlValidCtxtNormalizeAttributeValue
-
PCDATA
_htmlElemDesc
-_xmlElementContent
-xmlParseElementMixedContentDecl
-
PEDecl
xmlParseEntityDecl
-
PEDef
xmlParseEntityDecl
-
PEReference
xmlDecodeEntities
-xmlParseDocTypeDecl
-xmlParseEntityValue
-xmlParseExternalSubset
-xmlParsePEReference
-xmlParserHandlePEReference
-xmlParserHandleReference
-xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-
PEs
xmlParseMarkupDecl
-
PITarget
xmlParsePI
-xmlParsePITarget
-
PIs
xmlDocGetRootElement
-xmlDocSetRootElement
-
PLUS
_xmlElementContent
-
POST
xmlIOHTTPOpenW
-xmlRegisterHTTPPostCallbacks
-
PSVI
_xmlAttr
-_xmlDoc
-_xmlNode
-
PUBLIC
_xmlDtd
-_xmlEntity
-xmlCreateEntityParserCtxt
-xmlCreateIntSubset
-xmlParseExternalID
-xmlParseNotationDecl
-
PUT
xmlRegisterHTTPPostCallbacks
-
Parameter
xmlParserHandlePEReference
-
Parameter-entity
xmlParseElementChildrenContentDecl
-xmlParseMarkupDecl
-xmlParsePEReference
-xmlParserHandlePEReference
-
Parse
docbParseChunk
-htmlParseChunk
-htmlSAXParseDoc
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseCDSect
-xmlParseChunk
-xmlParseContent
-xmlParseCtxtExternalEntity
-xmlParseDefaultDecl
-xmlParseExternalEntity
-xmlParseExternalID
-xmlParseInNodeContext
-xmlParseQuotedString
-xmlParseURI
-xmlParseURIRaw
-xmlParseURIReference
-xmlStringGetNodeList
-xmlStringLenGetNodeList
-xmlXPathEvalExpr
-
Parsed
xmlParseEntityRef
-xmlParserHandleReference
-
ParserInputBufferCreateFilenameFunc
xmlParserInputBufferCreateFilenameDefault
-
Parses
xmlRegexpCompile
-xmlTextReaderReadAttributeValue
-
Parsing
_xmlParserCtxt
-
Part
xmlRegexpCompile
-xmlSchemaGetBuiltInListSimpleTypeItemType
-
Path
xmlGetNodePath
-xmlXPathEval
-xmlXPtrEval
-
People
xmlEncodeEntities
-
PhoneticExtensions
xmlUCSIsPhoneticExtensions
-
Please
xmlNormalizeWindowsPath
-
Pointer
xmlCheckUTF8
-
Points
xmlXPtrNewRangePoints
-
Pop
xmlRelaxNGValidatePopElement
-xmlValidatePopElement
-
Pops
inputPop
-namePop
-nodePop
-valuePop
-xmlXPathPopBoolean
-xmlXPathPopExternal
-xmlXPathPopNodeSet
-xmlXPathPopNumber
-xmlXPathPopString
-
Position
_xmlParserNodeInfo
-
Possibility
_xmlXPathContext
-
Precompiled
xmlXPathCompiledEval
-
Predicate
xmlXPathEvalPredicate
-xmlXPathEvaluatePredicateResult
-xmlXPtrEvalRangePredicate
-
PredicateExpr
xmlXPathEvalPredicate
-xmlXPathEvaluatePredicateResult
-xmlXPtrEvalRangePredicate
-
Prefix
xmlNamespaceParseQName
-xmlSplitQName
-xmlSplitQName2
-xmlTextReaderConstName
-xmlTextReaderName
-
PrefixDef
xmlNamespaceParseNSDef
-
Print
xmlRegexpPrint
-xmlShellPrintNode
-xmlShellPrintXPathError
-
Prints
xmlPrintURI
-xmlShellPrintXPathResult
-
PrivateUse
xmlUCSIsPrivateUse
-
PrivateUseArea
xmlUCSIsPrivateUseArea
-
Processing
XML_CATALOG_PI
-xmlParsePI
-
Productions
xmlParseExternalID
-
Proper
xmlParseElementChildrenContentDecl
-xmlParseElementMixedContentDecl
-xmlParseMarkupDecl
-
Prototype
xmlXPathFuncLookupFunc
-xmlXPathVariableLookupFunc
-
Provide
getColumnNumber
-getLineNumber
-xmlSAX2GetColumnNumber
-xmlSAX2GetLineNumber
-xmlTextReaderGetParserColumnNumber
-xmlTextReaderGetParserLineNumber
-
Provides
getPublicId
-getSystemId
-xmlGcMemGet
-xmlMemBlocks
-xmlMemGet
-xmlMemUsed
-xmlNanoHTTPContentLength
-xmlNanoHTTPEncoding
-xmlNanoHTTPMimeType
-xmlNanoHTTPRedir
-xmlSAX2GetPublicId
-xmlSAX2GetSystemId
-xmlTextReaderAttributeCount
-xmlTextReaderConstValue
-xmlTextReaderGetAttribute
-xmlTextReaderGetAttributeNo
-xmlTextReaderGetAttributeNs
-xmlTextReaderValue
-xmlXPathIsInf
-xmlXPathIsNaN
-
Proxy
xmlNanoFTPScanProxy
-xmlNanoHTTPScanProxy
-
Proxy-Authenticate
xmlNanoHTTPAuthHeader
-
PubidChar
IS_PUBIDCHAR
-xmlParsePubidLiteral
-
PubidLiteral
xmlParseExternalID
-xmlParseNotationDecl
-xmlParsePubidLiteral
-
Public
_xmlNotation
-xmlExternalEntityLoader
-xmlLoadExternalEntity
-xmlParseExternalID
-
PublicID
xmlParseExternalID
-xmlParseNotationDecl
-
Push
xmlParserInputBufferPush
-xmlRegExecPushString
-xmlRegExecPushString2
-xmlRelaxNGValidatePushElement
-xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-xmlValidatePushElement
-
Pushes
inputPush
-namePush
-nodePush
-valuePush
-xmlXPathReturnBoolean
-xmlXPathReturnEmptyNodeSet
-xmlXPathReturnEmptyString
-xmlXPathReturnExternal
-xmlXPathReturnFalse
-xmlXPathReturnNodeSet
-xmlXPathReturnNumber
-xmlXPathReturnString
-xmlXPathReturnTrue
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk6.html b/src/tools/docbook/libxml2/doc/APIchunk6.html deleted file mode 100644 index 3d085ba086..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk6.html +++ /dev/null @@ -1,284 +0,0 @@ - - -API Alphabetic Index Q-R for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index Q-R for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter Q:

QName
xmlBuildQName
-xmlDictQLookup
-xmlHashQLookup
-xmlNamespaceParseQName
-xmlParseAttribute
-xmlParseEndTag
-xmlParseStartTag
-xmlSchemaGetCanonValue
-xmlSchemaNewQNameValue
-xmlSetProp
-xmlSplitQName
-xmlSplitQName2
-xmlSplitQName3
-xmlStrQEqual
-xmlValidateQName
-
QNames
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlHashQLookup2
-
QUIT
xmlNanoFTPQuit
-
Qualified
xmlSplitQName3
-
Query
xmlDictSize
-xmlHashSize
-xmlStreamWantsAnyNode
-
Question:
xmlParseTextDecl
-

Letter R:

REC
IS_BASECHAR
-IS_COMBINING
-IS_DIGIT
-
REC-xml
xmlGetCharEncodingName
-xmlParserHandlePEReference
-xmlParserHandleReference
-
REFs
XML_DETECT_IDS
-XML_SKIP_IDS
-
REQUIRED
xmlParseAttributeType
-xmlParseDefaultDecl
-
RFC
xmlBuildURI
-xmlNodeGetBase
-xmlNormalizeURIPath
-
RFC2396
xmlURIEscape
-
Raises
xmlXPathSetArityError
-xmlXPathSetError
-xmlXPathSetTypeError
-
Read
xmlFileRead
-xmlGetFeature
-xmlGetUTF8Char
-xmlIOFTPRead
-xmlIOHTTPRead
-xmlNodeBufGetContent
-xmlNodeGetContent
-xmlTextReaderConstValue
-xmlTextReaderGetParserProp
-xmlTextReaderRelaxNGSetSchema
-xmlTextReaderRelaxNGValidate
-xmlTextReaderSchemaValidate
-xmlTextReaderSchemaValidateCtxt
-xmlTextReaderSetSchema
-
Reader
xmlTextReaderPreserve
-xmlTextReaderPreservePattern
-
Readers
xmlTextReaderNextSibling
-
Reads
xmlTextReaderCurrentNode
-xmlTextReaderExpand
-xmlTextReaderReadInnerXml
-xmlTextReaderReadOuterXml
-xmlTextReaderReadString
-
Rec
xmlValidateDocument
-xmlValidateDocumentFinal
-xmlValidateDtdFinal
-
Receive
setDocumentLocator
-setDocumentLocatorSAXFunc
-xmlParseDefaultDecl
-xmlSAX2SetDocumentLocator
-
Receiving
charactersSAXFunc
-ignorableWhitespaceSAXFunc
-
Recurse
xmlSearchNsByHref
-
Recursion
xmlParsePEReference
-xmlParserHandlePEReference
-
Ref
_xmlRef
-xmlAddRef
-xmlFreeRefTable
-xmlIsRef
-xmlRemoveRef
-
Reference
htmlParseCharRef
-xmlDecodeEntities
-xmlParseAttValue
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseCharRef
-xmlParseContent
-xmlParseEntityValue
-xmlParseInNodeContext
-xmlParseReference
-xmlParserHandleReference
-xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-
Reference:
xmlTextReaderNodeType
-
References
xmlBuildURI
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlParseAttribute
-
Reflects
XML_SCHEMAS_QUALIF_ATTR
-XML_SCHEMAS_QUALIF_ELEM
-
Refresh
xmlParserInputBufferRead
-
Reg
xmlAutomataCompile
-
Register
xmlAddAttributeDecl
-xmlAddDocEntity
-xmlAddDtdEntity
-xmlAddElementDecl
-xmlAddID
-xmlAddNotationDecl
-xmlAddRef
-xmlRegisterCharEncodingHandler
-xmlRegisterInputCallbacks
-xmlRegisterOutputCallbacks
-xmlTextReaderSetErrorHandler
-xmlTextReaderSetStructuredErrorHandler
-xmlXPathRegisterFunc
-xmlXPathRegisterFuncNS
-xmlXPathRegisterNs
-xmlXPathRegisterVariable
-xmlXPathRegisterVariableNS
-
RegisterNodeFunc
xmlRegisterNodeDefault
-
Registers
xmlAddEncodingAlias
-xmlDeregisterNodeDefault
-xmlOutputBufferCreateFilenameDefault
-xmlParserInputBufferCreateFilenameDefault
-xmlRegisterDefaultInputCallbacks
-xmlRegisterDefaultOutputCallbacks
-xmlRegisterNodeDefault
-xmlXPathRegisterAllFunctions
-xmlXPathRegisterFuncLookup
-
Relative
xmlBuildURI
-
Relax-NG
xmlRelaxNGGetParserErrors
-xmlRelaxNGGetValidErrors
-xmlRelaxNGParse
-xmlRelaxNGSetParserErrors
-xmlRelaxNGSetParserStructuredErrors
-xmlRelaxNGSetValidErrors
-xmlRelaxNGSetValidStructuredErrors
-xmlRelaxNGValidateDoc
-
RelaxNG
_xmlSchemaElement
-xmlRelaxNGCleanupTypes
-xmlRelaxNGDump
-xmlRelaxNGDumpTree
-xmlRelaxNGFree
-xmlRelaxNGNewDocParserCtxt
-xmlRelaxNGParse
-xmlRelaxNGValidatePopElement
-xmlRelaxNGValidatePushCData
-xmlRelaxNGValidatePushElement
-xmlRelaxParserSetFlag
-xmlTextReaderRelaxNGSetSchema
-xmlTextReaderRelaxNGValidate
-
RelaxNGs
xmlRelaxNGNewDocParserCtxt
-xmlRelaxNGNewMemParserCtxt
-xmlRelaxNGNewParserCtxt
-xmlRelaxNGNewValidCtxt
-
Remove
xmlACatalogRemove
-xmlBufferShrink
-xmlCatalogRemove
-xmlListClear
-xmlListRemoveAll
-xmlListRemoveFirst
-xmlListRemoveLast
-xmlParserHandleReference
-xmlRemoveID
-xmlRemoveRef
-xmlUnsetNsProp
-xmlUnsetProp
-
Removes
xmlListPopBack
-xmlListPopFront
-xmlSchemaCollapseString
-xmlXPathNodeSetDel
-xmlXPathNodeSetRemove
-xmlXPtrLocationSetDel
-xmlXPtrLocationSetRemove
-
Replace
xmlNodeSetContent
-xmlNodeSetContentLen
-
Replaces
xmlSchemaWhiteSpaceReplace
-
Required
_htmlElemDesc
-htmlAttrAllowed
-xmlParseDefaultDecl
-xmlValidateOneElement
-
Reset
htmlCtxtReset
-xmlCtxtReset
-xmlCtxtResetPush
-
Resize
xmlBufferResize
-
Resolves
xmlTextReaderLookupNamespace
-
Resolving
xmlBuildURI
-
Retrieve
xmlTextReaderGetErrorHandler
-xmlTextReaderIsValid
-
Return
CHECK_TYPE0
-
Returns
htmlDefaultSubelement
-htmlElementAllowedHereDesc
-htmlRequiredAttrs
-xmlGetDocEntity
-xmlGetDtdEntity
-xmlGetParameterEntity
-xmlHasFeature
-xmlLinkGetData
-xmlXPathCheckError
-xmlXPathGetContextNode
-xmlXPathGetDocument
-xmlXPathGetError
-xmlXPathNodeSetGetLength
-xmlXPathNodeSetIsEmpty
-xmlXPathNodeSetItem
-xmlXPathStackIsExternal
-xmlXPathStackIsNodeSet
-
Returns:
xmlRegExecErrInfo
-xmlRegExecNextValues
-
Reverse
xmlListReverse
-
Root
xmlParseDocTypeDecl
-xmlValidateRoot
-
Runic
xmlUCSIsRunic
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk7.html b/src/tools/docbook/libxml2/doc/APIchunk7.html deleted file mode 100644 index 50949e18d4..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk7.html +++ /dev/null @@ -1,308 +0,0 @@ - - -API Alphabetic Index S-S for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index S-S for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter S:

SAX1
LIBXML_SAX1_ENABLED
-
SAX2
XML_SAX2_MAGIC
-endElementNsSAX2Func
-initdocbDefaultSAXHandler
-inithtmlDefaultSAXHandler
-initxmlDefaultSAXHandler
-startElementNsSAX2Func
-xmlDefaultSAXHandlerInit
-xmlSAX2EndElementNs
-xmlSAX2InitDefaultSAXHandler
-xmlSAX2InitDocbDefaultSAXHandler
-xmlSAX2InitHtmlDefaultSAXHandler
-xmlSAX2StartElementNs
-
SAX::substituteEntities
xmlSubstituteEntitiesDefault
-
SDDecl
xmlParseSDDecl
-
SDDecl?
xmlParseXMLDecl
-
SEQ
_xmlElementContent
-
SGML
LIBXML_DOCB_ENABLED
-docbCreateFileParserCtxt
-docbCreatePushParserCtxt
-docbEncodeEntities
-docbFreeParserCtxt
-docbParseDoc
-docbParseDocument
-docbParseFile
-docbSAXParseDoc
-docbSAXParseFile
-xmlCatalogConvert
-xmlCatalogIsEmpty
-xmlConvertSGMLCatalog
-xmlLoadACatalog
-xmlLoadCatalog
-xmlLoadSGMLSuperCatalog
-xmlNewCatalog
-xmlParseComment
-
SGMLSOURCE
getPublicId
-xmlSAX2GetPublicId
-
SITE
xmlNanoFTPProxy
-
STag
htmlParseElement
-xmlParseElement
-xmlParseStartTag
-
SYSTEM
_xmlDtd
-_xmlEntity
-_xmlParserCtxt
-externalSubset
-externalSubsetSAXFunc
-internalSubset
-internalSubsetSAXFunc
-xmlParseExternalID
-xmlParseNotationDecl
-xmlSAX2ExternalSubset
-xmlSAX2InternalSubset
-
Same
IS_PUBIDCHAR_CH
-
Save
xmlCopyError
-xmlSaveDoc
-xmlSaveTree
-xmlSaveUri
-
Scan
xmlHashCopy
-xmlHashScan
-xmlHashScan3
-xmlHashScanFull
-xmlHashScanFull3
-
Schema
xmlSchemaDump
-xmlSchemaFree
-xmlSchemaFreeFacet
-xmlSchemaFreeType
-xmlSchemaGetBuiltInListSimpleTypeItemType
-xmlSchemaGetCanonValue
-xmlSchemaParse
-xmlTextReaderSchemaValidate
-xmlTextReaderSchemaValidateCtxt
-xmlTextReaderSetSchema
-
Schemas
LIBXML_SCHEMAS_ENABLED
-xmlRegexpCompile
-xmlRelaxNGCleanupTypes
-xmlSchemaCleanupTypes
-xmlSchemaFreeValue
-xmlSchemaGetPredefinedType
-xmlSchemaInitTypes
-xmlSchemaNewDocParserCtxt
-xmlSchemaNewMemParserCtxt
-xmlSchemaNewParserCtxt
-
Schematron
LIBXML_SCHEMATRON_ENABLED
-xmlSchematronFree
-xmlSchematronParse
-
Schematrons
xmlSchematronNewDocParserCtxt
-xmlSchematronNewMemParserCtxt
-xmlSchematronNewParserCtxt
-xmlSchematronNewValidCtxt
-
Script
htmlIsScriptAttribute
-
Search
xmlFindCharEncodingHandler
-xmlGetCharEncodingHandler
-xmlGetDtdAttrDesc
-xmlGetDtdElementDesc
-xmlGetDtdNotationDesc
-xmlGetDtdQAttrDesc
-xmlGetDtdQElementDesc
-xmlGetID
-xmlGetLastChild
-xmlGetNoNsProp
-xmlGetNsList
-xmlGetNsProp
-xmlGetProp
-xmlHasNsProp
-xmlHasProp
-xmlIsMixedElement
-xmlListReverseSearch
-xmlListSearch
-xmlSearchNs
-xmlSearchNsByHref
-xmlXPathFunctionLookup
-xmlXPathFunctionLookupNS
-xmlXPathNsLookup
-xmlXPathVariableLookup
-xmlXPathVariableLookupNS
-
Searches
xmlNodeGetBase
-xmlNodeGetLang
-xmlNodeGetSpacePreserve
-
Second
xmlCheckLanguageID
-
Section
xmlGetCharEncodingName
-xmlNormalizeURIPath
-
See
xmlLinkGetData
-xmlParseNotationDecl
-xmlTextReaderByteConsumed
-
Seems
xmlParseTextDecl
-
Semi
xmlRelaxParserSetFlag
-
Send
xmlNanoFTPQuit
-
Serialize
xmlAttrSerializeTxtContent
-xmlExpDump
-
Sets
htmlSetMetaEncoding
-xmlBufferSetAllocationScheme
-xmlXPathDifference
-xmlXPathDistinct
-xmlXPathDistinctSorted
-xmlXPathHasSameNodes
-xmlXPathIntersection
-xmlXPathLeading
-xmlXPathLeadingSorted
-xmlXPathNodeLeading
-xmlXPathNodeLeadingSorted
-xmlXPathNodeTrailing
-xmlXPathNodeTrailingSorted
-xmlXPathTrailing
-xmlXPathTrailingSorted
-
Setup
xmlNanoFTPProxy
-xmlReaderNewDoc
-xmlReaderNewFd
-xmlReaderNewIO
-xmlReaderNewMemory
-xmlReaderNewWalker
-xmlSetupParserForBuffer
-
Shavian
xmlUCSIsShavian
-
Shell
xmlShellReadlineFunc
-
Shema
xmlRelaxNGParse
-xmlSchemaParse
-xmlSchematronParse
-
Should
_xmlParserCtxt
-xmlGcMemSetup
-xmlMemSetup
-xmlNanoFTPScanProxy
-xmlNanoHTTPScanProxy
-xmlStrEqual
-xmlStringGetNodeList
-xmlStringLenGetNodeList
-
Show
xmlShellPwd
-
Signature
xmlFreeFunc
-xmlGenericErrorFunc
-xmlMallocFunc
-xmlReallocFunc
-xmlStrdupFunc
-xmlStructuredErrorFunc
-
Similarly
xmlParseEntityRef
-
Simply
xmlCreateURI
-
Since
xmlStrcat
-xmlStrdup
-xmlTextReaderNormalization
-
Sinhala
xmlUCSIsSinhala
-
Skip
XML_SCHEMAS_ANYATTR_SKIP
-XML_SCHEMAS_ANY_SKIP
-xmlNextChar
-xmlParseComment
-xmlTextReaderNext
-xmlTextReaderNextSibling
-
Skips
MOVETO_ENDTAG
-MOVETO_STARTTAG
-SKIP_EOL
-
SmallFormVariants
xmlUCSIsSmallFormVariants
-
Some
_htmlElemDesc
-xmlBuildRelativeURI
-xmlSchemaGetCanonValue
-
Sort
xmlListSort
-xmlXPathNodeSetSort
-
SpacingModifierLetters
xmlUCSIsSpacingModifierLetters
-
Spec
xmlParseStartTag
-
Special
XML_CTXT_FINISH_DTD_0
-XML_CTXT_FINISH_DTD_1
-XML_SAX2_MAGIC
-
Specials
xmlUCSIsSpecials
-
Speed
_xmlParserCtxt
-
Standalone
xmlParseSDDecl
-xmlValidCtxtNormalizeAttributeValue
-
Start
xmlNanoFTPOpen
-xmlTextWriterStartAttribute
-xmlTextWriterStartAttributeNS
-xmlTextWriterStartCDATA
-xmlTextWriterStartComment
-xmlTextWriterStartDTD
-xmlTextWriterStartDTDAttlist
-xmlTextWriterStartDTDElement
-xmlTextWriterStartDTDEntity
-xmlTextWriterStartDocument
-xmlTextWriterStartElement
-xmlTextWriterStartElementNS
-xmlTextWriterStartPI
-
StringType
xmlParseAttributeType
-
Strings
xmlXPathStringLengthFunction
-xmlXPathSubstringFunction
-
Subcode
xmlCheckLanguageID
-
Subset
xmlParseMarkupDecl
-
Super
xmlLoadSGMLSuperCatalog
-
SuperscriptsandSubscripts
xmlUCSIsSuperscriptsandSubscripts
-
SupplementalArrows-A
xmlUCSIsSupplementalArrowsA
-
SupplementalArrows-B
xmlUCSIsSupplementalArrowsB
-
SupplementalMathematicalOperators
xmlUCSIsSupplementalMathematicalOperators
-
SupplementaryPrivateUseArea-A
xmlUCSIsSupplementaryPrivateUseAreaA
-
SupplementaryPrivateUseArea-B
xmlUCSIsSupplementaryPrivateUseAreaB
-
Support
xmlDOMWrapCloneNode
-
Syriac
xmlUCSIsSyriac
-
System
_xmlNotation
-xmlExternalEntityLoader
-xmlNoNetExternalEntityLoader
-xmlParseCtxtExternalEntity
-xmlParseExternalEntity
-xmlTextReaderNodeType
-
SystemLiteral
xmlNamespaceParseNSDef
-xmlParseExternalID
-xmlParseNotationDecl
-xmlParseSystemLiteral
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk8.html b/src/tools/docbook/libxml2/doc/APIchunk8.html deleted file mode 100644 index 82de64be85..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk8.html +++ /dev/null @@ -1,301 +0,0 @@ - - -API Alphabetic Index T-U for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index T-U for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter T:

TEXT
xmlAddChild
-xmlAddChildList
-xmlAddPrevSibling
-xmlAddSibling
-xmlNewTextChild
-xmlNodeBufGetContent
-xmlNodeGetContent
-
TEXTs
xmlNewChild
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlStringGetNodeList
-xmlStringLenGetNodeList
-
TODO
xmlParseElementChildrenContentDecl
-xmlParseSDDecl
-
TODO:
XML_SCHEMAS_TYPE_VARIETY_ABSENT
-htmlEntityLookup
-htmlEntityValueLookup
-htmlNodeDumpFileFormat
-xmlDOMWrapCloneNode
-xmlDecodeEntities
-xmlEncodeEntities
-xmlModuleOpen
-xmlNamespaceParseNCName
-xmlNamespaceParseNSDef
-xmlNamespaceParseQName
-xmlNewTextWriterMemory
-xmlNewTextWriterPushParser
-xmlOutputBufferCreateFilename
-xmlParseNamespace
-xmlParseQuotedString
-xmlParserHandleReference
-xmlParserInputBufferGrow
-xmlSaveDoc
-xmlSaveTree
-xmlScanName
-xmlSchemaGetCanonValue
-xmlTextWriterWriteRawLen
-xmlXPathNextAttribute
-
TRUE
xmlTextWriterStartDTDEntity
-xmlTextWriterWriteDTDEntity
-xmlTextWriterWriteDTDExternalEntity
-xmlTextWriterWriteDTDInternalEntity
-xmlTextWriterWriteFormatDTDInternalEntity
-xmlTextWriterWriteVFormatDTDInternalEntity
-
Tagalog
xmlUCSIsTagalog
-
Tagbanwa
xmlUCSIsTagbanwa
-
Tags
xmlUCSIsTags
-
TaiLe
xmlUCSIsTaiLe
-
TaiXuanJingSymbols
xmlUCSIsTaiXuanJingSymbols
-
Take
UTF8ToHtml
-UTF8Toisolat1
-docbEncodeEntities
-htmlEncodeEntities
-isolat1ToUTF8
-xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-
Takes
xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-
Tamil
xmlUCSIsTamil
-
Telugu
xmlUCSIsTelugu
-
Test
xmlPatternMatch
-
Text
xmlNodeIsText
-xmlTextReaderReadAttributeValue
-xmlTextReaderReadString
-
TextDecl
xmlParseTextDecl
-
TextDecl?
xmlParseCtxtExternalEntity
-xmlParseEntity
-xmlParseExtParsedEnt
-xmlParseExternalEntity
-xmlSAXParseEntity
-
Thaana
xmlUCSIsThaana
-
Thai
xmlUCSIsThai
-
That
xmlAutomataNewAllTrans
-xmlParseElementChildrenContentDecl
-xmlParseMarkupDecl
-
Then
xmlValidateOneElement
-
There
xmlExpParse
-xmlXPathContextSetCache
-
Those
_xmlParserCtxt
-
Thus:
xmlXPathSubstringFunction
-
Tibetan
xmlUCSIsTibetan
-
Token
xmlParseAttributeType
-xmlValidateAttributeValue
-xmlValidateNmtokenValue
-xmlValidateNmtokensValue
-xmlValidateOneAttribute
-xmlValidateOneNamespace
-
TokenizedType
xmlParseAttributeType
-
Traversal
xmlXPathNextAncestor
-xmlXPathNextAncestorOrSelf
-xmlXPathNextAttribute
-xmlXPathNextChild
-xmlXPathNextDescendant
-xmlXPathNextDescendantOrSelf
-xmlXPathNextFollowing
-xmlXPathNextFollowingSibling
-xmlXPathNextNamespace
-xmlXPathNextParent
-xmlXPathNextPreceding
-xmlXPathNextPrecedingSibling
-xmlXPathNextSelf
-
Tree
xmlXPathNewValueTree
-
Tree:-
xmlParseNamespace
-
Trickery:
xmlScanName
-
Tries
xmlNanoFTPConnect
-xmlNanoFTPConnectTo
-xmlNanoFTPCwd
-xmlNanoFTPDele
-
True
xmlBoolToText
-
Try
xmlACatalogResolvePublic
-xmlACatalogResolveSystem
-xmlCatalogGetPublic
-xmlCatalogGetSystem
-xmlCatalogResolvePublic
-xmlCatalogResolveSystem
-xmlIsXHTML
-xmlNanoFTPGetConnection
-xmlValidateAttributeDecl
-xmlValidateDocument
-xmlValidateDtd
-xmlValidateElement
-xmlValidateElementDecl
-xmlValidateNotationDecl
-xmlValidateOneAttribute
-xmlValidateOneElement
-xmlValidateOneNamespace
-xmlValidateRoot
-
Type
_xmlSchemaType
-xmlParseAttribute
-xmlParseAttributeType
-xmlParseDocTypeDecl
-xmlParseElement
-xmlParseElementDecl
-xmlSchemaFreeType
-xmlValidateElementDecl
-xmlValidateOneAttribute
-xmlValidateOneNamespace
-xmlValidateRoot
-
Types
xmlGetBufferAllocationScheme
-xmlParseElementMixedContentDecl
-xmlSetBufferAllocationScheme
-xmlValidateElementDecl
-

Letter U:

UCS4
xmlUTF8Charcmp
-
UNICODE
_htmlEntityDesc
-c
-
UNIX
xmlShell
-
UNUSED:
ignorableWhitespace
-ignorableWhitespaceSAXFunc
-xmlSAX2IgnorableWhitespace
-
URI-reference
xmlParseURI
-xmlParseURIRaw
-xmlParseURIReference
-
URN
globalNamespace
-namespaceDecl
-
USER
xmlNanoFTPProxy
-
UTF16
xmlCharEncOutFunc
-
UTF4
xmlDetectCharEncoding
-
UTF8
_xmlBuffer
-p
-xmlCharEncOutFunc
-xmlGetUTF8Char
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlSplitQName
-xmlUTF8Charcmp
-xmlUTF8Size
-xmlUTF8Strlen
-xmlUTF8Strloc
-xmlUTF8Strndup
-xmlUTF8Strpos
-xmlUTF8Strsize
-
Ugaritic
xmlUCSIsUgaritic
-
Unescaping
xmlURIUnescapeString
-
Unicode
IS_CHAR
-LIBXML_UNICODE_ENABLED
-
UnifiedCanadianAboriginalSyllabics
xmlUCSIsUnifiedCanadianAboriginalSyllabics
-
Unique
xmlParseElementDecl
-xmlParseStartTag
-xmlValidateElementDecl
-xmlXPathIdFunction
-
Unix
xmlShellList
-
Unlink
xmlRemoveProp
-xmlReplaceNode
-xmlUnlinkNode
-
Unlinks
xmlDOMWrapRemoveNode
-
Unregisters
xmlCleanupEncodingAliases
-xmlDelEncodingAlias
-
Update
xmlNanoFTPUpdateURL
-
Upgrade
xmlKeepBlanksDefault
-
Use
XML_COMPLETE_ATTRS
-XML_DETECT_IDS
-_xmlParserCtxt
-xmlCopyNodeList
-xmlGetProp
-xmlIsBaseChar
-xmlIsBlank
-xmlIsChar
-xmlIsCombining
-xmlIsDigit
-xmlIsExtender
-xmlIsIdeographic
-xmlIsPubidChar
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlNewNodeEatName
-xmlNewPI
-xmlNewTextChild
-xmlPatternGetStreamCtxt
-xmlTextReaderRelaxNGSetSchema
-xmlTextReaderRelaxNGValidate
-xmlTextReaderSchemaValidate
-xmlTextReaderSchemaValidateCtxt
-xmlTextReaderSetSchema
-xmlXPathContextSetCache
-
Used
XML_SCHEMAS_ANY_LAX
-XML_SCHEMAS_ANY_STRICT
-XML_SCHEMAS_ATTR_USE_PROHIBITED
-XML_SKIP_IDS
-_xmlSchemaType
-xmlCatalogGetDefaults
-xmlCatalogSetDebug
-xmlCatalogSetDefaults
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseExternalEntity
-xmlScanName
-
User
xmlSAXParseFileWithData
-xmlSAXParseMemoryWithData
-
UserCode
xmlCheckLanguageID
-
Uses
xmlNewNode
-xmlURIEscape
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIchunk9.html b/src/tools/docbook/libxml2/doc/APIchunk9.html deleted file mode 100644 index 556b273a4b..0000000000 --- a/src/tools/docbook/libxml2/doc/APIchunk9.html +++ /dev/null @@ -1,277 +0,0 @@ - - -API Alphabetic Index V-Z for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

API Alphabetic Index V-Z for libxml2

Developer Menu
API Indexes
Related links

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Letter V:

Valid
xmlValidateOneElement
-
Validate
XML_SCHEMAS_ANY_LAX
-xmlRelaxNGValidateDoc
-xmlRelaxNGValidateFullElement
-xmlSchematronValidateDoc
-xmlShellValidate
-xmlValidateAttributeValue
-xmlValidateNameValue
-xmlValidateNamesValue
-xmlValidateNmtokenValue
-xmlValidateNmtokensValue
-xmlValidateNotationUse
-
Validity
xmlParseAttributeType
-
Value
xmlParseAttribute
-xmlValidateOneAttribute
-xmlValidateOneNamespace
-xmlXPathNewValueTree
-
Values
xmlCatalogSetDefaultPrefer
-xmlParseAttribute
-xmlParseAttributeType
-xmlParseDefaultDecl
-xmlParseEnumerationType
-xmlParseNotationType
-xmlValidateAttributeValue
-
Variable
xmlXPathVariableLookup
-xmlXPathVariableLookupNS
-
VariationSelectors
xmlUCSIsVariationSelectors
-
VariationSelectorsSupplement
xmlUCSIsVariationSelectorsSupplement
-
VersionInfo
xmlParseVersionInfo
-xmlParseXMLDecl
-
VersionInfo?
xmlParseTextDecl
-
VersionNum
xmlParseVersionInfo
-xmlParseVersionNum
-

Letter W:

W3C
xmlTextReaderSchemaValidate
-xmlTextReaderSchemaValidateCtxt
-
WARNING:
xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlDOMWrapRemoveNode
-xmlSchemaGetCanonValue
-xmlSchemaNewStringValue
-
WFC:
xmlParseAttribute
-xmlParseCharRef
-xmlParseDefaultDecl
-xmlParseElement
-xmlParseEntityRef
-xmlParseMarkupDecl
-xmlParsePEReference
-xmlParseStartTag
-xmlParserHandlePEReference
-xmlParserHandleReference
-
WWW-Authenticate
xmlNanoHTTPAuthHeader
-
WXS
_xmlSchemaElement
-
Walk
xmlListReverseWalk
-xmlListWalk
-
Warning
xmlSaveFileTo
-xmlSaveFormatFileTo
-
Was
_xmlParserInput
-
Well
xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseEntity
-xmlParseInNodeContext
-xmlRecoverDoc
-xmlRecoverFile
-xmlRecoverMemory
-xmlSAXParseDoc
-xmlSAXParseEntity
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-
What
_xmlError
-notationDecl
-notationDeclSAXFunc
-unparsedEntityDecl
-unparsedEntityDeclSAXFunc
-xmlSAX2NotationDecl
-xmlSAX2UnparsedEntityDecl
-
When
xmlHandleEntity
-xmlXPathCompareValues
-xmlXPathIdFunction
-
Wherever
xmlCurrentChar
-
Whitespace
xmlXPathNormalizeFunction
-
Will
xmlSaveFile
-xmlSaveFormatFile
-
With
xmlParseAttribute
-xmlParseEndTag
-xmlParseStartTag
-
Working
xmlParseNamespace
-
Wrap
xmlXPathWrapNodeSet
-xmlXPtrWrapLocationSet
-
Wrapper
xmlFileOpen
-
Wraps
xmlXPathWrapCString
-xmlXPathWrapExternal
-xmlXPathWrapString
-
Writes
xmlTextWriterFullEndElement
-

Letter X:

XHTML
xmlIsXHTML
-
XInclude
LIBXML_XINCLUDE_ENABLED
-XINCLUDE_NS
-XINCLUDE_OLD_NS
-xmlDOMWrapCloneNode
-xmlXIncludeFreeContext
-xmlXIncludeNewContext
-xmlXIncludeProcess
-xmlXIncludeProcessFlags
-xmlXIncludeProcessNode
-xmlXIncludeProcessTree
-xmlXIncludeProcessTreeFlags
-xmlXIncludeSetFlags
-
XLINK_TYPE_NONE
xlinkIsLink
-
XML-1
xmlDetectCharEncoding
-xmlValidateAttributeDecl
-xmlValidateElementDecl
-xmlValidateNotationDecl
-xmlValidateOneAttribute
-xmlValidateOneElement
-xmlValidateOneNamespace
-xmlValidateRoot
-
XMLDecl
xmlParseXMLDecl
-
XMLDecl?
xmlParseDocument
-
XMLSchema
xmlSchemaGetPredefinedType
-
XML_ATTRIBUTE_DECL
_xmlAttribute
-
XML_ATTRIBUTE_ENUMERATION
xmlParseEnumeratedType
-
XML_ATTRIBUTE_FIXED
xmlParseDefaultDecl
-
XML_ATTRIBUTE_IMPLIED
xmlParseDefaultDecl
-
XML_ATTRIBUTE_NODE
_xmlAttr
-
XML_ATTRIBUTE_NONE
xmlParseDefaultDecl
-
XML_ATTRIBUTE_NOTATION
xmlParseEnumeratedType
-
XML_ATTRIBUTE_REQUIRED
xmlParseDefaultDecl
-
XML_BUFFER_ALLOC_DOUBLEIT
xmlGetBufferAllocationScheme
-xmlSetBufferAllocationScheme
-
XML_BUFFER_ALLOC_EXACT
xmlGetBufferAllocationScheme
-xmlSetBufferAllocationScheme
-
XML_CAST_FPTR
XML_CAST_FPTR
-
XML_CATA_PREFER_PUBLIC
xmlCatalogSetDefaultPrefer
-
XML_CATA_PREFER_SYSTEM
xmlCatalogSetDefaultPrefer
-
XML_CHAR_ENCODING_
xmlDetectCharEncoding
-xmlParseCharEncoding
-
XML_CHAR_ENCODING_NONE
xmlParseCharEncoding
-xmlParserInputBufferCreateFilename
-
XML_DOCUMENT_NODE
_xmlDoc
-
XML_DTD_NODE
_xmlDtd
-
XML_ELEMENT_DECL
_xmlElement
-
XML_ELEMENT_TYPE_xxx
xmlParseElementContentDecl
-
XML_ENTITY_DECL
_xmlEntity
-
XML_ERR_OK
xmlParseInNodeContext
-
XML_SCHEMAS_ELEM_GLOBAL
XML_SCHEMAS_ELEM_TOPLEVEL
-
XML_SCHEMAS_FACET_PRESERVE
_xmlSchemaFacet
-
XML_SCHEMAS_STRING
xmlSchemaNewStringValue
-
XML_SUBSTITUTE_PEREF
xmlDecodeEntities
-xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-
XML_SUBSTITUTE_REF
xmlDecodeEntities
-xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-
XML_xxx_yyy_ENTITY
xmlAddDocEntity
-xmlAddDtdEntity
-
XMl-Schema
xmlSchemaGetParserErrors
-
XPATH
xmlXPathFreeCompExpr
-
XPATH_INVALID_ARITY
xmlXPathSetArityError
-
XPATH_INVALID_TYPE
xmlXPathSetTypeError
-
XPointer
LIBXML_XPTR_ENABLED
-_xmlXPathContext
-_xmlXPathParserContext
-xmlXPtrBuildNodeList
-xmlXPtrEval
-xmlXPtrEvalRangePredicate
-xmlXPtrNewContext
-xmlXPtrRangeToFunction
-
XSD
xmlAutomataNewNegTrans
-xmlTextReaderSchemaValidate
-xmlTextReaderSchemaValidateCtxt
-xmlTextReaderSetSchema
-
XSLT
_xmlNode
-_xmlXPathContext
-xmlFreePattern
-xmlFreePatternList
-xmlXPathNewValueTree
-xmlXPathStackIsNodeSet
-
Xinclude
XINCLUDE_NS
-XINCLUDE_OLD_NS
-
Xml
xmlTextReaderNodeType
-
XmlNodeType
xmlTextReaderNodeType
-

Letter Y:

YES
htmlNodeStatus
-
YiRadicals
xmlUCSIsYiRadicals
-
YiSyllables
xmlUCSIsYiSyllables
-
YijingHexagramSymbols
xmlUCSIsYijingHexagramSymbols
-

Letter Z:

ZLIB
docbCreateFileParserCtxt
-docbParseFile
-docbSAXParseFile
-htmlCreateFileParserCtxt
-htmlParseFile
-htmlSAXParseFile
-xmlCreateEntityParserCtxt
-xmlCreateFileParserCtxt
-xmlCreateURLParserCtxt
-xmlGetCompressMode
-xmlGetDocCompressMode
-xmlOutputBufferCreateFilename
-xmlParseFile
-xmlParserInputBufferCreateFilename
-xmlRecoverFile
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXUserParseFile
-xmlSetCompressMode
-xmlSetDocCompressMode
-

A-B -C-C -D-E -F-I -J-N -O-P -Q-R -S-S -T-U -V-Z -a-a -b-b -c-c -d-d -e-e -f-f -g-h -i-i -j-l -m-m -n-n -o-o -p-p -q-r -s-s -t-t -u-v -w-w -x-x -y-z -

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIconstructors.html b/src/tools/docbook/libxml2/doc/APIconstructors.html deleted file mode 100644 index 9e91cfa491..0000000000 --- a/src/tools/docbook/libxml2/doc/APIconstructors.html +++ /dev/null @@ -1,572 +0,0 @@ - - -List of constructors for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

List of constructors for libxml2

Developer Menu
API Indexes
Related links

Type const htmlElemDesc *:

htmlTagLookup
-

Type const htmlEntityDesc *:

htmlEntityLookup
-htmlEntityValueLookup
-htmlParseEntityRef
-

Type const xmlChar *:

getPublicId
-getSystemId
-htmlGetMetaEncoding
-namePop
-xmlBufferContent
-xmlCatalogGetPublic
-xmlCatalogGetSystem
-xmlDictExists
-xmlDictLookup
-xmlDictQLookup
-xmlEncodeEntities
-xmlParseAttribute
-xmlParseEncodingDecl
-xmlParseName
-xmlParsePITarget
-xmlParseStartTag
-xmlSAX2GetPublicId
-xmlSAX2GetSystemId
-xmlSchemaValueGetAsString
-xmlSplitQName3
-xmlStrcasestr
-xmlStrchr
-xmlStrstr
-xmlTextReaderConstBaseUri
-xmlTextReaderConstEncoding
-xmlTextReaderConstLocalName
-xmlTextReaderConstName
-xmlTextReaderConstNamespaceUri
-xmlTextReaderConstPrefix
-xmlTextReaderConstString
-xmlTextReaderConstValue
-xmlTextReaderConstXmlLang
-xmlTextReaderConstXmlVersion
-xmlUTF8Strpos
-xmlXPathNsLookup
-

Type const xmlParserNodeInfo *:

xmlParserFindNodeInfo
-

Type docbDocPtr:

docbParseDoc
-docbParseFile
-docbSAXParseDoc
-docbSAXParseFile
-

Type docbParserCtxtPtr:

docbCreateFileParserCtxt
-docbCreatePushParserCtxt
-

Type double:

xmlXPathCastBooleanToNumber
-xmlXPathCastNodeSetToNumber
-xmlXPathCastNodeToNumber
-xmlXPathCastStringToNumber
-xmlXPathCastToNumber
-xmlXPathPopNumber
-xmlXPathStringEvalNumber
-

Type htmlDocPtr:

htmlCtxtReadDoc
-htmlCtxtReadFd
-htmlCtxtReadFile
-htmlCtxtReadIO
-htmlCtxtReadMemory
-htmlNewDoc
-htmlNewDocNoDtD
-htmlParseDoc
-htmlParseFile
-htmlReadDoc
-htmlReadFd
-htmlReadFile
-htmlReadIO
-htmlReadMemory
-htmlSAXParseDoc
-htmlSAXParseFile
-

Type htmlParserCtxtPtr:

htmlCreateFileParserCtxt
-htmlCreateMemoryParserCtxt
-htmlCreatePushParserCtxt
-

Type htmlStatus:

htmlAttrAllowed
-htmlElementStatusHere
-htmlNodeStatus
-

Type long:

xmlByteConsumed
-xmlGetLineNo
-xmlSaveDoc
-xmlSaveTree
-xmlTextReaderByteConsumed
-xmlXPathOrderDocElems
-

Type unsigned long:

xmlParserFindNodeInfoIndex
-xmlSchemaGetFacetValueAsULong
-

Type void *:

xmlCatalogAddLocal
-xmlFileOpen
-xmlHashCopier
-xmlHashLookup
-xmlHashLookup2
-xmlHashLookup3
-xmlHashQLookup
-xmlHashQLookup2
-xmlHashQLookup3
-xmlIOFTPOpen
-xmlIOHTTPOpen
-xmlIOHTTPOpenW
-xmlInputOpenCallback
-xmlLinkGetData
-xmlListReverseSearch
-xmlListSearch
-xmlMallocAtomicLoc
-xmlMallocFunc
-xmlMallocLoc
-xmlMemMalloc
-xmlMemRealloc
-xmlNanoFTPConnectTo
-xmlNanoFTPNewCtxt
-xmlNanoFTPOpen
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-xmlOutputOpenCallback
-xmlReallocFunc
-xmlReallocLoc
-xmlXPathPopExternal
-

Type xlinkHandlerPtr:

xlinkGetDefaultHandler
-

Type xlinkNodeDetectFunc:

xlinkGetDefaultDetect
-

Type xlinkType:

xlinkIsLink
-

Type xmlAttrPtr:

xmlCopyProp
-xmlCopyPropList
-xmlGetID
-xmlHasNsProp
-xmlHasProp
-xmlNewDocProp
-xmlNewNsProp
-xmlNewNsPropEatName
-xmlNewProp
-xmlSetNsProp
-xmlSetProp
-

Type xmlAttributePtr:

xmlAddAttributeDecl
-xmlGetDtdAttrDesc
-xmlGetDtdQAttrDesc
-

Type xmlAttributeTablePtr:

xmlCopyAttributeTable
-

Type xmlAutomataPtr:

xmlNewAutomata
-

Type xmlAutomataStatePtr:

xmlAutomataGetInitState
-xmlAutomataNewAllTrans
-xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewCountedTrans
-xmlAutomataNewCounterTrans
-xmlAutomataNewEpsilon
-xmlAutomataNewNegTrans
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlAutomataNewState
-xmlAutomataNewTransition
-xmlAutomataNewTransition2
-

Type xmlBufferAllocationScheme:

xmlGetBufferAllocationScheme
-xmlThrDefBufferAllocScheme
-

Type xmlBufferPtr:

xmlBufferCreate
-xmlBufferCreateSize
-xmlBufferCreateStatic
-

Type xmlCatalogAllow:

xmlCatalogGetDefaults
-

Type xmlCatalogPrefer:

xmlCatalogSetDefaultPrefer
-

Type xmlCatalogPtr:

xmlLoadACatalog
-xmlLoadSGMLSuperCatalog
-xmlNewCatalog
-

Type xmlChar:

xmlPopInput
-

Type xmlChar *:

xmlACatalogResolve
-xmlACatalogResolvePublic
-xmlACatalogResolveSystem
-xmlACatalogResolveURI
-xmlBuildQName
-xmlBuildRelativeURI
-xmlBuildURI
-xmlCanonicPath
-xmlCatalogLocalResolve
-xmlCatalogLocalResolveURI
-xmlCatalogResolve
-xmlCatalogResolvePublic
-xmlCatalogResolveSystem
-xmlCatalogResolveURI
-xmlCharStrdup
-xmlCharStrndup
-xmlDecodeEntities
-xmlEncodeEntitiesReentrant
-xmlEncodeSpecialChars
-xmlGetNoNsProp
-xmlGetNodePath
-xmlGetNsProp
-xmlGetProp
-xmlNamespaceParseNCName
-xmlNamespaceParseNSDef
-xmlNamespaceParseQName
-xmlNodeGetBase
-xmlNodeGetContent
-xmlNodeGetLang
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlNormalizeWindowsPath
-xmlParseAttValue
-xmlParseEncName
-xmlParseEntityValue
-xmlParseExternalID
-xmlParseNmtoken
-xmlParsePubidLiteral
-xmlParseQuotedString
-xmlParseSystemLiteral
-xmlParseVersionInfo
-xmlParseVersionNum
-xmlSaveUri
-xmlScanName
-xmlSchemaCollapseString
-xmlSchemaWhiteSpaceReplace
-xmlSplitQName
-xmlSplitQName2
-xmlStrcat
-xmlStrdup
-xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-xmlStrncat
-xmlStrncatNew
-xmlStrndup
-xmlStrsub
-xmlTextReaderBaseUri
-xmlTextReaderGetAttribute
-xmlTextReaderGetAttributeNo
-xmlTextReaderGetAttributeNs
-xmlTextReaderLocalName
-xmlTextReaderLocatorBaseURI
-xmlTextReaderLookupNamespace
-xmlTextReaderName
-xmlTextReaderNamespaceUri
-xmlTextReaderPrefix
-xmlTextReaderReadInnerXml
-xmlTextReaderReadOuterXml
-xmlTextReaderReadString
-xmlTextReaderValue
-xmlTextReaderXmlLang
-xmlURIEscape
-xmlURIEscapeStr
-xmlUTF8Strndup
-xmlUTF8Strsub
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-xmlXPathCastBooleanToString
-xmlXPathCastNodeSetToString
-xmlXPathCastNodeToString
-xmlXPathCastNumberToString
-xmlXPathCastToString
-xmlXPathParseNCName
-xmlXPathParseName
-xmlXPathPopString
-

Type xmlCharEncoding:

xmlDetectCharEncoding
-xmlParseCharEncoding
-

Type xmlCharEncodingHandlerPtr:

xmlFindCharEncodingHandler
-xmlGetCharEncodingHandler
-xmlNewCharEncodingHandler
-

Type xmlDOMWrapCtxtPtr:

xmlDOMWrapNewCtxt
-

Type xmlDeregisterNodeFunc:

xmlDeregisterNodeDefault
-xmlThrDefDeregisterNodeDefault
-

Type xmlDictPtr:

xmlDictCreate
-xmlDictCreateSub
-

Type xmlDocPtr:

xmlCopyDoc
-xmlCtxtReadDoc
-xmlCtxtReadFd
-xmlCtxtReadFile
-xmlCtxtReadIO
-xmlCtxtReadMemory
-xmlNewDoc
-xmlParseCatalogFile
-xmlParseDoc
-xmlParseEntity
-xmlParseFile
-xmlParseMemory
-xmlReadDoc
-xmlReadFd
-xmlReadFile
-xmlReadIO
-xmlReadMemory
-xmlRecoverDoc
-xmlRecoverFile
-xmlRecoverMemory
-xmlSAXParseDoc
-xmlSAXParseEntity
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-xmlTextReaderCurrentDoc
-

Type xmlDtdPtr:

xmlCopyDtd
-xmlCreateIntSubset
-xmlGetIntSubset
-xmlIOParseDTD
-xmlNewDtd
-xmlParseDTD
-xmlSAXParseDTD
-

Type xmlElementContentPtr:

xmlCopyDocElementContent
-xmlCopyElementContent
-xmlNewDocElementContent
-xmlNewElementContent
-xmlParseElementChildrenContentDecl
-xmlParseElementMixedContentDecl
-

Type xmlElementPtr:

xmlAddElementDecl
-xmlGetDtdElementDesc
-xmlGetDtdQElementDesc
-

Type xmlElementTablePtr:

xmlCopyElementTable
-

Type xmlEntitiesTablePtr:

xmlCopyEntitiesTable
-xmlCreateEntitiesTable
-

Type xmlEntityPtr:

getEntity
-getEntitySAXFunc
-getParameterEntity
-getParameterEntitySAXFunc
-xmlAddDocEntity
-xmlAddDtdEntity
-xmlGetDocEntity
-xmlGetDtdEntity
-xmlGetParameterEntity
-xmlGetPredefinedEntity
-xmlParseEntityRef
-xmlSAX2GetEntity
-xmlSAX2GetParameterEntity
-

Type xmlEnumerationPtr:

xmlCopyEnumeration
-xmlCreateEnumeration
-xmlParseEnumerationType
-xmlParseNotationType
-

Type xmlErrorPtr:

xmlCtxtGetLastError
-xmlGetLastError
-

Type xmlExpCtxtPtr:

xmlExpNewCtxt
-

Type xmlExpNodePtr:

xmlExpExpDerive
-xmlExpNewAtom
-xmlExpNewOr
-xmlExpNewRange
-xmlExpNewSeq
-xmlExpParse
-xmlExpStringDerive
-

Type xmlExternalEntityLoader:

xmlGetExternalEntityLoader
-

Type xmlGlobalStatePtr:

xmlGetGlobalState
-

Type xmlHashTablePtr:

xmlHashCopy
-xmlHashCreate
-xmlHashCreateDict
-

Type xmlIDPtr:

xmlAddID
-

Type xmlLinkPtr:

xmlListEnd
-xmlListFront
-

Type xmlListPtr:

xmlGetRefs
-xmlListCreate
-xmlListDup
-

Type xmlLocationSetPtr:

xmlXPtrLocationSetCreate
-xmlXPtrLocationSetMerge
-

Type xmlModulePtr:

xmlModuleOpen
-

Type xmlMutexPtr:

xmlNewMutex
-

Type xmlNodePtr:

nodePop
-xmlAddChild
-xmlAddChildList
-xmlAddNextSibling
-xmlAddPrevSibling
-xmlAddSibling
-xmlCopyNode
-xmlCopyNodeList
-xmlDocCopyNode
-xmlDocCopyNodeList
-xmlDocGetRootElement
-xmlDocSetRootElement
-xmlGetLastChild
-xmlNewCDataBlock
-xmlNewCharRef
-xmlNewChild
-xmlNewComment
-xmlNewDocComment
-xmlNewDocFragment
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlNewDocPI
-xmlNewDocRawNode
-xmlNewDocText
-xmlNewDocTextLen
-xmlNewNode
-xmlNewNodeEatName
-xmlNewPI
-xmlNewReference
-xmlNewText
-xmlNewTextChild
-xmlNewTextLen
-xmlReplaceNode
-xmlStringGetNodeList
-xmlStringLenGetNodeList
-xmlTextMerge
-xmlTextReaderCurrentNode
-xmlTextReaderExpand
-xmlTextReaderPreserve
-xmlXPathNextAncestor
-xmlXPathNextAncestorOrSelf
-xmlXPathNextAttribute
-xmlXPathNextChild
-xmlXPathNextDescendant
-xmlXPathNextDescendantOrSelf
-xmlXPathNextFollowing
-xmlXPathNextFollowingSibling
-xmlXPathNextNamespace
-xmlXPathNextParent
-xmlXPathNextPreceding
-xmlXPathNextPrecedingSibling
-xmlXPathNextSelf
-xmlXPtrBuildNodeList
-

Type xmlNodeSetPtr:

xmlXPathDifference
-xmlXPathDistinct
-xmlXPathDistinctSorted
-xmlXPathIntersection
-xmlXPathLeading
-xmlXPathLeadingSorted
-xmlXPathNodeLeading
-xmlXPathNodeLeadingSorted
-xmlXPathNodeSetCreate
-xmlXPathNodeSetMerge
-xmlXPathNodeTrailing
-xmlXPathNodeTrailingSorted
-xmlXPathPopNodeSet
-xmlXPathTrailing
-xmlXPathTrailingSorted
-

Type xmlNotationPtr:

xmlAddNotationDecl
-xmlGetDtdNotationDesc
-

Type xmlNotationTablePtr:

xmlCopyNotationTable
-

Type xmlNsPtr:

getNamespace
-xmlCopyNamespace
-xmlCopyNamespaceList
-xmlNewGlobalNs
-xmlNewNs
-xmlSearchNs
-xmlSearchNsByHref
-

Type xmlNsPtr *:

xmlGetNsList
-

Type xmlOutputBufferCreateFilenameFunc:

xmlOutputBufferCreateFilenameDefault
-xmlThrDefOutputBufferCreateFilenameDefault
-

Type xmlOutputBufferPtr:

xmlAllocOutputBuffer
-xmlOutputBufferCreateBuffer
-xmlOutputBufferCreateFd
-xmlOutputBufferCreateFile
-xmlOutputBufferCreateFilename
-xmlOutputBufferCreateFilenameFunc
-xmlOutputBufferCreateIO
-

Type xmlParserCtxtPtr:

xmlCreateDocParserCtxt
-xmlCreateEntityParserCtxt
-xmlCreateFileParserCtxt
-xmlCreateIOParserCtxt
-xmlCreateMemoryParserCtxt
-xmlCreatePushParserCtxt
-xmlCreateURLParserCtxt
-xmlNewParserCtxt
-

Type xmlParserErrors:

xmlParseInNodeContext
-

Type xmlParserInputBufferCreateFilenameFunc:

xmlParserInputBufferCreateFilenameDefault
-xmlThrDefParserInputBufferCreateFilenameDefault
-

Type xmlParserInputBufferPtr:

xmlAllocParserInputBuffer
-xmlParserInputBufferCreateFd
-xmlParserInputBufferCreateFile
-xmlParserInputBufferCreateFilename
-xmlParserInputBufferCreateFilenameFunc
-xmlParserInputBufferCreateIO
-xmlParserInputBufferCreateMem
-xmlParserInputBufferCreateStatic
-xmlTextReaderGetRemainder
-

Type xmlParserInputPtr:

inputPop
-resolveEntity
-resolveEntitySAXFunc
-xmlCheckHTTPInput
-xmlExternalEntityLoader
-xmlLoadExternalEntity
-xmlNewEntityInputStream
-xmlNewIOInputStream
-xmlNewInputFromFile
-xmlNewInputStream
-xmlNewStringInputStream
-xmlNoNetExternalEntityLoader
-xmlSAX2ResolveEntity
-

Type xmlPatternPtr:

xmlPatterncompile
-

Type xmlRMutexPtr:

xmlNewRMutex
-

Type xmlRefPtr:

xmlAddRef
-

Type xmlRegExecCtxtPtr:

xmlRegNewExecCtxt
-

Type xmlRegexpPtr:

xmlAutomataCompile
-xmlRegexpCompile
-

Type xmlRegisterNodeFunc:

xmlRegisterNodeDefault
-xmlThrDefRegisterNodeDefault
-

Type xmlRelaxNGParserCtxtPtr:

xmlRelaxNGNewDocParserCtxt
-xmlRelaxNGNewMemParserCtxt
-xmlRelaxNGNewParserCtxt
-

Type xmlRelaxNGPtr:

xmlRelaxNGParse
-

Type xmlRelaxNGValidCtxtPtr:

xmlRelaxNGNewValidCtxt
-

Type xmlSaveCtxtPtr:

xmlSaveToBuffer
-xmlSaveToFd
-xmlSaveToFilename
-xmlSaveToIO
-

Type xmlSchemaFacetPtr:

xmlSchemaNewFacet
-

Type xmlSchemaParserCtxtPtr:

xmlSchemaNewDocParserCtxt
-xmlSchemaNewMemParserCtxt
-xmlSchemaNewParserCtxt
-

Type xmlSchemaPtr:

xmlSchemaParse
-

Type xmlSchemaSAXPlugPtr:

xmlSchemaSAXPlug
-

Type xmlSchemaTypePtr:

xmlSchemaGetBuiltInListSimpleTypeItemType
-xmlSchemaGetBuiltInType
-xmlSchemaGetPredefinedType
-

Type xmlSchemaValPtr:

xmlSchemaCopyValue
-xmlSchemaNewNOTATIONValue
-xmlSchemaNewQNameValue
-xmlSchemaNewStringValue
-xmlSchemaValueGetNext
-

Type xmlSchemaValType:

xmlSchemaGetValType
-

Type xmlSchemaValidCtxtPtr:

xmlSchemaNewValidCtxt
-

Type xmlSchematronParserCtxtPtr:

xmlSchematronNewDocParserCtxt
-xmlSchematronNewMemParserCtxt
-xmlSchematronNewParserCtxt
-

Type xmlSchematronPtr:

xmlSchematronParse
-

Type xmlSchematronValidCtxtPtr:

xmlSchematronNewValidCtxt
-

Type xmlStreamCtxtPtr:

xmlPatternGetStreamCtxt
-

Type xmlTextReaderPtr:

xmlNewTextReader
-xmlNewTextReaderFilename
-xmlReaderForDoc
-xmlReaderForFd
-xmlReaderForFile
-xmlReaderForIO
-xmlReaderForMemory
-xmlReaderWalker
-

Type xmlTextWriterPtr:

xmlNewTextWriter
-xmlNewTextWriterDoc
-xmlNewTextWriterFilename
-xmlNewTextWriterMemory
-xmlNewTextWriterPushParser
-xmlNewTextWriterTree
-

Type xmlURIPtr:

xmlCreateURI
-xmlParseURI
-xmlParseURIRaw
-

Type xmlValidCtxtPtr:

xmlNewValidCtxt
-

Type xmlXIncludeCtxtPtr:

xmlXIncludeNewContext
-

Type xmlXPathCompExprPtr:

xmlXPathCompile
-xmlXPathCtxtCompile
-

Type xmlXPathContextPtr:

xmlXPathNewContext
-xmlXPtrNewContext
-

Type xmlXPathFunction:

xmlXPathFuncLookupFunc
-xmlXPathFunctionLookup
-xmlXPathFunctionLookupNS
-

Type xmlXPathObjectPtr:

valuePop
-xmlXPathAxisFunc
-xmlXPathCompiledEval
-xmlXPathConvertBoolean
-xmlXPathConvertNumber
-xmlXPathConvertString
-xmlXPathEval
-xmlXPathEvalExpression
-xmlXPathNewBoolean
-xmlXPathNewCString
-xmlXPathNewFloat
-xmlXPathNewNodeSet
-xmlXPathNewNodeSetList
-xmlXPathNewString
-xmlXPathNewValueTree
-xmlXPathObjectCopy
-xmlXPathVariableLookup
-xmlXPathVariableLookupFunc
-xmlXPathVariableLookupNS
-xmlXPathWrapCString
-xmlXPathWrapExternal
-xmlXPathWrapNodeSet
-xmlXPathWrapString
-xmlXPtrEval
-xmlXPtrNewCollapsedRange
-xmlXPtrNewLocationSetNodeSet
-xmlXPtrNewLocationSetNodes
-xmlXPtrNewRange
-xmlXPtrNewRangeNodeObject
-xmlXPtrNewRangeNodePoint
-xmlXPtrNewRangeNodes
-xmlXPtrNewRangePointNode
-xmlXPtrNewRangePoints
-xmlXPtrWrapLocationSet
-

Type xmlXPathParserContextPtr:

xmlXPathNewParserContext
-

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIfiles.html b/src/tools/docbook/libxml2/doc/APIfiles.html deleted file mode 100644 index 2a5af4b6c9..0000000000 --- a/src/tools/docbook/libxml2/doc/APIfiles.html +++ /dev/null @@ -1,3491 +0,0 @@ - - -List of Symbols per Module for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

List of Symbols per Module for libxml2

Developer Menu
API Indexes
Related links

Module DOCBparser:

docbCreateFileParserCtxt
-docbCreatePushParserCtxt
-docbDocPtr
-docbEncodeEntities
-docbFreeParserCtxt
-docbParseChunk
-docbParseDoc
-docbParseDocument
-docbParseFile
-docbParserCtxt
-docbParserCtxtPtr
-docbParserInput
-docbParserInputPtr
-docbSAXHandler
-docbSAXHandlerPtr
-docbSAXParseDoc
-docbSAXParseFile
-

Module HTMLparser:

HTML_DEPRECATED
-HTML_INVALID
-HTML_NA
-HTML_PARSE_COMPACT
-HTML_PARSE_NOBLANKS
-HTML_PARSE_NOERROR
-HTML_PARSE_NONET
-HTML_PARSE_NOWARNING
-HTML_PARSE_PEDANTIC
-HTML_PARSE_RECOVER
-HTML_REQUIRED
-HTML_VALID
-UTF8ToHtml
-_htmlElemDesc
-_htmlEntityDesc
-htmlAttrAllowed
-htmlAutoCloseTag
-htmlCreateMemoryParserCtxt
-htmlCreatePushParserCtxt
-htmlCtxtReadDoc
-htmlCtxtReadFd
-htmlCtxtReadFile
-htmlCtxtReadIO
-htmlCtxtReadMemory
-htmlCtxtReset
-htmlCtxtUseOptions
-htmlDefaultSubelement
-htmlDocPtr
-htmlElemDesc
-htmlElemDescPtr
-htmlElementAllowedHere
-htmlElementAllowedHereDesc
-htmlElementStatusHere
-htmlEncodeEntities
-htmlEntityDesc
-htmlEntityDescPtr
-htmlEntityLookup
-htmlEntityValueLookup
-htmlFreeParserCtxt
-htmlHandleOmittedElem
-htmlIsAutoClosed
-htmlIsScriptAttribute
-htmlNodePtr
-htmlNodeStatus
-htmlParseCharRef
-htmlParseChunk
-htmlParseDoc
-htmlParseDocument
-htmlParseElement
-htmlParseEntityRef
-htmlParseFile
-htmlParserCtxt
-htmlParserCtxtPtr
-htmlParserInput
-htmlParserInputPtr
-htmlParserNodeInfo
-htmlParserOption
-htmlReadDoc
-htmlReadFd
-htmlReadFile
-htmlReadIO
-htmlReadMemory
-htmlRequiredAttrs
-htmlSAXHandler
-htmlSAXHandlerPtr
-htmlSAXParseDoc
-htmlSAXParseFile
-htmlStatus
-htmlTagLookup
-

Module HTMLtree:

HTML_COMMENT_NODE
-HTML_ENTITY_REF_NODE
-HTML_PI_NODE
-HTML_PRESERVE_NODE
-HTML_TEXT_NODE
-htmlDocContentDumpFormatOutput
-htmlDocContentDumpOutput
-htmlDocDump
-htmlDocDumpMemory
-htmlDocDumpMemoryFormat
-htmlGetMetaEncoding
-htmlIsBooleanAttr
-htmlNewDoc
-htmlNewDocNoDtD
-htmlNodeDump
-htmlNodeDumpFile
-htmlNodeDumpFileFormat
-htmlNodeDumpFormatOutput
-htmlNodeDumpOutput
-htmlSaveFile
-htmlSaveFileEnc
-htmlSaveFileFormat
-htmlSetMetaEncoding
-

Module SAX:

attribute
-attributeDecl
-cdataBlock
-characters
-checkNamespace
-comment
-elementDecl
-endDocument
-endElement
-entityDecl
-externalSubset
-getColumnNumber
-getEntity
-getLineNumber
-getNamespace
-getParameterEntity
-getPublicId
-getSystemId
-globalNamespace
-hasExternalSubset
-hasInternalSubset
-ignorableWhitespace
-initdocbDefaultSAXHandler
-inithtmlDefaultSAXHandler
-initxmlDefaultSAXHandler
-internalSubset
-isStandalone
-namespaceDecl
-notationDecl
-processingInstruction
-reference
-resolveEntity
-setDocumentLocator
-setNamespace
-startDocument
-startElement
-unparsedEntityDecl
-

Module SAX2:

docbDefaultSAXHandlerInit
-htmlDefaultSAXHandlerInit
-xmlDefaultSAXHandlerInit
-xmlSAX2AttributeDecl
-xmlSAX2CDataBlock
-xmlSAX2Characters
-xmlSAX2Comment
-xmlSAX2ElementDecl
-xmlSAX2EndDocument
-xmlSAX2EndElement
-xmlSAX2EndElementNs
-xmlSAX2EntityDecl
-xmlSAX2ExternalSubset
-xmlSAX2GetColumnNumber
-xmlSAX2GetEntity
-xmlSAX2GetLineNumber
-xmlSAX2GetParameterEntity
-xmlSAX2GetPublicId
-xmlSAX2GetSystemId
-xmlSAX2HasExternalSubset
-xmlSAX2HasInternalSubset
-xmlSAX2IgnorableWhitespace
-xmlSAX2InitDefaultSAXHandler
-xmlSAX2InitDocbDefaultSAXHandler
-xmlSAX2InitHtmlDefaultSAXHandler
-xmlSAX2InternalSubset
-xmlSAX2IsStandalone
-xmlSAX2NotationDecl
-xmlSAX2ProcessingInstruction
-xmlSAX2Reference
-xmlSAX2ResolveEntity
-xmlSAX2SetDocumentLocator
-xmlSAX2StartDocument
-xmlSAX2StartElement
-xmlSAX2StartElementNs
-xmlSAX2UnparsedEntityDecl
-xmlSAXDefaultVersion
-xmlSAXVersion
-

Module c14n:

xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlC14NIsVisibleCallback
-

Module catalog:

XML_CATALOGS_NAMESPACE
-XML_CATALOG_PI
-XML_CATA_ALLOW_ALL
-XML_CATA_ALLOW_DOCUMENT
-XML_CATA_ALLOW_GLOBAL
-XML_CATA_ALLOW_NONE
-XML_CATA_PREFER_NONE
-XML_CATA_PREFER_PUBLIC
-XML_CATA_PREFER_SYSTEM
-xmlACatalogAdd
-xmlACatalogDump
-xmlACatalogRemove
-xmlACatalogResolve
-xmlACatalogResolvePublic
-xmlACatalogResolveSystem
-xmlACatalogResolveURI
-xmlCatalog
-xmlCatalogAdd
-xmlCatalogAddLocal
-xmlCatalogAllow
-xmlCatalogCleanup
-xmlCatalogConvert
-xmlCatalogDump
-xmlCatalogFreeLocal
-xmlCatalogGetDefaults
-xmlCatalogGetPublic
-xmlCatalogGetSystem
-xmlCatalogIsEmpty
-xmlCatalogLocalResolve
-xmlCatalogLocalResolveURI
-xmlCatalogPrefer
-xmlCatalogPtr
-xmlCatalogRemove
-xmlCatalogResolve
-xmlCatalogResolvePublic
-xmlCatalogResolveSystem
-xmlCatalogResolveURI
-xmlCatalogSetDebug
-xmlCatalogSetDefaultPrefer
-xmlCatalogSetDefaults
-xmlConvertSGMLCatalog
-xmlFreeCatalog
-xmlInitializeCatalog
-xmlLoadACatalog
-xmlLoadCatalog
-xmlLoadCatalogs
-xmlLoadSGMLSuperCatalog
-xmlNewCatalog
-xmlParseCatalogFile
-

Module chvalid:

_xmlChLRange
-_xmlChRangeGroup
-_xmlChSRange
-xmlChLRange
-xmlChLRangePtr
-xmlChRangeGroup
-xmlChRangeGroupPtr
-xmlChSRange
-xmlChSRangePtr
-xmlCharInRange
-xmlIsBaseChar
-xmlIsBaseCharGroup
-xmlIsBaseCharQ
-xmlIsBaseChar_ch
-xmlIsBlank
-xmlIsBlankQ
-xmlIsBlank_ch
-xmlIsChar
-xmlIsCharGroup
-xmlIsCharQ
-xmlIsChar_ch
-xmlIsCombining
-xmlIsCombiningGroup
-xmlIsCombiningQ
-xmlIsDigit
-xmlIsDigitGroup
-xmlIsDigitQ
-xmlIsDigit_ch
-xmlIsExtender
-xmlIsExtenderGroup
-xmlIsExtenderQ
-xmlIsExtender_ch
-xmlIsIdeographic
-xmlIsIdeographicGroup
-xmlIsIdeographicQ
-xmlIsPubidChar
-xmlIsPubidCharQ
-xmlIsPubidChar_ch
-xmlIsPubidChar_tab
-

Module debugXML:

_xmlShellCtxt
-xmlBoolToText
-xmlDebugCheckDocument
-xmlDebugDumpAttr
-xmlDebugDumpAttrList
-xmlDebugDumpDTD
-xmlDebugDumpDocument
-xmlDebugDumpDocumentHead
-xmlDebugDumpEntities
-xmlDebugDumpNode
-xmlDebugDumpNodeList
-xmlDebugDumpOneNode
-xmlDebugDumpString
-xmlLsCountNode
-xmlLsOneNode
-xmlShell
-xmlShellBase
-xmlShellCat
-xmlShellCmd
-xmlShellCtxt
-xmlShellCtxtPtr
-xmlShellDir
-xmlShellDu
-xmlShellList
-xmlShellLoad
-xmlShellPrintNode
-xmlShellPrintXPathError
-xmlShellPrintXPathResult
-xmlShellPwd
-xmlShellReadlineFunc
-xmlShellSave
-xmlShellValidate
-xmlShellWrite
-

Module dict:

xmlDict
-xmlDictCleanup
-xmlDictCreate
-xmlDictCreateSub
-xmlDictExists
-xmlDictFree
-xmlDictLookup
-xmlDictOwns
-xmlDictPtr
-xmlDictQLookup
-xmlDictReference
-xmlDictSize
-

Module encoding:

UTF8Toisolat1
-XML_CHAR_ENCODING_2022_JP
-XML_CHAR_ENCODING_8859_1
-XML_CHAR_ENCODING_8859_2
-XML_CHAR_ENCODING_8859_3
-XML_CHAR_ENCODING_8859_4
-XML_CHAR_ENCODING_8859_5
-XML_CHAR_ENCODING_8859_6
-XML_CHAR_ENCODING_8859_7
-XML_CHAR_ENCODING_8859_8
-XML_CHAR_ENCODING_8859_9
-XML_CHAR_ENCODING_ASCII
-XML_CHAR_ENCODING_EBCDIC
-XML_CHAR_ENCODING_ERROR
-XML_CHAR_ENCODING_EUC_JP
-XML_CHAR_ENCODING_NONE
-XML_CHAR_ENCODING_SHIFT_JIS
-XML_CHAR_ENCODING_UCS2
-XML_CHAR_ENCODING_UCS4BE
-XML_CHAR_ENCODING_UCS4LE
-XML_CHAR_ENCODING_UCS4_2143
-XML_CHAR_ENCODING_UCS4_3412
-XML_CHAR_ENCODING_UTF16BE
-XML_CHAR_ENCODING_UTF16LE
-XML_CHAR_ENCODING_UTF8
-_xmlCharEncodingHandler
-isolat1ToUTF8
-xmlAddEncodingAlias
-xmlCharEncCloseFunc
-xmlCharEncFirstLine
-xmlCharEncInFunc
-xmlCharEncOutFunc
-xmlCharEncoding
-xmlCharEncodingHandler
-xmlCharEncodingHandlerPtr
-xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-xmlCleanupCharEncodingHandlers
-xmlCleanupEncodingAliases
-xmlDelEncodingAlias
-xmlDetectCharEncoding
-xmlFindCharEncodingHandler
-xmlGetCharEncodingHandler
-xmlGetCharEncodingName
-xmlGetEncodingAlias
-xmlInitCharEncodingHandlers
-xmlNewCharEncodingHandler
-xmlParseCharEncoding
-xmlRegisterCharEncodingHandler
-

Module entities:

XML_EXTERNAL_GENERAL_PARSED_ENTITY
-XML_EXTERNAL_GENERAL_UNPARSED_ENTITY
-XML_EXTERNAL_PARAMETER_ENTITY
-XML_INTERNAL_GENERAL_ENTITY
-XML_INTERNAL_PARAMETER_ENTITY
-XML_INTERNAL_PREDEFINED_ENTITY
-_xmlEntity
-xmlAddDocEntity
-xmlAddDtdEntity
-xmlCleanupPredefinedEntities
-xmlCopyEntitiesTable
-xmlCreateEntitiesTable
-xmlDumpEntitiesTable
-xmlDumpEntityDecl
-xmlEncodeEntities
-xmlEncodeEntitiesReentrant
-xmlEncodeSpecialChars
-xmlEntitiesTable
-xmlEntitiesTablePtr
-xmlEntityType
-xmlFreeEntitiesTable
-xmlGetDocEntity
-xmlGetDtdEntity
-xmlGetParameterEntity
-xmlGetPredefinedEntity
-xmlInitializePredefinedEntities
-

Module globals:

_xmlGlobalState
-docbDefaultSAXHandler
-htmlDefaultSAXHandler
-oldXMLWDcompatibility
-xmlBufferAllocScheme
-xmlCleanupGlobals
-xmlDefaultBufferSize
-xmlDefaultSAXHandler
-xmlDefaultSAXLocator
-xmlDeregisterNodeDefault
-xmlDeregisterNodeDefaultValue
-xmlDeregisterNodeFunc
-xmlDoValidityCheckingDefaultValue
-xmlFree
-xmlGenericError
-xmlGenericErrorContext
-xmlGetWarningsDefaultValue
-xmlGlobalState
-xmlGlobalStatePtr
-xmlIndentTreeOutput
-xmlInitGlobals
-xmlInitializeGlobalState
-xmlKeepBlanksDefaultValue
-xmlLastError
-xmlLineNumbersDefaultValue
-xmlLoadExtDtdDefaultValue
-xmlMalloc
-xmlMallocAtomic
-xmlMemStrdup
-xmlOutputBufferCreateFilenameDefault
-xmlOutputBufferCreateFilenameFunc
-xmlOutputBufferCreateFilenameValue
-xmlParserDebugEntities
-xmlParserInputBufferCreateFilenameDefault
-xmlParserInputBufferCreateFilenameFunc
-xmlParserInputBufferCreateFilenameValue
-xmlParserVersion
-xmlPedanticParserDefaultValue
-xmlRealloc
-xmlRegisterNodeDefault
-xmlRegisterNodeDefaultValue
-xmlRegisterNodeFunc
-xmlSaveNoEmptyTags
-xmlStructuredError
-xmlSubstituteEntitiesDefaultValue
-xmlThrDefBufferAllocScheme
-xmlThrDefDefaultBufferSize
-xmlThrDefDeregisterNodeDefault
-xmlThrDefDoValidityCheckingDefaultValue
-xmlThrDefGetWarningsDefaultValue
-xmlThrDefIndentTreeOutput
-xmlThrDefKeepBlanksDefaultValue
-xmlThrDefLineNumbersDefaultValue
-xmlThrDefLoadExtDtdDefaultValue
-xmlThrDefOutputBufferCreateFilenameDefault
-xmlThrDefParserDebugEntities
-xmlThrDefParserInputBufferCreateFilenameDefault
-xmlThrDefPedanticParserDefaultValue
-xmlThrDefRegisterNodeDefault
-xmlThrDefSaveNoEmptyTags
-xmlThrDefSetGenericErrorFunc
-xmlThrDefSetStructuredErrorFunc
-xmlThrDefSubstituteEntitiesDefaultValue
-xmlThrDefTreeIndentString
-xmlTreeIndentString
-

Module hash:

XML_CAST_FPTR
-xmlHashAddEntry
-xmlHashAddEntry2
-xmlHashAddEntry3
-xmlHashCopier
-xmlHashCopy
-xmlHashCreate
-xmlHashCreateDict
-xmlHashDeallocator
-xmlHashFree
-xmlHashLookup
-xmlHashLookup2
-xmlHashLookup3
-xmlHashQLookup
-xmlHashQLookup2
-xmlHashQLookup3
-xmlHashRemoveEntry
-xmlHashRemoveEntry2
-xmlHashRemoveEntry3
-xmlHashScan
-xmlHashScan3
-xmlHashScanFull
-xmlHashScanFull3
-xmlHashScanner
-xmlHashScannerFull
-xmlHashSize
-xmlHashTable
-xmlHashTablePtr
-xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-

Module list:

xmlLink
-xmlLinkGetData
-xmlLinkPtr
-xmlList
-xmlListAppend
-xmlListClear
-xmlListCopy
-xmlListCreate
-xmlListDataCompare
-xmlListDeallocator
-xmlListDelete
-xmlListDup
-xmlListEmpty
-xmlListEnd
-xmlListFront
-xmlListInsert
-xmlListMerge
-xmlListPopBack
-xmlListPopFront
-xmlListPtr
-xmlListPushBack
-xmlListPushFront
-xmlListRemoveAll
-xmlListRemoveFirst
-xmlListRemoveLast
-xmlListReverse
-xmlListReverseSearch
-xmlListReverseWalk
-xmlListSearch
-xmlListSize
-xmlListSort
-xmlListWalk
-xmlListWalker
-

Module nanoftp:

ftpDataCallback
-ftpListCallback
-xmlNanoFTPCheckResponse
-xmlNanoFTPCleanup
-xmlNanoFTPClose
-xmlNanoFTPCloseConnection
-xmlNanoFTPConnect
-xmlNanoFTPConnectTo
-xmlNanoFTPCwd
-xmlNanoFTPDele
-xmlNanoFTPFreeCtxt
-xmlNanoFTPGet
-xmlNanoFTPGetConnection
-xmlNanoFTPGetResponse
-xmlNanoFTPGetSocket
-xmlNanoFTPInit
-xmlNanoFTPList
-xmlNanoFTPNewCtxt
-xmlNanoFTPOpen
-xmlNanoFTPProxy
-xmlNanoFTPQuit
-xmlNanoFTPRead
-xmlNanoFTPScanProxy
-xmlNanoFTPUpdateURL
-

Module nanohttp:

xmlNanoHTTPAuthHeader
-xmlNanoHTTPCleanup
-xmlNanoHTTPClose
-xmlNanoHTTPContentLength
-xmlNanoHTTPEncoding
-xmlNanoHTTPFetch
-xmlNanoHTTPInit
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlNanoHTTPMimeType
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-xmlNanoHTTPRead
-xmlNanoHTTPRedir
-xmlNanoHTTPReturnCode
-xmlNanoHTTPSave
-xmlNanoHTTPScanProxy
-

Module parser:

XML_COMPLETE_ATTRS
-XML_DEFAULT_VERSION
-XML_DETECT_IDS
-XML_PARSER_ATTRIBUTE_VALUE
-XML_PARSER_CDATA_SECTION
-XML_PARSER_COMMENT
-XML_PARSER_CONTENT
-XML_PARSER_DTD
-XML_PARSER_END_TAG
-XML_PARSER_ENTITY_DECL
-XML_PARSER_ENTITY_VALUE
-XML_PARSER_EOF
-XML_PARSER_EPILOG
-XML_PARSER_IGNORE
-XML_PARSER_MISC
-XML_PARSER_PI
-XML_PARSER_PROLOG
-XML_PARSER_PUBLIC_LITERAL
-XML_PARSER_START
-XML_PARSER_START_TAG
-XML_PARSER_SYSTEM_LITERAL
-XML_PARSE_COMPACT
-XML_PARSE_DOM
-XML_PARSE_DTDATTR
-XML_PARSE_DTDLOAD
-XML_PARSE_DTDVALID
-XML_PARSE_NOBLANKS
-XML_PARSE_NOCDATA
-XML_PARSE_NODICT
-XML_PARSE_NOENT
-XML_PARSE_NOERROR
-XML_PARSE_NONET
-XML_PARSE_NOWARNING
-XML_PARSE_NOXINCNODE
-XML_PARSE_NSCLEAN
-XML_PARSE_PEDANTIC
-XML_PARSE_PUSH_DOM
-XML_PARSE_PUSH_SAX
-XML_PARSE_READER
-XML_PARSE_RECOVER
-XML_PARSE_SAX
-XML_PARSE_SAX1
-XML_PARSE_UNKNOWN
-XML_PARSE_XINCLUDE
-XML_SAX2_MAGIC
-XML_SKIP_IDS
-XML_WITH_AUTOMATA
-XML_WITH_C14N
-XML_WITH_CATALOG
-XML_WITH_DEBUG
-XML_WITH_DEBUG_MEM
-XML_WITH_DEBUG_RUN
-XML_WITH_EXPR
-XML_WITH_FTP
-XML_WITH_HTML
-XML_WITH_HTTP
-XML_WITH_ICONV
-XML_WITH_ISO8859X
-XML_WITH_LEGACY
-XML_WITH_MODULES
-XML_WITH_NONE
-XML_WITH_OUTPUT
-XML_WITH_PATTERN
-XML_WITH_PUSH
-XML_WITH_READER
-XML_WITH_REGEXP
-XML_WITH_SAX1
-XML_WITH_SCHEMAS
-XML_WITH_SCHEMATRON
-XML_WITH_THREAD
-XML_WITH_TREE
-XML_WITH_UNICODE
-XML_WITH_VALID
-XML_WITH_WRITER
-XML_WITH_XINCLUDE
-XML_WITH_XPATH
-XML_WITH_XPTR
-_xmlParserCtxt
-_xmlParserInput
-_xmlParserNodeInfo
-_xmlParserNodeInfoSeq
-_xmlSAXHandler
-_xmlSAXHandlerV1
-_xmlSAXLocator
-attributeDeclSAXFunc
-attributeSAXFunc
-cdataBlockSAXFunc
-charactersSAXFunc
-commentSAXFunc
-elementDeclSAXFunc
-endDocumentSAXFunc
-endElementNsSAX2Func
-endElementSAXFunc
-entityDeclSAXFunc
-errorSAXFunc
-externalSubsetSAXFunc
-fatalErrorSAXFunc
-getEntitySAXFunc
-getParameterEntitySAXFunc
-hasExternalSubsetSAXFunc
-hasInternalSubsetSAXFunc
-ignorableWhitespaceSAXFunc
-internalSubsetSAXFunc
-isStandaloneSAXFunc
-notationDeclSAXFunc
-processingInstructionSAXFunc
-referenceSAXFunc
-resolveEntitySAXFunc
-setDocumentLocatorSAXFunc
-startDocumentSAXFunc
-startElementNsSAX2Func
-startElementSAXFunc
-unparsedEntityDeclSAXFunc
-warningSAXFunc
-xmlByteConsumed
-xmlCleanupParser
-xmlClearNodeInfoSeq
-xmlClearParserCtxt
-xmlCreateDocParserCtxt
-xmlCreateIOParserCtxt
-xmlCreatePushParserCtxt
-xmlCtxtReadDoc
-xmlCtxtReadFd
-xmlCtxtReadFile
-xmlCtxtReadIO
-xmlCtxtReadMemory
-xmlCtxtReset
-xmlCtxtResetPush
-xmlCtxtUseOptions
-xmlExternalEntityLoader
-xmlFeature
-xmlFreeParserCtxt
-xmlGetExternalEntityLoader
-xmlGetFeature
-xmlGetFeaturesList
-xmlHasFeature
-xmlIOParseDTD
-xmlInitNodeInfoSeq
-xmlInitParser
-xmlInitParserCtxt
-xmlKeepBlanksDefault
-xmlLineNumbersDefault
-xmlLoadExternalEntity
-xmlNewIOInputStream
-xmlNewParserCtxt
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseChunk
-xmlParseCtxtExternalEntity
-xmlParseDTD
-xmlParseDoc
-xmlParseDocument
-xmlParseEntity
-xmlParseExtParsedEnt
-xmlParseExternalEntity
-xmlParseFile
-xmlParseInNodeContext
-xmlParseMemory
-xmlParserAddNodeInfo
-xmlParserFindNodeInfo
-xmlParserFindNodeInfoIndex
-xmlParserInputDeallocate
-xmlParserInputGrow
-xmlParserInputRead
-xmlParserInputState
-xmlParserMode
-xmlParserNodeInfo
-xmlParserNodeInfoPtr
-xmlParserNodeInfoSeq
-xmlParserNodeInfoSeqPtr
-xmlParserOption
-xmlPedanticParserDefault
-xmlReadDoc
-xmlReadFd
-xmlReadFile
-xmlReadIO
-xmlReadMemory
-xmlRecoverDoc
-xmlRecoverFile
-xmlRecoverMemory
-xmlSAXHandlerV1
-xmlSAXHandlerV1Ptr
-xmlSAXParseDTD
-xmlSAXParseDoc
-xmlSAXParseEntity
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-xmlSAXUserParseFile
-xmlSAXUserParseMemory
-xmlSetExternalEntityLoader
-xmlSetFeature
-xmlSetupParserForBuffer
-xmlStopParser
-xmlSubstituteEntitiesDefault
-

Module parserInternals:

INPUT_CHUNK
-IS_ASCII_DIGIT
-IS_ASCII_LETTER
-IS_BASECHAR
-IS_BLANK
-IS_BLANK_CH
-IS_BYTE_CHAR
-IS_CHAR
-IS_CHAR_CH
-IS_COMBINING
-IS_COMBINING_CH
-IS_DIGIT
-IS_DIGIT_CH
-IS_EXTENDER
-IS_EXTENDER_CH
-IS_IDEOGRAPHIC
-IS_LETTER
-IS_LETTER_CH
-IS_PUBIDCHAR
-IS_PUBIDCHAR_CH
-MOVETO_ENDTAG
-MOVETO_STARTTAG
-SKIP_EOL
-XML_MAX_NAMELEN
-XML_SUBSTITUTE_BOTH
-XML_SUBSTITUTE_NONE
-XML_SUBSTITUTE_PEREF
-XML_SUBSTITUTE_REF
-htmlCreateFileParserCtxt
-htmlInitAutoClose
-inputPop
-inputPush
-namePop
-namePush
-nodePop
-nodePush
-xmlCheckLanguageID
-xmlCopyChar
-xmlCopyCharMultiByte
-xmlCreateEntityParserCtxt
-xmlCreateFileParserCtxt
-xmlCreateMemoryParserCtxt
-xmlCreateURLParserCtxt
-xmlCurrentChar
-xmlDecodeEntities
-xmlEntityReferenceFunc
-xmlErrMemory
-xmlFreeInputStream
-xmlHandleEntity
-xmlIsLetter
-xmlNamespaceParseNCName
-xmlNamespaceParseNSDef
-xmlNamespaceParseQName
-xmlNewEntityInputStream
-xmlNewInputFromFile
-xmlNewInputStream
-xmlNewStringInputStream
-xmlNextChar
-xmlParseAttValue
-xmlParseAttribute
-xmlParseAttributeListDecl
-xmlParseAttributeType
-xmlParseCDSect
-xmlParseCharData
-xmlParseCharRef
-xmlParseComment
-xmlParseContent
-xmlParseDefaultDecl
-xmlParseDocTypeDecl
-xmlParseElement
-xmlParseElementChildrenContentDecl
-xmlParseElementContentDecl
-xmlParseElementDecl
-xmlParseElementMixedContentDecl
-xmlParseEncName
-xmlParseEncodingDecl
-xmlParseEndTag
-xmlParseEntityDecl
-xmlParseEntityRef
-xmlParseEntityValue
-xmlParseEnumeratedType
-xmlParseEnumerationType
-xmlParseExternalID
-xmlParseExternalSubset
-xmlParseMarkupDecl
-xmlParseMisc
-xmlParseName
-xmlParseNamespace
-xmlParseNmtoken
-xmlParseNotationDecl
-xmlParseNotationType
-xmlParsePEReference
-xmlParsePI
-xmlParsePITarget
-xmlParsePubidLiteral
-xmlParseQuotedString
-xmlParseReference
-xmlParseSDDecl
-xmlParseStartTag
-xmlParseSystemLiteral
-xmlParseTextDecl
-xmlParseVersionInfo
-xmlParseVersionNum
-xmlParseXMLDecl
-xmlParserHandlePEReference
-xmlParserHandleReference
-xmlParserInputShrink
-xmlParserMaxDepth
-xmlPopInput
-xmlPushInput
-xmlScanName
-xmlSetEntityReferenceFunc
-xmlSkipBlankChars
-xmlSplitQName
-xmlStringComment
-xmlStringCurrentChar
-xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-xmlStringText
-xmlStringTextNoenc
-xmlSwitchEncoding
-xmlSwitchInputEncoding
-xmlSwitchToEncoding
-

Module pattern:

XML_PATTERN_DEFAULT
-XML_PATTERN_XPATH
-XML_PATTERN_XSFIELD
-XML_PATTERN_XSSEL
-xmlFreePattern
-xmlFreePatternList
-xmlFreeStreamCtxt
-xmlPattern
-xmlPatternFlags
-xmlPatternFromRoot
-xmlPatternGetStreamCtxt
-xmlPatternMatch
-xmlPatternMaxDepth
-xmlPatternMinDepth
-xmlPatternPtr
-xmlPatternStreamable
-xmlPatterncompile
-xmlStreamCtxt
-xmlStreamCtxtPtr
-xmlStreamPop
-xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-xmlStreamWantsAnyNode
-

Module relaxng:

XML_RELAXNGP_CRNG
-XML_RELAXNGP_FREE_DOC
-XML_RELAXNGP_NONE
-XML_RELAXNG_ERR_ATTREXTRANS
-XML_RELAXNG_ERR_ATTRNAME
-XML_RELAXNG_ERR_ATTRNONS
-XML_RELAXNG_ERR_ATTRVALID
-XML_RELAXNG_ERR_ATTRWRONGNS
-XML_RELAXNG_ERR_CONTENTVALID
-XML_RELAXNG_ERR_DATAELEM
-XML_RELAXNG_ERR_DATATYPE
-XML_RELAXNG_ERR_DUPID
-XML_RELAXNG_ERR_ELEMEXTRANS
-XML_RELAXNG_ERR_ELEMNAME
-XML_RELAXNG_ERR_ELEMNONS
-XML_RELAXNG_ERR_ELEMNOTEMPTY
-XML_RELAXNG_ERR_ELEMWRONG
-XML_RELAXNG_ERR_ELEMWRONGNS
-XML_RELAXNG_ERR_EXTRACONTENT
-XML_RELAXNG_ERR_EXTRADATA
-XML_RELAXNG_ERR_INTEREXTRA
-XML_RELAXNG_ERR_INTERNAL
-XML_RELAXNG_ERR_INTERNODATA
-XML_RELAXNG_ERR_INTERSEQ
-XML_RELAXNG_ERR_INVALIDATTR
-XML_RELAXNG_ERR_LACKDATA
-XML_RELAXNG_ERR_LIST
-XML_RELAXNG_ERR_LISTELEM
-XML_RELAXNG_ERR_LISTEMPTY
-XML_RELAXNG_ERR_LISTEXTRA
-XML_RELAXNG_ERR_MEMORY
-XML_RELAXNG_ERR_NODEFINE
-XML_RELAXNG_ERR_NOELEM
-XML_RELAXNG_ERR_NOGRAMMAR
-XML_RELAXNG_ERR_NOSTATE
-XML_RELAXNG_ERR_NOTELEM
-XML_RELAXNG_ERR_TEXTWRONG
-XML_RELAXNG_ERR_TYPE
-XML_RELAXNG_ERR_TYPECMP
-XML_RELAXNG_ERR_TYPEVAL
-XML_RELAXNG_ERR_VALELEM
-XML_RELAXNG_ERR_VALUE
-XML_RELAXNG_OK
-xmlRelaxNG
-xmlRelaxNGCleanupTypes
-xmlRelaxNGDump
-xmlRelaxNGDumpTree
-xmlRelaxNGFree
-xmlRelaxNGFreeParserCtxt
-xmlRelaxNGFreeValidCtxt
-xmlRelaxNGGetParserErrors
-xmlRelaxNGGetValidErrors
-xmlRelaxNGInitTypes
-xmlRelaxNGNewDocParserCtxt
-xmlRelaxNGNewMemParserCtxt
-xmlRelaxNGNewParserCtxt
-xmlRelaxNGNewValidCtxt
-xmlRelaxNGParse
-xmlRelaxNGParserCtxt
-xmlRelaxNGParserCtxtPtr
-xmlRelaxNGParserFlag
-xmlRelaxNGPtr
-xmlRelaxNGSetParserErrors
-xmlRelaxNGSetParserStructuredErrors
-xmlRelaxNGSetValidErrors
-xmlRelaxNGSetValidStructuredErrors
-xmlRelaxNGValidCtxt
-xmlRelaxNGValidCtxtPtr
-xmlRelaxNGValidErr
-xmlRelaxNGValidateDoc
-xmlRelaxNGValidateFullElement
-xmlRelaxNGValidatePopElement
-xmlRelaxNGValidatePushCData
-xmlRelaxNGValidatePushElement
-xmlRelaxNGValidityErrorFunc
-xmlRelaxNGValidityWarningFunc
-xmlRelaxParserSetFlag
-

Module schemasInternals:

XML_SCHEMAS_ANYATTR_LAX
-XML_SCHEMAS_ANYATTR_SKIP
-XML_SCHEMAS_ANYATTR_STRICT
-XML_SCHEMAS_ANYSIMPLETYPE
-XML_SCHEMAS_ANYTYPE
-XML_SCHEMAS_ANYURI
-XML_SCHEMAS_ANY_LAX
-XML_SCHEMAS_ANY_SKIP
-XML_SCHEMAS_ANY_STRICT
-XML_SCHEMAS_ATTRGROUP_GLOBAL
-XML_SCHEMAS_ATTRGROUP_HAS_REFS
-XML_SCHEMAS_ATTRGROUP_MARKED
-XML_SCHEMAS_ATTRGROUP_REDEFINED
-XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED
-XML_SCHEMAS_ATTR_FIXED
-XML_SCHEMAS_ATTR_GLOBAL
-XML_SCHEMAS_ATTR_INTERNAL_RESOLVED
-XML_SCHEMAS_ATTR_NSDEFAULT
-XML_SCHEMAS_ATTR_USE_OPTIONAL
-XML_SCHEMAS_ATTR_USE_PROHIBITED
-XML_SCHEMAS_ATTR_USE_REQUIRED
-XML_SCHEMAS_BASE64BINARY
-XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION
-XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION
-XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION
-XML_SCHEMAS_BOOLEAN
-XML_SCHEMAS_BYTE
-XML_SCHEMAS_DATE
-XML_SCHEMAS_DATETIME
-XML_SCHEMAS_DECIMAL
-XML_SCHEMAS_DOUBLE
-XML_SCHEMAS_DURATION
-XML_SCHEMAS_ELEM_ABSTRACT
-XML_SCHEMAS_ELEM_BLOCK_ABSENT
-XML_SCHEMAS_ELEM_BLOCK_EXTENSION
-XML_SCHEMAS_ELEM_BLOCK_RESTRICTION
-XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION
-XML_SCHEMAS_ELEM_CIRCULAR
-XML_SCHEMAS_ELEM_DEFAULT
-XML_SCHEMAS_ELEM_FINAL_ABSENT
-XML_SCHEMAS_ELEM_FINAL_EXTENSION
-XML_SCHEMAS_ELEM_FINAL_RESTRICTION
-XML_SCHEMAS_ELEM_FIXED
-XML_SCHEMAS_ELEM_GLOBAL
-XML_SCHEMAS_ELEM_INTERNAL_CHECKED
-XML_SCHEMAS_ELEM_INTERNAL_RESOLVED
-XML_SCHEMAS_ELEM_NILLABLE
-XML_SCHEMAS_ELEM_NSDEFAULT
-XML_SCHEMAS_ELEM_REF
-XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD
-XML_SCHEMAS_ELEM_TOPLEVEL
-XML_SCHEMAS_ENTITIES
-XML_SCHEMAS_ENTITY
-XML_SCHEMAS_FACET_COLLAPSE
-XML_SCHEMAS_FACET_PRESERVE
-XML_SCHEMAS_FACET_REPLACE
-XML_SCHEMAS_FACET_UNKNOWN
-XML_SCHEMAS_FINAL_DEFAULT_EXTENSION
-XML_SCHEMAS_FINAL_DEFAULT_LIST
-XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION
-XML_SCHEMAS_FINAL_DEFAULT_UNION
-XML_SCHEMAS_FLOAT
-XML_SCHEMAS_GDAY
-XML_SCHEMAS_GMONTH
-XML_SCHEMAS_GMONTHDAY
-XML_SCHEMAS_GYEAR
-XML_SCHEMAS_GYEARMONTH
-XML_SCHEMAS_HEXBINARY
-XML_SCHEMAS_ID
-XML_SCHEMAS_IDREF
-XML_SCHEMAS_IDREFS
-XML_SCHEMAS_INCLUDING_CONVERT_NS
-XML_SCHEMAS_INT
-XML_SCHEMAS_INTEGER
-XML_SCHEMAS_LANGUAGE
-XML_SCHEMAS_LONG
-XML_SCHEMAS_NAME
-XML_SCHEMAS_NCNAME
-XML_SCHEMAS_NINTEGER
-XML_SCHEMAS_NMTOKEN
-XML_SCHEMAS_NMTOKENS
-XML_SCHEMAS_NNINTEGER
-XML_SCHEMAS_NORMSTRING
-XML_SCHEMAS_NOTATION
-XML_SCHEMAS_NPINTEGER
-XML_SCHEMAS_PINTEGER
-XML_SCHEMAS_QNAME
-XML_SCHEMAS_QUALIF_ATTR
-XML_SCHEMAS_QUALIF_ELEM
-XML_SCHEMAS_SHORT
-XML_SCHEMAS_STRING
-XML_SCHEMAS_TIME
-XML_SCHEMAS_TOKEN
-XML_SCHEMAS_TYPE_ABSTRACT
-XML_SCHEMAS_TYPE_BLOCK_DEFAULT
-XML_SCHEMAS_TYPE_BLOCK_EXTENSION
-XML_SCHEMAS_TYPE_BLOCK_RESTRICTION
-XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE
-XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION
-XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION
-XML_SCHEMAS_TYPE_FACETSNEEDVALUE
-XML_SCHEMAS_TYPE_FINAL_DEFAULT
-XML_SCHEMAS_TYPE_FINAL_EXTENSION
-XML_SCHEMAS_TYPE_FINAL_LIST
-XML_SCHEMAS_TYPE_FINAL_RESTRICTION
-XML_SCHEMAS_TYPE_FINAL_UNION
-XML_SCHEMAS_TYPE_FIXUP_1
-XML_SCHEMAS_TYPE_GLOBAL
-XML_SCHEMAS_TYPE_HAS_FACETS
-XML_SCHEMAS_TYPE_INTERNAL_INVALID
-XML_SCHEMAS_TYPE_INTERNAL_RESOLVED
-XML_SCHEMAS_TYPE_MARKED
-XML_SCHEMAS_TYPE_MIXED
-XML_SCHEMAS_TYPE_NORMVALUENEEDED
-XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD
-XML_SCHEMAS_TYPE_REDEFINED
-XML_SCHEMAS_TYPE_VARIETY_ABSENT
-XML_SCHEMAS_TYPE_VARIETY_ATOMIC
-XML_SCHEMAS_TYPE_VARIETY_LIST
-XML_SCHEMAS_TYPE_VARIETY_UNION
-XML_SCHEMAS_TYPE_WHITESPACE_COLLAPSE
-XML_SCHEMAS_TYPE_WHITESPACE_PRESERVE
-XML_SCHEMAS_TYPE_WHITESPACE_REPLACE
-XML_SCHEMAS_UBYTE
-XML_SCHEMAS_UINT
-XML_SCHEMAS_ULONG
-XML_SCHEMAS_UNKNOWN
-XML_SCHEMAS_USHORT
-XML_SCHEMAS_WILDCARD_COMPLETE
-XML_SCHEMA_CONTENT_ANY
-XML_SCHEMA_CONTENT_BASIC
-XML_SCHEMA_CONTENT_ELEMENTS
-XML_SCHEMA_CONTENT_EMPTY
-XML_SCHEMA_CONTENT_MIXED
-XML_SCHEMA_CONTENT_MIXED_OR_ELEMENTS
-XML_SCHEMA_CONTENT_SIMPLE
-XML_SCHEMA_CONTENT_UNKNOWN
-XML_SCHEMA_EXTRA_ATTR_USE_PROHIB
-XML_SCHEMA_EXTRA_QNAMEREF
-XML_SCHEMA_FACET_ENUMERATION
-XML_SCHEMA_FACET_FRACTIONDIGITS
-XML_SCHEMA_FACET_LENGTH
-XML_SCHEMA_FACET_MAXEXCLUSIVE
-XML_SCHEMA_FACET_MAXINCLUSIVE
-XML_SCHEMA_FACET_MAXLENGTH
-XML_SCHEMA_FACET_MINEXCLUSIVE
-XML_SCHEMA_FACET_MININCLUSIVE
-XML_SCHEMA_FACET_MINLENGTH
-XML_SCHEMA_FACET_PATTERN
-XML_SCHEMA_FACET_TOTALDIGITS
-XML_SCHEMA_FACET_WHITESPACE
-XML_SCHEMA_TYPE_ALL
-XML_SCHEMA_TYPE_ANY
-XML_SCHEMA_TYPE_ANY_ATTRIBUTE
-XML_SCHEMA_TYPE_ATTRIBUTE
-XML_SCHEMA_TYPE_ATTRIBUTEGROUP
-XML_SCHEMA_TYPE_ATTRIBUTE_USE
-XML_SCHEMA_TYPE_BASIC
-XML_SCHEMA_TYPE_CHOICE
-XML_SCHEMA_TYPE_COMPLEX
-XML_SCHEMA_TYPE_COMPLEX_CONTENT
-XML_SCHEMA_TYPE_ELEMENT
-XML_SCHEMA_TYPE_EXTENSION
-XML_SCHEMA_TYPE_FACET
-XML_SCHEMA_TYPE_GROUP
-XML_SCHEMA_TYPE_IDC_KEY
-XML_SCHEMA_TYPE_IDC_KEYREF
-XML_SCHEMA_TYPE_IDC_UNIQUE
-XML_SCHEMA_TYPE_LIST
-XML_SCHEMA_TYPE_NOTATION
-XML_SCHEMA_TYPE_PARTICLE
-XML_SCHEMA_TYPE_RESTRICTION
-XML_SCHEMA_TYPE_SEQUENCE
-XML_SCHEMA_TYPE_SIMPLE
-XML_SCHEMA_TYPE_SIMPLE_CONTENT
-XML_SCHEMA_TYPE_UNION
-XML_SCHEMA_TYPE_UR
-_xmlSchema
-_xmlSchemaAnnot
-_xmlSchemaAttribute
-_xmlSchemaAttributeGroup
-_xmlSchemaAttributeLink
-_xmlSchemaElement
-_xmlSchemaFacet
-_xmlSchemaFacetLink
-_xmlSchemaNotation
-_xmlSchemaType
-_xmlSchemaTypeLink
-_xmlSchemaWildcard
-_xmlSchemaWildcardNs
-xmlSchemaAnnot
-xmlSchemaAnnotPtr
-xmlSchemaAttribute
-xmlSchemaAttributeGroup
-xmlSchemaAttributeGroupPtr
-xmlSchemaAttributeLink
-xmlSchemaAttributeLinkPtr
-xmlSchemaAttributePtr
-xmlSchemaContentType
-xmlSchemaElement
-xmlSchemaElementPtr
-xmlSchemaFacet
-xmlSchemaFacetLink
-xmlSchemaFacetLinkPtr
-xmlSchemaFacetPtr
-xmlSchemaFreeType
-xmlSchemaFreeWildcard
-xmlSchemaNotation
-xmlSchemaNotationPtr
-xmlSchemaType
-xmlSchemaTypeLink
-xmlSchemaTypeLinkPtr
-xmlSchemaTypePtr
-xmlSchemaTypeType
-xmlSchemaVal
-xmlSchemaValPtr
-xmlSchemaValType
-xmlSchemaWildcard
-xmlSchemaWildcardNs
-xmlSchemaWildcardNsPtr
-xmlSchemaWildcardPtr
-

Module schematron:

XML_SCHEMATRON_OUT_BUFFER
-XML_SCHEMATRON_OUT_FILE
-XML_SCHEMATRON_OUT_IO
-XML_SCHEMATRON_OUT_QUIET
-XML_SCHEMATRON_OUT_TEXT
-XML_SCHEMATRON_OUT_XML
-xmlSchematron
-xmlSchematronFree
-xmlSchematronFreeParserCtxt
-xmlSchematronFreeValidCtxt
-xmlSchematronNewDocParserCtxt
-xmlSchematronNewMemParserCtxt
-xmlSchematronNewParserCtxt
-xmlSchematronNewValidCtxt
-xmlSchematronParse
-xmlSchematronParserCtxt
-xmlSchematronParserCtxtPtr
-xmlSchematronPtr
-xmlSchematronValidCtxt
-xmlSchematronValidCtxtPtr
-xmlSchematronValidOptions
-xmlSchematronValidateDoc
-xmlSchematronValidityErrorFunc
-xmlSchematronValidityWarningFunc
-

Module threads:

xmlCleanupThreads
-xmlFreeMutex
-xmlFreeRMutex
-xmlGetGlobalState
-xmlGetThreadId
-xmlInitThreads
-xmlIsMainThread
-xmlLockLibrary
-xmlMutex
-xmlMutexLock
-xmlMutexPtr
-xmlMutexUnlock
-xmlNewMutex
-xmlNewRMutex
-xmlRMutex
-xmlRMutexLock
-xmlRMutexPtr
-xmlRMutexUnlock
-xmlUnlockLibrary
-

Module tree:

BASE_BUFFER_SIZE
-XML_ATTRIBUTE_CDATA
-XML_ATTRIBUTE_DECL
-XML_ATTRIBUTE_ENTITIES
-XML_ATTRIBUTE_ENTITY
-XML_ATTRIBUTE_ENUMERATION
-XML_ATTRIBUTE_FIXED
-XML_ATTRIBUTE_ID
-XML_ATTRIBUTE_IDREF
-XML_ATTRIBUTE_IDREFS
-XML_ATTRIBUTE_IMPLIED
-XML_ATTRIBUTE_NMTOKEN
-XML_ATTRIBUTE_NMTOKENS
-XML_ATTRIBUTE_NODE
-XML_ATTRIBUTE_NONE
-XML_ATTRIBUTE_NOTATION
-XML_ATTRIBUTE_REQUIRED
-XML_BUFFER_ALLOC_DOUBLEIT
-XML_BUFFER_ALLOC_EXACT
-XML_BUFFER_ALLOC_IMMUTABLE
-XML_CDATA_SECTION_NODE
-XML_COMMENT_NODE
-XML_DOCB_DOCUMENT_NODE
-XML_DOCUMENT_FRAG_NODE
-XML_DOCUMENT_NODE
-XML_DOCUMENT_TYPE_NODE
-XML_DTD_NODE
-XML_ELEMENT_CONTENT_ELEMENT
-XML_ELEMENT_CONTENT_MULT
-XML_ELEMENT_CONTENT_ONCE
-XML_ELEMENT_CONTENT_OPT
-XML_ELEMENT_CONTENT_OR
-XML_ELEMENT_CONTENT_PCDATA
-XML_ELEMENT_CONTENT_PLUS
-XML_ELEMENT_CONTENT_SEQ
-XML_ELEMENT_DECL
-XML_ELEMENT_NODE
-XML_ELEMENT_TYPE_ANY
-XML_ELEMENT_TYPE_ELEMENT
-XML_ELEMENT_TYPE_EMPTY
-XML_ELEMENT_TYPE_MIXED
-XML_ELEMENT_TYPE_UNDEFINED
-XML_ENTITY_DECL
-XML_ENTITY_NODE
-XML_ENTITY_REF_NODE
-XML_GET_CONTENT
-XML_GET_LINE
-XML_HTML_DOCUMENT_NODE
-XML_LOCAL_NAMESPACE
-XML_NAMESPACE_DECL
-XML_NOTATION_NODE
-XML_PI_NODE
-XML_TEXT_NODE
-XML_XINCLUDE_END
-XML_XINCLUDE_START
-XML_XML_ID
-XML_XML_NAMESPACE
-_xmlAttr
-_xmlAttribute
-_xmlBuffer
-_xmlDOMWrapCtxt
-_xmlDoc
-_xmlDtd
-_xmlElement
-_xmlElementContent
-_xmlEnumeration
-_xmlID
-_xmlNode
-_xmlNotation
-_xmlNs
-_xmlRef
-xmlAddChild
-xmlAddChildList
-xmlAddNextSibling
-xmlAddPrevSibling
-xmlAddSibling
-xmlAttr
-xmlAttrPtr
-xmlAttrSerializeTxtContent
-xmlAttribute
-xmlAttributeDefault
-xmlAttributePtr
-xmlAttributeType
-xmlBuffer
-xmlBufferAdd
-xmlBufferAddHead
-xmlBufferAllocationScheme
-xmlBufferCCat
-xmlBufferCat
-xmlBufferContent
-xmlBufferCreate
-xmlBufferCreateSize
-xmlBufferCreateStatic
-xmlBufferDump
-xmlBufferEmpty
-xmlBufferFree
-xmlBufferGrow
-xmlBufferLength
-xmlBufferPtr
-xmlBufferResize
-xmlBufferSetAllocationScheme
-xmlBufferShrink
-xmlBufferWriteCHAR
-xmlBufferWriteChar
-xmlBufferWriteQuotedString
-xmlBuildQName
-xmlChildrenNode
-xmlCopyDoc
-xmlCopyDtd
-xmlCopyNamespace
-xmlCopyNamespaceList
-xmlCopyNode
-xmlCopyNodeList
-xmlCopyProp
-xmlCopyPropList
-xmlCreateIntSubset
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapCtxt
-xmlDOMWrapCtxtPtr
-xmlDOMWrapFreeCtxt
-xmlDOMWrapNewCtxt
-xmlDOMWrapReconcileNamespaces
-xmlDOMWrapRemoveNode
-xmlDoc
-xmlDocCopyNode
-xmlDocCopyNodeList
-xmlDocDump
-xmlDocDumpFormatMemory
-xmlDocDumpFormatMemoryEnc
-xmlDocDumpMemory
-xmlDocDumpMemoryEnc
-xmlDocFormatDump
-xmlDocGetRootElement
-xmlDocPtr
-xmlDocSetRootElement
-xmlDtd
-xmlDtdPtr
-xmlElemDump
-xmlElement
-xmlElementContent
-xmlElementContentOccur
-xmlElementContentPtr
-xmlElementContentType
-xmlElementPtr
-xmlElementType
-xmlElementTypeVal
-xmlEntity
-xmlEntityPtr
-xmlEnumeration
-xmlEnumerationPtr
-xmlFreeDoc
-xmlFreeDtd
-xmlFreeNode
-xmlFreeNodeList
-xmlFreeNs
-xmlFreeNsList
-xmlFreeProp
-xmlFreePropList
-xmlGetBufferAllocationScheme
-xmlGetCompressMode
-xmlGetDocCompressMode
-xmlGetIntSubset
-xmlGetLastChild
-xmlGetLineNo
-xmlGetNoNsProp
-xmlGetNodePath
-xmlGetNsList
-xmlGetNsProp
-xmlGetProp
-xmlHasNsProp
-xmlHasProp
-xmlID
-xmlIDPtr
-xmlIsBlankNode
-xmlIsXHTML
-xmlNewCDataBlock
-xmlNewCharRef
-xmlNewChild
-xmlNewComment
-xmlNewDoc
-xmlNewDocComment
-xmlNewDocFragment
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlNewDocPI
-xmlNewDocProp
-xmlNewDocRawNode
-xmlNewDocText
-xmlNewDocTextLen
-xmlNewDtd
-xmlNewGlobalNs
-xmlNewNode
-xmlNewNodeEatName
-xmlNewNs
-xmlNewNsProp
-xmlNewNsPropEatName
-xmlNewPI
-xmlNewProp
-xmlNewReference
-xmlNewText
-xmlNewTextChild
-xmlNewTextLen
-xmlNode
-xmlNodeAddContent
-xmlNodeAddContentLen
-xmlNodeBufGetContent
-xmlNodeDump
-xmlNodeDumpOutput
-xmlNodeGetBase
-xmlNodeGetContent
-xmlNodeGetLang
-xmlNodeGetSpacePreserve
-xmlNodeIsText
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlNodePtr
-xmlNodeSetBase
-xmlNodeSetContent
-xmlNodeSetContentLen
-xmlNodeSetLang
-xmlNodeSetName
-xmlNodeSetSpacePreserve
-xmlNotation
-xmlNotationPtr
-xmlNs
-xmlNsPtr
-xmlNsType
-xmlOutputBuffer
-xmlOutputBufferPtr
-xmlParserCtxt
-xmlParserCtxtPtr
-xmlParserInput
-xmlParserInputBuffer
-xmlParserInputBufferPtr
-xmlParserInputPtr
-xmlReconciliateNs
-xmlRef
-xmlRefPtr
-xmlRemoveProp
-xmlReplaceNode
-xmlRootNode
-xmlSAXHandler
-xmlSAXHandlerPtr
-xmlSAXLocator
-xmlSAXLocatorPtr
-xmlSaveFile
-xmlSaveFileEnc
-xmlSaveFileTo
-xmlSaveFormatFile
-xmlSaveFormatFileEnc
-xmlSaveFormatFileTo
-xmlSearchNs
-xmlSearchNsByHref
-xmlSetBufferAllocationScheme
-xmlSetCompressMode
-xmlSetDocCompressMode
-xmlSetListDoc
-xmlSetNs
-xmlSetNsProp
-xmlSetProp
-xmlSetTreeDoc
-xmlSplitQName2
-xmlSplitQName3
-xmlStringGetNodeList
-xmlStringLenGetNodeList
-xmlTextConcat
-xmlTextMerge
-xmlUnlinkNode
-xmlUnsetNsProp
-xmlUnsetProp
-xmlValidateNCName
-xmlValidateNMToken
-xmlValidateName
-xmlValidateQName
-

Module uri:

_xmlURI
-xmlBuildRelativeURI
-xmlBuildURI
-xmlCanonicPath
-xmlCreateURI
-xmlFreeURI
-xmlNormalizeURIPath
-xmlParseURI
-xmlParseURIRaw
-xmlParseURIReference
-xmlPrintURI
-xmlSaveUri
-xmlURI
-xmlURIEscape
-xmlURIEscapeStr
-xmlURIPtr
-xmlURIUnescapeString
-

Module valid:

XML_CTXT_FINISH_DTD_0
-XML_CTXT_FINISH_DTD_1
-_xmlValidCtxt
-xmlAddAttributeDecl
-xmlAddElementDecl
-xmlAddID
-xmlAddNotationDecl
-xmlAddRef
-xmlAttributeTable
-xmlAttributeTablePtr
-xmlCopyAttributeTable
-xmlCopyDocElementContent
-xmlCopyElementContent
-xmlCopyElementTable
-xmlCopyEnumeration
-xmlCopyNotationTable
-xmlCreateEnumeration
-xmlDumpAttributeDecl
-xmlDumpAttributeTable
-xmlDumpElementDecl
-xmlDumpElementTable
-xmlDumpNotationDecl
-xmlDumpNotationTable
-xmlElementTable
-xmlElementTablePtr
-xmlFreeAttributeTable
-xmlFreeDocElementContent
-xmlFreeElementContent
-xmlFreeElementTable
-xmlFreeEnumeration
-xmlFreeIDTable
-xmlFreeNotationTable
-xmlFreeRefTable
-xmlFreeValidCtxt
-xmlGetDtdAttrDesc
-xmlGetDtdElementDesc
-xmlGetDtdNotationDesc
-xmlGetDtdQAttrDesc
-xmlGetDtdQElementDesc
-xmlGetID
-xmlGetRefs
-xmlIDTable
-xmlIDTablePtr
-xmlIsID
-xmlIsMixedElement
-xmlIsRef
-xmlNewDocElementContent
-xmlNewElementContent
-xmlNewValidCtxt
-xmlNotationTable
-xmlNotationTablePtr
-xmlRefTable
-xmlRefTablePtr
-xmlRemoveID
-xmlRemoveRef
-xmlSnprintfElementContent
-xmlSprintfElementContent
-xmlValidBuildContentModel
-xmlValidCtxt
-xmlValidCtxtNormalizeAttributeValue
-xmlValidCtxtPtr
-xmlValidGetPotentialChildren
-xmlValidGetValidElements
-xmlValidNormalizeAttributeValue
-xmlValidState
-xmlValidStatePtr
-xmlValidateAttributeDecl
-xmlValidateAttributeValue
-xmlValidateDocument
-xmlValidateDocumentFinal
-xmlValidateDtd
-xmlValidateDtdFinal
-xmlValidateElement
-xmlValidateElementDecl
-xmlValidateNameValue
-xmlValidateNamesValue
-xmlValidateNmtokenValue
-xmlValidateNmtokensValue
-xmlValidateNotationDecl
-xmlValidateNotationUse
-xmlValidateOneAttribute
-xmlValidateOneElement
-xmlValidateOneNamespace
-xmlValidatePopElement
-xmlValidatePushCData
-xmlValidatePushElement
-xmlValidateRoot
-xmlValidityErrorFunc
-xmlValidityWarningFunc
-

Module xinclude:

XINCLUDE_FALLBACK
-XINCLUDE_HREF
-XINCLUDE_NODE
-XINCLUDE_NS
-XINCLUDE_OLD_NS
-XINCLUDE_PARSE
-XINCLUDE_PARSE_ENCODING
-XINCLUDE_PARSE_TEXT
-XINCLUDE_PARSE_XML
-XINCLUDE_PARSE_XPOINTER
-xmlXIncludeCtxt
-xmlXIncludeCtxtPtr
-xmlXIncludeFreeContext
-xmlXIncludeNewContext
-xmlXIncludeProcess
-xmlXIncludeProcessFlags
-xmlXIncludeProcessNode
-xmlXIncludeProcessTree
-xmlXIncludeProcessTreeFlags
-xmlXIncludeSetFlags
-

Module xlink:

XLINK_ACTUATE_AUTO
-XLINK_ACTUATE_NONE
-XLINK_ACTUATE_ONREQUEST
-XLINK_SHOW_EMBED
-XLINK_SHOW_NEW
-XLINK_SHOW_NONE
-XLINK_SHOW_REPLACE
-XLINK_TYPE_EXTENDED
-XLINK_TYPE_EXTENDED_SET
-XLINK_TYPE_NONE
-XLINK_TYPE_SIMPLE
-_xlinkHandler
-xlinkActuate
-xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-xlinkGetDefaultDetect
-xlinkGetDefaultHandler
-xlinkHRef
-xlinkHandler
-xlinkHandlerPtr
-xlinkIsLink
-xlinkNodeDetectFunc
-xlinkRole
-xlinkSetDefaultDetect
-xlinkSetDefaultHandler
-xlinkShow
-xlinkSimpleLinkFunk
-xlinkTitle
-xlinkType
-

Module xmlIO:

_xmlOutputBuffer
-_xmlParserInputBuffer
-xmlAllocOutputBuffer
-xmlAllocParserInputBuffer
-xmlCheckFilename
-xmlCheckHTTPInput
-xmlCleanupInputCallbacks
-xmlCleanupOutputCallbacks
-xmlFileClose
-xmlFileMatch
-xmlFileOpen
-xmlFileRead
-xmlFreeParserInputBuffer
-xmlIOFTPClose
-xmlIOFTPMatch
-xmlIOFTPOpen
-xmlIOFTPRead
-xmlIOHTTPClose
-xmlIOHTTPMatch
-xmlIOHTTPOpen
-xmlIOHTTPOpenW
-xmlIOHTTPRead
-xmlInputCloseCallback
-xmlInputMatchCallback
-xmlInputOpenCallback
-xmlInputReadCallback
-xmlNoNetExternalEntityLoader
-xmlNormalizeWindowsPath
-xmlOutputBufferClose
-xmlOutputBufferCreateBuffer
-xmlOutputBufferCreateFd
-xmlOutputBufferCreateFile
-xmlOutputBufferCreateFilename
-xmlOutputBufferCreateIO
-xmlOutputBufferFlush
-xmlOutputBufferWrite
-xmlOutputBufferWriteEscape
-xmlOutputBufferWriteString
-xmlOutputCloseCallback
-xmlOutputMatchCallback
-xmlOutputOpenCallback
-xmlOutputWriteCallback
-xmlParserGetDirectory
-xmlParserInputBufferCreateFd
-xmlParserInputBufferCreateFile
-xmlParserInputBufferCreateFilename
-xmlParserInputBufferCreateIO
-xmlParserInputBufferCreateMem
-xmlParserInputBufferCreateStatic
-xmlParserInputBufferGrow
-xmlParserInputBufferPush
-xmlParserInputBufferRead
-xmlPopInputCallbacks
-xmlRegisterDefaultInputCallbacks
-xmlRegisterDefaultOutputCallbacks
-xmlRegisterHTTPPostCallbacks
-xmlRegisterInputCallbacks
-xmlRegisterOutputCallbacks
-

Module xmlautomata:

xmlAutomata
-xmlAutomataCompile
-xmlAutomataGetInitState
-xmlAutomataIsDeterminist
-xmlAutomataNewAllTrans
-xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewCountedTrans
-xmlAutomataNewCounter
-xmlAutomataNewCounterTrans
-xmlAutomataNewEpsilon
-xmlAutomataNewNegTrans
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlAutomataNewState
-xmlAutomataNewTransition
-xmlAutomataNewTransition2
-xmlAutomataPtr
-xmlAutomataSetFinalState
-xmlAutomataState
-xmlAutomataStatePtr
-xmlFreeAutomata
-xmlNewAutomata
-

Module xmlerror:

XML_C14N_CREATE_CTXT
-XML_C14N_CREATE_STACK
-XML_C14N_INVALID_NODE
-XML_C14N_RELATIVE_NAMESPACE
-XML_C14N_REQUIRES_UTF8
-XML_C14N_UNKNOW_NODE
-XML_CATALOG_ENTRY_BROKEN
-XML_CATALOG_MISSING_ATTR
-XML_CATALOG_NOT_CATALOG
-XML_CATALOG_PREFER_VALUE
-XML_CATALOG_RECURSION
-XML_CHECK_
-XML_CHECK_ENTITY_TYPE
-XML_CHECK_FOUND_ATTRIBUTE
-XML_CHECK_FOUND_CDATA
-XML_CHECK_FOUND_COMMENT
-XML_CHECK_FOUND_DOCTYPE
-XML_CHECK_FOUND_ELEMENT
-XML_CHECK_FOUND_ENTITY
-XML_CHECK_FOUND_ENTITYREF
-XML_CHECK_FOUND_FRAGMENT
-XML_CHECK_FOUND_NOTATION
-XML_CHECK_FOUND_PI
-XML_CHECK_FOUND_TEXT
-XML_CHECK_NAME_NOT_NULL
-XML_CHECK_NOT_ATTR
-XML_CHECK_NOT_ATTR_DECL
-XML_CHECK_NOT_DTD
-XML_CHECK_NOT_ELEM_DECL
-XML_CHECK_NOT_ENTITY_DECL
-XML_CHECK_NOT_NCNAME
-XML_CHECK_NOT_NS_DECL
-XML_CHECK_NOT_UTF8
-XML_CHECK_NO_DICT
-XML_CHECK_NO_DOC
-XML_CHECK_NO_ELEM
-XML_CHECK_NO_HREF
-XML_CHECK_NO_NAME
-XML_CHECK_NO_NEXT
-XML_CHECK_NO_PARENT
-XML_CHECK_NO_PREV
-XML_CHECK_NS_ANCESTOR
-XML_CHECK_NS_SCOPE
-XML_CHECK_OUTSIDE_DICT
-XML_CHECK_UNKNOWN_NODE
-XML_CHECK_WRONG_DOC
-XML_CHECK_WRONG_NAME
-XML_CHECK_WRONG_NEXT
-XML_CHECK_WRONG_PARENT
-XML_CHECK_WRONG_PREV
-XML_CHECK_X
-XML_DTD_ATTRIBUTE_DEFAULT
-XML_DTD_ATTRIBUTE_REDEFINED
-XML_DTD_ATTRIBUTE_VALUE
-XML_DTD_CONTENT_ERROR
-XML_DTD_CONTENT_MODEL
-XML_DTD_CONTENT_NOT_DETERMINIST
-XML_DTD_DIFFERENT_PREFIX
-XML_DTD_ELEM_DEFAULT_NAMESPACE
-XML_DTD_ELEM_NAMESPACE
-XML_DTD_ELEM_REDEFINED
-XML_DTD_EMPTY_NOTATION
-XML_DTD_ENTITY_TYPE
-XML_DTD_ID_FIXED
-XML_DTD_ID_REDEFINED
-XML_DTD_ID_SUBSET
-XML_DTD_INVALID_CHILD
-XML_DTD_INVALID_DEFAULT
-XML_DTD_LOAD_ERROR
-XML_DTD_MISSING_ATTRIBUTE
-XML_DTD_MIXED_CORRUPT
-XML_DTD_MULTIPLE_ID
-XML_DTD_NOTATION_REDEFINED
-XML_DTD_NOTATION_VALUE
-XML_DTD_NOT_EMPTY
-XML_DTD_NOT_PCDATA
-XML_DTD_NOT_STANDALONE
-XML_DTD_NO_DOC
-XML_DTD_NO_DTD
-XML_DTD_NO_ELEM_NAME
-XML_DTD_NO_PREFIX
-XML_DTD_NO_ROOT
-XML_DTD_ROOT_NAME
-XML_DTD_STANDALONE_DEFAULTED
-XML_DTD_STANDALONE_WHITE_SPACE
-XML_DTD_UNKNOWN_ATTRIBUTE
-XML_DTD_UNKNOWN_ELEM
-XML_DTD_UNKNOWN_ENTITY
-XML_DTD_UNKNOWN_ID
-XML_DTD_UNKNOWN_NOTATION
-XML_DTD_XMLID_TYPE
-XML_DTD_XMLID_VALUE
-XML_ERR_ATTLIST_NOT_FINISHED
-XML_ERR_ATTLIST_NOT_STARTED
-XML_ERR_ATTRIBUTE_NOT_FINISHED
-XML_ERR_ATTRIBUTE_NOT_STARTED
-XML_ERR_ATTRIBUTE_REDEFINED
-XML_ERR_ATTRIBUTE_WITHOUT_VALUE
-XML_ERR_CDATA_NOT_FINISHED
-XML_ERR_CHARREF_AT_EOF
-XML_ERR_CHARREF_IN_DTD
-XML_ERR_CHARREF_IN_EPILOG
-XML_ERR_CHARREF_IN_PROLOG
-XML_ERR_COMMENT_NOT_FINISHED
-XML_ERR_CONDSEC_INVALID
-XML_ERR_CONDSEC_INVALID_KEYWORD
-XML_ERR_CONDSEC_NOT_FINISHED
-XML_ERR_CONDSEC_NOT_STARTED
-XML_ERR_DOCTYPE_NOT_FINISHED
-XML_ERR_DOCUMENT_EMPTY
-XML_ERR_DOCUMENT_END
-XML_ERR_DOCUMENT_START
-XML_ERR_ELEMCONTENT_NOT_FINISHED
-XML_ERR_ELEMCONTENT_NOT_STARTED
-XML_ERR_ENCODING_NAME
-XML_ERR_ENTITYREF_AT_EOF
-XML_ERR_ENTITYREF_IN_DTD
-XML_ERR_ENTITYREF_IN_EPILOG
-XML_ERR_ENTITYREF_IN_PROLOG
-XML_ERR_ENTITYREF_NO_NAME
-XML_ERR_ENTITYREF_SEMICOL_MISSING
-XML_ERR_ENTITY_BOUNDARY
-XML_ERR_ENTITY_CHAR_ERROR
-XML_ERR_ENTITY_IS_EXTERNAL
-XML_ERR_ENTITY_IS_PARAMETER
-XML_ERR_ENTITY_LOOP
-XML_ERR_ENTITY_NOT_FINISHED
-XML_ERR_ENTITY_NOT_STARTED
-XML_ERR_ENTITY_PE_INTERNAL
-XML_ERR_ENTITY_PROCESSING
-XML_ERR_EQUAL_REQUIRED
-XML_ERR_ERROR
-XML_ERR_EXTRA_CONTENT
-XML_ERR_EXT_ENTITY_STANDALONE
-XML_ERR_EXT_SUBSET_NOT_FINISHED
-XML_ERR_FATAL
-XML_ERR_GT_REQUIRED
-XML_ERR_HYPHEN_IN_COMMENT
-XML_ERR_INTERNAL_ERROR
-XML_ERR_INVALID_CHAR
-XML_ERR_INVALID_CHARREF
-XML_ERR_INVALID_DEC_CHARREF
-XML_ERR_INVALID_ENCODING
-XML_ERR_INVALID_HEX_CHARREF
-XML_ERR_INVALID_URI
-XML_ERR_LITERAL_NOT_FINISHED
-XML_ERR_LITERAL_NOT_STARTED
-XML_ERR_LTSLASH_REQUIRED
-XML_ERR_LT_IN_ATTRIBUTE
-XML_ERR_LT_REQUIRED
-XML_ERR_MISPLACED_CDATA_END
-XML_ERR_MISSING_ENCODING
-XML_ERR_MIXED_NOT_FINISHED
-XML_ERR_MIXED_NOT_STARTED
-XML_ERR_NAME_REQUIRED
-XML_ERR_NMTOKEN_REQUIRED
-XML_ERR_NONE
-XML_ERR_NOTATION_NOT_FINISHED
-XML_ERR_NOTATION_NOT_STARTED
-XML_ERR_NOTATION_PROCESSING
-XML_ERR_NOT_STANDALONE
-XML_ERR_NOT_WELL_BALANCED
-XML_ERR_NO_DTD
-XML_ERR_NO_MEMORY
-XML_ERR_NS_DECL_ERROR
-XML_ERR_OK
-XML_ERR_PCDATA_REQUIRED
-XML_ERR_PEREF_AT_EOF
-XML_ERR_PEREF_IN_EPILOG
-XML_ERR_PEREF_IN_INT_SUBSET
-XML_ERR_PEREF_IN_PROLOG
-XML_ERR_PEREF_NO_NAME
-XML_ERR_PEREF_SEMICOL_MISSING
-XML_ERR_PI_NOT_FINISHED
-XML_ERR_PI_NOT_STARTED
-XML_ERR_PUBID_REQUIRED
-XML_ERR_RESERVED_XML_NAME
-XML_ERR_SEPARATOR_REQUIRED
-XML_ERR_SPACE_REQUIRED
-XML_ERR_STANDALONE_VALUE
-XML_ERR_STRING_NOT_CLOSED
-XML_ERR_STRING_NOT_STARTED
-XML_ERR_TAG_NAME_MISMATCH
-XML_ERR_TAG_NOT_FINISHED
-XML_ERR_UNDECLARED_ENTITY
-XML_ERR_UNKNOWN_ENCODING
-XML_ERR_UNPARSED_ENTITY
-XML_ERR_UNSUPPORTED_ENCODING
-XML_ERR_URI_FRAGMENT
-XML_ERR_URI_REQUIRED
-XML_ERR_VALUE_REQUIRED
-XML_ERR_VERSION_MISSING
-XML_ERR_WARNING
-XML_ERR_XMLDECL_NOT_FINISHED
-XML_ERR_XMLDECL_NOT_STARTED
-XML_FROM_C14N
-XML_FROM_CATALOG
-XML_FROM_CHECK
-XML_FROM_DATATYPE
-XML_FROM_DTD
-XML_FROM_FTP
-XML_FROM_HTML
-XML_FROM_HTTP
-XML_FROM_I18N
-XML_FROM_IO
-XML_FROM_MEMORY
-XML_FROM_MODULE
-XML_FROM_NAMESPACE
-XML_FROM_NONE
-XML_FROM_OUTPUT
-XML_FROM_PARSER
-XML_FROM_REGEXP
-XML_FROM_RELAXNGP
-XML_FROM_RELAXNGV
-XML_FROM_SCHEMASP
-XML_FROM_SCHEMASV
-XML_FROM_TREE
-XML_FROM_VALID
-XML_FROM_WRITER
-XML_FROM_XINCLUDE
-XML_FROM_XPATH
-XML_FROM_XPOINTER
-XML_FROM_XSLT
-XML_FTP_ACCNT
-XML_FTP_EPSV_ANSWER
-XML_FTP_PASV_ANSWER
-XML_FTP_URL_SYNTAX
-XML_HTML_STRUCURE_ERROR
-XML_HTML_UNKNOWN_TAG
-XML_HTTP_UNKNOWN_HOST
-XML_HTTP_URL_SYNTAX
-XML_HTTP_USE_IP
-XML_I18N_CONV_FAILED
-XML_I18N_EXCESS_HANDLER
-XML_I18N_NO_HANDLER
-XML_I18N_NO_NAME
-XML_I18N_NO_OUTPUT
-XML_IO_BUFFER_FULL
-XML_IO_EACCES
-XML_IO_EADDRINUSE
-XML_IO_EAFNOSUPPORT
-XML_IO_EAGAIN
-XML_IO_EALREADY
-XML_IO_EBADF
-XML_IO_EBADMSG
-XML_IO_EBUSY
-XML_IO_ECANCELED
-XML_IO_ECHILD
-XML_IO_ECONNREFUSED
-XML_IO_EDEADLK
-XML_IO_EDOM
-XML_IO_EEXIST
-XML_IO_EFAULT
-XML_IO_EFBIG
-XML_IO_EINPROGRESS
-XML_IO_EINTR
-XML_IO_EINVAL
-XML_IO_EIO
-XML_IO_EISCONN
-XML_IO_EISDIR
-XML_IO_EMFILE
-XML_IO_EMLINK
-XML_IO_EMSGSIZE
-XML_IO_ENAMETOOLONG
-XML_IO_ENCODER
-XML_IO_ENETUNREACH
-XML_IO_ENFILE
-XML_IO_ENODEV
-XML_IO_ENOENT
-XML_IO_ENOEXEC
-XML_IO_ENOLCK
-XML_IO_ENOMEM
-XML_IO_ENOSPC
-XML_IO_ENOSYS
-XML_IO_ENOTDIR
-XML_IO_ENOTEMPTY
-XML_IO_ENOTSOCK
-XML_IO_ENOTSUP
-XML_IO_ENOTTY
-XML_IO_ENXIO
-XML_IO_EPERM
-XML_IO_EPIPE
-XML_IO_ERANGE
-XML_IO_EROFS
-XML_IO_ESPIPE
-XML_IO_ESRCH
-XML_IO_ETIMEDOUT
-XML_IO_EXDEV
-XML_IO_FLUSH
-XML_IO_LOAD_ERROR
-XML_IO_NETWORK_ATTEMPT
-XML_IO_NO_INPUT
-XML_IO_UNKNOWN
-XML_IO_WRITE
-XML_MODULE_CLOSE
-XML_MODULE_OPEN
-XML_NS_ERR_ATTRIBUTE_REDEFINED
-XML_NS_ERR_EMPTY
-XML_NS_ERR_QNAME
-XML_NS_ERR_UNDEFINED_NAMESPACE
-XML_NS_ERR_XML_NAMESPACE
-XML_REGEXP_COMPILE_ERROR
-XML_RNGP_ANYNAME_ATTR_ANCESTOR
-XML_RNGP_ATTRIBUTE_CHILDREN
-XML_RNGP_ATTRIBUTE_CONTENT
-XML_RNGP_ATTRIBUTE_EMPTY
-XML_RNGP_ATTRIBUTE_NOOP
-XML_RNGP_ATTR_CONFLICT
-XML_RNGP_CHOICE_CONTENT
-XML_RNGP_CHOICE_EMPTY
-XML_RNGP_CREATE_FAILURE
-XML_RNGP_DATA_CONTENT
-XML_RNGP_DEFINE_CREATE_FAILED
-XML_RNGP_DEFINE_EMPTY
-XML_RNGP_DEFINE_MISSING
-XML_RNGP_DEFINE_NAME_MISSING
-XML_RNGP_DEF_CHOICE_AND_INTERLEAVE
-XML_RNGP_ELEMENT_CONTENT
-XML_RNGP_ELEMENT_EMPTY
-XML_RNGP_ELEMENT_NAME
-XML_RNGP_ELEMENT_NO_CONTENT
-XML_RNGP_ELEM_CONTENT_EMPTY
-XML_RNGP_ELEM_CONTENT_ERROR
-XML_RNGP_ELEM_TEXT_CONFLICT
-XML_RNGP_EMPTY
-XML_RNGP_EMPTY_CONSTRUCT
-XML_RNGP_EMPTY_CONTENT
-XML_RNGP_EMPTY_NOT_EMPTY
-XML_RNGP_ERROR_TYPE_LIB
-XML_RNGP_EXCEPT_EMPTY
-XML_RNGP_EXCEPT_MISSING
-XML_RNGP_EXCEPT_MULTIPLE
-XML_RNGP_EXCEPT_NO_CONTENT
-XML_RNGP_EXTERNALREF_EMTPY
-XML_RNGP_EXTERNALREF_RECURSE
-XML_RNGP_EXTERNAL_REF_FAILURE
-XML_RNGP_FORBIDDEN_ATTRIBUTE
-XML_RNGP_FOREIGN_ELEMENT
-XML_RNGP_GRAMMAR_CONTENT
-XML_RNGP_GRAMMAR_EMPTY
-XML_RNGP_GRAMMAR_MISSING
-XML_RNGP_GRAMMAR_NO_START
-XML_RNGP_GROUP_ATTR_CONFLICT
-XML_RNGP_HREF_ERROR
-XML_RNGP_INCLUDE_EMPTY
-XML_RNGP_INCLUDE_FAILURE
-XML_RNGP_INCLUDE_RECURSE
-XML_RNGP_INTERLEAVE_ADD
-XML_RNGP_INTERLEAVE_CREATE_FAILED
-XML_RNGP_INTERLEAVE_EMPTY
-XML_RNGP_INTERLEAVE_NO_CONTENT
-XML_RNGP_INVALID_DEFINE_NAME
-XML_RNGP_INVALID_URI
-XML_RNGP_INVALID_VALUE
-XML_RNGP_MISSING_HREF
-XML_RNGP_NAME_MISSING
-XML_RNGP_NEED_COMBINE
-XML_RNGP_NOTALLOWED_NOT_EMPTY
-XML_RNGP_NSNAME_ATTR_ANCESTOR
-XML_RNGP_NSNAME_NO_NS
-XML_RNGP_PARAM_FORBIDDEN
-XML_RNGP_PARAM_NAME_MISSING
-XML_RNGP_PARENTREF_CREATE_FAILED
-XML_RNGP_PARENTREF_NAME_INVALID
-XML_RNGP_PARENTREF_NOT_EMPTY
-XML_RNGP_PARENTREF_NO_NAME
-XML_RNGP_PARENTREF_NO_PARENT
-XML_RNGP_PARSE_ERROR
-XML_RNGP_PAT_ANYNAME_EXCEPT_ANYNAME
-XML_RNGP_PAT_ATTR_ATTR
-XML_RNGP_PAT_ATTR_ELEM
-XML_RNGP_PAT_DATA_EXCEPT_ATTR
-XML_RNGP_PAT_DATA_EXCEPT_ELEM
-XML_RNGP_PAT_DATA_EXCEPT_EMPTY
-XML_RNGP_PAT_DATA_EXCEPT_GROUP
-XML_RNGP_PAT_DATA_EXCEPT_INTERLEAVE
-XML_RNGP_PAT_DATA_EXCEPT_LIST
-XML_RNGP_PAT_DATA_EXCEPT_ONEMORE
-XML_RNGP_PAT_DATA_EXCEPT_REF
-XML_RNGP_PAT_DATA_EXCEPT_TEXT
-XML_RNGP_PAT_LIST_ATTR
-XML_RNGP_PAT_LIST_ELEM
-XML_RNGP_PAT_LIST_INTERLEAVE
-XML_RNGP_PAT_LIST_LIST
-XML_RNGP_PAT_LIST_REF
-XML_RNGP_PAT_LIST_TEXT
-XML_RNGP_PAT_NSNAME_EXCEPT_ANYNAME
-XML_RNGP_PAT_NSNAME_EXCEPT_NSNAME
-XML_RNGP_PAT_ONEMORE_GROUP_ATTR
-XML_RNGP_PAT_ONEMORE_INTERLEAVE_ATTR
-XML_RNGP_PAT_START_ATTR
-XML_RNGP_PAT_START_DATA
-XML_RNGP_PAT_START_EMPTY
-XML_RNGP_PAT_START_GROUP
-XML_RNGP_PAT_START_INTERLEAVE
-XML_RNGP_PAT_START_LIST
-XML_RNGP_PAT_START_ONEMORE
-XML_RNGP_PAT_START_TEXT
-XML_RNGP_PAT_START_VALUE
-XML_RNGP_PREFIX_UNDEFINED
-XML_RNGP_REF_CREATE_FAILED
-XML_RNGP_REF_CYCLE
-XML_RNGP_REF_NAME_INVALID
-XML_RNGP_REF_NOT_EMPTY
-XML_RNGP_REF_NO_DEF
-XML_RNGP_REF_NO_NAME
-XML_RNGP_START_CHOICE_AND_INTERLEAVE
-XML_RNGP_START_CONTENT
-XML_RNGP_START_EMPTY
-XML_RNGP_START_MISSING
-XML_RNGP_TEXT_EXPECTED
-XML_RNGP_TEXT_HAS_CHILD
-XML_RNGP_TYPE_MISSING
-XML_RNGP_TYPE_NOT_FOUND
-XML_RNGP_TYPE_VALUE
-XML_RNGP_UNKNOWN_ATTRIBUTE
-XML_RNGP_UNKNOWN_COMBINE
-XML_RNGP_UNKNOWN_CONSTRUCT
-XML_RNGP_UNKNOWN_TYPE_LIB
-XML_RNGP_URI_FRAGMENT
-XML_RNGP_URI_NOT_ABSOLUTE
-XML_RNGP_VALUE_EMPTY
-XML_RNGP_VALUE_NO_CONTENT
-XML_RNGP_XMLNS_NAME
-XML_RNGP_XML_NS
-XML_SAVE_CHAR_INVALID
-XML_SAVE_NOT_UTF8
-XML_SAVE_NO_DOCTYPE
-XML_SAVE_UNKNOWN_ENCODING
-XML_SCHEMAP_AG_PROPS_CORRECT
-XML_SCHEMAP_ATTRFORMDEFAULT_VALUE
-XML_SCHEMAP_ATTRGRP_NONAME_NOREF
-XML_SCHEMAP_ATTR_NONAME_NOREF
-XML_SCHEMAP_AU_PROPS_CORRECT
-XML_SCHEMAP_AU_PROPS_CORRECT_2
-XML_SCHEMAP_A_PROPS_CORRECT_2
-XML_SCHEMAP_A_PROPS_CORRECT_3
-XML_SCHEMAP_COMPLEXTYPE_NONAME_NOREF
-XML_SCHEMAP_COS_ALL_LIMITED
-XML_SCHEMAP_COS_CT_EXTENDS_1_1
-XML_SCHEMAP_COS_CT_EXTENDS_1_2
-XML_SCHEMAP_COS_CT_EXTENDS_1_3
-XML_SCHEMAP_COS_ST_DERIVED_OK_2_1
-XML_SCHEMAP_COS_ST_DERIVED_OK_2_2
-XML_SCHEMAP_COS_ST_RESTRICTS_1_1
-XML_SCHEMAP_COS_ST_RESTRICTS_1_2
-XML_SCHEMAP_COS_ST_RESTRICTS_1_3_1
-XML_SCHEMAP_COS_ST_RESTRICTS_1_3_2
-XML_SCHEMAP_COS_ST_RESTRICTS_2_1
-XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_1
-XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_2
-XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_1
-XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_2
-XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_3
-XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_4
-XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_5
-XML_SCHEMAP_COS_ST_RESTRICTS_3_1
-XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1
-XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1_2
-XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_1
-XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_2
-XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_3
-XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_4
-XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_5
-XML_SCHEMAP_COS_VALID_DEFAULT_1
-XML_SCHEMAP_COS_VALID_DEFAULT_2_1
-XML_SCHEMAP_COS_VALID_DEFAULT_2_2_1
-XML_SCHEMAP_COS_VALID_DEFAULT_2_2_2
-XML_SCHEMAP_CT_PROPS_CORRECT_1
-XML_SCHEMAP_CT_PROPS_CORRECT_2
-XML_SCHEMAP_CT_PROPS_CORRECT_3
-XML_SCHEMAP_CT_PROPS_CORRECT_4
-XML_SCHEMAP_CT_PROPS_CORRECT_5
-XML_SCHEMAP_CVC_SIMPLE_TYPE
-XML_SCHEMAP_C_PROPS_CORRECT
-XML_SCHEMAP_DEF_AND_PREFIX
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_1
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_2
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_3
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_1
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_2
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_3
-XML_SCHEMAP_ELEMFORMDEFAULT_VALUE
-XML_SCHEMAP_ELEM_DEFAULT_FIXED
-XML_SCHEMAP_ELEM_NONAME_NOREF
-XML_SCHEMAP_EXTENSION_NO_BASE
-XML_SCHEMAP_E_PROPS_CORRECT_2
-XML_SCHEMAP_E_PROPS_CORRECT_3
-XML_SCHEMAP_E_PROPS_CORRECT_4
-XML_SCHEMAP_E_PROPS_CORRECT_5
-XML_SCHEMAP_E_PROPS_CORRECT_6
-XML_SCHEMAP_FACET_NO_VALUE
-XML_SCHEMAP_FAILED_BUILD_IMPORT
-XML_SCHEMAP_FAILED_LOAD
-XML_SCHEMAP_FAILED_PARSE
-XML_SCHEMAP_GROUP_NONAME_NOREF
-XML_SCHEMAP_IMPORT_NAMESPACE_NOT_URI
-XML_SCHEMAP_IMPORT_REDEFINE_NSNAME
-XML_SCHEMAP_IMPORT_SCHEMA_NOT_URI
-XML_SCHEMAP_INCLUDE_SCHEMA_NOT_URI
-XML_SCHEMAP_INCLUDE_SCHEMA_NO_URI
-XML_SCHEMAP_INTERNAL
-XML_SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE
-XML_SCHEMAP_INVALID_ATTR_COMBINATION
-XML_SCHEMAP_INVALID_ATTR_INLINE_COMBINATION
-XML_SCHEMAP_INVALID_ATTR_NAME
-XML_SCHEMAP_INVALID_ATTR_USE
-XML_SCHEMAP_INVALID_BOOLEAN
-XML_SCHEMAP_INVALID_ENUM
-XML_SCHEMAP_INVALID_FACET
-XML_SCHEMAP_INVALID_FACET_VALUE
-XML_SCHEMAP_INVALID_MAXOCCURS
-XML_SCHEMAP_INVALID_MINOCCURS
-XML_SCHEMAP_INVALID_REF_AND_SUBTYPE
-XML_SCHEMAP_INVALID_WHITE_SPACE
-XML_SCHEMAP_MG_PROPS_CORRECT_1
-XML_SCHEMAP_MG_PROPS_CORRECT_2
-XML_SCHEMAP_MISSING_SIMPLETYPE_CHILD
-XML_SCHEMAP_NOATTR_NOREF
-XML_SCHEMAP_NOROOT
-XML_SCHEMAP_NOTATION_NO_NAME
-XML_SCHEMAP_NOTHING_TO_PARSE
-XML_SCHEMAP_NOTYPE_NOREF
-XML_SCHEMAP_NOT_DETERMINISTIC
-XML_SCHEMAP_NOT_SCHEMA
-XML_SCHEMAP_NO_XMLNS
-XML_SCHEMAP_NO_XSI
-XML_SCHEMAP_PREFIX_UNDEFINED
-XML_SCHEMAP_P_PROPS_CORRECT_1
-XML_SCHEMAP_P_PROPS_CORRECT_2_1
-XML_SCHEMAP_P_PROPS_CORRECT_2_2
-XML_SCHEMAP_RECURSIVE
-XML_SCHEMAP_REDEFINED_ATTR
-XML_SCHEMAP_REDEFINED_ATTRGROUP
-XML_SCHEMAP_REDEFINED_ELEMENT
-XML_SCHEMAP_REDEFINED_GROUP
-XML_SCHEMAP_REDEFINED_NOTATION
-XML_SCHEMAP_REDEFINED_TYPE
-XML_SCHEMAP_REF_AND_CONTENT
-XML_SCHEMAP_REF_AND_SUBTYPE
-XML_SCHEMAP_REGEXP_INVALID
-XML_SCHEMAP_RESTRICTION_NONAME_NOREF
-XML_SCHEMAP_S4S_ATTR_INVALID_VALUE
-XML_SCHEMAP_S4S_ATTR_MISSING
-XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED
-XML_SCHEMAP_S4S_ELEM_MISSING
-XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED
-XML_SCHEMAP_SIMPLETYPE_NONAME
-XML_SCHEMAP_SRC_ATTRIBUTE_1
-XML_SCHEMAP_SRC_ATTRIBUTE_2
-XML_SCHEMAP_SRC_ATTRIBUTE_3_1
-XML_SCHEMAP_SRC_ATTRIBUTE_3_2
-XML_SCHEMAP_SRC_ATTRIBUTE_4
-XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_1
-XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_2
-XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_3
-XML_SCHEMAP_SRC_CT_1
-XML_SCHEMAP_SRC_ELEMENT_1
-XML_SCHEMAP_SRC_ELEMENT_2_1
-XML_SCHEMAP_SRC_ELEMENT_2_2
-XML_SCHEMAP_SRC_ELEMENT_3
-XML_SCHEMAP_SRC_IMPORT
-XML_SCHEMAP_SRC_IMPORT_1_1
-XML_SCHEMAP_SRC_IMPORT_1_2
-XML_SCHEMAP_SRC_IMPORT_2
-XML_SCHEMAP_SRC_IMPORT_2_1
-XML_SCHEMAP_SRC_IMPORT_2_2
-XML_SCHEMAP_SRC_IMPORT_3_1
-XML_SCHEMAP_SRC_IMPORT_3_2
-XML_SCHEMAP_SRC_INCLUDE
-XML_SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE
-XML_SCHEMAP_SRC_REDEFINE
-XML_SCHEMAP_SRC_RESOLVE
-XML_SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE
-XML_SCHEMAP_SRC_SIMPLE_TYPE_1
-XML_SCHEMAP_SRC_SIMPLE_TYPE_2
-XML_SCHEMAP_SRC_SIMPLE_TYPE_3
-XML_SCHEMAP_SRC_SIMPLE_TYPE_4
-XML_SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES
-XML_SCHEMAP_ST_PROPS_CORRECT_1
-XML_SCHEMAP_ST_PROPS_CORRECT_2
-XML_SCHEMAP_ST_PROPS_CORRECT_3
-XML_SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE
-XML_SCHEMAP_TYPE_AND_SUBTYPE
-XML_SCHEMAP_UNION_NOT_EXPRESSIBLE
-XML_SCHEMAP_UNKNOWN_ALL_CHILD
-XML_SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD
-XML_SCHEMAP_UNKNOWN_ATTRGRP_CHILD
-XML_SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP
-XML_SCHEMAP_UNKNOWN_ATTR_CHILD
-XML_SCHEMAP_UNKNOWN_BASE_TYPE
-XML_SCHEMAP_UNKNOWN_CHOICE_CHILD
-XML_SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD
-XML_SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD
-XML_SCHEMAP_UNKNOWN_ELEM_CHILD
-XML_SCHEMAP_UNKNOWN_EXTENSION_CHILD
-XML_SCHEMAP_UNKNOWN_FACET_CHILD
-XML_SCHEMAP_UNKNOWN_FACET_TYPE
-XML_SCHEMAP_UNKNOWN_GROUP_CHILD
-XML_SCHEMAP_UNKNOWN_IMPORT_CHILD
-XML_SCHEMAP_UNKNOWN_INCLUDE_CHILD
-XML_SCHEMAP_UNKNOWN_LIST_CHILD
-XML_SCHEMAP_UNKNOWN_MEMBER_TYPE
-XML_SCHEMAP_UNKNOWN_NOTATION_CHILD
-XML_SCHEMAP_UNKNOWN_PREFIX
-XML_SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD
-XML_SCHEMAP_UNKNOWN_REF
-XML_SCHEMAP_UNKNOWN_RESTRICTION_CHILD
-XML_SCHEMAP_UNKNOWN_SCHEMAS_CHILD
-XML_SCHEMAP_UNKNOWN_SEQUENCE_CHILD
-XML_SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD
-XML_SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD
-XML_SCHEMAP_UNKNOWN_TYPE
-XML_SCHEMAP_UNKNOWN_UNION_CHILD
-XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH
-XML_SCHEMAP_WARN_ATTR_REDECL_PROH
-XML_SCHEMAP_WARN_SKIP_SCHEMA
-XML_SCHEMAP_WARN_UNLOCATED_SCHEMA
-XML_SCHEMAP_WILDCARD_INVALID_NS_MEMBER
-XML_SCHEMAV_ATTRINVALID
-XML_SCHEMAV_ATTRUNKNOWN
-XML_SCHEMAV_CONSTRUCT
-XML_SCHEMAV_CVC_ATTRIBUTE_1
-XML_SCHEMAV_CVC_ATTRIBUTE_2
-XML_SCHEMAV_CVC_ATTRIBUTE_3
-XML_SCHEMAV_CVC_ATTRIBUTE_4
-XML_SCHEMAV_CVC_AU
-XML_SCHEMAV_CVC_COMPLEX_TYPE_1
-XML_SCHEMAV_CVC_COMPLEX_TYPE_2_1
-XML_SCHEMAV_CVC_COMPLEX_TYPE_2_2
-XML_SCHEMAV_CVC_COMPLEX_TYPE_2_3
-XML_SCHEMAV_CVC_COMPLEX_TYPE_2_4
-XML_SCHEMAV_CVC_COMPLEX_TYPE_3_1
-XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_1
-XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_2
-XML_SCHEMAV_CVC_COMPLEX_TYPE_4
-XML_SCHEMAV_CVC_COMPLEX_TYPE_5_1
-XML_SCHEMAV_CVC_COMPLEX_TYPE_5_2
-XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_1
-XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_2
-XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_3
-XML_SCHEMAV_CVC_ELT_1
-XML_SCHEMAV_CVC_ELT_2
-XML_SCHEMAV_CVC_ELT_3_1
-XML_SCHEMAV_CVC_ELT_3_2_1
-XML_SCHEMAV_CVC_ELT_3_2_2
-XML_SCHEMAV_CVC_ELT_4_1
-XML_SCHEMAV_CVC_ELT_4_2
-XML_SCHEMAV_CVC_ELT_4_3
-XML_SCHEMAV_CVC_ELT_5_1_1
-XML_SCHEMAV_CVC_ELT_5_1_2
-XML_SCHEMAV_CVC_ELT_5_2_1
-XML_SCHEMAV_CVC_ELT_5_2_2_1
-XML_SCHEMAV_CVC_ELT_5_2_2_2_1
-XML_SCHEMAV_CVC_ELT_5_2_2_2_2
-XML_SCHEMAV_CVC_ELT_6
-XML_SCHEMAV_CVC_ELT_7
-XML_SCHEMAV_CVC_ENUMERATION_VALID
-XML_SCHEMAV_CVC_FACET_VALID
-XML_SCHEMAV_CVC_FRACTIONDIGITS_VALID
-XML_SCHEMAV_CVC_IDC
-XML_SCHEMAV_CVC_LENGTH_VALID
-XML_SCHEMAV_CVC_MAXEXCLUSIVE_VALID
-XML_SCHEMAV_CVC_MAXINCLUSIVE_VALID
-XML_SCHEMAV_CVC_MAXLENGTH_VALID
-XML_SCHEMAV_CVC_MINEXCLUSIVE_VALID
-XML_SCHEMAV_CVC_MININCLUSIVE_VALID
-XML_SCHEMAV_CVC_MINLENGTH_VALID
-XML_SCHEMAV_CVC_PATTERN_VALID
-XML_SCHEMAV_CVC_TOTALDIGITS_VALID
-XML_SCHEMAV_CVC_TYPE_1
-XML_SCHEMAV_CVC_TYPE_2
-XML_SCHEMAV_CVC_TYPE_3_1_1
-XML_SCHEMAV_CVC_TYPE_3_1_2
-XML_SCHEMAV_CVC_WILDCARD
-XML_SCHEMAV_DOCUMENT_ELEMENT_MISSING
-XML_SCHEMAV_ELEMCONT
-XML_SCHEMAV_ELEMENT_CONTENT
-XML_SCHEMAV_EXTRACONTENT
-XML_SCHEMAV_FACET
-XML_SCHEMAV_HAVEDEFAULT
-XML_SCHEMAV_INTERNAL
-XML_SCHEMAV_INVALIDATTR
-XML_SCHEMAV_INVALIDELEM
-XML_SCHEMAV_ISABSTRACT
-XML_SCHEMAV_MISC
-XML_SCHEMAV_MISSING
-XML_SCHEMAV_NOROLLBACK
-XML_SCHEMAV_NOROOT
-XML_SCHEMAV_NOTDETERMINIST
-XML_SCHEMAV_NOTEMPTY
-XML_SCHEMAV_NOTNILLABLE
-XML_SCHEMAV_NOTSIMPLE
-XML_SCHEMAV_NOTTOPLEVEL
-XML_SCHEMAV_NOTYPE
-XML_SCHEMAV_UNDECLAREDELEM
-XML_SCHEMAV_VALUE
-XML_SCHEMAV_WRONGELEM
-XML_TREE_INVALID_DEC
-XML_TREE_INVALID_HEX
-XML_TREE_UNTERMINATED_ENTITY
-XML_WAR_CATALOG_PI
-XML_WAR_ENTITY_REDEFINED
-XML_WAR_LANG_VALUE
-XML_WAR_NS_COLUMN
-XML_WAR_NS_URI
-XML_WAR_NS_URI_RELATIVE
-XML_WAR_SPACE_VALUE
-XML_WAR_UNDECLARED_ENTITY
-XML_WAR_UNKNOWN_VERSION
-XML_XINCLUDE_BUILD_FAILED
-XML_XINCLUDE_DEPRECATED_NS
-XML_XINCLUDE_ENTITY_DEF_MISMATCH
-XML_XINCLUDE_FALLBACKS_IN_INCLUDE
-XML_XINCLUDE_FALLBACK_NOT_IN_INCLUDE
-XML_XINCLUDE_FRAGMENT_ID
-XML_XINCLUDE_HREF_URI
-XML_XINCLUDE_INCLUDE_IN_INCLUDE
-XML_XINCLUDE_INVALID_CHAR
-XML_XINCLUDE_MULTIPLE_ROOT
-XML_XINCLUDE_NO_FALLBACK
-XML_XINCLUDE_NO_HREF
-XML_XINCLUDE_PARSE_VALUE
-XML_XINCLUDE_RECURSION
-XML_XINCLUDE_TEXT_DOCUMENT
-XML_XINCLUDE_TEXT_FRAGMENT
-XML_XINCLUDE_UNKNOWN_ENCODING
-XML_XINCLUDE_XPTR_FAILED
-XML_XINCLUDE_XPTR_RESULT
-XML_XPATH_ENCODING_ERROR
-XML_XPATH_EXPRESSION_OK
-XML_XPATH_EXPR_ERROR
-XML_XPATH_INVALID_ARITY
-XML_XPATH_INVALID_CHAR_ERROR
-XML_XPATH_INVALID_CTXT_POSITION
-XML_XPATH_INVALID_CTXT_SIZE
-XML_XPATH_INVALID_OPERAND
-XML_XPATH_INVALID_PREDICATE_ERROR
-XML_XPATH_INVALID_TYPE
-XML_XPATH_MEMORY_ERROR
-XML_XPATH_NUMBER_ERROR
-XML_XPATH_START_LITERAL_ERROR
-XML_XPATH_UNCLOSED_ERROR
-XML_XPATH_UNDEF_PREFIX_ERROR
-XML_XPATH_UNDEF_VARIABLE_ERROR
-XML_XPATH_UNFINISHED_LITERAL_ERROR
-XML_XPATH_UNKNOWN_FUNC_ERROR
-XML_XPATH_VARIABLE_REF_ERROR
-XML_XPTR_CHILDSEQ_START
-XML_XPTR_EVAL_FAILED
-XML_XPTR_EXTRA_OBJECTS
-XML_XPTR_RESOURCE_ERROR
-XML_XPTR_SUB_RESOURCE_ERROR
-XML_XPTR_SYNTAX_ERROR
-XML_XPTR_UNKNOWN_SCHEME
-_xmlError
-initGenericErrorDefaultFunc
-xmlCopyError
-xmlCtxtGetLastError
-xmlCtxtResetLastError
-xmlError
-xmlErrorDomain
-xmlErrorLevel
-xmlErrorPtr
-xmlGenericErrorFunc
-xmlGetLastError
-xmlParserError
-xmlParserErrors
-xmlParserPrintFileContext
-xmlParserPrintFileInfo
-xmlParserValidityError
-xmlParserValidityWarning
-xmlParserWarning
-xmlResetError
-xmlResetLastError
-xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-xmlStructuredErrorFunc
-

Module xmlexports:

LIBXML_DLL_IMPORT
-XMLCALL
-XMLCDECL
-XMLPUBFUN
-XMLPUBVAR
-_REENTRANT
-

Module xmlmemory:

DEBUG_MEMORY
-xmlCleanupMemory
-xmlFreeFunc
-xmlGcMemGet
-xmlGcMemSetup
-xmlInitMemory
-xmlMalloc
-xmlMallocAtomic
-xmlMallocAtomicLoc
-xmlMallocFunc
-xmlMallocLoc
-xmlMemBlocks
-xmlMemDisplay
-xmlMemFree
-xmlMemGet
-xmlMemMalloc
-xmlMemRealloc
-xmlMemSetup
-xmlMemShow
-xmlMemStrdup
-xmlMemStrdupLoc
-xmlMemUsed
-xmlMemoryDump
-xmlMemoryStrdup
-xmlRealloc
-xmlReallocFunc
-xmlReallocLoc
-xmlStrdupFunc
-

Module xmlmodule:

XML_MODULE_LAZY
-XML_MODULE_LOCAL
-xmlModule
-xmlModuleClose
-xmlModuleFree
-xmlModuleOpen
-xmlModuleOption
-xmlModulePtr
-xmlModuleSymbol
-

Module xmlreader:

XML_PARSER_DEFAULTATTRS
-XML_PARSER_LOADDTD
-XML_PARSER_SEVERITY_ERROR
-XML_PARSER_SEVERITY_VALIDITY_ERROR
-XML_PARSER_SEVERITY_VALIDITY_WARNING
-XML_PARSER_SEVERITY_WARNING
-XML_PARSER_SUBST_ENTITIES
-XML_PARSER_VALIDATE
-XML_READER_TYPE_ATTRIBUTE
-XML_READER_TYPE_CDATA
-XML_READER_TYPE_COMMENT
-XML_READER_TYPE_DOCUMENT
-XML_READER_TYPE_DOCUMENT_FRAGMENT
-XML_READER_TYPE_DOCUMENT_TYPE
-XML_READER_TYPE_ELEMENT
-XML_READER_TYPE_END_ELEMENT
-XML_READER_TYPE_END_ENTITY
-XML_READER_TYPE_ENTITY
-XML_READER_TYPE_ENTITY_REFERENCE
-XML_READER_TYPE_NONE
-XML_READER_TYPE_NOTATION
-XML_READER_TYPE_PROCESSING_INSTRUCTION
-XML_READER_TYPE_SIGNIFICANT_WHITESPACE
-XML_READER_TYPE_TEXT
-XML_READER_TYPE_WHITESPACE
-XML_READER_TYPE_XML_DECLARATION
-XML_TEXTREADER_MODE_CLOSED
-XML_TEXTREADER_MODE_EOF
-XML_TEXTREADER_MODE_ERROR
-XML_TEXTREADER_MODE_INITIAL
-XML_TEXTREADER_MODE_INTERACTIVE
-XML_TEXTREADER_MODE_READING
-xmlFreeTextReader
-xmlNewTextReader
-xmlNewTextReaderFilename
-xmlParserProperties
-xmlParserSeverities
-xmlReaderForDoc
-xmlReaderForFd
-xmlReaderForFile
-xmlReaderForIO
-xmlReaderForMemory
-xmlReaderNewDoc
-xmlReaderNewFd
-xmlReaderNewFile
-xmlReaderNewIO
-xmlReaderNewMemory
-xmlReaderNewWalker
-xmlReaderTypes
-xmlReaderWalker
-xmlTextReader
-xmlTextReaderAttributeCount
-xmlTextReaderBaseUri
-xmlTextReaderByteConsumed
-xmlTextReaderClose
-xmlTextReaderConstBaseUri
-xmlTextReaderConstEncoding
-xmlTextReaderConstLocalName
-xmlTextReaderConstName
-xmlTextReaderConstNamespaceUri
-xmlTextReaderConstPrefix
-xmlTextReaderConstString
-xmlTextReaderConstValue
-xmlTextReaderConstXmlLang
-xmlTextReaderConstXmlVersion
-xmlTextReaderCurrentDoc
-xmlTextReaderCurrentNode
-xmlTextReaderDepth
-xmlTextReaderErrorFunc
-xmlTextReaderExpand
-xmlTextReaderGetAttribute
-xmlTextReaderGetAttributeNo
-xmlTextReaderGetAttributeNs
-xmlTextReaderGetErrorHandler
-xmlTextReaderGetParserColumnNumber
-xmlTextReaderGetParserLineNumber
-xmlTextReaderGetParserProp
-xmlTextReaderGetRemainder
-xmlTextReaderHasAttributes
-xmlTextReaderHasValue
-xmlTextReaderIsDefault
-xmlTextReaderIsEmptyElement
-xmlTextReaderIsNamespaceDecl
-xmlTextReaderIsValid
-xmlTextReaderLocalName
-xmlTextReaderLocatorBaseURI
-xmlTextReaderLocatorLineNumber
-xmlTextReaderLocatorPtr
-xmlTextReaderLookupNamespace
-xmlTextReaderMode
-xmlTextReaderMoveToAttribute
-xmlTextReaderMoveToAttributeNo
-xmlTextReaderMoveToAttributeNs
-xmlTextReaderMoveToElement
-xmlTextReaderMoveToFirstAttribute
-xmlTextReaderMoveToNextAttribute
-xmlTextReaderName
-xmlTextReaderNamespaceUri
-xmlTextReaderNext
-xmlTextReaderNextSibling
-xmlTextReaderNodeType
-xmlTextReaderNormalization
-xmlTextReaderPrefix
-xmlTextReaderPreserve
-xmlTextReaderPreservePattern
-xmlTextReaderPtr
-xmlTextReaderQuoteChar
-xmlTextReaderRead
-xmlTextReaderReadAttributeValue
-xmlTextReaderReadInnerXml
-xmlTextReaderReadOuterXml
-xmlTextReaderReadState
-xmlTextReaderReadString
-xmlTextReaderRelaxNGSetSchema
-xmlTextReaderRelaxNGValidate
-xmlTextReaderSchemaValidate
-xmlTextReaderSchemaValidateCtxt
-xmlTextReaderSetErrorHandler
-xmlTextReaderSetParserProp
-xmlTextReaderSetSchema
-xmlTextReaderSetStructuredErrorHandler
-xmlTextReaderStandalone
-xmlTextReaderValue
-xmlTextReaderXmlLang
-

Module xmlregexp:

XML_EXP_ATOM
-XML_EXP_COUNT
-XML_EXP_EMPTY
-XML_EXP_FORBID
-XML_EXP_OR
-XML_EXP_SEQ
-emptyExp
-forbiddenExp
-xmlExpCtxt
-xmlExpCtxtNbCons
-xmlExpCtxtNbNodes
-xmlExpCtxtPtr
-xmlExpDump
-xmlExpExpDerive
-xmlExpFree
-xmlExpFreeCtxt
-xmlExpGetLanguage
-xmlExpGetStart
-xmlExpIsNillable
-xmlExpMaxToken
-xmlExpNewAtom
-xmlExpNewCtxt
-xmlExpNewOr
-xmlExpNewRange
-xmlExpNewSeq
-xmlExpNode
-xmlExpNodePtr
-xmlExpNodeType
-xmlExpParse
-xmlExpRef
-xmlExpStringDerive
-xmlExpSubsume
-xmlRegExecCallbacks
-xmlRegExecCtxt
-xmlRegExecCtxtPtr
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlRegExecPushString
-xmlRegExecPushString2
-xmlRegFreeExecCtxt
-xmlRegFreeRegexp
-xmlRegNewExecCtxt
-xmlRegexp
-xmlRegexpCompile
-xmlRegexpExec
-xmlRegexpIsDeterminist
-xmlRegexpPrint
-xmlRegexpPtr
-

Module xmlsave:

XML_SAVE_FORMAT
-XML_SAVE_NO_DECL
-XML_SAVE_NO_EMPTY
-XML_SAVE_NO_XHTML
-xmlSaveClose
-xmlSaveCtxt
-xmlSaveCtxtPtr
-xmlSaveDoc
-xmlSaveFlush
-xmlSaveOption
-xmlSaveSetAttrEscape
-xmlSaveSetEscape
-xmlSaveToBuffer
-xmlSaveToFd
-xmlSaveToFilename
-xmlSaveToIO
-xmlSaveTree
-

Module xmlschemas:

XML_SCHEMAS_ERR_
-XML_SCHEMAS_ERR_ATTRINVALID
-XML_SCHEMAS_ERR_ATTRUNKNOWN
-XML_SCHEMAS_ERR_CONSTRUCT
-XML_SCHEMAS_ERR_ELEMCONT
-XML_SCHEMAS_ERR_EXTRACONTENT
-XML_SCHEMAS_ERR_FACET
-XML_SCHEMAS_ERR_HAVEDEFAULT
-XML_SCHEMAS_ERR_INTERNAL
-XML_SCHEMAS_ERR_INVALIDATTR
-XML_SCHEMAS_ERR_INVALIDELEM
-XML_SCHEMAS_ERR_ISABSTRACT
-XML_SCHEMAS_ERR_MISSING
-XML_SCHEMAS_ERR_NOROLLBACK
-XML_SCHEMAS_ERR_NOROOT
-XML_SCHEMAS_ERR_NOTDETERMINIST
-XML_SCHEMAS_ERR_NOTEMPTY
-XML_SCHEMAS_ERR_NOTNILLABLE
-XML_SCHEMAS_ERR_NOTSIMPLE
-XML_SCHEMAS_ERR_NOTTOPLEVEL
-XML_SCHEMAS_ERR_NOTYPE
-XML_SCHEMAS_ERR_OK
-XML_SCHEMAS_ERR_UNDECLAREDELEM
-XML_SCHEMAS_ERR_VALUE
-XML_SCHEMAS_ERR_WRONGELEM
-XML_SCHEMAS_ERR_XXX
-XML_SCHEMA_VAL_VC_I_CREATE
-xmlSchema
-xmlSchemaDump
-xmlSchemaFree
-xmlSchemaFreeParserCtxt
-xmlSchemaFreeValidCtxt
-xmlSchemaGetParserErrors
-xmlSchemaGetValidErrors
-xmlSchemaIsValid
-xmlSchemaNewDocParserCtxt
-xmlSchemaNewMemParserCtxt
-xmlSchemaNewParserCtxt
-xmlSchemaNewValidCtxt
-xmlSchemaParse
-xmlSchemaParserCtxt
-xmlSchemaParserCtxtPtr
-xmlSchemaPtr
-xmlSchemaSAXPlug
-xmlSchemaSAXPlugPtr
-xmlSchemaSAXPlugStruct
-xmlSchemaSAXUnplug
-xmlSchemaSetParserErrors
-xmlSchemaSetParserStructuredErrors
-xmlSchemaSetValidErrors
-xmlSchemaSetValidOptions
-xmlSchemaSetValidStructuredErrors
-xmlSchemaValidCtxt
-xmlSchemaValidCtxtGetOptions
-xmlSchemaValidCtxtPtr
-xmlSchemaValidError
-xmlSchemaValidOption
-xmlSchemaValidateDoc
-xmlSchemaValidateFile
-xmlSchemaValidateOneElement
-xmlSchemaValidateStream
-xmlSchemaValidityErrorFunc
-xmlSchemaValidityWarningFunc
-

Module xmlschemastypes:

XML_SCHEMA_WHITESPACE_COLLAPSE
-XML_SCHEMA_WHITESPACE_PRESERVE
-XML_SCHEMA_WHITESPACE_REPLACE
-XML_SCHEMA_WHITESPACE_UNKNOWN
-xmlSchemaCheckFacet
-xmlSchemaCleanupTypes
-xmlSchemaCollapseString
-xmlSchemaCompareValues
-xmlSchemaCompareValuesWhtsp
-xmlSchemaCopyValue
-xmlSchemaFreeFacet
-xmlSchemaFreeValue
-xmlSchemaGetBuiltInListSimpleTypeItemType
-xmlSchemaGetBuiltInType
-xmlSchemaGetCanonValue
-xmlSchemaGetCanonValueWhtsp
-xmlSchemaGetFacetValueAsULong
-xmlSchemaGetPredefinedType
-xmlSchemaGetValType
-xmlSchemaInitTypes
-xmlSchemaIsBuiltInTypeFacet
-xmlSchemaNewFacet
-xmlSchemaNewNOTATIONValue
-xmlSchemaNewQNameValue
-xmlSchemaNewStringValue
-xmlSchemaValPredefTypeNode
-xmlSchemaValPredefTypeNodeNoNorm
-xmlSchemaValidateFacet
-xmlSchemaValidateFacetWhtsp
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-xmlSchemaValidateListSimpleTypeFacet
-xmlSchemaValidatePredefinedType
-xmlSchemaValueAppend
-xmlSchemaValueGetAsBoolean
-xmlSchemaValueGetAsString
-xmlSchemaValueGetNext
-xmlSchemaWhiteSpaceReplace
-xmlSchemaWhitespaceValueType
-

Module xmlstring:

BAD_CAST
-xmlChar
-xmlCharStrdup
-xmlCharStrndup
-xmlCheckUTF8
-xmlGetUTF8Char
-xmlStrEqual
-xmlStrPrintf
-xmlStrQEqual
-xmlStrVPrintf
-xmlStrcasecmp
-xmlStrcasestr
-xmlStrcat
-xmlStrchr
-xmlStrcmp
-xmlStrdup
-xmlStrlen
-xmlStrncasecmp
-xmlStrncat
-xmlStrncatNew
-xmlStrncmp
-xmlStrndup
-xmlStrstr
-xmlStrsub
-xmlUTF8Charcmp
-xmlUTF8Size
-xmlUTF8Strlen
-xmlUTF8Strloc
-xmlUTF8Strndup
-xmlUTF8Strpos
-xmlUTF8Strsize
-xmlUTF8Strsub
-

Module xmlunicode:

xmlUCSIsAegeanNumbers
-xmlUCSIsAlphabeticPresentationForms
-xmlUCSIsArabic
-xmlUCSIsArabicPresentationFormsA
-xmlUCSIsArabicPresentationFormsB
-xmlUCSIsArmenian
-xmlUCSIsArrows
-xmlUCSIsBasicLatin
-xmlUCSIsBengali
-xmlUCSIsBlock
-xmlUCSIsBlockElements
-xmlUCSIsBopomofo
-xmlUCSIsBopomofoExtended
-xmlUCSIsBoxDrawing
-xmlUCSIsBraillePatterns
-xmlUCSIsBuhid
-xmlUCSIsByzantineMusicalSymbols
-xmlUCSIsCJKCompatibility
-xmlUCSIsCJKCompatibilityForms
-xmlUCSIsCJKCompatibilityIdeographs
-xmlUCSIsCJKCompatibilityIdeographsSupplement
-xmlUCSIsCJKRadicalsSupplement
-xmlUCSIsCJKSymbolsandPunctuation
-xmlUCSIsCJKUnifiedIdeographs
-xmlUCSIsCJKUnifiedIdeographsExtensionA
-xmlUCSIsCJKUnifiedIdeographsExtensionB
-xmlUCSIsCat
-xmlUCSIsCatC
-xmlUCSIsCatCc
-xmlUCSIsCatCf
-xmlUCSIsCatCo
-xmlUCSIsCatCs
-xmlUCSIsCatL
-xmlUCSIsCatLl
-xmlUCSIsCatLm
-xmlUCSIsCatLo
-xmlUCSIsCatLt
-xmlUCSIsCatLu
-xmlUCSIsCatM
-xmlUCSIsCatMc
-xmlUCSIsCatMe
-xmlUCSIsCatMn
-xmlUCSIsCatN
-xmlUCSIsCatNd
-xmlUCSIsCatNl
-xmlUCSIsCatNo
-xmlUCSIsCatP
-xmlUCSIsCatPc
-xmlUCSIsCatPd
-xmlUCSIsCatPe
-xmlUCSIsCatPf
-xmlUCSIsCatPi
-xmlUCSIsCatPo
-xmlUCSIsCatPs
-xmlUCSIsCatS
-xmlUCSIsCatSc
-xmlUCSIsCatSk
-xmlUCSIsCatSm
-xmlUCSIsCatSo
-xmlUCSIsCatZ
-xmlUCSIsCatZl
-xmlUCSIsCatZp
-xmlUCSIsCatZs
-xmlUCSIsCherokee
-xmlUCSIsCombiningDiacriticalMarks
-xmlUCSIsCombiningDiacriticalMarksforSymbols
-xmlUCSIsCombiningHalfMarks
-xmlUCSIsCombiningMarksforSymbols
-xmlUCSIsControlPictures
-xmlUCSIsCurrencySymbols
-xmlUCSIsCypriotSyllabary
-xmlUCSIsCyrillic
-xmlUCSIsCyrillicSupplement
-xmlUCSIsDeseret
-xmlUCSIsDevanagari
-xmlUCSIsDingbats
-xmlUCSIsEnclosedAlphanumerics
-xmlUCSIsEnclosedCJKLettersandMonths
-xmlUCSIsEthiopic
-xmlUCSIsGeneralPunctuation
-xmlUCSIsGeometricShapes
-xmlUCSIsGeorgian
-xmlUCSIsGothic
-xmlUCSIsGreek
-xmlUCSIsGreekExtended
-xmlUCSIsGreekandCoptic
-xmlUCSIsGujarati
-xmlUCSIsGurmukhi
-xmlUCSIsHalfwidthandFullwidthForms
-xmlUCSIsHangulCompatibilityJamo
-xmlUCSIsHangulJamo
-xmlUCSIsHangulSyllables
-xmlUCSIsHanunoo
-xmlUCSIsHebrew
-xmlUCSIsHighPrivateUseSurrogates
-xmlUCSIsHighSurrogates
-xmlUCSIsHiragana
-xmlUCSIsIPAExtensions
-xmlUCSIsIdeographicDescriptionCharacters
-xmlUCSIsKanbun
-xmlUCSIsKangxiRadicals
-xmlUCSIsKannada
-xmlUCSIsKatakana
-xmlUCSIsKatakanaPhoneticExtensions
-xmlUCSIsKhmer
-xmlUCSIsKhmerSymbols
-xmlUCSIsLao
-xmlUCSIsLatin1Supplement
-xmlUCSIsLatinExtendedA
-xmlUCSIsLatinExtendedAdditional
-xmlUCSIsLatinExtendedB
-xmlUCSIsLetterlikeSymbols
-xmlUCSIsLimbu
-xmlUCSIsLinearBIdeograms
-xmlUCSIsLinearBSyllabary
-xmlUCSIsLowSurrogates
-xmlUCSIsMalayalam
-xmlUCSIsMathematicalAlphanumericSymbols
-xmlUCSIsMathematicalOperators
-xmlUCSIsMiscellaneousMathematicalSymbolsA
-xmlUCSIsMiscellaneousMathematicalSymbolsB
-xmlUCSIsMiscellaneousSymbols
-xmlUCSIsMiscellaneousSymbolsandArrows
-xmlUCSIsMiscellaneousTechnical
-xmlUCSIsMongolian
-xmlUCSIsMusicalSymbols
-xmlUCSIsMyanmar
-xmlUCSIsNumberForms
-xmlUCSIsOgham
-xmlUCSIsOldItalic
-xmlUCSIsOpticalCharacterRecognition
-xmlUCSIsOriya
-xmlUCSIsOsmanya
-xmlUCSIsPhoneticExtensions
-xmlUCSIsPrivateUse
-xmlUCSIsPrivateUseArea
-xmlUCSIsRunic
-xmlUCSIsShavian
-xmlUCSIsSinhala
-xmlUCSIsSmallFormVariants
-xmlUCSIsSpacingModifierLetters
-xmlUCSIsSpecials
-xmlUCSIsSuperscriptsandSubscripts
-xmlUCSIsSupplementalArrowsA
-xmlUCSIsSupplementalArrowsB
-xmlUCSIsSupplementalMathematicalOperators
-xmlUCSIsSupplementaryPrivateUseAreaA
-xmlUCSIsSupplementaryPrivateUseAreaB
-xmlUCSIsSyriac
-xmlUCSIsTagalog
-xmlUCSIsTagbanwa
-xmlUCSIsTags
-xmlUCSIsTaiLe
-xmlUCSIsTaiXuanJingSymbols
-xmlUCSIsTamil
-xmlUCSIsTelugu
-xmlUCSIsThaana
-xmlUCSIsThai
-xmlUCSIsTibetan
-xmlUCSIsUgaritic
-xmlUCSIsUnifiedCanadianAboriginalSyllabics
-xmlUCSIsVariationSelectors
-xmlUCSIsVariationSelectorsSupplement
-xmlUCSIsYiRadicals
-xmlUCSIsYiSyllables
-xmlUCSIsYijingHexagramSymbols
-

Module xmlversion:

ATTRIBUTE_UNUSED
-DEBUG_MEMORY_LOCATION
-LIBXML_AUTOMATA_ENABLED
-LIBXML_C14N_ENABLED
-LIBXML_CATALOG_ENABLED
-LIBXML_DEBUG_ENABLED
-LIBXML_DEBUG_RUNTIME
-LIBXML_DOCB_ENABLED
-LIBXML_DOTTED_VERSION
-LIBXML_EXPR_ENABLED
-LIBXML_FTP_ENABLED
-LIBXML_HTML_ENABLED
-LIBXML_HTTP_ENABLED
-LIBXML_ICONV_ENABLED
-LIBXML_ISO8859X_ENABLED
-LIBXML_LEGACY_ENABLED
-LIBXML_MODULES_ENABLED
-LIBXML_MODULE_EXTENSION
-LIBXML_OUTPUT_ENABLED
-LIBXML_PATTERN_ENABLED
-LIBXML_PUSH_ENABLED
-LIBXML_READER_ENABLED
-LIBXML_REGEXP_ENABLED
-LIBXML_SAX1_ENABLED
-LIBXML_SCHEMAS_ENABLED
-LIBXML_SCHEMATRON_ENABLED
-LIBXML_TEST_VERSION
-LIBXML_THREAD_ENABLED
-LIBXML_TREE_ENABLED
-LIBXML_UNICODE_ENABLED
-LIBXML_VALID_ENABLED
-LIBXML_VERSION
-LIBXML_VERSION_EXTRA
-LIBXML_VERSION_STRING
-LIBXML_WRITER_ENABLED
-LIBXML_XINCLUDE_ENABLED
-LIBXML_XPATH_ENABLED
-LIBXML_XPTR_ENABLED
-WITHOUT_TRIO
-WITH_TRIO
-xmlCheckVersion
-

Module xmlwriter:

xmlFreeTextWriter
-xmlNewTextWriter
-xmlNewTextWriterDoc
-xmlNewTextWriterFilename
-xmlNewTextWriterMemory
-xmlNewTextWriterPushParser
-xmlNewTextWriterTree
-xmlTextWriter
-xmlTextWriterEndAttribute
-xmlTextWriterEndCDATA
-xmlTextWriterEndComment
-xmlTextWriterEndDTD
-xmlTextWriterEndDTDAttlist
-xmlTextWriterEndDTDElement
-xmlTextWriterEndDTDEntity
-xmlTextWriterEndDocument
-xmlTextWriterEndElement
-xmlTextWriterEndPI
-xmlTextWriterFlush
-xmlTextWriterFullEndElement
-xmlTextWriterPtr
-xmlTextWriterSetIndent
-xmlTextWriterSetIndentString
-xmlTextWriterStartAttribute
-xmlTextWriterStartAttributeNS
-xmlTextWriterStartCDATA
-xmlTextWriterStartComment
-xmlTextWriterStartDTD
-xmlTextWriterStartDTDAttlist
-xmlTextWriterStartDTDElement
-xmlTextWriterStartDTDEntity
-xmlTextWriterStartDocument
-xmlTextWriterStartElement
-xmlTextWriterStartElementNS
-xmlTextWriterStartPI
-xmlTextWriterWriteAttribute
-xmlTextWriterWriteAttributeNS
-xmlTextWriterWriteBase64
-xmlTextWriterWriteBinHex
-xmlTextWriterWriteCDATA
-xmlTextWriterWriteComment
-xmlTextWriterWriteDTD
-xmlTextWriterWriteDTDAttlist
-xmlTextWriterWriteDTDElement
-xmlTextWriterWriteDTDEntity
-xmlTextWriterWriteDTDExternalEntity
-xmlTextWriterWriteDTDExternalEntityContents
-xmlTextWriterWriteDTDInternalEntity
-xmlTextWriterWriteDTDNotation
-xmlTextWriterWriteDocType
-xmlTextWriterWriteElement
-xmlTextWriterWriteElementNS
-xmlTextWriterWriteFormatAttribute
-xmlTextWriterWriteFormatAttributeNS
-xmlTextWriterWriteFormatCDATA
-xmlTextWriterWriteFormatComment
-xmlTextWriterWriteFormatDTD
-xmlTextWriterWriteFormatDTDAttlist
-xmlTextWriterWriteFormatDTDElement
-xmlTextWriterWriteFormatDTDInternalEntity
-xmlTextWriterWriteFormatElement
-xmlTextWriterWriteFormatElementNS
-xmlTextWriterWriteFormatPI
-xmlTextWriterWriteFormatRaw
-xmlTextWriterWriteFormatString
-xmlTextWriterWritePI
-xmlTextWriterWriteProcessingInstruction
-xmlTextWriterWriteRaw
-xmlTextWriterWriteRawLen
-xmlTextWriterWriteString
-xmlTextWriterWriteVFormatAttribute
-xmlTextWriterWriteVFormatAttributeNS
-xmlTextWriterWriteVFormatCDATA
-xmlTextWriterWriteVFormatComment
-xmlTextWriterWriteVFormatDTD
-xmlTextWriterWriteVFormatDTDAttlist
-xmlTextWriterWriteVFormatDTDElement
-xmlTextWriterWriteVFormatDTDInternalEntity
-xmlTextWriterWriteVFormatElement
-xmlTextWriterWriteVFormatElementNS
-xmlTextWriterWriteVFormatPI
-xmlTextWriterWriteVFormatRaw
-xmlTextWriterWriteVFormatString
-

Module xpath:

XML_XPATH_CHECKNS
-XML_XPATH_NOVAR
-XPATH_BOOLEAN
-XPATH_ENCODING_ERROR
-XPATH_EXPRESSION_OK
-XPATH_EXPR_ERROR
-XPATH_INVALID_ARITY
-XPATH_INVALID_CHAR_ERROR
-XPATH_INVALID_CTXT
-XPATH_INVALID_CTXT_POSITION
-XPATH_INVALID_CTXT_SIZE
-XPATH_INVALID_OPERAND
-XPATH_INVALID_PREDICATE_ERROR
-XPATH_INVALID_TYPE
-XPATH_LOCATIONSET
-XPATH_MEMORY_ERROR
-XPATH_NODESET
-XPATH_NUMBER
-XPATH_NUMBER_ERROR
-XPATH_POINT
-XPATH_RANGE
-XPATH_START_LITERAL_ERROR
-XPATH_STRING
-XPATH_UNCLOSED_ERROR
-XPATH_UNDEFINED
-XPATH_UNDEF_PREFIX_ERROR
-XPATH_UNDEF_VARIABLE_ERROR
-XPATH_UNFINISHED_LITERAL_ERROR
-XPATH_UNKNOWN_FUNC_ERROR
-XPATH_USERS
-XPATH_VARIABLE_REF_ERROR
-XPATH_XSLT_TREE
-XPTR_RESOURCE_ERROR
-XPTR_SUB_RESOURCE_ERROR
-XPTR_SYNTAX_ERROR
-_xmlNodeSet
-_xmlXPathAxis
-_xmlXPathContext
-_xmlXPathFunct
-_xmlXPathObject
-_xmlXPathParserContext
-_xmlXPathType
-_xmlXPathVariable
-xmlNodeSet
-xmlNodeSetPtr
-xmlXPathAxis
-xmlXPathAxisFunc
-xmlXPathAxisPtr
-xmlXPathCastBooleanToNumber
-xmlXPathCastBooleanToString
-xmlXPathCastNodeSetToBoolean
-xmlXPathCastNodeSetToNumber
-xmlXPathCastNodeSetToString
-xmlXPathCastNodeToNumber
-xmlXPathCastNodeToString
-xmlXPathCastNumberToBoolean
-xmlXPathCastNumberToString
-xmlXPathCastStringToBoolean
-xmlXPathCastStringToNumber
-xmlXPathCastToBoolean
-xmlXPathCastToNumber
-xmlXPathCastToString
-xmlXPathCmpNodes
-xmlXPathCompExpr
-xmlXPathCompExprPtr
-xmlXPathCompile
-xmlXPathCompiledEval
-xmlXPathContext
-xmlXPathContextPtr
-xmlXPathContextSetCache
-xmlXPathConvertBoolean
-xmlXPathConvertFunc
-xmlXPathConvertNumber
-xmlXPathConvertString
-xmlXPathCtxtCompile
-xmlXPathError
-xmlXPathEval
-xmlXPathEvalExpression
-xmlXPathEvalFunc
-xmlXPathEvalPredicate
-xmlXPathFreeCompExpr
-xmlXPathFreeContext
-xmlXPathFreeNodeSet
-xmlXPathFreeNodeSetList
-xmlXPathFreeObject
-xmlXPathFuncLookupFunc
-xmlXPathFuncPtr
-xmlXPathFunct
-xmlXPathFunction
-xmlXPathInit
-xmlXPathIsInf
-xmlXPathIsNaN
-xmlXPathNAN
-xmlXPathNINF
-xmlXPathNewContext
-xmlXPathNodeSetCreate
-xmlXPathNodeSetGetLength
-xmlXPathNodeSetIsEmpty
-xmlXPathNodeSetItem
-xmlXPathObject
-xmlXPathObjectCopy
-xmlXPathObjectPtr
-xmlXPathObjectType
-xmlXPathOrderDocElems
-xmlXPathPINF
-xmlXPathParserContext
-xmlXPathParserContextPtr
-xmlXPathType
-xmlXPathTypePtr
-xmlXPathVariable
-xmlXPathVariableLookupFunc
-xmlXPathVariablePtr
-

Module xpathInternals:

CAST_TO_BOOLEAN
-CAST_TO_NUMBER
-CAST_TO_STRING
-CHECK_ARITY
-CHECK_ERROR
-CHECK_ERROR0
-CHECK_TYPE
-CHECK_TYPE0
-XP_ERROR
-XP_ERROR0
-valuePop
-valuePush
-xmlXPathAddValues
-xmlXPathBooleanFunction
-xmlXPathCeilingFunction
-xmlXPathCheckError
-xmlXPathCompareValues
-xmlXPathConcatFunction
-xmlXPathContainsFunction
-xmlXPathCountFunction
-xmlXPathDebugDumpCompExpr
-xmlXPathDebugDumpObject
-xmlXPathDifference
-xmlXPathDistinct
-xmlXPathDistinctSorted
-xmlXPathDivValues
-xmlXPathEmptyNodeSet
-xmlXPathEqualValues
-xmlXPathErr
-xmlXPathEvalExpr
-xmlXPathEvaluatePredicateResult
-xmlXPathFalseFunction
-xmlXPathFloorFunction
-xmlXPathFreeParserContext
-xmlXPathFunctionLookup
-xmlXPathFunctionLookupNS
-xmlXPathGetContextNode
-xmlXPathGetDocument
-xmlXPathGetError
-xmlXPathHasSameNodes
-xmlXPathIdFunction
-xmlXPathIntersection
-xmlXPathIsNodeType
-xmlXPathLangFunction
-xmlXPathLastFunction
-xmlXPathLeading
-xmlXPathLeadingSorted
-xmlXPathLocalNameFunction
-xmlXPathModValues
-xmlXPathMultValues
-xmlXPathNamespaceURIFunction
-xmlXPathNewBoolean
-xmlXPathNewCString
-xmlXPathNewFloat
-xmlXPathNewNodeSet
-xmlXPathNewNodeSetList
-xmlXPathNewParserContext
-xmlXPathNewString
-xmlXPathNewValueTree
-xmlXPathNextAncestor
-xmlXPathNextAncestorOrSelf
-xmlXPathNextAttribute
-xmlXPathNextChild
-xmlXPathNextDescendant
-xmlXPathNextDescendantOrSelf
-xmlXPathNextFollowing
-xmlXPathNextFollowingSibling
-xmlXPathNextNamespace
-xmlXPathNextParent
-xmlXPathNextPreceding
-xmlXPathNextPrecedingSibling
-xmlXPathNextSelf
-xmlXPathNodeLeading
-xmlXPathNodeLeadingSorted
-xmlXPathNodeSetAdd
-xmlXPathNodeSetAddNs
-xmlXPathNodeSetAddUnique
-xmlXPathNodeSetContains
-xmlXPathNodeSetDel
-xmlXPathNodeSetFreeNs
-xmlXPathNodeSetMerge
-xmlXPathNodeSetRemove
-xmlXPathNodeSetSort
-xmlXPathNodeTrailing
-xmlXPathNodeTrailingSorted
-xmlXPathNormalizeFunction
-xmlXPathNotEqualValues
-xmlXPathNotFunction
-xmlXPathNsLookup
-xmlXPathNumberFunction
-xmlXPathParseNCName
-xmlXPathParseName
-xmlXPathPopBoolean
-xmlXPathPopExternal
-xmlXPathPopNodeSet
-xmlXPathPopNumber
-xmlXPathPopString
-xmlXPathPositionFunction
-xmlXPathRegisterAllFunctions
-xmlXPathRegisterFunc
-xmlXPathRegisterFuncLookup
-xmlXPathRegisterFuncNS
-xmlXPathRegisterNs
-xmlXPathRegisterVariable
-xmlXPathRegisterVariableLookup
-xmlXPathRegisterVariableNS
-xmlXPathRegisteredFuncsCleanup
-xmlXPathRegisteredNsCleanup
-xmlXPathRegisteredVariablesCleanup
-xmlXPathReturnBoolean
-xmlXPathReturnEmptyNodeSet
-xmlXPathReturnEmptyString
-xmlXPathReturnExternal
-xmlXPathReturnFalse
-xmlXPathReturnNodeSet
-xmlXPathReturnNumber
-xmlXPathReturnString
-xmlXPathReturnTrue
-xmlXPathRoot
-xmlXPathRoundFunction
-xmlXPathSetArityError
-xmlXPathSetError
-xmlXPathSetTypeError
-xmlXPathStackIsExternal
-xmlXPathStackIsNodeSet
-xmlXPathStartsWithFunction
-xmlXPathStringEvalNumber
-xmlXPathStringFunction
-xmlXPathStringLengthFunction
-xmlXPathSubValues
-xmlXPathSubstringAfterFunction
-xmlXPathSubstringBeforeFunction
-xmlXPathSubstringFunction
-xmlXPathSumFunction
-xmlXPathTrailing
-xmlXPathTrailingSorted
-xmlXPathTranslateFunction
-xmlXPathTrueFunction
-xmlXPathValueFlipSign
-xmlXPathVariableLookup
-xmlXPathVariableLookupNS
-xmlXPathWrapCString
-xmlXPathWrapExternal
-xmlXPathWrapNodeSet
-xmlXPathWrapString
-xmlXPatherror
-

Module xpointer:

_xmlLocationSet
-xmlLocationSet
-xmlLocationSetPtr
-xmlXPtrBuildNodeList
-xmlXPtrEval
-xmlXPtrEvalRangePredicate
-xmlXPtrFreeLocationSet
-xmlXPtrLocationSetAdd
-xmlXPtrLocationSetCreate
-xmlXPtrLocationSetDel
-xmlXPtrLocationSetMerge
-xmlXPtrLocationSetRemove
-xmlXPtrNewCollapsedRange
-xmlXPtrNewContext
-xmlXPtrNewLocationSetNodeSet
-xmlXPtrNewLocationSetNodes
-xmlXPtrNewRange
-xmlXPtrNewRangeNodeObject
-xmlXPtrNewRangeNodePoint
-xmlXPtrNewRangeNodes
-xmlXPtrNewRangePointNode
-xmlXPtrNewRangePoints
-xmlXPtrRangeToFunction
-xmlXPtrWrapLocationSet
-

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIfunctions.html b/src/tools/docbook/libxml2/doc/APIfunctions.html deleted file mode 100644 index 92489fb052..0000000000 --- a/src/tools/docbook/libxml2/doc/APIfunctions.html +++ /dev/null @@ -1,2289 +0,0 @@ - - -List of function manipulating types in libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

List of function manipulating types in libxml2

Developer Menu
API Indexes
Related links

Type ...:

errorSAXFunc
-fatalErrorSAXFunc
-warningSAXFunc
-xmlGenericErrorFunc
-xmlParserError
-xmlParserValidityError
-xmlParserValidityWarning
-xmlParserWarning
-xmlRelaxNGValidityErrorFunc
-xmlRelaxNGValidityWarningFunc
-xmlSchemaValidityErrorFunc
-xmlSchemaValidityWarningFunc
-xmlSchematronValidityErrorFunc
-xmlSchematronValidityWarningFunc
-xmlStrPrintf
-xmlTextWriterWriteFormatAttribute
-xmlTextWriterWriteFormatAttributeNS
-xmlTextWriterWriteFormatCDATA
-xmlTextWriterWriteFormatComment
-xmlTextWriterWriteFormatDTD
-xmlTextWriterWriteFormatDTDAttlist
-xmlTextWriterWriteFormatDTDElement
-xmlTextWriterWriteFormatDTDInternalEntity
-xmlTextWriterWriteFormatElement
-xmlTextWriterWriteFormatElementNS
-xmlTextWriterWriteFormatPI
-xmlTextWriterWriteFormatRaw
-xmlTextWriterWriteFormatString
-xmlValidityErrorFunc
-xmlValidityWarningFunc
-

Type FILE *:

htmlDocDump
-htmlNodeDumpFile
-htmlNodeDumpFileFormat
-xmlACatalogDump
-xmlBufferDump
-xmlCatalogDump
-xmlDebugCheckDocument
-xmlDebugDumpAttr
-xmlDebugDumpAttrList
-xmlDebugDumpDTD
-xmlDebugDumpDocument
-xmlDebugDumpDocumentHead
-xmlDebugDumpEntities
-xmlDebugDumpNode
-xmlDebugDumpNodeList
-xmlDebugDumpOneNode
-xmlDebugDumpString
-xmlDocDump
-xmlDocFormatDump
-xmlElemDump
-xmlLsOneNode
-xmlMemDisplay
-xmlMemShow
-xmlOutputBufferCreateFile
-xmlParserInputBufferCreateFile
-xmlPrintURI
-xmlRegexpPrint
-xmlRelaxNGDump
-xmlRelaxNGDumpTree
-xmlSchemaDump
-xmlShell
-xmlXPathDebugDumpCompExpr
-xmlXPathDebugDumpObject
-

Type char **:

xmlNanoHTTPFetch
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-

Type char const *:

xmlInputMatchCallback
-xmlInputOpenCallback
-xmlOutputMatchCallback
-xmlOutputOpenCallback
-

Type const char **:

xmlGetFeaturesList
-

Type const htmlElemDesc *:

htmlAttrAllowed
-htmlElementAllowedHere
-htmlElementStatusHere
-

Type const htmlNodePtr:

htmlNodeStatus
-

Type const unsigned char *:

UTF8ToHtml
-UTF8Toisolat1
-docbEncodeEntities
-htmlEncodeEntities
-isolat1ToUTF8
-xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-xmlCheckUTF8
-xmlDetectCharEncoding
-xmlGetUTF8Char
-

Type const void *:

xmlListDataCompare
-xmlListReverseWalk
-xmlListWalk
-xmlListWalker
-

Type const xlinkHRef:

xlinkSimpleLinkFunk
-

Type const xlinkHRef *:

xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-

Type const xlinkRole:

xlinkSimpleLinkFunk
-

Type const xlinkRole *:

xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-

Type const xlinkTitle:

xlinkSimpleLinkFunk
-

Type const xlinkTitle *:

xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-

Type const xmlBufferPtr:

xmlBufferContent
-xmlBufferLength
-

Type const xmlChRangeGroup *:

xmlCharInRange
-

Type const xmlChar *:

attribute
-attributeDecl
-attributeDeclSAXFunc
-attributeSAXFunc
-cdataBlock
-cdataBlockSAXFunc
-characters
-charactersSAXFunc
-comment
-commentSAXFunc
-elementDecl
-elementDeclSAXFunc
-endElement
-endElementNsSAX2Func
-endElementSAXFunc
-entityDecl
-entityDeclSAXFunc
-externalSubset
-externalSubsetSAXFunc
-getEntity
-getEntitySAXFunc
-getParameterEntity
-getParameterEntitySAXFunc
-globalNamespace
-htmlAttrAllowed
-htmlAutoCloseTag
-htmlCtxtReadDoc
-htmlElementAllowedHere
-htmlEntityLookup
-htmlIsBooleanAttr
-htmlIsScriptAttribute
-htmlNewDoc
-htmlNewDocNoDtD
-htmlReadDoc
-htmlSetMetaEncoding
-htmlTagLookup
-ignorableWhitespace
-ignorableWhitespaceSAXFunc
-internalSubset
-internalSubsetSAXFunc
-namePush
-namespaceDecl
-notationDecl
-notationDeclSAXFunc
-processingInstruction
-processingInstructionSAXFunc
-reference
-referenceSAXFunc
-resolveEntity
-resolveEntitySAXFunc
-setNamespace
-startElement
-startElementNsSAX2Func
-startElementSAXFunc
-unparsedEntityDecl
-unparsedEntityDeclSAXFunc
-xmlACatalogAdd
-xmlACatalogRemove
-xmlACatalogResolve
-xmlACatalogResolvePublic
-xmlACatalogResolveSystem
-xmlACatalogResolveURI
-xmlAddAttributeDecl
-xmlAddDocEntity
-xmlAddDtdEntity
-xmlAddElementDecl
-xmlAddID
-xmlAddNotationDecl
-xmlAddRef
-xmlAttrSerializeTxtContent
-xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewNegTrans
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlAutomataNewTransition
-xmlAutomataNewTransition2
-xmlBufferAdd
-xmlBufferAddHead
-xmlBufferCat
-xmlBufferWriteCHAR
-xmlBufferWriteQuotedString
-xmlBuildQName
-xmlBuildRelativeURI
-xmlBuildURI
-xmlCanonicPath
-xmlCatalogAdd
-xmlCatalogAddLocal
-xmlCatalogGetPublic
-xmlCatalogGetSystem
-xmlCatalogLocalResolve
-xmlCatalogLocalResolveURI
-xmlCatalogRemove
-xmlCatalogResolve
-xmlCatalogResolvePublic
-xmlCatalogResolveSystem
-xmlCatalogResolveURI
-xmlCheckLanguageID
-xmlCreateDocParserCtxt
-xmlCreateEntityParserCtxt
-xmlCreateEnumeration
-xmlCreateIntSubset
-xmlCtxtReadDoc
-xmlDebugDumpString
-xmlDictExists
-xmlDictLookup
-xmlDictOwns
-xmlDictQLookup
-xmlEncodeEntities
-xmlEncodeEntitiesReentrant
-xmlEncodeSpecialChars
-xmlExpNewAtom
-xmlExpStringDerive
-xmlGetDocEntity
-xmlGetDtdAttrDesc
-xmlGetDtdElementDesc
-xmlGetDtdEntity
-xmlGetDtdNotationDesc
-xmlGetDtdQAttrDesc
-xmlGetDtdQElementDesc
-xmlGetID
-xmlGetNoNsProp
-xmlGetNsProp
-xmlGetParameterEntity
-xmlGetPredefinedEntity
-xmlGetProp
-xmlGetRefs
-xmlHasNsProp
-xmlHasProp
-xmlHashAddEntry
-xmlHashAddEntry2
-xmlHashAddEntry3
-xmlHashLookup
-xmlHashLookup2
-xmlHashLookup3
-xmlHashQLookup
-xmlHashQLookup2
-xmlHashQLookup3
-xmlHashRemoveEntry
-xmlHashRemoveEntry2
-xmlHashRemoveEntry3
-xmlHashScan3
-xmlHashScanFull3
-xmlHashScannerFull
-xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-xmlIsMixedElement
-xmlIsXHTML
-xmlNewCDataBlock
-xmlNewCharRef
-xmlNewChild
-xmlNewComment
-xmlNewDoc
-xmlNewDocComment
-xmlNewDocElementContent
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlNewDocPI
-xmlNewDocProp
-xmlNewDocRawNode
-xmlNewDocText
-xmlNewDocTextLen
-xmlNewDtd
-xmlNewElementContent
-xmlNewGlobalNs
-xmlNewNode
-xmlNewNs
-xmlNewNsProp
-xmlNewNsPropEatName
-xmlNewPI
-xmlNewProp
-xmlNewReference
-xmlNewStringInputStream
-xmlNewText
-xmlNewTextChild
-xmlNewTextLen
-xmlNodeAddContent
-xmlNodeAddContentLen
-xmlNodeSetBase
-xmlNodeSetContent
-xmlNodeSetContentLen
-xmlNodeSetLang
-xmlNodeSetName
-xmlNormalizeWindowsPath
-xmlOutputBufferWriteEscape
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseCtxtExternalEntity
-xmlParseDTD
-xmlParseDoc
-xmlParseElementContentDecl
-xmlParseExternalEntity
-xmlParseExternalSubset
-xmlPatterncompile
-xmlReadDoc
-xmlReaderForDoc
-xmlReaderNewDoc
-xmlRegExecCallbacks
-xmlRegExecPushString
-xmlRegExecPushString2
-xmlRegexpCompile
-xmlRegexpExec
-xmlRelaxNGValidatePushCData
-xmlSAX2AttributeDecl
-xmlSAX2CDataBlock
-xmlSAX2Characters
-xmlSAX2Comment
-xmlSAX2ElementDecl
-xmlSAX2EndElement
-xmlSAX2EndElementNs
-xmlSAX2EntityDecl
-xmlSAX2ExternalSubset
-xmlSAX2GetEntity
-xmlSAX2GetParameterEntity
-xmlSAX2IgnorableWhitespace
-xmlSAX2InternalSubset
-xmlSAX2NotationDecl
-xmlSAX2ProcessingInstruction
-xmlSAX2Reference
-xmlSAX2ResolveEntity
-xmlSAX2StartElement
-xmlSAX2StartElementNs
-xmlSAX2UnparsedEntityDecl
-xmlSAXParseDTD
-xmlSAXParseDoc
-xmlSchemaCheckFacet
-xmlSchemaCollapseString
-xmlSchemaGetPredefinedType
-xmlSchemaNewNOTATIONValue
-xmlSchemaNewQNameValue
-xmlSchemaNewStringValue
-xmlSchemaValPredefTypeNode
-xmlSchemaValPredefTypeNodeNoNorm
-xmlSchemaValidateFacet
-xmlSchemaValidateFacetWhtsp
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-xmlSchemaValidateListSimpleTypeFacet
-xmlSchemaValidatePredefinedType
-xmlSchemaWhiteSpaceReplace
-xmlSearchNs
-xmlSearchNsByHref
-xmlSetNsProp
-xmlSetProp
-xmlSetupParserForBuffer
-xmlSplitQName
-xmlSplitQName2
-xmlSplitQName3
-xmlStrEqual
-xmlStrPrintf
-xmlStrQEqual
-xmlStrVPrintf
-xmlStrcasecmp
-xmlStrcasestr
-xmlStrcat
-xmlStrchr
-xmlStrcmp
-xmlStrdup
-xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-xmlStringCurrentChar
-xmlStringDecodeEntities
-xmlStringGetNodeList
-xmlStringLenDecodeEntities
-xmlStringLenGetNodeList
-xmlStrlen
-xmlStrncasecmp
-xmlStrncat
-xmlStrncatNew
-xmlStrncmp
-xmlStrndup
-xmlStrstr
-xmlStrsub
-xmlTextConcat
-xmlTextReaderConstString
-xmlTextReaderGetAttribute
-xmlTextReaderGetAttributeNs
-xmlTextReaderLookupNamespace
-xmlTextReaderMoveToAttribute
-xmlTextReaderMoveToAttributeNs
-xmlTextReaderPreservePattern
-xmlTextWriterSetIndentString
-xmlTextWriterStartAttribute
-xmlTextWriterStartAttributeNS
-xmlTextWriterStartDTD
-xmlTextWriterStartDTDAttlist
-xmlTextWriterStartDTDElement
-xmlTextWriterStartDTDEntity
-xmlTextWriterStartElement
-xmlTextWriterStartElementNS
-xmlTextWriterStartPI
-xmlTextWriterWriteAttribute
-xmlTextWriterWriteAttributeNS
-xmlTextWriterWriteCDATA
-xmlTextWriterWriteComment
-xmlTextWriterWriteDTD
-xmlTextWriterWriteDTDAttlist
-xmlTextWriterWriteDTDElement
-xmlTextWriterWriteDTDEntity
-xmlTextWriterWriteDTDExternalEntity
-xmlTextWriterWriteDTDExternalEntityContents
-xmlTextWriterWriteDTDInternalEntity
-xmlTextWriterWriteDTDNotation
-xmlTextWriterWriteElement
-xmlTextWriterWriteElementNS
-xmlTextWriterWriteFormatAttribute
-xmlTextWriterWriteFormatAttributeNS
-xmlTextWriterWriteFormatDTD
-xmlTextWriterWriteFormatDTDAttlist
-xmlTextWriterWriteFormatDTDElement
-xmlTextWriterWriteFormatDTDInternalEntity
-xmlTextWriterWriteFormatElement
-xmlTextWriterWriteFormatElementNS
-xmlTextWriterWriteFormatPI
-xmlTextWriterWritePI
-xmlTextWriterWriteRaw
-xmlTextWriterWriteRawLen
-xmlTextWriterWriteString
-xmlTextWriterWriteVFormatAttribute
-xmlTextWriterWriteVFormatAttributeNS
-xmlTextWriterWriteVFormatDTD
-xmlTextWriterWriteVFormatDTDAttlist
-xmlTextWriterWriteVFormatDTDElement
-xmlTextWriterWriteVFormatDTDInternalEntity
-xmlTextWriterWriteVFormatElement
-xmlTextWriterWriteVFormatElementNS
-xmlTextWriterWriteVFormatPI
-xmlURIEscape
-xmlURIEscapeStr
-xmlUTF8Charcmp
-xmlUTF8Size
-xmlUTF8Strlen
-xmlUTF8Strloc
-xmlUTF8Strndup
-xmlUTF8Strpos
-xmlUTF8Strsize
-xmlUTF8Strsub
-xmlUnsetNsProp
-xmlUnsetProp
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-xmlValidateAttributeValue
-xmlValidateNCName
-xmlValidateNMToken
-xmlValidateName
-xmlValidateNameValue
-xmlValidateNamesValue
-xmlValidateNmtokenValue
-xmlValidateNmtokensValue
-xmlValidateNotationUse
-xmlValidateOneAttribute
-xmlValidateOneNamespace
-xmlValidatePopElement
-xmlValidatePushCData
-xmlValidatePushElement
-xmlValidateQName
-xmlXPathCastStringToBoolean
-xmlXPathCastStringToNumber
-xmlXPathCompile
-xmlXPathCtxtCompile
-xmlXPathEval
-xmlXPathEvalExpression
-xmlXPathFuncLookupFunc
-xmlXPathFunctionLookup
-xmlXPathFunctionLookupNS
-xmlXPathIsNodeType
-xmlXPathNewParserContext
-xmlXPathNewString
-xmlXPathNsLookup
-xmlXPathRegisterFunc
-xmlXPathRegisterFuncNS
-xmlXPathRegisterNs
-xmlXPathRegisterVariable
-xmlXPathRegisterVariableNS
-xmlXPathStringEvalNumber
-xmlXPathVariableLookup
-xmlXPathVariableLookupFunc
-xmlXPathVariableLookupNS
-xmlXPtrEval
-

Type const xmlChar **:

htmlParseEntityRef
-startElement
-startElementNsSAX2Func
-startElementSAXFunc
-xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-xmlExpGetLanguage
-xmlExpGetStart
-xmlPatterncompile
-xmlRegExecErrInfo
-xmlSAX2StartElement
-xmlSAX2StartElementNs
-xmlSchemaGetCanonValue
-xmlSchemaGetCanonValueWhtsp
-xmlTextReaderPreservePattern
-xmlValidGetPotentialChildren
-xmlValidGetValidElements
-

Type const xmlListPtr:

xmlListCopy
-xmlListDup
-

Type const xmlNodePtr:

xmlCopyNode
-xmlCopyNodeList
-xmlDocCopyNode
-xmlDocCopyNodeList
-xmlParserFindNodeInfo
-xmlParserFindNodeInfoIndex
-

Type const xmlParserCtxtPtr:

xmlParserFindNodeInfo
-

Type const xmlParserNodeInfoPtr:

xmlParserAddNodeInfo
-

Type const xmlParserNodeInfoSeqPtr:

xmlParserFindNodeInfoIndex
-

Type docbParserCtxtPtr:

docbFreeParserCtxt
-docbParseChunk
-docbParseDocument
-

Type docbSAXHandlerPtr:

docbCreatePushParserCtxt
-docbSAXParseDoc
-docbSAXParseFile
-

Type double:

xmlXPathCastNumberToBoolean
-xmlXPathCastNumberToString
-xmlXPathIsInf
-xmlXPathIsNaN
-xmlXPathNewFloat
-

Type ftpDataCallback:

xmlNanoFTPGet
-

Type ftpListCallback:

xmlNanoFTPList
-

Type htmlDocPtr:

htmlAutoCloseTag
-htmlGetMetaEncoding
-htmlIsAutoClosed
-htmlSetMetaEncoding
-

Type htmlNodePtr:

htmlAutoCloseTag
-htmlIsAutoClosed
-

Type htmlParserCtxtPtr:

htmlCtxtReadDoc
-htmlCtxtReadFd
-htmlCtxtReadFile
-htmlCtxtReadIO
-htmlCtxtReadMemory
-htmlCtxtReset
-htmlCtxtUseOptions
-htmlFreeParserCtxt
-htmlParseCharRef
-htmlParseChunk
-htmlParseDocument
-htmlParseElement
-htmlParseEntityRef
-

Type htmlSAXHandlerPtr:

htmlCreatePushParserCtxt
-htmlSAXParseDoc
-htmlSAXParseFile
-

Type int *:

UTF8ToHtml
-UTF8Toisolat1
-docbEncodeEntities
-htmlDocDumpMemory
-htmlDocDumpMemoryFormat
-htmlEncodeEntities
-isolat1ToUTF8
-xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-xmlCurrentChar
-xmlDocDumpFormatMemory
-xmlDocDumpFormatMemoryEnc
-xmlDocDumpMemory
-xmlDocDumpMemoryEnc
-xmlGetFeaturesList
-xmlGetUTF8Char
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlSplitQName3
-xmlStringCurrentChar
-xmlValidGetPotentialChildren
-

Type size_t:

xmlBufferCreateSize
-xmlBufferCreateStatic
-xmlMallocAtomicLoc
-xmlMallocFunc
-xmlMallocLoc
-xmlMemMalloc
-xmlMemRealloc
-xmlReallocFunc
-xmlReallocLoc
-

Type unsigned char *:

UTF8ToHtml
-UTF8Toisolat1
-docbEncodeEntities
-htmlEncodeEntities
-isolat1ToUTF8
-xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-

Type unsigned int:

htmlEntityValueLookup
-xmlBufferGrow
-xmlBufferResize
-xmlBufferShrink
-xmlCharInRange
-xmlIsBaseChar
-xmlIsBlank
-xmlIsChar
-xmlIsCombining
-xmlIsDigit
-xmlIsExtender
-xmlIsIdeographic
-xmlIsPubidChar
-

Type unsigned long:

ftpListCallback
-xmlSchemaValidateListSimpleTypeFacet
-

Type unsigned long *:

xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-xmlSchemaValidateListSimpleTypeFacet
-

Type va_list:

xmlStrVPrintf
-xmlTextWriterWriteVFormatAttribute
-xmlTextWriterWriteVFormatAttributeNS
-xmlTextWriterWriteVFormatCDATA
-xmlTextWriterWriteVFormatComment
-xmlTextWriterWriteVFormatDTD
-xmlTextWriterWriteVFormatDTDAttlist
-xmlTextWriterWriteVFormatDTDElement
-xmlTextWriterWriteVFormatDTDInternalEntity
-xmlTextWriterWriteVFormatElement
-xmlTextWriterWriteVFormatElementNS
-xmlTextWriterWriteVFormatPI
-xmlTextWriterWriteVFormatRaw
-xmlTextWriterWriteVFormatString
-

Type void *:

attribute
-attributeDecl
-attributeDeclSAXFunc
-attributeSAXFunc
-cdataBlock
-cdataBlockSAXFunc
-characters
-charactersSAXFunc
-checkNamespace
-comment
-commentSAXFunc
-docbCreatePushParserCtxt
-docbSAXParseDoc
-docbSAXParseFile
-elementDecl
-elementDeclSAXFunc
-endDocument
-endDocumentSAXFunc
-endElement
-endElementNsSAX2Func
-endElementSAXFunc
-entityDecl
-entityDeclSAXFunc
-errorSAXFunc
-externalSubset
-externalSubsetSAXFunc
-fatalErrorSAXFunc
-ftpDataCallback
-ftpListCallback
-getColumnNumber
-getEntity
-getEntitySAXFunc
-getLineNumber
-getNamespace
-getParameterEntity
-getParameterEntitySAXFunc
-getPublicId
-getSystemId
-globalNamespace
-hasExternalSubset
-hasExternalSubsetSAXFunc
-hasInternalSubset
-hasInternalSubsetSAXFunc
-htmlCreatePushParserCtxt
-htmlCtxtReadIO
-htmlReadIO
-htmlSAXParseDoc
-htmlSAXParseFile
-ignorableWhitespace
-ignorableWhitespaceSAXFunc
-internalSubset
-internalSubsetSAXFunc
-isStandalone
-isStandaloneSAXFunc
-namespaceDecl
-notationDecl
-notationDeclSAXFunc
-processingInstruction
-processingInstructionSAXFunc
-reference
-referenceSAXFunc
-resolveEntity
-resolveEntitySAXFunc
-setDocumentLocator
-setDocumentLocatorSAXFunc
-setNamespace
-startDocument
-startDocumentSAXFunc
-startElement
-startElementNsSAX2Func
-startElementSAXFunc
-unparsedEntityDecl
-unparsedEntityDeclSAXFunc
-warningSAXFunc
-xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-xlinkNodeDetectFunc
-xlinkSimpleLinkFunk
-xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewNegTrans
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlAutomataNewTransition
-xmlAutomataNewTransition2
-xmlBufferCreateStatic
-xmlC14NExecute
-xmlC14NIsVisibleCallback
-xmlCatalogAddLocal
-xmlCatalogFreeLocal
-xmlCatalogLocalResolve
-xmlCatalogLocalResolveURI
-xmlCreateIOParserCtxt
-xmlCreatePushParserCtxt
-xmlCtxtGetLastError
-xmlCtxtReadIO
-xmlCtxtResetLastError
-xmlFileClose
-xmlFileRead
-xmlFreeFunc
-xmlGenericErrorFunc
-xmlGetFeature
-xmlHashAddEntry
-xmlHashAddEntry2
-xmlHashAddEntry3
-xmlHashCopier
-xmlHashDeallocator
-xmlHashScan
-xmlHashScan3
-xmlHashScanFull
-xmlHashScanFull3
-xmlHashScanner
-xmlHashScannerFull
-xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-xmlIOFTPClose
-xmlIOFTPRead
-xmlIOHTTPClose
-xmlIOHTTPRead
-xmlInputCloseCallback
-xmlInputReadCallback
-xmlListAppend
-xmlListInsert
-xmlListPushBack
-xmlListPushFront
-xmlListRemoveAll
-xmlListRemoveFirst
-xmlListRemoveLast
-xmlListReverseSearch
-xmlListSearch
-xmlMemFree
-xmlMemRealloc
-xmlNanoFTPCheckResponse
-xmlNanoFTPClose
-xmlNanoFTPCloseConnection
-xmlNanoFTPConnect
-xmlNanoFTPCwd
-xmlNanoFTPDele
-xmlNanoFTPFreeCtxt
-xmlNanoFTPGet
-xmlNanoFTPGetConnection
-xmlNanoFTPGetResponse
-xmlNanoFTPGetSocket
-xmlNanoFTPList
-xmlNanoFTPQuit
-xmlNanoFTPRead
-xmlNanoFTPUpdateURL
-xmlNanoHTTPAuthHeader
-xmlNanoHTTPClose
-xmlNanoHTTPContentLength
-xmlNanoHTTPEncoding
-xmlNanoHTTPMimeType
-xmlNanoHTTPRead
-xmlNanoHTTPRedir
-xmlNanoHTTPReturnCode
-xmlNanoHTTPSave
-xmlOutputBufferCreateIO
-xmlOutputCloseCallback
-xmlOutputWriteCallback
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseExternalEntity
-xmlParserError
-xmlParserInputBufferCreateIO
-xmlParserValidityError
-xmlParserValidityWarning
-xmlParserWarning
-xmlReadIO
-xmlReaderForIO
-xmlReaderNewIO
-xmlReallocFunc
-xmlReallocLoc
-xmlRegExecCallbacks
-xmlRegExecPushString
-xmlRegExecPushString2
-xmlRegNewExecCtxt
-xmlRelaxNGSetParserErrors
-xmlRelaxNGSetParserStructuredErrors
-xmlRelaxNGSetValidErrors
-xmlRelaxNGSetValidStructuredErrors
-xmlRelaxNGValidityErrorFunc
-xmlRelaxNGValidityWarningFunc
-xmlSAX2AttributeDecl
-xmlSAX2CDataBlock
-xmlSAX2Characters
-xmlSAX2Comment
-xmlSAX2ElementDecl
-xmlSAX2EndDocument
-xmlSAX2EndElement
-xmlSAX2EndElementNs
-xmlSAX2EntityDecl
-xmlSAX2ExternalSubset
-xmlSAX2GetColumnNumber
-xmlSAX2GetEntity
-xmlSAX2GetLineNumber
-xmlSAX2GetParameterEntity
-xmlSAX2GetPublicId
-xmlSAX2GetSystemId
-xmlSAX2HasExternalSubset
-xmlSAX2HasInternalSubset
-xmlSAX2IgnorableWhitespace
-xmlSAX2InternalSubset
-xmlSAX2IsStandalone
-xmlSAX2NotationDecl
-xmlSAX2ProcessingInstruction
-xmlSAX2Reference
-xmlSAX2ResolveEntity
-xmlSAX2SetDocumentLocator
-xmlSAX2StartDocument
-xmlSAX2StartElement
-xmlSAX2StartElementNs
-xmlSAX2UnparsedEntityDecl
-xmlSAXParseFileWithData
-xmlSAXParseMemoryWithData
-xmlSAXUserParseFile
-xmlSAXUserParseMemory
-xmlSaveToIO
-xmlSchemaSetParserErrors
-xmlSchemaSetParserStructuredErrors
-xmlSchemaSetValidErrors
-xmlSchemaSetValidStructuredErrors
-xmlSchemaValidateStream
-xmlSchemaValidityErrorFunc
-xmlSchemaValidityWarningFunc
-xmlSchematronValidityErrorFunc
-xmlSchematronValidityWarningFunc
-xmlSetFeature
-xmlSetGenericErrorFunc
-xmlSetStructuredErrorFunc
-xmlStructuredErrorFunc
-xmlTextReaderErrorFunc
-xmlTextReaderSetErrorHandler
-xmlTextReaderSetStructuredErrorHandler
-xmlThrDefSetGenericErrorFunc
-xmlThrDefSetStructuredErrorFunc
-xmlValidityErrorFunc
-xmlValidityWarningFunc
-xmlXPathFuncLookupFunc
-xmlXPathRegisterFuncLookup
-xmlXPathRegisterVariableLookup
-xmlXPathVariableLookupFunc
-xmlXPathWrapExternal
-

Type void **:

xmlModuleSymbol
-xmlRelaxNGGetParserErrors
-xmlRelaxNGGetValidErrors
-xmlSchemaGetParserErrors
-xmlSchemaGetValidErrors
-xmlSchemaSAXPlug
-xmlTextReaderGetErrorHandler
-

Type xlinkActuate *:

xlinkExtendedLinkFunk
-

Type xlinkHandlerPtr:

xlinkSetDefaultHandler
-

Type xlinkNodeDetectFunc:

xlinkSetDefaultDetect
-

Type xlinkShow *:

xlinkExtendedLinkFunk
-

Type xmlAttrPtr:

xmlAddID
-xmlAddRef
-xmlAttrSerializeTxtContent
-xmlCopyProp
-xmlCopyPropList
-xmlDebugDumpAttr
-xmlDebugDumpAttrList
-xmlFreeProp
-xmlFreePropList
-xmlIsID
-xmlIsRef
-xmlRemoveID
-xmlRemoveProp
-xmlRemoveRef
-xmlValidateOneAttribute
-

Type xmlAttributeDefault:

xmlAddAttributeDecl
-

Type xmlAttributePtr:

xmlDumpAttributeDecl
-xmlValidateAttributeDecl
-

Type xmlAttributeTablePtr:

xmlCopyAttributeTable
-xmlDumpAttributeTable
-xmlFreeAttributeTable
-

Type xmlAttributeType:

xmlAddAttributeDecl
-xmlValidateAttributeValue
-

Type xmlAutomataPtr:

xmlAutomataCompile
-xmlAutomataGetInitState
-xmlAutomataIsDeterminist
-xmlAutomataNewAllTrans
-xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewCountedTrans
-xmlAutomataNewCounter
-xmlAutomataNewCounterTrans
-xmlAutomataNewEpsilon
-xmlAutomataNewNegTrans
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlAutomataNewState
-xmlAutomataNewTransition
-xmlAutomataNewTransition2
-xmlAutomataSetFinalState
-xmlFreeAutomata
-

Type xmlAutomataStatePtr:

xmlAutomataNewAllTrans
-xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewCountedTrans
-xmlAutomataNewCounterTrans
-xmlAutomataNewEpsilon
-xmlAutomataNewNegTrans
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlAutomataNewTransition
-xmlAutomataNewTransition2
-xmlAutomataSetFinalState
-

Type xmlBufferAllocationScheme:

xmlBufferSetAllocationScheme
-xmlSetBufferAllocationScheme
-xmlThrDefBufferAllocScheme
-

Type xmlBufferPtr:

htmlNodeDump
-xmlAttrSerializeTxtContent
-xmlBufferAdd
-xmlBufferAddHead
-xmlBufferCCat
-xmlBufferCat
-xmlBufferDump
-xmlBufferEmpty
-xmlBufferFree
-xmlBufferGrow
-xmlBufferResize
-xmlBufferSetAllocationScheme
-xmlBufferShrink
-xmlBufferWriteCHAR
-xmlBufferWriteChar
-xmlBufferWriteQuotedString
-xmlCharEncFirstLine
-xmlCharEncInFunc
-xmlCharEncOutFunc
-xmlDumpAttributeDecl
-xmlDumpAttributeTable
-xmlDumpElementDecl
-xmlDumpElementTable
-xmlDumpEntitiesTable
-xmlDumpEntityDecl
-xmlDumpNotationDecl
-xmlDumpNotationTable
-xmlExpDump
-xmlNewTextWriterMemory
-xmlNodeBufGetContent
-xmlNodeDump
-xmlOutputBufferCreateBuffer
-xmlSaveToBuffer
-

Type xmlC14NIsVisibleCallback:

xmlC14NExecute
-

Type xmlCatalogAllow:

xmlCatalogSetDefaults
-

Type xmlCatalogPrefer:

xmlCatalogSetDefaultPrefer
-

Type xmlCatalogPtr:

xmlACatalogAdd
-xmlACatalogDump
-xmlACatalogRemove
-xmlACatalogResolve
-xmlACatalogResolvePublic
-xmlACatalogResolveSystem
-xmlACatalogResolveURI
-xmlCatalogIsEmpty
-xmlConvertSGMLCatalog
-xmlFreeCatalog
-

Type xmlChar:

xmlDecodeEntities
-xmlStrchr
-xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-

Type xmlChar *:

checkNamespace
-docbParseDoc
-docbSAXParseDoc
-entityDecl
-entityDeclSAXFunc
-htmlParseDoc
-htmlSAXParseDoc
-xmlBuildQName
-xmlCopyChar
-xmlCopyCharMultiByte
-xmlHashCopier
-xmlHashDeallocator
-xmlHashScanner
-xmlNewDocNodeEatName
-xmlNewNodeEatName
-xmlNewNsPropEatName
-xmlParserInputDeallocate
-xmlRecoverDoc
-xmlSAX2EntityDecl
-xmlStrPrintf
-xmlStrVPrintf
-xmlStrcasestr
-xmlStrcat
-xmlStrncat
-xmlXPathWrapString
-

Type xmlChar **:

htmlDocDumpMemory
-htmlDocDumpMemoryFormat
-xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlDocDumpFormatMemory
-xmlDocDumpFormatMemoryEnc
-xmlDocDumpMemory
-xmlDocDumpMemoryEnc
-xmlNamespaceParseQName
-xmlParseAttribute
-xmlParseDefaultDecl
-xmlParseEntityValue
-xmlParseExternalID
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlSplitQName
-xmlSplitQName2
-

Type xmlCharEncoding:

docbCreatePushParserCtxt
-htmlCreatePushParserCtxt
-xmlAllocParserInputBuffer
-xmlCreateIOParserCtxt
-xmlGetCharEncodingHandler
-xmlGetCharEncodingName
-xmlIOParseDTD
-xmlNewIOInputStream
-xmlParserInputBufferCreateFd
-xmlParserInputBufferCreateFile
-xmlParserInputBufferCreateFilename
-xmlParserInputBufferCreateFilenameFunc
-xmlParserInputBufferCreateIO
-xmlParserInputBufferCreateMem
-xmlParserInputBufferCreateStatic
-xmlSchemaValidateStream
-xmlSwitchEncoding
-

Type xmlCharEncodingHandler *:

xmlCharEncCloseFunc
-xmlCharEncFirstLine
-xmlCharEncInFunc
-xmlCharEncOutFunc
-

Type xmlCharEncodingHandlerPtr:

xmlAllocOutputBuffer
-xmlOutputBufferCreateBuffer
-xmlOutputBufferCreateFd
-xmlOutputBufferCreateFile
-xmlOutputBufferCreateFilename
-xmlOutputBufferCreateFilenameFunc
-xmlOutputBufferCreateIO
-xmlRegisterCharEncodingHandler
-xmlSwitchInputEncoding
-xmlSwitchToEncoding
-

Type xmlCharEncodingInputFunc:

xmlNewCharEncodingHandler
-

Type xmlCharEncodingOutputFunc:

xmlNewCharEncodingHandler
-xmlOutputBufferWriteEscape
-xmlSaveSetAttrEscape
-xmlSaveSetEscape
-

Type xmlDOMWrapCtxtPtr:

xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapFreeCtxt
-xmlDOMWrapReconcileNamespaces
-xmlDOMWrapRemoveNode
-

Type xmlDeregisterNodeFunc:

xmlDeregisterNodeDefault
-xmlThrDefDeregisterNodeDefault
-

Type xmlDict *:

xmlPatterncompile
-

Type xmlDictPtr:

xmlDictCreateSub
-xmlDictExists
-xmlDictFree
-xmlDictLookup
-xmlDictOwns
-xmlDictQLookup
-xmlDictReference
-xmlDictSize
-xmlExpNewCtxt
-xmlHashCreateDict
-

Type xmlDocPtr:

htmlDocContentDumpFormatOutput
-htmlDocContentDumpOutput
-htmlDocDump
-htmlDocDumpMemory
-htmlDocDumpMemoryFormat
-htmlNodeDump
-htmlNodeDumpFile
-htmlNodeDumpFileFormat
-htmlNodeDumpFormatOutput
-htmlNodeDumpOutput
-htmlSaveFile
-htmlSaveFileEnc
-htmlSaveFileFormat
-xlinkIsLink
-xmlAddDocEntity
-xmlAddDtdEntity
-xmlAddID
-xmlAddRef
-xmlAttrSerializeTxtContent
-xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlCopyDoc
-xmlCopyDocElementContent
-xmlCreateIntSubset
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapRemoveNode
-xmlDebugCheckDocument
-xmlDebugDumpDocument
-xmlDebugDumpDocumentHead
-xmlDebugDumpEntities
-xmlDocCopyNode
-xmlDocCopyNodeList
-xmlDocDump
-xmlDocDumpFormatMemory
-xmlDocDumpFormatMemoryEnc
-xmlDocDumpMemory
-xmlDocDumpMemoryEnc
-xmlDocFormatDump
-xmlDocGetRootElement
-xmlDocSetRootElement
-xmlElemDump
-xmlEncodeEntities
-xmlEncodeEntitiesReentrant
-xmlEncodeSpecialChars
-xmlFreeDoc
-xmlFreeDocElementContent
-xmlGetDocCompressMode
-xmlGetDocEntity
-xmlGetDtdEntity
-xmlGetID
-xmlGetIntSubset
-xmlGetNsList
-xmlGetParameterEntity
-xmlGetRefs
-xmlIsID
-xmlIsMixedElement
-xmlIsRef
-xmlNewCDataBlock
-xmlNewCharRef
-xmlNewDocComment
-xmlNewDocElementContent
-xmlNewDocFragment
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlNewDocPI
-xmlNewDocProp
-xmlNewDocRawNode
-xmlNewDocText
-xmlNewDocTextLen
-xmlNewDtd
-xmlNewGlobalNs
-xmlNewReference
-xmlNewTextWriterTree
-xmlNodeDump
-xmlNodeDumpOutput
-xmlNodeGetBase
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseExternalEntity
-xmlReaderNewWalker
-xmlReaderWalker
-xmlReconciliateNs
-xmlRelaxNGNewDocParserCtxt
-xmlRelaxNGValidateDoc
-xmlRelaxNGValidateFullElement
-xmlRelaxNGValidatePopElement
-xmlRelaxNGValidatePushElement
-xmlRemoveID
-xmlRemoveRef
-xmlSaveDoc
-xmlSaveFile
-xmlSaveFileEnc
-xmlSaveFileTo
-xmlSaveFormatFile
-xmlSaveFormatFileEnc
-xmlSaveFormatFileTo
-xmlSchemaNewDocParserCtxt
-xmlSchemaValidateDoc
-xmlSchematronNewDocParserCtxt
-xmlSchematronValidateDoc
-xmlSearchNs
-xmlSearchNsByHref
-xmlSetDocCompressMode
-xmlSetListDoc
-xmlSetTreeDoc
-xmlShell
-xmlStringGetNodeList
-xmlStringLenGetNodeList
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-xmlValidateAttributeDecl
-xmlValidateDocument
-xmlValidateDocumentFinal
-xmlValidateDtd
-xmlValidateDtdFinal
-xmlValidateElement
-xmlValidateElementDecl
-xmlValidateNotationDecl
-xmlValidateNotationUse
-xmlValidateOneAttribute
-xmlValidateOneElement
-xmlValidateOneNamespace
-xmlValidatePopElement
-xmlValidatePushElement
-xmlValidateRoot
-xmlXIncludeNewContext
-xmlXIncludeProcess
-xmlXIncludeProcessFlags
-xmlXPathNewContext
-xmlXPathOrderDocElems
-xmlXPtrNewContext
-

Type xmlDocPtr *:

xmlNewTextWriterDoc
-

Type xmlDtdPtr:

xmlAddAttributeDecl
-xmlAddElementDecl
-xmlAddNotationDecl
-xmlCopyDtd
-xmlDebugDumpDTD
-xmlFreeDtd
-xmlGetDtdAttrDesc
-xmlGetDtdElementDesc
-xmlGetDtdNotationDesc
-xmlGetDtdQAttrDesc
-xmlGetDtdQElementDesc
-xmlValidateDtd
-

Type xmlElementContent *:

xmlValidGetPotentialChildren
-

Type xmlElementContentPtr:

elementDecl
-elementDeclSAXFunc
-xmlAddElementDecl
-xmlCopyDocElementContent
-xmlCopyElementContent
-xmlFreeDocElementContent
-xmlFreeElementContent
-xmlSAX2ElementDecl
-xmlSnprintfElementContent
-xmlSprintfElementContent
-

Type xmlElementContentPtr *:

xmlParseElementContentDecl
-

Type xmlElementContentType:

xmlNewDocElementContent
-xmlNewElementContent
-

Type xmlElementPtr:

xmlDumpElementDecl
-xmlValidBuildContentModel
-xmlValidateElementDecl
-

Type xmlElementTablePtr:

xmlCopyElementTable
-xmlDumpElementTable
-xmlFreeElementTable
-

Type xmlElementTypeVal:

xmlAddElementDecl
-

Type xmlEntitiesTablePtr:

xmlCopyEntitiesTable
-xmlDumpEntitiesTable
-xmlFreeEntitiesTable
-

Type xmlEntityPtr:

xmlDumpEntityDecl
-xmlEntityReferenceFunc
-xmlHandleEntity
-xmlNewEntityInputStream
-

Type xmlEntityReferenceFunc:

xmlSetEntityReferenceFunc
-

Type xmlEnumerationPtr:

attributeDecl
-attributeDeclSAXFunc
-xmlAddAttributeDecl
-xmlCopyEnumeration
-xmlFreeEnumeration
-xmlSAX2AttributeDecl
-

Type xmlEnumerationPtr *:

xmlParseAttributeType
-xmlParseEnumeratedType
-

Type xmlErrorPtr:

xmlCopyError
-xmlResetError
-xmlStructuredErrorFunc
-

Type xmlExpCtxtPtr:

xmlExpCtxtNbCons
-xmlExpCtxtNbNodes
-xmlExpExpDerive
-xmlExpFree
-xmlExpFreeCtxt
-xmlExpGetLanguage
-xmlExpGetStart
-xmlExpNewAtom
-xmlExpNewOr
-xmlExpNewRange
-xmlExpNewSeq
-xmlExpParse
-xmlExpStringDerive
-xmlExpSubsume
-

Type xmlExpNodePtr:

xmlExpDump
-xmlExpExpDerive
-xmlExpFree
-xmlExpGetLanguage
-xmlExpGetStart
-xmlExpIsNillable
-xmlExpMaxToken
-xmlExpNewOr
-xmlExpNewRange
-xmlExpNewSeq
-xmlExpRef
-xmlExpStringDerive
-xmlExpSubsume
-

Type xmlExternalEntityLoader:

xmlSetExternalEntityLoader
-

Type xmlFeature:

xmlHasFeature
-

Type xmlFreeFunc:

xmlGcMemSetup
-xmlMemSetup
-

Type xmlFreeFunc *:

xmlGcMemGet
-xmlMemGet
-

Type xmlGenericErrorFunc:

xmlSetGenericErrorFunc
-xmlThrDefSetGenericErrorFunc
-

Type xmlGenericErrorFunc *:

initGenericErrorDefaultFunc
-

Type xmlGlobalStatePtr:

xmlInitializeGlobalState
-

Type xmlHashCopier:

xmlHashCopy
-

Type xmlHashDeallocator:

xmlHashFree
-xmlHashRemoveEntry
-xmlHashRemoveEntry2
-xmlHashRemoveEntry3
-xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-

Type xmlHashScanner:

xmlHashScan
-xmlHashScan3
-

Type xmlHashScannerFull:

xmlHashScanFull
-xmlHashScanFull3
-

Type xmlHashTablePtr:

xmlHashAddEntry
-xmlHashAddEntry2
-xmlHashAddEntry3
-xmlHashCopy
-xmlHashFree
-xmlHashLookup
-xmlHashLookup2
-xmlHashLookup3
-xmlHashQLookup
-xmlHashQLookup2
-xmlHashQLookup3
-xmlHashRemoveEntry
-xmlHashRemoveEntry2
-xmlHashRemoveEntry3
-xmlHashScan
-xmlHashScan3
-xmlHashScanFull
-xmlHashScanFull3
-xmlHashSize
-xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-

Type xmlIDTablePtr:

xmlFreeIDTable
-

Type xmlInputCloseCallback:

htmlCtxtReadIO
-htmlReadIO
-xmlCreateIOParserCtxt
-xmlCtxtReadIO
-xmlParserInputBufferCreateIO
-xmlReadIO
-xmlReaderForIO
-xmlReaderNewIO
-xmlRegisterInputCallbacks
-

Type xmlInputMatchCallback:

xmlRegisterInputCallbacks
-

Type xmlInputOpenCallback:

xmlRegisterInputCallbacks
-

Type xmlInputReadCallback:

htmlCtxtReadIO
-htmlReadIO
-xmlCreateIOParserCtxt
-xmlCtxtReadIO
-xmlParserInputBufferCreateIO
-xmlReadIO
-xmlReaderForIO
-xmlReaderNewIO
-xmlRegisterInputCallbacks
-

Type xmlLinkPtr:

xmlLinkGetData
-xmlListDeallocator
-

Type xmlListDataCompare:

xmlListCreate
-

Type xmlListDeallocator:

xmlListCreate
-

Type xmlListPtr:

xmlListAppend
-xmlListClear
-xmlListCopy
-xmlListDelete
-xmlListEmpty
-xmlListEnd
-xmlListFront
-xmlListInsert
-xmlListMerge
-xmlListPopBack
-xmlListPopFront
-xmlListPushBack
-xmlListPushFront
-xmlListRemoveAll
-xmlListRemoveFirst
-xmlListRemoveLast
-xmlListReverse
-xmlListReverseSearch
-xmlListReverseWalk
-xmlListSearch
-xmlListSize
-xmlListSort
-xmlListWalk
-

Type xmlListWalker:

xmlListReverseWalk
-xmlListWalk
-

Type xmlLocationSetPtr:

xmlXPtrFreeLocationSet
-xmlXPtrLocationSetAdd
-xmlXPtrLocationSetDel
-xmlXPtrLocationSetMerge
-xmlXPtrLocationSetRemove
-xmlXPtrWrapLocationSet
-

Type xmlMallocFunc:

xmlGcMemSetup
-xmlMemSetup
-

Type xmlMallocFunc *:

xmlGcMemGet
-xmlMemGet
-

Type xmlModulePtr:

xmlModuleClose
-xmlModuleFree
-xmlModuleSymbol
-

Type xmlMutexPtr:

xmlFreeMutex
-xmlMutexLock
-xmlMutexUnlock
-

Type xmlNode *:

xmlValidGetValidElements
-

Type xmlNodePtr:

htmlNodeDump
-htmlNodeDumpFile
-htmlNodeDumpFileFormat
-htmlNodeDumpFormatOutput
-htmlNodeDumpOutput
-nodePush
-xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-xlinkIsLink
-xlinkNodeDetectFunc
-xlinkSimpleLinkFunk
-xmlAddChild
-xmlAddChildList
-xmlAddNextSibling
-xmlAddPrevSibling
-xmlAddSibling
-xmlC14NIsVisibleCallback
-xmlCopyProp
-xmlCopyPropList
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapReconcileNamespaces
-xmlDOMWrapRemoveNode
-xmlDebugDumpNode
-xmlDebugDumpNodeList
-xmlDebugDumpOneNode
-xmlDeregisterNodeFunc
-xmlDocSetRootElement
-xmlElemDump
-xmlEntityReferenceFunc
-xmlFreeNode
-xmlFreeNodeList
-xmlGetLastChild
-xmlGetLineNo
-xmlGetNoNsProp
-xmlGetNodePath
-xmlGetNsList
-xmlGetNsProp
-xmlGetProp
-xmlHasNsProp
-xmlHasProp
-xmlIsBlankNode
-xmlIsID
-xmlIsRef
-xmlLsCountNode
-xmlLsOneNode
-xmlNewChild
-xmlNewNs
-xmlNewNsProp
-xmlNewNsPropEatName
-xmlNewProp
-xmlNewTextChild
-xmlNewTextWriterTree
-xmlNodeAddContent
-xmlNodeAddContentLen
-xmlNodeBufGetContent
-xmlNodeDump
-xmlNodeDumpOutput
-xmlNodeGetBase
-xmlNodeGetContent
-xmlNodeGetLang
-xmlNodeGetSpacePreserve
-xmlNodeIsText
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlNodeSetBase
-xmlNodeSetContent
-xmlNodeSetContentLen
-xmlNodeSetLang
-xmlNodeSetName
-xmlNodeSetSpacePreserve
-xmlParseInNodeContext
-xmlPatternMatch
-xmlReconciliateNs
-xmlRegisterNodeFunc
-xmlRelaxNGValidateFullElement
-xmlRelaxNGValidatePopElement
-xmlRelaxNGValidatePushElement
-xmlReplaceNode
-xmlSaveTree
-xmlSchemaValPredefTypeNode
-xmlSchemaValPredefTypeNodeNoNorm
-xmlSchemaValidateOneElement
-xmlSearchNs
-xmlSearchNsByHref
-xmlSetListDoc
-xmlSetNs
-xmlSetNsProp
-xmlSetProp
-xmlSetTreeDoc
-xmlShellBase
-xmlShellCat
-xmlShellCmd
-xmlShellDir
-xmlShellDu
-xmlShellList
-xmlShellLoad
-xmlShellPrintNode
-xmlShellPwd
-xmlShellSave
-xmlShellValidate
-xmlShellWrite
-xmlTextConcat
-xmlTextMerge
-xmlUnlinkNode
-xmlUnsetNsProp
-xmlUnsetProp
-xmlValidCtxtNormalizeAttributeValue
-xmlValidNormalizeAttributeValue
-xmlValidateElement
-xmlValidateOneAttribute
-xmlValidateOneElement
-xmlValidateOneNamespace
-xmlValidatePopElement
-xmlValidatePushElement
-xmlXIncludeProcessNode
-xmlXIncludeProcessTree
-xmlXIncludeProcessTreeFlags
-xmlXPathCastNodeToNumber
-xmlXPathCastNodeToString
-xmlXPathCmpNodes
-xmlXPathNewNodeSet
-xmlXPathNewValueTree
-xmlXPathNextAncestor
-xmlXPathNextAncestorOrSelf
-xmlXPathNextAttribute
-xmlXPathNextChild
-xmlXPathNextDescendant
-xmlXPathNextDescendantOrSelf
-xmlXPathNextFollowing
-xmlXPathNextFollowingSibling
-xmlXPathNextNamespace
-xmlXPathNextParent
-xmlXPathNextPreceding
-xmlXPathNextPrecedingSibling
-xmlXPathNextSelf
-xmlXPathNodeLeading
-xmlXPathNodeLeadingSorted
-xmlXPathNodeSetAdd
-xmlXPathNodeSetAddNs
-xmlXPathNodeSetAddUnique
-xmlXPathNodeSetContains
-xmlXPathNodeSetCreate
-xmlXPathNodeSetDel
-xmlXPathNodeTrailing
-xmlXPathNodeTrailingSorted
-xmlXPtrNewCollapsedRange
-xmlXPtrNewContext
-xmlXPtrNewLocationSetNodes
-xmlXPtrNewRange
-xmlXPtrNewRangeNodeObject
-xmlXPtrNewRangeNodePoint
-xmlXPtrNewRangeNodes
-xmlXPtrNewRangePointNode
-

Type xmlNodePtr *:

xmlDOMWrapCloneNode
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseCtxtExternalEntity
-xmlParseExternalEntity
-xmlParseInNodeContext
-

Type xmlNodeSetPtr:

xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlXPathCastNodeSetToBoolean
-xmlXPathCastNodeSetToNumber
-xmlXPathCastNodeSetToString
-xmlXPathDifference
-xmlXPathDistinct
-xmlXPathDistinctSorted
-xmlXPathFreeNodeSet
-xmlXPathHasSameNodes
-xmlXPathIntersection
-xmlXPathLeading
-xmlXPathLeadingSorted
-xmlXPathNewNodeSetList
-xmlXPathNodeLeading
-xmlXPathNodeLeadingSorted
-xmlXPathNodeSetAdd
-xmlXPathNodeSetAddNs
-xmlXPathNodeSetAddUnique
-xmlXPathNodeSetContains
-xmlXPathNodeSetDel
-xmlXPathNodeSetMerge
-xmlXPathNodeSetRemove
-xmlXPathNodeSetSort
-xmlXPathNodeTrailing
-xmlXPathNodeTrailingSorted
-xmlXPathTrailing
-xmlXPathTrailingSorted
-xmlXPathWrapNodeSet
-xmlXPtrNewLocationSetNodeSet
-

Type xmlNotationPtr:

xmlDumpNotationDecl
-xmlValidateNotationDecl
-

Type xmlNotationTablePtr:

xmlCopyNotationTable
-xmlDumpNotationTable
-xmlFreeNotationTable
-

Type xmlNsPtr:

xmlCopyNamespace
-xmlCopyNamespaceList
-xmlFreeNs
-xmlFreeNsList
-xmlNewChild
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlNewDocRawNode
-xmlNewNode
-xmlNewNodeEatName
-xmlNewNsProp
-xmlNewNsPropEatName
-xmlNewTextChild
-xmlSetNs
-xmlSetNsProp
-xmlUnsetNsProp
-xmlValidateOneNamespace
-xmlXPathNodeSetAddNs
-xmlXPathNodeSetFreeNs
-

Type xmlOutputBufferCreateFilenameFunc:

xmlOutputBufferCreateFilenameDefault
-xmlThrDefOutputBufferCreateFilenameDefault
-

Type xmlOutputBufferPtr:

htmlDocContentDumpFormatOutput
-htmlDocContentDumpOutput
-htmlNodeDumpFormatOutput
-htmlNodeDumpOutput
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlNewTextWriter
-xmlNodeDumpOutput
-xmlOutputBufferClose
-xmlOutputBufferFlush
-xmlOutputBufferWrite
-xmlOutputBufferWriteEscape
-xmlOutputBufferWriteString
-xmlSaveFileTo
-xmlSaveFormatFileTo
-

Type xmlOutputCloseCallback:

xmlOutputBufferCreateIO
-xmlRegisterOutputCallbacks
-xmlSaveToIO
-

Type xmlOutputMatchCallback:

xmlRegisterOutputCallbacks
-

Type xmlOutputOpenCallback:

xmlRegisterOutputCallbacks
-

Type xmlOutputWriteCallback:

xmlOutputBufferCreateIO
-xmlRegisterOutputCallbacks
-xmlSaveToIO
-

Type xmlParserCtxtPtr:

inputPop
-inputPush
-namePop
-namePush
-nodePop
-nodePush
-xmlByteConsumed
-xmlCheckHTTPInput
-xmlClearParserCtxt
-xmlCtxtReadDoc
-xmlCtxtReadFd
-xmlCtxtReadFile
-xmlCtxtReadIO
-xmlCtxtReadMemory
-xmlCtxtReset
-xmlCtxtResetPush
-xmlCtxtUseOptions
-xmlCurrentChar
-xmlDecodeEntities
-xmlErrMemory
-xmlExternalEntityLoader
-xmlFreeParserCtxt
-xmlGetFeature
-xmlHandleEntity
-xmlInitParserCtxt
-xmlLoadExternalEntity
-xmlNamespaceParseNCName
-xmlNamespaceParseNSDef
-xmlNamespaceParseQName
-xmlNewEntityInputStream
-xmlNewIOInputStream
-xmlNewInputFromFile
-xmlNewInputStream
-xmlNewStringInputStream
-xmlNewTextWriterPushParser
-xmlNextChar
-xmlNoNetExternalEntityLoader
-xmlParseAttValue
-xmlParseAttribute
-xmlParseAttributeListDecl
-xmlParseAttributeType
-xmlParseCDSect
-xmlParseCharData
-xmlParseCharRef
-xmlParseChunk
-xmlParseComment
-xmlParseContent
-xmlParseCtxtExternalEntity
-xmlParseDefaultDecl
-xmlParseDocTypeDecl
-xmlParseDocument
-xmlParseElement
-xmlParseElementChildrenContentDecl
-xmlParseElementContentDecl
-xmlParseElementDecl
-xmlParseElementMixedContentDecl
-xmlParseEncName
-xmlParseEncodingDecl
-xmlParseEndTag
-xmlParseEntityDecl
-xmlParseEntityRef
-xmlParseEntityValue
-xmlParseEnumeratedType
-xmlParseEnumerationType
-xmlParseExtParsedEnt
-xmlParseExternalID
-xmlParseExternalSubset
-xmlParseMarkupDecl
-xmlParseMisc
-xmlParseName
-xmlParseNamespace
-xmlParseNmtoken
-xmlParseNotationDecl
-xmlParseNotationType
-xmlParsePEReference
-xmlParsePI
-xmlParsePITarget
-xmlParsePubidLiteral
-xmlParseQuotedString
-xmlParseReference
-xmlParseSDDecl
-xmlParseStartTag
-xmlParseSystemLiteral
-xmlParseTextDecl
-xmlParseVersionInfo
-xmlParseVersionNum
-xmlParseXMLDecl
-xmlParserAddNodeInfo
-xmlParserHandlePEReference
-xmlParserHandleReference
-xmlPopInput
-xmlPushInput
-xmlScanName
-xmlSetFeature
-xmlSetupParserForBuffer
-xmlSkipBlankChars
-xmlSplitQName
-xmlStopParser
-xmlStringCurrentChar
-xmlStringDecodeEntities
-xmlStringLenDecodeEntities
-xmlSwitchEncoding
-xmlSwitchInputEncoding
-xmlSwitchToEncoding
-

Type xmlParserInputBufferCreateFilenameFunc:

xmlParserInputBufferCreateFilenameDefault
-xmlThrDefParserInputBufferCreateFilenameDefault
-

Type xmlParserInputBufferPtr:

xmlFreeParserInputBuffer
-xmlIOParseDTD
-xmlNewIOInputStream
-xmlNewTextReader
-xmlParserInputBufferGrow
-xmlParserInputBufferPush
-xmlParserInputBufferRead
-xmlSchemaValidateStream
-

Type xmlParserInputPtr:

inputPush
-xmlCheckHTTPInput
-xmlFreeInputStream
-xmlParserInputGrow
-xmlParserInputRead
-xmlParserInputShrink
-xmlParserPrintFileContext
-xmlParserPrintFileInfo
-xmlPushInput
-xmlSwitchInputEncoding
-

Type xmlParserNodeInfoSeqPtr:

xmlClearNodeInfoSeq
-xmlInitNodeInfoSeq
-

Type xmlParserSeverities:

xmlTextReaderErrorFunc
-

Type xmlPatternPtr:

xmlFreePattern
-xmlFreePatternList
-xmlPatternFromRoot
-xmlPatternGetStreamCtxt
-xmlPatternMatch
-xmlPatternMaxDepth
-xmlPatternMinDepth
-xmlPatternStreamable
-

Type xmlRMutexPtr:

xmlFreeRMutex
-xmlRMutexLock
-xmlRMutexUnlock
-

Type xmlReallocFunc:

xmlGcMemSetup
-xmlMemSetup
-

Type xmlReallocFunc *:

xmlGcMemGet
-xmlMemGet
-

Type xmlRefTablePtr:

xmlFreeRefTable
-

Type xmlRegExecCallbacks:

xmlRegNewExecCtxt
-

Type xmlRegExecCtxtPtr:

xmlRegExecCallbacks
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlRegExecPushString
-xmlRegExecPushString2
-xmlRegFreeExecCtxt
-

Type xmlRegexpPtr:

xmlRegFreeRegexp
-xmlRegNewExecCtxt
-xmlRegexpExec
-xmlRegexpIsDeterminist
-xmlRegexpPrint
-

Type xmlRegisterNodeFunc:

xmlRegisterNodeDefault
-xmlThrDefRegisterNodeDefault
-

Type xmlRelaxNGParserCtxtPtr:

xmlRelaxNGFreeParserCtxt
-xmlRelaxNGGetParserErrors
-xmlRelaxNGParse
-xmlRelaxNGSetParserErrors
-xmlRelaxNGSetParserStructuredErrors
-xmlRelaxParserSetFlag
-

Type xmlRelaxNGPtr:

xmlRelaxNGDump
-xmlRelaxNGDumpTree
-xmlRelaxNGFree
-xmlRelaxNGNewValidCtxt
-xmlTextReaderRelaxNGSetSchema
-

Type xmlRelaxNGValidCtxtPtr:

xmlRelaxNGFreeValidCtxt
-xmlRelaxNGGetValidErrors
-xmlRelaxNGSetValidErrors
-xmlRelaxNGSetValidStructuredErrors
-xmlRelaxNGValidateDoc
-xmlRelaxNGValidateFullElement
-xmlRelaxNGValidatePopElement
-xmlRelaxNGValidatePushCData
-xmlRelaxNGValidatePushElement
-

Type xmlRelaxNGValidityErrorFunc:

xmlRelaxNGSetParserErrors
-xmlRelaxNGSetValidErrors
-

Type xmlRelaxNGValidityErrorFunc *:

xmlRelaxNGGetParserErrors
-xmlRelaxNGGetValidErrors
-

Type xmlRelaxNGValidityWarningFunc:

xmlRelaxNGSetParserErrors
-xmlRelaxNGSetValidErrors
-

Type xmlRelaxNGValidityWarningFunc *:

xmlRelaxNGGetParserErrors
-xmlRelaxNGGetValidErrors
-

Type xmlSAXHandler *:

xmlSAX2InitDefaultSAXHandler
-xmlSAX2InitDocbDefaultSAXHandler
-xmlSAX2InitHtmlDefaultSAXHandler
-xmlSAXVersion
-

Type xmlSAXHandlerPtr:

xmlCreateIOParserCtxt
-xmlCreatePushParserCtxt
-xmlIOParseDTD
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseExternalEntity
-xmlSAXParseDTD
-xmlSAXParseDoc
-xmlSAXParseEntity
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-xmlSAXUserParseFile
-xmlSAXUserParseMemory
-xmlSchemaValidateStream
-

Type xmlSAXHandlerPtr *:

xmlSchemaSAXPlug
-

Type xmlSAXHandlerV1 *:

initdocbDefaultSAXHandler
-inithtmlDefaultSAXHandler
-initxmlDefaultSAXHandler
-

Type xmlSAXLocatorPtr:

setDocumentLocator
-setDocumentLocatorSAXFunc
-xmlSAX2SetDocumentLocator
-

Type xmlSaveCtxtPtr:

xmlSaveClose
-xmlSaveDoc
-xmlSaveFlush
-xmlSaveSetAttrEscape
-xmlSaveSetEscape
-xmlSaveTree
-

Type xmlSchemaFacetPtr:

xmlSchemaCheckFacet
-xmlSchemaFreeFacet
-xmlSchemaGetFacetValueAsULong
-xmlSchemaValidateFacet
-xmlSchemaValidateFacetWhtsp
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-xmlSchemaValidateListSimpleTypeFacet
-

Type xmlSchemaParserCtxtPtr:

xmlSchemaCheckFacet
-xmlSchemaFreeParserCtxt
-xmlSchemaGetParserErrors
-xmlSchemaParse
-xmlSchemaSetParserErrors
-xmlSchemaSetParserStructuredErrors
-

Type xmlSchemaPtr:

xmlSchemaDump
-xmlSchemaFree
-xmlSchemaNewValidCtxt
-xmlTextReaderSetSchema
-

Type xmlSchemaSAXPlugPtr:

xmlSchemaSAXUnplug
-

Type xmlSchemaTypePtr:

xmlSchemaCheckFacet
-xmlSchemaFreeType
-xmlSchemaGetBuiltInListSimpleTypeItemType
-xmlSchemaIsBuiltInTypeFacet
-xmlSchemaValPredefTypeNode
-xmlSchemaValPredefTypeNodeNoNorm
-xmlSchemaValidateFacet
-xmlSchemaValidateLengthFacet
-xmlSchemaValidatePredefinedType
-

Type xmlSchemaValPtr:

xmlSchemaCompareValues
-xmlSchemaCompareValuesWhtsp
-xmlSchemaCopyValue
-xmlSchemaFreeValue
-xmlSchemaGetCanonValue
-xmlSchemaGetCanonValueWhtsp
-xmlSchemaGetValType
-xmlSchemaValidateFacet
-xmlSchemaValidateFacetWhtsp
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-xmlSchemaValueAppend
-xmlSchemaValueGetAsBoolean
-xmlSchemaValueGetAsString
-xmlSchemaValueGetNext
-

Type xmlSchemaValPtr *:

xmlSchemaValPredefTypeNode
-xmlSchemaValPredefTypeNodeNoNorm
-xmlSchemaValidatePredefinedType
-

Type xmlSchemaValType:

xmlSchemaGetBuiltInType
-xmlSchemaNewStringValue
-xmlSchemaValidateFacetWhtsp
-xmlSchemaValidateLengthFacetWhtsp
-

Type xmlSchemaValidCtxtPtr:

xmlSchemaFreeValidCtxt
-xmlSchemaGetValidErrors
-xmlSchemaIsValid
-xmlSchemaSAXPlug
-xmlSchemaSetValidErrors
-xmlSchemaSetValidOptions
-xmlSchemaSetValidStructuredErrors
-xmlSchemaValidCtxtGetOptions
-xmlSchemaValidateDoc
-xmlSchemaValidateFile
-xmlSchemaValidateOneElement
-xmlSchemaValidateStream
-xmlTextReaderSchemaValidateCtxt
-

Type xmlSchemaValidityErrorFunc:

xmlSchemaSetParserErrors
-xmlSchemaSetValidErrors
-

Type xmlSchemaValidityErrorFunc *:

xmlSchemaGetParserErrors
-xmlSchemaGetValidErrors
-

Type xmlSchemaValidityWarningFunc:

xmlSchemaSetParserErrors
-xmlSchemaSetValidErrors
-

Type xmlSchemaValidityWarningFunc *:

xmlSchemaGetParserErrors
-xmlSchemaGetValidErrors
-

Type xmlSchemaWhitespaceValueType:

xmlSchemaCompareValuesWhtsp
-xmlSchemaGetCanonValueWhtsp
-xmlSchemaValidateFacetWhtsp
-xmlSchemaValidateLengthFacetWhtsp
-

Type xmlSchemaWildcardPtr:

xmlSchemaFreeWildcard
-

Type xmlSchematronParserCtxtPtr:

xmlSchematronFreeParserCtxt
-xmlSchematronParse
-

Type xmlSchematronPtr:

xmlSchematronFree
-xmlSchematronNewValidCtxt
-

Type xmlSchematronValidCtxtPtr:

xmlSchematronFreeValidCtxt
-xmlSchematronValidateDoc
-

Type xmlShellCtxtPtr:

xmlShellBase
-xmlShellCat
-xmlShellCmd
-xmlShellDir
-xmlShellDu
-xmlShellList
-xmlShellLoad
-xmlShellPwd
-xmlShellSave
-xmlShellValidate
-xmlShellWrite
-

Type xmlShellReadlineFunc:

xmlShell
-

Type xmlStrdupFunc:

xmlGcMemSetup
-xmlMemSetup
-

Type xmlStrdupFunc *:

xmlGcMemGet
-xmlMemGet
-

Type xmlStreamCtxtPtr:

xmlFreeStreamCtxt
-xmlStreamPop
-xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-xmlStreamWantsAnyNode
-

Type xmlStructuredErrorFunc:

xmlRelaxNGSetParserStructuredErrors
-xmlRelaxNGSetValidStructuredErrors
-xmlSchemaSetParserStructuredErrors
-xmlSchemaSetValidStructuredErrors
-xmlSetStructuredErrorFunc
-xmlTextReaderSetStructuredErrorHandler
-xmlThrDefSetStructuredErrorFunc
-

Type xmlTextReaderErrorFunc:

xmlTextReaderSetErrorHandler
-

Type xmlTextReaderErrorFunc *:

xmlTextReaderGetErrorHandler
-

Type xmlTextReaderLocatorPtr:

xmlTextReaderErrorFunc
-xmlTextReaderLocatorBaseURI
-xmlTextReaderLocatorLineNumber
-

Type xmlTextReaderPtr:

xmlFreeTextReader
-xmlReaderNewDoc
-xmlReaderNewFd
-xmlReaderNewFile
-xmlReaderNewIO
-xmlReaderNewMemory
-xmlReaderNewWalker
-xmlTextReaderAttributeCount
-xmlTextReaderBaseUri
-xmlTextReaderByteConsumed
-xmlTextReaderClose
-xmlTextReaderConstBaseUri
-xmlTextReaderConstEncoding
-xmlTextReaderConstLocalName
-xmlTextReaderConstName
-xmlTextReaderConstNamespaceUri
-xmlTextReaderConstPrefix
-xmlTextReaderConstString
-xmlTextReaderConstValue
-xmlTextReaderConstXmlLang
-xmlTextReaderConstXmlVersion
-xmlTextReaderCurrentDoc
-xmlTextReaderCurrentNode
-xmlTextReaderDepth
-xmlTextReaderExpand
-xmlTextReaderGetAttribute
-xmlTextReaderGetAttributeNo
-xmlTextReaderGetAttributeNs
-xmlTextReaderGetErrorHandler
-xmlTextReaderGetParserColumnNumber
-xmlTextReaderGetParserLineNumber
-xmlTextReaderGetParserProp
-xmlTextReaderGetRemainder
-xmlTextReaderHasAttributes
-xmlTextReaderHasValue
-xmlTextReaderIsDefault
-xmlTextReaderIsEmptyElement
-xmlTextReaderIsNamespaceDecl
-xmlTextReaderIsValid
-xmlTextReaderLocalName
-xmlTextReaderLookupNamespace
-xmlTextReaderMoveToAttribute
-xmlTextReaderMoveToAttributeNo
-xmlTextReaderMoveToAttributeNs
-xmlTextReaderMoveToElement
-xmlTextReaderMoveToFirstAttribute
-xmlTextReaderMoveToNextAttribute
-xmlTextReaderName
-xmlTextReaderNamespaceUri
-xmlTextReaderNext
-xmlTextReaderNextSibling
-xmlTextReaderNodeType
-xmlTextReaderNormalization
-xmlTextReaderPrefix
-xmlTextReaderPreserve
-xmlTextReaderPreservePattern
-xmlTextReaderQuoteChar
-xmlTextReaderRead
-xmlTextReaderReadAttributeValue
-xmlTextReaderReadInnerXml
-xmlTextReaderReadOuterXml
-xmlTextReaderReadState
-xmlTextReaderReadString
-xmlTextReaderRelaxNGSetSchema
-xmlTextReaderRelaxNGValidate
-xmlTextReaderSchemaValidate
-xmlTextReaderSchemaValidateCtxt
-xmlTextReaderSetErrorHandler
-xmlTextReaderSetParserProp
-xmlTextReaderSetSchema
-xmlTextReaderSetStructuredErrorHandler
-xmlTextReaderStandalone
-xmlTextReaderValue
-xmlTextReaderXmlLang
-

Type xmlTextWriterPtr:

xmlFreeTextWriter
-xmlTextWriterEndAttribute
-xmlTextWriterEndCDATA
-xmlTextWriterEndComment
-xmlTextWriterEndDTD
-xmlTextWriterEndDTDAttlist
-xmlTextWriterEndDTDElement
-xmlTextWriterEndDTDEntity
-xmlTextWriterEndDocument
-xmlTextWriterEndElement
-xmlTextWriterEndPI
-xmlTextWriterFlush
-xmlTextWriterFullEndElement
-xmlTextWriterSetIndent
-xmlTextWriterSetIndentString
-xmlTextWriterStartAttribute
-xmlTextWriterStartAttributeNS
-xmlTextWriterStartCDATA
-xmlTextWriterStartComment
-xmlTextWriterStartDTD
-xmlTextWriterStartDTDAttlist
-xmlTextWriterStartDTDElement
-xmlTextWriterStartDTDEntity
-xmlTextWriterStartDocument
-xmlTextWriterStartElement
-xmlTextWriterStartElementNS
-xmlTextWriterStartPI
-xmlTextWriterWriteAttribute
-xmlTextWriterWriteAttributeNS
-xmlTextWriterWriteBase64
-xmlTextWriterWriteBinHex
-xmlTextWriterWriteCDATA
-xmlTextWriterWriteComment
-xmlTextWriterWriteDTD
-xmlTextWriterWriteDTDAttlist
-xmlTextWriterWriteDTDElement
-xmlTextWriterWriteDTDEntity
-xmlTextWriterWriteDTDExternalEntity
-xmlTextWriterWriteDTDExternalEntityContents
-xmlTextWriterWriteDTDInternalEntity
-xmlTextWriterWriteDTDNotation
-xmlTextWriterWriteElement
-xmlTextWriterWriteElementNS
-xmlTextWriterWriteFormatAttribute
-xmlTextWriterWriteFormatAttributeNS
-xmlTextWriterWriteFormatCDATA
-xmlTextWriterWriteFormatComment
-xmlTextWriterWriteFormatDTD
-xmlTextWriterWriteFormatDTDAttlist
-xmlTextWriterWriteFormatDTDElement
-xmlTextWriterWriteFormatDTDInternalEntity
-xmlTextWriterWriteFormatElement
-xmlTextWriterWriteFormatElementNS
-xmlTextWriterWriteFormatPI
-xmlTextWriterWriteFormatRaw
-xmlTextWriterWriteFormatString
-xmlTextWriterWritePI
-xmlTextWriterWriteRaw
-xmlTextWriterWriteRawLen
-xmlTextWriterWriteString
-xmlTextWriterWriteVFormatAttribute
-xmlTextWriterWriteVFormatAttributeNS
-xmlTextWriterWriteVFormatCDATA
-xmlTextWriterWriteVFormatComment
-xmlTextWriterWriteVFormatDTD
-xmlTextWriterWriteVFormatDTDAttlist
-xmlTextWriterWriteVFormatDTDElement
-xmlTextWriterWriteVFormatDTDInternalEntity
-xmlTextWriterWriteVFormatElement
-xmlTextWriterWriteVFormatElementNS
-xmlTextWriterWriteVFormatPI
-xmlTextWriterWriteVFormatRaw
-xmlTextWriterWriteVFormatString
-

Type xmlURIPtr:

xmlFreeURI
-xmlParseURIReference
-xmlPrintURI
-xmlSaveUri
-

Type xmlValidCtxtPtr:

xmlAddAttributeDecl
-xmlAddElementDecl
-xmlAddID
-xmlAddNotationDecl
-xmlAddRef
-xmlFreeValidCtxt
-xmlValidBuildContentModel
-xmlValidCtxtNormalizeAttributeValue
-xmlValidateAttributeDecl
-xmlValidateDocument
-xmlValidateDocumentFinal
-xmlValidateDtd
-xmlValidateDtdFinal
-xmlValidateElement
-xmlValidateElementDecl
-xmlValidateNotationDecl
-xmlValidateNotationUse
-xmlValidateOneAttribute
-xmlValidateOneElement
-xmlValidateOneNamespace
-xmlValidatePopElement
-xmlValidatePushCData
-xmlValidatePushElement
-xmlValidateRoot
-

Type xmlXIncludeCtxtPtr:

xmlXIncludeFreeContext
-xmlXIncludeProcessNode
-xmlXIncludeSetFlags
-

Type xmlXPathCompExprPtr:

xmlXPathCompiledEval
-xmlXPathDebugDumpCompExpr
-xmlXPathFreeCompExpr
-

Type xmlXPathContextPtr:

xmlXPathCompiledEval
-xmlXPathContextSetCache
-xmlXPathCtxtCompile
-xmlXPathEval
-xmlXPathEvalExpression
-xmlXPathEvalPredicate
-xmlXPathFreeContext
-xmlXPathFunctionLookup
-xmlXPathFunctionLookupNS
-xmlXPathNewParserContext
-xmlXPathNsLookup
-xmlXPathRegisterAllFunctions
-xmlXPathRegisterFunc
-xmlXPathRegisterFuncLookup
-xmlXPathRegisterFuncNS
-xmlXPathRegisterNs
-xmlXPathRegisterVariable
-xmlXPathRegisterVariableLookup
-xmlXPathRegisterVariableNS
-xmlXPathRegisteredFuncsCleanup
-xmlXPathRegisteredNsCleanup
-xmlXPathRegisteredVariablesCleanup
-xmlXPathVariableLookup
-xmlXPathVariableLookupNS
-xmlXPtrEval
-

Type xmlXPathFuncLookupFunc:

xmlXPathRegisterFuncLookup
-

Type xmlXPathFunction:

xmlXPathRegisterFunc
-xmlXPathRegisterFuncNS
-

Type xmlXPathObjectPtr:

valuePush
-xmlShellPrintXPathResult
-xmlXPathAxisFunc
-xmlXPathCastToBoolean
-xmlXPathCastToNumber
-xmlXPathCastToString
-xmlXPathConvertBoolean
-xmlXPathConvertFunc
-xmlXPathConvertNumber
-xmlXPathConvertString
-xmlXPathDebugDumpObject
-xmlXPathEvalPredicate
-xmlXPathEvaluatePredicateResult
-xmlXPathFreeNodeSetList
-xmlXPathFreeObject
-xmlXPathObjectCopy
-xmlXPathRegisterVariable
-xmlXPathRegisterVariableNS
-xmlXPtrBuildNodeList
-xmlXPtrLocationSetAdd
-xmlXPtrLocationSetCreate
-xmlXPtrLocationSetDel
-xmlXPtrNewRangeNodeObject
-xmlXPtrNewRangeNodePoint
-xmlXPtrNewRangePointNode
-xmlXPtrNewRangePoints
-

Type xmlXPathParserContextPtr:

valuePop
-valuePush
-xmlXPathAddValues
-xmlXPathAxisFunc
-xmlXPathBooleanFunction
-xmlXPathCeilingFunction
-xmlXPathCompareValues
-xmlXPathConcatFunction
-xmlXPathContainsFunction
-xmlXPathCountFunction
-xmlXPathDivValues
-xmlXPathEqualValues
-xmlXPathErr
-xmlXPathEvalExpr
-xmlXPathEvalFunc
-xmlXPathEvaluatePredicateResult
-xmlXPathFalseFunction
-xmlXPathFloorFunction
-xmlXPathFreeParserContext
-xmlXPathFunction
-xmlXPathIdFunction
-xmlXPathLangFunction
-xmlXPathLastFunction
-xmlXPathLocalNameFunction
-xmlXPathModValues
-xmlXPathMultValues
-xmlXPathNamespaceURIFunction
-xmlXPathNextAncestor
-xmlXPathNextAncestorOrSelf
-xmlXPathNextAttribute
-xmlXPathNextChild
-xmlXPathNextDescendant
-xmlXPathNextDescendantOrSelf
-xmlXPathNextFollowing
-xmlXPathNextFollowingSibling
-xmlXPathNextNamespace
-xmlXPathNextParent
-xmlXPathNextPreceding
-xmlXPathNextPrecedingSibling
-xmlXPathNextSelf
-xmlXPathNormalizeFunction
-xmlXPathNotEqualValues
-xmlXPathNotFunction
-xmlXPathNumberFunction
-xmlXPathParseNCName
-xmlXPathParseName
-xmlXPathPopBoolean
-xmlXPathPopExternal
-xmlXPathPopNodeSet
-xmlXPathPopNumber
-xmlXPathPopString
-xmlXPathPositionFunction
-xmlXPathRoot
-xmlXPathRoundFunction
-xmlXPathStartsWithFunction
-xmlXPathStringFunction
-xmlXPathStringLengthFunction
-xmlXPathSubValues
-xmlXPathSubstringAfterFunction
-xmlXPathSubstringBeforeFunction
-xmlXPathSubstringFunction
-xmlXPathSumFunction
-xmlXPathTranslateFunction
-xmlXPathTrueFunction
-xmlXPathValueFlipSign
-xmlXPatherror
-xmlXPtrEvalRangePredicate
-xmlXPtrRangeToFunction
-

Type xmlXPathVariableLookupFunc:

xmlXPathRegisterVariableLookup
-

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/APIsymbols.html b/src/tools/docbook/libxml2/doc/APIsymbols.html deleted file mode 100644 index 7e1ba3c44b..0000000000 --- a/src/tools/docbook/libxml2/doc/APIsymbols.html +++ /dev/null @@ -1,3487 +0,0 @@ - - -Alphabetic List of Symbols in libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

Alphabetic List of Symbols in libxml2

Developer Menu
API Indexes
Related links

Letter A:

ATTRIBUTE_UNUSED
-

Letter B:

BAD_CAST
-BASE_BUFFER_SIZE
-

Letter C:

CAST_TO_BOOLEAN
-CAST_TO_NUMBER
-CAST_TO_STRING
-CHECK_ARITY
-CHECK_ERROR
-CHECK_ERROR0
-CHECK_TYPE
-CHECK_TYPE0
-

Letter D:

DEBUG_MEMORY
-DEBUG_MEMORY_LOCATION
-

Letter H:

HTML_COMMENT_NODE
-HTML_DEPRECATED
-HTML_ENTITY_REF_NODE
-HTML_INVALID
-HTML_NA
-HTML_PARSE_COMPACT
-HTML_PARSE_NOBLANKS
-HTML_PARSE_NOERROR
-HTML_PARSE_NONET
-HTML_PARSE_NOWARNING
-HTML_PARSE_PEDANTIC
-HTML_PARSE_RECOVER
-HTML_PI_NODE
-HTML_PRESERVE_NODE
-HTML_REQUIRED
-HTML_TEXT_NODE
-HTML_VALID
-

Letter I:

INPUT_CHUNK
-IS_ASCII_DIGIT
-IS_ASCII_LETTER
-IS_BASECHAR
-IS_BLANK
-IS_BLANK_CH
-IS_BYTE_CHAR
-IS_CHAR
-IS_CHAR_CH
-IS_COMBINING
-IS_COMBINING_CH
-IS_DIGIT
-IS_DIGIT_CH
-IS_EXTENDER
-IS_EXTENDER_CH
-IS_IDEOGRAPHIC
-IS_LETTER
-IS_LETTER_CH
-IS_PUBIDCHAR
-IS_PUBIDCHAR_CH
-

Letter L:

LIBXML_AUTOMATA_ENABLED
-LIBXML_C14N_ENABLED
-LIBXML_CATALOG_ENABLED
-LIBXML_DEBUG_ENABLED
-LIBXML_DEBUG_RUNTIME
-LIBXML_DLL_IMPORT
-LIBXML_DOCB_ENABLED
-LIBXML_DOTTED_VERSION
-LIBXML_EXPR_ENABLED
-LIBXML_FTP_ENABLED
-LIBXML_HTML_ENABLED
-LIBXML_HTTP_ENABLED
-LIBXML_ICONV_ENABLED
-LIBXML_ISO8859X_ENABLED
-LIBXML_LEGACY_ENABLED
-LIBXML_MODULES_ENABLED
-LIBXML_MODULE_EXTENSION
-LIBXML_OUTPUT_ENABLED
-LIBXML_PATTERN_ENABLED
-LIBXML_PUSH_ENABLED
-LIBXML_READER_ENABLED
-LIBXML_REGEXP_ENABLED
-LIBXML_SAX1_ENABLED
-LIBXML_SCHEMAS_ENABLED
-LIBXML_SCHEMATRON_ENABLED
-LIBXML_TEST_VERSION
-LIBXML_THREAD_ENABLED
-LIBXML_TREE_ENABLED
-LIBXML_UNICODE_ENABLED
-LIBXML_VALID_ENABLED
-LIBXML_VERSION
-LIBXML_VERSION_EXTRA
-LIBXML_VERSION_STRING
-LIBXML_WRITER_ENABLED
-LIBXML_XINCLUDE_ENABLED
-LIBXML_XPATH_ENABLED
-LIBXML_XPTR_ENABLED
-

Letter M:

MOVETO_ENDTAG
-MOVETO_STARTTAG
-

Letter S:

SKIP_EOL
-

Letter U:

UTF8ToHtml
-UTF8Toisolat1
-

Letter W:

WITHOUT_TRIO
-WITH_TRIO
-

Letter X:

XINCLUDE_FALLBACK
-XINCLUDE_HREF
-XINCLUDE_NODE
-XINCLUDE_NS
-XINCLUDE_OLD_NS
-XINCLUDE_PARSE
-XINCLUDE_PARSE_ENCODING
-XINCLUDE_PARSE_TEXT
-XINCLUDE_PARSE_XML
-XINCLUDE_PARSE_XPOINTER
-XLINK_ACTUATE_AUTO
-XLINK_ACTUATE_NONE
-XLINK_ACTUATE_ONREQUEST
-XLINK_SHOW_EMBED
-XLINK_SHOW_NEW
-XLINK_SHOW_NONE
-XLINK_SHOW_REPLACE
-XLINK_TYPE_EXTENDED
-XLINK_TYPE_EXTENDED_SET
-XLINK_TYPE_NONE
-XLINK_TYPE_SIMPLE
-XMLCALL
-XMLCDECL
-XMLPUBFUN
-XMLPUBVAR
-XML_ATTRIBUTE_CDATA
-XML_ATTRIBUTE_DECL
-XML_ATTRIBUTE_ENTITIES
-XML_ATTRIBUTE_ENTITY
-XML_ATTRIBUTE_ENUMERATION
-XML_ATTRIBUTE_FIXED
-XML_ATTRIBUTE_ID
-XML_ATTRIBUTE_IDREF
-XML_ATTRIBUTE_IDREFS
-XML_ATTRIBUTE_IMPLIED
-XML_ATTRIBUTE_NMTOKEN
-XML_ATTRIBUTE_NMTOKENS
-XML_ATTRIBUTE_NODE
-XML_ATTRIBUTE_NONE
-XML_ATTRIBUTE_NOTATION
-XML_ATTRIBUTE_REQUIRED
-XML_BUFFER_ALLOC_DOUBLEIT
-XML_BUFFER_ALLOC_EXACT
-XML_BUFFER_ALLOC_IMMUTABLE
-XML_C14N_CREATE_CTXT
-XML_C14N_CREATE_STACK
-XML_C14N_INVALID_NODE
-XML_C14N_RELATIVE_NAMESPACE
-XML_C14N_REQUIRES_UTF8
-XML_C14N_UNKNOW_NODE
-XML_CAST_FPTR
-XML_CATALOGS_NAMESPACE
-XML_CATALOG_ENTRY_BROKEN
-XML_CATALOG_MISSING_ATTR
-XML_CATALOG_NOT_CATALOG
-XML_CATALOG_PI
-XML_CATALOG_PREFER_VALUE
-XML_CATALOG_RECURSION
-XML_CATA_ALLOW_ALL
-XML_CATA_ALLOW_DOCUMENT
-XML_CATA_ALLOW_GLOBAL
-XML_CATA_ALLOW_NONE
-XML_CATA_PREFER_NONE
-XML_CATA_PREFER_PUBLIC
-XML_CATA_PREFER_SYSTEM
-XML_CDATA_SECTION_NODE
-XML_CHAR_ENCODING_2022_JP
-XML_CHAR_ENCODING_8859_1
-XML_CHAR_ENCODING_8859_2
-XML_CHAR_ENCODING_8859_3
-XML_CHAR_ENCODING_8859_4
-XML_CHAR_ENCODING_8859_5
-XML_CHAR_ENCODING_8859_6
-XML_CHAR_ENCODING_8859_7
-XML_CHAR_ENCODING_8859_8
-XML_CHAR_ENCODING_8859_9
-XML_CHAR_ENCODING_ASCII
-XML_CHAR_ENCODING_EBCDIC
-XML_CHAR_ENCODING_ERROR
-XML_CHAR_ENCODING_EUC_JP
-XML_CHAR_ENCODING_NONE
-XML_CHAR_ENCODING_SHIFT_JIS
-XML_CHAR_ENCODING_UCS2
-XML_CHAR_ENCODING_UCS4BE
-XML_CHAR_ENCODING_UCS4LE
-XML_CHAR_ENCODING_UCS4_2143
-XML_CHAR_ENCODING_UCS4_3412
-XML_CHAR_ENCODING_UTF16BE
-XML_CHAR_ENCODING_UTF16LE
-XML_CHAR_ENCODING_UTF8
-XML_CHECK_
-XML_CHECK_ENTITY_TYPE
-XML_CHECK_FOUND_ATTRIBUTE
-XML_CHECK_FOUND_CDATA
-XML_CHECK_FOUND_COMMENT
-XML_CHECK_FOUND_DOCTYPE
-XML_CHECK_FOUND_ELEMENT
-XML_CHECK_FOUND_ENTITY
-XML_CHECK_FOUND_ENTITYREF
-XML_CHECK_FOUND_FRAGMENT
-XML_CHECK_FOUND_NOTATION
-XML_CHECK_FOUND_PI
-XML_CHECK_FOUND_TEXT
-XML_CHECK_NAME_NOT_NULL
-XML_CHECK_NOT_ATTR
-XML_CHECK_NOT_ATTR_DECL
-XML_CHECK_NOT_DTD
-XML_CHECK_NOT_ELEM_DECL
-XML_CHECK_NOT_ENTITY_DECL
-XML_CHECK_NOT_NCNAME
-XML_CHECK_NOT_NS_DECL
-XML_CHECK_NOT_UTF8
-XML_CHECK_NO_DICT
-XML_CHECK_NO_DOC
-XML_CHECK_NO_ELEM
-XML_CHECK_NO_HREF
-XML_CHECK_NO_NAME
-XML_CHECK_NO_NEXT
-XML_CHECK_NO_PARENT
-XML_CHECK_NO_PREV
-XML_CHECK_NS_ANCESTOR
-XML_CHECK_NS_SCOPE
-XML_CHECK_OUTSIDE_DICT
-XML_CHECK_UNKNOWN_NODE
-XML_CHECK_WRONG_DOC
-XML_CHECK_WRONG_NAME
-XML_CHECK_WRONG_NEXT
-XML_CHECK_WRONG_PARENT
-XML_CHECK_WRONG_PREV
-XML_CHECK_X
-XML_COMMENT_NODE
-XML_COMPLETE_ATTRS
-XML_CTXT_FINISH_DTD_0
-XML_CTXT_FINISH_DTD_1
-XML_DEFAULT_VERSION
-XML_DETECT_IDS
-XML_DOCB_DOCUMENT_NODE
-XML_DOCUMENT_FRAG_NODE
-XML_DOCUMENT_NODE
-XML_DOCUMENT_TYPE_NODE
-XML_DTD_ATTRIBUTE_DEFAULT
-XML_DTD_ATTRIBUTE_REDEFINED
-XML_DTD_ATTRIBUTE_VALUE
-XML_DTD_CONTENT_ERROR
-XML_DTD_CONTENT_MODEL
-XML_DTD_CONTENT_NOT_DETERMINIST
-XML_DTD_DIFFERENT_PREFIX
-XML_DTD_ELEM_DEFAULT_NAMESPACE
-XML_DTD_ELEM_NAMESPACE
-XML_DTD_ELEM_REDEFINED
-XML_DTD_EMPTY_NOTATION
-XML_DTD_ENTITY_TYPE
-XML_DTD_ID_FIXED
-XML_DTD_ID_REDEFINED
-XML_DTD_ID_SUBSET
-XML_DTD_INVALID_CHILD
-XML_DTD_INVALID_DEFAULT
-XML_DTD_LOAD_ERROR
-XML_DTD_MISSING_ATTRIBUTE
-XML_DTD_MIXED_CORRUPT
-XML_DTD_MULTIPLE_ID
-XML_DTD_NODE
-XML_DTD_NOTATION_REDEFINED
-XML_DTD_NOTATION_VALUE
-XML_DTD_NOT_EMPTY
-XML_DTD_NOT_PCDATA
-XML_DTD_NOT_STANDALONE
-XML_DTD_NO_DOC
-XML_DTD_NO_DTD
-XML_DTD_NO_ELEM_NAME
-XML_DTD_NO_PREFIX
-XML_DTD_NO_ROOT
-XML_DTD_ROOT_NAME
-XML_DTD_STANDALONE_DEFAULTED
-XML_DTD_STANDALONE_WHITE_SPACE
-XML_DTD_UNKNOWN_ATTRIBUTE
-XML_DTD_UNKNOWN_ELEM
-XML_DTD_UNKNOWN_ENTITY
-XML_DTD_UNKNOWN_ID
-XML_DTD_UNKNOWN_NOTATION
-XML_DTD_XMLID_TYPE
-XML_DTD_XMLID_VALUE
-XML_ELEMENT_CONTENT_ELEMENT
-XML_ELEMENT_CONTENT_MULT
-XML_ELEMENT_CONTENT_ONCE
-XML_ELEMENT_CONTENT_OPT
-XML_ELEMENT_CONTENT_OR
-XML_ELEMENT_CONTENT_PCDATA
-XML_ELEMENT_CONTENT_PLUS
-XML_ELEMENT_CONTENT_SEQ
-XML_ELEMENT_DECL
-XML_ELEMENT_NODE
-XML_ELEMENT_TYPE_ANY
-XML_ELEMENT_TYPE_ELEMENT
-XML_ELEMENT_TYPE_EMPTY
-XML_ELEMENT_TYPE_MIXED
-XML_ELEMENT_TYPE_UNDEFINED
-XML_ENTITY_DECL
-XML_ENTITY_NODE
-XML_ENTITY_REF_NODE
-XML_ERR_ATTLIST_NOT_FINISHED
-XML_ERR_ATTLIST_NOT_STARTED
-XML_ERR_ATTRIBUTE_NOT_FINISHED
-XML_ERR_ATTRIBUTE_NOT_STARTED
-XML_ERR_ATTRIBUTE_REDEFINED
-XML_ERR_ATTRIBUTE_WITHOUT_VALUE
-XML_ERR_CDATA_NOT_FINISHED
-XML_ERR_CHARREF_AT_EOF
-XML_ERR_CHARREF_IN_DTD
-XML_ERR_CHARREF_IN_EPILOG
-XML_ERR_CHARREF_IN_PROLOG
-XML_ERR_COMMENT_NOT_FINISHED
-XML_ERR_CONDSEC_INVALID
-XML_ERR_CONDSEC_INVALID_KEYWORD
-XML_ERR_CONDSEC_NOT_FINISHED
-XML_ERR_CONDSEC_NOT_STARTED
-XML_ERR_DOCTYPE_NOT_FINISHED
-XML_ERR_DOCUMENT_EMPTY
-XML_ERR_DOCUMENT_END
-XML_ERR_DOCUMENT_START
-XML_ERR_ELEMCONTENT_NOT_FINISHED
-XML_ERR_ELEMCONTENT_NOT_STARTED
-XML_ERR_ENCODING_NAME
-XML_ERR_ENTITYREF_AT_EOF
-XML_ERR_ENTITYREF_IN_DTD
-XML_ERR_ENTITYREF_IN_EPILOG
-XML_ERR_ENTITYREF_IN_PROLOG
-XML_ERR_ENTITYREF_NO_NAME
-XML_ERR_ENTITYREF_SEMICOL_MISSING
-XML_ERR_ENTITY_BOUNDARY
-XML_ERR_ENTITY_CHAR_ERROR
-XML_ERR_ENTITY_IS_EXTERNAL
-XML_ERR_ENTITY_IS_PARAMETER
-XML_ERR_ENTITY_LOOP
-XML_ERR_ENTITY_NOT_FINISHED
-XML_ERR_ENTITY_NOT_STARTED
-XML_ERR_ENTITY_PE_INTERNAL
-XML_ERR_ENTITY_PROCESSING
-XML_ERR_EQUAL_REQUIRED
-XML_ERR_ERROR
-XML_ERR_EXTRA_CONTENT
-XML_ERR_EXT_ENTITY_STANDALONE
-XML_ERR_EXT_SUBSET_NOT_FINISHED
-XML_ERR_FATAL
-XML_ERR_GT_REQUIRED
-XML_ERR_HYPHEN_IN_COMMENT
-XML_ERR_INTERNAL_ERROR
-XML_ERR_INVALID_CHAR
-XML_ERR_INVALID_CHARREF
-XML_ERR_INVALID_DEC_CHARREF
-XML_ERR_INVALID_ENCODING
-XML_ERR_INVALID_HEX_CHARREF
-XML_ERR_INVALID_URI
-XML_ERR_LITERAL_NOT_FINISHED
-XML_ERR_LITERAL_NOT_STARTED
-XML_ERR_LTSLASH_REQUIRED
-XML_ERR_LT_IN_ATTRIBUTE
-XML_ERR_LT_REQUIRED
-XML_ERR_MISPLACED_CDATA_END
-XML_ERR_MISSING_ENCODING
-XML_ERR_MIXED_NOT_FINISHED
-XML_ERR_MIXED_NOT_STARTED
-XML_ERR_NAME_REQUIRED
-XML_ERR_NMTOKEN_REQUIRED
-XML_ERR_NONE
-XML_ERR_NOTATION_NOT_FINISHED
-XML_ERR_NOTATION_NOT_STARTED
-XML_ERR_NOTATION_PROCESSING
-XML_ERR_NOT_STANDALONE
-XML_ERR_NOT_WELL_BALANCED
-XML_ERR_NO_DTD
-XML_ERR_NO_MEMORY
-XML_ERR_NS_DECL_ERROR
-XML_ERR_OK
-XML_ERR_PCDATA_REQUIRED
-XML_ERR_PEREF_AT_EOF
-XML_ERR_PEREF_IN_EPILOG
-XML_ERR_PEREF_IN_INT_SUBSET
-XML_ERR_PEREF_IN_PROLOG
-XML_ERR_PEREF_NO_NAME
-XML_ERR_PEREF_SEMICOL_MISSING
-XML_ERR_PI_NOT_FINISHED
-XML_ERR_PI_NOT_STARTED
-XML_ERR_PUBID_REQUIRED
-XML_ERR_RESERVED_XML_NAME
-XML_ERR_SEPARATOR_REQUIRED
-XML_ERR_SPACE_REQUIRED
-XML_ERR_STANDALONE_VALUE
-XML_ERR_STRING_NOT_CLOSED
-XML_ERR_STRING_NOT_STARTED
-XML_ERR_TAG_NAME_MISMATCH
-XML_ERR_TAG_NOT_FINISHED
-XML_ERR_UNDECLARED_ENTITY
-XML_ERR_UNKNOWN_ENCODING
-XML_ERR_UNPARSED_ENTITY
-XML_ERR_UNSUPPORTED_ENCODING
-XML_ERR_URI_FRAGMENT
-XML_ERR_URI_REQUIRED
-XML_ERR_VALUE_REQUIRED
-XML_ERR_VERSION_MISSING
-XML_ERR_WARNING
-XML_ERR_XMLDECL_NOT_FINISHED
-XML_ERR_XMLDECL_NOT_STARTED
-XML_EXP_ATOM
-XML_EXP_COUNT
-XML_EXP_EMPTY
-XML_EXP_FORBID
-XML_EXP_OR
-XML_EXP_SEQ
-XML_EXTERNAL_GENERAL_PARSED_ENTITY
-XML_EXTERNAL_GENERAL_UNPARSED_ENTITY
-XML_EXTERNAL_PARAMETER_ENTITY
-XML_FROM_C14N
-XML_FROM_CATALOG
-XML_FROM_CHECK
-XML_FROM_DATATYPE
-XML_FROM_DTD
-XML_FROM_FTP
-XML_FROM_HTML
-XML_FROM_HTTP
-XML_FROM_I18N
-XML_FROM_IO
-XML_FROM_MEMORY
-XML_FROM_MODULE
-XML_FROM_NAMESPACE
-XML_FROM_NONE
-XML_FROM_OUTPUT
-XML_FROM_PARSER
-XML_FROM_REGEXP
-XML_FROM_RELAXNGP
-XML_FROM_RELAXNGV
-XML_FROM_SCHEMASP
-XML_FROM_SCHEMASV
-XML_FROM_TREE
-XML_FROM_VALID
-XML_FROM_WRITER
-XML_FROM_XINCLUDE
-XML_FROM_XPATH
-XML_FROM_XPOINTER
-XML_FROM_XSLT
-XML_FTP_ACCNT
-XML_FTP_EPSV_ANSWER
-XML_FTP_PASV_ANSWER
-XML_FTP_URL_SYNTAX
-XML_GET_CONTENT
-XML_GET_LINE
-XML_HTML_DOCUMENT_NODE
-XML_HTML_STRUCURE_ERROR
-XML_HTML_UNKNOWN_TAG
-XML_HTTP_UNKNOWN_HOST
-XML_HTTP_URL_SYNTAX
-XML_HTTP_USE_IP
-XML_I18N_CONV_FAILED
-XML_I18N_EXCESS_HANDLER
-XML_I18N_NO_HANDLER
-XML_I18N_NO_NAME
-XML_I18N_NO_OUTPUT
-XML_INTERNAL_GENERAL_ENTITY
-XML_INTERNAL_PARAMETER_ENTITY
-XML_INTERNAL_PREDEFINED_ENTITY
-XML_IO_BUFFER_FULL
-XML_IO_EACCES
-XML_IO_EADDRINUSE
-XML_IO_EAFNOSUPPORT
-XML_IO_EAGAIN
-XML_IO_EALREADY
-XML_IO_EBADF
-XML_IO_EBADMSG
-XML_IO_EBUSY
-XML_IO_ECANCELED
-XML_IO_ECHILD
-XML_IO_ECONNREFUSED
-XML_IO_EDEADLK
-XML_IO_EDOM
-XML_IO_EEXIST
-XML_IO_EFAULT
-XML_IO_EFBIG
-XML_IO_EINPROGRESS
-XML_IO_EINTR
-XML_IO_EINVAL
-XML_IO_EIO
-XML_IO_EISCONN
-XML_IO_EISDIR
-XML_IO_EMFILE
-XML_IO_EMLINK
-XML_IO_EMSGSIZE
-XML_IO_ENAMETOOLONG
-XML_IO_ENCODER
-XML_IO_ENETUNREACH
-XML_IO_ENFILE
-XML_IO_ENODEV
-XML_IO_ENOENT
-XML_IO_ENOEXEC
-XML_IO_ENOLCK
-XML_IO_ENOMEM
-XML_IO_ENOSPC
-XML_IO_ENOSYS
-XML_IO_ENOTDIR
-XML_IO_ENOTEMPTY
-XML_IO_ENOTSOCK
-XML_IO_ENOTSUP
-XML_IO_ENOTTY
-XML_IO_ENXIO
-XML_IO_EPERM
-XML_IO_EPIPE
-XML_IO_ERANGE
-XML_IO_EROFS
-XML_IO_ESPIPE
-XML_IO_ESRCH
-XML_IO_ETIMEDOUT
-XML_IO_EXDEV
-XML_IO_FLUSH
-XML_IO_LOAD_ERROR
-XML_IO_NETWORK_ATTEMPT
-XML_IO_NO_INPUT
-XML_IO_UNKNOWN
-XML_IO_WRITE
-XML_LOCAL_NAMESPACE
-XML_MAX_NAMELEN
-XML_MODULE_CLOSE
-XML_MODULE_LAZY
-XML_MODULE_LOCAL
-XML_MODULE_OPEN
-XML_NAMESPACE_DECL
-XML_NOTATION_NODE
-XML_NS_ERR_ATTRIBUTE_REDEFINED
-XML_NS_ERR_EMPTY
-XML_NS_ERR_QNAME
-XML_NS_ERR_UNDEFINED_NAMESPACE
-XML_NS_ERR_XML_NAMESPACE
-XML_PARSER_ATTRIBUTE_VALUE
-XML_PARSER_CDATA_SECTION
-XML_PARSER_COMMENT
-XML_PARSER_CONTENT
-XML_PARSER_DEFAULTATTRS
-XML_PARSER_DTD
-XML_PARSER_END_TAG
-XML_PARSER_ENTITY_DECL
-XML_PARSER_ENTITY_VALUE
-XML_PARSER_EOF
-XML_PARSER_EPILOG
-XML_PARSER_IGNORE
-XML_PARSER_LOADDTD
-XML_PARSER_MISC
-XML_PARSER_PI
-XML_PARSER_PROLOG
-XML_PARSER_PUBLIC_LITERAL
-XML_PARSER_SEVERITY_ERROR
-XML_PARSER_SEVERITY_VALIDITY_ERROR
-XML_PARSER_SEVERITY_VALIDITY_WARNING
-XML_PARSER_SEVERITY_WARNING
-XML_PARSER_START
-XML_PARSER_START_TAG
-XML_PARSER_SUBST_ENTITIES
-XML_PARSER_SYSTEM_LITERAL
-XML_PARSER_VALIDATE
-XML_PARSE_COMPACT
-XML_PARSE_DOM
-XML_PARSE_DTDATTR
-XML_PARSE_DTDLOAD
-XML_PARSE_DTDVALID
-XML_PARSE_NOBLANKS
-XML_PARSE_NOCDATA
-XML_PARSE_NODICT
-XML_PARSE_NOENT
-XML_PARSE_NOERROR
-XML_PARSE_NONET
-XML_PARSE_NOWARNING
-XML_PARSE_NOXINCNODE
-XML_PARSE_NSCLEAN
-XML_PARSE_PEDANTIC
-XML_PARSE_PUSH_DOM
-XML_PARSE_PUSH_SAX
-XML_PARSE_READER
-XML_PARSE_RECOVER
-XML_PARSE_SAX
-XML_PARSE_SAX1
-XML_PARSE_UNKNOWN
-XML_PARSE_XINCLUDE
-XML_PATTERN_DEFAULT
-XML_PATTERN_XPATH
-XML_PATTERN_XSFIELD
-XML_PATTERN_XSSEL
-XML_PI_NODE
-XML_READER_TYPE_ATTRIBUTE
-XML_READER_TYPE_CDATA
-XML_READER_TYPE_COMMENT
-XML_READER_TYPE_DOCUMENT
-XML_READER_TYPE_DOCUMENT_FRAGMENT
-XML_READER_TYPE_DOCUMENT_TYPE
-XML_READER_TYPE_ELEMENT
-XML_READER_TYPE_END_ELEMENT
-XML_READER_TYPE_END_ENTITY
-XML_READER_TYPE_ENTITY
-XML_READER_TYPE_ENTITY_REFERENCE
-XML_READER_TYPE_NONE
-XML_READER_TYPE_NOTATION
-XML_READER_TYPE_PROCESSING_INSTRUCTION
-XML_READER_TYPE_SIGNIFICANT_WHITESPACE
-XML_READER_TYPE_TEXT
-XML_READER_TYPE_WHITESPACE
-XML_READER_TYPE_XML_DECLARATION
-XML_REGEXP_COMPILE_ERROR
-XML_RELAXNGP_CRNG
-XML_RELAXNGP_FREE_DOC
-XML_RELAXNGP_NONE
-XML_RELAXNG_ERR_ATTREXTRANS
-XML_RELAXNG_ERR_ATTRNAME
-XML_RELAXNG_ERR_ATTRNONS
-XML_RELAXNG_ERR_ATTRVALID
-XML_RELAXNG_ERR_ATTRWRONGNS
-XML_RELAXNG_ERR_CONTENTVALID
-XML_RELAXNG_ERR_DATAELEM
-XML_RELAXNG_ERR_DATATYPE
-XML_RELAXNG_ERR_DUPID
-XML_RELAXNG_ERR_ELEMEXTRANS
-XML_RELAXNG_ERR_ELEMNAME
-XML_RELAXNG_ERR_ELEMNONS
-XML_RELAXNG_ERR_ELEMNOTEMPTY
-XML_RELAXNG_ERR_ELEMWRONG
-XML_RELAXNG_ERR_ELEMWRONGNS
-XML_RELAXNG_ERR_EXTRACONTENT
-XML_RELAXNG_ERR_EXTRADATA
-XML_RELAXNG_ERR_INTEREXTRA
-XML_RELAXNG_ERR_INTERNAL
-XML_RELAXNG_ERR_INTERNODATA
-XML_RELAXNG_ERR_INTERSEQ
-XML_RELAXNG_ERR_INVALIDATTR
-XML_RELAXNG_ERR_LACKDATA
-XML_RELAXNG_ERR_LIST
-XML_RELAXNG_ERR_LISTELEM
-XML_RELAXNG_ERR_LISTEMPTY
-XML_RELAXNG_ERR_LISTEXTRA
-XML_RELAXNG_ERR_MEMORY
-XML_RELAXNG_ERR_NODEFINE
-XML_RELAXNG_ERR_NOELEM
-XML_RELAXNG_ERR_NOGRAMMAR
-XML_RELAXNG_ERR_NOSTATE
-XML_RELAXNG_ERR_NOTELEM
-XML_RELAXNG_ERR_TEXTWRONG
-XML_RELAXNG_ERR_TYPE
-XML_RELAXNG_ERR_TYPECMP
-XML_RELAXNG_ERR_TYPEVAL
-XML_RELAXNG_ERR_VALELEM
-XML_RELAXNG_ERR_VALUE
-XML_RELAXNG_OK
-XML_RNGP_ANYNAME_ATTR_ANCESTOR
-XML_RNGP_ATTRIBUTE_CHILDREN
-XML_RNGP_ATTRIBUTE_CONTENT
-XML_RNGP_ATTRIBUTE_EMPTY
-XML_RNGP_ATTRIBUTE_NOOP
-XML_RNGP_ATTR_CONFLICT
-XML_RNGP_CHOICE_CONTENT
-XML_RNGP_CHOICE_EMPTY
-XML_RNGP_CREATE_FAILURE
-XML_RNGP_DATA_CONTENT
-XML_RNGP_DEFINE_CREATE_FAILED
-XML_RNGP_DEFINE_EMPTY
-XML_RNGP_DEFINE_MISSING
-XML_RNGP_DEFINE_NAME_MISSING
-XML_RNGP_DEF_CHOICE_AND_INTERLEAVE
-XML_RNGP_ELEMENT_CONTENT
-XML_RNGP_ELEMENT_EMPTY
-XML_RNGP_ELEMENT_NAME
-XML_RNGP_ELEMENT_NO_CONTENT
-XML_RNGP_ELEM_CONTENT_EMPTY
-XML_RNGP_ELEM_CONTENT_ERROR
-XML_RNGP_ELEM_TEXT_CONFLICT
-XML_RNGP_EMPTY
-XML_RNGP_EMPTY_CONSTRUCT
-XML_RNGP_EMPTY_CONTENT
-XML_RNGP_EMPTY_NOT_EMPTY
-XML_RNGP_ERROR_TYPE_LIB
-XML_RNGP_EXCEPT_EMPTY
-XML_RNGP_EXCEPT_MISSING
-XML_RNGP_EXCEPT_MULTIPLE
-XML_RNGP_EXCEPT_NO_CONTENT
-XML_RNGP_EXTERNALREF_EMTPY
-XML_RNGP_EXTERNALREF_RECURSE
-XML_RNGP_EXTERNAL_REF_FAILURE
-XML_RNGP_FORBIDDEN_ATTRIBUTE
-XML_RNGP_FOREIGN_ELEMENT
-XML_RNGP_GRAMMAR_CONTENT
-XML_RNGP_GRAMMAR_EMPTY
-XML_RNGP_GRAMMAR_MISSING
-XML_RNGP_GRAMMAR_NO_START
-XML_RNGP_GROUP_ATTR_CONFLICT
-XML_RNGP_HREF_ERROR
-XML_RNGP_INCLUDE_EMPTY
-XML_RNGP_INCLUDE_FAILURE
-XML_RNGP_INCLUDE_RECURSE
-XML_RNGP_INTERLEAVE_ADD
-XML_RNGP_INTERLEAVE_CREATE_FAILED
-XML_RNGP_INTERLEAVE_EMPTY
-XML_RNGP_INTERLEAVE_NO_CONTENT
-XML_RNGP_INVALID_DEFINE_NAME
-XML_RNGP_INVALID_URI
-XML_RNGP_INVALID_VALUE
-XML_RNGP_MISSING_HREF
-XML_RNGP_NAME_MISSING
-XML_RNGP_NEED_COMBINE
-XML_RNGP_NOTALLOWED_NOT_EMPTY
-XML_RNGP_NSNAME_ATTR_ANCESTOR
-XML_RNGP_NSNAME_NO_NS
-XML_RNGP_PARAM_FORBIDDEN
-XML_RNGP_PARAM_NAME_MISSING
-XML_RNGP_PARENTREF_CREATE_FAILED
-XML_RNGP_PARENTREF_NAME_INVALID
-XML_RNGP_PARENTREF_NOT_EMPTY
-XML_RNGP_PARENTREF_NO_NAME
-XML_RNGP_PARENTREF_NO_PARENT
-XML_RNGP_PARSE_ERROR
-XML_RNGP_PAT_ANYNAME_EXCEPT_ANYNAME
-XML_RNGP_PAT_ATTR_ATTR
-XML_RNGP_PAT_ATTR_ELEM
-XML_RNGP_PAT_DATA_EXCEPT_ATTR
-XML_RNGP_PAT_DATA_EXCEPT_ELEM
-XML_RNGP_PAT_DATA_EXCEPT_EMPTY
-XML_RNGP_PAT_DATA_EXCEPT_GROUP
-XML_RNGP_PAT_DATA_EXCEPT_INTERLEAVE
-XML_RNGP_PAT_DATA_EXCEPT_LIST
-XML_RNGP_PAT_DATA_EXCEPT_ONEMORE
-XML_RNGP_PAT_DATA_EXCEPT_REF
-XML_RNGP_PAT_DATA_EXCEPT_TEXT
-XML_RNGP_PAT_LIST_ATTR
-XML_RNGP_PAT_LIST_ELEM
-XML_RNGP_PAT_LIST_INTERLEAVE
-XML_RNGP_PAT_LIST_LIST
-XML_RNGP_PAT_LIST_REF
-XML_RNGP_PAT_LIST_TEXT
-XML_RNGP_PAT_NSNAME_EXCEPT_ANYNAME
-XML_RNGP_PAT_NSNAME_EXCEPT_NSNAME
-XML_RNGP_PAT_ONEMORE_GROUP_ATTR
-XML_RNGP_PAT_ONEMORE_INTERLEAVE_ATTR
-XML_RNGP_PAT_START_ATTR
-XML_RNGP_PAT_START_DATA
-XML_RNGP_PAT_START_EMPTY
-XML_RNGP_PAT_START_GROUP
-XML_RNGP_PAT_START_INTERLEAVE
-XML_RNGP_PAT_START_LIST
-XML_RNGP_PAT_START_ONEMORE
-XML_RNGP_PAT_START_TEXT
-XML_RNGP_PAT_START_VALUE
-XML_RNGP_PREFIX_UNDEFINED
-XML_RNGP_REF_CREATE_FAILED
-XML_RNGP_REF_CYCLE
-XML_RNGP_REF_NAME_INVALID
-XML_RNGP_REF_NOT_EMPTY
-XML_RNGP_REF_NO_DEF
-XML_RNGP_REF_NO_NAME
-XML_RNGP_START_CHOICE_AND_INTERLEAVE
-XML_RNGP_START_CONTENT
-XML_RNGP_START_EMPTY
-XML_RNGP_START_MISSING
-XML_RNGP_TEXT_EXPECTED
-XML_RNGP_TEXT_HAS_CHILD
-XML_RNGP_TYPE_MISSING
-XML_RNGP_TYPE_NOT_FOUND
-XML_RNGP_TYPE_VALUE
-XML_RNGP_UNKNOWN_ATTRIBUTE
-XML_RNGP_UNKNOWN_COMBINE
-XML_RNGP_UNKNOWN_CONSTRUCT
-XML_RNGP_UNKNOWN_TYPE_LIB
-XML_RNGP_URI_FRAGMENT
-XML_RNGP_URI_NOT_ABSOLUTE
-XML_RNGP_VALUE_EMPTY
-XML_RNGP_VALUE_NO_CONTENT
-XML_RNGP_XMLNS_NAME
-XML_RNGP_XML_NS
-XML_SAVE_CHAR_INVALID
-XML_SAVE_FORMAT
-XML_SAVE_NOT_UTF8
-XML_SAVE_NO_DECL
-XML_SAVE_NO_DOCTYPE
-XML_SAVE_NO_EMPTY
-XML_SAVE_NO_XHTML
-XML_SAVE_UNKNOWN_ENCODING
-XML_SAX2_MAGIC
-XML_SCHEMAP_AG_PROPS_CORRECT
-XML_SCHEMAP_ATTRFORMDEFAULT_VALUE
-XML_SCHEMAP_ATTRGRP_NONAME_NOREF
-XML_SCHEMAP_ATTR_NONAME_NOREF
-XML_SCHEMAP_AU_PROPS_CORRECT
-XML_SCHEMAP_AU_PROPS_CORRECT_2
-XML_SCHEMAP_A_PROPS_CORRECT_2
-XML_SCHEMAP_A_PROPS_CORRECT_3
-XML_SCHEMAP_COMPLEXTYPE_NONAME_NOREF
-XML_SCHEMAP_COS_ALL_LIMITED
-XML_SCHEMAP_COS_CT_EXTENDS_1_1
-XML_SCHEMAP_COS_CT_EXTENDS_1_2
-XML_SCHEMAP_COS_CT_EXTENDS_1_3
-XML_SCHEMAP_COS_ST_DERIVED_OK_2_1
-XML_SCHEMAP_COS_ST_DERIVED_OK_2_2
-XML_SCHEMAP_COS_ST_RESTRICTS_1_1
-XML_SCHEMAP_COS_ST_RESTRICTS_1_2
-XML_SCHEMAP_COS_ST_RESTRICTS_1_3_1
-XML_SCHEMAP_COS_ST_RESTRICTS_1_3_2
-XML_SCHEMAP_COS_ST_RESTRICTS_2_1
-XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_1
-XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_2
-XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_1
-XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_2
-XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_3
-XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_4
-XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_5
-XML_SCHEMAP_COS_ST_RESTRICTS_3_1
-XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1
-XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1_2
-XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_1
-XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_2
-XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_3
-XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_4
-XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_5
-XML_SCHEMAP_COS_VALID_DEFAULT_1
-XML_SCHEMAP_COS_VALID_DEFAULT_2_1
-XML_SCHEMAP_COS_VALID_DEFAULT_2_2_1
-XML_SCHEMAP_COS_VALID_DEFAULT_2_2_2
-XML_SCHEMAP_CT_PROPS_CORRECT_1
-XML_SCHEMAP_CT_PROPS_CORRECT_2
-XML_SCHEMAP_CT_PROPS_CORRECT_3
-XML_SCHEMAP_CT_PROPS_CORRECT_4
-XML_SCHEMAP_CT_PROPS_CORRECT_5
-XML_SCHEMAP_CVC_SIMPLE_TYPE
-XML_SCHEMAP_C_PROPS_CORRECT
-XML_SCHEMAP_DEF_AND_PREFIX
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_1
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_2
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_3
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_1
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_2
-XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_3
-XML_SCHEMAP_ELEMFORMDEFAULT_VALUE
-XML_SCHEMAP_ELEM_DEFAULT_FIXED
-XML_SCHEMAP_ELEM_NONAME_NOREF
-XML_SCHEMAP_EXTENSION_NO_BASE
-XML_SCHEMAP_E_PROPS_CORRECT_2
-XML_SCHEMAP_E_PROPS_CORRECT_3
-XML_SCHEMAP_E_PROPS_CORRECT_4
-XML_SCHEMAP_E_PROPS_CORRECT_5
-XML_SCHEMAP_E_PROPS_CORRECT_6
-XML_SCHEMAP_FACET_NO_VALUE
-XML_SCHEMAP_FAILED_BUILD_IMPORT
-XML_SCHEMAP_FAILED_LOAD
-XML_SCHEMAP_FAILED_PARSE
-XML_SCHEMAP_GROUP_NONAME_NOREF
-XML_SCHEMAP_IMPORT_NAMESPACE_NOT_URI
-XML_SCHEMAP_IMPORT_REDEFINE_NSNAME
-XML_SCHEMAP_IMPORT_SCHEMA_NOT_URI
-XML_SCHEMAP_INCLUDE_SCHEMA_NOT_URI
-XML_SCHEMAP_INCLUDE_SCHEMA_NO_URI
-XML_SCHEMAP_INTERNAL
-XML_SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE
-XML_SCHEMAP_INVALID_ATTR_COMBINATION
-XML_SCHEMAP_INVALID_ATTR_INLINE_COMBINATION
-XML_SCHEMAP_INVALID_ATTR_NAME
-XML_SCHEMAP_INVALID_ATTR_USE
-XML_SCHEMAP_INVALID_BOOLEAN
-XML_SCHEMAP_INVALID_ENUM
-XML_SCHEMAP_INVALID_FACET
-XML_SCHEMAP_INVALID_FACET_VALUE
-XML_SCHEMAP_INVALID_MAXOCCURS
-XML_SCHEMAP_INVALID_MINOCCURS
-XML_SCHEMAP_INVALID_REF_AND_SUBTYPE
-XML_SCHEMAP_INVALID_WHITE_SPACE
-XML_SCHEMAP_MG_PROPS_CORRECT_1
-XML_SCHEMAP_MG_PROPS_CORRECT_2
-XML_SCHEMAP_MISSING_SIMPLETYPE_CHILD
-XML_SCHEMAP_NOATTR_NOREF
-XML_SCHEMAP_NOROOT
-XML_SCHEMAP_NOTATION_NO_NAME
-XML_SCHEMAP_NOTHING_TO_PARSE
-XML_SCHEMAP_NOTYPE_NOREF
-XML_SCHEMAP_NOT_DETERMINISTIC
-XML_SCHEMAP_NOT_SCHEMA
-XML_SCHEMAP_NO_XMLNS
-XML_SCHEMAP_NO_XSI
-XML_SCHEMAP_PREFIX_UNDEFINED
-XML_SCHEMAP_P_PROPS_CORRECT_1
-XML_SCHEMAP_P_PROPS_CORRECT_2_1
-XML_SCHEMAP_P_PROPS_CORRECT_2_2
-XML_SCHEMAP_RECURSIVE
-XML_SCHEMAP_REDEFINED_ATTR
-XML_SCHEMAP_REDEFINED_ATTRGROUP
-XML_SCHEMAP_REDEFINED_ELEMENT
-XML_SCHEMAP_REDEFINED_GROUP
-XML_SCHEMAP_REDEFINED_NOTATION
-XML_SCHEMAP_REDEFINED_TYPE
-XML_SCHEMAP_REF_AND_CONTENT
-XML_SCHEMAP_REF_AND_SUBTYPE
-XML_SCHEMAP_REGEXP_INVALID
-XML_SCHEMAP_RESTRICTION_NONAME_NOREF
-XML_SCHEMAP_S4S_ATTR_INVALID_VALUE
-XML_SCHEMAP_S4S_ATTR_MISSING
-XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED
-XML_SCHEMAP_S4S_ELEM_MISSING
-XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED
-XML_SCHEMAP_SIMPLETYPE_NONAME
-XML_SCHEMAP_SRC_ATTRIBUTE_1
-XML_SCHEMAP_SRC_ATTRIBUTE_2
-XML_SCHEMAP_SRC_ATTRIBUTE_3_1
-XML_SCHEMAP_SRC_ATTRIBUTE_3_2
-XML_SCHEMAP_SRC_ATTRIBUTE_4
-XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_1
-XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_2
-XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_3
-XML_SCHEMAP_SRC_CT_1
-XML_SCHEMAP_SRC_ELEMENT_1
-XML_SCHEMAP_SRC_ELEMENT_2_1
-XML_SCHEMAP_SRC_ELEMENT_2_2
-XML_SCHEMAP_SRC_ELEMENT_3
-XML_SCHEMAP_SRC_IMPORT
-XML_SCHEMAP_SRC_IMPORT_1_1
-XML_SCHEMAP_SRC_IMPORT_1_2
-XML_SCHEMAP_SRC_IMPORT_2
-XML_SCHEMAP_SRC_IMPORT_2_1
-XML_SCHEMAP_SRC_IMPORT_2_2
-XML_SCHEMAP_SRC_IMPORT_3_1
-XML_SCHEMAP_SRC_IMPORT_3_2
-XML_SCHEMAP_SRC_INCLUDE
-XML_SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE
-XML_SCHEMAP_SRC_REDEFINE
-XML_SCHEMAP_SRC_RESOLVE
-XML_SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE
-XML_SCHEMAP_SRC_SIMPLE_TYPE_1
-XML_SCHEMAP_SRC_SIMPLE_TYPE_2
-XML_SCHEMAP_SRC_SIMPLE_TYPE_3
-XML_SCHEMAP_SRC_SIMPLE_TYPE_4
-XML_SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES
-XML_SCHEMAP_ST_PROPS_CORRECT_1
-XML_SCHEMAP_ST_PROPS_CORRECT_2
-XML_SCHEMAP_ST_PROPS_CORRECT_3
-XML_SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE
-XML_SCHEMAP_TYPE_AND_SUBTYPE
-XML_SCHEMAP_UNION_NOT_EXPRESSIBLE
-XML_SCHEMAP_UNKNOWN_ALL_CHILD
-XML_SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD
-XML_SCHEMAP_UNKNOWN_ATTRGRP_CHILD
-XML_SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP
-XML_SCHEMAP_UNKNOWN_ATTR_CHILD
-XML_SCHEMAP_UNKNOWN_BASE_TYPE
-XML_SCHEMAP_UNKNOWN_CHOICE_CHILD
-XML_SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD
-XML_SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD
-XML_SCHEMAP_UNKNOWN_ELEM_CHILD
-XML_SCHEMAP_UNKNOWN_EXTENSION_CHILD
-XML_SCHEMAP_UNKNOWN_FACET_CHILD
-XML_SCHEMAP_UNKNOWN_FACET_TYPE
-XML_SCHEMAP_UNKNOWN_GROUP_CHILD
-XML_SCHEMAP_UNKNOWN_IMPORT_CHILD
-XML_SCHEMAP_UNKNOWN_INCLUDE_CHILD
-XML_SCHEMAP_UNKNOWN_LIST_CHILD
-XML_SCHEMAP_UNKNOWN_MEMBER_TYPE
-XML_SCHEMAP_UNKNOWN_NOTATION_CHILD
-XML_SCHEMAP_UNKNOWN_PREFIX
-XML_SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD
-XML_SCHEMAP_UNKNOWN_REF
-XML_SCHEMAP_UNKNOWN_RESTRICTION_CHILD
-XML_SCHEMAP_UNKNOWN_SCHEMAS_CHILD
-XML_SCHEMAP_UNKNOWN_SEQUENCE_CHILD
-XML_SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD
-XML_SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD
-XML_SCHEMAP_UNKNOWN_TYPE
-XML_SCHEMAP_UNKNOWN_UNION_CHILD
-XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH
-XML_SCHEMAP_WARN_ATTR_REDECL_PROH
-XML_SCHEMAP_WARN_SKIP_SCHEMA
-XML_SCHEMAP_WARN_UNLOCATED_SCHEMA
-XML_SCHEMAP_WILDCARD_INVALID_NS_MEMBER
-XML_SCHEMAS_ANYATTR_LAX
-XML_SCHEMAS_ANYATTR_SKIP
-XML_SCHEMAS_ANYATTR_STRICT
-XML_SCHEMAS_ANYSIMPLETYPE
-XML_SCHEMAS_ANYTYPE
-XML_SCHEMAS_ANYURI
-XML_SCHEMAS_ANY_LAX
-XML_SCHEMAS_ANY_SKIP
-XML_SCHEMAS_ANY_STRICT
-XML_SCHEMAS_ATTRGROUP_GLOBAL
-XML_SCHEMAS_ATTRGROUP_HAS_REFS
-XML_SCHEMAS_ATTRGROUP_MARKED
-XML_SCHEMAS_ATTRGROUP_REDEFINED
-XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED
-XML_SCHEMAS_ATTR_FIXED
-XML_SCHEMAS_ATTR_GLOBAL
-XML_SCHEMAS_ATTR_INTERNAL_RESOLVED
-XML_SCHEMAS_ATTR_NSDEFAULT
-XML_SCHEMAS_ATTR_USE_OPTIONAL
-XML_SCHEMAS_ATTR_USE_PROHIBITED
-XML_SCHEMAS_ATTR_USE_REQUIRED
-XML_SCHEMAS_BASE64BINARY
-XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION
-XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION
-XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION
-XML_SCHEMAS_BOOLEAN
-XML_SCHEMAS_BYTE
-XML_SCHEMAS_DATE
-XML_SCHEMAS_DATETIME
-XML_SCHEMAS_DECIMAL
-XML_SCHEMAS_DOUBLE
-XML_SCHEMAS_DURATION
-XML_SCHEMAS_ELEM_ABSTRACT
-XML_SCHEMAS_ELEM_BLOCK_ABSENT
-XML_SCHEMAS_ELEM_BLOCK_EXTENSION
-XML_SCHEMAS_ELEM_BLOCK_RESTRICTION
-XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION
-XML_SCHEMAS_ELEM_CIRCULAR
-XML_SCHEMAS_ELEM_DEFAULT
-XML_SCHEMAS_ELEM_FINAL_ABSENT
-XML_SCHEMAS_ELEM_FINAL_EXTENSION
-XML_SCHEMAS_ELEM_FINAL_RESTRICTION
-XML_SCHEMAS_ELEM_FIXED
-XML_SCHEMAS_ELEM_GLOBAL
-XML_SCHEMAS_ELEM_INTERNAL_CHECKED
-XML_SCHEMAS_ELEM_INTERNAL_RESOLVED
-XML_SCHEMAS_ELEM_NILLABLE
-XML_SCHEMAS_ELEM_NSDEFAULT
-XML_SCHEMAS_ELEM_REF
-XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD
-XML_SCHEMAS_ELEM_TOPLEVEL
-XML_SCHEMAS_ENTITIES
-XML_SCHEMAS_ENTITY
-XML_SCHEMAS_ERR_
-XML_SCHEMAS_ERR_ATTRINVALID
-XML_SCHEMAS_ERR_ATTRUNKNOWN
-XML_SCHEMAS_ERR_CONSTRUCT
-XML_SCHEMAS_ERR_ELEMCONT
-XML_SCHEMAS_ERR_EXTRACONTENT
-XML_SCHEMAS_ERR_FACET
-XML_SCHEMAS_ERR_HAVEDEFAULT
-XML_SCHEMAS_ERR_INTERNAL
-XML_SCHEMAS_ERR_INVALIDATTR
-XML_SCHEMAS_ERR_INVALIDELEM
-XML_SCHEMAS_ERR_ISABSTRACT
-XML_SCHEMAS_ERR_MISSING
-XML_SCHEMAS_ERR_NOROLLBACK
-XML_SCHEMAS_ERR_NOROOT
-XML_SCHEMAS_ERR_NOTDETERMINIST
-XML_SCHEMAS_ERR_NOTEMPTY
-XML_SCHEMAS_ERR_NOTNILLABLE
-XML_SCHEMAS_ERR_NOTSIMPLE
-XML_SCHEMAS_ERR_NOTTOPLEVEL
-XML_SCHEMAS_ERR_NOTYPE
-XML_SCHEMAS_ERR_OK
-XML_SCHEMAS_ERR_UNDECLAREDELEM
-XML_SCHEMAS_ERR_VALUE
-XML_SCHEMAS_ERR_WRONGELEM
-XML_SCHEMAS_ERR_XXX
-XML_SCHEMAS_FACET_COLLAPSE
-XML_SCHEMAS_FACET_PRESERVE
-XML_SCHEMAS_FACET_REPLACE
-XML_SCHEMAS_FACET_UNKNOWN
-XML_SCHEMAS_FINAL_DEFAULT_EXTENSION
-XML_SCHEMAS_FINAL_DEFAULT_LIST
-XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION
-XML_SCHEMAS_FINAL_DEFAULT_UNION
-XML_SCHEMAS_FLOAT
-XML_SCHEMAS_GDAY
-XML_SCHEMAS_GMONTH
-XML_SCHEMAS_GMONTHDAY
-XML_SCHEMAS_GYEAR
-XML_SCHEMAS_GYEARMONTH
-XML_SCHEMAS_HEXBINARY
-XML_SCHEMAS_ID
-XML_SCHEMAS_IDREF
-XML_SCHEMAS_IDREFS
-XML_SCHEMAS_INCLUDING_CONVERT_NS
-XML_SCHEMAS_INT
-XML_SCHEMAS_INTEGER
-XML_SCHEMAS_LANGUAGE
-XML_SCHEMAS_LONG
-XML_SCHEMAS_NAME
-XML_SCHEMAS_NCNAME
-XML_SCHEMAS_NINTEGER
-XML_SCHEMAS_NMTOKEN
-XML_SCHEMAS_NMTOKENS
-XML_SCHEMAS_NNINTEGER
-XML_SCHEMAS_NORMSTRING
-XML_SCHEMAS_NOTATION
-XML_SCHEMAS_NPINTEGER
-XML_SCHEMAS_PINTEGER
-XML_SCHEMAS_QNAME
-XML_SCHEMAS_QUALIF_ATTR
-XML_SCHEMAS_QUALIF_ELEM
-XML_SCHEMAS_SHORT
-XML_SCHEMAS_STRING
-XML_SCHEMAS_TIME
-XML_SCHEMAS_TOKEN
-XML_SCHEMAS_TYPE_ABSTRACT
-XML_SCHEMAS_TYPE_BLOCK_DEFAULT
-XML_SCHEMAS_TYPE_BLOCK_EXTENSION
-XML_SCHEMAS_TYPE_BLOCK_RESTRICTION
-XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE
-XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION
-XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION
-XML_SCHEMAS_TYPE_FACETSNEEDVALUE
-XML_SCHEMAS_TYPE_FINAL_DEFAULT
-XML_SCHEMAS_TYPE_FINAL_EXTENSION
-XML_SCHEMAS_TYPE_FINAL_LIST
-XML_SCHEMAS_TYPE_FINAL_RESTRICTION
-XML_SCHEMAS_TYPE_FINAL_UNION
-XML_SCHEMAS_TYPE_FIXUP_1
-XML_SCHEMAS_TYPE_GLOBAL
-XML_SCHEMAS_TYPE_HAS_FACETS
-XML_SCHEMAS_TYPE_INTERNAL_INVALID
-XML_SCHEMAS_TYPE_INTERNAL_RESOLVED
-XML_SCHEMAS_TYPE_MARKED
-XML_SCHEMAS_TYPE_MIXED
-XML_SCHEMAS_TYPE_NORMVALUENEEDED
-XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD
-XML_SCHEMAS_TYPE_REDEFINED
-XML_SCHEMAS_TYPE_VARIETY_ABSENT
-XML_SCHEMAS_TYPE_VARIETY_ATOMIC
-XML_SCHEMAS_TYPE_VARIETY_LIST
-XML_SCHEMAS_TYPE_VARIETY_UNION
-XML_SCHEMAS_TYPE_WHITESPACE_COLLAPSE
-XML_SCHEMAS_TYPE_WHITESPACE_PRESERVE
-XML_SCHEMAS_TYPE_WHITESPACE_REPLACE
-XML_SCHEMAS_UBYTE
-XML_SCHEMAS_UINT
-XML_SCHEMAS_ULONG
-XML_SCHEMAS_UNKNOWN
-XML_SCHEMAS_USHORT
-XML_SCHEMAS_WILDCARD_COMPLETE
-XML_SCHEMATRON_OUT_BUFFER
-XML_SCHEMATRON_OUT_FILE
-XML_SCHEMATRON_OUT_IO
-XML_SCHEMATRON_OUT_QUIET
-XML_SCHEMATRON_OUT_TEXT
-XML_SCHEMATRON_OUT_XML
-XML_SCHEMAV_ATTRINVALID
-XML_SCHEMAV_ATTRUNKNOWN
-XML_SCHEMAV_CONSTRUCT
-XML_SCHEMAV_CVC_ATTRIBUTE_1
-XML_SCHEMAV_CVC_ATTRIBUTE_2
-XML_SCHEMAV_CVC_ATTRIBUTE_3
-XML_SCHEMAV_CVC_ATTRIBUTE_4
-XML_SCHEMAV_CVC_AU
-XML_SCHEMAV_CVC_COMPLEX_TYPE_1
-XML_SCHEMAV_CVC_COMPLEX_TYPE_2_1
-XML_SCHEMAV_CVC_COMPLEX_TYPE_2_2
-XML_SCHEMAV_CVC_COMPLEX_TYPE_2_3
-XML_SCHEMAV_CVC_COMPLEX_TYPE_2_4
-XML_SCHEMAV_CVC_COMPLEX_TYPE_3_1
-XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_1
-XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_2
-XML_SCHEMAV_CVC_COMPLEX_TYPE_4
-XML_SCHEMAV_CVC_COMPLEX_TYPE_5_1
-XML_SCHEMAV_CVC_COMPLEX_TYPE_5_2
-XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_1
-XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_2
-XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_3
-XML_SCHEMAV_CVC_ELT_1
-XML_SCHEMAV_CVC_ELT_2
-XML_SCHEMAV_CVC_ELT_3_1
-XML_SCHEMAV_CVC_ELT_3_2_1
-XML_SCHEMAV_CVC_ELT_3_2_2
-XML_SCHEMAV_CVC_ELT_4_1
-XML_SCHEMAV_CVC_ELT_4_2
-XML_SCHEMAV_CVC_ELT_4_3
-XML_SCHEMAV_CVC_ELT_5_1_1
-XML_SCHEMAV_CVC_ELT_5_1_2
-XML_SCHEMAV_CVC_ELT_5_2_1
-XML_SCHEMAV_CVC_ELT_5_2_2_1
-XML_SCHEMAV_CVC_ELT_5_2_2_2_1
-XML_SCHEMAV_CVC_ELT_5_2_2_2_2
-XML_SCHEMAV_CVC_ELT_6
-XML_SCHEMAV_CVC_ELT_7
-XML_SCHEMAV_CVC_ENUMERATION_VALID
-XML_SCHEMAV_CVC_FACET_VALID
-XML_SCHEMAV_CVC_FRACTIONDIGITS_VALID
-XML_SCHEMAV_CVC_IDC
-XML_SCHEMAV_CVC_LENGTH_VALID
-XML_SCHEMAV_CVC_MAXEXCLUSIVE_VALID
-XML_SCHEMAV_CVC_MAXINCLUSIVE_VALID
-XML_SCHEMAV_CVC_MAXLENGTH_VALID
-XML_SCHEMAV_CVC_MINEXCLUSIVE_VALID
-XML_SCHEMAV_CVC_MININCLUSIVE_VALID
-XML_SCHEMAV_CVC_MINLENGTH_VALID
-XML_SCHEMAV_CVC_PATTERN_VALID
-XML_SCHEMAV_CVC_TOTALDIGITS_VALID
-XML_SCHEMAV_CVC_TYPE_1
-XML_SCHEMAV_CVC_TYPE_2
-XML_SCHEMAV_CVC_TYPE_3_1_1
-XML_SCHEMAV_CVC_TYPE_3_1_2
-XML_SCHEMAV_CVC_WILDCARD
-XML_SCHEMAV_DOCUMENT_ELEMENT_MISSING
-XML_SCHEMAV_ELEMCONT
-XML_SCHEMAV_ELEMENT_CONTENT
-XML_SCHEMAV_EXTRACONTENT
-XML_SCHEMAV_FACET
-XML_SCHEMAV_HAVEDEFAULT
-XML_SCHEMAV_INTERNAL
-XML_SCHEMAV_INVALIDATTR
-XML_SCHEMAV_INVALIDELEM
-XML_SCHEMAV_ISABSTRACT
-XML_SCHEMAV_MISC
-XML_SCHEMAV_MISSING
-XML_SCHEMAV_NOROLLBACK
-XML_SCHEMAV_NOROOT
-XML_SCHEMAV_NOTDETERMINIST
-XML_SCHEMAV_NOTEMPTY
-XML_SCHEMAV_NOTNILLABLE
-XML_SCHEMAV_NOTSIMPLE
-XML_SCHEMAV_NOTTOPLEVEL
-XML_SCHEMAV_NOTYPE
-XML_SCHEMAV_UNDECLAREDELEM
-XML_SCHEMAV_VALUE
-XML_SCHEMAV_WRONGELEM
-XML_SCHEMA_CONTENT_ANY
-XML_SCHEMA_CONTENT_BASIC
-XML_SCHEMA_CONTENT_ELEMENTS
-XML_SCHEMA_CONTENT_EMPTY
-XML_SCHEMA_CONTENT_MIXED
-XML_SCHEMA_CONTENT_MIXED_OR_ELEMENTS
-XML_SCHEMA_CONTENT_SIMPLE
-XML_SCHEMA_CONTENT_UNKNOWN
-XML_SCHEMA_EXTRA_ATTR_USE_PROHIB
-XML_SCHEMA_EXTRA_QNAMEREF
-XML_SCHEMA_FACET_ENUMERATION
-XML_SCHEMA_FACET_FRACTIONDIGITS
-XML_SCHEMA_FACET_LENGTH
-XML_SCHEMA_FACET_MAXEXCLUSIVE
-XML_SCHEMA_FACET_MAXINCLUSIVE
-XML_SCHEMA_FACET_MAXLENGTH
-XML_SCHEMA_FACET_MINEXCLUSIVE
-XML_SCHEMA_FACET_MININCLUSIVE
-XML_SCHEMA_FACET_MINLENGTH
-XML_SCHEMA_FACET_PATTERN
-XML_SCHEMA_FACET_TOTALDIGITS
-XML_SCHEMA_FACET_WHITESPACE
-XML_SCHEMA_TYPE_ALL
-XML_SCHEMA_TYPE_ANY
-XML_SCHEMA_TYPE_ANY_ATTRIBUTE
-XML_SCHEMA_TYPE_ATTRIBUTE
-XML_SCHEMA_TYPE_ATTRIBUTEGROUP
-XML_SCHEMA_TYPE_ATTRIBUTE_USE
-XML_SCHEMA_TYPE_BASIC
-XML_SCHEMA_TYPE_CHOICE
-XML_SCHEMA_TYPE_COMPLEX
-XML_SCHEMA_TYPE_COMPLEX_CONTENT
-XML_SCHEMA_TYPE_ELEMENT
-XML_SCHEMA_TYPE_EXTENSION
-XML_SCHEMA_TYPE_FACET
-XML_SCHEMA_TYPE_GROUP
-XML_SCHEMA_TYPE_IDC_KEY
-XML_SCHEMA_TYPE_IDC_KEYREF
-XML_SCHEMA_TYPE_IDC_UNIQUE
-XML_SCHEMA_TYPE_LIST
-XML_SCHEMA_TYPE_NOTATION
-XML_SCHEMA_TYPE_PARTICLE
-XML_SCHEMA_TYPE_RESTRICTION
-XML_SCHEMA_TYPE_SEQUENCE
-XML_SCHEMA_TYPE_SIMPLE
-XML_SCHEMA_TYPE_SIMPLE_CONTENT
-XML_SCHEMA_TYPE_UNION
-XML_SCHEMA_TYPE_UR
-XML_SCHEMA_VAL_VC_I_CREATE
-XML_SCHEMA_WHITESPACE_COLLAPSE
-XML_SCHEMA_WHITESPACE_PRESERVE
-XML_SCHEMA_WHITESPACE_REPLACE
-XML_SCHEMA_WHITESPACE_UNKNOWN
-XML_SKIP_IDS
-XML_SUBSTITUTE_BOTH
-XML_SUBSTITUTE_NONE
-XML_SUBSTITUTE_PEREF
-XML_SUBSTITUTE_REF
-XML_TEXTREADER_MODE_CLOSED
-XML_TEXTREADER_MODE_EOF
-XML_TEXTREADER_MODE_ERROR
-XML_TEXTREADER_MODE_INITIAL
-XML_TEXTREADER_MODE_INTERACTIVE
-XML_TEXTREADER_MODE_READING
-XML_TEXT_NODE
-XML_TREE_INVALID_DEC
-XML_TREE_INVALID_HEX
-XML_TREE_UNTERMINATED_ENTITY
-XML_WAR_CATALOG_PI
-XML_WAR_ENTITY_REDEFINED
-XML_WAR_LANG_VALUE
-XML_WAR_NS_COLUMN
-XML_WAR_NS_URI
-XML_WAR_NS_URI_RELATIVE
-XML_WAR_SPACE_VALUE
-XML_WAR_UNDECLARED_ENTITY
-XML_WAR_UNKNOWN_VERSION
-XML_WITH_AUTOMATA
-XML_WITH_C14N
-XML_WITH_CATALOG
-XML_WITH_DEBUG
-XML_WITH_DEBUG_MEM
-XML_WITH_DEBUG_RUN
-XML_WITH_EXPR
-XML_WITH_FTP
-XML_WITH_HTML
-XML_WITH_HTTP
-XML_WITH_ICONV
-XML_WITH_ISO8859X
-XML_WITH_LEGACY
-XML_WITH_MODULES
-XML_WITH_NONE
-XML_WITH_OUTPUT
-XML_WITH_PATTERN
-XML_WITH_PUSH
-XML_WITH_READER
-XML_WITH_REGEXP
-XML_WITH_SAX1
-XML_WITH_SCHEMAS
-XML_WITH_SCHEMATRON
-XML_WITH_THREAD
-XML_WITH_TREE
-XML_WITH_UNICODE
-XML_WITH_VALID
-XML_WITH_WRITER
-XML_WITH_XINCLUDE
-XML_WITH_XPATH
-XML_WITH_XPTR
-XML_XINCLUDE_BUILD_FAILED
-XML_XINCLUDE_DEPRECATED_NS
-XML_XINCLUDE_END
-XML_XINCLUDE_ENTITY_DEF_MISMATCH
-XML_XINCLUDE_FALLBACKS_IN_INCLUDE
-XML_XINCLUDE_FALLBACK_NOT_IN_INCLUDE
-XML_XINCLUDE_FRAGMENT_ID
-XML_XINCLUDE_HREF_URI
-XML_XINCLUDE_INCLUDE_IN_INCLUDE
-XML_XINCLUDE_INVALID_CHAR
-XML_XINCLUDE_MULTIPLE_ROOT
-XML_XINCLUDE_NO_FALLBACK
-XML_XINCLUDE_NO_HREF
-XML_XINCLUDE_PARSE_VALUE
-XML_XINCLUDE_RECURSION
-XML_XINCLUDE_START
-XML_XINCLUDE_TEXT_DOCUMENT
-XML_XINCLUDE_TEXT_FRAGMENT
-XML_XINCLUDE_UNKNOWN_ENCODING
-XML_XINCLUDE_XPTR_FAILED
-XML_XINCLUDE_XPTR_RESULT
-XML_XML_ID
-XML_XML_NAMESPACE
-XML_XPATH_CHECKNS
-XML_XPATH_ENCODING_ERROR
-XML_XPATH_EXPRESSION_OK
-XML_XPATH_EXPR_ERROR
-XML_XPATH_INVALID_ARITY
-XML_XPATH_INVALID_CHAR_ERROR
-XML_XPATH_INVALID_CTXT_POSITION
-XML_XPATH_INVALID_CTXT_SIZE
-XML_XPATH_INVALID_OPERAND
-XML_XPATH_INVALID_PREDICATE_ERROR
-XML_XPATH_INVALID_TYPE
-XML_XPATH_MEMORY_ERROR
-XML_XPATH_NOVAR
-XML_XPATH_NUMBER_ERROR
-XML_XPATH_START_LITERAL_ERROR
-XML_XPATH_UNCLOSED_ERROR
-XML_XPATH_UNDEF_PREFIX_ERROR
-XML_XPATH_UNDEF_VARIABLE_ERROR
-XML_XPATH_UNFINISHED_LITERAL_ERROR
-XML_XPATH_UNKNOWN_FUNC_ERROR
-XML_XPATH_VARIABLE_REF_ERROR
-XML_XPTR_CHILDSEQ_START
-XML_XPTR_EVAL_FAILED
-XML_XPTR_EXTRA_OBJECTS
-XML_XPTR_RESOURCE_ERROR
-XML_XPTR_SUB_RESOURCE_ERROR
-XML_XPTR_SYNTAX_ERROR
-XML_XPTR_UNKNOWN_SCHEME
-XPATH_BOOLEAN
-XPATH_ENCODING_ERROR
-XPATH_EXPRESSION_OK
-XPATH_EXPR_ERROR
-XPATH_INVALID_ARITY
-XPATH_INVALID_CHAR_ERROR
-XPATH_INVALID_CTXT
-XPATH_INVALID_CTXT_POSITION
-XPATH_INVALID_CTXT_SIZE
-XPATH_INVALID_OPERAND
-XPATH_INVALID_PREDICATE_ERROR
-XPATH_INVALID_TYPE
-XPATH_LOCATIONSET
-XPATH_MEMORY_ERROR
-XPATH_NODESET
-XPATH_NUMBER
-XPATH_NUMBER_ERROR
-XPATH_POINT
-XPATH_RANGE
-XPATH_START_LITERAL_ERROR
-XPATH_STRING
-XPATH_UNCLOSED_ERROR
-XPATH_UNDEFINED
-XPATH_UNDEF_PREFIX_ERROR
-XPATH_UNDEF_VARIABLE_ERROR
-XPATH_UNFINISHED_LITERAL_ERROR
-XPATH_UNKNOWN_FUNC_ERROR
-XPATH_USERS
-XPATH_VARIABLE_REF_ERROR
-XPATH_XSLT_TREE
-XPTR_RESOURCE_ERROR
-XPTR_SUB_RESOURCE_ERROR
-XPTR_SYNTAX_ERROR
-XP_ERROR
-XP_ERROR0
-

Letter _:

_REENTRANT
-_htmlElemDesc
-_htmlEntityDesc
-_xlinkHandler
-_xmlAttr
-_xmlAttribute
-_xmlBuffer
-_xmlChLRange
-_xmlChRangeGroup
-_xmlChSRange
-_xmlCharEncodingHandler
-_xmlDOMWrapCtxt
-_xmlDoc
-_xmlDtd
-_xmlElement
-_xmlElementContent
-_xmlEntity
-_xmlEnumeration
-_xmlError
-_xmlGlobalState
-_xmlID
-_xmlLocationSet
-_xmlNode
-_xmlNodeSet
-_xmlNotation
-_xmlNs
-_xmlOutputBuffer
-_xmlParserCtxt
-_xmlParserInput
-_xmlParserInputBuffer
-_xmlParserNodeInfo
-_xmlParserNodeInfoSeq
-_xmlRef
-_xmlSAXHandler
-_xmlSAXHandlerV1
-_xmlSAXLocator
-_xmlSchema
-_xmlSchemaAnnot
-_xmlSchemaAttribute
-_xmlSchemaAttributeGroup
-_xmlSchemaAttributeLink
-_xmlSchemaElement
-_xmlSchemaFacet
-_xmlSchemaFacetLink
-_xmlSchemaNotation
-_xmlSchemaType
-_xmlSchemaTypeLink
-_xmlSchemaWildcard
-_xmlSchemaWildcardNs
-_xmlShellCtxt
-_xmlURI
-_xmlValidCtxt
-_xmlXPathAxis
-_xmlXPathContext
-_xmlXPathFunct
-_xmlXPathObject
-_xmlXPathParserContext
-_xmlXPathType
-_xmlXPathVariable
-

Letter a:

attribute
-attributeDecl
-attributeDeclSAXFunc
-attributeSAXFunc
-

Letter c:

cdataBlock
-cdataBlockSAXFunc
-characters
-charactersSAXFunc
-checkNamespace
-comment
-commentSAXFunc
-

Letter d:

docbCreateFileParserCtxt
-docbCreatePushParserCtxt
-docbDefaultSAXHandler
-docbDefaultSAXHandlerInit
-docbDocPtr
-docbEncodeEntities
-docbFreeParserCtxt
-docbParseChunk
-docbParseDoc
-docbParseDocument
-docbParseFile
-docbParserCtxt
-docbParserCtxtPtr
-docbParserInput
-docbParserInputPtr
-docbSAXHandler
-docbSAXHandlerPtr
-docbSAXParseDoc
-docbSAXParseFile
-

Letter e:

elementDecl
-elementDeclSAXFunc
-emptyExp
-endDocument
-endDocumentSAXFunc
-endElement
-endElementNsSAX2Func
-endElementSAXFunc
-entityDecl
-entityDeclSAXFunc
-errorSAXFunc
-externalSubset
-externalSubsetSAXFunc
-

Letter f:

fatalErrorSAXFunc
-forbiddenExp
-ftpDataCallback
-ftpListCallback
-

Letter g:

getColumnNumber
-getEntity
-getEntitySAXFunc
-getLineNumber
-getNamespace
-getParameterEntity
-getParameterEntitySAXFunc
-getPublicId
-getSystemId
-globalNamespace
-

Letter h:

hasExternalSubset
-hasExternalSubsetSAXFunc
-hasInternalSubset
-hasInternalSubsetSAXFunc
-htmlAttrAllowed
-htmlAutoCloseTag
-htmlCreateFileParserCtxt
-htmlCreateMemoryParserCtxt
-htmlCreatePushParserCtxt
-htmlCtxtReadDoc
-htmlCtxtReadFd
-htmlCtxtReadFile
-htmlCtxtReadIO
-htmlCtxtReadMemory
-htmlCtxtReset
-htmlCtxtUseOptions
-htmlDefaultSAXHandler
-htmlDefaultSAXHandlerInit
-htmlDefaultSubelement
-htmlDocContentDumpFormatOutput
-htmlDocContentDumpOutput
-htmlDocDump
-htmlDocDumpMemory
-htmlDocDumpMemoryFormat
-htmlDocPtr
-htmlElemDesc
-htmlElemDescPtr
-htmlElementAllowedHere
-htmlElementAllowedHereDesc
-htmlElementStatusHere
-htmlEncodeEntities
-htmlEntityDesc
-htmlEntityDescPtr
-htmlEntityLookup
-htmlEntityValueLookup
-htmlFreeParserCtxt
-htmlGetMetaEncoding
-htmlHandleOmittedElem
-htmlInitAutoClose
-htmlIsAutoClosed
-htmlIsBooleanAttr
-htmlIsScriptAttribute
-htmlNewDoc
-htmlNewDocNoDtD
-htmlNodeDump
-htmlNodeDumpFile
-htmlNodeDumpFileFormat
-htmlNodeDumpFormatOutput
-htmlNodeDumpOutput
-htmlNodePtr
-htmlNodeStatus
-htmlParseCharRef
-htmlParseChunk
-htmlParseDoc
-htmlParseDocument
-htmlParseElement
-htmlParseEntityRef
-htmlParseFile
-htmlParserCtxt
-htmlParserCtxtPtr
-htmlParserInput
-htmlParserInputPtr
-htmlParserNodeInfo
-htmlParserOption
-htmlReadDoc
-htmlReadFd
-htmlReadFile
-htmlReadIO
-htmlReadMemory
-htmlRequiredAttrs
-htmlSAXHandler
-htmlSAXHandlerPtr
-htmlSAXParseDoc
-htmlSAXParseFile
-htmlSaveFile
-htmlSaveFileEnc
-htmlSaveFileFormat
-htmlSetMetaEncoding
-htmlStatus
-htmlTagLookup
-

Letter i:

ignorableWhitespace
-ignorableWhitespaceSAXFunc
-initGenericErrorDefaultFunc
-initdocbDefaultSAXHandler
-inithtmlDefaultSAXHandler
-initxmlDefaultSAXHandler
-inputPop
-inputPush
-internalSubset
-internalSubsetSAXFunc
-isStandalone
-isStandaloneSAXFunc
-isolat1ToUTF8
-

Letter n:

namePop
-namePush
-namespaceDecl
-nodePop
-nodePush
-notationDecl
-notationDeclSAXFunc
-

Letter o:

oldXMLWDcompatibility
-

Letter p:

processingInstruction
-processingInstructionSAXFunc
-

Letter r:

reference
-referenceSAXFunc
-resolveEntity
-resolveEntitySAXFunc
-

Letter s:

setDocumentLocator
-setDocumentLocatorSAXFunc
-setNamespace
-startDocument
-startDocumentSAXFunc
-startElement
-startElementNsSAX2Func
-startElementSAXFunc
-

Letter u:

unparsedEntityDecl
-unparsedEntityDeclSAXFunc
-

Letter v:

valuePop
-valuePush
-

Letter w:

warningSAXFunc
-

Letter x:

xlinkActuate
-xlinkExtendedLinkFunk
-xlinkExtendedLinkSetFunk
-xlinkGetDefaultDetect
-xlinkGetDefaultHandler
-xlinkHRef
-xlinkHandler
-xlinkHandlerPtr
-xlinkIsLink
-xlinkNodeDetectFunc
-xlinkRole
-xlinkSetDefaultDetect
-xlinkSetDefaultHandler
-xlinkShow
-xlinkSimpleLinkFunk
-xlinkTitle
-xlinkType
-xmlACatalogAdd
-xmlACatalogDump
-xmlACatalogRemove
-xmlACatalogResolve
-xmlACatalogResolvePublic
-xmlACatalogResolveSystem
-xmlACatalogResolveURI
-xmlAddAttributeDecl
-xmlAddChild
-xmlAddChildList
-xmlAddDocEntity
-xmlAddDtdEntity
-xmlAddElementDecl
-xmlAddEncodingAlias
-xmlAddID
-xmlAddNextSibling
-xmlAddNotationDecl
-xmlAddPrevSibling
-xmlAddRef
-xmlAddSibling
-xmlAllocOutputBuffer
-xmlAllocParserInputBuffer
-xmlAttr
-xmlAttrPtr
-xmlAttrSerializeTxtContent
-xmlAttribute
-xmlAttributeDefault
-xmlAttributePtr
-xmlAttributeTable
-xmlAttributeTablePtr
-xmlAttributeType
-xmlAutomata
-xmlAutomataCompile
-xmlAutomataGetInitState
-xmlAutomataIsDeterminist
-xmlAutomataNewAllTrans
-xmlAutomataNewCountTrans
-xmlAutomataNewCountTrans2
-xmlAutomataNewCountedTrans
-xmlAutomataNewCounter
-xmlAutomataNewCounterTrans
-xmlAutomataNewEpsilon
-xmlAutomataNewNegTrans
-xmlAutomataNewOnceTrans
-xmlAutomataNewOnceTrans2
-xmlAutomataNewState
-xmlAutomataNewTransition
-xmlAutomataNewTransition2
-xmlAutomataPtr
-xmlAutomataSetFinalState
-xmlAutomataState
-xmlAutomataStatePtr
-xmlBoolToText
-xmlBuffer
-xmlBufferAdd
-xmlBufferAddHead
-xmlBufferAllocScheme
-xmlBufferAllocationScheme
-xmlBufferCCat
-xmlBufferCat
-xmlBufferContent
-xmlBufferCreate
-xmlBufferCreateSize
-xmlBufferCreateStatic
-xmlBufferDump
-xmlBufferEmpty
-xmlBufferFree
-xmlBufferGrow
-xmlBufferLength
-xmlBufferPtr
-xmlBufferResize
-xmlBufferSetAllocationScheme
-xmlBufferShrink
-xmlBufferWriteCHAR
-xmlBufferWriteChar
-xmlBufferWriteQuotedString
-xmlBuildQName
-xmlBuildRelativeURI
-xmlBuildURI
-xmlByteConsumed
-xmlC14NDocDumpMemory
-xmlC14NDocSave
-xmlC14NDocSaveTo
-xmlC14NExecute
-xmlC14NIsVisibleCallback
-xmlCanonicPath
-xmlCatalog
-xmlCatalogAdd
-xmlCatalogAddLocal
-xmlCatalogAllow
-xmlCatalogCleanup
-xmlCatalogConvert
-xmlCatalogDump
-xmlCatalogFreeLocal
-xmlCatalogGetDefaults
-xmlCatalogGetPublic
-xmlCatalogGetSystem
-xmlCatalogIsEmpty
-xmlCatalogLocalResolve
-xmlCatalogLocalResolveURI
-xmlCatalogPrefer
-xmlCatalogPtr
-xmlCatalogRemove
-xmlCatalogResolve
-xmlCatalogResolvePublic
-xmlCatalogResolveSystem
-xmlCatalogResolveURI
-xmlCatalogSetDebug
-xmlCatalogSetDefaultPrefer
-xmlCatalogSetDefaults
-xmlChLRange
-xmlChLRangePtr
-xmlChRangeGroup
-xmlChRangeGroupPtr
-xmlChSRange
-xmlChSRangePtr
-xmlChar
-xmlCharEncCloseFunc
-xmlCharEncFirstLine
-xmlCharEncInFunc
-xmlCharEncOutFunc
-xmlCharEncoding
-xmlCharEncodingHandler
-xmlCharEncodingHandlerPtr
-xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-xmlCharInRange
-xmlCharStrdup
-xmlCharStrndup
-xmlCheckFilename
-xmlCheckHTTPInput
-xmlCheckLanguageID
-xmlCheckUTF8
-xmlCheckVersion
-xmlChildrenNode
-xmlCleanupCharEncodingHandlers
-xmlCleanupEncodingAliases
-xmlCleanupGlobals
-xmlCleanupInputCallbacks
-xmlCleanupMemory
-xmlCleanupOutputCallbacks
-xmlCleanupParser
-xmlCleanupPredefinedEntities
-xmlCleanupThreads
-xmlClearNodeInfoSeq
-xmlClearParserCtxt
-xmlConvertSGMLCatalog
-xmlCopyAttributeTable
-xmlCopyChar
-xmlCopyCharMultiByte
-xmlCopyDoc
-xmlCopyDocElementContent
-xmlCopyDtd
-xmlCopyElementContent
-xmlCopyElementTable
-xmlCopyEntitiesTable
-xmlCopyEnumeration
-xmlCopyError
-xmlCopyNamespace
-xmlCopyNamespaceList
-xmlCopyNode
-xmlCopyNodeList
-xmlCopyNotationTable
-xmlCopyProp
-xmlCopyPropList
-xmlCreateDocParserCtxt
-xmlCreateEntitiesTable
-xmlCreateEntityParserCtxt
-xmlCreateEnumeration
-xmlCreateFileParserCtxt
-xmlCreateIOParserCtxt
-xmlCreateIntSubset
-xmlCreateMemoryParserCtxt
-xmlCreatePushParserCtxt
-xmlCreateURI
-xmlCreateURLParserCtxt
-xmlCtxtGetLastError
-xmlCtxtReadDoc
-xmlCtxtReadFd
-xmlCtxtReadFile
-xmlCtxtReadIO
-xmlCtxtReadMemory
-xmlCtxtReset
-xmlCtxtResetLastError
-xmlCtxtResetPush
-xmlCtxtUseOptions
-xmlCurrentChar
-xmlDOMWrapAdoptNode
-xmlDOMWrapCloneNode
-xmlDOMWrapCtxt
-xmlDOMWrapCtxtPtr
-xmlDOMWrapFreeCtxt
-xmlDOMWrapNewCtxt
-xmlDOMWrapReconcileNamespaces
-xmlDOMWrapRemoveNode
-xmlDebugCheckDocument
-xmlDebugDumpAttr
-xmlDebugDumpAttrList
-xmlDebugDumpDTD
-xmlDebugDumpDocument
-xmlDebugDumpDocumentHead
-xmlDebugDumpEntities
-xmlDebugDumpNode
-xmlDebugDumpNodeList
-xmlDebugDumpOneNode
-xmlDebugDumpString
-xmlDecodeEntities
-xmlDefaultBufferSize
-xmlDefaultSAXHandler
-xmlDefaultSAXHandlerInit
-xmlDefaultSAXLocator
-xmlDelEncodingAlias
-xmlDeregisterNodeDefault
-xmlDeregisterNodeDefaultValue
-xmlDeregisterNodeFunc
-xmlDetectCharEncoding
-xmlDict
-xmlDictCleanup
-xmlDictCreate
-xmlDictCreateSub
-xmlDictExists
-xmlDictFree
-xmlDictLookup
-xmlDictOwns
-xmlDictPtr
-xmlDictQLookup
-xmlDictReference
-xmlDictSize
-xmlDoValidityCheckingDefaultValue
-xmlDoc
-xmlDocCopyNode
-xmlDocCopyNodeList
-xmlDocDump
-xmlDocDumpFormatMemory
-xmlDocDumpFormatMemoryEnc
-xmlDocDumpMemory
-xmlDocDumpMemoryEnc
-xmlDocFormatDump
-xmlDocGetRootElement
-xmlDocPtr
-xmlDocSetRootElement
-xmlDtd
-xmlDtdPtr
-xmlDumpAttributeDecl
-xmlDumpAttributeTable
-xmlDumpElementDecl
-xmlDumpElementTable
-xmlDumpEntitiesTable
-xmlDumpEntityDecl
-xmlDumpNotationDecl
-xmlDumpNotationTable
-xmlElemDump
-xmlElement
-xmlElementContent
-xmlElementContentOccur
-xmlElementContentPtr
-xmlElementContentType
-xmlElementPtr
-xmlElementTable
-xmlElementTablePtr
-xmlElementType
-xmlElementTypeVal
-xmlEncodeEntities
-xmlEncodeEntitiesReentrant
-xmlEncodeSpecialChars
-xmlEntitiesTable
-xmlEntitiesTablePtr
-xmlEntity
-xmlEntityPtr
-xmlEntityReferenceFunc
-xmlEntityType
-xmlEnumeration
-xmlEnumerationPtr
-xmlErrMemory
-xmlError
-xmlErrorDomain
-xmlErrorLevel
-xmlErrorPtr
-xmlExpCtxt
-xmlExpCtxtNbCons
-xmlExpCtxtNbNodes
-xmlExpCtxtPtr
-xmlExpDump
-xmlExpExpDerive
-xmlExpFree
-xmlExpFreeCtxt
-xmlExpGetLanguage
-xmlExpGetStart
-xmlExpIsNillable
-xmlExpMaxToken
-xmlExpNewAtom
-xmlExpNewCtxt
-xmlExpNewOr
-xmlExpNewRange
-xmlExpNewSeq
-xmlExpNode
-xmlExpNodePtr
-xmlExpNodeType
-xmlExpParse
-xmlExpRef
-xmlExpStringDerive
-xmlExpSubsume
-xmlExternalEntityLoader
-xmlFeature
-xmlFileClose
-xmlFileMatch
-xmlFileOpen
-xmlFileRead
-xmlFindCharEncodingHandler
-xmlFree
-xmlFreeAttributeTable
-xmlFreeAutomata
-xmlFreeCatalog
-xmlFreeDoc
-xmlFreeDocElementContent
-xmlFreeDtd
-xmlFreeElementContent
-xmlFreeElementTable
-xmlFreeEntitiesTable
-xmlFreeEnumeration
-xmlFreeFunc
-xmlFreeIDTable
-xmlFreeInputStream
-xmlFreeMutex
-xmlFreeNode
-xmlFreeNodeList
-xmlFreeNotationTable
-xmlFreeNs
-xmlFreeNsList
-xmlFreeParserCtxt
-xmlFreeParserInputBuffer
-xmlFreePattern
-xmlFreePatternList
-xmlFreeProp
-xmlFreePropList
-xmlFreeRMutex
-xmlFreeRefTable
-xmlFreeStreamCtxt
-xmlFreeTextReader
-xmlFreeTextWriter
-xmlFreeURI
-xmlFreeValidCtxt
-xmlGcMemGet
-xmlGcMemSetup
-xmlGenericError
-xmlGenericErrorContext
-xmlGenericErrorFunc
-xmlGetBufferAllocationScheme
-xmlGetCharEncodingHandler
-xmlGetCharEncodingName
-xmlGetCompressMode
-xmlGetDocCompressMode
-xmlGetDocEntity
-xmlGetDtdAttrDesc
-xmlGetDtdElementDesc
-xmlGetDtdEntity
-xmlGetDtdNotationDesc
-xmlGetDtdQAttrDesc
-xmlGetDtdQElementDesc
-xmlGetEncodingAlias
-xmlGetExternalEntityLoader
-xmlGetFeature
-xmlGetFeaturesList
-xmlGetGlobalState
-xmlGetID
-xmlGetIntSubset
-xmlGetLastChild
-xmlGetLastError
-xmlGetLineNo
-xmlGetNoNsProp
-xmlGetNodePath
-xmlGetNsList
-xmlGetNsProp
-xmlGetParameterEntity
-xmlGetPredefinedEntity
-xmlGetProp
-xmlGetRefs
-xmlGetThreadId
-xmlGetUTF8Char
-xmlGetWarningsDefaultValue
-xmlGlobalState
-xmlGlobalStatePtr
-xmlHandleEntity
-xmlHasFeature
-xmlHasNsProp
-xmlHasProp
-xmlHashAddEntry
-xmlHashAddEntry2
-xmlHashAddEntry3
-xmlHashCopier
-xmlHashCopy
-xmlHashCreate
-xmlHashCreateDict
-xmlHashDeallocator
-xmlHashFree
-xmlHashLookup
-xmlHashLookup2
-xmlHashLookup3
-xmlHashQLookup
-xmlHashQLookup2
-xmlHashQLookup3
-xmlHashRemoveEntry
-xmlHashRemoveEntry2
-xmlHashRemoveEntry3
-xmlHashScan
-xmlHashScan3
-xmlHashScanFull
-xmlHashScanFull3
-xmlHashScanner
-xmlHashScannerFull
-xmlHashSize
-xmlHashTable
-xmlHashTablePtr
-xmlHashUpdateEntry
-xmlHashUpdateEntry2
-xmlHashUpdateEntry3
-xmlID
-xmlIDPtr
-xmlIDTable
-xmlIDTablePtr
-xmlIOFTPClose
-xmlIOFTPMatch
-xmlIOFTPOpen
-xmlIOFTPRead
-xmlIOHTTPClose
-xmlIOHTTPMatch
-xmlIOHTTPOpen
-xmlIOHTTPOpenW
-xmlIOHTTPRead
-xmlIOParseDTD
-xmlIndentTreeOutput
-xmlInitCharEncodingHandlers
-xmlInitGlobals
-xmlInitMemory
-xmlInitNodeInfoSeq
-xmlInitParser
-xmlInitParserCtxt
-xmlInitThreads
-xmlInitializeCatalog
-xmlInitializeGlobalState
-xmlInitializePredefinedEntities
-xmlInputCloseCallback
-xmlInputMatchCallback
-xmlInputOpenCallback
-xmlInputReadCallback
-xmlIsBaseChar
-xmlIsBaseCharGroup
-xmlIsBaseCharQ
-xmlIsBaseChar_ch
-xmlIsBlank
-xmlIsBlankNode
-xmlIsBlankQ
-xmlIsBlank_ch
-xmlIsChar
-xmlIsCharGroup
-xmlIsCharQ
-xmlIsChar_ch
-xmlIsCombining
-xmlIsCombiningGroup
-xmlIsCombiningQ
-xmlIsDigit
-xmlIsDigitGroup
-xmlIsDigitQ
-xmlIsDigit_ch
-xmlIsExtender
-xmlIsExtenderGroup
-xmlIsExtenderQ
-xmlIsExtender_ch
-xmlIsID
-xmlIsIdeographic
-xmlIsIdeographicGroup
-xmlIsIdeographicQ
-xmlIsLetter
-xmlIsMainThread
-xmlIsMixedElement
-xmlIsPubidChar
-xmlIsPubidCharQ
-xmlIsPubidChar_ch
-xmlIsPubidChar_tab
-xmlIsRef
-xmlIsXHTML
-xmlKeepBlanksDefault
-xmlKeepBlanksDefaultValue
-xmlLastError
-xmlLineNumbersDefault
-xmlLineNumbersDefaultValue
-xmlLink
-xmlLinkGetData
-xmlLinkPtr
-xmlList
-xmlListAppend
-xmlListClear
-xmlListCopy
-xmlListCreate
-xmlListDataCompare
-xmlListDeallocator
-xmlListDelete
-xmlListDup
-xmlListEmpty
-xmlListEnd
-xmlListFront
-xmlListInsert
-xmlListMerge
-xmlListPopBack
-xmlListPopFront
-xmlListPtr
-xmlListPushBack
-xmlListPushFront
-xmlListRemoveAll
-xmlListRemoveFirst
-xmlListRemoveLast
-xmlListReverse
-xmlListReverseSearch
-xmlListReverseWalk
-xmlListSearch
-xmlListSize
-xmlListSort
-xmlListWalk
-xmlListWalker
-xmlLoadACatalog
-xmlLoadCatalog
-xmlLoadCatalogs
-xmlLoadExtDtdDefaultValue
-xmlLoadExternalEntity
-xmlLoadSGMLSuperCatalog
-xmlLocationSet
-xmlLocationSetPtr
-xmlLockLibrary
-xmlLsCountNode
-xmlLsOneNode
-xmlMalloc
-xmlMallocAtomic
-xmlMallocAtomicLoc
-xmlMallocFunc
-xmlMallocLoc
-xmlMemBlocks
-xmlMemDisplay
-xmlMemFree
-xmlMemGet
-xmlMemMalloc
-xmlMemRealloc
-xmlMemSetup
-xmlMemShow
-xmlMemStrdup
-xmlMemStrdupLoc
-xmlMemUsed
-xmlMemoryDump
-xmlMemoryStrdup
-xmlModule
-xmlModuleClose
-xmlModuleFree
-xmlModuleOpen
-xmlModuleOption
-xmlModulePtr
-xmlModuleSymbol
-xmlMutex
-xmlMutexLock
-xmlMutexPtr
-xmlMutexUnlock
-xmlNamespaceParseNCName
-xmlNamespaceParseNSDef
-xmlNamespaceParseQName
-xmlNanoFTPCheckResponse
-xmlNanoFTPCleanup
-xmlNanoFTPClose
-xmlNanoFTPCloseConnection
-xmlNanoFTPConnect
-xmlNanoFTPConnectTo
-xmlNanoFTPCwd
-xmlNanoFTPDele
-xmlNanoFTPFreeCtxt
-xmlNanoFTPGet
-xmlNanoFTPGetConnection
-xmlNanoFTPGetResponse
-xmlNanoFTPGetSocket
-xmlNanoFTPInit
-xmlNanoFTPList
-xmlNanoFTPNewCtxt
-xmlNanoFTPOpen
-xmlNanoFTPProxy
-xmlNanoFTPQuit
-xmlNanoFTPRead
-xmlNanoFTPScanProxy
-xmlNanoFTPUpdateURL
-xmlNanoHTTPAuthHeader
-xmlNanoHTTPCleanup
-xmlNanoHTTPClose
-xmlNanoHTTPContentLength
-xmlNanoHTTPEncoding
-xmlNanoHTTPFetch
-xmlNanoHTTPInit
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlNanoHTTPMimeType
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-xmlNanoHTTPRead
-xmlNanoHTTPRedir
-xmlNanoHTTPReturnCode
-xmlNanoHTTPSave
-xmlNanoHTTPScanProxy
-xmlNewAutomata
-xmlNewCDataBlock
-xmlNewCatalog
-xmlNewCharEncodingHandler
-xmlNewCharRef
-xmlNewChild
-xmlNewComment
-xmlNewDoc
-xmlNewDocComment
-xmlNewDocElementContent
-xmlNewDocFragment
-xmlNewDocNode
-xmlNewDocNodeEatName
-xmlNewDocPI
-xmlNewDocProp
-xmlNewDocRawNode
-xmlNewDocText
-xmlNewDocTextLen
-xmlNewDtd
-xmlNewElementContent
-xmlNewEntityInputStream
-xmlNewGlobalNs
-xmlNewIOInputStream
-xmlNewInputFromFile
-xmlNewInputStream
-xmlNewMutex
-xmlNewNode
-xmlNewNodeEatName
-xmlNewNs
-xmlNewNsProp
-xmlNewNsPropEatName
-xmlNewPI
-xmlNewParserCtxt
-xmlNewProp
-xmlNewRMutex
-xmlNewReference
-xmlNewStringInputStream
-xmlNewText
-xmlNewTextChild
-xmlNewTextLen
-xmlNewTextReader
-xmlNewTextReaderFilename
-xmlNewTextWriter
-xmlNewTextWriterDoc
-xmlNewTextWriterFilename
-xmlNewTextWriterMemory
-xmlNewTextWriterPushParser
-xmlNewTextWriterTree
-xmlNewValidCtxt
-xmlNextChar
-xmlNoNetExternalEntityLoader
-xmlNode
-xmlNodeAddContent
-xmlNodeAddContentLen
-xmlNodeBufGetContent
-xmlNodeDump
-xmlNodeDumpOutput
-xmlNodeGetBase
-xmlNodeGetContent
-xmlNodeGetLang
-xmlNodeGetSpacePreserve
-xmlNodeIsText
-xmlNodeListGetRawString
-xmlNodeListGetString
-xmlNodePtr
-xmlNodeSet
-xmlNodeSetBase
-xmlNodeSetContent
-xmlNodeSetContentLen
-xmlNodeSetLang
-xmlNodeSetName
-xmlNodeSetPtr
-xmlNodeSetSpacePreserve
-xmlNormalizeURIPath
-xmlNormalizeWindowsPath
-xmlNotation
-xmlNotationPtr
-xmlNotationTable
-xmlNotationTablePtr
-xmlNs
-xmlNsPtr
-xmlNsType
-xmlOutputBuffer
-xmlOutputBufferClose
-xmlOutputBufferCreateBuffer
-xmlOutputBufferCreateFd
-xmlOutputBufferCreateFile
-xmlOutputBufferCreateFilename
-xmlOutputBufferCreateFilenameDefault
-xmlOutputBufferCreateFilenameFunc
-xmlOutputBufferCreateFilenameValue
-xmlOutputBufferCreateIO
-xmlOutputBufferFlush
-xmlOutputBufferPtr
-xmlOutputBufferWrite
-xmlOutputBufferWriteEscape
-xmlOutputBufferWriteString
-xmlOutputCloseCallback
-xmlOutputMatchCallback
-xmlOutputOpenCallback
-xmlOutputWriteCallback
-xmlParseAttValue
-xmlParseAttribute
-xmlParseAttributeListDecl
-xmlParseAttributeType
-xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseCDSect
-xmlParseCatalogFile
-xmlParseCharData
-xmlParseCharEncoding
-xmlParseCharRef
-xmlParseChunk
-xmlParseComment
-xmlParseContent
-xmlParseCtxtExternalEntity
-xmlParseDTD
-xmlParseDefaultDecl
-xmlParseDoc
-xmlParseDocTypeDecl
-xmlParseDocument
-xmlParseElement
-xmlParseElementChildrenContentDecl
-xmlParseElementContentDecl
-xmlParseElementDecl
-xmlParseElementMixedContentDecl
-xmlParseEncName
-xmlParseEncodingDecl
-xmlParseEndTag
-xmlParseEntity
-xmlParseEntityDecl
-xmlParseEntityRef
-xmlParseEntityValue
-xmlParseEnumeratedType
-xmlParseEnumerationType
-xmlParseExtParsedEnt
-xmlParseExternalEntity
-xmlParseExternalID
-xmlParseExternalSubset
-xmlParseFile
-xmlParseInNodeContext
-xmlParseMarkupDecl
-xmlParseMemory
-xmlParseMisc
-xmlParseName
-xmlParseNamespace
-xmlParseNmtoken
-xmlParseNotationDecl
-xmlParseNotationType
-xmlParsePEReference
-xmlParsePI
-xmlParsePITarget
-xmlParsePubidLiteral
-xmlParseQuotedString
-xmlParseReference
-xmlParseSDDecl
-xmlParseStartTag
-xmlParseSystemLiteral
-xmlParseTextDecl
-xmlParseURI
-xmlParseURIRaw
-xmlParseURIReference
-xmlParseVersionInfo
-xmlParseVersionNum
-xmlParseXMLDecl
-xmlParserAddNodeInfo
-xmlParserCtxt
-xmlParserCtxtPtr
-xmlParserDebugEntities
-xmlParserError
-xmlParserErrors
-xmlParserFindNodeInfo
-xmlParserFindNodeInfoIndex
-xmlParserGetDirectory
-xmlParserHandlePEReference
-xmlParserHandleReference
-xmlParserInput
-xmlParserInputBuffer
-xmlParserInputBufferCreateFd
-xmlParserInputBufferCreateFile
-xmlParserInputBufferCreateFilename
-xmlParserInputBufferCreateFilenameDefault
-xmlParserInputBufferCreateFilenameFunc
-xmlParserInputBufferCreateFilenameValue
-xmlParserInputBufferCreateIO
-xmlParserInputBufferCreateMem
-xmlParserInputBufferCreateStatic
-xmlParserInputBufferGrow
-xmlParserInputBufferPtr
-xmlParserInputBufferPush
-xmlParserInputBufferRead
-xmlParserInputDeallocate
-xmlParserInputGrow
-xmlParserInputPtr
-xmlParserInputRead
-xmlParserInputShrink
-xmlParserInputState
-xmlParserMaxDepth
-xmlParserMode
-xmlParserNodeInfo
-xmlParserNodeInfoPtr
-xmlParserNodeInfoSeq
-xmlParserNodeInfoSeqPtr
-xmlParserOption
-xmlParserPrintFileContext
-xmlParserPrintFileInfo
-xmlParserProperties
-xmlParserSeverities
-xmlParserValidityError
-xmlParserValidityWarning
-xmlParserVersion
-xmlParserWarning
-xmlPattern
-xmlPatternFlags
-xmlPatternFromRoot
-xmlPatternGetStreamCtxt
-xmlPatternMatch
-xmlPatternMaxDepth
-xmlPatternMinDepth
-xmlPatternPtr
-xmlPatternStreamable
-xmlPatterncompile
-xmlPedanticParserDefault
-xmlPedanticParserDefaultValue
-xmlPopInput
-xmlPopInputCallbacks
-xmlPrintURI
-xmlPushInput
-xmlRMutex
-xmlRMutexLock
-xmlRMutexPtr
-xmlRMutexUnlock
-xmlReadDoc
-xmlReadFd
-xmlReadFile
-xmlReadIO
-xmlReadMemory
-xmlReaderForDoc
-xmlReaderForFd
-xmlReaderForFile
-xmlReaderForIO
-xmlReaderForMemory
-xmlReaderNewDoc
-xmlReaderNewFd
-xmlReaderNewFile
-xmlReaderNewIO
-xmlReaderNewMemory
-xmlReaderNewWalker
-xmlReaderTypes
-xmlReaderWalker
-xmlRealloc
-xmlReallocFunc
-xmlReallocLoc
-xmlReconciliateNs
-xmlRecoverDoc
-xmlRecoverFile
-xmlRecoverMemory
-xmlRef
-xmlRefPtr
-xmlRefTable
-xmlRefTablePtr
-xmlRegExecCallbacks
-xmlRegExecCtxt
-xmlRegExecCtxtPtr
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlRegExecPushString
-xmlRegExecPushString2
-xmlRegFreeExecCtxt
-xmlRegFreeRegexp
-xmlRegNewExecCtxt
-xmlRegexp
-xmlRegexpCompile
-xmlRegexpExec
-xmlRegexpIsDeterminist
-xmlRegexpPrint
-xmlRegexpPtr
-xmlRegisterCharEncodingHandler
-xmlRegisterDefaultInputCallbacks
-xmlRegisterDefaultOutputCallbacks
-xmlRegisterHTTPPostCallbacks
-xmlRegisterInputCallbacks
-xmlRegisterNodeDefault
-xmlRegisterNodeDefaultValue
-xmlRegisterNodeFunc
-xmlRegisterOutputCallbacks
-xmlRelaxNG
-xmlRelaxNGCleanupTypes
-xmlRelaxNGDump
-xmlRelaxNGDumpTree
-xmlRelaxNGFree
-xmlRelaxNGFreeParserCtxt
-xmlRelaxNGFreeValidCtxt
-xmlRelaxNGGetParserErrors
-xmlRelaxNGGetValidErrors
-xmlRelaxNGInitTypes
-xmlRelaxNGNewDocParserCtxt
-xmlRelaxNGNewMemParserCtxt
-xmlRelaxNGNewParserCtxt
-xmlRelaxNGNewValidCtxt
-xmlRelaxNGParse
-xmlRelaxNGParserCtxt
-xmlRelaxNGParserCtxtPtr
-xmlRelaxNGParserFlag
-xmlRelaxNGPtr
-xmlRelaxNGSetParserErrors
-xmlRelaxNGSetParserStructuredErrors
-xmlRelaxNGSetValidErrors
-xmlRelaxNGSetValidStructuredErrors
-xmlRelaxNGValidCtxt
-xmlRelaxNGValidCtxtPtr
-xmlRelaxNGValidErr
-xmlRelaxNGValidateDoc
-xmlRelaxNGValidateFullElement
-xmlRelaxNGValidatePopElement
-xmlRelaxNGValidatePushCData
-xmlRelaxNGValidatePushElement
-xmlRelaxNGValidityErrorFunc
-xmlRelaxNGValidityWarningFunc
-xmlRelaxParserSetFlag
-xmlRemoveID
-xmlRemoveProp
-xmlRemoveRef
-xmlReplaceNode
-xmlResetError
-xmlResetLastError
-xmlRootNode
-xmlSAX2AttributeDecl
-xmlSAX2CDataBlock
-xmlSAX2Characters
-xmlSAX2Comment
-xmlSAX2ElementDecl
-xmlSAX2EndDocument
-xmlSAX2EndElement
-xmlSAX2EndElementNs
-xmlSAX2EntityDecl
-xmlSAX2ExternalSubset
-xmlSAX2GetColumnNumber
-xmlSAX2GetEntity
-xmlSAX2GetLineNumber
-xmlSAX2GetParameterEntity
-xmlSAX2GetPublicId
-xmlSAX2GetSystemId
-xmlSAX2HasExternalSubset
-xmlSAX2HasInternalSubset
-xmlSAX2IgnorableWhitespace
-xmlSAX2InitDefaultSAXHandler
-xmlSAX2InitDocbDefaultSAXHandler
-xmlSAX2InitHtmlDefaultSAXHandler
-xmlSAX2InternalSubset
-xmlSAX2IsStandalone
-xmlSAX2NotationDecl
-xmlSAX2ProcessingInstruction
-xmlSAX2Reference
-xmlSAX2ResolveEntity
-xmlSAX2SetDocumentLocator
-xmlSAX2StartDocument
-xmlSAX2StartElement
-xmlSAX2StartElementNs
-xmlSAX2UnparsedEntityDecl
-xmlSAXDefaultVersion
-xmlSAXHandler
-xmlSAXHandlerPtr
-xmlSAXHandlerV1
-xmlSAXHandlerV1Ptr
-xmlSAXLocator
-xmlSAXLocatorPtr
-xmlSAXParseDTD
-xmlSAXParseDoc
-xmlSAXParseEntity
-xmlSAXParseFile
-xmlSAXParseFileWithData
-xmlSAXParseMemory
-xmlSAXParseMemoryWithData
-xmlSAXUserParseFile
-xmlSAXUserParseMemory
-xmlSAXVersion
-xmlSaveClose
-xmlSaveCtxt
-xmlSaveCtxtPtr
-xmlSaveDoc
-xmlSaveFile
-xmlSaveFileEnc
-xmlSaveFileTo
-xmlSaveFlush
-xmlSaveFormatFile
-xmlSaveFormatFileEnc
-xmlSaveFormatFileTo
-xmlSaveNoEmptyTags
-xmlSaveOption
-xmlSaveSetAttrEscape
-xmlSaveSetEscape
-xmlSaveToBuffer
-xmlSaveToFd
-xmlSaveToFilename
-xmlSaveToIO
-xmlSaveTree
-xmlSaveUri
-xmlScanName
-xmlSchema
-xmlSchemaAnnot
-xmlSchemaAnnotPtr
-xmlSchemaAttribute
-xmlSchemaAttributeGroup
-xmlSchemaAttributeGroupPtr
-xmlSchemaAttributeLink
-xmlSchemaAttributeLinkPtr
-xmlSchemaAttributePtr
-xmlSchemaCheckFacet
-xmlSchemaCleanupTypes
-xmlSchemaCollapseString
-xmlSchemaCompareValues
-xmlSchemaCompareValuesWhtsp
-xmlSchemaContentType
-xmlSchemaCopyValue
-xmlSchemaDump
-xmlSchemaElement
-xmlSchemaElementPtr
-xmlSchemaFacet
-xmlSchemaFacetLink
-xmlSchemaFacetLinkPtr
-xmlSchemaFacetPtr
-xmlSchemaFree
-xmlSchemaFreeFacet
-xmlSchemaFreeParserCtxt
-xmlSchemaFreeType
-xmlSchemaFreeValidCtxt
-xmlSchemaFreeValue
-xmlSchemaFreeWildcard
-xmlSchemaGetBuiltInListSimpleTypeItemType
-xmlSchemaGetBuiltInType
-xmlSchemaGetCanonValue
-xmlSchemaGetCanonValueWhtsp
-xmlSchemaGetFacetValueAsULong
-xmlSchemaGetParserErrors
-xmlSchemaGetPredefinedType
-xmlSchemaGetValType
-xmlSchemaGetValidErrors
-xmlSchemaInitTypes
-xmlSchemaIsBuiltInTypeFacet
-xmlSchemaIsValid
-xmlSchemaNewDocParserCtxt
-xmlSchemaNewFacet
-xmlSchemaNewMemParserCtxt
-xmlSchemaNewNOTATIONValue
-xmlSchemaNewParserCtxt
-xmlSchemaNewQNameValue
-xmlSchemaNewStringValue
-xmlSchemaNewValidCtxt
-xmlSchemaNotation
-xmlSchemaNotationPtr
-xmlSchemaParse
-xmlSchemaParserCtxt
-xmlSchemaParserCtxtPtr
-xmlSchemaPtr
-xmlSchemaSAXPlug
-xmlSchemaSAXPlugPtr
-xmlSchemaSAXPlugStruct
-xmlSchemaSAXUnplug
-xmlSchemaSetParserErrors
-xmlSchemaSetParserStructuredErrors
-xmlSchemaSetValidErrors
-xmlSchemaSetValidOptions
-xmlSchemaSetValidStructuredErrors
-xmlSchemaType
-xmlSchemaTypeLink
-xmlSchemaTypeLinkPtr
-xmlSchemaTypePtr
-xmlSchemaTypeType
-xmlSchemaVal
-xmlSchemaValPredefTypeNode
-xmlSchemaValPredefTypeNodeNoNorm
-xmlSchemaValPtr
-xmlSchemaValType
-xmlSchemaValidCtxt
-xmlSchemaValidCtxtGetOptions
-xmlSchemaValidCtxtPtr
-xmlSchemaValidError
-xmlSchemaValidOption
-xmlSchemaValidateDoc
-xmlSchemaValidateFacet
-xmlSchemaValidateFacetWhtsp
-xmlSchemaValidateFile
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateLengthFacetWhtsp
-xmlSchemaValidateListSimpleTypeFacet
-xmlSchemaValidateOneElement
-xmlSchemaValidatePredefinedType
-xmlSchemaValidateStream
-xmlSchemaValidityErrorFunc
-xmlSchemaValidityWarningFunc
-xmlSchemaValueAppend
-xmlSchemaValueGetAsBoolean
-xmlSchemaValueGetAsString
-xmlSchemaValueGetNext
-xmlSchemaWhiteSpaceReplace
-xmlSchemaWhitespaceValueType
-xmlSchemaWildcard
-xmlSchemaWildcardNs
-xmlSchemaWildcardNsPtr
-xmlSchemaWildcardPtr
-xmlSchematron
-xmlSchematronFree
-xmlSchematronFreeParserCtxt
-xmlSchematronFreeValidCtxt
-xmlSchematronNewDocParserCtxt
-xmlSchematronNewMemParserCtxt
-xmlSchematronNewParserCtxt
-xmlSchematronNewValidCtxt
-xmlSchematronParse
-xmlSchematronParserCtxt
-xmlSchematronParserCtxtPtr
-xmlSchematronPtr
-xmlSchematronValidCtxt
-xmlSchematronValidCtxtPtr
-xmlSchematronValidOptions
-xmlSchematronValidateDoc
-xmlSchematronValidityErrorFunc
-xmlSchematronValidityWarningFunc
-xmlSearchNs
-xmlSearchNsByHref
-xmlSetBufferAllocationScheme
-xmlSetCompressMode
-xmlSetDocCompressMode
-xmlSetEntityReferenceFunc
-xmlSetExternalEntityLoader
-xmlSetFeature
-xmlSetGenericErrorFunc
-xmlSetListDoc
-xmlSetNs
-xmlSetNsProp
-xmlSetProp
-xmlSetStructuredErrorFunc
-xmlSetTreeDoc
-xmlSetupParserForBuffer
-xmlShell
-xmlShellBase
-xmlShellCat
-xmlShellCmd
-xmlShellCtxt
-xmlShellCtxtPtr
-xmlShellDir
-xmlShellDu
-xmlShellList
-xmlShellLoad
-xmlShellPrintNode
-xmlShellPrintXPathError
-xmlShellPrintXPathResult
-xmlShellPwd
-xmlShellReadlineFunc
-xmlShellSave
-xmlShellValidate
-xmlShellWrite
-xmlSkipBlankChars
-xmlSnprintfElementContent
-xmlSplitQName
-xmlSplitQName2
-xmlSplitQName3
-xmlSprintfElementContent
-xmlStopParser
-xmlStrEqual
-xmlStrPrintf
-xmlStrQEqual
-xmlStrVPrintf
-xmlStrcasecmp
-xmlStrcasestr
-xmlStrcat
-xmlStrchr
-xmlStrcmp
-xmlStrdup
-xmlStrdupFunc
-xmlStreamCtxt
-xmlStreamCtxtPtr
-xmlStreamPop
-xmlStreamPush
-xmlStreamPushAttr
-xmlStreamPushNode
-xmlStreamWantsAnyNode
-xmlStringComment
-xmlStringCurrentChar
-xmlStringDecodeEntities
-xmlStringGetNodeList
-xmlStringLenDecodeEntities
-xmlStringLenGetNodeList
-xmlStringText
-xmlStringTextNoenc
-xmlStrlen
-xmlStrncasecmp
-xmlStrncat
-xmlStrncatNew
-xmlStrncmp
-xmlStrndup
-xmlStrstr
-xmlStrsub
-xmlStructuredError
-xmlStructuredErrorFunc
-xmlSubstituteEntitiesDefault
-xmlSubstituteEntitiesDefaultValue
-xmlSwitchEncoding
-xmlSwitchInputEncoding
-xmlSwitchToEncoding
-xmlTextConcat
-xmlTextMerge
-xmlTextReader
-xmlTextReaderAttributeCount
-xmlTextReaderBaseUri
-xmlTextReaderByteConsumed
-xmlTextReaderClose
-xmlTextReaderConstBaseUri
-xmlTextReaderConstEncoding
-xmlTextReaderConstLocalName
-xmlTextReaderConstName
-xmlTextReaderConstNamespaceUri
-xmlTextReaderConstPrefix
-xmlTextReaderConstString
-xmlTextReaderConstValue
-xmlTextReaderConstXmlLang
-xmlTextReaderConstXmlVersion
-xmlTextReaderCurrentDoc
-xmlTextReaderCurrentNode
-xmlTextReaderDepth
-xmlTextReaderErrorFunc
-xmlTextReaderExpand
-xmlTextReaderGetAttribute
-xmlTextReaderGetAttributeNo
-xmlTextReaderGetAttributeNs
-xmlTextReaderGetErrorHandler
-xmlTextReaderGetParserColumnNumber
-xmlTextReaderGetParserLineNumber
-xmlTextReaderGetParserProp
-xmlTextReaderGetRemainder
-xmlTextReaderHasAttributes
-xmlTextReaderHasValue
-xmlTextReaderIsDefault
-xmlTextReaderIsEmptyElement
-xmlTextReaderIsNamespaceDecl
-xmlTextReaderIsValid
-xmlTextReaderLocalName
-xmlTextReaderLocatorBaseURI
-xmlTextReaderLocatorLineNumber
-xmlTextReaderLocatorPtr
-xmlTextReaderLookupNamespace
-xmlTextReaderMode
-xmlTextReaderMoveToAttribute
-xmlTextReaderMoveToAttributeNo
-xmlTextReaderMoveToAttributeNs
-xmlTextReaderMoveToElement
-xmlTextReaderMoveToFirstAttribute
-xmlTextReaderMoveToNextAttribute
-xmlTextReaderName
-xmlTextReaderNamespaceUri
-xmlTextReaderNext
-xmlTextReaderNextSibling
-xmlTextReaderNodeType
-xmlTextReaderNormalization
-xmlTextReaderPrefix
-xmlTextReaderPreserve
-xmlTextReaderPreservePattern
-xmlTextReaderPtr
-xmlTextReaderQuoteChar
-xmlTextReaderRead
-xmlTextReaderReadAttributeValue
-xmlTextReaderReadInnerXml
-xmlTextReaderReadOuterXml
-xmlTextReaderReadState
-xmlTextReaderReadString
-xmlTextReaderRelaxNGSetSchema
-xmlTextReaderRelaxNGValidate
-xmlTextReaderSchemaValidate
-xmlTextReaderSchemaValidateCtxt
-xmlTextReaderSetErrorHandler
-xmlTextReaderSetParserProp
-xmlTextReaderSetSchema
-xmlTextReaderSetStructuredErrorHandler
-xmlTextReaderStandalone
-xmlTextReaderValue
-xmlTextReaderXmlLang
-xmlTextWriter
-xmlTextWriterEndAttribute
-xmlTextWriterEndCDATA
-xmlTextWriterEndComment
-xmlTextWriterEndDTD
-xmlTextWriterEndDTDAttlist
-xmlTextWriterEndDTDElement
-xmlTextWriterEndDTDEntity
-xmlTextWriterEndDocument
-xmlTextWriterEndElement
-xmlTextWriterEndPI
-xmlTextWriterFlush
-xmlTextWriterFullEndElement
-xmlTextWriterPtr
-xmlTextWriterSetIndent
-xmlTextWriterSetIndentString
-xmlTextWriterStartAttribute
-xmlTextWriterStartAttributeNS
-xmlTextWriterStartCDATA
-xmlTextWriterStartComment
-xmlTextWriterStartDTD
-xmlTextWriterStartDTDAttlist
-xmlTextWriterStartDTDElement
-xmlTextWriterStartDTDEntity
-xmlTextWriterStartDocument
-xmlTextWriterStartElement
-xmlTextWriterStartElementNS
-xmlTextWriterStartPI
-xmlTextWriterWriteAttribute
-xmlTextWriterWriteAttributeNS
-xmlTextWriterWriteBase64
-xmlTextWriterWriteBinHex
-xmlTextWriterWriteCDATA
-xmlTextWriterWriteComment
-xmlTextWriterWriteDTD
-xmlTextWriterWriteDTDAttlist
-xmlTextWriterWriteDTDElement
-xmlTextWriterWriteDTDEntity
-xmlTextWriterWriteDTDExternalEntity
-xmlTextWriterWriteDTDExternalEntityContents
-xmlTextWriterWriteDTDInternalEntity
-xmlTextWriterWriteDTDNotation
-xmlTextWriterWriteDocType
-xmlTextWriterWriteElement
-xmlTextWriterWriteElementNS
-xmlTextWriterWriteFormatAttribute
-xmlTextWriterWriteFormatAttributeNS
-xmlTextWriterWriteFormatCDATA
-xmlTextWriterWriteFormatComment
-xmlTextWriterWriteFormatDTD
-xmlTextWriterWriteFormatDTDAttlist
-xmlTextWriterWriteFormatDTDElement
-xmlTextWriterWriteFormatDTDInternalEntity
-xmlTextWriterWriteFormatElement
-xmlTextWriterWriteFormatElementNS
-xmlTextWriterWriteFormatPI
-xmlTextWriterWriteFormatRaw
-xmlTextWriterWriteFormatString
-xmlTextWriterWritePI
-xmlTextWriterWriteProcessingInstruction
-xmlTextWriterWriteRaw
-xmlTextWriterWriteRawLen
-xmlTextWriterWriteString
-xmlTextWriterWriteVFormatAttribute
-xmlTextWriterWriteVFormatAttributeNS
-xmlTextWriterWriteVFormatCDATA
-xmlTextWriterWriteVFormatComment
-xmlTextWriterWriteVFormatDTD
-xmlTextWriterWriteVFormatDTDAttlist
-xmlTextWriterWriteVFormatDTDElement
-xmlTextWriterWriteVFormatDTDInternalEntity
-xmlTextWriterWriteVFormatElement
-xmlTextWriterWriteVFormatElementNS
-xmlTextWriterWriteVFormatPI
-xmlTextWriterWriteVFormatRaw
-xmlTextWriterWriteVFormatString
-xmlThrDefBufferAllocScheme
-xmlThrDefDefaultBufferSize
-xmlThrDefDeregisterNodeDefault
-xmlThrDefDoValidityCheckingDefaultValue
-xmlThrDefGetWarningsDefaultValue
-xmlThrDefIndentTreeOutput
-xmlThrDefKeepBlanksDefaultValue
-xmlThrDefLineNumbersDefaultValue
-xmlThrDefLoadExtDtdDefaultValue
-xmlThrDefOutputBufferCreateFilenameDefault
-xmlThrDefParserDebugEntities
-xmlThrDefParserInputBufferCreateFilenameDefault
-xmlThrDefPedanticParserDefaultValue
-xmlThrDefRegisterNodeDefault
-xmlThrDefSaveNoEmptyTags
-xmlThrDefSetGenericErrorFunc
-xmlThrDefSetStructuredErrorFunc
-xmlThrDefSubstituteEntitiesDefaultValue
-xmlThrDefTreeIndentString
-xmlTreeIndentString
-xmlUCSIsAegeanNumbers
-xmlUCSIsAlphabeticPresentationForms
-xmlUCSIsArabic
-xmlUCSIsArabicPresentationFormsA
-xmlUCSIsArabicPresentationFormsB
-xmlUCSIsArmenian
-xmlUCSIsArrows
-xmlUCSIsBasicLatin
-xmlUCSIsBengali
-xmlUCSIsBlock
-xmlUCSIsBlockElements
-xmlUCSIsBopomofo
-xmlUCSIsBopomofoExtended
-xmlUCSIsBoxDrawing
-xmlUCSIsBraillePatterns
-xmlUCSIsBuhid
-xmlUCSIsByzantineMusicalSymbols
-xmlUCSIsCJKCompatibility
-xmlUCSIsCJKCompatibilityForms
-xmlUCSIsCJKCompatibilityIdeographs
-xmlUCSIsCJKCompatibilityIdeographsSupplement
-xmlUCSIsCJKRadicalsSupplement
-xmlUCSIsCJKSymbolsandPunctuation
-xmlUCSIsCJKUnifiedIdeographs
-xmlUCSIsCJKUnifiedIdeographsExtensionA
-xmlUCSIsCJKUnifiedIdeographsExtensionB
-xmlUCSIsCat
-xmlUCSIsCatC
-xmlUCSIsCatCc
-xmlUCSIsCatCf
-xmlUCSIsCatCo
-xmlUCSIsCatCs
-xmlUCSIsCatL
-xmlUCSIsCatLl
-xmlUCSIsCatLm
-xmlUCSIsCatLo
-xmlUCSIsCatLt
-xmlUCSIsCatLu
-xmlUCSIsCatM
-xmlUCSIsCatMc
-xmlUCSIsCatMe
-xmlUCSIsCatMn
-xmlUCSIsCatN
-xmlUCSIsCatNd
-xmlUCSIsCatNl
-xmlUCSIsCatNo
-xmlUCSIsCatP
-xmlUCSIsCatPc
-xmlUCSIsCatPd
-xmlUCSIsCatPe
-xmlUCSIsCatPf
-xmlUCSIsCatPi
-xmlUCSIsCatPo
-xmlUCSIsCatPs
-xmlUCSIsCatS
-xmlUCSIsCatSc
-xmlUCSIsCatSk
-xmlUCSIsCatSm
-xmlUCSIsCatSo
-xmlUCSIsCatZ
-xmlUCSIsCatZl
-xmlUCSIsCatZp
-xmlUCSIsCatZs
-xmlUCSIsCherokee
-xmlUCSIsCombiningDiacriticalMarks
-xmlUCSIsCombiningDiacriticalMarksforSymbols
-xmlUCSIsCombiningHalfMarks
-xmlUCSIsCombiningMarksforSymbols
-xmlUCSIsControlPictures
-xmlUCSIsCurrencySymbols
-xmlUCSIsCypriotSyllabary
-xmlUCSIsCyrillic
-xmlUCSIsCyrillicSupplement
-xmlUCSIsDeseret
-xmlUCSIsDevanagari
-xmlUCSIsDingbats
-xmlUCSIsEnclosedAlphanumerics
-xmlUCSIsEnclosedCJKLettersandMonths
-xmlUCSIsEthiopic
-xmlUCSIsGeneralPunctuation
-xmlUCSIsGeometricShapes
-xmlUCSIsGeorgian
-xmlUCSIsGothic
-xmlUCSIsGreek
-xmlUCSIsGreekExtended
-xmlUCSIsGreekandCoptic
-xmlUCSIsGujarati
-xmlUCSIsGurmukhi
-xmlUCSIsHalfwidthandFullwidthForms
-xmlUCSIsHangulCompatibilityJamo
-xmlUCSIsHangulJamo
-xmlUCSIsHangulSyllables
-xmlUCSIsHanunoo
-xmlUCSIsHebrew
-xmlUCSIsHighPrivateUseSurrogates
-xmlUCSIsHighSurrogates
-xmlUCSIsHiragana
-xmlUCSIsIPAExtensions
-xmlUCSIsIdeographicDescriptionCharacters
-xmlUCSIsKanbun
-xmlUCSIsKangxiRadicals
-xmlUCSIsKannada
-xmlUCSIsKatakana
-xmlUCSIsKatakanaPhoneticExtensions
-xmlUCSIsKhmer
-xmlUCSIsKhmerSymbols
-xmlUCSIsLao
-xmlUCSIsLatin1Supplement
-xmlUCSIsLatinExtendedA
-xmlUCSIsLatinExtendedAdditional
-xmlUCSIsLatinExtendedB
-xmlUCSIsLetterlikeSymbols
-xmlUCSIsLimbu
-xmlUCSIsLinearBIdeograms
-xmlUCSIsLinearBSyllabary
-xmlUCSIsLowSurrogates
-xmlUCSIsMalayalam
-xmlUCSIsMathematicalAlphanumericSymbols
-xmlUCSIsMathematicalOperators
-xmlUCSIsMiscellaneousMathematicalSymbolsA
-xmlUCSIsMiscellaneousMathematicalSymbolsB
-xmlUCSIsMiscellaneousSymbols
-xmlUCSIsMiscellaneousSymbolsandArrows
-xmlUCSIsMiscellaneousTechnical
-xmlUCSIsMongolian
-xmlUCSIsMusicalSymbols
-xmlUCSIsMyanmar
-xmlUCSIsNumberForms
-xmlUCSIsOgham
-xmlUCSIsOldItalic
-xmlUCSIsOpticalCharacterRecognition
-xmlUCSIsOriya
-xmlUCSIsOsmanya
-xmlUCSIsPhoneticExtensions
-xmlUCSIsPrivateUse
-xmlUCSIsPrivateUseArea
-xmlUCSIsRunic
-xmlUCSIsShavian
-xmlUCSIsSinhala
-xmlUCSIsSmallFormVariants
-xmlUCSIsSpacingModifierLetters
-xmlUCSIsSpecials
-xmlUCSIsSuperscriptsandSubscripts
-xmlUCSIsSupplementalArrowsA
-xmlUCSIsSupplementalArrowsB
-xmlUCSIsSupplementalMathematicalOperators
-xmlUCSIsSupplementaryPrivateUseAreaA
-xmlUCSIsSupplementaryPrivateUseAreaB
-xmlUCSIsSyriac
-xmlUCSIsTagalog
-xmlUCSIsTagbanwa
-xmlUCSIsTags
-xmlUCSIsTaiLe
-xmlUCSIsTaiXuanJingSymbols
-xmlUCSIsTamil
-xmlUCSIsTelugu
-xmlUCSIsThaana
-xmlUCSIsThai
-xmlUCSIsTibetan
-xmlUCSIsUgaritic
-xmlUCSIsUnifiedCanadianAboriginalSyllabics
-xmlUCSIsVariationSelectors
-xmlUCSIsVariationSelectorsSupplement
-xmlUCSIsYiRadicals
-xmlUCSIsYiSyllables
-xmlUCSIsYijingHexagramSymbols
-xmlURI
-xmlURIEscape
-xmlURIEscapeStr
-xmlURIPtr
-xmlURIUnescapeString
-xmlUTF8Charcmp
-xmlUTF8Size
-xmlUTF8Strlen
-xmlUTF8Strloc
-xmlUTF8Strndup
-xmlUTF8Strpos
-xmlUTF8Strsize
-xmlUTF8Strsub
-xmlUnlinkNode
-xmlUnlockLibrary
-xmlUnsetNsProp
-xmlUnsetProp
-xmlValidBuildContentModel
-xmlValidCtxt
-xmlValidCtxtNormalizeAttributeValue
-xmlValidCtxtPtr
-xmlValidGetPotentialChildren
-xmlValidGetValidElements
-xmlValidNormalizeAttributeValue
-xmlValidState
-xmlValidStatePtr
-xmlValidateAttributeDecl
-xmlValidateAttributeValue
-xmlValidateDocument
-xmlValidateDocumentFinal
-xmlValidateDtd
-xmlValidateDtdFinal
-xmlValidateElement
-xmlValidateElementDecl
-xmlValidateNCName
-xmlValidateNMToken
-xmlValidateName
-xmlValidateNameValue
-xmlValidateNamesValue
-xmlValidateNmtokenValue
-xmlValidateNmtokensValue
-xmlValidateNotationDecl
-xmlValidateNotationUse
-xmlValidateOneAttribute
-xmlValidateOneElement
-xmlValidateOneNamespace
-xmlValidatePopElement
-xmlValidatePushCData
-xmlValidatePushElement
-xmlValidateQName
-xmlValidateRoot
-xmlValidityErrorFunc
-xmlValidityWarningFunc
-xmlXIncludeCtxt
-xmlXIncludeCtxtPtr
-xmlXIncludeFreeContext
-xmlXIncludeNewContext
-xmlXIncludeProcess
-xmlXIncludeProcessFlags
-xmlXIncludeProcessNode
-xmlXIncludeProcessTree
-xmlXIncludeProcessTreeFlags
-xmlXIncludeSetFlags
-xmlXPathAddValues
-xmlXPathAxis
-xmlXPathAxisFunc
-xmlXPathAxisPtr
-xmlXPathBooleanFunction
-xmlXPathCastBooleanToNumber
-xmlXPathCastBooleanToString
-xmlXPathCastNodeSetToBoolean
-xmlXPathCastNodeSetToNumber
-xmlXPathCastNodeSetToString
-xmlXPathCastNodeToNumber
-xmlXPathCastNodeToString
-xmlXPathCastNumberToBoolean
-xmlXPathCastNumberToString
-xmlXPathCastStringToBoolean
-xmlXPathCastStringToNumber
-xmlXPathCastToBoolean
-xmlXPathCastToNumber
-xmlXPathCastToString
-xmlXPathCeilingFunction
-xmlXPathCheckError
-xmlXPathCmpNodes
-xmlXPathCompExpr
-xmlXPathCompExprPtr
-xmlXPathCompareValues
-xmlXPathCompile
-xmlXPathCompiledEval
-xmlXPathConcatFunction
-xmlXPathContainsFunction
-xmlXPathContext
-xmlXPathContextPtr
-xmlXPathContextSetCache
-xmlXPathConvertBoolean
-xmlXPathConvertFunc
-xmlXPathConvertNumber
-xmlXPathConvertString
-xmlXPathCountFunction
-xmlXPathCtxtCompile
-xmlXPathDebugDumpCompExpr
-xmlXPathDebugDumpObject
-xmlXPathDifference
-xmlXPathDistinct
-xmlXPathDistinctSorted
-xmlXPathDivValues
-xmlXPathEmptyNodeSet
-xmlXPathEqualValues
-xmlXPathErr
-xmlXPathError
-xmlXPathEval
-xmlXPathEvalExpr
-xmlXPathEvalExpression
-xmlXPathEvalFunc
-xmlXPathEvalPredicate
-xmlXPathEvaluatePredicateResult
-xmlXPathFalseFunction
-xmlXPathFloorFunction
-xmlXPathFreeCompExpr
-xmlXPathFreeContext
-xmlXPathFreeNodeSet
-xmlXPathFreeNodeSetList
-xmlXPathFreeObject
-xmlXPathFreeParserContext
-xmlXPathFuncLookupFunc
-xmlXPathFuncPtr
-xmlXPathFunct
-xmlXPathFunction
-xmlXPathFunctionLookup
-xmlXPathFunctionLookupNS
-xmlXPathGetContextNode
-xmlXPathGetDocument
-xmlXPathGetError
-xmlXPathHasSameNodes
-xmlXPathIdFunction
-xmlXPathInit
-xmlXPathIntersection
-xmlXPathIsInf
-xmlXPathIsNaN
-xmlXPathIsNodeType
-xmlXPathLangFunction
-xmlXPathLastFunction
-xmlXPathLeading
-xmlXPathLeadingSorted
-xmlXPathLocalNameFunction
-xmlXPathModValues
-xmlXPathMultValues
-xmlXPathNAN
-xmlXPathNINF
-xmlXPathNamespaceURIFunction
-xmlXPathNewBoolean
-xmlXPathNewCString
-xmlXPathNewContext
-xmlXPathNewFloat
-xmlXPathNewNodeSet
-xmlXPathNewNodeSetList
-xmlXPathNewParserContext
-xmlXPathNewString
-xmlXPathNewValueTree
-xmlXPathNextAncestor
-xmlXPathNextAncestorOrSelf
-xmlXPathNextAttribute
-xmlXPathNextChild
-xmlXPathNextDescendant
-xmlXPathNextDescendantOrSelf
-xmlXPathNextFollowing
-xmlXPathNextFollowingSibling
-xmlXPathNextNamespace
-xmlXPathNextParent
-xmlXPathNextPreceding
-xmlXPathNextPrecedingSibling
-xmlXPathNextSelf
-xmlXPathNodeLeading
-xmlXPathNodeLeadingSorted
-xmlXPathNodeSetAdd
-xmlXPathNodeSetAddNs
-xmlXPathNodeSetAddUnique
-xmlXPathNodeSetContains
-xmlXPathNodeSetCreate
-xmlXPathNodeSetDel
-xmlXPathNodeSetFreeNs
-xmlXPathNodeSetGetLength
-xmlXPathNodeSetIsEmpty
-xmlXPathNodeSetItem
-xmlXPathNodeSetMerge
-xmlXPathNodeSetRemove
-xmlXPathNodeSetSort
-xmlXPathNodeTrailing
-xmlXPathNodeTrailingSorted
-xmlXPathNormalizeFunction
-xmlXPathNotEqualValues
-xmlXPathNotFunction
-xmlXPathNsLookup
-xmlXPathNumberFunction
-xmlXPathObject
-xmlXPathObjectCopy
-xmlXPathObjectPtr
-xmlXPathObjectType
-xmlXPathOrderDocElems
-xmlXPathPINF
-xmlXPathParseNCName
-xmlXPathParseName
-xmlXPathParserContext
-xmlXPathParserContextPtr
-xmlXPathPopBoolean
-xmlXPathPopExternal
-xmlXPathPopNodeSet
-xmlXPathPopNumber
-xmlXPathPopString
-xmlXPathPositionFunction
-xmlXPathRegisterAllFunctions
-xmlXPathRegisterFunc
-xmlXPathRegisterFuncLookup
-xmlXPathRegisterFuncNS
-xmlXPathRegisterNs
-xmlXPathRegisterVariable
-xmlXPathRegisterVariableLookup
-xmlXPathRegisterVariableNS
-xmlXPathRegisteredFuncsCleanup
-xmlXPathRegisteredNsCleanup
-xmlXPathRegisteredVariablesCleanup
-xmlXPathReturnBoolean
-xmlXPathReturnEmptyNodeSet
-xmlXPathReturnEmptyString
-xmlXPathReturnExternal
-xmlXPathReturnFalse
-xmlXPathReturnNodeSet
-xmlXPathReturnNumber
-xmlXPathReturnString
-xmlXPathReturnTrue
-xmlXPathRoot
-xmlXPathRoundFunction
-xmlXPathSetArityError
-xmlXPathSetError
-xmlXPathSetTypeError
-xmlXPathStackIsExternal
-xmlXPathStackIsNodeSet
-xmlXPathStartsWithFunction
-xmlXPathStringEvalNumber
-xmlXPathStringFunction
-xmlXPathStringLengthFunction
-xmlXPathSubValues
-xmlXPathSubstringAfterFunction
-xmlXPathSubstringBeforeFunction
-xmlXPathSubstringFunction
-xmlXPathSumFunction
-xmlXPathTrailing
-xmlXPathTrailingSorted
-xmlXPathTranslateFunction
-xmlXPathTrueFunction
-xmlXPathType
-xmlXPathTypePtr
-xmlXPathValueFlipSign
-xmlXPathVariable
-xmlXPathVariableLookup
-xmlXPathVariableLookupFunc
-xmlXPathVariableLookupNS
-xmlXPathVariablePtr
-xmlXPathWrapCString
-xmlXPathWrapExternal
-xmlXPathWrapNodeSet
-xmlXPathWrapString
-xmlXPatherror
-xmlXPtrBuildNodeList
-xmlXPtrEval
-xmlXPtrEvalRangePredicate
-xmlXPtrFreeLocationSet
-xmlXPtrLocationSetAdd
-xmlXPtrLocationSetCreate
-xmlXPtrLocationSetDel
-xmlXPtrLocationSetMerge
-xmlXPtrLocationSetRemove
-xmlXPtrNewCollapsedRange
-xmlXPtrNewContext
-xmlXPtrNewLocationSetNodeSet
-xmlXPtrNewLocationSetNodes
-xmlXPtrNewRange
-xmlXPtrNewRangeNodeObject
-xmlXPtrNewRangeNodePoint
-xmlXPtrNewRangeNodes
-xmlXPtrNewRangePointNode
-xmlXPtrNewRangePoints
-xmlXPtrRangeToFunction
-xmlXPtrWrapLocationSet
-

Daniel Veillard

diff --git a/src/tools/docbook/libxml2/doc/ChangeLog.xsl b/src/tools/docbook/libxml2/doc/ChangeLog.xsl deleted file mode 100644 index 5e6c3a9d0e..0000000000 --- a/src/tools/docbook/libxml2/doc/ChangeLog.xsl +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - libxml2 - - - API Menu - -
- - -
-
- - - - - - - - -
  • -
    - - - -

    - - - - - -

      - -
    -

    -
    - - - ChangeLog last entries of - - - - - - - - - - - - - - - -
    - - - - - -
    - - - - - - -
    - - - - -
    - - - - -
    - -

    Daniel Veillard

    -
    -
    -
    -
    -
    - - -
    - - diff --git a/src/tools/docbook/libxml2/doc/DOM.gif b/src/tools/docbook/libxml2/doc/DOM.gif deleted file mode 100644 index a44882fe29..0000000000 Binary files a/src/tools/docbook/libxml2/doc/DOM.gif and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/DOM.html b/src/tools/docbook/libxml2/doc/DOM.html deleted file mode 100644 index a637399620..0000000000 --- a/src/tools/docbook/libxml2/doc/DOM.html +++ /dev/null @@ -1,17 +0,0 @@ - - -DOM Principles
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    DOM Principles

    Developer Menu
    API Indexes
    Related links

    DOMstands for the -DocumentObjectModel; this is an API for accessing XML or HTML -structureddocuments.Native support for DOM in Gnome is on the way (module -gnome-dom),and will bebased on gnome-xml. This will be a far cleaner -interface tomanipulate XMLfiles within Gnome since it won't expose the -internalstructure.

    The current DOM implementation on top of libxml2 is the gdome2 Gnome module,thisis -a full DOM interface, thanks to Paolo Casarini, check the Gdome2 -homepageformoreinformations.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/FAQ.html b/src/tools/docbook/libxml2/doc/FAQ.html deleted file mode 100644 index cdc6585c8d..0000000000 --- a/src/tools/docbook/libxml2/doc/FAQ.html +++ /dev/null @@ -1,277 +0,0 @@ - - -FAQ
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    FAQ

    Main Menu
    Related links

    Table of Contents:

    License(s)

    1. Licensing Terms for libxml -

      libxml2 is released under the MITLicense;see - the file Copyright in the distribution for the precisewording

      -
    2. -
    3. Can I embed libxml2 in a proprietary application ? -

      Yes. The MIT License allows you to keep proprietary the changesyoumade - to libxml, but it would be graceful to send-back bug fixesandimprovements - as patches for possible incorporation in themaindevelopment tree.

      -
    4. -

    Installation

    1. Do - NotUselibxml1, use libxml2
    2. -
    3. Where can I get libxml? -

      The original distribution comes from xmlsoft.orgor gnome.org

      -

      Most Linux and BSD distributions include libxml, this is - probablythesafer way for end-users to use libxml.

      -

      David Doolin provides precompiled Windows versions at http://www.ce.berkeley.edu/~doolin/code/libxmlwin32/

      -
    4. -
    5. I see libxml and libxml2 releases, which one should I install ? -
      • If you are not constrained by backward compatibility - issueswithexisting applications, install libxml2 only
      • -
      • If you are not doing development, you can safely - installboth.Usually the packages libxmland libxml2arecompatible(this - is not the case for development packages).
      • -
      • If you are a developer and your system provides - separatepackagingfor shared libraries and the development components, - it ispossibleto install libxml and libxml2, and also libxml-develandlibxml2-develtoofor - libxml2 >= 2.3.0
      • -
      • If you are developing a new application, please - developagainstlibxml2(-devel)
      • -
    6. -
    7. I can't install the libxml package, it conflicts with libxml0 -

      You probably have an old libxml0 package used to provide - thesharedlibrary for libxml.so.0, you can probably safely remove it. - Thelibxmlpackages provided on xmlsoft.orgprovidelibxml.so.0

      -
    8. -
    9. I can't install the libxml(2) RPM package due - tofaileddependencies -

      The most generic solution is to re-fetch the latest src.rpm - ,andrebuild it locally with

      -

      rpm --rebuild libxml(2)-xxx.src.rpm.

      -

      If everything goes well it will generate two binary rpm - packages(oneproviding the shared libs and xmllint, and the other one, - the-develpackage, providing includes, static libraries and scripts needed - tobuildapplications with libxml(2)) that you can install locally.

      -
    10. -

    Compilation

    1. What is the process to compile libxml2 ? -

      As most UNIX libraries libxml2 follows the "standard":

      -

      gunzip -c xxx.tar.gz | tar xvf -

      -

      cd libxml-xxxx

      -

      ./configure --help

      -

      to see the options, then the compilation/installation proper

      -

      ./configure [possible options]

      -

      make

      -

      make install

      -

      At that point you may have to rerun ldconfig or a similar - utilitytoupdate your list of installed shared libs.

      -
    2. -
    3. What other libraries are needed to compile/install libxml2 ? -

      Libxml2 does not require any other library, the normal C ANSIAPIshould - be sufficient (please report any violation to this rule youmayfind).

      -

      However if found at configuration time libxml2 will detect and - usethefollowing libs:

      -
      • libz:ahighly - portable and available widely compression library.
      • -
      • iconv: a powerful character encoding conversion library. - Itisincluded by default in recent glibc libraries, so it doesn't - needtobe installed specifically on Linux. It now seems a partofthe - official UNIXspecification. Here is one implementation - ofthelibrarywhich source can be found here.
      • -
    4. -
    5. Make check fails on some platforms -

      Sometimes the regression tests' results don't completely matchthevalue - produced by the parser, and the makefile uses diff to printthedelta. On - some platforms the diff return breaks the compilationprocess;if the diff - is small this is probably not a serious problem.

      -

      Sometimes (especially on Solaris) make checks fail due tolimitationsin - make. Try using GNU-make instead.

      -
    6. -
    7. I use the CVS version and there is no configure script -

      The configure script (and other Makefiles) are generated. - Usetheautogen.sh script to regenerate the configure script - andMakefiles,like:

      -

      ./autogen.sh --prefix=/usr --disable-shared

      -
    8. -
    9. I have troubles when running make tests with gcc-3.0 -

      It seems the initial release of gcc-3.0 has a problem withtheoptimizer - which miscompiles the URI module. Please useanothercompiler.

      -
    10. -

    Developercorner

    1. Troubles compiling or linking programs using libxml2 -

      Usually the problem comes from the fact that the compiler - doesn'tgetthe right compilation or linking flags. There is a small - shellscriptxml2-configwhich is installed as part of - libxml2usualinstall process which provides those flags. Use

      -

      xml2-config --cflags

      -

      to get the compilation flags and

      -

      xml2-config --libs

      -

      to get the linker flags. Usually this is done directly fromtheMakefile - as:

      -

      CFLAGS=`xml2-config --cflags`

      -

      LIBS=`xml2-config --libs`

      -
    2. -
    3. I want to install my own copy of libxml2 in my home - directoryandlink my programs against it, but it doesn't work -

      There are many different ways to accomplish this. Here is one waytodo - this under Linux. Suppose your home directory - is/home/user.Then:

      -
      • Create a subdirectory, let's call it myxml
      • -
      • unpack the libxml2 distribution into that subdirectory
      • -
      • chdir into the unpacked - distribution(/home/user/myxml/libxml2)
      • -
      • configure the library using the - "--prefix"switch,specifying an installation - subdirectoryin/home/user/myxml, e.g. -

        ./configure - --prefix/home/user/myxml/xmlinst{otherconfiguration - options}

        -
      • -
      • now run makefollowed by make install
      • -
      • At this point, the installation subdirectory contains - thecomplete"private" include files, library files and binary - programfiles (e.g.xmllint), located in -

        /home/user/myxml/xmlinst/lib,/home/user/myxml/xmlinst/includeand - /home/user/myxml/xmlinst/bin

        - respectively.
      • -
      • In order to use this "private" library, you should first add - ittothe beginning of your default PATH (so that your own - privateprogramfiles such as xmllint will be used instead of the - normalsystemones). To do this, the Bash command would be -

        export PATH=/home/user/myxml/xmlinst/bin:$PATH

        -
      • -
      • Now suppose you have a program test1.cthat - youwouldlike to compile with your "private" library. Simply compile - itusingthe command -

        gcc `xml2-config --cflags --libs` -o test test.c

        - Note that, because your PATH has been set - with/home/user/myxml/xmlinst/binat the beginning, - thexml2-configprogram which you just installed will be used instead - ofthe systemdefault one, and this will automaticallyget - thecorrectlibraries linked with your program.
      • -
    4. - -

      -
    5. xmlDocDump() generates output on one line. -

      Libxml2 will not inventspaces in the content - ofadocument since all spaces in the content of a - documentaresignificant. If you build a tree from the API - andwantindentation:

      -
      1. the correct way is to generate those yourself too.
      2. -
      3. the dangerous way is to ask libxml2 to add those blanks - toyourcontent modifying the content of your document - intheprocess. The result may not be what you expect. - ThereisNOway to guarantee that such a - modificationwon'taffect other parts of the content of your document. - See xmlKeepBlanksDefault()andxmlSaveFormatFile()
      4. -
    6. -
    7. Extra nodes in the document: -

      For a XML file as below:

      -
      <?xml version="1.0"?>
      -<PLAN xmlns="http://www.argus.ca/autotest/1.0/">
      -<NODE CommFlag="0"/>
      -<NODE CommFlag="1"/>
      -</PLAN>
      -

      after parsing it with - thefunctionpxmlDoc=xmlParseFile(...);

      -

      I want to the get the content of the first node (node - withtheCommFlag="0")

      -

      so I did it as following;

      -
      xmlNodePtr pnode;
      -pnode=pxmlDoc->children->children;
      -

      but it does not work. If I change it to

      -
      pnode=pxmlDoc->children->children->next;
      -

      then it works. Can someone explain it to me.

      -

      -

      In XML all characters in the content of the document - aresignificantincluding blanks and formatting - linebreaks.

      -

      The extra nodes you are wondering about are just that, text - nodeswiththe formatting spaces which are part of the document but that - peopletendto forget. There is a function xmlKeepBlanksDefault()toremove - those at parse time, but that's an heuristic, and itsuse should belimited - to cases where you are certain there is nomixed-content in - thedocument.

      -
    8. -
    9. I get compilation errors of existing code like - whenaccessingrootor child - fieldsofnodes. -

      You are compiling code developed for libxml version 1 and - usingalibxml2 development environment. Either switch back to libxml v1 - develoreven better fix the code to compile with libxml2 (or both) by following the instructions.

      -
    10. -
    11. I get compilation errors about - nonexistingxmlRootNodeorxmlChildrenNodefields. -

      The source code you are using has been upgradedto be able to compile with both - libxmlandlibxml2, but you need to install a more recent - version:libxml(-devel)>= 1.8.8 or libxml2(-devel) >= 2.1.0

      -
    12. -
    13. XPath implementation looks seriously broken -

      XPath implementation prior to 2.3.0 was really incomplete. Upgrade - toarecent version, there are no known bugs in the current version.

      -
    14. -
    15. The example provided in the web page does not compile. -

      It's hard to maintain the documentation in sync with - thecode<grin/> ...

      -

      Check the previous points 1/ and 2/ raised before, and - pleasesendpatches.

      -
    16. -
    17. Where can I get more examples and information than provided - ontheweb page? -

      Ideally a libxml2 book would be nice. I have no such plan ... - Butyoucan:

      -
      • check more deeply the existinggenerated doc
      • -
      • have a look at the - setofexamples.
      • -
      • look for examples of use for libxml2 function using the - Gnomecode.For example the following will query the full Gnome CVS - base fortheuse of the xmlAddChild()function: -

        http://cvs.gnome.org/lxr/search?string=xmlAddChild

        -

        This may be slow, a large hardware donation to the - gnomeprojectcould cure this :-)

        -
      • -
      • Browsethelibxml2 - source, I try to write code as clean and documentedaspossible, so - looking at it may be helpful. In particular the codeofxmllint.c and - of the various testXXX.c test programs shouldprovidegood examples of - how to do things with the library.
      • -
    18. -
    19. What about C++ ? -

      libxml2 is written in pure C in order to allow easy reuse on anumberof - platforms, including embedded systems. I don't intend to converttoC++.

      -

      There is however a C++ wrapper which may fulfill your needs:

      -
    20. -
    21. How to validate a document a posteriori ? -

      It is possible to validate documents which had not been - validatedatinitial parsing time or documents which have been built - fromscratchusing the API. Use the xmlValidateDtd()function.It - is also possible to simply add a DTD to an existingdocument:

      -
      xmlDocPtr doc; /* your existing document */
      -xmlDtdPtr dtd = xmlParseDTD(NULL, filename_of_dtd); /* parse the DTD */
      -
      -        dtd->name = xmlStrDup((xmlChar*)"root_name"); /* use the given root */
      -
      -        doc->intSubset = dtd;
      -        if (doc->children == NULL) xmlAddChild((xmlNodePtr)doc, (xmlNodePtr)dtd);
      -        else xmlAddPrevSibling(doc->children, (xmlNodePtr)dtd);
      -          
      -
    22. -
    23. So what is this funky "xmlChar" used all the time? -

      It is a null terminated sequence of utf-8 characters. And - onlyutf-8!You need to convert strings encoded in different ways to - utf-8beforepassing them to the API. This can be accomplished with the - iconvlibraryfor instance.

      -
    24. -
    25. etc ...
    26. -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/Libxml2-Logo-180x168.gif b/src/tools/docbook/libxml2/doc/Libxml2-Logo-180x168.gif deleted file mode 100644 index ebded4ff44..0000000000 Binary files a/src/tools/docbook/libxml2/doc/Libxml2-Logo-180x168.gif and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/Libxml2-Logo-90x34.gif b/src/tools/docbook/libxml2/doc/Libxml2-Logo-90x34.gif deleted file mode 100644 index b96fff0bde..0000000000 Binary files a/src/tools/docbook/libxml2/doc/Libxml2-Logo-90x34.gif and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/Makefile.am b/src/tools/docbook/libxml2/doc/Makefile.am deleted file mode 100644 index 55c5ef5804..0000000000 --- a/src/tools/docbook/libxml2/doc/Makefile.am +++ /dev/null @@ -1,123 +0,0 @@ -## Process this file with automake to produce Makefile.in -SUBDIRS=devhelp examples - -# The top-level SGML file. -DOC_MAIN_XML_FILE=gnome-xml.xml - -# The directory containing the source code (if it contains documentation). -DOC_SOURCE_DIR=.. - -# A file in win32 depends upon one of the doc files -WIN32_DIR=$(top_srcdir)/win32 - -PAGES= architecture.html bugs.html contribs.html docs.html DOM.html \ - downloads.html entities.html example.html help.html index.html \ - interface.html intro.html library.html namespaces.html news.html \ - tree.html xmldtd.html XMLinfo.html XSLT.html -APIPAGES=APIconstructors.html APIfiles.html APIfunctions.html \ - APIsymbols.html APIchunk0.html -EXTRA_DIST=xmlcatalog_man.xml tutorial/*.html tutorial/*.c tutorial/*.pdf \ - tutorial/images/*.png tutorial/images/callouts/*.png \ - API*.html *.1 *.xsl *.html *.gif w3c.png html/*.html \ - html/*.png libxml2-api.xml index.py search.php \ - apibuild.py libxml2.xsa xmllint.xml xmlcatalog_man.xml \ - README.docs - - -man_MANS = xmllint.1 xmlcatalog.1 - -all: web $(top_builddir)/NEWS libxml2.xsa $(man_MANS) - -api: libxml2-api.xml libxml2-refs.xml $(APIPAGES) $(srcdir)/html/index.html $(WIN32_DIR)/libxml2.def.src ../elfgcchack.h - -web: $(PAGES) - -../elfgcchack.h: $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml - -@(if [ -x $(XSLTPROC) ] ; then \ - echo "Rebuilding the elfgcchack.h header" ; \ - $(XSLTPROC) --nonet $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml > elfgcchack.h ; \ - if [ "`diff -q elfgcchack.h ../elfgcchack.h`" ] ; then \ - echo "updating ../elfgcchack.h"; \ - cp elfgcchack.h ../elfgcchack.h; \ - fi ; rm -f elfgcchack.h ; fi ); - -$(PAGES): xml.html site.xsl - -@(if [ -x $(XSLTPROC) ] ; then \ - echo "Rebuilding the HTML Web pages from xml.html" ; \ - $(XSLTPROC) --nonet --html $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/xml.html > index.html ; fi ); - -@(if [ -x $(XMLLINT) ] ; then \ - echo "Validating the HTML Web pages" ; \ - $(XMLLINT) --nonet --valid --noout $(PAGES) ; fi ); - -$(top_builddir)/NEWS: $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html - -@(if [ -x $(XSLTPROC) ] ; then \ - $(XSLTPROC) --nonet $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html > $(top_builddir)/NEWS ; fi ); - -libxml2.xsa: $(top_srcdir)/doc/xsa.xsl $(top_srcdir)/doc/news.html - -@(if [ -x $(XSLTPROC) ] ; then \ - echo "Rebuilding the NEWS file" ; \ - $(XSLTPROC) --nonet $(top_srcdir)/doc/xsa.xsl $(top_srcdir)/doc/news.html > libxml2.xsa ; fi ); - -$(APIPAGES): libxml2-api.xml libxml2-refs.xml $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/api.xsl - -@(if [ -x $(XSLTPROC) ] ; then \ - echo "Rebuilding the HTML API pages from libxml2-refs.xml" ; \ - $(XSLTPROC) --nonet --html $(top_srcdir)/doc/api.xsl \ - $(top_srcdir)/doc/xml.html ; fi ); - -@(if [ -x $(XMLLINT) ] ; then \ - echo "Validating the HTML API pages" ; \ - $(XMLLINT) --nonet --valid --noout API*.html ; fi ); - -$(srcdir)/html/index.html: libxml2-api.xml $(srcdir)/newapi.xsl - -@(if [ -x $(XSLTPROC) ] ; then \ - echo "Rebuilding the HTML pages from the XML API" ; \ - $(XSLTPROC) --nonet $(srcdir)/newapi.xsl libxml2-api.xml ; fi ) - -@(if [ -x $(XMLLINT) ] ; then \ - echo "Validating the resulting XHTML pages" ; \ - $(XMLLINT) --nonet --valid --noout html/*.html ; fi ); - -wiki: libxml2-api.xml $(srcdir)/wiki.xsl - -@(if [ -x $(XSLTPROC) ] ; then \ - echo "Rebuilding the wiki HTML pages from the XML API" ; \ - $(XSLTPROC) --nonet $(srcdir)/wiki.xsl libxml2-api.xml; fi ) - -$(WIN32_DIR)/libxml2.def.src: libxml2-api.xml - -@(if [ -x $(XSLTPROC) ] ; then \ - $(XSLTPROC) -o $(WIN32_DIR)/libxml2.def.src \ - --nonet $(WIN32_DIR)/defgen.xsl libxml2-api.xml ; fi ) - -libxml2-api.xml libxml2-refs.xml: apibuild.py ../include/libxml/*.h ../*.c - -(./apibuild.py) - -@(cd .. ; $(MAKE) rebuild_testapi) - - -xmllint.1: xmllint.xml - -@($(XSLTPROC) --nonet xmllint.xml) - -xmlcatalog.1: xmlcatalog_man.xml - -@($(XSLTPROC) --nonet xmlcatalog_man.xml) - -clean-local: - rm -f *~ *.bak *.hierarchy *.signals *-unused.txt - -maintainer-clean-local: clean-local - rm -rf libxml-decl-list.txt libxml-decl.txt - -rebuild: api all - -install-data-local: - $(mkinstalldirs) $(DESTDIR)$(HTML_DIR) - -@INSTALL@ -m 0644 $(srcdir)/xml.html $(srcdir)/encoding.html $(srcdir)/FAQ.html $(srcdir)/structure.gif $(srcdir)/DOM.gif $(srcdir)/smallfootonly.gif $(srcdir)/redhat.gif $(srcdir)/libxml.gif $(srcdir)/w3c.png $(srcdir)/Libxml2-Logo-180x168.gif $(srcdir)/Libxml2-Logo-90x34.gif $(DESTDIR)$(HTML_DIR) - $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/html - -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(HTML_DIR)/html - -@INSTALL@ -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(HTML_DIR)/html - $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/tutorial - -@INSTALL@ -m 0644 $(srcdir)/tutorial/*.* \ - $(DESTDIR)$(HTML_DIR)/tutorial - $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/tutorial/images - -@INSTALL@ -m 0644 $(srcdir)/tutorial/images/*.* \ - $(DESTDIR)$(HTML_DIR)/tutorial/images - $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts - -@INSTALL@ -m 0644 $(srcdir)/tutorial/images/callouts/*.* \ - $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts - -.PHONY : html xml templates scan diff --git a/src/tools/docbook/libxml2/doc/Makefile.in b/src/tools/docbook/libxml2/doc/Makefile.in deleted file mode 100644 index 70bd86eb63..0000000000 --- a/src/tools/docbook/libxml2/doc/Makefile.in +++ /dev/null @@ -1,759 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = doc -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-exec-recursive install-info-recursive \ - install-recursive installcheck-recursive installdirs-recursive \ - pdf-recursive ps-recursive uninstall-info-recursive \ - uninstall-recursive -man1dir = $(mandir)/man1 -am__installdirs = "$(DESTDIR)$(man1dir)" -NROFF = nroff -MANS = $(man_MANS) -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -BASE_THREAD_LIBS = @BASE_THREAD_LIBS@ -C14N_OBJ = @C14N_OBJ@ -CATALOG_OBJ = @CATALOG_OBJ@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ -CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@ -DEBUG_OBJ = @DEBUG_OBJ@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOCB_OBJ = @DOCB_OBJ@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -FTP_OBJ = @FTP_OBJ@ -HAVE_ISINF = @HAVE_ISINF@ -HAVE_ISNAN = @HAVE_ISNAN@ -HTML_DIR = @HTML_DIR@ -HTML_OBJ = @HTML_OBJ@ -HTTP_OBJ = @HTTP_OBJ@ -ICONV_LIBS = @ICONV_LIBS@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBXML_MAJOR_VERSION = @LIBXML_MAJOR_VERSION@ -LIBXML_MICRO_VERSION = @LIBXML_MICRO_VERSION@ -LIBXML_MINOR_VERSION = @LIBXML_MINOR_VERSION@ -LIBXML_VERSION = @LIBXML_VERSION@ -LIBXML_VERSION_EXTRA = @LIBXML_VERSION_EXTRA@ -LIBXML_VERSION_INFO = @LIBXML_VERSION_INFO@ -LIBXML_VERSION_NUMBER = @LIBXML_VERSION_NUMBER@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MODULE_EXTENSION = @MODULE_EXTENSION@ -MODULE_PLATFORM_LIBS = @MODULE_PLATFORM_LIBS@ -MV = @MV@ -M_LIBS = @M_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -PYTHON = @PYTHON@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@ -PYTHON_SUBDIR = @PYTHON_SUBDIR@ -PYTHON_TESTS = @PYTHON_TESTS@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -RDL_LIBS = @RDL_LIBS@ -READER_TEST = @READER_TEST@ -RELDATE = @RELDATE@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STATIC_BINARIES = @STATIC_BINARIES@ -STRIP = @STRIP@ -TAR = @TAR@ -TEST_C14N = @TEST_C14N@ -TEST_CATALOG = @TEST_CATALOG@ -TEST_DEBUG = @TEST_DEBUG@ -TEST_HTML = @TEST_HTML@ -TEST_MODULES = @TEST_MODULES@ -TEST_PATTERN = @TEST_PATTERN@ -TEST_PHTML = @TEST_PHTML@ -TEST_PUSH = @TEST_PUSH@ -TEST_REGEXPS = @TEST_REGEXPS@ -TEST_SAX = @TEST_SAX@ -TEST_SCHEMAS = @TEST_SCHEMAS@ -TEST_SCHEMATRON = @TEST_SCHEMATRON@ -TEST_THREADS = @TEST_THREADS@ -TEST_VALID = @TEST_VALID@ -TEST_VTIME = @TEST_VTIME@ -TEST_XINCLUDE = @TEST_XINCLUDE@ -TEST_XPATH = @TEST_XPATH@ -TEST_XPTR = @TEST_XPTR@ -THREADS_W32 = @THREADS_W32@ -THREAD_CFLAGS = @THREAD_CFLAGS@ -THREAD_LIBS = @THREAD_LIBS@ -U = @U@ -VERSION = @VERSION@ -WIN32_EXTRA_LDFLAGS = @WIN32_EXTRA_LDFLAGS@ -WIN32_EXTRA_LIBADD = @WIN32_EXTRA_LIBADD@ -WITH_C14N = @WITH_C14N@ -WITH_CATALOG = @WITH_CATALOG@ -WITH_DEBUG = @WITH_DEBUG@ -WITH_DOCB = @WITH_DOCB@ -WITH_FTP = @WITH_FTP@ -WITH_HTML = @WITH_HTML@ -WITH_HTTP = @WITH_HTTP@ -WITH_ICONV = @WITH_ICONV@ -WITH_ISO8859X = @WITH_ISO8859X@ -WITH_LEGACY = @WITH_LEGACY@ -WITH_MEM_DEBUG = @WITH_MEM_DEBUG@ -WITH_MODULES = @WITH_MODULES@ -WITH_OUTPUT = @WITH_OUTPUT@ -WITH_PATTERN = @WITH_PATTERN@ -WITH_PUSH = @WITH_PUSH@ -WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@ -WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@ -WITH_READER = @WITH_READER@ -WITH_REGEXPS = @WITH_REGEXPS@ -WITH_RUN_DEBUG = @WITH_RUN_DEBUG@ -WITH_SAX1 = @WITH_SAX1@ -WITH_SCHEMAS = @WITH_SCHEMAS@ -WITH_SCHEMATRON = @WITH_SCHEMATRON@ -WITH_THREADS = @WITH_THREADS@ -WITH_TREE = @WITH_TREE@ -WITH_TRIO = @WITH_TRIO@ -WITH_TRIO_SOURCES_FALSE = @WITH_TRIO_SOURCES_FALSE@ -WITH_TRIO_SOURCES_TRUE = @WITH_TRIO_SOURCES_TRUE@ -WITH_VALID = @WITH_VALID@ -WITH_WRITER = @WITH_WRITER@ -WITH_XINCLUDE = @WITH_XINCLUDE@ -WITH_XPATH = @WITH_XPATH@ -WITH_XPTR = @WITH_XPTR@ -XINCLUDE_OBJ = @XINCLUDE_OBJ@ -XMLLINT = @XMLLINT@ -XML_CFLAGS = @XML_CFLAGS@ -XML_INCLUDEDIR = @XML_INCLUDEDIR@ -XML_LIBDIR = @XML_LIBDIR@ -XML_LIBS = @XML_LIBS@ -XML_LIBTOOLLIBS = @XML_LIBTOOLLIBS@ -XPATH_OBJ = @XPATH_OBJ@ -XPTR_OBJ = @XPTR_OBJ@ -XSLTPROC = @XSLTPROC@ -Z_CFLAGS = @Z_CFLAGS@ -Z_LIBS = @Z_LIBS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_AS = @ac_ct_AS@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -SUBDIRS = devhelp examples - -# The top-level SGML file. -DOC_MAIN_XML_FILE = gnome-xml.xml - -# The directory containing the source code (if it contains documentation). -DOC_SOURCE_DIR = .. - -# A file in win32 depends upon one of the doc files -WIN32_DIR = $(top_srcdir)/win32 -PAGES = architecture.html bugs.html contribs.html docs.html DOM.html \ - downloads.html entities.html example.html help.html index.html \ - interface.html intro.html library.html namespaces.html news.html \ - tree.html xmldtd.html XMLinfo.html XSLT.html - -APIPAGES = APIconstructors.html APIfiles.html APIfunctions.html \ - APIsymbols.html APIchunk0.html - -EXTRA_DIST = xmlcatalog_man.xml tutorial/*.html tutorial/*.c tutorial/*.pdf \ - tutorial/images/*.png tutorial/images/callouts/*.png \ - API*.html *.1 *.xsl *.html *.gif w3c.png html/*.html \ - html/*.png libxml2-api.xml index.py search.php \ - apibuild.py libxml2.xsa xmllint.xml xmlcatalog_man.xml \ - README.docs - -man_MANS = xmllint.1 xmlcatalog.1 -all: all-recursive - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: -install-man1: $(man1_MANS) $(man_MANS) - @$(NORMAL_INSTALL) - test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" - @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ - for i in $$l2; do \ - case "$$i" in \ - *.1*) list="$$list $$i" ;; \ - esac; \ - done; \ - for i in $$list; do \ - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ - else file=$$i; fi; \ - ext=`echo $$i | sed -e 's/^.*\\.//'`; \ - case "$$ext" in \ - 1*) ;; \ - *) ext='1' ;; \ - esac; \ - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ - inst=`echo $$inst | sed -e 's/^.*\///'`; \ - inst=`echo $$inst | sed '$(transform)'`.$$ext; \ - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ - done -uninstall-man1: - @$(NORMAL_UNINSTALL) - @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ - for i in $$l2; do \ - case "$$i" in \ - *.1*) list="$$list $$i" ;; \ - esac; \ - done; \ - for i in $$list; do \ - ext=`echo $$i | sed -e 's/^.*\\.//'`; \ - case "$$ext" in \ - 1*) ;; \ - *) ext='1' ;; \ - esac; \ - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ - inst=`echo $$inst | sed -e 's/^.*\///'`; \ - inst=`echo $$inst | sed '$(transform)'`.$$ext; \ - echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ - rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ - done - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -mostlyclean-recursive clean-recursive distclean-recursive \ -maintainer-clean-recursive: - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(mkdir_p) $(distdir)/html $(distdir)/tutorial $(distdir)/tutorial/images $(distdir)/tutorial/images/callouts - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(mkdir_p) "$(distdir)/$$subdir" \ - || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ - distdir) \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-recursive -all-am: Makefile $(MANS) -installdirs: installdirs-recursive -installdirs-am: - for dir in "$(DESTDIR)$(man1dir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-recursive - -clean-am: clean-generic clean-libtool clean-local mostlyclean-am - -distclean: distclean-recursive - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-libtool \ - distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -info: info-recursive - -info-am: - -install-data-am: install-data-local install-man - -install-exec-am: - -install-info: install-info-recursive - -install-man: install-man1 - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic \ - maintainer-clean-local - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-info-am uninstall-man - -uninstall-info: uninstall-info-recursive - -uninstall-man: uninstall-man1 - -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ - clean clean-generic clean-libtool clean-local clean-recursive \ - ctags ctags-recursive distclean distclean-generic \ - distclean-libtool distclean-recursive distclean-tags distdir \ - dvi dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-data-local install-exec \ - install-exec-am install-info install-info-am install-man \ - install-man1 install-strip installcheck installcheck-am \ - installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic maintainer-clean-local \ - maintainer-clean-recursive mostlyclean mostlyclean-generic \ - mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ - tags tags-recursive uninstall uninstall-am uninstall-info-am \ - uninstall-man uninstall-man1 - - -all: web $(top_builddir)/NEWS libxml2.xsa $(man_MANS) - -api: libxml2-api.xml libxml2-refs.xml $(APIPAGES) $(srcdir)/html/index.html $(WIN32_DIR)/libxml2.def.src ../elfgcchack.h - -web: $(PAGES) - -../elfgcchack.h: $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml - -@(if [ -x $(XSLTPROC) ] ; then \ - echo "Rebuilding the elfgcchack.h header" ; \ - $(XSLTPROC) --nonet $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml > elfgcchack.h ; \ - if [ "`diff -q elfgcchack.h ../elfgcchack.h`" ] ; then \ - echo "updating ../elfgcchack.h"; \ - cp elfgcchack.h ../elfgcchack.h; \ - fi ; rm -f elfgcchack.h ; fi ); - -$(PAGES): xml.html site.xsl - -@(if [ -x $(XSLTPROC) ] ; then \ - echo "Rebuilding the HTML Web pages from xml.html" ; \ - $(XSLTPROC) --nonet --html $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/xml.html > index.html ; fi ); - -@(if [ -x $(XMLLINT) ] ; then \ - echo "Validating the HTML Web pages" ; \ - $(XMLLINT) --nonet --valid --noout $(PAGES) ; fi ); - -$(top_builddir)/NEWS: $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html - -@(if [ -x $(XSLTPROC) ] ; then \ - $(XSLTPROC) --nonet $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html > $(top_builddir)/NEWS ; fi ); - -libxml2.xsa: $(top_srcdir)/doc/xsa.xsl $(top_srcdir)/doc/news.html - -@(if [ -x $(XSLTPROC) ] ; then \ - echo "Rebuilding the NEWS file" ; \ - $(XSLTPROC) --nonet $(top_srcdir)/doc/xsa.xsl $(top_srcdir)/doc/news.html > libxml2.xsa ; fi ); - -$(APIPAGES): libxml2-api.xml libxml2-refs.xml $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/api.xsl - -@(if [ -x $(XSLTPROC) ] ; then \ - echo "Rebuilding the HTML API pages from libxml2-refs.xml" ; \ - $(XSLTPROC) --nonet --html $(top_srcdir)/doc/api.xsl \ - $(top_srcdir)/doc/xml.html ; fi ); - -@(if [ -x $(XMLLINT) ] ; then \ - echo "Validating the HTML API pages" ; \ - $(XMLLINT) --nonet --valid --noout API*.html ; fi ); - -$(srcdir)/html/index.html: libxml2-api.xml $(srcdir)/newapi.xsl - -@(if [ -x $(XSLTPROC) ] ; then \ - echo "Rebuilding the HTML pages from the XML API" ; \ - $(XSLTPROC) --nonet $(srcdir)/newapi.xsl libxml2-api.xml ; fi ) - -@(if [ -x $(XMLLINT) ] ; then \ - echo "Validating the resulting XHTML pages" ; \ - $(XMLLINT) --nonet --valid --noout html/*.html ; fi ); - -wiki: libxml2-api.xml $(srcdir)/wiki.xsl - -@(if [ -x $(XSLTPROC) ] ; then \ - echo "Rebuilding the wiki HTML pages from the XML API" ; \ - $(XSLTPROC) --nonet $(srcdir)/wiki.xsl libxml2-api.xml; fi ) - -$(WIN32_DIR)/libxml2.def.src: libxml2-api.xml - -@(if [ -x $(XSLTPROC) ] ; then \ - $(XSLTPROC) -o $(WIN32_DIR)/libxml2.def.src \ - --nonet $(WIN32_DIR)/defgen.xsl libxml2-api.xml ; fi ) - -libxml2-api.xml libxml2-refs.xml: apibuild.py ../include/libxml/*.h ../*.c - -(./apibuild.py) - -@(cd .. ; $(MAKE) rebuild_testapi) - -xmllint.1: xmllint.xml - -@($(XSLTPROC) --nonet xmllint.xml) - -xmlcatalog.1: xmlcatalog_man.xml - -@($(XSLTPROC) --nonet xmlcatalog_man.xml) - -clean-local: - rm -f *~ *.bak *.hierarchy *.signals *-unused.txt - -maintainer-clean-local: clean-local - rm -rf libxml-decl-list.txt libxml-decl.txt - -rebuild: api all - -install-data-local: - $(mkinstalldirs) $(DESTDIR)$(HTML_DIR) - -@INSTALL@ -m 0644 $(srcdir)/xml.html $(srcdir)/encoding.html $(srcdir)/FAQ.html $(srcdir)/structure.gif $(srcdir)/DOM.gif $(srcdir)/smallfootonly.gif $(srcdir)/redhat.gif $(srcdir)/libxml.gif $(srcdir)/w3c.png $(srcdir)/Libxml2-Logo-180x168.gif $(srcdir)/Libxml2-Logo-90x34.gif $(DESTDIR)$(HTML_DIR) - $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/html - -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(HTML_DIR)/html - -@INSTALL@ -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(HTML_DIR)/html - $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/tutorial - -@INSTALL@ -m 0644 $(srcdir)/tutorial/*.* \ - $(DESTDIR)$(HTML_DIR)/tutorial - $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/tutorial/images - -@INSTALL@ -m 0644 $(srcdir)/tutorial/images/*.* \ - $(DESTDIR)$(HTML_DIR)/tutorial/images - $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts - -@INSTALL@ -m 0644 $(srcdir)/tutorial/images/callouts/*.* \ - $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts - -.PHONY : html xml templates scan -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/tools/docbook/libxml2/doc/README.docs b/src/tools/docbook/libxml2/doc/README.docs deleted file mode 100644 index d0b993ce30..0000000000 --- a/src/tools/docbook/libxml2/doc/README.docs +++ /dev/null @@ -1,24 +0,0 @@ - - XML toolkit from the GNOME project - -Full documentation is available on-line at - http://xmlsoft.org/ - -This code is released under the MIT Licence see the Copyright file. - -To report bugs, follow the instructions at: - http://xmlsoft.org/bugs.html - -A mailing-list xml@gnome.org is available, to subscribe: - http://mail.gnome.org/mailman/listinfo/xml - -The list archive is at: - http://mail.gnome.org/archives/xml/ - -All technical answers asked privately will be automatically answered on -the list and archived for public access unless pricacy is explicitely -required and justified. - -Daniel Veillard - -$Id: README.docs,v 1.1 2003/09/01 04:58:15 wbrack Exp $ diff --git a/src/tools/docbook/libxml2/doc/XMLinfo.html b/src/tools/docbook/libxml2/doc/XMLinfo.html deleted file mode 100644 index 5314fac0f0..0000000000 --- a/src/tools/docbook/libxml2/doc/XMLinfo.html +++ /dev/null @@ -1,36 +0,0 @@ - - -XML
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    XML

    Main Menu
    Related links

    XML is astandardformarkup-based -structured documents. Here is an example -XMLdocument:

    <?xml version="1.0"?>
    -<EXAMPLE prop1="gnome is great" prop2="&amp; linux too">
    -  <head>
    -   <title>Welcome to Gnome</title>
    -  </head>
    -  <chapter>
    -   <title>The Linux adventure</title>
    -   <p>bla bla bla ...</p>
    -   <image href="linus.gif"/>
    -   <p>...</p>
    -  </chapter>
    -</EXAMPLE>

    The first line specifies that it is an XML document and -givesusefulinformation about its encoding. Then the rest of the document is -atextformat whose structure is specified by tags between -brackets.Eachtag opened has to be closed. XML is pedantic -about this.However, ifa tag is empty (no content), a single tag can serve as -both theopening andclosing tag if it ends with />rather -thanwith>. Note that, for example, the image tag has no -content(justan attribute) and is closed by ending the tag -with/>.

    XML can be applied successfully to a wide range of tasks, ranging -fromlongterm structured document maintenance (where it follows the steps -ofSGML) tosimple data encoding mechanisms like configuration file -formatting(glade),spreadsheets (gnumeric), or even shorter lived documents -such asWebDAV whereit is used to encode remote calls between a client and -aserver.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/XSLT.html b/src/tools/docbook/libxml2/doc/XSLT.html deleted file mode 100644 index 4a8c09b210..0000000000 --- a/src/tools/docbook/libxml2/doc/XSLT.html +++ /dev/null @@ -1,14 +0,0 @@ - - -XSLT
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    XSLT

    Main Menu
    Related links

    Check the separate libxslt page

    XSL Transformations, is -alanguagefor transforming XML documents into other XML documents -(orHTML/textualoutput).

    A separate library called libxslt is available implementing -XSLT-1.0forlibxml2. This module "libxslt" too can be found in the Gnome CVS -base.

    You can check the progresses on the libxslt Changelog.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/api.xsl b/src/tools/docbook/libxml2/doc/api.xsl deleted file mode 100644 index 47fbb84f15..0000000000 --- a/src/tools/docbook/libxml2/doc/api.xsl +++ /dev/null @@ -1,394 +0,0 @@ - - - - - - - - - - - - - - - - - - -
    -
    -
    - -

    Type :

    -

    - - - - - -

    -
    - -

    Letter :

    -

    - - - - - -

    -
    - -

    Module :

    -

    - - - - - -

    -
    - -

    Letter :

    -
    - -
    -
    - - - - - -
    -
    -
    -
    - - - Generating API Constructors - List of constructors for - - - - - - - - - - - - - - - - -
    - - - - - -
    - - - - - - -
    - - - - -
    - - - - -
    - -

    Daniel Veillard

    -
    -
    -
    -
    -
    - - -
    -
    - - Generating API List of synbols per file - List of Symbols per Module for - - - - - - - - - - - - - - - - -
    - - - - - -
    - - - - - - -
    - - - - -
    - - - - -
    - -

    Daniel Veillard

    -
    -
    -
    -
    -
    - - -
    -
    - - Generating API Functions by Type - List of function manipulating types in - - - - - - - - - - - - - - - - -
    - - - - - -
    - - - - - - -
    - - - - -
    - - - - -
    - -

    Daniel Veillard

    -
    -
    -
    -
    -
    - - -
    -
    - - Generating API Alphabetic list - Alphabetic List of Symbols in - - - - - - - - - - - - - - - - -
    - - - - - -
    - - - - - - -
    - - - - -
    - - - - -
    - -

    Daniel Veillard

    -
    -
    -
    -
    -
    - - -
    -
    - -

    - - - - - - - - - -

    -
    - - - - - - - API Alphabetic Index for - - - - - - - - - - - - - - - - -
    - - - - - -
    - - - - - - -
    - - - - -
    - - - - -
    - - - -

    Daniel Veillard

    -
    -
    -
    -
    -
    - - -
    -
    - - - Generating API Index - - - - - Generating API Cross References - - - - - - - - - - - -
    diff --git a/src/tools/docbook/libxml2/doc/apibuild.py b/src/tools/docbook/libxml2/doc/apibuild.py deleted file mode 100755 index f1a795fd10..0000000000 --- a/src/tools/docbook/libxml2/doc/apibuild.py +++ /dev/null @@ -1,2133 +0,0 @@ -#!/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 os, sys -import string -import glob - -debug=0 -#debugsym='ignorableWhitespaceSAXFunc' -debugsym=None - -# -# 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", - "testOOM.c": "out of memory tester", - "testOOMlib.h": "out of memory tester", - "testOOMlib.c": "out of memory tester", - "rngparser.c": "not yet integrated", - "rngparser.h": "not yet integrated", - "elfgcchack.h": "not a normal header", - "testHTML.c": "test tool", - "testReader.c": "test tool", - "testSchemas.c": "test tool", - "testXPath.c": "test tool", - "testAutomata.c": "test tool", - "testModule.c": "test tool", - "testRegexp.c": "test tool", - "testThreads.c": "test tool", - "testC14N.c": "test tool", - "testRelax.c": "test tool", - "testThreadsWin32.c": "test tool", - "testSAX.c": "test tool", - "testURI.c": "test tool", - "testapi.c": "generated regression tests", - "runtest.c": "regression tests program", - "runsuite.c": "regression tests program", - "tst.c": "not part of the library", - "testdso.c": "test for dynamid shared libraries", -} - -ignored_words = { - "WINAPI": (0, "Windows keyword"), - "LIBXML_DLL_IMPORT": (0, "Special macro to flag external keywords"), - "XMLPUBVAR": (0, "Special macro for extern vars for win32"), - "XSLTPUBVAR": (0, "Special macro for extern vars for win32"), - "EXSLTPUBVAR": (0, "Special macro for extern vars for win32"), - "XMLPUBFUN": (0, "Special macro for extern funcs for win32"), - "XSLTPUBFUN": (0, "Special macro for extern funcs for win32"), - "EXSLTPUBFUN": (0, "Special macro for extern funcs for win32"), - "XMLCALL": (0, "Special macro for win32 calls"), - "XSLTCALL": (0, "Special macro for win32 calls"), - "XMLCDECL": (0, "Special macro for win32 calls"), - "EXSLTCALL": (0, "Special macro for win32 calls"), - "__declspec": (3, "Windows keyword"), - "__stdcall": (0, "Windows keyword"), - "ATTRIBUTE_UNUSED": (0, "macro keyword"), - "LIBEXSLT_PUBLIC": (0, "macro keyword"), - "X_IN_Y": (5, "macro function builder"), -} - -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 - -def uniq(items): - d = {} - for item in items: - d[item]=1 - return d.keys() - -class identifier: - def __init__(self, name, header=None, module=None, type=None, lineno = 0, - info=None, extra=None, conditionals = None): - self.name = name - self.header = header - self.module = module - self.type = type - self.info = info - self.extra = extra - self.lineno = lineno - self.static = 0 - if conditionals == None or len(conditionals) == 0: - self.conditionals = None - else: - self.conditionals = conditionals[:] - if self.name == debugsym: - print "=> define %s : %s" % (debugsym, (module, type, info, - extra, conditionals)) - - 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` - if self.conditionals != None: - r = r + " " + `self.conditionals` - return r - - - def set_header(self, header): - self.header = header - 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_lineno(self, lineno): - self.lineno = lineno - def set_static(self, static): - self.static = static - def set_conditionals(self, conditionals): - if conditionals == None or len(conditionals) == 0: - self.conditionals = None - else: - self.conditionals = conditionals[:] - - def get_name(self): - return self.name - def get_header(self): - return self.module - def get_module(self): - return self.module - def get_type(self): - return self.type - def get_info(self): - return self.info - def get_lineno(self): - return self.lineno - def get_extra(self): - return self.extra - def get_static(self): - return self.static - def get_conditionals(self): - return self.conditionals - - def update(self, header, module, type = None, info = None, extra=None, - conditionals=None): - if self.name == debugsym: - print "=> update %s : %s" % (debugsym, (module, type, info, - extra, conditionals)) - if header != None and self.header == None: - self.set_header(module) - if module != None and (self.module == None or self.header == self.module): - 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) - if conditionals != None: - self.set_conditionals(conditionals) - -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 = {} - self.info = {} - - def add_ref(self, name, header, module, static, type, lineno, info=None, extra=None, conditionals = None): - if name[0:2] == '__': - return None - d = None - try: - d = self.identifiers[name] - d.update(header, module, type, lineno, info, extra, conditionals) - except: - d = identifier(name, header, module, type, lineno, info, extra, conditionals) - self.identifiers[name] = d - - if d != None and static == 1: - d.set_static(1) - - if d != None and name != None and type != None: - self.references[name] = d - - if name == debugsym: - print "New ref: %s" % (d) - - return d - - def add(self, name, header, module, static, type, lineno, info=None, extra=None, conditionals = None): - if name[0:2] == '__': - return None - d = None - try: - d = self.identifiers[name] - d.update(header, module, type, lineno, info, extra, conditionals) - except: - d = identifier(name, header, module, type, lineno, info, extra, conditionals) - 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 - - if name == debugsym: - print "New symbol: %s" % (d) - - 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].header, idx.functions[id].header) - 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].header, idx.variables[id].header) - 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].header, idx.structs[id].header) - 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].header, idx.typedefs[id].header) - 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].header, idx.macros[id].header) - 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].header, idx.enums[id].header) - 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): - # check that function condition agrees with header - if idx.functions[id].conditionals != \ - self.functions[id].conditionals: - print "Header condition differs from Function for %s:" \ - % id - print " H: %s" % self.functions[id].conditionals - print " C: %s" % idx.functions[id].conditionals - up = idx.functions[id] - self.functions[id].update(None, up.module, 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 - 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) - -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 - self.collect_ref = 0 - self.no_error = 0 - self.conditionals = [] - self.defines = [] - - def collect_references(self): - self.collect_ref = 1 - - def stop_error(self): - self.no_error = 1 - - def start_error(self): - self.no_error = 0 - - def lineno(self): - return self.lexer.getlineno() - - def index_add(self, name, module, static, type, info=None, extra = None): - if self.is_header == 1: - self.index.add(name, module, module, static, type, self.lineno(), - info, extra, self.conditionals) - else: - self.index.add(name, None, module, static, type, self.lineno(), - info, extra, self.conditionals) - - def index_add_ref(self, name, module, static, type, info=None, - extra = None): - if self.is_header == 1: - self.index.add_ref(name, module, module, static, type, - self.lineno(), info, extra, self.conditionals) - else: - self.index.add_ref(name, None, module, static, type, self.lineno(), - info, extra, self.conditionals) - - def warning(self, msg): - if self.no_error: - return - print msg - - def error(self, msg, token=-1): - if self.no_error: - return - - 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 parseTopComment(self, comment): - res = {} - lines = string.split(comment, "\n") - item = None - for line in lines: - while line != "" and (line[0] == ' ' or line[0] == '\t'): - line = line[1:] - while line != "" and line[0] == '*': - line = line[1:] - while line != "" and (line[0] == ' ' or line[0] == '\t'): - line = line[1:] - try: - (it, line) = string.split(line, ":", 1) - item = it - while line != "" and (line[0] == ' ' or line[0] == '\t'): - line = line[1:] - if res.has_key(item): - res[item] = res[item] + " " + line - else: - res[item] = line - except: - if item != None: - if res.has_key(item): - res[item] = res[item] + " " + line - else: - res[item] = line - self.index.info = res - - 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() - - if string.find(self.comment, "DOC_DISABLE") != -1: - self.stop_error() - - if string.find(self.comment, "DOC_ENABLE") != -1: - self.start_error() - - return token - - # - # Parse a comment block associate to a typedef - # - def parseTypeComment(self, name, quiet = 0): - if name[0:2] == '__': - quiet = 1 - - args = [] - desc = "" - - if self.comment == None: - if not quiet: - self.warning("Missing comment for type %s" % (name)) - return((args, desc)) - if self.comment[0] != '*': - if not quiet: - self.warning("Missing * in type 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: - self.warning("Misformatted type comment for %s" % (name)) - self.warning(" Expecting '* %s:' got '%s'" % (name, lines[0])) - return((args, desc)) - del lines[0] - 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 == "": - self.warning("Type comment for %s lack description of the macro" % (name)) - - return(desc) - # - # 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: - self.warning("Missing comment for macro %s" % (name)) - return((args, desc)) - if self.comment[0] != '*': - if not quiet: - self.warning("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: - self.warning("Misformatted macro comment for %s" % (name)) - self.warning(" 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: - self.warning("Misformatted macro comment for %s" % (name)) - self.warning(" 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 == "": - self.warning("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: - self.warning("Missing comment for function %s" % (name)) - return(((ret[0], retdesc), args, desc)) - if self.comment[0] != '*': - if not quiet: - self.warning("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: - self.warning("Misformatted function comment for %s" % (name)) - self.warning(" 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: - self.warning("Misformatted function comment for %s" % (name)) - self.warning(" 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: - self.warning("Unable 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: - self.warning("Function comment for %s lacks description of arg %s" % (name, args[i][1])) - i = i + 1 - if retdesc == "" and ret[0] != "void": - self.warning("Function comment for %s lacks description of return value" % (name)) - if desc == "": - self.warning("Function comment for %s lacks description of the function" % (name)) - - - return(((ret[0], retdesc), args, desc)) - - def parsePreproc(self, token): - if debug: - print "=> preproc ", token, self.lexer.tokens - 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 - - # - # Processing of conditionals modified by Bill 1/1/05 - # - # We process conditionals (i.e. tokens from #ifdef, #ifndef, - # #if, #else and #endif) for headers and mainline code, - # store the ones from the header in libxml2-api.xml, and later - # (in the routine merge_public) verify that the two (header and - # mainline code) agree. - # - # There is a small problem with processing the headers. Some of - # the variables are not concerned with enabling / disabling of - # library functions (e.g. '__XML_PARSER_H__'), and we don't want - # them to be included in libxml2-api.xml, or involved in - # the check between the header and the mainline code. To - # accomplish this, we ignore any conditional which doesn't include - # the string 'ENABLED' - # - if name == "#ifdef": - apstr = self.lexer.tokens[0][1] - try: - self.defines.append(apstr) - if string.find(apstr, 'ENABLED') != -1: - self.conditionals.append("defined(%s)" % apstr) - except: - pass - elif name == "#ifndef": - apstr = self.lexer.tokens[0][1] - try: - self.defines.append(apstr) - if string.find(apstr, 'ENABLED') != -1: - self.conditionals.append("!defined(%s)" % apstr) - except: - pass - elif name == "#if": - apstr = "" - for tok in self.lexer.tokens: - if apstr != "": - apstr = apstr + " " - apstr = apstr + tok[1] - try: - self.defines.append(apstr) - if string.find(apstr, 'ENABLED') != -1: - self.conditionals.append(apstr) - except: - pass - elif name == "#else": - if self.conditionals != [] and \ - string.find(self.defines[-1], 'ENABLED') != -1: - self.conditionals[-1] = "!(%s)" % self.conditionals[-1] - elif name == "#endif": - if self.conditionals != [] and \ - string.find(self.defines[-1], 'ENABLED') != -1: - self.conditionals = self.conditionals[:-1] - self.defines = self.defines[:-1] - 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 token[1] == "__const": - token = ("name", "const") - return token - elif token[0] == "name" and token[1] == "__attribute": - token = self.lexer.token() - while token != None and token[1] != ";": - token = self.lexer.token() - return token - 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: - if debug: - 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: - type = string.split(type, '(')[0] - 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: - # TODO report missing or misformatted comments - info = self.parseTypeComment(name, 1) - self.index_add(name, self.filename, not self.is_header, - "typedef", type, info) - 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: - if self.collect_ref == 1: - oldtok = token - token = self.token() - if oldtok[0] == "name" and oldtok[1][0:3] == "xml": - if token[0] == "sep" and token[1] == "(": - self.index_add_ref(oldtok[1], self.filename, - 0, "function") - token = self.token() - elif token[0] == "name": - token = self.token() - if token[0] == "sep" and (token[1] == ";" or - token[1] == "," or token[1] == "="): - self.index_add_ref(oldtok[1], self.filename, - 0, "type") - elif oldtok[0] == "name" and oldtok[1][0:4] == "XML_": - self.index_add_ref(oldtok[1], self.filename, - 0, "typedef") - elif oldtok[0] == "name" and oldtok[1][0:7] == "LIBXML_": - self.index_add_ref(oldtok[1], self.filename, - 0, "typedef") - - 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 = "0" - 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 = "" - token = self.token() - if token[0] == "op" and token[1][0] == "=": - value = "" - 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() - else: - try: - value = "%d" % (int(value) + 1) - except: - self.warning("Failed to compute value of enum %s" % (name)) - value="" - 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" or \ - token[1] == "signed"): - 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() - elif 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): - self.warning("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 - self.parseTopComment(self.top_comment) - 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() - self.xref = {} - self.index = {} - if name == 'libxml2': - self.basename = 'libxml' - else: - self.basename = name - - def indexString(self, id, str): - if str == None: - return - str = string.replace(str, "'", ' ') - str = string.replace(str, '"', ' ') - str = string.replace(str, "/", ' ') - str = string.replace(str, '*', ' ') - str = string.replace(str, "[", ' ') - str = string.replace(str, "]", ' ') - str = string.replace(str, "(", ' ') - str = string.replace(str, ")", ' ') - str = string.replace(str, "<", ' ') - str = string.replace(str, '>', ' ') - str = string.replace(str, "&", ' ') - str = string.replace(str, '#', ' ') - str = string.replace(str, ",", ' ') - str = string.replace(str, '.', ' ') - str = string.replace(str, ';', ' ') - tokens = string.split(str) - for token in tokens: - try: - c = token[0] - if string.find(string.letters, c) < 0: - pass - elif len(token) < 3: - pass - else: - lower = string.lower(token) - # TODO: generalize this a bit - if lower == 'and' or lower == 'the': - pass - elif self.xref.has_key(token): - self.xref[token].append(id) - else: - self.xref[token] = [id] - except: - pass - - 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 = os.path.basename(file) - if module[-2:] == '.h': - module = module[:-2] - elif module[-2:] == '.c': - module = module[:-2] - return module - - def serialize_enum(self, output, name): - id = self.idx.enums[name] - output.write(" \n") - - def serialize_macro(self, output, name): - id = self.idx.macros[name] - output.write(" \n" % (name, - self.modulename_file(id.header))) - if id.info != None: - try: - (args, desc) = id.info - if desc != None and desc != "": - output.write(" %s\n" % (escape(desc))) - self.indexString(name, desc) - for arg in args: - (name, desc) = arg - if desc != None and desc != "": - output.write(" \n" % ( - name, escape(desc))) - self.indexString(name, desc) - else: - output.write(" \n" % (name)) - except: - pass - output.write(" \n") - - def serialize_typedef(self, output, name): - id = self.idx.typedefs[name] - if id.info[0:7] == 'struct ': - output.write(" \n"); - try: - for field in self.idx.structs[name].info: - desc = field[2] - self.indexString(name, desc) - if desc == None: - desc = '' - else: - desc = escape(desc) - output.write(" \n" % (field[1] , field[0], desc)) - except: - print "Failed to serialize struct %s" % (name) - output.write(" \n") - else: - output.write("/>\n"); - else : - output.write(" \n %s\n" % (escape(desc))) - output.write(" \n") - else: - output.write("/>\n") - except: - output.write("/>\n") - - def serialize_variable(self, output, name): - id = self.idx.variables[name] - if id.info != None: - output.write(" \n" % ( - name, self.modulename_file(id.header), id.info)) - else: - output.write(" \n" % ( - name, self.modulename_file(id.header))) - - def serialize_function(self, output, name): - id = self.idx.functions[name] - if name == debugsym: - print "=>", id - - output.write(" <%s name='%s' file='%s' module='%s'>\n" % (id.type, - name, self.modulename_file(id.header), - self.modulename_file(id.module))) - # - # Processing of conditionals modified by Bill 1/1/05 - # - if id.conditionals != None: - apstr = "" - for cond in id.conditionals: - if apstr != "": - apstr = apstr + " && " - apstr = apstr + cond - output.write(" %s\n"% (apstr)); - try: - (ret, params, desc) = id.info - output.write(" %s\n" % (escape(desc))) - self.indexString(name, desc) - if ret[0] != None: - if ret[0] == "void": - output.write(" \n") - else: - output.write(" \n" % ( - ret[0], escape(ret[1]))) - self.indexString(name, ret[1]) - for param in params: - if param[0] == 'void': - continue - if param[2] == None: - output.write(" \n" % (param[1], param[0])) - else: - output.write(" \n" % (param[1], param[0], escape(param[2]))) - self.indexString(name, param[2]) - except: - print "Failed to save function %s info: " % name, `id.info` - output.write(" \n" % (id.type)) - - def serialize_exports(self, output, file): - module = self.modulename_file(file) - output.write(" \n" % (module)) - dict = self.headers[file] - if dict.info != None: - for data in ('Summary', 'Description', 'Author'): - try: - output.write(" <%s>%s\n" % ( - string.lower(data), - escape(dict.info[data]), - string.lower(data))) - except: - print "Header %s lacks a %s description" % (module, data) - if dict.info.has_key('Description'): - desc = dict.info['Description'] - if string.find(desc, "DEPRECATED") != -1: - output.write(" \n") - - ids = dict.macros.keys() - ids.sort() - for id in uniq(ids): - # Macros are sometime used to masquerade other types. - if dict.functions.has_key(id): - continue - if dict.variables.has_key(id): - continue - if dict.typedefs.has_key(id): - continue - if dict.structs.has_key(id): - continue - if dict.enums.has_key(id): - continue - output.write(" \n" % (id)) - ids = dict.enums.keys() - ids.sort() - for id in uniq(ids): - output.write(" \n" % (id)) - ids = dict.typedefs.keys() - ids.sort() - for id in uniq(ids): - output.write(" \n" % (id)) - ids = dict.structs.keys() - ids.sort() - for id in uniq(ids): - output.write(" \n" % (id)) - ids = dict.variables.keys() - ids.sort() - for id in uniq(ids): - output.write(" \n" % (id)) - ids = dict.functions.keys() - ids.sort() - for id in uniq(ids): - output.write(" \n" % (id)) - output.write(" \n") - - def serialize_xrefs_files(self, output): - headers = self.headers.keys() - headers.sort() - for file in headers: - module = self.modulename_file(file) - output.write(" \n" % (module)) - dict = self.headers[file] - ids = uniq(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(" \n" % (id)) - output.write(" \n") - pass - - def serialize_xrefs_functions(self, output): - funcs = {} - for name in self.idx.functions.keys(): - id = self.idx.functions[name] - try: - (ret, params, desc) = id.info - for param in params: - if param[0] == 'void': - continue - if funcs.has_key(param[0]): - funcs[param[0]].append(name) - else: - funcs[param[0]] = [name] - except: - pass - typ = funcs.keys() - typ.sort() - for type in typ: - if type == '' or type == 'void' or type == "int" or \ - type == "char *" or type == "const char *" : - continue - output.write(" \n" % (type)) - ids = funcs[type] - ids.sort() - pid = '' # not sure why we have dups, but get rid of them! - for id in ids: - if id != pid: - output.write(" \n" % (id)) - pid = id - output.write(" \n") - - def serialize_xrefs_constructors(self, output): - funcs = {} - for name in self.idx.functions.keys(): - id = self.idx.functions[name] - try: - (ret, params, desc) = id.info - if ret[0] == "void": - continue - if funcs.has_key(ret[0]): - funcs[ret[0]].append(name) - else: - funcs[ret[0]] = [name] - except: - pass - typ = funcs.keys() - typ.sort() - for type in typ: - if type == '' or type == 'void' or type == "int" or \ - type == "char *" or type == "const char *" : - continue - output.write(" \n" % (type)) - ids = funcs[type] - ids.sort() - for id in ids: - output.write(" \n" % (id)) - output.write(" \n") - - def serialize_xrefs_alpha(self, output): - letter = None - ids = self.idx.identifiers.keys() - ids.sort() - for id in ids: - if id[0] != letter: - if letter != None: - output.write(" \n") - letter = id[0] - output.write(" \n" % (letter)) - output.write(" \n" % (id)) - if letter != None: - output.write(" \n") - - def serialize_xrefs_references(self, output): - typ = self.idx.identifiers.keys() - typ.sort() - for id in typ: - idf = self.idx.identifiers[id] - module = idf.header - output.write(" \n" % (id, - 'html/' + self.basename + '-' + - self.modulename_file(module) + '.html#' + - id)) - - def serialize_xrefs_index(self, output): - index = self.xref - typ = index.keys() - typ.sort() - letter = None - count = 0 - chunk = 0 - chunks = [] - for id in typ: - if len(index[id]) > 30: - continue - if id[0] != letter: - if letter == None or count > 200: - if letter != None: - output.write(" \n") - output.write(" \n") - count = 0 - chunks.append(["chunk%s" % (chunk -1), first_letter, letter]) - output.write(" \n" % (chunk)) - first_letter = id[0] - chunk = chunk + 1 - elif letter != None: - output.write(" \n") - letter = id[0] - output.write(" \n" % (letter)) - output.write(" \n" % (id)) - tokens = index[id]; - tokens.sort() - tok = None - for token in tokens: - if tok == token: - continue - tok = token - output.write(" \n" % (token)) - count = count + 1 - output.write(" \n") - if letter != None: - output.write(" \n") - output.write(" \n") - if count != 0: - chunks.append(["chunk%s" % (chunk -1), first_letter, letter]) - output.write(" \n") - for ch in chunks: - output.write(" \n" % ( - ch[0], ch[1], ch[2])) - output.write(" \n") - - def serialize_xrefs(self, output): - output.write(" \n") - self.serialize_xrefs_references(output) - output.write(" \n") - output.write(" \n") - self.serialize_xrefs_alpha(output) - output.write(" \n") - output.write(" \n") - self.serialize_xrefs_constructors(output) - output.write(" \n") - output.write(" \n") - self.serialize_xrefs_functions(output) - output.write(" \n") - output.write(" \n") - self.serialize_xrefs_files(output) - output.write(" \n") - output.write(" \n") - self.serialize_xrefs_index(output) - output.write(" \n") - - def serialize(self): - filename = "%s-api.xml" % self.name - print "Saving XML description %s" % (filename) - output = open(filename, "w") - output.write('\n') - output.write("\n" % self.name) - output.write(" \n") - headers = self.headers.keys() - headers.sort() - for file in headers: - self.serialize_exports(output, file) - output.write(" \n") - output.write(" \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) - 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: - self.serialize_function(output, function) - output.write(" \n") - output.write("\n") - output.close() - - filename = "%s-refs.xml" % self.name - print "Saving XML Cross References %s" % (filename) - output = open(filename, "w") - output.write('\n') - output.write("\n" % self.name) - self.serialize_xrefs(output) - output.write("\n") - output.close() - - -def rebuild(): - builder = None - if glob.glob("parser.c") != [] : - print "Rebuilding API description for libxml2" - builder = docBuilder("libxml2", [".", "."], - ["xmlwin32version.h", "tst.c"]) - elif 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() - if glob.glob("../libexslt/exslt.c") != [] : - extra = docBuilder("libexslt", ["../libexslt"], ["libexslt.h"]) - extra.scan() - extra.analyze() - extra.serialize() - return builder - -# -# for debugging the parser -# -def parse(filename): - parser = CParser(filename) - idx = parser.parse() - return idx - -if __name__ == "__main__": - if len(sys.argv) > 1: - debug = 1 - parse(sys.argv[1]) - else: - rebuild() diff --git a/src/tools/docbook/libxml2/doc/architecture.html b/src/tools/docbook/libxml2/doc/architecture.html deleted file mode 100644 index 7809bc648b..0000000000 --- a/src/tools/docbook/libxml2/doc/architecture.html +++ /dev/null @@ -1,22 +0,0 @@ - - -libxml2 architecture
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    libxml2 architecture

    Developer Menu
    API Indexes
    Related links

    Libxml2 is made of multiple components; some of them are optional, -andmostof the block interfaces are public. The main components are:

    • an Input/Output layer
    • -
    • FTP and HTTP client layers (optional)
    • -
    • an Internationalization layer managing the encodings support
    • -
    • a URI module
    • -
    • the XML parser and its basic SAX interface
    • -
    • an HTML parser using the same SAX interface (optional)
    • -
    • a SAX tree module to build an in-memory DOM representation
    • -
    • a tree module to manipulate the DOM representation
    • -
    • a validation module using the DOM representation (optional)
    • -
    • an XPath module for global lookup in a DOM representation(optional)
    • -
    • a debug module (optional)
    • -

    Graphically this gives the following:

    a graphical view of the various

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/bugs.html b/src/tools/docbook/libxml2/doc/bugs.html deleted file mode 100644 index c755d00fa4..0000000000 --- a/src/tools/docbook/libxml2/doc/bugs.html +++ /dev/null @@ -1,68 +0,0 @@ - - -Reporting bugs and getting help
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    Reporting bugs and getting help

    Main Menu
    Related links

    Well, bugs or missing features are always possible, and I will make -apointof fixing them in a timely fashion. The best way to report a bug is -touse theGnomebugtracking -database(make sure to use the "libxml2" module name). Ilook atreports -there regularly and it's good to have a reminder when a bugis stillopen. Be -sure to specify that the bug is for the package libxml2.

    For small problems you can try to get help on IRC, the #xml -channelonirc.gnome.org (port 6667) usually have a few person subscribed which -mayhelp(but there is no garantee and if a real issue is raised it should go -onthemailing-list for archival).

    There is also a mailing-list xml@gnome.orgfor libxml, with an on-line archive(old). To subscribe to this -list,pleasevisit the associatedWebpage -andfollow the instructions. Do not send code, I won'tdebug -it(but patches are really appreciated!).

    Please note that with the current amount of virus and SPAM, sending -mailtothe list without being subscribed won't work. There is *far too -manybounces*(in the order of a thousand a day !) I cannot approve them -manuallyanymore.If your mail to the list bounced waiting for administrator -approval,it isLOST ! Repost it and fix the problem triggering the error. Also -pleasenotethat emails -withalegal warning asking to not copy or redistribute freely the -informationstheycontainare NOTacceptable for the -mailing-list,suchmail will as much as possible be discarded automatically, -and are lesslikelyto be answered if they made it to the list, DO -NOTpost tothe list from an email address where such legal -requirements areautomaticallyadded, get private paying support if you can't -shareinformations.

    Check the following beforeposting:

    • Read the FAQand usethesearch engineto get information related to - your problem.
    • -
    • Make sure you are using - arecentversion, and that the problem still shows up in a - recentversion.
    • -
    • Check the listarchivesto see if - theproblem was reported already. In this casethere is probably a - fixavailable, similarly check the registeredopenbugs.
    • -
    • Make sure you can reproduce the bug with xmllint or one of - thetestprograms found in source in the distribution.
    • -
    • Please send the command showing the error as well as the input - (asanattachment)
    • -

    Then send the bug with associated information to reproduce it to the xml@gnome.orglist; if it's -reallylibxmlrelated I will approve it. Please do not send mail to me -directly, itmakesthings really hard to track and in some cases I am not the -best persontoanswer a given question, ask on the list.

    To be really clear about support:

    • Support or help requests MUST be senttothe - list or on bugzillain case of problems, so that theQuestionand - Answers can be shared publicly. Failing to do so carries - theimplicitmessage "I want free support but I don't want to share - thebenefits withothers" and is not welcome. I will automatically - Carbon-Copythexml@gnome.org mailing list for any technical reply made - about libxml2orlibxslt.
    • -
    • There is no garantee of - support,ifyour question remains unanswered after a week, repost - it, making sureyougave all the detail needed and the information - requested.
    • -
    • Failing to provide information as requested or double checking - firstforprior feedback also carries the implicit message "the time of - thelibrarymaintainers is less valuable than my time" and might not - bewelcome.
    • -

    Of course, bugs reported with a suggested patch for fixing -themwillprobably be processed faster than those without.

    If you're looking for help, a quick look at the list -archivemayactuallyprovide the answer. I usually send source samples when -answeringlibxml2usage questions. The auto-generateddocumentationisnot -as polished as I would like (i need to learn moreabout DocBook), butit's a -good starting point.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/catalog.gif b/src/tools/docbook/libxml2/doc/catalog.gif deleted file mode 100644 index f2e2bd3493..0000000000 Binary files a/src/tools/docbook/libxml2/doc/catalog.gif and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/catalog.html b/src/tools/docbook/libxml2/doc/catalog.html deleted file mode 100644 index 34f9902412..0000000000 --- a/src/tools/docbook/libxml2/doc/catalog.html +++ /dev/null @@ -1,254 +0,0 @@ - - -Catalog support
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    Catalog support

    Main Menu
    Related links

    Table of Content:

    1. General overview
    2. -
    3. The definition
    4. -
    5. Using catalogs
    6. -
    7. Some examples
    8. -
    9. How to tune catalog usage
    10. -
    11. How to debug catalog processing
    12. -
    13. How to create and maintain catalogs
    14. -
    15. The implementor corner quick review - oftheAPI
    16. -
    17. Other resources
    18. -

    General overview

    What is a catalog? Basically it's a lookup mechanism used when an -entity(afile or a remote resource) references another entity. The catalog -lookupisinserted between the moment the reference is recognized by the -software(XMLparser, stylesheet processing, or even images referenced for -inclusionin arendering) and the time where loading that resource is -actuallystarted.

    It is basically used for 3 things:

    • mapping from "logical" names, the public identifiers and a - moreconcretename usable for download (and URI). For example it can - associatethelogical name -

      "-//OASIS//DTD DocBook XML V4.1.2//EN"

      -

      of the DocBook 4.1.2 XML DTD with the actual URL where it - canbedownloaded

      -

      http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd

      -
    • -
    • remapping from a given URL to another one, like an - HTTPindirectionsaying that -

      "http://www.oasis-open.org/committes/tr.xsl"

      -

      should really be looked at

      -

      "http://www.oasis-open.org/committes/entity/stylesheets/base/tr.xsl"

      -
    • -
    • providing a local cache mechanism allowing to load - theentitiesassociated to public identifiers or remote resources, this is - areallyimportant feature for any significant deployment of XML or - SGMLsince itallows to avoid the aleas and delays associated to - fetchingremoteresources.
    • -

    The definitions

    Libxml, as of 2.4.3 implements 2 kind of catalogs:

    • the older SGML catalogs, the official spec is SGML - OpenTechnicalResolution TR9401:1997, but is better understood by reading - the SP - CatalogpagefromJames Clark. This is relatively old and not the - preferredmode ofoperation of libxml.
    • -
    • XMLCatalogsisfar - more flexible, more recent, uses an XML syntax andshould scale - quitebetter. This is the default option of libxml.
    • -

    Using catalog

    In a normal environment libxml2 will by default check the presence -ofacatalog in /etc/xml/catalog, and assuming it has been -correctlypopulated,the processing is completely transparent to the document -user. Totake aconcrete example, suppose you are authoring a DocBook document, -thisonestarts with the following DOCTYPE definition:

    <?xml version='1.0'?>
    -<!DOCTYPE book PUBLIC "-//Norman Walsh//DTD DocBk XML V3.1.4//EN"
    -          "http://nwalsh.com/docbook/xml/3.1.4/db3xml.dtd">

    When validating the document with libxml, the catalog will -beautomaticallyconsulted to lookup the public identifier "-//Norman -Walsh//DTDDocBk XMLV3.1.4//EN" and the -systemidentifier"http://nwalsh.com/docbook/xml/3.1.4/db3xml.dtd", and if -theseentities havebeen installed on your system and the catalogs actually -point tothem, libxmlwill fetch them from the local disk.

    Note: Really don't usethisDOCTYPE -example it's a really old version, but is fine as an example.

    Libxml2 will check the catalog each time that it is requested to -loadanentity, this includes DTD, external parsed entities, stylesheets, etc -...Ifyour system is correctly configured all the authoring phase -andprocessingshould use only local files, even if your document stays -portablebecause ituses the canonical public and system ID, referencing the -remotedocument.

    Some examples:

    Here is a couple of fragments from XML Catalogs used in -libxml2earlyregression tests in test/catalogs:

    <?xml version="1.0"?>
    -<!DOCTYPE catalog PUBLIC 
    -   "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
    -   "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
    -<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
    -  <public publicId="-//OASIS//DTD DocBook XML V4.1.2//EN"
    -   uri="http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"/>
    -...

    This is the beginning of a catalog for DocBook 4.1.2, XML -Catalogsarewritten in XML, there is a specific namespace for -catalogelements"urn:oasis:names:tc:entity:xmlns:xml:catalog". The first entry -inthiscatalog is a publicmapping it allows to associate -aPublicIdentifier with an URI.

    ...
    -    <rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/"
    -                   rewritePrefix="file:///usr/share/xml/docbook/"/>
    -...

    A rewriteSystemis a very powerful instruction, it saysthatany -URI starting with a given prefix should be looked at anotherURIconstructed by -replacing the prefix with an new one. In effect this actslikea cache system -for a full area of the Web. In practice it is extremelyusefulwith a file -prefix if you have installed a copy of those resources onyourlocal system.

    ...
    -<delegatePublic publicIdStartString="-//OASIS//DTD XML Catalog //"
    -                catalog="file:///usr/share/xml/docbook.xml"/>
    -<delegatePublic publicIdStartString="-//OASIS//ENTITIES DocBook XML"
    -                catalog="file:///usr/share/xml/docbook.xml"/>
    -<delegatePublic publicIdStartString="-//OASIS//DTD DocBook XML"
    -                catalog="file:///usr/share/xml/docbook.xml"/>
    -<delegateSystem systemIdStartString="http://www.oasis-open.org/docbook/"
    -                catalog="file:///usr/share/xml/docbook.xml"/>
    -<delegateURI uriStartString="http://www.oasis-open.org/docbook/"
    -                catalog="file:///usr/share/xml/docbook.xml"/>
    -...

    Delegation is the core features which allows to build a tree -ofcatalogs,easier to maintain than a single catalog, based on -PublicIdentifier, SystemIdentifier or URI prefixes it instructs the -catalogsoftware to look upentries in another resource. This feature allow to -buildhierarchies ofcatalogs, the set of entries presented should be -sufficient toredirect theresolution of all DocBook references to the specific -catalogin/usr/share/xml/docbook.xmlthis one in turn could -delegateallreferences for DocBook 4.2.1 to a specific catalog installed at -the sametimeas the DocBook resources on the local machine.

    How to tune catalog usage:

    The user can change the default catalog behaviour by redirecting -queriestoits own set of catalogs, this can be done by -settingtheXML_CATALOG_FILESenvironment variable to a list of -catalogs,anempty one should deactivate loading the -default/etc/xml/catalogdefault catalog

    How to debug catalog processing:

    Setting up the XML_DEBUG_CATALOGenvironment variable -willmakelibxml2 output debugging informations for each catalog -operations,forexample:

    orchis:~/XML -> xmllint --memory --noout test/ent2
    -warning: failed to load external entity "title.xml"
    -orchis:~/XML -> export XML_DEBUG_CATALOG=
    -orchis:~/XML -> xmllint --memory --noout test/ent2
    -Failed to parse catalog /etc/xml/catalog
    -Failed to parse catalog /etc/xml/catalog
    -warning: failed to load external entity "title.xml"
    -Catalogs cleanup
    -orchis:~/XML -> 

    The test/ent2 references an entity, running the parser from memorymakesthe -base URI unavailable and the the "title.xml" entity cannot beloaded.Setting -up the debug environment variable allows to detect that anattempt ismade to -load the /etc/xml/catalogbut since it's notpresent theresolution -fails.

    But the most advanced way to debug XML catalog processing is to -usethexmlcatalogcommand shipped with libxml2, it allows -toloadcatalogs and make resolution queries to see what is going on. This -isalsoused for the regression tests:

    orchis:~/XML -> ./xmlcatalog test/catalogs/docbook.xml \
    -                   "-//OASIS//DTD DocBook XML V4.1.2//EN"
    -http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd
    -orchis:~/XML -> 

    For debugging what is going on, adding one -v flags increase -theverbositylevel to indicate the processing done (adding a second flag -alsoindicatewhat elements are recognized at parsing):

    orchis:~/XML -> ./xmlcatalog -v test/catalogs/docbook.xml \
    -                   "-//OASIS//DTD DocBook XML V4.1.2//EN"
    -Parsing catalog test/catalogs/docbook.xml's content
    -Found public match -//OASIS//DTD DocBook XML V4.1.2//EN
    -http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd
    -Catalogs cleanup
    -orchis:~/XML -> 

    A shell interface is also available to debug and process -multiplequeries(and for regression tests):

    orchis:~/XML -> ./xmlcatalog -shell test/catalogs/docbook.xml \
    -                   "-//OASIS//DTD DocBook XML V4.1.2//EN"
    -> help   
    -Commands available:
    -public PublicID: make a PUBLIC identifier lookup
    -system SystemID: make a SYSTEM identifier lookup
    -resolve PublicID SystemID: do a full resolver lookup
    -add 'type' 'orig' 'replace' : add an entry
    -del 'values' : remove values
    -dump: print the current catalog state
    -debug: increase the verbosity level
    -quiet: decrease the verbosity level
    -exit:  quit the shell
    -> public "-//OASIS//DTD DocBook XML V4.1.2//EN"
    -http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd
    -> quit
    -orchis:~/XML -> 

    This should be sufficient for most debugging purpose, this wasactuallyused -heavily to debug the XML Catalog implementation itself.

    How to create and maintaincatalogs:

    Basically XML Catalogs are XML files, you can either use XML toolstomanage -them or use xmlcatalogfor this. The basic stepisto create a -catalog the -create option provide this facility:

    orchis:~/XML -> ./xmlcatalog --create tst.xml
    -<?xml version="1.0"?>
    -<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
    -         "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
    -<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"/>
    -orchis:~/XML -> 

    By default xmlcatalog does not overwrite the original catalog and -savetheresult on the standard output, this can be overridden using -the-nooutoption. The -addcommand allows to add entries -inthecatalog:

    orchis:~/XML -> ./xmlcatalog --noout --create --add "public" \
    -  "-//OASIS//DTD DocBook XML V4.1.2//EN" \
    -  http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd tst.xml
    -orchis:~/XML -> cat tst.xml
    -<?xml version="1.0"?>
    -<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" \
    -  "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
    -<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
    -<public publicId="-//OASIS//DTD DocBook XML V4.1.2//EN"
    -        uri="http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"/>
    -</catalog>
    -orchis:~/XML -> 

    The -addoption will always take 3 parameters even if -someofthe XML Catalog constructs (like nextCatalog) will have only -asingleargument, just pass a third empty string, it will be ignored.

    Similarly the -deloption remove matching entries -fromthecatalog:

    orchis:~/XML -> ./xmlcatalog --del \
    -  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" tst.xml
    -<?xml version="1.0"?>
    -<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
    -    "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
    -<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"/>
    -orchis:~/XML -> 

    The catalog is now empty. Note that the matching -of-delisexact and would have worked in a similar fashion with -thePublic IDstring.

    This is rudimentary but should be sufficient to manage a not -toocomplexcatalog tree of resources.

    The implementor corner quick review -oftheAPI:

    First, and like for every other module of libxml, there is -anautomaticallygenerated API page -forcatalogsupport.

    The header for the catalog interfaces should be included as:

    #include <libxml/catalog.h>

    The API is voluntarily kept very simple. First it is not -obviousthatapplications really need access to it since it is the default -behaviouroflibxml2 (Note: it is possible to completely override libxml2 -defaultcatalogby using xmlSetExternalEntityLoadertoplug -anapplication specific resolver).

    Basically libxml2 support 2 catalog lists:

    • the default one, global shared by all the application
    • -
    • a per-document catalog, this one is built if the document - usestheoasis-xml-catalogPIs to specify its own catalog list, - itisassociated to the parser context and destroyed when the - parsingcontextis destroyed.
    • -

    the document one will be used first if it exists.

    Initialization routines:

    xmlInitializeCatalog(), xmlLoadCatalog() and xmlLoadCatalogs() -shouldbeused at startup to initialize the catalog, if the catalog -shouldbeinitialized with specific values xmlLoadCatalog() -orxmlLoadCatalogs()should be called before xmlInitializeCatalog() which -wouldotherwise do adefault initialization first.

    The xmlCatalogAddLocal() call is used by the parser to grow thedocumentown -catalog list if needed.

    Preferences setup:

    The XML Catalog spec requires the possibility to select -defaultpreferencesbetween public and system -delegation,xmlCatalogSetDefaultPrefer() allowsthis, xmlCatalogSetDefaults() -andxmlCatalogGetDefaults() allow to control ifXML Catalogs resolution -shouldbe forbidden, allowed for global catalog, fordocument catalog or both, -thedefault is to allow both.

    And of course xmlCatalogSetDebug() allows to generate -debugmessages(through the xmlGenericError() mechanism).

    Querying routines:

    xmlCatalogResolve(), -xmlCatalogResolveSystem(),xmlCatalogResolvePublic()and xmlCatalogResolveURI() -are relatively explicitif you read the XMLCatalog specification they -correspond to section 7algorithms, they shouldalso work if you have loaded an -SGML catalog with asimplified semantic.

    xmlCatalogLocalResolve() and xmlCatalogLocalResolveURI() are the -samebutoperate on the document catalog list

    Cleanup and Miscellaneous:

    xmlCatalogCleanup() free-up the global catalog, xmlCatalogFreeLocal()isthe -per-document equivalent.

    xmlCatalogAdd() and xmlCatalogRemove() are used to dynamically -modifythefirst catalog in the global list, and xmlCatalogDump() allows to -dumpacatalog state, those routines are primarily designed for xmlcatalog, -I'mnotsure that exposing more complex interfaces (like navigation ones) -wouldbereally useful.

    The xmlParseCatalogFile() is a function used to load XML Catalogfiles,it's -similar as xmlParseFile() except it bypass all catalog lookups,it'sprovided -because this functionality may be useful for client tools.

    threaded environments:

    Since the catalog tree is built progressively, some care has been -takentotry to avoid troubles in multithreaded environments. The code is -nowthreadsafe assuming that the libxml2 library has been compiled -withthreadssupport.

    Other resources

    The XML Catalog specification is relatively recent so there -isn'tmuchliterature to point at:

    • You can find a good rant from Norm Walsh about theneedfor - catalogs, it provides a lot of context informations even ifIdon't - agree with everything presented. Norm also wrote a morerecentarticle XMLentitiesand - URI resolversdescribing them.
    • -
    • An oldXMLcatalog - proposalfrom John Cowan
    • -
    • The Resource - DirectoryDescriptionLanguage(RDDL) another catalog system but more - orientedtowardproviding metadata for XML namespaces.
    • -
    • the page from the OASIS Technical Committee - onEntityResolutionwho maintains XML Catalog, you will find pointers - tothespecification update, some background and pointers to - otherstoolsproviding XML Catalog support
    • -
    • There is a shell scriptto - generateXMLCatalogs for DocBook 4.1.2 . If it can write to the - /etc/xml/directory,it will set-up /etc/xml/catalog and /etc/xml/docbook - based ontheresources found on the system. Otherwise it will just - create~/xmlcatalogand ~/dbkxmlcatalog and doing: -

      export XML_CATALOG_FILES=$HOME/xmlcatalog

      -

      should allow to process DocBook documentations withoutrequiringnetwork - accesses for the DTD or stylesheets

      -
    • -
    • I have uploaded asmalltarballcontaining - XML Catalogs for DocBook 4.1.2 which seemsto workfine for me too
    • -
    • The xmlcatalogmanualpage
    • -

    If you have suggestions for corrections or additions, simply contactme:

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/contribs.html b/src/tools/docbook/libxml2/doc/contribs.html deleted file mode 100644 index 2163d6014f..0000000000 --- a/src/tools/docbook/libxml2/doc/contribs.html +++ /dev/null @@ -1,35 +0,0 @@ - - -Contributions
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    Contributions

    Main Menu
    Related links

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/devhelp/Makefile.am b/src/tools/docbook/libxml2/doc/devhelp/Makefile.am deleted file mode 100644 index 0264010858..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/Makefile.am +++ /dev/null @@ -1,73 +0,0 @@ -DEVHELP_DIR=$(datadir)/gtk-doc/html/libxml2 -HTML_FILES=index.html general.html $(HTML_MODULES) -HTML_MODULES= \ - libxml2-c14n.html \ - libxml2-catalog.html \ - libxml2-chvalid.html \ - libxml2-debugXML.html \ - libxml2-dict.html \ - libxml2-DOCBparser.html \ - libxml2-encoding.html \ - libxml2-entities.html \ - libxml2-globals.html \ - libxml2-hash.html \ - libxml2-HTMLparser.html \ - libxml2-HTMLtree.html \ - libxml2-list.html \ - libxml2-nanoftp.html \ - libxml2-nanohttp.html \ - libxml2-parser.html \ - libxml2-parserInternals.html \ - libxml2-pattern.html \ - libxml2-relaxng.html \ - libxml2-SAX2.html \ - libxml2-SAX.html \ - libxml2-schemasInternals.html \ - libxml2-schematron.html \ - libxml2-threads.html \ - libxml2-tree.html \ - libxml2-uri.html \ - libxml2-valid.html \ - libxml2-xinclude.html \ - libxml2-xlink.html \ - libxml2-xmlautomata.html \ - libxml2-xmlerror.html \ - libxml2-xmlexports.html \ - libxml2-xmlIO.html \ - libxml2-xmlmemory.html \ - libxml2-xmlmodule.html \ - libxml2-xmlreader.html \ - libxml2-xmlregexp.html \ - libxml2-xmlsave.html \ - libxml2-xmlschemas.html \ - libxml2-xmlschemastypes.html \ - libxml2-xmlstring.html \ - libxml2-xmlunicode.html \ - libxml2-xmlversion.html \ - libxml2-xmlwriter.html \ - libxml2-xpath.html \ - libxml2-xpathInternals.html \ - libxml2-xpointer.html - -EXTRA_FORMAT= \ - home.png \ - left.png \ - right.png \ - up.png \ - style.css - -EXTRA_DIST=devhelp.xsl html.xsl libxml2.devhelp $(HTML_FILES) $(EXTRA_FORMAT) - -all: libxml2.devhelp $(HTML_FILES) - -libxml2.devhelp $(HTML_FILES): devhelp.xsl html.xsl $(top_srcdir)/doc/libxml2-api.xml - -@(echo Rebuilding devhelp files) - -@(if [ -x $(XSLTPROC) ] ; then \ - $(XSLTPROC) --nonet -o $(srcdir)/libxml2.devhelp devhelp.xsl $(top_srcdir)/doc/libxml2-api.xml ; fi ); - -install-data-local: - $(mkinstalldirs) $(DESTDIR)$(DEVHELP_DIR) - -@INSTALL@ -m 0644 libxml2.devhelp $(DESTDIR)$(DEVHELP_DIR) - -@INSTALL@ -m 0644 $(EXTRA_FORMAT) $(DESTDIR)$(DEVHELP_DIR) - -@INSTALL@ -m 0644 $(HTML_FILES) $(DESTDIR)$(DEVHELP_DIR) - diff --git a/src/tools/docbook/libxml2/doc/devhelp/Makefile.in b/src/tools/docbook/libxml2/doc/devhelp/Makefile.in deleted file mode 100644 index 83b5866283..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/Makefile.in +++ /dev/null @@ -1,495 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = ../.. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = doc/devhelp -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -BASE_THREAD_LIBS = @BASE_THREAD_LIBS@ -C14N_OBJ = @C14N_OBJ@ -CATALOG_OBJ = @CATALOG_OBJ@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ -CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@ -DEBUG_OBJ = @DEBUG_OBJ@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOCB_OBJ = @DOCB_OBJ@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -FTP_OBJ = @FTP_OBJ@ -HAVE_ISINF = @HAVE_ISINF@ -HAVE_ISNAN = @HAVE_ISNAN@ -HTML_DIR = @HTML_DIR@ -HTML_OBJ = @HTML_OBJ@ -HTTP_OBJ = @HTTP_OBJ@ -ICONV_LIBS = @ICONV_LIBS@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBXML_MAJOR_VERSION = @LIBXML_MAJOR_VERSION@ -LIBXML_MICRO_VERSION = @LIBXML_MICRO_VERSION@ -LIBXML_MINOR_VERSION = @LIBXML_MINOR_VERSION@ -LIBXML_VERSION = @LIBXML_VERSION@ -LIBXML_VERSION_EXTRA = @LIBXML_VERSION_EXTRA@ -LIBXML_VERSION_INFO = @LIBXML_VERSION_INFO@ -LIBXML_VERSION_NUMBER = @LIBXML_VERSION_NUMBER@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MODULE_EXTENSION = @MODULE_EXTENSION@ -MODULE_PLATFORM_LIBS = @MODULE_PLATFORM_LIBS@ -MV = @MV@ -M_LIBS = @M_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -PYTHON = @PYTHON@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@ -PYTHON_SUBDIR = @PYTHON_SUBDIR@ -PYTHON_TESTS = @PYTHON_TESTS@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -RDL_LIBS = @RDL_LIBS@ -READER_TEST = @READER_TEST@ -RELDATE = @RELDATE@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STATIC_BINARIES = @STATIC_BINARIES@ -STRIP = @STRIP@ -TAR = @TAR@ -TEST_C14N = @TEST_C14N@ -TEST_CATALOG = @TEST_CATALOG@ -TEST_DEBUG = @TEST_DEBUG@ -TEST_HTML = @TEST_HTML@ -TEST_MODULES = @TEST_MODULES@ -TEST_PATTERN = @TEST_PATTERN@ -TEST_PHTML = @TEST_PHTML@ -TEST_PUSH = @TEST_PUSH@ -TEST_REGEXPS = @TEST_REGEXPS@ -TEST_SAX = @TEST_SAX@ -TEST_SCHEMAS = @TEST_SCHEMAS@ -TEST_SCHEMATRON = @TEST_SCHEMATRON@ -TEST_THREADS = @TEST_THREADS@ -TEST_VALID = @TEST_VALID@ -TEST_VTIME = @TEST_VTIME@ -TEST_XINCLUDE = @TEST_XINCLUDE@ -TEST_XPATH = @TEST_XPATH@ -TEST_XPTR = @TEST_XPTR@ -THREADS_W32 = @THREADS_W32@ -THREAD_CFLAGS = @THREAD_CFLAGS@ -THREAD_LIBS = @THREAD_LIBS@ -U = @U@ -VERSION = @VERSION@ -WIN32_EXTRA_LDFLAGS = @WIN32_EXTRA_LDFLAGS@ -WIN32_EXTRA_LIBADD = @WIN32_EXTRA_LIBADD@ -WITH_C14N = @WITH_C14N@ -WITH_CATALOG = @WITH_CATALOG@ -WITH_DEBUG = @WITH_DEBUG@ -WITH_DOCB = @WITH_DOCB@ -WITH_FTP = @WITH_FTP@ -WITH_HTML = @WITH_HTML@ -WITH_HTTP = @WITH_HTTP@ -WITH_ICONV = @WITH_ICONV@ -WITH_ISO8859X = @WITH_ISO8859X@ -WITH_LEGACY = @WITH_LEGACY@ -WITH_MEM_DEBUG = @WITH_MEM_DEBUG@ -WITH_MODULES = @WITH_MODULES@ -WITH_OUTPUT = @WITH_OUTPUT@ -WITH_PATTERN = @WITH_PATTERN@ -WITH_PUSH = @WITH_PUSH@ -WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@ -WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@ -WITH_READER = @WITH_READER@ -WITH_REGEXPS = @WITH_REGEXPS@ -WITH_RUN_DEBUG = @WITH_RUN_DEBUG@ -WITH_SAX1 = @WITH_SAX1@ -WITH_SCHEMAS = @WITH_SCHEMAS@ -WITH_SCHEMATRON = @WITH_SCHEMATRON@ -WITH_THREADS = @WITH_THREADS@ -WITH_TREE = @WITH_TREE@ -WITH_TRIO = @WITH_TRIO@ -WITH_TRIO_SOURCES_FALSE = @WITH_TRIO_SOURCES_FALSE@ -WITH_TRIO_SOURCES_TRUE = @WITH_TRIO_SOURCES_TRUE@ -WITH_VALID = @WITH_VALID@ -WITH_WRITER = @WITH_WRITER@ -WITH_XINCLUDE = @WITH_XINCLUDE@ -WITH_XPATH = @WITH_XPATH@ -WITH_XPTR = @WITH_XPTR@ -XINCLUDE_OBJ = @XINCLUDE_OBJ@ -XMLLINT = @XMLLINT@ -XML_CFLAGS = @XML_CFLAGS@ -XML_INCLUDEDIR = @XML_INCLUDEDIR@ -XML_LIBDIR = @XML_LIBDIR@ -XML_LIBS = @XML_LIBS@ -XML_LIBTOOLLIBS = @XML_LIBTOOLLIBS@ -XPATH_OBJ = @XPATH_OBJ@ -XPTR_OBJ = @XPTR_OBJ@ -XSLTPROC = @XSLTPROC@ -Z_CFLAGS = @Z_CFLAGS@ -Z_LIBS = @Z_LIBS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_AS = @ac_ct_AS@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -DEVHELP_DIR = $(datadir)/gtk-doc/html/libxml2 -HTML_FILES = index.html general.html $(HTML_MODULES) -HTML_MODULES = \ - libxml2-c14n.html \ - libxml2-catalog.html \ - libxml2-chvalid.html \ - libxml2-debugXML.html \ - libxml2-dict.html \ - libxml2-DOCBparser.html \ - libxml2-encoding.html \ - libxml2-entities.html \ - libxml2-globals.html \ - libxml2-hash.html \ - libxml2-HTMLparser.html \ - libxml2-HTMLtree.html \ - libxml2-list.html \ - libxml2-nanoftp.html \ - libxml2-nanohttp.html \ - libxml2-parser.html \ - libxml2-parserInternals.html \ - libxml2-pattern.html \ - libxml2-relaxng.html \ - libxml2-SAX2.html \ - libxml2-SAX.html \ - libxml2-schemasInternals.html \ - libxml2-schematron.html \ - libxml2-threads.html \ - libxml2-tree.html \ - libxml2-uri.html \ - libxml2-valid.html \ - libxml2-xinclude.html \ - libxml2-xlink.html \ - libxml2-xmlautomata.html \ - libxml2-xmlerror.html \ - libxml2-xmlexports.html \ - libxml2-xmlIO.html \ - libxml2-xmlmemory.html \ - libxml2-xmlmodule.html \ - libxml2-xmlreader.html \ - libxml2-xmlregexp.html \ - libxml2-xmlsave.html \ - libxml2-xmlschemas.html \ - libxml2-xmlschemastypes.html \ - libxml2-xmlstring.html \ - libxml2-xmlunicode.html \ - libxml2-xmlversion.html \ - libxml2-xmlwriter.html \ - libxml2-xpath.html \ - libxml2-xpathInternals.html \ - libxml2-xpointer.html - -EXTRA_FORMAT = \ - home.png \ - left.png \ - right.png \ - up.png \ - style.css - -EXTRA_DIST = devhelp.xsl html.xsl libxml2.devhelp $(HTML_FILES) $(EXTRA_FORMAT) -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/devhelp/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/devhelp/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-libtool - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: install-data-local - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - distclean distclean-generic distclean-libtool distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-data-local install-exec \ - install-exec-am install-info install-info-am install-man \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - uninstall uninstall-am uninstall-info-am - - -all: libxml2.devhelp $(HTML_FILES) - -libxml2.devhelp $(HTML_FILES): devhelp.xsl html.xsl $(top_srcdir)/doc/libxml2-api.xml - -@(echo Rebuilding devhelp files) - -@(if [ -x $(XSLTPROC) ] ; then \ - $(XSLTPROC) --nonet -o $(srcdir)/libxml2.devhelp devhelp.xsl $(top_srcdir)/doc/libxml2-api.xml ; fi ); - -install-data-local: - $(mkinstalldirs) $(DESTDIR)$(DEVHELP_DIR) - -@INSTALL@ -m 0644 libxml2.devhelp $(DESTDIR)$(DEVHELP_DIR) - -@INSTALL@ -m 0644 $(EXTRA_FORMAT) $(DESTDIR)$(DEVHELP_DIR) - -@INSTALL@ -m 0644 $(HTML_FILES) $(DESTDIR)$(DEVHELP_DIR) -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/tools/docbook/libxml2/doc/devhelp/devhelp.xsl b/src/tools/docbook/libxml2/doc/devhelp/devhelp.xsl deleted file mode 100644 index f19c3f1a0c..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/devhelp.xsl +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <xsl:value-of select="concat(@name, ': ', summary)"/> - - - - - - - - - - - - - - - - - - - - - -

    -

    -

    -

    - -

    WARNING: this module is deprecated !

    -
    -

    Author(s):

    -
    -

    Synopsis

    -
    -	    
    -	  
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    - - - - - -
    -
    - - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/general.html b/src/tools/docbook/libxml2/doc/devhelp/general.html deleted file mode 100644 index 6122ffe8e5..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/general.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - libxml2: - - - - - - - - - - - - - - - -

    - libxml2 API Modules -

    -

    DOCBparser - old DocBook SGML parser
    HTMLparser - interface for an HTML 4.0 non-verifying parser
    HTMLtree - specific APIs to process HTML tree, especially serialization
    SAX - Old SAX version 1 handler, deprecated
    SAX2 - SAX2 parser interface used to build the DOM tree
    c14n - Provide Canonical XML and Exclusive XML Canonicalization
    catalog - interfaces to the Catalog handling system
    chvalid - Unicode character range checking
    debugXML - Tree debugging APIs
    dict - string dictionnary
    encoding - interface for the encoding conversion functions
    entities - interface for the XML entities handling
    globals - interface for all global variables of the library
    hash - Chained hash tables
    list - lists interfaces
    nanoftp - minimal FTP implementation
    nanohttp - minimal HTTP implementation
    parser - the core parser module
    parserInternals - internals routines exported by the parser.
    pattern - pattern expression handling
    relaxng - implementation of the Relax-NG validation
    schemasInternals - internal interfaces for XML Schemas
    schematron - XML Schemastron implementation
    threads - interfaces for thread handling
    tree - interfaces for tree manipulation
    uri - library of generic URI related routines
    valid - The DTD validation
    xinclude - implementation of XInclude
    xlink - unfinished XLink detection module
    xmlIO - interface for the I/O interfaces used by the parser
    xmlautomata - API to build regexp automata
    xmlerror - error handling
    xmlexports - macros for marking symbols as exportable/importable.
    xmlmemory - interface for the memory allocator
    xmlmodule - dynamic module loading
    xmlreader - the XMLReader implementation
    xmlregexp - regular expressions handling
    xmlsave - the XML document serializer
    xmlschemas - incomplete XML Schemas structure implementation
    xmlschemastypes - implementation of XML Schema Datatypes
    xmlstring - set of routines to process strings
    xmlunicode - Unicode character APIs
    xmlversion - compile-time version informations
    xmlwriter - text writing API for XML
    xpath - XML Path Language implementation
    xpathInternals - internal interfaces for XML Path Language implementation
    xpointer - API to handle XML Pointers

    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/home.png b/src/tools/docbook/libxml2/doc/devhelp/home.png deleted file mode 100644 index 17003611d9..0000000000 Binary files a/src/tools/docbook/libxml2/doc/devhelp/home.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/devhelp/html.xsl b/src/tools/docbook/libxml2/doc/devhelp/html.xsl deleted file mode 100644 index 1720b298bb..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/html.xsl +++ /dev/null @@ -1,602 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( - - void - - - - - - - - - ,
    - - - - - - - -
    -
    - ); - - -
    - - - - - - - typedef - - - - - - - - - - - - ( - - void - - - - - - - - - ,
    - - - - - - - -
    -
    - ); - - -
    - - - - - - - - typedef - - - - - - ; - - - - - - #define - - - ( - - - - , - - - ) - - ; - - - - - - - - - - -
    -

    Structure

    -
    -     {
    -
    -    
    -      The content of this structure is not made public by the API.
    -
    -    
    -    
    -            
    -	
    -	  
    -	
    -		
    -	
    -	
    -	  	: 
    -	  
    -	    
    -	  
    -	
    -	
    -
    -    
    -    } 
    -    
    -    ;
    -
    -    
    -

    - - - -

    - -

    -
    - - - -
    -

    Typedef

    -
    -    
    -      
    -    
    -     
    -    
    -    ;
    -
    -    
    -

    - - - -

    - -

    -
    - - - -
    -

    Variable

    -
    -    
    -      
    -    
    -     
    -    
    -    ;
    -
    -    
    -

    - - - -

    - -

    -
    - - - -
    -

    Enum

    -
    -    enum 
    -    
    -     {
    -
    -    
    -      
    -          
    -      
    -      
    -         = 
    -	
    -      
    -      
    -         /* 
    -	
    -         */
    -      
    -      
    -
    -    
    -    };
    -
    -    
    -

    - - - -

    - -

    -
    - - - -
    -

    Macro

    -
    -    #define 
    -    
    -    
    -      (
    -      
    -        
    -	
    -	  , 
    -	
    -      
    -      )
    -    
    -    ;
    -
    -    
    -

    - - - -

    - -
    - - - - - - -
    : - - - -
    -
    - - -

    -
    - - - - - - -
    -

    ()

    -
    -    
    -      
    -    
    -    	
    -    
    -    
    -      	
    -    
    -    
    -      	
    -    
    -    	(
    -    
    -      void
    -    
    -    
    -      
    -        
    -      
    -       
    -      
    -      
    -        , 
    - - - - - - - -
    -
    - )
    - - -
    -

    - - - -

    - - -
    - - - - - - - - - - - - -
    : - - - -
    Returns: - - - -
    -
    -

    -
    - - - - - - -
    -

    Function type

    -
    -    
    -      
    -    
    -    	
    -    
    -    
    -      	
    -    
    -    
    -      	
    -    
    -    	(
    -    
    -      void
    -    
    -    
    -      
    -        
    -      
    -       
    -      
    -      
    -        , 
    - - - - - - - -
    -
    - )
    - - -
    -

    - - - -

    - - -
    - - - - - - - - - - - - -
    : - - - -
    Returns: - - - -
    -
    -

    -
    - - - - - - - - - <xsl:value-of select="concat(@name, ': ', summary)"/> - - - - - - - - - - - - - - - - - - -

    libxml2 API Modules

    -

    - - -
    -
    -

    - - -
    -
    - - - - - - - - libxml2 Reference Manual - - - - - - - - - - - - -

    libxml2 Reference Manual

    -

    Libxml2 is the XML C parser and toolkit developed for the Gnome project -(but usable outside of the Gnome platform), it is free software available -under the MIT -License. XML itself is a metalanguage to design markup languages, i.e. -text language where semantic and structure are added to the content using -extra "markup" information enclosed between angle brackets. HTML is the most -well-known markup language. Though the library is written in C a variety of language bindings make it available in -other environments.

    -

    Libxml2 implements a number of existing standards related to markup -languages:

    - -

    As a result the libxml2 API is very - large. If you get lost searching for some specific API use - the online search - engine hosted on xmlsoft.org - the libxml2 and libxslt project page.

    - - -
    -
    - -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/index.html b/src/tools/docbook/libxml2/doc/devhelp/index.html deleted file mode 100644 index 26c2839b33..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/index.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - libxml2 Reference Manual - - - - - - - - - - - -

    - libxml2 Reference Manual -

    -

    Libxml2 is the XML C parser and toolkit developed for the Gnome project -(but usable outside of the Gnome platform), it is free software available -under the MIT -License. XML itself is a metalanguage to design markup languages, i.e. -text language where semantic and structure are added to the content using -extra "markup" information enclosed between angle brackets. HTML is the most -well-known markup language. Though the library is written in C a variety of language bindings make it available in -other environments.

    -

    Libxml2 implements a number of existing standards related to markup -languages:

    - -

    As a result the libxml2 API is very - large. If you get lost searching for some specific API use - the online search - engine hosted on xmlsoft.org - the libxml2 and libxslt project page.

    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/left.png b/src/tools/docbook/libxml2/doc/devhelp/left.png deleted file mode 100644 index 2d05b3d5b4..0000000000 Binary files a/src/tools/docbook/libxml2/doc/devhelp/left.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-DOCBparser.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-DOCBparser.html deleted file mode 100644 index a7b514e1f6..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-DOCBparser.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - DOCBparser: old DocBook SGML parser - - - - - - - - - - - - - - - -

    - DOCBparser -

    -

    DOCBparser - old DocBook SGML parser

    -

    interface for a DocBook SGML non-verifying parser This code is DEPRECATED, and should not be used anymore.

    -

    WARNING: this module is deprecated !

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef xmlParserInputPtr docbParserInputPtr;
    -typedef xmlParserCtxt docbParserCtxt;
    -typedef xmlParserCtxtPtr docbParserCtxtPtr;
    -typedef xmlParserInput docbParserInput;
    -typedef xmlDocPtr docbDocPtr;
    -typedef xmlSAXHandler docbSAXHandler;
    -typedef xmlSAXHandlerPtr docbSAXHandlerPtr;
    -void	docbFreeParserCtxt		(docbParserCtxtPtr ctxt);
    -docbDocPtr	docbParseDoc		(xmlChar * cur, 
    const char * encoding); -docbParserCtxtPtr docbCreateFileParserCtxt (const char * filename,
    const char * encoding); -docbDocPtr docbSAXParseFile (const char * filename,
    const char * encoding,
    docbSAXHandlerPtr sax,
    void * userData); -docbDocPtr docbSAXParseDoc (xmlChar * cur,
    const char * encoding,
    docbSAXHandlerPtr sax,
    void * userData); -docbParserCtxtPtr docbCreatePushParserCtxt (docbSAXHandlerPtr sax,
    void * user_data,
    const char * chunk,
    int size,
    const char * filename,
    xmlCharEncoding enc); -int docbEncodeEntities (unsigned char * out,
    int * outlen,
    const unsigned char * in,
    int * inlen,
    int quoteChar); -docbDocPtr docbParseFile (const char * filename,
    const char * encoding); -int docbParseDocument (docbParserCtxtPtr ctxt); -int docbParseChunk (docbParserCtxtPtr ctxt,
    const char * chunk,
    int size,
    int terminate); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Typedef docbDocPtr

    xmlDocPtr docbDocPtr;
    -

    -

    -
    -

    Typedef docbParserCtxt

    xmlParserCtxt docbParserCtxt;
    -

    -

    -
    -

    Typedef docbParserCtxtPtr

    xmlParserCtxtPtr docbParserCtxtPtr;
    -

    -

    -
    -

    Typedef docbParserInput

    xmlParserInput docbParserInput;
    -

    -

    -
    -

    Typedef docbParserInputPtr

    xmlParserInputPtr docbParserInputPtr;
    -

    -

    -
    -

    Typedef docbSAXHandler

    xmlSAXHandler docbSAXHandler;
    -

    -

    -
    -

    Typedef docbSAXHandlerPtr

    xmlSAXHandlerPtr docbSAXHandlerPtr;
    -

    -

    -
    -

    docbCreateFileParserCtxt ()

    docbParserCtxtPtr	docbCreateFileParserCtxt	(const char * filename, 
    const char * encoding)
    -

    Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

    -
    filename:the filename
    encoding:the SGML document encoding, or NULL
    Returns:the new parser context or NULL
    -
    -

    docbCreatePushParserCtxt ()

    docbParserCtxtPtr	docbCreatePushParserCtxt	(docbSAXHandlerPtr sax, 
    void * user_data,
    const char * chunk,
    int size,
    const char * filename,
    xmlCharEncoding enc)
    -

    Create a parser context for using the DocBook SGML parser in push mode To allow content encoding detection, @size should be >= 4 The value of @filename is used for fetching external entities and error/warning reports.

    -
    sax:a SAX handler
    user_data:The user data returned on SAX callbacks
    chunk:a pointer to an array of chars
    size:number of chars in the array
    filename:an optional file name or URI
    enc:an optional encoding
    Returns:the new parser context or NULL
    -
    - -
    -

    docbFreeParserCtxt ()

    void	docbFreeParserCtxt		(docbParserCtxtPtr ctxt)
    -

    Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed.

    -
    ctxt:an SGML parser context
    -
    -

    docbParseChunk ()

    int	docbParseChunk			(docbParserCtxtPtr ctxt, 
    const char * chunk,
    int size,
    int terminate)
    -

    Parse a Chunk of memory

    -
    ctxt:an XML parser context
    chunk:an char array
    size:the size in byte of the chunk
    terminate:last chunk indicator
    Returns:zero if no error, the xmlParserErrors otherwise.
    -
    -

    docbParseDoc ()

    docbDocPtr	docbParseDoc		(xmlChar * cur, 
    const char * encoding)
    -

    parse an SGML in-memory document and build a tree.

    -
    cur:a pointer to an array of xmlChar
    encoding:a free form C string describing the SGML document encoding, or NULL
    Returns:the resulting document tree
    -
    -

    docbParseDocument ()

    int	docbParseDocument		(docbParserCtxtPtr ctxt)
    -

    parse an SGML document (and build a tree if using the standard SAX interface).

    -
    ctxt:an SGML parser context
    Returns:0, -1 in case of error. the parser context is augmented as a result of the parsing.
    -
    -

    docbParseFile ()

    docbDocPtr	docbParseFile		(const char * filename, 
    const char * encoding)
    -

    parse a Docbook SGML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

    -
    filename:the filename
    encoding:a free form C string describing document encoding, or NULL
    Returns:the resulting document tree
    -
    -

    docbSAXParseDoc ()

    docbDocPtr	docbSAXParseDoc		(xmlChar * cur, 
    const char * encoding,
    docbSAXHandlerPtr sax,
    void * userData)
    -

    parse an SGML in-memory document and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.

    -
    cur:a pointer to an array of xmlChar
    encoding:a free form C string describing the SGML document encoding, or NULL
    sax:the SAX handler block
    userData:if using SAX, this pointer will be provided on callbacks.
    Returns:the resulting document tree
    -
    -

    docbSAXParseFile ()

    docbDocPtr	docbSAXParseFile	(const char * filename, 
    const char * encoding,
    docbSAXHandlerPtr sax,
    void * userData)
    -

    parse an SGML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.

    -
    filename:the filename
    encoding:a free form C string describing the SGML document encoding, or NULL
    sax:the SAX handler block
    userData:if using SAX, this pointer will be provided on callbacks.
    Returns:the resulting document tree
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-HTMLparser.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-HTMLparser.html deleted file mode 100644 index 3a4a67d90a..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-HTMLparser.html +++ /dev/null @@ -1,365 +0,0 @@ - - - - - HTMLparser: interface for an HTML 4.0 non-verifying parser - - - - - - - - - - - - - - - - -

    - HTMLparser -

    -

    HTMLparser - interface for an HTML 4.0 non-verifying parser

    -

    this module implements an HTML 4.0 non-verifying parser with API compatible with the XML parser ones. It should be able to parse "real world" HTML, even if severely broken from a specification point of view.

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    #define htmlDefaultSubelement(elt);
    -#define htmlElementAllowedHereDesc(parent, elt);
    -#define htmlRequiredAttrs(elt);
    -typedef xmlParserNodeInfo htmlParserNodeInfo;
    -typedef xmlParserInput htmlParserInput;
    -typedef xmlParserCtxtPtr htmlParserCtxtPtr;
    -typedef struct _htmlEntityDesc htmlEntityDesc;
    -typedef xmlDocPtr htmlDocPtr;
    -typedef xmlSAXHandlerPtr htmlSAXHandlerPtr;
    -typedef enum htmlStatus;
    -typedef xmlNodePtr htmlNodePtr;
    -typedef htmlElemDesc * htmlElemDescPtr;
    -typedef struct _htmlElemDesc htmlElemDesc;
    -typedef xmlSAXHandler htmlSAXHandler;
    -typedef xmlParserInputPtr htmlParserInputPtr;
    -typedef enum htmlParserOption;
    -typedef htmlEntityDesc * htmlEntityDescPtr;
    -typedef xmlParserCtxt htmlParserCtxt;
    -int	htmlIsScriptAttribute		(const xmlChar * name);
    -int	htmlHandleOmittedElem		(int val);
    -htmlDocPtr	htmlReadFd		(int fd, 
    const char * URL,
    const char * encoding,
    int options); -htmlDocPtr htmlReadIO (xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options); -htmlDocPtr htmlParseFile (const char * filename,
    const char * encoding); -htmlDocPtr htmlCtxtReadDoc (htmlParserCtxtPtr ctxt,
    const xmlChar * cur,
    const char * URL,
    const char * encoding,
    int options); -int htmlAutoCloseTag (htmlDocPtr doc,
    const xmlChar * name,
    htmlNodePtr elem); -int htmlParseChunk (htmlParserCtxtPtr ctxt,
    const char * chunk,
    int size,
    int terminate); -const htmlElemDesc * htmlTagLookup (const xmlChar * tag); -htmlParserCtxtPtr htmlCreateMemoryParserCtxt (const char * buffer,
    int size); -void htmlCtxtReset (htmlParserCtxtPtr ctxt); -int htmlElementAllowedHere (const htmlElemDesc * parent,
    const xmlChar * elt); -htmlDocPtr htmlCtxtReadIO (htmlParserCtxtPtr ctxt,
    xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options); -htmlParserCtxtPtr htmlCreatePushParserCtxt (htmlSAXHandlerPtr sax,
    void * user_data,
    const char * chunk,
    int size,
    const char * filename,
    xmlCharEncoding enc); -htmlDocPtr htmlReadMemory (const char * buffer,
    int size,
    const char * URL,
    const char * encoding,
    int options); -int htmlIsAutoClosed (htmlDocPtr doc,
    htmlNodePtr elem); -int htmlParseCharRef (htmlParserCtxtPtr ctxt); -htmlDocPtr htmlReadDoc (const xmlChar * cur,
    const char * URL,
    const char * encoding,
    int options); -int htmlEncodeEntities (unsigned char * out,
    int * outlen,
    const unsigned char * in,
    int * inlen,
    int quoteChar); -htmlStatus htmlNodeStatus (const htmlNodePtr node,
    int legacy); -htmlStatus htmlAttrAllowed (const htmlElemDesc * elt,
    const xmlChar * attr,
    int legacy); -htmlDocPtr htmlSAXParseFile (const char * filename,
    const char * encoding,
    htmlSAXHandlerPtr sax,
    void * userData); -const htmlEntityDesc * htmlParseEntityRef (htmlParserCtxtPtr ctxt,
    const xmlChar ** str); -htmlStatus htmlElementStatusHere (const htmlElemDesc * parent,
    const htmlElemDesc * elt); -const htmlEntityDesc * htmlEntityValueLookup (unsigned int value); -void htmlParseElement (htmlParserCtxtPtr ctxt); -int UTF8ToHtml (unsigned char * out,
    int * outlen,
    const unsigned char * in,
    int * inlen); -const htmlEntityDesc * htmlEntityLookup (const xmlChar * name); -void htmlFreeParserCtxt (htmlParserCtxtPtr ctxt); -htmlDocPtr htmlCtxtReadMemory (htmlParserCtxtPtr ctxt,
    const char * buffer,
    int size,
    const char * URL,
    const char * encoding,
    int options); -htmlDocPtr htmlCtxtReadFd (htmlParserCtxtPtr ctxt,
    int fd,
    const char * URL,
    const char * encoding,
    int options); -htmlDocPtr htmlReadFile (const char * filename,
    const char * encoding,
    int options); -htmlDocPtr htmlCtxtReadFile (htmlParserCtxtPtr ctxt,
    const char * filename,
    const char * encoding,
    int options); -int htmlParseDocument (htmlParserCtxtPtr ctxt); -htmlDocPtr htmlSAXParseDoc (xmlChar * cur,
    const char * encoding,
    htmlSAXHandlerPtr sax,
    void * userData); -int htmlCtxtUseOptions (htmlParserCtxtPtr ctxt,
    int options); -htmlDocPtr htmlParseDoc (xmlChar * cur,
    const char * encoding); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro htmlDefaultSubelement

    #define htmlDefaultSubelement(elt);
    -

    Returns the default subelement for this element

    elt:HTML element
    -
    -
    -

    Macro htmlElementAllowedHereDesc

    #define htmlElementAllowedHereDesc(parent, elt);
    -

    Checks whether an HTML element description may be a direct child of the specified element. Returns 1 if allowed; 0 otherwise.

    parent:HTML parent element
    elt:HTML element
    -
    -
    -

    Macro htmlRequiredAttrs

    #define htmlRequiredAttrs(elt);
    -

    Returns the attributes required for the specified element.

    elt:HTML element
    -
    -
    -

    Typedef htmlDocPtr

    xmlDocPtr htmlDocPtr;
    -

    -

    -
    -

    Structure htmlElemDesc

    struct _htmlElemDesc {
    -    const char *	name	: The tag name
    -    char	startTag	: Whether the start tag can be implied
    -    char	endTag	: Whether the end tag can be implied
    -    char	saveEndTag	: Whether the end tag should be saved
    -    char	empty	: Is this an empty element ?
    -    char	depr	: Is this a deprecated element ?
    -    char	dtd	: 1: only in Loose DTD, 2: only Frameset one
    -    char	isinline	: is this a block 0 or inline 1 element
    -    const char *	desc	: the description NRK Jan.2003 * New fields encapsulating HTML structur
    -    const char **	subelts	: allowed sub-elements of this element
    -    const char *	defaultsubelt	: subelement for suggested auto-repair if necessary or NULL
    -    const char **	attrs_opt	: Optional Attributes
    -    const char **	attrs_depr	: Additional deprecated attributes
    -    const char **	attrs_req	: Required attributes
    -} htmlElemDesc;
    -

    -

    -
    -

    Typedef htmlElemDescPtr

    htmlElemDesc * htmlElemDescPtr;
    -

    -

    -
    -

    Structure htmlEntityDesc

    struct _htmlEntityDesc {
    -    unsigned int	value	: the UNICODE value for the character
    -    const char *	name	: The entity name
    -    const char *	desc	: the description
    -} htmlEntityDesc;
    -

    -

    -
    -

    Typedef htmlEntityDescPtr

    htmlEntityDesc * htmlEntityDescPtr;
    -

    -

    -
    -

    Typedef htmlNodePtr

    xmlNodePtr htmlNodePtr;
    -

    -

    -
    -

    Typedef htmlParserCtxt

    xmlParserCtxt htmlParserCtxt;
    -

    -

    -
    -

    Typedef htmlParserCtxtPtr

    xmlParserCtxtPtr htmlParserCtxtPtr;
    -

    -

    -
    -

    Typedef htmlParserInput

    xmlParserInput htmlParserInput;
    -

    -

    -
    -

    Typedef htmlParserInputPtr

    xmlParserInputPtr htmlParserInputPtr;
    -

    -

    -
    -

    Typedef htmlParserNodeInfo

    xmlParserNodeInfo htmlParserNodeInfo;
    -

    -

    -
    -

    Enum htmlParserOption

    enum htmlParserOption {
    -    HTML_PARSE_RECOVER = 1 /* Relaxed parsing */
    -    HTML_PARSE_NOERROR = 32 /* suppress error reports */
    -    HTML_PARSE_NOWARNING = 64 /* suppress warning reports */
    -    HTML_PARSE_PEDANTIC = 128 /* pedantic error reporting */
    -    HTML_PARSE_NOBLANKS = 256 /* remove blank nodes */
    -    HTML_PARSE_NONET = 2048 /* Forbid network access */
    -    HTML_PARSE_COMPACT = 65536 /*  compact small text nodes */
    -};
    -

    -

    -
    -

    Typedef htmlSAXHandler

    xmlSAXHandler htmlSAXHandler;
    -

    -

    -
    -

    Typedef htmlSAXHandlerPtr

    xmlSAXHandlerPtr htmlSAXHandlerPtr;
    -

    -

    -
    -

    Enum htmlStatus

    enum htmlStatus {
    -    HTML_NA = 0 /* something we don't check at all */
    -    HTML_INVALID = 1
    -    HTML_DEPRECATED = 2
    -    HTML_VALID = 4
    -    HTML_REQUIRED = 12 /*  VALID bit set so ( & HTML_VALID ) is TRUE */
    -};
    -

    -

    -
    - -
    -

    htmlAttrAllowed ()

    htmlStatus	htmlAttrAllowed		(const htmlElemDesc * elt, 
    const xmlChar * attr,
    int legacy)
    -

    Checks whether an attribute is valid for an element Has full knowledge of Required and Deprecated attributes

    -
    elt:HTML element
    attr:HTML attribute
    legacy:whether to allow deprecated attributes
    Returns:one of HTML_REQUIRED, HTML_VALID, HTML_DEPRECATED, HTML_INVALID
    -
    -

    htmlAutoCloseTag ()

    int	htmlAutoCloseTag		(htmlDocPtr doc, 
    const xmlChar * name,
    htmlNodePtr elem)
    -

    The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if the element or one of it's children would autoclose the given tag.

    -
    doc:the HTML document
    name:The tag name
    elem:the HTML element
    Returns:1 if autoclose, 0 otherwise
    -
    -

    htmlCreateMemoryParserCtxt ()

    htmlParserCtxtPtr	htmlCreateMemoryParserCtxt	(const char * buffer, 
    int size)
    -

    Create a parser context for an HTML in-memory document.

    -
    buffer:a pointer to a char array
    size:the size of the array
    Returns:the new parser context or NULL
    -
    -

    htmlCreatePushParserCtxt ()

    htmlParserCtxtPtr	htmlCreatePushParserCtxt	(htmlSAXHandlerPtr sax, 
    void * user_data,
    const char * chunk,
    int size,
    const char * filename,
    xmlCharEncoding enc)
    -

    Create a parser context for using the HTML parser in push mode The value of @filename is used for fetching external entities and error/warning reports.

    -
    sax:a SAX handler
    user_data:The user data returned on SAX callbacks
    chunk:a pointer to an array of chars
    size:number of chars in the array
    filename:an optional file name or URI
    enc:an optional encoding
    Returns:the new parser context or NULL
    -
    -

    htmlCtxtReadDoc ()

    htmlDocPtr	htmlCtxtReadDoc		(htmlParserCtxtPtr ctxt, 
    const xmlChar * cur,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context

    -
    ctxt:an HTML parser context
    cur:a pointer to a zero terminated string
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree
    -
    -

    htmlCtxtReadFd ()

    htmlDocPtr	htmlCtxtReadFd		(htmlParserCtxtPtr ctxt, 
    int fd,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML from a file descriptor and build a tree. This reuses the existing @ctxt parser context

    -
    ctxt:an HTML parser context
    fd:an open file descriptor
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree
    -
    -

    htmlCtxtReadFile ()

    htmlDocPtr	htmlCtxtReadFile	(htmlParserCtxtPtr ctxt, 
    const char * filename,
    const char * encoding,
    int options)
    -

    parse an XML file from the filesystem or the network. This reuses the existing @ctxt parser context

    -
    ctxt:an HTML parser context
    filename:a file or URL
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree
    -
    -

    htmlCtxtReadIO ()

    htmlDocPtr	htmlCtxtReadIO		(htmlParserCtxtPtr ctxt, 
    xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an HTML document from I/O functions and source and build a tree. This reuses the existing @ctxt parser context

    -
    ctxt:an HTML parser context
    ioread:an I/O read function
    ioclose:an I/O close function
    ioctx:an I/O handler
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree
    -
    -

    htmlCtxtReadMemory ()

    htmlDocPtr	htmlCtxtReadMemory	(htmlParserCtxtPtr ctxt, 
    const char * buffer,
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context

    -
    ctxt:an HTML parser context
    buffer:a pointer to a char array
    size:the size of the array
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree
    -
    -

    htmlCtxtReset ()

    void	htmlCtxtReset			(htmlParserCtxtPtr ctxt)
    -

    Reset a parser context

    -
    ctxt:an HTML parser context
    -
    -

    htmlCtxtUseOptions ()

    int	htmlCtxtUseOptions		(htmlParserCtxtPtr ctxt, 
    int options)
    -

    Applies the options to the parser context

    -
    ctxt:an HTML parser context
    options:a combination of htmlParserOption(s)
    Returns:0 in case of success, the set of unknown or unimplemented options in case of error.
    -
    -

    htmlElementAllowedHere ()

    int	htmlElementAllowedHere		(const htmlElemDesc * parent, 
    const xmlChar * elt)
    -

    Checks whether an HTML element may be a direct child of a parent element. Note - doesn't check for deprecated elements

    -
    parent:HTML parent element
    elt:HTML element
    Returns:1 if allowed; 0 otherwise.
    -
    -

    htmlElementStatusHere ()

    htmlStatus	htmlElementStatusHere	(const htmlElemDesc * parent, 
    const htmlElemDesc * elt)
    -

    Checks whether an HTML element may be a direct child of a parent element. and if so whether it is valid or deprecated.

    -
    parent:HTML parent element
    elt:HTML element
    Returns:one of HTML_VALID, HTML_DEPRECATED, HTML_INVALID
    -
    - -
    -

    htmlEntityLookup ()

    const htmlEntityDesc *	htmlEntityLookup	(const xmlChar * name)
    -

    Lookup the given entity in EntitiesTable TODO: the linear scan is really ugly, an hash table is really needed.

    -
    name:the entity name
    Returns:the associated htmlEntityDescPtr if found, NULL otherwise.
    -
    -

    htmlEntityValueLookup ()

    const htmlEntityDesc *	htmlEntityValueLookup	(unsigned int value)
    -

    Lookup the given entity in EntitiesTable TODO: the linear scan is really ugly, an hash table is really needed.

    -
    value:the entity's unicode value
    Returns:the associated htmlEntityDescPtr if found, NULL otherwise.
    -
    -

    htmlFreeParserCtxt ()

    void	htmlFreeParserCtxt		(htmlParserCtxtPtr ctxt)
    -

    Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed.

    -
    ctxt:an HTML parser context
    -
    - -
    -

    htmlIsAutoClosed ()

    int	htmlIsAutoClosed		(htmlDocPtr doc, 
    htmlNodePtr elem)
    -

    The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if a tag is autoclosed by one of it's child

    -
    doc:the HTML document
    elem:the HTML element
    Returns:1 if autoclosed, 0 otherwise
    -
    -

    htmlIsScriptAttribute ()

    int	htmlIsScriptAttribute		(const xmlChar * name)
    -

    Check if an attribute is of content type Script

    -
    name:an attribute name
    Returns:1 is the attribute is a script 0 otherwise
    -
    -

    htmlNodeStatus ()

    htmlStatus	htmlNodeStatus		(const htmlNodePtr node, 
    int legacy)
    -

    Checks whether the tree node is valid. Experimental (the author only uses the HTML enhancements in a SAX parser)

    -
    node:an htmlNodePtr in a tree
    legacy:whether to allow deprecated elements (YES is faster here for Element nodes)
    Returns:for Element nodes, a return from htmlElementAllowedHere (if legacy allowed) or htmlElementStatusHere (otherwise). for Attribute nodes, a return from htmlAttrAllowed for other nodes, HTML_NA (no checks performed)
    -
    -

    htmlParseCharRef ()

    int	htmlParseCharRef		(htmlParserCtxtPtr ctxt)
    -

    parse Reference declarations [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'

    -
    ctxt:an HTML parser context
    Returns:the value parsed (as an int)
    -
    -

    htmlParseChunk ()

    int	htmlParseChunk			(htmlParserCtxtPtr ctxt, 
    const char * chunk,
    int size,
    int terminate)
    -

    Parse a Chunk of memory

    -
    ctxt:an HTML parser context
    chunk:an char array
    size:the size in byte of the chunk
    terminate:last chunk indicator
    Returns:zero if no error, the xmlParserErrors otherwise.
    -
    -

    htmlParseDoc ()

    htmlDocPtr	htmlParseDoc		(xmlChar * cur, 
    const char * encoding)
    -

    parse an HTML in-memory document and build a tree.

    -
    cur:a pointer to an array of xmlChar
    encoding:a free form C string describing the HTML document encoding, or NULL
    Returns:the resulting document tree
    -
    -

    htmlParseDocument ()

    int	htmlParseDocument		(htmlParserCtxtPtr ctxt)
    -

    parse an HTML document (and build a tree if using the standard SAX interface).

    -
    ctxt:an HTML parser context
    Returns:0, -1 in case of error. the parser context is augmented as a result of the parsing.
    -
    -

    htmlParseElement ()

    void	htmlParseElement		(htmlParserCtxtPtr ctxt)
    -

    parse an HTML element, this is highly recursive [39] element ::= EmptyElemTag | STag content ETag [41] Attribute ::= Name Eq AttValue

    -
    ctxt:an HTML parser context
    -
    -

    htmlParseEntityRef ()

    const htmlEntityDesc *	htmlParseEntityRef	(htmlParserCtxtPtr ctxt, 
    const xmlChar ** str)
    -

    parse an HTML ENTITY references [68] EntityRef ::= '&' Name ';'

    -
    ctxt:an HTML parser context
    str:location to store the entity name
    Returns:the associated htmlEntityDescPtr if found, or NULL otherwise, if non-NULL *str will have to be freed by the caller.
    -
    -

    htmlParseFile ()

    htmlDocPtr	htmlParseFile		(const char * filename, 
    const char * encoding)
    -

    parse an HTML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

    -
    filename:the filename
    encoding:a free form C string describing the HTML document encoding, or NULL
    Returns:the resulting document tree
    -
    -

    htmlReadDoc ()

    htmlDocPtr	htmlReadDoc		(const xmlChar * cur, 
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML in-memory document and build a tree.

    -
    cur:a pointer to a zero terminated string
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree
    -
    -

    htmlReadFd ()

    htmlDocPtr	htmlReadFd		(int fd, 
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML from a file descriptor and build a tree.

    -
    fd:an open file descriptor
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree
    -
    -

    htmlReadFile ()

    htmlDocPtr	htmlReadFile		(const char * filename, 
    const char * encoding,
    int options)
    -

    parse an XML file from the filesystem or the network.

    -
    filename:a file or URL
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree
    -
    -

    htmlReadIO ()

    htmlDocPtr	htmlReadIO		(xmlInputReadCallback ioread, 
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an HTML document from I/O functions and source and build a tree.

    -
    ioread:an I/O read function
    ioclose:an I/O close function
    ioctx:an I/O handler
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree
    -
    -

    htmlReadMemory ()

    htmlDocPtr	htmlReadMemory		(const char * buffer, 
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML in-memory document and build a tree.

    -
    buffer:a pointer to a char array
    size:the size of the array
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree
    -
    -

    htmlSAXParseDoc ()

    htmlDocPtr	htmlSAXParseDoc		(xmlChar * cur, 
    const char * encoding,
    htmlSAXHandlerPtr sax,
    void * userData)
    -

    Parse an HTML in-memory document. If sax is not NULL, use the SAX callbacks to handle parse events. If sax is NULL, fallback to the default DOM behavior and return a tree.

    -
    cur:a pointer to an array of xmlChar
    encoding:a free form C string describing the HTML document encoding, or NULL
    sax:the SAX handler block
    userData:if using SAX, this pointer will be provided on callbacks.
    Returns:the resulting document tree unless SAX is NULL or the document is not well formed.
    -
    -

    htmlSAXParseFile ()

    htmlDocPtr	htmlSAXParseFile	(const char * filename, 
    const char * encoding,
    htmlSAXHandlerPtr sax,
    void * userData)
    -

    parse an HTML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.

    -
    filename:the filename
    encoding:a free form C string describing the HTML document encoding, or NULL
    sax:the SAX handler block
    userData:if using SAX, this pointer will be provided on callbacks.
    Returns:the resulting document tree unless SAX is NULL or the document is not well formed.
    -
    -

    htmlTagLookup ()

    const htmlElemDesc *	htmlTagLookup	(const xmlChar * tag)
    -

    Lookup the HTML tag in the ElementTable

    -
    tag:The tag name in lowercase
    Returns:the related htmlElemDescPtr or NULL if not found.
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-HTMLtree.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-HTMLtree.html deleted file mode 100644 index 6430f8b952..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-HTMLtree.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - HTMLtree: specific APIs to process HTML tree, especially serialization - - - - - - - - - - - - - - - - -

    - HTMLtree -

    -

    HTMLtree - specific APIs to process HTML tree, especially serialization

    -

    this module implements a few function needed to process tree in an HTML specific way.

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    #define HTML_ENTITY_REF_NODE;
    -#define HTML_COMMENT_NODE;
    -#define HTML_PRESERVE_NODE;
    -#define HTML_TEXT_NODE;
    -#define HTML_PI_NODE;
    -int	htmlNodeDumpFileFormat		(FILE * out, 
    xmlDocPtr doc,
    xmlNodePtr cur,
    const char * encoding,
    int format); -void htmlDocDumpMemory (xmlDocPtr cur,
    xmlChar ** mem,
    int * size); -int htmlSaveFile (const char * filename,
    xmlDocPtr cur); -int htmlDocDump (FILE * f,
    xmlDocPtr cur); -void htmlDocDumpMemoryFormat (xmlDocPtr cur,
    xmlChar ** mem,
    int * size,
    int format); -int htmlIsBooleanAttr (const xmlChar * name); -int htmlSaveFileFormat (const char * filename,
    xmlDocPtr cur,
    const char * encoding,
    int format); -void htmlNodeDumpFormatOutput (xmlOutputBufferPtr buf,
    xmlDocPtr doc,
    xmlNodePtr cur,
    const char * encoding,
    int format); -int htmlSetMetaEncoding (htmlDocPtr doc,
    const xmlChar * encoding); -int htmlSaveFileEnc (const char * filename,
    xmlDocPtr cur,
    const char * encoding); -void htmlNodeDumpOutput (xmlOutputBufferPtr buf,
    xmlDocPtr doc,
    xmlNodePtr cur,
    const char * encoding); -int htmlNodeDump (xmlBufferPtr buf,
    xmlDocPtr doc,
    xmlNodePtr cur); -htmlDocPtr htmlNewDoc (const xmlChar * URI,
    const xmlChar * ExternalID); -const xmlChar * htmlGetMetaEncoding (htmlDocPtr doc); -void htmlNodeDumpFile (FILE * out,
    xmlDocPtr doc,
    xmlNodePtr cur); -void htmlDocContentDumpFormatOutput (xmlOutputBufferPtr buf,
    xmlDocPtr cur,
    const char * encoding,
    int format); -htmlDocPtr htmlNewDocNoDtD (const xmlChar * URI,
    const xmlChar * ExternalID); -void htmlDocContentDumpOutput (xmlOutputBufferPtr buf,
    xmlDocPtr cur,
    const char * encoding); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro HTML_COMMENT_NODE

    #define HTML_COMMENT_NODE;
    -

    Macro. A comment in a HTML document is really implemented the same way as a comment in an XML document.

    -
    -
    -

    Macro HTML_ENTITY_REF_NODE

    #define HTML_ENTITY_REF_NODE;
    -

    Macro. An entity reference in a HTML document is really implemented the same way as an entity reference in an XML document.

    -
    -
    -

    Macro HTML_PI_NODE

    #define HTML_PI_NODE;
    -

    Macro. A processing instruction in a HTML document is really implemented the same way as a processing instruction in an XML document.

    -
    -
    -

    Macro HTML_PRESERVE_NODE

    #define HTML_PRESERVE_NODE;
    -

    Macro. A preserved node in a HTML document is really implemented the same way as a CDATA section in an XML document.

    -
    -
    -

    Macro HTML_TEXT_NODE

    #define HTML_TEXT_NODE;
    -

    Macro. A text node in a HTML document is really implemented the same way as a text node in an XML document.

    -
    -
    -

    htmlDocContentDumpFormatOutput ()

    void	htmlDocContentDumpFormatOutput	(xmlOutputBufferPtr buf, 
    xmlDocPtr cur,
    const char * encoding,
    int format)
    -

    Dump an HTML document.

    -
    buf:the HTML buffer output
    cur:the document
    encoding:the encoding string
    format:should formatting spaces been added
    -
    -

    htmlDocContentDumpOutput ()

    void	htmlDocContentDumpOutput	(xmlOutputBufferPtr buf, 
    xmlDocPtr cur,
    const char * encoding)
    -

    Dump an HTML document. Formating return/spaces are added.

    -
    buf:the HTML buffer output
    cur:the document
    encoding:the encoding string
    -
    -

    htmlDocDump ()

    int	htmlDocDump			(FILE * f, 
    xmlDocPtr cur)
    -

    Dump an HTML document to an open FILE.

    -
    f:the FILE*
    cur:the document
    Returns:the number of byte written or -1 in case of failure.
    -
    -

    htmlDocDumpMemory ()

    void	htmlDocDumpMemory		(xmlDocPtr cur, 
    xmlChar ** mem,
    int * size)
    -

    Dump an HTML document in memory and return the xmlChar * and it's size. It's up to the caller to free the memory.

    -
    cur:the document
    mem:OUT: the memory pointer
    size:OUT: the memory length
    -
    -

    htmlDocDumpMemoryFormat ()

    void	htmlDocDumpMemoryFormat		(xmlDocPtr cur, 
    xmlChar ** mem,
    int * size,
    int format)
    -

    Dump an HTML document in memory and return the xmlChar * and it's size. It's up to the caller to free the memory.

    -
    cur:the document
    mem:OUT: the memory pointer
    size:OUT: the memory length
    format:should formatting spaces been added
    -
    -

    htmlGetMetaEncoding ()

    const xmlChar *	htmlGetMetaEncoding	(htmlDocPtr doc)
    -

    Encoding definition lookup in the Meta tags

    -
    doc:the document
    Returns:the current encoding as flagged in the HTML source
    -
    -

    htmlIsBooleanAttr ()

    int	htmlIsBooleanAttr		(const xmlChar * name)
    -

    Determine if a given attribute is a boolean attribute.

    -
    name:the name of the attribute to check
    Returns:false if the attribute is not boolean, true otherwise.
    -
    -

    htmlNewDoc ()

    htmlDocPtr	htmlNewDoc		(const xmlChar * URI, 
    const xmlChar * ExternalID)
    -

    Creates a new HTML document

    -
    URI:URI for the dtd, or NULL
    ExternalID:the external ID of the DTD, or NULL
    Returns:a new document
    -
    -

    htmlNewDocNoDtD ()

    htmlDocPtr	htmlNewDocNoDtD		(const xmlChar * URI, 
    const xmlChar * ExternalID)
    -

    Creates a new HTML document without a DTD node if @URI and @ExternalID are NULL

    -
    URI:URI for the dtd, or NULL
    ExternalID:the external ID of the DTD, or NULL
    Returns:a new document, do not initialize the DTD if not provided
    -
    -

    htmlNodeDump ()

    int	htmlNodeDump			(xmlBufferPtr buf, 
    xmlDocPtr doc,
    xmlNodePtr cur)
    -

    Dump an HTML node, recursive behaviour,children are printed too, and formatting returns are added.

    -
    buf:the HTML buffer output
    doc:the document
    cur:the current node
    Returns:the number of byte written or -1 in case of error
    -
    -

    htmlNodeDumpFile ()

    void	htmlNodeDumpFile		(FILE * out, 
    xmlDocPtr doc,
    xmlNodePtr cur)
    -

    Dump an HTML node, recursive behaviour,children are printed too, and formatting returns are added.

    -
    out:the FILE pointer
    doc:the document
    cur:the current node
    -
    -

    htmlNodeDumpFileFormat ()

    int	htmlNodeDumpFileFormat		(FILE * out, 
    xmlDocPtr doc,
    xmlNodePtr cur,
    const char * encoding,
    int format)
    -

    Dump an HTML node, recursive behaviour,children are printed too. TODO: if encoding == NULL try to save in the doc encoding

    -
    out:the FILE pointer
    doc:the document
    cur:the current node
    encoding:the document encoding
    format:should formatting spaces been added
    Returns:the number of byte written or -1 in case of failure.
    -
    -

    htmlNodeDumpFormatOutput ()

    void	htmlNodeDumpFormatOutput	(xmlOutputBufferPtr buf, 
    xmlDocPtr doc,
    xmlNodePtr cur,
    const char * encoding,
    int format)
    -

    Dump an HTML node, recursive behaviour,children are printed too.

    -
    buf:the HTML buffer output
    doc:the document
    cur:the current node
    encoding:the encoding string
    format:should formatting spaces been added
    -
    -

    htmlNodeDumpOutput ()

    void	htmlNodeDumpOutput		(xmlOutputBufferPtr buf, 
    xmlDocPtr doc,
    xmlNodePtr cur,
    const char * encoding)
    -

    Dump an HTML node, recursive behaviour,children are printed too, and formatting returns/spaces are added.

    -
    buf:the HTML buffer output
    doc:the document
    cur:the current node
    encoding:the encoding string
    -
    -

    htmlSaveFile ()

    int	htmlSaveFile			(const char * filename, 
    xmlDocPtr cur)
    -

    Dump an HTML document to a file. If @filename is "-" the stdout file is used.

    -
    filename:the filename (or URL)
    cur:the document
    Returns:the number of byte written or -1 in case of failure.
    -
    -

    htmlSaveFileEnc ()

    int	htmlSaveFileEnc			(const char * filename, 
    xmlDocPtr cur,
    const char * encoding)
    -

    Dump an HTML document to a file using a given encoding and formatting returns/spaces are added.

    -
    filename:the filename
    cur:the document
    encoding:the document encoding
    Returns:the number of byte written or -1 in case of failure.
    -
    -

    htmlSaveFileFormat ()

    int	htmlSaveFileFormat		(const char * filename, 
    xmlDocPtr cur,
    const char * encoding,
    int format)
    -

    Dump an HTML document to a file using a given encoding.

    -
    filename:the filename
    cur:the document
    encoding:the document encoding
    format:should formatting spaces been added
    Returns:the number of byte written or -1 in case of failure.
    -
    -

    htmlSetMetaEncoding ()

    int	htmlSetMetaEncoding		(htmlDocPtr doc, 
    const xmlChar * encoding)
    -

    Sets the current encoding in the Meta tags NOTE: this will not change the document content encoding, just the META flag associated.

    -
    doc:the document
    encoding:the encoding string
    Returns:0 in case of success and -1 in case of error
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-SAX.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-SAX.html deleted file mode 100644 index 5163b7b9bb..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-SAX.html +++ /dev/null @@ -1,243 +0,0 @@ - - - - - SAX: Old SAX version 1 handler, deprecated - - - - - - - - - - - - - - - - -

    - SAX -

    -

    SAX - Old SAX version 1 handler, deprecated

    -

    DEPRECATED set of SAX version 1 interfaces used to build the DOM tree.

    -

    WARNING: this module is deprecated !

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    void	comment			(void * ctx, 
    const xmlChar * value); -int checkNamespace (void * ctx,
    xmlChar * namespace); -int getColumnNumber (void * ctx); -void entityDecl (void * ctx,
    const xmlChar * name,
    int type,
    const xmlChar * publicId,
    const xmlChar * systemId,
    xmlChar * content); -void attribute (void * ctx,
    const xmlChar * fullname,
    const xmlChar * value); -xmlNsPtr getNamespace (void * ctx); -void setDocumentLocator (void * ctx,
    xmlSAXLocatorPtr loc); -void initxmlDefaultSAXHandler (xmlSAXHandlerV1 * hdlr,
    int warning); -void ignorableWhitespace (void * ctx,
    const xmlChar * ch,
    int len); -int hasExternalSubset (void * ctx); -void unparsedEntityDecl (void * ctx,
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId,
    const xmlChar * notationName); -void globalNamespace (void * ctx,
    const xmlChar * href,
    const xmlChar * prefix); -int hasInternalSubset (void * ctx); -void reference (void * ctx,
    const xmlChar * name); -void notationDecl (void * ctx,
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId); -const xmlChar * getSystemId (void * ctx); -void externalSubset (void * ctx,
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID); -xmlParserInputPtr resolveEntity (void * ctx,
    const xmlChar * publicId,
    const xmlChar * systemId); -void startDocument (void * ctx); -void setNamespace (void * ctx,
    const xmlChar * name); -void cdataBlock (void * ctx,
    const xmlChar * value,
    int len); -const xmlChar * getPublicId (void * ctx); -void inithtmlDefaultSAXHandler (xmlSAXHandlerV1 * hdlr); -void processingInstruction (void * ctx,
    const xmlChar * target,
    const xmlChar * data); -void endElement (void * ctx,
    const xmlChar * name); -void namespaceDecl (void * ctx,
    const xmlChar * href,
    const xmlChar * prefix); -void initdocbDefaultSAXHandler (xmlSAXHandlerV1 * hdlr); -xmlEntityPtr getEntity (void * ctx,
    const xmlChar * name); -void characters (void * ctx,
    const xmlChar * ch,
    int len); -void elementDecl (void * ctx,
    const xmlChar * name,
    int type,
    xmlElementContentPtr content); -void startElement (void * ctx,
    const xmlChar * fullname,
    const xmlChar ** atts); -xmlEntityPtr getParameterEntity (void * ctx,
    const xmlChar * name); -void attributeDecl (void * ctx,
    const xmlChar * elem,
    const xmlChar * fullname,
    int type,
    int def,
    const xmlChar * defaultValue,
    xmlEnumerationPtr tree); -int isStandalone (void * ctx); -void internalSubset (void * ctx,
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID); -void endDocument (void * ctx); -int getLineNumber (void * ctx); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    attribute ()

    void	attribute			(void * ctx, 
    const
    xmlChar * fullname,
    const xmlChar * value)
    -

    Handle an attribute that has been read by the parser. The default handling is to convert the attribute into an DOM subtree and past it in a new xmlAttr element added to the element. DEPRECATED: use xmlSAX2Attribute()

    -
    ctx:the user data (XML parser context)
    fullname:The attribute name, including namespace prefix
    value:The attribute value
    -
    -

    attributeDecl ()

    void	attributeDecl			(void * ctx, 
    const
    xmlChar * elem,
    const xmlChar * fullname,
    int type,
    int def,
    const xmlChar * defaultValue,
    xmlEnumerationPtr tree)
    -

    An attribute definition has been parsed DEPRECATED: use xmlSAX2AttributeDecl()

    -
    ctx:the user data (XML parser context)
    elem:the name of the element
    fullname:the attribute name
    type:the attribute type
    def:the type of default value
    defaultValue:the attribute default value
    tree:the tree of enumerated value set
    -
    -

    cdataBlock ()

    void	cdataBlock			(void * ctx, 
    const
    xmlChar * value,
    int len)
    -

    called when a pcdata block has been parsed DEPRECATED: use xmlSAX2CDataBlock()

    -
    ctx:the user data (XML parser context)
    value:The pcdata content
    len:the block length
    -
    -

    characters ()

    void	characters			(void * ctx, 
    const
    xmlChar * ch,
    int len)
    -

    receiving some chars from the parser. DEPRECATED: use xmlSAX2Characters()

    -
    ctx:the user data (XML parser context)
    ch:a xmlChar string
    len:the number of xmlChar
    -
    -

    checkNamespace ()

    int	checkNamespace			(void * ctx, 
    xmlChar * namespace)
    -

    Check that the current element namespace is the same as the one read upon parsing. DEPRECATED

    -
    ctx:the user data (XML parser context)
    namespace:the namespace to check against
    Returns:1 if true 0 otherwise
    -
    -

    comment ()

    void	comment			(void * ctx, 
    const
    xmlChar * value)
    -

    A comment has been parsed. DEPRECATED: use xmlSAX2Comment()

    -
    ctx:the user data (XML parser context)
    value:the comment content
    -
    -

    elementDecl ()

    void	elementDecl			(void * ctx, 
    const
    xmlChar * name,
    int type,
    xmlElementContentPtr content)
    -

    An element definition has been parsed DEPRECATED: use xmlSAX2ElementDecl()

    -
    ctx:the user data (XML parser context)
    name:the element name
    type:the element type
    content:the element value tree
    -
    - -
    -

    endElement ()

    void	endElement			(void * ctx, 
    const
    xmlChar * name)
    -

    called when the end of an element has been detected. DEPRECATED: use xmlSAX2EndElement()

    -
    ctx:the user data (XML parser context)
    name:The element name
    -
    -

    entityDecl ()

    void	entityDecl			(void * ctx, 
    const
    xmlChar * name,
    int type,
    const xmlChar * publicId,
    const xmlChar * systemId,
    xmlChar * content)
    -

    An entity definition has been parsed DEPRECATED: use xmlSAX2EntityDecl()

    -
    ctx:the user data (XML parser context)
    name:the entity name
    type:the entity type
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    content:the entity value (without processing).
    -
    -

    externalSubset ()

    void	externalSubset			(void * ctx, 
    const
    xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    Callback on external subset declaration. DEPRECATED: use xmlSAX2ExternalSubset()

    -
    ctx:the user data (XML parser context)
    name:the root element name
    ExternalID:the external ID
    SystemID:the SYSTEM ID (e.g. filename or URL)
    -
    - -
    -

    getEntity ()

    xmlEntityPtr	getEntity		(void * ctx, 
    const xmlChar * name)
    -

    Get an entity by name DEPRECATED: use xmlSAX2GetEntity()

    -
    ctx:the user data (XML parser context)
    name:The entity name
    Returns:the xmlEntityPtr if found.
    -
    - -
    -

    getNamespace ()

    xmlNsPtr	getNamespace		(void * ctx)
    -

    Get the current element namespace. DEPRECATED

    -
    ctx:the user data (XML parser context)
    Returns:the xmlNsPtr or NULL if none
    -
    -

    getParameterEntity ()

    xmlEntityPtr	getParameterEntity	(void * ctx, 
    const xmlChar * name)
    -

    Get a parameter entity by name DEPRECATED: use xmlSAX2GetParameterEntity()

    -
    ctx:the user data (XML parser context)
    name:The entity name
    Returns:the xmlEntityPtr if found.
    -
    -

    getPublicId ()

    const xmlChar *	getPublicId		(void * ctx)
    -

    Provides the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN" DEPRECATED: use xmlSAX2GetPublicId()

    -
    ctx:the user data (XML parser context)
    Returns:a xmlChar *
    -
    -

    getSystemId ()

    const xmlChar *	getSystemId		(void * ctx)
    -

    Provides the system ID, basically URL or filename e.g. http://www.sgmlsource.com/dtds/memo.dtd DEPRECATED: use xmlSAX2GetSystemId()

    -
    ctx:the user data (XML parser context)
    Returns:a xmlChar *
    -
    -

    globalNamespace ()

    void	globalNamespace			(void * ctx, 
    const
    xmlChar * href,
    const xmlChar * prefix)
    -

    An old global namespace has been parsed. DEPRECATED

    -
    ctx:the user data (XML parser context)
    href:the namespace associated URN
    prefix:the namespace prefix
    -
    - -
    -
    -
    -

    ignorableWhitespace ()

    void	ignorableWhitespace		(void * ctx, 
    const
    xmlChar * ch,
    int len)
    -

    receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use characters DEPRECATED: use xmlSAX2IgnorableWhitespace()

    -
    ctx:the user data (XML parser context)
    ch:a xmlChar string
    len:the number of xmlChar
    -
    -

    initdocbDefaultSAXHandler ()

    void	initdocbDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr)
    -

    Initialize the default DocBook SAX version 1 handler DEPRECATED: use xmlSAX2InitDocbDefaultSAXHandler() for the new SAX2 blocks

    -
    hdlr:the SAX handler
    -
    -

    inithtmlDefaultSAXHandler ()

    void	inithtmlDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr)
    -

    Initialize the default HTML SAX version 1 handler DEPRECATED: use xmlSAX2InitHtmlDefaultSAXHandler() for the new SAX2 blocks

    -
    hdlr:the SAX handler
    -
    -

    initxmlDefaultSAXHandler ()

    void	initxmlDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr, 
    int warning)
    -

    Initialize the default XML SAX version 1 handler DEPRECATED: use xmlSAX2InitDefaultSAXHandler() for the new SAX2 blocks

    -
    hdlr:the SAX handler
    warning:flag if non-zero sets the handler warning procedure
    -
    -

    internalSubset ()

    void	internalSubset			(void * ctx, 
    const
    xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    Callback on internal subset declaration. DEPRECATED: use xmlSAX2InternalSubset()

    -
    ctx:the user data (XML parser context)
    name:the root element name
    ExternalID:the external ID
    SystemID:the SYSTEM ID (e.g. filename or URL)
    -
    - -
    -

    namespaceDecl ()

    void	namespaceDecl			(void * ctx, 
    const
    xmlChar * href,
    const xmlChar * prefix)
    -

    A namespace has been parsed. DEPRECATED

    -
    ctx:the user data (XML parser context)
    href:the namespace associated URN
    prefix:the namespace prefix
    -
    -

    notationDecl ()

    void	notationDecl			(void * ctx, 
    const
    xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId)
    -

    What to do when a notation declaration has been parsed. DEPRECATED: use xmlSAX2NotationDecl()

    -
    ctx:the user data (XML parser context)
    name:The name of the notation
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    -
    -

    processingInstruction ()

    void	processingInstruction		(void * ctx, 
    const
    xmlChar * target,
    const xmlChar * data)
    -

    A processing instruction has been parsed. DEPRECATED: use xmlSAX2ProcessingInstruction()

    -
    ctx:the user data (XML parser context)
    target:the target name
    data:the PI data's
    -
    -

    reference ()

    void	reference			(void * ctx, 
    const
    xmlChar * name)
    -

    called when an entity reference is detected. DEPRECATED: use xmlSAX2Reference()

    -
    ctx:the user data (XML parser context)
    name:The entity name
    -
    -

    resolveEntity ()

    xmlParserInputPtr	resolveEntity	(void * ctx, 
    const xmlChar * publicId,
    const xmlChar * systemId)
    -

    The entity loader, to control the loading of external entities, the application can either: - override this resolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine DEPRECATED: use xmlSAX2ResolveEntity()

    -
    ctx:the user data (XML parser context)
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    Returns:the xmlParserInputPtr if inlined or NULL for DOM behaviour.
    -
    -

    setDocumentLocator ()

    void	setDocumentLocator		(void * ctx, 
    xmlSAXLocatorPtr loc)
    -

    Receive the document locator at startup, actually xmlDefaultSAXLocator Everything is available on the context, so this is useless in our case. DEPRECATED

    -
    ctx:the user data (XML parser context)
    loc:A SAX Locator
    -
    -

    setNamespace ()

    void	setNamespace			(void * ctx, 
    const
    xmlChar * name)
    -

    Set the current element namespace. DEPRECATED

    -
    ctx:the user data (XML parser context)
    name:the namespace prefix
    -
    - -
    -

    startElement ()

    void	startElement			(void * ctx, 
    const
    xmlChar * fullname,
    const xmlChar ** atts)
    -

    called when an opening tag has been processed. DEPRECATED: use xmlSAX2StartElement()

    -
    ctx:the user data (XML parser context)
    fullname:The element name, including namespace prefix
    atts:An array of name/value attributes pairs, NULL terminated
    -
    -

    unparsedEntityDecl ()

    void	unparsedEntityDecl		(void * ctx, 
    const
    xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId,
    const xmlChar * notationName)
    -

    What to do when an unparsed entity declaration is parsed DEPRECATED: use xmlSAX2UnparsedEntityDecl()

    -
    ctx:the user data (XML parser context)
    name:The name of the entity
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    notationName:the name of the notation
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-SAX2.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-SAX2.html deleted file mode 100644 index e80199ef6e..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-SAX2.html +++ /dev/null @@ -1,247 +0,0 @@ - - - - - SAX2: SAX2 parser interface used to build the DOM tree - - - - - - - - - - - - - - - - -

    - SAX2 -

    -

    SAX2 - SAX2 parser interface used to build the DOM tree

    -

    those are the default SAX2 interfaces used by the library when building DOM tree.

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    void	xmlSAX2EndElementNs		(void * ctx, 
    const xmlChar * localname,
    const xmlChar * prefix,
    const xmlChar * URI); -void xmlSAX2Reference (void * ctx,
    const xmlChar * name); -void xmlSAX2ElementDecl (void * ctx,
    const xmlChar * name,
    int type,
    xmlElementContentPtr content); -void xmlSAX2AttributeDecl (void * ctx,
    const xmlChar * elem,
    const xmlChar * fullname,
    int type,
    int def,
    const xmlChar * defaultValue,
    xmlEnumerationPtr tree); -void xmlSAX2Comment (void * ctx,
    const xmlChar * value); -int xmlSAX2GetColumnNumber (void * ctx); -xmlEntityPtr xmlSAX2GetEntity (void * ctx,
    const xmlChar * name); -void xmlSAX2UnparsedEntityDecl (void * ctx,
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId,
    const xmlChar * notationName); -void xmlSAX2InitDocbDefaultSAXHandler (xmlSAXHandler * hdlr); -int xmlSAXVersion (xmlSAXHandler * hdlr,
    int version); -void xmlSAX2IgnorableWhitespace (void * ctx,
    const xmlChar * ch,
    int len); -void xmlSAX2NotationDecl (void * ctx,
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId); -void xmlSAX2StartDocument (void * ctx); -void xmlSAX2EndElement (void * ctx,
    const xmlChar * name); -xmlParserInputPtr xmlSAX2ResolveEntity (void * ctx,
    const xmlChar * publicId,
    const xmlChar * systemId); -void xmlSAX2ExternalSubset (void * ctx,
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID); -const xmlChar * xmlSAX2GetPublicId (void * ctx); -int xmlSAX2IsStandalone (void * ctx); -void xmlSAX2EndDocument (void * ctx); -void xmlSAX2ProcessingInstruction (void * ctx,
    const xmlChar * target,
    const xmlChar * data); -void xmlSAX2InternalSubset (void * ctx,
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID); -void xmlSAX2Characters (void * ctx,
    const xmlChar * ch,
    int len); -int xmlSAXDefaultVersion (int version); -void xmlSAX2StartElement (void * ctx,
    const xmlChar * fullname,
    const xmlChar ** atts); -void xmlSAX2SetDocumentLocator (void * ctx,
    xmlSAXLocatorPtr loc); -void xmlSAX2CDataBlock (void * ctx,
    const xmlChar * value,
    int len); -void xmlSAX2StartElementNs (void * ctx,
    const xmlChar * localname,
    const xmlChar * prefix,
    const xmlChar * URI,
    int nb_namespaces,
    const xmlChar ** namespaces,
    int nb_attributes,
    int nb_defaulted,
    const xmlChar ** attributes); -int xmlSAX2HasExternalSubset (void * ctx); -void htmlDefaultSAXHandlerInit (void); -int xmlSAX2GetLineNumber (void * ctx); -int xmlSAX2HasInternalSubset (void * ctx); -void xmlSAX2InitHtmlDefaultSAXHandler (xmlSAXHandler * hdlr); -void docbDefaultSAXHandlerInit (void); -void xmlDefaultSAXHandlerInit (void); -void xmlSAX2InitDefaultSAXHandler (xmlSAXHandler * hdlr,
    int warning); -xmlEntityPtr xmlSAX2GetParameterEntity (void * ctx,
    const xmlChar * name); -const xmlChar * xmlSAX2GetSystemId (void * ctx); -void xmlSAX2EntityDecl (void * ctx,
    const xmlChar * name,
    int type,
    const xmlChar * publicId,
    const xmlChar * systemId,
    xmlChar * content); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    - -
    -
    -
    -
    -
    -

    xmlSAX2AttributeDecl ()

    void	xmlSAX2AttributeDecl		(void * ctx, 
    const
    xmlChar * elem,
    const xmlChar * fullname,
    int type,
    int def,
    const xmlChar * defaultValue,
    xmlEnumerationPtr tree)
    -

    An attribute definition has been parsed

    -
    ctx:the user data (XML parser context)
    elem:the name of the element
    fullname:the attribute name
    type:the attribute type
    def:the type of default value
    defaultValue:the attribute default value
    tree:the tree of enumerated value set
    -
    -

    xmlSAX2CDataBlock ()

    void	xmlSAX2CDataBlock		(void * ctx, 
    const
    xmlChar * value,
    int len)
    -

    called when a pcdata block has been parsed

    -
    ctx:the user data (XML parser context)
    value:The pcdata content
    len:the block length
    -
    -

    xmlSAX2Characters ()

    void	xmlSAX2Characters		(void * ctx, 
    const
    xmlChar * ch,
    int len)
    -

    receiving some chars from the parser.

    -
    ctx:the user data (XML parser context)
    ch:a xmlChar string
    len:the number of xmlChar
    -
    -

    xmlSAX2Comment ()

    void	xmlSAX2Comment			(void * ctx, 
    const
    xmlChar * value)
    -

    A xmlSAX2Comment has been parsed.

    -
    ctx:the user data (XML parser context)
    value:the xmlSAX2Comment content
    -
    -

    xmlSAX2ElementDecl ()

    void	xmlSAX2ElementDecl		(void * ctx, 
    const
    xmlChar * name,
    int type,
    xmlElementContentPtr content)
    -

    An element definition has been parsed

    -
    ctx:the user data (XML parser context)
    name:the element name
    type:the element type
    content:the element value tree
    -
    - -
    -

    xmlSAX2EndElement ()

    void	xmlSAX2EndElement		(void * ctx, 
    const
    xmlChar * name)
    -

    called when the end of an element has been detected.

    -
    ctx:the user data (XML parser context)
    name:The element name
    -
    -

    xmlSAX2EndElementNs ()

    void	xmlSAX2EndElementNs		(void * ctx, 
    const
    xmlChar * localname,
    const xmlChar * prefix,
    const xmlChar * URI)
    -

    SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element.

    -
    ctx:the user data (XML parser context)
    localname:the local name of the element
    prefix:the element namespace prefix if available
    URI:the element namespace name if available
    -
    -

    xmlSAX2EntityDecl ()

    void	xmlSAX2EntityDecl		(void * ctx, 
    const
    xmlChar * name,
    int type,
    const xmlChar * publicId,
    const xmlChar * systemId,
    xmlChar * content)
    -

    An entity definition has been parsed

    -
    ctx:the user data (XML parser context)
    name:the entity name
    type:the entity type
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    content:the entity value (without processing).
    -
    -

    xmlSAX2ExternalSubset ()

    void	xmlSAX2ExternalSubset		(void * ctx, 
    const
    xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    Callback on external subset declaration.

    -
    ctx:the user data (XML parser context)
    name:the root element name
    ExternalID:the external ID
    SystemID:the SYSTEM ID (e.g. filename or URL)
    -
    - -
    -

    xmlSAX2GetEntity ()

    xmlEntityPtr	xmlSAX2GetEntity	(void * ctx, 
    const xmlChar * name)
    -

    Get an entity by name

    -
    ctx:the user data (XML parser context)
    name:The entity name
    Returns:the xmlEntityPtr if found.
    -
    - -
    -

    xmlSAX2GetParameterEntity ()

    xmlEntityPtr	xmlSAX2GetParameterEntity	(void * ctx, 
    const xmlChar * name)
    -

    Get a parameter entity by name

    -
    ctx:the user data (XML parser context)
    name:The entity name
    Returns:the xmlEntityPtr if found.
    -
    -

    xmlSAX2GetPublicId ()

    const xmlChar *	xmlSAX2GetPublicId	(void * ctx)
    -

    Provides the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN"

    -
    ctx:the user data (XML parser context)
    Returns:a xmlChar *
    -
    -

    xmlSAX2GetSystemId ()

    const xmlChar *	xmlSAX2GetSystemId	(void * ctx)
    -

    Provides the system ID, basically URL or filename e.g. http://www.sgmlsource.com/dtds/memo.dtd

    -
    ctx:the user data (XML parser context)
    Returns:a xmlChar *
    -
    - -
    -
    -
    -

    xmlSAX2IgnorableWhitespace ()

    void	xmlSAX2IgnorableWhitespace	(void * ctx, 
    const
    xmlChar * ch,
    int len)
    -

    receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use xmlSAX2Characters

    -
    ctx:the user data (XML parser context)
    ch:a xmlChar string
    len:the number of xmlChar
    -
    -

    xmlSAX2InitDefaultSAXHandler ()

    void	xmlSAX2InitDefaultSAXHandler	(xmlSAXHandler * hdlr, 
    int warning)
    -

    Initialize the default XML SAX2 handler

    -
    hdlr:the SAX handler
    warning:flag if non-zero sets the handler warning procedure
    -
    -

    xmlSAX2InitDocbDefaultSAXHandler ()

    void	xmlSAX2InitDocbDefaultSAXHandler	(xmlSAXHandler * hdlr)
    -

    Initialize the default DocBook SAX2 handler

    -
    hdlr:the SAX handler
    -
    -

    xmlSAX2InitHtmlDefaultSAXHandler ()

    void	xmlSAX2InitHtmlDefaultSAXHandler	(xmlSAXHandler * hdlr)
    -

    Initialize the default HTML SAX2 handler

    -
    hdlr:the SAX handler
    -
    -

    xmlSAX2InternalSubset ()

    void	xmlSAX2InternalSubset		(void * ctx, 
    const
    xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    Callback on internal subset declaration.

    -
    ctx:the user data (XML parser context)
    name:the root element name
    ExternalID:the external ID
    SystemID:the SYSTEM ID (e.g. filename or URL)
    -
    - -
    -

    xmlSAX2NotationDecl ()

    void	xmlSAX2NotationDecl		(void * ctx, 
    const
    xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId)
    -

    What to do when a notation declaration has been parsed.

    -
    ctx:the user data (XML parser context)
    name:The name of the notation
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    -
    -

    xmlSAX2ProcessingInstruction ()

    void	xmlSAX2ProcessingInstruction	(void * ctx, 
    const
    xmlChar * target,
    const xmlChar * data)
    -

    A processing instruction has been parsed.

    -
    ctx:the user data (XML parser context)
    target:the target name
    data:the PI data's
    -
    -

    xmlSAX2Reference ()

    void	xmlSAX2Reference		(void * ctx, 
    const
    xmlChar * name)
    -

    called when an entity xmlSAX2Reference is detected.

    -
    ctx:the user data (XML parser context)
    name:The entity name
    -
    -

    xmlSAX2ResolveEntity ()

    xmlParserInputPtr	xmlSAX2ResolveEntity	(void * ctx, 
    const xmlChar * publicId,
    const xmlChar * systemId)
    -

    The entity loader, to control the loading of external entities, the application can either: - override this xmlSAX2ResolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine

    -
    ctx:the user data (XML parser context)
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    Returns:the xmlParserInputPtr if inlined or NULL for DOM behaviour.
    -
    -

    xmlSAX2SetDocumentLocator ()

    void	xmlSAX2SetDocumentLocator	(void * ctx, 
    xmlSAXLocatorPtr loc)
    -

    Receive the document locator at startup, actually xmlDefaultSAXLocator Everything is available on the context, so this is useless in our case.

    -
    ctx:the user data (XML parser context)
    loc:A SAX Locator
    -
    - -
    -

    xmlSAX2StartElement ()

    void	xmlSAX2StartElement		(void * ctx, 
    const
    xmlChar * fullname,
    const xmlChar ** atts)
    -

    called when an opening tag has been processed.

    -
    ctx:the user data (XML parser context)
    fullname:The element name, including namespace prefix
    atts:An array of name/value attributes pairs, NULL terminated
    -
    -

    xmlSAX2StartElementNs ()

    void	xmlSAX2StartElementNs		(void * ctx, 
    const
    xmlChar * localname,
    const xmlChar * prefix,
    const xmlChar * URI,
    int nb_namespaces,
    const xmlChar ** namespaces,
    int nb_attributes,
    int nb_defaulted,
    const xmlChar ** attributes)
    -

    SAX2 callback when an element start has been detected by the parser. It provides the namespace informations for the element, as well as the new namespace declarations on the element.

    -
    ctx:the user data (XML parser context)
    localname:the local name of the element
    prefix:the element namespace prefix if available
    URI:the element namespace name if available
    nb_namespaces:number of namespace definitions on that node
    namespaces:pointer to the array of prefix/URI pairs namespace definitions
    nb_attributes:the number of attributes on that node
    nb_defaulted:the number of defaulted attributes.
    attributes:pointer to the array of (localname/prefix/URI/value/end) attribute values.
    -
    -

    xmlSAX2UnparsedEntityDecl ()

    void	xmlSAX2UnparsedEntityDecl	(void * ctx, 
    const
    xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId,
    const xmlChar * notationName)
    -

    What to do when an unparsed entity declaration is parsed

    -
    ctx:the user data (XML parser context)
    name:The name of the entity
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    notationName:the name of the notation
    -
    - -
    -

    xmlSAXVersion ()

    int	xmlSAXVersion			(xmlSAXHandler * hdlr, 
    int version)
    -

    Initialize the default XML SAX handler according to the version

    -
    hdlr:the SAX handler
    version:the version, 1 or 2
    Returns:0 in case of success and -1 in case of error.
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-c14n.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-c14n.html deleted file mode 100644 index 72f53b6576..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-c14n.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - c14n: Provide Canonical XML and Exclusive XML Canonicalization - - - - - - - - - - - - - - - - -

    - c14n -

    -

    c14n - Provide Canonical XML and Exclusive XML Canonicalization

    -

    the c14n modules provides a "Canonical XML" implementation

    -

    Author(s): Aleksey Sanin <aleksey@aleksey.com>

    -
    -

    Synopsis

    -
    int	xmlC14NExecute			(xmlDocPtr doc, 
    xmlC14NIsVisibleCallback is_visible_callback,
    void * user_data,
    int exclusive,
    xmlChar ** inclusive_ns_prefixes,
    int with_comments,
    xmlOutputBufferPtr buf); -int xmlC14NDocSaveTo (xmlDocPtr doc,
    xmlNodeSetPtr nodes,
    int exclusive,
    xmlChar ** inclusive_ns_prefixes,
    int with_comments,
    xmlOutputBufferPtr buf); -typedef int xmlC14NIsVisibleCallback (void * user_data,
    xmlNodePtr node,
    xmlNodePtr parent); -int xmlC14NDocSave (xmlDocPtr doc,
    xmlNodeSetPtr nodes,
    int exclusive,
    xmlChar ** inclusive_ns_prefixes,
    int with_comments,
    const char * filename,
    int compression); -int xmlC14NDocDumpMemory (xmlDocPtr doc,
    xmlNodeSetPtr nodes,
    int exclusive,
    xmlChar ** inclusive_ns_prefixes,
    int with_comments,
    xmlChar ** doc_txt_ptr); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    - -
    -

    xmlC14NDocDumpMemory ()

    int	xmlC14NDocDumpMemory		(xmlDocPtr doc, 
    xmlNodeSetPtr nodes,
    int exclusive,
    xmlChar ** inclusive_ns_prefixes,
    int with_comments,
    xmlChar ** doc_txt_ptr)
    -

    Dumps the canonized image of given XML document into memory. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n)

    -
    doc:the XML document for canonization
    nodes:the nodes set to be included in the canonized image or NULL if all document nodes should be included
    exclusive:the exclusive flag (0 - non-exclusive canonicalization; otherwise - exclusive canonicalization)
    inclusive_ns_prefixes:the list of inclusive namespace prefixes ended with a NULL or NULL if there is no inclusive namespaces (only for exclusive canonicalization, ignored otherwise)
    with_comments:include comments in the result (!=0) or not (==0)
    doc_txt_ptr:the memory pointer for allocated canonical XML text; the caller of this functions is responsible for calling xmlFree() to free allocated memory
    Returns:the number of bytes written on success or a negative value on fail
    -
    -

    xmlC14NDocSave ()

    int	xmlC14NDocSave			(xmlDocPtr doc, 
    xmlNodeSetPtr nodes,
    int exclusive,
    xmlChar ** inclusive_ns_prefixes,
    int with_comments,
    const char * filename,
    int compression)
    -

    Dumps the canonized image of given XML document into the file. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n)

    -
    doc:the XML document for canonization
    nodes:the nodes set to be included in the canonized image or NULL if all document nodes should be included
    exclusive:the exclusive flag (0 - non-exclusive canonicalization; otherwise - exclusive canonicalization)
    inclusive_ns_prefixes:the list of inclusive namespace prefixes ended with a NULL or NULL if there is no inclusive namespaces (only for exclusive canonicalization, ignored otherwise)
    with_comments:include comments in the result (!=0) or not (==0)
    filename:the filename to store canonical XML image
    compression:the compression level (zlib requred): -1 - libxml default, 0 - uncompressed, >0 - compression level
    Returns:the number of bytes written success or a negative value on fail
    -
    -

    xmlC14NDocSaveTo ()

    int	xmlC14NDocSaveTo		(xmlDocPtr doc, 
    xmlNodeSetPtr nodes,
    int exclusive,
    xmlChar ** inclusive_ns_prefixes,
    int with_comments,
    xmlOutputBufferPtr buf)
    -

    Dumps the canonized image of given XML document into the provided buffer. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n)

    -
    doc:the XML document for canonization
    nodes:the nodes set to be included in the canonized image or NULL if all document nodes should be included
    exclusive:the exclusive flag (0 - non-exclusive canonicalization; otherwise - exclusive canonicalization)
    inclusive_ns_prefixes:the list of inclusive namespace prefixes ended with a NULL or NULL if there is no inclusive namespaces (only for exclusive canonicalization, ignored otherwise)
    with_comments:include comments in the result (!=0) or not (==0)
    buf:the output buffer to store canonical XML; this buffer MUST have encoder==NULL because C14N requires UTF-8 output
    Returns:non-negative value on success or a negative value on fail
    -
    -

    xmlC14NExecute ()

    int	xmlC14NExecute			(xmlDocPtr doc, 
    xmlC14NIsVisibleCallback is_visible_callback,
    void * user_data,
    int exclusive,
    xmlChar ** inclusive_ns_prefixes,
    int with_comments,
    xmlOutputBufferPtr buf)
    -

    Dumps the canonized image of given XML document into the provided buffer. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n)

    -
    doc:the XML document for canonization
    is_visible_callback:the function to use to determine is node visible or not
    user_data:the first parameter for @is_visible_callback function (in most cases, it is nodes set)
    exclusive:the exclusive flag (0 - non-exclusive canonicalization; otherwise - exclusive canonicalization)
    inclusive_ns_prefixes:the list of inclusive namespace prefixes ended with a NULL or NULL if there is no inclusive namespaces (only for exclusive canonicalization, ignored otherwise)
    with_comments:include comments in the result (!=0) or not (==0)
    buf:the output buffer to store canonical XML; this buffer MUST have encoder==NULL because C14N requires UTF-8 output
    Returns:non-negative value on success or a negative value on fail
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-catalog.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-catalog.html deleted file mode 100644 index 11fc4c6abb..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-catalog.html +++ /dev/null @@ -1,278 +0,0 @@ - - - - - catalog: interfaces to the Catalog handling system - - - - - - - - - - - - - - - - -

    - catalog -

    -

    catalog - interfaces to the Catalog handling system

    -

    the catalog module implements the support for XML Catalogs and SGML catalogs

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    #define XML_CATALOG_PI;
    -#define XML_CATALOGS_NAMESPACE;
    -typedef enum xmlCatalogAllow;
    -typedef enum xmlCatalogPrefer;
    -typedef struct _xmlCatalog xmlCatalog;
    -typedef xmlCatalog * xmlCatalogPtr;
    -void	xmlFreeCatalog			(xmlCatalogPtr catal);
    -void	xmlLoadCatalogs			(const char * pathss);
    -xmlChar *	xmlCatalogLocalResolve	(void * catalogs, 
    const xmlChar * pubID,
    const xmlChar * sysID); -int xmlACatalogAdd (xmlCatalogPtr catal,
    const xmlChar * type,
    const xmlChar * orig,
    const xmlChar * replace); -xmlChar * xmlACatalogResolvePublic (xmlCatalogPtr catal,
    const xmlChar * pubID); -xmlCatalogAllow xmlCatalogGetDefaults (void); -int xmlACatalogRemove (xmlCatalogPtr catal,
    const xmlChar * value); -xmlCatalogPrefer xmlCatalogSetDefaultPrefer (xmlCatalogPrefer prefer); -xmlChar * xmlACatalogResolveURI (xmlCatalogPtr catal,
    const xmlChar * URI); -int xmlCatalogAdd (const xmlChar * type,
    const xmlChar * orig,
    const xmlChar * replace); -xmlChar * xmlCatalogResolvePublic (const xmlChar * pubID); -const xmlChar * xmlCatalogGetSystem (const xmlChar * sysID); -void xmlInitializeCatalog (void); -int xmlLoadCatalog (const char * filename); -int xmlCatalogRemove (const xmlChar * value); -int xmlCatalogIsEmpty (xmlCatalogPtr catal); -void xmlACatalogDump (xmlCatalogPtr catal,
    FILE * out); -void xmlCatalogFreeLocal (void * catalogs); -xmlChar * xmlACatalogResolve (xmlCatalogPtr catal,
    const xmlChar * pubID,
    const xmlChar * sysID); -xmlChar * xmlCatalogResolveSystem (const xmlChar * sysID); -xmlCatalogPtr xmlLoadSGMLSuperCatalog (const char * filename); -int xmlCatalogConvert (void); -const xmlChar * xmlCatalogGetPublic (const xmlChar * pubID); -xmlCatalogPtr xmlLoadACatalog (const char * filename); -xmlChar * xmlACatalogResolveSystem (xmlCatalogPtr catal,
    const xmlChar * sysID); -xmlChar * xmlCatalogLocalResolveURI (void * catalogs,
    const xmlChar * URI); -int xmlConvertSGMLCatalog (xmlCatalogPtr catal); -void * xmlCatalogAddLocal (void * catalogs,
    const xmlChar * URL); -xmlCatalogPtr xmlNewCatalog (int sgml); -xmlDocPtr xmlParseCatalogFile (const char * filename); -int xmlCatalogSetDebug (int level); -xmlChar * xmlCatalogResolve (const xmlChar * pubID,
    const xmlChar * sysID); -void xmlCatalogSetDefaults (xmlCatalogAllow allow); -void xmlCatalogDump (FILE * out); -void xmlCatalogCleanup (void); -xmlChar * xmlCatalogResolveURI (const xmlChar * URI); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro XML_CATALOGS_NAMESPACE

    #define XML_CATALOGS_NAMESPACE;
    -

    The namespace for the XML Catalogs elements.

    -
    -
    -

    Macro XML_CATALOG_PI

    #define XML_CATALOG_PI;
    -

    The specific XML Catalog Processing Instuction name.

    -
    -
    -

    Structure xmlCatalog

    struct _xmlCatalog {
    -The content of this structure is not made public by the API.
    -} xmlCatalog;
    -

    -

    -
    - -
    - -
    -

    Typedef xmlCatalogPtr

    xmlCatalog * xmlCatalogPtr;
    -

    -

    -
    -

    xmlACatalogAdd ()

    int	xmlACatalogAdd			(xmlCatalogPtr catal, 
    const xmlChar * type,
    const xmlChar * orig,
    const xmlChar * replace)
    -

    Add an entry in the catalog, it may overwrite existing but different entries.

    -
    catal:a Catalog
    type:the type of record to add to the catalog
    orig:the system, public or prefix to match
    replace:the replacement value for the match
    Returns:0 if successful, -1 otherwise
    -
    -

    xmlACatalogDump ()

    void	xmlACatalogDump			(xmlCatalogPtr catal, 
    FILE * out)
    -

    Dump the given catalog to the given file.

    -
    catal:a Catalog
    out:the file.
    -
    -

    xmlACatalogRemove ()

    int	xmlACatalogRemove		(xmlCatalogPtr catal, 
    const xmlChar * value)
    -

    Remove an entry from the catalog

    -
    catal:a Catalog
    value:the value to remove
    Returns:the number of entries removed if successful, -1 otherwise
    -
    -

    xmlACatalogResolve ()

    xmlChar *	xmlACatalogResolve	(xmlCatalogPtr catal, 
    const xmlChar * pubID,
    const xmlChar * sysID)
    -

    Do a complete resolution lookup of an External Identifier

    -
    catal:a Catalog
    pubID:the public ID string
    sysID:the system ID string
    Returns:the URI of the resource or NULL if not found, it must be freed by the caller.
    -
    -

    xmlACatalogResolvePublic ()

    xmlChar *	xmlACatalogResolvePublic	(xmlCatalogPtr catal, 
    const xmlChar * pubID)
    -

    Try to lookup the catalog local reference associated to a public ID in that catalog

    -
    catal:a Catalog
    pubID:the public ID string
    Returns:the local resource if found or NULL otherwise, the value returned must be freed by the caller.
    -
    -

    xmlACatalogResolveSystem ()

    xmlChar *	xmlACatalogResolveSystem	(xmlCatalogPtr catal, 
    const xmlChar * sysID)
    -

    Try to lookup the catalog resource for a system ID

    -
    catal:a Catalog
    sysID:the system ID string
    Returns:the resource if found or NULL otherwise, the value returned must be freed by the caller.
    -
    -

    xmlACatalogResolveURI ()

    xmlChar *	xmlACatalogResolveURI	(xmlCatalogPtr catal, 
    const xmlChar * URI)
    -

    Do a complete resolution lookup of an URI

    -
    catal:a Catalog
    URI:the URI
    Returns:the URI of the resource or NULL if not found, it must be freed by the caller.
    -
    -

    xmlCatalogAdd ()

    int	xmlCatalogAdd			(const xmlChar * type, 
    const xmlChar * orig,
    const xmlChar * replace)
    -

    Add an entry in the catalog, it may overwrite existing but different entries. If called before any other catalog routine, allows to override the default shared catalog put in place by xmlInitializeCatalog();

    -
    type:the type of record to add to the catalog
    orig:the system, public or prefix to match
    replace:the replacement value for the match
    Returns:0 if successful, -1 otherwise
    -
    -

    xmlCatalogAddLocal ()

    void *	xmlCatalogAddLocal		(void * catalogs, 
    const
    xmlChar * URL)
    -

    Add the new entry to the catalog list

    -
    catalogs:a document's list of catalogs
    URL:the URL to a new local catalog
    Returns:the updated list
    -
    - -
    -
    -
    -
    -
    -
    -
    -

    xmlCatalogGetDefaults ()

    xmlCatalogAllow	xmlCatalogGetDefaults	(void)
    -

    Used to get the user preference w.r.t. to what catalogs should be accepted

    -
    Returns:the current xmlCatalogAllow value
    -
    -

    xmlCatalogGetPublic ()

    const xmlChar *	xmlCatalogGetPublic	(const xmlChar * pubID)
    -

    Try to lookup the catalog reference associated to a public ID DEPRECATED, use xmlCatalogResolvePublic()

    -
    pubID:the public ID string
    Returns:the resource if found or NULL otherwise.
    -
    -

    xmlCatalogGetSystem ()

    const xmlChar *	xmlCatalogGetSystem	(const xmlChar * sysID)
    -

    Try to lookup the catalog reference associated to a system ID DEPRECATED, use xmlCatalogResolveSystem()

    -
    sysID:the system ID string
    Returns:the resource if found or NULL otherwise.
    -
    -

    xmlCatalogIsEmpty ()

    int	xmlCatalogIsEmpty		(xmlCatalogPtr catal)
    -

    Check is a catalog is empty

    -
    catal:should this create an SGML catalog
    Returns:1 if the catalog is empty, 0 if not, amd -1 in case of error.
    -
    -

    xmlCatalogLocalResolve ()

    xmlChar *	xmlCatalogLocalResolve	(void * catalogs, 
    const xmlChar * pubID,
    const xmlChar * sysID)
    -

    Do a complete resolution lookup of an External Identifier using a document's private catalog list

    -
    catalogs:a document's list of catalogs
    pubID:the public ID string
    sysID:the system ID string
    Returns:the URI of the resource or NULL if not found, it must be freed by the caller.
    -
    -

    xmlCatalogLocalResolveURI ()

    xmlChar *	xmlCatalogLocalResolveURI	(void * catalogs, 
    const xmlChar * URI)
    -

    Do a complete resolution lookup of an URI using a document's private catalog list

    -
    catalogs:a document's list of catalogs
    URI:the URI
    Returns:the URI of the resource or NULL if not found, it must be freed by the caller.
    -
    -

    xmlCatalogRemove ()

    int	xmlCatalogRemove		(const xmlChar * value)
    -

    Remove an entry from the catalog

    -
    value:the value to remove
    Returns:the number of entries removed if successful, -1 otherwise
    -
    -

    xmlCatalogResolve ()

    xmlChar *	xmlCatalogResolve	(const xmlChar * pubID, 
    const xmlChar * sysID)
    -

    Do a complete resolution lookup of an External Identifier

    -
    pubID:the public ID string
    sysID:the system ID string
    Returns:the URI of the resource or NULL if not found, it must be freed by the caller.
    -
    -

    xmlCatalogResolvePublic ()

    xmlChar *	xmlCatalogResolvePublic	(const xmlChar * pubID)
    -

    Try to lookup the catalog reference associated to a public ID

    -
    pubID:the public ID string
    Returns:the resource if found or NULL otherwise, the value returned must be freed by the caller.
    -
    -

    xmlCatalogResolveSystem ()

    xmlChar *	xmlCatalogResolveSystem	(const xmlChar * sysID)
    -

    Try to lookup the catalog resource for a system ID

    -
    sysID:the system ID string
    Returns:the resource if found or NULL otherwise, the value returned must be freed by the caller.
    -
    -

    xmlCatalogResolveURI ()

    xmlChar *	xmlCatalogResolveURI	(const xmlChar * URI)
    -

    Do a complete resolution lookup of an URI

    -
    URI:the URI
    Returns:the URI of the resource or NULL if not found, it must be freed by the caller.
    -
    - -
    -

    xmlCatalogSetDefaultPrefer ()

    xmlCatalogPrefer	xmlCatalogSetDefaultPrefer	(xmlCatalogPrefer prefer)
    -

    Allows to set the preference between public and system for deletion in XML Catalog resolution. C.f. section 4.1.1 of the spec Values accepted are XML_CATA_PREFER_PUBLIC or XML_CATA_PREFER_SYSTEM

    -
    prefer:the default preference for delegation
    Returns:the previous value of the default preference for delegation
    -
    -

    xmlCatalogSetDefaults ()

    void	xmlCatalogSetDefaults		(xmlCatalogAllow allow)
    -

    Used to set the user preference w.r.t. to what catalogs should be accepted

    -
    allow:what catalogs should be accepted
    -
    -

    xmlConvertSGMLCatalog ()

    int	xmlConvertSGMLCatalog		(xmlCatalogPtr catal)
    -

    Convert all the SGML catalog entries as XML ones

    -
    catal:the catalog
    Returns:the number of entries converted if successful, -1 otherwise
    -
    -

    xmlFreeCatalog ()

    void	xmlFreeCatalog			(xmlCatalogPtr catal)
    -

    Free the memory allocated to a Catalog

    -
    catal:a Catalog
    -
    - -
    -

    xmlLoadACatalog ()

    xmlCatalogPtr	xmlLoadACatalog		(const char * filename)
    -

    Load the catalog and build the associated data structures. This can be either an XML Catalog or an SGML Catalog It will recurse in SGML CATALOG entries. On the other hand XML Catalogs are not handled recursively.

    -
    filename:a file path
    Returns:the catalog parsed or NULL in case of error
    -
    - -
    -
    -
    -

    xmlLoadSGMLSuperCatalog ()

    xmlCatalogPtr	xmlLoadSGMLSuperCatalog	(const char * filename)
    -

    Load an SGML super catalog. It won't expand CATALOG or DELEGATE references. This is only needed for manipulating SGML Super Catalogs like adding and removing CATALOG or DELEGATE entries.

    -
    filename:a file path
    Returns:the catalog parsed or NULL in case of error
    -
    -

    xmlNewCatalog ()

    xmlCatalogPtr	xmlNewCatalog		(int sgml)
    -

    create a new Catalog.

    -
    sgml:should this create an SGML catalog
    Returns:the xmlCatalogPtr or NULL in case of error
    -
    -

    xmlParseCatalogFile ()

    xmlDocPtr	xmlParseCatalogFile	(const char * filename)
    -

    parse an XML file and build a tree. It's like xmlParseFile() except it bypass all catalog lookups.

    -
    filename:the filename
    Returns:the resulting document tree or NULL in case of error
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-chvalid.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-chvalid.html deleted file mode 100644 index 9c771583d0..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-chvalid.html +++ /dev/null @@ -1,241 +0,0 @@ - - - - - chvalid: Unicode character range checking - - - - - - - - - - - - - - - - -

    - chvalid -

    -

    chvalid - Unicode character range checking

    -

    this module exports interfaces for the character range validation APIs This file is automatically generated from the cvs source definition files using the genChRanges.py Python script

    -

    Author(s): William Brack <wbrack@mmm.com.hk>

    -
    -

    Synopsis

    -
    #define xmlIsExtender_ch(c);
    -#define xmlIsPubidCharQ(c);
    -#define xmlIsPubidChar_ch(c);
    -#define xmlIsIdeographicQ(c);
    -#define xmlIsExtenderQ(c);
    -#define xmlIsChar_ch(c);
    -#define xmlIsDigitQ(c);
    -#define xmlIsDigit_ch(c);
    -#define xmlIsBaseChar_ch(c);
    -#define xmlIsCombiningQ(c);
    -#define xmlIsBlankQ(c);
    -#define xmlIsCharQ(c);
    -#define xmlIsBaseCharQ(c);
    -#define xmlIsBlank_ch(c);
    -typedef struct _xmlChLRange xmlChLRange;
    -typedef xmlChSRange * xmlChSRangePtr;
    -typedef xmlChLRange * xmlChLRangePtr;
    -typedef xmlChRangeGroup * xmlChRangeGroupPtr;
    -typedef struct _xmlChSRange xmlChSRange;
    -typedef struct _xmlChRangeGroup xmlChRangeGroup;
    -int	xmlIsChar			(unsigned int ch);
    -int	xmlIsDigit			(unsigned int ch);
    -int	xmlIsBlank			(unsigned int ch);
    -int	xmlIsIdeographic		(unsigned int ch);
    -int	xmlCharInRange			(unsigned int val, 
    const xmlChRangeGroup * rptr); -int xmlIsPubidChar (unsigned int ch); -int xmlIsCombining (unsigned int ch); -int xmlIsBaseChar (unsigned int ch); -int xmlIsExtender (unsigned int ch); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro xmlIsBaseCharQ

    #define xmlIsBaseCharQ(c);
    -

    Automatically generated by genChRanges.py

    c:char to validate
    -
    -
    -

    Macro xmlIsBaseChar_ch

    #define xmlIsBaseChar_ch(c);
    -

    Automatically generated by genChRanges.py

    c:char to validate
    -
    -
    -

    Macro xmlIsBlankQ

    #define xmlIsBlankQ(c);
    -

    Automatically generated by genChRanges.py

    c:char to validate
    -
    -
    -

    Macro xmlIsBlank_ch

    #define xmlIsBlank_ch(c);
    -

    Automatically generated by genChRanges.py

    c:char to validate
    -
    -
    -

    Macro xmlIsCharQ

    #define xmlIsCharQ(c);
    -

    Automatically generated by genChRanges.py

    c:char to validate
    -
    -
    -

    Macro xmlIsChar_ch

    #define xmlIsChar_ch(c);
    -

    Automatically generated by genChRanges.py

    c:char to validate
    -
    -
    -

    Macro xmlIsCombiningQ

    #define xmlIsCombiningQ(c);
    -

    Automatically generated by genChRanges.py

    c:char to validate
    -
    -
    -

    Macro xmlIsDigitQ

    #define xmlIsDigitQ(c);
    -

    Automatically generated by genChRanges.py

    c:char to validate
    -
    -
    -

    Macro xmlIsDigit_ch

    #define xmlIsDigit_ch(c);
    -

    Automatically generated by genChRanges.py

    c:char to validate
    -
    -
    -

    Macro xmlIsExtenderQ

    #define xmlIsExtenderQ(c);
    -

    Automatically generated by genChRanges.py

    c:char to validate
    -
    -
    -

    Macro xmlIsExtender_ch

    #define xmlIsExtender_ch(c);
    -

    Automatically generated by genChRanges.py

    c:char to validate
    -
    -
    -

    Macro xmlIsIdeographicQ

    #define xmlIsIdeographicQ(c);
    -

    Automatically generated by genChRanges.py

    c:char to validate
    -
    -
    -

    Macro xmlIsPubidCharQ

    #define xmlIsPubidCharQ(c);
    -

    Automatically generated by genChRanges.py

    c:char to validate
    -
    -
    -

    Macro xmlIsPubidChar_ch

    #define xmlIsPubidChar_ch(c);
    -

    Automatically generated by genChRanges.py

    c:char to validate
    -
    -
    -

    Structure xmlChLRange

    struct _xmlChLRange {
    -    unsigned int	low
    -    unsigned int	high
    -} xmlChLRange;
    -

    -

    -
    -

    Typedef xmlChLRangePtr

    xmlChLRange * xmlChLRangePtr;
    -

    -

    -
    -

    Structure xmlChRangeGroup

    struct _xmlChRangeGroup {
    -    int	nbShortRange
    -    int	nbLongRange
    -    const xmlChSRange *	shortRange	: points to an array of ranges
    -    const xmlChLRange *	longRange
    -} xmlChRangeGroup;
    -

    -

    -
    -

    Typedef xmlChRangeGroupPtr

    xmlChRangeGroup * xmlChRangeGroupPtr;
    -

    -

    -
    -

    Structure xmlChSRange

    struct _xmlChSRange {
    -    unsigned short	low
    -    unsigned short	high
    -} xmlChSRange;
    -

    -

    -
    -

    Typedef xmlChSRangePtr

    xmlChSRange * xmlChSRangePtr;
    -

    -

    -
    -

    Variable xmlIsBaseCharGroup

    const xmlChRangeGroup xmlIsBaseCharGroup;
    -

    -

    -
    -

    Variable xmlIsCharGroup

    const xmlChRangeGroup xmlIsCharGroup;
    -

    -

    -
    -

    Variable xmlIsCombiningGroup

    const xmlChRangeGroup xmlIsCombiningGroup;
    -

    -

    -
    -

    Variable xmlIsDigitGroup

    const xmlChRangeGroup xmlIsDigitGroup;
    -

    -

    -
    -

    Variable xmlIsExtenderGroup

    const xmlChRangeGroup xmlIsExtenderGroup;
    -

    -

    -
    -

    Variable xmlIsIdeographicGroup

    const xmlChRangeGroup xmlIsIdeographicGroup;
    -

    -

    -
    -

    Variable xmlIsPubidChar_tab

    const unsigned charxmlIsPubidChar_tab[256] xmlIsPubidChar_tab;
    -

    -

    -
    -

    xmlCharInRange ()

    int	xmlCharInRange			(unsigned int val, 
    const
    xmlChRangeGroup * rptr)
    -

    Does a binary search of the range table to determine if char is valid

    -
    val:character to be validated
    rptr:pointer to range to be used to validate
    Returns:true if character valid, false otherwise
    -
    -

    xmlIsBaseChar ()

    int	xmlIsBaseChar			(unsigned int ch)
    -

    This function is DEPRECATED. Use xmlIsBaseChar_ch or xmlIsBaseCharQ instead

    -
    ch:character to validate
    Returns:true if argument valid, false otherwise
    -
    -

    xmlIsBlank ()

    int	xmlIsBlank			(unsigned int ch)
    -

    This function is DEPRECATED. Use xmlIsBlank_ch or xmlIsBlankQ instead

    -
    ch:character to validate
    Returns:true if argument valid, false otherwise
    -
    -

    xmlIsChar ()

    int	xmlIsChar			(unsigned int ch)
    -

    This function is DEPRECATED. Use xmlIsChar_ch or xmlIsCharQ instead

    -
    ch:character to validate
    Returns:true if argument valid, false otherwise
    -
    -

    xmlIsCombining ()

    int	xmlIsCombining			(unsigned int ch)
    -

    This function is DEPRECATED. Use xmlIsCombiningQ instead

    -
    ch:character to validate
    Returns:true if argument valid, false otherwise
    -
    -

    xmlIsDigit ()

    int	xmlIsDigit			(unsigned int ch)
    -

    This function is DEPRECATED. Use xmlIsDigit_ch or xmlIsDigitQ instead

    -
    ch:character to validate
    Returns:true if argument valid, false otherwise
    -
    -

    xmlIsExtender ()

    int	xmlIsExtender			(unsigned int ch)
    -

    This function is DEPRECATED. Use xmlIsExtender_ch or xmlIsExtenderQ instead

    -
    ch:character to validate
    Returns:true if argument valid, false otherwise
    -
    -

    xmlIsIdeographic ()

    int	xmlIsIdeographic		(unsigned int ch)
    -

    This function is DEPRECATED. Use xmlIsIdeographicQ instead

    -
    ch:character to validate
    Returns:true if argument valid, false otherwise
    -
    -

    xmlIsPubidChar ()

    int	xmlIsPubidChar			(unsigned int ch)
    -

    This function is DEPRECATED. Use xmlIsPubidChar_ch or xmlIsPubidCharQ instead

    -
    ch:character to validate
    Returns:true if argument valid, false otherwise
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-debugXML.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-debugXML.html deleted file mode 100644 index 00541cd6d6..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-debugXML.html +++ /dev/null @@ -1,225 +0,0 @@ - - - - - debugXML: Tree debugging APIs - - - - - - - - - - - - - - - - -

    - debugXML -

    -

    debugXML - Tree debugging APIs

    -

    Interfaces to a set of routines used for debugging the tree produced by the XML parser.

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef struct _xmlShellCtxt xmlShellCtxt;
    -typedef xmlShellCtxt * xmlShellCtxtPtr;
    -void	xmlDebugDumpAttrList		(FILE * output, 
    xmlAttrPtr attr,
    int depth); -void xmlLsOneNode (FILE * output,
    xmlNodePtr node); -typedef char * xmlShellReadlineFunc (char * prompt); -int xmlShellSave (xmlShellCtxtPtr ctxt,
    char * filename,
    xmlNodePtr node,
    xmlNodePtr node2); -const char * xmlBoolToText (int boolval); -int xmlShellWrite (xmlShellCtxtPtr ctxt,
    char * filename,
    xmlNodePtr node,
    xmlNodePtr node2); -int xmlShellDu (xmlShellCtxtPtr ctxt,
    char * arg,
    xmlNodePtr tree,
    xmlNodePtr node2); -int xmlShellValidate (xmlShellCtxtPtr ctxt,
    char * dtd,
    xmlNodePtr node,
    xmlNodePtr node2); -int xmlDebugCheckDocument (FILE * output,
    xmlDocPtr doc); -void xmlShellPrintXPathResult (xmlXPathObjectPtr list); -typedef int xmlShellCmd (xmlShellCtxtPtr ctxt,
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2); -int xmlShellLoad (xmlShellCtxtPtr ctxt,
    char * filename,
    xmlNodePtr node,
    xmlNodePtr node2); -void xmlDebugDumpString (FILE * output,
    const xmlChar * str); -int xmlShellBase (xmlShellCtxtPtr ctxt,
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2); -int xmlShellCat (xmlShellCtxtPtr ctxt,
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2); -void xmlDebugDumpDTD (FILE * output,
    xmlDtdPtr dtd); -void xmlDebugDumpNode (FILE * output,
    xmlNodePtr node,
    int depth); -void xmlDebugDumpEntities (FILE * output,
    xmlDocPtr doc); -void xmlShellPrintNode (xmlNodePtr node); -int xmlShellPwd (xmlShellCtxtPtr ctxt,
    char * buffer,
    xmlNodePtr node,
    xmlNodePtr node2); -void xmlDebugDumpNodeList (FILE * output,
    xmlNodePtr node,
    int depth); -void xmlDebugDumpAttr (FILE * output,
    xmlAttrPtr attr,
    int depth); -void xmlDebugDumpDocument (FILE * output,
    xmlDocPtr doc); -int xmlLsCountNode (xmlNodePtr node); -void xmlShellPrintXPathError (int errorType,
    const char * arg); -int xmlShellDir (xmlShellCtxtPtr ctxt,
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2); -void xmlDebugDumpOneNode (FILE * output,
    xmlNodePtr node,
    int depth); -int xmlShellList (xmlShellCtxtPtr ctxt,
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2); -void xmlDebugDumpDocumentHead (FILE * output,
    xmlDocPtr doc); -void xmlShell (xmlDocPtr doc,
    char * filename,
    xmlShellReadlineFunc input,
    FILE * output); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlShellCtxt

    struct _xmlShellCtxt {
    -    char *	filename
    -    xmlDocPtr	doc
    -    xmlNodePtr	node
    -    xmlXPathContextPtr	pctxt
    -    int	loaded
    -    FILE *	output
    -    xmlShellReadlineFunc	input
    -} xmlShellCtxt;
    -

    -

    -
    -

    Typedef xmlShellCtxtPtr

    xmlShellCtxt * xmlShellCtxtPtr;
    -

    -

    -
    -

    Function type xmlShellCmd

    int	xmlShellCmd			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    This is a generic signature for the XML shell functions.

    -
    ctxt:a shell context
    arg:a string argument
    node:a first node
    node2:a second node
    Returns:an int, negative returns indicating errors.
    -
    - -
    -
    -
    -

    xmlDebugCheckDocument ()

    int	xmlDebugCheckDocument		(FILE * output, 
    xmlDocPtr doc)
    -

    Check the document for potential content problems, and output the errors to @output

    -
    output:the FILE * for the output
    doc:the document
    Returns:the number of errors found
    -
    -

    xmlDebugDumpAttr ()

    void	xmlDebugDumpAttr		(FILE * output, 
    xmlAttrPtr attr,
    int depth)
    -

    Dumps debug information for the attribute

    -
    output:the FILE * for the output
    attr:the attribute
    depth:the indentation level.
    -
    -

    xmlDebugDumpAttrList ()

    void	xmlDebugDumpAttrList		(FILE * output, 
    xmlAttrPtr attr,
    int depth)
    -

    Dumps debug information for the attribute list

    -
    output:the FILE * for the output
    attr:the attribute list
    depth:the indentation level.
    -
    -

    xmlDebugDumpDTD ()

    void	xmlDebugDumpDTD			(FILE * output, 
    xmlDtdPtr dtd)
    -

    Dumps debug information for the DTD

    -
    output:the FILE * for the output
    dtd:the DTD
    -
    -

    xmlDebugDumpDocument ()

    void	xmlDebugDumpDocument		(FILE * output, 
    xmlDocPtr doc)
    -

    Dumps debug information for the document, it's recursive

    -
    output:the FILE * for the output
    doc:the document
    -
    -

    xmlDebugDumpDocumentHead ()

    void	xmlDebugDumpDocumentHead	(FILE * output, 
    xmlDocPtr doc)
    -

    Dumps debug information cncerning the document, not recursive

    -
    output:the FILE * for the output
    doc:the document
    -
    -

    xmlDebugDumpEntities ()

    void	xmlDebugDumpEntities		(FILE * output, 
    xmlDocPtr doc)
    -

    Dumps debug information for all the entities in use by the document

    -
    output:the FILE * for the output
    doc:the document
    -
    -

    xmlDebugDumpNode ()

    void	xmlDebugDumpNode		(FILE * output, 
    xmlNodePtr node,
    int depth)
    -

    Dumps debug information for the element node, it is recursive

    -
    output:the FILE * for the output
    node:the node
    depth:the indentation level.
    -
    -

    xmlDebugDumpNodeList ()

    void	xmlDebugDumpNodeList		(FILE * output, 
    xmlNodePtr node,
    int depth)
    -

    Dumps debug information for the list of element node, it is recursive

    -
    output:the FILE * for the output
    node:the node list
    depth:the indentation level.
    -
    -

    xmlDebugDumpOneNode ()

    void	xmlDebugDumpOneNode		(FILE * output, 
    xmlNodePtr node,
    int depth)
    -

    Dumps debug information for the element node, it is not recursive

    -
    output:the FILE * for the output
    node:the node
    depth:the indentation level.
    -
    -

    xmlDebugDumpString ()

    void	xmlDebugDumpString		(FILE * output, 
    const
    xmlChar * str)
    -

    Dumps informations about the string, shorten it if necessary

    -
    output:the FILE * for the output
    str:the string
    -
    -

    xmlLsCountNode ()

    int	xmlLsCountNode			(xmlNodePtr node)
    -

    Count the children of @node.

    -
    node:the node to count
    Returns:the number of children of @node.
    -
    -

    xmlLsOneNode ()

    void	xmlLsOneNode			(FILE * output, 
    xmlNodePtr node)
    -

    Dump to @output the type and name of @node.

    -
    output:the FILE * for the output
    node:the node to dump
    -
    -

    xmlShell ()

    void	xmlShell			(xmlDocPtr doc, 
    char * filename,
    xmlShellReadlineFunc input,
    FILE * output)
    -

    Implements the XML shell This allow to load, validate, view, modify and save a document using a environment similar to a UNIX commandline.

    -
    doc:the initial document
    filename:the output buffer
    input:the line reading function
    output:the output FILE*, defaults to stdout if NULL
    -
    -

    xmlShellBase ()

    int	xmlShellBase			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "base" dumps the current XML base of the node

    -
    ctxt:the shell context
    arg:unused
    node:a node
    node2:unused
    Returns:0
    -
    -

    xmlShellCat ()

    int	xmlShellCat			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "cat" dumps the serialization node content (XML or HTML).

    -
    ctxt:the shell context
    arg:unused
    node:a node
    node2:unused
    Returns:0
    -
    -

    xmlShellDir ()

    int	xmlShellDir			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "dir" dumps informations about the node (namespace, attributes, content).

    -
    ctxt:the shell context
    arg:unused
    node:a node
    node2:unused
    Returns:0
    -
    -

    xmlShellDu ()

    int	xmlShellDu			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr tree,
    xmlNodePtr node2)
    -

    Implements the XML shell function "du" show the structure of the subtree under node @tree If @tree is null, the command works on the current node.

    -
    ctxt:the shell context
    arg:unused
    tree:a node defining a subtree
    node2:unused
    Returns:0 or -1 in case of error
    -
    -

    xmlShellList ()

    int	xmlShellList			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "ls" Does an Unix like listing of the given node (like a directory)

    -
    ctxt:the shell context
    arg:unused
    node:a node
    node2:unused
    Returns:0
    -
    -

    xmlShellLoad ()

    int	xmlShellLoad			(xmlShellCtxtPtr ctxt, 
    char * filename,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "load" loads a new document specified by the filename

    -
    ctxt:the shell context
    filename:the file name
    node:unused
    node2:unused
    Returns:0 or -1 if loading failed
    -
    -

    xmlShellPrintNode ()

    void	xmlShellPrintNode		(xmlNodePtr node)
    -

    Print node to the output FILE

    -
    node:a non-null node to print to the output FILE
    -
    - -
    -

    xmlShellPrintXPathResult ()

    void	xmlShellPrintXPathResult	(xmlXPathObjectPtr list)
    -

    Prints result to the output FILE

    -
    list:a valid result generated by an xpath evaluation
    -
    -

    xmlShellPwd ()

    int	xmlShellPwd			(xmlShellCtxtPtr ctxt, 
    char * buffer,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "pwd" Show the full path from the root to the node, if needed building thumblers when similar elements exists at a given ancestor level. The output is compatible with XPath commands.

    -
    ctxt:the shell context
    buffer:the output buffer
    node:a node
    node2:unused
    Returns:0 or -1 in case of error
    -
    -

    xmlShellSave ()

    int	xmlShellSave			(xmlShellCtxtPtr ctxt, 
    char * filename,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "save" Write the current document to the filename, or it's original name

    -
    ctxt:the shell context
    filename:the file name (optional)
    node:unused
    node2:unused
    Returns:0 or -1 in case of error
    -
    -

    xmlShellValidate ()

    int	xmlShellValidate		(xmlShellCtxtPtr ctxt, 
    char * dtd,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "validate" Validate the document, if a DTD path is provided, then the validation is done against the given DTD.

    -
    ctxt:the shell context
    dtd:the DTD URI (optional)
    node:unused
    node2:unused
    Returns:0 or -1 in case of error
    -
    -

    xmlShellWrite ()

    int	xmlShellWrite			(xmlShellCtxtPtr ctxt, 
    char * filename,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "write" Write the current node to the filename, it saves the serialization of the subtree under the @node specified

    -
    ctxt:the shell context
    filename:the file name
    node:a node in the tree
    node2:unused
    Returns:0 or -1 in case of error
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-dict.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-dict.html deleted file mode 100644 index 20501e3040..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-dict.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - - dict: string dictionnary - - - - - - - - - - - - - - - - -

    - dict -

    -

    dict - string dictionnary

    -

    dictionary of reusable strings, just used to avoid allocation and freeing operations.

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef struct _xmlDict xmlDict;
    -typedef xmlDict * xmlDictPtr;
    -int	xmlDictReference		(xmlDictPtr dict);
    -void	xmlDictCleanup			(void);
    -int	xmlDictSize			(xmlDictPtr dict);
    -const xmlChar *	xmlDictExists		(xmlDictPtr dict, 
    const xmlChar * name,
    int len); -int xmlDictOwns (xmlDictPtr dict,
    const xmlChar * str); -const xmlChar * xmlDictQLookup (xmlDictPtr dict,
    const xmlChar * prefix,
    const xmlChar * name); -xmlDictPtr xmlDictCreateSub (xmlDictPtr sub); -void xmlDictFree (xmlDictPtr dict); -const xmlChar * xmlDictLookup (xmlDictPtr dict,
    const xmlChar * name,
    int len); -xmlDictPtr xmlDictCreate (void); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlDict

    struct _xmlDict {
    -The content of this structure is not made public by the API.
    -} xmlDict;
    -

    -

    -
    -

    Typedef xmlDictPtr

    xmlDict * xmlDictPtr;
    -

    -

    -
    - -
    -

    xmlDictCreate ()

    xmlDictPtr	xmlDictCreate		(void)
    -

    Create a new dictionary

    -
    Returns:the newly created dictionnary, or NULL if an error occured.
    -
    -

    xmlDictCreateSub ()

    xmlDictPtr	xmlDictCreateSub	(xmlDictPtr sub)
    -

    Create a new dictionary, inheriting strings from the read-only dictionnary @sub. On lookup, strings are first searched in the new dictionnary, then in @sub, and if not found are created in the new dictionnary.

    -
    sub:an existing dictionnary
    Returns:the newly created dictionnary, or NULL if an error occured.
    -
    -

    xmlDictExists ()

    const xmlChar *	xmlDictExists		(xmlDictPtr dict, 
    const xmlChar * name,
    int len)
    -

    Check if the @name exists in the dictionnary @dict.

    -
    dict:the dictionnary
    name:the name of the userdata
    len:the length of the name, if -1 it is recomputed
    Returns:the internal copy of the name or NULL if not found.
    -
    -

    xmlDictFree ()

    void	xmlDictFree			(xmlDictPtr dict)
    -

    Free the hash @dict and its contents. The userdata is deallocated with @f if provided.

    -
    dict:the dictionnary
    -
    -

    xmlDictLookup ()

    const xmlChar *	xmlDictLookup		(xmlDictPtr dict, 
    const xmlChar * name,
    int len)
    -

    Add the @name to the dictionnary @dict if not present.

    -
    dict:the dictionnary
    name:the name of the userdata
    len:the length of the name, if -1 it is recomputed
    Returns:the internal copy of the name or NULL in case of internal error
    -
    -

    xmlDictOwns ()

    int	xmlDictOwns			(xmlDictPtr dict, 
    const xmlChar * str)
    -

    check if a string is owned by the disctionary

    -
    dict:the dictionnary
    str:the string
    Returns:1 if true, 0 if false and -1 in case of error -1 in case of error
    -
    -

    xmlDictQLookup ()

    const xmlChar *	xmlDictQLookup		(xmlDictPtr dict, 
    const xmlChar * prefix,
    const xmlChar * name)
    -

    Add the QName @prefix:@name to the hash @dict if not present.

    -
    dict:the dictionnary
    prefix:the prefix
    name:the name
    Returns:the internal copy of the QName or NULL in case of internal error
    -
    -

    xmlDictReference ()

    int	xmlDictReference		(xmlDictPtr dict)
    -

    Increment the reference counter of a dictionary

    -
    dict:the dictionnary
    Returns:0 in case of success and -1 in case of error
    -
    -

    xmlDictSize ()

    int	xmlDictSize			(xmlDictPtr dict)
    -

    Query the number of elements installed in the hash @dict.

    -
    dict:the dictionnary
    Returns:the number of elements in the dictionnary or -1 in case of error
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-encoding.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-encoding.html deleted file mode 100644 index 2d9772298e..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-encoding.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - encoding: interface for the encoding conversion functions - - - - - - - - - - - - - - - - -

    - encoding -

    -

    encoding - interface for the encoding conversion functions

    -

    interface for the encoding conversion functions needed for XML basic encoding and iconv() support. Related specs are rfc2044 (UTF-8 and UTF-16) F. Yergeau Alis Technologies [ISO-10646] UTF-8 and UTF-16 in Annexes [ISO-8859-1] ISO Latin-1 characters codes. [UNICODE] The Unicode Consortium, "The Unicode Standard -- Worldwide Character Encoding -- Version 1.0", Addison- Wesley, Volume 1, 1991, Volume 2, 1992. UTF-8 is described in Unicode Technical Report #4. [US-ASCII] Coded Character Set--7-bit American Standard Code for Information Interchange, ANSI X3.4-1986.

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef enum xmlCharEncoding;
    -typedef struct _xmlCharEncodingHandler xmlCharEncodingHandler;
    -typedef xmlCharEncodingHandler * xmlCharEncodingHandlerPtr;
    -int	xmlDelEncodingAlias		(const char * alias);
    -const char *	xmlGetEncodingAlias	(const char * alias);
    -void	xmlRegisterCharEncodingHandler	(xmlCharEncodingHandlerPtr handler);
    -int	UTF8Toisolat1			(unsigned char * out, 
    int * outlen,
    const unsigned char * in,
    int * inlen); -void xmlInitCharEncodingHandlers (void); -int xmlAddEncodingAlias (const char * name,
    const char * alias); -void xmlCleanupEncodingAliases (void); -int xmlCharEncOutFunc (xmlCharEncodingHandler * handler,
    xmlBufferPtr out,
    xmlBufferPtr in); -xmlCharEncoding xmlParseCharEncoding (const char * name); -typedef int xmlCharEncodingInputFunc (unsigned char * out,
    int * outlen,
    const unsigned char * in,
    int * inlen); -void xmlCleanupCharEncodingHandlers (void); -xmlCharEncodingHandlerPtr xmlNewCharEncodingHandler (const char * name,
    xmlCharEncodingInputFunc input,
    xmlCharEncodingOutputFunc output); -typedef int xmlCharEncodingOutputFunc (unsigned char * out,
    int * outlen,
    const unsigned char * in,
    int * inlen); -int isolat1ToUTF8 (unsigned char * out,
    int * outlen,
    const unsigned char * in,
    int * inlen); -xmlCharEncodingHandlerPtr xmlFindCharEncodingHandler (const char * name); -int xmlCharEncInFunc (xmlCharEncodingHandler * handler,
    xmlBufferPtr out,
    xmlBufferPtr in); -xmlCharEncodingHandlerPtr xmlGetCharEncodingHandler (xmlCharEncoding enc); -int xmlCharEncFirstLine (xmlCharEncodingHandler * handler,
    xmlBufferPtr out,
    xmlBufferPtr in); -xmlCharEncoding xmlDetectCharEncoding (const unsigned char * in,
    int len); -int xmlCharEncCloseFunc (xmlCharEncodingHandler * handler); -const char * xmlGetCharEncodingName (xmlCharEncoding enc); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Enum xmlCharEncoding

    enum xmlCharEncoding {
    -    XML_CHAR_ENCODING_ERROR = -1 /* No char encoding detected */
    -    XML_CHAR_ENCODING_NONE = 0 /* No char encoding detected */
    -    XML_CHAR_ENCODING_UTF8 = 1 /* UTF-8 */
    -    XML_CHAR_ENCODING_UTF16LE = 2 /* UTF-16 little endian */
    -    XML_CHAR_ENCODING_UTF16BE = 3 /* UTF-16 big endian */
    -    XML_CHAR_ENCODING_UCS4LE = 4 /* UCS-4 little endian */
    -    XML_CHAR_ENCODING_UCS4BE = 5 /* UCS-4 big endian */
    -    XML_CHAR_ENCODING_EBCDIC = 6 /* EBCDIC uh! */
    -    XML_CHAR_ENCODING_UCS4_2143 = 7 /* UCS-4 unusual ordering */
    -    XML_CHAR_ENCODING_UCS4_3412 = 8 /* UCS-4 unusual ordering */
    -    XML_CHAR_ENCODING_UCS2 = 9 /* UCS-2 */
    -    XML_CHAR_ENCODING_8859_1 = 10 /* ISO-8859-1 ISO Latin 1 */
    -    XML_CHAR_ENCODING_8859_2 = 11 /* ISO-8859-2 ISO Latin 2 */
    -    XML_CHAR_ENCODING_8859_3 = 12 /* ISO-8859-3 */
    -    XML_CHAR_ENCODING_8859_4 = 13 /* ISO-8859-4 */
    -    XML_CHAR_ENCODING_8859_5 = 14 /* ISO-8859-5 */
    -    XML_CHAR_ENCODING_8859_6 = 15 /* ISO-8859-6 */
    -    XML_CHAR_ENCODING_8859_7 = 16 /* ISO-8859-7 */
    -    XML_CHAR_ENCODING_8859_8 = 17 /* ISO-8859-8 */
    -    XML_CHAR_ENCODING_8859_9 = 18 /* ISO-8859-9 */
    -    XML_CHAR_ENCODING_2022_JP = 19 /* ISO-2022-JP */
    -    XML_CHAR_ENCODING_SHIFT_JIS = 20 /* Shift_JIS */
    -    XML_CHAR_ENCODING_EUC_JP = 21 /* EUC-JP */
    -    XML_CHAR_ENCODING_ASCII = 22 /*  pure ASCII */
    -};
    -

    -

    -
    -

    Structure xmlCharEncodingHandler

    struct _xmlCharEncodingHandler {
    -    char *	name
    -    xmlCharEncodingInputFunc	input
    -    xmlCharEncodingOutputFunc	output
    -    iconv_t	iconv_in
    -    iconv_t	iconv_out
    -} xmlCharEncodingHandler;
    -

    -

    -
    -

    Typedef xmlCharEncodingHandlerPtr

    xmlCharEncodingHandler * xmlCharEncodingHandlerPtr;
    -

    -

    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    xmlCharEncCloseFunc ()

    int	xmlCharEncCloseFunc		(xmlCharEncodingHandler * handler)
    -

    Generic front-end for encoding handler close function

    -
    handler:char enconding transformation data structure
    Returns:0 if success, or -1 in case of error
    -
    -

    xmlCharEncFirstLine ()

    int	xmlCharEncFirstLine		(xmlCharEncodingHandler * handler, 
    xmlBufferPtr out,
    xmlBufferPtr in)
    -

    Front-end for the encoding handler input function, but handle only the very first line, i.e. limit itself to 45 chars.

    -
    handler:char enconding transformation data structure
    out:an xmlBuffer for the output.
    in:an xmlBuffer for the input
    Returns:the number of byte written if success, or -1 general error -2 if the transcoding fails (for *in is not valid utf8 string or the result of transformation can't fit into the encoding we want), or
    -
    -

    xmlCharEncInFunc ()

    int	xmlCharEncInFunc		(xmlCharEncodingHandler * handler, 
    xmlBufferPtr out,
    xmlBufferPtr in)
    -

    Generic front-end for the encoding handler input function

    -
    handler:char encoding transformation data structure
    out:an xmlBuffer for the output.
    in:an xmlBuffer for the input
    Returns:the number of byte written if success, or -1 general error -2 if the transcoding fails (for *in is not valid utf8 string or the result of transformation can't fit into the encoding we want), or
    -
    -

    xmlCharEncOutFunc ()

    int	xmlCharEncOutFunc		(xmlCharEncodingHandler * handler, 
    xmlBufferPtr out,
    xmlBufferPtr in)
    -

    Generic front-end for the encoding handler output function a first call with @in == NULL has to be made firs to initiate the output in case of non-stateless encoding needing to initiate their state or the output (like the BOM in UTF16). In case of UTF8 sequence conversion errors for the given encoder, the content will be automatically remapped to a CharRef sequence.

    -
    handler:char enconding transformation data structure
    out:an xmlBuffer for the output.
    in:an xmlBuffer for the input
    Returns:the number of byte written if success, or -1 general error -2 if the transcoding fails (for *in is not valid utf8 string or the result of transformation can't fit into the encoding we want), or
    -
    - -
    -
    -
    -
    -
    -

    xmlDetectCharEncoding ()

    xmlCharEncoding	xmlDetectCharEncoding	(const unsigned char * in, 
    int len)
    -

    Guess the encoding of the entity using the first bytes of the entity content according to the non-normative appendix F of the XML-1.0 recommendation.

    -
    in:a pointer to the first bytes of the XML entity, must be at least 2 bytes long (at least 4 if encoding is UTF4 variant).
    len:pointer to the length of the buffer
    Returns:one of the XML_CHAR_ENCODING_... values.
    -
    -

    xmlFindCharEncodingHandler ()

    xmlCharEncodingHandlerPtr	xmlFindCharEncodingHandler	(const char * name)
    -

    Search in the registered set the handler able to read/write that encoding.

    -
    name:a string describing the char encoding.
    Returns:the handler or NULL if not found
    -
    -

    xmlGetCharEncodingHandler ()

    xmlCharEncodingHandlerPtr	xmlGetCharEncodingHandler	(xmlCharEncoding enc)
    -

    Search in the registered set the handler able to read/write that encoding.

    -
    enc:an xmlCharEncoding value.
    Returns:the handler or NULL if not found
    -
    -

    xmlGetCharEncodingName ()

    const char *	xmlGetCharEncodingName	(xmlCharEncoding enc)
    -

    The "canonical" name for XML encoding. C.f. http://www.w3.org/TR/REC-xml#charencoding Section 4.3.3 Character Encoding in Entities

    -
    enc:the encoding
    Returns:the canonical name for the given encoding
    -
    - -
    -
    -
    -

    xmlNewCharEncodingHandler ()

    xmlCharEncodingHandlerPtr	xmlNewCharEncodingHandler	(const char * name, 
    xmlCharEncodingInputFunc input,
    xmlCharEncodingOutputFunc output)
    -

    Create and registers an xmlCharEncodingHandler.

    -
    name:the encoding name, in UTF-8 format (ASCII actually)
    input:the xmlCharEncodingInputFunc to read that encoding
    output:the xmlCharEncodingOutputFunc to write that encoding
    Returns:the xmlCharEncodingHandlerPtr created (or NULL in case of error).
    -
    -

    xmlParseCharEncoding ()

    xmlCharEncoding	xmlParseCharEncoding	(const char * name)
    -

    Compare the string to the encoding schemes already known. Note that the comparison is case insensitive accordingly to the section [XML] 4.3.3 Character Encoding in Entities.

    -
    name:the encoding name as parsed, in UTF-8 format (ASCII actually)
    Returns:one of the XML_CHAR_ENCODING_... values or XML_CHAR_ENCODING_NONE if not recognized.
    -
    -

    xmlRegisterCharEncodingHandler ()

    void	xmlRegisterCharEncodingHandler	(xmlCharEncodingHandlerPtr handler)
    -

    Register the char encoding handler, surprising, isn't it ?

    -
    handler:the xmlCharEncodingHandlerPtr handler block
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-entities.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-entities.html deleted file mode 100644 index cd1e9a8c77..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-entities.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - entities: interface for the XML entities handling - - - - - - - - - - - - - - - - -

    - entities -

    -

    entities - interface for the XML entities handling

    -

    this module provides some of the entity API needed for the parser and applications.

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef enum xmlEntityType;
    -typedef struct _xmlHashTable xmlEntitiesTable;
    -typedef xmlEntitiesTable * xmlEntitiesTablePtr;
    -xmlEntityPtr	xmlAddDocEntity		(xmlDocPtr doc, 
    const xmlChar * name,
    int type,
    const xmlChar * ExternalID,
    const xmlChar * SystemID,
    const xmlChar * content); -xmlChar * xmlEncodeEntitiesReentrant (xmlDocPtr doc,
    const xmlChar * input); -xmlEntityPtr xmlGetDocEntity (xmlDocPtr doc,
    const xmlChar * name); -xmlEntityPtr xmlGetDtdEntity (xmlDocPtr doc,
    const xmlChar * name); -xmlEntityPtr xmlAddDtdEntity (xmlDocPtr doc,
    const xmlChar * name,
    int type,
    const xmlChar * ExternalID,
    const xmlChar * SystemID,
    const xmlChar * content); -xmlEntitiesTablePtr xmlCopyEntitiesTable (xmlEntitiesTablePtr table); -void xmlFreeEntitiesTable (xmlEntitiesTablePtr table); -xmlEntityPtr xmlGetParameterEntity (xmlDocPtr doc,
    const xmlChar * name); -void xmlDumpEntitiesTable (xmlBufferPtr buf,
    xmlEntitiesTablePtr table); -void xmlDumpEntityDecl (xmlBufferPtr buf,
    xmlEntityPtr ent); -void xmlCleanupPredefinedEntities (void); -xmlEntitiesTablePtr xmlCreateEntitiesTable (void); -const xmlChar * xmlEncodeEntities (xmlDocPtr doc,
    const xmlChar * input); -xmlChar * xmlEncodeSpecialChars (xmlDocPtr doc,
    const xmlChar * input); -xmlEntityPtr xmlGetPredefinedEntity (const xmlChar * name); -void xmlInitializePredefinedEntities (void); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlEntitiesTable

    struct _xmlHashTable {
    -The content of this structure is not made public by the API.
    -} xmlEntitiesTable;
    -

    -

    -
    -

    Typedef xmlEntitiesTablePtr

    xmlEntitiesTable * xmlEntitiesTablePtr;
    -

    -

    -
    - -
    -

    xmlAddDocEntity ()

    xmlEntityPtr	xmlAddDocEntity		(xmlDocPtr doc, 
    const xmlChar * name,
    int type,
    const xmlChar * ExternalID,
    const xmlChar * SystemID,
    const xmlChar * content)
    -

    Register a new entity for this document.

    -
    doc:the document
    name:the entity name
    type:the entity type XML_xxx_yyy_ENTITY
    ExternalID:the entity external ID if available
    SystemID:the entity system ID if available
    content:the entity content
    Returns:a pointer to the entity or NULL in case of error
    -
    -

    xmlAddDtdEntity ()

    xmlEntityPtr	xmlAddDtdEntity		(xmlDocPtr doc, 
    const xmlChar * name,
    int type,
    const xmlChar * ExternalID,
    const xmlChar * SystemID,
    const xmlChar * content)
    -

    Register a new entity for this document DTD external subset.

    -
    doc:the document
    name:the entity name
    type:the entity type XML_xxx_yyy_ENTITY
    ExternalID:the entity external ID if available
    SystemID:the entity system ID if available
    content:the entity content
    Returns:a pointer to the entity or NULL in case of error
    -
    - -
    -

    xmlCopyEntitiesTable ()

    xmlEntitiesTablePtr	xmlCopyEntitiesTable	(xmlEntitiesTablePtr table)
    -

    Build a copy of an entity table.

    -
    table:An entity table
    Returns:the new xmlEntitiesTablePtr or NULL in case of error.
    -
    -

    xmlCreateEntitiesTable ()

    xmlEntitiesTablePtr	xmlCreateEntitiesTable	(void)
    -

    create and initialize an empty entities hash table. This really doesn't make sense and should be deprecated

    -
    Returns:the xmlEntitiesTablePtr just created or NULL in case of error.
    -
    -

    xmlDumpEntitiesTable ()

    void	xmlDumpEntitiesTable		(xmlBufferPtr buf, 
    xmlEntitiesTablePtr table)
    -

    This will dump the content of the entity table as an XML DTD definition

    -
    buf:An XML buffer.
    table:An entity table
    -
    -

    xmlDumpEntityDecl ()

    void	xmlDumpEntityDecl		(xmlBufferPtr buf, 
    xmlEntityPtr ent)
    -

    This will dump the content of the entity table as an XML DTD definition

    -
    buf:An XML buffer.
    ent:An entity table
    -
    -

    xmlEncodeEntities ()

    const xmlChar *	xmlEncodeEntities	(xmlDocPtr doc, 
    const xmlChar * input)
    -

    TODO: remove xmlEncodeEntities, once we are not afraid of breaking binary compatibility People must migrate their code to xmlEncodeEntitiesReentrant ! This routine will issue a warning when encountered.

    -
    doc:the document containing the string
    input:A string to convert to XML.
    Returns:NULL
    -
    -

    xmlEncodeEntitiesReentrant ()

    xmlChar *	xmlEncodeEntitiesReentrant	(xmlDocPtr doc, 
    const xmlChar * input)
    -

    Do a global encoding of a string, replacing the predefined entities and non ASCII values with their entities and CharRef counterparts. Contrary to xmlEncodeEntities, this routine is reentrant, and result must be deallocated.

    -
    doc:the document containing the string
    input:A string to convert to XML.
    Returns:A newly allocated string with the substitution done.
    -
    -

    xmlEncodeSpecialChars ()

    xmlChar *	xmlEncodeSpecialChars	(xmlDocPtr doc, 
    const xmlChar * input)
    -

    Do a global encoding of a string, replacing the predefined entities this routine is reentrant, and result must be deallocated.

    -
    doc:the document containing the string
    input:A string to convert to XML.
    Returns:A newly allocated string with the substitution done.
    -
    -

    xmlFreeEntitiesTable ()

    void	xmlFreeEntitiesTable		(xmlEntitiesTablePtr table)
    -

    Deallocate the memory used by an entities hash table.

    -
    table:An entity table
    -
    -

    xmlGetDocEntity ()

    xmlEntityPtr	xmlGetDocEntity		(xmlDocPtr doc, 
    const xmlChar * name)
    -

    Do an entity lookup in the document entity hash table and

    -
    doc:the document referencing the entity
    name:the entity name
    Returns:the corresponding entity, otherwise a lookup is done in the predefined entities too. Returns A pointer to the entity structure or NULL if not found.
    -
    -

    xmlGetDtdEntity ()

    xmlEntityPtr	xmlGetDtdEntity		(xmlDocPtr doc, 
    const xmlChar * name)
    -

    Do an entity lookup in the DTD entity hash table and

    -
    doc:the document referencing the entity
    name:the entity name
    Returns:the corresponding entity, if found. Note: the first argument is the document node, not the DTD node. Returns A pointer to the entity structure or NULL if not found.
    -
    -

    xmlGetParameterEntity ()

    xmlEntityPtr	xmlGetParameterEntity	(xmlDocPtr doc, 
    const xmlChar * name)
    -

    Do an entity lookup in the internal and external subsets and

    -
    doc:the document referencing the entity
    name:the entity name
    Returns:the corresponding parameter entity, if found. Returns A pointer to the entity structure or NULL if not found.
    -
    -

    xmlGetPredefinedEntity ()

    xmlEntityPtr	xmlGetPredefinedEntity	(const xmlChar * name)
    -

    Check whether this name is an predefined entity.

    -
    name:the entity name
    Returns:NULL if not, otherwise the entity
    -
    - -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-globals.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-globals.html deleted file mode 100644 index c7f396eab7..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-globals.html +++ /dev/null @@ -1,378 +0,0 @@ - - - - - globals: interface for all global variables of the library - - - - - - - - - - - - - - - - -

    - globals -

    -

    globals - interface for all global variables of the library

    -

    all the global variables and thread handling for those variables is handled by this module. The bottom of this file is automatically generated by build_glob.py based on the description file global.data

    -

    Author(s): Gary Pennington <Gary.Pennington@uk.sun.com>, Daniel Veillard

    -
    -

    Synopsis

    -
    typedef xmlGlobalState * xmlGlobalStatePtr;
    -typedef struct _xmlGlobalState xmlGlobalState;
    -void	xmlThrDefSetStructuredErrorFunc	(void * ctx, 
    xmlStructuredErrorFunc handler); -void xmlInitializeGlobalState (xmlGlobalStatePtr gs); -xmlBufferAllocationScheme xmlThrDefBufferAllocScheme (xmlBufferAllocationScheme v); -int xmlThrDefPedanticParserDefaultValue (int v); -xmlRegisterNodeFunc xmlRegisterNodeDefault (xmlRegisterNodeFunc func); -typedef xmlParserInputBufferPtr xmlParserInputBufferCreateFilenameFunc (const char * URI,
    xmlCharEncoding enc); -xmlOutputBufferCreateFilenameFunc xmlThrDefOutputBufferCreateFilenameDefault (xmlOutputBufferCreateFilenameFunc func); -xmlDeregisterNodeFunc xmlDeregisterNodeDefault (xmlDeregisterNodeFunc func); -int xmlThrDefDefaultBufferSize (int v); -xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameDefault (xmlOutputBufferCreateFilenameFunc func); -int xmlThrDefLoadExtDtdDefaultValue (int v); -xmlRegisterNodeFunc xmlThrDefRegisterNodeDefault (xmlRegisterNodeFunc func); -int xmlThrDefKeepBlanksDefaultValue (int v); -typedef void xmlDeregisterNodeFunc (xmlNodePtr node); -int xmlThrDefParserDebugEntities (int v); -xmlParserInputBufferCreateFilenameFunc xmlThrDefParserInputBufferCreateFilenameDefault (xmlParserInputBufferCreateFilenameFunc func); -void xmlThrDefSetGenericErrorFunc (void * ctx,
    xmlGenericErrorFunc handler); -xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameDefault (xmlParserInputBufferCreateFilenameFunc func); -int xmlThrDefDoValidityCheckingDefaultValue (int v); -void xmlCleanupGlobals (void); -int xmlThrDefGetWarningsDefaultValue (int v); -xmlDeregisterNodeFunc xmlThrDefDeregisterNodeDefault (xmlDeregisterNodeFunc func); -int xmlThrDefSubstituteEntitiesDefaultValue (int v); -typedef void xmlRegisterNodeFunc (xmlNodePtr node); -int xmlThrDefSaveNoEmptyTags (int v); -int xmlThrDefIndentTreeOutput (int v); -typedef xmlOutputBufferPtr xmlOutputBufferCreateFilenameFunc (const char * URI,
    xmlCharEncodingHandlerPtr encoder,
    int compression); -void xmlInitGlobals (void); -int xmlThrDefLineNumbersDefaultValue (int v); -const char * xmlThrDefTreeIndentString (const char * v); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlGlobalState

    struct _xmlGlobalState {
    -    const char *	xmlParserVersion
    -    xmlSAXLocator	xmlDefaultSAXLocator
    -    xmlSAXHandlerV1	xmlDefaultSAXHandler
    -    xmlSAXHandlerV1	docbDefaultSAXHandler
    -    xmlSAXHandlerV1	htmlDefaultSAXHandler
    -    xmlFreeFunc	xmlFree
    -    xmlMallocFunc	xmlMalloc
    -    xmlStrdupFunc	xmlMemStrdup
    -    xmlReallocFunc	xmlRealloc
    -    xmlGenericErrorFunc	xmlGenericError
    -    xmlStructuredErrorFunc	xmlStructuredError
    -    void *	xmlGenericErrorContext
    -    int	oldXMLWDcompatibility
    -    xmlBufferAllocationScheme	xmlBufferAllocScheme
    -    int	xmlDefaultBufferSize
    -    int	xmlSubstituteEntitiesDefaultValue
    -    int	xmlDoValidityCheckingDefaultValue
    -    int	xmlGetWarningsDefaultValue
    -    int	xmlKeepBlanksDefaultValue
    -    int	xmlLineNumbersDefaultValue
    -    int	xmlLoadExtDtdDefaultValue
    -    int	xmlParserDebugEntities
    -    int	xmlPedanticParserDefaultValue
    -    int	xmlSaveNoEmptyTags
    -    int	xmlIndentTreeOutput
    -    const char *	xmlTreeIndentString
    -    xmlRegisterNodeFunc	xmlRegisterNodeDefaultValue
    -    xmlDeregisterNodeFunc	xmlDeregisterNodeDefaultValue
    -    xmlMallocFunc	xmlMallocAtomic
    -    xmlError	xmlLastError
    -    xmlParserInputBufferCreateFilenameFunc	xmlParserInputBufferCreateFilenameValue
    -    xmlOutputBufferCreateFilenameFunc	xmlOutputBufferCreateFilenameValue
    -} xmlGlobalState;
    -

    -

    -
    -

    Typedef xmlGlobalStatePtr

    xmlGlobalState * xmlGlobalStatePtr;
    -

    -

    -
    - -
    -

    Function type xmlOutputBufferCreateFilenameFunc

    xmlOutputBufferPtr	xmlOutputBufferCreateFilenameFunc	(const char * URI, 
    xmlCharEncodingHandlerPtr encoder,
    int compression)
    -

    -

    URI:
    encoder:
    compression:
    Returns:
    -
    -

    Function type xmlParserInputBufferCreateFilenameFunc

    xmlParserInputBufferPtr	xmlParserInputBufferCreateFilenameFunc	(const char * URI, 
    xmlCharEncoding enc)
    -

    -

    URI:
    enc:
    Returns:
    -
    - -
    -

    Variable docbDefaultSAXHandler

    xmlSAXHandlerV1 docbDefaultSAXHandler;
    -

    -

    -
    -

    Variable htmlDefaultSAXHandler

    xmlSAXHandlerV1 htmlDefaultSAXHandler;
    -

    -

    -
    -

    Variable oldXMLWDcompatibility

    int oldXMLWDcompatibility;
    -

    -

    -
    -

    Variable xmlBufferAllocScheme

    xmlBufferAllocationScheme xmlBufferAllocScheme;
    -

    -

    -
    -

    Variable xmlDefaultBufferSize

    int xmlDefaultBufferSize;
    -

    -

    -
    -

    Variable xmlDefaultSAXHandler

    xmlSAXHandlerV1 xmlDefaultSAXHandler;
    -

    -

    -
    -

    Variable xmlDefaultSAXLocator

    xmlSAXLocator xmlDefaultSAXLocator;
    -

    -

    -
    -

    Variable xmlDeregisterNodeDefaultValue

    xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue;
    -

    -

    -
    -

    Variable xmlDoValidityCheckingDefaultValue

    int xmlDoValidityCheckingDefaultValue;
    -

    -

    -
    -

    Variable xmlFree

    xmlFreeFunc xmlFree;
    -

    -

    -
    -

    Variable xmlGenericError

    xmlGenericErrorFunc xmlGenericError;
    -

    -

    -
    -

    Variable xmlGenericErrorContext

    void * xmlGenericErrorContext;
    -

    -

    -
    -

    Variable xmlGetWarningsDefaultValue

    int xmlGetWarningsDefaultValue;
    -

    -

    -
    -

    Variable xmlIndentTreeOutput

    int xmlIndentTreeOutput;
    -

    -

    -
    -

    Variable xmlKeepBlanksDefaultValue

    int xmlKeepBlanksDefaultValue;
    -

    -

    -
    -

    Variable xmlLastError

    xmlError xmlLastError;
    -

    -

    -
    -

    Variable xmlLineNumbersDefaultValue

    int xmlLineNumbersDefaultValue;
    -

    -

    -
    -

    Variable xmlLoadExtDtdDefaultValue

    int xmlLoadExtDtdDefaultValue;
    -

    -

    -
    -

    Variable xmlMalloc

    xmlMallocFunc xmlMalloc;
    -

    -

    -
    -

    Variable xmlMallocAtomic

    xmlMallocFunc xmlMallocAtomic;
    -

    -

    -
    -

    Variable xmlMemStrdup

    xmlStrdupFunc xmlMemStrdup;
    -

    -

    -
    -

    Variable xmlOutputBufferCreateFilenameValue

    xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue;
    -

    -

    -
    -

    Variable xmlParserDebugEntities

    int xmlParserDebugEntities;
    -

    -

    -
    -

    Variable xmlParserInputBufferCreateFilenameValue

    xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue;
    -

    -

    -
    -

    Variable xmlParserVersion

    const char * xmlParserVersion;
    -

    -

    -
    -

    Variable xmlPedanticParserDefaultValue

    int xmlPedanticParserDefaultValue;
    -

    -

    -
    -

    Variable xmlRealloc

    xmlReallocFunc xmlRealloc;
    -

    -

    -
    -

    Variable xmlRegisterNodeDefaultValue

    xmlRegisterNodeFunc xmlRegisterNodeDefaultValue;
    -

    -

    -
    -

    Variable xmlSaveNoEmptyTags

    int xmlSaveNoEmptyTags;
    -

    -

    -
    -

    Variable xmlStructuredError

    xmlStructuredErrorFunc xmlStructuredError;
    -

    -

    -
    -

    Variable xmlSubstituteEntitiesDefaultValue

    int xmlSubstituteEntitiesDefaultValue;
    -

    -

    -
    -

    Variable xmlTreeIndentString

    const char * xmlTreeIndentString;
    -

    -

    -
    - -
    -

    xmlDeregisterNodeDefault ()

    xmlDeregisterNodeFunc	xmlDeregisterNodeDefault	(xmlDeregisterNodeFunc func)
    -

    Registers a callback for node destruction

    -
    func:function pointer to the new DeregisterNodeFunc
    Returns:the previous value of the deregistration function
    -
    - -
    -

    xmlInitializeGlobalState ()

    void	xmlInitializeGlobalState	(xmlGlobalStatePtr gs)
    -

    xmlInitializeGlobalState() initialize a global state with all the default values of the library.

    -
    gs:a pointer to a newly allocated global state
    -
    -

    xmlOutputBufferCreateFilenameDefault ()

    xmlOutputBufferCreateFilenameFunc	xmlOutputBufferCreateFilenameDefault	(xmlOutputBufferCreateFilenameFunc func)
    -

    Registers a callback for URI output file handling

    -
    func:function pointer to the new OutputBufferCreateFilenameFunc
    Returns:the old value of the registration function
    -
    -

    xmlParserInputBufferCreateFilenameDefault ()

    xmlParserInputBufferCreateFilenameFunc	xmlParserInputBufferCreateFilenameDefault	(xmlParserInputBufferCreateFilenameFunc func)
    -

    Registers a callback for URI input file handling

    -
    func:function pointer to the new ParserInputBufferCreateFilenameFunc
    Returns:the old value of the registration function
    -
    -

    xmlRegisterNodeDefault ()

    xmlRegisterNodeFunc	xmlRegisterNodeDefault	(xmlRegisterNodeFunc func)
    -

    Registers a callback for node creation

    -
    func:function pointer to the new RegisterNodeFunc
    Returns:the old value of the registration function
    -
    - -
    - -
    -

    xmlThrDefDeregisterNodeDefault ()

    xmlDeregisterNodeFunc	xmlThrDefDeregisterNodeDefault	(xmlDeregisterNodeFunc func)
    -

    -

    func:
    Returns:
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    - -
    -

    xmlThrDefRegisterNodeDefault ()

    xmlRegisterNodeFunc	xmlThrDefRegisterNodeDefault	(xmlRegisterNodeFunc func)
    -

    -

    func:
    Returns:
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-hash.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-hash.html deleted file mode 100644 index c5a9911b56..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-hash.html +++ /dev/null @@ -1,214 +0,0 @@ - - - - - hash: Chained hash tables - - - - - - - - - - - - - - - - -

    - hash -

    -

    hash - Chained hash tables

    -

    This module implements the hash table support used in various places in the library.

    -

    Author(s): Bjorn Reese <bjorn.reese@systematic.dk>

    -
    -

    Synopsis

    -
    #define XML_CAST_FPTR(fptr);
    -typedef struct _xmlHashTable xmlHashTable;
    -typedef xmlHashTable * xmlHashTablePtr;
    -void	xmlHashScanFull			(xmlHashTablePtr table, 
    xmlHashScannerFull f,
    void * data); -void xmlHashScan (xmlHashTablePtr table,
    xmlHashScanner f,
    void * data); -typedef void xmlHashScannerFull (void * payload,
    void * data,
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3); -xmlHashTablePtr xmlHashCreateDict (int size,
    xmlDictPtr dict); -int xmlHashAddEntry (xmlHashTablePtr table,
    const xmlChar * name,
    void * userdata); -int xmlHashUpdateEntry (xmlHashTablePtr table,
    const xmlChar * name,
    void * userdata,
    xmlHashDeallocator f); -void * xmlHashQLookup3 (xmlHashTablePtr table,
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * prefix2,
    const xmlChar * name2,
    const xmlChar * prefix3,
    const xmlChar * name3); -void * xmlHashQLookup2 (xmlHashTablePtr table,
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * prefix2,
    const xmlChar * name2); -void xmlHashScan3 (xmlHashTablePtr table,
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    xmlHashScanner f,
    void * data); -typedef void xmlHashScanner (void * payload,
    void * data,
    xmlChar * name); -typedef void xmlHashDeallocator (void * payload,
    xmlChar * name); -xmlHashTablePtr xmlHashCreate (int size); -void xmlHashFree (xmlHashTablePtr table,
    xmlHashDeallocator f); -void * xmlHashLookup (xmlHashTablePtr table,
    const xmlChar * name); -void * xmlHashQLookup (xmlHashTablePtr table,
    const xmlChar * prefix,
    const xmlChar * name); -int xmlHashUpdateEntry2 (xmlHashTablePtr table,
    const xmlChar * name,
    const xmlChar * name2,
    void * userdata,
    xmlHashDeallocator f); -int xmlHashRemoveEntry2 (xmlHashTablePtr table,
    const xmlChar * name,
    const xmlChar * name2,
    xmlHashDeallocator f); -int xmlHashRemoveEntry3 (xmlHashTablePtr table,
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    xmlHashDeallocator f); -xmlHashTablePtr xmlHashCopy (xmlHashTablePtr table,
    xmlHashCopier f); -void xmlHashScanFull3 (xmlHashTablePtr table,
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    xmlHashScannerFull f,
    void * data); -int xmlHashUpdateEntry3 (xmlHashTablePtr table,
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    void * userdata,
    xmlHashDeallocator f); -void * xmlHashLookup3 (xmlHashTablePtr table,
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3); -void * xmlHashLookup2 (xmlHashTablePtr table,
    const xmlChar * name,
    const xmlChar * name2); -int xmlHashRemoveEntry (xmlHashTablePtr table,
    const xmlChar * name,
    xmlHashDeallocator f); -typedef void * xmlHashCopier (void * payload,
    xmlChar * name); -int xmlHashAddEntry2 (xmlHashTablePtr table,
    const xmlChar * name,
    const xmlChar * name2,
    void * userdata); -int xmlHashAddEntry3 (xmlHashTablePtr table,
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    void * userdata); -int xmlHashSize (xmlHashTablePtr table); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro XML_CAST_FPTR

    #define XML_CAST_FPTR(fptr);
    -

    Macro to do a casting from an object pointer to a function pointer without encountering a warning from gcc #define XML_CAST_FPTR(fptr) (*(void **)(&fptr)) This macro violated ISO C aliasing rules (gcc4 on s390 broke) so it is disabled now

    fptr:pointer to a function
    -
    -
    -

    Structure xmlHashTable

    struct _xmlHashTable {
    -The content of this structure is not made public by the API.
    -} xmlHashTable;
    -

    -

    -
    -

    Typedef xmlHashTablePtr

    xmlHashTable * xmlHashTablePtr;
    -

    -

    -
    -

    Function type xmlHashCopier

    void *	xmlHashCopier			(void * payload, 
    xmlChar * name)
    -

    Callback to copy data from a hash.

    -
    payload:the data in the hash
    name:the name associated
    Returns:a copy of the data or NULL in case of error.
    -
    -

    Function type xmlHashDeallocator

    void	xmlHashDeallocator		(void * payload, 
    xmlChar * name)
    -

    Callback to free data from a hash.

    -
    payload:the data in the hash
    name:the name associated
    -
    -

    Function type xmlHashScanner

    void	xmlHashScanner			(void * payload, 
    void * data,
    xmlChar * name)
    -

    Callback when scanning data in a hash with the simple scanner.

    -
    payload:the data in the hash
    data:extra scannner data
    name:the name associated
    -
    -

    Function type xmlHashScannerFull

    void	xmlHashScannerFull		(void * payload, 
    void * data,
    const
    xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3)
    -

    Callback when scanning data in a hash with the full scanner.

    -
    payload:the data in the hash
    data:extra scannner data
    name:the name associated
    name2:the second name associated
    name3:the third name associated
    -
    -

    xmlHashAddEntry ()

    int	xmlHashAddEntry			(xmlHashTablePtr table, 
    const xmlChar * name,
    void * userdata)
    -

    Add the @userdata to the hash @table. This can later be retrieved by using the @name. Duplicate names generate errors.

    -
    table:the hash table
    name:the name of the userdata
    userdata:a pointer to the userdata
    Returns:0 the addition succeeded and -1 in case of error.
    -
    -

    xmlHashAddEntry2 ()

    int	xmlHashAddEntry2		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    void * userdata)
    -

    Add the @userdata to the hash @table. This can later be retrieved by using the (@name, @name2) tuple. Duplicate tuples generate errors.

    -
    table:the hash table
    name:the name of the userdata
    name2:a second name of the userdata
    userdata:a pointer to the userdata
    Returns:0 the addition succeeded and -1 in case of error.
    -
    -

    xmlHashAddEntry3 ()

    int	xmlHashAddEntry3		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    void * userdata)
    -

    Add the @userdata to the hash @table. This can later be retrieved by using the tuple (@name, @name2, @name3). Duplicate entries generate errors.

    -
    table:the hash table
    name:the name of the userdata
    name2:a second name of the userdata
    name3:a third name of the userdata
    userdata:a pointer to the userdata
    Returns:0 the addition succeeded and -1 in case of error.
    -
    -

    xmlHashCopy ()

    xmlHashTablePtr	xmlHashCopy		(xmlHashTablePtr table, 
    xmlHashCopier f)
    -

    Scan the hash @table and applied @f to each value.

    -
    table:the hash table
    f:the copier function for items in the hash
    Returns:the new table or NULL in case of error.
    -
    -

    xmlHashCreate ()

    xmlHashTablePtr	xmlHashCreate		(int size)
    -

    Create a new xmlHashTablePtr.

    -
    size:the size of the hash table
    Returns:the newly created object, or NULL if an error occured.
    -
    -

    xmlHashCreateDict ()

    xmlHashTablePtr	xmlHashCreateDict	(int size, 
    xmlDictPtr dict)
    -

    Create a new xmlHashTablePtr which will use @dict as the internal dictionary

    -
    size:the size of the hash table
    dict:a dictionary to use for the hash
    Returns:the newly created object, or NULL if an error occured.
    -
    -

    xmlHashFree ()

    void	xmlHashFree			(xmlHashTablePtr table, 
    xmlHashDeallocator f)
    -

    Free the hash @table and its contents. The userdata is deallocated with @f if provided.

    -
    table:the hash table
    f:the deallocator function for items in the hash
    -
    -

    xmlHashLookup ()

    void *	xmlHashLookup			(xmlHashTablePtr table, 
    const xmlChar * name)
    -

    Find the userdata specified by the @name.

    -
    table:the hash table
    name:the name of the userdata
    Returns:the pointer to the userdata
    -
    -

    xmlHashLookup2 ()

    void *	xmlHashLookup2			(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2)
    -

    Find the userdata specified by the (@name, @name2) tuple.

    -
    table:the hash table
    name:the name of the userdata
    name2:a second name of the userdata
    Returns:the pointer to the userdata
    -
    -

    xmlHashLookup3 ()

    void *	xmlHashLookup3			(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3)
    -

    Find the userdata specified by the (@name, @name2, @name3) tuple.

    -
    table:the hash table
    name:the name of the userdata
    name2:a second name of the userdata
    name3:a third name of the userdata
    Returns:the a pointer to the userdata
    -
    -

    xmlHashQLookup ()

    void *	xmlHashQLookup			(xmlHashTablePtr table, 
    const xmlChar * prefix,
    const xmlChar * name)
    -

    Find the userdata specified by the QName @prefix:@name/@name.

    -
    table:the hash table
    prefix:the prefix of the userdata
    name:the name of the userdata
    Returns:the pointer to the userdata
    -
    -

    xmlHashQLookup2 ()

    void *	xmlHashQLookup2			(xmlHashTablePtr table, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * prefix2,
    const xmlChar * name2)
    -

    Find the userdata specified by the QNames tuple

    -
    table:the hash table
    prefix:the prefix of the userdata
    name:the name of the userdata
    prefix2:the second prefix of the userdata
    name2:a second name of the userdata
    Returns:the pointer to the userdata
    -
    -

    xmlHashQLookup3 ()

    void *	xmlHashQLookup3			(xmlHashTablePtr table, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * prefix2,
    const xmlChar * name2,
    const xmlChar * prefix3,
    const xmlChar * name3)
    -

    Find the userdata specified by the (@name, @name2, @name3) tuple.

    -
    table:the hash table
    prefix:the prefix of the userdata
    name:the name of the userdata
    prefix2:the second prefix of the userdata
    name2:a second name of the userdata
    prefix3:the third prefix of the userdata
    name3:a third name of the userdata
    Returns:the a pointer to the userdata
    -
    -

    xmlHashRemoveEntry ()

    int	xmlHashRemoveEntry		(xmlHashTablePtr table, 
    const xmlChar * name,
    xmlHashDeallocator f)
    -

    Find the userdata specified by the @name and remove it from the hash @table. Existing userdata for this tuple will be removed and freed with @f.

    -
    table:the hash table
    name:the name of the userdata
    f:the deallocator function for removed item (if any)
    Returns:0 if the removal succeeded and -1 in case of error or not found.
    -
    -

    xmlHashRemoveEntry2 ()

    int	xmlHashRemoveEntry2		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    xmlHashDeallocator f)
    -

    Find the userdata specified by the (@name, @name2) tuple and remove it from the hash @table. Existing userdata for this tuple will be removed and freed with @f.

    -
    table:the hash table
    name:the name of the userdata
    name2:a second name of the userdata
    f:the deallocator function for removed item (if any)
    Returns:0 if the removal succeeded and -1 in case of error or not found.
    -
    -

    xmlHashRemoveEntry3 ()

    int	xmlHashRemoveEntry3		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    xmlHashDeallocator f)
    -

    Find the userdata specified by the (@name, @name2, @name3) tuple and remove it from the hash @table. Existing userdata for this tuple will be removed and freed with @f.

    -
    table:the hash table
    name:the name of the userdata
    name2:a second name of the userdata
    name3:a third name of the userdata
    f:the deallocator function for removed item (if any)
    Returns:0 if the removal succeeded and -1 in case of error or not found.
    -
    -

    xmlHashScan ()

    void	xmlHashScan			(xmlHashTablePtr table, 
    xmlHashScanner f,
    void * data)
    -

    Scan the hash @table and applied @f to each value.

    -
    table:the hash table
    f:the scanner function for items in the hash
    data:extra data passed to f
    -
    -

    xmlHashScan3 ()

    void	xmlHashScan3			(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    xmlHashScanner f,
    void * data)
    -

    Scan the hash @table and applied @f to each value matching (@name, @name2, @name3) tuple. If one of the names is null, the comparison is considered to match.

    -
    table:the hash table
    name:the name of the userdata or NULL
    name2:a second name of the userdata or NULL
    name3:a third name of the userdata or NULL
    f:the scanner function for items in the hash
    data:extra data passed to f
    -
    -

    xmlHashScanFull ()

    void	xmlHashScanFull			(xmlHashTablePtr table, 
    xmlHashScannerFull f,
    void * data)
    -

    Scan the hash @table and applied @f to each value.

    -
    table:the hash table
    f:the scanner function for items in the hash
    data:extra data passed to f
    -
    -

    xmlHashScanFull3 ()

    void	xmlHashScanFull3		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    xmlHashScannerFull f,
    void * data)
    -

    Scan the hash @table and applied @f to each value matching (@name, @name2, @name3) tuple. If one of the names is null, the comparison is considered to match.

    -
    table:the hash table
    name:the name of the userdata or NULL
    name2:a second name of the userdata or NULL
    name3:a third name of the userdata or NULL
    f:the scanner function for items in the hash
    data:extra data passed to f
    -
    -

    xmlHashSize ()

    int	xmlHashSize			(xmlHashTablePtr table)
    -

    Query the number of elements installed in the hash @table.

    -
    table:the hash table
    Returns:the number of elements in the hash table or -1 in case of error
    -
    -

    xmlHashUpdateEntry ()

    int	xmlHashUpdateEntry		(xmlHashTablePtr table, 
    const xmlChar * name,
    void * userdata,
    xmlHashDeallocator f)
    -

    Add the @userdata to the hash @table. This can later be retrieved by using the @name. Existing entry for this @name will be removed and freed with @f if found.

    -
    table:the hash table
    name:the name of the userdata
    userdata:a pointer to the userdata
    f:the deallocator function for replaced item (if any)
    Returns:0 the addition succeeded and -1 in case of error.
    -
    -

    xmlHashUpdateEntry2 ()

    int	xmlHashUpdateEntry2		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    void * userdata,
    xmlHashDeallocator f)
    -

    Add the @userdata to the hash @table. This can later be retrieved by using the (@name, @name2) tuple. Existing entry for this tuple will be removed and freed with @f if found.

    -
    table:the hash table
    name:the name of the userdata
    name2:a second name of the userdata
    userdata:a pointer to the userdata
    f:the deallocator function for replaced item (if any)
    Returns:0 the addition succeeded and -1 in case of error.
    -
    -

    xmlHashUpdateEntry3 ()

    int	xmlHashUpdateEntry3		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    void * userdata,
    xmlHashDeallocator f)
    -

    Add the @userdata to the hash @table. This can later be retrieved by using the tuple (@name, @name2, @name3). Existing entry for this tuple will be removed and freed with @f if found.

    -
    table:the hash table
    name:the name of the userdata
    name2:a second name of the userdata
    name3:a third name of the userdata
    userdata:a pointer to the userdata
    f:the deallocator function for replaced item (if any)
    Returns:0 the addition succeeded and -1 in case of error.
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-list.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-list.html deleted file mode 100644 index 8a4fa734c5..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-list.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - list: lists interfaces - - - - - - - - - - - - - - - - -

    - list -

    -

    list - lists interfaces

    -

    this module implement the list support used in various place in the library.

    -

    Author(s): Gary Pennington <Gary.Pennington@uk.sun.com>

    -
    -

    Synopsis

    -
    typedef struct _xmlLink xmlLink;
    -typedef xmlLink * xmlLinkPtr;
    -typedef struct _xmlList xmlList;
    -typedef xmlList * xmlListPtr;
    -int	xmlListInsert			(xmlListPtr l, 
    void * data); -int xmlListEmpty (xmlListPtr l); -void xmlListSort (xmlListPtr l); -typedef void xmlListDeallocator (xmlLinkPtr lk); -void xmlListMerge (xmlListPtr l1,
    xmlListPtr l2); -xmlListPtr xmlListCreate (xmlListDeallocator deallocator,
    xmlListDataCompare compare); -xmlListPtr xmlListDup (const xmlListPtr old); -int xmlListRemoveLast (xmlListPtr l,
    void * data); -void xmlListWalk (xmlListPtr l,
    xmlListWalker walker,
    const void * user); -int xmlListRemoveAll (xmlListPtr l,
    void * data); -int xmlListCopy (xmlListPtr cur,
    const xmlListPtr old); -void xmlListPopFront (xmlListPtr l); -void * xmlListSearch (xmlListPtr l,
    void * data); -typedef int xmlListWalker (const void * data,
    const void * user); -int xmlListRemoveFirst (xmlListPtr l,
    void * data); -void xmlListReverseWalk (xmlListPtr l,
    xmlListWalker walker,
    const void * user); -void * xmlLinkGetData (xmlLinkPtr lk); -void xmlListClear (xmlListPtr l); -int xmlListAppend (xmlListPtr l,
    void * data); -void xmlListReverse (xmlListPtr l); -typedef int xmlListDataCompare (const void * data0,
    const void * data1); -int xmlListSize (xmlListPtr l); -int xmlListPushFront (xmlListPtr l,
    void * data); -xmlLinkPtr xmlListEnd (xmlListPtr l); -void xmlListPopBack (xmlListPtr l); -void * xmlListReverseSearch (xmlListPtr l,
    void * data); -int xmlListPushBack (xmlListPtr l,
    void * data); -xmlLinkPtr xmlListFront (xmlListPtr l); -void xmlListDelete (xmlListPtr l); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlLink

    struct _xmlLink {
    -The content of this structure is not made public by the API.
    -} xmlLink;
    -

    -

    -
    -

    Typedef xmlLinkPtr

    xmlLink * xmlLinkPtr;
    -

    -

    -
    -

    Structure xmlList

    struct _xmlList {
    -The content of this structure is not made public by the API.
    -} xmlList;
    -

    -

    -
    -

    Typedef xmlListPtr

    xmlList * xmlListPtr;
    -

    -

    -
    - -
    -

    Function type xmlListDeallocator

    void	xmlListDeallocator		(xmlLinkPtr lk)
    -

    Callback function used to free data from a list.

    -
    lk:the data to deallocate
    -
    - -
    -

    xmlLinkGetData ()

    void *	xmlLinkGetData			(xmlLinkPtr lk)
    -

    See Returns.

    -
    lk:a link
    Returns:a pointer to the data referenced from this link
    -
    -

    xmlListAppend ()

    int	xmlListAppend			(xmlListPtr l, 
    void * data)
    -

    Insert data in the ordered list at the end for this value

    -
    l:a list
    data:the data
    Returns:0 in case of success, 1 in case of failure
    -
    -

    xmlListClear ()

    void	xmlListClear			(xmlListPtr l)
    -

    Remove the all data in the list

    -
    l:a list
    -
    -

    xmlListCopy ()

    int	xmlListCopy			(xmlListPtr cur, 
    const xmlListPtr old)
    -

    Move all the element from the old list in the new list

    -
    cur:the new list
    old:the old list
    Returns:0 in case of success 1 in case of error
    -
    -

    xmlListCreate ()

    xmlListPtr	xmlListCreate		(xmlListDeallocator deallocator, 
    xmlListDataCompare compare)
    -

    Create a new list

    -
    deallocator:an optional deallocator function
    compare:an optional comparison function
    Returns:the new list or NULL in case of error
    -
    -

    xmlListDelete ()

    void	xmlListDelete			(xmlListPtr l)
    -

    Deletes the list and its associated data

    -
    l:a list
    -
    -

    xmlListDup ()

    xmlListPtr	xmlListDup		(const xmlListPtr old)
    -

    Duplicate the list

    -
    old:the list
    Returns:a new copy of the list or NULL in case of error
    -
    -

    xmlListEmpty ()

    int	xmlListEmpty			(xmlListPtr l)
    -

    Is the list empty ?

    -
    l:a list
    Returns:1 if the list is empty, 0 if not empty and -1 in case of error
    -
    -

    xmlListEnd ()

    xmlLinkPtr	xmlListEnd		(xmlListPtr l)
    -

    Get the last element in the list

    -
    l:a list
    Returns:the last element in the list, or NULL
    -
    -

    xmlListFront ()

    xmlLinkPtr	xmlListFront		(xmlListPtr l)
    -

    Get the first element in the list

    -
    l:a list
    Returns:the first element in the list, or NULL
    -
    -

    xmlListInsert ()

    int	xmlListInsert			(xmlListPtr l, 
    void * data)
    -

    Insert data in the ordered list at the beginning for this value

    -
    l:a list
    data:the data
    Returns:0 in case of success, 1 in case of failure
    -
    -

    xmlListMerge ()

    void	xmlListMerge			(xmlListPtr l1, 
    xmlListPtr l2)
    -

    include all the elements of the second list in the first one and clear the second list

    -
    l1:the original list
    l2:the new list
    -
    -

    xmlListPopBack ()

    void	xmlListPopBack			(xmlListPtr l)
    -

    Removes the last element in the list

    -
    l:a list
    -
    -

    xmlListPopFront ()

    void	xmlListPopFront			(xmlListPtr l)
    -

    Removes the first element in the list

    -
    l:a list
    -
    -

    xmlListPushBack ()

    int	xmlListPushBack			(xmlListPtr l, 
    void * data)
    -

    add the new data at the end of the list

    -
    l:a list
    data:new data
    Returns:1 if successful, 0 otherwise
    -
    -

    xmlListPushFront ()

    int	xmlListPushFront		(xmlListPtr l, 
    void * data)
    -

    add the new data at the beginning of the list

    -
    l:a list
    data:new data
    Returns:1 if successful, 0 otherwise
    -
    -

    xmlListRemoveAll ()

    int	xmlListRemoveAll		(xmlListPtr l, 
    void * data)
    -

    Remove the all instance associated to data in the list

    -
    l:a list
    data:list data
    Returns:the number of deallocation, or 0 if not found
    -
    -

    xmlListRemoveFirst ()

    int	xmlListRemoveFirst		(xmlListPtr l, 
    void * data)
    -

    Remove the first instance associated to data in the list

    -
    l:a list
    data:list data
    Returns:1 if a deallocation occured, or 0 if not found
    -
    -

    xmlListRemoveLast ()

    int	xmlListRemoveLast		(xmlListPtr l, 
    void * data)
    -

    Remove the last instance associated to data in the list

    -
    l:a list
    data:list data
    Returns:1 if a deallocation occured, or 0 if not found
    -
    -

    xmlListReverse ()

    void	xmlListReverse			(xmlListPtr l)
    -

    Reverse the order of the elements in the list

    -
    l:a list
    -
    -

    xmlListReverseSearch ()

    void *	xmlListReverseSearch		(xmlListPtr l, 
    void * data)
    -

    Search the list in reverse order for an existing value of @data

    -
    l:a list
    data:a search value
    Returns:the value associated to @data or NULL in case of error
    -
    -

    xmlListReverseWalk ()

    void	xmlListReverseWalk		(xmlListPtr l, 
    xmlListWalker walker,
    const void * user)
    -

    Walk all the element of the list in reverse order and apply the walker function to it

    -
    l:a list
    walker:a processing function
    user:a user parameter passed to the walker function
    -
    -

    xmlListSearch ()

    void *	xmlListSearch			(xmlListPtr l, 
    void * data)
    -

    Search the list for an existing value of @data

    -
    l:a list
    data:a search value
    Returns:the value associated to @data or NULL in case of error
    -
    -

    xmlListSize ()

    int	xmlListSize			(xmlListPtr l)
    -

    Get the number of elements in the list

    -
    l:a list
    Returns:the number of elements in the list or -1 in case of error
    -
    -

    xmlListSort ()

    void	xmlListSort			(xmlListPtr l)
    -

    Sort all the elements in the list

    -
    l:a list
    -
    -

    xmlListWalk ()

    void	xmlListWalk			(xmlListPtr l, 
    xmlListWalker walker,
    const void * user)
    -

    Walk all the element of the first from first to last and apply the walker function to it

    -
    l:a list
    walker:a processing function
    user:a user parameter passed to the walker function
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-nanoftp.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-nanoftp.html deleted file mode 100644 index f79370ec60..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-nanoftp.html +++ /dev/null @@ -1,177 +0,0 @@ - - - - - nanoftp: minimal FTP implementation - - - - - - - - - - - - - - - - -

    - nanoftp -

    -

    nanoftp - minimal FTP implementation

    -

    minimal FTP implementation allowing to fetch resources like external subset.

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    int	xmlNanoFTPQuit			(void * ctx);
    -int	xmlNanoFTPClose			(void * ctx);
    -typedef void ftpListCallback			(void * userData, 
    const char * filename,
    const char * attrib,
    const char * owner,
    const char * group,
    unsigned long size,
    int links,
    int year,
    const char * month,
    int day,
    int hour,
    int minute); -int xmlNanoFTPCloseConnection (void * ctx); -void xmlNanoFTPProxy (const char * host,
    int port,
    const char * user,
    const char * passwd,
    int type); -int xmlNanoFTPUpdateURL (void * ctx,
    const char * URL); -int xmlNanoFTPGetConnection (void * ctx); -int xmlNanoFTPDele (void * ctx,
    const char * file); -void * xmlNanoFTPNewCtxt (const char * URL); -int xmlNanoFTPCheckResponse (void * ctx); -void xmlNanoFTPScanProxy (const char * URL); -typedef void ftpDataCallback (void * userData,
    const char * data,
    int len); -int xmlNanoFTPGetResponse (void * ctx); -int xmlNanoFTPCwd (void * ctx,
    const char * directory); -void xmlNanoFTPInit (void); -void * xmlNanoFTPConnectTo (const char * server,
    int port); -int xmlNanoFTPList (void * ctx,
    ftpListCallback callback,
    void * userData,
    const char * filename); -void * xmlNanoFTPOpen (const char * URL); -int xmlNanoFTPConnect (void * ctx); -int xmlNanoFTPGetSocket (void * ctx,
    const char * filename); -int xmlNanoFTPGet (void * ctx,
    ftpDataCallback callback,
    void * userData,
    const char * filename); -int xmlNanoFTPRead (void * ctx,
    void * dest,
    int len); -void xmlNanoFTPFreeCtxt (void * ctx); -void xmlNanoFTPCleanup (void); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Function type ftpDataCallback

    void	ftpDataCallback			(void * userData, 
    const char * data,
    int len)
    -

    A callback for the xmlNanoFTPGet command.

    -
    userData:the user provided context
    data:the data received
    len:its size in bytes
    -
    -

    Function type ftpListCallback

    void	ftpListCallback			(void * userData, 
    const char * filename,
    const char * attrib,
    const char * owner,
    const char * group,
    unsigned long size,
    int links,
    int year,
    const char * month,
    int day,
    int hour,
    int minute)
    -

    A callback for the xmlNanoFTPList command. Note that only one of year and day:minute are specified.

    -
    userData:user provided data for the callback
    filename:the file name (including "->" when links are shown)
    attrib:the attribute string
    owner:the owner string
    group:the group string
    size:the file size
    links:the link count
    year:the year
    month:the month
    day:the day
    hour:the hour
    minute:the minute
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    xmlNanoFTPGet ()

    int	xmlNanoFTPGet			(void * ctx, 
    ftpDataCallback callback,
    void * userData,
    const char * filename)
    -

    Fetch the given file from the server. All data are passed back in the callbacks. The last callback has a size of 0 block.

    -
    ctx:an FTP context
    callback:the user callback
    userData:the user callback data
    filename:the file to retrieve
    Returns:-1 incase of error, 0 otherwise
    -
    - -
    -
    -
    -
    -
    -
    -
    -

    xmlNanoFTPList ()

    int	xmlNanoFTPList			(void * ctx, 
    ftpListCallback callback,
    void * userData,
    const char * filename)
    -

    Do a listing on the server. All files info are passed back in the callbacks.

    -
    ctx:an FTP context
    callback:the user callback
    userData:the user callback data
    filename:optional files to list
    Returns:-1 incase of error, 0 otherwise
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-nanohttp.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-nanohttp.html deleted file mode 100644 index 075ae4817e..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-nanohttp.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - nanohttp: minimal HTTP implementation - - - - - - - - - - - - - - - - -

    - nanohttp -

    -

    nanohttp - minimal HTTP implementation

    -

    minimal HTTP implementation allowing to fetch resources like external subset.

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    int	xmlNanoHTTPRead			(void * ctx, 
    void * dest,
    int len); -int xmlNanoHTTPSave (void * ctxt,
    const char * filename); -const char * xmlNanoHTTPRedir (void * ctx); -const char * xmlNanoHTTPAuthHeader (void * ctx); -int xmlNanoHTTPFetch (const char * URL,
    const char * filename,
    char ** contentType); -int xmlNanoHTTPContentLength (void * ctx); -const char * xmlNanoHTTPMimeType (void * ctx); -void xmlNanoHTTPClose (void * ctx); -void xmlNanoHTTPCleanup (void); -void * xmlNanoHTTPMethod (const char * URL,
    const char * method,
    const char * input,
    char ** contentType,
    const char * headers,
    int ilen); -void xmlNanoHTTPInit (void); -void * xmlNanoHTTPOpen (const char * URL,
    char ** contentType); -void * xmlNanoHTTPOpenRedir (const char * URL,
    char ** contentType,
    char ** redir); -void * xmlNanoHTTPMethodRedir (const char * URL,
    const char * method,
    const char * input,
    char ** contentType,
    char ** redir,
    const char * headers,
    int ilen); -void xmlNanoHTTPScanProxy (const char * URL); -const char * xmlNanoHTTPEncoding (void * ctx); -int xmlNanoHTTPReturnCode (void * ctx); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-parser.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-parser.html deleted file mode 100644 index bc7e54eb8b..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-parser.html +++ /dev/null @@ -1,757 +0,0 @@ - - - - - parser: the core parser module - - - - - - - - - - - - - - - - -

    - parser -

    -

    parser - the core parser module

    -

    Interfaces, constants and types related to the XML parser

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    #define XML_COMPLETE_ATTRS;
    -#define XML_SKIP_IDS;
    -#define XML_SAX2_MAGIC;
    -#define XML_DETECT_IDS;
    -#define XML_DEFAULT_VERSION;
    -typedef xmlParserNodeInfoSeq * xmlParserNodeInfoSeqPtr;
    -typedef struct _xmlSAXHandlerV1 xmlSAXHandlerV1;
    -typedef enum xmlParserInputState;
    -typedef xmlParserNodeInfo * xmlParserNodeInfoPtr;
    -typedef struct _xmlParserNodeInfoSeq xmlParserNodeInfoSeq;
    -typedef enum xmlFeature;
    -typedef enum xmlParserMode;
    -typedef enum xmlParserOption;
    -typedef xmlSAXHandlerV1 * xmlSAXHandlerV1Ptr;
    -typedef struct _xmlParserNodeInfo xmlParserNodeInfo;
    -void	xmlSetupParserForBuffer		(xmlParserCtxtPtr ctxt, 
    const xmlChar * buffer,
    const char * filename); -xmlDocPtr xmlCtxtReadFile (xmlParserCtxtPtr ctxt,
    const char * filename,
    const char * encoding,
    int options); -int xmlParseCtxtExternalEntity (xmlParserCtxtPtr ctx,
    const xmlChar * URL,
    const xmlChar * ID,
    xmlNodePtr * lst); -typedef void attributeDeclSAXFunc (void * ctx,
    const xmlChar * elem,
    const xmlChar * fullname,
    int type,
    int def,
    const xmlChar * defaultValue,
    xmlEnumerationPtr tree); -typedef xmlEntityPtr getEntitySAXFunc (void * ctx,
    const xmlChar * name); -typedef void startElementSAXFunc (void * ctx,
    const xmlChar * name,
    const xmlChar ** atts); -typedef void charactersSAXFunc (void * ctx,
    const xmlChar * ch,
    int len); -void xmlClearNodeInfoSeq (xmlParserNodeInfoSeqPtr seq); -int xmlParseChunk (xmlParserCtxtPtr ctxt,
    const char * chunk,
    int size,
    int terminate); -xmlDocPtr xmlParseEntity (const char * filename); -xmlDocPtr xmlRecoverFile (const char * filename); -xmlDocPtr xmlCtxtReadDoc (xmlParserCtxtPtr ctxt,
    const xmlChar * cur,
    const char * URL,
    const char * encoding,
    int options); -typedef void startElementNsSAX2Func (void * ctx,
    const xmlChar * localname,
    const xmlChar * prefix,
    const xmlChar * URI,
    int nb_namespaces,
    const xmlChar ** namespaces,
    int nb_attributes,
    int nb_defaulted,
    const xmlChar ** attributes); -xmlParserCtxtPtr xmlCreateIOParserCtxt (xmlSAXHandlerPtr sax,
    void * user_data,
    xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    xmlCharEncoding enc); -xmlParserErrors xmlParseInNodeContext (xmlNodePtr node,
    const char * data,
    int datalen,
    int options,
    xmlNodePtr * lst); -typedef void referenceSAXFunc (void * ctx,
    const xmlChar * name); -typedef int hasExternalSubsetSAXFunc (void * ctx); -xmlDocPtr xmlSAXParseDoc (xmlSAXHandlerPtr sax,
    const xmlChar * cur,
    int recovery); -xmlDocPtr xmlReadMemory (const char * buffer,
    int size,
    const char * URL,
    const char * encoding,
    int options); -xmlDocPtr xmlParseMemory (const char * buffer,
    int size); -xmlParserInputPtr xmlNewIOInputStream (xmlParserCtxtPtr ctxt,
    xmlParserInputBufferPtr input,
    xmlCharEncoding enc); -typedef void processingInstructionSAXFunc (void * ctx,
    const xmlChar * target,
    const xmlChar * data); -int xmlParseBalancedChunkMemoryRecover (xmlDocPtr doc,
    xmlSAXHandlerPtr sax,
    void * user_data,
    int depth,
    const xmlChar * string,
    xmlNodePtr * lst,
    int recover); -void xmlInitParser (void); -xmlParserCtxtPtr xmlCreateDocParserCtxt (const xmlChar * cur); -typedef void errorSAXFunc (void * ctx,
    const char * msg,
    ... ...); -xmlDocPtr xmlSAXParseMemory (xmlSAXHandlerPtr sax,
    const char * buffer,
    int size,
    int recovery); -xmlDocPtr xmlRecoverMemory (const char * buffer,
    int size); -typedef xmlParserInputPtr xmlExternalEntityLoader (const char * URL,
    const char * ID,
    xmlParserCtxtPtr context); -typedef int hasInternalSubsetSAXFunc (void * ctx); -typedef void cdataBlockSAXFunc (void * ctx,
    const xmlChar * value,
    int len); -xmlDocPtr xmlSAXParseFile (xmlSAXHandlerPtr sax,
    const char * filename,
    int recovery); -typedef void xmlParserInputDeallocate (xmlChar * str); -xmlDocPtr xmlCtxtReadIO (xmlParserCtxtPtr ctxt,
    xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options); -xmlDocPtr xmlSAXParseMemoryWithData (xmlSAXHandlerPtr sax,
    const char * buffer,
    int size,
    int recovery,
    void * data); -int xmlGetFeature (xmlParserCtxtPtr ctxt,
    const char * name,
    void * result); -xmlDtdPtr xmlIOParseDTD (xmlSAXHandlerPtr sax,
    xmlParserInputBufferPtr input,
    xmlCharEncoding enc); -void xmlFreeParserCtxt (xmlParserCtxtPtr ctxt); -xmlDtdPtr xmlParseDTD (const xmlChar * ExternalID,
    const xmlChar * SystemID); -xmlDocPtr xmlRecoverDoc (xmlChar * cur); -typedef void commentSAXFunc (void * ctx,
    const xmlChar * value); -int xmlInitParserCtxt (xmlParserCtxtPtr ctxt); -typedef void attributeSAXFunc (void * ctx,
    const xmlChar * name,
    const xmlChar * value); -int xmlParserInputGrow (xmlParserInputPtr in,
    int len); -xmlDocPtr xmlCtxtReadMemory (xmlParserCtxtPtr ctxt,
    const char * buffer,
    int size,
    const char * URL,
    const char * encoding,
    int options); -typedef void externalSubsetSAXFunc (void * ctx,
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID); -typedef xmlParserInputPtr resolveEntitySAXFunc (void * ctx,
    const xmlChar * publicId,
    const xmlChar * systemId); -int xmlPedanticParserDefault (int val); -xmlDocPtr xmlSAXParseEntity (xmlSAXHandlerPtr sax,
    const char * filename); -xmlDocPtr xmlParseDoc (const xmlChar * cur); -xmlDocPtr xmlSAXParseFileWithData (xmlSAXHandlerPtr sax,
    const char * filename,
    int recovery,
    void * data); -int xmlLineNumbersDefault (int val); -xmlExternalEntityLoader xmlGetExternalEntityLoader (void); -typedef void elementDeclSAXFunc (void * ctx,
    const xmlChar * name,
    int type,
    xmlElementContentPtr content); -int xmlCtxtUseOptions (xmlParserCtxtPtr ctxt,
    int options); -xmlParserCtxtPtr xmlCreatePushParserCtxt (xmlSAXHandlerPtr sax,
    void * user_data,
    const char * chunk,
    int size,
    const char * filename); -void xmlParserAddNodeInfo (xmlParserCtxtPtr ctxt,
    const xmlParserNodeInfoPtr info); -xmlDocPtr xmlCtxtReadFd (xmlParserCtxtPtr ctxt,
    int fd,
    const char * URL,
    const char * encoding,
    int options); -typedef void internalSubsetSAXFunc (void * ctx,
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID); -xmlParserCtxtPtr xmlNewParserCtxt (void); -typedef void endDocumentSAXFunc (void * ctx); -xmlDocPtr xmlParseFile (const char * filename); -int xmlParseDocument (xmlParserCtxtPtr ctxt); -typedef void setDocumentLocatorSAXFunc (void * ctx,
    xmlSAXLocatorPtr loc); -typedef xmlEntityPtr getParameterEntitySAXFunc (void * ctx,
    const xmlChar * name); -typedef void ignorableWhitespaceSAXFunc (void * ctx,
    const xmlChar * ch,
    int len); -void xmlInitNodeInfoSeq (xmlParserNodeInfoSeqPtr seq); -int xmlSubstituteEntitiesDefault (int val); -typedef void endElementSAXFunc (void * ctx,
    const xmlChar * name); -unsigned long xmlParserFindNodeInfoIndex (const xmlParserNodeInfoSeqPtr seq,
    const xmlNodePtr node); -long xmlByteConsumed (xmlParserCtxtPtr ctxt); -void xmlCtxtReset (xmlParserCtxtPtr ctxt); -int xmlSetFeature (xmlParserCtxtPtr ctxt,
    const char * name,
    void * value); -int xmlKeepBlanksDefault (int val); -int xmlParserInputRead (xmlParserInputPtr in,
    int len); -xmlDocPtr xmlReadFile (const char * filename,
    const char * encoding,
    int options); -int xmlGetFeaturesList (int * len,
    const char ** result); -int xmlHasFeature (xmlFeature feature); -typedef void unparsedEntityDeclSAXFunc (void * ctx,
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId,
    const xmlChar * notationName); -int xmlSAXUserParseFile (xmlSAXHandlerPtr sax,
    void * user_data,
    const char * filename); -typedef void fatalErrorSAXFunc (void * ctx,
    const char * msg,
    ... ...); -xmlDtdPtr xmlSAXParseDTD (xmlSAXHandlerPtr sax,
    const xmlChar * ExternalID,
    const xmlChar * SystemID); -const xmlParserNodeInfo * xmlParserFindNodeInfo (const xmlParserCtxtPtr ctx,
    const xmlNodePtr node); -typedef void entityDeclSAXFunc (void * ctx,
    const xmlChar * name,
    int type,
    const xmlChar * publicId,
    const xmlChar * systemId,
    xmlChar * content); -xmlParserInputPtr xmlLoadExternalEntity (const char * URL,
    const char * ID,
    xmlParserCtxtPtr ctxt); -void xmlStopParser (xmlParserCtxtPtr ctxt); -xmlDocPtr xmlReadFd (int fd,
    const char * URL,
    const char * encoding,
    int options); -int xmlParseExtParsedEnt (xmlParserCtxtPtr ctxt); -xmlDocPtr xmlReadIO (xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options); -xmlDocPtr xmlReadDoc (const xmlChar * cur,
    const char * URL,
    const char * encoding,
    int options); -int xmlSAXUserParseMemory (xmlSAXHandlerPtr sax,
    void * user_data,
    const char * buffer,
    int size); -int xmlParseBalancedChunkMemory (xmlDocPtr doc,
    xmlSAXHandlerPtr sax,
    void * user_data,
    int depth,
    const xmlChar * string,
    xmlNodePtr * lst); -typedef void endElementNsSAX2Func (void * ctx,
    const xmlChar * localname,
    const xmlChar * prefix,
    const xmlChar * URI); -void xmlCleanupParser (void); -int xmlCtxtResetPush (xmlParserCtxtPtr ctxt,
    const char * chunk,
    int size,
    const char * filename,
    const char * encoding); -typedef int isStandaloneSAXFunc (void * ctx); -typedef void startDocumentSAXFunc (void * ctx); -void xmlClearParserCtxt (xmlParserCtxtPtr ctxt); -int xmlParseExternalEntity (xmlDocPtr doc,
    xmlSAXHandlerPtr sax,
    void * user_data,
    int depth,
    const xmlChar * URL,
    const xmlChar * ID,
    xmlNodePtr * lst); -typedef void notationDeclSAXFunc (void * ctx,
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId); -typedef void warningSAXFunc (void * ctx,
    const char * msg,
    ... ...); -void xmlSetExternalEntityLoader (xmlExternalEntityLoader f); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro XML_COMPLETE_ATTRS

    #define XML_COMPLETE_ATTRS;
    -

    Bit in the loadsubset context field to tell to do complete the elements attributes lists with the ones defaulted from the DTDs. Use it to initialize xmlLoadExtDtdDefaultValue.

    -
    -
    -

    Macro XML_DEFAULT_VERSION

    #define XML_DEFAULT_VERSION;
    -

    The default version of XML used: 1.0

    -
    -
    -

    Macro XML_DETECT_IDS

    #define XML_DETECT_IDS;
    -

    Bit in the loadsubset context field to tell to do ID/REFs lookups. Use it to initialize xmlLoadExtDtdDefaultValue.

    -
    -
    -

    Macro XML_SAX2_MAGIC

    #define XML_SAX2_MAGIC;
    -

    Special constant found in SAX2 blocks initialized fields

    -
    -
    -

    Macro XML_SKIP_IDS

    #define XML_SKIP_IDS;
    -

    Bit in the loadsubset context field to tell to not do ID/REFs registration. Used to initialize xmlLoadExtDtdDefaultValue in some special cases.

    -
    -
    - -
    -

    Enum xmlParserInputState

    enum xmlParserInputState {
    -    XML_PARSER_EOF = -1 /* nothing is to be parsed */
    -    XML_PARSER_START = 0 /* nothing has been parsed */
    -    XML_PARSER_MISC = 1 /* Misc* before int subset */
    -    XML_PARSER_PI = 2 /* Within a processing instruction */
    -    XML_PARSER_DTD = 3 /* within some DTD content */
    -    XML_PARSER_PROLOG = 4 /* Misc* after internal subset */
    -    XML_PARSER_COMMENT = 5 /* within a comment */
    -    XML_PARSER_START_TAG = 6 /* within a start tag */
    -    XML_PARSER_CONTENT = 7 /* within the content */
    -    XML_PARSER_CDATA_SECTION = 8 /* within a CDATA section */
    -    XML_PARSER_END_TAG = 9 /* within a closing tag */
    -    XML_PARSER_ENTITY_DECL = 10 /* within an entity declaration */
    -    XML_PARSER_ENTITY_VALUE = 11 /* within an entity value in a decl */
    -    XML_PARSER_ATTRIBUTE_VALUE = 12 /* within an attribute value */
    -    XML_PARSER_SYSTEM_LITERAL = 13 /* within a SYSTEM value */
    -    XML_PARSER_EPILOG = 14 /* the Misc* after the last end tag */
    -    XML_PARSER_IGNORE = 15 /* within an IGNORED section */
    -    XML_PARSER_PUBLIC_LITERAL = 16 /*  within a PUBLIC value */
    -};
    -

    -

    -
    - -
    -

    Structure xmlParserNodeInfo

    struct _xmlParserNodeInfo {
    -    const struct _xmlNode *	node	: Position & line # that text that created the node begins & ends on
    -    unsigned long	begin_pos
    -    unsigned long	begin_line
    -    unsigned long	end_pos
    -    unsigned long	end_line
    -} xmlParserNodeInfo;
    -

    -

    -
    -

    Typedef xmlParserNodeInfoPtr

    xmlParserNodeInfo * xmlParserNodeInfoPtr;
    -

    -

    -
    -

    Structure xmlParserNodeInfoSeq

    struct _xmlParserNodeInfoSeq {
    -    unsigned long	maximum
    -    unsigned long	length
    -    xmlParserNodeInfo *	buffer
    -} xmlParserNodeInfoSeq;
    -

    -

    -
    -

    Typedef xmlParserNodeInfoSeqPtr

    xmlParserNodeInfoSeq * xmlParserNodeInfoSeqPtr;
    -

    -

    -
    -

    Enum xmlParserOption

    enum xmlParserOption {
    -    XML_PARSE_RECOVER = 1 /* recover on errors */
    -    XML_PARSE_NOENT = 2 /* substitute entities */
    -    XML_PARSE_DTDLOAD = 4 /* load the external subset */
    -    XML_PARSE_DTDATTR = 8 /* default DTD attributes */
    -    XML_PARSE_DTDVALID = 16 /* validate with the DTD */
    -    XML_PARSE_NOERROR = 32 /* suppress error reports */
    -    XML_PARSE_NOWARNING = 64 /* suppress warning reports */
    -    XML_PARSE_PEDANTIC = 128 /* pedantic error reporting */
    -    XML_PARSE_NOBLANKS = 256 /* remove blank nodes */
    -    XML_PARSE_SAX1 = 512 /* use the SAX1 interface internally */
    -    XML_PARSE_XINCLUDE = 1024 /* Implement XInclude substitition */
    -    XML_PARSE_NONET = 2048 /* Forbid network access */
    -    XML_PARSE_NODICT = 4096 /* Do not reuse the context dictionnary */
    -    XML_PARSE_NSCLEAN = 8192 /* remove redundant namespaces declarations */
    -    XML_PARSE_NOCDATA = 16384 /* merge CDATA as text nodes */
    -    XML_PARSE_NOXINCNODE = 32768 /* do not generate XINCLUDE START/END nodes */
    -    XML_PARSE_COMPACT = 65536 /*  compact small text nodes */
    -};
    -

    -

    -
    -

    Structure xmlSAXHandlerV1

    struct _xmlSAXHandlerV1 {
    -    internalSubsetSAXFunc	internalSubset
    -    isStandaloneSAXFunc	isStandalone
    -    hasInternalSubsetSAXFunc	hasInternalSubset
    -    hasExternalSubsetSAXFunc	hasExternalSubset
    -    resolveEntitySAXFunc	resolveEntity
    -    getEntitySAXFunc	getEntity
    -    entityDeclSAXFunc	entityDecl
    -    notationDeclSAXFunc	notationDecl
    -    attributeDeclSAXFunc	attributeDecl
    -    elementDeclSAXFunc	elementDecl
    -    unparsedEntityDeclSAXFunc	unparsedEntityDecl
    -    setDocumentLocatorSAXFunc	setDocumentLocator
    -    startDocumentSAXFunc	startDocument
    -    endDocumentSAXFunc	endDocument
    -    startElementSAXFunc	startElement
    -    endElementSAXFunc	endElement
    -    referenceSAXFunc	reference
    -    charactersSAXFunc	characters
    -    ignorableWhitespaceSAXFunc	ignorableWhitespace
    -    processingInstructionSAXFunc	processingInstruction
    -    commentSAXFunc	comment
    -    warningSAXFunc	warning
    -    errorSAXFunc	error
    -    fatalErrorSAXFunc	fatalError	: unused error() get all the errors
    -    getParameterEntitySAXFunc	getParameterEntity
    -    cdataBlockSAXFunc	cdataBlock
    -    externalSubsetSAXFunc	externalSubset
    -    unsigned int	initialized
    -} xmlSAXHandlerV1;
    -

    -

    -
    -

    Typedef xmlSAXHandlerV1Ptr

    xmlSAXHandlerV1 * xmlSAXHandlerV1Ptr;
    -

    -

    -
    -

    Function type attributeDeclSAXFunc

    void	attributeDeclSAXFunc		(void * ctx, 
    const
    xmlChar * elem,
    const xmlChar * fullname,
    int type,
    int def,
    const xmlChar * defaultValue,
    xmlEnumerationPtr tree)
    -

    An attribute definition has been parsed.

    -
    ctx:the user data (XML parser context)
    elem:the name of the element
    fullname:the attribute name
    type:the attribute type
    def:the type of default value
    defaultValue:the attribute default value
    tree:the tree of enumerated value set
    -
    -

    Function type attributeSAXFunc

    void	attributeSAXFunc		(void * ctx, 
    const
    xmlChar * name,
    const xmlChar * value)
    -

    Handle an attribute that has been read by the parser. The default handling is to convert the attribute into an DOM subtree and past it in a new xmlAttr element added to the element.

    -
    ctx:the user data (XML parser context)
    name:The attribute name, including namespace prefix
    value:The attribute value
    -
    -

    Function type cdataBlockSAXFunc

    void	cdataBlockSAXFunc		(void * ctx, 
    const
    xmlChar * value,
    int len)
    -

    Called when a pcdata block has been parsed.

    -
    ctx:the user data (XML parser context)
    value:The pcdata content
    len:the block length
    -
    -

    Function type charactersSAXFunc

    void	charactersSAXFunc		(void * ctx, 
    const
    xmlChar * ch,
    int len)
    -

    Receiving some chars from the parser.

    -
    ctx:the user data (XML parser context)
    ch:a xmlChar string
    len:the number of xmlChar
    -
    -

    Function type commentSAXFunc

    void	commentSAXFunc			(void * ctx, 
    const
    xmlChar * value)
    -

    A comment has been parsed.

    -
    ctx:the user data (XML parser context)
    value:the comment content
    -
    -

    Function type elementDeclSAXFunc

    void	elementDeclSAXFunc		(void * ctx, 
    const
    xmlChar * name,
    int type,
    xmlElementContentPtr content)
    -

    An element definition has been parsed.

    -
    ctx:the user data (XML parser context)
    name:the element name
    type:the element type
    content:the element value tree
    -
    - -
    -

    Function type endElementNsSAX2Func

    void	endElementNsSAX2Func		(void * ctx, 
    const
    xmlChar * localname,
    const xmlChar * prefix,
    const xmlChar * URI)
    -

    SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element.

    -
    ctx:the user data (XML parser context)
    localname:the local name of the element
    prefix:the element namespace prefix if available
    URI:the element namespace name if available
    -
    -

    Function type endElementSAXFunc

    void	endElementSAXFunc		(void * ctx, 
    const
    xmlChar * name)
    -

    Called when the end of an element has been detected.

    -
    ctx:the user data (XML parser context)
    name:The element name
    -
    -

    Function type entityDeclSAXFunc

    void	entityDeclSAXFunc		(void * ctx, 
    const
    xmlChar * name,
    int type,
    const xmlChar * publicId,
    const xmlChar * systemId,
    xmlChar * content)
    -

    An entity definition has been parsed.

    -
    ctx:the user data (XML parser context)
    name:the entity name
    type:the entity type
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    content:the entity value (without processing).
    -
    - -
    -

    Function type externalSubsetSAXFunc

    void	externalSubsetSAXFunc		(void * ctx, 
    const
    xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    Callback on external subset declaration.

    -
    ctx:the user data (XML parser context)
    name:the root element name
    ExternalID:the external ID
    SystemID:the SYSTEM ID (e.g. filename or URL)
    -
    - -
    -

    Function type getEntitySAXFunc

    xmlEntityPtr	getEntitySAXFunc	(void * ctx, 
    const xmlChar * name)
    -

    Get an entity by name.

    -
    ctx:the user data (XML parser context)
    name:The entity name
    Returns:the xmlEntityPtr if found.
    -
    -

    Function type getParameterEntitySAXFunc

    xmlEntityPtr	getParameterEntitySAXFunc	(void * ctx, 
    const xmlChar * name)
    -

    Get a parameter entity by name.

    -
    ctx:the user data (XML parser context)
    name:The entity name
    Returns:the xmlEntityPtr if found.
    -
    - -
    -
    -
    -

    Function type ignorableWhitespaceSAXFunc

    void	ignorableWhitespaceSAXFunc	(void * ctx, 
    const
    xmlChar * ch,
    int len)
    -

    Receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use characters.

    -
    ctx:the user data (XML parser context)
    ch:a xmlChar string
    len:the number of xmlChar
    -
    -

    Function type internalSubsetSAXFunc

    void	internalSubsetSAXFunc		(void * ctx, 
    const
    xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    Callback on internal subset declaration.

    -
    ctx:the user data (XML parser context)
    name:the root element name
    ExternalID:the external ID
    SystemID:the SYSTEM ID (e.g. filename or URL)
    -
    - -
    -

    Function type notationDeclSAXFunc

    void	notationDeclSAXFunc		(void * ctx, 
    const
    xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId)
    -

    What to do when a notation declaration has been parsed.

    -
    ctx:the user data (XML parser context)
    name:The name of the notation
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    -
    -

    Function type processingInstructionSAXFunc

    void	processingInstructionSAXFunc	(void * ctx, 
    const
    xmlChar * target,
    const xmlChar * data)
    -

    A processing instruction has been parsed.

    -
    ctx:the user data (XML parser context)
    target:the target name
    data:the PI data's
    -
    -

    Function type referenceSAXFunc

    void	referenceSAXFunc		(void * ctx, 
    const
    xmlChar * name)
    -

    Called when an entity reference is detected.

    -
    ctx:the user data (XML parser context)
    name:The entity name
    -
    -

    Function type resolveEntitySAXFunc

    xmlParserInputPtr	resolveEntitySAXFunc	(void * ctx, 
    const xmlChar * publicId,
    const xmlChar * systemId)
    -

    Callback: The entity loader, to control the loading of external entities, the application can either: - override this resolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine

    -
    ctx:the user data (XML parser context)
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    Returns:the xmlParserInputPtr if inlined or NULL for DOM behaviour.
    -
    -

    Function type setDocumentLocatorSAXFunc

    void	setDocumentLocatorSAXFunc	(void * ctx, 
    xmlSAXLocatorPtr loc)
    -

    Receive the document locator at startup, actually xmlDefaultSAXLocator. Everything is available on the context, so this is useless in our case.

    -
    ctx:the user data (XML parser context)
    loc:A SAX Locator
    -
    - -
    -

    Function type startElementNsSAX2Func

    void	startElementNsSAX2Func		(void * ctx, 
    const
    xmlChar * localname,
    const xmlChar * prefix,
    const xmlChar * URI,
    int nb_namespaces,
    const xmlChar ** namespaces,
    int nb_attributes,
    int nb_defaulted,
    const xmlChar ** attributes)
    -

    SAX2 callback when an element start has been detected by the parser. It provides the namespace informations for the element, as well as the new namespace declarations on the element.

    -
    ctx:the user data (XML parser context)
    localname:the local name of the element
    prefix:the element namespace prefix if available
    URI:the element namespace name if available
    nb_namespaces:number of namespace definitions on that node
    namespaces:pointer to the array of prefix/URI pairs namespace definitions
    nb_attributes:the number of attributes on that node
    nb_defaulted:the number of defaulted attributes. The defaulted ones are at the end of the array
    attributes:pointer to the array of (localname/prefix/URI/value/end) attribute values.
    -
    -

    Function type startElementSAXFunc

    void	startElementSAXFunc		(void * ctx, 
    const
    xmlChar * name,
    const xmlChar ** atts)
    -

    Called when an opening tag has been processed.

    -
    ctx:the user data (XML parser context)
    name:The element name, including namespace prefix
    atts:An array of name/value attributes pairs, NULL terminated
    -
    -

    Function type unparsedEntityDeclSAXFunc

    void	unparsedEntityDeclSAXFunc	(void * ctx, 
    const
    xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId,
    const xmlChar * notationName)
    -

    What to do when an unparsed entity declaration is parsed.

    -
    ctx:the user data (XML parser context)
    name:The name of the entity
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    notationName:the name of the notation
    -
    - -
    -

    Function type xmlExternalEntityLoader

    xmlParserInputPtr	xmlExternalEntityLoader	(const char * URL, 
    const char * ID,
    xmlParserCtxtPtr context)
    -

    External entity loaders types.

    -
    URL:The System ID of the resource requested
    ID:The Public ID of the resource requested
    context:the XML parser context
    Returns:the entity input parser.
    -
    -

    Function type xmlParserInputDeallocate

    void	xmlParserInputDeallocate	(xmlChar * str)
    -

    Callback for freeing some parser input allocations.

    -
    str:the string to deallocate
    -
    -

    xmlByteConsumed ()

    long	xmlByteConsumed			(xmlParserCtxtPtr ctxt)
    -

    This function provides the current index of the parser relative to the start of the current entity. This function is computed in bytes from the beginning starting at zero and finishing at the size in byte of the file if parsing a file. The function is of constant cost if the input is UTF-8 but can be costly if run on non-UTF-8 input.

    -
    ctxt:an XML parser context
    Returns:the index in bytes from the beginning of the entity or -1 in case the index could not be computed.
    -
    - -
    -

    xmlClearNodeInfoSeq ()

    void	xmlClearNodeInfoSeq		(xmlParserNodeInfoSeqPtr seq)
    -

    -- Clear (release memory and reinitialize) node info sequence

    -
    seq:a node info sequence pointer
    -
    -

    xmlClearParserCtxt ()

    void	xmlClearParserCtxt		(xmlParserCtxtPtr ctxt)
    -

    Clear (release owned resources) and reinitialize a parser context

    -
    ctxt:an XML parser context
    -
    -

    xmlCreateDocParserCtxt ()

    xmlParserCtxtPtr	xmlCreateDocParserCtxt	(const xmlChar * cur)
    -

    Creates a parser context for an XML in-memory document.

    -
    cur:a pointer to an array of xmlChar
    Returns:the new parser context or NULL
    -
    -

    xmlCreateIOParserCtxt ()

    xmlParserCtxtPtr	xmlCreateIOParserCtxt	(xmlSAXHandlerPtr sax, 
    void * user_data,
    xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    xmlCharEncoding enc)
    -

    Create a parser context for using the XML parser with an existing I/O stream

    -
    sax:a SAX handler
    user_data:The user data returned on SAX callbacks
    ioread:an I/O read function
    ioclose:an I/O close function
    ioctx:an I/O handler
    enc:the charset encoding if known
    Returns:the new parser context or NULL
    -
    -

    xmlCreatePushParserCtxt ()

    xmlParserCtxtPtr	xmlCreatePushParserCtxt	(xmlSAXHandlerPtr sax, 
    void * user_data,
    const char * chunk,
    int size,
    const char * filename)
    -

    Create a parser context for using the XML parser in push mode. If @buffer and @size are non-NULL, the data is used to detect the encoding. The remaining characters will be parsed so they don't need to be fed in again through xmlParseChunk. To allow content encoding detection, @size should be >= 4 The value of @filename is used for fetching external entities and error/warning reports.

    -
    sax:a SAX handler
    user_data:The user data returned on SAX callbacks
    chunk:a pointer to an array of chars
    size:number of chars in the array
    filename:an optional file name or URI
    Returns:the new parser context or NULL
    -
    -

    xmlCtxtReadDoc ()

    xmlDocPtr	xmlCtxtReadDoc		(xmlParserCtxtPtr ctxt, 
    const xmlChar * cur,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context

    -
    ctxt:an XML parser context
    cur:a pointer to a zero terminated string
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree
    -
    -

    xmlCtxtReadFd ()

    xmlDocPtr	xmlCtxtReadFd		(xmlParserCtxtPtr ctxt, 
    int fd,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML from a file descriptor and build a tree. This reuses the existing @ctxt parser context NOTE that the file descriptor will not be closed when the reader is closed or reset.

    -
    ctxt:an XML parser context
    fd:an open file descriptor
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree
    -
    -

    xmlCtxtReadFile ()

    xmlDocPtr	xmlCtxtReadFile		(xmlParserCtxtPtr ctxt, 
    const char * filename,
    const char * encoding,
    int options)
    -

    parse an XML file from the filesystem or the network. This reuses the existing @ctxt parser context

    -
    ctxt:an XML parser context
    filename:a file or URL
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree
    -
    -

    xmlCtxtReadIO ()

    xmlDocPtr	xmlCtxtReadIO		(xmlParserCtxtPtr ctxt, 
    xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML document from I/O functions and source and build a tree. This reuses the existing @ctxt parser context

    -
    ctxt:an XML parser context
    ioread:an I/O read function
    ioclose:an I/O close function
    ioctx:an I/O handler
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree
    -
    -

    xmlCtxtReadMemory ()

    xmlDocPtr	xmlCtxtReadMemory	(xmlParserCtxtPtr ctxt, 
    const char * buffer,
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context

    -
    ctxt:an XML parser context
    buffer:a pointer to a char array
    size:the size of the array
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree
    -
    -

    xmlCtxtReset ()

    void	xmlCtxtReset			(xmlParserCtxtPtr ctxt)
    -

    Reset a parser context

    -
    ctxt:an XML parser context
    -
    -

    xmlCtxtResetPush ()

    int	xmlCtxtResetPush		(xmlParserCtxtPtr ctxt, 
    const char * chunk,
    int size,
    const char * filename,
    const char * encoding)
    -

    Reset a push parser context

    -
    ctxt:an XML parser context
    chunk:a pointer to an array of chars
    size:number of chars in the array
    filename:an optional file name or URI
    encoding:the document encoding, or NULL
    Returns:0 in case of success and 1 in case of error
    -
    -

    xmlCtxtUseOptions ()

    int	xmlCtxtUseOptions		(xmlParserCtxtPtr ctxt, 
    int options)
    -

    Applies the options to the parser context

    -
    ctxt:an XML parser context
    options:a combination of xmlParserOption
    Returns:0 in case of success, the set of unknown or unimplemented options in case of error.
    -
    -

    xmlFreeParserCtxt ()

    void	xmlFreeParserCtxt		(xmlParserCtxtPtr ctxt)
    -

    Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed.

    -
    ctxt:an XML parser context
    -
    -

    xmlGetExternalEntityLoader ()

    xmlExternalEntityLoader	xmlGetExternalEntityLoader	(void)
    -

    Get the default external entity resolver function for the application

    -
    Returns:the xmlExternalEntityLoader function pointer
    -
    -

    xmlGetFeature ()

    int	xmlGetFeature			(xmlParserCtxtPtr ctxt, 
    const char * name,
    void * result)
    -

    Read the current value of one feature of this parser instance

    -
    ctxt:an XML/HTML parser context
    name:the feature name
    result:location to store the result
    Returns:-1 in case or error, 0 otherwise
    -
    - -
    -

    xmlHasFeature ()

    int	xmlHasFeature			(xmlFeature feature)
    -

    Examines if the library has been compiled with a given feature.

    -
    feature:the feature to be examined
    Returns:a non-zero value if the feature exist, otherwise zero. Returns zero (0) if the feature does not exist or an unknown unknown feature is requested, non-zero otherwise.
    -
    -

    xmlIOParseDTD ()

    xmlDtdPtr	xmlIOParseDTD		(xmlSAXHandlerPtr sax, 
    xmlParserInputBufferPtr input,
    xmlCharEncoding enc)
    -

    Load and parse a DTD

    -
    sax:the SAX handler block or NULL
    input:an Input Buffer
    enc:the charset encoding if known
    Returns:the resulting xmlDtdPtr or NULL in case of error. @input will be freed at parsing end.
    -
    -

    xmlInitNodeInfoSeq ()

    void	xmlInitNodeInfoSeq		(xmlParserNodeInfoSeqPtr seq)
    -

    -- Initialize (set to initial state) node info sequence

    -
    seq:a node info sequence pointer
    -
    - -
    -

    xmlInitParserCtxt ()

    int	xmlInitParserCtxt		(xmlParserCtxtPtr ctxt)
    -

    Initialize a parser context

    -
    ctxt:an XML parser context
    Returns:0 in case of success and -1 in case of error
    -
    - -
    -
    -
    -

    xmlLoadExternalEntity ()

    xmlParserInputPtr	xmlLoadExternalEntity	(const char * URL, 
    const char * ID,
    xmlParserCtxtPtr ctxt)
    -

    Load an external entity, note that the use of this function for unparsed entities may generate problems

    -
    URL:the URL for the entity to load
    ID:the Public ID for the entity to load
    ctxt:the context in which the entity is called or NULL
    Returns:the xmlParserInputPtr or NULL
    -
    -

    xmlNewIOInputStream ()

    xmlParserInputPtr	xmlNewIOInputStream	(xmlParserCtxtPtr ctxt, 
    xmlParserInputBufferPtr input,
    xmlCharEncoding enc)
    -

    Create a new input stream structure encapsulating the @input into a stream suitable for the parser.

    -
    ctxt:an XML parser context
    input:an I/O Input
    enc:the charset encoding if known
    Returns:the new input stream or NULL
    -
    -

    xmlNewParserCtxt ()

    xmlParserCtxtPtr	xmlNewParserCtxt	(void)
    -

    Allocate and initialize a new parser context.

    -
    Returns:the xmlParserCtxtPtr or NULL
    -
    -

    xmlParseBalancedChunkMemory ()

    int	xmlParseBalancedChunkMemory	(xmlDocPtr doc, 
    xmlSAXHandlerPtr sax,
    void * user_data,
    int depth,
    const xmlChar * string,
    xmlNodePtr * lst)
    -

    Parse a well-balanced chunk of an XML document called by the parser The allowed sequence for the Well Balanced Chunk is the one defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

    -
    doc:the document the chunk pertains to
    sax:the SAX handler bloc (possibly NULL)
    user_data:The user data returned on SAX callbacks (possibly NULL)
    depth:Used for loop detection, use 0
    string:the input string in UTF8 or ISO-Latin (zero terminated)
    lst:the return value for the set of parsed nodes
    Returns:0 if the chunk is well balanced, -1 in case of args problem and the parser error code otherwise
    -
    -

    xmlParseBalancedChunkMemoryRecover ()

    int	xmlParseBalancedChunkMemoryRecover	(xmlDocPtr doc, 
    xmlSAXHandlerPtr sax,
    void * user_data,
    int depth,
    const xmlChar * string,
    xmlNodePtr * lst,
    int recover)
    -

    Parse a well-balanced chunk of an XML document called by the parser The allowed sequence for the Well Balanced Chunk is the one defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

    -
    doc:the document the chunk pertains to
    sax:the SAX handler bloc (possibly NULL)
    user_data:The user data returned on SAX callbacks (possibly NULL)
    depth:Used for loop detection, use 0
    string:the input string in UTF8 or ISO-Latin (zero terminated)
    lst:the return value for the set of parsed nodes
    recover:return nodes even if the data is broken (use 0)
    Returns:0 if the chunk is well balanced, -1 in case of args problem and the parser error code otherwise In case recover is set to 1, the nodelist will not be empty even if the parsed chunk is not well balanced.
    -
    -

    xmlParseChunk ()

    int	xmlParseChunk			(xmlParserCtxtPtr ctxt, 
    const char * chunk,
    int size,
    int terminate)
    -

    Parse a Chunk of memory

    -
    ctxt:an XML parser context
    chunk:an char array
    size:the size in byte of the chunk
    terminate:last chunk indicator
    Returns:zero if no error, the xmlParserErrors otherwise.
    -
    -

    xmlParseCtxtExternalEntity ()

    int	xmlParseCtxtExternalEntity	(xmlParserCtxtPtr ctx, 
    const xmlChar * URL,
    const xmlChar * ID,
    xmlNodePtr * lst)
    -

    Parse an external general entity within an existing parsing context An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content

    -
    ctx:the existing parsing context
    URL:the URL for the entity to load
    ID:the System ID for the entity to load
    lst:the return value for the set of parsed nodes
    Returns:0 if the entity is well formed, -1 in case of args problem and the parser error code otherwise
    -
    -

    xmlParseDTD ()

    xmlDtdPtr	xmlParseDTD		(const xmlChar * ExternalID, 
    const xmlChar * SystemID)
    -

    Load and parse an external subset.

    -
    ExternalID:a NAME* containing the External ID of the DTD
    SystemID:a NAME* containing the URL to the DTD
    Returns:the resulting xmlDtdPtr or NULL in case of error.
    -
    -

    xmlParseDoc ()

    xmlDocPtr	xmlParseDoc		(const xmlChar * cur)
    -

    parse an XML in-memory document and build a tree.

    -
    cur:a pointer to an array of xmlChar
    Returns:the resulting document tree
    -
    -

    xmlParseDocument ()

    int	xmlParseDocument		(xmlParserCtxtPtr ctxt)
    -

    parse an XML document (and build a tree if using the standard SAX interface). [1] document ::= prolog element Misc* [22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)?

    -
    ctxt:an XML parser context
    Returns:0, -1 in case of error. the parser context is augmented as a result of the parsing.
    -
    -

    xmlParseEntity ()

    xmlDocPtr	xmlParseEntity		(const char * filename)
    -

    parse an XML external entity out of context and build a tree. [78] extParsedEnt ::= TextDecl? content This correspond to a "Well Balanced" chunk

    -
    filename:the filename
    Returns:the resulting document tree
    -
    -

    xmlParseExtParsedEnt ()

    int	xmlParseExtParsedEnt		(xmlParserCtxtPtr ctxt)
    -

    parse a general parsed entity An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content

    -
    ctxt:an XML parser context
    Returns:0, -1 in case of error. the parser context is augmented as a result of the parsing.
    -
    -

    xmlParseExternalEntity ()

    int	xmlParseExternalEntity		(xmlDocPtr doc, 
    xmlSAXHandlerPtr sax,
    void * user_data,
    int depth,
    const xmlChar * URL,
    const xmlChar * ID,
    xmlNodePtr * lst)
    -

    Parse an external general entity An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content

    -
    doc:the document the chunk pertains to
    sax:the SAX handler bloc (possibly NULL)
    user_data:The user data returned on SAX callbacks (possibly NULL)
    depth:Used for loop detection, use 0
    URL:the URL for the entity to load
    ID:the System ID for the entity to load
    lst:the return value for the set of parsed nodes
    Returns:0 if the entity is well formed, -1 in case of args problem and the parser error code otherwise
    -
    -

    xmlParseFile ()

    xmlDocPtr	xmlParseFile		(const char * filename)
    -

    parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

    -
    filename:the filename
    Returns:the resulting document tree if the file was wellformed, NULL otherwise.
    -
    -

    xmlParseInNodeContext ()

    xmlParserErrors	xmlParseInNodeContext	(xmlNodePtr node, 
    const char * data,
    int datalen,
    int options,
    xmlNodePtr * lst)
    -

    Parse a well-balanced chunk of an XML document within the context (DTD, namespaces, etc ...) of the given node. The allowed sequence for the data is a Well Balanced Chunk defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

    -
    node:the context node
    data:the input string
    datalen:the input string length in bytes
    options:a combination of xmlParserOption
    lst:the return value for the set of parsed nodes
    Returns:XML_ERR_OK if the chunk is well balanced, and the parser error code otherwise
    -
    -

    xmlParseMemory ()

    xmlDocPtr	xmlParseMemory		(const char * buffer, 
    int size)
    -

    parse an XML in-memory block and build a tree.

    -
    buffer:an pointer to a char array
    size:the size of the array
    Returns:the resulting document tree
    -
    -

    xmlParserAddNodeInfo ()

    void	xmlParserAddNodeInfo		(xmlParserCtxtPtr ctxt, 
    const xmlParserNodeInfoPtr info)
    -

    Insert node info record into the sorted sequence

    -
    ctxt:an XML parser context
    info:a node info sequence pointer
    -
    -

    xmlParserFindNodeInfo ()

    const xmlParserNodeInfo *	xmlParserFindNodeInfo	(const xmlParserCtxtPtr ctx, 
    const xmlNodePtr node)
    -

    Find the parser node info struct for a given node

    -
    ctx:an XML parser context
    node:an XML node within the tree
    Returns:an xmlParserNodeInfo block pointer or NULL
    -
    -

    xmlParserFindNodeInfoIndex ()

    unsigned long	xmlParserFindNodeInfoIndex	(const xmlParserNodeInfoSeqPtr seq, 
    const xmlNodePtr node)
    -

    xmlParserFindNodeInfoIndex : Find the index that the info record for the given node is or should be at in a sorted sequence

    -
    seq:a node info sequence pointer
    node:an XML node pointer
    Returns:a long indicating the position of the record
    -
    -

    xmlParserInputGrow ()

    int	xmlParserInputGrow		(xmlParserInputPtr in, 
    int len)
    -

    This function increase the input for the parser. It tries to preserve pointers to the input buffer, and keep already read data

    -
    in:an XML parser input
    len:an indicative size for the lookahead
    Returns:the number of xmlChars read, or -1 in case of error, 0 indicate the end of this entity
    -
    -

    xmlParserInputRead ()

    int	xmlParserInputRead		(xmlParserInputPtr in, 
    int len)
    -

    This function refresh the input for the parser. It doesn't try to preserve pointers to the input buffer, and discard already read data

    -
    in:an XML parser input
    len:an indicative size for the lookahead
    Returns:the number of xmlChars read, or -1 in case of error, 0 indicate the end of this entity
    -
    - -
    -

    xmlReadDoc ()

    xmlDocPtr	xmlReadDoc		(const xmlChar * cur, 
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML in-memory document and build a tree.

    -
    cur:a pointer to a zero terminated string
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree
    -
    -

    xmlReadFd ()

    xmlDocPtr	xmlReadFd		(int fd, 
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML from a file descriptor and build a tree. NOTE that the file descriptor will not be closed when the reader is closed or reset.

    -
    fd:an open file descriptor
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree
    -
    -

    xmlReadFile ()

    xmlDocPtr	xmlReadFile		(const char * filename, 
    const char * encoding,
    int options)
    -

    parse an XML file from the filesystem or the network.

    -
    filename:a file or URL
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree
    -
    -

    xmlReadIO ()

    xmlDocPtr	xmlReadIO		(xmlInputReadCallback ioread, 
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML document from I/O functions and source and build a tree.

    -
    ioread:an I/O read function
    ioclose:an I/O close function
    ioctx:an I/O handler
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree
    -
    -

    xmlReadMemory ()

    xmlDocPtr	xmlReadMemory		(const char * buffer, 
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML in-memory document and build a tree.

    -
    buffer:a pointer to a char array
    size:the size of the array
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree
    -
    -

    xmlRecoverDoc ()

    xmlDocPtr	xmlRecoverDoc		(xmlChar * cur)
    -

    parse an XML in-memory document and build a tree. In the case the document is not Well Formed, a tree is built anyway

    -
    cur:a pointer to an array of xmlChar
    Returns:the resulting document tree
    -
    -

    xmlRecoverFile ()

    xmlDocPtr	xmlRecoverFile		(const char * filename)
    -

    parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. In the case the document is not Well Formed, a tree is built anyway

    -
    filename:the filename
    Returns:the resulting document tree
    -
    -

    xmlRecoverMemory ()

    xmlDocPtr	xmlRecoverMemory	(const char * buffer, 
    int size)
    -

    parse an XML in-memory block and build a tree. In the case the document is not Well Formed, a tree is built anyway

    -
    buffer:an pointer to a char array
    size:the size of the array
    Returns:the resulting document tree
    -
    -

    xmlSAXParseDTD ()

    xmlDtdPtr	xmlSAXParseDTD		(xmlSAXHandlerPtr sax, 
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    Load and parse an external subset.

    -
    sax:the SAX handler block
    ExternalID:a NAME* containing the External ID of the DTD
    SystemID:a NAME* containing the URL to the DTD
    Returns:the resulting xmlDtdPtr or NULL in case of error.
    -
    -

    xmlSAXParseDoc ()

    xmlDocPtr	xmlSAXParseDoc		(xmlSAXHandlerPtr sax, 
    const xmlChar * cur,
    int recovery)
    -

    parse an XML in-memory document and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.

    -
    sax:the SAX handler block
    cur:a pointer to an array of xmlChar
    recovery:work in recovery mode, i.e. tries to read no Well Formed documents
    Returns:the resulting document tree
    -
    -

    xmlSAXParseEntity ()

    xmlDocPtr	xmlSAXParseEntity	(xmlSAXHandlerPtr sax, 
    const char * filename)
    -

    parse an XML external entity out of context and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. [78] extParsedEnt ::= TextDecl? content This correspond to a "Well Balanced" chunk

    -
    sax:the SAX handler block
    filename:the filename
    Returns:the resulting document tree
    -
    -

    xmlSAXParseFile ()

    xmlDocPtr	xmlSAXParseFile		(xmlSAXHandlerPtr sax, 
    const char * filename,
    int recovery)
    -

    parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.

    -
    sax:the SAX handler block
    filename:the filename
    recovery:work in recovery mode, i.e. tries to read no Well Formed documents
    Returns:the resulting document tree
    -
    -

    xmlSAXParseFileWithData ()

    xmlDocPtr	xmlSAXParseFileWithData	(xmlSAXHandlerPtr sax, 
    const char * filename,
    int recovery,
    void * data)
    -

    parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. User data (void *) is stored within the parser context in the context's _private member, so it is available nearly everywhere in libxml

    -
    sax:the SAX handler block
    filename:the filename
    recovery:work in recovery mode, i.e. tries to read no Well Formed documents
    data:the userdata
    Returns:the resulting document tree
    -
    -

    xmlSAXParseMemory ()

    xmlDocPtr	xmlSAXParseMemory	(xmlSAXHandlerPtr sax, 
    const char * buffer,
    int size,
    int recovery)
    -

    parse an XML in-memory block and use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.

    -
    sax:the SAX handler block
    buffer:an pointer to a char array
    size:the size of the array
    recovery:work in recovery mode, i.e. tries to read not Well Formed documents
    Returns:the resulting document tree
    -
    -

    xmlSAXParseMemoryWithData ()

    xmlDocPtr	xmlSAXParseMemoryWithData	(xmlSAXHandlerPtr sax, 
    const char * buffer,
    int size,
    int recovery,
    void * data)
    -

    parse an XML in-memory block and use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. User data (void *) is stored within the parser context in the context's _private member, so it is available nearly everywhere in libxml

    -
    sax:the SAX handler block
    buffer:an pointer to a char array
    size:the size of the array
    recovery:work in recovery mode, i.e. tries to read no Well Formed documents
    data:the userdata
    Returns:the resulting document tree
    -
    -

    xmlSAXUserParseFile ()

    int	xmlSAXUserParseFile		(xmlSAXHandlerPtr sax, 
    void * user_data,
    const char * filename)
    -

    parse an XML file and call the given SAX handler routines. Automatic support for ZLIB/Compress compressed document is provided

    -
    sax:a SAX handler
    user_data:The user data returned on SAX callbacks
    filename:a file name
    Returns:0 in case of success or a error number otherwise
    -
    -

    xmlSAXUserParseMemory ()

    int	xmlSAXUserParseMemory		(xmlSAXHandlerPtr sax, 
    void * user_data,
    const char * buffer,
    int size)
    -

    A better SAX parsing routine. parse an XML in-memory buffer and call the given SAX handler routines.

    -
    sax:a SAX handler
    user_data:The user data returned on SAX callbacks
    buffer:an in-memory XML document input
    size:the length of the XML document in bytes
    Returns:0 in case of success or a error number otherwise
    -
    -

    xmlSetExternalEntityLoader ()

    void	xmlSetExternalEntityLoader	(xmlExternalEntityLoader f)
    -

    Changes the defaultexternal entity resolver function for the application

    -
    f:the new entity resolver function
    -
    -

    xmlSetFeature ()

    int	xmlSetFeature			(xmlParserCtxtPtr ctxt, 
    const char * name,
    void * value)
    -

    Change the current value of one feature of this parser instance

    -
    ctxt:an XML/HTML parser context
    name:the feature name
    value:pointer to the location of the new value
    Returns:-1 in case or error, 0 otherwise
    -
    -

    xmlSetupParserForBuffer ()

    void	xmlSetupParserForBuffer		(xmlParserCtxtPtr ctxt, 
    const xmlChar * buffer,
    const char * filename)
    -

    Setup the parser context to parse a new buffer; Clears any prior contents from the parser context. The buffer parameter must not be NULL, but the filename parameter can be

    -
    ctxt:an XML parser context
    buffer:a xmlChar * buffer
    filename:a file name
    -
    -

    xmlStopParser ()

    void	xmlStopParser			(xmlParserCtxtPtr ctxt)
    -

    Blocks further parser processing

    -
    ctxt:an XML parser context
    -
    - -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-parserInternals.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-parserInternals.html deleted file mode 100644 index 4287e2c35c..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-parserInternals.html +++ /dev/null @@ -1,668 +0,0 @@ - - - - - parserInternals: internals routines exported by the parser. - - - - - - - - - - - - - - - - -

    - parserInternals -

    -

    parserInternals - internals routines exported by the parser.

    -

    this module exports a number of internal parsing routines they are not really all intended for applications but can prove useful doing low level processing.

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    #define XML_SUBSTITUTE_REF;
    -#define IS_BLANK(c);
    -#define IS_BYTE_CHAR(c);
    -#define IS_PUBIDCHAR(c);
    -#define IS_DIGIT_CH(c);
    -#define IS_EXTENDER(c);
    -#define IS_ASCII_DIGIT(c);
    -#define IS_COMBINING_CH(c);
    -#define IS_CHAR(c);
    -#define IS_LETTER(c);
    -#define IS_IDEOGRAPHIC(c);
    -#define MOVETO_STARTTAG(p);
    -#define IS_ASCII_LETTER(c);
    -#define IS_DIGIT(c);
    -#define XML_SUBSTITUTE_PEREF;
    -#define MOVETO_ENDTAG(p);
    -#define SKIP_EOL(p);
    -#define IS_EXTENDER_CH(c);
    -#define IS_BLANK_CH(c);
    -#define IS_LETTER_CH(c);
    -#define XML_SUBSTITUTE_NONE;
    -#define IS_COMBINING(c);
    -#define XML_MAX_NAMELEN;
    -#define IS_BASECHAR(c);
    -#define INPUT_CHUNK;
    -#define IS_PUBIDCHAR_CH(c);
    -#define IS_CHAR_CH(c);
    -#define XML_SUBSTITUTE_BOTH;
    -xmlNodePtr	nodePop			(xmlParserCtxtPtr ctxt);
    -void	xmlParseNotationDecl		(xmlParserCtxtPtr ctxt);
    -void	xmlParseExternalSubset		(xmlParserCtxtPtr ctxt, 
    const xmlChar * ExternalID,
    const xmlChar * SystemID); -void xmlParseMisc (xmlParserCtxtPtr ctxt); -int xmlSwitchInputEncoding (xmlParserCtxtPtr ctxt,
    xmlParserInputPtr input,
    xmlCharEncodingHandlerPtr handler); -xmlParserInputPtr xmlNewStringInputStream (xmlParserCtxtPtr ctxt,
    const xmlChar * buffer); -xmlChar * xmlParseExternalID (xmlParserCtxtPtr ctxt,
    xmlChar ** publicID,
    int strict); -xmlChar * xmlScanName (xmlParserCtxtPtr ctxt); -int xmlParseElementDecl (xmlParserCtxtPtr ctxt); -void xmlParseMarkupDecl (xmlParserCtxtPtr ctxt); -htmlParserCtxtPtr htmlCreateFileParserCtxt (const char * filename,
    const char * encoding); -int inputPush (xmlParserCtxtPtr ctxt,
    xmlParserInputPtr value); -xmlChar * xmlStringLenDecodeEntities (xmlParserCtxtPtr ctxt,
    const xmlChar * str,
    int len,
    int what,
    xmlChar end,
    xmlChar end2,
    xmlChar end3); -const xmlChar * namePop (xmlParserCtxtPtr ctxt); -void xmlParseContent (xmlParserCtxtPtr ctxt); -xmlParserInputPtr xmlNewInputStream (xmlParserCtxtPtr ctxt); -xmlChar * xmlNamespaceParseQName (xmlParserCtxtPtr ctxt,
    xmlChar ** prefix); -xmlParserInputPtr xmlNewInputFromFile (xmlParserCtxtPtr ctxt,
    const char * filename); -void xmlParserHandlePEReference (xmlParserCtxtPtr ctxt); -xmlChar * xmlStringDecodeEntities (xmlParserCtxtPtr ctxt,
    const xmlChar * str,
    int what,
    xmlChar end,
    xmlChar end2,
    xmlChar end3); -xmlParserCtxtPtr xmlCreateFileParserCtxt (const char * filename); -int xmlParseCharRef (xmlParserCtxtPtr ctxt); -void xmlParseElement (xmlParserCtxtPtr ctxt); -void xmlParseTextDecl (xmlParserCtxtPtr ctxt); -xmlParserInputPtr xmlNewEntityInputStream (xmlParserCtxtPtr ctxt,
    xmlEntityPtr entity); -int xmlCopyCharMultiByte (xmlChar * out,
    int val); -xmlElementContentPtr xmlParseElementChildrenContentDecl (xmlParserCtxtPtr ctxt,
    int inputchk); -void xmlParseCharData (xmlParserCtxtPtr ctxt,
    int cdata); -xmlChar * xmlParseVersionInfo (xmlParserCtxtPtr ctxt); -int xmlParseSDDecl (xmlParserCtxtPtr ctxt); -int xmlParseEnumeratedType (xmlParserCtxtPtr ctxt,
    xmlEnumerationPtr * tree); -void xmlHandleEntity (xmlParserCtxtPtr ctxt,
    xmlEntityPtr entity); -int xmlCurrentChar (xmlParserCtxtPtr ctxt,
    int * len); -int xmlSkipBlankChars (xmlParserCtxtPtr ctxt); -xmlEnumerationPtr xmlParseNotationType (xmlParserCtxtPtr ctxt); -void xmlParserInputShrink (xmlParserInputPtr in); -void xmlSetEntityReferenceFunc (xmlEntityReferenceFunc func); -void xmlFreeInputStream (xmlParserInputPtr input); -void xmlParsePEReference (xmlParserCtxtPtr ctxt); -xmlParserCtxtPtr xmlCreateURLParserCtxt (const char * filename,
    int options); -int xmlIsLetter (int c); -int xmlCheckLanguageID (const xmlChar * lang); -void xmlNextChar (xmlParserCtxtPtr ctxt); -xmlEnumerationPtr xmlParseEnumerationType (xmlParserCtxtPtr ctxt); -int xmlParseAttributeType (xmlParserCtxtPtr ctxt,
    xmlEnumerationPtr * tree); -int xmlParseDefaultDecl (xmlParserCtxtPtr ctxt,
    xmlChar ** value); -xmlChar * xmlParseSystemLiteral (xmlParserCtxtPtr ctxt); -xmlChar * xmlParseAttValue (xmlParserCtxtPtr ctxt); -xmlParserCtxtPtr xmlCreateMemoryParserCtxt (const char * buffer,
    int size); -void xmlParseAttributeListDecl (xmlParserCtxtPtr ctxt); -const xmlChar * xmlParseName (xmlParserCtxtPtr ctxt); -xmlChar * xmlParseEncName (xmlParserCtxtPtr ctxt); -int nodePush (xmlParserCtxtPtr ctxt,
    xmlNodePtr value); -int xmlSwitchEncoding (xmlParserCtxtPtr ctxt,
    xmlCharEncoding enc); -int xmlSwitchToEncoding (xmlParserCtxtPtr ctxt,
    xmlCharEncodingHandlerPtr handler); -xmlEntityPtr xmlParseEntityRef (xmlParserCtxtPtr ctxt); -const xmlChar * xmlParseAttribute (xmlParserCtxtPtr ctxt,
    xmlChar ** value); -void xmlParseEndTag (xmlParserCtxtPtr ctxt); -const xmlChar * xmlParseEncodingDecl (xmlParserCtxtPtr ctxt); -void htmlInitAutoClose (void); -xmlParserCtxtPtr xmlCreateEntityParserCtxt (const xmlChar * URL,
    const xmlChar * ID,
    const xmlChar * base); -xmlChar * xmlSplitQName (xmlParserCtxtPtr ctxt,
    const xmlChar * name,
    xmlChar ** prefix); -void xmlParserHandleReference (xmlParserCtxtPtr ctxt); -const xmlChar * xmlParsePITarget (xmlParserCtxtPtr ctxt); -int xmlParseElementContentDecl (xmlParserCtxtPtr ctxt,
    const xmlChar * name,
    xmlElementContentPtr * result); -xmlParserInputPtr inputPop (xmlParserCtxtPtr ctxt); -xmlChar xmlPopInput (xmlParserCtxtPtr ctxt); -xmlChar * xmlParsePubidLiteral (xmlParserCtxtPtr ctxt); -void xmlPushInput (xmlParserCtxtPtr ctxt,
    xmlParserInputPtr input); -xmlChar * xmlParseEntityValue (xmlParserCtxtPtr ctxt,
    xmlChar ** orig); -xmlChar * xmlDecodeEntities (xmlParserCtxtPtr ctxt,
    int len,
    int what,
    xmlChar end,
    xmlChar end2,
    xmlChar end3); -xmlChar * xmlParseVersionNum (xmlParserCtxtPtr ctxt); -void xmlParseXMLDecl (xmlParserCtxtPtr ctxt); -typedef void xmlEntityReferenceFunc (xmlEntityPtr ent,
    xmlNodePtr firstNode,
    xmlNodePtr lastNode); -xmlElementContentPtr xmlParseElementMixedContentDecl (xmlParserCtxtPtr ctxt,
    int inputchk); -xmlChar * xmlParseQuotedString (xmlParserCtxtPtr ctxt); -xmlChar * xmlNamespaceParseNSDef (xmlParserCtxtPtr ctxt); -void xmlParseCDSect (xmlParserCtxtPtr ctxt); -int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
    const xmlChar * cur,
    int * len); -void xmlParseComment (xmlParserCtxtPtr ctxt); -void xmlErrMemory (xmlParserCtxtPtr ctxt,
    const char * extra); -xmlChar * xmlNamespaceParseNCName (xmlParserCtxtPtr ctxt); -xmlChar * xmlParseNmtoken (xmlParserCtxtPtr ctxt); -void xmlParseReference (xmlParserCtxtPtr ctxt); -int namePush (xmlParserCtxtPtr ctxt,
    const xmlChar * value); -void xmlParseNamespace (xmlParserCtxtPtr ctxt); -int xmlCopyChar (int len,
    xmlChar * out,
    int val); -void xmlParsePI (xmlParserCtxtPtr ctxt); -void xmlParseDocTypeDecl (xmlParserCtxtPtr ctxt); -const xmlChar * xmlParseStartTag (xmlParserCtxtPtr ctxt); -void xmlParseEntityDecl (xmlParserCtxtPtr ctxt); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro INPUT_CHUNK

    #define INPUT_CHUNK;
    -

    The parser tries to always have that amount of input ready. One of the point is providing context when reporting errors.

    -
    -
    -

    Macro IS_ASCII_DIGIT

    #define IS_ASCII_DIGIT(c);
    -

    Macro to check [0-9]

    c:an xmlChar value
    -
    -
    -

    Macro IS_ASCII_LETTER

    #define IS_ASCII_LETTER(c);
    -

    Macro to check [a-zA-Z]

    c:an xmlChar value
    -
    -
    -

    Macro IS_BASECHAR

    #define IS_BASECHAR(c);
    -

    Macro to check the following production in the XML spec: [85] BaseChar ::= ... long list see REC ...

    c:an UNICODE value (int)
    -
    -
    -

    Macro IS_BLANK

    #define IS_BLANK(c);
    -

    Macro to check the following production in the XML spec: [3] S ::= (#x20 | #x9 | #xD | #xA)+

    c:an UNICODE value (int)
    -
    -
    -

    Macro IS_BLANK_CH

    #define IS_BLANK_CH(c);
    -

    Behaviour same as IS_BLANK

    c:an xmlChar value (normally unsigned char)
    -
    -
    -

    Macro IS_BYTE_CHAR

    #define IS_BYTE_CHAR(c);
    -

    Macro to check the following production in the XML spec: [2] Char ::= #x9 | #xA | #xD | [#x20...] any byte character in the accepted range

    c:an byte value (int)
    -
    -
    -

    Macro IS_CHAR

    #define IS_CHAR(c);
    -

    Macro to check the following production in the XML spec: [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] any Unicode character, excluding the surrogate blocks, FFFE, and FFFF.

    c:an UNICODE value (int)
    -
    -
    -

    Macro IS_CHAR_CH

    #define IS_CHAR_CH(c);
    -

    Behaves like IS_CHAR on single-byte value

    c:an xmlChar (usually an unsigned char)
    -
    -
    -

    Macro IS_COMBINING

    #define IS_COMBINING(c);
    -

    Macro to check the following production in the XML spec: [87] CombiningChar ::= ... long list see REC ...

    c:an UNICODE value (int)
    -
    -
    -

    Macro IS_COMBINING_CH

    #define IS_COMBINING_CH(c);
    -

    Always false (all combining chars > 0xff)

    c:an xmlChar (usually an unsigned char)
    -
    -
    -

    Macro IS_DIGIT

    #define IS_DIGIT(c);
    -

    Macro to check the following production in the XML spec: [88] Digit ::= ... long list see REC ...

    c:an UNICODE value (int)
    -
    -
    -

    Macro IS_DIGIT_CH

    #define IS_DIGIT_CH(c);
    -

    Behaves like IS_DIGIT but with a single byte argument

    c:an xmlChar value (usually an unsigned char)
    -
    -
    -

    Macro IS_EXTENDER

    #define IS_EXTENDER(c);
    -

    Macro to check the following production in the XML spec: [89] Extender ::= #x00B7 | #x02D0 | #x02D1 | #x0387 | #x0640 | #x0E46 | #x0EC6 | #x3005 | [#x3031-#x3035] | [#x309D-#x309E] | [#x30FC-#x30FE]

    c:an UNICODE value (int)
    -
    -
    -

    Macro IS_EXTENDER_CH

    #define IS_EXTENDER_CH(c);
    -

    Behaves like IS_EXTENDER but with a single-byte argument

    c:an xmlChar value (usually an unsigned char)
    -
    -
    -

    Macro IS_IDEOGRAPHIC

    #define IS_IDEOGRAPHIC(c);
    -

    Macro to check the following production in the XML spec: [86] Ideographic ::= [#x4E00-#x9FA5] | #x3007 | [#x3021-#x3029]

    c:an UNICODE value (int)
    -
    -
    -

    Macro IS_LETTER

    #define IS_LETTER(c);
    -

    Macro to check the following production in the XML spec: [84] Letter ::= BaseChar | Ideographic

    c:an UNICODE value (int)
    -
    -
    -

    Macro IS_LETTER_CH

    #define IS_LETTER_CH(c);
    -

    Macro behaves like IS_LETTER, but only check base chars

    c:an xmlChar value (normally unsigned char)
    -
    -
    -

    Macro IS_PUBIDCHAR

    #define IS_PUBIDCHAR(c);
    -

    Macro to check the following production in the XML spec: [13] PubidChar ::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%]

    c:an UNICODE value (int)
    -
    -
    -

    Macro IS_PUBIDCHAR_CH

    #define IS_PUBIDCHAR_CH(c);
    -

    Same as IS_PUBIDCHAR but for single-byte value

    c:an xmlChar value (normally unsigned char)
    -
    -
    -

    Macro MOVETO_ENDTAG

    #define MOVETO_ENDTAG(p);
    -

    Skips to the next '>' char.

    p:and UTF8 string pointer
    -
    -
    -

    Macro MOVETO_STARTTAG

    #define MOVETO_STARTTAG(p);
    -

    Skips to the next '<' char.

    p:and UTF8 string pointer
    -
    -
    -

    Macro SKIP_EOL

    #define SKIP_EOL(p);
    -

    Skips the end of line chars.

    p:and UTF8 string pointer
    -
    -
    -

    Macro XML_MAX_NAMELEN

    #define XML_MAX_NAMELEN;
    -

    Identifiers can be longer, but this will be more costly at runtime.

    -
    -
    -

    Macro XML_SUBSTITUTE_BOTH

    #define XML_SUBSTITUTE_BOTH;
    -

    Both general and parameter entities need to be substituted.

    -
    -
    -

    Macro XML_SUBSTITUTE_NONE

    #define XML_SUBSTITUTE_NONE;
    -

    If no entities need to be substituted.

    -
    -
    -

    Macro XML_SUBSTITUTE_PEREF

    #define XML_SUBSTITUTE_PEREF;
    -

    Whether parameter entities need to be substituted.

    -
    -
    -

    Macro XML_SUBSTITUTE_REF

    #define XML_SUBSTITUTE_REF;
    -

    Whether general entities need to be substituted.

    -
    -
    -

    Function type xmlEntityReferenceFunc

    void	xmlEntityReferenceFunc		(xmlEntityPtr ent, 
    xmlNodePtr firstNode,
    xmlNodePtr lastNode)
    -

    Callback function used when one needs to be able to track back the provenance of a chunk of nodes inherited from an entity replacement.

    -
    ent:the entity
    firstNode:the fist node in the chunk
    lastNode:the last nod in the chunk
    -
    -

    Variable xmlParserMaxDepth

    unsigned int xmlParserMaxDepth;
    -

    -

    -
    -

    Variable xmlStringComment

    const xmlCharxmlStringComment[] xmlStringComment;
    -

    -

    -
    -

    Variable xmlStringText

    const xmlCharxmlStringText[] xmlStringText;
    -

    -

    -
    -

    Variable xmlStringTextNoenc

    const xmlCharxmlStringTextNoenc[] xmlStringTextNoenc;
    -

    -

    -
    -

    htmlCreateFileParserCtxt ()

    htmlParserCtxtPtr	htmlCreateFileParserCtxt	(const char * filename, 
    const char * encoding)
    -

    Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

    -
    filename:the filename
    encoding:a free form C string describing the HTML document encoding, or NULL
    Returns:the new parser context or NULL
    -
    - -
    -

    inputPop ()

    xmlParserInputPtr	inputPop	(xmlParserCtxtPtr ctxt)
    -

    Pops the top parser input from the input stack

    -
    ctxt:an XML parser context
    Returns:the input just removed
    -
    -

    inputPush ()

    int	inputPush			(xmlParserCtxtPtr ctxt, 
    xmlParserInputPtr value)
    -

    Pushes a new parser input on top of the input stack

    -
    ctxt:an XML parser context
    value:the parser input
    Returns:0 in case of error, the index in the stack otherwise
    -
    -

    namePop ()

    const xmlChar *	namePop			(xmlParserCtxtPtr ctxt)
    -

    Pops the top element name from the name stack

    -
    ctxt:an XML parser context
    Returns:the name just removed
    -
    -

    namePush ()

    int	namePush			(xmlParserCtxtPtr ctxt, 
    const xmlChar * value)
    -

    Pushes a new element name on top of the name stack

    -
    ctxt:an XML parser context
    value:the element name
    Returns:-1 in case of error, the index in the stack otherwise
    -
    -

    nodePop ()

    xmlNodePtr	nodePop			(xmlParserCtxtPtr ctxt)
    -

    Pops the top element node from the node stack

    -
    ctxt:an XML parser context
    Returns:the node just removed
    -
    -

    nodePush ()

    int	nodePush			(xmlParserCtxtPtr ctxt, 
    xmlNodePtr value)
    -

    Pushes a new element node on top of the node stack

    -
    ctxt:an XML parser context
    value:the element node
    Returns:0 in case of error, the index in the stack otherwise
    -
    -

    xmlCheckLanguageID ()

    int	xmlCheckLanguageID		(const xmlChar * lang)
    -

    Checks that the value conforms to the LanguageID production: NOTE: this is somewhat deprecated, those productions were removed from the XML Second edition. [33] LanguageID ::= Langcode ('-' Subcode)* [34] Langcode ::= ISO639Code | IanaCode | UserCode [35] ISO639Code ::= ([a-z] | [A-Z]) ([a-z] | [A-Z]) [36] IanaCode ::= ('i' | 'I') '-' ([a-z] | [A-Z])+ [37] UserCode ::= ('x' | 'X') '-' ([a-z] | [A-Z])+ [38] Subcode ::= ([a-z] | [A-Z])+

    -
    lang:pointer to the string value
    Returns:1 if correct 0 otherwise
    -
    -

    xmlCopyChar ()

    int	xmlCopyChar			(int len, 
    xmlChar * out,
    int val)
    -

    append the char value in the array

    -
    len:Ignored, compatibility
    out:pointer to an array of xmlChar
    val:the char value
    Returns:the number of xmlChar written
    -
    -

    xmlCopyCharMultiByte ()

    int	xmlCopyCharMultiByte		(xmlChar * out, 
    int val)
    -

    append the char value in the array

    -
    out:pointer to an array of xmlChar
    val:the char value
    Returns:the number of xmlChar written
    -
    -

    xmlCreateEntityParserCtxt ()

    xmlParserCtxtPtr	xmlCreateEntityParserCtxt	(const xmlChar * URL, 
    const xmlChar * ID,
    const xmlChar * base)
    -

    Create a parser context for an external entity Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

    -
    URL:the entity URL
    ID:the entity PUBLIC ID
    base:a possible base for the target URI
    Returns:the new parser context or NULL
    -
    -

    xmlCreateFileParserCtxt ()

    xmlParserCtxtPtr	xmlCreateFileParserCtxt	(const char * filename)
    -

    Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

    -
    filename:the filename
    Returns:the new parser context or NULL
    -
    -

    xmlCreateMemoryParserCtxt ()

    xmlParserCtxtPtr	xmlCreateMemoryParserCtxt	(const char * buffer, 
    int size)
    -

    Create a parser context for an XML in-memory document.

    -
    buffer:a pointer to a char array
    size:the size of the array
    Returns:the new parser context or NULL
    -
    -

    xmlCreateURLParserCtxt ()

    xmlParserCtxtPtr	xmlCreateURLParserCtxt	(const char * filename, 
    int options)
    -

    Create a parser context for a file or URL content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time and for file accesses

    -
    filename:the filename or URL
    options:a combination of xmlParserOption
    Returns:the new parser context or NULL
    -
    -

    xmlCurrentChar ()

    int	xmlCurrentChar			(xmlParserCtxtPtr ctxt, 
    int * len)
    -

    The current char value, if using UTF-8 this may actually span multiple bytes in the input buffer. Implement the end of line normalization: 2.11 End-of-Line Handling Wherever an external parsed entity or the literal entity value of an internal parsed entity contains either the literal two-character sequence "#xD#xA" or a standalone literal #xD, an XML processor must pass to the application the single character #xA. This behavior can conveniently be produced by normalizing all line breaks to #xA on input, before parsing.)

    -
    ctxt:the XML parser context
    len:pointer to the length of the char read
    Returns:the current char value and its length
    -
    -

    xmlDecodeEntities ()

    xmlChar *	xmlDecodeEntities	(xmlParserCtxtPtr ctxt, 
    int len,
    int what,
    xmlChar end,
    xmlChar end2,
    xmlChar end3)
    -

    This function is deprecated, we now always process entities content through xmlStringDecodeEntities TODO: remove it in next major release. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';'

    -
    ctxt:the parser context
    len:the len to decode (in bytes !), -1 for no size limit
    what:combination of XML_SUBSTITUTE_REF and XML_SUBSTITUTE_PEREF
    end:an end marker xmlChar, 0 if none
    end2:an end marker xmlChar, 0 if none
    end3:an end marker xmlChar, 0 if none
    Returns:A newly allocated string with the substitution done. The caller must deallocate it !
    -
    -

    xmlErrMemory ()

    void	xmlErrMemory			(xmlParserCtxtPtr ctxt, 
    const char * extra)
    -

    Handle a redefinition of attribute error

    -
    ctxt:an XML parser context
    extra:extra informations
    -
    - -
    -

    xmlHandleEntity ()

    void	xmlHandleEntity			(xmlParserCtxtPtr ctxt, 
    xmlEntityPtr entity)
    -

    Default handling of defined entities, when should we define a new input stream ? When do we just handle that as a set of chars ? OBSOLETE: to be removed at some point.

    -
    ctxt:an XML parser context
    entity:an XML entity pointer.
    -
    - -
    -

    xmlNamespaceParseNCName ()

    xmlChar *	xmlNamespaceParseNCName	(xmlParserCtxtPtr ctxt)
    -

    parse an XML namespace name. TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. [NS 3] NCName ::= (Letter | '_') (NCNameChar)* [NS 4] NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender

    -
    ctxt:an XML parser context
    Returns:the namespace name or NULL
    -
    -

    xmlNamespaceParseNSDef ()

    xmlChar *	xmlNamespaceParseNSDef	(xmlParserCtxtPtr ctxt)
    -

    parse a namespace prefix declaration TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. [NS 1] NSDef ::= PrefixDef Eq SystemLiteral [NS 2] PrefixDef ::= 'xmlns' (':' NCName)?

    -
    ctxt:an XML parser context
    Returns:the namespace name
    -
    -

    xmlNamespaceParseQName ()

    xmlChar *	xmlNamespaceParseQName	(xmlParserCtxtPtr ctxt, 
    xmlChar ** prefix)
    -

    TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. parse an XML qualified name [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName

    -
    ctxt:an XML parser context
    prefix:a xmlChar **
    Returns:the local part, and prefix is updated to get the Prefix if any.
    -
    -

    xmlNewEntityInputStream ()

    xmlParserInputPtr	xmlNewEntityInputStream	(xmlParserCtxtPtr ctxt, 
    xmlEntityPtr entity)
    -

    Create a new input stream based on an xmlEntityPtr

    -
    ctxt:an XML parser context
    entity:an Entity pointer
    Returns:the new input stream or NULL
    -
    -

    xmlNewInputFromFile ()

    xmlParserInputPtr	xmlNewInputFromFile	(xmlParserCtxtPtr ctxt, 
    const char * filename)
    -

    Create a new input stream based on a file or an URL.

    -
    ctxt:an XML parser context
    filename:the filename to use as entity
    Returns:the new input stream or NULL in case of error
    -
    -

    xmlNewInputStream ()

    xmlParserInputPtr	xmlNewInputStream	(xmlParserCtxtPtr ctxt)
    -

    Create a new input stream structure

    -
    ctxt:an XML parser context
    Returns:the new input stream or NULL
    -
    -

    xmlNewStringInputStream ()

    xmlParserInputPtr	xmlNewStringInputStream	(xmlParserCtxtPtr ctxt, 
    const xmlChar * buffer)
    -

    Create a new input stream based on a memory buffer.

    -
    ctxt:an XML parser context
    buffer:an memory buffer
    Returns:the new input stream
    -
    -

    xmlNextChar ()

    void	xmlNextChar			(xmlParserCtxtPtr ctxt)
    -

    Skip to the next char input char.

    -
    ctxt:the XML parser context
    -
    -

    xmlParseAttValue ()

    xmlChar *	xmlParseAttValue	(xmlParserCtxtPtr ctxt)
    -

    parse a value for an attribute Note: the parser won't do substitution of entities here, this will be handled later in xmlStringGetNodeList [10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'" 3.3.3 Attribute-Value Normalization: Before the value of an attribute is passed to the application or checked for validity, the XML processor must normalize it as follows: - a character reference is processed by appending the referenced character to the attribute value - an entity reference is processed by recursively processing the replacement text of the entity - a whitespace character (#x20, #xD, #xA, #x9) is processed by appending #x20 to the normalized value, except that only a single #x20 is appended for a "#xD#xA" sequence that is part of an external parsed entity or the literal entity value of an internal parsed entity - other characters are processed by appending them to the normalized value If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) characters by a single space (#x20) character. All attributes for which no declaration has been read should be treated by a non-validating parser as if declared CDATA.

    -
    ctxt:an XML parser context
    Returns:the AttValue parsed or NULL. The value has to be freed by the caller.
    -
    -

    xmlParseAttribute ()

    const xmlChar *	xmlParseAttribute	(xmlParserCtxtPtr ctxt, 
    xmlChar ** value)
    -

    parse an attribute [41] Attribute ::= Name Eq AttValue [ WFC: No External Entity References ] Attribute values cannot contain direct or indirect entity references to external entities. [ WFC: No < in Attribute Values ] The replacement text of any entity referred to directly or indirectly in an attribute value (other than "&lt;") must not contain a <. [ VC: Attribute Value Type ] The attribute must have been declared; the value must be of the type declared for it. [25] Eq ::= S? '=' S? With namespace: [NS 11] Attribute ::= QName Eq AttValue Also the case QName == xmlns:??? is handled independently as a namespace definition.

    -
    ctxt:an XML parser context
    value:a xmlChar ** used to store the value of the attribute
    Returns:the attribute name, and the value in *value.
    -
    -

    xmlParseAttributeListDecl ()

    void	xmlParseAttributeListDecl	(xmlParserCtxtPtr ctxt)
    -

    : parse the Attribute list def for an element [52] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>' [53] AttDef ::= S Name S AttType S DefaultDecl

    -
    ctxt:an XML parser context
    -
    -

    xmlParseAttributeType ()

    int	xmlParseAttributeType		(xmlParserCtxtPtr ctxt, 
    xmlEnumerationPtr * tree)
    -

    parse the Attribute list def for an element [54] AttType ::= StringType | TokenizedType | EnumeratedType [55] StringType ::= 'CDATA' [56] TokenizedType ::= 'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' | 'ENTITIES' | 'NMTOKEN' | 'NMTOKENS' Validity constraints for attribute values syntax are checked in xmlValidateAttributeValue() [ VC: ID ] Values of type ID must match the Name production. A name must not appear more than once in an XML document as a value of this type; i.e., ID values must uniquely identify the elements which bear them. [ VC: One ID per Element Type ] No element type may have more than one ID attribute specified. [ VC: ID Attribute Default ] An ID attribute must have a declared default of #IMPLIED or #REQUIRED. [ VC: IDREF ] Values of type IDREF must match the Name production, and values of type IDREFS must match Names; each IDREF Name must match the value of an ID attribute on some element in the XML document; i.e. IDREF values must match the value of some ID attribute. [ VC: Entity Name ] Values of type ENTITY must match the Name production, values of type ENTITIES must match Names; each Entity Name must match the name of an unparsed entity declared in the DTD. [ VC: Name Token ] Values of type NMTOKEN must match the Nmtoken production; values of type NMTOKENS must match Nmtokens.

    -
    ctxt:an XML parser context
    tree:the enumeration tree built while parsing
    Returns:the attribute type
    -
    -

    xmlParseCDSect ()

    void	xmlParseCDSect			(xmlParserCtxtPtr ctxt)
    -

    Parse escaped pure raw content. [18] CDSect ::= CDStart CData CDEnd [19] CDStart ::= '<![CDATA[' [20] Data ::= (Char* - (Char* ']]>' Char*)) [21] CDEnd ::= ']]>'

    -
    ctxt:an XML parser context
    -
    -

    xmlParseCharData ()

    void	xmlParseCharData		(xmlParserCtxtPtr ctxt, 
    int cdata)
    -

    parse a CharData section. if we are within a CDATA section ']]>' marks an end of section. The right angle bracket (>) may be represented using the string "&gt;", and must, for compatibility, be escaped using "&gt;" or a character reference when it appears in the string "]]>" in content, when that string is not marking the end of a CDATA section. [14] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*)

    -
    ctxt:an XML parser context
    cdata:int indicating whether we are within a CDATA section
    -
    -

    xmlParseCharRef ()

    int	xmlParseCharRef			(xmlParserCtxtPtr ctxt)
    -

    parse Reference declarations [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' [ WFC: Legal Character ] Characters referred to using character references must match the production for Char.

    -
    ctxt:an XML parser context
    Returns:the value parsed (as an int), 0 in case of error
    -
    -

    xmlParseComment ()

    void	xmlParseComment			(xmlParserCtxtPtr ctxt)
    -

    Skip an XML (SGML) comment <!-- .... --> The spec says that "For compatibility, the string "--" (double-hyphen) must not occur within comments. " [15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'

    -
    ctxt:an XML parser context
    -
    -

    xmlParseContent ()

    void	xmlParseContent			(xmlParserCtxtPtr ctxt)
    -

    Parse a content: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

    -
    ctxt:an XML parser context
    -
    -

    xmlParseDefaultDecl ()

    int	xmlParseDefaultDecl		(xmlParserCtxtPtr ctxt, 
    xmlChar ** value)
    -

    Parse an attribute default declaration [60] DefaultDecl ::= '#REQUIRED' | '#IMPLIED' | (('#FIXED' S)? AttValue) [ VC: Required Attribute ] if the default declaration is the keyword #REQUIRED, then the attribute must be specified for all elements of the type in the attribute-list declaration. [ VC: Attribute Default Legal ] The declared default value must meet the lexical constraints of the declared attribute type c.f. xmlValidateAttributeDecl() [ VC: Fixed Attribute Default ] if an attribute has a default value declared with the #FIXED keyword, instances of that attribute must match the default value. [ WFC: No < in Attribute Values ] handled in xmlParseAttValue()

    -
    ctxt:an XML parser context
    value:Receive a possible fixed default value for the attribute
    Returns:XML_ATTRIBUTE_NONE, XML_ATTRIBUTE_REQUIRED, XML_ATTRIBUTE_IMPLIED or XML_ATTRIBUTE_FIXED.
    -
    -

    xmlParseDocTypeDecl ()

    void	xmlParseDocTypeDecl		(xmlParserCtxtPtr ctxt)
    -

    parse a DOCTYPE declaration [28] doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ('[' (markupdecl | PEReference | S)* ']' S?)? '>' [ VC: Root Element Type ] The Name in the document type declaration must match the element type of the root element.

    -
    ctxt:an XML parser context
    -
    -

    xmlParseElement ()

    void	xmlParseElement			(xmlParserCtxtPtr ctxt)
    -

    parse an XML element, this is highly recursive [39] element ::= EmptyElemTag | STag content ETag [ WFC: Element Type Match ] The Name in an element's end-tag must match the element type in the start-tag.

    -
    ctxt:an XML parser context
    -
    -

    xmlParseElementChildrenContentDecl ()

    xmlElementContentPtr	xmlParseElementChildrenContentDecl	(xmlParserCtxtPtr ctxt, 
    int inputchk)
    -

    parse the declaration for a Mixed Element content The leading '(' and spaces have been skipped in xmlParseElementContentDecl [47] children ::= (choice | seq) ('?' | '*' | '+')? [48] cp ::= (Name | choice | seq) ('?' | '*' | '+')? [49] choice ::= '(' S? cp ( S? '|' S? cp )* S? ')' [50] seq ::= '(' S? cp ( S? ',' S? cp )* S? ')' [ VC: Proper Group/PE Nesting ] applies to [49] and [50] TODO Parameter-entity replacement text must be properly nested with parenthesized groups. That is to say, if either of the opening or closing parentheses in a choice, seq, or Mixed construct is contained in the replacement text for a parameter entity, both must be contained in the same replacement text. For interoperability, if a parameter-entity reference appears in a choice, seq, or Mixed construct, its replacement text should not be empty, and neither the first nor last non-blank character of the replacement text should be a connector (| or ,).

    -
    ctxt:an XML parser context
    inputchk:the input used for the current entity, needed for boundary checks
    Returns:the tree of xmlElementContentPtr describing the element hierarchy.
    -
    -

    xmlParseElementContentDecl ()

    int	xmlParseElementContentDecl	(xmlParserCtxtPtr ctxt, 
    const xmlChar * name,
    xmlElementContentPtr * result)
    -

    parse the declaration for an Element content either Mixed or Children, the cases EMPTY and ANY are handled directly in xmlParseElementDecl [46] contentspec ::= 'EMPTY' | 'ANY' | Mixed | children

    -
    ctxt:an XML parser context
    name:the name of the element being defined.
    result:the Element Content pointer will be stored here if any
    Returns:the type of element content XML_ELEMENT_TYPE_xxx
    -
    -

    xmlParseElementDecl ()

    int	xmlParseElementDecl		(xmlParserCtxtPtr ctxt)
    -

    parse an Element declaration. [45] elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>' [ VC: Unique Element Type Declaration ] No element type may be declared more than once

    -
    ctxt:an XML parser context
    Returns:the type of the element, or -1 in case of error
    -
    -

    xmlParseElementMixedContentDecl ()

    xmlElementContentPtr	xmlParseElementMixedContentDecl	(xmlParserCtxtPtr ctxt, 
    int inputchk)
    -

    parse the declaration for a Mixed Element content The leading '(' and spaces have been skipped in xmlParseElementContentDecl [51] Mixed ::= '(' S? '#PCDATA' (S? '|' S? Name)* S? ')*' | '(' S? '#PCDATA' S? ')' [ VC: Proper Group/PE Nesting ] applies to [51] too (see [49]) [ VC: No Duplicate Types ] The same name must not appear more than once in a single mixed-content declaration.

    -
    ctxt:an XML parser context
    inputchk:the input used for the current entity, needed for boundary checks
    Returns:the list of the xmlElementContentPtr describing the element choices
    -
    -

    xmlParseEncName ()

    xmlChar *	xmlParseEncName		(xmlParserCtxtPtr ctxt)
    -

    parse the XML encoding name [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*

    -
    ctxt:an XML parser context
    Returns:the encoding name value or NULL
    -
    -

    xmlParseEncodingDecl ()

    const xmlChar *	xmlParseEncodingDecl	(xmlParserCtxtPtr ctxt)
    -

    parse the XML encoding declaration [80] EncodingDecl ::= S 'encoding' Eq ('"' EncName '"' | "'" EncName "'") this setups the conversion filters.

    -
    ctxt:an XML parser context
    Returns:the encoding value or NULL
    -
    -

    xmlParseEndTag ()

    void	xmlParseEndTag			(xmlParserCtxtPtr ctxt)
    -

    parse an end of tag [42] ETag ::= '</' Name S? '>' With namespace [NS 9] ETag ::= '</' QName S? '>'

    -
    ctxt:an XML parser context
    -
    -

    xmlParseEntityDecl ()

    void	xmlParseEntityDecl		(xmlParserCtxtPtr ctxt)
    -

    parse <!ENTITY declarations [70] EntityDecl ::= GEDecl | PEDecl [71] GEDecl ::= '<!ENTITY' S Name S EntityDef S? '>' [72] PEDecl ::= '<!ENTITY' S '%' S Name S PEDef S? '>' [73] EntityDef ::= EntityValue | (ExternalID NDataDecl?) [74] PEDef ::= EntityValue | ExternalID [76] NDataDecl ::= S 'NDATA' S Name [ VC: Notation Declared ] The Name must match the declared name of a notation.

    -
    ctxt:an XML parser context
    -
    -

    xmlParseEntityRef ()

    xmlEntityPtr	xmlParseEntityRef	(xmlParserCtxtPtr ctxt)
    -

    parse ENTITY references declarations [68] EntityRef ::= '&' Name ';' [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", the Name given in the entity reference must match that in an entity declaration, except that well-formed documents need not declare any of the following entities: amp, lt, gt, apos, quot. The declaration of a parameter entity must precede any reference to it. Similarly, the declaration of a general entity must precede any reference to it which appears in a default value in an attribute-list declaration. Note that if entities are declared in the external subset or in external parameter entities, a non-validating processor is not obligated to read and process their declarations; for such documents, the rule that an entity must be declared is a well-formedness constraint only if standalone='yes'. [ WFC: Parsed Entity ] An entity reference must not contain the name of an unparsed entity

    -
    ctxt:an XML parser context
    Returns:the xmlEntityPtr if found, or NULL otherwise.
    -
    -

    xmlParseEntityValue ()

    xmlChar *	xmlParseEntityValue	(xmlParserCtxtPtr ctxt, 
    xmlChar ** orig)
    -

    parse a value for ENTITY declarations [9] EntityValue ::= '"' ([^%&"] | PEReference | Reference)* '"' | "'" ([^%&'] | PEReference | Reference)* "'"

    -
    ctxt:an XML parser context
    orig:if non-NULL store a copy of the original entity value
    Returns:the EntityValue parsed with reference substituted or NULL
    -
    -

    xmlParseEnumeratedType ()

    int	xmlParseEnumeratedType		(xmlParserCtxtPtr ctxt, 
    xmlEnumerationPtr * tree)
    -

    parse an Enumerated attribute type. [57] EnumeratedType ::= NotationType | Enumeration [58] NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')'

    -
    ctxt:an XML parser context
    tree:the enumeration tree built while parsing
    Returns:XML_ATTRIBUTE_ENUMERATION or XML_ATTRIBUTE_NOTATION
    -
    -

    xmlParseEnumerationType ()

    xmlEnumerationPtr	xmlParseEnumerationType	(xmlParserCtxtPtr ctxt)
    -

    parse an Enumeration attribute type. [59] Enumeration ::= '(' S? Nmtoken (S? '|' S? Nmtoken)* S? ')' [ VC: Enumeration ] Values of this type must match one of the Nmtoken tokens in the declaration

    -
    ctxt:an XML parser context
    Returns:the enumeration attribute tree built while parsing
    -
    -

    xmlParseExternalID ()

    xmlChar *	xmlParseExternalID	(xmlParserCtxtPtr ctxt, 
    xmlChar ** publicID,
    int strict)
    -

    Parse an External ID or a Public ID NOTE: Productions [75] and [83] interact badly since [75] can generate 'PUBLIC' S PubidLiteral S SystemLiteral [75] ExternalID ::= 'SYSTEM' S SystemLiteral | 'PUBLIC' S PubidLiteral S SystemLiteral [83] PublicID ::= 'PUBLIC' S PubidLiteral

    -
    ctxt:an XML parser context
    publicID:a xmlChar** receiving PubidLiteral
    strict:indicate whether we should restrict parsing to only production [75], see NOTE below
    Returns:the function returns SystemLiteral and in the second case publicID receives PubidLiteral, is strict is off it is possible to return NULL and have publicID set.
    -
    -

    xmlParseExternalSubset ()

    void	xmlParseExternalSubset		(xmlParserCtxtPtr ctxt, 
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    parse Markup declarations from an external subset [30] extSubset ::= textDecl? extSubsetDecl [31] extSubsetDecl ::= (markupdecl | conditionalSect | PEReference | S) *

    -
    ctxt:an XML parser context
    ExternalID:the external identifier
    SystemID:the system identifier (or URL)
    -
    -

    xmlParseMarkupDecl ()

    void	xmlParseMarkupDecl		(xmlParserCtxtPtr ctxt)
    -

    parse Markup declarations [29] markupdecl ::= elementdecl | AttlistDecl | EntityDecl | NotationDecl | PI | Comment [ VC: Proper Declaration/PE Nesting ] Parameter-entity replacement text must be properly nested with markup declarations. That is to say, if either the first character or the last character of a markup declaration (markupdecl above) is contained in the replacement text for a parameter-entity reference, both must be contained in the same replacement text. [ WFC: PEs in Internal Subset ] In the internal DTD subset, parameter-entity references can occur only where markup declarations can occur, not within markup declarations. (This does not apply to references that occur in external parameter entities or to the external subset.)

    -
    ctxt:an XML parser context
    -
    -

    xmlParseMisc ()

    void	xmlParseMisc			(xmlParserCtxtPtr ctxt)
    -

    parse an XML Misc* optional field. [27] Misc ::= Comment | PI | S

    -
    ctxt:an XML parser context
    -
    -

    xmlParseName ()

    const xmlChar *	xmlParseName		(xmlParserCtxtPtr ctxt)
    -

    parse an XML name. [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* [6] Names ::= Name (#x20 Name)*

    -
    ctxt:an XML parser context
    Returns:the Name parsed or NULL
    -
    -

    xmlParseNamespace ()

    void	xmlParseNamespace		(xmlParserCtxtPtr ctxt)
    -

    xmlParseNamespace: parse specific PI '<?namespace ...' constructs. This is what the older xml-name Working Draft specified, a bunch of other stuff may still rely on it, so support is still here as if it was declared on the root of the Tree:-( TODO: remove from library To be removed at next drop of binary compatibility

    -
    ctxt:an XML parser context
    -
    -

    xmlParseNmtoken ()

    xmlChar *	xmlParseNmtoken		(xmlParserCtxtPtr ctxt)
    -

    parse an XML Nmtoken. [7] Nmtoken ::= (NameChar)+ [8] Nmtokens ::= Nmtoken (#x20 Nmtoken)*

    -
    ctxt:an XML parser context
    Returns:the Nmtoken parsed or NULL
    -
    -

    xmlParseNotationDecl ()

    void	xmlParseNotationDecl		(xmlParserCtxtPtr ctxt)
    -

    parse a notation declaration [82] NotationDecl ::= '<!NOTATION' S Name S (ExternalID | PublicID) S? '>' Hence there is actually 3 choices: 'PUBLIC' S PubidLiteral 'PUBLIC' S PubidLiteral S SystemLiteral and 'SYSTEM' S SystemLiteral See the NOTE on xmlParseExternalID().

    -
    ctxt:an XML parser context
    -
    -

    xmlParseNotationType ()

    xmlEnumerationPtr	xmlParseNotationType	(xmlParserCtxtPtr ctxt)
    -

    parse an Notation attribute type. Note: the leading 'NOTATION' S part has already being parsed... [58] NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')' [ VC: Notation Attributes ] Values of this type must match one of the notation names included in the declaration; all notation names in the declaration must be declared.

    -
    ctxt:an XML parser context
    Returns:the notation attribute tree built while parsing
    -
    -

    xmlParsePEReference ()

    void	xmlParsePEReference		(xmlParserCtxtPtr ctxt)
    -

    parse PEReference declarations The entity content is handled directly by pushing it's content as a new input stream. [69] PEReference ::= '%' Name ';' [ WFC: No Recursion ] A parsed entity must not contain a recursive reference to itself, either directly or indirectly. [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", ... ... The declaration of a parameter entity must precede any reference to it... [ VC: Entity Declared ] In a document with an external subset or external parameter entities with "standalone='no'", ... ... The declaration of a parameter entity must precede any reference to it... [ WFC: In DTD ] Parameter-entity references may only appear in the DTD. NOTE: misleading but this is handled.

    -
    ctxt:an XML parser context
    -
    -

    xmlParsePI ()

    void	xmlParsePI			(xmlParserCtxtPtr ctxt)
    -

    parse an XML Processing Instruction. [16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' The processing is transfered to SAX once parsed.

    -
    ctxt:an XML parser context
    -
    -

    xmlParsePITarget ()

    const xmlChar *	xmlParsePITarget	(xmlParserCtxtPtr ctxt)
    -

    parse the name of a PI [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))

    -
    ctxt:an XML parser context
    Returns:the PITarget name or NULL
    -
    -

    xmlParsePubidLiteral ()

    xmlChar *	xmlParsePubidLiteral	(xmlParserCtxtPtr ctxt)
    -

    parse an XML public literal [12] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'"

    -
    ctxt:an XML parser context
    Returns:the PubidLiteral parsed or NULL.
    -
    -

    xmlParseQuotedString ()

    xmlChar *	xmlParseQuotedString	(xmlParserCtxtPtr ctxt)
    -

    Parse and return a string between quotes or doublequotes TODO: Deprecated, to be removed at next drop of binary compatibility

    -
    ctxt:an XML parser context
    Returns:the string parser or NULL.
    -
    -

    xmlParseReference ()

    void	xmlParseReference		(xmlParserCtxtPtr ctxt)
    -

    parse and handle entity references in content, depending on the SAX interface, this may end-up in a call to character() if this is a CharRef, a predefined entity, if there is no reference() callback. or if the parser was asked to switch to that mode. [67] Reference ::= EntityRef | CharRef

    -
    ctxt:an XML parser context
    -
    -

    xmlParseSDDecl ()

    int	xmlParseSDDecl			(xmlParserCtxtPtr ctxt)
    -

    parse the XML standalone declaration [32] SDDecl ::= S 'standalone' Eq (("'" ('yes' | 'no') "'") | ('"' ('yes' | 'no')'"')) [ VC: Standalone Document Declaration ] TODO The standalone document declaration must have the value "no" if any external markup declarations contain declarations of: - attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or - entities (other than amp, lt, gt, apos, quot), if references to those entities appear in the document, or - attributes with values subject to normalization, where the attribute appears in the document with a value which will change as a result of normalization, or - element types with element content, if white space occurs directly within any instance of those types.

    -
    ctxt:an XML parser context
    Returns:1 if standalone, 0 otherwise
    -
    -

    xmlParseStartTag ()

    const xmlChar *	xmlParseStartTag	(xmlParserCtxtPtr ctxt)
    -

    parse a start of tag either for rule element or EmptyElement. In both case we don't parse the tag closing chars. [40] STag ::= '<' Name (S Attribute)* S? '>' [ WFC: Unique Att Spec ] No attribute name may appear more than once in the same start-tag or empty-element tag. [44] EmptyElemTag ::= '<' Name (S Attribute)* S? '/>' [ WFC: Unique Att Spec ] No attribute name may appear more than once in the same start-tag or empty-element tag. With namespace: [NS 8] STag ::= '<' QName (S Attribute)* S? '>' [NS 10] EmptyElement ::= '<' QName (S Attribute)* S? '/>'

    -
    ctxt:an XML parser context
    Returns:the element name parsed
    -
    -

    xmlParseSystemLiteral ()

    xmlChar *	xmlParseSystemLiteral	(xmlParserCtxtPtr ctxt)
    -

    parse an XML Literal [11] SystemLiteral ::= ('"' [^"]* '"') | ("'" [^']* "'")

    -
    ctxt:an XML parser context
    Returns:the SystemLiteral parsed or NULL
    -
    -

    xmlParseTextDecl ()

    void	xmlParseTextDecl		(xmlParserCtxtPtr ctxt)
    -

    parse an XML declaration header for external entities [77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>' Question: Seems that EncodingDecl is mandatory ? Is that a typo ?

    -
    ctxt:an XML parser context
    -
    -

    xmlParseVersionInfo ()

    xmlChar *	xmlParseVersionInfo	(xmlParserCtxtPtr ctxt)
    -

    parse the XML version. [24] VersionInfo ::= S 'version' Eq (' VersionNum ' | " VersionNum ") [25] Eq ::= S? '=' S?

    -
    ctxt:an XML parser context
    Returns:the version string, e.g. "1.0"
    -
    -

    xmlParseVersionNum ()

    xmlChar *	xmlParseVersionNum	(xmlParserCtxtPtr ctxt)
    -

    parse the XML version value. [26] VersionNum ::= ([a-zA-Z0-9_.:] | '-')+

    -
    ctxt:an XML parser context
    Returns:the string giving the XML version number, or NULL
    -
    -

    xmlParseXMLDecl ()

    void	xmlParseXMLDecl			(xmlParserCtxtPtr ctxt)
    -

    parse an XML declaration header [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'

    -
    ctxt:an XML parser context
    -
    -

    xmlParserHandlePEReference ()

    void	xmlParserHandlePEReference	(xmlParserCtxtPtr ctxt)
    -

    [69] PEReference ::= '%' Name ';' [ WFC: No Recursion ] A parsed entity must not contain a recursive reference to itself, either directly or indirectly. [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", ... ... The declaration of a parameter entity must precede any reference to it... [ VC: Entity Declared ] In a document with an external subset or external parameter entities with "standalone='no'", ... ... The declaration of a parameter entity must precede any reference to it... [ WFC: In DTD ] Parameter-entity references may only appear in the DTD. NOTE: misleading but this is handled. A PEReference may have been detected in the current input stream the handling is done accordingly to http://www.w3.org/TR/REC-xml#entproc i.e. - Included in literal in entity values - Included as Parameter Entity reference within DTDs

    -
    ctxt:the parser context
    -
    -

    xmlParserHandleReference ()

    void	xmlParserHandleReference	(xmlParserCtxtPtr ctxt)
    -

    TODO: Remove, now deprecated ... the test is done directly in the content parsing routines. [67] Reference ::= EntityRef | CharRef [68] EntityRef ::= '&' Name ';' [ WFC: Entity Declared ] the Name given in the entity reference must match that in an entity declaration, except that well-formed documents need not declare any of the following entities: amp, lt, gt, apos, quot. [ WFC: Parsed Entity ] An entity reference must not contain the name of an unparsed entity [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' A PEReference may have been detected in the current input stream the handling is done accordingly to http://www.w3.org/TR/REC-xml#entproc

    -
    ctxt:the parser context
    -
    -

    xmlParserInputShrink ()

    void	xmlParserInputShrink		(xmlParserInputPtr in)
    -

    This function removes used input for the parser.

    -
    in:an XML parser input
    -
    -

    xmlPopInput ()

    xmlChar	xmlPopInput			(xmlParserCtxtPtr ctxt)
    -

    xmlPopInput: the current input pointed by ctxt->input came to an end pop it and return the next char.

    -
    ctxt:an XML parser context
    Returns:the current xmlChar in the parser context
    -
    -

    xmlPushInput ()

    void	xmlPushInput			(xmlParserCtxtPtr ctxt, 
    xmlParserInputPtr input)
    -

    xmlPushInput: switch to a new input stream which is stacked on top of the previous one(s).

    -
    ctxt:an XML parser context
    input:an XML parser input fragment (entity, XML fragment ...).
    -
    -

    xmlScanName ()

    xmlChar *	xmlScanName		(xmlParserCtxtPtr ctxt)
    -

    Trickery: parse an XML name but without consuming the input flow Needed for rollback cases. Used only when parsing entities references. TODO: seems deprecated now, only used in the default part of xmlParserHandleReference [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* [6] Names ::= Name (S Name)*

    -
    ctxt:an XML parser context
    Returns:the Name parsed or NULL
    -
    -

    xmlSetEntityReferenceFunc ()

    void	xmlSetEntityReferenceFunc	(xmlEntityReferenceFunc func)
    -

    Set the function to call call back when a xml reference has been made

    -
    func:A valid function
    -
    -

    xmlSkipBlankChars ()

    int	xmlSkipBlankChars		(xmlParserCtxtPtr ctxt)
    -

    skip all blanks character found at that point in the input streams. It pops up finished entities in the process if allowable at that point.

    -
    ctxt:the XML parser context
    Returns:the number of space chars skipped
    -
    -

    xmlSplitQName ()

    xmlChar *	xmlSplitQName		(xmlParserCtxtPtr ctxt, 
    const xmlChar * name,
    xmlChar ** prefix)
    -

    parse an UTF8 encoded XML qualified name string [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName

    -
    ctxt:an XML parser context
    name:an XML parser context
    prefix:a xmlChar **
    Returns:the local part, and prefix is updated to get the Prefix if any.
    -
    -

    xmlStringCurrentChar ()

    int	xmlStringCurrentChar		(xmlParserCtxtPtr ctxt, 
    const xmlChar * cur,
    int * len)
    -

    The current char value, if using UTF-8 this may actually span multiple bytes in the input buffer.

    -
    ctxt:the XML parser context
    cur:pointer to the beginning of the char
    len:pointer to the length of the char read
    Returns:the current char value and its length
    -
    -

    xmlStringDecodeEntities ()

    xmlChar *	xmlStringDecodeEntities	(xmlParserCtxtPtr ctxt, 
    const xmlChar * str,
    int what,
    xmlChar end,
    xmlChar end2,
    xmlChar end3)
    -

    Takes a entity string content and process to do the adequate substitutions. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';'

    -
    ctxt:the parser context
    str:the input string
    what:combination of XML_SUBSTITUTE_REF and XML_SUBSTITUTE_PEREF
    end:an end marker xmlChar, 0 if none
    end2:an end marker xmlChar, 0 if none
    end3:an end marker xmlChar, 0 if none
    Returns:A newly allocated string with the substitution done. The caller must deallocate it !
    -
    -

    xmlStringLenDecodeEntities ()

    xmlChar *	xmlStringLenDecodeEntities	(xmlParserCtxtPtr ctxt, 
    const xmlChar * str,
    int len,
    int what,
    xmlChar end,
    xmlChar end2,
    xmlChar end3)
    -

    Takes a entity string content and process to do the adequate substitutions. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';'

    -
    ctxt:the parser context
    str:the input string
    len:the string length
    what:combination of XML_SUBSTITUTE_REF and XML_SUBSTITUTE_PEREF
    end:an end marker xmlChar, 0 if none
    end2:an end marker xmlChar, 0 if none
    end3:an end marker xmlChar, 0 if none
    Returns:A newly allocated string with the substitution done. The caller must deallocate it !
    -
    -

    xmlSwitchEncoding ()

    int	xmlSwitchEncoding		(xmlParserCtxtPtr ctxt, 
    xmlCharEncoding enc)
    -

    change the input functions when discovering the character encoding of a given entity.

    -
    ctxt:the parser context
    enc:the encoding value (number)
    Returns:0 in case of success, -1 otherwise
    -
    -

    xmlSwitchInputEncoding ()

    int	xmlSwitchInputEncoding		(xmlParserCtxtPtr ctxt, 
    xmlParserInputPtr input,
    xmlCharEncodingHandlerPtr handler)
    -

    change the input functions when discovering the character encoding of a given entity.

    -
    ctxt:the parser context
    input:the input stream
    handler:the encoding handler
    Returns:0 in case of success, -1 otherwise
    -
    -

    xmlSwitchToEncoding ()

    int	xmlSwitchToEncoding		(xmlParserCtxtPtr ctxt, 
    xmlCharEncodingHandlerPtr handler)
    -

    change the input functions when discovering the character encoding of a given entity.

    -
    ctxt:the parser context
    handler:the encoding handler
    Returns:0 in case of success, -1 otherwise
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-pattern.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-pattern.html deleted file mode 100644 index 321bd79288..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-pattern.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - - pattern: pattern expression handling - - - - - - - - - - - - - - - - -

    - pattern -

    -

    pattern - pattern expression handling

    -

    allows to compile and test pattern expressions for nodes either in a tree or based on a parser state.

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef xmlStreamCtxt * xmlStreamCtxtPtr;
    -typedef enum xmlPatternFlags;
    -typedef struct _xmlStreamCtxt xmlStreamCtxt;
    -typedef struct _xmlPattern xmlPattern;
    -typedef xmlPattern * xmlPatternPtr;
    -int	xmlPatternMinDepth		(xmlPatternPtr comp);
    -xmlStreamCtxtPtr	xmlPatternGetStreamCtxt	(xmlPatternPtr comp);
    -int	xmlPatternFromRoot		(xmlPatternPtr comp);
    -void	xmlFreePatternList		(xmlPatternPtr comp);
    -int	xmlPatternStreamable		(xmlPatternPtr comp);
    -int	xmlStreamPushAttr		(xmlStreamCtxtPtr stream, 
    const xmlChar * name,
    const xmlChar * ns); -int xmlPatternMatch (xmlPatternPtr comp,
    xmlNodePtr node); -int xmlStreamWantsAnyNode (xmlStreamCtxtPtr streamCtxt); -int xmlStreamPop (xmlStreamCtxtPtr stream); -void xmlFreePattern (xmlPatternPtr comp); -int xmlStreamPush (xmlStreamCtxtPtr stream,
    const xmlChar * name,
    const xmlChar * ns); -int xmlPatternMaxDepth (xmlPatternPtr comp); -xmlPatternPtr xmlPatterncompile (const xmlChar * pattern,
    xmlDict * dict,
    int flags,
    const xmlChar ** namespaces); -int xmlStreamPushNode (xmlStreamCtxtPtr stream,
    const xmlChar * name,
    const xmlChar * ns,
    int nodeType); -void xmlFreeStreamCtxt (xmlStreamCtxtPtr stream); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlPattern

    struct _xmlPattern {
    -The content of this structure is not made public by the API.
    -} xmlPattern;
    -

    -

    -
    -

    Enum xmlPatternFlags

    enum xmlPatternFlags {
    -    XML_PATTERN_DEFAULT = 0 /* simple pattern match */
    -    XML_PATTERN_XPATH = 1 /* standard XPath pattern */
    -    XML_PATTERN_XSSEL = 2 /* XPath subset for schema selector */
    -    XML_PATTERN_XSFIELD = 4 /*  XPath subset for schema field */
    -};
    -

    -

    -
    -

    Typedef xmlPatternPtr

    xmlPattern * xmlPatternPtr;
    -

    -

    -
    -

    Structure xmlStreamCtxt

    struct _xmlStreamCtxt {
    -The content of this structure is not made public by the API.
    -} xmlStreamCtxt;
    -

    -

    -
    -

    Typedef xmlStreamCtxtPtr

    xmlStreamCtxt * xmlStreamCtxtPtr;
    -

    -

    -
    -

    xmlFreePattern ()

    void	xmlFreePattern			(xmlPatternPtr comp)
    -

    Free up the memory allocated by @comp

    -
    comp:an XSLT comp
    -
    -

    xmlFreePatternList ()

    void	xmlFreePatternList		(xmlPatternPtr comp)
    -

    Free up the memory allocated by all the elements of @comp

    -
    comp:an XSLT comp list
    -
    -

    xmlFreeStreamCtxt ()

    void	xmlFreeStreamCtxt		(xmlStreamCtxtPtr stream)
    -

    Free the stream context

    -
    stream:the stream context
    -
    -

    xmlPatternFromRoot ()

    int	xmlPatternFromRoot		(xmlPatternPtr comp)
    -

    Check if the pattern must be looked at from the root.

    -
    comp:the precompiled pattern
    Returns:1 if true, 0 if false and -1 in case of error
    -
    -

    xmlPatternGetStreamCtxt ()

    xmlStreamCtxtPtr	xmlPatternGetStreamCtxt	(xmlPatternPtr comp)
    -

    Get a streaming context for that pattern Use xmlFreeStreamCtxt to free the context.

    -
    comp:the precompiled pattern
    Returns:a pointer to the context or NULL in case of failure
    -
    -

    xmlPatternMatch ()

    int	xmlPatternMatch			(xmlPatternPtr comp, 
    xmlNodePtr node)
    -

    Test whether the node matches the pattern

    -
    comp:the precompiled pattern
    node:a node
    Returns:1 if it matches, 0 if it doesn't and -1 in case of failure
    -
    -

    xmlPatternMaxDepth ()

    int	xmlPatternMaxDepth		(xmlPatternPtr comp)
    -

    Check the maximum depth reachable by a pattern

    -
    comp:the precompiled pattern
    Returns:-2 if no limit (using //), otherwise the depth, and -1 in case of error
    -
    -

    xmlPatternMinDepth ()

    int	xmlPatternMinDepth		(xmlPatternPtr comp)
    -

    Check the minimum depth reachable by a pattern, 0 mean the / or . are part of the set.

    -
    comp:the precompiled pattern
    Returns:-1 in case of error otherwise the depth,
    -
    -

    xmlPatternStreamable ()

    int	xmlPatternStreamable		(xmlPatternPtr comp)
    -

    Check if the pattern is streamable i.e. xmlPatternGetStreamCtxt() should work.

    -
    comp:the precompiled pattern
    Returns:1 if streamable, 0 if not and -1 in case of error.
    -
    -

    xmlPatterncompile ()

    xmlPatternPtr	xmlPatterncompile	(const xmlChar * pattern, 
    xmlDict * dict,
    int flags,
    const xmlChar ** namespaces)
    -

    Compile a pattern.

    -
    pattern:the pattern to compile
    dict:an optional dictionary for interned strings
    flags:compilation flags, see xmlPatternFlags
    namespaces:the prefix definitions, array of [URI, prefix] or NULL
    Returns:the compiled form of the pattern or NULL in case of error
    -
    -

    xmlStreamPop ()

    int	xmlStreamPop			(xmlStreamCtxtPtr stream)
    -

    push one level from the stream.

    -
    stream:the stream context
    Returns:-1 in case of error, 0 otherwise.
    -
    -

    xmlStreamPush ()

    int	xmlStreamPush			(xmlStreamCtxtPtr stream, 
    const xmlChar * name,
    const xmlChar * ns)
    -

    Push new data onto the stream. NOTE: if the call xmlPatterncompile() indicated a dictionary, then strings for name and ns will be expected to come from the dictionary. Both @name and @ns being NULL means the / i.e. the root of the document. This can also act as a reset. Otherwise the function will act as if it has been given an element-node.

    -
    stream:the stream context
    name:the current name
    ns:the namespace name
    Returns:-1 in case of error, 1 if the current state in the stream is a match and 0 otherwise.
    -
    -

    xmlStreamPushAttr ()

    int	xmlStreamPushAttr		(xmlStreamCtxtPtr stream, 
    const xmlChar * name,
    const xmlChar * ns)
    -

    Push new attribute data onto the stream. NOTE: if the call xmlPatterncompile() indicated a dictionary, then strings for name and ns will be expected to come from the dictionary. Both @name and @ns being NULL means the / i.e. the root of the document. This can also act as a reset. Otherwise the function will act as if it has been given an attribute-node.

    -
    stream:the stream context
    name:the current name
    ns:the namespace name
    Returns:-1 in case of error, 1 if the current state in the stream is a match and 0 otherwise.
    -
    -

    xmlStreamPushNode ()

    int	xmlStreamPushNode		(xmlStreamCtxtPtr stream, 
    const xmlChar * name,
    const xmlChar * ns,
    int nodeType)
    -

    Push new data onto the stream. NOTE: if the call xmlPatterncompile() indicated a dictionary, then strings for name and ns will be expected to come from the dictionary. Both @name and @ns being NULL means the / i.e. the root of the document. This can also act as a reset. Different from xmlStreamPush() this function can be fed with nodes of type: element-, attribute-, text-, cdata-section-, comment- and processing-instruction-node.

    -
    stream:the stream context
    name:the current name
    ns:the namespace name
    nodeType:the type of the node being pushed
    Returns:-1 in case of error, 1 if the current state in the stream is a match and 0 otherwise.
    -
    -

    xmlStreamWantsAnyNode ()

    int	xmlStreamWantsAnyNode		(xmlStreamCtxtPtr streamCtxt)
    -

    Query if the streaming pattern additionally needs to be fed with text-, cdata-section-, comment- and processing-instruction-nodes. If the result is 0 then only element-nodes and attribute-nodes need to be pushed.

    -
    streamCtxt:the stream context
    Returns:1 in case of need of nodes of the above described types, 0 otherwise. -1 on API errors.
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-relaxng.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-relaxng.html deleted file mode 100644 index d7da3e54a7..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-relaxng.html +++ /dev/null @@ -1,278 +0,0 @@ - - - - - relaxng: implementation of the Relax-NG validation - - - - - - - - - - - - - - - - -

    - relaxng -

    -

    relaxng - implementation of the Relax-NG validation

    -

    implementation of the Relax-NG validation

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef struct _xmlRelaxNG xmlRelaxNG;
    -typedef xmlRelaxNG * xmlRelaxNGPtr;
    -typedef enum xmlRelaxNGValidErr;
    -typedef struct _xmlRelaxNGParserCtxt xmlRelaxNGParserCtxt;
    -typedef xmlRelaxNGParserCtxt * xmlRelaxNGParserCtxtPtr;
    -typedef enum xmlRelaxNGParserFlag;
    -typedef struct _xmlRelaxNGValidCtxt xmlRelaxNGValidCtxt;
    -typedef xmlRelaxNGValidCtxt * xmlRelaxNGValidCtxtPtr;
    -void	xmlRelaxNGFreeValidCtxt		(xmlRelaxNGValidCtxtPtr ctxt);
    -xmlRelaxNGParserCtxtPtr	xmlRelaxNGNewDocParserCtxt	(xmlDocPtr doc);
    -void	xmlRelaxNGSetValidErrors	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlRelaxNGValidityErrorFunc err,
    xmlRelaxNGValidityWarningFunc warn,
    void * ctx); -xmlRelaxNGParserCtxtPtr xmlRelaxNGNewParserCtxt (const char * URL); -int xmlRelaxNGGetParserErrors (xmlRelaxNGParserCtxtPtr ctxt,
    xmlRelaxNGValidityErrorFunc * err,
    xmlRelaxNGValidityWarningFunc * warn,
    void ** ctx); -int xmlRelaxNGValidatePopElement (xmlRelaxNGValidCtxtPtr ctxt,
    xmlDocPtr doc,
    xmlNodePtr elem); -xmlRelaxNGValidCtxtPtr xmlRelaxNGNewValidCtxt (xmlRelaxNGPtr schema); -xmlRelaxNGParserCtxtPtr xmlRelaxNGNewMemParserCtxt (const char * buffer,
    int size); -void xmlRelaxNGDump (FILE * output,
    xmlRelaxNGPtr schema); -void xmlRelaxNGSetParserErrors (xmlRelaxNGParserCtxtPtr ctxt,
    xmlRelaxNGValidityErrorFunc err,
    xmlRelaxNGValidityWarningFunc warn,
    void * ctx); -xmlRelaxNGPtr xmlRelaxNGParse (xmlRelaxNGParserCtxtPtr ctxt); -void xmlRelaxNGSetParserStructuredErrors (xmlRelaxNGParserCtxtPtr ctxt,
    xmlStructuredErrorFunc serror,
    void * ctx); -int xmlRelaxNGValidateFullElement (xmlRelaxNGValidCtxtPtr ctxt,
    xmlDocPtr doc,
    xmlNodePtr elem); -typedef void xmlRelaxNGValidityErrorFunc (void * ctx,
    const char * msg,
    ... ...); -int xmlRelaxNGValidatePushElement (xmlRelaxNGValidCtxtPtr ctxt,
    xmlDocPtr doc,
    xmlNodePtr elem); -void xmlRelaxNGFree (xmlRelaxNGPtr schema); -int xmlRelaxNGValidateDoc (xmlRelaxNGValidCtxtPtr ctxt,
    xmlDocPtr doc); -void xmlRelaxNGSetValidStructuredErrors (xmlRelaxNGValidCtxtPtr ctxt,
    xmlStructuredErrorFunc serror,
    void * ctx); -void xmlRelaxNGFreeParserCtxt (xmlRelaxNGParserCtxtPtr ctxt); -int xmlRelaxNGGetValidErrors (xmlRelaxNGValidCtxtPtr ctxt,
    xmlRelaxNGValidityErrorFunc * err,
    xmlRelaxNGValidityWarningFunc * warn,
    void ** ctx); -int xmlRelaxNGInitTypes (void); -void xmlRelaxNGDumpTree (FILE * output,
    xmlRelaxNGPtr schema); -void xmlRelaxNGCleanupTypes (void); -int xmlRelaxNGValidatePushCData (xmlRelaxNGValidCtxtPtr ctxt,
    const xmlChar * data,
    int len); -int xmlRelaxParserSetFlag (xmlRelaxNGParserCtxtPtr ctxt,
    int flags); -typedef void xmlRelaxNGValidityWarningFunc (void * ctx,
    const char * msg,
    ... ...); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlRelaxNG

    struct _xmlRelaxNG {
    -The content of this structure is not made public by the API.
    -} xmlRelaxNG;
    -

    -

    -
    -

    Structure xmlRelaxNGParserCtxt

    struct _xmlRelaxNGParserCtxt {
    -The content of this structure is not made public by the API.
    -} xmlRelaxNGParserCtxt;
    -

    -

    -
    -

    Typedef xmlRelaxNGParserCtxtPtr

    xmlRelaxNGParserCtxt * xmlRelaxNGParserCtxtPtr;
    -

    -

    -
    -

    Enum xmlRelaxNGParserFlag

    enum xmlRelaxNGParserFlag {
    -    XML_RELAXNGP_NONE = 0
    -    XML_RELAXNGP_FREE_DOC = 1
    -    XML_RELAXNGP_CRNG = 2
    -};
    -

    -

    -
    -

    Typedef xmlRelaxNGPtr

    xmlRelaxNG * xmlRelaxNGPtr;
    -

    -

    -
    -

    Structure xmlRelaxNGValidCtxt

    struct _xmlRelaxNGValidCtxt {
    -The content of this structure is not made public by the API.
    -} xmlRelaxNGValidCtxt;
    -

    -

    -
    -

    Typedef xmlRelaxNGValidCtxtPtr

    xmlRelaxNGValidCtxt * xmlRelaxNGValidCtxtPtr;
    -

    -

    -
    - -
    - -
    -
    -
    -
    -
    -

    xmlRelaxNGDump ()

    void	xmlRelaxNGDump			(FILE * output, 
    xmlRelaxNGPtr schema)
    -

    Dump a RelaxNG structure back

    -
    output:the file output
    schema:a schema structure
    -
    -

    xmlRelaxNGDumpTree ()

    void	xmlRelaxNGDumpTree		(FILE * output, 
    xmlRelaxNGPtr schema)
    -

    Dump the transformed RelaxNG tree.

    -
    output:the file output
    schema:a schema structure
    -
    -

    xmlRelaxNGFree ()

    void	xmlRelaxNGFree			(xmlRelaxNGPtr schema)
    -

    Deallocate a RelaxNG structure.

    -
    schema:a schema structure
    -
    -

    xmlRelaxNGFreeParserCtxt ()

    void	xmlRelaxNGFreeParserCtxt	(xmlRelaxNGParserCtxtPtr ctxt)
    -

    Free the resources associated to the schema parser context

    -
    ctxt:the schema parser context
    -
    -

    xmlRelaxNGFreeValidCtxt ()

    void	xmlRelaxNGFreeValidCtxt		(xmlRelaxNGValidCtxtPtr ctxt)
    -

    Free the resources associated to the schema validation context

    -
    ctxt:the schema validation context
    -
    -

    xmlRelaxNGGetParserErrors ()

    int	xmlRelaxNGGetParserErrors	(xmlRelaxNGParserCtxtPtr ctxt, 
    xmlRelaxNGValidityErrorFunc * err,
    xmlRelaxNGValidityWarningFunc * warn,
    void ** ctx)
    -

    Get the callback information used to handle errors for a validation context

    -
    ctxt:a Relax-NG validation context
    err:the error callback result
    warn:the warning callback result
    ctx:contextual data for the callbacks result
    Returns:-1 in case of failure, 0 otherwise.
    -
    -

    xmlRelaxNGGetValidErrors ()

    int	xmlRelaxNGGetValidErrors	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlRelaxNGValidityErrorFunc * err,
    xmlRelaxNGValidityWarningFunc * warn,
    void ** ctx)
    -

    Get the error and warning callback informations

    -
    ctxt:a Relax-NG validation context
    err:the error function result
    warn:the warning function result
    ctx:the functions context result
    Returns:-1 in case of error and 0 otherwise
    -
    - -
    -

    xmlRelaxNGNewDocParserCtxt ()

    xmlRelaxNGParserCtxtPtr	xmlRelaxNGNewDocParserCtxt	(xmlDocPtr doc)
    -

    Create an XML RelaxNGs parser context for that document. Note: since the process of compiling a RelaxNG schemas modifies the document, the @doc parameter is duplicated internally.

    -
    doc:a preparsed document tree
    Returns:the parser context or NULL in case of error
    -
    -

    xmlRelaxNGNewMemParserCtxt ()

    xmlRelaxNGParserCtxtPtr	xmlRelaxNGNewMemParserCtxt	(const char * buffer, 
    int size)
    -

    Create an XML RelaxNGs parse context for that memory buffer expected to contain an XML RelaxNGs file.

    -
    buffer:a pointer to a char array containing the schemas
    size:the size of the array
    Returns:the parser context or NULL in case of error
    -
    -

    xmlRelaxNGNewParserCtxt ()

    xmlRelaxNGParserCtxtPtr	xmlRelaxNGNewParserCtxt	(const char * URL)
    -

    Create an XML RelaxNGs parse context for that file/resource expected to contain an XML RelaxNGs file.

    -
    URL:the location of the schema
    Returns:the parser context or NULL in case of error
    -
    -

    xmlRelaxNGNewValidCtxt ()

    xmlRelaxNGValidCtxtPtr	xmlRelaxNGNewValidCtxt	(xmlRelaxNGPtr schema)
    -

    Create an XML RelaxNGs validation context based on the given schema

    -
    schema:a precompiled XML RelaxNGs
    Returns:the validation context or NULL in case of error
    -
    -

    xmlRelaxNGParse ()

    xmlRelaxNGPtr	xmlRelaxNGParse		(xmlRelaxNGParserCtxtPtr ctxt)
    -

    parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances.

    -
    ctxt:a Relax-NG parser context
    Returns:the internal XML RelaxNG structure built from the resource or NULL in case of error
    -
    -

    xmlRelaxNGSetParserErrors ()

    void	xmlRelaxNGSetParserErrors	(xmlRelaxNGParserCtxtPtr ctxt, 
    xmlRelaxNGValidityErrorFunc err,
    xmlRelaxNGValidityWarningFunc warn,
    void * ctx)
    -

    Set the callback functions used to handle errors for a validation context

    -
    ctxt:a Relax-NG validation context
    err:the error callback
    warn:the warning callback
    ctx:contextual data for the callbacks
    -
    -

    xmlRelaxNGSetParserStructuredErrors ()

    void	xmlRelaxNGSetParserStructuredErrors	(xmlRelaxNGParserCtxtPtr ctxt, 
    xmlStructuredErrorFunc serror,
    void * ctx)
    -

    Set the callback functions used to handle errors for a parsing context

    -
    ctxt:a Relax-NG parser context
    serror:the error callback
    ctx:contextual data for the callbacks
    -
    -

    xmlRelaxNGSetValidErrors ()

    void	xmlRelaxNGSetValidErrors	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlRelaxNGValidityErrorFunc err,
    xmlRelaxNGValidityWarningFunc warn,
    void * ctx)
    -

    Set the error and warning callback informations

    -
    ctxt:a Relax-NG validation context
    err:the error function
    warn:the warning function
    ctx:the functions context
    -
    -

    xmlRelaxNGSetValidStructuredErrors ()

    void	xmlRelaxNGSetValidStructuredErrors	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlStructuredErrorFunc serror,
    void * ctx)
    -

    Set the structured error callback

    -
    ctxt:a Relax-NG validation context
    serror:the structured error function
    ctx:the functions context
    -
    -

    xmlRelaxNGValidateDoc ()

    int	xmlRelaxNGValidateDoc		(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlDocPtr doc)
    -

    Validate a document tree in memory.

    -
    ctxt:a Relax-NG validation context
    doc:a parsed document tree
    Returns:0 if the document is valid, a positive error code number otherwise and -1 in case of internal or API error.
    -
    -

    xmlRelaxNGValidateFullElement ()

    int	xmlRelaxNGValidateFullElement	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem)
    -

    Validate a full subtree when xmlRelaxNGValidatePushElement() returned 0 and the content of the node has been expanded.

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element instance
    Returns:1 if no validation problem was found or -1 in case of error.
    -
    -

    xmlRelaxNGValidatePopElement ()

    int	xmlRelaxNGValidatePopElement	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem)
    -

    Pop the element end from the RelaxNG validation stack.

    -
    ctxt:the RelaxNG validation context
    doc:a document instance
    elem:an element instance
    Returns:1 if no validation problem was found or 0 otherwise
    -
    -

    xmlRelaxNGValidatePushCData ()

    int	xmlRelaxNGValidatePushCData	(xmlRelaxNGValidCtxtPtr ctxt, 
    const xmlChar * data,
    int len)
    -

    check the CData parsed for validation in the current stack

    -
    ctxt:the RelaxNG validation context
    data:some character data read
    len:the lenght of the data
    Returns:1 if no validation problem was found or -1 otherwise
    -
    -

    xmlRelaxNGValidatePushElement ()

    int	xmlRelaxNGValidatePushElement	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem)
    -

    Push a new element start on the RelaxNG validation stack.

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element instance
    Returns:1 if no validation problem was found or 0 if validating the element requires a full node, and -1 in case of error.
    -
    -

    xmlRelaxParserSetFlag ()

    int	xmlRelaxParserSetFlag		(xmlRelaxNGParserCtxtPtr ctxt, 
    int flags)
    -

    Semi private function used to pass informations to a parser context which are a combination of xmlRelaxNGParserFlag .

    -
    ctxt:a RelaxNG parser context
    flags:a set of flags values
    Returns:0 if success and -1 in case of error
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-schemasInternals.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-schemasInternals.html deleted file mode 100644 index 2f9cbc949c..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-schemasInternals.html +++ /dev/null @@ -1,860 +0,0 @@ - - - - - schemasInternals: internal interfaces for XML Schemas - - - - - - - - - - - - - - - - -

    - schemasInternals -

    -

    schemasInternals - internal interfaces for XML Schemas

    -

    internal interfaces for the XML Schemas handling and schema validity checking The Schemas development is a Work In Progress. Some of those interfaces are not garanteed to be API or ABI stable !

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    #define XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION;
    -#define XML_SCHEMAS_FINAL_DEFAULT_EXTENSION;
    -#define XML_SCHEMAS_TYPE_FIXUP_1;
    -#define XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION;
    -#define XML_SCHEMAS_ELEM_CIRCULAR;
    -#define XML_SCHEMAS_QUALIF_ATTR;
    -#define XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE;
    -#define XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION;
    -#define XML_SCHEMAS_ATTR_USE_REQUIRED;
    -#define XML_SCHEMAS_FACET_COLLAPSE;
    -#define XML_SCHEMAS_TYPE_WHITESPACE_COLLAPSE;
    -#define XML_SCHEMAS_TYPE_VARIETY_UNION;
    -#define XML_SCHEMAS_ANY_STRICT;
    -#define XML_SCHEMAS_TYPE_INTERNAL_RESOLVED;
    -#define XML_SCHEMAS_QUALIF_ELEM;
    -#define XML_SCHEMAS_TYPE_VARIETY_LIST;
    -#define XML_SCHEMAS_TYPE_WHITESPACE_PRESERVE;
    -#define XML_SCHEMAS_ELEM_INTERNAL_CHECKED;
    -#define XML_SCHEMAS_INCLUDING_CONVERT_NS;
    -#define XML_SCHEMAS_ATTR_INTERNAL_RESOLVED;
    -#define XML_SCHEMAS_ATTR_USE_PROHIBITED;
    -#define XML_SCHEMAS_ELEM_NILLABLE;
    -#define XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION;
    -#define XML_SCHEMAS_ATTRGROUP_REDEFINED;
    -#define XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD;
    -#define XML_SCHEMAS_TYPE_BLOCK_DEFAULT;
    -#define XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION;
    -#define XML_SCHEMAS_TYPE_FINAL_EXTENSION;
    -#define XML_SCHEMAS_TYPE_REDEFINED;
    -#define XML_SCHEMAS_ELEM_FIXED;
    -#define XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD;
    -#define XML_SCHEMAS_TYPE_VARIETY_ATOMIC;
    -#define XML_SCHEMAS_TYPE_FINAL_LIST;
    -#define XML_SCHEMAS_ATTR_USE_OPTIONAL;
    -#define XML_SCHEMAS_ATTR_NSDEFAULT;
    -#define XML_SCHEMAS_TYPE_WHITESPACE_REPLACE;
    -#define XML_SCHEMAS_TYPE_BLOCK_RESTRICTION;
    -#define XML_SCHEMAS_ANYATTR_STRICT;
    -#define XML_SCHEMAS_FACET_UNKNOWN;
    -#define XML_SCHEMAS_ATTRGROUP_MARKED;
    -#define XML_SCHEMAS_FACET_PRESERVE;
    -#define XML_SCHEMAS_ELEM_BLOCK_EXTENSION;
    -#define XML_SCHEMAS_ATTR_GLOBAL;
    -#define XML_SCHEMAS_ANYATTR_SKIP;
    -#define XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION;
    -#define XML_SCHEMAS_ANYATTR_LAX;
    -#define XML_SCHEMAS_TYPE_GLOBAL;
    -#define XML_SCHEMAS_TYPE_ABSTRACT;
    -#define XML_SCHEMAS_TYPE_MIXED;
    -#define XML_SCHEMAS_ATTR_FIXED;
    -#define XML_SCHEMAS_ELEM_INTERNAL_RESOLVED;
    -#define XML_SCHEMAS_ANY_SKIP;
    -#define XML_SCHEMAS_FINAL_DEFAULT_LIST;
    -#define XML_SCHEMAS_TYPE_VARIETY_ABSENT;
    -#define XML_SCHEMAS_ELEM_FINAL_RESTRICTION;
    -#define XML_SCHEMAS_WILDCARD_COMPLETE;
    -#define XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED;
    -#define XML_SCHEMAS_ELEM_NSDEFAULT;
    -#define XML_SCHEMAS_ELEM_GLOBAL;
    -#define XML_SCHEMAS_ELEM_TOPLEVEL;
    -#define XML_SCHEMAS_ANY_LAX;
    -#define XML_SCHEMAS_TYPE_FINAL_RESTRICTION;
    -#define XML_SCHEMAS_TYPE_HAS_FACETS;
    -#define XML_SCHEMAS_ELEM_FINAL_EXTENSION;
    -#define XML_SCHEMAS_TYPE_NORMVALUENEEDED;
    -#define XML_SCHEMAS_ELEM_FINAL_ABSENT;
    -#define XML_SCHEMAS_TYPE_BLOCK_EXTENSION;
    -#define XML_SCHEMAS_TYPE_INTERNAL_INVALID;
    -#define XML_SCHEMAS_ATTRGROUP_HAS_REFS;
    -#define XML_SCHEMAS_ELEM_ABSTRACT;
    -#define XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION;
    -#define XML_SCHEMAS_TYPE_FINAL_UNION;
    -#define XML_SCHEMAS_TYPE_FINAL_DEFAULT;
    -#define XML_SCHEMAS_TYPE_FACETSNEEDVALUE;
    -#define XML_SCHEMAS_FINAL_DEFAULT_UNION;
    -#define XML_SCHEMAS_ELEM_BLOCK_RESTRICTION;
    -#define XML_SCHEMAS_FACET_REPLACE;
    -#define XML_SCHEMAS_ELEM_DEFAULT;
    -#define XML_SCHEMAS_TYPE_MARKED;
    -#define XML_SCHEMAS_ELEM_BLOCK_ABSENT;
    -#define XML_SCHEMAS_ATTRGROUP_GLOBAL;
    -#define XML_SCHEMAS_ELEM_REF;
    -typedef xmlSchemaAttributeGroup * xmlSchemaAttributeGroupPtr;
    -typedef xmlSchemaElement * xmlSchemaElementPtr;
    -typedef xmlSchemaFacetLink * xmlSchemaFacetLinkPtr;
    -typedef struct _xmlSchemaVal xmlSchemaVal;
    -typedef xmlSchemaAttributeLink * xmlSchemaAttributeLinkPtr;
    -typedef struct _xmlSchemaType xmlSchemaType;
    -typedef struct _xmlSchemaAnnot xmlSchemaAnnot;
    -typedef xmlSchemaAnnot * xmlSchemaAnnotPtr;
    -typedef struct _xmlSchemaElement xmlSchemaElement;
    -typedef struct _xmlSchemaWildcard xmlSchemaWildcard;
    -typedef xmlSchemaWildcard * xmlSchemaWildcardPtr;
    -typedef xmlSchemaFacet * xmlSchemaFacetPtr;
    -typedef struct _xmlSchemaTypeLink xmlSchemaTypeLink;
    -typedef struct _xmlSchemaAttributeLink xmlSchemaAttributeLink;
    -typedef xmlSchemaVal * xmlSchemaValPtr;
    -typedef struct _xmlSchemaFacetLink xmlSchemaFacetLink;
    -typedef xmlSchemaWildcardNs * xmlSchemaWildcardNsPtr;
    -typedef struct _xmlSchemaAttributeGroup xmlSchemaAttributeGroup;
    -typedef xmlSchemaTypeLink * xmlSchemaTypeLinkPtr;
    -typedef struct _xmlSchemaWildcardNs xmlSchemaWildcardNs;
    -typedef xmlSchemaAttribute * xmlSchemaAttributePtr;
    -typedef xmlSchemaNotation * xmlSchemaNotationPtr;
    -typedef enum xmlSchemaValType;
    -typedef xmlSchemaType * xmlSchemaTypePtr;
    -typedef struct _xmlSchemaNotation xmlSchemaNotation;
    -typedef struct _xmlSchemaFacet xmlSchemaFacet;
    -typedef enum xmlSchemaContentType;
    -typedef enum xmlSchemaTypeType;
    -typedef struct _xmlSchemaAttribute xmlSchemaAttribute;
    -void	xmlSchemaFreeType		(xmlSchemaTypePtr type);
    -void	xmlSchemaFreeWildcard		(xmlSchemaWildcardPtr wildcard);
    -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro XML_SCHEMAS_ANYATTR_LAX

    #define XML_SCHEMAS_ANYATTR_LAX;
    -

    Ignore validation non definition on attributes Obsolete, not used anymore.

    -
    -
    -

    Macro XML_SCHEMAS_ANYATTR_SKIP

    #define XML_SCHEMAS_ANYATTR_SKIP;
    -

    Skip unknown attribute from validation Obsolete, not used anymore.

    -
    -
    -

    Macro XML_SCHEMAS_ANYATTR_STRICT

    #define XML_SCHEMAS_ANYATTR_STRICT;
    -

    Apply strict validation rules on attributes Obsolete, not used anymore.

    -
    -
    -

    Macro XML_SCHEMAS_ANY_LAX

    #define XML_SCHEMAS_ANY_LAX;
    -

    Used by wildcards. Validate if type found, don't worry if not found

    -
    -
    -

    Macro XML_SCHEMAS_ANY_SKIP

    #define XML_SCHEMAS_ANY_SKIP;
    -

    Skip unknown attribute from validation

    -
    -
    -

    Macro XML_SCHEMAS_ANY_STRICT

    #define XML_SCHEMAS_ANY_STRICT;
    -

    Used by wildcards. Apply strict validation rules

    -
    -
    -

    Macro XML_SCHEMAS_ATTRGROUP_GLOBAL

    #define XML_SCHEMAS_ATTRGROUP_GLOBAL;
    -

    The attribute wildcard has been already builded.

    -
    -
    -

    Macro XML_SCHEMAS_ATTRGROUP_HAS_REFS

    #define XML_SCHEMAS_ATTRGROUP_HAS_REFS;
    -

    Whether this attr. group contains attr. group references.

    -
    -
    -

    Macro XML_SCHEMAS_ATTRGROUP_MARKED

    #define XML_SCHEMAS_ATTRGROUP_MARKED;
    -

    Marks the attr group as marked; used for circular checks.

    -
    -
    -

    Macro XML_SCHEMAS_ATTRGROUP_REDEFINED

    #define XML_SCHEMAS_ATTRGROUP_REDEFINED;
    -

    The attr group was redefined.

    -
    -
    -

    Macro XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED

    #define XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED;
    -

    The attribute wildcard has been already builded.

    -
    -
    -

    Macro XML_SCHEMAS_ATTR_FIXED

    #define XML_SCHEMAS_ATTR_FIXED;
    -

    the attribute has a fixed value

    -
    -
    -

    Macro XML_SCHEMAS_ATTR_GLOBAL

    #define XML_SCHEMAS_ATTR_GLOBAL;
    -

    allow elements in no namespace

    -
    -
    -

    Macro XML_SCHEMAS_ATTR_INTERNAL_RESOLVED

    #define XML_SCHEMAS_ATTR_INTERNAL_RESOLVED;
    -

    this is set when the "type" and "ref" references have been resolved.

    -
    -
    -

    Macro XML_SCHEMAS_ATTR_NSDEFAULT

    #define XML_SCHEMAS_ATTR_NSDEFAULT;
    -

    allow elements in no namespace

    -
    -
    -

    Macro XML_SCHEMAS_ATTR_USE_OPTIONAL

    #define XML_SCHEMAS_ATTR_USE_OPTIONAL;
    -

    The attribute is optional.

    -
    -
    -

    Macro XML_SCHEMAS_ATTR_USE_PROHIBITED

    #define XML_SCHEMAS_ATTR_USE_PROHIBITED;
    -

    Used by wildcards. The attribute is prohibited.

    -
    -
    -

    Macro XML_SCHEMAS_ATTR_USE_REQUIRED

    #define XML_SCHEMAS_ATTR_USE_REQUIRED;
    -

    The attribute is required.

    -
    -
    -

    Macro XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION

    #define XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION;
    -

    the schema has "extension" in the set of blockDefault.

    -
    -
    -

    Macro XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION

    #define XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION;
    -

    the schema has "restriction" in the set of blockDefault.

    -
    -
    -

    Macro XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION

    #define XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION;
    -

    the schema has "substitution" in the set of blockDefault.

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_ABSTRACT

    #define XML_SCHEMAS_ELEM_ABSTRACT;
    -

    the element is abstract

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_BLOCK_ABSENT

    #define XML_SCHEMAS_ELEM_BLOCK_ABSENT;
    -

    the "block" attribute is absent

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_BLOCK_EXTENSION

    #define XML_SCHEMAS_ELEM_BLOCK_EXTENSION;
    -

    disallowed substitutions are absent

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_BLOCK_RESTRICTION

    #define XML_SCHEMAS_ELEM_BLOCK_RESTRICTION;
    -

    disallowed substitutions: "restriction"

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION

    #define XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION;
    -

    disallowed substitutions: "substituion"

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_CIRCULAR

    #define XML_SCHEMAS_ELEM_CIRCULAR;
    -

    a helper flag for the search of circular references.

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_DEFAULT

    #define XML_SCHEMAS_ELEM_DEFAULT;
    -

    the element has a default value

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_FINAL_ABSENT

    #define XML_SCHEMAS_ELEM_FINAL_ABSENT;
    -

    substitution group exclusions are absent

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_FINAL_EXTENSION

    #define XML_SCHEMAS_ELEM_FINAL_EXTENSION;
    -

    substitution group exclusions: "extension"

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_FINAL_RESTRICTION

    #define XML_SCHEMAS_ELEM_FINAL_RESTRICTION;
    -

    substitution group exclusions: "restriction"

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_FIXED

    #define XML_SCHEMAS_ELEM_FIXED;
    -

    the element has a fixed value

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_GLOBAL

    #define XML_SCHEMAS_ELEM_GLOBAL;
    -

    the element is global

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_INTERNAL_CHECKED

    #define XML_SCHEMAS_ELEM_INTERNAL_CHECKED;
    -

    this is set when the elem decl has been checked against all constraints

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_INTERNAL_RESOLVED

    #define XML_SCHEMAS_ELEM_INTERNAL_RESOLVED;
    -

    this is set when "type", "ref", "substitutionGroup" references have been resolved.

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_NILLABLE

    #define XML_SCHEMAS_ELEM_NILLABLE;
    -

    the element is nillable

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_NSDEFAULT

    #define XML_SCHEMAS_ELEM_NSDEFAULT;
    -

    allow elements in no namespace Obsolete, not used anymore.

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_REF

    #define XML_SCHEMAS_ELEM_REF;
    -

    the element is a reference to a type

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD

    #define XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD;
    -

    the declaration is a substitution group head

    -
    -
    -

    Macro XML_SCHEMAS_ELEM_TOPLEVEL

    #define XML_SCHEMAS_ELEM_TOPLEVEL;
    -

    the element is top level obsolete: use XML_SCHEMAS_ELEM_GLOBAL instead

    -
    -
    -

    Macro XML_SCHEMAS_FACET_COLLAPSE

    #define XML_SCHEMAS_FACET_COLLAPSE;
    -

    collapse the types of the facet

    -
    -
    -

    Macro XML_SCHEMAS_FACET_PRESERVE

    #define XML_SCHEMAS_FACET_PRESERVE;
    -

    preserve the type of the facet

    -
    -
    -

    Macro XML_SCHEMAS_FACET_REPLACE

    #define XML_SCHEMAS_FACET_REPLACE;
    -

    replace the type of the facet

    -
    -
    -

    Macro XML_SCHEMAS_FACET_UNKNOWN

    #define XML_SCHEMAS_FACET_UNKNOWN;
    -

    unknown facet handling

    -
    -
    -

    Macro XML_SCHEMAS_FINAL_DEFAULT_EXTENSION

    #define XML_SCHEMAS_FINAL_DEFAULT_EXTENSION;
    -

    the schema has "extension" in the set of finalDefault.

    -
    -
    -

    Macro XML_SCHEMAS_FINAL_DEFAULT_LIST

    #define XML_SCHEMAS_FINAL_DEFAULT_LIST;
    -

    the cshema has "list" in the set of finalDefault.

    -
    -
    -

    Macro XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION

    #define XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION;
    -

    the schema has "restriction" in the set of finalDefault.

    -
    -
    -

    Macro XML_SCHEMAS_FINAL_DEFAULT_UNION

    #define XML_SCHEMAS_FINAL_DEFAULT_UNION;
    -

    the schema has "union" in the set of finalDefault.

    -
    -
    -

    Macro XML_SCHEMAS_INCLUDING_CONVERT_NS

    #define XML_SCHEMAS_INCLUDING_CONVERT_NS;
    -

    the schema is currently including an other schema with no target namespace.

    -
    -
    -

    Macro XML_SCHEMAS_QUALIF_ATTR

    #define XML_SCHEMAS_QUALIF_ATTR;
    -

    Reflects attributeFormDefault == qualified in an XML schema document.

    -
    -
    -

    Macro XML_SCHEMAS_QUALIF_ELEM

    #define XML_SCHEMAS_QUALIF_ELEM;
    -

    Reflects elementFormDefault == qualified in an XML schema document.

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_ABSTRACT

    #define XML_SCHEMAS_TYPE_ABSTRACT;
    -

    the simple/complexType is abstract.

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_BLOCK_DEFAULT

    #define XML_SCHEMAS_TYPE_BLOCK_DEFAULT;
    -

    the complexType did not specify 'block' so use the default of the <schema> item.

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_BLOCK_EXTENSION

    #define XML_SCHEMAS_TYPE_BLOCK_EXTENSION;
    -

    the complexType has a 'block' of "extension".

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_BLOCK_RESTRICTION

    #define XML_SCHEMAS_TYPE_BLOCK_RESTRICTION;
    -

    the complexType has a 'block' of "restriction".

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE

    #define XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE;
    -

    Marks the item as a builtin primitive.

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION

    #define XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION;
    -

    the simple or complex type has a derivation method of "extension".

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION

    #define XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION;
    -

    the simple or complex type has a derivation method of "restriction".

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_FACETSNEEDVALUE

    #define XML_SCHEMAS_TYPE_FACETSNEEDVALUE;
    -

    indicates if the facets need a computed value

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_FINAL_DEFAULT

    #define XML_SCHEMAS_TYPE_FINAL_DEFAULT;
    -

    the simpleType has a final of "default".

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_FINAL_EXTENSION

    #define XML_SCHEMAS_TYPE_FINAL_EXTENSION;
    -

    the complexType has a final of "extension".

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_FINAL_LIST

    #define XML_SCHEMAS_TYPE_FINAL_LIST;
    -

    the simpleType has a final of "list".

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_FINAL_RESTRICTION

    #define XML_SCHEMAS_TYPE_FINAL_RESTRICTION;
    -

    the simpleType/complexType has a final of "restriction".

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_FINAL_UNION

    #define XML_SCHEMAS_TYPE_FINAL_UNION;
    -

    the simpleType has a final of "union".

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_FIXUP_1

    #define XML_SCHEMAS_TYPE_FIXUP_1;
    -

    First stage of fixup was done.

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_GLOBAL

    #define XML_SCHEMAS_TYPE_GLOBAL;
    -

    the type is global

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_HAS_FACETS

    #define XML_SCHEMAS_TYPE_HAS_FACETS;
    -

    has facets

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_INTERNAL_INVALID

    #define XML_SCHEMAS_TYPE_INTERNAL_INVALID;
    -

    indicates that the type is invalid

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_INTERNAL_RESOLVED

    #define XML_SCHEMAS_TYPE_INTERNAL_RESOLVED;
    -

    indicates that the type was typefixed

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_MARKED

    #define XML_SCHEMAS_TYPE_MARKED;
    -

    Marks the item as marked; used for circular checks.

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_MIXED

    #define XML_SCHEMAS_TYPE_MIXED;
    -

    the element content type is mixed

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_NORMVALUENEEDED

    #define XML_SCHEMAS_TYPE_NORMVALUENEEDED;
    -

    indicates if the facets (pattern) need a normalized value

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD

    #define XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD;
    -

    the complexType owns an attribute wildcard, i.e. it can be freed by the complexType

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_REDEFINED

    #define XML_SCHEMAS_TYPE_REDEFINED;
    -

    The type was redefined.

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_VARIETY_ABSENT

    #define XML_SCHEMAS_TYPE_VARIETY_ABSENT;
    -

    the simpleType has a variety of "absent". TODO: Actually not necessary :-/, since if none of the variety flags occur then it's automatically absent.

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_VARIETY_ATOMIC

    #define XML_SCHEMAS_TYPE_VARIETY_ATOMIC;
    -

    the simpleType has a variety of "union".

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_VARIETY_LIST

    #define XML_SCHEMAS_TYPE_VARIETY_LIST;
    -

    the simpleType has a variety of "list".

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_VARIETY_UNION

    #define XML_SCHEMAS_TYPE_VARIETY_UNION;
    -

    the simpleType has a variety of "union".

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_WHITESPACE_COLLAPSE

    #define XML_SCHEMAS_TYPE_WHITESPACE_COLLAPSE;
    -

    a whitespace-facet value of "collapse"

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_WHITESPACE_PRESERVE

    #define XML_SCHEMAS_TYPE_WHITESPACE_PRESERVE;
    -

    a whitespace-facet value of "preserve"

    -
    -
    -

    Macro XML_SCHEMAS_TYPE_WHITESPACE_REPLACE

    #define XML_SCHEMAS_TYPE_WHITESPACE_REPLACE;
    -

    a whitespace-facet value of "replace"

    -
    -
    -

    Macro XML_SCHEMAS_WILDCARD_COMPLETE

    #define XML_SCHEMAS_WILDCARD_COMPLETE;
    -

    If the wildcard is complete.

    -
    -
    -

    Structure xmlSchemaAnnot

    struct _xmlSchemaAnnot {
    -    struct _xmlSchemaAnnot *	next
    -    xmlNodePtr	content	: the annotation
    -} xmlSchemaAnnot;
    -

    -

    -
    -

    Typedef xmlSchemaAnnotPtr

    xmlSchemaAnnot * xmlSchemaAnnotPtr;
    -

    -

    -
    -

    Structure xmlSchemaAttribute

    struct _xmlSchemaAttribute {
    -    xmlSchemaTypeType	type
    -    struct _xmlSchemaAttribute *	next	: the next attribute (not used?)
    -    const xmlChar *	name	: the name of the declaration
    -    const xmlChar *	id	: Deprecated; not used
    -    const xmlChar *	ref	: Deprecated; not used
    -    const xmlChar *	refNs	: Deprecated; not used
    -    const xmlChar *	typeName	: the local name of the type definition
    -    const xmlChar *	typeNs	: the ns URI of the type definition
    -    xmlSchemaAnnotPtr	annot
    -    xmlSchemaTypePtr	base	: Deprecated; not used
    -    int	occurs	: Deprecated; not used
    -    const xmlChar *	defValue	: The initial value of the value constraint
    -    xmlSchemaTypePtr	subtypes	: the type definition
    -    xmlNodePtr	node
    -    const xmlChar *	targetNamespace
    -    int	flags
    -    const xmlChar *	refPrefix	: Deprecated; not used
    -    xmlSchemaValPtr	defVal	: The compiled value constraint
    -    xmlSchemaAttributePtr	refDecl	: Deprecated; not used
    -} xmlSchemaAttribute;
    -

    -

    -
    -

    Structure xmlSchemaAttributeGroup

    struct _xmlSchemaAttributeGroup {
    -    xmlSchemaTypeType	type	: The kind of type
    -    struct _xmlSchemaAttribute *	next	: the next attribute if in a group ...
    -    const xmlChar *	name
    -    const xmlChar *	id
    -    const xmlChar *	ref	: Deprecated; not used
    -    const xmlChar *	refNs	: Deprecated; not used
    -    xmlSchemaAnnotPtr	annot
    -    xmlSchemaAttributePtr	attributes	: Deprecated; not used
    -    xmlNodePtr	node
    -    int	flags
    -    xmlSchemaWildcardPtr	attributeWildcard
    -    const xmlChar *	refPrefix	: Deprecated; not used
    -    xmlSchemaAttributeGroupPtr	refItem	: Deprecated; not used
    -    const xmlChar *	targetNamespace
    -    void *	attrUses
    -} xmlSchemaAttributeGroup;
    -

    -

    -
    -

    Typedef xmlSchemaAttributeGroupPtr

    xmlSchemaAttributeGroup * xmlSchemaAttributeGroupPtr;
    -

    -

    -
    -

    Structure xmlSchemaAttributeLink

    struct _xmlSchemaAttributeLink {
    -    struct _xmlSchemaAttributeLink *	next	: the next attribute link ...
    -    struct _xmlSchemaAttribute *	attr	: the linked attribute
    -} xmlSchemaAttributeLink;
    -

    -

    -
    -

    Typedef xmlSchemaAttributeLinkPtr

    xmlSchemaAttributeLink * xmlSchemaAttributeLinkPtr;
    -

    -

    -
    -

    Typedef xmlSchemaAttributePtr

    xmlSchemaAttribute * xmlSchemaAttributePtr;
    -

    -

    -
    - -
    -

    Structure xmlSchemaElement

    struct _xmlSchemaElement {
    -    xmlSchemaTypeType	type	: The kind of type
    -    struct _xmlSchemaType *	next	: Not used?
    -    const xmlChar *	name
    -    const xmlChar *	id	: Deprecated; not used
    -    const xmlChar *	ref	: Deprecated; not used
    -    const xmlChar *	refNs	: Deprecated; not used
    -    xmlSchemaAnnotPtr	annot
    -    xmlSchemaTypePtr	subtypes	: the type definition
    -    xmlSchemaAttributePtr	attributes
    -    xmlNodePtr	node
    -    int	minOccurs	: Deprecated; not used
    -    int	maxOccurs	: Deprecated; not used
    -    int	flags
    -    const xmlChar *	targetNamespace
    -    const xmlChar *	namedType
    -    const xmlChar *	namedTypeNs
    -    const xmlChar *	substGroup
    -    const xmlChar *	substGroupNs
    -    const xmlChar *	scope
    -    const xmlChar *	value	: The original value of the value constraint.
    -    struct _xmlSchemaElement *	refDecl	: This will now be used for the substitution group affiliation
    -    xmlRegexpPtr	contModel	: Obsolete for WXS, maybe used for RelaxNG
    -    xmlSchemaContentType	contentType
    -    const xmlChar *	refPrefix	: Deprecated; not used
    -    xmlSchemaValPtr	defVal	: The compiled value contraint.
    -    void *	idcs	: The identity-constraint defs
    -} xmlSchemaElement;
    -

    -

    -
    -

    Typedef xmlSchemaElementPtr

    xmlSchemaElement * xmlSchemaElementPtr;
    -

    -

    -
    -

    Structure xmlSchemaFacet

    struct _xmlSchemaFacet {
    -    xmlSchemaTypeType	type	: The kind of type
    -    struct _xmlSchemaFacet *	next	: the next type if in a sequence ...
    -    const xmlChar *	value	: The original value
    -    const xmlChar *	id	: Obsolete
    -    xmlSchemaAnnotPtr	annot
    -    xmlNodePtr	node
    -    int	fixed	: XML_SCHEMAS_FACET_PRESERVE, etc.
    -    int	whitespace
    -    xmlSchemaValPtr	val	: The compiled value
    -    xmlRegexpPtr	regexp	: The regex for patterns
    -} xmlSchemaFacet;
    -

    -

    -
    -

    Structure xmlSchemaFacetLink

    struct _xmlSchemaFacetLink {
    -    struct _xmlSchemaFacetLink *	next	: the next facet link ...
    -    xmlSchemaFacetPtr	facet	: the linked facet
    -} xmlSchemaFacetLink;
    -

    -

    -
    -

    Typedef xmlSchemaFacetLinkPtr

    xmlSchemaFacetLink * xmlSchemaFacetLinkPtr;
    -

    -

    -
    -

    Typedef xmlSchemaFacetPtr

    xmlSchemaFacet * xmlSchemaFacetPtr;
    -

    -

    -
    -

    Structure xmlSchemaNotation

    struct _xmlSchemaNotation {
    -    xmlSchemaTypeType	type	: The kind of type
    -    const xmlChar *	name
    -    xmlSchemaAnnotPtr	annot
    -    const xmlChar *	identifier
    -    const xmlChar *	targetNamespace
    -} xmlSchemaNotation;
    -

    -

    -
    -

    Typedef xmlSchemaNotationPtr

    xmlSchemaNotation * xmlSchemaNotationPtr;
    -

    -

    -
    -

    Structure xmlSchemaType

    struct _xmlSchemaType {
    -    xmlSchemaTypeType	type	: The kind of type
    -    struct _xmlSchemaType *	next	: the next type if in a sequence ...
    -    const xmlChar *	name
    -    const xmlChar *	id	: Deprecated; not used
    -    const xmlChar *	ref	: Deprecated; not used
    -    const xmlChar *	refNs	: Deprecated; not used
    -    xmlSchemaAnnotPtr	annot
    -    xmlSchemaTypePtr	subtypes
    -    xmlSchemaAttributePtr	attributes	: Deprecated; not used
    -    xmlNodePtr	node
    -    int	minOccurs	: Deprecated; not used
    -    int	maxOccurs	: Deprecated; not used
    -    int	flags
    -    xmlSchemaContentType	contentType
    -    const xmlChar *	base	: Base type's local name
    -    const xmlChar *	baseNs	: Base type's target namespace
    -    xmlSchemaTypePtr	baseType	: The base type component
    -    xmlSchemaFacetPtr	facets	: Local facets
    -    struct _xmlSchemaType *	redef	: Deprecated; not used
    -    int	recurse	: Obsolete
    -    xmlSchemaAttributeLinkPtr *	attributeUses	: Deprecated; not used
    -    xmlSchemaWildcardPtr	attributeWildcard
    -    int	builtInType	: Type of built-in types.
    -    xmlSchemaTypeLinkPtr	memberTypes	: member-types if a union type.
    -    xmlSchemaFacetLinkPtr	facetSet	: All facets (incl. inherited)
    -    const xmlChar *	refPrefix	: Deprecated; not used
    -    xmlSchemaTypePtr	contentTypeDef	: Used for the simple content of complex types. Could we use @subtypes
    -    xmlRegexpPtr	contModel	: Holds the automaton of the content model
    -    const xmlChar *	targetNamespace
    -    void *	attrUses
    -} xmlSchemaType;
    -

    -

    -
    -

    Structure xmlSchemaTypeLink

    struct _xmlSchemaTypeLink {
    -    struct _xmlSchemaTypeLink *	next	: the next type link ...
    -    xmlSchemaTypePtr	type	: the linked type
    -} xmlSchemaTypeLink;
    -

    -

    -
    -

    Typedef xmlSchemaTypeLinkPtr

    xmlSchemaTypeLink * xmlSchemaTypeLinkPtr;
    -

    -

    -
    -

    Typedef xmlSchemaTypePtr

    xmlSchemaType * xmlSchemaTypePtr;
    -

    -

    -
    - -
    -

    Structure xmlSchemaVal

    struct _xmlSchemaVal {
    -The content of this structure is not made public by the API.
    -} xmlSchemaVal;
    -

    -

    -
    -

    Typedef xmlSchemaValPtr

    xmlSchemaVal * xmlSchemaValPtr;
    -

    -

    -
    - -
    -

    Structure xmlSchemaWildcard

    struct _xmlSchemaWildcard {
    -    xmlSchemaTypeType	type	: The kind of type
    -    const xmlChar *	id	: Deprecated; not used
    -    xmlSchemaAnnotPtr	annot
    -    xmlNodePtr	node
    -    int	minOccurs	: Deprecated; not used
    -    int	maxOccurs	: Deprecated; not used
    -    int	processContents
    -    int	any	: Indicates if the ns constraint is of ##any
    -    xmlSchemaWildcardNsPtr	nsSet	: The list of allowed namespaces
    -    xmlSchemaWildcardNsPtr	negNsSet	: The negated namespace
    -    int	flags
    -} xmlSchemaWildcard;
    -

    -

    -
    -

    Structure xmlSchemaWildcardNs

    struct _xmlSchemaWildcardNs {
    -    struct _xmlSchemaWildcardNs *	next	: the next constraint link ...
    -    const xmlChar *	value	: the value
    -} xmlSchemaWildcardNs;
    -

    -

    -
    -

    Typedef xmlSchemaWildcardNsPtr

    xmlSchemaWildcardNs * xmlSchemaWildcardNsPtr;
    -

    -

    -
    -

    Typedef xmlSchemaWildcardPtr

    xmlSchemaWildcard * xmlSchemaWildcardPtr;
    -

    -

    -
    -

    xmlSchemaFreeType ()

    void	xmlSchemaFreeType		(xmlSchemaTypePtr type)
    -

    Deallocate a Schema Type structure.

    -
    type:a schema type structure
    -
    -

    xmlSchemaFreeWildcard ()

    void	xmlSchemaFreeWildcard		(xmlSchemaWildcardPtr wildcard)
    -

    Deallocates a wildcard structure.

    -
    wildcard:a wildcard structure
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-schematron.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-schematron.html deleted file mode 100644 index 995d96ad59..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-schematron.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - schematron: XML Schemastron implementation - - - - - - - - - - - - - - - - -

    - schematron -

    -

    schematron - XML Schemastron implementation

    -

    interface to the XML Schematron validity checking.

    -

    Author(s): Daniel Veillard

    - -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlSchematron

    struct _xmlSchematron {
    -The content of this structure is not made public by the API.
    -} xmlSchematron;
    -

    -

    -
    -

    Structure xmlSchematronParserCtxt

    struct _xmlSchematronParserCtxt {
    -The content of this structure is not made public by the API.
    -} xmlSchematronParserCtxt;
    -

    -

    -
    -

    Typedef xmlSchematronParserCtxtPtr

    xmlSchematronParserCtxt * xmlSchematronParserCtxtPtr;
    -

    -

    -
    -

    Typedef xmlSchematronPtr

    xmlSchematron * xmlSchematronPtr;
    -

    -

    -
    -

    Structure xmlSchematronValidCtxt

    struct _xmlSchematronValidCtxt {
    -The content of this structure is not made public by the API.
    -} xmlSchematronValidCtxt;
    -

    -

    -
    -

    Typedef xmlSchematronValidCtxtPtr

    xmlSchematronValidCtxt * xmlSchematronValidCtxtPtr;
    -

    -

    -
    -

    Enum xmlSchematronValidOptions

    enum xmlSchematronValidOptions {
    -    XML_SCHEMATRON_OUT_QUIET = 1 /* quiet no report */
    -    XML_SCHEMATRON_OUT_TEXT = 2 /* build a textual report */
    -    XML_SCHEMATRON_OUT_XML = 4 /* output SVRL */
    -    XML_SCHEMATRON_OUT_FILE = 256 /* output to a file descriptor */
    -    XML_SCHEMATRON_OUT_BUFFER = 512 /* output to a buffer */
    -    XML_SCHEMATRON_OUT_IO = 1024 /*  output to I/O mechanism */
    -};
    -

    -

    -
    - -
    -
    -
    -

    xmlSchematronFree ()

    void	xmlSchematronFree		(xmlSchematronPtr schema)
    -

    Deallocate a Schematron structure.

    -
    schema:a schema structure
    -
    -

    xmlSchematronFreeParserCtxt ()

    void	xmlSchematronFreeParserCtxt	(xmlSchematronParserCtxtPtr ctxt)
    -

    Free the resources associated to the schema parser context

    -
    ctxt:the schema parser context
    -
    -

    xmlSchematronFreeValidCtxt ()

    void	xmlSchematronFreeValidCtxt	(xmlSchematronValidCtxtPtr ctxt)
    -

    Free the resources associated to the schema validation context

    -
    ctxt:the schema validation context
    -
    -

    xmlSchematronNewDocParserCtxt ()

    xmlSchematronParserCtxtPtr	xmlSchematronNewDocParserCtxt	(xmlDocPtr doc)
    -

    Create an XML Schematrons parse context for that document. NB. The document may be modified during the parsing process.

    -
    doc:a preparsed document tree
    Returns:the parser context or NULL in case of error
    -
    -

    xmlSchematronNewMemParserCtxt ()

    xmlSchematronParserCtxtPtr	xmlSchematronNewMemParserCtxt	(const char * buffer, 
    int size)
    -

    Create an XML Schematrons parse context for that memory buffer expected to contain an XML Schematrons file.

    -
    buffer:a pointer to a char array containing the schemas
    size:the size of the array
    Returns:the parser context or NULL in case of error
    -
    -

    xmlSchematronNewParserCtxt ()

    xmlSchematronParserCtxtPtr	xmlSchematronNewParserCtxt	(const char * URL)
    -

    Create an XML Schematrons parse context for that file/resource expected to contain an XML Schematrons file.

    -
    URL:the location of the schema
    Returns:the parser context or NULL in case of error
    -
    -

    xmlSchematronNewValidCtxt ()

    xmlSchematronValidCtxtPtr	xmlSchematronNewValidCtxt	(xmlSchematronPtr schema, 
    int options)
    -

    Create an XML Schematrons validation context based on the given schema.

    -
    schema:a precompiled XML Schematrons
    options:a set of xmlSchematronValidOptions
    Returns:the validation context or NULL in case of error
    -
    -

    xmlSchematronParse ()

    xmlSchematronPtr	xmlSchematronParse	(xmlSchematronParserCtxtPtr ctxt)
    -

    parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances.

    -
    ctxt:a schema validation context
    Returns:the internal XML Schematron structure built from the resource or NULL in case of error
    -
    -

    xmlSchematronValidateDoc ()

    int	xmlSchematronValidateDoc	(xmlSchematronValidCtxtPtr ctxt, 
    xmlDocPtr instance)
    -

    Validate a tree instance against the schematron

    -
    ctxt:the schema validation context
    instance:the document instace tree
    Returns:0 in case of success, -1 in case of internal error and an error count otherwise.
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-threads.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-threads.html deleted file mode 100644 index 66e5ba4cda..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-threads.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - threads: interfaces for thread handling - - - - - - - - - - - - - - - - -

    - threads -

    -

    threads - interfaces for thread handling

    -

    set of generic threading related routines should work with pthreads, Windows native or TLS threads

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef struct _xmlMutex xmlMutex;
    -typedef struct _xmlRMutex xmlRMutex;
    -typedef xmlRMutex * xmlRMutexPtr;
    -typedef xmlMutex * xmlMutexPtr;
    -void	xmlFreeRMutex			(xmlRMutexPtr tok);
    -int	xmlGetThreadId			(void);
    -void	xmlMutexUnlock			(xmlMutexPtr tok);
    -void	xmlCleanupThreads		(void);
    -void	xmlLockLibrary			(void);
    -xmlRMutexPtr	xmlNewRMutex		(void);
    -void	xmlMutexLock			(xmlMutexPtr tok);
    -int	xmlIsMainThread			(void);
    -void	xmlRMutexUnlock			(xmlRMutexPtr tok);
    -xmlGlobalStatePtr	xmlGetGlobalState	(void);
    -xmlMutexPtr	xmlNewMutex		(void);
    -void	xmlRMutexLock			(xmlRMutexPtr tok);
    -void	xmlInitThreads			(void);
    -void	xmlUnlockLibrary		(void);
    -void	xmlFreeMutex			(xmlMutexPtr tok);
    -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlMutex

    struct _xmlMutex {
    -The content of this structure is not made public by the API.
    -} xmlMutex;
    -

    -

    -
    -

    Typedef xmlMutexPtr

    xmlMutex * xmlMutexPtr;
    -

    -

    -
    -

    Structure xmlRMutex

    struct _xmlRMutex {
    -The content of this structure is not made public by the API.
    -} xmlRMutex;
    -

    -

    -
    -

    Typedef xmlRMutexPtr

    xmlRMutex * xmlRMutexPtr;
    -

    -

    -
    - -
    -

    xmlFreeMutex ()

    void	xmlFreeMutex			(xmlMutexPtr tok)
    -

    xmlFreeMutex() is used to reclaim resources associated with a libxml2 token struct.

    -
    tok:the simple mutex
    -
    -

    xmlFreeRMutex ()

    void	xmlFreeRMutex			(xmlRMutexPtr tok)
    -

    xmlRFreeMutex() is used to reclaim resources associated with a reentrant mutex.

    -
    tok:the reentrant mutex
    -
    -

    xmlGetGlobalState ()

    xmlGlobalStatePtr	xmlGetGlobalState	(void)
    -

    xmlGetGlobalState() is called to retrieve the global state for a thread.

    -
    Returns:the thread global state or NULL in case of error
    -
    - -
    -
    -
    -
    -
    -
    -
    -

    xmlMutexLock ()

    void	xmlMutexLock			(xmlMutexPtr tok)
    -

    xmlMutexLock() is used to lock a libxml2 token.

    -
    tok:the simple mutex
    -
    -

    xmlMutexUnlock ()

    void	xmlMutexUnlock			(xmlMutexPtr tok)
    -

    xmlMutexUnlock() is used to unlock a libxml2 token.

    -
    tok:the simple mutex
    -
    -

    xmlNewMutex ()

    xmlMutexPtr	xmlNewMutex		(void)
    -

    xmlNewMutex() is used to allocate a libxml2 token struct for use in synchronizing access to data.

    -
    Returns:a new simple mutex pointer or NULL in case of error
    -
    -

    xmlNewRMutex ()

    xmlRMutexPtr	xmlNewRMutex		(void)
    -

    xmlRNewMutex() is used to allocate a reentrant mutex for use in synchronizing access to data. token_r is a re-entrant lock and thus useful for synchronizing access to data structures that may be manipulated in a recursive fashion.

    -
    Returns:the new reentrant mutex pointer or NULL in case of error
    -
    -

    xmlRMutexLock ()

    void	xmlRMutexLock			(xmlRMutexPtr tok)
    -

    xmlRMutexLock() is used to lock a libxml2 token_r.

    -
    tok:the reentrant mutex
    -
    -

    xmlRMutexUnlock ()

    void	xmlRMutexUnlock			(xmlRMutexPtr tok)
    -

    xmlRMutexUnlock() is used to unlock a libxml2 token_r.

    -
    tok:the reentrant mutex
    -
    - -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-tree.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-tree.html deleted file mode 100644 index d7757e36de..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-tree.html +++ /dev/null @@ -1,1483 +0,0 @@ - - - - - tree: interfaces for tree manipulation - - - - - - - - - - - - - - - - -

    - tree -

    -

    tree - interfaces for tree manipulation

    -

    this module describes the structures found in an tree resulting from an XML or HTML parsing, as well as the API provided for various processing on that tree

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    #define XML_LOCAL_NAMESPACE;
    -#define XML_XML_NAMESPACE;
    -#define XML_XML_ID;
    -#define xmlRootNode;
    -#define XML_GET_LINE;
    -#define XML_GET_CONTENT;
    -#define xmlChildrenNode;
    -#define BASE_BUFFER_SIZE;
    -typedef struct _xmlNs xmlNs;
    -typedef xmlBuffer * xmlBufferPtr;
    -typedef xmlEnumeration * xmlEnumerationPtr;
    -typedef struct _xmlBuffer xmlBuffer;
    -typedef xmlParserInput * xmlParserInputPtr;
    -typedef xmlSAXLocator * xmlSAXLocatorPtr;
    -typedef struct _xmlParserInput xmlParserInput;
    -typedef struct _xmlElement xmlElement;
    -typedef xmlElementType xmlNsType;
    -typedef enum xmlBufferAllocationScheme;
    -typedef struct _xmlNode xmlNode;
    -typedef xmlDoc * xmlDocPtr;
    -typedef struct _xmlElementContent xmlElementContent;
    -typedef xmlDOMWrapCtxt * xmlDOMWrapCtxtPtr;
    -typedef xmlRef * xmlRefPtr;
    -typedef struct _xmlParserInputBuffer xmlParserInputBuffer;
    -typedef struct _xmlRef xmlRef;
    -typedef struct _xmlDOMWrapCtxt xmlDOMWrapCtxt;
    -typedef xmlNode * xmlNodePtr;
    -typedef struct _xmlParserCtxt xmlParserCtxt;
    -typedef xmlDtd * xmlDtdPtr;
    -typedef enum xmlAttributeDefault;
    -typedef struct _xmlNotation xmlNotation;
    -typedef enum xmlElementType;
    -typedef struct _xmlEntity xmlEntity;
    -typedef struct _xmlAttr xmlAttr;
    -typedef xmlAttribute * xmlAttributePtr;
    -typedef enum xmlElementTypeVal;
    -typedef xmlNotation * xmlNotationPtr;
    -typedef xmlElement * xmlElementPtr;
    -typedef enum xmlElementContentOccur;
    -typedef xmlAttr * xmlAttrPtr;
    -typedef struct _xmlDoc xmlDoc;
    -typedef struct _xmlID xmlID;
    -typedef xmlParserCtxt * xmlParserCtxtPtr;
    -typedef xmlEntity * xmlEntityPtr;
    -typedef struct _xmlEnumeration xmlEnumeration;
    -typedef enum xmlAttributeType;
    -typedef xmlNs * xmlNsPtr;
    -typedef xmlParserInputBuffer * xmlParserInputBufferPtr;
    -typedef struct _xmlSAXHandler xmlSAXHandler;
    -typedef struct _xmlOutputBuffer xmlOutputBuffer;
    -typedef struct _xmlSAXLocator xmlSAXLocator;
    -typedef xmlElementContent * xmlElementContentPtr;
    -typedef enum xmlElementContentType;
    -typedef xmlID * xmlIDPtr;
    -typedef struct _xmlDtd xmlDtd;
    -typedef struct _xmlAttribute xmlAttribute;
    -typedef xmlOutputBuffer * xmlOutputBufferPtr;
    -typedef xmlSAXHandler * xmlSAXHandlerPtr;
    -xmlNodePtr	xmlDocCopyNode		(const xmlNodePtr node, 
    xmlDocPtr doc,
    int extended); -xmlNodePtr xmlNewDocRawNode (xmlDocPtr doc,
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * content); -xmlChar * xmlGetProp (xmlNodePtr node,
    const xmlChar * name); -xmlAttrPtr xmlNewNsPropEatName (xmlNodePtr node,
    xmlNsPtr ns,
    xmlChar * name,
    const xmlChar * value); -xmlNodePtr xmlNewCDataBlock (xmlDocPtr doc,
    const xmlChar * content,
    int len); -void xmlBufferWriteCHAR (xmlBufferPtr buf,
    const xmlChar * string); -xmlChar * xmlNodeGetBase (xmlDocPtr doc,
    xmlNodePtr cur); -void xmlBufferEmpty (xmlBufferPtr buf); -xmlChar * xmlBuildQName (const xmlChar * ncname,
    const xmlChar * prefix,
    xmlChar * memory,
    int len); -int xmlSaveFormatFileEnc (const char * filename,
    xmlDocPtr cur,
    const char * encoding,
    int format); -xmlNodePtr xmlAddSibling (xmlNodePtr cur,
    xmlNodePtr elem); -xmlBufferPtr xmlBufferCreate (void); -xmlNodePtr xmlNewDocFragment (xmlDocPtr doc); -xmlNodePtr xmlDocGetRootElement (xmlDocPtr doc); -xmlNodePtr xmlStringGetNodeList (xmlDocPtr doc,
    const xmlChar * value); -int xmlValidateName (const xmlChar * value,
    int space); -void xmlSetBufferAllocationScheme (xmlBufferAllocationScheme scheme); -int xmlValidateQName (const xmlChar * value,
    int space); -xmlAttrPtr xmlHasNsProp (xmlNodePtr node,
    const xmlChar * name,
    const xmlChar * nameSpace); -xmlNodePtr xmlAddPrevSibling (xmlNodePtr cur,
    xmlNodePtr elem); -int xmlBufferAddHead (xmlBufferPtr buf,
    const xmlChar * str,
    int len); -xmlNodePtr xmlNewPI (const xmlChar * name,
    const xmlChar * content); -void xmlDocDumpFormatMemoryEnc (xmlDocPtr out_doc,
    xmlChar ** doc_txt_ptr,
    int * doc_txt_len,
    const char * txt_encoding,
    int format); -int xmlUnsetNsProp (xmlNodePtr node,
    xmlNsPtr ns,
    const xmlChar * name); -void xmlElemDump (FILE * f,
    xmlDocPtr doc,
    xmlNodePtr cur); -int xmlSaveFormatFileTo (xmlOutputBufferPtr buf,
    xmlDocPtr cur,
    const char * encoding,
    int format); -xmlDtdPtr xmlGetIntSubset (xmlDocPtr doc); -int xmlNodeBufGetContent (xmlBufferPtr buffer,
    xmlNodePtr cur); -void xmlBufferWriteChar (xmlBufferPtr buf,
    const char * string); -void xmlBufferFree (xmlBufferPtr buf); -int xmlDOMWrapCloneNode (xmlDOMWrapCtxtPtr ctxt,
    xmlDocPtr sourceDoc,
    xmlNodePtr node,
    xmlNodePtr * resNode,
    xmlDocPtr destDoc,
    xmlNodePtr destParent,
    int deep,
    int options); -xmlNodePtr xmlNewNode (xmlNsPtr ns,
    const xmlChar * name); -int xmlSaveFileTo (xmlOutputBufferPtr buf,
    xmlDocPtr cur,
    const char * encoding); -xmlNodePtr xmlNewTextLen (const xmlChar * content,
    int len); -xmlNodePtr xmlNewTextChild (xmlNodePtr parent,
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * content); -void xmlNodeSetContent (xmlNodePtr cur,
    const xmlChar * content); -int xmlBufferAdd (xmlBufferPtr buf,
    const xmlChar * str,
    int len); -void xmlNodeDumpOutput (xmlOutputBufferPtr buf,
    xmlDocPtr doc,
    xmlNodePtr cur,
    int level,
    int format,
    const char * encoding); -xmlNsPtr xmlCopyNamespace (xmlNsPtr cur); -xmlNsPtr xmlSearchNsByHref (xmlDocPtr doc,
    xmlNodePtr node,
    const xmlChar * href); -xmlNodePtr xmlAddChild (xmlNodePtr parent,
    xmlNodePtr cur); -int xmlReconciliateNs (xmlDocPtr doc,
    xmlNodePtr tree); -int xmlValidateNCName (const xmlChar * value,
    int space); -xmlNodePtr xmlNewDocComment (xmlDocPtr doc,
    const xmlChar * content); -int xmlGetCompressMode (void); -int xmlNodeDump (xmlBufferPtr buf,
    xmlDocPtr doc,
    xmlNodePtr cur,
    int level,
    int format); -xmlBufferPtr xmlBufferCreateSize (size_t size); -xmlChar * xmlNodeListGetString (xmlDocPtr doc,
    xmlNodePtr list,
    int inLine); -void xmlSetCompressMode (int mode); -void xmlSetTreeDoc (xmlNodePtr tree,
    xmlDocPtr doc); -int xmlDOMWrapAdoptNode (xmlDOMWrapCtxtPtr ctxt,
    xmlDocPtr sourceDoc,
    xmlNodePtr node,
    xmlDocPtr destDoc,
    xmlNodePtr destParent,
    int options); -xmlNodePtr xmlCopyNodeList (const xmlNodePtr node); -xmlNodePtr xmlNewDocNodeEatName (xmlDocPtr doc,
    xmlNsPtr ns,
    xmlChar * name,
    const xmlChar * content); -xmlNodePtr xmlAddChildList (xmlNodePtr parent,
    xmlNodePtr cur); -xmlChar * xmlGetNodePath (xmlNodePtr node); -void xmlFreePropList (xmlAttrPtr cur); -void xmlNodeAddContent (xmlNodePtr cur,
    const xmlChar * content); -xmlNodePtr xmlAddNextSibling (xmlNodePtr cur,
    xmlNodePtr elem); -int xmlIsBlankNode (xmlNodePtr node); -xmlNsPtr xmlNewGlobalNs (xmlDocPtr doc,
    const xmlChar * href,
    const xmlChar * prefix); -int xmlBufferDump (FILE * file,
    xmlBufferPtr buf); -xmlChar * xmlNodeGetContent (xmlNodePtr cur); -xmlDocPtr xmlCopyDoc (xmlDocPtr doc,
    int recursive); -xmlDOMWrapCtxtPtr xmlDOMWrapNewCtxt (void); -void xmlDocDumpMemoryEnc (xmlDocPtr out_doc,
    xmlChar ** doc_txt_ptr,
    int * doc_txt_len,
    const char * txt_encoding); -xmlNodePtr xmlTextMerge (xmlNodePtr first,
    xmlNodePtr second); -void xmlDocDumpMemory (xmlDocPtr cur,
    xmlChar ** mem,
    int * size); -xmlNodePtr xmlNewDocPI (xmlDocPtr doc,
    const xmlChar * name,
    const xmlChar * content); -void xmlFreeNs (xmlNsPtr cur); -int xmlDocDump (FILE * f,
    xmlDocPtr cur); -void xmlFreeProp (xmlAttrPtr cur); -xmlChar * xmlGetNoNsProp (xmlNodePtr node,
    const xmlChar * name); -xmlChar * xmlSplitQName2 (const xmlChar * name,
    xmlChar ** prefix); -xmlAttrPtr xmlNewProp (xmlNodePtr node,
    const xmlChar * name,
    const xmlChar * value); -int xmlTextConcat (xmlNodePtr node,
    const xmlChar * content,
    int len); -int xmlNodeGetSpacePreserve (xmlNodePtr cur); -int xmlBufferShrink (xmlBufferPtr buf,
    unsigned int len); -void xmlNodeSetContentLen (xmlNodePtr cur,
    const xmlChar * content,
    int len); -void xmlNodeAddContentLen (xmlNodePtr cur,
    const xmlChar * content,
    int len); -void xmlBufferWriteQuotedString (xmlBufferPtr buf,
    const xmlChar * string); -xmlAttrPtr xmlCopyProp (xmlNodePtr target,
    xmlAttrPtr cur); -xmlNodePtr xmlReplaceNode (xmlNodePtr old,
    xmlNodePtr cur); -void xmlSetDocCompressMode (xmlDocPtr doc,
    int mode); -xmlNodePtr xmlCopyNode (const xmlNodePtr node,
    int extended); -void xmlUnlinkNode (xmlNodePtr cur); -const xmlChar * xmlSplitQName3 (const xmlChar * name,
    int * len); -xmlNodePtr xmlDocSetRootElement (xmlDocPtr doc,
    xmlNodePtr root); -long xmlGetLineNo (xmlNodePtr node); -const xmlChar * xmlBufferContent (const xmlBufferPtr buf); -int xmlRemoveProp (xmlAttrPtr cur); -xmlChar * xmlNodeGetLang (xmlNodePtr cur); -int xmlGetDocCompressMode (xmlDocPtr doc); -xmlChar * xmlGetNsProp (xmlNodePtr node,
    const xmlChar * name,
    const xmlChar * nameSpace); -xmlAttrPtr xmlNewDocProp (xmlDocPtr doc,
    const xmlChar * name,
    const xmlChar * value); -void xmlFreeNode (xmlNodePtr cur); -xmlAttrPtr xmlNewNsProp (xmlNodePtr node,
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * value); -void xmlDOMWrapFreeCtxt (xmlDOMWrapCtxtPtr ctxt); -int xmlValidateNMToken (const xmlChar * value,
    int space); -void xmlBufferSetAllocationScheme (xmlBufferPtr buf,
    xmlBufferAllocationScheme scheme); -xmlNodePtr xmlNewChild (xmlNodePtr parent,
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * content); -xmlNsPtr xmlSearchNs (xmlDocPtr doc,
    xmlNodePtr node,
    const xmlChar * nameSpace); -xmlNodePtr xmlStringLenGetNodeList (xmlDocPtr doc,
    const xmlChar * value,
    int len); -int xmlSaveFormatFile (const char * filename,
    xmlDocPtr cur,
    int format); -xmlAttrPtr xmlCopyPropList (xmlNodePtr target,
    xmlAttrPtr cur); -int xmlDocFormatDump (FILE * f,
    xmlDocPtr cur,
    int format); -void xmlNodeSetSpacePreserve (xmlNodePtr cur,
    int val); -xmlAttrPtr xmlHasProp (xmlNodePtr node,
    const xmlChar * name); -int xmlBufferCat (xmlBufferPtr buf,
    const xmlChar * str); -xmlDtdPtr xmlCreateIntSubset (xmlDocPtr doc,
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID); -xmlDocPtr xmlNewDoc (const xmlChar * version); -xmlNodePtr xmlNewCharRef (xmlDocPtr doc,
    const xmlChar * name); -xmlNsPtr xmlCopyNamespaceList (xmlNsPtr cur); -xmlNodePtr xmlNewNodeEatName (xmlNsPtr ns,
    xmlChar * name); -int xmlBufferResize (xmlBufferPtr buf,
    unsigned int size); -void xmlNodeSetBase (xmlNodePtr cur,
    const xmlChar * uri); -xmlNodePtr xmlNewComment (const xmlChar * content); -int xmlBufferLength (const xmlBufferPtr buf); -xmlNodePtr xmlNewText (const xmlChar * content); -int xmlUnsetProp (xmlNodePtr node,
    const xmlChar * name); -xmlBufferAllocationScheme xmlGetBufferAllocationScheme (void); -int xmlSaveFile (const char * filename,
    xmlDocPtr cur); -xmlNodePtr xmlDocCopyNodeList (xmlDocPtr doc,
    const xmlNodePtr node); -void xmlSetNs (xmlNodePtr node,
    xmlNsPtr ns); -xmlNsPtr xmlNewNs (xmlNodePtr node,
    const xmlChar * href,
    const xmlChar * prefix); -int xmlDOMWrapRemoveNode (xmlDOMWrapCtxtPtr ctxt,
    xmlDocPtr doc,
    xmlNodePtr node,
    int options); -void xmlAttrSerializeTxtContent (xmlBufferPtr buf,
    xmlDocPtr doc,
    xmlAttrPtr attr,
    const xmlChar * string); -xmlDtdPtr xmlCopyDtd (xmlDtdPtr dtd); -xmlNodePtr xmlNewDocText (xmlDocPtr doc,
    const xmlChar * content); -xmlChar * xmlNodeListGetRawString (xmlDocPtr doc,
    xmlNodePtr list,
    int inLine); -xmlBufferPtr xmlBufferCreateStatic (void * mem,
    size_t size); -xmlNodePtr xmlNewReference (xmlDocPtr doc,
    const xmlChar * name); -int xmlDOMWrapReconcileNamespaces (xmlDOMWrapCtxtPtr ctxt,
    xmlNodePtr elem,
    int options); -int xmlBufferCCat (xmlBufferPtr buf,
    const char * str); -xmlNsPtr * xmlGetNsList (xmlDocPtr doc,
    xmlNodePtr node); -int xmlBufferGrow (xmlBufferPtr buf,
    unsigned int len); -int xmlNodeIsText (xmlNodePtr node); -xmlAttrPtr xmlSetProp (xmlNodePtr node,
    const xmlChar * name,
    const xmlChar * value); -int xmlIsXHTML (const xmlChar * systemID,
    const xmlChar * publicID); -void xmlNodeSetLang (xmlNodePtr cur,
    const xmlChar * lang); -void xmlFreeDtd (xmlDtdPtr cur); -void xmlFreeNodeList (xmlNodePtr cur); -void xmlFreeDoc (xmlDocPtr cur); -xmlNodePtr xmlNewDocNode (xmlDocPtr doc,
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * content); -int xmlSaveFileEnc (const char * filename,
    xmlDocPtr cur,
    const char * encoding); -xmlAttrPtr xmlSetNsProp (xmlNodePtr node,
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * value); -void xmlDocDumpFormatMemory (xmlDocPtr cur,
    xmlChar ** mem,
    int * size,
    int format); -void xmlSetListDoc (xmlNodePtr list,
    xmlDocPtr doc); -void xmlNodeSetName (xmlNodePtr cur,
    const xmlChar * name); -xmlNodePtr xmlNewDocTextLen (xmlDocPtr doc,
    const xmlChar * content,
    int len); -xmlDtdPtr xmlNewDtd (xmlDocPtr doc,
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID); -void xmlFreeNsList (xmlNsPtr cur); -xmlNodePtr xmlGetLastChild (xmlNodePtr parent); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro BASE_BUFFER_SIZE

    #define BASE_BUFFER_SIZE;
    -

    default buffer size 4000.

    -
    -
    -

    Macro XML_GET_CONTENT

    #define XML_GET_CONTENT;
    -

    Macro to extract the content pointer of a node.

    -
    -
    -

    Macro XML_GET_LINE

    #define XML_GET_LINE;
    -

    Macro to extract the line number of an element node.

    -
    -
    -

    Macro XML_LOCAL_NAMESPACE

    #define XML_LOCAL_NAMESPACE;
    -

    A namespace declaration node.

    -
    -
    -

    Macro XML_XML_ID

    #define XML_XML_ID;
    -

    This is the name for the special xml:id attribute

    -
    -
    -

    Macro XML_XML_NAMESPACE

    #define XML_XML_NAMESPACE;
    -

    This is the namespace for the special xml: prefix predefined in the XML Namespace specification.

    -
    -
    -

    Macro xmlChildrenNode

    #define xmlChildrenNode;
    -

    Macro for compatibility naming layer with libxml1. Maps to "children."

    -
    -
    -

    Macro xmlRootNode

    #define xmlRootNode;
    -

    Macro for compatibility naming layer with libxml1. Maps to "children".

    -
    -
    -

    Structure xmlAttr

    struct _xmlAttr {
    -    void *	_private	: application data
    -    xmlElementType	type	: XML_ATTRIBUTE_NODE, must be second !
    -    const xmlChar *	name	: the name of the property
    -    struct _xmlNode *	children	: the value of the property
    -    struct _xmlNode *	last	: NULL
    -    struct _xmlNode *	parent	: child->parent link
    -    struct _xmlAttr *	next	: next sibling link
    -    struct _xmlAttr *	prev	: previous sibling link
    -    struct _xmlDoc *	doc	: the containing document
    -    xmlNs *	ns	: pointer to the associated namespace
    -    xmlAttributeType	atype	: the attribute type if validating
    -    void *	psvi	: for type/PSVI informations
    -} xmlAttr;
    -

    -

    -
    -

    Typedef xmlAttrPtr

    xmlAttr * xmlAttrPtr;
    -

    -

    -
    -

    Structure xmlAttribute

    struct _xmlAttribute {
    -    void *	_private	: application data
    -    xmlElementType	type	: XML_ATTRIBUTE_DECL, must be second !
    -    const xmlChar *	name	: Attribute name
    -    struct _xmlNode *	children	: NULL
    -    struct _xmlNode *	last	: NULL
    -    struct _xmlDtd *	parent	: -> DTD
    -    struct _xmlNode *	next	: next sibling link
    -    struct _xmlNode *	prev	: previous sibling link
    -    struct _xmlDoc *	doc	: the containing document
    -    struct _xmlAttribute *	nexth	: next in hash table
    -    xmlAttributeType	atype	: The attribute type
    -    xmlAttributeDefault	def	: the default
    -    const xmlChar *	defaultValue	: or the default value
    -    xmlEnumerationPtr	tree	: or the enumeration tree if any
    -    const xmlChar *	prefix	: the namespace prefix if any
    -    const xmlChar *	elem	: Element holding the attribute
    -} xmlAttribute;
    -

    -

    -
    - -
    -

    Typedef xmlAttributePtr

    xmlAttribute * xmlAttributePtr;
    -

    -

    -
    - -
    -

    Structure xmlBuffer

    struct _xmlBuffer {
    -    xmlChar *	content	: The buffer content UTF8
    -    unsigned int	use	: The buffer size used
    -    unsigned int	size	: The buffer size
    -    xmlBufferAllocationScheme	alloc	: The realloc method
    -} xmlBuffer;
    -

    -

    -
    - -
    -

    Typedef xmlBufferPtr

    xmlBuffer * xmlBufferPtr;
    -

    -

    -
    -

    Structure xmlDOMWrapCtxt

    struct _xmlDOMWrapCtxt {
    -    void *	_private
    -} xmlDOMWrapCtxt;
    -

    -

    -
    -

    Typedef xmlDOMWrapCtxtPtr

    xmlDOMWrapCtxt * xmlDOMWrapCtxtPtr;
    -

    -

    -
    -

    Structure xmlDoc

    struct _xmlDoc {
    -    void *	_private	: application data
    -    xmlElementType	type	: XML_DOCUMENT_NODE, must be second !
    -    char *	name	: name/filename/URI of the document
    -    struct _xmlNode *	children	: the document tree
    -    struct _xmlNode *	last	: last child link
    -    struct _xmlNode *	parent	: child->parent link
    -    struct _xmlNode *	next	: next sibling link
    -    struct _xmlNode *	prev	: previous sibling link
    -    struct _xmlDoc *	doc	: autoreference to itself End of common part
    -    int	compression	: level of zlib compression
    -    int	standalone	: standalone document (no external refs)
    -    struct _xmlDtd *	intSubset	: the document internal subset
    -    struct _xmlDtd *	extSubset	: the document external subset
    -    struct _xmlNs *	oldNs	: Global namespace, the old way
    -    const xmlChar *	version	: the XML version string
    -    const xmlChar *	encoding	: external initial encoding, if any
    -    void *	ids	: Hash table for ID attributes if any
    -    void *	refs	: Hash table for IDREFs attributes if any
    -    const xmlChar *	URL	: The URI for that document
    -    int	charset	: encoding of the in-memory content actually an xmlCharEncoding
    -    struct _xmlDict *	dict	: dict used to allocate names or NULL
    -    void *	psvi	: for type/PSVI informations
    -} xmlDoc;
    -

    -

    -
    -

    Typedef xmlDocPtr

    xmlDoc * xmlDocPtr;
    -

    -

    -
    -

    Structure xmlDtd

    struct _xmlDtd {
    -    void *	_private	: application data
    -    xmlElementType	type	: XML_DTD_NODE, must be second !
    -    const xmlChar *	name	: Name of the DTD
    -    struct _xmlNode *	children	: the value of the property link
    -    struct _xmlNode *	last	: last child link
    -    struct _xmlDoc *	parent	: child->parent link
    -    struct _xmlNode *	next	: next sibling link
    -    struct _xmlNode *	prev	: previous sibling link
    -    struct _xmlDoc *	doc	: the containing document End of common part
    -    void *	notations	: Hash table for notations if any
    -    void *	elements	: Hash table for elements if any
    -    void *	attributes	: Hash table for attributes if any
    -    void *	entities	: Hash table for entities if any
    -    const xmlChar *	ExternalID	: External identifier for PUBLIC DTD
    -    const xmlChar *	SystemID	: URI for a SYSTEM or PUBLIC DTD
    -    void *	pentities	: Hash table for param entities if any
    -} xmlDtd;
    -

    -

    -
    -

    Typedef xmlDtdPtr

    xmlDtd * xmlDtdPtr;
    -

    -

    -
    -

    Structure xmlElement

    struct _xmlElement {
    -    void *	_private	: application data
    -    xmlElementType	type	: XML_ELEMENT_DECL, must be second !
    -    const xmlChar *	name	: Element name
    -    struct _xmlNode *	children	: NULL
    -    struct _xmlNode *	last	: NULL
    -    struct _xmlDtd *	parent	: -> DTD
    -    struct _xmlNode *	next	: next sibling link
    -    struct _xmlNode *	prev	: previous sibling link
    -    struct _xmlDoc *	doc	: the containing document
    -    xmlElementTypeVal	etype	: The type
    -    xmlElementContentPtr	content	: the allowed element content
    -    xmlAttributePtr	attributes	: List of the declared attributes
    -    const xmlChar *	prefix	: the namespace prefix if any
    -    xmlRegexpPtr	contModel	: the validating regexp
    -    void *	contModel
    -} xmlElement;
    -

    -

    -
    -

    Structure xmlElementContent

    struct _xmlElementContent {
    -    xmlElementContentType	type	: PCDATA, ELEMENT, SEQ or OR
    -    xmlElementContentOccur	ocur	: ONCE, OPT, MULT or PLUS
    -    const xmlChar *	name	: Element name
    -    struct _xmlElementContent *	c1	: first child
    -    struct _xmlElementContent *	c2	: second child
    -    struct _xmlElementContent *	parent	: parent
    -    const xmlChar *	prefix	: Namespace prefix
    -} xmlElementContent;
    -

    -

    -
    - -
    -

    Typedef xmlElementContentPtr

    xmlElementContent * xmlElementContentPtr;
    -

    -

    -
    - -
    -

    Typedef xmlElementPtr

    xmlElement * xmlElementPtr;
    -

    -

    -
    - -
    - -
    -

    Structure xmlEntity

    struct _xmlEntity {
    -    void *	_private	: application data
    -    xmlElementType	type	: XML_ENTITY_DECL, must be second !
    -    const xmlChar *	name	: Entity name
    -    struct _xmlNode *	children	: First child link
    -    struct _xmlNode *	last	: Last child link
    -    struct _xmlDtd *	parent	: -> DTD
    -    struct _xmlNode *	next	: next sibling link
    -    struct _xmlNode *	prev	: previous sibling link
    -    struct _xmlDoc *	doc	: the containing document
    -    xmlChar *	orig	: content without ref substitution
    -    xmlChar *	content	: content or ndata if unparsed
    -    int	length	: the content length
    -    xmlEntityType	etype	: The entity type
    -    const xmlChar *	ExternalID	: External identifier for PUBLIC
    -    const xmlChar *	SystemID	: URI for a SYSTEM or PUBLIC Entity
    -    struct _xmlEntity *	nexte	: unused
    -    const xmlChar *	URI	: the full URI as computed
    -    int	owner	: does the entity own the childrens
    -} xmlEntity;
    -

    -

    -
    -

    Typedef xmlEntityPtr

    xmlEntity * xmlEntityPtr;
    -

    -

    -
    -

    Structure xmlEnumeration

    struct _xmlEnumeration {
    -    struct _xmlEnumeration *	next	: next one
    -    const xmlChar *	name	: Enumeration name
    -} xmlEnumeration;
    -

    -

    -
    -

    Typedef xmlEnumerationPtr

    xmlEnumeration * xmlEnumerationPtr;
    -

    -

    -
    -

    Structure xmlID

    struct _xmlID {
    -    struct _xmlID *	next	: next ID
    -    const xmlChar *	value	: The ID name
    -    xmlAttrPtr	attr	: The attribute holding it
    -    const xmlChar *	name	: The attribute if attr is not available
    -    int	lineno	: The line number if attr is not available
    -    struct _xmlDoc *	doc	: The document holding the ID
    -} xmlID;
    -

    -

    -
    -

    Typedef xmlIDPtr

    xmlID * xmlIDPtr;
    -

    -

    -
    -

    Structure xmlNode

    struct _xmlNode {
    -    void *	_private	: application data
    -    xmlElementType	type	: type number, must be second !
    -    const xmlChar *	name	: the name of the node, or the entity
    -    struct _xmlNode *	children	: parent->childs link
    -    struct _xmlNode *	last	: last child link
    -    struct _xmlNode *	parent	: child->parent link
    -    struct _xmlNode *	next	: next sibling link
    -    struct _xmlNode *	prev	: previous sibling link
    -    struct _xmlDoc *	doc	: the containing document End of common part
    -    xmlNs *	ns	: pointer to the associated namespace
    -    xmlChar *	content	: the content
    -    struct _xmlAttr *	properties	: properties list
    -    xmlNs *	nsDef	: namespace definitions on this node
    -    void *	psvi	: for type/PSVI informations
    -    unsigned short	line	: line number
    -    unsigned short	extra	: extra data for XPath/XSLT
    -} xmlNode;
    -

    -

    -
    -

    Typedef xmlNodePtr

    xmlNode * xmlNodePtr;
    -

    -

    -
    -

    Structure xmlNotation

    struct _xmlNotation {
    -    const xmlChar *	name	: Notation name
    -    const xmlChar *	PublicID	: Public identifier, if any
    -    const xmlChar *	SystemID	: System identifier, if any
    -} xmlNotation;
    -

    -

    -
    -

    Typedef xmlNotationPtr

    xmlNotation * xmlNotationPtr;
    -

    -

    -
    -

    Structure xmlNs

    struct _xmlNs {
    -    struct _xmlNs *	next	: next Ns link for this node
    -    xmlNsType	type	: global or local
    -    const xmlChar *	href	: URL for the namespace
    -    const xmlChar *	prefix	: prefix for the namespace
    -    void *	_private	: application data
    -} xmlNs;
    -

    -

    -
    -

    Typedef xmlNsPtr

    xmlNs * xmlNsPtr;
    -

    -

    -
    -

    Typedef xmlNsType

    xmlElementType xmlNsType;
    -

    -

    -
    -

    Structure xmlOutputBuffer

    struct _xmlOutputBuffer {
    -    void *	context
    -    xmlOutputWriteCallback	writecallback
    -    xmlOutputCloseCallback	closecallback
    -    xmlCharEncodingHandlerPtr	encoder	: I18N conversions to UTF-8
    -    xmlBufferPtr	buffer	: Local buffer encoded in UTF-8 or ISOLatin
    -    xmlBufferPtr	conv	: if encoder != NULL buffer for output
    -    int	written	: total number of byte written
    -    int	error
    -} xmlOutputBuffer;
    -

    -

    -
    -

    Typedef xmlOutputBufferPtr

    xmlOutputBuffer * xmlOutputBufferPtr;
    -

    -

    -
    -

    Structure xmlParserCtxt

    struct _xmlParserCtxt {
    -    struct _xmlSAXHandler *	sax	: The SAX handler
    -    void *	userData	: For SAX interface only, used by DOM build
    -    xmlDocPtr	myDoc	: the document being built
    -    int	wellFormed	: is the document well formed
    -    int	replaceEntities	: shall we replace entities ?
    -    const xmlChar *	version	: the XML version string
    -    const xmlChar *	encoding	: the declared encoding, if any
    -    int	standalone	: standalone document
    -    int	html	: an HTML(1)/Docbook(2) document Input stream stack
    -    xmlParserInputPtr	input	: Current input stream
    -    int	inputNr	: Number of current input streams
    -    int	inputMax	: Max number of input streams
    -    xmlParserInputPtr *	inputTab	: stack of inputs Node analysis stack only used for DOM building
    -    xmlNodePtr	node	: Current parsed Node
    -    int	nodeNr	: Depth of the parsing stack
    -    int	nodeMax	: Max depth of the parsing stack
    -    xmlNodePtr *	nodeTab	: array of nodes
    -    int	record_info	: Whether node info should be kept
    -    xmlParserNodeInfoSeq	node_seq	: info about each node parsed
    -    int	errNo	: error code
    -    int	hasExternalSubset	: reference and external subset
    -    int	hasPErefs	: the internal subset has PE refs
    -    int	external	: are we parsing an external entity
    -    int	valid	: is the document valid
    -    int	validate	: shall we try to validate ?
    -    xmlValidCtxt	vctxt	: The validity context
    -    xmlParserInputState	instate	: current type of input
    -    int	token	: next char look-ahead
    -    char *	directory	: the data directory Node name stack
    -    const xmlChar *	name	: Current parsed Node
    -    int	nameNr	: Depth of the parsing stack
    -    int	nameMax	: Max depth of the parsing stack
    -    const xmlChar * *	nameTab	: array of nodes
    -    long	nbChars	: number of xmlChar processed
    -    long	checkIndex	: used by progressive parsing lookup
    -    int	keepBlanks	: ugly but ...
    -    int	disableSAX	: SAX callbacks are disabled
    -    int	inSubset	: Parsing is in int 1/ext 2 subset
    -    const xmlChar *	intSubName	: name of subset
    -    xmlChar *	extSubURI	: URI of external subset
    -    xmlChar *	extSubSystem	: SYSTEM ID of external subset xml:space values
    -    int *	space	: Should the parser preserve spaces
    -    int	spaceNr	: Depth of the parsing stack
    -    int	spaceMax	: Max depth of the parsing stack
    -    int *	spaceTab	: array of space infos
    -    int	depth	: to prevent entity substitution loops
    -    xmlParserInputPtr	entity	: used to check entities boundaries
    -    int	charset	: encoding of the in-memory content actually an xmlCharEncoding
    -    int	nodelen	: Those two fields are there to
    -    int	nodemem	: Speed up large node parsing
    -    int	pedantic	: signal pedantic warnings
    -    void *	_private	: For user data, libxml won't touch it
    -    int	loadsubset	: should the external subset be loaded
    -    int	linenumbers	: set line number in element content
    -    void *	catalogs	: document's own catalog
    -    int	recovery	: run in recovery mode
    -    int	progressive	: is this a progressive parsing
    -    xmlDictPtr	dict	: dictionnary for the parser
    -    const xmlChar * *	atts	: array for the attributes callbacks
    -    int	maxatts	: the size of the array
    -    int	docdict	: * pre-interned strings *
    -    const xmlChar *	str_xml
    -    const xmlChar *	str_xmlns
    -    const xmlChar *	str_xml_ns	: * Everything below is used only by the new SAX mode *
    -    int	sax2	: operating in the new SAX mode
    -    int	nsNr	: the number of inherited namespaces
    -    int	nsMax	: the size of the arrays
    -    const xmlChar * *	nsTab	: the array of prefix/namespace name
    -    int *	attallocs	: which attribute were allocated
    -    void * *	pushTab	: array of data for push
    -    xmlHashTablePtr	attsDefault	: defaulted attributes if any
    -    xmlHashTablePtr	attsSpecial	: non-CDATA attributes if any
    -    int	nsWellFormed	: is the document XML Nanespace okay
    -    int	options	: * Those fields are needed only for treaming parsing so far *
    -    int	dictNames	: Use dictionary names for the tree
    -    int	freeElemsNr	: number of freed element nodes
    -    xmlNodePtr	freeElems	: List of freed element nodes
    -    int	freeAttrsNr	: number of freed attributes nodes
    -    xmlAttrPtr	freeAttrs	: * the complete error informations for the last error. *
    -    xmlError	lastError
    -    xmlParserMode	parseMode	: the parser mode
    -} xmlParserCtxt;
    -

    -

    -
    -

    Typedef xmlParserCtxtPtr

    xmlParserCtxt * xmlParserCtxtPtr;
    -

    -

    -
    -

    Structure xmlParserInput

    struct _xmlParserInput {
    -    xmlParserInputBufferPtr	buf	: UTF-8 encoded buffer
    -    const char *	filename	: The file analyzed, if any
    -    const char *	directory	: the directory/base of the file
    -    const xmlChar *	base	: Base of the array to parse
    -    const xmlChar *	cur	: Current char being parsed
    -    const xmlChar *	end	: end of the array to parse
    -    int	length	: length if known
    -    int	line	: Current line
    -    int	col	: * NOTE: consumed is only tested for equality in the parser code, *
    -    unsigned long	consumed	: How many xmlChars already consumed
    -    xmlParserInputDeallocate	free	: function to deallocate the base
    -    const xmlChar *	encoding	: the encoding string for entity
    -    const xmlChar *	version	: the version string for entity
    -    int	standalone	: Was that entity marked standalone
    -    int	id	: an unique identifier for the entity
    -} xmlParserInput;
    -

    -

    -
    -

    Structure xmlParserInputBuffer

    struct _xmlParserInputBuffer {
    -    void *	context
    -    xmlInputReadCallback	readcallback
    -    xmlInputCloseCallback	closecallback
    -    xmlCharEncodingHandlerPtr	encoder	: I18N conversions to UTF-8
    -    xmlBufferPtr	buffer	: Local buffer encoded in UTF-8
    -    xmlBufferPtr	raw	: if encoder != NULL buffer for raw input
    -    int	compressed	: -1=unknown, 0=not compressed, 1=compressed
    -    int	error
    -    unsigned long	rawconsumed	: amount consumed from raw
    -} xmlParserInputBuffer;
    -

    -

    -
    -

    Typedef xmlParserInputBufferPtr

    xmlParserInputBuffer * xmlParserInputBufferPtr;
    -

    -

    -
    -

    Typedef xmlParserInputPtr

    xmlParserInput * xmlParserInputPtr;
    -

    -

    -
    -

    Structure xmlRef

    struct _xmlRef {
    -    struct _xmlRef *	next	: next Ref
    -    const xmlChar *	value	: The Ref name
    -    xmlAttrPtr	attr	: The attribute holding it
    -    const xmlChar *	name	: The attribute if attr is not available
    -    int	lineno	: The line number if attr is not available
    -} xmlRef;
    -

    -

    -
    -

    Typedef xmlRefPtr

    xmlRef * xmlRefPtr;
    -

    -

    -
    -

    Structure xmlSAXHandler

    struct _xmlSAXHandler {
    -    internalSubsetSAXFunc	internalSubset
    -    isStandaloneSAXFunc	isStandalone
    -    hasInternalSubsetSAXFunc	hasInternalSubset
    -    hasExternalSubsetSAXFunc	hasExternalSubset
    -    resolveEntitySAXFunc	resolveEntity
    -    getEntitySAXFunc	getEntity
    -    entityDeclSAXFunc	entityDecl
    -    notationDeclSAXFunc	notationDecl
    -    attributeDeclSAXFunc	attributeDecl
    -    elementDeclSAXFunc	elementDecl
    -    unparsedEntityDeclSAXFunc	unparsedEntityDecl
    -    setDocumentLocatorSAXFunc	setDocumentLocator
    -    startDocumentSAXFunc	startDocument
    -    endDocumentSAXFunc	endDocument
    -    startElementSAXFunc	startElement
    -    endElementSAXFunc	endElement
    -    referenceSAXFunc	reference
    -    charactersSAXFunc	characters
    -    ignorableWhitespaceSAXFunc	ignorableWhitespace
    -    processingInstructionSAXFunc	processingInstruction
    -    commentSAXFunc	comment
    -    warningSAXFunc	warning
    -    errorSAXFunc	error
    -    fatalErrorSAXFunc	fatalError	: unused error() get all the errors
    -    getParameterEntitySAXFunc	getParameterEntity
    -    cdataBlockSAXFunc	cdataBlock
    -    externalSubsetSAXFunc	externalSubset
    -    unsigned int	initialized	: The following fields are extensions available only on version 2
    -    void *	_private
    -    startElementNsSAX2Func	startElementNs
    -    endElementNsSAX2Func	endElementNs
    -    xmlStructuredErrorFunc	serror
    -} xmlSAXHandler;
    -

    -

    -
    -

    Typedef xmlSAXHandlerPtr

    xmlSAXHandler * xmlSAXHandlerPtr;
    -

    -

    -
    -

    Structure xmlSAXLocator

    struct _xmlSAXLocator {
    -    const xmlChar *(*getPublicId)	getPublicId
    -    const xmlChar *(*getSystemId)	getSystemId
    -    int(*getLineNumber)	getLineNumber
    -    int(*getColumnNumber)	getColumnNumber
    -} xmlSAXLocator;
    -

    -

    -
    -

    Typedef xmlSAXLocatorPtr

    xmlSAXLocator * xmlSAXLocatorPtr;
    -

    -

    -
    -

    xmlAddChild ()

    xmlNodePtr	xmlAddChild		(xmlNodePtr parent, 
    xmlNodePtr cur)
    -

    Add a new node to @parent, at the end of the child (or property) list merging adjacent TEXT nodes (in which case @cur is freed) If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed.

    -
    parent:the parent node
    cur:the child node
    Returns:the child or NULL in case of error.
    -
    -

    xmlAddChildList ()

    xmlNodePtr	xmlAddChildList		(xmlNodePtr parent, 
    xmlNodePtr cur)
    -

    Add a list of node at the end of the child list of the parent merging adjacent TEXT nodes (@cur may be freed)

    -
    parent:the parent node
    cur:the first node in the list
    Returns:the last child or NULL in case of error.
    -
    -

    xmlAddNextSibling ()

    xmlNodePtr	xmlAddNextSibling	(xmlNodePtr cur, 
    xmlNodePtr elem)
    -

    Add a new node @elem as the next sibling of @cur If the new node was already inserted in a document it is first unlinked from its existing context. As a result of text merging @elem may be freed. If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed.

    -
    cur:the child node
    elem:the new node
    Returns:the new node or NULL in case of error.
    -
    -

    xmlAddPrevSibling ()

    xmlNodePtr	xmlAddPrevSibling	(xmlNodePtr cur, 
    xmlNodePtr elem)
    -

    Add a new node @elem as the previous sibling of @cur merging adjacent TEXT nodes (@elem may be freed) If the new node was already inserted in a document it is first unlinked from its existing context. If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed.

    -
    cur:the child node
    elem:the new node
    Returns:the new node or NULL in case of error.
    -
    -

    xmlAddSibling ()

    xmlNodePtr	xmlAddSibling		(xmlNodePtr cur, 
    xmlNodePtr elem)
    -

    Add a new element @elem to the list of siblings of @cur merging adjacent TEXT nodes (@elem may be freed) If the new element was already inserted in a document it is first unlinked from its existing context.

    -
    cur:the child node
    elem:the new node
    Returns:the new element or NULL in case of error.
    -
    -

    xmlAttrSerializeTxtContent ()

    void	xmlAttrSerializeTxtContent	(xmlBufferPtr buf, 
    xmlDocPtr doc,
    xmlAttrPtr attr,
    const xmlChar * string)
    -

    Serialize text attribute values to an xml simple buffer

    -
    buf:the XML buffer output
    doc:the document
    attr:the attribute node
    string:the text content
    -
    -

    xmlBufferAdd ()

    int	xmlBufferAdd			(xmlBufferPtr buf, 
    const xmlChar * str,
    int len)
    -

    Add a string range to an XML buffer. if len == -1, the length of str is recomputed.

    -
    buf:the buffer to dump
    str:the #xmlChar string
    len:the number of #xmlChar to add
    Returns:0 successful, a positive error code number otherwise and -1 in case of internal or API error.
    -
    -

    xmlBufferAddHead ()

    int	xmlBufferAddHead		(xmlBufferPtr buf, 
    const xmlChar * str,
    int len)
    -

    Add a string range to the beginning of an XML buffer. if len == -1, the length of @str is recomputed.

    -
    buf:the buffer
    str:the #xmlChar string
    len:the number of #xmlChar to add
    Returns:0 successful, a positive error code number otherwise and -1 in case of internal or API error.
    -
    -

    xmlBufferCCat ()

    int	xmlBufferCCat			(xmlBufferPtr buf, 
    const char * str)
    -

    Append a zero terminated C string to an XML buffer.

    -
    buf:the buffer to dump
    str:the C char string
    Returns:0 successful, a positive error code number otherwise and -1 in case of internal or API error.
    -
    -

    xmlBufferCat ()

    int	xmlBufferCat			(xmlBufferPtr buf, 
    const xmlChar * str)
    -

    Append a zero terminated string to an XML buffer.

    -
    buf:the buffer to add to
    str:the #xmlChar string
    Returns:0 successful, a positive error code number otherwise and -1 in case of internal or API error.
    -
    -

    xmlBufferContent ()

    const xmlChar *	xmlBufferContent	(const xmlBufferPtr buf)
    -

    Function to extract the content of a buffer

    -
    buf:the buffer
    Returns:the internal content
    -
    -

    xmlBufferCreate ()

    xmlBufferPtr	xmlBufferCreate		(void)
    -

    routine to create an XML buffer.

    -
    Returns:the new structure.
    -
    -

    xmlBufferCreateSize ()

    xmlBufferPtr	xmlBufferCreateSize	(size_t size)
    -

    routine to create an XML buffer.

    -
    size:initial size of buffer
    Returns:the new structure.
    -
    -

    xmlBufferCreateStatic ()

    xmlBufferPtr	xmlBufferCreateStatic	(void * mem, 
    size_t size)
    -

    routine to create an XML buffer from an immutable memory area. The area won't be modified nor copied, and is expected to be present until the end of the buffer lifetime.

    -
    mem:the memory area
    size:the size in byte
    Returns:the new structure.
    -
    -

    xmlBufferDump ()

    int	xmlBufferDump			(FILE * file, 
    xmlBufferPtr buf)
    -

    Dumps an XML buffer to a FILE *.

    -
    file:the file output
    buf:the buffer to dump
    Returns:the number of #xmlChar written
    -
    -

    xmlBufferEmpty ()

    void	xmlBufferEmpty			(xmlBufferPtr buf)
    -

    empty a buffer.

    -
    buf:the buffer
    -
    -

    xmlBufferFree ()

    void	xmlBufferFree			(xmlBufferPtr buf)
    -

    Frees an XML buffer. It frees both the content and the structure which encapsulate it.

    -
    buf:the buffer to free
    -
    -

    xmlBufferGrow ()

    int	xmlBufferGrow			(xmlBufferPtr buf, 
    unsigned int len)
    -

    Grow the available space of an XML buffer.

    -
    buf:the buffer
    len:the minimum free size to allocate
    Returns:the new available space or -1 in case of error
    -
    -

    xmlBufferLength ()

    int	xmlBufferLength			(const xmlBufferPtr buf)
    -

    Function to get the length of a buffer

    -
    buf:the buffer
    Returns:the length of data in the internal content
    -
    -

    xmlBufferResize ()

    int	xmlBufferResize			(xmlBufferPtr buf, 
    unsigned int size)
    -

    Resize a buffer to accommodate minimum size of @size.

    -
    buf:the buffer to resize
    size:the desired size
    Returns:0 in case of problems, 1 otherwise
    -
    -

    xmlBufferSetAllocationScheme ()

    void	xmlBufferSetAllocationScheme	(xmlBufferPtr buf, 
    xmlBufferAllocationScheme scheme)
    -

    Sets the allocation scheme for this buffer

    -
    buf:the buffer to tune
    scheme:allocation scheme to use
    -
    -

    xmlBufferShrink ()

    int	xmlBufferShrink			(xmlBufferPtr buf, 
    unsigned int len)
    -

    Remove the beginning of an XML buffer.

    -
    buf:the buffer to dump
    len:the number of xmlChar to remove
    Returns:the number of #xmlChar removed, or -1 in case of failure.
    -
    -

    xmlBufferWriteCHAR ()

    void	xmlBufferWriteCHAR		(xmlBufferPtr buf, 
    const xmlChar * string)
    -

    routine which manages and grows an output buffer. This one adds xmlChars at the end of the buffer.

    -
    buf:the XML buffer
    string:the string to add
    -
    -

    xmlBufferWriteChar ()

    void	xmlBufferWriteChar		(xmlBufferPtr buf, 
    const char * string)
    -

    routine which manage and grows an output buffer. This one add C chars at the end of the array.

    -
    buf:the XML buffer output
    string:the string to add
    -
    -

    xmlBufferWriteQuotedString ()

    void	xmlBufferWriteQuotedString	(xmlBufferPtr buf, 
    const xmlChar * string)
    -

    routine which manage and grows an output buffer. This one writes a quoted or double quoted #xmlChar string, checking first if it holds quote or double-quotes internally

    -
    buf:the XML buffer output
    string:the string to add
    -
    -

    xmlBuildQName ()

    xmlChar *	xmlBuildQName		(const xmlChar * ncname, 
    const xmlChar * prefix,
    xmlChar * memory,
    int len)
    -

    Builds the QName @prefix:@ncname in @memory if there is enough space and prefix is not NULL nor empty, otherwise allocate a new string. If prefix is NULL or empty it returns ncname.

    -
    ncname:the Name
    prefix:the prefix
    memory:preallocated memory
    len:preallocated memory length
    Returns:the new string which must be freed by the caller if different from @memory and @ncname or NULL in case of error
    -
    -

    xmlCopyDoc ()

    xmlDocPtr	xmlCopyDoc		(xmlDocPtr doc, 
    int recursive)
    -

    Do a copy of the document info. If recursive, the content tree will be copied too as well as DTD, namespaces and entities.

    -
    doc:the document
    recursive:if not zero do a recursive copy.
    Returns:a new #xmlDocPtr, or NULL in case of error.
    -
    -

    xmlCopyDtd ()

    xmlDtdPtr	xmlCopyDtd		(xmlDtdPtr dtd)
    -

    Do a copy of the dtd.

    -
    dtd:the dtd
    Returns:a new #xmlDtdPtr, or NULL in case of error.
    -
    -

    xmlCopyNamespace ()

    xmlNsPtr	xmlCopyNamespace	(xmlNsPtr cur)
    -

    Do a copy of the namespace.

    -
    cur:the namespace
    Returns:a new #xmlNsPtr, or NULL in case of error.
    -
    -

    xmlCopyNamespaceList ()

    xmlNsPtr	xmlCopyNamespaceList	(xmlNsPtr cur)
    -

    Do a copy of an namespace list.

    -
    cur:the first namespace
    Returns:a new #xmlNsPtr, or NULL in case of error.
    -
    -

    xmlCopyNode ()

    xmlNodePtr	xmlCopyNode		(const xmlNodePtr node, 
    int extended)
    -

    Do a copy of the node.

    -
    node:the node
    extended:if 1 do a recursive copy (properties, namespaces and children when applicable) if 2 copy properties and namespaces (when applicable)
    Returns:a new #xmlNodePtr, or NULL in case of error.
    -
    -

    xmlCopyNodeList ()

    xmlNodePtr	xmlCopyNodeList		(const xmlNodePtr node)
    -

    Do a recursive copy of the node list. Use xmlDocCopyNodeList() if possible to ensure string interning.

    -
    node:the first node in the list.
    Returns:a new #xmlNodePtr, or NULL in case of error.
    -
    -

    xmlCopyProp ()

    xmlAttrPtr	xmlCopyProp		(xmlNodePtr target, 
    xmlAttrPtr cur)
    -

    Do a copy of the attribute.

    -
    target:the element where the attribute will be grafted
    cur:the attribute
    Returns:a new #xmlAttrPtr, or NULL in case of error.
    -
    -

    xmlCopyPropList ()

    xmlAttrPtr	xmlCopyPropList		(xmlNodePtr target, 
    xmlAttrPtr cur)
    -

    Do a copy of an attribute list.

    -
    target:the element where the attributes will be grafted
    cur:the first attribute
    Returns:a new #xmlAttrPtr, or NULL in case of error.
    -
    -

    xmlCreateIntSubset ()

    xmlDtdPtr	xmlCreateIntSubset	(xmlDocPtr doc, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    Create the internal subset of a document

    -
    doc:the document pointer
    name:the DTD name
    ExternalID:the external (PUBLIC) ID
    SystemID:the system ID
    Returns:a pointer to the new DTD structure
    -
    -

    xmlDOMWrapAdoptNode ()

    int	xmlDOMWrapAdoptNode		(xmlDOMWrapCtxtPtr ctxt, 
    xmlDocPtr sourceDoc,
    xmlNodePtr node,
    xmlDocPtr destDoc,
    xmlNodePtr destParent,
    int options)
    -

    References of out-of scope ns-decls are remapped to point to @destDoc: 1) If @destParent is given, then nsDef entries on element-nodes are used 2) If *no* @destParent is given, then @destDoc->oldNs entries are used This is the case when you have an unliked node and just want to move it to the context of If @destParent is given, it ensures that the tree is namespace wellformed by creating additional ns-decls where needed. Note that, since prefixes of already existent ns-decls can be shadowed by this process, it could break QNames in attribute values or element content. WARNING: This function is in a experimental state.

    -
    ctxt:the optional context for custom processing
    sourceDoc:the optional sourceDoc
    node:the node to start with
    destDoc:the destination doc
    destParent:the optional new parent of @node in @destDoc
    options:option flags
    Returns:0 if the operation succeeded, 1 if a node of unsupported type was given, 2 if a node of not yet supported type was given and -1 on API/internal errors.
    -
    -

    xmlDOMWrapCloneNode ()

    int	xmlDOMWrapCloneNode		(xmlDOMWrapCtxtPtr ctxt, 
    xmlDocPtr sourceDoc,
    xmlNodePtr node,
    xmlNodePtr * resNode,
    xmlDocPtr destDoc,
    xmlNodePtr destParent,
    int deep,
    int options)
    -

    References of out-of scope ns-decls are remapped to point to @destDoc: 1) If @destParent is given, then nsDef entries on element-nodes are used 2) If *no* @destParent is given, then @destDoc->oldNs entries are used This is the case when you have an unliked node and just want to move it to the context of If @destParent is given, it ensures that the tree is namespace wellformed by creating additional ns-decls where needed. Note that, since prefixes of already existent ns-decls can be shadowed by this process, it could break QNames in attribute values or element content. TODO: 1) Support dicts Optimize string adoption for equal or none dicts. 2) XInclude WARNING: This function is in a experimental state and should only be currently only be used to test it.

    -
    ctxt:the optional context for custom processing
    sourceDoc:the optional sourceDoc
    node:the node to start with
    resNode:the clone of the given @node
    destDoc:the destination doc
    destParent:the optional new parent of @node in @destDoc
    deep:descend into child if set
    options:option flags
    Returns:0 if the operation succeeded, 1 if a node of unsupported (or not yet supported) type was given, -1 on API/internal errors.
    -
    -

    xmlDOMWrapFreeCtxt ()

    void	xmlDOMWrapFreeCtxt		(xmlDOMWrapCtxtPtr ctxt)
    -

    Frees the DOM-wrapper context.

    -
    ctxt:the DOM-wrapper context
    -
    -

    xmlDOMWrapNewCtxt ()

    xmlDOMWrapCtxtPtr	xmlDOMWrapNewCtxt	(void)
    -

    Allocates and initializes a new DOM-wrapper context.

    -
    Returns:the xmlDOMWrapCtxtPtr or NULL in case of an internal errror.
    -
    -

    xmlDOMWrapReconcileNamespaces ()

    int	xmlDOMWrapReconcileNamespaces	(xmlDOMWrapCtxtPtr ctxt, 
    xmlNodePtr elem,
    int options)
    -

    Ensures that ns-references point to ns-decls hold on element-nodes. Ensures that the tree is namespace wellformed by creating additional ns-decls where needed. Note that, since prefixes of already existent ns-decls can be shadowed by this process, it could break QNames in attribute values or element content. WARNING: This function is in a experimental state.

    -
    ctxt:DOM wrapper context, unused at the moment
    elem:the element-node
    options:option flags
    Returns:0 if succeeded, -1 otherwise and on API/internal errors.
    -
    -

    xmlDOMWrapRemoveNode ()

    int	xmlDOMWrapRemoveNode		(xmlDOMWrapCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr node,
    int options)
    -

    Unlinks the given node from its owner. This will substitute ns-references to node->nsDef for ns-references to doc->oldNs, thus ensuring the removed branch to be autark wrt ns-references. WARNING: This function is in a experimental state.

    -
    ctxt:a DOM wrapper context
    doc:the doc
    node:the node to be removed.
    options:set of options, unused at the moment
    Returns:0 on success, 1 if the node is not supported, -1 on API and internal errors.
    -
    -

    xmlDocCopyNode ()

    xmlNodePtr	xmlDocCopyNode		(const xmlNodePtr node, 
    xmlDocPtr doc,
    int extended)
    -

    Do a copy of the node to a given document.

    -
    node:the node
    doc:the document
    extended:if 1 do a recursive copy (properties, namespaces and children when applicable) if 2 copy properties and namespaces (when applicable)
    Returns:a new #xmlNodePtr, or NULL in case of error.
    -
    -

    xmlDocCopyNodeList ()

    xmlNodePtr	xmlDocCopyNodeList	(xmlDocPtr doc, 
    const xmlNodePtr node)
    -

    Do a recursive copy of the node list.

    -
    doc:the target document
    node:the first node in the list.
    Returns:a new #xmlNodePtr, or NULL in case of error.
    -
    -

    xmlDocDump ()

    int	xmlDocDump			(FILE * f, 
    xmlDocPtr cur)
    -

    Dump an XML document to an open FILE.

    -
    f:the FILE*
    cur:the document
    Returns:the number of bytes written or -1 in case of failure.
    -
    -

    xmlDocDumpFormatMemory ()

    void	xmlDocDumpFormatMemory		(xmlDocPtr cur, 
    xmlChar ** mem,
    int * size,
    int format)
    -

    Dump an XML document in memory and return the #xmlChar * and it's size. It's up to the caller to free the memory with xmlFree(). Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called

    -
    cur:the document
    mem:OUT: the memory pointer
    size:OUT: the memory length
    format:should formatting spaces been added
    -
    -

    xmlDocDumpFormatMemoryEnc ()

    void	xmlDocDumpFormatMemoryEnc	(xmlDocPtr out_doc, 
    xmlChar ** doc_txt_ptr,
    int * doc_txt_len,
    const char * txt_encoding,
    int format)
    -

    Dump the current DOM tree into memory using the character encoding specified by the caller. Note it is up to the caller of this function to free the allocated memory with xmlFree(). Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called

    -
    out_doc:Document to generate XML text from
    doc_txt_ptr:Memory pointer for allocated XML text
    doc_txt_len:Length of the generated XML text
    txt_encoding:Character encoding to use when generating XML text
    format:should formatting spaces been added
    -
    -

    xmlDocDumpMemory ()

    void	xmlDocDumpMemory		(xmlDocPtr cur, 
    xmlChar ** mem,
    int * size)
    -

    Dump an XML document in memory and return the #xmlChar * and it's size in bytes. It's up to the caller to free the memory with xmlFree(). The resulting byte array is zero terminated, though the last 0 is not included in the returned size.

    -
    cur:the document
    mem:OUT: the memory pointer
    size:OUT: the memory length
    -
    -

    xmlDocDumpMemoryEnc ()

    void	xmlDocDumpMemoryEnc		(xmlDocPtr out_doc, 
    xmlChar ** doc_txt_ptr,
    int * doc_txt_len,
    const char * txt_encoding)
    -

    Dump the current DOM tree into memory using the character encoding specified by the caller. Note it is up to the caller of this function to free the allocated memory with xmlFree().

    -
    out_doc:Document to generate XML text from
    doc_txt_ptr:Memory pointer for allocated XML text
    doc_txt_len:Length of the generated XML text
    txt_encoding:Character encoding to use when generating XML text
    -
    -

    xmlDocFormatDump ()

    int	xmlDocFormatDump		(FILE * f, 
    xmlDocPtr cur,
    int format)
    -

    Dump an XML document to an open FILE.

    -
    f:the FILE*
    cur:the document
    format:should formatting spaces been added
    Returns:the number of bytes written or -1 in case of failure. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called
    -
    -

    xmlDocGetRootElement ()

    xmlNodePtr	xmlDocGetRootElement	(xmlDocPtr doc)
    -

    Get the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...).

    -
    doc:the document
    Returns:the #xmlNodePtr for the root or NULL
    -
    -

    xmlDocSetRootElement ()

    xmlNodePtr	xmlDocSetRootElement	(xmlDocPtr doc, 
    xmlNodePtr root)
    -

    Set the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...).

    -
    doc:the document
    root:the new document root element
    Returns:the old root element if any was found
    -
    -

    xmlElemDump ()

    void	xmlElemDump			(FILE * f, 
    xmlDocPtr doc,
    xmlNodePtr cur)
    -

    Dump an XML/HTML node, recursive behaviour, children are printed too.

    -
    f:the FILE * for the output
    doc:the document
    cur:the current node
    -
    -

    xmlFreeDoc ()

    void	xmlFreeDoc			(xmlDocPtr cur)
    -

    Free up all the structures used by a document, tree included.

    -
    cur:pointer to the document
    -
    -

    xmlFreeDtd ()

    void	xmlFreeDtd			(xmlDtdPtr cur)
    -

    Free a DTD structure.

    -
    cur:the DTD structure to free up
    -
    -

    xmlFreeNode ()

    void	xmlFreeNode			(xmlNodePtr cur)
    -

    Free a node, this is a recursive behaviour, all the children are freed too. This doesn't unlink the child from the list, use xmlUnlinkNode() first.

    -
    cur:the node
    -
    -

    xmlFreeNodeList ()

    void	xmlFreeNodeList			(xmlNodePtr cur)
    -

    Free a node and all its siblings, this is a recursive behaviour, all the children are freed too.

    -
    cur:the first node in the list
    -
    -

    xmlFreeNs ()

    void	xmlFreeNs			(xmlNsPtr cur)
    -

    Free up the structures associated to a namespace

    -
    cur:the namespace pointer
    -
    -

    xmlFreeNsList ()

    void	xmlFreeNsList			(xmlNsPtr cur)
    -

    Free up all the structures associated to the chained namespaces.

    -
    cur:the first namespace pointer
    -
    -

    xmlFreeProp ()

    void	xmlFreeProp			(xmlAttrPtr cur)
    -

    Free one attribute, all the content is freed too

    -
    cur:an attribute
    -
    -

    xmlFreePropList ()

    void	xmlFreePropList			(xmlAttrPtr cur)
    -

    Free a property and all its siblings, all the children are freed too.

    -
    cur:the first property in the list
    -
    -

    xmlGetBufferAllocationScheme ()

    xmlBufferAllocationScheme	xmlGetBufferAllocationScheme	(void)
    -

    Types are XML_BUFFER_ALLOC_EXACT - use exact sizes, keeps memory usage down XML_BUFFER_ALLOC_DOUBLEIT - double buffer when extra needed, improves performance

    -
    Returns:the current allocation scheme
    -
    - -
    -

    xmlGetDocCompressMode ()

    int	xmlGetDocCompressMode		(xmlDocPtr doc)
    -

    get the compression ratio for a document, ZLIB based

    -
    doc:the document
    Returns:0 (uncompressed) to 9 (max compression)
    -
    -

    xmlGetIntSubset ()

    xmlDtdPtr	xmlGetIntSubset		(xmlDocPtr doc)
    -

    Get the internal subset of a document

    -
    doc:the document pointer
    Returns:a pointer to the DTD structure or NULL if not found
    -
    -

    xmlGetLastChild ()

    xmlNodePtr	xmlGetLastChild		(xmlNodePtr parent)
    -

    Search the last child of a node.

    -
    parent:the parent node
    Returns:the last child or NULL if none.
    -
    -

    xmlGetLineNo ()

    long	xmlGetLineNo			(xmlNodePtr node)
    -

    Get line number of @node. This requires activation of this option before invoking the parser by calling xmlLineNumbersDefault(1)

    -
    node:valid node
    Returns:the line number if successful, -1 otherwise
    -
    -

    xmlGetNoNsProp ()

    xmlChar *	xmlGetNoNsProp		(xmlNodePtr node, 
    const xmlChar * name)
    -

    Search and get the value of an attribute associated to a node 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. This function is similar to xmlGetProp except it will accept only an attribute in no namespace.

    -
    node:the node
    name:the attribute name
    Returns:the attribute value or NULL if not found. It's up to the caller to free the memory with xmlFree().
    -
    -

    xmlGetNodePath ()

    xmlChar *	xmlGetNodePath		(xmlNodePtr node)
    -

    Build a structure based Path for the given node

    -
    node:a node
    Returns:the new path or NULL in case of error. The caller must free the returned string
    -
    -

    xmlGetNsList ()

    xmlNsPtr *	xmlGetNsList		(xmlDocPtr doc, 
    xmlNodePtr node)
    -

    Search all the namespace applying to a given element.

    -
    doc:the document
    node:the current node
    Returns:an NULL terminated array of all the #xmlNsPtr found that need to be freed by the caller or NULL if no namespace if defined
    -
    -

    xmlGetNsProp ()

    xmlChar *	xmlGetNsProp		(xmlNodePtr node, 
    const xmlChar * name,
    const xmlChar * nameSpace)
    -

    Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified. 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.

    -
    node:the node
    name:the attribute name
    nameSpace:the URI of the namespace
    Returns:the attribute value or NULL if not found. It's up to the caller to free the memory with xmlFree().
    -
    -

    xmlGetProp ()

    xmlChar *	xmlGetProp		(xmlNodePtr node, 
    const xmlChar * name)
    -

    Search and get the value of an attribute associated to a node 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. NOTE: this function acts independently of namespaces associated to the attribute. Use xmlGetNsProp() or xmlGetNoNsProp() for namespace aware processing.

    -
    node:the node
    name:the attribute name
    Returns:the attribute value or NULL if not found. It's up to the caller to free the memory with xmlFree().
    -
    -

    xmlHasNsProp ()

    xmlAttrPtr	xmlHasNsProp		(xmlNodePtr node, 
    const xmlChar * name,
    const xmlChar * nameSpace)
    -

    Search for an attribute associated to a node This attribute has to be anchored in the namespace specified. 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. Note that a namespace of NULL indicates to use the default namespace.

    -
    node:the node
    name:the attribute name
    nameSpace:the URI of the namespace
    Returns:the attribute or the attribute declaration or NULL if neither was found.
    -
    -

    xmlHasProp ()

    xmlAttrPtr	xmlHasProp		(xmlNodePtr node, 
    const xmlChar * name)
    -

    Search an attribute associated to a node This function also looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off.

    -
    node:the node
    name:the attribute name
    Returns:the attribute or the attribute declaration or NULL if neither was found.
    -
    -

    xmlIsBlankNode ()

    int	xmlIsBlankNode			(xmlNodePtr node)
    -

    Checks whether this node is an empty or whitespace only (and possibly ignorable) text-node.

    -
    node:the node
    Returns:1 yes, 0 no
    -
    -

    xmlIsXHTML ()

    int	xmlIsXHTML			(const xmlChar * systemID, 
    const xmlChar * publicID)
    -

    Try to find if the document correspond to an XHTML DTD

    -
    systemID:the system identifier
    publicID:the public identifier
    Returns:1 if true, 0 if not and -1 in case of error
    -
    -

    xmlNewCDataBlock ()

    xmlNodePtr	xmlNewCDataBlock	(xmlDocPtr doc, 
    const xmlChar * content,
    int len)
    -

    Creation of a new node containing a CDATA block.

    -
    doc:the document
    content:the CDATA block content content
    len:the length of the block
    Returns:a pointer to the new node object.
    -
    -

    xmlNewCharRef ()

    xmlNodePtr	xmlNewCharRef		(xmlDocPtr doc, 
    const xmlChar * name)
    -

    Creation of a new character reference node.

    -
    doc:the document
    name:the char ref string, starting with # or "&# ... ;"
    Returns:a pointer to the new node object.
    -
    -

    xmlNewChild ()

    xmlNodePtr	xmlNewChild		(xmlNodePtr parent, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * content)
    -

    Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (NULL). If @ns is NULL, the newly created element inherits the namespace of @parent. If @content is non NULL, a child list containing the TEXTs and ENTITY_REFs node will be created. NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity references. XML special chars must be escaped first by using xmlEncodeEntitiesReentrant(), or xmlNewTextChild() should be used.

    -
    parent:the parent node
    ns:a namespace if any
    name:the name of the child
    content:the XML content of the child if any.
    Returns:a pointer to the new node object.
    -
    -

    xmlNewComment ()

    xmlNodePtr	xmlNewComment		(const xmlChar * content)
    -

    Creation of a new node containing a comment.

    -
    content:the comment content
    Returns:a pointer to the new node object.
    -
    -

    xmlNewDoc ()

    xmlDocPtr	xmlNewDoc		(const xmlChar * version)
    -

    Creates a new XML document

    -
    version:xmlChar string giving the version of XML "1.0"
    Returns:a new document
    -
    -

    xmlNewDocComment ()

    xmlNodePtr	xmlNewDocComment	(xmlDocPtr doc, 
    const xmlChar * content)
    -

    Creation of a new node containing a comment within a document.

    -
    doc:the document
    content:the comment content
    Returns:a pointer to the new node object.
    -
    -

    xmlNewDocFragment ()

    xmlNodePtr	xmlNewDocFragment	(xmlDocPtr doc)
    -

    Creation of a new Fragment node.

    -
    doc:the document owning the fragment
    Returns:a pointer to the new node object.
    -
    -

    xmlNewDocNode ()

    xmlNodePtr	xmlNewDocNode		(xmlDocPtr doc, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * content)
    -

    Creation of a new node element within a document. @ns and @content are optional (NULL). NOTE: @content is supposed to be a piece of XML CDATA, so it allow entities references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewDocRawNode() if you don't need entities support.

    -
    doc:the document
    ns:namespace if any
    name:the node name
    content:the XML text content if any
    Returns:a pointer to the new node object.
    -
    -

    xmlNewDocNodeEatName ()

    xmlNodePtr	xmlNewDocNodeEatName	(xmlDocPtr doc, 
    xmlNsPtr ns,
    xmlChar * name,
    const xmlChar * content)
    -

    Creation of a new node element within a document. @ns and @content are optional (NULL). NOTE: @content is supposed to be a piece of XML CDATA, so it allow entities references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewDocRawNode() if you don't need entities support.

    -
    doc:the document
    ns:namespace if any
    name:the node name
    content:the XML text content if any
    Returns:a pointer to the new node object.
    -
    -

    xmlNewDocPI ()

    xmlNodePtr	xmlNewDocPI		(xmlDocPtr doc, 
    const xmlChar * name,
    const xmlChar * content)
    -

    Creation of a processing instruction element.

    -
    doc:the target document
    name:the processing instruction name
    content:the PI content
    Returns:a pointer to the new node object.
    -
    -

    xmlNewDocProp ()

    xmlAttrPtr	xmlNewDocProp		(xmlDocPtr doc, 
    const xmlChar * name,
    const xmlChar * value)
    -

    Create a new property carried by a document.

    -
    doc:the document
    name:the name of the attribute
    value:the value of the attribute
    Returns:a pointer to the attribute
    -
    -

    xmlNewDocRawNode ()

    xmlNodePtr	xmlNewDocRawNode	(xmlDocPtr doc, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * content)
    -

    Creation of a new node element within a document. @ns and @content are optional (NULL).

    -
    doc:the document
    ns:namespace if any
    name:the node name
    content:the text content if any
    Returns:a pointer to the new node object.
    -
    -

    xmlNewDocText ()

    xmlNodePtr	xmlNewDocText		(xmlDocPtr doc, 
    const xmlChar * content)
    -

    Creation of a new text node within a document.

    -
    doc:the document
    content:the text content
    Returns:a pointer to the new node object.
    -
    -

    xmlNewDocTextLen ()

    xmlNodePtr	xmlNewDocTextLen	(xmlDocPtr doc, 
    const xmlChar * content,
    int len)
    -

    Creation of a new text node with an extra content length parameter. The text node pertain to a given document.

    -
    doc:the document
    content:the text content
    len:the text len.
    Returns:a pointer to the new node object.
    -
    -

    xmlNewDtd ()

    xmlDtdPtr	xmlNewDtd		(xmlDocPtr doc, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    Creation of a new DTD for the external subset. To create an internal subset, use xmlCreateIntSubset().

    -
    doc:the document pointer
    name:the DTD name
    ExternalID:the external ID
    SystemID:the system ID
    Returns:a pointer to the new DTD structure
    -
    -

    xmlNewGlobalNs ()

    xmlNsPtr	xmlNewGlobalNs		(xmlDocPtr doc, 
    const xmlChar * href,
    const xmlChar * prefix)
    -

    Creation of a Namespace, the old way using PI and without scoping DEPRECATED !!!

    -
    doc:the document carrying the namespace
    href:the URI associated
    prefix:the prefix for the namespace
    Returns:NULL this functionality had been removed
    -
    -

    xmlNewNode ()

    xmlNodePtr	xmlNewNode		(xmlNsPtr ns, 
    const xmlChar * name)
    -

    Creation of a new node element. @ns is optional (NULL).

    -
    ns:namespace if any
    name:the node name
    Returns:a pointer to the new node object. Uses xmlStrdup() to make copy of @name.
    -
    -

    xmlNewNodeEatName ()

    xmlNodePtr	xmlNewNodeEatName	(xmlNsPtr ns, 
    xmlChar * name)
    -

    Creation of a new node element. @ns is optional (NULL).

    -
    ns:namespace if any
    name:the node name
    Returns:a pointer to the new node object, with pointer @name as new node's name. Use xmlNewNode() if a copy of @name string is is needed as new node's name.
    -
    -

    xmlNewNs ()

    xmlNsPtr	xmlNewNs		(xmlNodePtr node, 
    const xmlChar * href,
    const xmlChar * prefix)
    -

    Creation of a new Namespace. This function will refuse to create a namespace with a similar prefix than an existing one present on this node. We use href==NULL in the case of an element creation where the namespace was not defined.

    -
    node:the element carrying the namespace
    href:the URI associated
    prefix:the prefix for the namespace
    Returns:a new namespace pointer or NULL
    -
    -

    xmlNewNsProp ()

    xmlAttrPtr	xmlNewNsProp		(xmlNodePtr node, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * value)
    -

    Create a new property tagged with a namespace and carried by a node.

    -
    node:the holding node
    ns:the namespace
    name:the name of the attribute
    value:the value of the attribute
    Returns:a pointer to the attribute
    -
    -

    xmlNewNsPropEatName ()

    xmlAttrPtr	xmlNewNsPropEatName	(xmlNodePtr node, 
    xmlNsPtr ns,
    xmlChar * name,
    const xmlChar * value)
    -

    Create a new property tagged with a namespace and carried by a node.

    -
    node:the holding node
    ns:the namespace
    name:the name of the attribute
    value:the value of the attribute
    Returns:a pointer to the attribute
    -
    -

    xmlNewPI ()

    xmlNodePtr	xmlNewPI		(const xmlChar * name, 
    const xmlChar * content)
    -

    Creation of a processing instruction element. Use xmlDocNewPI preferably to get string interning

    -
    name:the processing instruction name
    content:the PI content
    Returns:a pointer to the new node object.
    -
    -

    xmlNewProp ()

    xmlAttrPtr	xmlNewProp		(xmlNodePtr node, 
    const xmlChar * name,
    const xmlChar * value)
    -

    Create a new property carried by a node.

    -
    node:the holding node
    name:the name of the attribute
    value:the value of the attribute
    Returns:a pointer to the attribute
    -
    -

    xmlNewReference ()

    xmlNodePtr	xmlNewReference		(xmlDocPtr doc, 
    const xmlChar * name)
    -

    Creation of a new reference node.

    -
    doc:the document
    name:the reference name, or the reference string with & and ;
    Returns:a pointer to the new node object.
    -
    -

    xmlNewText ()

    xmlNodePtr	xmlNewText		(const xmlChar * content)
    -

    Creation of a new text node.

    -
    content:the text content
    Returns:a pointer to the new node object.
    -
    -

    xmlNewTextChild ()

    xmlNodePtr	xmlNewTextChild		(xmlNodePtr parent, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * content)
    -

    Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (NULL). If @ns is NULL, the newly created element inherits the namespace of @parent. If @content is non NULL, a child TEXT node will be created containing the string @content. NOTE: Use xmlNewChild() if @content will contain entities that need to be preserved. Use this function, xmlNewTextChild(), if you need to ensure that reserved XML chars that might appear in @content, such as the ampersand, greater-than or less-than signs, are automatically replaced by their XML escaped entity representations.

    -
    parent:the parent node
    ns:a namespace if any
    name:the name of the child
    content:the text content of the child if any.
    Returns:a pointer to the new node object.
    -
    -

    xmlNewTextLen ()

    xmlNodePtr	xmlNewTextLen		(const xmlChar * content, 
    int len)
    -

    Creation of a new text node with an extra parameter for the content's length

    -
    content:the text content
    len:the text len.
    Returns:a pointer to the new node object.
    -
    -

    xmlNodeAddContent ()

    void	xmlNodeAddContent		(xmlNodePtr cur, 
    const xmlChar * content)
    -

    Append the extra substring to the node content.

    -
    cur:the node being modified
    content:extra content
    -
    -

    xmlNodeAddContentLen ()

    void	xmlNodeAddContentLen		(xmlNodePtr cur, 
    const xmlChar * content,
    int len)
    -

    Append the extra substring to the node content.

    -
    cur:the node being modified
    content:extra content
    len:the size of @content
    -
    -

    xmlNodeBufGetContent ()

    int	xmlNodeBufGetContent		(xmlBufferPtr buffer, 
    xmlNodePtr cur)
    -

    Read the value of a node @cur, this can be either the text carried directly by this node if it's a TEXT node or the aggregate string of the values carried by this node child's (TEXT and ENTITY_REF). Entity references are substituted. Fills up the buffer @buffer with this value

    -
    buffer:a buffer
    cur:the node being read
    Returns:0 in case of success and -1 in case of error.
    -
    -

    xmlNodeDump ()

    int	xmlNodeDump			(xmlBufferPtr buf, 
    xmlDocPtr doc,
    xmlNodePtr cur,
    int level,
    int format)
    -

    Dump an XML node, recursive behaviour,children are printed too. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called

    -
    buf:the XML buffer output
    doc:the document
    cur:the current node
    level:the imbrication level for indenting
    format:is formatting allowed
    Returns:the number of bytes written to the buffer or -1 in case of error
    -
    -

    xmlNodeDumpOutput ()

    void	xmlNodeDumpOutput		(xmlOutputBufferPtr buf, 
    xmlDocPtr doc,
    xmlNodePtr cur,
    int level,
    int format,
    const char * encoding)
    -

    Dump an XML node, recursive behaviour, children are printed too. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called

    -
    buf:the XML buffer output
    doc:the document
    cur:the current node
    level:the imbrication level for indenting
    format:is formatting allowed
    encoding:an optional encoding string
    -
    -

    xmlNodeGetBase ()

    xmlChar *	xmlNodeGetBase		(xmlDocPtr doc, 
    xmlNodePtr cur)
    -

    Searches for the BASE URL. The code should work on both XML and HTML document even if base mechanisms are completely different. It returns the base as defined in RFC 2396 sections 5.1.1. Base URI within Document Content and 5.1.2. Base URI from the Encapsulating Entity However it does not return the document base (5.1.3), use xmlDocumentGetBase() for this

    -
    doc:the document the node pertains to
    cur:the node being checked
    Returns:a pointer to the base URL, or NULL if not found It's up to the caller to free the memory with xmlFree().
    -
    -

    xmlNodeGetContent ()

    xmlChar *	xmlNodeGetContent	(xmlNodePtr cur)
    -

    Read the value of a node, this can be either the text carried directly by this node if it's a TEXT node or the aggregate string of the values carried by this node child's (TEXT and ENTITY_REF). Entity references are substituted.

    -
    cur:the node being read
    Returns:a new #xmlChar * or NULL if no content is available. It's up to the caller to free the memory with xmlFree().
    -
    -

    xmlNodeGetLang ()

    xmlChar *	xmlNodeGetLang		(xmlNodePtr cur)
    -

    Searches the language of a node, i.e. the values of the xml:lang attribute or the one carried by the nearest ancestor.

    -
    cur:the node being checked
    Returns:a pointer to the lang value, or NULL if not found It's up to the caller to free the memory with xmlFree().
    -
    -

    xmlNodeGetSpacePreserve ()

    int	xmlNodeGetSpacePreserve		(xmlNodePtr cur)
    -

    Searches the space preserving behaviour of a node, i.e. the values of the xml:space attribute or the one carried by the nearest ancestor.

    -
    cur:the node being checked
    Returns:-1 if xml:space is not inherited, 0 if "default", 1 if "preserve"
    -
    -

    xmlNodeIsText ()

    int	xmlNodeIsText			(xmlNodePtr node)
    -

    Is this node a Text node ?

    -
    node:the node
    Returns:1 yes, 0 no
    -
    -

    xmlNodeListGetRawString ()

    xmlChar *	xmlNodeListGetRawString	(xmlDocPtr doc, 
    xmlNodePtr list,
    int inLine)
    -

    Builds the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs, contrary to xmlNodeListGetString() this function doesn't do any character encoding handling.

    -
    doc:the document
    list:a Node list
    inLine:should we replace entity contents or show their external form
    Returns:a pointer to the string copy, the caller must free it with xmlFree().
    -
    -

    xmlNodeListGetString ()

    xmlChar *	xmlNodeListGetString	(xmlDocPtr doc, 
    xmlNodePtr list,
    int inLine)
    -

    Build the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs

    -
    doc:the document
    list:a Node list
    inLine:should we replace entity contents or show their external form
    Returns:a pointer to the string copy, the caller must free it with xmlFree().
    -
    -

    xmlNodeSetBase ()

    void	xmlNodeSetBase			(xmlNodePtr cur, 
    const xmlChar * uri)
    -

    Set (or reset) the base URI of a node, i.e. the value of the xml:base attribute.

    -
    cur:the node being changed
    uri:the new base URI
    -
    -

    xmlNodeSetContent ()

    void	xmlNodeSetContent		(xmlNodePtr cur, 
    const xmlChar * content)
    -

    Replace the content of a node.

    -
    cur:the node being modified
    content:the new value of the content
    -
    -

    xmlNodeSetContentLen ()

    void	xmlNodeSetContentLen		(xmlNodePtr cur, 
    const xmlChar * content,
    int len)
    -

    Replace the content of a node.

    -
    cur:the node being modified
    content:the new value of the content
    len:the size of @content
    -
    -

    xmlNodeSetLang ()

    void	xmlNodeSetLang			(xmlNodePtr cur, 
    const xmlChar * lang)
    -

    Set the language of a node, i.e. the values of the xml:lang attribute.

    -
    cur:the node being changed
    lang:the language description
    -
    -

    xmlNodeSetName ()

    void	xmlNodeSetName			(xmlNodePtr cur, 
    const xmlChar * name)
    -

    Set (or reset) the name of a node.

    -
    cur:the node being changed
    name:the new tag name
    -
    -

    xmlNodeSetSpacePreserve ()

    void	xmlNodeSetSpacePreserve		(xmlNodePtr cur, 
    int val)
    -

    Set (or reset) the space preserving behaviour of a node, i.e. the value of the xml:space attribute.

    -
    cur:the node being changed
    val:the xml:space value ("0": default, 1: "preserve")
    -
    -

    xmlReconciliateNs ()

    int	xmlReconciliateNs		(xmlDocPtr doc, 
    xmlNodePtr tree)
    -

    This function checks that all the namespaces declared within the given tree are properly declared. This is needed for example after Copy or Cut and then paste operations. The subtree may still hold pointers to namespace declarations outside the subtree or invalid/masked. As much as possible the function try to reuse the existing namespaces found in the new environment. If not possible the new namespaces are redeclared on @tree at the top of the given subtree.

    -
    doc:the document
    tree:a node defining the subtree to reconciliate
    Returns:the number of namespace declarations created or -1 in case of error.
    -
    -

    xmlRemoveProp ()

    int	xmlRemoveProp			(xmlAttrPtr cur)
    -

    Unlink and free one attribute, all the content is freed too Note this doesn't work for namespace definition attributes

    -
    cur:an attribute
    Returns:0 if success and -1 in case of error.
    -
    -

    xmlReplaceNode ()

    xmlNodePtr	xmlReplaceNode		(xmlNodePtr old, 
    xmlNodePtr cur)
    -

    Unlink the old node from its current context, prune the new one at the same place. If @cur was already inserted in a document it is first unlinked from its existing context.

    -
    old:the old node
    cur:the node
    Returns:the @old node
    -
    -

    xmlSaveFile ()

    int	xmlSaveFile			(const char * filename, 
    xmlDocPtr cur)
    -

    Dump an XML document to a file. Will use compression if compiled in and enabled. If @filename is "-" the stdout file is used.

    -
    filename:the filename (or URL)
    cur:the document
    Returns:the number of bytes written or -1 in case of failure.
    -
    -

    xmlSaveFileEnc ()

    int	xmlSaveFileEnc			(const char * filename, 
    xmlDocPtr cur,
    const char * encoding)
    -

    Dump an XML document, converting it to the given encoding

    -
    filename:the filename (or URL)
    cur:the document
    encoding:the name of an encoding (or NULL)
    Returns:the number of bytes written or -1 in case of failure.
    -
    -

    xmlSaveFileTo ()

    int	xmlSaveFileTo			(xmlOutputBufferPtr buf, 
    xmlDocPtr cur,
    const char * encoding)
    -

    Dump an XML document to an I/O buffer. Warning ! This call xmlOutputBufferClose() on buf which is not available after this call.

    -
    buf:an output I/O buffer
    cur:the document
    encoding:the encoding if any assuming the I/O layer handles the trancoding
    Returns:the number of bytes written or -1 in case of failure.
    -
    -

    xmlSaveFormatFile ()

    int	xmlSaveFormatFile		(const char * filename, 
    xmlDocPtr cur,
    int format)
    -

    Dump an XML document to a file. Will use compression if compiled in and enabled. If @filename is "-" the stdout file is used. If @format is set then the document will be indented on output. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called

    -
    filename:the filename (or URL)
    cur:the document
    format:should formatting spaces been added
    Returns:the number of bytes written or -1 in case of failure.
    -
    -

    xmlSaveFormatFileEnc ()

    int	xmlSaveFormatFileEnc		(const char * filename, 
    xmlDocPtr cur,
    const char * encoding,
    int format)
    -

    Dump an XML document to a file or an URL.

    -
    filename:the filename or URL to output
    cur:the document being saved
    encoding:the name of the encoding to use or NULL.
    format:should formatting spaces be added.
    Returns:the number of bytes written or -1 in case of error. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called
    -
    -

    xmlSaveFormatFileTo ()

    int	xmlSaveFormatFileTo		(xmlOutputBufferPtr buf, 
    xmlDocPtr cur,
    const char * encoding,
    int format)
    -

    Dump an XML document to an I/O buffer. Warning ! This call xmlOutputBufferClose() on buf which is not available after this call.

    -
    buf:an output I/O buffer
    cur:the document
    encoding:the encoding if any assuming the I/O layer handles the trancoding
    format:should formatting spaces been added
    Returns:the number of bytes written or -1 in case of failure.
    -
    -

    xmlSearchNs ()

    xmlNsPtr	xmlSearchNs		(xmlDocPtr doc, 
    xmlNodePtr node,
    const xmlChar * nameSpace)
    -

    Search a Ns registered under a given name space for a document. recurse on the parents until it finds the defined namespace or return NULL otherwise. @nameSpace can be NULL, this is a search for the default namespace. We don't allow to cross entities boundaries. If you don't declare the namespace within those you will be in troubles !!! A warning is generated to cover this case.

    -
    doc:the document
    node:the current node
    nameSpace:the namespace prefix
    Returns:the namespace pointer or NULL.
    -
    -

    xmlSearchNsByHref ()

    xmlNsPtr	xmlSearchNsByHref	(xmlDocPtr doc, 
    xmlNodePtr node,
    const xmlChar * href)
    -

    Search a Ns aliasing a given URI. Recurse on the parents until it finds the defined namespace or return NULL otherwise.

    -
    doc:the document
    node:the current node
    href:the namespace value
    Returns:the namespace pointer or NULL.
    -
    -

    xmlSetBufferAllocationScheme ()

    void	xmlSetBufferAllocationScheme	(xmlBufferAllocationScheme scheme)
    -

    Set the buffer allocation method. Types are XML_BUFFER_ALLOC_EXACT - use exact sizes, keeps memory usage down XML_BUFFER_ALLOC_DOUBLEIT - double buffer when extra needed, improves performance

    -
    scheme:allocation method to use
    -
    - -
    -

    xmlSetDocCompressMode ()

    void	xmlSetDocCompressMode		(xmlDocPtr doc, 
    int mode)
    -

    set the compression ratio for a document, ZLIB based Correct values: 0 (uncompressed) to 9 (max compression)

    -
    doc:the document
    mode:the compression ratio
    -
    -

    xmlSetListDoc ()

    void	xmlSetListDoc			(xmlNodePtr list, 
    xmlDocPtr doc)
    -

    update all nodes in the list to point to the right document

    -
    list:the first element
    doc:the document
    -
    -

    xmlSetNs ()

    void	xmlSetNs			(xmlNodePtr node, 
    xmlNsPtr ns)
    -

    Associate a namespace to a node, a posteriori.

    -
    node:a node in the document
    ns:a namespace pointer
    -
    -

    xmlSetNsProp ()

    xmlAttrPtr	xmlSetNsProp		(xmlNodePtr node, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * value)
    -

    Set (or reset) an attribute carried by a node. The ns structure must be in scope, this is not checked

    -
    node:the node
    ns:the namespace definition
    name:the attribute name
    value:the attribute value
    Returns:the attribute pointer.
    -
    -

    xmlSetProp ()

    xmlAttrPtr	xmlSetProp		(xmlNodePtr node, 
    const xmlChar * name,
    const xmlChar * value)
    -

    Set (or reset) an attribute carried by a node. If @name has a prefix, then the corresponding namespace-binding will be used, if in scope; it is an error it there's no such ns-binding for the prefix in scope.

    -
    node:the node
    name:the attribute name (a QName)
    value:the attribute value
    Returns:the attribute pointer.
    -
    -

    xmlSetTreeDoc ()

    void	xmlSetTreeDoc			(xmlNodePtr tree, 
    xmlDocPtr doc)
    -

    update all nodes under the tree to point to the right document

    -
    tree:the top element
    doc:the document
    -
    -

    xmlSplitQName2 ()

    xmlChar *	xmlSplitQName2		(const xmlChar * name, 
    xmlChar ** prefix)
    -

    parse an XML qualified name string [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName

    -
    name:the full QName
    prefix:a xmlChar **
    Returns:NULL if not a QName, otherwise the local part, and prefix is updated to get the Prefix if any.
    -
    -

    xmlSplitQName3 ()

    const xmlChar *	xmlSplitQName3		(const xmlChar * name, 
    int * len)
    -

    parse an XML qualified name string,i

    -
    name:the full QName
    len:an int *
    Returns:NULL if it is not a Qualified Name, otherwise, update len with the lenght in byte of the prefix and return a pointer to the start of the name without the prefix
    -
    -

    xmlStringGetNodeList ()

    xmlNodePtr	xmlStringGetNodeList	(xmlDocPtr doc, 
    const xmlChar * value)
    -

    Parse the value string and build the node list associated. Should produce a flat tree with only TEXTs and ENTITY_REFs.

    -
    doc:the document
    value:the value of the attribute
    Returns:a pointer to the first child
    -
    -

    xmlStringLenGetNodeList ()

    xmlNodePtr	xmlStringLenGetNodeList	(xmlDocPtr doc, 
    const xmlChar * value,
    int len)
    -

    Parse the value string and build the node list associated. Should produce a flat tree with only TEXTs and ENTITY_REFs.

    -
    doc:the document
    value:the value of the text
    len:the length of the string value
    Returns:a pointer to the first child
    -
    -

    xmlTextConcat ()

    int	xmlTextConcat			(xmlNodePtr node, 
    const xmlChar * content,
    int len)
    -

    Concat the given string at the end of the existing node content

    -
    node:the node
    content:the content
    len:@content length
    Returns:-1 in case of error, 0 otherwise
    -
    -

    xmlTextMerge ()

    xmlNodePtr	xmlTextMerge		(xmlNodePtr first, 
    xmlNodePtr second)
    -

    Merge two text nodes into one

    -
    first:the first text node
    second:the second text node being merged
    Returns:the first text node augmented
    -
    -

    xmlUnlinkNode ()

    void	xmlUnlinkNode			(xmlNodePtr cur)
    -

    Unlink a node from it's current context, the node is not freed

    -
    cur:the node
    -
    -

    xmlUnsetNsProp ()

    int	xmlUnsetNsProp			(xmlNodePtr node, 
    xmlNsPtr ns,
    const xmlChar * name)
    -

    Remove an attribute carried by a node.

    -
    node:the node
    ns:the namespace definition
    name:the attribute name
    Returns:0 if successful, -1 if not found
    -
    -

    xmlUnsetProp ()

    int	xmlUnsetProp			(xmlNodePtr node, 
    const xmlChar * name)
    -

    Remove an attribute carried by a node. This handles only attributes in no namespace.

    -
    node:the node
    name:the attribute name
    Returns:0 if successful, -1 if not found
    -
    -

    xmlValidateNCName ()

    int	xmlValidateNCName		(const xmlChar * value, 
    int space)
    -

    Check that a value conforms to the lexical space of NCName

    -
    value:the value to check
    space:allow spaces in front and end of the string
    Returns:0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.
    -
    -

    xmlValidateNMToken ()

    int	xmlValidateNMToken		(const xmlChar * value, 
    int space)
    -

    Check that a value conforms to the lexical space of NMToken

    -
    value:the value to check
    space:allow spaces in front and end of the string
    Returns:0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.
    -
    -

    xmlValidateName ()

    int	xmlValidateName			(const xmlChar * value, 
    int space)
    -

    Check that a value conforms to the lexical space of Name

    -
    value:the value to check
    space:allow spaces in front and end of the string
    Returns:0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.
    -
    -

    xmlValidateQName ()

    int	xmlValidateQName		(const xmlChar * value, 
    int space)
    -

    Check that a value conforms to the lexical space of QName

    -
    value:the value to check
    space:allow spaces in front and end of the string
    Returns:0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-uri.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-uri.html deleted file mode 100644 index 22f724ed89..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-uri.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - uri: library of generic URI related routines - - - - - - - - - - - - - - - - -

    - uri -

    -

    uri - library of generic URI related routines

    -

    library of generic URI related routines Implements RFC 2396

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef struct _xmlURI xmlURI;
    -typedef xmlURI * xmlURIPtr;
    -int	xmlNormalizeURIPath		(char * path);
    -void	xmlPrintURI			(FILE * stream, 
    xmlURIPtr uri); -xmlURIPtr xmlParseURIRaw (const char * str,
    int raw); -char * xmlURIUnescapeString (const char * str,
    int len,
    char * target); -xmlURIPtr xmlParseURI (const char * str); -xmlURIPtr xmlCreateURI (void); -xmlChar * xmlURIEscapeStr (const xmlChar * str,
    const xmlChar * list); -xmlChar * xmlCanonicPath (const xmlChar * path); -void xmlFreeURI (xmlURIPtr uri); -int xmlParseURIReference (xmlURIPtr uri,
    const char * str); -xmlChar * xmlBuildRelativeURI (const xmlChar * URI,
    const xmlChar * base); -xmlChar * xmlSaveUri (xmlURIPtr uri); -xmlChar * xmlURIEscape (const xmlChar * str); -xmlChar * xmlBuildURI (const xmlChar * URI,
    const xmlChar * base); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlURI

    struct _xmlURI {
    -    char *	scheme	: the URI scheme
    -    char *	opaque	: opaque part
    -    char *	authority	: the authority part
    -    char *	server	: the server part
    -    char *	user	: the user part
    -    int	port	: the port number
    -    char *	path	: the path string
    -    char *	query	: the query string
    -    char *	fragment	: the fragment identifier
    -    int	cleanup	: parsing potentially unclean URI
    -} xmlURI;
    -

    -

    -
    -

    Typedef xmlURIPtr

    xmlURI * xmlURIPtr;
    -

    -

    -
    -

    xmlBuildRelativeURI ()

    xmlChar *	xmlBuildRelativeURI	(const xmlChar * URI, 
    const xmlChar * base)
    -

    Expresses the URI of the reference in terms relative to the base. Some examples of this operation include: base = "http://site1.com/docs/book1.html" URI input URI returned docs/pic1.gif pic1.gif docs/img/pic1.gif img/pic1.gif img/pic1.gif ../img/pic1.gif http://site1.com/docs/pic1.gif pic1.gif http://site2.com/docs/pic1.gif http://site2.com/docs/pic1.gif base = "docs/book1.html" URI input URI returned docs/pic1.gif pic1.gif docs/img/pic1.gif img/pic1.gif img/pic1.gif ../img/pic1.gif http://site1.com/docs/pic1.gif http://site1.com/docs/pic1.gif Note: if the URI reference is really wierd or complicated, it may be worthwhile to first convert it into a "nice" one by calling xmlBuildURI (using 'base') before calling this routine, since this routine (for reasonable efficiency) assumes URI has already been through some validation.

    -
    URI:the URI reference under consideration
    base:the base value
    Returns:a new URI string (to be freed by the caller) or NULL in case error.
    -
    -

    xmlBuildURI ()

    xmlChar *	xmlBuildURI		(const xmlChar * URI, 
    const xmlChar * base)
    -

    Computes he final URI of the reference done by checking that the given URI is valid, and building the final URI using the base URI. This is processed according to section 5.2 of the RFC 2396 5.2. Resolving Relative References to Absolute Form

    -
    URI:the URI instance found in the document
    base:the base value
    Returns:a new URI string (to be freed by the caller) or NULL in case of error.
    -
    -

    xmlCanonicPath ()

    xmlChar *	xmlCanonicPath		(const xmlChar * path)
    -

    Constructs a canonic path from the specified path.

    -
    path:the resource locator in a filesystem notation
    Returns:a new canonic path, or a duplicate of the path parameter if the construction fails. The caller is responsible for freeing the memory occupied by the returned string. If there is insufficient memory available, or the argument is NULL, the function returns NULL.
    -
    -

    xmlCreateURI ()

    xmlURIPtr	xmlCreateURI		(void)
    -

    Simply creates an empty xmlURI

    -
    Returns:the new structure or NULL in case of error
    -
    -

    xmlFreeURI ()

    void	xmlFreeURI			(xmlURIPtr uri)
    -

    Free up the xmlURI struct

    -
    uri:pointer to an xmlURI
    -
    - -
    -

    xmlParseURI ()

    xmlURIPtr	xmlParseURI		(const char * str)
    -

    Parse an URI URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]

    -
    str:the URI string to analyze
    Returns:a newly built xmlURIPtr or NULL in case of error
    -
    -

    xmlParseURIRaw ()

    xmlURIPtr	xmlParseURIRaw		(const char * str, 
    int raw)
    -

    Parse an URI but allows to keep intact the original fragments. URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]

    -
    str:the URI string to analyze
    raw:if 1 unescaping of URI pieces are disabled
    Returns:a newly built xmlURIPtr or NULL in case of error
    -
    -

    xmlParseURIReference ()

    int	xmlParseURIReference		(xmlURIPtr uri, 
    const char * str)
    -

    Parse an URI reference string and fills in the appropriate fields of the @uri structure URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]

    -
    uri:pointer to an URI structure
    str:the string to analyze
    Returns:0 or the error code
    -
    -

    xmlPrintURI ()

    void	xmlPrintURI			(FILE * stream, 
    xmlURIPtr uri)
    -

    Prints the URI in the stream @stream.

    -
    stream:a FILE* for the output
    uri:pointer to an xmlURI
    -
    -

    xmlSaveUri ()

    xmlChar *	xmlSaveUri		(xmlURIPtr uri)
    -

    Save the URI as an escaped string

    -
    uri:pointer to an xmlURI
    Returns:a new string (to be deallocated by caller)
    -
    -

    xmlURIEscape ()

    xmlChar *	xmlURIEscape		(const xmlChar * str)
    -

    Escaping routine, does not do validity checks ! It will try to escape the chars needing this, but this is heuristic based it's impossible to be sure.

    -
    str:the string of the URI to escape
    Returns:an copy of the string, but escaped 25 May 2001 Uses xmlParseURI and xmlURIEscapeStr to try to escape correctly according to RFC2396. - Carl Douglas
    -
    -

    xmlURIEscapeStr ()

    xmlChar *	xmlURIEscapeStr		(const xmlChar * str, 
    const xmlChar * list)
    -

    This routine escapes a string to hex, ignoring reserved characters (a-z) and the characters in the exception list.

    -
    str:string to escape
    list:exception list string of chars not to escape
    Returns:a new escaped string or NULL in case of error.
    -
    - -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-valid.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-valid.html deleted file mode 100644 index 3b23e6708c..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-valid.html +++ /dev/null @@ -1,528 +0,0 @@ - - - - - valid: The DTD validation - - - - - - - - - - - - - - - - -

    - valid -

    -

    valid - The DTD validation

    -

    API for the DTD handling and the validity checking

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    #define XML_CTXT_FINISH_DTD_0;
    -#define XML_CTXT_FINISH_DTD_1;
    -typedef struct _xmlHashTable xmlElementTable;
    -typedef xmlValidState * xmlValidStatePtr;
    -typedef xmlIDTable * xmlIDTablePtr;
    -typedef xmlNotationTable * xmlNotationTablePtr;
    -typedef struct _xmlValidCtxt xmlValidCtxt;
    -typedef xmlElementTable * xmlElementTablePtr;
    -typedef xmlRefTable * xmlRefTablePtr;
    -typedef struct _xmlHashTable xmlNotationTable;
    -typedef struct _xmlHashTable xmlRefTable;
    -typedef struct _xmlValidState xmlValidState;
    -typedef struct _xmlHashTable xmlAttributeTable;
    -typedef xmlAttributeTable * xmlAttributeTablePtr;
    -typedef struct _xmlHashTable xmlIDTable;
    -typedef xmlValidCtxt * xmlValidCtxtPtr;
    -void	xmlFreeNotationTable		(xmlNotationTablePtr table);
    -int	xmlValidateNameValue		(const xmlChar * value);
    -void	xmlSnprintfElementContent	(char * buf, 
    int size,
    xmlElementContentPtr content,
    int englob); -xmlRefPtr xmlAddRef (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc,
    const xmlChar * value,
    xmlAttrPtr attr); -void xmlDumpAttributeDecl (xmlBufferPtr buf,
    xmlAttributePtr attr); -int xmlValidateDocumentFinal (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc); -int xmlValidateDtdFinal (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc); -void xmlDumpAttributeTable (xmlBufferPtr buf,
    xmlAttributeTablePtr table); -xmlEnumerationPtr xmlCreateEnumeration (const xmlChar * name); -int xmlValidateOneAttribute (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc,
    xmlNodePtr elem,
    xmlAttrPtr attr,
    const xmlChar * value); -int xmlValidGetValidElements (xmlNode * prev,
    xmlNode * next,
    const xmlChar ** names,
    int max); -int xmlIsMixedElement (xmlDocPtr doc,
    const xmlChar * name); -void xmlDumpNotationDecl (xmlBufferPtr buf,
    xmlNotationPtr nota); -int xmlIsID (xmlDocPtr doc,
    xmlNodePtr elem,
    xmlAttrPtr attr); -xmlAttributePtr xmlGetDtdQAttrDesc (xmlDtdPtr dtd,
    const xmlChar * elem,
    const xmlChar * name,
    const xmlChar * prefix); -xmlElementContentPtr xmlNewDocElementContent (xmlDocPtr doc,
    const xmlChar * name,
    xmlElementContentType type); -void xmlFreeAttributeTable (xmlAttributeTablePtr table); -typedef void xmlValidityErrorFunc (void * ctx,
    const char * msg,
    ... ...); -int xmlValidateAttributeDecl (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc,
    xmlAttributePtr attr); -xmlElementPtr xmlGetDtdQElementDesc (xmlDtdPtr dtd,
    const xmlChar * name,
    const xmlChar * prefix); -xmlNotationTablePtr xmlCopyNotationTable (xmlNotationTablePtr table); -int xmlValidateDocument (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc); -int xmlValidGetPotentialChildren (xmlElementContent * ctree,
    const xmlChar ** names,
    int * len,
    int max); -xmlNotationPtr xmlAddNotationDecl (xmlValidCtxtPtr ctxt,
    xmlDtdPtr dtd,
    const xmlChar * name,
    const xmlChar * PublicID,
    const xmlChar * SystemID); -int xmlValidateElementDecl (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc,
    xmlElementPtr elem); -xmlAttributePtr xmlAddAttributeDecl (xmlValidCtxtPtr ctxt,
    xmlDtdPtr dtd,
    const xmlChar * elem,
    const xmlChar * name,
    const xmlChar * ns,
    xmlAttributeType type,
    xmlAttributeDefault def,
    const xmlChar * defaultValue,
    xmlEnumerationPtr tree); -xmlAttrPtr xmlGetID (xmlDocPtr doc,
    const xmlChar * ID); -xmlElementTablePtr xmlCopyElementTable (xmlElementTablePtr table); -xmlListPtr xmlGetRefs (xmlDocPtr doc,
    const xmlChar * ID); -void xmlSprintfElementContent (char * buf,
    xmlElementContentPtr content,
    int englob); -int xmlValidateOneElement (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc,
    xmlNodePtr elem); -int xmlValidateNmtokenValue (const xmlChar * value); -void xmlDumpElementTable (xmlBufferPtr buf,
    xmlElementTablePtr table); -xmlChar * xmlValidCtxtNormalizeAttributeValue (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * name,
    const xmlChar * value); -void xmlDumpElementDecl (xmlBufferPtr buf,
    xmlElementPtr elem); -void xmlFreeElementContent (xmlElementContentPtr cur); -int xmlValidateOneNamespace (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * prefix,
    xmlNsPtr ns,
    const xmlChar * value); -int xmlValidatePushElement (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * qname); -int xmlIsRef (xmlDocPtr doc,
    xmlNodePtr elem,
    xmlAttrPtr attr); -xmlElementContentPtr xmlCopyDocElementContent (xmlDocPtr doc,
    xmlElementContentPtr cur); -xmlIDPtr xmlAddID (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc,
    const xmlChar * value,
    xmlAttrPtr attr); -void xmlFreeRefTable (xmlRefTablePtr table); -int xmlRemoveID (xmlDocPtr doc,
    xmlAttrPtr attr); -void xmlFreeElementTable (xmlElementTablePtr table); -void xmlFreeIDTable (xmlIDTablePtr table); -void xmlFreeValidCtxt (xmlValidCtxtPtr cur); -xmlAttributeTablePtr xmlCopyAttributeTable (xmlAttributeTablePtr table); -xmlElementContentPtr xmlCopyElementContent (xmlElementContentPtr cur); -int xmlValidateAttributeValue (xmlAttributeType type,
    const xmlChar * value); -int xmlRemoveRef (xmlDocPtr doc,
    xmlAttrPtr attr); -typedef void xmlValidityWarningFunc (void * ctx,
    const char * msg,
    ... ...); -int xmlValidatePopElement (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * qname); -void xmlFreeEnumeration (xmlEnumerationPtr cur); -int xmlValidateNamesValue (const xmlChar * value); -xmlEnumerationPtr xmlCopyEnumeration (xmlEnumerationPtr cur); -xmlAttributePtr xmlGetDtdAttrDesc (xmlDtdPtr dtd,
    const xmlChar * elem,
    const xmlChar * name); -int xmlValidateDtd (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc,
    xmlDtdPtr dtd); -xmlValidCtxtPtr xmlNewValidCtxt (void); -void xmlDumpNotationTable (xmlBufferPtr buf,
    xmlNotationTablePtr table); -xmlElementPtr xmlAddElementDecl (xmlValidCtxtPtr ctxt,
    xmlDtdPtr dtd,
    const xmlChar * name,
    xmlElementTypeVal type,
    xmlElementContentPtr content); -xmlChar * xmlValidNormalizeAttributeValue (xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * name,
    const xmlChar * value); -int xmlValidBuildContentModel (xmlValidCtxtPtr ctxt,
    xmlElementPtr elem); -int xmlValidateElement (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc,
    xmlNodePtr elem); -int xmlValidateNotationUse (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc,
    const xmlChar * notationName); -int xmlValidateRoot (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc); -int xmlValidateNotationDecl (xmlValidCtxtPtr ctxt,
    xmlDocPtr doc,
    xmlNotationPtr nota); -xmlElementContentPtr xmlNewElementContent (const xmlChar * name,
    xmlElementContentType type); -xmlElementPtr xmlGetDtdElementDesc (xmlDtdPtr dtd,
    const xmlChar * name); -xmlNotationPtr xmlGetDtdNotationDesc (xmlDtdPtr dtd,
    const xmlChar * name); -int xmlValidatePushCData (xmlValidCtxtPtr ctxt,
    const xmlChar * data,
    int len); -int xmlValidateNmtokensValue (const xmlChar * value); -void xmlFreeDocElementContent (xmlDocPtr doc,
    xmlElementContentPtr cur); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro XML_CTXT_FINISH_DTD_0

    #define XML_CTXT_FINISH_DTD_0;
    -

    Special value for finishDtd field when embedded in an xmlParserCtxt

    -
    -
    -

    Macro XML_CTXT_FINISH_DTD_1

    #define XML_CTXT_FINISH_DTD_1;
    -

    Special value for finishDtd field when embedded in an xmlParserCtxt

    -
    -
    -

    Structure xmlAttributeTable

    struct _xmlHashTable {
    -The content of this structure is not made public by the API.
    -} xmlAttributeTable;
    -

    -

    -
    -

    Typedef xmlAttributeTablePtr

    xmlAttributeTable * xmlAttributeTablePtr;
    -

    -

    -
    -

    Structure xmlElementTable

    struct _xmlHashTable {
    -The content of this structure is not made public by the API.
    -} xmlElementTable;
    -

    -

    -
    -

    Typedef xmlElementTablePtr

    xmlElementTable * xmlElementTablePtr;
    -

    -

    -
    -

    Structure xmlIDTable

    struct _xmlHashTable {
    -The content of this structure is not made public by the API.
    -} xmlIDTable;
    -

    -

    -
    -

    Typedef xmlIDTablePtr

    xmlIDTable * xmlIDTablePtr;
    -

    -

    -
    -

    Structure xmlNotationTable

    struct _xmlHashTable {
    -The content of this structure is not made public by the API.
    -} xmlNotationTable;
    -

    -

    -
    -

    Typedef xmlNotationTablePtr

    xmlNotationTable * xmlNotationTablePtr;
    -

    -

    -
    -

    Structure xmlRefTable

    struct _xmlHashTable {
    -The content of this structure is not made public by the API.
    -} xmlRefTable;
    -

    -

    -
    -

    Typedef xmlRefTablePtr

    xmlRefTable * xmlRefTablePtr;
    -

    -

    -
    -

    Structure xmlValidCtxt

    struct _xmlValidCtxt {
    -    void *	userData	: user specific data block
    -    xmlValidityErrorFunc	error	: the callback in case of errors
    -    xmlValidityWarningFunc	warning	: the callback in case of warning Node analysis stack used when validat
    -    xmlNodePtr	node	: Current parsed Node
    -    int	nodeNr	: Depth of the parsing stack
    -    int	nodeMax	: Max depth of the parsing stack
    -    xmlNodePtr *	nodeTab	: array of nodes
    -    unsigned int	finishDtd	: finished validating the Dtd ?
    -    xmlDocPtr	doc	: the document
    -    int	valid	: temporary validity check result state state used for non-determinist
    -    xmlValidState *	vstate	: current state
    -    int	vstateNr	: Depth of the validation stack
    -    int	vstateMax	: Max depth of the validation stack
    -    xmlValidState *	vstateTab	: array of validation states
    -    xmlAutomataPtr	am	: the automata
    -    xmlAutomataStatePtr	state	: used to build the automata
    -    void *	am
    -    void *	state
    -} xmlValidCtxt;
    -

    -

    -
    -

    Typedef xmlValidCtxtPtr

    xmlValidCtxt * xmlValidCtxtPtr;
    -

    -

    -
    -

    Structure xmlValidState

    struct _xmlValidState {
    -The content of this structure is not made public by the API.
    -} xmlValidState;
    -

    -

    -
    -

    Typedef xmlValidStatePtr

    xmlValidState * xmlValidStatePtr;
    -

    -

    -
    - -
    -
    -
    -

    xmlAddAttributeDecl ()

    xmlAttributePtr	xmlAddAttributeDecl	(xmlValidCtxtPtr ctxt, 
    xmlDtdPtr dtd,
    const xmlChar * elem,
    const xmlChar * name,
    const xmlChar * ns,
    xmlAttributeType type,
    xmlAttributeDefault def,
    const xmlChar * defaultValue,
    xmlEnumerationPtr tree)
    -

    Register a new attribute declaration Note that @tree becomes the ownership of the DTD

    -
    ctxt:the validation context
    dtd:pointer to the DTD
    elem:the element name
    name:the attribute name
    ns:the attribute namespace prefix
    type:the attribute type
    def:the attribute default type
    defaultValue:the attribute default value
    tree:if it's an enumeration, the associated list
    Returns:NULL if not new, otherwise the attribute decl
    -
    -

    xmlAddElementDecl ()

    xmlElementPtr	xmlAddElementDecl	(xmlValidCtxtPtr ctxt, 
    xmlDtdPtr dtd,
    const xmlChar * name,
    xmlElementTypeVal type,
    xmlElementContentPtr content)
    -

    Register a new element declaration

    -
    ctxt:the validation context
    dtd:pointer to the DTD
    name:the entity name
    type:the element type
    content:the element content tree or NULL
    Returns:NULL if not, otherwise the entity
    -
    -

    xmlAddID ()

    xmlIDPtr	xmlAddID		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    const xmlChar * value,
    xmlAttrPtr attr)
    -

    Register a new id declaration

    -
    ctxt:the validation context
    doc:pointer to the document
    value:the value name
    attr:the attribute holding the ID
    Returns:NULL if not, otherwise the new xmlIDPtr
    -
    -

    xmlAddNotationDecl ()

    xmlNotationPtr	xmlAddNotationDecl	(xmlValidCtxtPtr ctxt, 
    xmlDtdPtr dtd,
    const xmlChar * name,
    const xmlChar * PublicID,
    const xmlChar * SystemID)
    -

    Register a new notation declaration

    -
    ctxt:the validation context
    dtd:pointer to the DTD
    name:the entity name
    PublicID:the public identifier or NULL
    SystemID:the system identifier or NULL
    Returns:NULL if not, otherwise the entity
    -
    -

    xmlAddRef ()

    xmlRefPtr	xmlAddRef		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    const xmlChar * value,
    xmlAttrPtr attr)
    -

    Register a new ref declaration

    -
    ctxt:the validation context
    doc:pointer to the document
    value:the value name
    attr:the attribute holding the Ref
    Returns:NULL if not, otherwise the new xmlRefPtr
    -
    -

    xmlCopyAttributeTable ()

    xmlAttributeTablePtr	xmlCopyAttributeTable	(xmlAttributeTablePtr table)
    -

    Build a copy of an attribute table.

    -
    table:An attribute table
    Returns:the new xmlAttributeTablePtr or NULL in case of error.
    -
    -

    xmlCopyDocElementContent ()

    xmlElementContentPtr	xmlCopyDocElementContent	(xmlDocPtr doc, 
    xmlElementContentPtr cur)
    -

    Build a copy of an element content description.

    -
    doc:the document owning the element declaration
    cur:An element content pointer.
    Returns:the new xmlElementContentPtr or NULL in case of error.
    -
    -

    xmlCopyElementContent ()

    xmlElementContentPtr	xmlCopyElementContent	(xmlElementContentPtr cur)
    -

    Build a copy of an element content description. Deprecated, use xmlCopyDocElementContent instead

    -
    cur:An element content pointer.
    Returns:the new xmlElementContentPtr or NULL in case of error.
    -
    -

    xmlCopyElementTable ()

    xmlElementTablePtr	xmlCopyElementTable	(xmlElementTablePtr table)
    -

    Build a copy of an element table.

    -
    table:An element table
    Returns:the new xmlElementTablePtr or NULL in case of error.
    -
    -

    xmlCopyEnumeration ()

    xmlEnumerationPtr	xmlCopyEnumeration	(xmlEnumerationPtr cur)
    -

    Copy an enumeration attribute node (recursive).

    -
    cur:the tree to copy.
    Returns:the xmlEnumerationPtr just created or NULL in case of error.
    -
    -

    xmlCopyNotationTable ()

    xmlNotationTablePtr	xmlCopyNotationTable	(xmlNotationTablePtr table)
    -

    Build a copy of a notation table.

    -
    table:A notation table
    Returns:the new xmlNotationTablePtr or NULL in case of error.
    -
    -

    xmlCreateEnumeration ()

    xmlEnumerationPtr	xmlCreateEnumeration	(const xmlChar * name)
    -

    create and initialize an enumeration attribute node.

    -
    name:the enumeration name or NULL
    Returns:the xmlEnumerationPtr just created or NULL in case of error.
    -
    -

    xmlDumpAttributeDecl ()

    void	xmlDumpAttributeDecl		(xmlBufferPtr buf, 
    xmlAttributePtr attr)
    -

    This will dump the content of the attribute declaration as an XML DTD definition

    -
    buf:the XML buffer output
    attr:An attribute declaration
    -
    -

    xmlDumpAttributeTable ()

    void	xmlDumpAttributeTable		(xmlBufferPtr buf, 
    xmlAttributeTablePtr table)
    -

    This will dump the content of the attribute table as an XML DTD definition

    -
    buf:the XML buffer output
    table:An attribute table
    -
    -

    xmlDumpElementDecl ()

    void	xmlDumpElementDecl		(xmlBufferPtr buf, 
    xmlElementPtr elem)
    -

    This will dump the content of the element declaration as an XML DTD definition

    -
    buf:the XML buffer output
    elem:An element table
    -
    -

    xmlDumpElementTable ()

    void	xmlDumpElementTable		(xmlBufferPtr buf, 
    xmlElementTablePtr table)
    -

    This will dump the content of the element table as an XML DTD definition

    -
    buf:the XML buffer output
    table:An element table
    -
    -

    xmlDumpNotationDecl ()

    void	xmlDumpNotationDecl		(xmlBufferPtr buf, 
    xmlNotationPtr nota)
    -

    This will dump the content the notation declaration as an XML DTD definition

    -
    buf:the XML buffer output
    nota:A notation declaration
    -
    -

    xmlDumpNotationTable ()

    void	xmlDumpNotationTable		(xmlBufferPtr buf, 
    xmlNotationTablePtr table)
    -

    This will dump the content of the notation table as an XML DTD definition

    -
    buf:the XML buffer output
    table:A notation table
    -
    -

    xmlFreeAttributeTable ()

    void	xmlFreeAttributeTable		(xmlAttributeTablePtr table)
    -

    Deallocate the memory used by an entities hash table.

    -
    table:An attribute table
    -
    -

    xmlFreeDocElementContent ()

    void	xmlFreeDocElementContent	(xmlDocPtr doc, 
    xmlElementContentPtr cur)
    -

    Free an element content structure. The whole subtree is removed.

    -
    doc:the document owning the element declaration
    cur:the element content tree to free
    -
    -

    xmlFreeElementContent ()

    void	xmlFreeElementContent		(xmlElementContentPtr cur)
    -

    Free an element content structure. The whole subtree is removed. Deprecated, use xmlFreeDocElementContent instead

    -
    cur:the element content tree to free
    -
    -

    xmlFreeElementTable ()

    void	xmlFreeElementTable		(xmlElementTablePtr table)
    -

    Deallocate the memory used by an element hash table.

    -
    table:An element table
    -
    -

    xmlFreeEnumeration ()

    void	xmlFreeEnumeration		(xmlEnumerationPtr cur)
    -

    free an enumeration attribute node (recursive).

    -
    cur:the tree to free.
    -
    -

    xmlFreeIDTable ()

    void	xmlFreeIDTable			(xmlIDTablePtr table)
    -

    Deallocate the memory used by an ID hash table.

    -
    table:An id table
    -
    -

    xmlFreeNotationTable ()

    void	xmlFreeNotationTable		(xmlNotationTablePtr table)
    -

    Deallocate the memory used by an entities hash table.

    -
    table:An notation table
    -
    -

    xmlFreeRefTable ()

    void	xmlFreeRefTable			(xmlRefTablePtr table)
    -

    Deallocate the memory used by an Ref hash table.

    -
    table:An ref table
    -
    -

    xmlFreeValidCtxt ()

    void	xmlFreeValidCtxt		(xmlValidCtxtPtr cur)
    -

    Free a validation context structure.

    -
    cur:the validation context to free
    -
    -

    xmlGetDtdAttrDesc ()

    xmlAttributePtr	xmlGetDtdAttrDesc	(xmlDtdPtr dtd, 
    const xmlChar * elem,
    const xmlChar * name)
    -

    Search the DTD for the description of this attribute on this element.

    -
    dtd:a pointer to the DtD to search
    elem:the element name
    name:the attribute name
    Returns:the xmlAttributePtr if found or NULL
    -
    -

    xmlGetDtdElementDesc ()

    xmlElementPtr	xmlGetDtdElementDesc	(xmlDtdPtr dtd, 
    const xmlChar * name)
    -

    Search the DTD for the description of this element

    -
    dtd:a pointer to the DtD to search
    name:the element name
    Returns:the xmlElementPtr if found or NULL
    -
    -

    xmlGetDtdNotationDesc ()

    xmlNotationPtr	xmlGetDtdNotationDesc	(xmlDtdPtr dtd, 
    const xmlChar * name)
    -

    Search the DTD for the description of this notation

    -
    dtd:a pointer to the DtD to search
    name:the notation name
    Returns:the xmlNotationPtr if found or NULL
    -
    -

    xmlGetDtdQAttrDesc ()

    xmlAttributePtr	xmlGetDtdQAttrDesc	(xmlDtdPtr dtd, 
    const xmlChar * elem,
    const xmlChar * name,
    const xmlChar * prefix)
    -

    Search the DTD for the description of this qualified attribute on this element.

    -
    dtd:a pointer to the DtD to search
    elem:the element name
    name:the attribute name
    prefix:the attribute namespace prefix
    Returns:the xmlAttributePtr if found or NULL
    -
    -

    xmlGetDtdQElementDesc ()

    xmlElementPtr	xmlGetDtdQElementDesc	(xmlDtdPtr dtd, 
    const xmlChar * name,
    const xmlChar * prefix)
    -

    Search the DTD for the description of this element

    -
    dtd:a pointer to the DtD to search
    name:the element name
    prefix:the element namespace prefix
    Returns:the xmlElementPtr if found or NULL
    -
    -

    xmlGetID ()

    xmlAttrPtr	xmlGetID		(xmlDocPtr doc, 
    const xmlChar * ID)
    -

    Search the attribute declaring the given ID

    -
    doc:pointer to the document
    ID:the ID value
    Returns:NULL if not found, otherwise the xmlAttrPtr defining the ID
    -
    -

    xmlGetRefs ()

    xmlListPtr	xmlGetRefs		(xmlDocPtr doc, 
    const xmlChar * ID)
    -

    Find the set of references for the supplied ID.

    -
    doc:pointer to the document
    ID:the ID value
    Returns:NULL if not found, otherwise node set for the ID.
    -
    -

    xmlIsID ()

    int	xmlIsID			(xmlDocPtr doc, 
    xmlNodePtr elem,
    xmlAttrPtr attr)
    -

    Determine whether an attribute is of type ID. In case we have DTD(s) then this is done if DTD loading has been requested. In the case of HTML documents parsed with the HTML parser, then ID detection is done systematically.

    -
    doc:the document
    elem:the element carrying the attribute
    attr:the attribute
    Returns:0 or 1 depending on the lookup result
    -
    -

    xmlIsMixedElement ()

    int	xmlIsMixedElement		(xmlDocPtr doc, 
    const xmlChar * name)
    -

    Search in the DtDs whether an element accept Mixed content (or ANY) basically if it is supposed to accept text childs

    -
    doc:the document
    name:the element name
    Returns:0 if no, 1 if yes, and -1 if no element description is available
    -
    -

    xmlIsRef ()

    int	xmlIsRef			(xmlDocPtr doc, 
    xmlNodePtr elem,
    xmlAttrPtr attr)
    -

    Determine whether an attribute is of type Ref. In case we have DTD(s) then this is simple, otherwise we use an heuristic: name Ref (upper or lowercase).

    -
    doc:the document
    elem:the element carrying the attribute
    attr:the attribute
    Returns:0 or 1 depending on the lookup result
    -
    -

    xmlNewDocElementContent ()

    xmlElementContentPtr	xmlNewDocElementContent	(xmlDocPtr doc, 
    const xmlChar * name,
    xmlElementContentType type)
    -

    Allocate an element content structure for the document.

    -
    doc:the document
    name:the subelement name or NULL
    type:the type of element content decl
    Returns:NULL if not, otherwise the new element content structure
    -
    -

    xmlNewElementContent ()

    xmlElementContentPtr	xmlNewElementContent	(const xmlChar * name, 
    xmlElementContentType type)
    -

    Allocate an element content structure. Deprecated in favor of xmlNewDocElementContent

    -
    name:the subelement name or NULL
    type:the type of element content decl
    Returns:NULL if not, otherwise the new element content structure
    -
    -

    xmlNewValidCtxt ()

    xmlValidCtxtPtr	xmlNewValidCtxt		(void)
    -

    Allocate a validation context structure.

    -
    Returns:NULL if not, otherwise the new validation context structure
    -
    -

    xmlRemoveID ()

    int	xmlRemoveID			(xmlDocPtr doc, 
    xmlAttrPtr attr)
    -

    Remove the given attribute from the ID table maintained internally.

    -
    doc:the document
    attr:the attribute
    Returns:-1 if the lookup failed and 0 otherwise
    -
    -

    xmlRemoveRef ()

    int	xmlRemoveRef			(xmlDocPtr doc, 
    xmlAttrPtr attr)
    -

    Remove the given attribute from the Ref table maintained internally.

    -
    doc:the document
    attr:the attribute
    Returns:-1 if the lookup failed and 0 otherwise
    -
    -

    xmlSnprintfElementContent ()

    void	xmlSnprintfElementContent	(char * buf, 
    int size,
    xmlElementContentPtr content,
    int englob)
    -

    This will dump the content of the element content definition Intended just for the debug routine

    -
    buf:an output buffer
    size:the buffer size
    content:An element table
    englob:1 if one must print the englobing parenthesis, 0 otherwise
    -
    -

    xmlSprintfElementContent ()

    void	xmlSprintfElementContent	(char * buf, 
    xmlElementContentPtr content,
    int englob)
    -

    Deprecated, unsafe, use xmlSnprintfElementContent

    -
    buf:an output buffer
    content:An element table
    englob:1 if one must print the englobing parenthesis, 0 otherwise
    -
    -

    xmlValidBuildContentModel ()

    int	xmlValidBuildContentModel	(xmlValidCtxtPtr ctxt, 
    xmlElementPtr elem)
    -

    (Re)Build the automata associated to the content model of this element

    -
    ctxt:a validation context
    elem:an element declaration node
    Returns:1 in case of success, 0 in case of error
    -
    -

    xmlValidCtxtNormalizeAttributeValue ()

    xmlChar *	xmlValidCtxtNormalizeAttributeValue	(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * name,
    const xmlChar * value)
    -

    Does the validation related extra step of the normalization of attribute values: If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) characters by single space (#x20) character. Also check VC: Standalone Document Declaration in P32, and update ctxt->valid accordingly

    -
    ctxt:the validation context or NULL
    doc:the document
    elem:the parent
    name:the attribute name
    value:the attribute value
    Returns:a new normalized string if normalization is needed, NULL otherwise the caller must free the returned value.
    -
    -

    xmlValidGetPotentialChildren ()

    int	xmlValidGetPotentialChildren	(xmlElementContent * ctree, 
    const xmlChar ** names,
    int * len,
    int max)
    -

    Build/extend a list of potential children allowed by the content tree

    -
    ctree:an element content tree
    names:an array to store the list of child names
    len:a pointer to the number of element in the list
    max:the size of the array
    Returns:the number of element in the list, or -1 in case of error.
    -
    -

    xmlValidGetValidElements ()

    int	xmlValidGetValidElements	(xmlNode * prev, 
    xmlNode * next,
    const xmlChar ** names,
    int max)
    -

    This function returns the list of authorized children to insert within an existing tree while respecting the validity constraints forced by the Dtd. The insertion point is defined using @prev and @next in the following ways: to insert before 'node': xmlValidGetValidElements(node->prev, node, ... to insert next 'node': xmlValidGetValidElements(node, node->next, ... to replace 'node': xmlValidGetValidElements(node->prev, node->next, ... to prepend a child to 'node': xmlValidGetValidElements(NULL, node->childs, to append a child to 'node': xmlValidGetValidElements(node->last, NULL, ... pointers to the element names are inserted at the beginning of the array and do not need to be freed.

    -
    prev:an element to insert after
    next:an element to insert next
    names:an array to store the list of child names
    max:the size of the array
    Returns:the number of element in the list, or -1 in case of error. If the function returns the value @max the caller is invited to grow the receiving array and retry.
    -
    -

    xmlValidNormalizeAttributeValue ()

    xmlChar *	xmlValidNormalizeAttributeValue	(xmlDocPtr doc, 
    xmlNodePtr elem,
    const xmlChar * name,
    const xmlChar * value)
    -

    Does the validation related extra step of the normalization of attribute values: If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) characters by single space (#x20) character.

    -
    doc:the document
    elem:the parent
    name:the attribute name
    value:the attribute value
    Returns:a new normalized string if normalization is needed, NULL otherwise the caller must free the returned value.
    -
    -

    xmlValidateAttributeDecl ()

    int	xmlValidateAttributeDecl	(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlAttributePtr attr)
    -

    Try to validate a single attribute definition basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Default Legal ] - [ VC: Enumeration ] - [ VC: ID Attribute Default ] The ID/IDREF uniqueness and matching are done separately

    -
    ctxt:the validation context
    doc:a document instance
    attr:an attribute definition
    Returns:1 if valid or 0 otherwise
    -
    -

    xmlValidateAttributeValue ()

    int	xmlValidateAttributeValue	(xmlAttributeType type, 
    const xmlChar * value)
    -

    Validate that the given attribute value match the proper production [ VC: ID ] Values of type ID must match the Name production.... [ VC: IDREF ] Values of type IDREF must match the Name production, and values of type IDREFS must match Names ... [ VC: Entity Name ] Values of type ENTITY must match the Name production, values of type ENTITIES must match Names ... [ VC: Name Token ] Values of type NMTOKEN must match the Nmtoken production; values of type NMTOKENS must match Nmtokens.

    -
    type:an attribute type
    value:an attribute value
    Returns:1 if valid or 0 otherwise
    -
    -

    xmlValidateDocument ()

    int	xmlValidateDocument		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc)
    -

    Try to validate the document instance basically it does the all the checks described by the XML Rec i.e. validates the internal and external subset (if present) and validate the document tree.

    -
    ctxt:the validation context
    doc:a document instance
    Returns:1 if valid or 0 otherwise
    -
    -

    xmlValidateDocumentFinal ()

    int	xmlValidateDocumentFinal	(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc)
    -

    Does the final step for the document validation once all the incremental validation steps have been completed basically it does the following checks described by the XML Rec Check all the IDREF/IDREFS attributes definition for validity

    -
    ctxt:the validation context
    doc:a document instance
    Returns:1 if valid or 0 otherwise
    -
    -

    xmlValidateDtd ()

    int	xmlValidateDtd			(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlDtdPtr dtd)
    -

    Try to validate the document against the dtd instance Basically it does check all the definitions in the DtD. Note the the internal subset (if present) is de-coupled (i.e. not used), which could give problems if ID or IDREF is present.

    -
    ctxt:the validation context
    doc:a document instance
    dtd:a dtd instance
    Returns:1 if valid or 0 otherwise
    -
    -

    xmlValidateDtdFinal ()

    int	xmlValidateDtdFinal		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc)
    -

    Does the final step for the dtds validation once all the subsets have been parsed basically it does the following checks described by the XML Rec - check that ENTITY and ENTITIES type attributes default or possible values matches one of the defined entities. - check that NOTATION type attributes default or possible values matches one of the defined notations.

    -
    ctxt:the validation context
    doc:a document instance
    Returns:1 if valid or 0 if invalid and -1 if not well-formed
    -
    -

    xmlValidateElement ()

    int	xmlValidateElement		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem)
    -

    Try to validate the subtree under an element

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element instance
    Returns:1 if valid or 0 otherwise
    -
    -

    xmlValidateElementDecl ()

    int	xmlValidateElementDecl		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlElementPtr elem)
    -

    Try to validate a single element definition basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: One ID per Element Type ] - [ VC: No Duplicate Types ] - [ VC: Unique Element Type Declaration ]

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element definition
    Returns:1 if valid or 0 otherwise
    -
    -

    xmlValidateNameValue ()

    int	xmlValidateNameValue		(const xmlChar * value)
    -

    Validate that the given value match Name production

    -
    value:an Name value
    Returns:1 if valid or 0 otherwise
    -
    -

    xmlValidateNamesValue ()

    int	xmlValidateNamesValue		(const xmlChar * value)
    -

    Validate that the given value match Names production

    -
    value:an Names value
    Returns:1 if valid or 0 otherwise
    -
    -

    xmlValidateNmtokenValue ()

    int	xmlValidateNmtokenValue		(const xmlChar * value)
    -

    Validate that the given value match Nmtoken production [ VC: Name Token ]

    -
    value:an Nmtoken value
    Returns:1 if valid or 0 otherwise
    -
    -

    xmlValidateNmtokensValue ()

    int	xmlValidateNmtokensValue	(const xmlChar * value)
    -

    Validate that the given value match Nmtokens production [ VC: Name Token ]

    -
    value:an Nmtokens value
    Returns:1 if valid or 0 otherwise
    -
    -

    xmlValidateNotationDecl ()

    int	xmlValidateNotationDecl		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNotationPtr nota)
    -

    Try to validate a single notation definition basically it does the following checks as described by the XML-1.0 recommendation: - it seems that no validity constraint exists on notation declarations But this function get called anyway ...

    -
    ctxt:the validation context
    doc:a document instance
    nota:a notation definition
    Returns:1 if valid or 0 otherwise
    -
    -

    xmlValidateNotationUse ()

    int	xmlValidateNotationUse		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    const xmlChar * notationName)
    -

    Validate that the given name match a notation declaration. - [ VC: Notation Declared ]

    -
    ctxt:the validation context
    doc:the document
    notationName:the notation name to check
    Returns:1 if valid or 0 otherwise
    -
    -

    xmlValidateOneAttribute ()

    int	xmlValidateOneAttribute		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem,
    xmlAttrPtr attr,
    const xmlChar * value)
    -

    Try to validate a single attribute for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ] - [ VC: Entity Name ] - [ VC: Notation Attributes ] The ID/IDREF uniqueness and matching are done separately

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element instance
    attr:an attribute instance
    value:the attribute value (without entities processing)
    Returns:1 if valid or 0 otherwise
    -
    -

    xmlValidateOneElement ()

    int	xmlValidateOneElement		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem)
    -

    Try to validate a single element and it's attributes, basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Element Valid ] - [ VC: Required Attribute ] Then call xmlValidateOneAttribute() for each attribute present. The ID/IDREF checkings are done separately

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element instance
    Returns:1 if valid or 0 otherwise
    -
    -

    xmlValidateOneNamespace ()

    int	xmlValidateOneNamespace		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * prefix,
    xmlNsPtr ns,
    const xmlChar * value)
    -

    Try to validate a single namespace declaration for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ] - [ VC: Entity Name ] - [ VC: Notation Attributes ] The ID/IDREF uniqueness and matching are done separately

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element instance
    prefix:the namespace prefix
    ns:an namespace declaration instance
    value:the attribute value (without entities processing)
    Returns:1 if valid or 0 otherwise
    -
    -

    xmlValidatePopElement ()

    int	xmlValidatePopElement		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * qname)
    -

    Pop the element end from the validation stack.

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element instance
    qname:the qualified name as appearing in the serialization
    Returns:1 if no validation problem was found or 0 otherwise
    -
    -

    xmlValidatePushCData ()

    int	xmlValidatePushCData		(xmlValidCtxtPtr ctxt, 
    const xmlChar * data,
    int len)
    -

    check the CData parsed for validation in the current stack

    -
    ctxt:the validation context
    data:some character data read
    len:the lenght of the data
    Returns:1 if no validation problem was found or 0 otherwise
    -
    -

    xmlValidatePushElement ()

    int	xmlValidatePushElement		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * qname)
    -

    Push a new element start on the validation stack.

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element instance
    qname:the qualified name as appearing in the serialization
    Returns:1 if no validation problem was found or 0 otherwise
    -
    -

    xmlValidateRoot ()

    int	xmlValidateRoot			(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc)
    -

    Try to validate a the root element basically it does the following check as described by the XML-1.0 recommendation: - [ VC: Root Element Type ] it doesn't try to recurse or apply other check to the element

    -
    ctxt:the validation context
    doc:a document instance
    Returns:1 if valid or 0 otherwise
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xinclude.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xinclude.html deleted file mode 100644 index 6ffcd5a6d5..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xinclude.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - xinclude: implementation of XInclude - - - - - - - - - - - - - - - - -

    - xinclude -

    -

    xinclude - implementation of XInclude

    -

    API to handle XInclude processing, implements the World Wide Web Consortium Last Call Working Draft 10 November 2003

    -

    Author(s): Daniel Veillard

    - -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro XINCLUDE_FALLBACK

    #define XINCLUDE_FALLBACK;
    -

    Macro defining "fallback"

    -
    -
    -

    Macro XINCLUDE_HREF

    #define XINCLUDE_HREF;
    -

    Macro defining "href"

    -
    -
    -

    Macro XINCLUDE_NODE

    #define XINCLUDE_NODE;
    -

    Macro defining "include"

    -
    -
    -

    Macro XINCLUDE_NS

    #define XINCLUDE_NS;
    -

    Macro defining the Xinclude namespace: http://www.w3.org/2003/XInclude

    -
    -
    -

    Macro XINCLUDE_OLD_NS

    #define XINCLUDE_OLD_NS;
    -

    Macro defining the draft Xinclude namespace: http://www.w3.org/2001/XInclude

    -
    -
    -

    Macro XINCLUDE_PARSE

    #define XINCLUDE_PARSE;
    -

    Macro defining "parse"

    -
    -
    -

    Macro XINCLUDE_PARSE_ENCODING

    #define XINCLUDE_PARSE_ENCODING;
    -

    Macro defining "encoding"

    -
    -
    -

    Macro XINCLUDE_PARSE_TEXT

    #define XINCLUDE_PARSE_TEXT;
    -

    Macro defining "text"

    -
    -
    -

    Macro XINCLUDE_PARSE_XML

    #define XINCLUDE_PARSE_XML;
    -

    Macro defining "xml"

    -
    -
    -

    Macro XINCLUDE_PARSE_XPOINTER

    #define XINCLUDE_PARSE_XPOINTER;
    -

    Macro defining "xpointer"

    -
    -
    -

    Structure xmlXIncludeCtxt

    struct _xmlXIncludeCtxt {
    -The content of this structure is not made public by the API.
    -} xmlXIncludeCtxt;
    -

    -

    -
    -

    Typedef xmlXIncludeCtxtPtr

    xmlXIncludeCtxt * xmlXIncludeCtxtPtr;
    -

    -

    -
    -

    xmlXIncludeFreeContext ()

    void	xmlXIncludeFreeContext		(xmlXIncludeCtxtPtr ctxt)
    -

    Free an XInclude context

    -
    ctxt:the XInclude context
    -
    -

    xmlXIncludeNewContext ()

    xmlXIncludeCtxtPtr	xmlXIncludeNewContext	(xmlDocPtr doc)
    -

    Creates a new XInclude context

    -
    doc:an XML Document
    Returns:the new set
    -
    -

    xmlXIncludeProcess ()

    int	xmlXIncludeProcess		(xmlDocPtr doc)
    -

    Implement the XInclude substitution on the XML document @doc

    -
    doc:an XML document
    Returns:0 if no substitution were done, -1 if some processing failed or the number of substitutions done.
    -
    -

    xmlXIncludeProcessFlags ()

    int	xmlXIncludeProcessFlags		(xmlDocPtr doc, 
    int flags)
    -

    Implement the XInclude substitution on the XML document @doc

    -
    doc:an XML document
    flags:a set of xmlParserOption used for parsing XML includes
    Returns:0 if no substitution were done, -1 if some processing failed or the number of substitutions done.
    -
    -

    xmlXIncludeProcessNode ()

    int	xmlXIncludeProcessNode		(xmlXIncludeCtxtPtr ctxt, 
    xmlNodePtr node)
    -

    Implement the XInclude substitution for the given subtree reusing the informations and data coming from the given context.

    -
    ctxt:an existing XInclude context
    node:a node in an XML document
    Returns:0 if no substitution were done, -1 if some processing failed or the number of substitutions done.
    -
    -

    xmlXIncludeProcessTree ()

    int	xmlXIncludeProcessTree		(xmlNodePtr tree)
    -

    Implement the XInclude substitution for the given subtree

    -
    tree:a node in an XML document
    Returns:0 if no substitution were done, -1 if some processing failed or the number of substitutions done.
    -
    -

    xmlXIncludeProcessTreeFlags ()

    int	xmlXIncludeProcessTreeFlags	(xmlNodePtr tree, 
    int flags)
    -

    Implement the XInclude substitution for the given subtree

    -
    tree:a node in an XML document
    flags:a set of xmlParserOption used for parsing XML includes
    Returns:0 if no substitution were done, -1 if some processing failed or the number of substitutions done.
    -
    -

    xmlXIncludeSetFlags ()

    int	xmlXIncludeSetFlags		(xmlXIncludeCtxtPtr ctxt, 
    int flags)
    -

    Set the flags used for further processing of XML resources.

    -
    ctxt:an XInclude processing context
    flags:a set of xmlParserOption used for parsing XML includes
    Returns:0 in case of success and -1 in case of error.
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xlink.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xlink.html deleted file mode 100644 index abe6965630..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xlink.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - xlink: unfinished XLink detection module - - - - - - - - - - - - - - - - -

    - xlink -

    -

    xlink - unfinished XLink detection module

    -

    unfinished XLink detection module

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef xmlChar * xlinkTitle;
    -typedef enum xlinkShow;
    -typedef xmlChar * xlinkHRef;
    -typedef enum xlinkActuate;
    -typedef struct _xlinkHandler xlinkHandler;
    -typedef xmlChar * xlinkRole;
    -typedef xlinkHandler * xlinkHandlerPtr;
    -typedef enum xlinkType;
    -void	xlinkSetDefaultDetect		(xlinkNodeDetectFunc func);
    -void	xlinkSetDefaultHandler		(xlinkHandlerPtr handler);
    -typedef void xlinkExtendedLinkFunk		(void * ctx, 
    xmlNodePtr node,
    int nbLocators,
    const xlinkHRef * hrefs,
    const xlinkRole * roles,
    int nbArcs,
    const xlinkRole * from,
    const xlinkRole * to,
    xlinkShow * show,
    xlinkActuate * actuate,
    int nbTitles,
    const xlinkTitle * titles,
    const xmlChar ** langs); -typedef void xlinkExtendedLinkSetFunk (void * ctx,
    xmlNodePtr node,
    int nbLocators,
    const xlinkHRef * hrefs,
    const xlinkRole * roles,
    int nbTitles,
    const xlinkTitle * titles,
    const xmlChar ** langs); -typedef void xlinkSimpleLinkFunk (void * ctx,
    xmlNodePtr node,
    const xlinkHRef href,
    const xlinkRole role,
    const xlinkTitle title); -typedef void xlinkNodeDetectFunc (void * ctx,
    xmlNodePtr node); -xlinkHandlerPtr xlinkGetDefaultHandler (void); -xlinkType xlinkIsLink (xmlDocPtr doc,
    xmlNodePtr node); -xlinkNodeDetectFunc xlinkGetDefaultDetect (void); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    - -
    -

    Typedef xlinkHRef

    xmlChar * xlinkHRef;
    -

    -

    -
    -

    Structure xlinkHandler

    struct _xlinkHandler {
    -    xlinkSimpleLinkFunk	simple
    -    xlinkExtendedLinkFunk	extended
    -    xlinkExtendedLinkSetFunk	set
    -} xlinkHandler;
    -

    -

    -
    -

    Typedef xlinkHandlerPtr

    xlinkHandler * xlinkHandlerPtr;
    -

    -

    -
    -

    Typedef xlinkRole

    xmlChar * xlinkRole;
    -

    -

    -
    -

    Enum xlinkShow

    enum xlinkShow {
    -    XLINK_SHOW_NONE = 0
    -    XLINK_SHOW_NEW = 1
    -    XLINK_SHOW_EMBED = 2
    -    XLINK_SHOW_REPLACE = 3
    -};
    -

    -

    -
    -

    Typedef xlinkTitle

    xmlChar * xlinkTitle;
    -

    -

    -
    - -
    -

    Function type xlinkExtendedLinkFunk

    void	xlinkExtendedLinkFunk		(void * ctx, 
    xmlNodePtr node,
    int nbLocators,
    const xlinkHRef * hrefs,
    const xlinkRole * roles,
    int nbArcs,
    const xlinkRole * from,
    const xlinkRole * to,
    xlinkShow * show,
    xlinkActuate * actuate,
    int nbTitles,
    const xlinkTitle * titles,
    const xmlChar ** langs)
    -

    This is the prototype for a extended link detection callback.

    -
    ctx:user data pointer
    node:the node carrying the link
    nbLocators:the number of locators detected on the link
    hrefs:pointer to the array of locator hrefs
    roles:pointer to the array of locator roles
    nbArcs:the number of arcs detected on the link
    from:pointer to the array of source roles found on the arcs
    to:pointer to the array of target roles found on the arcs
    show:array of values for the show attributes found on the arcs
    actuate:array of values for the actuate attributes found on the arcs
    nbTitles:the number of titles detected on the link
    titles:
    langs:array of xml:lang values for the titles
    -
    -

    Function type xlinkExtendedLinkSetFunk

    void	xlinkExtendedLinkSetFunk	(void * ctx, 
    xmlNodePtr node,
    int nbLocators,
    const xlinkHRef * hrefs,
    const xlinkRole * roles,
    int nbTitles,
    const xlinkTitle * titles,
    const xmlChar ** langs)
    -

    This is the prototype for a extended link set detection callback.

    -
    ctx:user data pointer
    node:the node carrying the link
    nbLocators:the number of locators detected on the link
    hrefs:pointer to the array of locator hrefs
    roles:pointer to the array of locator roles
    nbTitles:the number of titles detected on the link
    titles:
    langs:array of xml:lang values for the titles
    -
    -

    Function type xlinkNodeDetectFunc

    void	xlinkNodeDetectFunc		(void * ctx, 
    xmlNodePtr node)
    -

    This is the prototype for the link detection routine. It calls the default link detection callbacks upon link detection.

    -
    ctx:user data pointer
    node:the node to check
    -
    -

    Function type xlinkSimpleLinkFunk

    void	xlinkSimpleLinkFunk		(void * ctx, 
    xmlNodePtr node,
    const xlinkHRef href,
    const xlinkRole role,
    const xlinkTitle title)
    -

    This is the prototype for a simple link detection callback.

    -
    ctx:user data pointer
    node:the node carrying the link
    href:the target of the link
    role:the role string
    title:the link title
    -
    -

    xlinkGetDefaultDetect ()

    xlinkNodeDetectFunc	xlinkGetDefaultDetect	(void)
    -

    Get the default xlink detection routine

    -
    Returns:the current function or NULL;
    -
    -

    xlinkGetDefaultHandler ()

    xlinkHandlerPtr	xlinkGetDefaultHandler	(void)
    -

    Get the default xlink handler.

    -
    Returns:the current xlinkHandlerPtr value.
    -
    -

    xlinkIsLink ()

    xlinkType	xlinkIsLink		(xmlDocPtr doc, 
    xmlNodePtr node)
    -

    Check whether the given node carries the attributes needed to be a link element (or is one of the linking elements issued from the (X)HTML DtDs). This routine don't try to do full checking of the link validity but tries to detect and return the appropriate link type.

    -
    doc:the document containing the node
    node:the node pointer itself
    Returns:the xlinkType of the node (XLINK_TYPE_NONE if there is no link detected.
    -
    -

    xlinkSetDefaultDetect ()

    void	xlinkSetDefaultDetect		(xlinkNodeDetectFunc func)
    -

    Set the default xlink detection routine

    -
    func:pointer to the new detection routine.
    -
    -

    xlinkSetDefaultHandler ()

    void	xlinkSetDefaultHandler		(xlinkHandlerPtr handler)
    -

    Set the default xlink handlers

    -
    handler:the new value for the xlink handler block
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlIO.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlIO.html deleted file mode 100644 index 8c41d1d626..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlIO.html +++ /dev/null @@ -1,337 +0,0 @@ - - - - - xmlIO: interface for the I/O interfaces used by the parser - - - - - - - - - - - - - - - - -

    - xmlIO -

    -

    xmlIO - interface for the I/O interfaces used by the parser

    -

    interface for the I/O interfaces used by the parser

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    int	xmlIOHTTPRead			(void * context, 
    char * buffer,
    int len); -typedef int xmlInputMatchCallback (char const * filename); -void xmlRegisterDefaultOutputCallbacks (void); -int xmlFileClose (void * context); -typedef int xmlOutputMatchCallback (char const * filename); -int xmlParserInputBufferPush (xmlParserInputBufferPtr in,
    int len,
    const char * buf); -int xmlIOFTPRead (void * context,
    char * buffer,
    int len); -void xmlRegisterHTTPPostCallbacks (void); -void * xmlIOFTPOpen (const char * filename); -int xmlIOFTPClose (void * context); -void * xmlFileOpen (const char * filename); -xmlOutputBufferPtr xmlOutputBufferCreateFile (FILE * file,
    xmlCharEncodingHandlerPtr encoder); -int xmlCheckFilename (const char * path); -typedef void * xmlOutputOpenCallback (char const * filename); -xmlParserInputBufferPtr xmlParserInputBufferCreateFilename (const char * URI,
    xmlCharEncoding enc); -int xmlOutputBufferClose (xmlOutputBufferPtr out); -xmlParserInputBufferPtr xmlAllocParserInputBuffer (xmlCharEncoding enc); -xmlOutputBufferPtr xmlOutputBufferCreateIO (xmlOutputWriteCallback iowrite,
    xmlOutputCloseCallback ioclose,
    void * ioctx,
    xmlCharEncodingHandlerPtr encoder); -typedef int xmlOutputWriteCallback (void * context,
    const char * buffer,
    int len); -int xmlOutputBufferFlush (xmlOutputBufferPtr out); -xmlParserInputPtr xmlCheckHTTPInput (xmlParserCtxtPtr ctxt,
    xmlParserInputPtr ret); -int xmlRegisterOutputCallbacks (xmlOutputMatchCallback matchFunc,
    xmlOutputOpenCallback openFunc,
    xmlOutputWriteCallback writeFunc,
    xmlOutputCloseCallback closeFunc); -xmlParserInputBufferPtr xmlParserInputBufferCreateMem (const char * mem,
    int size,
    xmlCharEncoding enc); -int xmlIOFTPMatch (const char * filename); -int xmlRegisterInputCallbacks (xmlInputMatchCallback matchFunc,
    xmlInputOpenCallback openFunc,
    xmlInputReadCallback readFunc,
    xmlInputCloseCallback closeFunc); -void xmlFreeParserInputBuffer (xmlParserInputBufferPtr in); -void xmlRegisterDefaultInputCallbacks (void); -int xmlParserInputBufferGrow (xmlParserInputBufferPtr in,
    int len); -typedef int xmlOutputCloseCallback (void * context); -xmlOutputBufferPtr xmlAllocOutputBuffer (xmlCharEncodingHandlerPtr encoder); -xmlParserInputPtr xmlNoNetExternalEntityLoader (const char * URL,
    const char * ID,
    xmlParserCtxtPtr ctxt); -xmlOutputBufferPtr xmlOutputBufferCreateBuffer (xmlBufferPtr buffer,
    xmlCharEncodingHandlerPtr encoder); -int xmlIOHTTPMatch (const char * filename); -void * xmlIOHTTPOpen (const char * filename); -xmlParserInputBufferPtr xmlParserInputBufferCreateIO (xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    xmlCharEncoding enc); -xmlOutputBufferPtr xmlOutputBufferCreateFd (int fd,
    xmlCharEncodingHandlerPtr encoder); -xmlChar * xmlNormalizeWindowsPath (const xmlChar * path); -typedef int xmlInputReadCallback (void * context,
    char * buffer,
    int len); -xmlParserInputBufferPtr xmlParserInputBufferCreateStatic (const char * mem,
    int size,
    xmlCharEncoding enc); -int xmlIOHTTPClose (void * context); -int xmlOutputBufferWriteEscape (xmlOutputBufferPtr out,
    const xmlChar * str,
    xmlCharEncodingOutputFunc escaping); -xmlOutputBufferPtr xmlOutputBufferCreateFilename (const char * URI,
    xmlCharEncodingHandlerPtr encoder,
    int compression); -void xmlCleanupOutputCallbacks (void); -typedef void * xmlInputOpenCallback (char const * filename); -int xmlParserInputBufferRead (xmlParserInputBufferPtr in,
    int len); -int xmlOutputBufferWriteString (xmlOutputBufferPtr out,
    const char * str); -int xmlFileMatch (const char * filename); -int xmlPopInputCallbacks (void); -int xmlFileRead (void * context,
    char * buffer,
    int len); -xmlParserInputBufferPtr xmlParserInputBufferCreateFile (FILE * file,
    xmlCharEncoding enc); -char * xmlParserGetDirectory (const char * filename); -int xmlOutputBufferWrite (xmlOutputBufferPtr out,
    int len,
    const char * buf); -void xmlCleanupInputCallbacks (void); -typedef int xmlInputCloseCallback (void * context); -void * xmlIOHTTPOpenW (const char * post_uri,
    int compression); -xmlParserInputBufferPtr xmlParserInputBufferCreateFd (int fd,
    xmlCharEncoding enc); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    xmlAllocOutputBuffer ()

    xmlOutputBufferPtr	xmlAllocOutputBuffer	(xmlCharEncodingHandlerPtr encoder)
    -

    Create a buffered parser output

    -
    encoder:the encoding converter or NULL
    Returns:the new parser output or NULL
    -
    -

    xmlAllocParserInputBuffer ()

    xmlParserInputBufferPtr	xmlAllocParserInputBuffer	(xmlCharEncoding enc)
    -

    Create a buffered parser input for progressive parsing

    -
    enc:the charset encoding if known
    Returns:the new parser input or NULL
    -
    - -
    -

    xmlCheckHTTPInput ()

    xmlParserInputPtr	xmlCheckHTTPInput	(xmlParserCtxtPtr ctxt, 
    xmlParserInputPtr ret)
    -

    Check an input in case it was created from an HTTP stream, in that case it will handle encoding and update of the base URL in case of redirection. It also checks for HTTP errors in which case the input is cleanly freed up and an appropriate error is raised in context

    -
    ctxt:an XML parser context
    ret:an XML parser input
    Returns:the input or NULL in case of HTTP error.
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    xmlFreeParserInputBuffer ()

    void	xmlFreeParserInputBuffer	(xmlParserInputBufferPtr in)
    -

    Free up the memory used by a buffered parser input

    -
    in:a buffered parser input
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    xmlNoNetExternalEntityLoader ()

    xmlParserInputPtr	xmlNoNetExternalEntityLoader	(const char * URL, 
    const char * ID,
    xmlParserCtxtPtr ctxt)
    -

    A specific entity loader disabling network accesses, though still allowing local catalog accesses for resolution.

    -
    URL:the URL for the entity to load
    ID:the System ID for the entity to load
    ctxt:the context in which the entity is called or NULL
    Returns:a new allocated xmlParserInputPtr, or NULL.
    -
    -

    xmlNormalizeWindowsPath ()

    xmlChar *	xmlNormalizeWindowsPath	(const xmlChar * path)
    -

    This function is obsolete. Please see xmlURIFromPath in uri.c for a better solution.

    -
    path:the input file path
    Returns:a canonicalized version of the path
    -
    -

    xmlOutputBufferClose ()

    int	xmlOutputBufferClose		(xmlOutputBufferPtr out)
    -

    flushes and close the output I/O channel and free up all the associated resources

    -
    out:a buffered output
    Returns:the number of byte written or -1 in case of error.
    -
    -

    xmlOutputBufferCreateBuffer ()

    xmlOutputBufferPtr	xmlOutputBufferCreateBuffer	(xmlBufferPtr buffer, 
    xmlCharEncodingHandlerPtr encoder)
    -

    Create a buffered output for the progressive saving to a xmlBuffer

    -
    buffer:a xmlBufferPtr
    encoder:the encoding converter or NULL
    Returns:the new parser output or NULL
    -
    -

    xmlOutputBufferCreateFd ()

    xmlOutputBufferPtr	xmlOutputBufferCreateFd	(int fd, 
    xmlCharEncodingHandlerPtr encoder)
    -

    Create a buffered output for the progressive saving to a file descriptor

    -
    fd:a file descriptor number
    encoder:the encoding converter or NULL
    Returns:the new parser output or NULL
    -
    -

    xmlOutputBufferCreateFile ()

    xmlOutputBufferPtr	xmlOutputBufferCreateFile	(FILE * file, 
    xmlCharEncodingHandlerPtr encoder)
    -

    Create a buffered output for the progressive saving to a FILE * buffered C I/O

    -
    file:a FILE*
    encoder:the encoding converter or NULL
    Returns:the new parser output or NULL
    -
    -

    xmlOutputBufferCreateFilename ()

    xmlOutputBufferPtr	xmlOutputBufferCreateFilename	(const char * URI, 
    xmlCharEncodingHandlerPtr encoder,
    int compression)
    -

    Create a buffered output for the progressive saving of a file If filename is "-' then we use stdout as the output. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. TODO: currently if compression is set, the library only support writing to a local file.

    -
    URI:a C string containing the URI or filename
    encoder:the encoding converter or NULL
    compression:the compression ration (0 none, 9 max).
    Returns:the new output or NULL
    -
    -

    xmlOutputBufferCreateIO ()

    xmlOutputBufferPtr	xmlOutputBufferCreateIO	(xmlOutputWriteCallback iowrite, 
    xmlOutputCloseCallback ioclose,
    void * ioctx,
    xmlCharEncodingHandlerPtr encoder)
    -

    Create a buffered output for the progressive saving to an I/O handler

    -
    iowrite:an I/O write function
    ioclose:an I/O close function
    ioctx:an I/O handler
    encoder:the charset encoding if known
    Returns:the new parser output or NULL
    -
    -

    xmlOutputBufferFlush ()

    int	xmlOutputBufferFlush		(xmlOutputBufferPtr out)
    -

    flushes the output I/O channel

    -
    out:a buffered output
    Returns:the number of byte written or -1 in case of error.
    -
    -

    xmlOutputBufferWrite ()

    int	xmlOutputBufferWrite		(xmlOutputBufferPtr out, 
    int len,
    const char * buf)
    -

    Write the content of the array in the output I/O buffer This routine handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes.

    -
    out:a buffered parser output
    len:the size in bytes of the array.
    buf:an char array
    Returns:the number of chars immediately written, or -1 in case of error.
    -
    -

    xmlOutputBufferWriteEscape ()

    int	xmlOutputBufferWriteEscape	(xmlOutputBufferPtr out, 
    const xmlChar * str,
    xmlCharEncodingOutputFunc escaping)
    -

    Write the content of the string in the output I/O buffer This routine escapes the caracters and then handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes.

    -
    out:a buffered parser output
    str:a zero terminated UTF-8 string
    escaping:an optional escaping function (or NULL)
    Returns:the number of chars immediately written, or -1 in case of error.
    -
    -

    xmlOutputBufferWriteString ()

    int	xmlOutputBufferWriteString	(xmlOutputBufferPtr out, 
    const char * str)
    -

    Write the content of the string in the output I/O buffer This routine handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes.

    -
    out:a buffered parser output
    str:a zero terminated C string
    Returns:the number of chars immediately written, or -1 in case of error.
    -
    - -
    -

    xmlParserInputBufferCreateFd ()

    xmlParserInputBufferPtr	xmlParserInputBufferCreateFd	(int fd, 
    xmlCharEncoding enc)
    -

    Create a buffered parser input for the progressive parsing for the input from a file descriptor

    -
    fd:a file descriptor number
    enc:the charset encoding if known
    Returns:the new parser input or NULL
    -
    -

    xmlParserInputBufferCreateFile ()

    xmlParserInputBufferPtr	xmlParserInputBufferCreateFile	(FILE * file, 
    xmlCharEncoding enc)
    -

    Create a buffered parser input for the progressive parsing of a FILE * buffered C I/O

    -
    file:a FILE*
    enc:the charset encoding if known
    Returns:the new parser input or NULL
    -
    -

    xmlParserInputBufferCreateFilename ()

    xmlParserInputBufferPtr	xmlParserInputBufferCreateFilename	(const char * URI, 
    xmlCharEncoding enc)
    -

    Create a buffered parser input for the progressive parsing of a file If filename is "-' then we use stdin as the input. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. Do an encoding check if enc == XML_CHAR_ENCODING_NONE

    -
    URI:a C string containing the URI or filename
    enc:the charset encoding if known
    Returns:the new parser input or NULL
    -
    -

    xmlParserInputBufferCreateIO ()

    xmlParserInputBufferPtr	xmlParserInputBufferCreateIO	(xmlInputReadCallback ioread, 
    xmlInputCloseCallback ioclose,
    void * ioctx,
    xmlCharEncoding enc)
    -

    Create a buffered parser input for the progressive parsing for the input from an I/O handler

    -
    ioread:an I/O read function
    ioclose:an I/O close function
    ioctx:an I/O handler
    enc:the charset encoding if known
    Returns:the new parser input or NULL
    -
    -

    xmlParserInputBufferCreateMem ()

    xmlParserInputBufferPtr	xmlParserInputBufferCreateMem	(const char * mem, 
    int size,
    xmlCharEncoding enc)
    -

    Create a buffered parser input for the progressive parsing for the input from a memory area.

    -
    mem:the memory input
    size:the length of the memory block
    enc:the charset encoding if known
    Returns:the new parser input or NULL
    -
    -

    xmlParserInputBufferCreateStatic ()

    xmlParserInputBufferPtr	xmlParserInputBufferCreateStatic	(const char * mem, 
    int size,
    xmlCharEncoding enc)
    -

    Create a buffered parser input for the progressive parsing for the input from an immutable memory area. This will not copy the memory area to the buffer, but the memory is expected to be available until the end of the parsing, this is useful for example when using mmap'ed file.

    -
    mem:the memory input
    size:the length of the memory block
    enc:the charset encoding if known
    Returns:the new parser input or NULL
    -
    -

    xmlParserInputBufferGrow ()

    int	xmlParserInputBufferGrow	(xmlParserInputBufferPtr in, 
    int len)
    -

    Grow up the content of the input buffer, the old data are preserved This routine handle the I18N transcoding to internal UTF-8 This routine is used when operating the parser in normal (pull) mode TODO: one should be able to remove one extra copy by copying directly onto in->buffer or in->raw

    -
    in:a buffered parser input
    len:indicative value of the amount of chars to read
    Returns:the number of chars read and stored in the buffer, or -1 in case of error.
    -
    -

    xmlParserInputBufferPush ()

    int	xmlParserInputBufferPush	(xmlParserInputBufferPtr in, 
    int len,
    const char * buf)
    -

    Push the content of the arry in the input buffer This routine handle the I18N transcoding to internal UTF-8 This is used when operating the parser in progressive (push) mode.

    -
    in:a buffered parser input
    len:the size in bytes of the array.
    buf:an char array
    Returns:the number of chars read and stored in the buffer, or -1 in case of error.
    -
    -

    xmlParserInputBufferRead ()

    int	xmlParserInputBufferRead	(xmlParserInputBufferPtr in, 
    int len)
    -

    Refresh the content of the input buffer, the old data are considered consumed This routine handle the I18N transcoding to internal UTF-8

    -
    in:a buffered parser input
    len:indicative value of the amount of chars to read
    Returns:the number of chars read and stored in the buffer, or -1 in case of error.
    -
    - -
    -
    -
    -
    -
    -
    -
    -

    xmlRegisterInputCallbacks ()

    int	xmlRegisterInputCallbacks	(xmlInputMatchCallback matchFunc, 
    xmlInputOpenCallback openFunc,
    xmlInputReadCallback readFunc,
    xmlInputCloseCallback closeFunc)
    -

    Register a new set of I/O callback for handling parser input.

    -
    matchFunc:the xmlInputMatchCallback
    openFunc:the xmlInputOpenCallback
    readFunc:the xmlInputReadCallback
    closeFunc:the xmlInputCloseCallback
    Returns:the registered handler number or -1 in case of error
    -
    -

    xmlRegisterOutputCallbacks ()

    int	xmlRegisterOutputCallbacks	(xmlOutputMatchCallback matchFunc, 
    xmlOutputOpenCallback openFunc,
    xmlOutputWriteCallback writeFunc,
    xmlOutputCloseCallback closeFunc)
    -

    Register a new set of I/O callback for handling output.

    -
    matchFunc:the xmlOutputMatchCallback
    openFunc:the xmlOutputOpenCallback
    writeFunc:the xmlOutputWriteCallback
    closeFunc:the xmlOutputCloseCallback
    Returns:the registered handler number or -1 in case of error
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlautomata.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlautomata.html deleted file mode 100644 index d4684426e9..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlautomata.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - - xmlautomata: API to build regexp automata - - - - - - - - - - - - - - - - -

    - xmlautomata -

    -

    xmlautomata - API to build regexp automata

    -

    the API to build regexp automata

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef xmlAutomataState * xmlAutomataStatePtr;
    -typedef struct _xmlAutomata xmlAutomata;
    -typedef xmlAutomata * xmlAutomataPtr;
    -typedef struct _xmlAutomataState xmlAutomataState;
    -void	xmlFreeAutomata			(xmlAutomataPtr am);
    -int	xmlAutomataNewCounter		(xmlAutomataPtr am, 
    int min,
    int max); -xmlAutomataStatePtr xmlAutomataGetInitState (xmlAutomataPtr am); -xmlAutomataStatePtr xmlAutomataNewTransition2 (xmlAutomataPtr am,
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    const xmlChar * token2,
    void * data); -xmlAutomataStatePtr xmlAutomataNewState (xmlAutomataPtr am); -xmlAutomataStatePtr xmlAutomataNewCountTrans (xmlAutomataPtr am,
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    int min,
    int max,
    void * data); -xmlAutomataStatePtr xmlAutomataNewOnceTrans2 (xmlAutomataPtr am,
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    const xmlChar * token2,
    int min,
    int max,
    void * data); -xmlAutomataStatePtr xmlAutomataNewAllTrans (xmlAutomataPtr am,
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    int lax); -xmlAutomataStatePtr xmlAutomataNewCountedTrans (xmlAutomataPtr am,
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    int counter); -xmlAutomataStatePtr xmlAutomataNewCounterTrans (xmlAutomataPtr am,
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    int counter); -xmlRegexpPtr xmlAutomataCompile (xmlAutomataPtr am); -xmlAutomataStatePtr xmlAutomataNewNegTrans (xmlAutomataPtr am,
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    const xmlChar * token2,
    void * data); -xmlAutomataStatePtr xmlAutomataNewEpsilon (xmlAutomataPtr am,
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to); -xmlAutomataStatePtr xmlAutomataNewCountTrans2 (xmlAutomataPtr am,
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    const xmlChar * token2,
    int min,
    int max,
    void * data); -xmlAutomataPtr xmlNewAutomata (void); -int xmlAutomataSetFinalState (xmlAutomataPtr am,
    xmlAutomataStatePtr state); -xmlAutomataStatePtr xmlAutomataNewOnceTrans (xmlAutomataPtr am,
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    int min,
    int max,
    void * data); -xmlAutomataStatePtr xmlAutomataNewTransition (xmlAutomataPtr am,
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    void * data); -int xmlAutomataIsDeterminist (xmlAutomataPtr am); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlAutomata

    struct _xmlAutomata {
    -The content of this structure is not made public by the API.
    -} xmlAutomata;
    -

    -

    -
    -

    Typedef xmlAutomataPtr

    xmlAutomata * xmlAutomataPtr;
    -

    A libxml automata description, It can be compiled into a regexp

    -
    -
    -

    Structure xmlAutomataState

    struct _xmlAutomataState {
    -The content of this structure is not made public by the API.
    -} xmlAutomataState;
    -

    -

    -
    -

    Typedef xmlAutomataStatePtr

    xmlAutomataState * xmlAutomataStatePtr;
    -

    A state int the automata description,

    -
    -
    -

    xmlAutomataCompile ()

    xmlRegexpPtr	xmlAutomataCompile	(xmlAutomataPtr am)
    -

    Compile the automata into a Reg Exp ready for being executed. The automata should be free after this point.

    -
    am:an automata
    Returns:the compiled regexp or NULL in case of error
    -
    -

    xmlAutomataGetInitState ()

    xmlAutomataStatePtr	xmlAutomataGetInitState	(xmlAutomataPtr am)
    -

    Initial state lookup

    -
    am:an automata
    Returns:the initial state of the automata
    -
    -

    xmlAutomataIsDeterminist ()

    int	xmlAutomataIsDeterminist	(xmlAutomataPtr am)
    -

    Checks if an automata is determinist.

    -
    am:an automata
    Returns:1 if true, 0 if not, and -1 in case of error
    -
    -

    xmlAutomataNewAllTrans ()

    xmlAutomataStatePtr	xmlAutomataNewAllTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    int lax)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds a an ALL transition from the @from state to the target state. That transition is an epsilon transition allowed only when all transitions from the @from node have been activated.

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    lax:allow to transition if not all all transitions have been activated
    Returns:the target state or NULL in case of error
    -
    -

    xmlAutomataNewCountTrans ()

    xmlAutomataStatePtr	xmlAutomataNewCountTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    int min,
    int max,
    void * data)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and whose number is between @min and @max

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    token:the input string associated to that transition
    min:the minimum successive occurences of token
    max:the maximum successive occurences of token
    data:data associated to the transition
    Returns:the target state or NULL in case of error
    -
    -

    xmlAutomataNewCountTrans2 ()

    xmlAutomataStatePtr	xmlAutomataNewCountTrans2	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    const xmlChar * token2,
    int min,
    int max,
    void * data)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and @token2 and whose number is between @min and @max

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    token:the input string associated to that transition
    token2:the second input string associated to that transition
    min:the minimum successive occurences of token
    max:the maximum successive occurences of token
    data:data associated to the transition
    Returns:the target state or NULL in case of error
    -
    -

    xmlAutomataNewCountedTrans ()

    xmlAutomataStatePtr	xmlAutomataNewCountedTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    int counter)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds an epsilon transition from the @from state to the target state which will increment the counter provided

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    counter:the counter associated to that transition
    Returns:the target state or NULL in case of error
    -
    -

    xmlAutomataNewCounter ()

    int	xmlAutomataNewCounter		(xmlAutomataPtr am, 
    int min,
    int max)
    -

    Create a new counter

    -
    am:an automata
    min:the minimal value on the counter
    max:the maximal value on the counter
    Returns:the counter number or -1 in case of error
    -
    -

    xmlAutomataNewCounterTrans ()

    xmlAutomataStatePtr	xmlAutomataNewCounterTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    int counter)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds an epsilon transition from the @from state to the target state which will be allowed only if the counter is within the right range.

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    counter:the counter associated to that transition
    Returns:the target state or NULL in case of error
    -
    -

    xmlAutomataNewEpsilon ()

    xmlAutomataStatePtr	xmlAutomataNewEpsilon	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds an epsilon transition from the @from state to the target state

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    Returns:the target state or NULL in case of error
    -
    -

    xmlAutomataNewNegTrans ()

    xmlAutomataStatePtr	xmlAutomataNewNegTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    const xmlChar * token2,
    void * data)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by any value except (@token,@token2) Note that if @token2 is not NULL, then (X, NULL) won't match to follow # the semantic of XSD ##other

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    token:the first input string associated to that transition
    token2:the second input string associated to that transition
    data:data passed to the callback function if the transition is activated
    Returns:the target state or NULL in case of error
    -
    -

    xmlAutomataNewOnceTrans ()

    xmlAutomataStatePtr	xmlAutomataNewOnceTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    int min,
    int max,
    void * data)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and whose number is between @min and @max, moreover that transition can only be crossed once.

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    token:the input string associated to that transition
    min:the minimum successive occurences of token
    max:the maximum successive occurences of token
    data:data associated to the transition
    Returns:the target state or NULL in case of error
    -
    -

    xmlAutomataNewOnceTrans2 ()

    xmlAutomataStatePtr	xmlAutomataNewOnceTrans2	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    const xmlChar * token2,
    int min,
    int max,
    void * data)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and @token2 and whose number is between @min and @max, moreover that transition can only be crossed once.

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    token:the input string associated to that transition
    token2:the second input string associated to that transition
    min:the minimum successive occurences of token
    max:the maximum successive occurences of token
    data:data associated to the transition
    Returns:the target state or NULL in case of error
    -
    -

    xmlAutomataNewState ()

    xmlAutomataStatePtr	xmlAutomataNewState	(xmlAutomataPtr am)
    -

    Create a new disconnected state in the automata

    -
    am:an automata
    Returns:the new state or NULL in case of error
    -
    -

    xmlAutomataNewTransition ()

    xmlAutomataStatePtr	xmlAutomataNewTransition	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    void * data)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by the value of @token

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    token:the input string associated to that transition
    data:data passed to the callback function if the transition is activated
    Returns:the target state or NULL in case of error
    -
    -

    xmlAutomataNewTransition2 ()

    xmlAutomataStatePtr	xmlAutomataNewTransition2	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    const xmlChar * token2,
    void * data)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by the value of @token

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    token:the first input string associated to that transition
    token2:the second input string associated to that transition
    data:data passed to the callback function if the transition is activated
    Returns:the target state or NULL in case of error
    -
    -

    xmlAutomataSetFinalState ()

    int	xmlAutomataSetFinalState	(xmlAutomataPtr am, 
    xmlAutomataStatePtr state)
    -

    Makes that state a final state

    -
    am:an automata
    state:a state in this automata
    Returns:0 or -1 in case of error
    -
    -

    xmlFreeAutomata ()

    void	xmlFreeAutomata			(xmlAutomataPtr am)
    -

    Free an automata

    -
    am:an automata
    -
    -

    xmlNewAutomata ()

    xmlAutomataPtr	xmlNewAutomata		(void)
    -

    Create a new automata

    -
    Returns:the new object or NULL in case of failure
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlerror.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlerror.html deleted file mode 100644 index 7545da48a3..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlerror.html +++ /dev/null @@ -1,942 +0,0 @@ - - - - - xmlerror: error handling - - - - - - - - - - - - - - - - -

    - xmlerror -

    -

    xmlerror - error handling

    -

    the API used to report errors

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef xmlError * xmlErrorPtr;
    -typedef enum xmlErrorLevel;
    -typedef enum xmlParserErrors;
    -typedef enum xmlErrorDomain;
    -typedef struct _xmlError xmlError;
    -void	xmlParserValidityError		(void * ctx, 
    const char * msg,
    ... ...); -typedef void xmlGenericErrorFunc (void * ctx,
    const char * msg,
    ... ...); -void xmlSetGenericErrorFunc (void * ctx,
    xmlGenericErrorFunc handler); -void xmlParserPrintFileInfo (xmlParserInputPtr input); -void xmlCtxtResetLastError (void * ctx); -void xmlResetLastError (void); -void initGenericErrorDefaultFunc (xmlGenericErrorFunc * handler); -int xmlCopyError (xmlErrorPtr from,
    xmlErrorPtr to); -void xmlParserValidityWarning (void * ctx,
    const char * msg,
    ... ...); -void xmlParserPrintFileContext (xmlParserInputPtr input); -void xmlParserError (void * ctx,
    const char * msg,
    ... ...); -void xmlParserWarning (void * ctx,
    const char * msg,
    ... ...); -typedef void xmlStructuredErrorFunc (void * userData,
    xmlErrorPtr error); -void xmlSetStructuredErrorFunc (void * ctx,
    xmlStructuredErrorFunc handler); -void xmlResetError (xmlErrorPtr err); -xmlErrorPtr xmlGetLastError (void); -xmlErrorPtr xmlCtxtGetLastError (void * ctx); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlError

    struct _xmlError {
    -    int	domain	: What part of the library raised this error
    -    int	code	: The error code, e.g. an xmlParserError
    -    char *	message	: human-readable informative error message
    -    xmlErrorLevel	level	: how consequent is the error
    -    char *	file	: the filename
    -    int	line	: the line number if available
    -    char *	str1	: extra string information
    -    char *	str2	: extra string information
    -    char *	str3	: extra string information
    -    int	int1	: extra number information
    -    int	int2	: column number of the error or 0 if N/A (todo: rename this field when
    -    void *	ctxt	: the parser context if available
    -    void *	node	: the node in the tree
    -} xmlError;
    -

    -

    -
    -

    Enum xmlErrorDomain

    enum xmlErrorDomain {
    -    XML_FROM_NONE = 0
    -    XML_FROM_PARSER = 1 /* The XML parser */
    -    XML_FROM_TREE = 2 /* The tree module */
    -    XML_FROM_NAMESPACE = 3 /* The XML Namespace module */
    -    XML_FROM_DTD = 4 /* The XML DTD validation with parser contex */
    -    XML_FROM_HTML = 5 /* The HTML parser */
    -    XML_FROM_MEMORY = 6 /* The memory allocator */
    -    XML_FROM_OUTPUT = 7 /* The serialization code */
    -    XML_FROM_IO = 8 /* The Input/Output stack */
    -    XML_FROM_FTP = 9 /* The FTP module */
    -    XML_FROM_HTTP = 10 /* The HTTP module */
    -    XML_FROM_XINCLUDE = 11 /* The XInclude processing */
    -    XML_FROM_XPATH = 12 /* The XPath module */
    -    XML_FROM_XPOINTER = 13 /* The XPointer module */
    -    XML_FROM_REGEXP = 14 /* The regular expressions module */
    -    XML_FROM_DATATYPE = 15 /* The W3C XML Schemas Datatype module */
    -    XML_FROM_SCHEMASP = 16 /* The W3C XML Schemas parser module */
    -    XML_FROM_SCHEMASV = 17 /* The W3C XML Schemas validation module */
    -    XML_FROM_RELAXNGP = 18 /* The Relax-NG parser module */
    -    XML_FROM_RELAXNGV = 19 /* The Relax-NG validator module */
    -    XML_FROM_CATALOG = 20 /* The Catalog module */
    -    XML_FROM_C14N = 21 /* The Canonicalization module */
    -    XML_FROM_XSLT = 22 /* The XSLT engine from libxslt */
    -    XML_FROM_VALID = 23 /* The XML DTD validation with valid context */
    -    XML_FROM_CHECK = 24 /* The error checking module */
    -    XML_FROM_WRITER = 25 /* The xmlwriter module */
    -    XML_FROM_MODULE = 26 /* The dynamically loaded module modul */
    -    XML_FROM_I18N = 27 /*  The module handling character conversion */
    -};
    -

    -

    -
    -

    Enum xmlErrorLevel

    enum xmlErrorLevel {
    -    XML_ERR_NONE = 0
    -    XML_ERR_WARNING = 1 /* A simple warning */
    -    XML_ERR_ERROR = 2 /* A recoverable error */
    -    XML_ERR_FATAL = 3 /*  A fatal error */
    -};
    -

    -

    -
    -

    Typedef xmlErrorPtr

    xmlError * xmlErrorPtr;
    -

    -

    -
    -

    Enum xmlParserErrors

    enum xmlParserErrors {
    -    XML_ERR_OK = 0
    -    XML_ERR_INTERNAL_ERROR = 1 /* 1 */
    -    XML_ERR_NO_MEMORY = 2 /* 2 */
    -    XML_ERR_DOCUMENT_START = 3 /* 3 */
    -    XML_ERR_DOCUMENT_EMPTY = 4 /* 4 */
    -    XML_ERR_DOCUMENT_END = 5 /* 5 */
    -    XML_ERR_INVALID_HEX_CHARREF = 6 /* 6 */
    -    XML_ERR_INVALID_DEC_CHARREF = 7 /* 7 */
    -    XML_ERR_INVALID_CHARREF = 8 /* 8 */
    -    XML_ERR_INVALID_CHAR = 9 /* 9 */
    -    XML_ERR_CHARREF_AT_EOF = 10 /* 10 */
    -    XML_ERR_CHARREF_IN_PROLOG = 11 /* 11 */
    -    XML_ERR_CHARREF_IN_EPILOG = 12 /* 12 */
    -    XML_ERR_CHARREF_IN_DTD = 13 /* 13 */
    -    XML_ERR_ENTITYREF_AT_EOF = 14 /* 14 */
    -    XML_ERR_ENTITYREF_IN_PROLOG = 15 /* 15 */
    -    XML_ERR_ENTITYREF_IN_EPILOG = 16 /* 16 */
    -    XML_ERR_ENTITYREF_IN_DTD = 17 /* 17 */
    -    XML_ERR_PEREF_AT_EOF = 18 /* 18 */
    -    XML_ERR_PEREF_IN_PROLOG = 19 /* 19 */
    -    XML_ERR_PEREF_IN_EPILOG = 20 /* 20 */
    -    XML_ERR_PEREF_IN_INT_SUBSET = 21 /* 21 */
    -    XML_ERR_ENTITYREF_NO_NAME = 22 /* 22 */
    -    XML_ERR_ENTITYREF_SEMICOL_MISSING = 23 /* 23 */
    -    XML_ERR_PEREF_NO_NAME = 24 /* 24 */
    -    XML_ERR_PEREF_SEMICOL_MISSING = 25 /* 25 */
    -    XML_ERR_UNDECLARED_ENTITY = 26 /* 26 */
    -    XML_WAR_UNDECLARED_ENTITY = 27 /* 27 */
    -    XML_ERR_UNPARSED_ENTITY = 28 /* 28 */
    -    XML_ERR_ENTITY_IS_EXTERNAL = 29 /* 29 */
    -    XML_ERR_ENTITY_IS_PARAMETER = 30 /* 30 */
    -    XML_ERR_UNKNOWN_ENCODING = 31 /* 31 */
    -    XML_ERR_UNSUPPORTED_ENCODING = 32 /* 32 */
    -    XML_ERR_STRING_NOT_STARTED = 33 /* 33 */
    -    XML_ERR_STRING_NOT_CLOSED = 34 /* 34 */
    -    XML_ERR_NS_DECL_ERROR = 35 /* 35 */
    -    XML_ERR_ENTITY_NOT_STARTED = 36 /* 36 */
    -    XML_ERR_ENTITY_NOT_FINISHED = 37 /* 37 */
    -    XML_ERR_LT_IN_ATTRIBUTE = 38 /* 38 */
    -    XML_ERR_ATTRIBUTE_NOT_STARTED = 39 /* 39 */
    -    XML_ERR_ATTRIBUTE_NOT_FINISHED = 40 /* 40 */
    -    XML_ERR_ATTRIBUTE_WITHOUT_VALUE = 41 /* 41 */
    -    XML_ERR_ATTRIBUTE_REDEFINED = 42 /* 42 */
    -    XML_ERR_LITERAL_NOT_STARTED = 43 /* 43 */
    -    XML_ERR_LITERAL_NOT_FINISHED = 44 /* 44 */
    -    XML_ERR_COMMENT_NOT_FINISHED = 45 /* 45 */
    -    XML_ERR_PI_NOT_STARTED = 46 /* 46 */
    -    XML_ERR_PI_NOT_FINISHED = 47 /* 47 */
    -    XML_ERR_NOTATION_NOT_STARTED = 48 /* 48 */
    -    XML_ERR_NOTATION_NOT_FINISHED = 49 /* 49 */
    -    XML_ERR_ATTLIST_NOT_STARTED = 50 /* 50 */
    -    XML_ERR_ATTLIST_NOT_FINISHED = 51 /* 51 */
    -    XML_ERR_MIXED_NOT_STARTED = 52 /* 52 */
    -    XML_ERR_MIXED_NOT_FINISHED = 53 /* 53 */
    -    XML_ERR_ELEMCONTENT_NOT_STARTED = 54 /* 54 */
    -    XML_ERR_ELEMCONTENT_NOT_FINISHED = 55 /* 55 */
    -    XML_ERR_XMLDECL_NOT_STARTED = 56 /* 56 */
    -    XML_ERR_XMLDECL_NOT_FINISHED = 57 /* 57 */
    -    XML_ERR_CONDSEC_NOT_STARTED = 58 /* 58 */
    -    XML_ERR_CONDSEC_NOT_FINISHED = 59 /* 59 */
    -    XML_ERR_EXT_SUBSET_NOT_FINISHED = 60 /* 60 */
    -    XML_ERR_DOCTYPE_NOT_FINISHED = 61 /* 61 */
    -    XML_ERR_MISPLACED_CDATA_END = 62 /* 62 */
    -    XML_ERR_CDATA_NOT_FINISHED = 63 /* 63 */
    -    XML_ERR_RESERVED_XML_NAME = 64 /* 64 */
    -    XML_ERR_SPACE_REQUIRED = 65 /* 65 */
    -    XML_ERR_SEPARATOR_REQUIRED = 66 /* 66 */
    -    XML_ERR_NMTOKEN_REQUIRED = 67 /* 67 */
    -    XML_ERR_NAME_REQUIRED = 68 /* 68 */
    -    XML_ERR_PCDATA_REQUIRED = 69 /* 69 */
    -    XML_ERR_URI_REQUIRED = 70 /* 70 */
    -    XML_ERR_PUBID_REQUIRED = 71 /* 71 */
    -    XML_ERR_LT_REQUIRED = 72 /* 72 */
    -    XML_ERR_GT_REQUIRED = 73 /* 73 */
    -    XML_ERR_LTSLASH_REQUIRED = 74 /* 74 */
    -    XML_ERR_EQUAL_REQUIRED = 75 /* 75 */
    -    XML_ERR_TAG_NAME_MISMATCH = 76 /* 76 */
    -    XML_ERR_TAG_NOT_FINISHED = 77 /* 77 */
    -    XML_ERR_STANDALONE_VALUE = 78 /* 78 */
    -    XML_ERR_ENCODING_NAME = 79 /* 79 */
    -    XML_ERR_HYPHEN_IN_COMMENT = 80 /* 80 */
    -    XML_ERR_INVALID_ENCODING = 81 /* 81 */
    -    XML_ERR_EXT_ENTITY_STANDALONE = 82 /* 82 */
    -    XML_ERR_CONDSEC_INVALID = 83 /* 83 */
    -    XML_ERR_VALUE_REQUIRED = 84 /* 84 */
    -    XML_ERR_NOT_WELL_BALANCED = 85 /* 85 */
    -    XML_ERR_EXTRA_CONTENT = 86 /* 86 */
    -    XML_ERR_ENTITY_CHAR_ERROR = 87 /* 87 */
    -    XML_ERR_ENTITY_PE_INTERNAL = 88 /* 88 */
    -    XML_ERR_ENTITY_LOOP = 89 /* 89 */
    -    XML_ERR_ENTITY_BOUNDARY = 90 /* 90 */
    -    XML_ERR_INVALID_URI = 91 /* 91 */
    -    XML_ERR_URI_FRAGMENT = 92 /* 92 */
    -    XML_WAR_CATALOG_PI = 93 /* 93 */
    -    XML_ERR_NO_DTD = 94 /* 94 */
    -    XML_ERR_CONDSEC_INVALID_KEYWORD = 95 /* 95 */
    -    XML_ERR_VERSION_MISSING = 96 /* 96 */
    -    XML_WAR_UNKNOWN_VERSION = 97 /* 97 */
    -    XML_WAR_LANG_VALUE = 98 /* 98 */
    -    XML_WAR_NS_URI = 99 /* 99 */
    -    XML_WAR_NS_URI_RELATIVE = 100 /* 100 */
    -    XML_ERR_MISSING_ENCODING = 101 /* 101 */
    -    XML_WAR_SPACE_VALUE = 102 /* 102 */
    -    XML_ERR_NOT_STANDALONE = 103 /* 103 */
    -    XML_ERR_ENTITY_PROCESSING = 104 /* 104 */
    -    XML_ERR_NOTATION_PROCESSING = 105 /* 105 */
    -    XML_WAR_NS_COLUMN = 106 /* 106 */
    -    XML_WAR_ENTITY_REDEFINED = 107 /* 107 */
    -    XML_NS_ERR_XML_NAMESPACE = 200
    -    XML_NS_ERR_UNDEFINED_NAMESPACE = 201 /* 201 */
    -    XML_NS_ERR_QNAME = 202 /* 202 */
    -    XML_NS_ERR_ATTRIBUTE_REDEFINED = 203 /* 203 */
    -    XML_NS_ERR_EMPTY = 204 /* 204 */
    -    XML_DTD_ATTRIBUTE_DEFAULT = 500
    -    XML_DTD_ATTRIBUTE_REDEFINED = 501 /* 501 */
    -    XML_DTD_ATTRIBUTE_VALUE = 502 /* 502 */
    -    XML_DTD_CONTENT_ERROR = 503 /* 503 */
    -    XML_DTD_CONTENT_MODEL = 504 /* 504 */
    -    XML_DTD_CONTENT_NOT_DETERMINIST = 505 /* 505 */
    -    XML_DTD_DIFFERENT_PREFIX = 506 /* 506 */
    -    XML_DTD_ELEM_DEFAULT_NAMESPACE = 507 /* 507 */
    -    XML_DTD_ELEM_NAMESPACE = 508 /* 508 */
    -    XML_DTD_ELEM_REDEFINED = 509 /* 509 */
    -    XML_DTD_EMPTY_NOTATION = 510 /* 510 */
    -    XML_DTD_ENTITY_TYPE = 511 /* 511 */
    -    XML_DTD_ID_FIXED = 512 /* 512 */
    -    XML_DTD_ID_REDEFINED = 513 /* 513 */
    -    XML_DTD_ID_SUBSET = 514 /* 514 */
    -    XML_DTD_INVALID_CHILD = 515 /* 515 */
    -    XML_DTD_INVALID_DEFAULT = 516 /* 516 */
    -    XML_DTD_LOAD_ERROR = 517 /* 517 */
    -    XML_DTD_MISSING_ATTRIBUTE = 518 /* 518 */
    -    XML_DTD_MIXED_CORRUPT = 519 /* 519 */
    -    XML_DTD_MULTIPLE_ID = 520 /* 520 */
    -    XML_DTD_NO_DOC = 521 /* 521 */
    -    XML_DTD_NO_DTD = 522 /* 522 */
    -    XML_DTD_NO_ELEM_NAME = 523 /* 523 */
    -    XML_DTD_NO_PREFIX = 524 /* 524 */
    -    XML_DTD_NO_ROOT = 525 /* 525 */
    -    XML_DTD_NOTATION_REDEFINED = 526 /* 526 */
    -    XML_DTD_NOTATION_VALUE = 527 /* 527 */
    -    XML_DTD_NOT_EMPTY = 528 /* 528 */
    -    XML_DTD_NOT_PCDATA = 529 /* 529 */
    -    XML_DTD_NOT_STANDALONE = 530 /* 530 */
    -    XML_DTD_ROOT_NAME = 531 /* 531 */
    -    XML_DTD_STANDALONE_WHITE_SPACE = 532 /* 532 */
    -    XML_DTD_UNKNOWN_ATTRIBUTE = 533 /* 533 */
    -    XML_DTD_UNKNOWN_ELEM = 534 /* 534 */
    -    XML_DTD_UNKNOWN_ENTITY = 535 /* 535 */
    -    XML_DTD_UNKNOWN_ID = 536 /* 536 */
    -    XML_DTD_UNKNOWN_NOTATION = 537 /* 537 */
    -    XML_DTD_STANDALONE_DEFAULTED = 538 /* 538 */
    -    XML_DTD_XMLID_VALUE = 539 /* 539 */
    -    XML_DTD_XMLID_TYPE = 540 /* 540 */
    -    XML_HTML_STRUCURE_ERROR = 800
    -    XML_HTML_UNKNOWN_TAG = 801 /* 801 */
    -    XML_RNGP_ANYNAME_ATTR_ANCESTOR = 1000
    -    XML_RNGP_ATTR_CONFLICT = 1001 /* 1001 */
    -    XML_RNGP_ATTRIBUTE_CHILDREN = 1002 /* 1002 */
    -    XML_RNGP_ATTRIBUTE_CONTENT = 1003 /* 1003 */
    -    XML_RNGP_ATTRIBUTE_EMPTY = 1004 /* 1004 */
    -    XML_RNGP_ATTRIBUTE_NOOP = 1005 /* 1005 */
    -    XML_RNGP_CHOICE_CONTENT = 1006 /* 1006 */
    -    XML_RNGP_CHOICE_EMPTY = 1007 /* 1007 */
    -    XML_RNGP_CREATE_FAILURE = 1008 /* 1008 */
    -    XML_RNGP_DATA_CONTENT = 1009 /* 1009 */
    -    XML_RNGP_DEF_CHOICE_AND_INTERLEAVE = 1010 /* 1010 */
    -    XML_RNGP_DEFINE_CREATE_FAILED = 1011 /* 1011 */
    -    XML_RNGP_DEFINE_EMPTY = 1012 /* 1012 */
    -    XML_RNGP_DEFINE_MISSING = 1013 /* 1013 */
    -    XML_RNGP_DEFINE_NAME_MISSING = 1014 /* 1014 */
    -    XML_RNGP_ELEM_CONTENT_EMPTY = 1015 /* 1015 */
    -    XML_RNGP_ELEM_CONTENT_ERROR = 1016 /* 1016 */
    -    XML_RNGP_ELEMENT_EMPTY = 1017 /* 1017 */
    -    XML_RNGP_ELEMENT_CONTENT = 1018 /* 1018 */
    -    XML_RNGP_ELEMENT_NAME = 1019 /* 1019 */
    -    XML_RNGP_ELEMENT_NO_CONTENT = 1020 /* 1020 */
    -    XML_RNGP_ELEM_TEXT_CONFLICT = 1021 /* 1021 */
    -    XML_RNGP_EMPTY = 1022 /* 1022 */
    -    XML_RNGP_EMPTY_CONSTRUCT = 1023 /* 1023 */
    -    XML_RNGP_EMPTY_CONTENT = 1024 /* 1024 */
    -    XML_RNGP_EMPTY_NOT_EMPTY = 1025 /* 1025 */
    -    XML_RNGP_ERROR_TYPE_LIB = 1026 /* 1026 */
    -    XML_RNGP_EXCEPT_EMPTY = 1027 /* 1027 */
    -    XML_RNGP_EXCEPT_MISSING = 1028 /* 1028 */
    -    XML_RNGP_EXCEPT_MULTIPLE = 1029 /* 1029 */
    -    XML_RNGP_EXCEPT_NO_CONTENT = 1030 /* 1030 */
    -    XML_RNGP_EXTERNALREF_EMTPY = 1031 /* 1031 */
    -    XML_RNGP_EXTERNAL_REF_FAILURE = 1032 /* 1032 */
    -    XML_RNGP_EXTERNALREF_RECURSE = 1033 /* 1033 */
    -    XML_RNGP_FORBIDDEN_ATTRIBUTE = 1034 /* 1034 */
    -    XML_RNGP_FOREIGN_ELEMENT = 1035 /* 1035 */
    -    XML_RNGP_GRAMMAR_CONTENT = 1036 /* 1036 */
    -    XML_RNGP_GRAMMAR_EMPTY = 1037 /* 1037 */
    -    XML_RNGP_GRAMMAR_MISSING = 1038 /* 1038 */
    -    XML_RNGP_GRAMMAR_NO_START = 1039 /* 1039 */
    -    XML_RNGP_GROUP_ATTR_CONFLICT = 1040 /* 1040 */
    -    XML_RNGP_HREF_ERROR = 1041 /* 1041 */
    -    XML_RNGP_INCLUDE_EMPTY = 1042 /* 1042 */
    -    XML_RNGP_INCLUDE_FAILURE = 1043 /* 1043 */
    -    XML_RNGP_INCLUDE_RECURSE = 1044 /* 1044 */
    -    XML_RNGP_INTERLEAVE_ADD = 1045 /* 1045 */
    -    XML_RNGP_INTERLEAVE_CREATE_FAILED = 1046 /* 1046 */
    -    XML_RNGP_INTERLEAVE_EMPTY = 1047 /* 1047 */
    -    XML_RNGP_INTERLEAVE_NO_CONTENT = 1048 /* 1048 */
    -    XML_RNGP_INVALID_DEFINE_NAME = 1049 /* 1049 */
    -    XML_RNGP_INVALID_URI = 1050 /* 1050 */
    -    XML_RNGP_INVALID_VALUE = 1051 /* 1051 */
    -    XML_RNGP_MISSING_HREF = 1052 /* 1052 */
    -    XML_RNGP_NAME_MISSING = 1053 /* 1053 */
    -    XML_RNGP_NEED_COMBINE = 1054 /* 1054 */
    -    XML_RNGP_NOTALLOWED_NOT_EMPTY = 1055 /* 1055 */
    -    XML_RNGP_NSNAME_ATTR_ANCESTOR = 1056 /* 1056 */
    -    XML_RNGP_NSNAME_NO_NS = 1057 /* 1057 */
    -    XML_RNGP_PARAM_FORBIDDEN = 1058 /* 1058 */
    -    XML_RNGP_PARAM_NAME_MISSING = 1059 /* 1059 */
    -    XML_RNGP_PARENTREF_CREATE_FAILED = 1060 /* 1060 */
    -    XML_RNGP_PARENTREF_NAME_INVALID = 1061 /* 1061 */
    -    XML_RNGP_PARENTREF_NO_NAME = 1062 /* 1062 */
    -    XML_RNGP_PARENTREF_NO_PARENT = 1063 /* 1063 */
    -    XML_RNGP_PARENTREF_NOT_EMPTY = 1064 /* 1064 */
    -    XML_RNGP_PARSE_ERROR = 1065 /* 1065 */
    -    XML_RNGP_PAT_ANYNAME_EXCEPT_ANYNAME = 1066 /* 1066 */
    -    XML_RNGP_PAT_ATTR_ATTR = 1067 /* 1067 */
    -    XML_RNGP_PAT_ATTR_ELEM = 1068 /* 1068 */
    -    XML_RNGP_PAT_DATA_EXCEPT_ATTR = 1069 /* 1069 */
    -    XML_RNGP_PAT_DATA_EXCEPT_ELEM = 1070 /* 1070 */
    -    XML_RNGP_PAT_DATA_EXCEPT_EMPTY = 1071 /* 1071 */
    -    XML_RNGP_PAT_DATA_EXCEPT_GROUP = 1072 /* 1072 */
    -    XML_RNGP_PAT_DATA_EXCEPT_INTERLEAVE = 1073 /* 1073 */
    -    XML_RNGP_PAT_DATA_EXCEPT_LIST = 1074 /* 1074 */
    -    XML_RNGP_PAT_DATA_EXCEPT_ONEMORE = 1075 /* 1075 */
    -    XML_RNGP_PAT_DATA_EXCEPT_REF = 1076 /* 1076 */
    -    XML_RNGP_PAT_DATA_EXCEPT_TEXT = 1077 /* 1077 */
    -    XML_RNGP_PAT_LIST_ATTR = 1078 /* 1078 */
    -    XML_RNGP_PAT_LIST_ELEM = 1079 /* 1079 */
    -    XML_RNGP_PAT_LIST_INTERLEAVE = 1080 /* 1080 */
    -    XML_RNGP_PAT_LIST_LIST = 1081 /* 1081 */
    -    XML_RNGP_PAT_LIST_REF = 1082 /* 1082 */
    -    XML_RNGP_PAT_LIST_TEXT = 1083 /* 1083 */
    -    XML_RNGP_PAT_NSNAME_EXCEPT_ANYNAME = 1084 /* 1084 */
    -    XML_RNGP_PAT_NSNAME_EXCEPT_NSNAME = 1085 /* 1085 */
    -    XML_RNGP_PAT_ONEMORE_GROUP_ATTR = 1086 /* 1086 */
    -    XML_RNGP_PAT_ONEMORE_INTERLEAVE_ATTR = 1087 /* 1087 */
    -    XML_RNGP_PAT_START_ATTR = 1088 /* 1088 */
    -    XML_RNGP_PAT_START_DATA = 1089 /* 1089 */
    -    XML_RNGP_PAT_START_EMPTY = 1090 /* 1090 */
    -    XML_RNGP_PAT_START_GROUP = 1091 /* 1091 */
    -    XML_RNGP_PAT_START_INTERLEAVE = 1092 /* 1092 */
    -    XML_RNGP_PAT_START_LIST = 1093 /* 1093 */
    -    XML_RNGP_PAT_START_ONEMORE = 1094 /* 1094 */
    -    XML_RNGP_PAT_START_TEXT = 1095 /* 1095 */
    -    XML_RNGP_PAT_START_VALUE = 1096 /* 1096 */
    -    XML_RNGP_PREFIX_UNDEFINED = 1097 /* 1097 */
    -    XML_RNGP_REF_CREATE_FAILED = 1098 /* 1098 */
    -    XML_RNGP_REF_CYCLE = 1099 /* 1099 */
    -    XML_RNGP_REF_NAME_INVALID = 1100 /* 1100 */
    -    XML_RNGP_REF_NO_DEF = 1101 /* 1101 */
    -    XML_RNGP_REF_NO_NAME = 1102 /* 1102 */
    -    XML_RNGP_REF_NOT_EMPTY = 1103 /* 1103 */
    -    XML_RNGP_START_CHOICE_AND_INTERLEAVE = 1104 /* 1104 */
    -    XML_RNGP_START_CONTENT = 1105 /* 1105 */
    -    XML_RNGP_START_EMPTY = 1106 /* 1106 */
    -    XML_RNGP_START_MISSING = 1107 /* 1107 */
    -    XML_RNGP_TEXT_EXPECTED = 1108 /* 1108 */
    -    XML_RNGP_TEXT_HAS_CHILD = 1109 /* 1109 */
    -    XML_RNGP_TYPE_MISSING = 1110 /* 1110 */
    -    XML_RNGP_TYPE_NOT_FOUND = 1111 /* 1111 */
    -    XML_RNGP_TYPE_VALUE = 1112 /* 1112 */
    -    XML_RNGP_UNKNOWN_ATTRIBUTE = 1113 /* 1113 */
    -    XML_RNGP_UNKNOWN_COMBINE = 1114 /* 1114 */
    -    XML_RNGP_UNKNOWN_CONSTRUCT = 1115 /* 1115 */
    -    XML_RNGP_UNKNOWN_TYPE_LIB = 1116 /* 1116 */
    -    XML_RNGP_URI_FRAGMENT = 1117 /* 1117 */
    -    XML_RNGP_URI_NOT_ABSOLUTE = 1118 /* 1118 */
    -    XML_RNGP_VALUE_EMPTY = 1119 /* 1119 */
    -    XML_RNGP_VALUE_NO_CONTENT = 1120 /* 1120 */
    -    XML_RNGP_XMLNS_NAME = 1121 /* 1121 */
    -    XML_RNGP_XML_NS = 1122 /* 1122 */
    -    XML_XPATH_EXPRESSION_OK = 1200
    -    XML_XPATH_NUMBER_ERROR = 1201 /* 1201 */
    -    XML_XPATH_UNFINISHED_LITERAL_ERROR = 1202 /* 1202 */
    -    XML_XPATH_START_LITERAL_ERROR = 1203 /* 1203 */
    -    XML_XPATH_VARIABLE_REF_ERROR = 1204 /* 1204 */
    -    XML_XPATH_UNDEF_VARIABLE_ERROR = 1205 /* 1205 */
    -    XML_XPATH_INVALID_PREDICATE_ERROR = 1206 /* 1206 */
    -    XML_XPATH_EXPR_ERROR = 1207 /* 1207 */
    -    XML_XPATH_UNCLOSED_ERROR = 1208 /* 1208 */
    -    XML_XPATH_UNKNOWN_FUNC_ERROR = 1209 /* 1209 */
    -    XML_XPATH_INVALID_OPERAND = 1210 /* 1210 */
    -    XML_XPATH_INVALID_TYPE = 1211 /* 1211 */
    -    XML_XPATH_INVALID_ARITY = 1212 /* 1212 */
    -    XML_XPATH_INVALID_CTXT_SIZE = 1213 /* 1213 */
    -    XML_XPATH_INVALID_CTXT_POSITION = 1214 /* 1214 */
    -    XML_XPATH_MEMORY_ERROR = 1215 /* 1215 */
    -    XML_XPTR_SYNTAX_ERROR = 1216 /* 1216 */
    -    XML_XPTR_RESOURCE_ERROR = 1217 /* 1217 */
    -    XML_XPTR_SUB_RESOURCE_ERROR = 1218 /* 1218 */
    -    XML_XPATH_UNDEF_PREFIX_ERROR = 1219 /* 1219 */
    -    XML_XPATH_ENCODING_ERROR = 1220 /* 1220 */
    -    XML_XPATH_INVALID_CHAR_ERROR = 1221 /* 1221 */
    -    XML_TREE_INVALID_HEX = 1300
    -    XML_TREE_INVALID_DEC = 1301 /* 1301 */
    -    XML_TREE_UNTERMINATED_ENTITY = 1302 /* 1302 */
    -    XML_SAVE_NOT_UTF8 = 1400
    -    XML_SAVE_CHAR_INVALID = 1401 /* 1401 */
    -    XML_SAVE_NO_DOCTYPE = 1402 /* 1402 */
    -    XML_SAVE_UNKNOWN_ENCODING = 1403 /* 1403 */
    -    XML_REGEXP_COMPILE_ERROR = 1450
    -    XML_IO_UNKNOWN = 1500
    -    XML_IO_EACCES = 1501 /* 1501 */
    -    XML_IO_EAGAIN = 1502 /* 1502 */
    -    XML_IO_EBADF = 1503 /* 1503 */
    -    XML_IO_EBADMSG = 1504 /* 1504 */
    -    XML_IO_EBUSY = 1505 /* 1505 */
    -    XML_IO_ECANCELED = 1506 /* 1506 */
    -    XML_IO_ECHILD = 1507 /* 1507 */
    -    XML_IO_EDEADLK = 1508 /* 1508 */
    -    XML_IO_EDOM = 1509 /* 1509 */
    -    XML_IO_EEXIST = 1510 /* 1510 */
    -    XML_IO_EFAULT = 1511 /* 1511 */
    -    XML_IO_EFBIG = 1512 /* 1512 */
    -    XML_IO_EINPROGRESS = 1513 /* 1513 */
    -    XML_IO_EINTR = 1514 /* 1514 */
    -    XML_IO_EINVAL = 1515 /* 1515 */
    -    XML_IO_EIO = 1516 /* 1516 */
    -    XML_IO_EISDIR = 1517 /* 1517 */
    -    XML_IO_EMFILE = 1518 /* 1518 */
    -    XML_IO_EMLINK = 1519 /* 1519 */
    -    XML_IO_EMSGSIZE = 1520 /* 1520 */
    -    XML_IO_ENAMETOOLONG = 1521 /* 1521 */
    -    XML_IO_ENFILE = 1522 /* 1522 */
    -    XML_IO_ENODEV = 1523 /* 1523 */
    -    XML_IO_ENOENT = 1524 /* 1524 */
    -    XML_IO_ENOEXEC = 1525 /* 1525 */
    -    XML_IO_ENOLCK = 1526 /* 1526 */
    -    XML_IO_ENOMEM = 1527 /* 1527 */
    -    XML_IO_ENOSPC = 1528 /* 1528 */
    -    XML_IO_ENOSYS = 1529 /* 1529 */
    -    XML_IO_ENOTDIR = 1530 /* 1530 */
    -    XML_IO_ENOTEMPTY = 1531 /* 1531 */
    -    XML_IO_ENOTSUP = 1532 /* 1532 */
    -    XML_IO_ENOTTY = 1533 /* 1533 */
    -    XML_IO_ENXIO = 1534 /* 1534 */
    -    XML_IO_EPERM = 1535 /* 1535 */
    -    XML_IO_EPIPE = 1536 /* 1536 */
    -    XML_IO_ERANGE = 1537 /* 1537 */
    -    XML_IO_EROFS = 1538 /* 1538 */
    -    XML_IO_ESPIPE = 1539 /* 1539 */
    -    XML_IO_ESRCH = 1540 /* 1540 */
    -    XML_IO_ETIMEDOUT = 1541 /* 1541 */
    -    XML_IO_EXDEV = 1542 /* 1542 */
    -    XML_IO_NETWORK_ATTEMPT = 1543 /* 1543 */
    -    XML_IO_ENCODER = 1544 /* 1544 */
    -    XML_IO_FLUSH = 1545 /* 1545 */
    -    XML_IO_WRITE = 1546 /* 1546 */
    -    XML_IO_NO_INPUT = 1547 /* 1547 */
    -    XML_IO_BUFFER_FULL = 1548 /* 1548 */
    -    XML_IO_LOAD_ERROR = 1549 /* 1549 */
    -    XML_IO_ENOTSOCK = 1550 /* 1550 */
    -    XML_IO_EISCONN = 1551 /* 1551 */
    -    XML_IO_ECONNREFUSED = 1552 /* 1552 */
    -    XML_IO_ENETUNREACH = 1553 /* 1553 */
    -    XML_IO_EADDRINUSE = 1554 /* 1554 */
    -    XML_IO_EALREADY = 1555 /* 1555 */
    -    XML_IO_EAFNOSUPPORT = 1556 /* 1556 */
    -    XML_XINCLUDE_RECURSION = 1600
    -    XML_XINCLUDE_PARSE_VALUE = 1601 /* 1601 */
    -    XML_XINCLUDE_ENTITY_DEF_MISMATCH = 1602 /* 1602 */
    -    XML_XINCLUDE_NO_HREF = 1603 /* 1603 */
    -    XML_XINCLUDE_NO_FALLBACK = 1604 /* 1604 */
    -    XML_XINCLUDE_HREF_URI = 1605 /* 1605 */
    -    XML_XINCLUDE_TEXT_FRAGMENT = 1606 /* 1606 */
    -    XML_XINCLUDE_TEXT_DOCUMENT = 1607 /* 1607 */
    -    XML_XINCLUDE_INVALID_CHAR = 1608 /* 1608 */
    -    XML_XINCLUDE_BUILD_FAILED = 1609 /* 1609 */
    -    XML_XINCLUDE_UNKNOWN_ENCODING = 1610 /* 1610 */
    -    XML_XINCLUDE_MULTIPLE_ROOT = 1611 /* 1611 */
    -    XML_XINCLUDE_XPTR_FAILED = 1612 /* 1612 */
    -    XML_XINCLUDE_XPTR_RESULT = 1613 /* 1613 */
    -    XML_XINCLUDE_INCLUDE_IN_INCLUDE = 1614 /* 1614 */
    -    XML_XINCLUDE_FALLBACKS_IN_INCLUDE = 1615 /* 1615 */
    -    XML_XINCLUDE_FALLBACK_NOT_IN_INCLUDE = 1616 /* 1616 */
    -    XML_XINCLUDE_DEPRECATED_NS = 1617 /* 1617 */
    -    XML_XINCLUDE_FRAGMENT_ID = 1618 /* 1618 */
    -    XML_CATALOG_MISSING_ATTR = 1650
    -    XML_CATALOG_ENTRY_BROKEN = 1651 /* 1651 */
    -    XML_CATALOG_PREFER_VALUE = 1652 /* 1652 */
    -    XML_CATALOG_NOT_CATALOG = 1653 /* 1653 */
    -    XML_CATALOG_RECURSION = 1654 /* 1654 */
    -    XML_SCHEMAP_PREFIX_UNDEFINED = 1700
    -    XML_SCHEMAP_ATTRFORMDEFAULT_VALUE = 1701 /* 1701 */
    -    XML_SCHEMAP_ATTRGRP_NONAME_NOREF = 1702 /* 1702 */
    -    XML_SCHEMAP_ATTR_NONAME_NOREF = 1703 /* 1703 */
    -    XML_SCHEMAP_COMPLEXTYPE_NONAME_NOREF = 1704 /* 1704 */
    -    XML_SCHEMAP_ELEMFORMDEFAULT_VALUE = 1705 /* 1705 */
    -    XML_SCHEMAP_ELEM_NONAME_NOREF = 1706 /* 1706 */
    -    XML_SCHEMAP_EXTENSION_NO_BASE = 1707 /* 1707 */
    -    XML_SCHEMAP_FACET_NO_VALUE = 1708 /* 1708 */
    -    XML_SCHEMAP_FAILED_BUILD_IMPORT = 1709 /* 1709 */
    -    XML_SCHEMAP_GROUP_NONAME_NOREF = 1710 /* 1710 */
    -    XML_SCHEMAP_IMPORT_NAMESPACE_NOT_URI = 1711 /* 1711 */
    -    XML_SCHEMAP_IMPORT_REDEFINE_NSNAME = 1712 /* 1712 */
    -    XML_SCHEMAP_IMPORT_SCHEMA_NOT_URI = 1713 /* 1713 */
    -    XML_SCHEMAP_INVALID_BOOLEAN = 1714 /* 1714 */
    -    XML_SCHEMAP_INVALID_ENUM = 1715 /* 1715 */
    -    XML_SCHEMAP_INVALID_FACET = 1716 /* 1716 */
    -    XML_SCHEMAP_INVALID_FACET_VALUE = 1717 /* 1717 */
    -    XML_SCHEMAP_INVALID_MAXOCCURS = 1718 /* 1718 */
    -    XML_SCHEMAP_INVALID_MINOCCURS = 1719 /* 1719 */
    -    XML_SCHEMAP_INVALID_REF_AND_SUBTYPE = 1720 /* 1720 */
    -    XML_SCHEMAP_INVALID_WHITE_SPACE = 1721 /* 1721 */
    -    XML_SCHEMAP_NOATTR_NOREF = 1722 /* 1722 */
    -    XML_SCHEMAP_NOTATION_NO_NAME = 1723 /* 1723 */
    -    XML_SCHEMAP_NOTYPE_NOREF = 1724 /* 1724 */
    -    XML_SCHEMAP_REF_AND_SUBTYPE = 1725 /* 1725 */
    -    XML_SCHEMAP_RESTRICTION_NONAME_NOREF = 1726 /* 1726 */
    -    XML_SCHEMAP_SIMPLETYPE_NONAME = 1727 /* 1727 */
    -    XML_SCHEMAP_TYPE_AND_SUBTYPE = 1728 /* 1728 */
    -    XML_SCHEMAP_UNKNOWN_ALL_CHILD = 1729 /* 1729 */
    -    XML_SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD = 1730 /* 1730 */
    -    XML_SCHEMAP_UNKNOWN_ATTR_CHILD = 1731 /* 1731 */
    -    XML_SCHEMAP_UNKNOWN_ATTRGRP_CHILD = 1732 /* 1732 */
    -    XML_SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP = 1733 /* 1733 */
    -    XML_SCHEMAP_UNKNOWN_BASE_TYPE = 1734 /* 1734 */
    -    XML_SCHEMAP_UNKNOWN_CHOICE_CHILD = 1735 /* 1735 */
    -    XML_SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD = 1736 /* 1736 */
    -    XML_SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD = 1737 /* 1737 */
    -    XML_SCHEMAP_UNKNOWN_ELEM_CHILD = 1738 /* 1738 */
    -    XML_SCHEMAP_UNKNOWN_EXTENSION_CHILD = 1739 /* 1739 */
    -    XML_SCHEMAP_UNKNOWN_FACET_CHILD = 1740 /* 1740 */
    -    XML_SCHEMAP_UNKNOWN_FACET_TYPE = 1741 /* 1741 */
    -    XML_SCHEMAP_UNKNOWN_GROUP_CHILD = 1742 /* 1742 */
    -    XML_SCHEMAP_UNKNOWN_IMPORT_CHILD = 1743 /* 1743 */
    -    XML_SCHEMAP_UNKNOWN_LIST_CHILD = 1744 /* 1744 */
    -    XML_SCHEMAP_UNKNOWN_NOTATION_CHILD = 1745 /* 1745 */
    -    XML_SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD = 1746 /* 1746 */
    -    XML_SCHEMAP_UNKNOWN_REF = 1747 /* 1747 */
    -    XML_SCHEMAP_UNKNOWN_RESTRICTION_CHILD = 1748 /* 1748 */
    -    XML_SCHEMAP_UNKNOWN_SCHEMAS_CHILD = 1749 /* 1749 */
    -    XML_SCHEMAP_UNKNOWN_SEQUENCE_CHILD = 1750 /* 1750 */
    -    XML_SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD = 1751 /* 1751 */
    -    XML_SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD = 1752 /* 1752 */
    -    XML_SCHEMAP_UNKNOWN_TYPE = 1753 /* 1753 */
    -    XML_SCHEMAP_UNKNOWN_UNION_CHILD = 1754 /* 1754 */
    -    XML_SCHEMAP_ELEM_DEFAULT_FIXED = 1755 /* 1755 */
    -    XML_SCHEMAP_REGEXP_INVALID = 1756 /* 1756 */
    -    XML_SCHEMAP_FAILED_LOAD = 1757 /* 1757 */
    -    XML_SCHEMAP_NOTHING_TO_PARSE = 1758 /* 1758 */
    -    XML_SCHEMAP_NOROOT = 1759 /* 1759 */
    -    XML_SCHEMAP_REDEFINED_GROUP = 1760 /* 1760 */
    -    XML_SCHEMAP_REDEFINED_TYPE = 1761 /* 1761 */
    -    XML_SCHEMAP_REDEFINED_ELEMENT = 1762 /* 1762 */
    -    XML_SCHEMAP_REDEFINED_ATTRGROUP = 1763 /* 1763 */
    -    XML_SCHEMAP_REDEFINED_ATTR = 1764 /* 1764 */
    -    XML_SCHEMAP_REDEFINED_NOTATION = 1765 /* 1765 */
    -    XML_SCHEMAP_FAILED_PARSE = 1766 /* 1766 */
    -    XML_SCHEMAP_UNKNOWN_PREFIX = 1767 /* 1767 */
    -    XML_SCHEMAP_DEF_AND_PREFIX = 1768 /* 1768 */
    -    XML_SCHEMAP_UNKNOWN_INCLUDE_CHILD = 1769 /* 1769 */
    -    XML_SCHEMAP_INCLUDE_SCHEMA_NOT_URI = 1770 /* 1770 */
    -    XML_SCHEMAP_INCLUDE_SCHEMA_NO_URI = 1771 /* 1771 */
    -    XML_SCHEMAP_NOT_SCHEMA = 1772 /* 1772 */
    -    XML_SCHEMAP_UNKNOWN_MEMBER_TYPE = 1773 /* 1773 */
    -    XML_SCHEMAP_INVALID_ATTR_USE = 1774 /* 1774 */
    -    XML_SCHEMAP_RECURSIVE = 1775 /* 1775 */
    -    XML_SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE = 1776 /* 1776 */
    -    XML_SCHEMAP_INVALID_ATTR_COMBINATION = 1777 /* 1777 */
    -    XML_SCHEMAP_INVALID_ATTR_INLINE_COMBINATION = 1778 /* 1778 */
    -    XML_SCHEMAP_MISSING_SIMPLETYPE_CHILD = 1779 /* 1779 */
    -    XML_SCHEMAP_INVALID_ATTR_NAME = 1780 /* 1780 */
    -    XML_SCHEMAP_REF_AND_CONTENT = 1781 /* 1781 */
    -    XML_SCHEMAP_CT_PROPS_CORRECT_1 = 1782 /* 1782 */
    -    XML_SCHEMAP_CT_PROPS_CORRECT_2 = 1783 /* 1783 */
    -    XML_SCHEMAP_CT_PROPS_CORRECT_3 = 1784 /* 1784 */
    -    XML_SCHEMAP_CT_PROPS_CORRECT_4 = 1785 /* 1785 */
    -    XML_SCHEMAP_CT_PROPS_CORRECT_5 = 1786 /* 1786 */
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_1 = 1787 /* 1787 */
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1 = 1788 /* 1788 */
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2 = 1789 /* 1789 */
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_2 = 1790 /* 1790 */
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_3 = 1791 /* 1791 */
    -    XML_SCHEMAP_WILDCARD_INVALID_NS_MEMBER = 1792 /* 1792 */
    -    XML_SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE = 1793 /* 1793 */
    -    XML_SCHEMAP_UNION_NOT_EXPRESSIBLE = 1794 /* 1794 */
    -    XML_SCHEMAP_SRC_IMPORT_3_1 = 1795 /* 1795 */
    -    XML_SCHEMAP_SRC_IMPORT_3_2 = 1796 /* 1796 */
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_1 = 1797 /* 1797 */
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_2 = 1798 /* 1798 */
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_3 = 1799 /* 1799 */
    -    XML_SCHEMAP_COS_CT_EXTENDS_1_3 = 1800 /* 1800 */
    -    XML_SCHEMAV_NOROOT = 1801
    -    XML_SCHEMAV_UNDECLAREDELEM = 1802 /* 1802 */
    -    XML_SCHEMAV_NOTTOPLEVEL = 1803 /* 1803 */
    -    XML_SCHEMAV_MISSING = 1804 /* 1804 */
    -    XML_SCHEMAV_WRONGELEM = 1805 /* 1805 */
    -    XML_SCHEMAV_NOTYPE = 1806 /* 1806 */
    -    XML_SCHEMAV_NOROLLBACK = 1807 /* 1807 */
    -    XML_SCHEMAV_ISABSTRACT = 1808 /* 1808 */
    -    XML_SCHEMAV_NOTEMPTY = 1809 /* 1809 */
    -    XML_SCHEMAV_ELEMCONT = 1810 /* 1810 */
    -    XML_SCHEMAV_HAVEDEFAULT = 1811 /* 1811 */
    -    XML_SCHEMAV_NOTNILLABLE = 1812 /* 1812 */
    -    XML_SCHEMAV_EXTRACONTENT = 1813 /* 1813 */
    -    XML_SCHEMAV_INVALIDATTR = 1814 /* 1814 */
    -    XML_SCHEMAV_INVALIDELEM = 1815 /* 1815 */
    -    XML_SCHEMAV_NOTDETERMINIST = 1816 /* 1816 */
    -    XML_SCHEMAV_CONSTRUCT = 1817 /* 1817 */
    -    XML_SCHEMAV_INTERNAL = 1818 /* 1818 */
    -    XML_SCHEMAV_NOTSIMPLE = 1819 /* 1819 */
    -    XML_SCHEMAV_ATTRUNKNOWN = 1820 /* 1820 */
    -    XML_SCHEMAV_ATTRINVALID = 1821 /* 1821 */
    -    XML_SCHEMAV_VALUE = 1822 /* 1822 */
    -    XML_SCHEMAV_FACET = 1823 /* 1823 */
    -    XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_1 = 1824 /* 1824 */
    -    XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_2 = 1825 /* 1825 */
    -    XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_3 = 1826 /* 1826 */
    -    XML_SCHEMAV_CVC_TYPE_3_1_1 = 1827 /* 1827 */
    -    XML_SCHEMAV_CVC_TYPE_3_1_2 = 1828 /* 1828 */
    -    XML_SCHEMAV_CVC_FACET_VALID = 1829 /* 1829 */
    -    XML_SCHEMAV_CVC_LENGTH_VALID = 1830 /* 1830 */
    -    XML_SCHEMAV_CVC_MINLENGTH_VALID = 1831 /* 1831 */
    -    XML_SCHEMAV_CVC_MAXLENGTH_VALID = 1832 /* 1832 */
    -    XML_SCHEMAV_CVC_MININCLUSIVE_VALID = 1833 /* 1833 */
    -    XML_SCHEMAV_CVC_MAXINCLUSIVE_VALID = 1834 /* 1834 */
    -    XML_SCHEMAV_CVC_MINEXCLUSIVE_VALID = 1835 /* 1835 */
    -    XML_SCHEMAV_CVC_MAXEXCLUSIVE_VALID = 1836 /* 1836 */
    -    XML_SCHEMAV_CVC_TOTALDIGITS_VALID = 1837 /* 1837 */
    -    XML_SCHEMAV_CVC_FRACTIONDIGITS_VALID = 1838 /* 1838 */
    -    XML_SCHEMAV_CVC_PATTERN_VALID = 1839 /* 1839 */
    -    XML_SCHEMAV_CVC_ENUMERATION_VALID = 1840 /* 1840 */
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_2_1 = 1841 /* 1841 */
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_2_2 = 1842 /* 1842 */
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_2_3 = 1843 /* 1843 */
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_2_4 = 1844 /* 1844 */
    -    XML_SCHEMAV_CVC_ELT_1 = 1845 /* 1845 */
    -    XML_SCHEMAV_CVC_ELT_2 = 1846 /* 1846 */
    -    XML_SCHEMAV_CVC_ELT_3_1 = 1847 /* 1847 */
    -    XML_SCHEMAV_CVC_ELT_3_2_1 = 1848 /* 1848 */
    -    XML_SCHEMAV_CVC_ELT_3_2_2 = 1849 /* 1849 */
    -    XML_SCHEMAV_CVC_ELT_4_1 = 1850 /* 1850 */
    -    XML_SCHEMAV_CVC_ELT_4_2 = 1851 /* 1851 */
    -    XML_SCHEMAV_CVC_ELT_4_3 = 1852 /* 1852 */
    -    XML_SCHEMAV_CVC_ELT_5_1_1 = 1853 /* 1853 */
    -    XML_SCHEMAV_CVC_ELT_5_1_2 = 1854 /* 1854 */
    -    XML_SCHEMAV_CVC_ELT_5_2_1 = 1855 /* 1855 */
    -    XML_SCHEMAV_CVC_ELT_5_2_2_1 = 1856 /* 1856 */
    -    XML_SCHEMAV_CVC_ELT_5_2_2_2_1 = 1857 /* 1857 */
    -    XML_SCHEMAV_CVC_ELT_5_2_2_2_2 = 1858 /* 1858 */
    -    XML_SCHEMAV_CVC_ELT_6 = 1859 /* 1859 */
    -    XML_SCHEMAV_CVC_ELT_7 = 1860 /* 1860 */
    -    XML_SCHEMAV_CVC_ATTRIBUTE_1 = 1861 /* 1861 */
    -    XML_SCHEMAV_CVC_ATTRIBUTE_2 = 1862 /* 1862 */
    -    XML_SCHEMAV_CVC_ATTRIBUTE_3 = 1863 /* 1863 */
    -    XML_SCHEMAV_CVC_ATTRIBUTE_4 = 1864 /* 1864 */
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_3_1 = 1865 /* 1865 */
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_1 = 1866 /* 1866 */
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_2 = 1867 /* 1867 */
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_4 = 1868 /* 1868 */
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_5_1 = 1869 /* 1869 */
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_5_2 = 1870 /* 1870 */
    -    XML_SCHEMAV_ELEMENT_CONTENT = 1871 /* 1871 */
    -    XML_SCHEMAV_DOCUMENT_ELEMENT_MISSING = 1872 /* 1872 */
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_1 = 1873 /* 1873 */
    -    XML_SCHEMAV_CVC_AU = 1874 /* 1874 */
    -    XML_SCHEMAV_CVC_TYPE_1 = 1875 /* 1875 */
    -    XML_SCHEMAV_CVC_TYPE_2 = 1876 /* 1876 */
    -    XML_SCHEMAV_CVC_IDC = 1877 /* 1877 */
    -    XML_SCHEMAV_CVC_WILDCARD = 1878 /* 1878 */
    -    XML_SCHEMAV_MISC = 1879 /* 1879 */
    -    XML_XPTR_UNKNOWN_SCHEME = 1900
    -    XML_XPTR_CHILDSEQ_START = 1901 /* 1901 */
    -    XML_XPTR_EVAL_FAILED = 1902 /* 1902 */
    -    XML_XPTR_EXTRA_OBJECTS = 1903 /* 1903 */
    -    XML_C14N_CREATE_CTXT = 1950
    -    XML_C14N_REQUIRES_UTF8 = 1951 /* 1951 */
    -    XML_C14N_CREATE_STACK = 1952 /* 1952 */
    -    XML_C14N_INVALID_NODE = 1953 /* 1953 */
    -    XML_C14N_UNKNOW_NODE = 1954 /* 1954 */
    -    XML_C14N_RELATIVE_NAMESPACE = 1955 /* 1955 */
    -    XML_FTP_PASV_ANSWER = 2000
    -    XML_FTP_EPSV_ANSWER = 2001 /* 2001 */
    -    XML_FTP_ACCNT = 2002 /* 2002 */
    -    XML_FTP_URL_SYNTAX = 2003 /* 2003 */
    -    XML_HTTP_URL_SYNTAX = 2020
    -    XML_HTTP_USE_IP = 2021 /* 2021 */
    -    XML_HTTP_UNKNOWN_HOST = 2022 /* 2022 */
    -    XML_SCHEMAP_SRC_SIMPLE_TYPE_1 = 3000
    -    XML_SCHEMAP_SRC_SIMPLE_TYPE_2 = 3001 /* 3001 */
    -    XML_SCHEMAP_SRC_SIMPLE_TYPE_3 = 3002 /* 3002 */
    -    XML_SCHEMAP_SRC_SIMPLE_TYPE_4 = 3003 /* 3003 */
    -    XML_SCHEMAP_SRC_RESOLVE = 3004 /* 3004 */
    -    XML_SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE = 3005 /* 3005 */
    -    XML_SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE = 3006 /* 3006 */
    -    XML_SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES = 3007 /* 3007 */
    -    XML_SCHEMAP_ST_PROPS_CORRECT_1 = 3008 /* 3008 */
    -    XML_SCHEMAP_ST_PROPS_CORRECT_2 = 3009 /* 3009 */
    -    XML_SCHEMAP_ST_PROPS_CORRECT_3 = 3010 /* 3010 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_1_1 = 3011 /* 3011 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_1_2 = 3012 /* 3012 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_1_3_1 = 3013 /* 3013 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_1_3_2 = 3014 /* 3014 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_2_1 = 3015 /* 3015 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_1 = 3016 /* 3016 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_2 = 3017 /* 3017 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_1 = 3018 /* 3018 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_2 = 3019 /* 3019 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_3 = 3020 /* 3020 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_4 = 3021 /* 3021 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_5 = 3022 /* 3022 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_3_1 = 3023 /* 3023 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1 = 3024 /* 3024 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1_2 = 3025 /* 3025 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_2 = 3026 /* 3026 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_1 = 3027 /* 3027 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_3 = 3028 /* 3028 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_4 = 3029 /* 3029 */
    -    XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_5 = 3030 /* 3030 */
    -    XML_SCHEMAP_COS_ST_DERIVED_OK_2_1 = 3031 /* 3031 */
    -    XML_SCHEMAP_COS_ST_DERIVED_OK_2_2 = 3032 /* 3032 */
    -    XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED = 3033 /* 3033 */
    -    XML_SCHEMAP_S4S_ELEM_MISSING = 3034 /* 3034 */
    -    XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED = 3035 /* 3035 */
    -    XML_SCHEMAP_S4S_ATTR_MISSING = 3036 /* 3036 */
    -    XML_SCHEMAP_S4S_ATTR_INVALID_VALUE = 3037 /* 3037 */
    -    XML_SCHEMAP_SRC_ELEMENT_1 = 3038 /* 3038 */
    -    XML_SCHEMAP_SRC_ELEMENT_2_1 = 3039 /* 3039 */
    -    XML_SCHEMAP_SRC_ELEMENT_2_2 = 3040 /* 3040 */
    -    XML_SCHEMAP_SRC_ELEMENT_3 = 3041 /* 3041 */
    -    XML_SCHEMAP_P_PROPS_CORRECT_1 = 3042 /* 3042 */
    -    XML_SCHEMAP_P_PROPS_CORRECT_2_1 = 3043 /* 3043 */
    -    XML_SCHEMAP_P_PROPS_CORRECT_2_2 = 3044 /* 3044 */
    -    XML_SCHEMAP_E_PROPS_CORRECT_2 = 3045 /* 3045 */
    -    XML_SCHEMAP_E_PROPS_CORRECT_3 = 3046 /* 3046 */
    -    XML_SCHEMAP_E_PROPS_CORRECT_4 = 3047 /* 3047 */
    -    XML_SCHEMAP_E_PROPS_CORRECT_5 = 3048 /* 3048 */
    -    XML_SCHEMAP_E_PROPS_CORRECT_6 = 3049 /* 3049 */
    -    XML_SCHEMAP_SRC_INCLUDE = 3050 /* 3050 */
    -    XML_SCHEMAP_SRC_ATTRIBUTE_1 = 3051 /* 3051 */
    -    XML_SCHEMAP_SRC_ATTRIBUTE_2 = 3052 /* 3052 */
    -    XML_SCHEMAP_SRC_ATTRIBUTE_3_1 = 3053 /* 3053 */
    -    XML_SCHEMAP_SRC_ATTRIBUTE_3_2 = 3054 /* 3054 */
    -    XML_SCHEMAP_SRC_ATTRIBUTE_4 = 3055 /* 3055 */
    -    XML_SCHEMAP_NO_XMLNS = 3056 /* 3056 */
    -    XML_SCHEMAP_NO_XSI = 3057 /* 3057 */
    -    XML_SCHEMAP_COS_VALID_DEFAULT_1 = 3058 /* 3058 */
    -    XML_SCHEMAP_COS_VALID_DEFAULT_2_1 = 3059 /* 3059 */
    -    XML_SCHEMAP_COS_VALID_DEFAULT_2_2_1 = 3060 /* 3060 */
    -    XML_SCHEMAP_COS_VALID_DEFAULT_2_2_2 = 3061 /* 3061 */
    -    XML_SCHEMAP_CVC_SIMPLE_TYPE = 3062 /* 3062 */
    -    XML_SCHEMAP_COS_CT_EXTENDS_1_1 = 3063 /* 3063 */
    -    XML_SCHEMAP_SRC_IMPORT_1_1 = 3064 /* 3064 */
    -    XML_SCHEMAP_SRC_IMPORT_1_2 = 3065 /* 3065 */
    -    XML_SCHEMAP_SRC_IMPORT_2 = 3066 /* 3066 */
    -    XML_SCHEMAP_SRC_IMPORT_2_1 = 3067 /* 3067 */
    -    XML_SCHEMAP_SRC_IMPORT_2_2 = 3068 /* 3068 */
    -    XML_SCHEMAP_INTERNAL = 3069 /* 3069 non-W3C */
    -    XML_SCHEMAP_NOT_DETERMINISTIC = 3070 /* 3070 non-W3C */
    -    XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_1 = 3071 /* 3071 */
    -    XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_2 = 3072 /* 3072 */
    -    XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_3 = 3073 /* 3073 */
    -    XML_SCHEMAP_MG_PROPS_CORRECT_1 = 3074 /* 3074 */
    -    XML_SCHEMAP_MG_PROPS_CORRECT_2 = 3075 /* 3075 */
    -    XML_SCHEMAP_SRC_CT_1 = 3076 /* 3076 */
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3 = 3077 /* 3077 */
    -    XML_SCHEMAP_AU_PROPS_CORRECT_2 = 3078 /* 3078 */
    -    XML_SCHEMAP_A_PROPS_CORRECT_2 = 3079 /* 3079 */
    -    XML_SCHEMAP_C_PROPS_CORRECT = 3080 /* 3080 */
    -    XML_SCHEMAP_SRC_REDEFINE = 3081 /* 3081 */
    -    XML_SCHEMAP_SRC_IMPORT = 3082 /* 3082 */
    -    XML_SCHEMAP_WARN_SKIP_SCHEMA = 3083 /* 3083 */
    -    XML_SCHEMAP_WARN_UNLOCATED_SCHEMA = 3084 /* 3084 */
    -    XML_SCHEMAP_WARN_ATTR_REDECL_PROH = 3085 /* 3085 */
    -    XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH = 3086 /* 3085 */
    -    XML_SCHEMAP_AG_PROPS_CORRECT = 3087 /* 3086 */
    -    XML_SCHEMAP_COS_CT_EXTENDS_1_2 = 3088 /* 3087 */
    -    XML_SCHEMAP_AU_PROPS_CORRECT = 3089 /* 3088 */
    -    XML_SCHEMAP_A_PROPS_CORRECT_3 = 3090 /* 3089 */
    -    XML_SCHEMAP_COS_ALL_LIMITED = 3091 /* 3090 */
    -    XML_MODULE_OPEN = 4900 /* 4900 */
    -    XML_MODULE_CLOSE = 4901 /* 4901 */
    -    XML_CHECK_FOUND_ELEMENT = 5000
    -    XML_CHECK_FOUND_ATTRIBUTE = 5001 /* 5001 */
    -    XML_CHECK_FOUND_TEXT = 5002 /* 5002 */
    -    XML_CHECK_FOUND_CDATA = 5003 /* 5003 */
    -    XML_CHECK_FOUND_ENTITYREF = 5004 /* 5004 */
    -    XML_CHECK_FOUND_ENTITY = 5005 /* 5005 */
    -    XML_CHECK_FOUND_PI = 5006 /* 5006 */
    -    XML_CHECK_FOUND_COMMENT = 5007 /* 5007 */
    -    XML_CHECK_FOUND_DOCTYPE = 5008 /* 5008 */
    -    XML_CHECK_FOUND_FRAGMENT = 5009 /* 5009 */
    -    XML_CHECK_FOUND_NOTATION = 5010 /* 5010 */
    -    XML_CHECK_UNKNOWN_NODE = 5011 /* 5011 */
    -    XML_CHECK_ENTITY_TYPE = 5012 /* 5012 */
    -    XML_CHECK_NO_PARENT = 5013 /* 5013 */
    -    XML_CHECK_NO_DOC = 5014 /* 5014 */
    -    XML_CHECK_NO_NAME = 5015 /* 5015 */
    -    XML_CHECK_NO_ELEM = 5016 /* 5016 */
    -    XML_CHECK_WRONG_DOC = 5017 /* 5017 */
    -    XML_CHECK_NO_PREV = 5018 /* 5018 */
    -    XML_CHECK_WRONG_PREV = 5019 /* 5019 */
    -    XML_CHECK_NO_NEXT = 5020 /* 5020 */
    -    XML_CHECK_WRONG_NEXT = 5021 /* 5021 */
    -    XML_CHECK_NOT_DTD = 5022 /* 5022 */
    -    XML_CHECK_NOT_ATTR = 5023 /* 5023 */
    -    XML_CHECK_NOT_ATTR_DECL = 5024 /* 5024 */
    -    XML_CHECK_NOT_ELEM_DECL = 5025 /* 5025 */
    -    XML_CHECK_NOT_ENTITY_DECL = 5026 /* 5026 */
    -    XML_CHECK_NOT_NS_DECL = 5027 /* 5027 */
    -    XML_CHECK_NO_HREF = 5028 /* 5028 */
    -    XML_CHECK_WRONG_PARENT = 5029 /* 5029 */
    -    XML_CHECK_NS_SCOPE = 5030 /* 5030 */
    -    XML_CHECK_NS_ANCESTOR = 5031 /* 5031 */
    -    XML_CHECK_NOT_UTF8 = 5032 /* 5032 */
    -    XML_CHECK_NO_DICT = 5033 /* 5033 */
    -    XML_CHECK_NOT_NCNAME = 5034 /* 5034 */
    -    XML_CHECK_OUTSIDE_DICT = 5035 /* 5035 */
    -    XML_CHECK_WRONG_NAME = 5036 /* 5036 */
    -    XML_CHECK_NAME_NOT_NULL = 5037 /* 5037 */
    -    XML_I18N_NO_NAME = 6000
    -    XML_I18N_NO_HANDLER = 6001 /* 6001 */
    -    XML_I18N_EXCESS_HANDLER = 6002 /* 6002 */
    -    XML_I18N_CONV_FAILED = 6003 /* 6003 */
    -    XML_I18N_NO_OUTPUT = 6004 /* 6004 */
    -    XML_CHECK_ = 6005 /* 5033 */
    -    XML_CHECK_X = 6006 /*  503 */
    -};
    -

    -

    -
    - -
    -

    Function type xmlStructuredErrorFunc

    void	xmlStructuredErrorFunc		(void * userData, 
    xmlErrorPtr error)
    -

    Signature of the function to use when there is an error and the module handles the new error reporting mechanism.

    -
    userData:user provided data for the error callback
    error:the error being raised.
    -
    -

    initGenericErrorDefaultFunc ()

    void	initGenericErrorDefaultFunc	(xmlGenericErrorFunc * handler)
    -

    Set or reset (if NULL) the default handler for generic errors to the builtin error function.

    -
    handler:the handler
    -
    -

    xmlCopyError ()

    int	xmlCopyError			(xmlErrorPtr from, 
    xmlErrorPtr to)
    -

    Save the original error to the new place.

    -
    from:a source error
    to:a target error
    Returns:0 in case of success and -1 in case of error.
    -
    -

    xmlCtxtGetLastError ()

    xmlErrorPtr	xmlCtxtGetLastError	(void * ctx)
    -

    Get the last parsing error registered.

    -
    ctx:an XML parser context
    Returns:NULL if no error occured or a pointer to the error
    -
    - -
    -

    xmlGetLastError ()

    xmlErrorPtr	xmlGetLastError		(void)
    -

    Get the last global error registered. This is per thread if compiled with thread support.

    -
    Returns:NULL if no error occured or a pointer to the error
    -
    - -
    -

    xmlParserPrintFileContext ()

    void	xmlParserPrintFileContext	(xmlParserInputPtr input)
    -

    Displays current context within the input content for error tracking

    -
    input:an xmlParserInputPtr input
    -
    -

    xmlParserPrintFileInfo ()

    void	xmlParserPrintFileInfo		(xmlParserInputPtr input)
    -

    Displays the associated file and line informations for the current input

    -
    input:an xmlParserInputPtr input
    -
    - -
    -
    -
    -
    -
    -

    xmlResetError ()

    void	xmlResetError			(xmlErrorPtr err)
    -

    Cleanup the error.

    -
    err:pointer to the error.
    -
    - -
    -

    xmlSetGenericErrorFunc ()

    void	xmlSetGenericErrorFunc		(void * ctx, 
    xmlGenericErrorFunc handler)
    -

    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. For multi-threaded applications, this must be set separately for each thread.

    -
    ctx:the new error handling context
    handler:the new handler function
    -
    -

    xmlSetStructuredErrorFunc ()

    void	xmlSetStructuredErrorFunc	(void * ctx, 
    xmlStructuredErrorFunc handler)
    -

    Function to reset the handler and the error context for out of context structured 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 For multi-threaded applications, this must be set separately for each thread.

    -
    ctx:the new error handling context
    handler:the new handler function
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlexports.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlexports.html deleted file mode 100644 index f0ee4b4d8f..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlexports.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - - xmlexports: macros for marking symbols as exportable/importable. - - - - - - - - - - - - - - - - -

    - xmlexports -

    -

    xmlexports - macros for marking symbols as exportable/importable.

    -

    macros for marking symbols as exportable/importable.

    -

    Author(s): Igor Zlatovic <igor@zlatkovic.com>

    -
    -

    Synopsis

    -
    #define _REENTRANT;
    -#define XMLCDECL;
    -#define XMLPUBVAR;
    -#define LIBXML_DLL_IMPORT;
    -#define XMLCALL;
    -#define XMLPUBFUN;
    -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro LIBXML_DLL_IMPORT

    #define LIBXML_DLL_IMPORT;
    -

    -

    -
    -

    Macro XMLCALL

    #define XMLCALL;
    -

    -

    -
    -

    Macro XMLCDECL

    #define XMLCDECL;
    -

    -

    -
    -

    Macro XMLPUBFUN

    #define XMLPUBFUN;
    -

    -

    -
    -

    Macro XMLPUBVAR

    #define XMLPUBVAR;
    -

    -

    -
    -

    Macro _REENTRANT

    #define _REENTRANT;
    -

    -

    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlmemory.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlmemory.html deleted file mode 100644 index eabbbf901f..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlmemory.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - xmlmemory: interface for the memory allocator - - - - - - - - - - - - - - - - -

    - xmlmemory -

    -

    xmlmemory - interface for the memory allocator

    -

    provides interfaces for the memory allocator, including debugging capabilities.

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    #define xmlRealloc;
    -#define xmlMalloc;
    -#define xmlMallocAtomic;
    -#define DEBUG_MEMORY;
    -#define xmlMemStrdup;
    -void *	xmlMemRealloc			(void * ptr, 
    size_t size); -int xmlInitMemory (void); -void xmlMemFree (void * ptr); -void * xmlMemMalloc (size_t size); -int xmlMemGet (xmlFreeFunc * freeFunc,
    xmlMallocFunc * mallocFunc,
    xmlReallocFunc * reallocFunc,
    xmlStrdupFunc * strdupFunc); -void xmlMemoryDump (void); -void * xmlMallocLoc (size_t size,
    const char * file,
    int line); -void xmlMemDisplay (FILE * fp); -int xmlMemBlocks (void); -int xmlGcMemGet (xmlFreeFunc * freeFunc,
    xmlMallocFunc * mallocFunc,
    xmlMallocFunc * mallocAtomicFunc,
    xmlReallocFunc * reallocFunc,
    xmlStrdupFunc * strdupFunc); -typedef char * xmlStrdupFunc (const char * str); -typedef void xmlFreeFunc (void * mem); -void xmlMemShow (FILE * fp,
    int nr); -void * xmlMallocAtomicLoc (size_t size,
    const char * file,
    int line); -void * xmlReallocLoc (void * ptr,
    size_t size,
    const char * file,
    int line); -void xmlCleanupMemory (void); -int xmlMemUsed (void); -int xmlMemSetup (xmlFreeFunc freeFunc,
    xmlMallocFunc mallocFunc,
    xmlReallocFunc reallocFunc,
    xmlStrdupFunc strdupFunc); -typedef void * xmlReallocFunc (void * mem,
    size_t size); -typedef void * xmlMallocFunc (size_t size); -int xmlGcMemSetup (xmlFreeFunc freeFunc,
    xmlMallocFunc mallocFunc,
    xmlMallocFunc mallocAtomicFunc,
    xmlReallocFunc reallocFunc,
    xmlStrdupFunc strdupFunc); -char * xmlMemoryStrdup (const char * str); -char * xmlMemStrdupLoc (const char * str,
    const char * file,
    int line); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro DEBUG_MEMORY

    #define DEBUG_MEMORY;
    -

    DEBUG_MEMORY replaces the allocator with a collect and debug shell to the libc allocator. DEBUG_MEMORY should only be activated when debugging libxml i.e. if libxml has been configured with --with-debug-mem too. #define DEBUG_MEMORY_FREED #define DEBUG_MEMORY_LOCATION

    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    xmlGcMemGet ()

    int	xmlGcMemGet			(xmlFreeFunc * freeFunc, 
    xmlMallocFunc * mallocFunc,
    xmlMallocFunc * mallocAtomicFunc,
    xmlReallocFunc * reallocFunc,
    xmlStrdupFunc * strdupFunc)
    -

    Provides the memory access functions set currently in use The mallocAtomicFunc is specialized for atomic block allocations (i.e. of areas useful for garbage collected memory allocators

    -
    freeFunc:place to save the free() function in use
    mallocFunc:place to save the malloc() function in use
    mallocAtomicFunc:place to save the atomic malloc() function in use
    reallocFunc:place to save the realloc() function in use
    strdupFunc:place to save the strdup() function in use
    Returns:0 on success
    -
    -

    xmlGcMemSetup ()

    int	xmlGcMemSetup			(xmlFreeFunc freeFunc, 
    xmlMallocFunc mallocFunc,
    xmlMallocFunc mallocAtomicFunc,
    xmlReallocFunc reallocFunc,
    xmlStrdupFunc strdupFunc)
    -

    Override the default memory access functions with a new set This has to be called before any other libxml routines ! The mallocAtomicFunc is specialized for atomic block allocations (i.e. of areas useful for garbage collected memory allocators Should this be blocked if there was already some allocations done ?

    -
    freeFunc:the free() function to use
    mallocFunc:the malloc() function to use
    mallocAtomicFunc:the malloc() function to use for atomic allocations
    reallocFunc:the realloc() function to use
    strdupFunc:the strdup() function to use
    Returns:0 on success
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    xmlMemGet ()

    int	xmlMemGet			(xmlFreeFunc * freeFunc, 
    xmlMallocFunc * mallocFunc,
    xmlReallocFunc * reallocFunc,
    xmlStrdupFunc * strdupFunc)
    -

    Provides the memory access functions set currently in use

    -
    freeFunc:place to save the free() function in use
    mallocFunc:place to save the malloc() function in use
    reallocFunc:place to save the realloc() function in use
    strdupFunc:place to save the strdup() function in use
    Returns:0 on success
    -
    - -
    -
    -
    -

    xmlMemSetup ()

    int	xmlMemSetup			(xmlFreeFunc freeFunc, 
    xmlMallocFunc mallocFunc,
    xmlReallocFunc reallocFunc,
    xmlStrdupFunc strdupFunc)
    -

    Override the default memory access functions with a new set This has to be called before any other libxml routines ! Should this be blocked if there was already some allocations done ?

    -
    freeFunc:the free() function to use
    mallocFunc:the malloc() function to use
    reallocFunc:the realloc() function to use
    strdupFunc:the strdup() function to use
    Returns:0 on success
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlmodule.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlmodule.html deleted file mode 100644 index 554cd91a36..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlmodule.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - - xmlmodule: dynamic module loading - - - - - - - - - - - - - - - - -

    - xmlmodule -

    -

    xmlmodule - dynamic module loading

    -

    basic API for dynamic module loading, used by libexslt added in 2.6.17

    -

    Author(s): Joel W. Reed

    -
    -

    Synopsis

    -
    typedef struct _xmlModule xmlModule;
    -typedef xmlModule * xmlModulePtr;
    -typedef enum xmlModuleOption;
    -int	xmlModuleFree			(xmlModulePtr module);
    -int	xmlModuleSymbol			(xmlModulePtr module, 
    const char * name,
    void ** symbol); -xmlModulePtr xmlModuleOpen (const char * name,
    int options); -int xmlModuleClose (xmlModulePtr module); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlModule

    struct _xmlModule {
    -The content of this structure is not made public by the API.
    -} xmlModule;
    -

    -

    -
    -

    Enum xmlModuleOption

    enum xmlModuleOption {
    -    XML_MODULE_LAZY = 1 /* lazy binding */
    -    XML_MODULE_LOCAL = 2 /*  local binding */
    -};
    -

    -

    -
    -

    Typedef xmlModulePtr

    xmlModule * xmlModulePtr;
    -

    A handle to a dynamically loaded module

    -
    -
    -

    xmlModuleClose ()

    int	xmlModuleClose			(xmlModulePtr module)
    -

    The close operations unload the associated module and free the data associated to the module.

    -
    module:the module handle
    Returns:0 in case of success, -1 in case of argument error and -2 if the module could not be closed/unloaded.
    -
    -

    xmlModuleFree ()

    int	xmlModuleFree			(xmlModulePtr module)
    -

    The free operations free the data associated to the module but does not unload the associated shared library which may still be in use.

    -
    module:the module handle
    Returns:0 in case of success, -1 in case of argument error
    -
    -

    xmlModuleOpen ()

    xmlModulePtr	xmlModuleOpen		(const char * name, 
    int options)
    -

    Opens a module/shared library given its name or path TODO: options are not yet implemented.

    -
    name:the module name
    options:a set of xmlModuleOption
    Returns:a handle for the module or NULL in case of error
    -
    -

    xmlModuleSymbol ()

    int	xmlModuleSymbol			(xmlModulePtr module, 
    const char * name,
    void ** symbol)
    -

    Lookup for a symbol address in the given module

    -
    module:the module
    name:the name of the symbol
    symbol:the resulting symbol address
    Returns:0 if the symbol was found, or -1 in case of error
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlreader.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlreader.html deleted file mode 100644 index a3bbbb5aa7..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlreader.html +++ /dev/null @@ -1,555 +0,0 @@ - - - - - xmlreader: the XMLReader implementation - - - - - - - - - - - - - - - - -

    - xmlreader -

    -

    xmlreader - the XMLReader implementation

    -

    API of the XML streaming API based on C# interfaces.

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef xmlTextReader * xmlTextReaderPtr;
    -typedef enum xmlParserSeverities;
    -typedef enum xmlParserProperties;
    -typedef enum xmlTextReaderMode;
    -typedef struct _xmlTextReader xmlTextReader;
    -typedef void * xmlTextReaderLocatorPtr;
    -typedef enum xmlReaderTypes;
    -const xmlChar *	xmlTextReaderConstXmlVersion	(xmlTextReaderPtr reader);
    -xmlChar *	xmlTextReaderBaseUri	(xmlTextReaderPtr reader);
    -xmlChar *	xmlTextReaderValue	(xmlTextReaderPtr reader);
    -xmlTextReaderPtr	xmlNewTextReaderFilename	(const char * URI);
    -int	xmlTextReaderRead		(xmlTextReaderPtr reader);
    -xmlChar *	xmlTextReaderReadString	(xmlTextReaderPtr reader);
    -int	xmlTextReaderMoveToAttributeNo	(xmlTextReaderPtr reader, 
    int no); -int xmlTextReaderDepth (xmlTextReaderPtr reader); -typedef void xmlTextReaderErrorFunc (void * arg,
    const char * msg,
    xmlParserSeverities severity,
    xmlTextReaderLocatorPtr locator); -int xmlTextReaderHasAttributes (xmlTextReaderPtr reader); -int xmlTextReaderIsNamespaceDecl (xmlTextReaderPtr reader); -int xmlTextReaderLocatorLineNumber (xmlTextReaderLocatorPtr locator); -xmlChar * xmlTextReaderLookupNamespace (xmlTextReaderPtr reader,
    const xmlChar * prefix); -int xmlTextReaderMoveToAttributeNs (xmlTextReaderPtr reader,
    const xmlChar * localName,
    const xmlChar * namespaceURI); -int xmlTextReaderNext (xmlTextReaderPtr reader); -int xmlTextReaderReadAttributeValue (xmlTextReaderPtr reader); -xmlChar * xmlTextReaderNamespaceUri (xmlTextReaderPtr reader); -int xmlTextReaderIsDefault (xmlTextReaderPtr reader); -xmlTextReaderPtr xmlReaderForFile (const char * filename,
    const char * encoding,
    int options); -const xmlChar * xmlTextReaderConstNamespaceUri (xmlTextReaderPtr reader); -int xmlTextReaderMoveToNextAttribute (xmlTextReaderPtr reader); -int xmlTextReaderQuoteChar (xmlTextReaderPtr reader); -xmlChar * xmlTextReaderReadOuterXml (xmlTextReaderPtr reader); -int xmlTextReaderGetParserLineNumber (xmlTextReaderPtr reader); -xmlChar * xmlTextReaderGetAttributeNs (xmlTextReaderPtr reader,
    const xmlChar * localName,
    const xmlChar * namespaceURI); -int xmlReaderNewWalker (xmlTextReaderPtr reader,
    xmlDocPtr doc); -int xmlReaderNewDoc (xmlTextReaderPtr reader,
    const xmlChar * cur,
    const char * URL,
    const char * encoding,
    int options); -xmlChar * xmlTextReaderXmlLang (xmlTextReaderPtr reader); -int xmlTextReaderStandalone (xmlTextReaderPtr reader); -xmlTextReaderPtr xmlReaderForDoc (const xmlChar * cur,
    const char * URL,
    const char * encoding,
    int options); -int xmlTextReaderSchemaValidate (xmlTextReaderPtr reader,
    const char * xsd); -int xmlReaderNewIO (xmlTextReaderPtr reader,
    xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options); -int xmlTextReaderMoveToElement (xmlTextReaderPtr reader); -void xmlTextReaderSetStructuredErrorHandler (xmlTextReaderPtr reader,
    xmlStructuredErrorFunc f,
    void * arg); -int xmlTextReaderClose (xmlTextReaderPtr reader); -xmlChar * xmlTextReaderReadInnerXml (xmlTextReaderPtr reader); -xmlTextReaderPtr xmlReaderWalker (xmlDocPtr doc); -xmlTextReaderPtr xmlReaderForIO (xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options); -int xmlTextReaderIsValid (xmlTextReaderPtr reader); -void xmlTextReaderSetErrorHandler (xmlTextReaderPtr reader,
    xmlTextReaderErrorFunc f,
    void * arg); -const xmlChar * xmlTextReaderConstXmlLang (xmlTextReaderPtr reader); -const xmlChar * xmlTextReaderConstLocalName (xmlTextReaderPtr reader); -const xmlChar * xmlTextReaderConstEncoding (xmlTextReaderPtr reader); -int xmlTextReaderNodeType (xmlTextReaderPtr reader); -int xmlTextReaderNormalization (xmlTextReaderPtr reader); -void xmlTextReaderGetErrorHandler (xmlTextReaderPtr reader,
    xmlTextReaderErrorFunc * f,
    void ** arg); -const xmlChar * xmlTextReaderConstPrefix (xmlTextReaderPtr reader); -int xmlTextReaderGetParserProp (xmlTextReaderPtr reader,
    int prop); -int xmlTextReaderGetParserColumnNumber (xmlTextReaderPtr reader); -xmlParserInputBufferPtr xmlTextReaderGetRemainder (xmlTextReaderPtr reader); -int xmlReaderNewFile (xmlTextReaderPtr reader,
    const char * filename,
    const char * encoding,
    int options); -void xmlFreeTextReader (xmlTextReaderPtr reader); -int xmlTextReaderMoveToAttribute (xmlTextReaderPtr reader,
    const xmlChar * name); -int xmlTextReaderRelaxNGSetSchema (xmlTextReaderPtr reader,
    xmlRelaxNGPtr schema); -xmlChar * xmlTextReaderName (xmlTextReaderPtr reader); -int xmlReaderNewFd (xmlTextReaderPtr reader,
    int fd,
    const char * URL,
    const char * encoding,
    int options); -int xmlTextReaderNextSibling (xmlTextReaderPtr reader); -int xmlTextReaderRelaxNGValidate (xmlTextReaderPtr reader,
    const char * rng); -int xmlTextReaderIsEmptyElement (xmlTextReaderPtr reader); -int xmlTextReaderSetSchema (xmlTextReaderPtr reader,
    xmlSchemaPtr schema); -xmlDocPtr xmlTextReaderCurrentDoc (xmlTextReaderPtr reader); -xmlTextReaderPtr xmlReaderForMemory (const char * buffer,
    int size,
    const char * URL,
    const char * encoding,
    int options); -xmlNodePtr xmlTextReaderCurrentNode (xmlTextReaderPtr reader); -xmlTextReaderPtr xmlReaderForFd (int fd,
    const char * URL,
    const char * encoding,
    int options); -int xmlTextReaderMoveToFirstAttribute (xmlTextReaderPtr reader); -xmlChar * xmlTextReaderPrefix (xmlTextReaderPtr reader); -long xmlTextReaderByteConsumed (xmlTextReaderPtr reader); -int xmlTextReaderPreservePattern (xmlTextReaderPtr reader,
    const xmlChar * pattern,
    const xmlChar ** namespaces); -xmlChar * xmlTextReaderLocatorBaseURI (xmlTextReaderLocatorPtr locator); -xmlChar * xmlTextReaderGetAttribute (xmlTextReaderPtr reader,
    const xmlChar * name); -int xmlReaderNewMemory (xmlTextReaderPtr reader,
    const char * buffer,
    int size,
    const char * URL,
    const char * encoding,
    int options); -const xmlChar * xmlTextReaderConstValue (xmlTextReaderPtr reader); -xmlTextReaderPtr xmlNewTextReader (xmlParserInputBufferPtr input,
    const char * URI); -xmlChar * xmlTextReaderGetAttributeNo (xmlTextReaderPtr reader,
    int no); -int xmlTextReaderSchemaValidateCtxt (xmlTextReaderPtr reader,
    xmlSchemaValidCtxtPtr ctxt,
    int options); -xmlChar * xmlTextReaderLocalName (xmlTextReaderPtr reader); -xmlNodePtr xmlTextReaderExpand (xmlTextReaderPtr reader); -const xmlChar * xmlTextReaderConstName (xmlTextReaderPtr reader); -int xmlTextReaderHasValue (xmlTextReaderPtr reader); -xmlNodePtr xmlTextReaderPreserve (xmlTextReaderPtr reader); -int xmlTextReaderAttributeCount (xmlTextReaderPtr reader); -int xmlTextReaderReadState (xmlTextReaderPtr reader); -const xmlChar * xmlTextReaderConstBaseUri (xmlTextReaderPtr reader); -const xmlChar * xmlTextReaderConstString (xmlTextReaderPtr reader,
    const xmlChar * str); -int xmlTextReaderSetParserProp (xmlTextReaderPtr reader,
    int prop,
    int value); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    - -
    - -
    - -
    -

    Structure xmlTextReader

    struct _xmlTextReader {
    -The content of this structure is not made public by the API.
    -} xmlTextReader;
    -

    -

    -
    -

    Typedef xmlTextReaderLocatorPtr

    void * xmlTextReaderLocatorPtr;
    -

    -

    -
    - -
    -

    Typedef xmlTextReaderPtr

    xmlTextReader * xmlTextReaderPtr;
    -

    Pointer to an xmlReader context.

    -
    -
    - -
    -

    xmlFreeTextReader ()

    void	xmlFreeTextReader		(xmlTextReaderPtr reader)
    -

    Deallocate all the resources associated to the reader

    -
    reader:the xmlTextReaderPtr
    -
    -

    xmlNewTextReader ()

    xmlTextReaderPtr	xmlNewTextReader	(xmlParserInputBufferPtr input, 
    const char * URI)
    -

    Create an xmlTextReader structure fed with @input

    -
    input:the xmlParserInputBufferPtr used to read data
    URI:the URI information for the source if available
    Returns:the new xmlTextReaderPtr or NULL in case of error
    -
    -

    xmlNewTextReaderFilename ()

    xmlTextReaderPtr	xmlNewTextReaderFilename	(const char * URI)
    -

    Create an xmlTextReader structure fed with the resource at @URI

    -
    URI:the URI of the resource to process
    Returns:the new xmlTextReaderPtr or NULL in case of error
    -
    -

    xmlReaderForDoc ()

    xmlTextReaderPtr	xmlReaderForDoc	(const xmlChar * cur, 
    const char * URL,
    const char * encoding,
    int options)
    -

    Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption.

    -
    cur:a pointer to a zero terminated string
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the new reader or NULL in case of error.
    -
    -

    xmlReaderForFd ()

    xmlTextReaderPtr	xmlReaderForFd	(int fd, 
    const char * URL,
    const char * encoding,
    int options)
    -

    Create an xmltextReader for an XML from a file descriptor. The parsing flags @options are a combination of xmlParserOption. NOTE that the file descriptor will not be closed when the reader is closed or reset.

    -
    fd:an open file descriptor
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the new reader or NULL in case of error.
    -
    -

    xmlReaderForFile ()

    xmlTextReaderPtr	xmlReaderForFile	(const char * filename, 
    const char * encoding,
    int options)
    -

    parse an XML file from the filesystem or the network. The parsing flags @options are a combination of xmlParserOption.

    -
    filename:a file or URL
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the new reader or NULL in case of error.
    -
    -

    xmlReaderForIO ()

    xmlTextReaderPtr	xmlReaderForIO	(xmlInputReadCallback ioread, 
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -

    Create an xmltextReader for an XML document from I/O functions and source. The parsing flags @options are a combination of xmlParserOption.

    -
    ioread:an I/O read function
    ioclose:an I/O close function
    ioctx:an I/O handler
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the new reader or NULL in case of error.
    -
    -

    xmlReaderForMemory ()

    xmlTextReaderPtr	xmlReaderForMemory	(const char * buffer, 
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -

    Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption.

    -
    buffer:a pointer to a char array
    size:the size of the array
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the new reader or NULL in case of error.
    -
    -

    xmlReaderNewDoc ()

    int	xmlReaderNewDoc			(xmlTextReaderPtr reader, 
    const xmlChar * cur,
    const char * URL,
    const char * encoding,
    int options)
    -

    Setup an xmltextReader to parse an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader.

    -
    reader:an XML reader
    cur:a pointer to a zero terminated string
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:0 in case of success and -1 in case of error
    -
    -

    xmlReaderNewFd ()

    int	xmlReaderNewFd			(xmlTextReaderPtr reader, 
    int fd,
    const char * URL,
    const char * encoding,
    int options)
    -

    Setup an xmltextReader to parse an XML from a file descriptor. NOTE that the file descriptor will not be closed when the reader is closed or reset. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader.

    -
    reader:an XML reader
    fd:an open file descriptor
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:0 in case of success and -1 in case of error
    -
    -

    xmlReaderNewFile ()

    int	xmlReaderNewFile		(xmlTextReaderPtr reader, 
    const char * filename,
    const char * encoding,
    int options)
    -

    parse an XML file from the filesystem or the network. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader.

    -
    reader:an XML reader
    filename:a file or URL
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:0 in case of success and -1 in case of error
    -
    -

    xmlReaderNewIO ()

    int	xmlReaderNewIO			(xmlTextReaderPtr reader, 
    xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -

    Setup an xmltextReader to parse an XML document from I/O functions and source. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader.

    -
    reader:an XML reader
    ioread:an I/O read function
    ioclose:an I/O close function
    ioctx:an I/O handler
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:0 in case of success and -1 in case of error
    -
    -

    xmlReaderNewMemory ()

    int	xmlReaderNewMemory		(xmlTextReaderPtr reader, 
    const char * buffer,
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -

    Setup an xmltextReader to parse an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader.

    -
    reader:an XML reader
    buffer:a pointer to a char array
    size:the size of the array
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:0 in case of success and -1 in case of error
    -
    -

    xmlReaderNewWalker ()

    int	xmlReaderNewWalker		(xmlTextReaderPtr reader, 
    xmlDocPtr doc)
    -

    Setup an xmltextReader to parse a preparsed XML document. This reuses the existing @reader xmlTextReader.

    -
    reader:an XML reader
    doc:a preparsed document
    Returns:0 in case of success and -1 in case of error
    -
    -

    xmlReaderWalker ()

    xmlTextReaderPtr	xmlReaderWalker	(xmlDocPtr doc)
    -

    Create an xmltextReader for a preparsed document.

    -
    doc:a preparsed document
    Returns:the new reader or NULL in case of error.
    -
    -

    xmlTextReaderAttributeCount ()

    int	xmlTextReaderAttributeCount	(xmlTextReaderPtr reader)
    -

    Provides the number of attributes of the current node

    -
    reader:the xmlTextReaderPtr used
    Returns:0 i no attributes, -1 in case of error or the attribute count
    -
    -

    xmlTextReaderBaseUri ()

    xmlChar *	xmlTextReaderBaseUri	(xmlTextReaderPtr reader)
    -

    The base URI of the node.

    -
    reader:the xmlTextReaderPtr used
    Returns:the base URI or NULL if not available
    -
    -

    xmlTextReaderByteConsumed ()

    long	xmlTextReaderByteConsumed	(xmlTextReaderPtr reader)
    -

    This function provides the current index of the parser used by the reader, relative to the start of the current entity. This function actually just wraps a call to xmlBytesConsumed() for the parser context associated with the reader. See xmlBytesConsumed() for more information.

    -
    reader:an XML reader
    Returns:the index in bytes from the beginning of the entity or -1 in case the index could not be computed.
    -
    -

    xmlTextReaderClose ()

    int	xmlTextReaderClose		(xmlTextReaderPtr reader)
    -

    This method releases any resources allocated by the current instance changes the state to Closed and close any underlying input.

    -
    reader:the xmlTextReaderPtr used
    Returns:0 or -1 in case of error
    -
    -

    xmlTextReaderConstBaseUri ()

    const xmlChar *	xmlTextReaderConstBaseUri	(xmlTextReaderPtr reader)
    -

    The base URI of the node.

    -
    reader:the xmlTextReaderPtr used
    Returns:the base URI or NULL if not available, the string will be deallocated with the reader
    -
    -

    xmlTextReaderConstEncoding ()

    const xmlChar *	xmlTextReaderConstEncoding	(xmlTextReaderPtr reader)
    -

    Determine the encoding of the document being read.

    -
    reader:the xmlTextReaderPtr used
    Returns:a string containing the encoding of the document or NULL in case of error. The string is deallocated with the reader.
    -
    -

    xmlTextReaderConstLocalName ()

    const xmlChar *	xmlTextReaderConstLocalName	(xmlTextReaderPtr reader)
    -

    The local name of the node.

    -
    reader:the xmlTextReaderPtr used
    Returns:the local name or NULL if not available, the string will be deallocated with the reader.
    -
    -

    xmlTextReaderConstName ()

    const xmlChar *	xmlTextReaderConstName	(xmlTextReaderPtr reader)
    -

    The qualified name of the node, equal to Prefix :LocalName.

    -
    reader:the xmlTextReaderPtr used
    Returns:the local name or NULL if not available, the string is deallocated with the reader.
    -
    -

    xmlTextReaderConstNamespaceUri ()

    const xmlChar *	xmlTextReaderConstNamespaceUri	(xmlTextReaderPtr reader)
    -

    The URI defining the namespace associated with the node.

    -
    reader:the xmlTextReaderPtr used
    Returns:the namespace URI or NULL if not available, the string will be deallocated with the reader
    -
    -

    xmlTextReaderConstPrefix ()

    const xmlChar *	xmlTextReaderConstPrefix	(xmlTextReaderPtr reader)
    -

    A shorthand reference to the namespace associated with the node.

    -
    reader:the xmlTextReaderPtr used
    Returns:the prefix or NULL if not available, the string is deallocated with the reader.
    -
    -

    xmlTextReaderConstString ()

    const xmlChar *	xmlTextReaderConstString	(xmlTextReaderPtr reader, 
    const xmlChar * str)
    -

    Get an interned string from the reader, allows for example to speedup string name comparisons

    -
    reader:the xmlTextReaderPtr used
    str:the string to intern.
    Returns:an interned copy of the string or NULL in case of error. The string will be deallocated with the reader.
    -
    -

    xmlTextReaderConstValue ()

    const xmlChar *	xmlTextReaderConstValue	(xmlTextReaderPtr reader)
    -

    Provides the text value of the node if present

    -
    reader:the xmlTextReaderPtr used
    Returns:the string or NULL if not available. The result will be deallocated on the next Read() operation.
    -
    -

    xmlTextReaderConstXmlLang ()

    const xmlChar *	xmlTextReaderConstXmlLang	(xmlTextReaderPtr reader)
    -

    The xml:lang scope within which the node resides.

    -
    reader:the xmlTextReaderPtr used
    Returns:the xml:lang value or NULL if none exists.
    -
    -

    xmlTextReaderConstXmlVersion ()

    const xmlChar *	xmlTextReaderConstXmlVersion	(xmlTextReaderPtr reader)
    -

    Determine the XML version of the document being read.

    -
    reader:the xmlTextReaderPtr used
    Returns:a string containing the XML version of the document or NULL in case of error. The string is deallocated with the reader.
    -
    -

    xmlTextReaderCurrentDoc ()

    xmlDocPtr	xmlTextReaderCurrentDoc	(xmlTextReaderPtr reader)
    -

    Hacking interface allowing to get the xmlDocPtr correponding to the current document being accessed by the xmlTextReader. NOTE: as a result of this call, the reader will not destroy the associated XML document and calling xmlFreeDoc() on the result is needed once the reader parsing has finished.

    -
    reader:the xmlTextReaderPtr used
    Returns:the xmlDocPtr or NULL in case of error.
    -
    -

    xmlTextReaderCurrentNode ()

    xmlNodePtr	xmlTextReaderCurrentNode	(xmlTextReaderPtr reader)
    -

    Hacking interface allowing to get the xmlNodePtr correponding to the current node being accessed by the xmlTextReader. This is dangerous because the underlying node may be destroyed on the next Reads.

    -
    reader:the xmlTextReaderPtr used
    Returns:the xmlNodePtr or NULL in case of error.
    -
    -

    xmlTextReaderDepth ()

    int	xmlTextReaderDepth		(xmlTextReaderPtr reader)
    -

    The depth of the node in the tree.

    -
    reader:the xmlTextReaderPtr used
    Returns:the depth or -1 in case of error
    -
    -

    xmlTextReaderExpand ()

    xmlNodePtr	xmlTextReaderExpand	(xmlTextReaderPtr reader)
    -

    Reads the contents of the current node and the full subtree. It then makes the subtree available until the next xmlTextReaderRead() call

    -
    reader:the xmlTextReaderPtr used
    Returns:a node pointer valid until the next xmlTextReaderRead() call or NULL in case of error.
    -
    -

    xmlTextReaderGetAttribute ()

    xmlChar *	xmlTextReaderGetAttribute	(xmlTextReaderPtr reader, 
    const xmlChar * name)
    -

    Provides the value of the attribute with the specified qualified name.

    -
    reader:the xmlTextReaderPtr used
    name:the qualified name of the attribute.
    Returns:a string containing the value of the specified attribute, or NULL in case of error. The string must be deallocated by the caller.
    -
    -

    xmlTextReaderGetAttributeNo ()

    xmlChar *	xmlTextReaderGetAttributeNo	(xmlTextReaderPtr reader, 
    int no)
    -

    Provides the value of the attribute with the specified index relative to the containing element.

    -
    reader:the xmlTextReaderPtr used
    no:the zero-based index of the attribute relative to the containing element
    Returns:a string containing the value of the specified attribute, or NULL in case of error. The string must be deallocated by the caller.
    -
    -

    xmlTextReaderGetAttributeNs ()

    xmlChar *	xmlTextReaderGetAttributeNs	(xmlTextReaderPtr reader, 
    const xmlChar * localName,
    const xmlChar * namespaceURI)
    -

    Provides the value of the specified attribute

    -
    reader:the xmlTextReaderPtr used
    localName:the local name of the attribute.
    namespaceURI:the namespace URI of the attribute.
    Returns:a string containing the value of the specified attribute, or NULL in case of error. The string must be deallocated by the caller.
    -
    -

    xmlTextReaderGetErrorHandler ()

    void	xmlTextReaderGetErrorHandler	(xmlTextReaderPtr reader, 
    xmlTextReaderErrorFunc * f,
    void ** arg)
    -

    Retrieve the error callback function and user argument.

    -
    reader:the xmlTextReaderPtr used
    f:the callback function or NULL is no callback has been registered
    arg:a user argument
    -
    -

    xmlTextReaderGetParserColumnNumber ()

    int	xmlTextReaderGetParserColumnNumber	(xmlTextReaderPtr reader)
    -

    Provide the column number of the current parsing point.

    -
    reader:the user data (XML reader context)
    Returns:an int or 0 if not available
    -
    -

    xmlTextReaderGetParserLineNumber ()

    int	xmlTextReaderGetParserLineNumber	(xmlTextReaderPtr reader)
    -

    Provide the line number of the current parsing point.

    -
    reader:the user data (XML reader context)
    Returns:an int or 0 if not available
    -
    -

    xmlTextReaderGetParserProp ()

    int	xmlTextReaderGetParserProp	(xmlTextReaderPtr reader, 
    int prop)
    -

    Read the parser internal property.

    -
    reader:the xmlTextReaderPtr used
    prop:the xmlParserProperties to get
    Returns:the value, usually 0 or 1, or -1 in case of error.
    -
    -

    xmlTextReaderGetRemainder ()

    xmlParserInputBufferPtr	xmlTextReaderGetRemainder	(xmlTextReaderPtr reader)
    -

    Method to get the remainder of the buffered XML. this method stops the parser, set its state to End Of File and return the input stream with what is left that the parser did not use. The implementation is not good, the parser certainly procgressed past what's left in reader->input, and there is an allocation problem. Best would be to rewrite it differently.

    -
    reader:the xmlTextReaderPtr used
    Returns:the xmlParserInputBufferPtr attached to the XML or NULL in case of error.
    -
    -

    xmlTextReaderHasAttributes ()

    int	xmlTextReaderHasAttributes	(xmlTextReaderPtr reader)
    -

    Whether the node has attributes.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 if true, 0 if false, and -1 in case or error
    -
    -

    xmlTextReaderHasValue ()

    int	xmlTextReaderHasValue		(xmlTextReaderPtr reader)
    -

    Whether the node can have a text value.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 if true, 0 if false, and -1 in case or error
    -
    -

    xmlTextReaderIsDefault ()

    int	xmlTextReaderIsDefault		(xmlTextReaderPtr reader)
    -

    Whether an Attribute node was generated from the default value defined in the DTD or schema.

    -
    reader:the xmlTextReaderPtr used
    Returns:0 if not defaulted, 1 if defaulted, and -1 in case of error
    -
    -

    xmlTextReaderIsEmptyElement ()

    int	xmlTextReaderIsEmptyElement	(xmlTextReaderPtr reader)
    -

    Check if the current node is empty

    -
    reader:the xmlTextReaderPtr used
    Returns:1 if empty, 0 if not and -1 in case of error
    -
    -

    xmlTextReaderIsNamespaceDecl ()

    int	xmlTextReaderIsNamespaceDecl	(xmlTextReaderPtr reader)
    -

    Determine whether the current node is a namespace declaration rather than a regular attribute.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 if the current node is a namespace declaration, 0 if it is a regular attribute or other type of node, or -1 in case of error.
    -
    -

    xmlTextReaderIsValid ()

    int	xmlTextReaderIsValid		(xmlTextReaderPtr reader)
    -

    Retrieve the validity status from the parser context

    -
    reader:the xmlTextReaderPtr used
    Returns:the flag value 1 if valid, 0 if no, and -1 in case of error
    -
    -

    xmlTextReaderLocalName ()

    xmlChar *	xmlTextReaderLocalName	(xmlTextReaderPtr reader)
    -

    The local name of the node.

    -
    reader:the xmlTextReaderPtr used
    Returns:the local name or NULL if not available
    -
    -

    xmlTextReaderLocatorBaseURI ()

    xmlChar *	xmlTextReaderLocatorBaseURI	(xmlTextReaderLocatorPtr locator)
    -

    Obtain the base URI for the given locator.

    -
    locator:the xmlTextReaderLocatorPtr used
    Returns:the base URI or NULL in case of error.
    -
    -

    xmlTextReaderLocatorLineNumber ()

    int	xmlTextReaderLocatorLineNumber	(xmlTextReaderLocatorPtr locator)
    -

    Obtain the line number for the given locator.

    -
    locator:the xmlTextReaderLocatorPtr used
    Returns:the line number or -1 in case of error.
    -
    -

    xmlTextReaderLookupNamespace ()

    xmlChar *	xmlTextReaderLookupNamespace	(xmlTextReaderPtr reader, 
    const xmlChar * prefix)
    -

    Resolves a namespace prefix in the scope of the current element.

    -
    reader:the xmlTextReaderPtr used
    prefix:the prefix whose namespace URI is to be resolved. To return the default namespace, specify NULL
    Returns:a string containing the namespace URI to which the prefix maps or NULL in case of error. The string must be deallocated by the caller.
    -
    -

    xmlTextReaderMoveToAttribute ()

    int	xmlTextReaderMoveToAttribute	(xmlTextReaderPtr reader, 
    const xmlChar * name)
    -

    Moves the position of the current instance to the attribute with the specified qualified name.

    -
    reader:the xmlTextReaderPtr used
    name:the qualified name of the attribute.
    Returns:1 in case of success, -1 in case of error, 0 if not found
    -
    -

    xmlTextReaderMoveToAttributeNo ()

    int	xmlTextReaderMoveToAttributeNo	(xmlTextReaderPtr reader, 
    int no)
    -

    Moves the position of the current instance to the attribute with the specified index relative to the containing element.

    -
    reader:the xmlTextReaderPtr used
    no:the zero-based index of the attribute relative to the containing element.
    Returns:1 in case of success, -1 in case of error, 0 if not found
    -
    -

    xmlTextReaderMoveToAttributeNs ()

    int	xmlTextReaderMoveToAttributeNs	(xmlTextReaderPtr reader, 
    const xmlChar * localName,
    const xmlChar * namespaceURI)
    -

    Moves the position of the current instance to the attribute with the specified local name and namespace URI.

    -
    reader:the xmlTextReaderPtr used
    localName:the local name of the attribute.
    namespaceURI:the namespace URI of the attribute.
    Returns:1 in case of success, -1 in case of error, 0 if not found
    -
    -

    xmlTextReaderMoveToElement ()

    int	xmlTextReaderMoveToElement	(xmlTextReaderPtr reader)
    -

    Moves the position of the current instance to the node that contains the current Attribute node.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 in case of success, -1 in case of error, 0 if not moved
    -
    -

    xmlTextReaderMoveToFirstAttribute ()

    int	xmlTextReaderMoveToFirstAttribute	(xmlTextReaderPtr reader)
    -

    Moves the position of the current instance to the first attribute associated with the current node.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 in case of success, -1 in case of error, 0 if not found
    -
    -

    xmlTextReaderMoveToNextAttribute ()

    int	xmlTextReaderMoveToNextAttribute	(xmlTextReaderPtr reader)
    -

    Moves the position of the current instance to the next attribute associated with the current node.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 in case of success, -1 in case of error, 0 if not found
    -
    -

    xmlTextReaderName ()

    xmlChar *	xmlTextReaderName	(xmlTextReaderPtr reader)
    -

    The qualified name of the node, equal to Prefix :LocalName.

    -
    reader:the xmlTextReaderPtr used
    Returns:the local name or NULL if not available
    -
    -

    xmlTextReaderNamespaceUri ()

    xmlChar *	xmlTextReaderNamespaceUri	(xmlTextReaderPtr reader)
    -

    The URI defining the namespace associated with the node.

    -
    reader:the xmlTextReaderPtr used
    Returns:the namespace URI or NULL if not available
    -
    -

    xmlTextReaderNext ()

    int	xmlTextReaderNext		(xmlTextReaderPtr reader)
    -

    Skip to the node following the current one in document order while avoiding the subtree if any.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 if the node was read successfully, 0 if there is no more nodes to read, or -1 in case of error
    -
    -

    xmlTextReaderNextSibling ()

    int	xmlTextReaderNextSibling	(xmlTextReaderPtr reader)
    -

    Skip to the node following the current one in document order while avoiding the subtree if any. Currently implemented only for Readers built on a document

    -
    reader:the xmlTextReaderPtr used
    Returns:1 if the node was read successfully, 0 if there is no more nodes to read, or -1 in case of error
    -
    -

    xmlTextReaderNodeType ()

    int	xmlTextReaderNodeType		(xmlTextReaderPtr reader)
    -

    Get the node type of the current node Reference: http://dotgnu.org/pnetlib-doc/System/Xml/XmlNodeType.html

    -
    reader:the xmlTextReaderPtr used
    Returns:the xmlNodeType of the current node or -1 in case of error
    -
    -

    xmlTextReaderNormalization ()

    int	xmlTextReaderNormalization	(xmlTextReaderPtr reader)
    -

    The value indicating whether to normalize white space and attribute values. Since attribute value and end of line normalizations are a MUST in the XML specification only the value true is accepted. The broken bahaviour of accepting out of range character entities like &#0; is of course not supported either.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 or -1 in case of error.
    -
    -

    xmlTextReaderPrefix ()

    xmlChar *	xmlTextReaderPrefix	(xmlTextReaderPtr reader)
    -

    A shorthand reference to the namespace associated with the node.

    -
    reader:the xmlTextReaderPtr used
    Returns:the prefix or NULL if not available
    -
    -

    xmlTextReaderPreserve ()

    xmlNodePtr	xmlTextReaderPreserve	(xmlTextReaderPtr reader)
    -

    This tells the XML Reader to preserve the current node. The caller must also use xmlTextReaderCurrentDoc() to keep an handle on the resulting document once parsing has finished

    -
    reader:the xmlTextReaderPtr used
    Returns:the xmlNodePtr or NULL in case of error.
    -
    -

    xmlTextReaderPreservePattern ()

    int	xmlTextReaderPreservePattern	(xmlTextReaderPtr reader, 
    const xmlChar * pattern,
    const xmlChar ** namespaces)
    -

    This tells the XML Reader to preserve all nodes matched by the pattern. The caller must also use xmlTextReaderCurrentDoc() to keep an handle on the resulting document once parsing has finished

    -
    reader:the xmlTextReaderPtr used
    pattern:an XPath subset pattern
    namespaces:the prefix definitions, array of [URI, prefix] or NULL
    Returns:a positive number in case of success and -1 in case of error
    -
    -

    xmlTextReaderQuoteChar ()

    int	xmlTextReaderQuoteChar		(xmlTextReaderPtr reader)
    -

    The quotation mark character used to enclose the value of an attribute.

    -
    reader:the xmlTextReaderPtr used
    Returns:" or ' and -1 in case of error
    -
    -

    xmlTextReaderRead ()

    int	xmlTextReaderRead		(xmlTextReaderPtr reader)
    -

    Moves the position of the current instance to the next node in the stream, exposing its properties.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 if the node was read successfully, 0 if there is no more nodes to read, or -1 in case of error
    -
    -

    xmlTextReaderReadAttributeValue ()

    int	xmlTextReaderReadAttributeValue	(xmlTextReaderPtr reader)
    -

    Parses an attribute value into one or more Text and EntityReference nodes.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 in case of success, 0 if the reader was not positionned on an ttribute node or all the attribute values have been read, or -1 in case of error.
    -
    -

    xmlTextReaderReadInnerXml ()

    xmlChar *	xmlTextReaderReadInnerXml	(xmlTextReaderPtr reader)
    -

    Reads the contents of the current node, including child nodes and markup.

    -
    reader:the xmlTextReaderPtr used
    Returns:a string containing the XML content, or NULL if the current node is neither an element nor attribute, or has no child nodes. The string must be deallocated by the caller.
    -
    -

    xmlTextReaderReadOuterXml ()

    xmlChar *	xmlTextReaderReadOuterXml	(xmlTextReaderPtr reader)
    -

    Reads the contents of the current node, including child nodes and markup.

    -
    reader:the xmlTextReaderPtr used
    Returns:a string containing the XML content, or NULL if the current node is neither an element nor attribute, or has no child nodes. The string must be deallocated by the caller.
    -
    -

    xmlTextReaderReadState ()

    int	xmlTextReaderReadState		(xmlTextReaderPtr reader)
    -

    Gets the read state of the reader.

    -
    reader:the xmlTextReaderPtr used
    Returns:the state value, or -1 in case of error
    -
    -

    xmlTextReaderReadString ()

    xmlChar *	xmlTextReaderReadString	(xmlTextReaderPtr reader)
    -

    Reads the contents of an element or a text node as a string.

    -
    reader:the xmlTextReaderPtr used
    Returns:a string containing the contents of the Element or Text node, or NULL if the reader is positioned on any other type of node. The string must be deallocated by the caller.
    -
    -

    xmlTextReaderRelaxNGSetSchema ()

    int	xmlTextReaderRelaxNGSetSchema	(xmlTextReaderPtr reader, 
    xmlRelaxNGPtr schema)
    -

    Use RelaxNG to validate the document as it is processed. Activation is only possible before the first Read(). if @schema is NULL, then RelaxNG validation is desactivated. @ The @schema should not be freed until the reader is deallocated or its use has been deactivated.

    -
    reader:the xmlTextReaderPtr used
    schema:a precompiled RelaxNG schema
    Returns:0 in case the RelaxNG validation could be (des)activated and -1 in case of error.
    -
    -

    xmlTextReaderRelaxNGValidate ()

    int	xmlTextReaderRelaxNGValidate	(xmlTextReaderPtr reader, 
    const char * rng)
    -

    Use RelaxNG to validate the document as it is processed. Activation is only possible before the first Read(). if @rng is NULL, then RelaxNG validation is desactivated.

    -
    reader:the xmlTextReaderPtr used
    rng:the path to a RelaxNG schema or NULL
    Returns:0 in case the RelaxNG validation could be (des)activated and -1 in case of error.
    -
    -

    xmlTextReaderSchemaValidate ()

    int	xmlTextReaderSchemaValidate	(xmlTextReaderPtr reader, 
    const char * xsd)
    -

    Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read(). If @xsd is NULL, then XML Schema validation is deactivated.

    -
    reader:the xmlTextReaderPtr used
    xsd:the path to a W3C XSD schema or NULL
    Returns:0 in case the schemas validation could be (de)activated and -1 in case of error.
    -
    -

    xmlTextReaderSchemaValidateCtxt ()

    int	xmlTextReaderSchemaValidateCtxt	(xmlTextReaderPtr reader, 
    xmlSchemaValidCtxtPtr ctxt,
    int options)
    -

    Use W3C XSD schema context to validate the document as it is processed. Activation is only possible before the first Read(). If @ctxt is NULL, then XML Schema validation is deactivated.

    -
    reader:the xmlTextReaderPtr used
    ctxt:the XML Schema validation context or NULL
    options:options (not used yet)
    Returns:0 in case the schemas validation could be (de)activated and -1 in case of error.
    -
    -

    xmlTextReaderSetErrorHandler ()

    void	xmlTextReaderSetErrorHandler	(xmlTextReaderPtr reader, 
    xmlTextReaderErrorFunc f,
    void * arg)
    -

    Register a callback function that will be called on error and warnings. If @f is NULL, the default error and warning handlers are restored.

    -
    reader:the xmlTextReaderPtr used
    f:the callback function to call on error and warnings
    arg:a user argument to pass to the callback function
    -
    -

    xmlTextReaderSetParserProp ()

    int	xmlTextReaderSetParserProp	(xmlTextReaderPtr reader, 
    int prop,
    int value)
    -

    Change the parser processing behaviour by changing some of its internal properties. Note that some properties can only be changed before any read has been done.

    -
    reader:the xmlTextReaderPtr used
    prop:the xmlParserProperties to set
    value:usually 0 or 1 to (de)activate it
    Returns:0 if the call was successful, or -1 in case of error
    -
    -

    xmlTextReaderSetSchema ()

    int	xmlTextReaderSetSchema		(xmlTextReaderPtr reader, 
    xmlSchemaPtr schema)
    -

    Use XSD Schema to validate the document as it is processed. Activation is only possible before the first Read(). if @schema is NULL, then Schema validation is desactivated. @ The @schema should not be freed until the reader is deallocated or its use has been deactivated.

    -
    reader:the xmlTextReaderPtr used
    schema:a precompiled Schema schema
    Returns:0 in case the Schema validation could be (des)activated and -1 in case of error.
    -
    -

    xmlTextReaderSetStructuredErrorHandler ()

    void	xmlTextReaderSetStructuredErrorHandler	(xmlTextReaderPtr reader, 
    xmlStructuredErrorFunc f,
    void * arg)
    -

    Register a callback function that will be called on error and warnings. If @f is NULL, the default error and warning handlers are restored.

    -
    reader:the xmlTextReaderPtr used
    f:the callback function to call on error and warnings
    arg:a user argument to pass to the callback function
    -
    -

    xmlTextReaderStandalone ()

    int	xmlTextReaderStandalone		(xmlTextReaderPtr reader)
    -

    Determine the standalone status of the document being read.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 if the document was declared to be standalone, 0 if it was declared to be not standalone, or -1 if the document did not specify its standalone status or in case of error.
    -
    -

    xmlTextReaderValue ()

    xmlChar *	xmlTextReaderValue	(xmlTextReaderPtr reader)
    -

    Provides the text value of the node if present

    -
    reader:the xmlTextReaderPtr used
    Returns:the string or NULL if not available. The result must be deallocated with xmlFree()
    -
    -

    xmlTextReaderXmlLang ()

    xmlChar *	xmlTextReaderXmlLang	(xmlTextReaderPtr reader)
    -

    The xml:lang scope within which the node resides.

    -
    reader:the xmlTextReaderPtr used
    Returns:the xml:lang value or NULL if none exists.
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlregexp.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlregexp.html deleted file mode 100644 index e7836484d2..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlregexp.html +++ /dev/null @@ -1,280 +0,0 @@ - - - - - xmlregexp: regular expressions handling - - - - - - - - - - - - - - - - -

    - xmlregexp -

    -

    xmlregexp - regular expressions handling

    -

    basic API for libxml regular expressions handling used for XML Schemas and validation.

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef xmlRegExecCtxt * xmlRegExecCtxtPtr;
    -typedef struct _xmlExpCtxt xmlExpCtxt;
    -typedef xmlExpNode * xmlExpNodePtr;
    -typedef xmlExpCtxt * xmlExpCtxtPtr;
    -typedef enum xmlExpNodeType;
    -typedef struct _xmlRegExecCtxt xmlRegExecCtxt;
    -typedef struct _xmlExpNode xmlExpNode;
    -typedef struct _xmlRegexp xmlRegexp;
    -typedef xmlRegexp * xmlRegexpPtr;
    -typedef void xmlRegExecCallbacks		(xmlRegExecCtxtPtr exec, 
    const xmlChar * token,
    void * transdata,
    void * inputdata); -xmlRegExecCtxtPtr xmlRegNewExecCtxt (xmlRegexpPtr comp,
    xmlRegExecCallbacks callback,
    void * data); -xmlExpNodePtr xmlExpNewOr (xmlExpCtxtPtr ctxt,
    xmlExpNodePtr left,
    xmlExpNodePtr right); -void xmlRegFreeRegexp (xmlRegexpPtr regexp); -void xmlExpRef (xmlExpNodePtr exp); -int xmlRegexpIsDeterminist (xmlRegexpPtr comp); -int xmlRegExecErrInfo (xmlRegExecCtxtPtr exec,
    const xmlChar ** string,
    int * nbval,
    int * nbneg,
    xmlChar ** values,
    int * terminal); -void xmlRegFreeExecCtxt (xmlRegExecCtxtPtr exec); -int xmlExpCtxtNbCons (xmlExpCtxtPtr ctxt); -int xmlExpSubsume (xmlExpCtxtPtr ctxt,
    xmlExpNodePtr exp,
    xmlExpNodePtr sub); -int xmlRegExecPushString2 (xmlRegExecCtxtPtr exec,
    const xmlChar * value,
    const xmlChar * value2,
    void * data); -int xmlRegExecNextValues (xmlRegExecCtxtPtr exec,
    int * nbval,
    int * nbneg,
    xmlChar ** values,
    int * terminal); -xmlExpNodePtr xmlExpExpDerive (xmlExpCtxtPtr ctxt,
    xmlExpNodePtr exp,
    xmlExpNodePtr sub); -int xmlExpIsNillable (xmlExpNodePtr exp); -void xmlExpFreeCtxt (xmlExpCtxtPtr ctxt); -void xmlExpDump (xmlBufferPtr buf,
    xmlExpNodePtr expr); -xmlExpNodePtr xmlExpNewSeq (xmlExpCtxtPtr ctxt,
    xmlExpNodePtr left,
    xmlExpNodePtr right); -void xmlExpFree (xmlExpCtxtPtr ctxt,
    xmlExpNodePtr exp); -xmlExpNodePtr xmlExpNewRange (xmlExpCtxtPtr ctxt,
    xmlExpNodePtr subset,
    int min,
    int max); -xmlRegexpPtr xmlRegexpCompile (const xmlChar * regexp); -xmlExpNodePtr xmlExpNewAtom (xmlExpCtxtPtr ctxt,
    const xmlChar * name,
    int len); -int xmlRegexpExec (xmlRegexpPtr comp,
    const xmlChar * content); -int xmlRegExecPushString (xmlRegExecCtxtPtr exec,
    const xmlChar * value,
    void * data); -int xmlExpGetStart (xmlExpCtxtPtr ctxt,
    xmlExpNodePtr exp,
    const xmlChar ** tokList,
    int len); -xmlExpNodePtr xmlExpParse (xmlExpCtxtPtr ctxt,
    const char * expr); -xmlExpCtxtPtr xmlExpNewCtxt (int maxNodes,
    xmlDictPtr dict); -int xmlExpGetLanguage (xmlExpCtxtPtr ctxt,
    xmlExpNodePtr exp,
    const xmlChar ** langList,
    int len); -xmlExpNodePtr xmlExpStringDerive (xmlExpCtxtPtr ctxt,
    xmlExpNodePtr exp,
    const xmlChar * str,
    int len); -int xmlExpCtxtNbNodes (xmlExpCtxtPtr ctxt); -int xmlExpMaxToken (xmlExpNodePtr expr); -void xmlRegexpPrint (FILE * output,
    xmlRegexpPtr regexp); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlExpCtxt

    struct _xmlExpCtxt {
    -The content of this structure is not made public by the API.
    -} xmlExpCtxt;
    -

    -

    -
    -

    Typedef xmlExpCtxtPtr

    xmlExpCtxt * xmlExpCtxtPtr;
    -

    -

    -
    -

    Structure xmlExpNode

    struct _xmlExpNode {
    -The content of this structure is not made public by the API.
    -} xmlExpNode;
    -

    -

    -
    -

    Typedef xmlExpNodePtr

    xmlExpNode * xmlExpNodePtr;
    -

    -

    -
    -

    Enum xmlExpNodeType

    enum xmlExpNodeType {
    -    XML_EXP_EMPTY = 0
    -    XML_EXP_FORBID = 1
    -    XML_EXP_ATOM = 2
    -    XML_EXP_SEQ = 3
    -    XML_EXP_OR = 4
    -    XML_EXP_COUNT = 5
    -};
    -

    -

    -
    -

    Structure xmlRegExecCtxt

    struct _xmlRegExecCtxt {
    -The content of this structure is not made public by the API.
    -} xmlRegExecCtxt;
    -

    -

    -
    -

    Typedef xmlRegExecCtxtPtr

    xmlRegExecCtxt * xmlRegExecCtxtPtr;
    -

    A libxml progressive regular expression evaluation context

    -
    -
    -

    Structure xmlRegexp

    struct _xmlRegexp {
    -The content of this structure is not made public by the API.
    -} xmlRegexp;
    -

    -

    -
    -

    Typedef xmlRegexpPtr

    xmlRegexp * xmlRegexpPtr;
    -

    A libxml regular expression, they can actually be far more complex thank the POSIX regex expressions.

    -
    -
    -

    Function type xmlRegExecCallbacks

    void	xmlRegExecCallbacks		(xmlRegExecCtxtPtr exec, 
    const xmlChar * token,
    void * transdata,
    void * inputdata)
    -

    -

    exec:
    token:
    transdata:
    inputdata:
    -
    -

    Variable emptyExp

    xmlExpNodePtr emptyExp;
    -

    -

    -
    -

    Variable forbiddenExp

    xmlExpNodePtr forbiddenExp;
    -

    -

    -
    -

    xmlExpCtxtNbCons ()

    int	xmlExpCtxtNbCons		(xmlExpCtxtPtr ctxt)
    -

    Debugging facility provides the number of allocated nodes over lifetime

    -
    ctxt:an expression context
    Returns:the number of nodes ever allocated or -1 in case of error
    -
    -

    xmlExpCtxtNbNodes ()

    int	xmlExpCtxtNbNodes		(xmlExpCtxtPtr ctxt)
    -

    Debugging facility provides the number of allocated nodes at a that point

    -
    ctxt:an expression context
    Returns:the number of nodes in use or -1 in case of error
    -
    -

    xmlExpDump ()

    void	xmlExpDump			(xmlBufferPtr buf, 
    xmlExpNodePtr expr)
    -

    Serialize the expression as compiled to the buffer

    -
    buf:a buffer to receive the output
    expr:the compiled expression
    -
    -

    xmlExpExpDerive ()

    xmlExpNodePtr	xmlExpExpDerive		(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp,
    xmlExpNodePtr sub)
    -

    Evaluates the expression resulting from @exp consuming a sub expression @sub Based on algebraic derivation and sometimes direct Brzozowski derivation it usually tatkes less than linear time and can handle expressions generating infinite languages.

    -
    ctxt:the expressions context
    exp:the englobing expression
    sub:the subexpression
    Returns:the resulting expression or NULL in case of internal error, the result must be freed
    -
    -

    xmlExpFree ()

    void	xmlExpFree			(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp)
    -

    Dereference the expression

    -
    ctxt:the expression context
    exp:the expression
    -
    -

    xmlExpFreeCtxt ()

    void	xmlExpFreeCtxt			(xmlExpCtxtPtr ctxt)
    -

    Free an expression context

    -
    ctxt:an expression context
    -
    -

    xmlExpGetLanguage ()

    int	xmlExpGetLanguage		(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp,
    const xmlChar ** langList,
    int len)
    -

    Find all the strings used in @exp and store them in @list

    -
    ctxt:the expression context
    exp:the expression
    langList:where to store the tokens
    len:the allocated lenght of @list
    Returns:the number of unique strings found, -1 in case of errors and -2 if there is more than @len strings
    -
    -

    xmlExpGetStart ()

    int	xmlExpGetStart			(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp,
    const xmlChar ** tokList,
    int len)
    -

    Find all the strings that appears at the start of the languages accepted by @exp and store them in @list. E.g. for (a, b) | c it will return the list [a, c]

    -
    ctxt:the expression context
    exp:the expression
    tokList:where to store the tokens
    len:the allocated lenght of @list
    Returns:the number of unique strings found, -1 in case of errors and -2 if there is more than @len strings
    -
    -

    xmlExpIsNillable ()

    int	xmlExpIsNillable		(xmlExpNodePtr exp)
    -

    Finds if the expression is nillable, i.e. if it accepts the empty sequqnce

    -
    exp:the expression
    Returns:1 if nillable, 0 if not and -1 in case of error
    -
    -

    xmlExpMaxToken ()

    int	xmlExpMaxToken			(xmlExpNodePtr expr)
    -

    Indicate the maximum number of input a expression can accept

    -
    expr:a compiled expression
    Returns:the maximum length or -1 in case of error
    -
    -

    xmlExpNewAtom ()

    xmlExpNodePtr	xmlExpNewAtom		(xmlExpCtxtPtr ctxt, 
    const xmlChar * name,
    int len)
    -

    Get the atom associated to this name from that context

    -
    ctxt:the expression context
    name:the atom name
    len:the atom name lenght in byte (or -1);
    Returns:the node or NULL in case of error
    -
    -

    xmlExpNewCtxt ()

    xmlExpCtxtPtr	xmlExpNewCtxt		(int maxNodes, 
    xmlDictPtr dict)
    -

    Creates a new context for manipulating expressions

    -
    maxNodes:the maximum number of nodes
    dict:optional dictionnary to use internally
    Returns:the context or NULL in case of error
    -
    -

    xmlExpNewOr ()

    xmlExpNodePtr	xmlExpNewOr		(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr left,
    xmlExpNodePtr right)
    -

    Get the atom associated to the choice @left | @right Note that @left and @right are consumed in the operation, to keep an handle on them use xmlExpRef() and use xmlExpFree() to release them, this is true even in case of failure (unless ctxt == NULL).

    -
    ctxt:the expression context
    left:left expression
    right:right expression
    Returns:the node or NULL in case of error
    -
    -

    xmlExpNewRange ()

    xmlExpNodePtr	xmlExpNewRange		(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr subset,
    int min,
    int max)
    -

    Get the atom associated to the range (@subset){@min, @max} Note that @subset is consumed in the operation, to keep an handle on it use xmlExpRef() and use xmlExpFree() to release it, this is true even in case of failure (unless ctxt == NULL).

    -
    ctxt:the expression context
    subset:the expression to be repeated
    min:the lower bound for the repetition
    max:the upper bound for the repetition, -1 means infinite
    Returns:the node or NULL in case of error
    -
    -

    xmlExpNewSeq ()

    xmlExpNodePtr	xmlExpNewSeq		(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr left,
    xmlExpNodePtr right)
    -

    Get the atom associated to the sequence @left , @right Note that @left and @right are consumed in the operation, to keep an handle on them use xmlExpRef() and use xmlExpFree() to release them, this is true even in case of failure (unless ctxt == NULL).

    -
    ctxt:the expression context
    left:left expression
    right:right expression
    Returns:the node or NULL in case of error
    -
    -

    xmlExpParse ()

    xmlExpNodePtr	xmlExpParse		(xmlExpCtxtPtr ctxt, 
    const char * expr)
    -

    Minimal parser for regexps, it understand the following constructs - string terminals - choice operator | - sequence operator , - subexpressions (...) - usual cardinality operators + * and ? - finite sequences { min, max } - infinite sequences { min, * } There is minimal checkings made especially no checking on strings values

    -
    ctxt:the expressions context
    expr:the 0 terminated string
    Returns:a new expression or NULL in case of failure
    -
    -

    xmlExpRef ()

    void	xmlExpRef			(xmlExpNodePtr exp)
    -

    Increase the reference count of the expression

    -
    exp:the expression
    -
    -

    xmlExpStringDerive ()

    xmlExpNodePtr	xmlExpStringDerive	(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp,
    const xmlChar * str,
    int len)
    -

    Do one step of Brzozowski derivation of the expression @exp with respect to the input string

    -
    ctxt:the expression context
    exp:the expression
    str:the string
    len:the string len in bytes if available
    Returns:the resulting expression or NULL in case of internal error
    -
    -

    xmlExpSubsume ()

    int	xmlExpSubsume			(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp,
    xmlExpNodePtr sub)
    -

    Check whether @exp accepts all the languages accexpted by @sub the input being a subexpression.

    -
    ctxt:the expressions context
    exp:the englobing expression
    sub:the subexpression
    Returns:1 if true 0 if false and -1 in case of failure.
    -
    -

    xmlRegExecErrInfo ()

    int	xmlRegExecErrInfo		(xmlRegExecCtxtPtr exec, 
    const xmlChar ** string,
    int * nbval,
    int * nbneg,
    xmlChar ** values,
    int * terminal)
    -

    Extract error informations from the regexp execution, the parameter @string will be updated with the value pushed and not accepted, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values

    -
    exec:a regexp execution context generating an error
    string:return value for the error string
    nbval:pointer to the number of accepted values IN/OUT
    nbneg:return number of negative transitions
    values:pointer to the array of acceptable values
    terminal:return value if this was a terminal state
    Returns:will be freed with the @exec context and don't need to be deallocated. Returns: 0 in case of success or -1 in case of error.
    -
    -

    xmlRegExecNextValues ()

    int	xmlRegExecNextValues		(xmlRegExecCtxtPtr exec, 
    int * nbval,
    int * nbneg,
    xmlChar ** values,
    int * terminal)
    -

    Extract informations from the regexp execution, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values

    -
    exec:a regexp execution context
    nbval:pointer to the number of accepted values IN/OUT
    nbneg:return number of negative transitions
    values:pointer to the array of acceptable values
    terminal:return value if this was a terminal state
    Returns:will be freed with the @exec context and don't need to be deallocated. Returns: 0 in case of success or -1 in case of error.
    -
    -

    xmlRegExecPushString ()

    int	xmlRegExecPushString		(xmlRegExecCtxtPtr exec, 
    const xmlChar * value,
    void * data)
    -

    Push one input token in the execution context

    -
    exec:a regexp execution context or NULL to indicate the end
    value:a string token input
    data:data associated to the token to reuse in callbacks
    Returns:1 if the regexp reached a final state, 0 if non-final, and a negative value in case of error.
    -
    -

    xmlRegExecPushString2 ()

    int	xmlRegExecPushString2		(xmlRegExecCtxtPtr exec, 
    const xmlChar * value,
    const xmlChar * value2,
    void * data)
    -

    Push one input token in the execution context

    -
    exec:a regexp execution context or NULL to indicate the end
    value:the first string token input
    value2:the second string token input
    data:data associated to the token to reuse in callbacks
    Returns:1 if the regexp reached a final state, 0 if non-final, and a negative value in case of error.
    -
    -

    xmlRegFreeExecCtxt ()

    void	xmlRegFreeExecCtxt		(xmlRegExecCtxtPtr exec)
    -

    Free the structures associated to a regular expression evaulation context.

    -
    exec:a regular expression evaulation context
    -
    -

    xmlRegFreeRegexp ()

    void	xmlRegFreeRegexp		(xmlRegexpPtr regexp)
    -

    Free a regexp

    -
    regexp:the regexp
    -
    -

    xmlRegNewExecCtxt ()

    xmlRegExecCtxtPtr	xmlRegNewExecCtxt	(xmlRegexpPtr comp, 
    xmlRegExecCallbacks callback,
    void * data)
    -

    Build a context used for progressive evaluation of a regexp.

    -
    comp:a precompiled regular expression
    callback:a callback function used for handling progresses in the automata matching phase
    data:the context data associated to the callback in this context
    Returns:the new context
    -
    -

    xmlRegexpCompile ()

    xmlRegexpPtr	xmlRegexpCompile	(const xmlChar * regexp)
    -

    Parses a regular expression conforming to XML Schemas Part 2 Datatype Appendix F and builds an automata suitable for testing strings against that regular expression

    -
    regexp:a regular expression string
    Returns:the compiled expression or NULL in case of error
    -
    -

    xmlRegexpExec ()

    int	xmlRegexpExec			(xmlRegexpPtr comp, 
    const xmlChar * content)
    -

    Check if the regular expression generates the value

    -
    comp:the compiled regular expression
    content:the value to check against the regular expression
    Returns:1 if it matches, 0 if not and a negative value in case of error
    -
    -

    xmlRegexpIsDeterminist ()

    int	xmlRegexpIsDeterminist		(xmlRegexpPtr comp)
    -

    Check if the regular expression is determinist

    -
    comp:the compiled regular expression
    Returns:1 if it yes, 0 if not and a negative value in case of error
    -
    -

    xmlRegexpPrint ()

    void	xmlRegexpPrint			(FILE * output, 
    xmlRegexpPtr regexp)
    -

    Print the content of the compiled regular expression

    -
    output:the file for the output debug
    regexp:the compiled regexp
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlsave.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlsave.html deleted file mode 100644 index 910a1dffe0..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlsave.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - xmlsave: the XML document serializer - - - - - - - - - - - - - - - - -

    - xmlsave -

    -

    xmlsave - the XML document serializer

    -

    API to save document or subtree of document

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef enum xmlSaveOption;
    -typedef struct _xmlSaveCtxt xmlSaveCtxt;
    -typedef xmlSaveCtxt * xmlSaveCtxtPtr;
    -xmlSaveCtxtPtr	xmlSaveToIO		(xmlOutputWriteCallback iowrite, 
    xmlOutputCloseCallback ioclose,
    void * ioctx,
    const char * encoding,
    int options); -xmlSaveCtxtPtr xmlSaveToFd (int fd,
    const char * encoding,
    int options); -int xmlSaveClose (xmlSaveCtxtPtr ctxt); -int xmlSaveSetAttrEscape (xmlSaveCtxtPtr ctxt,
    xmlCharEncodingOutputFunc escape); -xmlSaveCtxtPtr xmlSaveToBuffer (xmlBufferPtr buffer,
    const char * encoding,
    int options); -xmlSaveCtxtPtr xmlSaveToFilename (const char * filename,
    const char * encoding,
    int options); -int xmlSaveFlush (xmlSaveCtxtPtr ctxt); -long xmlSaveDoc (xmlSaveCtxtPtr ctxt,
    xmlDocPtr doc); -int xmlSaveSetEscape (xmlSaveCtxtPtr ctxt,
    xmlCharEncodingOutputFunc escape); -long xmlSaveTree (xmlSaveCtxtPtr ctxt,
    xmlNodePtr node); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlSaveCtxt

    struct _xmlSaveCtxt {
    -The content of this structure is not made public by the API.
    -} xmlSaveCtxt;
    -

    -

    -
    -

    Typedef xmlSaveCtxtPtr

    xmlSaveCtxt * xmlSaveCtxtPtr;
    -

    -

    -
    -

    Enum xmlSaveOption

    enum xmlSaveOption {
    -    XML_SAVE_FORMAT = 1 /* format save output */
    -    XML_SAVE_NO_DECL = 2 /* drop the xml declaration */
    -    XML_SAVE_NO_EMPTY = 4 /* no empty tags */
    -    XML_SAVE_NO_XHTML = 8 /*  disable XHTML1 specific rules */
    -};
    -

    -

    -
    -

    xmlSaveClose ()

    int	xmlSaveClose			(xmlSaveCtxtPtr ctxt)
    -

    Close a document saving context, i.e. make sure that all bytes have been output and free the associated data.

    -
    ctxt:a document saving context
    Returns:the number of byte written or -1 in case of error.
    -
    -

    xmlSaveDoc ()

    long	xmlSaveDoc			(xmlSaveCtxtPtr ctxt, 
    xmlDocPtr doc)
    -

    Save a full document to a saving context TODO: The function is not fully implemented yet as it does not return the byte count but 0 instead

    -
    ctxt:a document saving context
    doc:a document
    Returns:the number of byte written or -1 in case of error
    -
    -

    xmlSaveFlush ()

    int	xmlSaveFlush			(xmlSaveCtxtPtr ctxt)
    -

    Flush a document saving context, i.e. make sure that all bytes have been output.

    -
    ctxt:a document saving context
    Returns:the number of byte written or -1 in case of error.
    -
    -

    xmlSaveSetAttrEscape ()

    int	xmlSaveSetAttrEscape		(xmlSaveCtxtPtr ctxt, 
    xmlCharEncodingOutputFunc escape)
    -

    Set a custom escaping function to be used for text in attribute content

    -
    ctxt:a document saving context
    escape:the escaping function
    Returns:0 if successful or -1 in case of error.
    -
    -

    xmlSaveSetEscape ()

    int	xmlSaveSetEscape		(xmlSaveCtxtPtr ctxt, 
    xmlCharEncodingOutputFunc escape)
    -

    Set a custom escaping function to be used for text in element content

    -
    ctxt:a document saving context
    escape:the escaping function
    Returns:0 if successful or -1 in case of error.
    -
    -

    xmlSaveToBuffer ()

    xmlSaveCtxtPtr	xmlSaveToBuffer		(xmlBufferPtr buffer, 
    const char * encoding,
    int options)
    -

    Create a document saving context serializing to a buffer with the encoding and the options given

    -
    buffer:a buffer
    encoding:the encoding name to use or NULL
    options:a set of xmlSaveOptions
    Returns:a new serialization context or NULL in case of error.
    -
    -

    xmlSaveToFd ()

    xmlSaveCtxtPtr	xmlSaveToFd		(int fd, 
    const char * encoding,
    int options)
    -

    Create a document saving context serializing to a file descriptor with the encoding and the options given.

    -
    fd:a file descriptor number
    encoding:the encoding name to use or NULL
    options:a set of xmlSaveOptions
    Returns:a new serialization context or NULL in case of error.
    -
    -

    xmlSaveToFilename ()

    xmlSaveCtxtPtr	xmlSaveToFilename	(const char * filename, 
    const char * encoding,
    int options)
    -

    Create a document saving context serializing to a filename or possibly to an URL (but this is less reliable) with the encoding and the options given.

    -
    filename:a file name or an URL
    encoding:the encoding name to use or NULL
    options:a set of xmlSaveOptions
    Returns:a new serialization context or NULL in case of error.
    -
    -

    xmlSaveToIO ()

    xmlSaveCtxtPtr	xmlSaveToIO		(xmlOutputWriteCallback iowrite, 
    xmlOutputCloseCallback ioclose,
    void * ioctx,
    const char * encoding,
    int options)
    -

    Create a document saving context serializing to a file descriptor with the encoding and the options given

    -
    iowrite:an I/O write function
    ioclose:an I/O close function
    ioctx:an I/O handler
    encoding:the encoding name to use or NULL
    options:a set of xmlSaveOptions
    Returns:a new serialization context or NULL in case of error.
    -
    -

    xmlSaveTree ()

    long	xmlSaveTree			(xmlSaveCtxtPtr ctxt, 
    xmlNodePtr node)
    -

    Save a subtree starting at the node parameter to a saving context TODO: The function is not fully implemented yet as it does not return the byte count but 0 instead

    -
    ctxt:a document saving context
    node:a document
    Returns:the number of byte written or -1 in case of error
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlschemas.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlschemas.html deleted file mode 100644 index 4801ea5d07..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlschemas.html +++ /dev/null @@ -1,294 +0,0 @@ - - - - - xmlschemas: incomplete XML Schemas structure implementation - - - - - - - - - - - - - - - - -

    - xmlschemas -

    -

    xmlschemas - incomplete XML Schemas structure implementation

    -

    interface to the XML Schemas handling and schema validity checking, it is incomplete right now.

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef xmlSchema * xmlSchemaPtr;
    -typedef struct _xmlSchemaParserCtxt xmlSchemaParserCtxt;
    -typedef enum xmlSchemaValidOption;
    -typedef xmlSchemaSAXPlugStruct * xmlSchemaSAXPlugPtr;
    -typedef struct _xmlSchemaSAXPlug xmlSchemaSAXPlugStruct;
    -typedef xmlSchemaValidCtxt * xmlSchemaValidCtxtPtr;
    -typedef xmlSchemaParserCtxt * xmlSchemaParserCtxtPtr;
    -typedef struct _xmlSchema xmlSchema;
    -typedef enum xmlSchemaValidError;
    -typedef struct _xmlSchemaValidCtxt xmlSchemaValidCtxt;
    -xmlSchemaParserCtxtPtr	xmlSchemaNewDocParserCtxt	(xmlDocPtr doc);
    -int	xmlSchemaSAXUnplug		(xmlSchemaSAXPlugPtr plug);
    -xmlSchemaPtr	xmlSchemaParse		(xmlSchemaParserCtxtPtr ctxt);
    -void	xmlSchemaFreeParserCtxt		(xmlSchemaParserCtxtPtr ctxt);
    -xmlSchemaParserCtxtPtr	xmlSchemaNewParserCtxt	(const char * URL);
    -int	xmlSchemaIsValid		(xmlSchemaValidCtxtPtr ctxt);
    -typedef void xmlSchemaValidityErrorFunc	(void * ctx, 
    const char * msg,
    ... ...); -xmlSchemaSAXPlugPtr xmlSchemaSAXPlug (xmlSchemaValidCtxtPtr ctxt,
    xmlSAXHandlerPtr * sax,
    void ** user_data); -int xmlSchemaValidateStream (xmlSchemaValidCtxtPtr ctxt,
    xmlParserInputBufferPtr input,
    xmlCharEncoding enc,
    xmlSAXHandlerPtr sax,
    void * user_data); -int xmlSchemaGetParserErrors (xmlSchemaParserCtxtPtr ctxt,
    xmlSchemaValidityErrorFunc * err,
    xmlSchemaValidityWarningFunc * warn,
    void ** ctx); -int xmlSchemaValidateOneElement (xmlSchemaValidCtxtPtr ctxt,
    xmlNodePtr elem); -void xmlSchemaSetValidStructuredErrors (xmlSchemaValidCtxtPtr ctxt,
    xmlStructuredErrorFunc serror,
    void * ctx); -void xmlSchemaSetValidErrors (xmlSchemaValidCtxtPtr ctxt,
    xmlSchemaValidityErrorFunc err,
    xmlSchemaValidityWarningFunc warn,
    void * ctx); -int xmlSchemaValidCtxtGetOptions (xmlSchemaValidCtxtPtr ctxt); -int xmlSchemaValidateFile (xmlSchemaValidCtxtPtr ctxt,
    const char * filename,
    int options); -int xmlSchemaValidateDoc (xmlSchemaValidCtxtPtr ctxt,
    xmlDocPtr instance); -void xmlSchemaFree (xmlSchemaPtr schema); -xmlSchemaParserCtxtPtr xmlSchemaNewMemParserCtxt (const char * buffer,
    int size); -int xmlSchemaGetValidErrors (xmlSchemaValidCtxtPtr ctxt,
    xmlSchemaValidityErrorFunc * err,
    xmlSchemaValidityWarningFunc * warn,
    void ** ctx); -int xmlSchemaSetValidOptions (xmlSchemaValidCtxtPtr ctxt,
    int options); -void xmlSchemaSetParserErrors (xmlSchemaParserCtxtPtr ctxt,
    xmlSchemaValidityErrorFunc err,
    xmlSchemaValidityWarningFunc warn,
    void * ctx); -typedef void xmlSchemaValidityWarningFunc (void * ctx,
    const char * msg,
    ... ...); -void xmlSchemaDump (FILE * output,
    xmlSchemaPtr schema); -void xmlSchemaFreeValidCtxt (xmlSchemaValidCtxtPtr ctxt); -void xmlSchemaSetParserStructuredErrors (xmlSchemaParserCtxtPtr ctxt,
    xmlStructuredErrorFunc serror,
    void * ctx); -xmlSchemaValidCtxtPtr xmlSchemaNewValidCtxt (xmlSchemaPtr schema); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlSchema

    struct _xmlSchema {
    -    const xmlChar *	name	: schema name
    -    const xmlChar *	targetNamespace	: the target namespace
    -    const xmlChar *	version
    -    const xmlChar *	id	: Obsolete
    -    xmlDocPtr	doc
    -    xmlSchemaAnnotPtr	annot
    -    int	flags
    -    xmlHashTablePtr	typeDecl
    -    xmlHashTablePtr	attrDecl
    -    xmlHashTablePtr	attrgrpDecl
    -    xmlHashTablePtr	elemDecl
    -    xmlHashTablePtr	notaDecl
    -    xmlHashTablePtr	schemasImports
    -    void *	_private	: unused by the library for users or bindings
    -    xmlHashTablePtr	groupDecl
    -    xmlDictPtr	dict
    -    void *	includes	: the includes, this is opaque for now
    -    int	preserve	: whether to free the document
    -    int	counter	: used to give ononymous components unique names
    -    xmlHashTablePtr	idcDef	: All identity-constraint defs.
    -    void *	volatiles	: Obsolete
    -} xmlSchema;
    -

    -

    -
    -

    Structure xmlSchemaParserCtxt

    struct _xmlSchemaParserCtxt {
    -The content of this structure is not made public by the API.
    -} xmlSchemaParserCtxt;
    -

    -

    -
    -

    Typedef xmlSchemaParserCtxtPtr

    xmlSchemaParserCtxt * xmlSchemaParserCtxtPtr;
    -

    -

    -
    -

    Typedef xmlSchemaPtr

    xmlSchema * xmlSchemaPtr;
    -

    -

    -
    -

    Typedef xmlSchemaSAXPlugPtr

    xmlSchemaSAXPlugStruct * xmlSchemaSAXPlugPtr;
    -

    -

    -
    -

    Structure xmlSchemaSAXPlugStruct

    struct _xmlSchemaSAXPlug {
    -The content of this structure is not made public by the API.
    -} xmlSchemaSAXPlugStruct;
    -

    -

    -
    -

    Structure xmlSchemaValidCtxt

    struct _xmlSchemaValidCtxt {
    -The content of this structure is not made public by the API.
    -} xmlSchemaValidCtxt;
    -

    -

    -
    -

    Typedef xmlSchemaValidCtxtPtr

    xmlSchemaValidCtxt * xmlSchemaValidCtxtPtr;
    -

    -

    -
    - -
    -

    Enum xmlSchemaValidOption

    enum xmlSchemaValidOption {
    -    XML_SCHEMA_VAL_VC_I_CREATE = 1 /*  Default/fixed: create an attribute node * or an element's text node on the instance. * */
    -};
    -

    -

    -
    - -
    -
    -
    -

    xmlSchemaDump ()

    void	xmlSchemaDump			(FILE * output, 
    xmlSchemaPtr schema)
    -

    Dump a Schema structure.

    -
    output:the file output
    schema:a schema structure
    -
    -

    xmlSchemaFree ()

    void	xmlSchemaFree			(xmlSchemaPtr schema)
    -

    Deallocate a Schema structure.

    -
    schema:a schema structure
    -
    -

    xmlSchemaFreeParserCtxt ()

    void	xmlSchemaFreeParserCtxt		(xmlSchemaParserCtxtPtr ctxt)
    -

    Free the resources associated to the schema parser context

    -
    ctxt:the schema parser context
    -
    - -
    -

    xmlSchemaGetParserErrors ()

    int	xmlSchemaGetParserErrors	(xmlSchemaParserCtxtPtr ctxt, 
    xmlSchemaValidityErrorFunc * err,
    xmlSchemaValidityWarningFunc * warn,
    void ** ctx)
    -

    Get the callback information used to handle errors for a parser context

    -
    ctxt:a XMl-Schema parser context
    err:the error callback result
    warn:the warning callback result
    ctx:contextual data for the callbacks result
    Returns:-1 in case of failure, 0 otherwise
    -
    - -
    - -
    -

    xmlSchemaNewDocParserCtxt ()

    xmlSchemaParserCtxtPtr	xmlSchemaNewDocParserCtxt	(xmlDocPtr doc)
    -

    Create an XML Schemas parse context for that document. NB. The document may be modified during the parsing process.

    -
    doc:a preparsed document tree
    Returns:the parser context or NULL in case of error
    -
    -

    xmlSchemaNewMemParserCtxt ()

    xmlSchemaParserCtxtPtr	xmlSchemaNewMemParserCtxt	(const char * buffer, 
    int size)
    -

    Create an XML Schemas parse context for that memory buffer expected to contain an XML Schemas file.

    -
    buffer:a pointer to a char array containing the schemas
    size:the size of the array
    Returns:the parser context or NULL in case of error
    -
    -

    xmlSchemaNewParserCtxt ()

    xmlSchemaParserCtxtPtr	xmlSchemaNewParserCtxt	(const char * URL)
    -

    Create an XML Schemas parse context for that file/resource expected to contain an XML Schemas file.

    -
    URL:the location of the schema
    Returns:the parser context or NULL in case of error
    -
    -

    xmlSchemaNewValidCtxt ()

    xmlSchemaValidCtxtPtr	xmlSchemaNewValidCtxt	(xmlSchemaPtr schema)
    -

    -

    schema:
    Returns:
    -
    -

    xmlSchemaParse ()

    xmlSchemaPtr	xmlSchemaParse		(xmlSchemaParserCtxtPtr ctxt)
    -

    parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances.

    -
    ctxt:a schema validation context
    Returns:the internal XML Schema structure built from the resource or NULL in case of error
    -
    -

    xmlSchemaSAXPlug ()

    xmlSchemaSAXPlugPtr	xmlSchemaSAXPlug	(xmlSchemaValidCtxtPtr ctxt, 
    xmlSAXHandlerPtr * sax,
    void ** user_data)
    -

    -

    ctxt:
    sax:
    user_data:
    Returns:
    -
    - -
    -

    xmlSchemaSetParserErrors ()

    void	xmlSchemaSetParserErrors	(xmlSchemaParserCtxtPtr ctxt, 
    xmlSchemaValidityErrorFunc err,
    xmlSchemaValidityWarningFunc warn,
    void * ctx)
    -

    Set the callback functions used to handle errors for a validation context

    -
    ctxt:a schema validation context
    err:the error callback
    warn:the warning callback
    ctx:contextual data for the callbacks
    -
    -

    xmlSchemaSetParserStructuredErrors ()

    void	xmlSchemaSetParserStructuredErrors	(xmlSchemaParserCtxtPtr ctxt, 
    xmlStructuredErrorFunc serror,
    void * ctx)
    -

    Set the structured error callback

    -
    ctxt:a schema parser context
    serror:the structured error function
    ctx:the functions context
    -
    - -
    - -
    - -
    - -
    - -
    -

    xmlSchemaValidateFile ()

    int	xmlSchemaValidateFile		(xmlSchemaValidCtxtPtr ctxt, 
    const char * filename,
    int options)
    -

    -

    ctxt:
    filename:
    options:
    Returns:
    -
    - -
    - -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlschemastypes.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlschemastypes.html deleted file mode 100644 index c9e778af16..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlschemastypes.html +++ /dev/null @@ -1,237 +0,0 @@ - - - - - xmlschemastypes: implementation of XML Schema Datatypes - - - - - - - - - - - - - - - - -

    - xmlschemastypes -

    -

    xmlschemastypes - implementation of XML Schema Datatypes

    -

    module providing the XML Schema Datatypes implementation both definition and validity checking

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef enum xmlSchemaWhitespaceValueType;
    -int	xmlSchemaValPredefTypeNode	(xmlSchemaTypePtr type, 
    const xmlChar * value,
    xmlSchemaValPtr * val,
    xmlNodePtr node); -int xmlSchemaGetCanonValueWhtsp (xmlSchemaValPtr val,
    const xmlChar ** retValue,
    xmlSchemaWhitespaceValueType ws); -int xmlSchemaValidateLengthFacetWhtsp (xmlSchemaFacetPtr facet,
    xmlSchemaValType valType,
    const xmlChar * value,
    xmlSchemaValPtr val,
    unsigned long * length,
    xmlSchemaWhitespaceValueType ws); -int xmlSchemaIsBuiltInTypeFacet (xmlSchemaTypePtr type,
    int facetType); -int xmlSchemaGetCanonValue (xmlSchemaValPtr val,
    const xmlChar ** retValue); -xmlSchemaTypePtr xmlSchemaGetBuiltInListSimpleTypeItemType (xmlSchemaTypePtr type); -int xmlSchemaCompareValuesWhtsp (xmlSchemaValPtr x,
    xmlSchemaWhitespaceValueType xws,
    xmlSchemaValPtr y,
    xmlSchemaWhitespaceValueType yws); -int xmlSchemaValueGetAsBoolean (xmlSchemaValPtr val); -xmlChar * xmlSchemaCollapseString (const xmlChar * value); -int xmlSchemaValPredefTypeNodeNoNorm (xmlSchemaTypePtr type,
    const xmlChar * value,
    xmlSchemaValPtr * val,
    xmlNodePtr node); -int xmlSchemaValidateFacet (xmlSchemaTypePtr base,
    xmlSchemaFacetPtr facet,
    const xmlChar * value,
    xmlSchemaValPtr val); -xmlSchemaFacetPtr xmlSchemaNewFacet (void); -int xmlSchemaValueAppend (xmlSchemaValPtr prev,
    xmlSchemaValPtr cur); -int xmlSchemaCompareValues (xmlSchemaValPtr x,
    xmlSchemaValPtr y); -int xmlSchemaValidateLengthFacet (xmlSchemaTypePtr type,
    xmlSchemaFacetPtr facet,
    const xmlChar * value,
    xmlSchemaValPtr val,
    unsigned long * length); -xmlSchemaValType xmlSchemaGetValType (xmlSchemaValPtr val); -xmlSchemaTypePtr xmlSchemaGetPredefinedType (const xmlChar * name,
    const xmlChar * ns); -int xmlSchemaValidatePredefinedType (xmlSchemaTypePtr type,
    const xmlChar * value,
    xmlSchemaValPtr * val); -void xmlSchemaFreeFacet (xmlSchemaFacetPtr facet); -int xmlSchemaValidateListSimpleTypeFacet (xmlSchemaFacetPtr facet,
    const xmlChar * value,
    unsigned long actualLen,
    unsigned long * expectedLen); -unsigned long xmlSchemaGetFacetValueAsULong (xmlSchemaFacetPtr facet); -void xmlSchemaFreeValue (xmlSchemaValPtr value); -xmlSchemaValPtr xmlSchemaValueGetNext (xmlSchemaValPtr cur); -const xmlChar * xmlSchemaValueGetAsString (xmlSchemaValPtr val); -xmlSchemaValPtr xmlSchemaCopyValue (xmlSchemaValPtr val); -xmlSchemaValPtr xmlSchemaNewNOTATIONValue (const xmlChar * name,
    const xmlChar * ns); -xmlSchemaValPtr xmlSchemaNewQNameValue (const xmlChar * namespaceName,
    const xmlChar * localName); -void xmlSchemaCleanupTypes (void); -xmlChar * xmlSchemaWhiteSpaceReplace (const xmlChar * value); -xmlSchemaValPtr xmlSchemaNewStringValue (xmlSchemaValType type,
    const xmlChar * value); -xmlSchemaTypePtr xmlSchemaGetBuiltInType (xmlSchemaValType type); -void xmlSchemaInitTypes (void); -int xmlSchemaValidateFacetWhtsp (xmlSchemaFacetPtr facet,
    xmlSchemaWhitespaceValueType fws,
    xmlSchemaValType valType,
    const xmlChar * value,
    xmlSchemaValPtr val,
    xmlSchemaWhitespaceValueType ws); -int xmlSchemaCheckFacet (xmlSchemaFacetPtr facet,
    xmlSchemaTypePtr typeDecl,
    xmlSchemaParserCtxtPtr pctxt,
    const xmlChar * name); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    - -
    -

    xmlSchemaCheckFacet ()

    int	xmlSchemaCheckFacet		(xmlSchemaFacetPtr facet, 
    xmlSchemaTypePtr typeDecl,
    xmlSchemaParserCtxtPtr pctxt,
    const xmlChar * name)
    -

    Checks and computes the values of facets.

    -
    facet:the facet
    typeDecl:the schema type definition
    pctxt:the schema parser context or NULL
    name:the optional name of the type
    Returns:0 if valid, a positive error code if not valid and -1 in case of an internal or API error.
    -
    - -
    -

    xmlSchemaCollapseString ()

    xmlChar *	xmlSchemaCollapseString	(const xmlChar * value)
    -

    Removes and normalize white spaces in the string

    -
    value:a value
    Returns:the new string or NULL if no change was required.
    -
    -

    xmlSchemaCompareValues ()

    int	xmlSchemaCompareValues		(xmlSchemaValPtr x, 
    xmlSchemaValPtr y)
    -

    Compare 2 values

    -
    x:a first value
    y:a second value
    Returns:-1 if x < y, 0 if x == y, 1 if x > y, 2 if x <> y, and -2 in case of error
    -
    -

    xmlSchemaCompareValuesWhtsp ()

    int	xmlSchemaCompareValuesWhtsp	(xmlSchemaValPtr x, 
    xmlSchemaWhitespaceValueType xws,
    xmlSchemaValPtr y,
    xmlSchemaWhitespaceValueType yws)
    -

    Compare 2 values

    -
    x:a first value
    xws:the whitespace value of x
    y:a second value
    yws:the whitespace value of y
    Returns:-1 if x < y, 0 if x == y, 1 if x > y, 2 if x <> y, and -2 in case of error
    -
    -

    xmlSchemaCopyValue ()

    xmlSchemaValPtr	xmlSchemaCopyValue	(xmlSchemaValPtr val)
    -

    Copies the precomputed value. This duplicates any string within.

    -
    val:the precomputed value to be copied
    Returns:the copy or NULL if a copy for a data-type is not implemented.
    -
    -

    xmlSchemaFreeFacet ()

    void	xmlSchemaFreeFacet		(xmlSchemaFacetPtr facet)
    -

    Deallocate a Schema Facet structure.

    -
    facet:a schema facet structure
    -
    -

    xmlSchemaFreeValue ()

    void	xmlSchemaFreeValue		(xmlSchemaValPtr value)
    -

    Cleanup the default XML Schemas type library

    -
    value:the value to free
    -
    -

    xmlSchemaGetBuiltInListSimpleTypeItemType ()

    xmlSchemaTypePtr	xmlSchemaGetBuiltInListSimpleTypeItemType	(xmlSchemaTypePtr type)
    -

    Lookup function

    -
    type:the built-in simple type.
    Returns:the item type of @type as defined by the built-in datatype hierarchy of XML Schema Part 2: Datatypes, or NULL in case of an error.
    -
    -

    xmlSchemaGetBuiltInType ()

    xmlSchemaTypePtr	xmlSchemaGetBuiltInType	(xmlSchemaValType type)
    -

    Gives you the type struct for a built-in type by its type id.

    -
    type:the type of the built in type
    Returns:the type if found, NULL otherwise.
    -
    -

    xmlSchemaGetCanonValue ()

    int	xmlSchemaGetCanonValue		(xmlSchemaValPtr val, 
    const xmlChar ** retValue)
    -

    Get a the cononical lexical representation of the value. The caller has to FREE the returned retValue. WARNING: Some value types are not supported yet, resulting in a @retValue of "???". TODO: XML Schema 1.0 does not define canonical representations for: duration, gYearMonth, gYear, gMonthDay, gMonth, gDay, anyURI, QName, NOTATION. This will be fixed in XML Schema 1.1.

    -
    val:the precomputed value
    retValue:the returned value
    Returns:0 if the value could be built, 1 if the value type is not supported yet and -1 in case of API errors.
    -
    -

    xmlSchemaGetCanonValueWhtsp ()

    int	xmlSchemaGetCanonValueWhtsp	(xmlSchemaValPtr val, 
    const xmlChar ** retValue,
    xmlSchemaWhitespaceValueType ws)
    -

    Get a the cononical representation of the value. The caller has to free the returned @retValue.

    -
    val:the precomputed value
    retValue:the returned value
    ws:the whitespace type of the value
    Returns:0 if the value could be built, 1 if the value type is not supported yet and -1 in case of API errors.
    -
    -

    xmlSchemaGetFacetValueAsULong ()

    unsigned long	xmlSchemaGetFacetValueAsULong	(xmlSchemaFacetPtr facet)
    -

    Extract the value of a facet

    -
    facet:an schemas type facet
    Returns:the value as a long
    -
    -

    xmlSchemaGetPredefinedType ()

    xmlSchemaTypePtr	xmlSchemaGetPredefinedType	(const xmlChar * name, 
    const xmlChar * ns)
    -

    Lookup a type in the default XML Schemas type library

    -
    name:the type name
    ns:the URI of the namespace usually "http://www.w3.org/2001/XMLSchema"
    Returns:the type if found, NULL otherwise
    -
    -

    xmlSchemaGetValType ()

    xmlSchemaValType	xmlSchemaGetValType	(xmlSchemaValPtr val)
    -

    Accessor for the type of a value

    -
    val:a schemas value
    Returns:the xmlSchemaValType of the value
    -
    - -
    -

    xmlSchemaIsBuiltInTypeFacet ()

    int	xmlSchemaIsBuiltInTypeFacet	(xmlSchemaTypePtr type, 
    int facetType)
    -

    Evaluates if a specific facet can be used in conjunction with a type.

    -
    type:the built-in type
    facetType:the facet type
    Returns:1 if the facet can be used with the given built-in type, 0 otherwise and -1 in case the type is not a built-in type.
    -
    -

    xmlSchemaNewFacet ()

    xmlSchemaFacetPtr	xmlSchemaNewFacet	(void)
    -

    Allocate a new Facet structure.

    -
    Returns:the newly allocated structure or NULL in case or error
    -
    -

    xmlSchemaNewNOTATIONValue ()

    xmlSchemaValPtr	xmlSchemaNewNOTATIONValue	(const xmlChar * name, 
    const xmlChar * ns)
    -

    Allocate a new NOTATION value. The given values are consumed and freed with the struct.

    -
    name:the notation name
    ns:the notation namespace name or NULL
    Returns:a pointer to the new value or NULL in case of error
    -
    -

    xmlSchemaNewQNameValue ()

    xmlSchemaValPtr	xmlSchemaNewQNameValue	(const xmlChar * namespaceName, 
    const xmlChar * localName)
    -

    Allocate a new QName value. The given values are consumed and freed with the struct.

    -
    namespaceName:the namespace name
    localName:the local name
    Returns:a pointer to the new value or NULL in case of an error.
    -
    -

    xmlSchemaNewStringValue ()

    xmlSchemaValPtr	xmlSchemaNewStringValue	(xmlSchemaValType type, 
    const xmlChar * value)
    -

    Allocate a new simple type value. The type can be of XML_SCHEMAS_STRING. WARNING: This one is intended to be expanded for other string based types. We need this for anySimpleType as well. The given value is consumed and freed with the struct.

    -
    type:the value type
    value:the value
    Returns:a pointer to the new value or NULL in case of error
    -
    -

    xmlSchemaValPredefTypeNode ()

    int	xmlSchemaValPredefTypeNode	(xmlSchemaTypePtr type, 
    const xmlChar * value,
    xmlSchemaValPtr * val,
    xmlNodePtr node)
    -

    Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val.

    -
    type:the predefined type
    value:the value to check
    val:the return computed value
    node:the node containing the value
    Returns:0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.
    -
    -

    xmlSchemaValPredefTypeNodeNoNorm ()

    int	xmlSchemaValPredefTypeNodeNoNorm	(xmlSchemaTypePtr type, 
    const xmlChar * value,
    xmlSchemaValPtr * val,
    xmlNodePtr node)
    -

    Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val. This one does apply any normalization to the value.

    -
    type:the predefined type
    value:the value to check
    val:the return computed value
    node:the node containing the value
    Returns:0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.
    -
    -

    xmlSchemaValidateFacet ()

    int	xmlSchemaValidateFacet		(xmlSchemaTypePtr base, 
    xmlSchemaFacetPtr facet,
    const xmlChar * value,
    xmlSchemaValPtr val)
    -

    Check a value against a facet condition

    -
    base:the base type
    facet:the facet to check
    value:the lexical repr of the value to validate
    val:the precomputed value
    Returns:0 if the element is schemas valid, a positive error code number otherwise and -1 in case of internal or API error.
    -
    -

    xmlSchemaValidateFacetWhtsp ()

    int	xmlSchemaValidateFacetWhtsp	(xmlSchemaFacetPtr facet, 
    xmlSchemaWhitespaceValueType fws,
    xmlSchemaValType valType,
    const xmlChar * value,
    xmlSchemaValPtr val,
    xmlSchemaWhitespaceValueType ws)
    -

    Check a value against a facet condition. This takes value normalization according to the specified whitespace types into account. Note that @value needs to be the *normalized* value if the facet is of type "pattern".

    -
    facet:the facet to check
    fws:the whitespace type of the facet's value
    valType:the built-in type of the value
    value:the lexical (or normalized for pattern) repr of the value to validate
    val:the precomputed value
    ws:the whitespace type of the value
    Returns:0 if the element is schemas valid, a positive error code number otherwise and -1 in case of internal or API error.
    -
    -

    xmlSchemaValidateLengthFacet ()

    int	xmlSchemaValidateLengthFacet	(xmlSchemaTypePtr type, 
    xmlSchemaFacetPtr facet,
    const xmlChar * value,
    xmlSchemaValPtr val,
    unsigned long * length)
    -

    Checka a value against a "length", "minLength" and "maxLength" facet; sets @length to the computed length of @value.

    -
    type:the built-in type
    facet:the facet to check
    value:the lexical repr. of the value to be validated
    val:the precomputed value
    length:the actual length of the value
    Returns:0 if the value is valid, a positive error code otherwise and -1 in case of an internal or API error.
    -
    -

    xmlSchemaValidateLengthFacetWhtsp ()

    int	xmlSchemaValidateLengthFacetWhtsp	(xmlSchemaFacetPtr facet, 
    xmlSchemaValType valType,
    const xmlChar * value,
    xmlSchemaValPtr val,
    unsigned long * length,
    xmlSchemaWhitespaceValueType ws)
    -

    Checka a value against a "length", "minLength" and "maxLength" facet; sets @length to the computed length of @value.

    -
    facet:the facet to check
    valType:the built-in type
    value:the lexical repr. of the value to be validated
    val:the precomputed value
    length:the actual length of the value
    ws:the whitespace type of the value
    Returns:0 if the value is valid, a positive error code otherwise and -1 in case of an internal or API error.
    -
    -

    xmlSchemaValidateListSimpleTypeFacet ()

    int	xmlSchemaValidateListSimpleTypeFacet	(xmlSchemaFacetPtr facet, 
    const xmlChar * value,
    unsigned long actualLen,
    unsigned long * expectedLen)
    -

    Checks the value of a list simple type against a facet.

    -
    facet:the facet to check
    value:the lexical repr of the value to validate
    actualLen:the number of list items
    expectedLen:the resulting expected number of list items
    Returns:0 if the value is valid, a positive error code number otherwise and -1 in case of an internal error.
    -
    -

    xmlSchemaValidatePredefinedType ()

    int	xmlSchemaValidatePredefinedType	(xmlSchemaTypePtr type, 
    const xmlChar * value,
    xmlSchemaValPtr * val)
    -

    Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val.

    -
    type:the predefined type
    value:the value to check
    val:the return computed value
    Returns:0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.
    -
    -

    xmlSchemaValueAppend ()

    int	xmlSchemaValueAppend		(xmlSchemaValPtr prev, 
    xmlSchemaValPtr cur)
    -

    Appends a next sibling to a list of computed values.

    -
    prev:the value
    cur:the value to be appended
    Returns:0 if succeeded and -1 on API errors.
    -
    -

    xmlSchemaValueGetAsBoolean ()

    int	xmlSchemaValueGetAsBoolean	(xmlSchemaValPtr val)
    -

    Accessor for the boolean value of a computed value.

    -
    val:the value
    Returns:1 if true and 0 if false, or in case of an error. Hmm.
    -
    -

    xmlSchemaValueGetAsString ()

    const xmlChar *	xmlSchemaValueGetAsString	(xmlSchemaValPtr val)
    -

    Accessor for the string value of a computed value.

    -
    val:the value
    Returns:the string value or NULL if there was none, or on API errors.
    -
    -

    xmlSchemaValueGetNext ()

    xmlSchemaValPtr	xmlSchemaValueGetNext	(xmlSchemaValPtr cur)
    -

    Accessor for the next sibling of a list of computed values.

    -
    cur:the value
    Returns:the next value or NULL if there was none, or on API errors.
    -
    -

    xmlSchemaWhiteSpaceReplace ()

    xmlChar *	xmlSchemaWhiteSpaceReplace	(const xmlChar * value)
    -

    Replaces 0xd, 0x9 and 0xa with a space.

    -
    value:a value
    Returns:the new string or NULL if no change was required.
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlstring.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlstring.html deleted file mode 100644 index 43da9a4009..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlstring.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - xmlstring: set of routines to process strings - - - - - - - - - - - - - - - - -

    - xmlstring -

    -

    xmlstring - set of routines to process strings

    -

    type and interfaces needed for the internal string handling of the library, especially UTF8 processing.

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    #define BAD_CAST;
    -typedef unsigned char xmlChar;
    -int	xmlStrcmp			(const xmlChar * str1, 
    const xmlChar * str2); -xmlChar * xmlCharStrndup (const char * cur,
    int len); -const xmlChar * xmlStrcasestr (const xmlChar * str,
    xmlChar * val); -xmlChar * xmlStrcat (xmlChar * cur,
    const xmlChar * add); -int xmlStrPrintf (xmlChar * buf,
    int len,
    const xmlChar * msg,
    ... ...); -const xmlChar * xmlStrstr (const xmlChar * str,
    const xmlChar * val); -int xmlUTF8Size (const xmlChar * utf); -int xmlStrQEqual (const xmlChar * pref,
    const xmlChar * name,
    const xmlChar * str); -xmlChar * xmlStrncatNew (const xmlChar * str1,
    const xmlChar * str2,
    int len); -const xmlChar * xmlUTF8Strpos (const xmlChar * utf,
    int pos); -xmlChar * xmlStrdup (const xmlChar * cur); -xmlChar * xmlCharStrdup (const char * cur); -const xmlChar * xmlStrchr (const xmlChar * str,
    xmlChar val); -int xmlStrlen (const xmlChar * str); -int xmlStrncmp (const xmlChar * str1,
    const xmlChar * str2,
    int len); -xmlChar * xmlStrsub (const xmlChar * str,
    int start,
    int len); -xmlChar * xmlStrncat (xmlChar * cur,
    const xmlChar * add,
    int len); -int xmlGetUTF8Char (const unsigned char * utf,
    int * len); -int xmlStrcasecmp (const xmlChar * str1,
    const xmlChar * str2); -xmlChar * xmlStrndup (const xmlChar * cur,
    int len); -int xmlStrVPrintf (xmlChar * buf,
    int len,
    const xmlChar * msg,
    va_list ap); -int xmlUTF8Strsize (const xmlChar * utf,
    int len); -int xmlCheckUTF8 (const unsigned char * utf); -int xmlStrncasecmp (const xmlChar * str1,
    const xmlChar * str2,
    int len); -int xmlUTF8Strlen (const xmlChar * utf); -xmlChar * xmlUTF8Strsub (const xmlChar * utf,
    int start,
    int len); -int xmlStrEqual (const xmlChar * str1,
    const xmlChar * str2); -int xmlUTF8Charcmp (const xmlChar * utf1,
    const xmlChar * utf2); -xmlChar * xmlUTF8Strndup (const xmlChar * utf,
    int len); -int xmlUTF8Strloc (const xmlChar * utf,
    const xmlChar * utfchar); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro BAD_CAST

    #define BAD_CAST;
    -

    Macro to cast a string to an xmlChar * when one know its safe.

    -
    -
    -

    Typedef xmlChar

    unsigned char xmlChar;
    -

    This is a basic byte in an UTF-8 encoded string. It's unsigned allowing to pinpoint case where char * are assigned to xmlChar * (possibly making serialization back impossible).

    -
    -
    -

    xmlCharStrdup ()

    xmlChar *	xmlCharStrdup		(const char * cur)
    -

    a strdup for char's to xmlChar's

    -
    cur:the input char *
    Returns:a new xmlChar * or NULL
    -
    -

    xmlCharStrndup ()

    xmlChar *	xmlCharStrndup		(const char * cur, 
    int len)
    -

    a strndup for char's to xmlChar's

    -
    cur:the input char *
    len:the len of @cur
    Returns:a new xmlChar * or NULL
    -
    - -
    -
    -
    -

    xmlStrEqual ()

    int	xmlStrEqual			(const xmlChar * str1, 
    const xmlChar * str2)
    -

    Check if both strings are equal of have same content. Should be a bit more readable and faster than xmlStrcmp()

    -
    str1:the first xmlChar *
    str2:the second xmlChar *
    Returns:1 if they are equal, 0 if they are different
    -
    -

    xmlStrPrintf ()

    int	xmlStrPrintf			(xmlChar * buf, 
    int len,
    const xmlChar * msg,
    ... ...)
    -

    Formats @msg and places result into @buf.

    -
    buf:the result buffer.
    len:the result buffer length.
    msg:the message with printf formatting.
    ...:extra parameters for the message.
    Returns:the number of characters written to @buf or -1 if an error occurs.
    -
    -

    xmlStrQEqual ()

    int	xmlStrQEqual			(const xmlChar * pref, 
    const xmlChar * name,
    const xmlChar * str)
    -

    Check if a QName is Equal to a given string

    -
    pref:the prefix of the QName
    name:the localname of the QName
    str:the second xmlChar *
    Returns:1 if they are equal, 0 if they are different
    -
    -

    xmlStrVPrintf ()

    int	xmlStrVPrintf			(xmlChar * buf, 
    int len,
    const xmlChar * msg,
    va_list ap)
    -

    Formats @msg and places result into @buf.

    -
    buf:the result buffer.
    len:the result buffer length.
    msg:the message with printf formatting.
    ap:extra parameters for the message.
    Returns:the number of characters written to @buf or -1 if an error occurs.
    -
    -

    xmlStrcasecmp ()

    int	xmlStrcasecmp			(const xmlChar * str1, 
    const xmlChar * str2)
    -

    a strcasecmp for xmlChar's

    -
    str1:the first xmlChar *
    str2:the second xmlChar *
    Returns:the integer result of the comparison
    -
    -

    xmlStrcasestr ()

    const xmlChar *	xmlStrcasestr		(const xmlChar * str, 
    xmlChar * val)
    -

    a case-ignoring strstr for xmlChar's

    -
    str:the xmlChar * array (haystack)
    val:the xmlChar to search (needle)
    Returns:the xmlChar * for the first occurrence or NULL.
    -
    -

    xmlStrcat ()

    xmlChar *	xmlStrcat		(xmlChar * cur, 
    const xmlChar * add)
    -

    a strcat for array of xmlChar's. Since they are supposed to be encoded in UTF-8 or an encoding with 8bit based chars, we assume a termination mark of '0'.

    -
    cur:the original xmlChar * array
    add:the xmlChar * array added
    Returns:a new xmlChar * containing the concatenated string.
    -
    -

    xmlStrchr ()

    const xmlChar *	xmlStrchr		(const xmlChar * str, 
    xmlChar val)
    -

    a strchr for xmlChar's

    -
    str:the xmlChar * array
    val:the xmlChar to search
    Returns:the xmlChar * for the first occurrence or NULL.
    -
    -

    xmlStrcmp ()

    int	xmlStrcmp			(const xmlChar * str1, 
    const xmlChar * str2)
    -

    a strcmp for xmlChar's

    -
    str1:the first xmlChar *
    str2:the second xmlChar *
    Returns:the integer result of the comparison
    -
    -

    xmlStrdup ()

    xmlChar *	xmlStrdup		(const xmlChar * cur)
    -

    a strdup for array of xmlChar's. Since they are supposed to be encoded in UTF-8 or an encoding with 8bit based chars, we assume a termination mark of '0'.

    -
    cur:the input xmlChar *
    Returns:a new xmlChar * or NULL
    -
    -

    xmlStrlen ()

    int	xmlStrlen			(const xmlChar * str)
    -

    length of a xmlChar's string

    -
    str:the xmlChar * array
    Returns:the number of xmlChar contained in the ARRAY.
    -
    -

    xmlStrncasecmp ()

    int	xmlStrncasecmp			(const xmlChar * str1, 
    const xmlChar * str2,
    int len)
    -

    a strncasecmp for xmlChar's

    -
    str1:the first xmlChar *
    str2:the second xmlChar *
    len:the max comparison length
    Returns:the integer result of the comparison
    -
    -

    xmlStrncat ()

    xmlChar *	xmlStrncat		(xmlChar * cur, 
    const xmlChar * add,
    int len)
    -

    a strncat for array of xmlChar's, it will extend @cur with the len first bytes of @add. Note that if @len < 0 then this is an API error and NULL will be returned.

    -
    cur:the original xmlChar * array
    add:the xmlChar * array added
    len:the length of @add
    Returns:a new xmlChar *, the original @cur is reallocated if needed and should not be freed
    -
    -

    xmlStrncatNew ()

    xmlChar *	xmlStrncatNew		(const xmlChar * str1, 
    const xmlChar * str2,
    int len)
    -

    same as xmlStrncat, but creates a new string. The original two strings are not freed. If @len is < 0 then the length will be calculated automatically.

    -
    str1:first xmlChar string
    str2:second xmlChar string
    len:the len of @str2 or < 0
    Returns:a new xmlChar * or NULL
    -
    -

    xmlStrncmp ()

    int	xmlStrncmp			(const xmlChar * str1, 
    const xmlChar * str2,
    int len)
    -

    a strncmp for xmlChar's

    -
    str1:the first xmlChar *
    str2:the second xmlChar *
    len:the max comparison length
    Returns:the integer result of the comparison
    -
    -

    xmlStrndup ()

    xmlChar *	xmlStrndup		(const xmlChar * cur, 
    int len)
    -

    a strndup for array of xmlChar's

    -
    cur:the input xmlChar *
    len:the len of @cur
    Returns:a new xmlChar * or NULL
    -
    -

    xmlStrstr ()

    const xmlChar *	xmlStrstr		(const xmlChar * str, 
    const xmlChar * val)
    -

    a strstr for xmlChar's

    -
    str:the xmlChar * array (haystack)
    val:the xmlChar to search (needle)
    Returns:the xmlChar * for the first occurrence or NULL.
    -
    -

    xmlStrsub ()

    xmlChar *	xmlStrsub		(const xmlChar * str, 
    int start,
    int len)
    -

    Extract a substring of a given string

    -
    str:the xmlChar * array (haystack)
    start:the index of the first char (zero based)
    len:the length of the substring
    Returns:the xmlChar * for the first occurrence or NULL.
    -
    -

    xmlUTF8Charcmp ()

    int	xmlUTF8Charcmp			(const xmlChar * utf1, 
    const xmlChar * utf2)
    -

    compares the two UCS4 values

    -
    utf1:pointer to first UTF8 char
    utf2:pointer to second UTF8 char
    Returns:result of the compare as with xmlStrncmp
    -
    -

    xmlUTF8Size ()

    int	xmlUTF8Size			(const xmlChar * utf)
    -

    calculates the internal size of a UTF8 character

    -
    utf:pointer to the UTF8 character
    Returns:the numbers of bytes in the character, -1 on format error
    -
    -

    xmlUTF8Strlen ()

    int	xmlUTF8Strlen			(const xmlChar * utf)
    -

    compute the length of an UTF8 string, it doesn't do a full UTF8 checking of the content of the string.

    -
    utf:a sequence of UTF-8 encoded bytes
    Returns:the number of characters in the string or -1 in case of error
    -
    -

    xmlUTF8Strloc ()

    int	xmlUTF8Strloc			(const xmlChar * utf, 
    const xmlChar * utfchar)
    -

    a function to provide the relative location of a UTF8 char

    -
    utf:the input UTF8 *
    utfchar:the UTF8 character to be found
    Returns:the relative character position of the desired char or -1 if not found
    -
    -

    xmlUTF8Strndup ()

    xmlChar *	xmlUTF8Strndup		(const xmlChar * utf, 
    int len)
    -

    a strndup for array of UTF8's

    -
    utf:the input UTF8 *
    len:the len of @utf (in chars)
    Returns:a new UTF8 * or NULL
    -
    -

    xmlUTF8Strpos ()

    const xmlChar *	xmlUTF8Strpos		(const xmlChar * utf, 
    int pos)
    -

    a function to provide the equivalent of fetching a character from a string array

    -
    utf:the input UTF8 *
    pos:the position of the desired UTF8 char (in chars)
    Returns:a pointer to the UTF8 character or NULL
    -
    -

    xmlUTF8Strsize ()

    int	xmlUTF8Strsize			(const xmlChar * utf, 
    int len)
    -

    storage size of an UTF8 string the behaviour is not garanteed if the input string is not UTF-8

    -
    utf:a sequence of UTF-8 encoded bytes
    len:the number of characters in the array
    Returns:the storage size of the first 'len' characters of ARRAY
    -
    -

    xmlUTF8Strsub ()

    xmlChar *	xmlUTF8Strsub		(const xmlChar * utf, 
    int start,
    int len)
    -

    Create a substring from a given UTF-8 string Note: positions are given in units of UTF-8 chars

    -
    utf:a sequence of UTF-8 encoded bytes
    start:relative pos of first char
    len:total number to copy
    Returns:a pointer to a newly created string or NULL if any problem
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlunicode.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlunicode.html deleted file mode 100644 index 7d4f0d8909..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlunicode.html +++ /dev/null @@ -1,887 +0,0 @@ - - - - - xmlunicode: Unicode character APIs - - - - - - - - - - - - - - - - -

    - xmlunicode -

    -

    xmlunicode - Unicode character APIs

    -

    API for the Unicode character APIs This file is automatically generated from the UCS description files of the Unicode Character Database

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    int	xmlUCSIsBlockElements		(int code);
    -int	xmlUCSIsBopomofo		(int code);
    -int	xmlUCSIsDingbats		(int code);
    -int	xmlUCSIsSuperscriptsandSubscripts	(int code);
    -int	xmlUCSIsCombiningHalfMarks	(int code);
    -int	xmlUCSIsTibetan			(int code);
    -int	xmlUCSIsYiRadicals		(int code);
    -int	xmlUCSIsCombiningMarksforSymbols	(int code);
    -int	xmlUCSIsHangulSyllables		(int code);
    -int	xmlUCSIsBasicLatin		(int code);
    -int	xmlUCSIsCatSc			(int code);
    -int	xmlUCSIsCatSo			(int code);
    -int	xmlUCSIsLimbu			(int code);
    -int	xmlUCSIsCatSm			(int code);
    -int	xmlUCSIsCatSk			(int code);
    -int	xmlUCSIsKhmerSymbols		(int code);
    -int	xmlUCSIsMongolian		(int code);
    -int	xmlUCSIsMalayalam		(int code);
    -int	xmlUCSIsMathematicalAlphanumericSymbols	(int code);
    -int	xmlUCSIsThaana			(int code);
    -int	xmlUCSIsMyanmar			(int code);
    -int	xmlUCSIsTags			(int code);
    -int	xmlUCSIsCJKCompatibilityIdeographs	(int code);
    -int	xmlUCSIsTelugu			(int code);
    -int	xmlUCSIsLowSurrogates		(int code);
    -int	xmlUCSIsOsmanya			(int code);
    -int	xmlUCSIsSyriac			(int code);
    -int	xmlUCSIsEthiopic		(int code);
    -int	xmlUCSIsBoxDrawing		(int code);
    -int	xmlUCSIsGreekExtended		(int code);
    -int	xmlUCSIsGreekandCoptic		(int code);
    -int	xmlUCSIsKannada			(int code);
    -int	xmlUCSIsByzantineMusicalSymbols	(int code);
    -int	xmlUCSIsEnclosedCJKLettersandMonths	(int code);
    -int	xmlUCSIsCJKCompatibilityForms	(int code);
    -int	xmlUCSIsCatCs			(int code);
    -int	xmlUCSIsCJKRadicalsSupplement	(int code);
    -int	xmlUCSIsCatCf			(int code);
    -int	xmlUCSIsSmallFormVariants	(int code);
    -int	xmlUCSIsHangulCompatibilityJamo	(int code);
    -int	xmlUCSIsCatCc			(int code);
    -int	xmlUCSIsCatCo			(int code);
    -int	xmlUCSIsCherokee		(int code);
    -int	xmlUCSIsGothic			(int code);
    -int	xmlUCSIsKhmer			(int code);
    -int	xmlUCSIsCombiningDiacriticalMarksforSymbols	(int code);
    -int	xmlUCSIsOgham			(int code);
    -int	xmlUCSIsOriya			(int code);
    -int	xmlUCSIsLinearBIdeograms	(int code);
    -int	xmlUCSIsBlock			(int code, 
    const char * block); -int xmlUCSIsBopomofoExtended (int code); -int xmlUCSIsHangulJamo (int code); -int xmlUCSIsTagbanwa (int code); -int xmlUCSIsGeneralPunctuation (int code); -int xmlUCSIsCyrillic (int code); -int xmlUCSIsArrows (int code); -int xmlUCSIsControlPictures (int code); -int xmlUCSIsCJKUnifiedIdeographs (int code); -int xmlUCSIsCatNl (int code); -int xmlUCSIsCatNo (int code); -int xmlUCSIsYijingHexagramSymbols (int code); -int xmlUCSIsVariationSelectorsSupplement (int code); -int xmlUCSIsBengali (int code); -int xmlUCSIsPrivateUse (int code); -int xmlUCSIsMusicalSymbols (int code); -int xmlUCSIsMiscellaneousSymbols (int code); -int xmlUCSIsCJKCompatibility (int code); -int xmlUCSIsAegeanNumbers (int code); -int xmlUCSIsDevanagari (int code); -int xmlUCSIsSupplementalArrowsA (int code); -int xmlUCSIsSupplementalArrowsB (int code); -int xmlUCSIsNumberForms (int code); -int xmlUCSIsSpacingModifierLetters (int code); -int xmlUCSIsOpticalCharacterRecognition (int code); -int xmlUCSIsCatPc (int code); -int xmlUCSIsCatPf (int code); -int xmlUCSIsCyrillicSupplement (int code); -int xmlUCSIsCatPd (int code); -int xmlUCSIsCatPi (int code); -int xmlUCSIsCatPo (int code); -int xmlUCSIsHighPrivateUseSurrogates (int code); -int xmlUCSIsLatinExtendedAdditional (int code); -int xmlUCSIsCatPs (int code); -int xmlUCSIsHighSurrogates (int code); -int xmlUCSIsLao (int code); -int xmlUCSIsBraillePatterns (int code); -int xmlUCSIsDeseret (int code); -int xmlUCSIsEnclosedAlphanumerics (int code); -int xmlUCSIsCombiningDiacriticalMarks (int code); -int xmlUCSIsIdeographicDescriptionCharacters (int code); -int xmlUCSIsPrivateUseArea (int code); -int xmlUCSIsCat (int code,
    const char * cat); -int xmlUCSIsCatLu (int code); -int xmlUCSIsCatLt (int code); -int xmlUCSIsYiSyllables (int code); -int xmlUCSIsShavian (int code); -int xmlUCSIsCatLo (int code); -int xmlUCSIsCatLm (int code); -int xmlUCSIsCatLl (int code); -int xmlUCSIsMiscellaneousTechnical (int code); -int xmlUCSIsUgaritic (int code); -int xmlUCSIsCJKCompatibilityIdeographsSupplement (int code); -int xmlUCSIsCypriotSyllabary (int code); -int xmlUCSIsTamil (int code); -int xmlUCSIsCatC (int code); -int xmlUCSIsCatN (int code); -int xmlUCSIsCatL (int code); -int xmlUCSIsCatM (int code); -int xmlUCSIsUnifiedCanadianAboriginalSyllabics (int code); -int xmlUCSIsCatS (int code); -int xmlUCSIsCatP (int code); -int xmlUCSIsSinhala (int code); -int xmlUCSIsGeorgian (int code); -int xmlUCSIsCatZ (int code); -int xmlUCSIsIPAExtensions (int code); -int xmlUCSIsKangxiRadicals (int code); -int xmlUCSIsGreek (int code); -int xmlUCSIsCatPe (int code); -int xmlUCSIsHanunoo (int code); -int xmlUCSIsArmenian (int code); -int xmlUCSIsSupplementaryPrivateUseAreaB (int code); -int xmlUCSIsSupplementaryPrivateUseAreaA (int code); -int xmlUCSIsKatakanaPhoneticExtensions (int code); -int xmlUCSIsLetterlikeSymbols (int code); -int xmlUCSIsPhoneticExtensions (int code); -int xmlUCSIsArabic (int code); -int xmlUCSIsHebrew (int code); -int xmlUCSIsOldItalic (int code); -int xmlUCSIsArabicPresentationFormsA (int code); -int xmlUCSIsCatZp (int code); -int xmlUCSIsCatZs (int code); -int xmlUCSIsArabicPresentationFormsB (int code); -int xmlUCSIsGeometricShapes (int code); -int xmlUCSIsCatZl (int code); -int xmlUCSIsTagalog (int code); -int xmlUCSIsSpecials (int code); -int xmlUCSIsGujarati (int code); -int xmlUCSIsKatakana (int code); -int xmlUCSIsHalfwidthandFullwidthForms (int code); -int xmlUCSIsLatinExtendedB (int code); -int xmlUCSIsLatinExtendedA (int code); -int xmlUCSIsBuhid (int code); -int xmlUCSIsMiscellaneousSymbolsandArrows (int code); -int xmlUCSIsTaiLe (int code); -int xmlUCSIsCJKSymbolsandPunctuation (int code); -int xmlUCSIsTaiXuanJingSymbols (int code); -int xmlUCSIsGurmukhi (int code); -int xmlUCSIsMathematicalOperators (int code); -int xmlUCSIsAlphabeticPresentationForms (int code); -int xmlUCSIsCurrencySymbols (int code); -int xmlUCSIsSupplementalMathematicalOperators (int code); -int xmlUCSIsCJKUnifiedIdeographsExtensionA (int code); -int xmlUCSIsKanbun (int code); -int xmlUCSIsCJKUnifiedIdeographsExtensionB (int code); -int xmlUCSIsThai (int code); -int xmlUCSIsRunic (int code); -int xmlUCSIsCatNd (int code); -int xmlUCSIsLatin1Supplement (int code); -int xmlUCSIsLinearBSyllabary (int code); -int xmlUCSIsHiragana (int code); -int xmlUCSIsMiscellaneousMathematicalSymbolsB (int code); -int xmlUCSIsMiscellaneousMathematicalSymbolsA (int code); -int xmlUCSIsCatMn (int code); -int xmlUCSIsVariationSelectors (int code); -int xmlUCSIsCatMc (int code); -int xmlUCSIsCatMe (int code); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlversion.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlversion.html deleted file mode 100644 index dcf26f8a64..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlversion.html +++ /dev/null @@ -1,262 +0,0 @@ - - - - - xmlversion: compile-time version informations - - - - - - - - - - - - - - - - -

    - xmlversion -

    -

    xmlversion - compile-time version informations

    -

    compile-time version informations for the XML library

    -

    Author(s): Daniel Veillard

    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro ATTRIBUTE_UNUSED

    #define ATTRIBUTE_UNUSED;
    -

    Macro used to signal to GCC unused function parameters

    -
    -
    -

    Macro DEBUG_MEMORY_LOCATION

    #define DEBUG_MEMORY_LOCATION;
    -

    Whether the memory debugging is configured in

    -
    -
    -

    Macro LIBXML_AUTOMATA_ENABLED

    #define LIBXML_AUTOMATA_ENABLED;
    -

    Whether the automata interfaces are compiled in

    -
    -
    -

    Macro LIBXML_C14N_ENABLED

    #define LIBXML_C14N_ENABLED;
    -

    Whether the Canonicalization support is configured in

    -
    -
    -

    Macro LIBXML_CATALOG_ENABLED

    #define LIBXML_CATALOG_ENABLED;
    -

    Whether the Catalog support is configured in

    -
    -
    -

    Macro LIBXML_DEBUG_ENABLED

    #define LIBXML_DEBUG_ENABLED;
    -

    Whether Debugging module is configured in

    -
    -
    -

    Macro LIBXML_DEBUG_RUNTIME

    #define LIBXML_DEBUG_RUNTIME;
    -

    Whether the runtime debugging is configured in

    -
    -
    -

    Macro LIBXML_DOCB_ENABLED

    #define LIBXML_DOCB_ENABLED;
    -

    Whether the SGML Docbook support is configured in

    -
    -
    -

    Macro LIBXML_DOTTED_VERSION

    #define LIBXML_DOTTED_VERSION;
    -

    the version string like "1.2.3"

    -
    -
    -

    Macro LIBXML_EXPR_ENABLED

    #define LIBXML_EXPR_ENABLED;
    -

    Whether the formal expressions interfaces are compiled in

    -
    -
    -

    Macro LIBXML_FTP_ENABLED

    #define LIBXML_FTP_ENABLED;
    -

    Whether the FTP support is configured in

    -
    -
    -

    Macro LIBXML_HTML_ENABLED

    #define LIBXML_HTML_ENABLED;
    -

    Whether the HTML support is configured in

    -
    -
    -

    Macro LIBXML_HTTP_ENABLED

    #define LIBXML_HTTP_ENABLED;
    -

    Whether the HTTP support is configured in

    -
    -
    -

    Macro LIBXML_ICONV_ENABLED

    #define LIBXML_ICONV_ENABLED;
    -

    Whether iconv support is available

    -
    -
    -

    Macro LIBXML_ISO8859X_ENABLED

    #define LIBXML_ISO8859X_ENABLED;
    -

    Whether ISO-8859-* support is made available in case iconv is not

    -
    -
    -

    Macro LIBXML_LEGACY_ENABLED

    #define LIBXML_LEGACY_ENABLED;
    -

    Whether the deprecated APIs are compiled in for compatibility

    -
    -
    -

    Macro LIBXML_MODULES_ENABLED

    #define LIBXML_MODULES_ENABLED;
    -

    Whether the module interfaces are compiled in

    -
    -
    -

    Macro LIBXML_MODULE_EXTENSION

    #define LIBXML_MODULE_EXTENSION;
    -

    the string suffix used by dynamic modules (usually shared libraries)

    -
    -
    -

    Macro LIBXML_OUTPUT_ENABLED

    #define LIBXML_OUTPUT_ENABLED;
    -

    Whether the serialization/saving support is configured in

    -
    -
    -

    Macro LIBXML_PATTERN_ENABLED

    #define LIBXML_PATTERN_ENABLED;
    -

    Whether the xmlPattern node selection interface is configured in

    -
    -
    -

    Macro LIBXML_PUSH_ENABLED

    #define LIBXML_PUSH_ENABLED;
    -

    Whether the push parsing interfaces are configured in

    -
    -
    -

    Macro LIBXML_READER_ENABLED

    #define LIBXML_READER_ENABLED;
    -

    Whether the xmlReader parsing interface is configured in

    -
    -
    -

    Macro LIBXML_REGEXP_ENABLED

    #define LIBXML_REGEXP_ENABLED;
    -

    Whether the regular expressions interfaces are compiled in

    -
    -
    -

    Macro LIBXML_SAX1_ENABLED

    #define LIBXML_SAX1_ENABLED;
    -

    Whether the older SAX1 interface is configured in

    -
    -
    -

    Macro LIBXML_SCHEMAS_ENABLED

    #define LIBXML_SCHEMAS_ENABLED;
    -

    Whether the Schemas validation interfaces are compiled in

    -
    -
    -

    Macro LIBXML_SCHEMATRON_ENABLED

    #define LIBXML_SCHEMATRON_ENABLED;
    -

    Whether the Schematron validation interfaces are compiled in

    -
    -
    -

    Macro LIBXML_TEST_VERSION

    #define LIBXML_TEST_VERSION;
    -

    Macro to check that the libxml version in use is compatible with the version the software has been compiled against

    -
    -
    -

    Macro LIBXML_THREAD_ENABLED

    #define LIBXML_THREAD_ENABLED;
    -

    Whether the thread support is configured in

    -
    -
    -

    Macro LIBXML_TREE_ENABLED

    #define LIBXML_TREE_ENABLED;
    -

    Whether the DOM like tree manipulation API support is configured in

    -
    -
    -

    Macro LIBXML_UNICODE_ENABLED

    #define LIBXML_UNICODE_ENABLED;
    -

    Whether the Unicode related interfaces are compiled in

    -
    -
    -

    Macro LIBXML_VALID_ENABLED

    #define LIBXML_VALID_ENABLED;
    -

    Whether the DTD validation support is configured in

    -
    -
    -

    Macro LIBXML_VERSION

    #define LIBXML_VERSION;
    -

    the version number: 1.2.3 value is 1002003

    -
    -
    -

    Macro LIBXML_VERSION_EXTRA

    #define LIBXML_VERSION_EXTRA;
    -

    extra version information, used to show a CVS compilation

    -
    -
    -

    Macro LIBXML_VERSION_STRING

    #define LIBXML_VERSION_STRING;
    -

    the version number string, 1.2.3 value is "1002003"

    -
    -
    -

    Macro LIBXML_WRITER_ENABLED

    #define LIBXML_WRITER_ENABLED;
    -

    Whether the xmlWriter saving interface is configured in

    -
    -
    -

    Macro LIBXML_XINCLUDE_ENABLED

    #define LIBXML_XINCLUDE_ENABLED;
    -

    Whether XInclude is configured in

    -
    -
    -

    Macro LIBXML_XPATH_ENABLED

    #define LIBXML_XPATH_ENABLED;
    -

    Whether XPath is configured in

    -
    -
    -

    Macro LIBXML_XPTR_ENABLED

    #define LIBXML_XPTR_ENABLED;
    -

    Whether XPointer is configured in

    -
    -
    -

    Macro WITHOUT_TRIO

    #define WITHOUT_TRIO;
    -

    defined if the trio support should not be configured in

    -
    -
    -

    Macro WITH_TRIO

    #define WITH_TRIO;
    -

    defined if the trio support need to be configured in

    -
    -
    - -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlwriter.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlwriter.html deleted file mode 100644 index e453daf7cc..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xmlwriter.html +++ /dev/null @@ -1,474 +0,0 @@ - - - - - xmlwriter: text writing API for XML - - - - - - - - - - - - - - - - -

    - xmlwriter -

    -

    xmlwriter - text writing API for XML

    -

    text writing API for XML

    -

    Author(s): Alfred Mickautsch <alfred@mickautsch.de>

    -
    -

    Synopsis

    -
    #define xmlTextWriterWriteProcessingInstruction;
    -#define xmlTextWriterWriteDocType;
    -typedef struct _xmlTextWriter xmlTextWriter;
    -typedef xmlTextWriter * xmlTextWriterPtr;
    -int	xmlTextWriterStartDocument	(xmlTextWriterPtr writer, 
    const char * version,
    const char * encoding,
    const char * standalone); -int xmlTextWriterEndPI (xmlTextWriterPtr writer); -int xmlTextWriterWriteBase64 (xmlTextWriterPtr writer,
    const char * data,
    int start,
    int len); -int xmlTextWriterSetIndentString (xmlTextWriterPtr writer,
    const xmlChar * str); -void xmlFreeTextWriter (xmlTextWriterPtr writer); -int xmlTextWriterEndComment (xmlTextWriterPtr writer); -int xmlTextWriterWriteRawLen (xmlTextWriterPtr writer,
    const xmlChar * content,
    int len); -int xmlTextWriterWriteDTDExternalEntityContents (xmlTextWriterPtr writer,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const xmlChar * ndataid); -int xmlTextWriterWriteVFormatCDATA (xmlTextWriterPtr writer,
    const char * format,
    va_list argptr); -int xmlTextWriterStartAttributeNS (xmlTextWriterPtr writer,
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI); -xmlTextWriterPtr xmlNewTextWriterPushParser (xmlParserCtxtPtr ctxt,
    int compression); -int xmlTextWriterWriteFormatAttributeNS (xmlTextWriterPtr writer,
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const char * format,
    ... ...); -int xmlTextWriterWriteDTDEntity (xmlTextWriterPtr writer,
    int pe,
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const xmlChar * ndataid,
    const xmlChar * content); -int xmlTextWriterWriteVFormatPI (xmlTextWriterPtr writer,
    const xmlChar * target,
    const char * format,
    va_list argptr); -int xmlTextWriterWriteBinHex (xmlTextWriterPtr writer,
    const char * data,
    int start,
    int len); -int xmlTextWriterEndAttribute (xmlTextWriterPtr writer); -int xmlTextWriterSetIndent (xmlTextWriterPtr writer,
    int indent); -int xmlTextWriterWriteFormatPI (xmlTextWriterPtr writer,
    const xmlChar * target,
    const char * format,
    ... ...); -int xmlTextWriterEndDocument (xmlTextWriterPtr writer); -int xmlTextWriterWriteDTDAttlist (xmlTextWriterPtr writer,
    const xmlChar * name,
    const xmlChar * content); -int xmlTextWriterStartComment (xmlTextWriterPtr writer); -int xmlTextWriterWriteVFormatDTD (xmlTextWriterPtr writer,
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const char * format,
    va_list argptr); -int xmlTextWriterEndCDATA (xmlTextWriterPtr writer); -int xmlTextWriterStartElementNS (xmlTextWriterPtr writer,
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI); -int xmlTextWriterEndDTDEntity (xmlTextWriterPtr writer); -xmlTextWriterPtr xmlNewTextWriter (xmlOutputBufferPtr out); -int xmlTextWriterStartAttribute (xmlTextWriterPtr writer,
    const xmlChar * name); -int xmlTextWriterWriteVFormatDTDAttlist (xmlTextWriterPtr writer,
    const xmlChar * name,
    const char * format,
    va_list argptr); -int xmlTextWriterStartPI (xmlTextWriterPtr writer,
    const xmlChar * target); -int xmlTextWriterStartElement (xmlTextWriterPtr writer,
    const xmlChar * name); -int xmlTextWriterWriteDTDExternalEntity (xmlTextWriterPtr writer,
    int pe,
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const xmlChar * ndataid); -int xmlTextWriterWriteFormatRaw (xmlTextWriterPtr writer,
    const char * format,
    ... ...); -int xmlTextWriterWriteCDATA (xmlTextWriterPtr writer,
    const xmlChar * content); -int xmlTextWriterWriteVFormatDTDInternalEntity (xmlTextWriterPtr writer,
    int pe,
    const xmlChar * name,
    const char * format,
    va_list argptr); -int xmlTextWriterWriteVFormatAttribute (xmlTextWriterPtr writer,
    const xmlChar * name,
    const char * format,
    va_list argptr); -int xmlTextWriterEndDTDElement (xmlTextWriterPtr writer); -int xmlTextWriterEndDTD (xmlTextWriterPtr writer); -int xmlTextWriterWriteElement (xmlTextWriterPtr writer,
    const xmlChar * name,
    const xmlChar * content); -int xmlTextWriterEndElement (xmlTextWriterPtr writer); -int xmlTextWriterWriteVFormatComment (xmlTextWriterPtr writer,
    const char * format,
    va_list argptr); -int xmlTextWriterStartCDATA (xmlTextWriterPtr writer); -xmlTextWriterPtr xmlNewTextWriterFilename (const char * uri,
    int compression); -int xmlTextWriterWriteVFormatElement (xmlTextWriterPtr writer,
    const xmlChar * name,
    const char * format,
    va_list argptr); -int xmlTextWriterWriteFormatComment (xmlTextWriterPtr writer,
    const char * format,
    ... ...); -int xmlTextWriterWriteAttributeNS (xmlTextWriterPtr writer,
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const xmlChar * content); -int xmlTextWriterWritePI (xmlTextWriterPtr writer,
    const xmlChar * target,
    const xmlChar * content); -int xmlTextWriterWriteFormatDTDInternalEntity (xmlTextWriterPtr writer,
    int pe,
    const xmlChar * name,
    const char * format,
    ... ...); -int xmlTextWriterWriteVFormatString (xmlTextWriterPtr writer,
    const char * format,
    va_list argptr); -int xmlTextWriterWriteDTDInternalEntity (xmlTextWriterPtr writer,
    int pe,
    const xmlChar * name,
    const xmlChar * content); -int xmlTextWriterWriteVFormatElementNS (xmlTextWriterPtr writer,
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const char * format,
    va_list argptr); -int xmlTextWriterWriteDTDNotation (xmlTextWriterPtr writer,
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid); -int xmlTextWriterWriteFormatElement (xmlTextWriterPtr writer,
    const xmlChar * name,
    const char * format,
    ... ...); -int xmlTextWriterWriteElementNS (xmlTextWriterPtr writer,
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const xmlChar * content); -int xmlTextWriterWriteString (xmlTextWriterPtr writer,
    const xmlChar * content); -int xmlTextWriterFullEndElement (xmlTextWriterPtr writer); -int xmlTextWriterWriteVFormatAttributeNS (xmlTextWriterPtr writer,
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const char * format,
    va_list argptr); -int xmlTextWriterFlush (xmlTextWriterPtr writer); -int xmlTextWriterStartDTD (xmlTextWriterPtr writer,
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid); -int xmlTextWriterWriteAttribute (xmlTextWriterPtr writer,
    const xmlChar * name,
    const xmlChar * content); -xmlTextWriterPtr xmlNewTextWriterDoc (xmlDocPtr * doc,
    int compression); -int xmlTextWriterWriteFormatDTDElement (xmlTextWriterPtr writer,
    const xmlChar * name,
    const char * format,
    ... ...); -int xmlTextWriterEndDTDAttlist (xmlTextWriterPtr writer); -xmlTextWriterPtr xmlNewTextWriterTree (xmlDocPtr doc,
    xmlNodePtr node,
    int compression); -xmlTextWriterPtr xmlNewTextWriterMemory (xmlBufferPtr buf,
    int compression); -int xmlTextWriterWriteFormatCDATA (xmlTextWriterPtr writer,
    const char * format,
    ... ...); -int xmlTextWriterStartDTDAttlist (xmlTextWriterPtr writer,
    const xmlChar * name); -int xmlTextWriterWriteFormatString (xmlTextWriterPtr writer,
    const char * format,
    ... ...); -int xmlTextWriterWriteComment (xmlTextWriterPtr writer,
    const xmlChar * content); -int xmlTextWriterWriteVFormatRaw (xmlTextWriterPtr writer,
    const char * format,
    va_list argptr); -int xmlTextWriterWriteFormatDTD (xmlTextWriterPtr writer,
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const char * format,
    ... ...); -int xmlTextWriterWriteFormatDTDAttlist (xmlTextWriterPtr writer,
    const xmlChar * name,
    const char * format,
    ... ...); -int xmlTextWriterWriteRaw (xmlTextWriterPtr writer,
    const xmlChar * content); -int xmlTextWriterWriteDTDElement (xmlTextWriterPtr writer,
    const xmlChar * name,
    const xmlChar * content); -int xmlTextWriterWriteDTD (xmlTextWriterPtr writer,
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const xmlChar * subset); -int xmlTextWriterWriteFormatAttribute (xmlTextWriterPtr writer,
    const xmlChar * name,
    const char * format,
    ... ...); -int xmlTextWriterStartDTDEntity (xmlTextWriterPtr writer,
    int pe,
    const xmlChar * name); -int xmlTextWriterWriteVFormatDTDElement (xmlTextWriterPtr writer,
    const xmlChar * name,
    const char * format,
    va_list argptr); -int xmlTextWriterStartDTDElement (xmlTextWriterPtr writer,
    const xmlChar * name); -int xmlTextWriterWriteFormatElementNS (xmlTextWriterPtr writer,
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const char * format,
    ... ...); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro xmlTextWriterWriteDocType

    #define xmlTextWriterWriteDocType;
    -

    this macro maps to xmlTextWriterWriteDTD

    -
    -
    -

    Macro xmlTextWriterWriteProcessingInstruction

    #define xmlTextWriterWriteProcessingInstruction;
    -

    This macro maps to xmlTextWriterWritePI

    -
    -
    -

    Structure xmlTextWriter

    struct _xmlTextWriter {
    -The content of this structure is not made public by the API.
    -} xmlTextWriter;
    -

    -

    -
    -

    Typedef xmlTextWriterPtr

    xmlTextWriter * xmlTextWriterPtr;
    -

    -

    -
    -

    xmlFreeTextWriter ()

    void	xmlFreeTextWriter		(xmlTextWriterPtr writer)
    -

    Deallocate all the resources associated to the writer

    -
    writer:the xmlTextWriterPtr
    -
    -

    xmlNewTextWriter ()

    xmlTextWriterPtr	xmlNewTextWriter	(xmlOutputBufferPtr out)
    -

    Create a new xmlNewTextWriter structure using an xmlOutputBufferPtr NOTE: the @out parameter will be deallocated when the writer is closed (if the call succeed.)

    -
    out:an xmlOutputBufferPtr
    Returns:the new xmlTextWriterPtr or NULL in case of error
    -
    -

    xmlNewTextWriterDoc ()

    xmlTextWriterPtr	xmlNewTextWriterDoc	(xmlDocPtr * doc, 
    int compression)
    -

    Create a new xmlNewTextWriter structure with @*doc as output

    -
    doc:address of a xmlDocPtr to hold the new XML document tree
    compression:compress the output?
    Returns:the new xmlTextWriterPtr or NULL in case of error
    -
    -

    xmlNewTextWriterFilename ()

    xmlTextWriterPtr	xmlNewTextWriterFilename	(const char * uri, 
    int compression)
    -

    Create a new xmlNewTextWriter structure with @uri as output

    -
    uri:the URI of the resource for the output
    compression:compress the output?
    Returns:the new xmlTextWriterPtr or NULL in case of error
    -
    -

    xmlNewTextWriterMemory ()

    xmlTextWriterPtr	xmlNewTextWriterMemory	(xmlBufferPtr buf, 
    int compression)
    -

    Create a new xmlNewTextWriter structure with @buf as output TODO: handle compression

    -
    buf:xmlBufferPtr
    compression:compress the output?
    Returns:the new xmlTextWriterPtr or NULL in case of error
    -
    -

    xmlNewTextWriterPushParser ()

    xmlTextWriterPtr	xmlNewTextWriterPushParser	(xmlParserCtxtPtr ctxt, 
    int compression)
    -

    Create a new xmlNewTextWriter structure with @ctxt as output NOTE: the @ctxt context will be freed with the resulting writer (if the call succeeds). TODO: handle compression

    -
    ctxt:xmlParserCtxtPtr to hold the new XML document tree
    compression:compress the output?
    Returns:the new xmlTextWriterPtr or NULL in case of error
    -
    -

    xmlNewTextWriterTree ()

    xmlTextWriterPtr	xmlNewTextWriterTree	(xmlDocPtr doc, 
    xmlNodePtr node,
    int compression)
    -

    Create a new xmlNewTextWriter structure with @doc as output starting at @node

    -
    doc:xmlDocPtr
    node:xmlNodePtr or NULL for doc->children
    compression:compress the output?
    Returns:the new xmlTextWriterPtr or NULL in case of error
    -
    -

    xmlTextWriterEndAttribute ()

    int	xmlTextWriterEndAttribute	(xmlTextWriterPtr writer)
    -

    End the current xml element.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterEndCDATA ()

    int	xmlTextWriterEndCDATA		(xmlTextWriterPtr writer)
    -

    End an xml CDATA section.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterEndComment ()

    int	xmlTextWriterEndComment		(xmlTextWriterPtr writer)
    -

    End the current xml coment.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterEndDTD ()

    int	xmlTextWriterEndDTD		(xmlTextWriterPtr writer)
    -

    End an xml DTD.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterEndDTDAttlist ()

    int	xmlTextWriterEndDTDAttlist	(xmlTextWriterPtr writer)
    -

    End an xml DTD attribute list.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterEndDTDElement ()

    int	xmlTextWriterEndDTDElement	(xmlTextWriterPtr writer)
    -

    End an xml DTD element.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterEndDTDEntity ()

    int	xmlTextWriterEndDTDEntity	(xmlTextWriterPtr writer)
    -

    End an xml DTD entity.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterEndDocument ()

    int	xmlTextWriterEndDocument	(xmlTextWriterPtr writer)
    -

    End an xml document. All open elements are closed

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterEndElement ()

    int	xmlTextWriterEndElement		(xmlTextWriterPtr writer)
    -

    End the current xml element.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterEndPI ()

    int	xmlTextWriterEndPI		(xmlTextWriterPtr writer)
    -

    End the current xml PI.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterFlush ()

    int	xmlTextWriterFlush		(xmlTextWriterPtr writer)
    -

    Flush the output buffer.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterFullEndElement ()

    int	xmlTextWriterFullEndElement	(xmlTextWriterPtr writer)
    -

    End the current xml element. Writes an end tag even if the element is empty

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterSetIndent ()

    int	xmlTextWriterSetIndent		(xmlTextWriterPtr writer, 
    int indent)
    -

    Set indentation output. indent = 0 do not indentation. indent > 0 do indentation.

    -
    writer:the xmlTextWriterPtr
    indent:do indentation?
    Returns:-1 on error or 0 otherwise.
    -
    -

    xmlTextWriterSetIndentString ()

    int	xmlTextWriterSetIndentString	(xmlTextWriterPtr writer, 
    const xmlChar * str)
    -

    Set string indentation.

    -
    writer:the xmlTextWriterPtr
    str:the xmlChar string
    Returns:-1 on error or 0 otherwise.
    -
    -

    xmlTextWriterStartAttribute ()

    int	xmlTextWriterStartAttribute	(xmlTextWriterPtr writer, 
    const xmlChar * name)
    -

    Start an xml attribute.

    -
    writer:the xmlTextWriterPtr
    name:element name
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterStartAttributeNS ()

    int	xmlTextWriterStartAttributeNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI)
    -

    Start an xml attribute with namespace support.

    -
    writer:the xmlTextWriterPtr
    prefix:namespace prefix or NULL
    name:element local name
    namespaceURI:namespace URI or NULL
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterStartCDATA ()

    int	xmlTextWriterStartCDATA		(xmlTextWriterPtr writer)
    -

    Start an xml CDATA section.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterStartComment ()

    int	xmlTextWriterStartComment	(xmlTextWriterPtr writer)
    -

    Start an xml comment.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterStartDTD ()

    int	xmlTextWriterStartDTD		(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid)
    -

    Start an xml DTD.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD
    pubid:the public identifier, which is an alternative to the system identifier
    sysid:the system identifier, which is the URI of the DTD
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterStartDTDAttlist ()

    int	xmlTextWriterStartDTDAttlist	(xmlTextWriterPtr writer, 
    const xmlChar * name)
    -

    Start an xml DTD ATTLIST.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD ATTLIST
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterStartDTDElement ()

    int	xmlTextWriterStartDTDElement	(xmlTextWriterPtr writer, 
    const xmlChar * name)
    -

    Start an xml DTD element.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD element
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterStartDTDEntity ()

    int	xmlTextWriterStartDTDEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name)
    -

    Start an xml DTD ATTLIST.

    -
    writer:the xmlTextWriterPtr
    pe:TRUE if this is a parameter entity, FALSE if not
    name:the name of the DTD ATTLIST
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterStartDocument ()

    int	xmlTextWriterStartDocument	(xmlTextWriterPtr writer, 
    const char * version,
    const char * encoding,
    const char * standalone)
    -

    Start a new xml document

    -
    writer:the xmlTextWriterPtr
    version:the xml version ("1.0") or NULL for default ("1.0")
    encoding:the encoding or NULL for default
    standalone:"yes" or "no" or NULL for default
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterStartElement ()

    int	xmlTextWriterStartElement	(xmlTextWriterPtr writer, 
    const xmlChar * name)
    -

    Start an xml element.

    -
    writer:the xmlTextWriterPtr
    name:element name
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterStartElementNS ()

    int	xmlTextWriterStartElementNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI)
    -

    Start an xml element with namespace support.

    -
    writer:the xmlTextWriterPtr
    prefix:namespace prefix or NULL
    name:element local name
    namespaceURI:namespace URI or NULL
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterStartPI ()

    int	xmlTextWriterStartPI		(xmlTextWriterPtr writer, 
    const xmlChar * target)
    -

    Start an xml PI.

    -
    writer:the xmlTextWriterPtr
    target:PI target
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteAttribute ()

    int	xmlTextWriterWriteAttribute	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * content)
    -

    Write an xml attribute.

    -
    writer:the xmlTextWriterPtr
    name:attribute name
    content:attribute content
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteAttributeNS ()

    int	xmlTextWriterWriteAttributeNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const xmlChar * content)
    -

    Write an xml attribute.

    -
    writer:the xmlTextWriterPtr
    prefix:namespace prefix
    name:attribute local name
    namespaceURI:namespace URI
    content:attribute content
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteBase64 ()

    int	xmlTextWriterWriteBase64	(xmlTextWriterPtr writer, 
    const char * data,
    int start,
    int len)
    -

    Write an base64 encoded xml text.

    -
    writer:the xmlTextWriterPtr
    data:binary data
    start:the position within the data of the first byte to encode
    len:the number of bytes to encode
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteBinHex ()

    int	xmlTextWriterWriteBinHex	(xmlTextWriterPtr writer, 
    const char * data,
    int start,
    int len)
    -

    Write a BinHex encoded xml text.

    -
    writer:the xmlTextWriterPtr
    data:binary data
    start:the position within the data of the first byte to encode
    len:the number of bytes to encode
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteCDATA ()

    int	xmlTextWriterWriteCDATA		(xmlTextWriterPtr writer, 
    const xmlChar * content)
    -

    Write an xml CDATA.

    -
    writer:the xmlTextWriterPtr
    content:CDATA content
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteComment ()

    int	xmlTextWriterWriteComment	(xmlTextWriterPtr writer, 
    const xmlChar * content)
    -

    Write an xml comment.

    -
    writer:the xmlTextWriterPtr
    content:comment string
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteDTD ()

    int	xmlTextWriterWriteDTD		(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const xmlChar * subset)
    -

    Write a DTD.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD
    pubid:the public identifier, which is an alternative to the system identifier
    sysid:the system identifier, which is the URI of the DTD
    subset:string content of the DTD
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteDTDAttlist ()

    int	xmlTextWriterWriteDTDAttlist	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * content)
    -

    Write a DTD ATTLIST.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD ATTLIST
    content:content of the ATTLIST
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteDTDElement ()

    int	xmlTextWriterWriteDTDElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * content)
    -

    Write a DTD element.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD element
    content:content of the element
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteDTDEntity ()

    int	xmlTextWriterWriteDTDEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const xmlChar * ndataid,
    const xmlChar * content)
    -

    Write a DTD entity.

    -
    writer:the xmlTextWriterPtr
    pe:TRUE if this is a parameter entity, FALSE if not
    name:the name of the DTD entity
    pubid:the public identifier, which is an alternative to the system identifier
    sysid:the system identifier, which is the URI of the DTD
    ndataid:the xml notation name.
    content:content of the entity
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteDTDExternalEntity ()

    int	xmlTextWriterWriteDTDExternalEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const xmlChar * ndataid)
    -

    Write a DTD external entity. The entity must have been started with xmlTextWriterStartDTDEntity

    -
    writer:the xmlTextWriterPtr
    pe:TRUE if this is a parameter entity, FALSE if not
    name:the name of the DTD entity
    pubid:the public identifier, which is an alternative to the system identifier
    sysid:the system identifier, which is the URI of the DTD
    ndataid:the xml notation name.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteDTDExternalEntityContents ()

    int	xmlTextWriterWriteDTDExternalEntityContents	(xmlTextWriterPtr writer, 
    const xmlChar * pubid,
    const xmlChar * sysid,
    const xmlChar * ndataid)
    -

    Write the contents of a DTD external entity.

    -
    writer:the xmlTextWriterPtr
    pubid:the public identifier, which is an alternative to the system identifier
    sysid:the system identifier, which is the URI of the DTD
    ndataid:the xml notation name.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteDTDInternalEntity ()

    int	xmlTextWriterWriteDTDInternalEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name,
    const xmlChar * content)
    -

    Write a DTD internal entity.

    -
    writer:the xmlTextWriterPtr
    pe:TRUE if this is a parameter entity, FALSE if not
    name:the name of the DTD entity
    content:content of the entity
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteDTDNotation ()

    int	xmlTextWriterWriteDTDNotation	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid)
    -

    Write a DTD entity.

    -
    writer:the xmlTextWriterPtr
    name:the name of the xml notation
    pubid:the public identifier, which is an alternative to the system identifier
    sysid:the system identifier, which is the URI of the DTD
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteElement ()

    int	xmlTextWriterWriteElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * content)
    -

    Write an xml element.

    -
    writer:the xmlTextWriterPtr
    name:element name
    content:element content
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteElementNS ()

    int	xmlTextWriterWriteElementNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const xmlChar * content)
    -

    Write an xml element with namespace support.

    -
    writer:the xmlTextWriterPtr
    prefix:namespace prefix
    name:element local name
    namespaceURI:namespace URI
    content:element content
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteFormatAttribute ()

    int	xmlTextWriterWriteFormatAttribute	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    ... ...)
    -

    Write a formatted xml attribute.

    -
    writer:the xmlTextWriterPtr
    name:attribute name
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteFormatAttributeNS ()

    int	xmlTextWriterWriteFormatAttributeNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const char * format,
    ... ...)
    -

    Write a formatted xml attribute.with namespace support

    -
    writer:the xmlTextWriterPtr
    prefix:namespace prefix
    name:attribute local name
    namespaceURI:namespace URI
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteFormatCDATA ()

    int	xmlTextWriterWriteFormatCDATA	(xmlTextWriterPtr writer, 
    const char * format,
    ... ...)
    -

    Write a formatted xml CDATA.

    -
    writer:the xmlTextWriterPtr
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteFormatComment ()

    int	xmlTextWriterWriteFormatComment	(xmlTextWriterPtr writer, 
    const char * format,
    ... ...)
    -

    Write an xml comment.

    -
    writer:the xmlTextWriterPtr
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteFormatDTD ()

    int	xmlTextWriterWriteFormatDTD	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const char * format,
    ... ...)
    -

    Write a DTD with a formatted markup declarations part.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD
    pubid:the public identifier, which is an alternative to the system identifier
    sysid:the system identifier, which is the URI of the DTD
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteFormatDTDAttlist ()

    int	xmlTextWriterWriteFormatDTDAttlist	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    ... ...)
    -

    Write a formatted DTD ATTLIST.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD ATTLIST
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteFormatDTDElement ()

    int	xmlTextWriterWriteFormatDTDElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    ... ...)
    -

    Write a formatted DTD element.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD element
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteFormatDTDInternalEntity ()

    int	xmlTextWriterWriteFormatDTDInternalEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name,
    const char * format,
    ... ...)
    -

    Write a formatted DTD internal entity.

    -
    writer:the xmlTextWriterPtr
    pe:TRUE if this is a parameter entity, FALSE if not
    name:the name of the DTD entity
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteFormatElement ()

    int	xmlTextWriterWriteFormatElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    ... ...)
    -

    Write a formatted xml element.

    -
    writer:the xmlTextWriterPtr
    name:element name
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteFormatElementNS ()

    int	xmlTextWriterWriteFormatElementNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const char * format,
    ... ...)
    -

    Write a formatted xml element with namespace support.

    -
    writer:the xmlTextWriterPtr
    prefix:namespace prefix
    name:element local name
    namespaceURI:namespace URI
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteFormatPI ()

    int	xmlTextWriterWriteFormatPI	(xmlTextWriterPtr writer, 
    const xmlChar * target,
    const char * format,
    ... ...)
    -

    Write a formatted PI.

    -
    writer:the xmlTextWriterPtr
    target:PI target
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteFormatRaw ()

    int	xmlTextWriterWriteFormatRaw	(xmlTextWriterPtr writer, 
    const char * format,
    ... ...)
    -

    Write a formatted raw xml text.

    -
    writer:the xmlTextWriterPtr
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteFormatString ()

    int	xmlTextWriterWriteFormatString	(xmlTextWriterPtr writer, 
    const char * format,
    ... ...)
    -

    Write a formatted xml text.

    -
    writer:the xmlTextWriterPtr
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWritePI ()

    int	xmlTextWriterWritePI		(xmlTextWriterPtr writer, 
    const xmlChar * target,
    const xmlChar * content)
    -

    Write an xml PI.

    -
    writer:the xmlTextWriterPtr
    target:PI target
    content:PI content
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteRaw ()

    int	xmlTextWriterWriteRaw		(xmlTextWriterPtr writer, 
    const xmlChar * content)
    -

    Write a raw xml text.

    -
    writer:the xmlTextWriterPtr
    content:text string
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteRawLen ()

    int	xmlTextWriterWriteRawLen	(xmlTextWriterPtr writer, 
    const xmlChar * content,
    int len)
    -

    Write an xml text. TODO: what about entities and special chars??

    -
    writer:the xmlTextWriterPtr
    content:text string
    len:length of the text string
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteString ()

    int	xmlTextWriterWriteString	(xmlTextWriterPtr writer, 
    const xmlChar * content)
    -

    Write an xml text.

    -
    writer:the xmlTextWriterPtr
    content:text string
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteVFormatAttribute ()

    int	xmlTextWriterWriteVFormatAttribute	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    va_list argptr)
    -

    Write a formatted xml attribute.

    -
    writer:the xmlTextWriterPtr
    name:attribute name
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteVFormatAttributeNS ()

    int	xmlTextWriterWriteVFormatAttributeNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const char * format,
    va_list argptr)
    -

    Write a formatted xml attribute.with namespace support

    -
    writer:the xmlTextWriterPtr
    prefix:namespace prefix
    name:attribute local name
    namespaceURI:namespace URI
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteVFormatCDATA ()

    int	xmlTextWriterWriteVFormatCDATA	(xmlTextWriterPtr writer, 
    const char * format,
    va_list argptr)
    -

    Write a formatted xml CDATA.

    -
    writer:the xmlTextWriterPtr
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteVFormatComment ()

    int	xmlTextWriterWriteVFormatComment	(xmlTextWriterPtr writer, 
    const char * format,
    va_list argptr)
    -

    Write an xml comment.

    -
    writer:the xmlTextWriterPtr
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteVFormatDTD ()

    int	xmlTextWriterWriteVFormatDTD	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const char * format,
    va_list argptr)
    -

    Write a DTD with a formatted markup declarations part.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD
    pubid:the public identifier, which is an alternative to the system identifier
    sysid:the system identifier, which is the URI of the DTD
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteVFormatDTDAttlist ()

    int	xmlTextWriterWriteVFormatDTDAttlist	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    va_list argptr)
    -

    Write a formatted DTD ATTLIST.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD ATTLIST
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteVFormatDTDElement ()

    int	xmlTextWriterWriteVFormatDTDElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    va_list argptr)
    -

    Write a formatted DTD element.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD element
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteVFormatDTDInternalEntity ()

    int	xmlTextWriterWriteVFormatDTDInternalEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name,
    const char * format,
    va_list argptr)
    -

    Write a formatted DTD internal entity.

    -
    writer:the xmlTextWriterPtr
    pe:TRUE if this is a parameter entity, FALSE if not
    name:the name of the DTD entity
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteVFormatElement ()

    int	xmlTextWriterWriteVFormatElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    va_list argptr)
    -

    Write a formatted xml element.

    -
    writer:the xmlTextWriterPtr
    name:element name
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteVFormatElementNS ()

    int	xmlTextWriterWriteVFormatElementNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const char * format,
    va_list argptr)
    -

    Write a formatted xml element with namespace support.

    -
    writer:the xmlTextWriterPtr
    prefix:namespace prefix
    name:element local name
    namespaceURI:namespace URI
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteVFormatPI ()

    int	xmlTextWriterWriteVFormatPI	(xmlTextWriterPtr writer, 
    const xmlChar * target,
    const char * format,
    va_list argptr)
    -

    Write a formatted xml PI.

    -
    writer:the xmlTextWriterPtr
    target:PI target
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteVFormatRaw ()

    int	xmlTextWriterWriteVFormatRaw	(xmlTextWriterPtr writer, 
    const char * format,
    va_list argptr)
    -

    Write a formatted raw xml text.

    -
    writer:the xmlTextWriterPtr
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -

    xmlTextWriterWriteVFormatString ()

    int	xmlTextWriterWriteVFormatString	(xmlTextWriterPtr writer, 
    const char * format,
    va_list argptr)
    -

    Write a formatted xml text.

    -
    writer:the xmlTextWriterPtr
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xpath.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xpath.html deleted file mode 100644 index f3fe7a6780..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xpath.html +++ /dev/null @@ -1,524 +0,0 @@ - - - - - xpath: XML Path Language implementation - - - - - - - - - - - - - - - - -

    - xpath -

    -

    xpath - XML Path Language implementation

    -

    API for the XML Path Language implementation XML Path Language implementation XPath is a language for addressing parts of an XML document, designed to be used by both XSLT and XPointer

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    #define xmlXPathNodeSetGetLength(ns);
    -#define XML_XPATH_CHECKNS;
    -#define XML_XPATH_NOVAR;
    -#define xmlXPathNodeSetItem(ns, index);
    -#define xmlXPathNodeSetIsEmpty(ns);
    -typedef enum xmlXPathObjectType;
    -typedef xmlXPathVariable * xmlXPathVariablePtr;
    -typedef struct _xmlXPathContext xmlXPathContext;
    -typedef enum xmlXPathError;
    -typedef struct _xmlXPathFunct xmlXPathFunct;
    -typedef xmlXPathType * xmlXPathTypePtr;
    -typedef struct _xmlXPathType xmlXPathType;
    -typedef xmlNodeSet * xmlNodeSetPtr;
    -typedef xmlXPathFunct * xmlXPathFuncPtr;
    -typedef xmlXPathCompExpr * xmlXPathCompExprPtr;
    -typedef struct _xmlXPathObject xmlXPathObject;
    -typedef struct _xmlXPathCompExpr xmlXPathCompExpr;
    -typedef xmlXPathContext * xmlXPathContextPtr;
    -typedef xmlXPathParserContext * xmlXPathParserContextPtr;
    -typedef struct _xmlNodeSet xmlNodeSet;
    -typedef struct _xmlXPathVariable xmlXPathVariable;
    -typedef xmlXPathObject * xmlXPathObjectPtr;
    -typedef struct _xmlXPathAxis xmlXPathAxis;
    -typedef xmlXPathAxis * xmlXPathAxisPtr;
    -typedef struct _xmlXPathParserContext xmlXPathParserContext;
    -int	xmlXPathCastNodeSetToBoolean	(xmlNodeSetPtr ns);
    -typedef xmlXPathFunction xmlXPathFuncLookupFunc	(void * ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri); -xmlChar * xmlXPathCastNodeToString (xmlNodePtr node); -int xmlXPathIsNaN (double val); -int xmlXPathContextSetCache (xmlXPathContextPtr ctxt,
    int active,
    int value,
    int options); -xmlXPathObjectPtr xmlXPathConvertString (xmlXPathObjectPtr val); -xmlXPathObjectPtr xmlXPathConvertBoolean (xmlXPathObjectPtr val); -int xmlXPathIsInf (double val); -long xmlXPathOrderDocElems (xmlDocPtr doc); -xmlNodeSetPtr xmlXPathNodeSetCreate (xmlNodePtr val); -double xmlXPathCastBooleanToNumber (int val); -double xmlXPathCastNodeToNumber (xmlNodePtr node); -double xmlXPathCastStringToNumber (const xmlChar * val); -typedef xmlXPathObjectPtr xmlXPathAxisFunc (xmlXPathParserContextPtr ctxt,
    xmlXPathObjectPtr cur); -double xmlXPathCastToNumber (xmlXPathObjectPtr val); -int xmlXPathCastStringToBoolean (const xmlChar * val); -xmlChar * xmlXPathCastNumberToString (double val); -typedef xmlXPathObjectPtr xmlXPathVariableLookupFunc (void * ctxt,
    const xmlChar * name,
    const xmlChar * ns_uri); -void xmlXPathFreeObject (xmlXPathObjectPtr obj); -int xmlXPathEvalPredicate (xmlXPathContextPtr ctxt,
    xmlXPathObjectPtr res); -void xmlXPathFreeContext (xmlXPathContextPtr ctxt); -xmlXPathObjectPtr xmlXPathObjectCopy (xmlXPathObjectPtr val); -void xmlXPathFreeNodeSetList (xmlXPathObjectPtr obj); -xmlXPathObjectPtr xmlXPathEval (const xmlChar * str,
    xmlXPathContextPtr ctx); -xmlChar * xmlXPathCastNodeSetToString (xmlNodeSetPtr ns); -xmlXPathObjectPtr xmlXPathCompiledEval (xmlXPathCompExprPtr comp,
    xmlXPathContextPtr ctx); -xmlXPathObjectPtr xmlXPathEvalExpression (const xmlChar * str,
    xmlXPathContextPtr ctxt); -void xmlXPathInit (void); -xmlXPathCompExprPtr xmlXPathCtxtCompile (xmlXPathContextPtr ctxt,
    const xmlChar * str); -typedef int xmlXPathConvertFunc (xmlXPathObjectPtr obj,
    int type); -typedef void xmlXPathFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -int xmlXPathCmpNodes (xmlNodePtr node1,
    xmlNodePtr node2); -xmlChar * xmlXPathCastToString (xmlXPathObjectPtr val); -typedef void xmlXPathEvalFunc (xmlXPathParserContextPtr ctxt,
    int nargs); -xmlChar * xmlXPathCastBooleanToString (int val); -int xmlXPathCastNumberToBoolean (double val); -void xmlXPathFreeNodeSet (xmlNodeSetPtr obj); -void xmlXPathFreeCompExpr (xmlXPathCompExprPtr comp); -xmlXPathContextPtr xmlXPathNewContext (xmlDocPtr doc); -xmlXPathObjectPtr xmlXPathConvertNumber (xmlXPathObjectPtr val); -xmlXPathCompExprPtr xmlXPathCompile (const xmlChar * str); -double xmlXPathCastNodeSetToNumber (xmlNodeSetPtr ns); -int xmlXPathCastToBoolean (xmlXPathObjectPtr val); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro XML_XPATH_CHECKNS

    #define XML_XPATH_CHECKNS;
    -

    check namespaces at compilation

    -
    -
    -

    Macro XML_XPATH_NOVAR

    #define XML_XPATH_NOVAR;
    -

    forbid variables in expression

    -
    -
    -

    Macro xmlXPathNodeSetGetLength

    #define xmlXPathNodeSetGetLength(ns);
    -

    Implement a functionality similar to the DOM NodeList.length. Returns the number of nodes in the node-set.

    ns:a node-set
    -
    -
    -

    Macro xmlXPathNodeSetIsEmpty

    #define xmlXPathNodeSetIsEmpty(ns);
    -

    Checks whether @ns is empty or not. Returns %TRUE if @ns is an empty node-set.

    ns:a node-set
    -
    -
    -

    Macro xmlXPathNodeSetItem

    #define xmlXPathNodeSetItem(ns, index);
    -

    Implements a functionality similar to the DOM NodeList.item(). Returns the xmlNodePtr at the given @index in @ns or NULL if @index is out of range (0 to length-1)

    ns:a node-set
    index:index of a node in the set
    -
    -
    -

    Structure xmlNodeSet

    struct _xmlNodeSet {
    -    int	nodeNr	: number of nodes in the set
    -    int	nodeMax	: size of the array as allocated
    -    xmlNodePtr *	nodeTab	: array of nodes in no particular order @@ with_ns to check wether name
    -} xmlNodeSet;
    -

    -

    -
    -

    Typedef xmlNodeSetPtr

    xmlNodeSet * xmlNodeSetPtr;
    -

    -

    -
    -

    Structure xmlXPathAxis

    struct _xmlXPathAxis {
    -    const xmlChar *	name	: the axis name
    -    xmlXPathAxisFunc	func	: the search function
    -} xmlXPathAxis;
    -

    -

    -
    -

    Typedef xmlXPathAxisPtr

    xmlXPathAxis * xmlXPathAxisPtr;
    -

    -

    -
    -

    Structure xmlXPathCompExpr

    struct _xmlXPathCompExpr {
    -The content of this structure is not made public by the API.
    -} xmlXPathCompExpr;
    -

    -

    -
    -

    Typedef xmlXPathCompExprPtr

    xmlXPathCompExpr * xmlXPathCompExprPtr;
    -

    -

    -
    -

    Structure xmlXPathContext

    struct _xmlXPathContext {
    -    xmlDocPtr	doc	: The current document
    -    xmlNodePtr	node	: The current node
    -    int	nb_variables_unused	: unused (hash table)
    -    int	max_variables_unused	: unused (hash table)
    -    xmlHashTablePtr	varHash	: Hash table of defined variables
    -    int	nb_types	: number of defined types
    -    int	max_types	: max number of types
    -    xmlXPathTypePtr	types	: Array of defined types
    -    int	nb_funcs_unused	: unused (hash table)
    -    int	max_funcs_unused	: unused (hash table)
    -    xmlHashTablePtr	funcHash	: Hash table of defined funcs
    -    int	nb_axis	: number of defined axis
    -    int	max_axis	: max number of axis
    -    xmlXPathAxisPtr	axis	: Array of defined axis the namespace nodes of the context node
    -    xmlNsPtr *	namespaces	: Array of namespaces
    -    int	nsNr	: number of namespace in scope
    -    void *	user	: function to free extra variables
    -    int	contextSize	: the context size
    -    int	proximityPosition	: the proximity position extra stuff for XPointer
    -    int	xptr	: it this an XPointer context
    -    xmlNodePtr	here	: for here()
    -    xmlNodePtr	origin	: for origin() the set of namespace declarations in scope for the expre
    -    xmlHashTablePtr	nsHash	: The namespaces hash table
    -    xmlXPathVariableLookupFunc	varLookupFunc	: variable lookup func
    -    void *	varLookupData	: variable lookup data Possibility to link in an extra item
    -    void *	extra	: needed for XSLT The function name and URI when calling a function
    -    const xmlChar *	function
    -    const xmlChar *	functionURI	: function lookup function and data
    -    xmlXPathFuncLookupFunc	funcLookupFunc	: function lookup func
    -    void *	funcLookupData	: function lookup data temporary namespace lists kept for walking the n
    -    xmlNsPtr *	tmpNsList	: Array of namespaces
    -    int	tmpNsNr	: number of namespace in scope error reporting mechanism
    -    void *	userData	: user specific data block
    -    xmlStructuredErrorFunc	error	: the callback in case of errors
    -    xmlError	lastError	: the last error
    -    xmlNodePtr	debugNode	: the source node XSLT dictionnary
    -    xmlDictPtr	dict	: dictionnary if any
    -    int	flags	: flags to control compilation Cache for reusal of XPath objects
    -    void *	cache
    -} xmlXPathContext;
    -

    -

    -
    -

    Typedef xmlXPathContextPtr

    xmlXPathContext * xmlXPathContextPtr;
    -

    -

    -
    - -
    -

    Typedef xmlXPathFuncPtr

    xmlXPathFunct * xmlXPathFuncPtr;
    -

    -

    -
    -

    Structure xmlXPathFunct

    struct _xmlXPathFunct {
    -    const xmlChar *	name	: the function name
    -    xmlXPathEvalFunc	func	: the evaluation function
    -} xmlXPathFunct;
    -

    -

    -
    -

    Structure xmlXPathObject

    struct _xmlXPathObject {
    -    xmlXPathObjectType	type
    -    xmlNodeSetPtr	nodesetval
    -    int	boolval
    -    double	floatval
    -    xmlChar *	stringval
    -    void *	user
    -    int	index
    -    void *	user2
    -    int	index2
    -} xmlXPathObject;
    -

    -

    -
    -

    Typedef xmlXPathObjectPtr

    xmlXPathObject * xmlXPathObjectPtr;
    -

    -

    -
    -

    Enum xmlXPathObjectType

    enum xmlXPathObjectType {
    -    XPATH_UNDEFINED = 0
    -    XPATH_NODESET = 1
    -    XPATH_BOOLEAN = 2
    -    XPATH_NUMBER = 3
    -    XPATH_STRING = 4
    -    XPATH_POINT = 5
    -    XPATH_RANGE = 6
    -    XPATH_LOCATIONSET = 7
    -    XPATH_USERS = 8
    -    XPATH_XSLT_TREE = 9 /*  An XSLT value tree, non modifiable */
    -};
    -

    -

    -
    -

    Structure xmlXPathParserContext

    struct _xmlXPathParserContext {
    -    const xmlChar *	cur	: the current char being parsed
    -    const xmlChar *	base	: the full expression
    -    int	error	: error code
    -    xmlXPathContextPtr	context	: the evaluation context
    -    xmlXPathObjectPtr	value	: the current value
    -    int	valueNr	: number of values stacked
    -    int	valueMax	: max number of values stacked
    -    xmlXPathObjectPtr *	valueTab	: stack of values
    -    xmlXPathCompExprPtr	comp	: the precompiled expression
    -    int	xptr	: it this an XPointer expression
    -    xmlNodePtr	ancestor	: used for walking preceding axis
    -} xmlXPathParserContext;
    -

    -

    -
    -

    Typedef xmlXPathParserContextPtr

    xmlXPathParserContext * xmlXPathParserContextPtr;
    -

    -

    -
    -

    Structure xmlXPathType

    struct _xmlXPathType {
    -    const xmlChar *	name	: the type name
    -    xmlXPathConvertFunc	func	: the conversion function
    -} xmlXPathType;
    -

    -

    -
    -

    Typedef xmlXPathTypePtr

    xmlXPathType * xmlXPathTypePtr;
    -

    -

    -
    -

    Structure xmlXPathVariable

    struct _xmlXPathVariable {
    -    const xmlChar *	name	: the variable name
    -    xmlXPathObjectPtr	value	: the value
    -} xmlXPathVariable;
    -

    -

    -
    -

    Typedef xmlXPathVariablePtr

    xmlXPathVariable * xmlXPathVariablePtr;
    -

    -

    -
    -

    Function type xmlXPathAxisFunc

    xmlXPathObjectPtr	xmlXPathAxisFunc	(xmlXPathParserContextPtr ctxt, 
    xmlXPathObjectPtr cur)
    -

    An axis traversal function. To traverse an axis, the engine calls the first time with cur == NULL and repeat until the function returns NULL indicating the end of the axis traversal.

    -
    ctxt:the XPath interpreter context
    cur:the previous node being explored on that axis
    Returns:the next node in that axis or NULL if at the end of the axis.
    -
    -

    Function type xmlXPathConvertFunc

    int	xmlXPathConvertFunc		(xmlXPathObjectPtr obj, 
    int type)
    -

    A conversion function is associated to a type and used to cast the new type to primitive values.

    -
    obj:an XPath object
    type:the number of the target type
    Returns:-1 in case of error, 0 otherwise
    -
    -

    Function type xmlXPathEvalFunc

    void	xmlXPathEvalFunc		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    An XPath evaluation function, the parameters are on the XPath context stack.

    -
    ctxt:an XPath parser context
    nargs:the number of arguments passed to the function
    -
    -

    Function type xmlXPathFuncLookupFunc

    xmlXPathFunction	xmlXPathFuncLookupFunc	(void * ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri)
    -

    Prototype for callbacks used to plug function lookup in the XPath engine.

    -
    ctxt:an XPath context
    name:name of the function
    ns_uri:the namespace name hosting this function
    Returns:the XPath function or NULL if not found.
    -
    -

    Function type xmlXPathFunction

    void	xmlXPathFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    An XPath function. The arguments (if any) are popped out from the context stack and the result is pushed on the stack.

    -
    ctxt:the XPath interprestation context
    nargs:the number of arguments
    -
    -

    Function type xmlXPathVariableLookupFunc

    xmlXPathObjectPtr	xmlXPathVariableLookupFunc	(void * ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri)
    -

    Prototype for callbacks used to plug variable lookup in the XPath engine.

    -
    ctxt:an XPath context
    name:name of the variable
    ns_uri:the namespace name hosting this variable
    Returns:the XPath object value or NULL if not found.
    -
    -

    Variable xmlXPathNAN

    double xmlXPathNAN;
    -

    -

    -
    -

    Variable xmlXPathNINF

    double xmlXPathNINF;
    -

    -

    -
    -

    Variable xmlXPathPINF

    double xmlXPathPINF;
    -

    -

    -
    - -
    -

    xmlXPathCastBooleanToString ()

    xmlChar *	xmlXPathCastBooleanToString	(int val)
    -

    Converts a boolean to its string value.

    -
    val:a boolean
    Returns:a newly allocated string.
    -
    -

    xmlXPathCastNodeSetToBoolean ()

    int	xmlXPathCastNodeSetToBoolean	(xmlNodeSetPtr ns)
    -

    Converts a node-set to its boolean value

    -
    ns:a node-set
    Returns:the boolean value
    -
    -

    xmlXPathCastNodeSetToNumber ()

    double	xmlXPathCastNodeSetToNumber	(xmlNodeSetPtr ns)
    -

    Converts a node-set to its number value

    -
    ns:a node-set
    Returns:the number value
    -
    -

    xmlXPathCastNodeSetToString ()

    xmlChar *	xmlXPathCastNodeSetToString	(xmlNodeSetPtr ns)
    -

    Converts a node-set to its string value.

    -
    ns:a node-set
    Returns:a newly allocated string.
    -
    -

    xmlXPathCastNodeToNumber ()

    double	xmlXPathCastNodeToNumber	(xmlNodePtr node)
    -

    Converts a node to its number value

    -
    node:a node
    Returns:the number value
    -
    -

    xmlXPathCastNodeToString ()

    xmlChar *	xmlXPathCastNodeToString	(xmlNodePtr node)
    -

    Converts a node to its string value.

    -
    node:a node
    Returns:a newly allocated string.
    -
    - -
    -

    xmlXPathCastNumberToString ()

    xmlChar *	xmlXPathCastNumberToString	(double val)
    -

    Converts a number to its string value.

    -
    val:a number
    Returns:a newly allocated string.
    -
    -

    xmlXPathCastStringToBoolean ()

    int	xmlXPathCastStringToBoolean	(const xmlChar * val)
    -

    Converts a string to its boolean value

    -
    val:a string
    Returns:the boolean value
    -
    -

    xmlXPathCastStringToNumber ()

    double	xmlXPathCastStringToNumber	(const xmlChar * val)
    -

    Converts a string to its number value

    -
    val:a string
    Returns:the number value
    -
    -

    xmlXPathCastToBoolean ()

    int	xmlXPathCastToBoolean		(xmlXPathObjectPtr val)
    -

    Converts an XPath object to its boolean value

    -
    val:an XPath object
    Returns:the boolean value
    -
    -

    xmlXPathCastToNumber ()

    double	xmlXPathCastToNumber		(xmlXPathObjectPtr val)
    -

    Converts an XPath object to its number value

    -
    val:an XPath object
    Returns:the number value
    -
    -

    xmlXPathCastToString ()

    xmlChar *	xmlXPathCastToString	(xmlXPathObjectPtr val)
    -

    Converts an existing object to its string() equivalent

    -
    val:an XPath object
    Returns:the string value of the object, NULL in case of error. A new string is allocated only if needed (@val isn't a string object).
    -
    -

    xmlXPathCmpNodes ()

    int	xmlXPathCmpNodes		(xmlNodePtr node1, 
    xmlNodePtr node2)
    -

    Compare two nodes w.r.t document order

    -
    node1:the first node
    node2:the second node
    Returns:-2 in case of error 1 if first point < second point, 0 if it's the same node, -1 otherwise
    -
    -

    xmlXPathCompile ()

    xmlXPathCompExprPtr	xmlXPathCompile	(const xmlChar * str)
    -

    Compile an XPath expression

    -
    str:the XPath expression
    Returns:the xmlXPathCompExprPtr resulting from the compilation or NULL. the caller has to free the object.
    -
    -

    xmlXPathCompiledEval ()

    xmlXPathObjectPtr	xmlXPathCompiledEval	(xmlXPathCompExprPtr comp, 
    xmlXPathContextPtr ctx)
    -

    Evaluate the Precompiled XPath expression in the given context.

    -
    comp:the compiled XPath expression
    ctx:the XPath context
    Returns:the xmlXPathObjectPtr resulting from the evaluation or NULL. the caller has to free the object.
    -
    -

    xmlXPathContextSetCache ()

    int	xmlXPathContextSetCache		(xmlXPathContextPtr ctxt, 
    int active,
    int value,
    int options)
    -

    Creates/frees an object cache on the XPath context. If activates XPath objects (xmlXPathObject) will be cached internally to be reused. @options: 0: This will set the XPath object caching: @value: This will set the maximum number of XPath objects to be cached per slot There are 5 slots for: node-set, string, number, boolean, and misc objects. Use <0 for the default number (100). Other values for @options have currently no effect.

    -
    ctxt:the XPath context
    active:enables/disables (creates/frees) the cache
    value:a value with semantics dependant on @options
    options:options (currently only the value 0 is used)
    Returns:0 if the setting succeeded, and -1 on API or internal errors.
    -
    -

    xmlXPathConvertBoolean ()

    xmlXPathObjectPtr	xmlXPathConvertBoolean	(xmlXPathObjectPtr val)
    -

    Converts an existing object to its boolean() equivalent

    -
    val:an XPath object
    Returns:the new object, the old one is freed (or the operation is done directly on @val)
    -
    -

    xmlXPathConvertNumber ()

    xmlXPathObjectPtr	xmlXPathConvertNumber	(xmlXPathObjectPtr val)
    -

    Converts an existing object to its number() equivalent

    -
    val:an XPath object
    Returns:the new object, the old one is freed (or the operation is done directly on @val)
    -
    -

    xmlXPathConvertString ()

    xmlXPathObjectPtr	xmlXPathConvertString	(xmlXPathObjectPtr val)
    -

    Converts an existing object to its string() equivalent

    -
    val:an XPath object
    Returns:the new object, the old one is freed (or the operation is done directly on @val)
    -
    -

    xmlXPathCtxtCompile ()

    xmlXPathCompExprPtr	xmlXPathCtxtCompile	(xmlXPathContextPtr ctxt, 
    const xmlChar * str)
    -

    Compile an XPath expression

    -
    ctxt:an XPath context
    str:the XPath expression
    Returns:the xmlXPathCompExprPtr resulting from the compilation or NULL. the caller has to free the object.
    -
    -

    xmlXPathEval ()

    xmlXPathObjectPtr	xmlXPathEval	(const xmlChar * str, 
    xmlXPathContextPtr ctx)
    -

    Evaluate the XPath Location Path in the given context.

    -
    str:the XPath expression
    ctx:the XPath context
    Returns:the xmlXPathObjectPtr resulting from the evaluation or NULL. the caller has to free the object.
    -
    -

    xmlXPathEvalExpression ()

    xmlXPathObjectPtr	xmlXPathEvalExpression	(const xmlChar * str, 
    xmlXPathContextPtr ctxt)
    -

    Evaluate the XPath expression in the given context.

    -
    str:the XPath expression
    ctxt:the XPath context
    Returns:the xmlXPathObjectPtr resulting from the evaluation or NULL. the caller has to free the object.
    -
    -

    xmlXPathEvalPredicate ()

    int	xmlXPathEvalPredicate		(xmlXPathContextPtr ctxt, 
    xmlXPathObjectPtr res)
    -

    Evaluate a predicate result for the current node. A PredicateExpr is evaluated by evaluating the Expr and converting the result to a boolean. If the result is a number, the result will be converted to true if the number is equal to the position of the context node in the context node list (as returned by the position function) and will be converted to false otherwise; if the result is not a number, then the result will be converted as if by a call to the boolean function.

    -
    ctxt:the XPath context
    res:the Predicate Expression evaluation result
    Returns:1 if predicate is true, 0 otherwise
    -
    -

    xmlXPathFreeCompExpr ()

    void	xmlXPathFreeCompExpr		(xmlXPathCompExprPtr comp)
    -

    Free up the memory allocated by @comp

    -
    comp:an XPATH comp
    -
    - -
    -

    xmlXPathFreeNodeSet ()

    void	xmlXPathFreeNodeSet		(xmlNodeSetPtr obj)
    -

    Free the NodeSet compound (not the actual nodes !).

    -
    obj:the xmlNodeSetPtr to free
    -
    -

    xmlXPathFreeNodeSetList ()

    void	xmlXPathFreeNodeSetList		(xmlXPathObjectPtr obj)
    -

    Free up the xmlXPathObjectPtr @obj but don't deallocate the objects in the list contrary to xmlXPathFreeObject().

    -
    obj:an existing NodeSetList object
    -
    - -
    - -
    -
    -
    -
    -
    -

    xmlXPathNewContext ()

    xmlXPathContextPtr	xmlXPathNewContext	(xmlDocPtr doc)
    -

    Create a new xmlXPathContext

    -
    doc:the XML document
    Returns:the xmlXPathContext just allocated. The caller will need to free it.
    -
    -

    xmlXPathNodeSetCreate ()

    xmlNodeSetPtr	xmlXPathNodeSetCreate	(xmlNodePtr val)
    -

    Create a new xmlNodeSetPtr of type double and of value @val

    -
    val:an initial xmlNodePtr, or NULL
    Returns:the newly created object.
    -
    -

    xmlXPathObjectCopy ()

    xmlXPathObjectPtr	xmlXPathObjectCopy	(xmlXPathObjectPtr val)
    -

    allocate a new copy of a given object

    -
    val:the original object
    Returns:the newly created object.
    -
    -

    xmlXPathOrderDocElems ()

    long	xmlXPathOrderDocElems		(xmlDocPtr doc)
    -

    Call this routine to speed up XPath computation on static documents. This stamps all the element nodes with the document order Like for line information, the order is kept in the element->content field, the value stored is actually - the node number (starting at -1) to be able to differentiate from line numbers.

    -
    doc:an input document
    Returns:the number of elements found in the document or -1 in case of error.
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xpathInternals.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xpathInternals.html deleted file mode 100644 index 863d868c74..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xpathInternals.html +++ /dev/null @@ -1,787 +0,0 @@ - - - - - xpathInternals: internal interfaces for XML Path Language implementation - - - - - - - - - - - - - - - - -

    - xpathInternals -

    -

    xpathInternals - internal interfaces for XML Path Language implementation

    -

    internal interfaces for XML Path Language implementation used to build new modules on top of XPath like XPointer and XSLT

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    #define xmlXPathStackIsExternal(ctxt);
    -#define xmlXPathReturnEmptyString(ctxt);
    -#define XP_ERROR0(X);
    -#define xmlXPathSetTypeError(ctxt);
    -#define xmlXPathReturnEmptyNodeSet(ctxt);
    -#define xmlXPathReturnTrue(ctxt);
    -#define xmlXPathReturnBoolean(ctxt, val);
    -#define xmlXPathGetContextNode(ctxt);
    -#define CAST_TO_NUMBER;
    -#define CHECK_ARITY(x);
    -#define CHECK_TYPE0(typeval);
    -#define CAST_TO_STRING;
    -#define xmlXPathReturnExternal(ctxt, val);
    -#define xmlXPathStackIsNodeSet(ctxt);
    -#define xmlXPathCheckError(ctxt);
    -#define xmlXPathSetError(ctxt, err);
    -#define CHECK_ERROR;
    -#define xmlXPathReturnString(ctxt, str);
    -#define CAST_TO_BOOLEAN;
    -#define xmlXPathSetArityError(ctxt);
    -#define CHECK_TYPE(typeval);
    -#define xmlXPathReturnFalse(ctxt);
    -#define xmlXPathReturnNumber(ctxt, val);
    -#define CHECK_ERROR0;
    -#define xmlXPathGetDocument(ctxt);
    -#define xmlXPathGetError(ctxt);
    -#define XP_ERROR(X);
    -#define xmlXPathEmptyNodeSet(ns);
    -#define xmlXPathReturnNodeSet(ctxt, ns);
    -xmlNodeSetPtr	xmlXPathNodeSetMerge	(xmlNodeSetPtr val1, 
    xmlNodeSetPtr val2); -void xmlXPathNumberFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -const xmlChar * xmlXPathNsLookup (xmlXPathContextPtr ctxt,
    const xmlChar * prefix); -xmlXPathObjectPtr xmlXPathNewNodeSet (xmlNodePtr val); -xmlNodePtr xmlXPathNextAncestorOrSelf (xmlXPathParserContextPtr ctxt,
    xmlNodePtr cur); -void xmlXPathNodeSetRemove (xmlNodeSetPtr cur,
    int val); -xmlXPathObjectPtr xmlXPathNewNodeSetList (xmlNodeSetPtr val); -int xmlXPathPopBoolean (xmlXPathParserContextPtr ctxt); -xmlXPathObjectPtr xmlXPathNewString (const xmlChar * val); -xmlNodeSetPtr xmlXPathNodeLeadingSorted (xmlNodeSetPtr nodes,
    xmlNodePtr node); -xmlNodePtr xmlXPathNextChild (xmlXPathParserContextPtr ctxt,
    xmlNodePtr cur); -xmlNodePtr xmlXPathNextFollowingSibling (xmlXPathParserContextPtr ctxt,
    xmlNodePtr cur); -xmlChar * xmlXPathPopString (xmlXPathParserContextPtr ctxt); -void xmlXPathNamespaceURIFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -int xmlXPathCompareValues (xmlXPathParserContextPtr ctxt,
    int inf,
    int strict); -void xmlXPathConcatFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -int xmlXPathNodeSetContains (xmlNodeSetPtr cur,
    xmlNodePtr val); -void xmlXPatherror (xmlXPathParserContextPtr ctxt,
    const char * file,
    int line,
    int no); -xmlNodePtr xmlXPathNextAncestor (xmlXPathParserContextPtr ctxt,
    xmlNodePtr cur); -void xmlXPathBooleanFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -void xmlXPathRoot (xmlXPathParserContextPtr ctxt); -void xmlXPathRegisteredNsCleanup (xmlXPathContextPtr ctxt); -int xmlXPathIsNodeType (const xmlChar * name); -xmlNodePtr xmlXPathNextFollowing (xmlXPathParserContextPtr ctxt,
    xmlNodePtr cur); -void xmlXPathAddValues (xmlXPathParserContextPtr ctxt); -int xmlXPathRegisterVariable (xmlXPathContextPtr ctxt,
    const xmlChar * name,
    xmlXPathObjectPtr value); -xmlXPathObjectPtr valuePop (xmlXPathParserContextPtr ctxt); -void xmlXPathCeilingFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -xmlNodeSetPtr xmlXPathIntersection (xmlNodeSetPtr nodes1,
    xmlNodeSetPtr nodes2); -void xmlXPathContainsFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -void xmlXPathNodeSetSort (xmlNodeSetPtr set); -void xmlXPathStartsWithFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -xmlNodeSetPtr xmlXPathNodeLeading (xmlNodeSetPtr nodes,
    xmlNodePtr node); -void xmlXPathSumFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -int xmlXPathNotEqualValues (xmlXPathParserContextPtr ctxt); -int xmlXPathEvaluatePredicateResult (xmlXPathParserContextPtr ctxt,
    xmlXPathObjectPtr res); -void xmlXPathErr (xmlXPathParserContextPtr ctxt,
    int error); -xmlNodePtr xmlXPathNextPreceding (xmlXPathParserContextPtr ctxt,
    xmlNodePtr cur); -xmlXPathFunction xmlXPathFunctionLookupNS (xmlXPathContextPtr ctxt,
    const xmlChar * name,
    const xmlChar * ns_uri); -void xmlXPathRegisteredFuncsCleanup (xmlXPathContextPtr ctxt); -void xmlXPathRegisterAllFunctions (xmlXPathContextPtr ctxt); -xmlXPathFunction xmlXPathFunctionLookup (xmlXPathContextPtr ctxt,
    const xmlChar * name); -void xmlXPathPositionFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -void xmlXPathSubstringBeforeFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -void xmlXPathRegisteredVariablesCleanup (xmlXPathContextPtr ctxt); -xmlXPathObjectPtr xmlXPathNewFloat (double val); -int xmlXPathRegisterNs (xmlXPathContextPtr ctxt,
    const xmlChar * prefix,
    const xmlChar * ns_uri); -xmlNodePtr xmlXPathNextParent (xmlXPathParserContextPtr ctxt,
    xmlNodePtr cur); -void xmlXPathNodeSetFreeNs (xmlNsPtr ns); -int xmlXPathHasSameNodes (xmlNodeSetPtr nodes1,
    xmlNodeSetPtr nodes2); -xmlNodeSetPtr xmlXPathDistinctSorted (xmlNodeSetPtr nodes); -int valuePush (xmlXPathParserContextPtr ctxt,
    xmlXPathObjectPtr value); -void xmlXPathSubstringFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -void xmlXPathStringFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -void xmlXPathFloorFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -void xmlXPathIdFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -void xmlXPathLastFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -void xmlXPathStringLengthFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -xmlNodePtr xmlXPathNextSelf (xmlXPathParserContextPtr ctxt,
    xmlNodePtr cur); -void xmlXPathDebugDumpCompExpr (FILE * output,
    xmlXPathCompExprPtr comp,
    int depth); -void xmlXPathFalseFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -void xmlXPathValueFlipSign (xmlXPathParserContextPtr ctxt); -void xmlXPathTranslateFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -void xmlXPathRegisterFuncLookup (xmlXPathContextPtr ctxt,
    xmlXPathFuncLookupFunc f,
    void * funcCtxt); -double xmlXPathPopNumber (xmlXPathParserContextPtr ctxt); -void xmlXPathRoundFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -xmlNodeSetPtr xmlXPathPopNodeSet (xmlXPathParserContextPtr ctxt); -void xmlXPathCountFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -xmlChar * xmlXPathParseNCName (xmlXPathParserContextPtr ctxt); -void xmlXPathTrueFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -xmlXPathObjectPtr xmlXPathNewBoolean (int val); -void xmlXPathSubValues (xmlXPathParserContextPtr ctxt); -int xmlXPathEqualValues (xmlXPathParserContextPtr ctxt); -xmlNodeSetPtr xmlXPathTrailingSorted (xmlNodeSetPtr nodes1,
    xmlNodeSetPtr nodes2); -void xmlXPathMultValues (xmlXPathParserContextPtr ctxt); -void xmlXPathModValues (xmlXPathParserContextPtr ctxt); -xmlXPathParserContextPtr xmlXPathNewParserContext (const xmlChar * str,
    xmlXPathContextPtr ctxt); -xmlXPathObjectPtr xmlXPathWrapNodeSet (xmlNodeSetPtr val); -xmlXPathObjectPtr xmlXPathWrapString (xmlChar * val); -void xmlXPathLangFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -int xmlXPathRegisterFuncNS (xmlXPathContextPtr ctxt,
    const xmlChar * name,
    const xmlChar * ns_uri,
    xmlXPathFunction f); -void xmlXPathNodeSetAddNs (xmlNodeSetPtr cur,
    xmlNodePtr node,
    xmlNsPtr ns); -void xmlXPathLocalNameFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -xmlNodeSetPtr xmlXPathDifference (xmlNodeSetPtr nodes1,
    xmlNodeSetPtr nodes2); -xmlNodeSetPtr xmlXPathLeadingSorted (xmlNodeSetPtr nodes1,
    xmlNodeSetPtr nodes2); -xmlNodePtr xmlXPathNextPrecedingSibling (xmlXPathParserContextPtr ctxt,
    xmlNodePtr cur); -void * xmlXPathPopExternal (xmlXPathParserContextPtr ctxt); -void xmlXPathNormalizeFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -void xmlXPathRegisterVariableLookup (xmlXPathContextPtr ctxt,
    xmlXPathVariableLookupFunc f,
    void * data); -void xmlXPathNodeSetDel (xmlNodeSetPtr cur,
    xmlNodePtr val); -xmlNodeSetPtr xmlXPathNodeTrailingSorted (xmlNodeSetPtr nodes,
    xmlNodePtr node); -xmlXPathObjectPtr xmlXPathNewCString (const char * val); -int xmlXPathRegisterFunc (xmlXPathContextPtr ctxt,
    const xmlChar * name,
    xmlXPathFunction f); -void xmlXPathSubstringAfterFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -xmlNodePtr xmlXPathNextDescendant (xmlXPathParserContextPtr ctxt,
    xmlNodePtr cur); -xmlNodePtr xmlXPathNextNamespace (xmlXPathParserContextPtr ctxt,
    xmlNodePtr cur); -xmlXPathObjectPtr xmlXPathWrapCString (char * val); -void xmlXPathFreeParserContext (xmlXPathParserContextPtr ctxt); -xmlNodeSetPtr xmlXPathNodeTrailing (xmlNodeSetPtr nodes,
    xmlNodePtr node); -void xmlXPathNodeSetAdd (xmlNodeSetPtr cur,
    xmlNodePtr val); -void xmlXPathNodeSetAddUnique (xmlNodeSetPtr cur,
    xmlNodePtr val); -xmlXPathObjectPtr xmlXPathNewValueTree (xmlNodePtr val); -xmlNodeSetPtr xmlXPathDistinct (xmlNodeSetPtr nodes); -xmlXPathObjectPtr xmlXPathVariableLookup (xmlXPathContextPtr ctxt,
    const xmlChar * name); -void xmlXPathNotFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -double xmlXPathStringEvalNumber (const xmlChar * str); -xmlNodePtr xmlXPathNextDescendantOrSelf (xmlXPathParserContextPtr ctxt,
    xmlNodePtr cur); -xmlXPathObjectPtr xmlXPathWrapExternal (void * val); -xmlNodePtr xmlXPathNextAttribute (xmlXPathParserContextPtr ctxt,
    xmlNodePtr cur); -void xmlXPathDivValues (xmlXPathParserContextPtr ctxt); -xmlXPathObjectPtr xmlXPathVariableLookupNS (xmlXPathContextPtr ctxt,
    const xmlChar * name,
    const xmlChar * ns_uri); -int xmlXPathRegisterVariableNS (xmlXPathContextPtr ctxt,
    const xmlChar * name,
    const xmlChar * ns_uri,
    xmlXPathObjectPtr value); -xmlNodeSetPtr xmlXPathTrailing (xmlNodeSetPtr nodes1,
    xmlNodeSetPtr nodes2); -void xmlXPathEvalExpr (xmlXPathParserContextPtr ctxt); -void xmlXPathDebugDumpObject (FILE * output,
    xmlXPathObjectPtr cur,
    int depth); -xmlNodeSetPtr xmlXPathLeading (xmlNodeSetPtr nodes1,
    xmlNodeSetPtr nodes2); -xmlChar * xmlXPathParseName (xmlXPathParserContextPtr ctxt); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Macro CAST_TO_BOOLEAN

    #define CAST_TO_BOOLEAN;
    -

    Macro to try to cast the value on the top of the XPath stack to a boolean.

    -
    -
    -

    Macro CAST_TO_NUMBER

    #define CAST_TO_NUMBER;
    -

    Macro to try to cast the value on the top of the XPath stack to a number.

    -
    -
    -

    Macro CAST_TO_STRING

    #define CAST_TO_STRING;
    -

    Macro to try to cast the value on the top of the XPath stack to a string.

    -
    -
    -

    Macro CHECK_ARITY

    #define CHECK_ARITY(x);
    -

    Macro to check that the number of args passed to an XPath function matches.

    x:the number of expected args
    -
    -
    -

    Macro CHECK_ERROR

    #define CHECK_ERROR;
    -

    Macro to return from the function if an XPath error was detected.

    -
    -
    -

    Macro CHECK_ERROR0

    #define CHECK_ERROR0;
    -

    Macro to return 0 from the function if an XPath error was detected.

    -
    -
    -

    Macro CHECK_TYPE

    #define CHECK_TYPE(typeval);
    -

    Macro to check that the value on top of the XPath stack is of a given type.

    typeval:the XPath type
    -
    -
    -

    Macro CHECK_TYPE0

    #define CHECK_TYPE0(typeval);
    -

    Macro to check that the value on top of the XPath stack is of a given type. Return(0) in case of failure

    typeval:the XPath type
    -
    -
    -

    Macro XP_ERROR

    #define XP_ERROR(X);
    -

    Macro to raise an XPath error and return.

    X:the error code
    -
    -
    -

    Macro XP_ERROR0

    #define XP_ERROR0(X);
    -

    Macro to raise an XPath error and return 0.

    X:the error code
    -
    -
    -

    Macro xmlXPathCheckError

    #define xmlXPathCheckError(ctxt);
    -

    Check if an XPath error was raised. Returns true if an error has been raised, false otherwise.

    ctxt:an XPath parser context
    -
    -
    -

    Macro xmlXPathEmptyNodeSet

    #define xmlXPathEmptyNodeSet(ns);
    -

    Empties a node-set.

    ns:a node-set
    -
    -
    -

    Macro xmlXPathGetContextNode

    #define xmlXPathGetContextNode(ctxt);
    -

    Get the context node of an XPath context. Returns the context node.

    ctxt:an XPath parser context
    -
    -
    -

    Macro xmlXPathGetDocument

    #define xmlXPathGetDocument(ctxt);
    -

    Get the document of an XPath context. Returns the context document.

    ctxt:an XPath parser context
    -
    -
    -

    Macro xmlXPathGetError

    #define xmlXPathGetError(ctxt);
    -

    Get the error code of an XPath context. Returns the context error.

    ctxt:an XPath parser context
    -
    -
    -

    Macro xmlXPathReturnBoolean

    #define xmlXPathReturnBoolean(ctxt, val);
    -

    Pushes the boolean @val on the context stack.

    ctxt:an XPath parser context
    val:a boolean
    -
    -
    -

    Macro xmlXPathReturnEmptyNodeSet

    #define xmlXPathReturnEmptyNodeSet(ctxt);
    -

    Pushes an empty node-set on the context stack.

    ctxt:an XPath parser context
    -
    -
    -

    Macro xmlXPathReturnEmptyString

    #define xmlXPathReturnEmptyString(ctxt);
    -

    Pushes an empty string on the stack.

    ctxt:an XPath parser context
    -
    -
    -

    Macro xmlXPathReturnExternal

    #define xmlXPathReturnExternal(ctxt, val);
    -

    Pushes user data on the context stack.

    ctxt:an XPath parser context
    val:user data
    -
    -
    -

    Macro xmlXPathReturnFalse

    #define xmlXPathReturnFalse(ctxt);
    -

    Pushes false on the context stack.

    ctxt:an XPath parser context
    -
    -
    -

    Macro xmlXPathReturnNodeSet

    #define xmlXPathReturnNodeSet(ctxt, ns);
    -

    Pushes the node-set @ns on the context stack.

    ctxt:an XPath parser context
    ns:a node-set
    -
    -
    -

    Macro xmlXPathReturnNumber

    #define xmlXPathReturnNumber(ctxt, val);
    -

    Pushes the double @val on the context stack.

    ctxt:an XPath parser context
    val:a double
    -
    -
    -

    Macro xmlXPathReturnString

    #define xmlXPathReturnString(ctxt, str);
    -

    Pushes the string @str on the context stack.

    ctxt:an XPath parser context
    str:a string
    -
    -
    -

    Macro xmlXPathReturnTrue

    #define xmlXPathReturnTrue(ctxt);
    -

    Pushes true on the context stack.

    ctxt:an XPath parser context
    -
    -
    -

    Macro xmlXPathSetArityError

    #define xmlXPathSetArityError(ctxt);
    -

    Raises an XPATH_INVALID_ARITY error.

    ctxt:an XPath parser context
    -
    -
    -

    Macro xmlXPathSetError

    #define xmlXPathSetError(ctxt, err);
    -

    Raises an error.

    ctxt:an XPath parser context
    err:an xmlXPathError code
    -
    -
    -

    Macro xmlXPathSetTypeError

    #define xmlXPathSetTypeError(ctxt);
    -

    Raises an XPATH_INVALID_TYPE error.

    ctxt:an XPath parser context
    -
    -
    -

    Macro xmlXPathStackIsExternal

    #define xmlXPathStackIsExternal(ctxt);
    -

    Checks if the current value on the XPath stack is an external object. Returns true if the current object on the stack is an external object.

    ctxt:an XPath parser context
    -
    -
    -

    Macro xmlXPathStackIsNodeSet

    #define xmlXPathStackIsNodeSet(ctxt);
    -

    Check if the current value on the XPath stack is a node set or an XSLT value tree. Returns true if the current object on the stack is a node-set.

    ctxt:an XPath parser context
    -
    -
    -

    valuePop ()

    xmlXPathObjectPtr	valuePop	(xmlXPathParserContextPtr ctxt)
    -

    Pops the top XPath object from the value stack

    -
    ctxt:an XPath evaluation context
    Returns:the XPath object just removed
    -
    -

    valuePush ()

    int	valuePush			(xmlXPathParserContextPtr ctxt, 
    xmlXPathObjectPtr value)
    -

    Pushes a new XPath object on top of the value stack

    -
    ctxt:an XPath evaluation context
    value:the XPath object
    Returns:the number of items on the value stack
    -
    -

    xmlXPathAddValues ()

    void	xmlXPathAddValues		(xmlXPathParserContextPtr ctxt)
    -

    Implement the add operation on XPath objects: The numeric operators convert their operands to numbers as if by calling the number function.

    -
    ctxt:the XPath Parser context
    -
    -

    xmlXPathBooleanFunction ()

    void	xmlXPathBooleanFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the boolean() XPath function boolean boolean(object) The boolean function converts its argument to a boolean as follows: - a number is true if and only if it is neither positive or negative zero nor NaN - a node-set is true if and only if it is non-empty - a string is true if and only if its length is non-zero

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathCeilingFunction ()

    void	xmlXPathCeilingFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the ceiling() XPath function number ceiling(number) The ceiling function returns the smallest (closest to negative infinity) number that is not less than the argument and that is an integer.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathCompareValues ()

    int	xmlXPathCompareValues		(xmlXPathParserContextPtr ctxt, 
    int inf,
    int strict)
    -

    Implement the compare operation on XPath objects: @arg1 < @arg2 (1, 1, ... @arg1 <= @arg2 (1, 0, ... @arg1 > @arg2 (0, 1, ... @arg1 >= @arg2 (0, 0, ... When neither object to be compared is a node-set and the operator is <=, <, >=, >, then the objects are compared by converted both objects to numbers and comparing the numbers according to IEEE 754. The < comparison will be true if and only if the first number is less than the second number. The <= comparison will be true if and only if the first number is less than or equal to the second number. The > comparison will be true if and only if the first number is greater than the second number. The >= comparison will be true if and only if the first number is greater than or equal to the second number.

    -
    ctxt:the XPath Parser context
    inf:less than (1) or greater than (0)
    strict:is the comparison strict
    Returns:1 if the comparison succeeded, 0 if it failed
    -
    -

    xmlXPathConcatFunction ()

    void	xmlXPathConcatFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the concat() XPath function string concat(string, string, string*) The concat function returns the concatenation of its arguments.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathContainsFunction ()

    void	xmlXPathContainsFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the contains() XPath function boolean contains(string, string) The contains function returns true if the first argument string contains the second argument string, and otherwise returns false.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathCountFunction ()

    void	xmlXPathCountFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the count() XPath function number count(node-set)

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathDebugDumpCompExpr ()

    void	xmlXPathDebugDumpCompExpr	(FILE * output, 
    xmlXPathCompExprPtr comp,
    int depth)
    -

    Dumps the tree of the compiled XPath expression.

    -
    output:the FILE * for the output
    comp:the precompiled XPath expression
    depth:the indentation level.
    -
    -

    xmlXPathDebugDumpObject ()

    void	xmlXPathDebugDumpObject		(FILE * output, 
    xmlXPathObjectPtr cur,
    int depth)
    -

    Dump the content of the object for debugging purposes

    -
    output:the FILE * to dump the output
    cur:the object to inspect
    depth:indentation level
    -
    -

    xmlXPathDifference ()

    xmlNodeSetPtr	xmlXPathDifference	(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -

    Implements the EXSLT - Sets difference() function: node-set set:difference (node-set, node-set)

    -
    nodes1:a node-set
    nodes2:a node-set
    Returns:the difference between the two node sets, or nodes1 if nodes2 is empty
    -
    -

    xmlXPathDistinct ()

    xmlNodeSetPtr	xmlXPathDistinct	(xmlNodeSetPtr nodes)
    -

    Implements the EXSLT - Sets distinct() function: node-set set:distinct (node-set) @nodes is sorted by document order, then #exslSetsDistinctSorted is called with the sorted node-set

    -
    nodes:a node-set
    Returns:a subset of the nodes contained in @nodes, or @nodes if it is empty
    -
    -

    xmlXPathDistinctSorted ()

    xmlNodeSetPtr	xmlXPathDistinctSorted	(xmlNodeSetPtr nodes)
    -

    Implements the EXSLT - Sets distinct() function: node-set set:distinct (node-set)

    -
    nodes:a node-set, sorted by document order
    Returns:a subset of the nodes contained in @nodes, or @nodes if it is empty
    -
    -

    xmlXPathDivValues ()

    void	xmlXPathDivValues		(xmlXPathParserContextPtr ctxt)
    -

    Implement the div operation on XPath objects @arg1 / @arg2: The numeric operators convert their operands to numbers as if by calling the number function.

    -
    ctxt:the XPath Parser context
    -
    -

    xmlXPathEqualValues ()

    int	xmlXPathEqualValues		(xmlXPathParserContextPtr ctxt)
    -

    Implement the equal operation on XPath objects content: @arg1 == @arg2

    -
    ctxt:the XPath Parser context
    Returns:0 or 1 depending on the results of the test.
    -
    -

    xmlXPathErr ()

    void	xmlXPathErr			(xmlXPathParserContextPtr ctxt, 
    int error)
    -

    Handle an XPath error

    -
    ctxt:a XPath parser context
    error:the error code
    -
    -

    xmlXPathEvalExpr ()

    void	xmlXPathEvalExpr		(xmlXPathParserContextPtr ctxt)
    -

    Parse and evaluate an XPath expression in the given context, then push the result on the context stack

    -
    ctxt:the XPath Parser context
    -
    -

    xmlXPathEvaluatePredicateResult ()

    int	xmlXPathEvaluatePredicateResult	(xmlXPathParserContextPtr ctxt, 
    xmlXPathObjectPtr res)
    -

    Evaluate a predicate result for the current node. A PredicateExpr is evaluated by evaluating the Expr and converting the result to a boolean. If the result is a number, the result will be converted to true if the number is equal to the position of the context node in the context node list (as returned by the position function) and will be converted to false otherwise; if the result is not a number, then the result will be converted as if by a call to the boolean function.

    -
    ctxt:the XPath Parser context
    res:the Predicate Expression evaluation result
    Returns:1 if predicate is true, 0 otherwise
    -
    -

    xmlXPathFalseFunction ()

    void	xmlXPathFalseFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the false() XPath function boolean false()

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathFloorFunction ()

    void	xmlXPathFloorFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the floor() XPath function number floor(number) The floor function returns the largest (closest to positive infinity) number that is not greater than the argument and that is an integer.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    - -
    -

    xmlXPathFunctionLookup ()

    xmlXPathFunction	xmlXPathFunctionLookup	(xmlXPathContextPtr ctxt, 
    const xmlChar * name)
    -

    Search in the Function array of the context for the given function.

    -
    ctxt:the XPath context
    name:the function name
    Returns:the xmlXPathFunction or NULL if not found
    -
    -

    xmlXPathFunctionLookupNS ()

    xmlXPathFunction	xmlXPathFunctionLookupNS	(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri)
    -

    Search in the Function array of the context for the given function.

    -
    ctxt:the XPath context
    name:the function name
    ns_uri:the function namespace URI
    Returns:the xmlXPathFunction or NULL if not found
    -
    -

    xmlXPathHasSameNodes ()

    int	xmlXPathHasSameNodes		(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -

    Implements the EXSLT - Sets has-same-nodes function: boolean set:has-same-node(node-set, node-set)

    -
    nodes1:a node-set
    nodes2:a node-set
    Returns:true (1) if @nodes1 shares any node with @nodes2, false (0) otherwise
    -
    -

    xmlXPathIdFunction ()

    void	xmlXPathIdFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the id() XPath function node-set id(object) The id function selects elements by their unique ID (see [5.2.1 Unique IDs]). When the argument to id is of type node-set, then the result is the union of the result of applying id to the string value of each of the nodes in the argument node-set. When the argument to id is of any other type, the argument is converted to a string as if by a call to the string function; the string is split into a whitespace-separated list of tokens (whitespace is any sequence of characters matching the production S); the result is a node-set containing the elements in the same document as the context node that have a unique ID equal to any of the tokens in the list.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathIntersection ()

    xmlNodeSetPtr	xmlXPathIntersection	(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -

    Implements the EXSLT - Sets intersection() function: node-set set:intersection (node-set, node-set)

    -
    nodes1:a node-set
    nodes2:a node-set
    Returns:a node set comprising the nodes that are within both the node sets passed as arguments
    -
    -

    xmlXPathIsNodeType ()

    int	xmlXPathIsNodeType		(const xmlChar * name)
    -

    Is the name given a NodeType one. [38] NodeType ::= 'comment' | 'text' | 'processing-instruction' | 'node'

    -
    name:a name string
    Returns:1 if true 0 otherwise
    -
    -

    xmlXPathLangFunction ()

    void	xmlXPathLangFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the lang() XPath function boolean lang(string) The lang function returns true or false depending on whether the language of the context node as specified by xml:lang attributes is the same as or is a sublanguage of the language specified by the argument string. The language of the context node is determined by the value of the xml:lang attribute on the context node, or, if the context node has no xml:lang attribute, by the value of the xml:lang attribute on the nearest ancestor of the context node that has an xml:lang attribute. If there is no such attribute, then lang

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathLastFunction ()

    void	xmlXPathLastFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the last() XPath function number last() The last function returns the number of nodes in the context node list.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathLeading ()

    xmlNodeSetPtr	xmlXPathLeading		(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -

    Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set) @nodes1 and @nodes2 are sorted by document order, then #exslSetsLeadingSorted is called.

    -
    nodes1:a node-set
    nodes2:a node-set
    Returns:the nodes in @nodes1 that precede the first node in @nodes2 in document order, @nodes1 if @nodes2 is NULL or empty or an empty node-set if @nodes1 doesn't contain @nodes2
    -
    -

    xmlXPathLeadingSorted ()

    xmlNodeSetPtr	xmlXPathLeadingSorted	(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -

    Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set)

    -
    nodes1:a node-set, sorted by document order
    nodes2:a node-set, sorted by document order
    Returns:the nodes in @nodes1 that precede the first node in @nodes2 in document order, @nodes1 if @nodes2 is NULL or empty or an empty node-set if @nodes1 doesn't contain @nodes2
    -
    -

    xmlXPathLocalNameFunction ()

    void	xmlXPathLocalNameFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the local-name() XPath function string local-name(node-set?) The local-name function returns a string containing the local part of the name of the node in the argument node-set that is first in document order. If the node-set is empty or the first node has no name, an empty string is returned. If the argument is omitted it defaults to the context node.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathModValues ()

    void	xmlXPathModValues		(xmlXPathParserContextPtr ctxt)
    -

    Implement the mod operation on XPath objects: @arg1 / @arg2 The numeric operators convert their operands to numbers as if by calling the number function.

    -
    ctxt:the XPath Parser context
    -
    -

    xmlXPathMultValues ()

    void	xmlXPathMultValues		(xmlXPathParserContextPtr ctxt)
    -

    Implement the multiply operation on XPath objects: The numeric operators convert their operands to numbers as if by calling the number function.

    -
    ctxt:the XPath Parser context
    -
    -

    xmlXPathNamespaceURIFunction ()

    void	xmlXPathNamespaceURIFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the namespace-uri() XPath function string namespace-uri(node-set?) The namespace-uri function returns a string containing the namespace URI of the expanded name of the node in the argument node-set that is first in document order. If the node-set is empty, the first node has no name, or the expanded name has no namespace URI, an empty string is returned. If the argument is omitted it defaults to the context node.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathNewBoolean ()

    xmlXPathObjectPtr	xmlXPathNewBoolean	(int val)
    -

    Create a new xmlXPathObjectPtr of type boolean and of value @val

    -
    val:the boolean value
    Returns:the newly created object.
    -
    -

    xmlXPathNewCString ()

    xmlXPathObjectPtr	xmlXPathNewCString	(const char * val)
    -

    Create a new xmlXPathObjectPtr of type string and of value @val

    -
    val:the char * value
    Returns:the newly created object.
    -
    -

    xmlXPathNewFloat ()

    xmlXPathObjectPtr	xmlXPathNewFloat	(double val)
    -

    Create a new xmlXPathObjectPtr of type double and of value @val

    -
    val:the double value
    Returns:the newly created object.
    -
    -

    xmlXPathNewNodeSet ()

    xmlXPathObjectPtr	xmlXPathNewNodeSet	(xmlNodePtr val)
    -

    Create a new xmlXPathObjectPtr of type NodeSet and initialize it with the single Node @val

    -
    val:the NodePtr value
    Returns:the newly created object.
    -
    -

    xmlXPathNewNodeSetList ()

    xmlXPathObjectPtr	xmlXPathNewNodeSetList	(xmlNodeSetPtr val)
    -

    Create a new xmlXPathObjectPtr of type NodeSet and initialize it with the Nodeset @val

    -
    val:an existing NodeSet
    Returns:the newly created object.
    -
    -

    xmlXPathNewParserContext ()

    xmlXPathParserContextPtr	xmlXPathNewParserContext	(const xmlChar * str, 
    xmlXPathContextPtr ctxt)
    -

    Create a new xmlXPathParserContext

    -
    str:the XPath expression
    ctxt:the XPath context
    Returns:the xmlXPathParserContext just allocated.
    -
    -

    xmlXPathNewString ()

    xmlXPathObjectPtr	xmlXPathNewString	(const xmlChar * val)
    -

    Create a new xmlXPathObjectPtr of type string and of value @val

    -
    val:the xmlChar * value
    Returns:the newly created object.
    -
    -

    xmlXPathNewValueTree ()

    xmlXPathObjectPtr	xmlXPathNewValueTree	(xmlNodePtr val)
    -

    Create a new xmlXPathObjectPtr of type Value Tree (XSLT) and initialize it with the tree root @val

    -
    val:the NodePtr value
    Returns:the newly created object.
    -
    -

    xmlXPathNextAncestor ()

    xmlNodePtr	xmlXPathNextAncestor	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "ancestor" direction the ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; the nodes are ordered in reverse document order; thus the parent is the first node on the axis, and the parent's parent is the second node on the axis

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis
    -
    -

    xmlXPathNextAncestorOrSelf ()

    xmlNodePtr	xmlXPathNextAncestorOrSelf	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "ancestor-or-self" direction he ancestor-or-self axis contains the context node and ancestors of the context node in reverse document order; thus the context node is the first node on the axis, and the context node's parent the second; parent here is defined the same as with the parent axis.

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis
    -
    -

    xmlXPathNextAttribute ()

    xmlNodePtr	xmlXPathNextAttribute	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "attribute" direction TODO: support DTD inherited default attributes

    -
    ctxt:the XPath Parser context
    cur:the current attribute in the traversal
    Returns:the next element following that axis
    -
    -

    xmlXPathNextChild ()

    xmlNodePtr	xmlXPathNextChild	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "child" direction The child axis contains the children of the context node in document order.

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis
    -
    -

    xmlXPathNextDescendant ()

    xmlNodePtr	xmlXPathNextDescendant	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "descendant" direction the descendant axis contains the descendants of the context node in document order; a descendant is a child or a child of a child and so on.

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis
    -
    -

    xmlXPathNextDescendantOrSelf ()

    xmlNodePtr	xmlXPathNextDescendantOrSelf	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "descendant-or-self" direction the descendant-or-self axis contains the context node and the descendants of the context node in document order; thus the context node is the first node on the axis, and the first child of the context node is the second node on the axis

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis
    -
    -

    xmlXPathNextFollowing ()

    xmlNodePtr	xmlXPathNextFollowing	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "following" direction The following axis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute nodes and namespace nodes; the nodes are ordered in document order

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis
    -
    -

    xmlXPathNextFollowingSibling ()

    xmlNodePtr	xmlXPathNextFollowingSibling	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "following-sibling" direction The following-sibling axis contains the following siblings of the context node in document order.

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis
    -
    -

    xmlXPathNextNamespace ()

    xmlNodePtr	xmlXPathNextNamespace	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "namespace" direction the namespace axis contains the namespace nodes of the context node; the order of nodes on this axis is implementation-defined; the axis will be empty unless the context node is an element We keep the XML namespace node at the end of the list.

    -
    ctxt:the XPath Parser context
    cur:the current attribute in the traversal
    Returns:the next element following that axis
    -
    -

    xmlXPathNextParent ()

    xmlNodePtr	xmlXPathNextParent	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "parent" direction The parent axis contains the parent of the context node, if there is one.

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis
    -
    -

    xmlXPathNextPreceding ()

    xmlNodePtr	xmlXPathNextPreceding	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "preceding" direction the preceding axis contains all nodes in the same document as the context node that are before the context node in document order, excluding any ancestors and excluding attribute nodes and namespace nodes; the nodes are ordered in reverse document order

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis
    -
    -

    xmlXPathNextPrecedingSibling ()

    xmlNodePtr	xmlXPathNextPrecedingSibling	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "preceding-sibling" direction The preceding-sibling axis contains the preceding siblings of the context node in reverse document order; the first preceding sibling is first on the axis; the sibling preceding that node is the second on the axis and so on.

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis
    -
    -

    xmlXPathNextSelf ()

    xmlNodePtr	xmlXPathNextSelf	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "self" direction The self axis contains just the context node itself

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis
    -
    -

    xmlXPathNodeLeading ()

    xmlNodeSetPtr	xmlXPathNodeLeading	(xmlNodeSetPtr nodes, 
    xmlNodePtr node)
    -

    Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set) @nodes is sorted by document order, then #exslSetsNodeLeadingSorted is called.

    -
    nodes:a node-set
    node:a node
    Returns:the nodes in @nodes that precede @node in document order, @nodes if @node is NULL or an empty node-set if @nodes doesn't contain @node
    -
    -

    xmlXPathNodeLeadingSorted ()

    xmlNodeSetPtr	xmlXPathNodeLeadingSorted	(xmlNodeSetPtr nodes, 
    xmlNodePtr node)
    -

    Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set)

    -
    nodes:a node-set, sorted by document order
    node:a node
    Returns:the nodes in @nodes that precede @node in document order, @nodes if @node is NULL or an empty node-set if @nodes doesn't contain @node
    -
    -

    xmlXPathNodeSetAdd ()

    void	xmlXPathNodeSetAdd		(xmlNodeSetPtr cur, 
    xmlNodePtr val)
    -

    add a new xmlNodePtr to an existing NodeSet

    -
    cur:the initial node set
    val:a new xmlNodePtr
    -
    -

    xmlXPathNodeSetAddNs ()

    void	xmlXPathNodeSetAddNs		(xmlNodeSetPtr cur, 
    xmlNodePtr node,
    xmlNsPtr ns)
    -

    add a new namespace node to an existing NodeSet

    -
    cur:the initial node set
    node:the hosting node
    ns:a the namespace node
    -
    -

    xmlXPathNodeSetAddUnique ()

    void	xmlXPathNodeSetAddUnique	(xmlNodeSetPtr cur, 
    xmlNodePtr val)
    -

    add a new xmlNodePtr to an existing NodeSet, optimized version when we are sure the node is not already in the set.

    -
    cur:the initial node set
    val:a new xmlNodePtr
    -
    -

    xmlXPathNodeSetContains ()

    int	xmlXPathNodeSetContains		(xmlNodeSetPtr cur, 
    xmlNodePtr val)
    -

    checks whether @cur contains @val

    -
    cur:the node-set
    val:the node
    Returns:true (1) if @cur contains @val, false (0) otherwise
    -
    -

    xmlXPathNodeSetDel ()

    void	xmlXPathNodeSetDel		(xmlNodeSetPtr cur, 
    xmlNodePtr val)
    -

    Removes an xmlNodePtr from an existing NodeSet

    -
    cur:the initial node set
    val:an xmlNodePtr
    -
    -

    xmlXPathNodeSetFreeNs ()

    void	xmlXPathNodeSetFreeNs		(xmlNsPtr ns)
    -

    Namespace nodes in libxml don't match the XPath semantic. In a node set the namespace nodes are duplicated and the next pointer is set to the parent node in the XPath semantic. Check if such a node needs to be freed

    -
    ns:the XPath namespace node found in a nodeset.
    -
    -

    xmlXPathNodeSetMerge ()

    xmlNodeSetPtr	xmlXPathNodeSetMerge	(xmlNodeSetPtr val1, 
    xmlNodeSetPtr val2)
    -

    Merges two nodesets, all nodes from @val2 are added to @val1 if @val1 is NULL, a new set is created and copied from @val2

    -
    val1:the first NodeSet or NULL
    val2:the second NodeSet
    Returns:@val1 once extended or NULL in case of error.
    -
    -

    xmlXPathNodeSetRemove ()

    void	xmlXPathNodeSetRemove		(xmlNodeSetPtr cur, 
    int val)
    -

    Removes an entry from an existing NodeSet list.

    -
    cur:the initial node set
    val:the index to remove
    -
    -

    xmlXPathNodeSetSort ()

    void	xmlXPathNodeSetSort		(xmlNodeSetPtr set)
    -

    Sort the node set in document order

    -
    set:the node set
    -
    -

    xmlXPathNodeTrailing ()

    xmlNodeSetPtr	xmlXPathNodeTrailing	(xmlNodeSetPtr nodes, 
    xmlNodePtr node)
    -

    Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set) @nodes is sorted by document order, then #xmlXPathNodeTrailingSorted is called.

    -
    nodes:a node-set
    node:a node
    Returns:the nodes in @nodes that follow @node in document order, @nodes if @node is NULL or an empty node-set if @nodes doesn't contain @node
    -
    -

    xmlXPathNodeTrailingSorted ()

    xmlNodeSetPtr	xmlXPathNodeTrailingSorted	(xmlNodeSetPtr nodes, 
    xmlNodePtr node)
    -

    Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set)

    -
    nodes:a node-set, sorted by document order
    node:a node
    Returns:the nodes in @nodes that follow @node in document order, @nodes if @node is NULL or an empty node-set if @nodes doesn't contain @node
    -
    -

    xmlXPathNormalizeFunction ()

    void	xmlXPathNormalizeFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the normalize-space() XPath function string normalize-space(string?) The normalize-space function returns the argument string with white space normalized by stripping leading and trailing whitespace and replacing sequences of whitespace characters by a single space. Whitespace characters are the same allowed by the S production in XML. If the argument is omitted, it defaults to the context node converted to a string, in other words the value of the context node.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathNotEqualValues ()

    int	xmlXPathNotEqualValues		(xmlXPathParserContextPtr ctxt)
    -

    Implement the equal operation on XPath objects content: @arg1 == @arg2

    -
    ctxt:the XPath Parser context
    Returns:0 or 1 depending on the results of the test.
    -
    -

    xmlXPathNotFunction ()

    void	xmlXPathNotFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the not() XPath function boolean not(boolean) The not function returns true if its argument is false, and false otherwise.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathNsLookup ()

    const xmlChar *	xmlXPathNsLookup	(xmlXPathContextPtr ctxt, 
    const xmlChar * prefix)
    -

    Search in the namespace declaration array of the context for the given namespace name associated to the given prefix

    -
    ctxt:the XPath context
    prefix:the namespace prefix value
    Returns:the value or NULL if not found
    -
    -

    xmlXPathNumberFunction ()

    void	xmlXPathNumberFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the number() XPath function number number(object?)

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathParseNCName ()

    xmlChar *	xmlXPathParseNCName	(xmlXPathParserContextPtr ctxt)
    -

    parse an XML namespace non qualified name. [NS 3] NCName ::= (Letter | '_') (NCNameChar)* [NS 4] NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender

    -
    ctxt:the XPath Parser context
    Returns:the namespace name or NULL
    -
    -

    xmlXPathParseName ()

    xmlChar *	xmlXPathParseName	(xmlXPathParserContextPtr ctxt)
    -

    parse an XML name [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)*

    -
    ctxt:the XPath Parser context
    Returns:the namespace name or NULL
    -
    -

    xmlXPathPopBoolean ()

    int	xmlXPathPopBoolean		(xmlXPathParserContextPtr ctxt)
    -

    Pops a boolean from the stack, handling conversion if needed. Check error with #xmlXPathCheckError.

    -
    ctxt:an XPath parser context
    Returns:the boolean
    -
    -

    xmlXPathPopExternal ()

    void *	xmlXPathPopExternal		(xmlXPathParserContextPtr ctxt)
    -

    Pops an external object from the stack, handling conversion if needed. Check error with #xmlXPathCheckError.

    -
    ctxt:an XPath parser context
    Returns:the object
    -
    -

    xmlXPathPopNodeSet ()

    xmlNodeSetPtr	xmlXPathPopNodeSet	(xmlXPathParserContextPtr ctxt)
    -

    Pops a node-set from the stack, handling conversion if needed. Check error with #xmlXPathCheckError.

    -
    ctxt:an XPath parser context
    Returns:the node-set
    -
    -

    xmlXPathPopNumber ()

    double	xmlXPathPopNumber		(xmlXPathParserContextPtr ctxt)
    -

    Pops a number from the stack, handling conversion if needed. Check error with #xmlXPathCheckError.

    -
    ctxt:an XPath parser context
    Returns:the number
    -
    -

    xmlXPathPopString ()

    xmlChar *	xmlXPathPopString	(xmlXPathParserContextPtr ctxt)
    -

    Pops a string from the stack, handling conversion if needed. Check error with #xmlXPathCheckError.

    -
    ctxt:an XPath parser context
    Returns:the string
    -
    -

    xmlXPathPositionFunction ()

    void	xmlXPathPositionFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the position() XPath function number position() The position function returns the position of the context node in the context node list. The first position is 1, and so the last position will be equal to last().

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathRegisterAllFunctions ()

    void	xmlXPathRegisterAllFunctions	(xmlXPathContextPtr ctxt)
    -

    Registers all default XPath functions in this context

    -
    ctxt:the XPath context
    -
    -

    xmlXPathRegisterFunc ()

    int	xmlXPathRegisterFunc		(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    xmlXPathFunction f)
    -

    Register a new function. If @f is NULL it unregisters the function

    -
    ctxt:the XPath context
    name:the function name
    f:the function implementation or NULL
    Returns:0 in case of success, -1 in case of error
    -
    -

    xmlXPathRegisterFuncLookup ()

    void	xmlXPathRegisterFuncLookup	(xmlXPathContextPtr ctxt, 
    xmlXPathFuncLookupFunc f,
    void * funcCtxt)
    -

    Registers an external mechanism to do function lookup.

    -
    ctxt:the XPath context
    f:the lookup function
    funcCtxt:the lookup data
    -
    -

    xmlXPathRegisterFuncNS ()

    int	xmlXPathRegisterFuncNS		(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri,
    xmlXPathFunction f)
    -

    Register a new function. If @f is NULL it unregisters the function

    -
    ctxt:the XPath context
    name:the function name
    ns_uri:the function namespace URI
    f:the function implementation or NULL
    Returns:0 in case of success, -1 in case of error
    -
    -

    xmlXPathRegisterNs ()

    int	xmlXPathRegisterNs		(xmlXPathContextPtr ctxt, 
    const xmlChar * prefix,
    const xmlChar * ns_uri)
    -

    Register a new namespace. If @ns_uri is NULL it unregisters the namespace

    -
    ctxt:the XPath context
    prefix:the namespace prefix
    ns_uri:the namespace name
    Returns:0 in case of success, -1 in case of error
    -
    -

    xmlXPathRegisterVariable ()

    int	xmlXPathRegisterVariable	(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    xmlXPathObjectPtr value)
    -

    Register a new variable value. If @value is NULL it unregisters the variable

    -
    ctxt:the XPath context
    name:the variable name
    value:the variable value or NULL
    Returns:0 in case of success, -1 in case of error
    -
    -

    xmlXPathRegisterVariableLookup ()

    void	xmlXPathRegisterVariableLookup	(xmlXPathContextPtr ctxt, 
    xmlXPathVariableLookupFunc f,
    void * data)
    -

    register an external mechanism to do variable lookup

    -
    ctxt:the XPath context
    f:the lookup function
    data:the lookup data
    -
    -

    xmlXPathRegisterVariableNS ()

    int	xmlXPathRegisterVariableNS	(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri,
    xmlXPathObjectPtr value)
    -

    Register a new variable value. If @value is NULL it unregisters the variable

    -
    ctxt:the XPath context
    name:the variable name
    ns_uri:the variable namespace URI
    value:the variable value or NULL
    Returns:0 in case of success, -1 in case of error
    -
    -

    xmlXPathRegisteredFuncsCleanup ()

    void	xmlXPathRegisteredFuncsCleanup	(xmlXPathContextPtr ctxt)
    -

    Cleanup the XPath context data associated to registered functions

    -
    ctxt:the XPath context
    -
    -

    xmlXPathRegisteredNsCleanup ()

    void	xmlXPathRegisteredNsCleanup	(xmlXPathContextPtr ctxt)
    -

    Cleanup the XPath context data associated to registered variables

    -
    ctxt:the XPath context
    -
    -

    xmlXPathRegisteredVariablesCleanup ()

    void	xmlXPathRegisteredVariablesCleanup	(xmlXPathContextPtr ctxt)
    -

    Cleanup the XPath context data associated to registered variables

    -
    ctxt:the XPath context
    -
    -

    xmlXPathRoot ()

    void	xmlXPathRoot			(xmlXPathParserContextPtr ctxt)
    -

    Initialize the context to the root of the document

    -
    ctxt:the XPath Parser context
    -
    -

    xmlXPathRoundFunction ()

    void	xmlXPathRoundFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the round() XPath function number round(number) The round function returns the number that is closest to the argument and that is an integer. If there are two such numbers, then the one that is even is returned.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathStartsWithFunction ()

    void	xmlXPathStartsWithFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the starts-with() XPath function boolean starts-with(string, string) The starts-with function returns true if the first argument string starts with the second argument string, and otherwise returns false.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathStringEvalNumber ()

    double	xmlXPathStringEvalNumber	(const xmlChar * str)
    -

    [30a] Float ::= Number ('e' Digits?)? [30] Number ::= Digits ('.' Digits?)? | '.' Digits [31] Digits ::= [0-9]+ Compile a Number in the string In complement of the Number expression, this function also handles negative values : '-' Number.

    -
    str:A string to scan
    Returns:the double value.
    -
    -

    xmlXPathStringFunction ()

    void	xmlXPathStringFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the string() XPath function string string(object?) The string function converts an object to a string as follows: - A node-set is converted to a string by returning the value of the node in the node-set that is first in document order. If the node-set is empty, an empty string is returned. - A number is converted to a string as follows + NaN is converted to the string NaN + positive zero is converted to the string 0 + negative zero is converted to the string 0 + positive infinity is converted to the string Infinity + negative infinity is converted to the string -Infinity + if the number is an integer, the number is represented in decimal form as a Number with no decimal point and no leading zeros, preceded by a minus sign (-) if the number is negative + otherwise, the number is represented in decimal form as a Number including a decimal point with at least one digit before the decimal point and at least one digit after the decimal point, preceded by a minus sign (-) if the number is negative; there must be no leading zeros before the decimal point apart possibly from the one required digit immediately before the decimal point; beyond the one required digit after the decimal point there must be as many, but only as many, more digits as are needed to uniquely distinguish the number from all other IEEE 754 numeric values. - The boolean false value is converted to the string false. The boolean true value is converted to the string true. If the argument is omitted, it defaults to a node-set with the context node as its only member.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathStringLengthFunction ()

    void	xmlXPathStringLengthFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the string-length() XPath function number string-length(string?) The string-length returns the number of characters in the string (see [3.6 Strings]). If the argument is omitted, it defaults to the context node converted to a string, in other words the value of the context node.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathSubValues ()

    void	xmlXPathSubValues		(xmlXPathParserContextPtr ctxt)
    -

    Implement the subtraction operation on XPath objects: The numeric operators convert their operands to numbers as if by calling the number function.

    -
    ctxt:the XPath Parser context
    -
    -

    xmlXPathSubstringAfterFunction ()

    void	xmlXPathSubstringAfterFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the substring-after() XPath function string substring-after(string, string) The substring-after function returns the substring of the first argument string that follows the first occurrence of the second argument string in the first argument string, or the empty stringi if the first argument string does not contain the second argument string. For example, substring-after("1999/04/01","/") returns 04/01, and substring-after("1999/04/01","19") returns 99/04/01.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathSubstringBeforeFunction ()

    void	xmlXPathSubstringBeforeFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the substring-before() XPath function string substring-before(string, string) The substring-before function returns the substring of the first argument string that precedes the first occurrence of the second argument string in the first argument string, or the empty string if the first argument string does not contain the second argument string. For example, substring-before("1999/04/01","/") returns 1999.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathSubstringFunction ()

    void	xmlXPathSubstringFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the substring() XPath function string substring(string, number, number?) The substring function returns the substring of the first argument starting at the position specified in the second argument with length specified in the third argument. For example, substring("12345",2,3) returns "234". If the third argument is not specified, it returns the substring starting at the position specified in the second argument and continuing to the end of the string. For example, substring("12345",2) returns "2345". More precisely, each character in the string (see [3.6 Strings]) is considered to have a numeric position: the position of the first character is 1, the position of the second character is 2 and so on. The returned substring contains those characters for which the position of the character is greater than or equal to the second argument and, if the third argument is specified, less than the sum of the second and third arguments; the comparisons and addition used for the above follow the standard IEEE 754 rules. Thus: - substring("12345", 1.5, 2.6) returns "234" - substring("12345", 0, 3) returns "12" - substring("12345", 0 div 0, 3) returns "" - substring("12345", 1, 0 div 0) returns "" - substring("12345", -42, 1 div 0) returns "12345" - substring("12345", -1 div 0, 1 div 0) returns ""

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathSumFunction ()

    void	xmlXPathSumFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the sum() XPath function number sum(node-set) The sum function returns the sum of the values of the nodes in the argument node-set.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathTrailing ()

    xmlNodeSetPtr	xmlXPathTrailing	(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -

    Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set) @nodes1 and @nodes2 are sorted by document order, then #xmlXPathTrailingSorted is called.

    -
    nodes1:a node-set
    nodes2:a node-set
    Returns:the nodes in @nodes1 that follow the first node in @nodes2 in document order, @nodes1 if @nodes2 is NULL or empty or an empty node-set if @nodes1 doesn't contain @nodes2
    -
    -

    xmlXPathTrailingSorted ()

    xmlNodeSetPtr	xmlXPathTrailingSorted	(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -

    Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set)

    -
    nodes1:a node-set, sorted by document order
    nodes2:a node-set, sorted by document order
    Returns:the nodes in @nodes1 that follow the first node in @nodes2 in document order, @nodes1 if @nodes2 is NULL or empty or an empty node-set if @nodes1 doesn't contain @nodes2
    -
    -

    xmlXPathTranslateFunction ()

    void	xmlXPathTranslateFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the translate() XPath function string translate(string, string, string) The translate function returns the first argument string with occurrences of characters in the second argument string replaced by the character at the corresponding position in the third argument string. For example, translate("bar","abc","ABC") returns the string BAr. If there is a character in the second argument string with no character at a corresponding position in the third argument string (because the second argument string is longer than the third argument string), then occurrences of that character in the first argument string are removed. For example, translate("--aaa--","abc-","ABC")

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathTrueFunction ()

    void	xmlXPathTrueFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the true() XPath function boolean true()

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments
    -
    -

    xmlXPathValueFlipSign ()

    void	xmlXPathValueFlipSign		(xmlXPathParserContextPtr ctxt)
    -

    Implement the unary - operation on an XPath object The numeric operators convert their operands to numbers as if by calling the number function.

    -
    ctxt:the XPath Parser context
    -
    -

    xmlXPathVariableLookup ()

    xmlXPathObjectPtr	xmlXPathVariableLookup	(xmlXPathContextPtr ctxt, 
    const xmlChar * name)
    -

    Search in the Variable array of the context for the given variable value.

    -
    ctxt:the XPath context
    name:the variable name
    Returns:a copy of the value or NULL if not found
    -
    -

    xmlXPathVariableLookupNS ()

    xmlXPathObjectPtr	xmlXPathVariableLookupNS	(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri)
    -

    Search in the Variable array of the context for the given variable value.

    -
    ctxt:the XPath context
    name:the variable name
    ns_uri:the variable namespace URI
    Returns:the a copy of the value or NULL if not found
    -
    -

    xmlXPathWrapCString ()

    xmlXPathObjectPtr	xmlXPathWrapCString	(char * val)
    -

    Wraps a string into an XPath object.

    -
    val:the char * value
    Returns:the newly created object.
    -
    -

    xmlXPathWrapExternal ()

    xmlXPathObjectPtr	xmlXPathWrapExternal	(void * val)
    -

    Wraps the @val data into an XPath object.

    -
    val:the user data
    Returns:the newly created object.
    -
    -

    xmlXPathWrapNodeSet ()

    xmlXPathObjectPtr	xmlXPathWrapNodeSet	(xmlNodeSetPtr val)
    -

    Wrap the Nodeset @val in a new xmlXPathObjectPtr

    -
    val:the NodePtr value
    Returns:the newly created object.
    -
    -

    xmlXPathWrapString ()

    xmlXPathObjectPtr	xmlXPathWrapString	(xmlChar * val)
    -

    Wraps the @val string into an XPath object.

    -
    val:the xmlChar * value
    Returns:the newly created object.
    -
    -

    xmlXPatherror ()

    void	xmlXPatherror			(xmlXPathParserContextPtr ctxt, 
    const char * file,
    int line,
    int no)
    -

    Formats an error message.

    -
    ctxt:the XPath Parser context
    file:the file name
    line:the line number
    no:the error number
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xpointer.html b/src/tools/docbook/libxml2/doc/devhelp/libxml2-xpointer.html deleted file mode 100644 index 807eed76be..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2-xpointer.html +++ /dev/null @@ -1,171 +0,0 @@ - - - - - xpointer: API to handle XML Pointers - - - - - - - - - - - - - - - -

    - xpointer -

    -

    xpointer - API to handle XML Pointers

    -

    API to handle XML Pointers Base implementation was made accordingly to W3C Candidate Recommendation 7 June 2000

    -

    Author(s): Daniel Veillard

    -
    -

    Synopsis

    -
    typedef struct _xmlLocationSet xmlLocationSet;
    -typedef xmlLocationSet * xmlLocationSetPtr;
    -xmlXPathObjectPtr	xmlXPtrNewRange	(xmlNodePtr start, 
    int startindex,
    xmlNodePtr end,
    int endindex); -void xmlXPtrFreeLocationSet (xmlLocationSetPtr obj); -xmlXPathObjectPtr xmlXPtrWrapLocationSet (xmlLocationSetPtr val); -xmlNodePtr xmlXPtrBuildNodeList (xmlXPathObjectPtr obj); -xmlXPathObjectPtr xmlXPtrEval (const xmlChar * str,
    xmlXPathContextPtr ctx); -xmlXPathObjectPtr xmlXPtrNewRangeNodes (xmlNodePtr start,
    xmlNodePtr end); -void xmlXPtrLocationSetAdd (xmlLocationSetPtr cur,
    xmlXPathObjectPtr val); -void xmlXPtrRangeToFunction (xmlXPathParserContextPtr ctxt,
    int nargs); -xmlXPathObjectPtr xmlXPtrNewCollapsedRange (xmlNodePtr start); -xmlXPathObjectPtr xmlXPtrNewRangePoints (xmlXPathObjectPtr start,
    xmlXPathObjectPtr end); -xmlXPathObjectPtr xmlXPtrNewLocationSetNodeSet (xmlNodeSetPtr set); -xmlXPathObjectPtr xmlXPtrNewRangePointNode (xmlXPathObjectPtr start,
    xmlNodePtr end); -xmlLocationSetPtr xmlXPtrLocationSetCreate (xmlXPathObjectPtr val); -xmlXPathObjectPtr xmlXPtrNewRangeNodeObject (xmlNodePtr start,
    xmlXPathObjectPtr end); -xmlXPathContextPtr xmlXPtrNewContext (xmlDocPtr doc,
    xmlNodePtr here,
    xmlNodePtr origin); -void xmlXPtrLocationSetRemove (xmlLocationSetPtr cur,
    int val); -xmlXPathObjectPtr xmlXPtrNewRangeNodePoint (xmlNodePtr start,
    xmlXPathObjectPtr end); -void xmlXPtrLocationSetDel (xmlLocationSetPtr cur,
    xmlXPathObjectPtr val); -xmlLocationSetPtr xmlXPtrLocationSetMerge (xmlLocationSetPtr val1,
    xmlLocationSetPtr val2); -void xmlXPtrEvalRangePredicate (xmlXPathParserContextPtr ctxt); -xmlXPathObjectPtr xmlXPtrNewLocationSetNodes (xmlNodePtr start,
    xmlNodePtr end); -
    -
    -
    -

    Description

    -
    -
    -

    Details

    -
    -

    Structure xmlLocationSet

    struct _xmlLocationSet {
    -    int	locNr	: number of locations in the set
    -    int	locMax	: size of the array as allocated
    -    xmlXPathObjectPtr *	locTab	: array of locations
    -} xmlLocationSet;
    -

    -

    -
    -

    Typedef xmlLocationSetPtr

    xmlLocationSet * xmlLocationSetPtr;
    -

    -

    -
    -

    xmlXPtrBuildNodeList ()

    xmlNodePtr	xmlXPtrBuildNodeList	(xmlXPathObjectPtr obj)
    -

    Build a node list tree copy of the XPointer result. This will drop Attributes and Namespace declarations.

    -
    obj:the XPointer result from the evaluation.
    Returns:an xmlNodePtr list or NULL. the caller has to free the node tree.
    -
    -

    xmlXPtrEval ()

    xmlXPathObjectPtr	xmlXPtrEval	(const xmlChar * str, 
    xmlXPathContextPtr ctx)
    -

    Evaluate the XPath Location Path in the given context.

    -
    str:the XPointer expression
    ctx:the XPointer context
    Returns:the xmlXPathObjectPtr resulting from the evaluation or NULL. the caller has to free the object.
    -
    -

    xmlXPtrEvalRangePredicate ()

    void	xmlXPtrEvalRangePredicate	(xmlXPathParserContextPtr ctxt)
    -

    [8] Predicate ::= '[' PredicateExpr ']' [9] PredicateExpr ::= Expr Evaluate a predicate as in xmlXPathEvalPredicate() but for a Location Set instead of a node set

    -
    ctxt:the XPointer Parser context
    -
    -

    xmlXPtrFreeLocationSet ()

    void	xmlXPtrFreeLocationSet		(xmlLocationSetPtr obj)
    -

    Free the LocationSet compound (not the actual ranges !).

    -
    obj:the xmlLocationSetPtr to free
    -
    -

    xmlXPtrLocationSetAdd ()

    void	xmlXPtrLocationSetAdd		(xmlLocationSetPtr cur, 
    xmlXPathObjectPtr val)
    -

    add a new xmlXPathObjectPtr to an existing LocationSet If the location already exist in the set @val is freed.

    -
    cur:the initial range set
    val:a new xmlXPathObjectPtr
    -
    -

    xmlXPtrLocationSetCreate ()

    xmlLocationSetPtr	xmlXPtrLocationSetCreate	(xmlXPathObjectPtr val)
    -

    Create a new xmlLocationSetPtr of type double and of value @val

    -
    val:an initial xmlXPathObjectPtr, or NULL
    Returns:the newly created object.
    -
    -

    xmlXPtrLocationSetDel ()

    void	xmlXPtrLocationSetDel		(xmlLocationSetPtr cur, 
    xmlXPathObjectPtr val)
    -

    Removes an xmlXPathObjectPtr from an existing LocationSet

    -
    cur:the initial range set
    val:an xmlXPathObjectPtr
    -
    -

    xmlXPtrLocationSetMerge ()

    xmlLocationSetPtr	xmlXPtrLocationSetMerge	(xmlLocationSetPtr val1, 
    xmlLocationSetPtr val2)
    -

    Merges two rangesets, all ranges from @val2 are added to @val1

    -
    val1:the first LocationSet
    val2:the second LocationSet
    Returns:val1 once extended or NULL in case of error.
    -
    -

    xmlXPtrLocationSetRemove ()

    void	xmlXPtrLocationSetRemove	(xmlLocationSetPtr cur, 
    int val)
    -

    Removes an entry from an existing LocationSet list.

    -
    cur:the initial range set
    val:the index to remove
    -
    -

    xmlXPtrNewCollapsedRange ()

    xmlXPathObjectPtr	xmlXPtrNewCollapsedRange	(xmlNodePtr start)
    -

    Create a new xmlXPathObjectPtr of type range using a single nodes

    -
    start:the starting and ending node
    Returns:the newly created object.
    -
    -

    xmlXPtrNewContext ()

    xmlXPathContextPtr	xmlXPtrNewContext	(xmlDocPtr doc, 
    xmlNodePtr here,
    xmlNodePtr origin)
    -

    Create a new XPointer context

    -
    doc:the XML document
    here:the node that directly contains the XPointer being evaluated or NULL
    origin:the element from which a user or program initiated traversal of the link, or NULL.
    Returns:the xmlXPathContext just allocated.
    -
    -

    xmlXPtrNewLocationSetNodeSet ()

    xmlXPathObjectPtr	xmlXPtrNewLocationSetNodeSet	(xmlNodeSetPtr set)
    -

    Create a new xmlXPathObjectPtr of type LocationSet and initialize it with all the nodes from @set

    -
    set:a node set
    Returns:the newly created object.
    -
    -

    xmlXPtrNewLocationSetNodes ()

    xmlXPathObjectPtr	xmlXPtrNewLocationSetNodes	(xmlNodePtr start, 
    xmlNodePtr end)
    -

    Create a new xmlXPathObjectPtr of type LocationSet and initialize it with the single range made of the two nodes @start and @end

    -
    start:the start NodePtr value
    end:the end NodePtr value or NULL
    Returns:the newly created object.
    -
    -

    xmlXPtrNewRange ()

    xmlXPathObjectPtr	xmlXPtrNewRange	(xmlNodePtr start, 
    int startindex,
    xmlNodePtr end,
    int endindex)
    -

    Create a new xmlXPathObjectPtr of type range

    -
    start:the starting node
    startindex:the start index
    end:the ending point
    endindex:the ending index
    Returns:the newly created object.
    -
    -

    xmlXPtrNewRangeNodeObject ()

    xmlXPathObjectPtr	xmlXPtrNewRangeNodeObject	(xmlNodePtr start, 
    xmlXPathObjectPtr end)
    -

    Create a new xmlXPathObjectPtr of type range from a not to an object

    -
    start:the starting node
    end:the ending object
    Returns:the newly created object.
    -
    -

    xmlXPtrNewRangeNodePoint ()

    xmlXPathObjectPtr	xmlXPtrNewRangeNodePoint	(xmlNodePtr start, 
    xmlXPathObjectPtr end)
    -

    Create a new xmlXPathObjectPtr of type range from a node to a point

    -
    start:the starting node
    end:the ending point
    Returns:the newly created object.
    -
    -

    xmlXPtrNewRangeNodes ()

    xmlXPathObjectPtr	xmlXPtrNewRangeNodes	(xmlNodePtr start, 
    xmlNodePtr end)
    -

    Create a new xmlXPathObjectPtr of type range using 2 nodes

    -
    start:the starting node
    end:the ending node
    Returns:the newly created object.
    -
    -

    xmlXPtrNewRangePointNode ()

    xmlXPathObjectPtr	xmlXPtrNewRangePointNode	(xmlXPathObjectPtr start, 
    xmlNodePtr end)
    -

    Create a new xmlXPathObjectPtr of type range from a point to a node

    -
    start:the starting point
    end:the ending node
    Returns:the newly created object.
    -
    -

    xmlXPtrNewRangePoints ()

    xmlXPathObjectPtr	xmlXPtrNewRangePoints	(xmlXPathObjectPtr start, 
    xmlXPathObjectPtr end)
    -

    Create a new xmlXPathObjectPtr of type range using 2 Points

    -
    start:the starting point
    end:the ending point
    Returns:the newly created object.
    -
    -

    xmlXPtrRangeToFunction ()

    void	xmlXPtrRangeToFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the range-to() XPointer function

    -
    ctxt:the XPointer Parser context
    nargs:the number of args
    -
    -

    xmlXPtrWrapLocationSet ()

    xmlXPathObjectPtr	xmlXPtrWrapLocationSet	(xmlLocationSetPtr val)
    -

    Wrap the LocationSet @val in a new xmlXPathObjectPtr

    -
    val:the LocationSet value
    Returns:the newly created object.
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/libxml2.devhelp b/src/tools/docbook/libxml2/doc/devhelp/libxml2.devhelp deleted file mode 100644 index e0af836848..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/libxml2.devhelp +++ /dev/null @@ -1,3475 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxml2/doc/devhelp/right.png b/src/tools/docbook/libxml2/doc/devhelp/right.png deleted file mode 100644 index 92832e3a45..0000000000 Binary files a/src/tools/docbook/libxml2/doc/devhelp/right.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/devhelp/style.css b/src/tools/docbook/libxml2/doc/devhelp/style.css deleted file mode 100644 index c9cabe7830..0000000000 --- a/src/tools/docbook/libxml2/doc/devhelp/style.css +++ /dev/null @@ -1,66 +0,0 @@ -.synopsis, .classsynopsis -{ - background: #eeeeee; - border: solid 1px #aaaaaa; - padding: 0.5em; -} -.programlisting -{ - background: #eeeeff; - border: solid 1px #aaaaff; - padding: 0.5em; -} -.variablelist -{ - padding: 4px; - margin-left: 3em; -} -.variablelist td:first-child -{ - vertical-align: top; -} -table.navigation -{ - background: #ffeeee; - border: solid 1px #ffaaaa; - margin-top: 0.5em; - margin-bottom: 0.5em; -} -.navigation a -{ - color: #770000; -} -.navigation a:visited -{ - color: #550000; -} -.navigation .title -{ - font-size: 200%; -} -div.refnamediv -{ - margin-top: 2em; -} -div.gallery-float -{ - float: left; - padding: 10px; -} -div.gallery-float img -{ - border-style: none; -} -div.gallery-spacer -{ - clear: both; -} -a -{ - text-decoration: none; -} -a:hover -{ - text-decoration: underline; - color: #FF0000; -} diff --git a/src/tools/docbook/libxml2/doc/devhelp/up.png b/src/tools/docbook/libxml2/doc/devhelp/up.png deleted file mode 100644 index 85b3e2a275..0000000000 Binary files a/src/tools/docbook/libxml2/doc/devhelp/up.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/docs.html b/src/tools/docbook/libxml2/doc/docs.html deleted file mode 100644 index fa30ac2a87..0000000000 --- a/src/tools/docbook/libxml2/doc/docs.html +++ /dev/null @@ -1,28 +0,0 @@ - - -Developer Menu
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    Developer Menu

    Developer Menu
    API Indexes
    Related links

    There are several on-line resources related to using libxml:

    1. Use the search engineto lookupinformation.
    2. -
    3. Check the FAQ.
    4. -
    5. Check the extensivedocumentationautomaticallyextracted - from code comments.
    6. -
    7. Look at the documentation about libxmlinternationalization support.
    8. -
    9. This page provides a global overview and someexampleson how to use libxml.
    10. -
    11. Code examples
    12. -
    13. John Fleck's libxml2 tutorial: htmlorpdf.
    14. -
    15. If you need to parse large files, check the xmlReaderAPI tutorial
    16. -
    17. James Henstridgewrote somenicedocumentationexplaining - how to use the libxml SAX interface.
    18. -
    19. George Lebl wrote anarticlefor - IBM developerWorksabout using libxml.
    20. -
    21. Check theTODOfile.
    22. -
    23. Read the 1.x to 2.x upgrade - pathdescription.If you are starting a new project using libxml you - shouldreally use the2.x version.
    24. -
    25. And don't forget to look at the mailing-list archive.
    26. -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/downloads.html b/src/tools/docbook/libxml2/doc/downloads.html deleted file mode 100644 index 71ce9a62d3..0000000000 --- a/src/tools/docbook/libxml2/doc/downloads.html +++ /dev/null @@ -1,34 +0,0 @@ - - -Downloads
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    Downloads

    Main Menu
    Related links

    The latest versions of libxml2 can be found on the xmlsoft.orgserver ( HTTP, FTPand rsync are available), there -isalsomirrors (Australia(Web), France) or on the Gnome FTP serveras source -archive,Antonin Sprinzl also provide amirror in Austria. (NOTE -thatyou need both the libxml(2)and libxml(2)-develpackagesinstalled -to compile applications using libxml.)

    You can find all the history of libxml(2) and libxslt releases in the olddirectory. -TheprecompiledWindows binaries made by Igor Zlatovic are available in the win32directory.

    Binary ports:

    If you know other supported binary ports, please contact me.

    Snapshot:

    Contributions:

    I do accept external contributions, especially if compiling -onanotherplatform, get in touch with the list to upload the package, -wrappersforvarious languages have been provided, and can be found in the bindings section

    Libxml2 is also available from CVS:

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/elfgcchack.xsl b/src/tools/docbook/libxml2/doc/elfgcchack.xsl deleted file mode 100644 index 11169f9937..0000000000 --- a/src/tools/docbook/libxml2/doc/elfgcchack.xsl +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - /* - * elfgcchack.h: hack by Arjan van de Ven <arjanv@redhat.com> to speed - * up the code when using gcc for call within the library. - * - * Based on the analysis http://people.redhat.com/drepper/dsohowto.pdf - * from Ulrich drepper. Rewritten to be generated from the XML description - * file for libxml2 API - * autogenerated with xsltproc doc/elfgcchack.xsl doc/libxml2-api.xml - */ - -#ifdef IN_LIBXML -#ifdef __GNUC__ -#ifdef PIC -#ifdef linux -#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3) - -#include "libxml/c14n.h" -#include "libxml/catalog.h" -#include "libxml/chvalid.h" -#include "libxml/debugXML.h" -#include "libxml/dict.h" -#include "libxml/DOCBparser.h" -#include "libxml/encoding.h" -#include "libxml/entities.h" -#include "libxml/globals.h" -#include "libxml/hash.h" -#include "libxml/HTMLparser.h" -#include "libxml/HTMLtree.h" -#include "libxml/list.h" -#include "libxml/nanoftp.h" -#include "libxml/nanohttp.h" -#include "libxml/parser.h" -#include "libxml/parserInternals.h" -#include "libxml/pattern.h" -#include "libxml/relaxng.h" -#include "libxml/SAX2.h" -#include "libxml/SAX.h" -#include "libxml/schemasInternals.h" -#include "libxml/schematron.h" -#include "libxml/threads.h" -#include "libxml/tree.h" -#include "libxml/uri.h" -#include "libxml/valid.h" -#include "libxml/xinclude.h" -#include "libxml/xlink.h" -#include "libxml/xmlautomata.h" -#include "libxml/xmlerror.h" -#include "libxml/xmlexports.h" -#include "libxml/xmlIO.h" -#include "libxml/xmlmemory.h" -#include "libxml/xmlreader.h" -#include "libxml/xmlregexp.h" -#include "libxml/xmlsave.h" -#include "libxml/xmlschemas.h" -#include "libxml/xmlschemastypes.h" -#include "libxml/xmlstring.h" -#include "libxml/xmlunicode.h" -#include "libxml/xmlversion.h" -#include "libxml/xmlwriter.h" -#include "libxml/xpath.h" -#include "libxml/xpathInternals.h" -#include "libxml/xpointer.h" -#include "libxml/xmlmodule.h" - -/* special hot spot not exported ones */ - -#ifdef bottom_globals -#undef __xmlGenericError -extern __typeof (__xmlGenericError) __xmlGenericError __attribute((alias("__xmlGenericError__internal_alias"))); -#else -#ifndef __xmlGenericError -extern __typeof (__xmlGenericError) __xmlGenericError__internal_alias __attribute((visibility("hidden"))); -#define __xmlGenericError __xmlGenericError__internal_alias -#endif -#endif - -#ifdef bottom_globals -#undef __xmlGenericErrorContext -extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext __attribute((alias("__xmlGenericErrorContext__internal_alias"))); -#else -#ifndef __xmlGenericErrorContext -extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext__internal_alias __attribute((visibility("hidden"))); -#define __xmlGenericErrorContext __xmlGenericErrorContext__internal_alias -#endif -#endif - -/* list generated from libxml2-api.xml */ - - - -#endif -#endif -#endif -#endif -#endif - - - - - - - - - - #ifdef bottom_ - - -#undef - - -extern __typeof ( - - ) - - __attribute((alias(" - - "))); -#else -#ifndef - - - - extern __typeof ( - - ) - - __attribute((visibility("hidden"))); - - #define - - - - -#endif -#endif - - - - - - - - #if - - - - - - #endif - - - - diff --git a/src/tools/docbook/libxml2/doc/encoding.html b/src/tools/docbook/libxml2/doc/encoding.html deleted file mode 100644 index 8db787eaf7..0000000000 --- a/src/tools/docbook/libxml2/doc/encoding.html +++ /dev/null @@ -1,206 +0,0 @@ - - -Encodings support
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    Encodings support

    Main Menu
    Related links

    If you are not really familiar with Internationalization (usual -shortcutisI18N) , Unicode, characters and glyphs, I suggest you read a presentationbyTim -Bray on Unicode and why you should care about it.

    If you don't understand why it does not make sense to have -astringwithout knowing what encoding it uses, then as Joel Spolsky said -please do -notwriteanother line of code until you finish reading that article.. It -isaprerequisite to understand this page, and avoid a lot of -problemswithlibxml2, XML or text processing in general.

    Table of Content:

    1. What does internationalization - supportmean?
    2. -
    3. The internal encoding, - howandwhy
    4. -
    5. How is it implemented ?
    6. -
    7. Default supported encodings
    8. -
    9. How to extend theexistingsupport
    10. -

    What does internationalization support mean ?

    XML was designed from the start to allow the support of any charactersetby -using Unicode. Any conformant XML parser has to support the UTF-8andUTF-16 -default encodings which can both express the full unicode ranges.UTF8is a -variable length encoding whose greatest points are to reuse thesameencoding -for ASCII and to save space for Western encodings, but it is abitmore complex -to handle in practice. UTF-16 use 2 bytes per character(andsometimes combines -two pairs), it makes implementation easier, but looksabit overkill for -Western languages encoding. Moreover the XMLspecificationallows the document -to be encoded in other encodings at thecondition thatthey are clearly labeled -as such. For example the following isa wellformedXML document encoded in -ISO-8859-1 and using accentuated lettersthat weFrench like for both markup -and content:

    <?xml version="1.0" encoding="ISO-8859-1"?>
    -<très>là</très>

    Having internationalization support in libxml2 means the following:

    • the document is properly parsed
    • -
    • informations about it's encoding are saved
    • -
    • it can be modified
    • -
    • it can be saved in its original encoding
    • -
    • it can also be saved in another encoding supported by - libxml2(forexample straight UTF8 or even an ASCII form)
    • -

    Another very important point is that the whole libxml2 API, -withtheexception of a few routines to read with a specific encoding or save -toaspecific encoding, is completely agnostic about the original encoding -ofthedocument.

    It should be noted too that the HTML parser embedded in libxml2 nowobeythe -same rules too, the following document will be (as of 2.2.2) handledinan -internationalized fashion by libxml2 too:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
    -                      "http://www.w3.org/TR/REC-html40/loose.dtd">
    -<html lang="fr">
    -<head>
    -  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
    -</head>
    -<body>
    -<p>W3C crée des standards pour le Web.</body>
    -</html>

    The internal encoding, how and why

    One of the core decisions was to force all documents to be converted -toadefault internal encoding, and that encoding to be UTF-8, here -aretherationales for those choices:

    • keeping the native encoding in the internal form would force - thelibxmlusers (or the code associated) to be fully aware of the encoding - oftheoriginal document, for examples when adding a text node to - adocument,the content would have to be provided in the document - encoding,i.e. theclient code would have to check it before hand, make - sure it'sconformantto the encoding, etc ... Very hard in practice, though - in somespecificcases this may make sense.
    • -
    • the second decision was which encoding. From the XML spec only - UTF8andUTF16 really makes sense as being the two only encodings for - whichthereis mandatory support. UCS-4 (32 bits fixed size encoding) - couldbeconsidered an intelligent choice too since it's a direct - Unicodemappingsupport. I selected UTF-8 on the basis of efficiency - andcompatibilitywith surrounding software: -
      • UTF-8 while a bit more complex to convert from/to (i.e.slightlymore - costly to import and export CPU wise) is also far morecompactthan - UTF-16 (and UCS-4) for a majority of the documents I seeit usedfor - right now (RPM RDF catalogs, advogato data, variousconfigurationfile - formats, etc.) and the key point for today'scomputerarchitecture is - efficient uses of caches. If one nearlydouble thememory requirement - to store the same amount of data, thiswill trashcaches (main - memory/external caches/internal caches) and mytake isthat this harms - the system far more than the CPU requirementsneededfor the conversion - to UTF-8
      • -
      • Most of libxml2 version 1 users were using it with - straightASCIImost of the time, doing the conversion with an - internalencodingrequiring all their code to be rewritten was a - seriousshow-stopperfor using UTF-16 or UCS-4.
      • -
      • UTF-8 is being used as the de-facto internal encoding - standardforrelated code like the pangoupcoming Gnome text widget, - anda lot of Unix code (yet another placewhere Unix programmer base - takesa different approach from Microsoft- they are using UTF-16)
      • -
    • -

    What does this mean in practice for the libxml2 user:

    • xmlChar, the libxml2 data type is a byte, those bytes must - beassembledas UTF-8 valid strings. The proper way to terminate an xmlChar - *stringis simply to append 0 byte, as usual.
    • -
    • One just need to make sure that when using chars outside the - ASCIIset,the values has been properly converted to UTF-8
    • -

    How is it implemented ?

    Let's describe how all this works within libxml, basically -theI18N(internationalization) support get triggered only during I/O -operation,i.e.when reading a document or saving one. Let's look first at -thereadingsequence:

    1. when a document is processed, we usually don't know the - encoding,asimple heuristic allows to detect UTF-16 and UCS-4 from - encodingswherethe ASCII range (0-0x7F) maps with ASCII
    2. -
    3. the xml declaration if available is parsed, including - theencodingdeclaration. At that point, if the autodetected encoding - isdifferentfrom the one declared a call to xmlSwitchEncoding() - isissued.
    4. -
    5. If there is no encoding declaration, then the input has to be - ineitherUTF-8 or UTF-16, if it is not then at some point when - processingtheinput, the converter/checker of UTF-8 form will raise an - encodingerror.You may end-up with a garbled document, or no document at - all !Example: -
      ~/XML -> ./xmllint err.xml 
      -err.xml:1: error: Input is not proper UTF-8, indicate encoding !
      -<très>là</très>
      -   ^
      -err.xml:1: error: Bytes: 0xE8 0x73 0x3E 0x6C
      -<très>là</très>
      -   ^
      -
    6. -
    7. xmlSwitchEncoding() does an encoding name lookup, canonicalize - it,andthen search the default registered encoding converters for - thatencoding.If it's not within the default set and iconv() support has - beencompiledit, it will ask iconv for such an encoder. If this fails then - theparserwill report an error and stops processing: -
      ~/XML -> ./xmllint err2.xml 
      -err2.xml:1: error: Unsupported encoding UnsupportedEnc
      -<?xml version="1.0" encoding="UnsupportedEnc"?>
      -                                             ^
      -
    8. -
    9. From that point the encoder processes progressively the input - (itisplugged as a front-end to the I/O module) for that entity. - Itcapturesand converts on-the-fly the document to be parsed to UTF-8. - Theparseritself just does UTF-8 checking of this input and - processittransparently. The only difference is that the encoding - informationhasbeen added to the parsing context (more precisely to - theinputcorresponding to this entity).
    10. -
    11. The result (when using DOM) is an internal form completely in - UTF-8withjust an encoding information on the document node.
    12. -

    Ok then what happens when saving the document (assuming -youcollected/builtan xmlDoc DOM like structure) ? It depends on the -functioncalled,xmlSaveFile() will just try to save in the original -encoding,whilexmlSaveFileTo() and xmlSaveFileEnc() can optionally save to -agivenencoding:

    1. if no encoding is given, libxml2 will look for an - encodingvalueassociated to the document and if it exists will try to save - tothatencoding, -

      otherwise everything is written in the internal form, i.e. UTF-8

      -
    2. -
    3. so if an encoding was specified, either at the API level or - onthedocument, libxml2 will again canonicalize the encoding name, - lookupfor aconverter in the registered set or through iconv. If not - foundthefunction will return an error code
    4. -
    5. the converter is placed before the I/O buffer layer, as another - kindofbuffer, then libxml2 will simply push the UTF-8 serialization - tothroughthat buffer, which will then progressively be converted and - pushedontothe I/O layer.
    6. -
    7. It is possible that the converter code fails on some input, - forexampletrying to push an UTF-8 encoded Chinese character through - theUTF-8 toISO-8859-1 converter won't work. Since the encoders - areprogressive theywill just report the error and the number of - bytesconverted, at thatpoint libxml2 will decode the offending - character,remove it from thebuffer and replace it with the associated - charRefencoding &#123; andresume the conversion. This guarantees that - anydocument will be savedwithout losses (except for markup names where - thisis not legal, this isa problem in the current version, in practice - avoidusing non-asciicharacters for tag or attribute names). A special - "ascii"encoding nameis used to save documents to a pure ascii form can be - usedwhenportability is really crucial
    8. -

    Here are a few examples based on the same test document:

    ~/XML -> ./xmllint isolat1 
    -<?xml version="1.0" encoding="ISO-8859-1"?>
    -<très>là</très>
    -~/XML -> ./xmllint --encode UTF-8 isolat1 
    -<?xml version="1.0" encoding="UTF-8"?>
    -<très>là  </très>
    -~/XML -> 

    The same processing is applied (and reuse most of the code) for -HTMLI18Nprocessing. Looking up and modifying the content encoding is a -bitmoredifficult since it is located in a <meta> tag under -the<head>,so a couple of functions htmlGetMetaEncoding() -andhtmlSetMetaEncoding() havebeen provided. The parser also attempts to -switchencoding on the fly whendetecting such a tag on input. Except for that -theprocessing is the same(and again reuses the same code).

    Default supported encodings

    libxml2 has a set of default converters for the followingencodings(located -in encoding.c):

    1. UTF-8 is supported by default (null handlers)
    2. -
    3. UTF-16, both little and big endian
    4. -
    5. ISO-Latin-1 (ISO-8859-1) covering most western languages
    6. -
    7. ASCII, useful mostly for saving
    8. -
    9. HTML, a specific handler for the conversion of UTF-8 to ASCII - withHTMLpredefined entities like &copy; for the Copyright sign.
    10. -

    More over when compiled on an Unix platform with iconv support the -fullsetof encodings supported by iconv can be instantly be used by libxml. On -alinuxmachine with glibc-2.1 the list of supported encodings and aliases -fill3 fullpages, and include UCS-4, the full set of ISO-Latin encodings, and -thevariousJapanese ones.

    To convert from the UTF-8 values returned from the API to -anotherencodingthen it is possible to use the function provided from the encoding modulelike UTF8Toisolat1, or -usethePOSIX iconv()APIdirectly.

    Encoding aliases

    From 2.2.3, libxml2 has support to register encoding names aliases.Thegoal -is to be able to parse document whose encoding is supported butwherethe name -differs (for example from the default set of names acceptedbyiconv). The -following functions allow to register and handle new aliasesforexisting -encodings. Once registered libxml2 will automatically lookupthealiases when -handling a document:

    • int xmlAddEncodingAlias(const char *name, const char *alias);
    • -
    • int xmlDelEncodingAlias(const char *alias);
    • -
    • const char * xmlGetEncodingAlias(const char *alias);
    • -
    • void xmlCleanupEncodingAliases(void);
    • -

    How to extend the existing support

    Well adding support for new encoding, or overriding one of -theencoders(assuming it is buggy) should not be hard, just write input -andoutputconversion routines to/from UTF-8, and register -themusingxmlNewCharEncodingHandler(name, xxxToUTF8, UTF8Toxxx), and they -willbecalled automatically if the parser(s) encounter such an -encodingname(register it uppercase, this will help). The description of -theencoders,their arguments and expected return values are described in -theencoding.hheader.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/entities.html b/src/tools/docbook/libxml2/doc/entities.html deleted file mode 100644 index 732562a278..0000000000 --- a/src/tools/docbook/libxml2/doc/entities.html +++ /dev/null @@ -1,66 +0,0 @@ - - -Entities or no entities
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    Entities or no entities

    Developer Menu
    API Indexes
    Related links

    Entities in principle are similar to simple C macros. An entity -definesanabbreviation for a given string that you can reuse many times -throughoutthecontent of your document. Entities are especially useful when a -givenstringmay occur frequently within a document, or to confine the change -neededto adocument to a restricted area in the internal subset of the -document (atthebeginning). Example:

    1 <?xml version="1.0"?>
    -2 <!DOCTYPE EXAMPLE SYSTEM "example.dtd" [
    -3 <!ENTITY xml "Extensible Markup Language">
    -4 ]>
    -5 <EXAMPLE>
    -6    &xml;
    -7 </EXAMPLE>

    Line 3 declares the xml entity. Line 6 uses the xml entity, byprefixingits -name with '&' and following it by ';' without any spacesadded. Thereare 5 -predefined entities in libxml2 allowing you to escapecharacters -withpredefined meaning in some parts of the xml -documentcontent:&lt;for the character -'<',&gt;for the character -'>',&apos;for the -character''',&quot;for the character -'"',and&amp;for the character '&'.

    One of the problems related to entities is that you may want the -parsertosubstitute an entity's content so that you can see the replacement -textinyour application. Or you may prefer to keep entity references as such -inthecontent to be able to save the document back without losing -thisusuallyprecious information (if the user went through the pain -ofexplicitlydefining entities, he may have a a rather negative attitude if -youblindlysubstitute them as saving time). The xmlSubstituteEntitiesDefault()functionallows -you to check and change the behaviour, which is to notsubstituteentities by -default.

    Here is the DOM tree built by libxml2 for the previous document -inthedefault case:

    /gnome/src/gnome-xml -> ./xmllint --debug test/ent1
    -DOCUMENT
    -version=1.0
    -   ELEMENT EXAMPLE
    -     TEXT
    -     content=
    -     ENTITY_REF
    -       INTERNAL_GENERAL_ENTITY xml
    -       content=Extensible Markup Language
    -     TEXT
    -     content=

    And here is the result when substituting entities:

    /gnome/src/gnome-xml -> ./tester --debug --noent test/ent1
    -DOCUMENT
    -version=1.0
    -   ELEMENT EXAMPLE
    -     TEXT
    -     content=     Extensible Markup Language

    So, entities or no entities? Basically, it depends on your use -case.Isuggest that you keep the non-substituting default behaviour and -avoidusingentities in your XML document or data if you are not willing to -handletheentity references elements in the DOM tree.

    Note that at save time libxml2 enforces the conversion of -thepredefinedentities where necessary to prevent well-formedness problems, -andwill alsotransparently replace those with chars (i.e. it will not -generateentityreference elements in the DOM tree or call the reference() SAX -callbackwhenfinding them in the input).

    WARNING: handlingentitieson -top of the libxml2 SAX interface is difficult!!! If you plan -tousenon-predefined entities in your documents, then the learning curve -tohandlethen using the SAX API may be long. If you plan to use -complexdocuments, Istrongly suggest you consider using the DOM interface -instead andlet libxmldeal with the complexity rather than trying to do it -yourself.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/example.html b/src/tools/docbook/libxml2/doc/example.html deleted file mode 100644 index 194f61935d..0000000000 --- a/src/tools/docbook/libxml2/doc/example.html +++ /dev/null @@ -1,188 +0,0 @@ - - -A real example
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    A real example

    Developer Menu
    API Indexes
    Related links

    Here is a real size example, where the actual content of -theapplicationdata is not kept in the DOM tree but uses internal structures. -Itis based ona proposal to keep a database of jobs related to Gnome, with -anXML basedstorage structure. Here is an XML -encodedjobsbase:

    <?xml version="1.0"?>
    -<gjob:Helping xmlns:gjob="http://www.gnome.org/some-location">
    -  <gjob:Jobs>
    -
    -    <gjob:Job>
    -      <gjob:Project ID="3"/>
    -      <gjob:Application>GBackup</gjob:Application>
    -      <gjob:Category>Development</gjob:Category>
    -
    -      <gjob:Update>
    -        <gjob:Status>Open</gjob:Status>
    -        <gjob:Modified>Mon, 07 Jun 1999 20:27:45 -0400 MET DST</gjob:Modified>
    -        <gjob:Salary>USD 0.00</gjob:Salary>
    -      </gjob:Update>
    -
    -      <gjob:Developers>
    -        <gjob:Developer>
    -        </gjob:Developer>
    -      </gjob:Developers>
    -
    -      <gjob:Contact>
    -        <gjob:Person>Nathan Clemons</gjob:Person>
    -        <gjob:Email>nathan@windsofstorm.net</gjob:Email>
    -        <gjob:Company>
    -        </gjob:Company>
    -        <gjob:Organisation>
    -        </gjob:Organisation>
    -        <gjob:Webpage>
    -        </gjob:Webpage>
    -        <gjob:Snailmail>
    -        </gjob:Snailmail>
    -        <gjob:Phone>
    -        </gjob:Phone>
    -      </gjob:Contact>
    -
    -      <gjob:Requirements>
    -      The program should be released as free software, under the GPL.
    -      </gjob:Requirements>
    -
    -      <gjob:Skills>
    -      </gjob:Skills>
    -
    -      <gjob:Details>
    -      A GNOME based system that will allow a superuser to configure 
    -      compressed and uncompressed files and/or file systems to be backed 
    -      up with a supported media in the system.  This should be able to 
    -      perform via find commands generating a list of files that are passed 
    -      to tar, dd, cpio, cp, gzip, etc., to be directed to the tape machine 
    -      or via operations performed on the filesystem itself. Email 
    -      notification and GUI status display very important.
    -      </gjob:Details>
    -
    -    </gjob:Job>
    -
    -  </gjob:Jobs>
    -</gjob:Helping>

    While loading the XML file into an internal DOM tree is a matter -ofcallingonly a couple of functions, browsing the tree to gather the data -andgeneratethe internal structures is harder, and more error prone.

    The suggested principle is to be tolerant with respect to -theinputstructure. For example, the ordering of the attributes is -notsignificant,the XML specification is clear about it. It's also usually a -goodidea not todepend on the order of the children of a given node, unless -itreally makesthings harder. Here is some code to parse the information for -aperson:

    /*
    - * A person record
    - */
    -typedef struct person {
    -    char *name;
    -    char *email;
    -    char *company;
    -    char *organisation;
    -    char *smail;
    -    char *webPage;
    -    char *phone;
    -} person, *personPtr;
    -
    -/*
    - * And the code needed to parse it
    - */
    -personPtr parsePerson(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur) {
    -    personPtr ret = NULL;
    -
    -DEBUG("parsePerson\n");
    -    /*
    -     * allocate the struct
    -     */
    -    ret = (personPtr) malloc(sizeof(person));
    -    if (ret == NULL) {
    -        fprintf(stderr,"out of memory\n");
    -        return(NULL);
    -    }
    -    memset(ret, 0, sizeof(person));
    -
    -    /* We don't care what the top level element name is */
    -    cur = cur->xmlChildrenNode;
    -    while (cur != NULL) {
    -        if ((!strcmp(cur->name, "Person")) && (cur->ns == ns))
    -            ret->name = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
    -        if ((!strcmp(cur->name, "Email")) && (cur->ns == ns))
    -            ret->email = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
    -        cur = cur->next;
    -    }
    -
    -    return(ret);
    -}

    Here are a couple of things to notice:

    • Usually a recursive parsing style is the more convenient one: XMLdatais - by nature subject to repetitive constructs and usually - exhibitshighlystructured patterns.
    • -
    • The two arguments of type xmlDocPtrand - xmlNsPtr,i.e.the pointer to the global XML document and the - namespace reserved totheapplication. Document wide information are needed - for example todecodeentities and it's a good coding practice to define a - namespace foryourapplication set of data and test that the element and - attributesyou'reanalyzing actually pertains to your application space. - This isdone by asimple equality test (cur->ns == ns).
    • -
    • To retrieve text and attributes value, you can use - thefunctionxmlNodeListGetStringto gather all the text and - entityreferencenodes generated by the DOM output and produce an single - textstring.
    • -

    Here is another piece of code used to parse another level -ofthestructure:

    #include <libxml/tree.h>
    -/*
    - * a Description for a Job
    - */
    -typedef struct job {
    -    char *projectID;
    -    char *application;
    -    char *category;
    -    personPtr contact;
    -    int nbDevelopers;
    -    personPtr developers[100]; /* using dynamic alloc is left as an exercise */
    -} job, *jobPtr;
    -
    -/*
    - * And the code needed to parse it
    - */
    -jobPtr parseJob(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur) {
    -    jobPtr ret = NULL;
    -
    -DEBUG("parseJob\n");
    -    /*
    -     * allocate the struct
    -     */
    -    ret = (jobPtr) malloc(sizeof(job));
    -    if (ret == NULL) {
    -        fprintf(stderr,"out of memory\n");
    -        return(NULL);
    -    }
    -    memset(ret, 0, sizeof(job));
    -
    -    /* We don't care what the top level element name is */
    -    cur = cur->xmlChildrenNode;
    -    while (cur != NULL) {
    -        
    -        if ((!strcmp(cur->name, "Project")) && (cur->ns == ns)) {
    -            ret->projectID = xmlGetProp(cur, "ID");
    -            if (ret->projectID == NULL) {
    -                fprintf(stderr, "Project has no ID\n");
    -            }
    -        }
    -        if ((!strcmp(cur->name, "Application")) && (cur->ns == ns))
    -            ret->application = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
    -        if ((!strcmp(cur->name, "Category")) && (cur->ns == ns))
    -            ret->category = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
    -        if ((!strcmp(cur->name, "Contact")) && (cur->ns == ns))
    -            ret->contact = parsePerson(doc, ns, cur);
    -        cur = cur->next;
    -    }
    -
    -    return(ret);
    -}

    Once you are used to it, writing this kind of code is quite -simple,butboring. Ultimately, it could be possible to write stubbers taking -eitherCdata structure definitions, a set of XML examples or an XML DTD -andproducethe code needed to import and export the content between C data -andXMLstorage. This is left as an exercise to the reader :-)

    Feel free to use the code for the -fullCparsing exampleas a template, it is also available with Makefile -intheGnome CVS base under gnome-xml/example

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/examples/Makefile.am b/src/tools/docbook/libxml2/doc/examples/Makefile.am deleted file mode 100644 index 55a674da6c..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/Makefile.am +++ /dev/null @@ -1,134 +0,0 @@ -# Beware this is autogenerated by index.py -INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@ -DEPS = $(top_builddir)/libxml2.la -LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm @WIN32_EXTRA_LIBADD@ - -rebuild: examples.xml index.html - -examples.xml: index.py *.c - -@($(srcdir)/index.py) - -index.html: examples.xml examples.xsl - -@(xsltproc examples.xsl examples.xml && echo "Rebuilt web page" && xmllint --valid --noout index.html) - -install-data-local: - $(mkinstalldirs) $(DESTDIR)$(HTML_DIR) - -@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR) - -EXTRA_DIST=examples.xsl index.py examples.xml test1.xml test2.xml test3.xml tst.xml writer.xml io1.res io2.res reader1.res reader3.res reader4.res tree1.res tree2.res xpath1.res xpath2.res - -noinst_PROGRAMS=io1 io2 parse1 parse2 parse3 parse4 reader1 reader2 reader3 reader4 testWriter tree1 tree2 xpath1 xpath2 - -io1_SOURCES=io1.c -io1_LDFLAGS= -io1_DEPENDENCIES= $(DEPS) -io1_LDADD= @RDL_LIBS@ $(LDADDS) - -io2_SOURCES=io2.c -io2_LDFLAGS= -io2_DEPENDENCIES= $(DEPS) -io2_LDADD= @RDL_LIBS@ $(LDADDS) - -parse1_SOURCES=parse1.c -parse1_LDFLAGS= -parse1_DEPENDENCIES= $(DEPS) -parse1_LDADD= @RDL_LIBS@ $(LDADDS) - -parse2_SOURCES=parse2.c -parse2_LDFLAGS= -parse2_DEPENDENCIES= $(DEPS) -parse2_LDADD= @RDL_LIBS@ $(LDADDS) - -parse3_SOURCES=parse3.c -parse3_LDFLAGS= -parse3_DEPENDENCIES= $(DEPS) -parse3_LDADD= @RDL_LIBS@ $(LDADDS) - -parse4_SOURCES=parse4.c -parse4_LDFLAGS= -parse4_DEPENDENCIES= $(DEPS) -parse4_LDADD= @RDL_LIBS@ $(LDADDS) - -reader1_SOURCES=reader1.c -reader1_LDFLAGS= -reader1_DEPENDENCIES= $(DEPS) -reader1_LDADD= @RDL_LIBS@ $(LDADDS) - -reader2_SOURCES=reader2.c -reader2_LDFLAGS= -reader2_DEPENDENCIES= $(DEPS) -reader2_LDADD= @RDL_LIBS@ $(LDADDS) - -reader3_SOURCES=reader3.c -reader3_LDFLAGS= -reader3_DEPENDENCIES= $(DEPS) -reader3_LDADD= @RDL_LIBS@ $(LDADDS) - -reader4_SOURCES=reader4.c -reader4_LDFLAGS= -reader4_DEPENDENCIES= $(DEPS) -reader4_LDADD= @RDL_LIBS@ $(LDADDS) - -testWriter_SOURCES=testWriter.c -testWriter_LDFLAGS= -testWriter_DEPENDENCIES= $(DEPS) -testWriter_LDADD= @RDL_LIBS@ $(LDADDS) - -tree1_SOURCES=tree1.c -tree1_LDFLAGS= -tree1_DEPENDENCIES= $(DEPS) -tree1_LDADD= @RDL_LIBS@ $(LDADDS) - -tree2_SOURCES=tree2.c -tree2_LDFLAGS= -tree2_DEPENDENCIES= $(DEPS) -tree2_LDADD= @RDL_LIBS@ $(LDADDS) - -xpath1_SOURCES=xpath1.c -xpath1_LDFLAGS= -xpath1_DEPENDENCIES= $(DEPS) -xpath1_LDADD= @RDL_LIBS@ $(LDADDS) - -xpath2_SOURCES=xpath2.c -xpath2_LDFLAGS= -xpath2_DEPENDENCIES= $(DEPS) -xpath2_LDADD= @RDL_LIBS@ $(LDADDS) - -valgrind: - $(MAKE) CHECKER='valgrind' tests - -tests: $(noinst_PROGRAMS) - @(echo '## examples regression tests') - @(echo > .memdump) - @($(CHECKER) ./io1 > io1.tmp ; diff io1.tmp io1.res ; rm -f io1.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./io2 > io2.tmp ; diff io2.tmp io2.res ; rm -f io2.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./parse1 test1.xml) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./parse2 test2.xml) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./parse3) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./parse4 test3.xml) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./reader1 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./reader2 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./reader3 > reader3.tmp ; diff reader3.tmp reader3.res ; rm reader3.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./reader4 test1.xml test2.xml test3.xml > reader4.tmp ; diff reader4.tmp reader4.res ; rm reader4.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./testWriter ; for i in 1 2 3 4 ; do diff writer.xml writer$$i.res ; done ; rm writer*.res) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.res ; rm tree1.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./tree2 > tree2.tmp ; diff tree2.tmp tree2.res ; rm tree2.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ././xpath1 test3.xml '//child2' > xpath1.tmp ; diff xpath1.tmp xpath1.res ; rm xpath1.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./xpath2 test3.xml '//discarded' discarded > xpath2.tmp ; diff xpath2.tmp xpath2.res ; rm xpath2.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - - diff --git a/src/tools/docbook/libxml2/doc/examples/Makefile.in b/src/tools/docbook/libxml2/doc/examples/Makefile.in deleted file mode 100644 index b0b4d33f1e..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/Makefile.in +++ /dev/null @@ -1,743 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = ../.. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -noinst_PROGRAMS = io1$(EXEEXT) io2$(EXEEXT) parse1$(EXEEXT) \ - parse2$(EXEEXT) parse3$(EXEEXT) parse4$(EXEEXT) \ - reader1$(EXEEXT) reader2$(EXEEXT) reader3$(EXEEXT) \ - reader4$(EXEEXT) testWriter$(EXEEXT) tree1$(EXEEXT) \ - tree2$(EXEEXT) xpath1$(EXEEXT) xpath2$(EXEEXT) -subdir = doc/examples -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -PROGRAMS = $(noinst_PROGRAMS) -am_io1_OBJECTS = io1.$(OBJEXT) -io1_OBJECTS = $(am_io1_OBJECTS) -am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = $(top_builddir)/libxml2.la $(am__DEPENDENCIES_1) -am_io2_OBJECTS = io2.$(OBJEXT) -io2_OBJECTS = $(am_io2_OBJECTS) -am_parse1_OBJECTS = parse1.$(OBJEXT) -parse1_OBJECTS = $(am_parse1_OBJECTS) -am_parse2_OBJECTS = parse2.$(OBJEXT) -parse2_OBJECTS = $(am_parse2_OBJECTS) -am_parse3_OBJECTS = parse3.$(OBJEXT) -parse3_OBJECTS = $(am_parse3_OBJECTS) -am_parse4_OBJECTS = parse4.$(OBJEXT) -parse4_OBJECTS = $(am_parse4_OBJECTS) -am_reader1_OBJECTS = reader1.$(OBJEXT) -reader1_OBJECTS = $(am_reader1_OBJECTS) -am_reader2_OBJECTS = reader2.$(OBJEXT) -reader2_OBJECTS = $(am_reader2_OBJECTS) -am_reader3_OBJECTS = reader3.$(OBJEXT) -reader3_OBJECTS = $(am_reader3_OBJECTS) -am_reader4_OBJECTS = reader4.$(OBJEXT) -reader4_OBJECTS = $(am_reader4_OBJECTS) -am_testWriter_OBJECTS = testWriter.$(OBJEXT) -testWriter_OBJECTS = $(am_testWriter_OBJECTS) -am_tree1_OBJECTS = tree1.$(OBJEXT) -tree1_OBJECTS = $(am_tree1_OBJECTS) -am_tree2_OBJECTS = tree2.$(OBJEXT) -tree2_OBJECTS = $(am_tree2_OBJECTS) -am_xpath1_OBJECTS = xpath1.$(OBJEXT) -xpath1_OBJECTS = $(am_xpath1_OBJECTS) -am_xpath2_OBJECTS = xpath2.$(OBJEXT) -xpath2_OBJECTS = $(am_xpath2_OBJECTS) -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(io1_SOURCES) $(io2_SOURCES) $(parse1_SOURCES) \ - $(parse2_SOURCES) $(parse3_SOURCES) $(parse4_SOURCES) \ - $(reader1_SOURCES) $(reader2_SOURCES) $(reader3_SOURCES) \ - $(reader4_SOURCES) $(testWriter_SOURCES) $(tree1_SOURCES) \ - $(tree2_SOURCES) $(xpath1_SOURCES) $(xpath2_SOURCES) -DIST_SOURCES = $(io1_SOURCES) $(io2_SOURCES) $(parse1_SOURCES) \ - $(parse2_SOURCES) $(parse3_SOURCES) $(parse4_SOURCES) \ - $(reader1_SOURCES) $(reader2_SOURCES) $(reader3_SOURCES) \ - $(reader4_SOURCES) $(testWriter_SOURCES) $(tree1_SOURCES) \ - $(tree2_SOURCES) $(xpath1_SOURCES) $(xpath2_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -BASE_THREAD_LIBS = @BASE_THREAD_LIBS@ -C14N_OBJ = @C14N_OBJ@ -CATALOG_OBJ = @CATALOG_OBJ@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ -CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@ -DEBUG_OBJ = @DEBUG_OBJ@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOCB_OBJ = @DOCB_OBJ@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -FTP_OBJ = @FTP_OBJ@ -HAVE_ISINF = @HAVE_ISINF@ -HAVE_ISNAN = @HAVE_ISNAN@ -HTML_DIR = @HTML_DIR@ -HTML_OBJ = @HTML_OBJ@ -HTTP_OBJ = @HTTP_OBJ@ -ICONV_LIBS = @ICONV_LIBS@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBXML_MAJOR_VERSION = @LIBXML_MAJOR_VERSION@ -LIBXML_MICRO_VERSION = @LIBXML_MICRO_VERSION@ -LIBXML_MINOR_VERSION = @LIBXML_MINOR_VERSION@ -LIBXML_VERSION = @LIBXML_VERSION@ -LIBXML_VERSION_EXTRA = @LIBXML_VERSION_EXTRA@ -LIBXML_VERSION_INFO = @LIBXML_VERSION_INFO@ -LIBXML_VERSION_NUMBER = @LIBXML_VERSION_NUMBER@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MODULE_EXTENSION = @MODULE_EXTENSION@ -MODULE_PLATFORM_LIBS = @MODULE_PLATFORM_LIBS@ -MV = @MV@ -M_LIBS = @M_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -PYTHON = @PYTHON@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@ -PYTHON_SUBDIR = @PYTHON_SUBDIR@ -PYTHON_TESTS = @PYTHON_TESTS@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -RDL_LIBS = @RDL_LIBS@ -READER_TEST = @READER_TEST@ -RELDATE = @RELDATE@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STATIC_BINARIES = @STATIC_BINARIES@ -STRIP = @STRIP@ -TAR = @TAR@ -TEST_C14N = @TEST_C14N@ -TEST_CATALOG = @TEST_CATALOG@ -TEST_DEBUG = @TEST_DEBUG@ -TEST_HTML = @TEST_HTML@ -TEST_MODULES = @TEST_MODULES@ -TEST_PATTERN = @TEST_PATTERN@ -TEST_PHTML = @TEST_PHTML@ -TEST_PUSH = @TEST_PUSH@ -TEST_REGEXPS = @TEST_REGEXPS@ -TEST_SAX = @TEST_SAX@ -TEST_SCHEMAS = @TEST_SCHEMAS@ -TEST_SCHEMATRON = @TEST_SCHEMATRON@ -TEST_THREADS = @TEST_THREADS@ -TEST_VALID = @TEST_VALID@ -TEST_VTIME = @TEST_VTIME@ -TEST_XINCLUDE = @TEST_XINCLUDE@ -TEST_XPATH = @TEST_XPATH@ -TEST_XPTR = @TEST_XPTR@ -THREADS_W32 = @THREADS_W32@ -THREAD_CFLAGS = @THREAD_CFLAGS@ -THREAD_LIBS = @THREAD_LIBS@ -U = @U@ -VERSION = @VERSION@ -WIN32_EXTRA_LDFLAGS = @WIN32_EXTRA_LDFLAGS@ -WIN32_EXTRA_LIBADD = @WIN32_EXTRA_LIBADD@ -WITH_C14N = @WITH_C14N@ -WITH_CATALOG = @WITH_CATALOG@ -WITH_DEBUG = @WITH_DEBUG@ -WITH_DOCB = @WITH_DOCB@ -WITH_FTP = @WITH_FTP@ -WITH_HTML = @WITH_HTML@ -WITH_HTTP = @WITH_HTTP@ -WITH_ICONV = @WITH_ICONV@ -WITH_ISO8859X = @WITH_ISO8859X@ -WITH_LEGACY = @WITH_LEGACY@ -WITH_MEM_DEBUG = @WITH_MEM_DEBUG@ -WITH_MODULES = @WITH_MODULES@ -WITH_OUTPUT = @WITH_OUTPUT@ -WITH_PATTERN = @WITH_PATTERN@ -WITH_PUSH = @WITH_PUSH@ -WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@ -WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@ -WITH_READER = @WITH_READER@ -WITH_REGEXPS = @WITH_REGEXPS@ -WITH_RUN_DEBUG = @WITH_RUN_DEBUG@ -WITH_SAX1 = @WITH_SAX1@ -WITH_SCHEMAS = @WITH_SCHEMAS@ -WITH_SCHEMATRON = @WITH_SCHEMATRON@ -WITH_THREADS = @WITH_THREADS@ -WITH_TREE = @WITH_TREE@ -WITH_TRIO = @WITH_TRIO@ -WITH_TRIO_SOURCES_FALSE = @WITH_TRIO_SOURCES_FALSE@ -WITH_TRIO_SOURCES_TRUE = @WITH_TRIO_SOURCES_TRUE@ -WITH_VALID = @WITH_VALID@ -WITH_WRITER = @WITH_WRITER@ -WITH_XINCLUDE = @WITH_XINCLUDE@ -WITH_XPATH = @WITH_XPATH@ -WITH_XPTR = @WITH_XPTR@ -XINCLUDE_OBJ = @XINCLUDE_OBJ@ -XMLLINT = @XMLLINT@ -XML_CFLAGS = @XML_CFLAGS@ -XML_INCLUDEDIR = @XML_INCLUDEDIR@ -XML_LIBDIR = @XML_LIBDIR@ -XML_LIBS = @XML_LIBS@ -XML_LIBTOOLLIBS = @XML_LIBTOOLLIBS@ -XPATH_OBJ = @XPATH_OBJ@ -XPTR_OBJ = @XPTR_OBJ@ -XSLTPROC = @XSLTPROC@ -Z_CFLAGS = @Z_CFLAGS@ -Z_LIBS = @Z_LIBS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_AS = @ac_ct_AS@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ - -# Beware this is autogenerated by index.py -INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@ -DEPS = $(top_builddir)/libxml2.la -LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm @WIN32_EXTRA_LIBADD@ -EXTRA_DIST = examples.xsl index.py examples.xml test1.xml test2.xml test3.xml tst.xml writer.xml io1.res io2.res reader1.res reader3.res reader4.res tree1.res tree2.res xpath1.res xpath2.res -io1_SOURCES = io1.c -io1_LDFLAGS = -io1_DEPENDENCIES = $(DEPS) -io1_LDADD = @RDL_LIBS@ $(LDADDS) -io2_SOURCES = io2.c -io2_LDFLAGS = -io2_DEPENDENCIES = $(DEPS) -io2_LDADD = @RDL_LIBS@ $(LDADDS) -parse1_SOURCES = parse1.c -parse1_LDFLAGS = -parse1_DEPENDENCIES = $(DEPS) -parse1_LDADD = @RDL_LIBS@ $(LDADDS) -parse2_SOURCES = parse2.c -parse2_LDFLAGS = -parse2_DEPENDENCIES = $(DEPS) -parse2_LDADD = @RDL_LIBS@ $(LDADDS) -parse3_SOURCES = parse3.c -parse3_LDFLAGS = -parse3_DEPENDENCIES = $(DEPS) -parse3_LDADD = @RDL_LIBS@ $(LDADDS) -parse4_SOURCES = parse4.c -parse4_LDFLAGS = -parse4_DEPENDENCIES = $(DEPS) -parse4_LDADD = @RDL_LIBS@ $(LDADDS) -reader1_SOURCES = reader1.c -reader1_LDFLAGS = -reader1_DEPENDENCIES = $(DEPS) -reader1_LDADD = @RDL_LIBS@ $(LDADDS) -reader2_SOURCES = reader2.c -reader2_LDFLAGS = -reader2_DEPENDENCIES = $(DEPS) -reader2_LDADD = @RDL_LIBS@ $(LDADDS) -reader3_SOURCES = reader3.c -reader3_LDFLAGS = -reader3_DEPENDENCIES = $(DEPS) -reader3_LDADD = @RDL_LIBS@ $(LDADDS) -reader4_SOURCES = reader4.c -reader4_LDFLAGS = -reader4_DEPENDENCIES = $(DEPS) -reader4_LDADD = @RDL_LIBS@ $(LDADDS) -testWriter_SOURCES = testWriter.c -testWriter_LDFLAGS = -testWriter_DEPENDENCIES = $(DEPS) -testWriter_LDADD = @RDL_LIBS@ $(LDADDS) -tree1_SOURCES = tree1.c -tree1_LDFLAGS = -tree1_DEPENDENCIES = $(DEPS) -tree1_LDADD = @RDL_LIBS@ $(LDADDS) -tree2_SOURCES = tree2.c -tree2_LDFLAGS = -tree2_DEPENDENCIES = $(DEPS) -tree2_LDADD = @RDL_LIBS@ $(LDADDS) -xpath1_SOURCES = xpath1.c -xpath1_LDFLAGS = -xpath1_DEPENDENCIES = $(DEPS) -xpath1_LDADD = @RDL_LIBS@ $(LDADDS) -xpath2_SOURCES = xpath2.c -xpath2_LDFLAGS = -xpath2_DEPENDENCIES = $(DEPS) -xpath2_LDADD = @RDL_LIBS@ $(LDADDS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/examples/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/examples/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; for p in $$list; do \ - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f $$p $$f"; \ - rm -f $$p $$f ; \ - done -io1$(EXEEXT): $(io1_OBJECTS) $(io1_DEPENDENCIES) - @rm -f io1$(EXEEXT) - $(LINK) $(io1_LDFLAGS) $(io1_OBJECTS) $(io1_LDADD) $(LIBS) -io2$(EXEEXT): $(io2_OBJECTS) $(io2_DEPENDENCIES) - @rm -f io2$(EXEEXT) - $(LINK) $(io2_LDFLAGS) $(io2_OBJECTS) $(io2_LDADD) $(LIBS) -parse1$(EXEEXT): $(parse1_OBJECTS) $(parse1_DEPENDENCIES) - @rm -f parse1$(EXEEXT) - $(LINK) $(parse1_LDFLAGS) $(parse1_OBJECTS) $(parse1_LDADD) $(LIBS) -parse2$(EXEEXT): $(parse2_OBJECTS) $(parse2_DEPENDENCIES) - @rm -f parse2$(EXEEXT) - $(LINK) $(parse2_LDFLAGS) $(parse2_OBJECTS) $(parse2_LDADD) $(LIBS) -parse3$(EXEEXT): $(parse3_OBJECTS) $(parse3_DEPENDENCIES) - @rm -f parse3$(EXEEXT) - $(LINK) $(parse3_LDFLAGS) $(parse3_OBJECTS) $(parse3_LDADD) $(LIBS) -parse4$(EXEEXT): $(parse4_OBJECTS) $(parse4_DEPENDENCIES) - @rm -f parse4$(EXEEXT) - $(LINK) $(parse4_LDFLAGS) $(parse4_OBJECTS) $(parse4_LDADD) $(LIBS) -reader1$(EXEEXT): $(reader1_OBJECTS) $(reader1_DEPENDENCIES) - @rm -f reader1$(EXEEXT) - $(LINK) $(reader1_LDFLAGS) $(reader1_OBJECTS) $(reader1_LDADD) $(LIBS) -reader2$(EXEEXT): $(reader2_OBJECTS) $(reader2_DEPENDENCIES) - @rm -f reader2$(EXEEXT) - $(LINK) $(reader2_LDFLAGS) $(reader2_OBJECTS) $(reader2_LDADD) $(LIBS) -reader3$(EXEEXT): $(reader3_OBJECTS) $(reader3_DEPENDENCIES) - @rm -f reader3$(EXEEXT) - $(LINK) $(reader3_LDFLAGS) $(reader3_OBJECTS) $(reader3_LDADD) $(LIBS) -reader4$(EXEEXT): $(reader4_OBJECTS) $(reader4_DEPENDENCIES) - @rm -f reader4$(EXEEXT) - $(LINK) $(reader4_LDFLAGS) $(reader4_OBJECTS) $(reader4_LDADD) $(LIBS) -testWriter$(EXEEXT): $(testWriter_OBJECTS) $(testWriter_DEPENDENCIES) - @rm -f testWriter$(EXEEXT) - $(LINK) $(testWriter_LDFLAGS) $(testWriter_OBJECTS) $(testWriter_LDADD) $(LIBS) -tree1$(EXEEXT): $(tree1_OBJECTS) $(tree1_DEPENDENCIES) - @rm -f tree1$(EXEEXT) - $(LINK) $(tree1_LDFLAGS) $(tree1_OBJECTS) $(tree1_LDADD) $(LIBS) -tree2$(EXEEXT): $(tree2_OBJECTS) $(tree2_DEPENDENCIES) - @rm -f tree2$(EXEEXT) - $(LINK) $(tree2_LDFLAGS) $(tree2_OBJECTS) $(tree2_LDADD) $(LIBS) -xpath1$(EXEEXT): $(xpath1_OBJECTS) $(xpath1_DEPENDENCIES) - @rm -f xpath1$(EXEEXT) - $(LINK) $(xpath1_LDFLAGS) $(xpath1_OBJECTS) $(xpath1_LDADD) $(LIBS) -xpath2$(EXEEXT): $(xpath2_OBJECTS) $(xpath2_DEPENDENCIES) - @rm -f xpath2$(EXEEXT) - $(LINK) $(xpath2_LDFLAGS) $(xpath2_OBJECTS) $(xpath2_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/io1.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/io2.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parse1.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parse2.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parse3.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parse4.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/reader1.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/reader2.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/reader3.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/reader4.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testWriter.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tree1.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tree2.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xpath1.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xpath2.Po@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-libtool distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: install-data-local - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-noinstPROGRAMS ctags distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am \ - install-data-local install-exec install-exec-am install-info \ - install-info-am install-man install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-info-am - - -rebuild: examples.xml index.html - -examples.xml: index.py *.c - -@($(srcdir)/index.py) - -index.html: examples.xml examples.xsl - -@(xsltproc examples.xsl examples.xml && echo "Rebuilt web page" && xmllint --valid --noout index.html) - -install-data-local: - $(mkinstalldirs) $(DESTDIR)$(HTML_DIR) - -@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR) - -valgrind: - $(MAKE) CHECKER='valgrind' tests - -tests: $(noinst_PROGRAMS) - @(echo '## examples regression tests') - @(echo > .memdump) - @($(CHECKER) ./io1 > io1.tmp ; diff io1.tmp io1.res ; rm -f io1.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./io2 > io2.tmp ; diff io2.tmp io2.res ; rm -f io2.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./parse1 test1.xml) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./parse2 test2.xml) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./parse3) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./parse4 test3.xml) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./reader1 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./reader2 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./reader3 > reader3.tmp ; diff reader3.tmp reader3.res ; rm reader3.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./reader4 test1.xml test2.xml test3.xml > reader4.tmp ; diff reader4.tmp reader4.res ; rm reader4.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./testWriter ; for i in 1 2 3 4 ; do diff writer.xml writer$$i.res ; done ; rm writer*.res) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.res ; rm tree1.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./tree2 > tree2.tmp ; diff tree2.tmp tree2.res ; rm tree2.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ././xpath1 test3.xml '//child2' > xpath1.tmp ; diff xpath1.tmp xpath1.res ; rm xpath1.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) - @($(CHECKER) ./xpath2 test3.xml '//discarded' discarded > xpath2.tmp ; diff xpath2.tmp xpath2.res ; rm xpath2.tmp) - @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0) -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/tools/docbook/libxml2/doc/examples/examples.xml b/src/tools/docbook/libxml2/doc/examples/examples.xml deleted file mode 100644 index 22f730c935..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/examples.xml +++ /dev/null @@ -1,751 +0,0 @@ - - - Example of custom Input/Output - Demonstrate the use of xmlRegisterInputCallbacks to build a custom I/O layer, this is used in an XInclude method context to show how dynamic document can be built in a clean way. - io1 - io1 > io1.tmp ; diff io1.tmp io1.res ; rm -f io1.tmp - Daniel Veillard - see Copyright for the status of this software. -
    InputOutput
    - - <libxml/parser.h> - <libxml/xmlIO.h> - <libxml/xinclude.h> - <libxml/tree.h> - - - - - - - - - - - - -
    - - Output to char buffer - Demonstrate the use of xmlDocDumpMemory to output document to a character buffer - io2 - io2 > io2.tmp ; diff io2.tmp io2.res ; rm -f io2.tmp - John Fleck - see Copyright for the status of this software. -
    InputOutput
    - - <libxml/parser.h> - - - - - - - - - - - - -
    - - Parse an XML file to a tree and free it - Demonstrate the use of xmlReadFile() to read an XML file into a tree and and xmlFreeDoc() to free the resulting tree - parse1 test1.xml - parse1 test1.xml - Daniel Veillard - see Copyright for the status of this software. -
    Parsing
    - - <libxml/tree.h> - <libxml/parser.h> - - - - - - - - - -
    - - Parse and validate an XML file to a tree and free the result - Create a parser context for an XML file, then parse and validate the file, creating a tree, check the validation result and xmlFreeDoc() to free the resulting tree. - parse2 test2.xml - parse2 test2.xml - Daniel Veillard - see Copyright for the status of this software. -
    Parsing
    - - <libxml/tree.h> - <libxml/parser.h> - - - - - - - - - - - - - -
    - - Parse an XML document in memory to a tree and free it - Demonstrate the use of xmlReadMemory() to read an XML file into a tree and and xmlFreeDoc() to free the resulting tree - parse3 - parse3 - Daniel Veillard - see Copyright for the status of this software. -
    Parsing
    - - <libxml/tree.h> - <libxml/parser.h> - - - - - - - - - -
    - - Parse an XML document chunk by chunk to a tree and free it - Demonstrate the use of xmlCreatePushParserCtxt() and xmlParseChunk() to read an XML file progressively into a tree and and xmlFreeDoc() to free the resulting tree - parse4 test3.xml - parse4 test3.xml - Daniel Veillard - see Copyright for the status of this software. -
    Parsing
    - - <libxml/tree.h> - <libxml/parser.h> - - - - - - - - - - - - -
    - - Parse an XML file with an xmlReader - Demonstrate the use of xmlReaderForFile() to parse an XML file and dump the informations about the nodes found in the process. (Note that the XMLReader functions require libxml2 version later than 2.6.) - reader1 <filename> - reader1 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp - Daniel Veillard - see Copyright for the status of this software. -
    xmlReader
    - - <libxml/xmlreader.h> - - - - - - - - - - - - - - - - - -
    - - Parse and validate an XML file with an xmlReader - Demonstrate the use of xmlReaderForFile() to parse an XML file validating the content in the process and activating options like entities substitution, and DTD attributes defaulting. (Note that the XMLReader functions require libxml2 version later than 2.6.) - reader2 <valid_xml_filename> - reader2 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp - Daniel Veillard - see Copyright for the status of this software. -
    xmlReader
    - - <libxml/xmlreader.h> - - - - - - - - - - - - - - - - - - -
    - - Show how to extract subdocuments with xmlReader - Demonstrate the use of xmlTextReaderPreservePattern() to parse an XML file with the xmlReader while collecting only some subparts of the document. (Note that the XMLReader functions require libxml2 version later than 2.6.) - reader3 - reader3 > reader3.tmp ; diff reader3.tmp reader3.res ; rm reader3.tmp - Daniel Veillard - see Copyright for the status of this software. -
    xmlReader
    - - <libxml/xmlreader.h> - - - - - - - - - - -
    - - Parse multiple XML files reusing an xmlReader - Demonstrate the use of xmlReaderForFile() and xmlReaderNewFile to parse XML files while reusing the reader object and parser context. (Note that the XMLReader functions require libxml2 version later than 2.6.) - reader4 <filename> [ filename ... ] - reader4 test1.xml test2.xml test3.xml > reader4.tmp ; diff reader4.tmp reader4.res ; rm reader4.tmp - Graham Bennett - see Copyright for the status of this software. -
    xmlReader
    - - <libxml/xmlreader.h> - - - - - - - - - -
    - - use various APIs for the xmlWriter - tests a number of APIs for the xmlWriter, especially the various methods to write to a filename, to a memory buffer, to a new document, or to a subtree. It shows how to do encoding string conversions too. The resulting documents are then serialized. - testWriter - testWriter ; for i in 1 2 3 4 ; do diff writer.xml writer$$i.res ; done ; rm writer*.res - Alfred Mickautsch - see Copyright for the status of this software. -
    xmlWriter
    - - <libxml/encoding.h> - <libxml/xmlwriter.h> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - Navigates a tree to print element names - Parse a file to a tree, use xmlDocGetRootElement() to get the root element, then walk the document and print all the element name in document order. - tree1 filename_or_URL - tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.res ; rm tree1.tmp - Dodji Seketeli - see Copyright for the status of this software. -
    Tree
    - - <libxml/tree.h> - <libxml/parser.h> - - - - - - -
    - - Creates a tree - Shows how to create document, nodes and dump it to stdout or file. - tree2 <filename> -Default output: stdout - tree2 > tree2.tmp ; diff tree2.tmp tree2.res ; rm tree2.tmp - Lucas Brasilino <brasilino@recife.pe.gov.br> - see Copyright for the status of this software -
    Tree
    - - <libxml/tree.h> - <libxml/parser.h> - - - - - - - - - - - - -
    - - Evaluate XPath expression and prints result node set. - Shows how to evaluate XPath expression and register known namespaces in XPath context. - xpath1 <xml-file> <xpath-expr> [<known-ns-list>] - ./xpath1 test3.xml '//child2' > xpath1.tmp ; diff xpath1.tmp xpath1.res ; rm xpath1.tmp - Aleksey Sanin - see Copyright for the status of this software. -
    XPath
    - - <libxml/parser.h> - <libxml/xpath.h> - <libxml/xpathInternals.h> - <libxml/tree.h> - - - - - - - - - - - - - - - - - - - -
    - - Load a document, locate subelements with XPath, modify said elements and save the resulting document. - Shows how to make a full round-trip from a load/edit/save - xpath2 <xml-file> <xpath-expr> <new-value> - xpath2 test3.xml '//discarded' discarded > xpath2.tmp ; diff xpath2.tmp xpath2.res ; rm xpath2.tmp - Aleksey Sanin and Daniel Veillard - see Copyright for the status of this software. -
    XPath
    - - <libxml/parser.h> - <libxml/xpath.h> - <libxml/xpathInternals.h> - <libxml/tree.h> - - - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - -
    -
    - - - - -
    -
    - - -
    -
    - - -
    -
    - - - - -
    -
    - -
    -
    -
    diff --git a/src/tools/docbook/libxml2/doc/examples/examples.xsl b/src/tools/docbook/libxml2/doc/examples/examples.xsl deleted file mode 100644 index 74aaaa20cb..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/examples.xsl +++ /dev/null @@ -1,174 +0,0 @@ - - - - - - ../ - Examples Menu - - -
    - - -
    - -
    - - - - -
  • -
    - - - - - -
  • line : Type from
  • -
    - - - - - -
  • line : Function from
  • -
    - - - - - -
  • line : Macro from
  • -
    - - - -

    :

    -

    -

    Includes:

    -
      - - - -
    -

    Uses:

    -
      - - - - -
    -

    Usage:

    -

    -

    Author:

    -
    - - -
  • :

    -
      - - - -
    • :
    • -
      -
    -
  • -
    - - -

    The examples are stored per section depending on the main focus - of the example:

    -
      - - - - -
    -

    Getting the compilation options and libraries dependancies needed -to generate binaries from the examples is best done on Linux/Unix by using -the xml2-config script which should have been installed as part of make -install step or when installing the libxml2 development package:

    -
    gcc -o example `xml2-config --cflags` example.c `xml2-config --libs`
    -
    - - - - -

    Examples

    - -
    -
    - - - Libxml2 set of examples - - - - - - - - - - - - - - - - -
    - - - - - -
    - - - - - - -
    - - - - -
    - - - - -
    - - -

    Daniel Veillard

    -
    -
    -
    -
    -
    - - -
    -
    - -
    diff --git a/src/tools/docbook/libxml2/doc/examples/index.py b/src/tools/docbook/libxml2/doc/examples/index.py deleted file mode 100755 index 11df6f0f85..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/index.py +++ /dev/null @@ -1,298 +0,0 @@ -#!/usr/bin/python -u -# -# Indexes the examples and build an XML description -# -import string -import glob -import sys -try: - import libxml2 -except: - sys.exit(1) -sys.path.insert(0, "..") -from apibuild import CParser, escape - -examples = [] -extras = ['examples.xsl', 'index.py'] -tests = [] -sections = {} -symbols = {} -api_dict = None -api_doc = None - -def load_api(): - global api_dict - global api_doc - - if api_dict != None: - return - api_dict = {} - try: - print "loading ../libxml2-api.xml" - api_doc = libxml2.parseFile("../libxml2-api.xml") - except: - print "failed to parse ../libxml2-api.xml" - sys.exit(1) - -def find_symbol(name): - global api_dict - global api_doc - - if api_doc == None: - load_api() - - if name == None: - return - if api_dict.has_key(name): - return api_dict[name] - ctxt = api_doc.xpathNewContext() - res = ctxt.xpathEval("/api/symbols/*[@name = '%s']" % (name)) - if type(res) == type([]) and len(res) >= 1: - if len(res) > 1: - print "Found %d references to %s in the API" % (len(res), name) - node = res[0] - typ = node.name - file = node.xpathEval("string(@file)") - info = node.xpathEval("string(info)") - else: - print "Reference %s not found in the API" % (name) - return None - ret = (typ, file, info) - api_dict[name] = ret - return ret - -def parse_top_comment(filename, comment): - res = {} - lines = string.split(comment, "\n") - item = None - for line in lines: - while line != "" and (line[0] == ' ' or line[0] == '\t'): - line = line[1:] - while line != "" and line[0] == '*': - line = line[1:] - while line != "" and (line[0] == ' ' or line[0] == '\t'): - line = line[1:] - try: - (it, line) = string.split(line, ":", 1) - item = it - while line != "" and (line[0] == ' ' or line[0] == '\t'): - line = line[1:] - if res.has_key(item): - res[item] = res[item] + " " + line - else: - res[item] = line - except: - if item != None: - if res.has_key(item): - res[item] = res[item] + " " + line - else: - res[item] = line - return res - -def parse(filename, output): - global symbols - global sections - - parser = CParser(filename) - parser.collect_references() - idx = parser.parse() - info = parse_top_comment(filename, parser.top_comment) - output.write(" \n" % filename) - try: - synopsis = info['synopsis'] - output.write(" %s\n" % escape(synopsis)); - except: - print "Example %s lacks a synopsis description" % (filename) - try: - purpose = info['purpose'] - output.write(" %s\n" % escape(purpose)); - except: - print "Example %s lacks a purpose description" % (filename) - try: - usage = info['usage'] - output.write(" %s\n" % escape(usage)); - except: - print "Example %s lacks an usage description" % (filename) - try: - test = info['test'] - output.write(" %s\n" % escape(test)); - progname=filename[0:-2] - command=string.replace(test, progname, './' + progname, 1) - tests.append(command) - except: - pass - try: - author = info['author'] - output.write(" %s\n" % escape(author)); - except: - print "Example %s lacks an author description" % (filename) - try: - copy = info['copy'] - output.write(" %s\n" % escape(copy)); - except: - print "Example %s lacks a copyright description" % (filename) - try: - section = info['section'] - output.write("
    %s
    \n" % escape(section)); - if sections.has_key(section): - sections[section].append(filename) - else: - sections[section] = [filename] - except: - print "Example %s lacks a section description" % (filename) - for topic in info.keys(): - if topic != "purpose" and topic != "usage" and \ - topic != "author" and topic != "copy" and \ - topic != "section" and topic != "synopsis" and topic != "test": - str = info[topic] - output.write(" %s\n" % ( - escape(topic), escape(str))) - output.write(" \n") - for include in idx.includes.keys(): - if include.find("libxml") != -1: - output.write(" %s\n" % (escape(include))) - output.write(" \n") - output.write(" \n") - for ref in idx.references.keys(): - id = idx.references[ref] - name = id.get_name() - line = id.get_lineno() - if symbols.has_key(name): - sinfo = symbols[name] - refs = sinfo[0] - # gather at most 5 references per symbols - if refs > 5: - continue - sinfo.append(filename) - sinfo[0] = refs + 1 - else: - symbols[name] = [1, filename] - info = find_symbol(name) - if info != None: - type = info[0] - file = info[1] - output.write(" <%s line='%d' file='%s' name='%s'/>\n" % (type, - line, file, name)) - else: - type = id.get_type() - output.write(" <%s line='%d' name='%s'/>\n" % (type, - line, name)) - - output.write(" \n") - output.write("
    \n") - - return idx - -def dump_symbols(output): - global symbols - - output.write(" \n") - keys = symbols.keys() - keys.sort() - for symbol in keys: - output.write(" \n" % (symbol)) - info = symbols[symbol] - i = 1 - while i < len(info): - output.write(" \n" % (info[i])) - i = i + 1 - output.write(" \n") - output.write(" \n") - -def dump_sections(output): - global sections - - output.write(" \n") - keys = sections.keys() - keys.sort() - for section in keys: - output.write("
    \n" % (section)) - info = sections[section] - i = 0 - while i < len(info): - output.write(" \n" % (info[i])) - i = i + 1 - output.write("
    \n") - output.write("
    \n") - -def dump_Makefile(): - for file in glob.glob('*.xml'): - extras.append(file) - for file in glob.glob('*.res'): - extras.append(file) - Makefile="""# Beware this is autogenerated by index.py -INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@ -DEPS = $(top_builddir)/libxml2.la -LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm @WIN32_EXTRA_LIBADD@ - -rebuild: examples.xml index.html - -examples.xml: index.py *.c - -@($(srcdir)/index.py) - -index.html: examples.xml examples.xsl - -@(xsltproc examples.xsl examples.xml && echo "Rebuilt web page" && xmllint --valid --noout index.html) - -install-data-local: - $(mkinstalldirs) $(DESTDIR)$(HTML_DIR) - -@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR) - -""" - EXTRA_DIST="" - for extra in extras: - EXTRA_DIST = EXTRA_DIST + extra + " " - Makefile = Makefile + "EXTRA_DIST=%s\n\n" % (EXTRA_DIST) - noinst_PROGRAMS="" - for example in examples: - noinst_PROGRAMS = noinst_PROGRAMS + example + " " - Makefile = Makefile + "noinst_PROGRAMS=%s\n\n" % (noinst_PROGRAMS) - for example in examples: - Makefile = Makefile + "%s_SOURCES=%s.c\n%s_LDFLAGS=\n%s_DEPENDENCIES= $(DEPS)\n%s_LDADD= @RDL_LIBS@ $(LDADDS)\n\n" % (example, example, example, - example, example) - Makefile = Makefile + "valgrind: \n\t$(MAKE) CHECKER='valgrind' tests\n\n" - Makefile = Makefile + "tests: $(noinst_PROGRAMS)\n" - Makefile = Makefile + "\t@(echo '## examples regression tests')\n" - Makefile = Makefile + "\t@(echo > .memdump)\n" - for test in tests: - Makefile = Makefile + "\t@($(CHECKER) %s)\n" % (test) - Makefile = Makefile + '\t@(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)\n' - Makefile = Makefile + "\n\n" - try: - old = open("Makefile.am", "r").read() - if old != Makefile: - n = open("Makefile.am", "w").write(Makefile) - print "Updated Makefile.am" - except: - print "Failed to read or save Makefile.am" - # - # Autogenerate the .cvsignore too ... - # - ignore = """.memdump -Makefile.in -Makefile -""" - for example in examples: - ignore = ignore + "%s\n" % (example) - try: - old = open(".cvsignore", "r").read() - if old != ignore: - n = open(".cvsignore", "w").write(ignore) - print "Updated .cvsignore" - except: - print "Failed to read or save .cvsignore" - -if __name__ == "__main__": - load_api() - output = open("examples.xml", "w") - output.write("\n") - - for file in glob.glob('*.c'): - parse(file, output) - examples.append(file[:-2]) - - dump_symbols(output) - dump_sections(output) - output.write("\n") - output.close() - dump_Makefile() - diff --git a/src/tools/docbook/libxml2/doc/examples/io1.c b/src/tools/docbook/libxml2/doc/examples/io1.c deleted file mode 100644 index c8a47e3f25..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/io1.c +++ /dev/null @@ -1,166 +0,0 @@ -/** - * section: InputOutput - * synopsis: Example of custom Input/Output - * purpose: Demonstrate the use of xmlRegisterInputCallbacks - * to build a custom I/O layer, this is used in an - * XInclude method context to show how dynamic document can - * be built in a clean way. - * usage: io1 - * test: io1 > io1.tmp ; diff io1.tmp io1.res ; rm -f io1.tmp - * author: Daniel Veillard - * copy: see Copyright for the status of this software. - */ - -#include -#include -#include -#include -#include -#include - -#ifdef LIBXML_XINCLUDE_ENABLED -static const char *result = "ab"; -static const char *cur = NULL; -static int rlen; - -/** - * sqlMatch: - * @URI: an URI to test - * - * Check for an sql: query - * - * Returns 1 if yes and 0 if another Input module should be used - */ -static int -sqlMatch(const char * URI) { - if ((URI != NULL) && (!strncmp(URI, "sql:", 4))) - return(1); - return(0); -} - -/** - * sqlOpen: - * @URI: an URI to test - * - * Return a pointer to the sql: query handler, in this example simply - * the current pointer... - * - * Returns an Input context or NULL in case or error - */ -static void * -sqlOpen(const char * URI) { - if ((URI == NULL) || (strncmp(URI, "sql:", 4))) - return(NULL); - cur = result; - rlen = strlen(result); - return((void *) cur); -} - -/** - * sqlClose: - * @context: the read context - * - * Close the sql: query handler - * - * Returns 0 or -1 in case of error - */ -static int -sqlClose(void * context) { - if (context == NULL) return(-1); - cur = NULL; - rlen = 0; - return(0); -} - -/** - * sqlRead: - * @context: the read context - * @buffer: where to store data - * @len: number of bytes to read - * - * Implement an sql: query read. - * - * Returns the number of bytes read or -1 in case of error - */ -static int -sqlRead(void * context, char * buffer, int len) { - const char *ptr = (const char *) context; - - if ((context == NULL) || (buffer == NULL) || (len < 0)) - return(-1); - - if (len > rlen) len = rlen; - memcpy(buffer, ptr, len); - rlen -= len; - return(len); -} - -const char *include = "\n\ -\n\ -

    List of people:

    \n\ - \n\ -
    \n"; - -int main(void) { - xmlDocPtr doc; - - /* - * this initialize the library and check potential ABI mismatches - * between the version it was compiled for and the actual shared - * library used. - */ - LIBXML_TEST_VERSION - - /* - * register the new I/O handlers - */ - if (xmlRegisterInputCallbacks(sqlMatch, sqlOpen, sqlRead, sqlClose) < 0) { - fprintf(stderr, "failed to register SQL handler\n"); - exit(1); - } - /* - * parse include into a document - */ - doc = xmlReadMemory(include, strlen(include), "include.xml", NULL, 0); - if (doc == NULL) { - fprintf(stderr, "failed to parse the including file\n"); - exit(1); - } - - /* - * apply the XInclude process, this should trigger the I/O just - * registered. - */ - if (xmlXIncludeProcess(doc) <= 0) { - fprintf(stderr, "XInclude processing failed\n"); - exit(1); - } - -#ifdef LIBXML_OUTPUT_ENABLED - /* - * save the output for checking to stdout - */ - xmlDocDump(stdout, doc); -#endif - - /* - * Free the document - */ - xmlFreeDoc(doc); - - /* - * Cleanup function for the XML library. - */ - xmlCleanupParser(); - /* - * this is to debug memory for regression tests - */ - xmlMemoryDump(); - return(0); -} -#else -int main(void) { - fprintf(stderr, "XInclude support not compiled in\n"); - exit(1); -} -#endif diff --git a/src/tools/docbook/libxml2/doc/examples/io1.res b/src/tools/docbook/libxml2/doc/examples/io1.res deleted file mode 100644 index 4a4c036ae3..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/io1.res +++ /dev/null @@ -1,5 +0,0 @@ - - -

    List of people:

    - ab -
    diff --git a/src/tools/docbook/libxml2/doc/examples/io2.c b/src/tools/docbook/libxml2/doc/examples/io2.c deleted file mode 100644 index 2659ef1bda..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/io2.c +++ /dev/null @@ -1,58 +0,0 @@ -/** - * section: InputOutput - * synopsis: Output to char buffer - * purpose: Demonstrate the use of xmlDocDumpMemory - * to output document to a character buffer - * usage: io2 - * test: io2 > io2.tmp ; diff io2.tmp io2.res ; rm -f io2.tmp - * author: John Fleck - * copy: see Copyright for the status of this software. - */ - -#include - -#if defined(LIBXML_TREE_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -int -main(void) -{ - - xmlNodePtr n; - xmlDocPtr doc; - xmlChar *xmlbuff; - int buffersize; - - /* - * Create the document. - */ - doc = xmlNewDoc(BAD_CAST "1.0"); - n = xmlNewNode(NULL, BAD_CAST "root"); - xmlNodeSetContent(n, BAD_CAST "content"); - xmlDocSetRootElement(doc, n); - - /* - * Dump the document to a buffer and print it - * for demonstration purposes. - */ - xmlDocDumpFormatMemory(doc, &xmlbuff, &buffersize, 1); - printf((char *) xmlbuff); - - /* - * Free associated memory. - */ - xmlFree(xmlbuff); - xmlFreeDoc(doc); - - return (0); - -} -#else -#include - -int -main(void) -{ - fprintf(stderr, - "library not configured with tree and output support\n"); - return (1); -} -#endif diff --git a/src/tools/docbook/libxml2/doc/examples/io2.res b/src/tools/docbook/libxml2/doc/examples/io2.res deleted file mode 100644 index 8737b8752f..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/io2.res +++ /dev/null @@ -1,2 +0,0 @@ - -content diff --git a/src/tools/docbook/libxml2/doc/examples/parse1.c b/src/tools/docbook/libxml2/doc/examples/parse1.c deleted file mode 100644 index b44b03be58..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/parse1.c +++ /dev/null @@ -1,56 +0,0 @@ -/** - * section: Parsing - * synopsis: Parse an XML file to a tree and free it - * purpose: Demonstrate the use of xmlReadFile() to read an XML file - * into a tree and and xmlFreeDoc() to free the resulting tree - * usage: parse1 test1.xml - * test: parse1 test1.xml - * author: Daniel Veillard - * copy: see Copyright for the status of this software. - */ - -#include -#include -#include - -/** - * example1Func: - * @filename: a filename or an URL - * - * Parse the resource and free the resulting tree - */ -static void -example1Func(const char *filename) { - xmlDocPtr doc; /* the resulting document tree */ - - doc = xmlReadFile(filename, NULL, 0); - if (doc == NULL) { - fprintf(stderr, "Failed to parse %s\n", filename); - return; - } - xmlFreeDoc(doc); -} - -int main(int argc, char **argv) { - if (argc != 2) - return(1); - - /* - * this initialize the library and check potential ABI mismatches - * between the version it was compiled for and the actual shared - * library used. - */ - LIBXML_TEST_VERSION - - example1Func(argv[1]); - - /* - * Cleanup function for the XML library. - */ - xmlCleanupParser(); - /* - * this is to debug memory for regression tests - */ - xmlMemoryDump(); - return(0); -} diff --git a/src/tools/docbook/libxml2/doc/examples/parse2.c b/src/tools/docbook/libxml2/doc/examples/parse2.c deleted file mode 100644 index aed7676278..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/parse2.c +++ /dev/null @@ -1,72 +0,0 @@ -/** - * section: Parsing - * synopsis: Parse and validate an XML file to a tree and free the result - * purpose: Create a parser context for an XML file, then parse and validate - * the file, creating a tree, check the validation result - * and xmlFreeDoc() to free the resulting tree. - * usage: parse2 test2.xml - * test: parse2 test2.xml - * author: Daniel Veillard - * copy: see Copyright for the status of this software. - */ - -#include -#include -#include - -/** - * exampleFunc: - * @filename: a filename or an URL - * - * Parse and validate the resource and free the resulting tree - */ -static void -exampleFunc(const char *filename) { - xmlParserCtxtPtr ctxt; /* the parser context */ - xmlDocPtr doc; /* the resulting document tree */ - - /* create a parser context */ - ctxt = xmlNewParserCtxt(); - if (ctxt == NULL) { - fprintf(stderr, "Failed to allocate parser context\n"); - return; - } - /* parse the file, activating the DTD validation option */ - doc = xmlCtxtReadFile(ctxt, filename, NULL, XML_PARSE_DTDVALID); - /* check if parsing suceeded */ - if (doc == NULL) { - fprintf(stderr, "Failed to parse %s\n", filename); - } else { - /* check if validation suceeded */ - if (ctxt->valid == 0) - fprintf(stderr, "Failed to validate %s\n", filename); - /* free up the resulting document */ - xmlFreeDoc(doc); - } - /* free up the parser context */ - xmlFreeParserCtxt(ctxt); -} - -int main(int argc, char **argv) { - if (argc != 2) - return(1); - - /* - * this initialize the library and check potential ABI mismatches - * between the version it was compiled for and the actual shared - * library used. - */ - LIBXML_TEST_VERSION - - exampleFunc(argv[1]); - - /* - * Cleanup function for the XML library. - */ - xmlCleanupParser(); - /* - * this is to debug memory for regression tests - */ - xmlMemoryDump(); - return(0); -} diff --git a/src/tools/docbook/libxml2/doc/examples/parse3.c b/src/tools/docbook/libxml2/doc/examples/parse3.c deleted file mode 100644 index a2d3a4093c..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/parse3.c +++ /dev/null @@ -1,60 +0,0 @@ -/** - * section: Parsing - * synopsis: Parse an XML document in memory to a tree and free it - * purpose: Demonstrate the use of xmlReadMemory() to read an XML file - * into a tree and and xmlFreeDoc() to free the resulting tree - * usage: parse3 - * test: parse3 - * author: Daniel Veillard - * copy: see Copyright for the status of this software. - */ - -#include -#include -#include - -static const char *document = ""; - -/** - * example3Func: - * @content: the content of the document - * @length: the length in bytes - * - * Parse the in memory document and free the resulting tree - */ -static void -example3Func(const char *content, int length) { - xmlDocPtr doc; /* the resulting document tree */ - - /* - * The document being in memory, it have no base per RFC 2396, - * and the "noname.xml" argument will serve as its base. - */ - doc = xmlReadMemory(content, length, "noname.xml", NULL, 0); - if (doc == NULL) { - fprintf(stderr, "Failed to parse document\n"); - return; - } - xmlFreeDoc(doc); -} - -int main(void) { - /* - * this initialize the library and check potential ABI mismatches - * between the version it was compiled for and the actual shared - * library used. - */ - LIBXML_TEST_VERSION - - example3Func(document, 6); - - /* - * Cleanup function for the XML library. - */ - xmlCleanupParser(); - /* - * this is to debug memory for regression tests - */ - xmlMemoryDump(); - return(0); -} diff --git a/src/tools/docbook/libxml2/doc/examples/parse4.c b/src/tools/docbook/libxml2/doc/examples/parse4.c deleted file mode 100644 index 3e280560c1..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/parse4.c +++ /dev/null @@ -1,143 +0,0 @@ -/** - * section: Parsing - * synopsis: Parse an XML document chunk by chunk to a tree and free it - * purpose: Demonstrate the use of xmlCreatePushParserCtxt() and - * xmlParseChunk() to read an XML file progressively - * into a tree and and xmlFreeDoc() to free the resulting tree - * usage: parse4 test3.xml - * test: parse4 test3.xml - * author: Daniel Veillard - * copy: see Copyright for the status of this software. - */ - -#include -#include -#include - -#ifdef LIBXML_PUSH_ENABLED -static FILE *desc; - -/** - * readPacket: - * @mem: array to store the packet - * @size: the packet size - * - * read at most @size bytes from the document and store it in @mem - * - * Returns the number of bytes read - */ -static int -readPacket(char *mem, int size) { - int res; - - res = fread(mem, 1, size, desc); - return(res); -} - -/** - * example4Func: - * @filename: a filename or an URL - * - * Parse the resource and free the resulting tree - */ -static void -example4Func(const char *filename) { - xmlParserCtxtPtr ctxt; - char chars[4]; - xmlDocPtr doc; /* the resulting document tree */ - int res; - - /* - * Read a few first byte to check the input used for the - * encoding detection at the parser level. - */ - res = readPacket(chars, 4); - if (res <= 0) { - fprintf(stderr, "Failed to parse %s\n", filename); - return; - } - - /* - * Create a progressive parsing context, the 2 first arguments - * are not used since we want to build a tree and not use a SAX - * parsing interface. We also pass the first bytes of the document - * to allow encoding detection when creating the parser but this - * is optional. - */ - ctxt = xmlCreatePushParserCtxt(NULL, NULL, - chars, res, filename); - if (ctxt == NULL) { - fprintf(stderr, "Failed to create parser context !\n"); - return; - } - - /* - * loop on the input getting the document data, of course 4 bytes - * at a time is not realistic but allows to verify testing on small - * documents. - */ - while ((res = readPacket(chars, 4)) > 0) { - xmlParseChunk(ctxt, chars, res, 0); - } - - /* - * there is no more input, indicate the parsing is finished. - */ - xmlParseChunk(ctxt, chars, 0, 1); - - /* - * collect the document back and if it was wellformed - * and destroy the parser context. - */ - doc = ctxt->myDoc; - res = ctxt->wellFormed; - xmlFreeParserCtxt(ctxt); - - if (!res) { - fprintf(stderr, "Failed to parse %s\n", filename); - } - - /* - * since we don't use the document, destroy it now. - */ - xmlFreeDoc(doc); -} - -int main(int argc, char **argv) { - if (argc != 2) - return(1); - - /* - * this initialize the library and check potential ABI mismatches - * between the version it was compiled for and the actual shared - * library used. - */ - LIBXML_TEST_VERSION - - /* - * simulate a progressive parsing using the input file. - */ - desc = fopen(argv[1], "rb"); - if (desc != NULL) { - example4Func(argv[1]); - fclose(desc); - } else { - fprintf(stderr, "Failed to parse %s\n", argv[1]); - } - - /* - * Cleanup function for the XML library. - */ - xmlCleanupParser(); - /* - * this is to debug memory for regression tests - */ - xmlMemoryDump(); - return(0); -} -#else /* ! LIBXML_PUSH_ENABLED */ -int main(int argc, char **argv) { - fprintf(stderr, "Library not compiled with push parser support\n"); - return(1); -} -#endif diff --git a/src/tools/docbook/libxml2/doc/examples/reader1.c b/src/tools/docbook/libxml2/doc/examples/reader1.c deleted file mode 100644 index 90db2a1741..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/reader1.c +++ /dev/null @@ -1,107 +0,0 @@ -/** - * section: xmlReader - * synopsis: Parse an XML file with an xmlReader - * purpose: Demonstrate the use of xmlReaderForFile() to parse an XML file - * and dump the informations about the nodes found in the process. - * (Note that the XMLReader functions require libxml2 version later - * than 2.6.) - * usage: reader1 - * test: reader1 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp - * author: Daniel Veillard - * copy: see Copyright for the status of this software. - */ - -#include -#include - -#ifdef LIBXML_READER_ENABLED - -/** - * processNode: - * @reader: the xmlReader - * - * Dump information about the current node - */ -static void -processNode(xmlTextReaderPtr reader) { - const xmlChar *name, *value; - - name = xmlTextReaderConstName(reader); - if (name == NULL) - name = BAD_CAST "--"; - - value = xmlTextReaderConstValue(reader); - - printf("%d %d %s %d %d", - xmlTextReaderDepth(reader), - xmlTextReaderNodeType(reader), - name, - xmlTextReaderIsEmptyElement(reader), - xmlTextReaderHasValue(reader)); - if (value == NULL) - printf("\n"); - else { - if (xmlStrlen(value) > 40) - printf(" %.40s...\n", value); - else - printf(" %s\n", value); - } -} - -/** - * streamFile: - * @filename: the file name to parse - * - * Parse and print information about an XML file. - */ -static void -streamFile(const char *filename) { - xmlTextReaderPtr reader; - int ret; - - reader = xmlReaderForFile(filename, NULL, 0); - if (reader != NULL) { - ret = xmlTextReaderRead(reader); - while (ret == 1) { - processNode(reader); - ret = xmlTextReaderRead(reader); - } - xmlFreeTextReader(reader); - if (ret != 0) { - fprintf(stderr, "%s : failed to parse\n", filename); - } - } else { - fprintf(stderr, "Unable to open %s\n", filename); - } -} - -int main(int argc, char **argv) { - if (argc != 2) - return(1); - - /* - * this initialize the library and check potential ABI mismatches - * between the version it was compiled for and the actual shared - * library used. - */ - LIBXML_TEST_VERSION - - streamFile(argv[1]); - - /* - * Cleanup function for the XML library. - */ - xmlCleanupParser(); - /* - * this is to debug memory for regression tests - */ - xmlMemoryDump(); - return(0); -} - -#else -int main(void) { - fprintf(stderr, "XInclude support not compiled in\n"); - exit(1); -} -#endif diff --git a/src/tools/docbook/libxml2/doc/examples/reader1.res b/src/tools/docbook/libxml2/doc/examples/reader1.res deleted file mode 100644 index eb48d85e16..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/reader1.res +++ /dev/null @@ -1,14 +0,0 @@ -0 10 doc 0 0 -0 1 doc 0 0 -1 14 #text 0 1 - -1 1 src 1 0 -1 14 #text 0 1 - -1 1 dest 1 0 -1 14 #text 0 1 - -1 1 src 1 0 -1 14 #text 0 1 - -0 15 doc 0 0 diff --git a/src/tools/docbook/libxml2/doc/examples/reader2.c b/src/tools/docbook/libxml2/doc/examples/reader2.c deleted file mode 100644 index c32ada523a..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/reader2.c +++ /dev/null @@ -1,122 +0,0 @@ -/** - * section: xmlReader - * synopsis: Parse and validate an XML file with an xmlReader - * purpose: Demonstrate the use of xmlReaderForFile() to parse an XML file - * validating the content in the process and activating options - * like entities substitution, and DTD attributes defaulting. - * (Note that the XMLReader functions require libxml2 version later - * than 2.6.) - * usage: reader2 - * test: reader2 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp - * author: Daniel Veillard - * copy: see Copyright for the status of this software. - */ - -#include -#include - -#ifdef LIBXML_READER_ENABLED - -/** - * processNode: - * @reader: the xmlReader - * - * Dump information about the current node - */ -static void -processNode(xmlTextReaderPtr reader) { - const xmlChar *name, *value; - - name = xmlTextReaderConstName(reader); - if (name == NULL) - name = BAD_CAST "--"; - - value = xmlTextReaderConstValue(reader); - - printf("%d %d %s %d %d", - xmlTextReaderDepth(reader), - xmlTextReaderNodeType(reader), - name, - xmlTextReaderIsEmptyElement(reader), - xmlTextReaderHasValue(reader)); - if (value == NULL) - printf("\n"); - else { - if (xmlStrlen(value) > 40) - printf(" %.40s...\n", value); - else - printf(" %s\n", value); - } -} - -/** - * streamFile: - * @filename: the file name to parse - * - * Parse, validate and print information about an XML file. - */ -static void -streamFile(const char *filename) { - xmlTextReaderPtr reader; - int ret; - - - /* - * Pass some special parsing options to activate DTD attribute defaulting, - * entities substitution and DTD validation - */ - reader = xmlReaderForFile(filename, NULL, - XML_PARSE_DTDATTR | /* default DTD attributes */ - XML_PARSE_NOENT | /* substitute entities */ - XML_PARSE_DTDVALID); /* validate with the DTD */ - if (reader != NULL) { - ret = xmlTextReaderRead(reader); - while (ret == 1) { - processNode(reader); - ret = xmlTextReaderRead(reader); - } - /* - * Once the document has been fully parsed check the validation results - */ - if (xmlTextReaderIsValid(reader) != 1) { - fprintf(stderr, "Document %s does not validate\n", filename); - } - xmlFreeTextReader(reader); - if (ret != 0) { - fprintf(stderr, "%s : failed to parse\n", filename); - } - } else { - fprintf(stderr, "Unable to open %s\n", filename); - } -} - -int main(int argc, char **argv) { - if (argc != 2) - return(1); - - /* - * this initialize the library and check potential ABI mismatches - * between the version it was compiled for and the actual shared - * library used. - */ - LIBXML_TEST_VERSION - - streamFile(argv[1]); - - /* - * Cleanup function for the XML library. - */ - xmlCleanupParser(); - /* - * this is to debug memory for regression tests - */ - xmlMemoryDump(); - return(0); -} - -#else -int main(void) { - fprintf(stderr, "XInclude support not compiled in\n"); - exit(1); -} -#endif diff --git a/src/tools/docbook/libxml2/doc/examples/reader3.c b/src/tools/docbook/libxml2/doc/examples/reader3.c deleted file mode 100644 index acbff4f4a5..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/reader3.c +++ /dev/null @@ -1,119 +0,0 @@ -/** - * section: xmlReader - * synopsis: Show how to extract subdocuments with xmlReader - * purpose: Demonstrate the use of xmlTextReaderPreservePattern() - * to parse an XML file with the xmlReader while collecting - * only some subparts of the document. - * (Note that the XMLReader functions require libxml2 version later - * than 2.6.) - * usage: reader3 - * test: reader3 > reader3.tmp ; diff reader3.tmp reader3.res ; rm reader3.tmp - * author: Daniel Veillard - * copy: see Copyright for the status of this software. - */ - -#include -#include - -#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_PATTERN_ENABLED) - -/** - * streamFile: - * @filename: the file name to parse - * - * Parse and print information about an XML file. - * - * Returns the resulting doc with just the elements preserved. - */ -static xmlDocPtr -extractFile(const char *filename, const xmlChar *pattern) { - xmlDocPtr doc; - xmlTextReaderPtr reader; - int ret; - - /* - * build an xmlReader for that file - */ - reader = xmlReaderForFile(filename, NULL, 0); - if (reader != NULL) { - /* - * add the pattern to preserve - */ - if (xmlTextReaderPreservePattern(reader, pattern, NULL) < 0) { - fprintf(stderr, "%s : failed add preserve pattern %s\n", - filename, (const char *) pattern); - } - /* - * Parse and traverse the tree, collecting the nodes in the process - */ - ret = xmlTextReaderRead(reader); - while (ret == 1) { - ret = xmlTextReaderRead(reader); - } - if (ret != 0) { - fprintf(stderr, "%s : failed to parse\n", filename); - xmlFreeTextReader(reader); - return(NULL); - } - /* - * get the resulting nodes - */ - doc = xmlTextReaderCurrentDoc(reader); - /* - * Free up the reader - */ - xmlFreeTextReader(reader); - } else { - fprintf(stderr, "Unable to open %s\n", filename); - return(NULL); - } - return(doc); -} - -int main(int argc, char **argv) { - const char *filename = "test3.xml"; - const char *pattern = "preserved"; - xmlDocPtr doc; - - if (argc == 3) { - filename = argv[1]; - pattern = argv[2]; - } - - /* - * this initialize the library and check potential ABI mismatches - * between the version it was compiled for and the actual shared - * library used. - */ - LIBXML_TEST_VERSION - - doc = extractFile(filename, (const xmlChar *) pattern); - if (doc != NULL) { - /* - * ouptut the result. - */ - xmlDocDump(stdout, doc); - /* - * don't forget to free up the doc - */ - xmlFreeDoc(doc); - } - - - /* - * Cleanup function for the XML library. - */ - xmlCleanupParser(); - /* - * this is to debug memory for regression tests - */ - xmlMemoryDump(); - return(0); -} - -#else -int main(void) { - fprintf(stderr, "Reader or Pattern support not compiled in\n"); - exit(1); -} -#endif diff --git a/src/tools/docbook/libxml2/doc/examples/reader3.res b/src/tools/docbook/libxml2/doc/examples/reader3.res deleted file mode 100644 index 20e2e824a5..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/reader3.res +++ /dev/null @@ -1,13 +0,0 @@ - - - content1 - - content2 - too - content3 - - content4 - - content5 - content6 - diff --git a/src/tools/docbook/libxml2/doc/examples/reader4.c b/src/tools/docbook/libxml2/doc/examples/reader4.c deleted file mode 100644 index ed2726aa2e..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/reader4.c +++ /dev/null @@ -1,122 +0,0 @@ -/** - * section: xmlReader - * synopsis: Parse multiple XML files reusing an xmlReader - * purpose: Demonstrate the use of xmlReaderForFile() and - * xmlReaderNewFile to parse XML files while reusing the reader object - * and parser context. (Note that the XMLReader functions require - * libxml2 version later than 2.6.) - * usage: reader4 [ filename ... ] - * test: reader4 test1.xml test2.xml test3.xml > reader4.tmp ; diff reader4.tmp reader4.res ; rm reader4.tmp - * author: Graham Bennett - * copy: see Copyright for the status of this software. - */ - -#include -#include - -#ifdef LIBXML_READER_ENABLED - -static void processDoc(xmlTextReaderPtr readerPtr) { - int ret; - xmlDocPtr docPtr; - const xmlChar *URL; - - ret = xmlTextReaderRead(readerPtr); - while (ret == 1) { - ret = xmlTextReaderRead(readerPtr); - } - - /* - * One can obtain the document pointer to get insteresting - * information about the document like the URL, but one must also - * be sure to clean it up at the end (see below). - */ - docPtr = xmlTextReaderCurrentDoc(readerPtr); - if (NULL == docPtr) { - fprintf(stderr, "failed to obtain document\n"); - return; - } - - URL = docPtr->URL; - if (NULL == URL) { - fprintf(stderr, "Failed to obtain URL\n"); - } - - if (ret != 0) { - fprintf(stderr, "%s: Failed to parse\n", URL); - return; - } - - printf("%s: Processed ok\n", (const char *)URL); -} - -int main(int argc, char **argv) { - xmlTextReaderPtr readerPtr; - int i; - xmlDocPtr docPtr; - - if (argc < 2) - return(1); - - /* - * this initialises the library and check potential ABI mismatches - * between the version it was compiled for and the actual shared - * library used. - */ - LIBXML_TEST_VERSION - - /* - * Create a new reader for the first file and process the - * document. - */ - readerPtr = xmlReaderForFile(argv[1], NULL, 0); - if (NULL == readerPtr) { - fprintf(stderr, "%s: failed to create reader\n", argv[1]); - return(1); - } - processDoc(readerPtr); - - /* - * The reader can be reused for subsequent files. - */ - for (i=2; i < argc; ++i) { - xmlReaderNewFile(readerPtr, argv[i], NULL, 0); - if (NULL == readerPtr) { - fprintf(stderr, "%s: failed to create reader\n", argv[i]); - return(1); - } - processDoc(readerPtr); - } - - /* - * Since we've called xmlTextReaderCurrentDoc, we now have to - * clean up after ourselves. We only have to do this the last - * time, because xmlReaderNewFile calls xmlCtxtReset which takes - * care of it. - */ - docPtr = xmlTextReaderCurrentDoc(readerPtr); - if (docPtr != NULL) - xmlFreeDoc(docPtr); - - /* - * Clean up the reader. - */ - xmlFreeTextReader(readerPtr); - - /* - * Cleanup function for the XML library. - */ - xmlCleanupParser(); - /* - * this is to debug memory for regression tests - */ - xmlMemoryDump(); - return(0); -} - -#else -int main(void) { - fprintf(stderr, "xmlReader support not compiled in\n"); - exit(1); -} -#endif diff --git a/src/tools/docbook/libxml2/doc/examples/reader4.res b/src/tools/docbook/libxml2/doc/examples/reader4.res deleted file mode 100644 index b793f828cb..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/reader4.res +++ /dev/null @@ -1,3 +0,0 @@ -test1.xml: Processed ok -test2.xml: Processed ok -test3.xml: Processed ok diff --git a/src/tools/docbook/libxml2/doc/examples/test1.xml b/src/tools/docbook/libxml2/doc/examples/test1.xml deleted file mode 100644 index 69d62f2c9a..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/test1.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/tools/docbook/libxml2/doc/examples/test2.xml b/src/tools/docbook/libxml2/doc/examples/test2.xml deleted file mode 100644 index 7390f5ea1e..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/test2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - -]> - - - - - - diff --git a/src/tools/docbook/libxml2/doc/examples/test3.xml b/src/tools/docbook/libxml2/doc/examples/test3.xml deleted file mode 100644 index 4d0828f394..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/test3.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - This text node must be discarded - - - - - content1 - - content2 - too - content3 - - content4 - - content5 - content6 - - This text node must be discarded - - - - This text node must be discarded - - This text node must be discarded - - This text node must be discarded - - - - This text node must be discarded - - - - diff --git a/src/tools/docbook/libxml2/doc/examples/testWriter.c b/src/tools/docbook/libxml2/doc/examples/testWriter.c deleted file mode 100644 index e158f97415..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/testWriter.c +++ /dev/null @@ -1,1198 +0,0 @@ -/** - * section: xmlWriter - * synopsis: use various APIs for the xmlWriter - * purpose: tests a number of APIs for the xmlWriter, especially - * the various methods to write to a filename, to a memory - * buffer, to a new document, or to a subtree. It shows how to - * do encoding string conversions too. The resulting - * documents are then serialized. - * usage: testWriter - * test: testWriter ; for i in 1 2 3 4 ; do diff writer.xml writer$$i.res ; done ; rm writer*.res - * author: Alfred Mickautsch - * copy: see Copyright for the status of this software. - */ -#include -#include -#include -#include - -#if defined(LIBXML_WRITER_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - -#define MY_ENCODING "ISO-8859-1" - -void testXmlwriterFilename(const char *uri); -void testXmlwriterMemory(const char *file); -void testXmlwriterDoc(const char *file); -void testXmlwriterTree(const char *file); -xmlChar *ConvertInput(const char *in, const char *encoding); - -int -main(void) -{ - /* - * this initialize the library and check potential ABI mismatches - * between the version it was compiled for and the actual shared - * library used. - */ - LIBXML_TEST_VERSION - - /* first, the file version */ - testXmlwriterFilename("writer1.res"); - - /* next, the memory version */ - testXmlwriterMemory("writer2.res"); - - /* next, the DOM version */ - testXmlwriterDoc("writer3.res"); - - /* next, the tree version */ - testXmlwriterTree("writer4.res"); - - /* - * Cleanup function for the XML library. - */ - xmlCleanupParser(); - /* - * this is to debug memory for regression tests - */ - xmlMemoryDump(); - return 0; -} - -/** - * testXmlwriterFilename: - * @uri: the output URI - * - * test the xmlWriter interface when writing to a new file - */ -void -testXmlwriterFilename(const char *uri) -{ - int rc; - xmlTextWriterPtr writer; - xmlChar *tmp; - - /* Create a new XmlWriter for uri, with no compression. */ - writer = xmlNewTextWriterFilename(uri, 0); - if (writer == NULL) { - printf("testXmlwriterFilename: Error creating the xml writer\n"); - return; - } - - /* Start the document with the xml default for the version, - * encoding ISO 8859-1 and the default for the standalone - * declaration. */ - rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterStartDocument\n"); - return; - } - - /* Start an element named "EXAMPLE". Since thist is the first - * element, this will be the root element of the document. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE"); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write a comment as child of EXAMPLE. - * Please observe, that the input to the xmlTextWriter functions - * HAS to be in UTF-8, even if the output XML is encoded - * in iso-8859-1 */ - tmp = ConvertInput("This is a comment with special chars: <äöü>", - MY_ENCODING); - rc = xmlTextWriterWriteComment(writer, tmp); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterWriteComment\n"); - return; - } - if (tmp != NULL) xmlFree(tmp); - - /* Start an element named "ORDER" as child of EXAMPLE. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "ORDER"); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Add an attribute with name "version" and value "1.0" to ORDER. */ - rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "version", - BAD_CAST "1.0"); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterWriteAttribute\n"); - return; - } - - /* Add an attribute with name "xml:lang" and value "de" to ORDER. */ - rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "xml:lang", - BAD_CAST "de"); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterWriteAttribute\n"); - return; - } - - /* Write a comment as child of ORDER */ - tmp = ConvertInput("<äöü>", MY_ENCODING); - rc = xmlTextWriterWriteFormatComment(writer, - "This is another comment with special chars: %s", - tmp); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterWriteFormatComment\n"); - return; - } - if (tmp != NULL) xmlFree(tmp); - - /* Start an element named "HEADER" as child of ORDER. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "HEADER"); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write an element named "X_ORDER_ID" as child of HEADER. */ - rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID", - "%010d", 53535L); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterWriteFormatElement\n"); - return; - } - - /* Write an element named "CUSTOMER_ID" as child of HEADER. */ - rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "CUSTOMER_ID", - "%d", 1010); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterWriteFormatElement\n"); - return; - } - - /* Write an element named "NAME_1" as child of HEADER. */ - tmp = ConvertInput("Müller", MY_ENCODING); - rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_1", tmp); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterWriteElement\n"); - return; - } - if (tmp != NULL) xmlFree(tmp); - - /* Write an element named "NAME_2" as child of HEADER. */ - tmp = ConvertInput("Jörg", MY_ENCODING); - rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_2", tmp); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterWriteElement\n"); - return; - } - if (tmp != NULL) xmlFree(tmp); - - /* Close the element named HEADER. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Start an element named "ENTRIES" as child of ORDER. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRIES"); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Start an element named "ENTRY" as child of ENTRIES. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRY"); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write an element named "ARTICLE" as child of ENTRY. */ - rc = xmlTextWriterWriteElement(writer, BAD_CAST "ARTICLE", - BAD_CAST ""); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterWriteElement\n"); - return; - } - - /* Write an element named "ENTRY_NO" as child of ENTRY. */ - rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ENTRY_NO", "%d", - 10); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterWriteFormatElement\n"); - return; - } - - /* Close the element named ENTRY. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Start an element named "ENTRY" as child of ENTRIES. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRY"); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write an element named "ARTICLE" as child of ENTRY. */ - rc = xmlTextWriterWriteElement(writer, BAD_CAST "ARTICLE", - BAD_CAST ""); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterWriteElement\n"); - return; - } - - /* Write an element named "ENTRY_NO" as child of ENTRY. */ - rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ENTRY_NO", "%d", - 20); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterWriteFormatElement\n"); - return; - } - - /* Close the element named ENTRY. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Close the element named ENTRIES. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Start an element named "FOOTER" as child of ORDER. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "FOOTER"); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write an element named "TEXT" as child of FOOTER. */ - rc = xmlTextWriterWriteElement(writer, BAD_CAST "TEXT", - BAD_CAST "This is a text."); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterWriteElement\n"); - return; - } - - /* Close the element named FOOTER. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Here we could close the elements ORDER and EXAMPLE using the - * function xmlTextWriterEndElement, but since we do not want to - * write any other elements, we simply call xmlTextWriterEndDocument, - * which will do all the work. */ - rc = xmlTextWriterEndDocument(writer); - if (rc < 0) { - printf - ("testXmlwriterFilename: Error at xmlTextWriterEndDocument\n"); - return; - } - - xmlFreeTextWriter(writer); -} - -/** - * testXmlwriterMemory: - * @file: the output file - * - * test the xmlWriter interface when writing to memory - */ -void -testXmlwriterMemory(const char *file) -{ - int rc; - xmlTextWriterPtr writer; - xmlBufferPtr buf; - xmlChar *tmp; - FILE *fp; - - /* Create a new XML buffer, to which the XML document will be - * written */ - buf = xmlBufferCreate(); - if (buf == NULL) { - printf("testXmlwriterMemory: Error creating the xml buffer\n"); - return; - } - - /* Create a new XmlWriter for memory, with no compression. - * Remark: there is no compression for this kind of xmlTextWriter */ - writer = xmlNewTextWriterMemory(buf, 0); - if (writer == NULL) { - printf("testXmlwriterMemory: Error creating the xml writer\n"); - return; - } - - /* Start the document with the xml default for the version, - * encoding ISO 8859-1 and the default for the standalone - * declaration. */ - rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterStartDocument\n"); - return; - } - - /* Start an element named "EXAMPLE". Since thist is the first - * element, this will be the root element of the document. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE"); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write a comment as child of EXAMPLE. - * Please observe, that the input to the xmlTextWriter functions - * HAS to be in UTF-8, even if the output XML is encoded - * in iso-8859-1 */ - tmp = ConvertInput("This is a comment with special chars: <äöü>", - MY_ENCODING); - rc = xmlTextWriterWriteComment(writer, tmp); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterWriteComment\n"); - return; - } - if (tmp != NULL) xmlFree(tmp); - - /* Start an element named "ORDER" as child of EXAMPLE. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "ORDER"); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Add an attribute with name "version" and value "1.0" to ORDER. */ - rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "version", - BAD_CAST "1.0"); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterWriteAttribute\n"); - return; - } - - /* Add an attribute with name "xml:lang" and value "de" to ORDER. */ - rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "xml:lang", - BAD_CAST "de"); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterWriteAttribute\n"); - return; - } - - /* Write a comment as child of ORDER */ - tmp = ConvertInput("<äöü>", MY_ENCODING); - rc = xmlTextWriterWriteFormatComment(writer, - "This is another comment with special chars: %s", - tmp); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterWriteFormatComment\n"); - return; - } - if (tmp != NULL) xmlFree(tmp); - - /* Start an element named "HEADER" as child of ORDER. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "HEADER"); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write an element named "X_ORDER_ID" as child of HEADER. */ - rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID", - "%010d", 53535L); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterWriteFormatElement\n"); - return; - } - - /* Write an element named "CUSTOMER_ID" as child of HEADER. */ - rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "CUSTOMER_ID", - "%d", 1010); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterWriteFormatElement\n"); - return; - } - - /* Write an element named "NAME_1" as child of HEADER. */ - tmp = ConvertInput("Müller", MY_ENCODING); - rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_1", tmp); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterWriteElement\n"); - return; - } - if (tmp != NULL) xmlFree(tmp); - - /* Write an element named "NAME_2" as child of HEADER. */ - tmp = ConvertInput("Jörg", MY_ENCODING); - rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_2", tmp); - - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterWriteElement\n"); - return; - } - if (tmp != NULL) xmlFree(tmp); - - /* Close the element named HEADER. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf("testXmlwriterMemory: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Start an element named "ENTRIES" as child of ORDER. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRIES"); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Start an element named "ENTRY" as child of ENTRIES. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRY"); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write an element named "ARTICLE" as child of ENTRY. */ - rc = xmlTextWriterWriteElement(writer, BAD_CAST "ARTICLE", - BAD_CAST ""); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterWriteElement\n"); - return; - } - - /* Write an element named "ENTRY_NO" as child of ENTRY. */ - rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ENTRY_NO", "%d", - 10); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterWriteFormatElement\n"); - return; - } - - /* Close the element named ENTRY. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf("testXmlwriterMemory: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Start an element named "ENTRY" as child of ENTRIES. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRY"); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write an element named "ARTICLE" as child of ENTRY. */ - rc = xmlTextWriterWriteElement(writer, BAD_CAST "ARTICLE", - BAD_CAST ""); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterWriteElement\n"); - return; - } - - /* Write an element named "ENTRY_NO" as child of ENTRY. */ - rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ENTRY_NO", "%d", - 20); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterWriteFormatElement\n"); - return; - } - - /* Close the element named ENTRY. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf("testXmlwriterMemory: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Close the element named ENTRIES. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf("testXmlwriterMemory: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Start an element named "FOOTER" as child of ORDER. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "FOOTER"); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write an element named "TEXT" as child of FOOTER. */ - rc = xmlTextWriterWriteElement(writer, BAD_CAST "TEXT", - BAD_CAST "This is a text."); - if (rc < 0) { - printf - ("testXmlwriterMemory: Error at xmlTextWriterWriteElement\n"); - return; - } - - /* Close the element named FOOTER. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf("testXmlwriterMemory: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Here we could close the elements ORDER and EXAMPLE using the - * function xmlTextWriterEndElement, but since we do not want to - * write any other elements, we simply call xmlTextWriterEndDocument, - * which will do all the work. */ - rc = xmlTextWriterEndDocument(writer); - if (rc < 0) { - printf("testXmlwriterMemory: Error at xmlTextWriterEndDocument\n"); - return; - } - - xmlFreeTextWriter(writer); - - fp = fopen(file, "w"); - if (fp == NULL) { - printf("testXmlwriterMemory: Error at fopen\n"); - return; - } - - fprintf(fp, "%s", (const char *) buf->content); - - fclose(fp); - - xmlBufferFree(buf); -} - -/** - * testXmlwriterDoc: - * @file: the output file - * - * test the xmlWriter interface when creating a new document - */ -void -testXmlwriterDoc(const char *file) -{ - int rc; - xmlTextWriterPtr writer; - xmlChar *tmp; - xmlDocPtr doc; - - - /* Create a new XmlWriter for DOM, with no compression. */ - writer = xmlNewTextWriterDoc(&doc, 0); - if (writer == NULL) { - printf("testXmlwriterDoc: Error creating the xml writer\n"); - return; - } - - /* Start the document with the xml default for the version, - * encoding ISO 8859-1 and the default for the standalone - * declaration. */ - rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterStartDocument\n"); - return; - } - - /* Start an element named "EXAMPLE". Since thist is the first - * element, this will be the root element of the document. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE"); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write a comment as child of EXAMPLE. - * Please observe, that the input to the xmlTextWriter functions - * HAS to be in UTF-8, even if the output XML is encoded - * in iso-8859-1 */ - tmp = ConvertInput("This is a comment with special chars: <äöü>", - MY_ENCODING); - rc = xmlTextWriterWriteComment(writer, tmp); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterWriteComment\n"); - return; - } - if (tmp != NULL) xmlFree(tmp); - - /* Start an element named "ORDER" as child of EXAMPLE. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "ORDER"); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Add an attribute with name "version" and value "1.0" to ORDER. */ - rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "version", - BAD_CAST "1.0"); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterWriteAttribute\n"); - return; - } - - /* Add an attribute with name "xml:lang" and value "de" to ORDER. */ - rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "xml:lang", - BAD_CAST "de"); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterWriteAttribute\n"); - return; - } - - /* Write a comment as child of ORDER */ - tmp = ConvertInput("<äöü>", MY_ENCODING); - rc = xmlTextWriterWriteFormatComment(writer, - "This is another comment with special chars: %s", - tmp); - if (rc < 0) { - printf - ("testXmlwriterDoc: Error at xmlTextWriterWriteFormatComment\n"); - return; - } - if (tmp != NULL) xmlFree(tmp); - - /* Start an element named "HEADER" as child of ORDER. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "HEADER"); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write an element named "X_ORDER_ID" as child of HEADER. */ - rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID", - "%010d", 53535L); - if (rc < 0) { - printf - ("testXmlwriterDoc: Error at xmlTextWriterWriteFormatElement\n"); - return; - } - - /* Write an element named "CUSTOMER_ID" as child of HEADER. */ - rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "CUSTOMER_ID", - "%d", 1010); - if (rc < 0) { - printf - ("testXmlwriterDoc: Error at xmlTextWriterWriteFormatElement\n"); - return; - } - - /* Write an element named "NAME_1" as child of HEADER. */ - tmp = ConvertInput("Müller", MY_ENCODING); - rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_1", tmp); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterWriteElement\n"); - return; - } - if (tmp != NULL) xmlFree(tmp); - - /* Write an element named "NAME_2" as child of HEADER. */ - tmp = ConvertInput("Jörg", MY_ENCODING); - rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_2", tmp); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterWriteElement\n"); - return; - } - if (tmp != NULL) xmlFree(tmp); - - /* Close the element named HEADER. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Start an element named "ENTRIES" as child of ORDER. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRIES"); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Start an element named "ENTRY" as child of ENTRIES. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRY"); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write an element named "ARTICLE" as child of ENTRY. */ - rc = xmlTextWriterWriteElement(writer, BAD_CAST "ARTICLE", - BAD_CAST ""); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterWriteElement\n"); - return; - } - - /* Write an element named "ENTRY_NO" as child of ENTRY. */ - rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ENTRY_NO", "%d", - 10); - if (rc < 0) { - printf - ("testXmlwriterDoc: Error at xmlTextWriterWriteFormatElement\n"); - return; - } - - /* Close the element named ENTRY. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Start an element named "ENTRY" as child of ENTRIES. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRY"); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write an element named "ARTICLE" as child of ENTRY. */ - rc = xmlTextWriterWriteElement(writer, BAD_CAST "ARTICLE", - BAD_CAST ""); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterWriteElement\n"); - return; - } - - /* Write an element named "ENTRY_NO" as child of ENTRY. */ - rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ENTRY_NO", "%d", - 20); - if (rc < 0) { - printf - ("testXmlwriterDoc: Error at xmlTextWriterWriteFormatElement\n"); - return; - } - - /* Close the element named ENTRY. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Close the element named ENTRIES. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Start an element named "FOOTER" as child of ORDER. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "FOOTER"); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write an element named "TEXT" as child of FOOTER. */ - rc = xmlTextWriterWriteElement(writer, BAD_CAST "TEXT", - BAD_CAST "This is a text."); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterWriteElement\n"); - return; - } - - /* Close the element named FOOTER. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Here we could close the elements ORDER and EXAMPLE using the - * function xmlTextWriterEndElement, but since we do not want to - * write any other elements, we simply call xmlTextWriterEndDocument, - * which will do all the work. */ - rc = xmlTextWriterEndDocument(writer); - if (rc < 0) { - printf("testXmlwriterDoc: Error at xmlTextWriterEndDocument\n"); - return; - } - - xmlFreeTextWriter(writer); - - xmlSaveFileEnc(file, doc, MY_ENCODING); - - xmlFreeDoc(doc); -} - -/** - * testXmlwriterTree: - * @file: the output file - * - * test the xmlWriter interface when writing to a subtree - */ -void -testXmlwriterTree(const char *file) -{ - int rc; - xmlTextWriterPtr writer; - xmlDocPtr doc; - xmlNodePtr node; - xmlChar *tmp; - - /* Create a new XML DOM tree, to which the XML document will be - * written */ - doc = xmlNewDoc(BAD_CAST XML_DEFAULT_VERSION); - if (doc == NULL) { - printf - ("testXmlwriterTree: Error creating the xml document tree\n"); - return; - } - - /* Create a new XML node, to which the XML document will be - * appended */ - node = xmlNewDocNode(doc, NULL, BAD_CAST "EXAMPLE", NULL); - if (node == NULL) { - printf("testXmlwriterTree: Error creating the xml node\n"); - return; - } - - /* Make ELEMENT the root node of the tree */ - xmlDocSetRootElement(doc, node); - - /* Create a new XmlWriter for DOM tree, with no compression. */ - writer = xmlNewTextWriterTree(doc, node, 0); - if (writer == NULL) { - printf("testXmlwriterTree: Error creating the xml writer\n"); - return; - } - - /* Start the document with the xml default for the version, - * encoding ISO 8859-1 and the default for the standalone - * declaration. */ - rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterStartDocument\n"); - return; - } - - /* Write a comment as child of EXAMPLE. - * Please observe, that the input to the xmlTextWriter functions - * HAS to be in UTF-8, even if the output XML is encoded - * in iso-8859-1 */ - tmp = ConvertInput("This is a comment with special chars: <äöü>", - MY_ENCODING); - rc = xmlTextWriterWriteComment(writer, tmp); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterWriteComment\n"); - return; - } - if (tmp != NULL) xmlFree(tmp); - - /* Start an element named "ORDER" as child of EXAMPLE. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "ORDER"); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Add an attribute with name "version" and value "1.0" to ORDER. */ - rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "version", - BAD_CAST "1.0"); - if (rc < 0) { - printf - ("testXmlwriterTree: Error at xmlTextWriterWriteAttribute\n"); - return; - } - - /* Add an attribute with name "xml:lang" and value "de" to ORDER. */ - rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "xml:lang", - BAD_CAST "de"); - if (rc < 0) { - printf - ("testXmlwriterTree: Error at xmlTextWriterWriteAttribute\n"); - return; - } - - /* Write a comment as child of ORDER */ - tmp = ConvertInput("<äöü>", MY_ENCODING); - rc = xmlTextWriterWriteFormatComment(writer, - "This is another comment with special chars: %s", - tmp); - if (rc < 0) { - printf - ("testXmlwriterTree: Error at xmlTextWriterWriteFormatComment\n"); - return; - } - if (tmp != NULL) xmlFree(tmp); - - /* Start an element named "HEADER" as child of ORDER. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "HEADER"); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write an element named "X_ORDER_ID" as child of HEADER. */ - rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID", - "%010d", 53535L); - if (rc < 0) { - printf - ("testXmlwriterTree: Error at xmlTextWriterWriteFormatElement\n"); - return; - } - - /* Write an element named "CUSTOMER_ID" as child of HEADER. */ - rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "CUSTOMER_ID", - "%d", 1010); - if (rc < 0) { - printf - ("testXmlwriterTree: Error at xmlTextWriterWriteFormatElement\n"); - return; - } - - /* Write an element named "NAME_1" as child of HEADER. */ - tmp = ConvertInput("Müller", MY_ENCODING); - rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_1", tmp); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterWriteElement\n"); - return; - } - if (tmp != NULL) xmlFree(tmp); - - /* Write an element named "NAME_2" as child of HEADER. */ - tmp = ConvertInput("Jörg", MY_ENCODING); - rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_2", tmp); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterWriteElement\n"); - return; - } - if (tmp != NULL) xmlFree(tmp); - - /* Close the element named HEADER. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Start an element named "ENTRIES" as child of ORDER. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRIES"); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Start an element named "ENTRY" as child of ENTRIES. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRY"); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write an element named "ARTICLE" as child of ENTRY. */ - rc = xmlTextWriterWriteElement(writer, BAD_CAST "ARTICLE", - BAD_CAST ""); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterWriteElement\n"); - return; - } - - /* Write an element named "ENTRY_NO" as child of ENTRY. */ - rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ENTRY_NO", "%d", - 10); - if (rc < 0) { - printf - ("testXmlwriterTree: Error at xmlTextWriterWriteFormatElement\n"); - return; - } - - /* Close the element named ENTRY. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Start an element named "ENTRY" as child of ENTRIES. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRY"); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write an element named "ARTICLE" as child of ENTRY. */ - rc = xmlTextWriterWriteElement(writer, BAD_CAST "ARTICLE", - BAD_CAST ""); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterWriteElement\n"); - return; - } - - /* Write an element named "ENTRY_NO" as child of ENTRY. */ - rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ENTRY_NO", "%d", - 20); - if (rc < 0) { - printf - ("testXmlwriterTree: Error at xmlTextWriterWriteFormatElement\n"); - return; - } - - /* Close the element named ENTRY. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Close the element named ENTRIES. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Start an element named "FOOTER" as child of ORDER. */ - rc = xmlTextWriterStartElement(writer, BAD_CAST "FOOTER"); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterStartElement\n"); - return; - } - - /* Write an element named "TEXT" as child of FOOTER. */ - rc = xmlTextWriterWriteElement(writer, BAD_CAST "TEXT", - BAD_CAST "This is a text."); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterWriteElement\n"); - return; - } - - /* Close the element named FOOTER. */ - rc = xmlTextWriterEndElement(writer); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterEndElement\n"); - return; - } - - /* Here we could close the elements ORDER and EXAMPLE using the - * function xmlTextWriterEndElement, but since we do not want to - * write any other elements, we simply call xmlTextWriterEndDocument, - * which will do all the work. */ - rc = xmlTextWriterEndDocument(writer); - if (rc < 0) { - printf("testXmlwriterTree: Error at xmlTextWriterEndDocument\n"); - return; - } - - xmlFreeTextWriter(writer); - - xmlSaveFileEnc(file, doc, MY_ENCODING); - - xmlFreeDoc(doc); -} - -/** - * ConvertInput: - * @in: string in a given encoding - * @encoding: the encoding used - * - * Converts @in into UTF-8 for processing with libxml2 APIs - * - * Returns the converted UTF-8 string, or NULL in case of error. - */ -xmlChar * -ConvertInput(const char *in, const char *encoding) -{ - xmlChar *out; - int ret; - int size; - int out_size; - int temp; - xmlCharEncodingHandlerPtr handler; - - if (in == 0) - return 0; - - handler = xmlFindCharEncodingHandler(encoding); - - if (!handler) { - printf("ConvertInput: no encoding handler found for '%s'\n", - encoding ? encoding : ""); - return 0; - } - - size = (int) strlen(in) + 1; - out_size = size * 2 - 1; - out = (unsigned char *) xmlMalloc((size_t) out_size); - - if (out != 0) { - temp = size - 1; - ret = handler->input(out, &out_size, (const xmlChar *) in, &temp); - if ((ret < 0) || (temp - size + 1)) { - if (ret < 0) { - printf("ConvertInput: conversion wasn't successful.\n"); - } else { - printf - ("ConvertInput: conversion wasn't successful. converted: %i octets.\n", - temp); - } - - xmlFree(out); - out = 0; - } else { - out = (unsigned char *) xmlRealloc(out, out_size + 1); - out[out_size] = 0; /*null terminating out */ - } - } else { - printf("ConvertInput: no mem\n"); - } - - return out; -} - -#else -int main(void) { - fprintf(stderr, "Writer or output support not compiled in\n"); - exit(1); -} -#endif diff --git a/src/tools/docbook/libxml2/doc/examples/tree1.c b/src/tools/docbook/libxml2/doc/examples/tree1.c deleted file mode 100644 index 8644cf1c23..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/tree1.c +++ /dev/null @@ -1,94 +0,0 @@ -/** - * section: Tree - * synopsis: Navigates a tree to print element names - * purpose: Parse a file to a tree, use xmlDocGetRootElement() to - * get the root element, then walk the document and print - * all the element name in document order. - * usage: tree1 filename_or_URL - * test: tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.res ; rm tree1.tmp - * author: Dodji Seketeli - * copy: see Copyright for the status of this software. - */ -#include -#include -#include - -#ifdef LIBXML_TREE_ENABLED - -/* - *To compile this file using gcc you can type - *gcc `xml2-config --cflags --libs` -o xmlexample libxml2-example.c - */ - -/** - * print_element_names: - * @a_node: the initial xml node to consider. - * - * Prints the names of the all the xml elements - * that are siblings or children of a given xml node. - */ -static void -print_element_names(xmlNode * a_node) -{ - xmlNode *cur_node = NULL; - - for (cur_node = a_node; cur_node; cur_node = cur_node->next) { - if (cur_node->type == XML_ELEMENT_NODE) { - printf("node type: Element, name: %s\n", cur_node->name); - } - - print_element_names(cur_node->children); - } -} - - -/** - * Simple example to parse a file called "file.xml", - * walk down the DOM, and print the name of the - * xml elements nodes. - */ -int -main(int argc, char **argv) -{ - xmlDoc *doc = NULL; - xmlNode *root_element = NULL; - - if (argc != 2) - return(1); - - /* - * this initialize the library and check potential ABI mismatches - * between the version it was compiled for and the actual shared - * library used. - */ - LIBXML_TEST_VERSION - - /*parse the file and get the DOM */ - doc = xmlReadFile(argv[1], NULL, 0); - - if (doc == NULL) { - printf("error: could not parse file %s\n", argv[1]); - } - - /*Get the root element node */ - root_element = xmlDocGetRootElement(doc); - - print_element_names(root_element); - - /*free the document */ - xmlFreeDoc(doc); - - /* - *Free the global variables that may - *have been allocated by the parser. - */ - xmlCleanupParser(); - - return 0; -} -#else -int main(void) { - fprintf(stderr, "Tree support not compiled in\n"); - exit(1); -} -#endif diff --git a/src/tools/docbook/libxml2/doc/examples/tree1.res b/src/tools/docbook/libxml2/doc/examples/tree1.res deleted file mode 100644 index 7b14ad0c5c..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/tree1.res +++ /dev/null @@ -1,4 +0,0 @@ -node type: Element, name: doc -node type: Element, name: src -node type: Element, name: dest -node type: Element, name: src diff --git a/src/tools/docbook/libxml2/doc/examples/tree2.c b/src/tools/docbook/libxml2/doc/examples/tree2.c deleted file mode 100644 index c40fc55d54..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/tree2.c +++ /dev/null @@ -1,118 +0,0 @@ -/* - * section: Tree - * synopsis: Creates a tree - * purpose: Shows how to create document, nodes and dump it to stdout or file. - * usage: tree2 -Default output: stdout - * test: tree2 > tree2.tmp ; diff tree2.tmp tree2.res ; rm tree2.tmp - * author: Lucas Brasilino - * copy: see Copyright for the status of this software - */ - -#include -#include -#include - -#if defined(LIBXML_TREE_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - -/* - *To compile this file using gcc you can type - *gcc `xml2-config --cflags --libs` -o tree2 tree2.c - */ - -/* A simple example how to create DOM. Libxml2 automagically - * allocates the necessary amount of memory to it. -*/ -int -main(int argc, char **argv) -{ - xmlDocPtr doc = NULL; /* document pointer */ - xmlNodePtr root_node = NULL, node = NULL, node1 = NULL;/* node pointers */ - xmlDtdPtr dtd = NULL; /* DTD pointer */ - char buff[256]; - int i, j; - - LIBXML_TEST_VERSION; - - /* - * Creates a new document, a node and set it as a root node - */ - doc = xmlNewDoc(BAD_CAST "1.0"); - root_node = xmlNewNode(NULL, BAD_CAST "root"); - xmlDocSetRootElement(doc, root_node); - - /* - * Creates a DTD declaration. Isn't mandatory. - */ - dtd = xmlCreateIntSubset(doc, BAD_CAST "root", NULL, BAD_CAST "tree2.dtd"); - - /* - * xmlNewChild() creates a new node, which is "attached" as child node - * of root_node node. - */ - xmlNewChild(root_node, NULL, BAD_CAST "node1", - BAD_CAST "content of node 1"); - /* - * The same as above, but the new child node doesn't have a content - */ - xmlNewChild(root_node, NULL, BAD_CAST "node2", NULL); - - /* - * xmlNewProp() creates attributes, which is "attached" to an node. - * It returns xmlAttrPtr, which isn't used here. - */ - node = - xmlNewChild(root_node, NULL, BAD_CAST "node3", - BAD_CAST "this node has attributes"); - xmlNewProp(node, BAD_CAST "attribute", BAD_CAST "yes"); - xmlNewProp(node, BAD_CAST "foo", BAD_CAST "bar"); - - /* - * Here goes another way to create nodes. xmlNewNode() and xmlNewText - * creates a node and a text node separately. They are "attached" - * by xmlAddChild() - */ - node = xmlNewNode(NULL, BAD_CAST "node4"); - node1 = xmlNewText(BAD_CAST - "other way to create content (which is also a node)"); - xmlAddChild(node, node1); - xmlAddChild(root_node, node); - - /* - * A simple loop that "automates" nodes creation - */ - for (i = 5; i < 7; i++) { - sprintf(buff, "node%d", i); - node = xmlNewChild(root_node, NULL, BAD_CAST buff, NULL); - for (j = 1; j < 4; j++) { - sprintf(buff, "node%d%d", i, j); - node1 = xmlNewChild(node, NULL, BAD_CAST buff, NULL); - xmlNewProp(node1, BAD_CAST "odd", BAD_CAST((j % 2) ? "no" : "yes")); - } - } - - /* - * Dumping document to stdio or file - */ - xmlSaveFormatFileEnc(argc > 1 ? argv[1] : "-", doc, "UTF-8", 1); - - /*free the document */ - xmlFreeDoc(doc); - - /* - *Free the global variables that may - *have been allocated by the parser. - */ - xmlCleanupParser(); - - /* - * this is to debug memory for regression tests - */ - xmlMemoryDump(); - return(0); -} -#else -int main(void) { - fprintf(stderr, "tree support not compiled in\n"); - exit(1); -} -#endif diff --git a/src/tools/docbook/libxml2/doc/examples/tree2.res b/src/tools/docbook/libxml2/doc/examples/tree2.res deleted file mode 100644 index ed00195640..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/tree2.res +++ /dev/null @@ -1,18 +0,0 @@ - - - - content of node 1 - - this node has attributes - other way to create content (which is also a node) - - - - - - - - - - - diff --git a/src/tools/docbook/libxml2/doc/examples/tst.xml b/src/tools/docbook/libxml2/doc/examples/tst.xml deleted file mode 100644 index 1cc6c9542a..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/tst.xml +++ /dev/null @@ -1,7 +0,0 @@ - - hello - - - goodbye - - diff --git a/src/tools/docbook/libxml2/doc/examples/writer.xml b/src/tools/docbook/libxml2/doc/examples/writer.xml deleted file mode 100644 index 6ab05fd894..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/writer.xml +++ /dev/null @@ -1,2 +0,0 @@ - -
    00000535351010MüllerJörg
    <Test>
    10
    <Test 2>
    20
    This is a text.
    diff --git a/src/tools/docbook/libxml2/doc/examples/xpath1.c b/src/tools/docbook/libxml2/doc/examples/xpath1.c deleted file mode 100644 index f2f74062e5..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/xpath1.c +++ /dev/null @@ -1,250 +0,0 @@ -/** - * section: XPath - * synopsis: Evaluate XPath expression and prints result node set. - * purpose: Shows how to evaluate XPath expression and register - * known namespaces in XPath context. - * usage: xpath1 [] - * test: ./xpath1 test3.xml '//child2' > xpath1.tmp ; diff xpath1.tmp xpath1.res ; rm xpath1.tmp - * author: Aleksey Sanin - * copy: see Copyright for the status of this software. - */ -#include -#include -#include -#include - -#include -#include -#include -#include - -#if defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_SAX1_ENABLED) - - -static void usage(const char *name); -int execute_xpath_expression(const char* filename, const xmlChar* xpathExpr, const xmlChar* nsList); -int register_namespaces(xmlXPathContextPtr xpathCtx, const xmlChar* nsList); -void print_xpath_nodes(xmlNodeSetPtr nodes, FILE* output); - -int -main(int argc, char **argv) { - /* Parse command line and process file */ - if((argc < 3) || (argc > 4)) { - fprintf(stderr, "Error: wrong number of arguments.\n"); - usage(argv[0]); - return(-1); - } - - /* Init libxml */ - xmlInitParser(); - LIBXML_TEST_VERSION - - /* Do the main job */ - if(execute_xpath_expression(argv[1], BAD_CAST argv[2], (argc > 3) ? BAD_CAST argv[3] : NULL) < 0) { - usage(argv[0]); - return(-1); - } - - /* Shutdown libxml */ - xmlCleanupParser(); - - /* - * this is to debug memory for regression tests - */ - xmlMemoryDump(); - return 0; -} - -/** - * usage: - * @name: the program name. - * - * Prints usage information. - */ -static void -usage(const char *name) { - assert(name); - - fprintf(stderr, "Usage: %s []\n", name); - fprintf(stderr, "where is a list of known namespaces\n"); - fprintf(stderr, "in \"= =href2> ...\" format\n"); -} - -/** - * execute_xpath_expression: - * @filename: the input XML filename. - * @xpathExpr: the xpath expression for evaluation. - * @nsList: the optional list of known namespaces in - * "= =href2> ..." format. - * - * Parses input XML file, evaluates XPath expression and prints results. - * - * Returns 0 on success and a negative value otherwise. - */ -int -execute_xpath_expression(const char* filename, const xmlChar* xpathExpr, const xmlChar* nsList) { - xmlDocPtr doc; - xmlXPathContextPtr xpathCtx; - xmlXPathObjectPtr xpathObj; - - assert(filename); - assert(xpathExpr); - - /* Load XML document */ - doc = xmlParseFile(filename); - if (doc == NULL) { - fprintf(stderr, "Error: unable to parse file \"%s\"\n", filename); - return(-1); - } - - /* Create xpath evaluation context */ - xpathCtx = xmlXPathNewContext(doc); - if(xpathCtx == NULL) { - fprintf(stderr,"Error: unable to create new XPath context\n"); - xmlFreeDoc(doc); - return(-1); - } - - /* Register namespaces from list (if any) */ - if((nsList != NULL) && (register_namespaces(xpathCtx, nsList) < 0)) { - fprintf(stderr,"Error: failed to register namespaces list \"%s\"\n", nsList); - xmlXPathFreeContext(xpathCtx); - xmlFreeDoc(doc); - return(-1); - } - - /* Evaluate xpath expression */ - xpathObj = xmlXPathEvalExpression(xpathExpr, xpathCtx); - if(xpathObj == NULL) { - fprintf(stderr,"Error: unable to evaluate xpath expression \"%s\"\n", xpathExpr); - xmlXPathFreeContext(xpathCtx); - xmlFreeDoc(doc); - return(-1); - } - - /* Print results */ - print_xpath_nodes(xpathObj->nodesetval, stdout); - - /* Cleanup */ - xmlXPathFreeObject(xpathObj); - xmlXPathFreeContext(xpathCtx); - xmlFreeDoc(doc); - - return(0); -} - -/** - * register_namespaces: - * @xpathCtx: the pointer to an XPath context. - * @nsList: the list of known namespaces in - * "= =href2> ..." format. - * - * Registers namespaces from @nsList in @xpathCtx. - * - * Returns 0 on success and a negative value otherwise. - */ -int -register_namespaces(xmlXPathContextPtr xpathCtx, const xmlChar* nsList) { - xmlChar* nsListDup; - xmlChar* prefix; - xmlChar* href; - xmlChar* next; - - assert(xpathCtx); - assert(nsList); - - nsListDup = xmlStrdup(nsList); - if(nsListDup == NULL) { - fprintf(stderr, "Error: unable to strdup namespaces list\n"); - return(-1); - } - - next = nsListDup; - while(next != NULL) { - /* skip spaces */ - while((*next) == ' ') next++; - if((*next) == '\0') break; - - /* find prefix */ - prefix = next; - next = (xmlChar*)xmlStrchr(next, '='); - if(next == NULL) { - fprintf(stderr,"Error: invalid namespaces list format\n"); - xmlFree(nsListDup); - return(-1); - } - *(next++) = '\0'; - - /* find href */ - href = next; - next = (xmlChar*)xmlStrchr(next, ' '); - if(next != NULL) { - *(next++) = '\0'; - } - - /* do register namespace */ - if(xmlXPathRegisterNs(xpathCtx, prefix, href) != 0) { - fprintf(stderr,"Error: unable to register NS with prefix=\"%s\" and href=\"%s\"\n", prefix, href); - xmlFree(nsListDup); - return(-1); - } - } - - xmlFree(nsListDup); - return(0); -} - -/** - * print_xpath_nodes: - * @nodes: the nodes set. - * @output: the output file handle. - * - * Prints the @nodes content to @output. - */ -void -print_xpath_nodes(xmlNodeSetPtr nodes, FILE* output) { - xmlNodePtr cur; - int size; - int i; - - assert(output); - size = (nodes) ? nodes->nodeNr : 0; - - fprintf(output, "Result (%d nodes):\n", size); - for(i = 0; i < size; ++i) { - assert(nodes->nodeTab[i]); - - if(nodes->nodeTab[i]->type == XML_NAMESPACE_DECL) { - xmlNsPtr ns; - - ns = (xmlNsPtr)nodes->nodeTab[i]; - cur = (xmlNodePtr)ns->next; - if(cur->ns) { - fprintf(output, "= namespace \"%s\"=\"%s\" for node %s:%s\n", - ns->prefix, ns->href, cur->ns->href, cur->name); - } else { - fprintf(output, "= namespace \"%s\"=\"%s\" for node %s\n", - ns->prefix, ns->href, cur->name); - } - } else if(nodes->nodeTab[i]->type == XML_ELEMENT_NODE) { - cur = nodes->nodeTab[i]; - if(cur->ns) { - fprintf(output, "= element node \"%s:%s\"\n", - cur->ns->href, cur->name); - } else { - fprintf(output, "= element node \"%s\"\n", - cur->name); - } - } else { - cur = nodes->nodeTab[i]; - fprintf(output, "= node \"%s\": type %d\n", cur->name, cur->type); - } - } -} - -#else -int main(void) { - fprintf(stderr, "XPath support not compiled in\n"); - exit(1); -} -#endif diff --git a/src/tools/docbook/libxml2/doc/examples/xpath1.res b/src/tools/docbook/libxml2/doc/examples/xpath1.res deleted file mode 100644 index 76af3a931d..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/xpath1.res +++ /dev/null @@ -1,5 +0,0 @@ -Result (4 nodes): -= element node "child2" -= element node "child2" -= element node "child2" -= element node "child2" diff --git a/src/tools/docbook/libxml2/doc/examples/xpath2.c b/src/tools/docbook/libxml2/doc/examples/xpath2.c deleted file mode 100644 index 6ff4008a00..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/xpath2.c +++ /dev/null @@ -1,190 +0,0 @@ -/** - * section: XPath - * synopsis: Load a document, locate subelements with XPath, modify - * said elements and save the resulting document. - * purpose: Shows how to make a full round-trip from a load/edit/save - * usage: xpath2 - * test: xpath2 test3.xml '//discarded' discarded > xpath2.tmp ; diff xpath2.tmp xpath2.res ; rm xpath2.tmp - * author: Aleksey Sanin and Daniel Veillard - * copy: see Copyright for the status of this software. - */ -#include -#include -#include -#include - -#include -#include -#include -#include - -#if defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_SAX1_ENABLED) && \ - defined(LIBXML_OUTPUT_ENABLED) - - -static void usage(const char *name); -static int example4(const char *filename, const xmlChar * xpathExpr, - const xmlChar * value); -static void update_xpath_nodes(xmlNodeSetPtr nodes, const xmlChar * value); - - -int -main(int argc, char **argv) { - /* Parse command line and process file */ - if (argc != 4) { - fprintf(stderr, "Error: wrong number of arguments.\n"); - usage(argv[0]); - return(-1); - } - - /* Init libxml */ - xmlInitParser(); - LIBXML_TEST_VERSION - - /* Do the main job */ - if (example4(argv[1], BAD_CAST argv[2], BAD_CAST argv[3])) { - usage(argv[0]); - return(-1); - } - - /* Shutdown libxml */ - xmlCleanupParser(); - - /* - * this is to debug memory for regression tests - */ - xmlMemoryDump(); - return 0; -} - -/** - * usage: - * @name: the program name. - * - * Prints usage information. - */ -static void -usage(const char *name) { - assert(name); - - fprintf(stderr, "Usage: %s \n", name); -} - -/** - * example4: - * @filename: the input XML filename. - * @xpathExpr: the xpath expression for evaluation. - * @value: the new node content. - * - * Parses input XML file, evaluates XPath expression and update the nodes - * then print the result. - * - * Returns 0 on success and a negative value otherwise. - */ -static int -example4(const char* filename, const xmlChar* xpathExpr, const xmlChar* value) { - xmlDocPtr doc; - xmlXPathContextPtr xpathCtx; - xmlXPathObjectPtr xpathObj; - - assert(filename); - assert(xpathExpr); - assert(value); - - /* Load XML document */ - doc = xmlParseFile(filename); - if (doc == NULL) { - fprintf(stderr, "Error: unable to parse file \"%s\"\n", filename); - return(-1); - } - - /* Create xpath evaluation context */ - xpathCtx = xmlXPathNewContext(doc); - if(xpathCtx == NULL) { - fprintf(stderr,"Error: unable to create new XPath context\n"); - xmlFreeDoc(doc); - return(-1); - } - - /* Evaluate xpath expression */ - xpathObj = xmlXPathEvalExpression(xpathExpr, xpathCtx); - if(xpathObj == NULL) { - fprintf(stderr,"Error: unable to evaluate xpath expression \"%s\"\n", xpathExpr); - xmlXPathFreeContext(xpathCtx); - xmlFreeDoc(doc); - return(-1); - } - - /* update selected nodes */ - update_xpath_nodes(xpathObj->nodesetval, value); - - - /* Cleanup of XPath data */ - xmlXPathFreeObject(xpathObj); - xmlXPathFreeContext(xpathCtx); - - /* dump the resulting document */ - xmlDocDump(stdout, doc); - - - /* free the document */ - xmlFreeDoc(doc); - - return(0); -} - -/** - * update_xpath_nodes: - * @nodes: the nodes set. - * @value: the new value for the node(s) - * - * Prints the @nodes content to @output. - */ -static void -update_xpath_nodes(xmlNodeSetPtr nodes, const xmlChar* value) { - int size; - int i; - - assert(value); - size = (nodes) ? nodes->nodeNr : 0; - - /* - * NOTE: the nodes are processed in reverse order, i.e. reverse document - * order because xmlNodeSetContent can actually free up descendant - * of the node and such nodes may have been selected too ! Handling - * in reverse order ensure that descendant are accessed first, before - * they get removed. Mixing XPath and modifications on a tree must be - * done carefully ! - */ - for(i = size - 1; i >= 0; i--) { - assert(nodes->nodeTab[i]); - - xmlNodeSetContent(nodes->nodeTab[i], value); - /* - * All the elements returned by an XPath query are pointers to - * elements from the tree *except* namespace nodes where the XPath - * semantic is different from the implementation in libxml2 tree. - * As a result when a returned node set is freed when - * xmlXPathFreeObject() is called, that routine must check the - * element type. But node from the returned set may have been removed - * by xmlNodeSetContent() resulting in access to freed data. - * This can be exercised by running - * valgrind xpath2 test3.xml '//discarded' discarded - * There is 2 ways around it: - * - make a copy of the pointers to the nodes from the result set - * then call xmlXPathFreeObject() and then modify the nodes - * or - * - remove the reference to the modified nodes from the node set - * as they are processed, if they are not namespace nodes. - */ - if (nodes->nodeTab[i]->type != XML_NAMESPACE_DECL) - nodes->nodeTab[i] = NULL; - } -} - -#else -int main(void) { - fprintf(stderr, "XPath support not compiled in\n"); - exit(1); -} -#endif diff --git a/src/tools/docbook/libxml2/doc/examples/xpath2.res b/src/tools/docbook/libxml2/doc/examples/xpath2.res deleted file mode 100644 index 4e896999ed..0000000000 --- a/src/tools/docbook/libxml2/doc/examples/xpath2.res +++ /dev/null @@ -1,30 +0,0 @@ - - - - discarded - - This text node must be discarded - discarded - - content1 - - content2 - too - content3 - - content4 - - content5 - content6 - - This text node must be discarded - discarded - This text node must be discarded - - This text node must be discarded - - This text node must be discarded - discarded - This text node must be discarded - - diff --git a/src/tools/docbook/libxml2/doc/guidelines.html b/src/tools/docbook/libxml2/doc/guidelines.html deleted file mode 100644 index 9cb6636aa3..0000000000 --- a/src/tools/docbook/libxml2/doc/guidelines.html +++ /dev/null @@ -1,374 +0,0 @@ - - - - - - - XML resources publication guidelines - - - -

    XML resources publication guidelines

    - -

    - -

    The goal of this document is to provide a set of guidelines and tips -helping the publication and deployment of XML resources for the GNOME project. However it is not tied to -GNOME and might be helpful more generally. I welcome feedback on this document.

    - -

    The intended audience is the software developers who started using XML -for some of the resources of their project, as a storage format, for data -exchange, checking or transformations. There have been an increasing number -of new XML formats defined, but not all steps have been taken, possibly because of -lack of documentation, to truly gain all the benefits of the use of XML. -These guidelines hope to improve the matter and provide a better overview of -the overall XML processing and associated steps needed to deploy it -successfully:

    - -

    Table of contents:

    -
      -
    1. Design guidelines
    2. -
    3. Canonical URL
    4. -
    5. Catalog setup
    6. -
    7. Package integration
    8. -
    - -

    Design guidelines

    - -

    This part intends to focus on the format itself of XML. It may arrive -a bit too late since the structure of the document may already be cast in -existing and deployed code. Still, here are a few rules which might be helpful -when designing a new XML vocabulary or making the revision of an existing -format:

    - -

    Reuse existing formats:

    - -

    This may sounds a bit simplistic, but before designing your own format, -try to lookup existing XML vocabularies on similar data. Ideally this allows -you to reuse them, in which case a lot of the existing tools like DTD, schemas -and stylesheets may already be available. If you are looking at a -documentation format, DocBook should -handle your needs. If reuse is not possible because some semantic or use case -aspects are too different this will be helpful avoiding design errors like -targeting the vocabulary to the wrong abstraction level. In this format -design phase try to be synthetic and be sure to express the real content of -your data and use the XML structure to express the semantic and context of -those data.

    - -

    DTD rules:

    - -

    Building a DTD (Document Type Definition) or a Schema describing the -structure allowed by instances is the core of the design process of the -vocabulary. Here are a few tips:

    -
      -
    • use significant words for the element and attributes names.
    • -
    • do not use attributes for general textual content, attributes - will be modified by the parser before reaching the application, - spaces and line informations will be modified.
    • -
    • use single elements for every string that might be subject to - localization. The canonical way to localize XML content is to use - siblings element carrying different xml:lang attributes like in the - following: -
      <welcome>
      -  <msg xml:lang="en">hello</msg>
      -  <msg xml:lang="fr">bonjour</msg>
      -</welcome>
      -
    • -
    • use attributes to refine the content of an element but avoid them for - more complex tasks, attribute parsing is not cheaper than an element and - it is far easier to make an element content more complex while attribute - will have to remain very simple.
    • -
    - -

    Versioning:

    - -

    As part of the design, make sure the structure you define will be usable -for future extension that you may not consider for the current version. There -are two parts to this:

    -
      -
    • Make sure the instance contains a version number which will allow to - make backward compatibility easy. Something as simple as having a - version="1.0" on the root document of the instance is - sufficient.
    • -
    • While designing the code doing the analysis of the data provided by the - XML parser, make sure you can work with unknown versions, generate a UI - warning and process only the tags recognized by your version but keep in - mind that you should not break on unknown elements if the version - attribute was not in the recognized set.
    • -
    - -

    Other design parts:

    - -

    While defining you vocabulary, try to think in term of other usage of your -data, for example how using XSLT stylesheets could be used to make an HTML -view of your data, or to convert it into a different format. Checking XML -Schemas and looking at defining an XML Schema with a more complete -validation and datatyping of your data structures is important, this helps -avoiding some mistakes in the design phase.

    - -

    Namespace:

    - -

    If you expect your XML vocabulary to be used or recognized outside of your -application (for example binding a specific processing from a graphic shell -like Nautilus to an instance of your data) then you should really define an XML namespace for your -vocabulary. A namespace name is an URL (absolute URI more precisely). It is -generally recommended to anchor it as an HTTP resource to a server associated -with the software project. See the next section about this. In practice this -will mean that XML parsers will not handle your element names as-is but as a -couple based on the namespace name and the element name. This allows it to -recognize and disambiguate processing. Unicity of the namespace name can be -for the most part guaranteed by the use of the DNS registry. Namespace can -also be used to carry versioning information like:

    - -

    "http://www.gnome.org/project/projectname/1.0/"

    - -

    An easy way to use them is to make them the default namespace on the -root element of the XML instance like:

    -
    <structure xmlns="http://www.gnome.org/project/projectname/1.0/">
    -  <data>
    -  ...
    -  </data>
    -</structure>
    - -

    In that document, structure and all descendant elements like data are in -the given namespace.

    - -

    Canonical URL

    - -

    As seen in the previous namespace section, while XML processing is not -tied to the Web there is a natural synergy between both. XML was designed to -be available on the Web, and keeping the infrastructure that way helps -deploying the XML resources. The core of this issue is the notion of -"Canonical URL" of an XML resource. The resource can be an XML document, a -DTD, a stylesheet, a schema, or even non-XML data associated with an XML -resource, the canonical URL is the URL where the "master" copy of that -resource is expected to be present on the Web. Usually when processing XML a -copy of the resource will be present on the local disk, maybe in -/usr/share/xml or /usr/share/sgml maybe in /opt or even on C:\projectname\ -(horror !). The key point is that the way to name that resource should be -independent of the actual place where it resides on disk if it is available, -and the fact that the processing will still work if there is no local copy -(and that the machine where the processing is connected to the Internet).

    - -

    What this really means is that one should never use the local name of a -resource to reference it but always use the canonical URL. For example in a -DocBook instance the following should not be used:

    -
    <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
    - - - "/usr/share/xml/docbook/4.2/docbookx.dtd">
    - -

    But always reference the canonical URL for the DTD:

    -
    <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
    - - - "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
    - -

    Similarly, the document instance may reference the XSLT stylesheets needed to process it to -generate HTML, and the canonical URL should be used:

    -
    <?xml-stylesheet
    -  href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"
    -  type="text/xsl"?>
    - -

    Defining the canonical URL for the resources needed should obey a few -simple rules similar to those used to design namespace names:

    -
      -
    • use a DNS name you know is associated to the project and will be - available on the long term
    • -
    • within that server space, reserve the right to the subtree where you - intend to keep those data
    • -
    • version the URL so that multiple concurrent versions of the resources - can be hosted simultaneously
    • -
    - -

    Catalog setup

    - -

    How catalogs work:

    - -

    The catalogs are the technical mechanism which allow the XML processing -tools to use a local copy of the resources if it is available even if the -instance document references the canonical URL. XML Catalogs are -anchored in the root catalog (usually /etc/xml/catalog or -defined by the user). They are a tree of XML documents defining the mappings -between the canonical naming space and the local installed ones, this can be -seen as a static cache structure.

    - -

    When the XML processor is asked to process a resource it will -automatically test for a locally available version in the catalog, starting -from the root catalog, and possibly fetching sub-catalog resources until it -finds that the catalog has that resource or not. If not the default -processing of fetching the resource from the Web is done, allowing in most -case to recover from a catalog miss. The key point is that the document -instances are totally independent of the availability of a catalog or from -the actual place where the local resource they reference may be installed. -This greatly improves the management of the documents in the long run, making -them independent of the platform or toolchain used to process them. The -figure below tries to express that mechanism:

    - -

    Usual catalog setup:

    - -

    Usually catalogs for a project are setup as a 2 level hierarchical cache, -the root catalog containing only "delegates" indicating a separate subcatalog -dedicated to the project. The goal is to keep the root catalog clean and -simplify the maintenance of the catalog by using separate catalogs per -project. For example when creating a catalog for the XHTML1 DTDs, only 3 items are added to -the root catalog:

    -
      <delegatePublic publicIdStartString="-//W3C//DTD XHTML 1.0"
    -                  catalog="file:///usr/share/sgml/xhtml1/xmlcatalog"/>
    -  <delegateSystem systemIdStartString="http://www.w3.org/TR/xhtml1/DTD"
    -                  catalog="file:///usr/share/sgml/xhtml1/xmlcatalog"/>
    -  <delegateURI uriStartString="http://www.w3.org/TR/xhtml1/DTD"
    -                  catalog="file:///usr/share/sgml/xhtml1/xmlcatalog"/>
    - -

    They are all "delegates" meaning that if the catalog system is asked to -resolve a reference corresponding to them, it has to lookup a sub catalog. -Here the subcatalog was installed as -/usr/share/sgml/xhtml1/xmlcatalog in the local tree. That -decision is left to the sysadmin or the packager for that system and may -obey different rules, but the actual place on the filesystem (or on a -resource cache on the local network) will not influence the processing as -long as it is available. The first rule indicate that if the reference uses a -PUBLIC identifier beginning with the

    - -

    "-//W3C//DTD XHTML 1.0"

    - -

    substring, then the catalog lookup should be limited to the specific given -lookup catalog. Similarly the second and third entries indicate those -delegation rules for SYSTEM, DOCTYPE or normal URI references when the URL -starts with the "http://www.w3.org/TR/xhtml1/DTD" substring -which indicates the location on the W3C server where the XHTML1 resources are -stored. Those are the beginning of all Canonical URLs for XHTML1 resources. -Those three rules are sufficient in practice to capture all references to XHTML1 -resources and direct the processing tools to the right subcatalog.

    - -

    A subcatalog example:

    - -

    Here is the complete subcatalog used for XHTML1:

    -
    <?xml version="1.0"?>
    -<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
    -          "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
    -<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
    -  <public publicId="-//W3C//DTD XHTML 1.0 Strict//EN"
    -          uri="xhtml1-20020801/DTD/xhtml1-strict.dtd"/>
    -  <public publicId="-//W3C//DTD XHTML 1.0 Transitional//EN"
    -          uri="xhtml1-20020801/DTD/xhtml1-transitional.dtd"/>
    -  <public publicId="-//W3C//DTD XHTML 1.0 Frameset//EN"
    -          uri="xhtml1-20020801/DTD/xhtml1-frameset.dtd"/>
    -  <rewriteSystem systemIdStartString="http://www.w3.org/TR/xhtml1/DTD"
    -          rewritePrefix="xhtml1-20020801/DTD"/>
    -  <rewriteURI uriStartString="http://www.w3.org/TR/xhtml1/DTD"
    -          rewritePrefix="xhtml1-20020801/DTD"/>
    -</catalog>
    - -

    There are a few things to notice:

    -
      -
    • this is an XML resource, it points to the DTD using Canonical URLs, the - root element defines a namespace (but based on an URN not an HTTP - URL).
    • -
    • it contains 5 rules, the 3 first ones are direct mapping for the 3 - PUBLIC identifiers defined by the XHTML1 specification and associating - them with the local resource containing the DTD, the 2 last ones are - rewrite rules allowing to build the local filename for any URL based on - "http://www.w3.org/TR/xhtml1/DTD", the local cache simplifies the rules by - keeping the same structure as the on-line server at the Canonical URL
    • -
    • the local resources are designated using URI references (the uri or - rewritePrefix attributes), the base being the containing sub-catalog URL, - which means that in practice the copy of the XHTML1 strict DTD is stored - locally in - /usr/share/sgml/xhtml1/xmlcatalog/xhtml1-20020801/DTD/xhtml1-strict.dtd
    • -
    - -

    Those 5 rules are sufficient to cover all references to the resources held -at the Canonical URL for the XHTML1 DTDs.

    - -

    Package integration

    - -

    Creating and removing catalogs should be handled as part of the process of -(un)installing the local copy of the resources. The catalog files being XML -resources should be processed with XML based tools to avoid problems with the -generated files, the xmlcatalog command coming with libxml2 allows you to create -catalogs, and add or remove rules at that time. Here is a complete example -coming from the RPM for the XHTML1 DTDs post install script. While this example -is platform and packaging specific, this can be useful as a an example in -other contexts:

    -
    %post
    -CATALOG=/usr/share/sgml/xhtml1/xmlcatalog
    -#
    -# Register it in the super catalog with the appropriate delegates
    -#
    -ROOTCATALOG=/etc/xml/catalog
    -
    -if [ ! -r $ROOTCATALOG ]
    -then
    -    /usr/bin/xmlcatalog --noout --create $ROOTCATALOG
    -fi
    -
    -if [ -w $ROOTCATALOG ]
    -then
    -        /usr/bin/xmlcatalog --noout --add "delegatePublic" \
    -                "-//W3C//DTD XHTML 1.0" \
    -                "file://$CATALOG" $ROOTCATALOG
    -        /usr/bin/xmlcatalog --noout --add "delegateSystem" \
    -                "http://www.w3.org/TR/xhtml1/DTD" \
    -                "file://$CATALOG" $ROOTCATALOG
    -        /usr/bin/xmlcatalog --noout --add "delegateURI" \
    -                "http://www.w3.org/TR/xhtml1/DTD" \
    -                "file://$CATALOG" $ROOTCATALOG
    -fi
    - -

    The XHTML1 subcatalog is not created on-the-fly in that case, it is -installed as part of the files of the packages. So the only work needed is to -make sure the root catalog exists and register the delegate rules.

    - -

    Similarly, the script for the post-uninstall just remove the rules from the -catalog:

    -
    %postun
    -#
    -# On removal, unregister the xmlcatalog from the supercatalog
    -#
    -if [ "$1" = 0 ]; then
    -    CATALOG=/usr/share/sgml/xhtml1/xmlcatalog
    -    ROOTCATALOG=/etc/xml/catalog
    -
    -    if [ -w $ROOTCATALOG ]
    -    then
    -            /usr/bin/xmlcatalog --noout --del \
    -                    "-//W3C//DTD XHTML 1.0" $ROOTCATALOG
    -            /usr/bin/xmlcatalog --noout --del \
    -                    "http://www.w3.org/TR/xhtml1/DTD" $ROOTCATALOG
    -            /usr/bin/xmlcatalog --noout --del \
    -                    "http://www.w3.org/TR/xhtml1/DTD" $ROOTCATALOG
    -    fi
    -fi
    - -

    Note the test against $1, this is needed to not remove the delegate rules -in case of upgrade of the package.

    - -

    Following the set of guidelines and tips provided in this document should -help deploy the XML resources in the GNOME framework without much pain and -ensure a smooth evolution of the resource and instances.

    - -

    Daniel Veillard

    - -

    $Id: guidelines.html,v 1.6 2004/12/26 21:01:48 veillard Exp $

    - -

    - - diff --git a/src/tools/docbook/libxml2/doc/help.html b/src/tools/docbook/libxml2/doc/help.html deleted file mode 100644 index a660a87cfd..0000000000 --- a/src/tools/docbook/libxml2/doc/help.html +++ /dev/null @@ -1,23 +0,0 @@ - - -How to help
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    How to help

    Main Menu
    Related links

    You can help the project in various ways, the best thing to do first -istosubscribe to the mailing-list as explained before, check the archives and the Gnomebugdatabase:

    1. Provide patches when you find problems.
    2. -
    3. Provide the diffs when you port libxml2 to a new platform. They - maynotbe integrated in all cases but help pinpointing - portabilityproblemsand
    4. -
    5. Provide documentation fixes (either as patches to the code commentsoras - HTML diffs).
    6. -
    7. Provide new documentations pieces (translations, examples, etc...).
    8. -
    9. Check the TODO file and try to close one of the items.
    10. -
    11. Take one of the points raised in the archive or the bug - databaseandprovide a fix. Get in - touch withmebefore to avoid synchronization problems and check that - thesuggestedfix will fit in nicely :-)
    12. -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/book1.html b/src/tools/docbook/libxml2/doc/html/book1.html deleted file mode 100644 index 4a4962ada5..0000000000 --- a/src/tools/docbook/libxml2/doc/html/book1.html +++ /dev/null @@ -1,13 +0,0 @@ - - -Reference Manual for libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Reference Manual for libxml2

    API Menu
    API Indexes
    Related links

    Table of Contents

    • DOCBparser: old DocBook SGML parser
    • HTMLparser: interface for an HTML 4.0 non-verifying parser
    • HTMLtree: specific APIs to process HTML tree, especially serialization
    • SAX: Old SAX version 1 handler, deprecated
    • SAX2: SAX2 parser interface used to build the DOM tree
    • c14n: Provide Canonical XML and Exclusive XML Canonicalization
    • catalog: interfaces to the Catalog handling system
    • chvalid: Unicode character range checking
    • debugXML: Tree debugging APIs
    • dict: string dictionnary
    • encoding: interface for the encoding conversion functions
    • entities: interface for the XML entities handling
    • globals: interface for all global variables of the library
    • hash: Chained hash tables
    • list: lists interfaces
    • nanoftp: minimal FTP implementation
    • nanohttp: minimal HTTP implementation
    • parser: the core parser module
    • parserInternals: internals routines exported by the parser.
    • pattern: pattern expression handling
    • relaxng: implementation of the Relax-NG validation
    • schemasInternals: internal interfaces for XML Schemas
    • schematron: XML Schemastron implementation
    • threads: interfaces for thread handling
    • tree: interfaces for tree manipulation
    • uri: library of generic URI related routines
    • valid: The DTD validation
    • xinclude: implementation of XInclude
    • xlink: unfinished XLink detection module
    • xmlIO: interface for the I/O interfaces used by the parser
    • xmlautomata: API to build regexp automata
    • xmlerror: error handling
    • xmlexports: macros for marking symbols as exportable/importable.
    • xmlmemory: interface for the memory allocator
    • xmlmodule: dynamic module loading
    • xmlreader: the XMLReader implementation
    • xmlregexp: regular expressions handling
    • xmlsave: the XML document serializer
    • xmlschemas: incomplete XML Schemas structure implementation
    • xmlschemastypes: implementation of XML Schema Datatypes
    • xmlstring: set of routines to process strings
    • xmlunicode: Unicode character APIs
    • xmlversion: compile-time version informations
    • xmlwriter: text writing API for XML
    • xpath: XML Path Language implementation
    • xpathInternals: internal interfaces for XML Path Language implementation
    • xpointer: API to handle XML Pointers

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/home.png b/src/tools/docbook/libxml2/doc/html/home.png deleted file mode 100644 index 17003611d9..0000000000 Binary files a/src/tools/docbook/libxml2/doc/html/home.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/html/index.html b/src/tools/docbook/libxml2/doc/html/index.html deleted file mode 100644 index 4a4962ada5..0000000000 --- a/src/tools/docbook/libxml2/doc/html/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - -Reference Manual for libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Reference Manual for libxml2

    API Menu
    API Indexes
    Related links

    Table of Contents

    • DOCBparser: old DocBook SGML parser
    • HTMLparser: interface for an HTML 4.0 non-verifying parser
    • HTMLtree: specific APIs to process HTML tree, especially serialization
    • SAX: Old SAX version 1 handler, deprecated
    • SAX2: SAX2 parser interface used to build the DOM tree
    • c14n: Provide Canonical XML and Exclusive XML Canonicalization
    • catalog: interfaces to the Catalog handling system
    • chvalid: Unicode character range checking
    • debugXML: Tree debugging APIs
    • dict: string dictionnary
    • encoding: interface for the encoding conversion functions
    • entities: interface for the XML entities handling
    • globals: interface for all global variables of the library
    • hash: Chained hash tables
    • list: lists interfaces
    • nanoftp: minimal FTP implementation
    • nanohttp: minimal HTTP implementation
    • parser: the core parser module
    • parserInternals: internals routines exported by the parser.
    • pattern: pattern expression handling
    • relaxng: implementation of the Relax-NG validation
    • schemasInternals: internal interfaces for XML Schemas
    • schematron: XML Schemastron implementation
    • threads: interfaces for thread handling
    • tree: interfaces for tree manipulation
    • uri: library of generic URI related routines
    • valid: The DTD validation
    • xinclude: implementation of XInclude
    • xlink: unfinished XLink detection module
    • xmlIO: interface for the I/O interfaces used by the parser
    • xmlautomata: API to build regexp automata
    • xmlerror: error handling
    • xmlexports: macros for marking symbols as exportable/importable.
    • xmlmemory: interface for the memory allocator
    • xmlmodule: dynamic module loading
    • xmlreader: the XMLReader implementation
    • xmlregexp: regular expressions handling
    • xmlsave: the XML document serializer
    • xmlschemas: incomplete XML Schemas structure implementation
    • xmlschemastypes: implementation of XML Schema Datatypes
    • xmlstring: set of routines to process strings
    • xmlunicode: Unicode character APIs
    • xmlversion: compile-time version informations
    • xmlwriter: text writing API for XML
    • xpath: XML Path Language implementation
    • xpathInternals: internal interfaces for XML Path Language implementation
    • xpointer: API to handle XML Pointers

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/left.png b/src/tools/docbook/libxml2/doc/html/left.png deleted file mode 100644 index 2d05b3d5b4..0000000000 Binary files a/src/tools/docbook/libxml2/doc/html/left.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/html/libxml-DOCBparser.html b/src/tools/docbook/libxml2/doc/html/libxml-DOCBparser.html deleted file mode 100644 index c75bd26e01..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-DOCBparser.html +++ /dev/null @@ -1,51 +0,0 @@ - - -Module DOCBparser from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module DOCBparser from libxml2

    API Menu
    API Indexes
    Related links

    This module is deprecated

    interface for a DocBook SGML non-verifying parser This code is DEPRECATED, and should not be used anymore.

    Table of Contents

    Typedef xmlParserInputPtr docbParserInputPtr
    -
    Typedef xmlParserCtxt docbParserCtxt
    -
    Typedef xmlParserCtxtPtr docbParserCtxtPtr
    -
    Typedef xmlParserInput docbParserInput
    -
    Typedef xmlDocPtr docbDocPtr
    -
    Typedef xmlSAXHandler docbSAXHandler
    -
    Typedef xmlSAXHandlerPtr docbSAXHandlerPtr
    -
    void	docbFreeParserCtxt		(docbParserCtxtPtr ctxt)
    -
    docbDocPtr	docbParseDoc		(xmlChar * cur, 
    const char * encoding)
    -
    docbParserCtxtPtr	docbCreateFileParserCtxt	(const char * filename, 
    const char * encoding)
    -
    docbDocPtr	docbSAXParseFile	(const char * filename, 
    const char * encoding,
    docbSAXHandlerPtr sax,
    void * userData)
    -
    docbDocPtr	docbSAXParseDoc		(xmlChar * cur, 
    const char * encoding,
    docbSAXHandlerPtr sax,
    void * userData)
    -
    docbParserCtxtPtr	docbCreatePushParserCtxt	(docbSAXHandlerPtr sax, 
    void * user_data,
    const char * chunk,
    int size,
    const char * filename,
    xmlCharEncoding enc)
    -
    int	docbEncodeEntities		(unsigned char * out, 
    int * outlen,
    const unsigned char * in,
    int * inlen,
    int quoteChar)
    -
    docbDocPtr	docbParseFile		(const char * filename, 
    const char * encoding)
    -
    int	docbParseDocument		(docbParserCtxtPtr ctxt)
    -
    int	docbParseChunk			(docbParserCtxtPtr ctxt, 
    const char * chunk,
    int size,
    int terminate)
    -

    Description

    -

    Function: docbFreeParserCtxt

    void	docbFreeParserCtxt		(docbParserCtxtPtr ctxt)
    -

    Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed.

    -
    ctxt:an SGML parser context

    Function: docbParseDoc

    docbDocPtr	docbParseDoc		(xmlChar * cur, 
    const char * encoding)
    -

    parse an SGML in-memory document and build a tree.

    -
    cur:a pointer to an array of xmlChar
    encoding:a free form C string describing the SGML document encoding, or NULL
    Returns:the resulting document tree

    Function: docbCreateFileParserCtxt

    docbParserCtxtPtr	docbCreateFileParserCtxt	(const char * filename, 
    const char * encoding)
    -

    Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

    -
    filename:the filename
    encoding:the SGML document encoding, or NULL
    Returns:the new parser context or NULL

    Function: docbSAXParseFile

    docbDocPtr	docbSAXParseFile	(const char * filename, 
    const char * encoding,
    docbSAXHandlerPtr sax,
    void * userData)
    -

    parse an SGML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.

    -
    filename:the filename
    encoding:a free form C string describing the SGML document encoding, or NULL
    sax:the SAX handler block
    userData:if using SAX, this pointer will be provided on callbacks.
    Returns:the resulting document tree

    Function: docbSAXParseDoc

    docbDocPtr	docbSAXParseDoc		(xmlChar * cur, 
    const char * encoding,
    docbSAXHandlerPtr sax,
    void * userData)
    -

    parse an SGML in-memory document and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.

    -
    cur:a pointer to an array of xmlChar
    encoding:a free form C string describing the SGML document encoding, or NULL
    sax:the SAX handler block
    userData:if using SAX, this pointer will be provided on callbacks.
    Returns:the resulting document tree

    Function: docbCreatePushParserCtxt

    docbParserCtxtPtr	docbCreatePushParserCtxt	(docbSAXHandlerPtr sax, 
    void * user_data,
    const char * chunk,
    int size,
    const char * filename,
    xmlCharEncoding enc)
    -

    Create a parser context for using the DocBook SGML parser in push mode To allow content encoding detection, @size should be >= 4 The value of @filename is used for fetching external entities and error/warning reports.

    -
    sax:a SAX handler
    user_data:The user data returned on SAX callbacks
    chunk:a pointer to an array of chars
    size:number of chars in the array
    filename:an optional file name or URI
    enc:an optional encoding
    Returns:the new parser context or NULL

    Function: docbEncodeEntities

    int	docbEncodeEntities		(unsigned char * out, 
    int * outlen,
    const unsigned char * in,
    int * inlen,
    int quoteChar)
    -

    Take a block of UTF-8 chars in and try to convert it to an ASCII plus SGML entities block of chars out.

    -
    out:a pointer to an array of bytes to store the result
    outlen:the length of @out
    in:a pointer to an array of UTF-8 chars
    inlen:the length of @in
    quoteChar:the quote character to escape (' or ") or zero.
    Returns:0 if success, -2 if the transcoding fails, or -1 otherwise The value of @inlen after return is the number of octets consumed as the return value is positive, else unpredictable. The value of @outlen after return is the number of octets consumed.

    Function: docbParseFile

    docbDocPtr	docbParseFile		(const char * filename, 
    const char * encoding)
    -

    parse a Docbook SGML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

    -
    filename:the filename
    encoding:a free form C string describing document encoding, or NULL
    Returns:the resulting document tree

    Function: docbParseDocument

    int	docbParseDocument		(docbParserCtxtPtr ctxt)
    -

    parse an SGML document (and build a tree if using the standard SAX interface).

    -
    ctxt:an SGML parser context
    Returns:0, -1 in case of error. the parser context is augmented as a result of the parsing.

    Function: docbParseChunk

    int	docbParseChunk			(docbParserCtxtPtr ctxt, 
    const char * chunk,
    int size,
    int terminate)
    -

    Parse a Chunk of memory

    -
    ctxt:an XML parser context
    chunk:an char array
    size:the size in byte of the chunk
    terminate:last chunk indicator
    Returns:zero if no error, the xmlParserErrors otherwise.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-HTMLparser.html b/src/tools/docbook/libxml2/doc/html/libxml-HTMLparser.html deleted file mode 100644 index adc6875a2d..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-HTMLparser.html +++ /dev/null @@ -1,178 +0,0 @@ - - -Module HTMLparser from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module HTMLparser from libxml2

    API Menu
    API Indexes
    Related links

    this module implements an HTML 4.0 non-verifying parser with API compatible with the XML parser ones. It should be able to parse "real world" HTML, even if severely broken from a specification point of view.

    Table of Contents

    #define htmlDefaultSubelement
    #define htmlElementAllowedHereDesc
    #define htmlRequiredAttrs
    Typedef xmlDocPtr htmlDocPtr
    -
    Structure htmlElemDesc
    struct _htmlElemDesc -
    Typedef htmlElemDesc * htmlElemDescPtr
    -
    Structure htmlEntityDesc
    struct _htmlEntityDesc -
    Typedef htmlEntityDesc * htmlEntityDescPtr
    -
    Typedef xmlNodePtr htmlNodePtr
    -
    Typedef xmlParserCtxt htmlParserCtxt
    -
    Typedef xmlParserCtxtPtr htmlParserCtxtPtr
    -
    Typedef xmlParserInput htmlParserInput
    -
    Typedef xmlParserInputPtr htmlParserInputPtr
    -
    Typedef xmlParserNodeInfo htmlParserNodeInfo
    -
    Enum htmlParserOption
    -
    Typedef xmlSAXHandler htmlSAXHandler
    -
    Typedef xmlSAXHandlerPtr htmlSAXHandlerPtr
    -
    Enum htmlStatus
    -
    int	UTF8ToHtml			(unsigned char * out, 
    int * outlen,
    const unsigned char * in,
    int * inlen)
    -
    htmlStatus	htmlAttrAllowed		(const htmlElemDesc * elt, 
    const xmlChar * attr,
    int legacy)
    -
    int	htmlAutoCloseTag		(htmlDocPtr doc, 
    const xmlChar * name,
    htmlNodePtr elem)
    -
    htmlParserCtxtPtr	htmlCreateMemoryParserCtxt	(const char * buffer, 
    int size)
    -
    htmlParserCtxtPtr	htmlCreatePushParserCtxt	(htmlSAXHandlerPtr sax, 
    void * user_data,
    const char * chunk,
    int size,
    const char * filename,
    xmlCharEncoding enc)
    -
    htmlDocPtr	htmlCtxtReadDoc		(htmlParserCtxtPtr ctxt, 
    const xmlChar * cur,
    const char * URL,
    const char * encoding,
    int options)
    -
    htmlDocPtr	htmlCtxtReadFd		(htmlParserCtxtPtr ctxt, 
    int fd,
    const char * URL,
    const char * encoding,
    int options)
    -
    htmlDocPtr	htmlCtxtReadFile	(htmlParserCtxtPtr ctxt, 
    const char * filename,
    const char * encoding,
    int options)
    -
    htmlDocPtr	htmlCtxtReadIO		(htmlParserCtxtPtr ctxt, 
    xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -
    htmlDocPtr	htmlCtxtReadMemory	(htmlParserCtxtPtr ctxt, 
    const char * buffer,
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -
    void	htmlCtxtReset			(htmlParserCtxtPtr ctxt)
    -
    int	htmlCtxtUseOptions		(htmlParserCtxtPtr ctxt, 
    int options)
    -
    int	htmlElementAllowedHere		(const htmlElemDesc * parent, 
    const xmlChar * elt)
    -
    htmlStatus	htmlElementStatusHere	(const htmlElemDesc * parent, 
    const htmlElemDesc * elt)
    -
    int	htmlEncodeEntities		(unsigned char * out, 
    int * outlen,
    const unsigned char * in,
    int * inlen,
    int quoteChar)
    -
    const htmlEntityDesc *	htmlEntityLookup	(const xmlChar * name)
    -
    const htmlEntityDesc *	htmlEntityValueLookup	(unsigned int value)
    -
    void	htmlFreeParserCtxt		(htmlParserCtxtPtr ctxt)
    -
    int	htmlHandleOmittedElem		(int val)
    -
    int	htmlIsAutoClosed		(htmlDocPtr doc, 
    htmlNodePtr elem)
    -
    int	htmlIsScriptAttribute		(const xmlChar * name)
    -
    htmlStatus	htmlNodeStatus		(const htmlNodePtr node, 
    int legacy)
    -
    int	htmlParseCharRef		(htmlParserCtxtPtr ctxt)
    -
    int	htmlParseChunk			(htmlParserCtxtPtr ctxt, 
    const char * chunk,
    int size,
    int terminate)
    -
    htmlDocPtr	htmlParseDoc		(xmlChar * cur, 
    const char * encoding)
    -
    int	htmlParseDocument		(htmlParserCtxtPtr ctxt)
    -
    void	htmlParseElement		(htmlParserCtxtPtr ctxt)
    -
    const htmlEntityDesc *	htmlParseEntityRef	(htmlParserCtxtPtr ctxt, 
    const xmlChar ** str)
    -
    htmlDocPtr	htmlParseFile		(const char * filename, 
    const char * encoding)
    -
    htmlDocPtr	htmlReadDoc		(const xmlChar * cur, 
    const char * URL,
    const char * encoding,
    int options)
    -
    htmlDocPtr	htmlReadFd		(int fd, 
    const char * URL,
    const char * encoding,
    int options)
    -
    htmlDocPtr	htmlReadFile		(const char * filename, 
    const char * encoding,
    int options)
    -
    htmlDocPtr	htmlReadIO		(xmlInputReadCallback ioread, 
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -
    htmlDocPtr	htmlReadMemory		(const char * buffer, 
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -
    htmlDocPtr	htmlSAXParseDoc		(xmlChar * cur, 
    const char * encoding,
    htmlSAXHandlerPtr sax,
    void * userData)
    -
    htmlDocPtr	htmlSAXParseFile	(const char * filename, 
    const char * encoding,
    htmlSAXHandlerPtr sax,
    void * userData)
    -
    const htmlElemDesc *	htmlTagLookup	(const xmlChar * tag)
    -

    Description

    -

    Macro: htmlDefaultSubelement

    #define htmlDefaultSubelement

    Returns the default subelement for this element

    -

    Macro: htmlElementAllowedHereDesc

    #define htmlElementAllowedHereDesc

    Checks whether an HTML element description may be a direct child of the specified element. Returns 1 if allowed; 0 otherwise.

    -

    Macro: htmlRequiredAttrs

    #define htmlRequiredAttrs

    Returns the attributes required for the specified element.

    -

    Structure htmlElemDesc

    Structure htmlElemDesc
    struct _htmlElemDesc { - const char * name : The tag name - char startTag : Whether the start tag can be implied - char endTag : Whether the end tag can be implied - char saveEndTag : Whether the end tag should be saved - char empty : Is this an empty element ? - char depr : Is this a deprecated element ? - char dtd : 1: only in Loose DTD, 2: only Frameset - char isinline : is this a block 0 or inline 1 element - const char * desc : the description NRK Jan.2003 * New fiel - const char ** subelts : allowed sub-elements of this element - const char * defaultsubelt : subelement for suggested auto-repair if - const char ** attrs_opt : Optional Attributes - const char ** attrs_depr : Additional deprecated attributes - const char ** attrs_req : Required attributes -}

    Structure htmlEntityDesc

    Structure htmlEntityDesc
    struct _htmlEntityDesc { - unsigned int value : the UNICODE value for the character - const char * name : The entity name - const char * desc : the description -}

    Enum htmlParserOption

    Enum htmlParserOption {
    -    HTML_PARSE_RECOVER = 1 : Relaxed parsing
    -    HTML_PARSE_NOERROR = 32 : suppress error reports
    -    HTML_PARSE_NOWARNING = 64 : suppress warning reports
    -    HTML_PARSE_PEDANTIC = 128 : pedantic error reporting
    -    HTML_PARSE_NOBLANKS = 256 : remove blank nodes
    -    HTML_PARSE_NONET = 2048 : Forbid network access
    -    HTML_PARSE_COMPACT = 65536 : compact small text nodes
    -}
    -

    Enum htmlStatus

    Enum htmlStatus {
    -    HTML_NA = 0 : something we don't check at all
    -    HTML_INVALID = 1
    -    HTML_DEPRECATED = 2
    -    HTML_VALID = 4
    -    HTML_REQUIRED = 12 : VALID bit set so ( & HTML_VALID ) is TRUE
    -}
    -

    Function: UTF8ToHtml

    int	UTF8ToHtml			(unsigned char * out, 
    int * outlen,
    const unsigned char * in,
    int * inlen)
    -

    Take a block of UTF-8 chars in and try to convert it to an ASCII plus HTML entities block of chars out.

    -
    out:a pointer to an array of bytes to store the result
    outlen:the length of @out
    in:a pointer to an array of UTF-8 chars
    inlen:the length of @in
    Returns:0 if success, -2 if the transcoding fails, or -1 otherwise The value of @inlen after return is the number of octets consumed as the return value is positive, else unpredictable. The value of @outlen after return is the number of octets consumed.

    Function: htmlAttrAllowed

    htmlStatus	htmlAttrAllowed		(const htmlElemDesc * elt, 
    const xmlChar * attr,
    int legacy)
    -

    Checks whether an attribute is valid for an element Has full knowledge of Required and Deprecated attributes

    -
    elt:HTML element
    attr:HTML attribute
    legacy:whether to allow deprecated attributes
    Returns:one of HTML_REQUIRED, HTML_VALID, HTML_DEPRECATED, HTML_INVALID

    Function: htmlAutoCloseTag

    int	htmlAutoCloseTag		(htmlDocPtr doc, 
    const xmlChar * name,
    htmlNodePtr elem)
    -

    The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if the element or one of it's children would autoclose the given tag.

    -
    doc:the HTML document
    name:The tag name
    elem:the HTML element
    Returns:1 if autoclose, 0 otherwise

    Function: htmlCreateMemoryParserCtxt

    htmlParserCtxtPtr	htmlCreateMemoryParserCtxt	(const char * buffer, 
    int size)
    -

    Create a parser context for an HTML in-memory document.

    -
    buffer:a pointer to a char array
    size:the size of the array
    Returns:the new parser context or NULL

    Function: htmlCreatePushParserCtxt

    htmlParserCtxtPtr	htmlCreatePushParserCtxt	(htmlSAXHandlerPtr sax, 
    void * user_data,
    const char * chunk,
    int size,
    const char * filename,
    xmlCharEncoding enc)
    -

    Create a parser context for using the HTML parser in push mode The value of @filename is used for fetching external entities and error/warning reports.

    -
    sax:a SAX handler
    user_data:The user data returned on SAX callbacks
    chunk:a pointer to an array of chars
    size:number of chars in the array
    filename:an optional file name or URI
    enc:an optional encoding
    Returns:the new parser context or NULL

    Function: htmlCtxtReadDoc

    htmlDocPtr	htmlCtxtReadDoc		(htmlParserCtxtPtr ctxt, 
    const xmlChar * cur,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context

    -
    ctxt:an HTML parser context
    cur:a pointer to a zero terminated string
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree

    Function: htmlCtxtReadFd

    htmlDocPtr	htmlCtxtReadFd		(htmlParserCtxtPtr ctxt, 
    int fd,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML from a file descriptor and build a tree. This reuses the existing @ctxt parser context

    -
    ctxt:an HTML parser context
    fd:an open file descriptor
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree

    Function: htmlCtxtReadFile

    htmlDocPtr	htmlCtxtReadFile	(htmlParserCtxtPtr ctxt, 
    const char * filename,
    const char * encoding,
    int options)
    -

    parse an XML file from the filesystem or the network. This reuses the existing @ctxt parser context

    -
    ctxt:an HTML parser context
    filename:a file or URL
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree

    Function: htmlCtxtReadIO

    htmlDocPtr	htmlCtxtReadIO		(htmlParserCtxtPtr ctxt, 
    xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an HTML document from I/O functions and source and build a tree. This reuses the existing @ctxt parser context

    -
    ctxt:an HTML parser context
    ioread:an I/O read function
    ioclose:an I/O close function
    ioctx:an I/O handler
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree

    Function: htmlCtxtReadMemory

    htmlDocPtr	htmlCtxtReadMemory	(htmlParserCtxtPtr ctxt, 
    const char * buffer,
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context

    -
    ctxt:an HTML parser context
    buffer:a pointer to a char array
    size:the size of the array
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree

    Function: htmlCtxtReset

    void	htmlCtxtReset			(htmlParserCtxtPtr ctxt)
    -

    Reset a parser context

    -
    ctxt:an HTML parser context

    Function: htmlCtxtUseOptions

    int	htmlCtxtUseOptions		(htmlParserCtxtPtr ctxt, 
    int options)
    -

    Applies the options to the parser context

    -
    ctxt:an HTML parser context
    options:a combination of htmlParserOption(s)
    Returns:0 in case of success, the set of unknown or unimplemented options in case of error.

    Function: htmlElementAllowedHere

    int	htmlElementAllowedHere		(const htmlElemDesc * parent, 
    const xmlChar * elt)
    -

    Checks whether an HTML element may be a direct child of a parent element. Note - doesn't check for deprecated elements

    -
    parent:HTML parent element
    elt:HTML element
    Returns:1 if allowed; 0 otherwise.

    Function: htmlElementStatusHere

    htmlStatus	htmlElementStatusHere	(const htmlElemDesc * parent, 
    const htmlElemDesc * elt)
    -

    Checks whether an HTML element may be a direct child of a parent element. and if so whether it is valid or deprecated.

    -
    parent:HTML parent element
    elt:HTML element
    Returns:one of HTML_VALID, HTML_DEPRECATED, HTML_INVALID

    Function: htmlEncodeEntities

    int	htmlEncodeEntities		(unsigned char * out, 
    int * outlen,
    const unsigned char * in,
    int * inlen,
    int quoteChar)
    -

    Take a block of UTF-8 chars in and try to convert it to an ASCII plus HTML entities block of chars out.

    -
    out:a pointer to an array of bytes to store the result
    outlen:the length of @out
    in:a pointer to an array of UTF-8 chars
    inlen:the length of @in
    quoteChar:the quote character to escape (' or ") or zero.
    Returns:0 if success, -2 if the transcoding fails, or -1 otherwise The value of @inlen after return is the number of octets consumed as the return value is positive, else unpredictable. The value of @outlen after return is the number of octets consumed.

    Function: htmlEntityLookup

    const htmlEntityDesc *	htmlEntityLookup	(const xmlChar * name)
    -

    Lookup the given entity in EntitiesTable TODO: the linear scan is really ugly, an hash table is really needed.

    -
    name:the entity name
    Returns:the associated htmlEntityDescPtr if found, NULL otherwise.

    Function: htmlEntityValueLookup

    const htmlEntityDesc *	htmlEntityValueLookup	(unsigned int value)
    -

    Lookup the given entity in EntitiesTable TODO: the linear scan is really ugly, an hash table is really needed.

    -
    value:the entity's unicode value
    Returns:the associated htmlEntityDescPtr if found, NULL otherwise.

    Function: htmlFreeParserCtxt

    void	htmlFreeParserCtxt		(htmlParserCtxtPtr ctxt)
    -

    Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed.

    -
    ctxt:an HTML parser context

    Function: htmlHandleOmittedElem

    int	htmlHandleOmittedElem		(int val)
    -

    Set and return the previous value for handling HTML omitted tags.

    -
    val:int 0 or 1
    Returns:the last value for 0 for no handling, 1 for auto insertion.

    Function: htmlIsAutoClosed

    int	htmlIsAutoClosed		(htmlDocPtr doc, 
    htmlNodePtr elem)
    -

    The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if a tag is autoclosed by one of it's child

    -
    doc:the HTML document
    elem:the HTML element
    Returns:1 if autoclosed, 0 otherwise

    Function: htmlIsScriptAttribute

    int	htmlIsScriptAttribute		(const xmlChar * name)
    -

    Check if an attribute is of content type Script

    -
    name:an attribute name
    Returns:1 is the attribute is a script 0 otherwise

    Function: htmlNodeStatus

    htmlStatus	htmlNodeStatus		(const htmlNodePtr node, 
    int legacy)
    -

    Checks whether the tree node is valid. Experimental (the author only uses the HTML enhancements in a SAX parser)

    -
    node:an htmlNodePtr in a tree
    legacy:whether to allow deprecated elements (YES is faster here for Element nodes)
    Returns:for Element nodes, a return from htmlElementAllowedHere (if legacy allowed) or htmlElementStatusHere (otherwise). for Attribute nodes, a return from htmlAttrAllowed for other nodes, HTML_NA (no checks performed)

    Function: htmlParseCharRef

    int	htmlParseCharRef		(htmlParserCtxtPtr ctxt)
    -

    parse Reference declarations [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'

    -
    ctxt:an HTML parser context
    Returns:the value parsed (as an int)

    Function: htmlParseChunk

    int	htmlParseChunk			(htmlParserCtxtPtr ctxt, 
    const char * chunk,
    int size,
    int terminate)
    -

    Parse a Chunk of memory

    -
    ctxt:an HTML parser context
    chunk:an char array
    size:the size in byte of the chunk
    terminate:last chunk indicator
    Returns:zero if no error, the xmlParserErrors otherwise.

    Function: htmlParseDoc

    htmlDocPtr	htmlParseDoc		(xmlChar * cur, 
    const char * encoding)
    -

    parse an HTML in-memory document and build a tree.

    -
    cur:a pointer to an array of xmlChar
    encoding:a free form C string describing the HTML document encoding, or NULL
    Returns:the resulting document tree

    Function: htmlParseDocument

    int	htmlParseDocument		(htmlParserCtxtPtr ctxt)
    -

    parse an HTML document (and build a tree if using the standard SAX interface).

    -
    ctxt:an HTML parser context
    Returns:0, -1 in case of error. the parser context is augmented as a result of the parsing.

    Function: htmlParseElement

    void	htmlParseElement		(htmlParserCtxtPtr ctxt)
    -

    parse an HTML element, this is highly recursive [39] element ::= EmptyElemTag | STag content ETag [41] Attribute ::= Name Eq AttValue

    -
    ctxt:an HTML parser context

    Function: htmlParseEntityRef

    const htmlEntityDesc *	htmlParseEntityRef	(htmlParserCtxtPtr ctxt, 
    const xmlChar ** str)
    -

    parse an HTML ENTITY references [68] EntityRef ::= '&' Name ';'

    -
    ctxt:an HTML parser context
    str:location to store the entity name
    Returns:the associated htmlEntityDescPtr if found, or NULL otherwise, if non-NULL *str will have to be freed by the caller.

    Function: htmlParseFile

    htmlDocPtr	htmlParseFile		(const char * filename, 
    const char * encoding)
    -

    parse an HTML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

    -
    filename:the filename
    encoding:a free form C string describing the HTML document encoding, or NULL
    Returns:the resulting document tree

    Function: htmlReadDoc

    htmlDocPtr	htmlReadDoc		(const xmlChar * cur, 
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML in-memory document and build a tree.

    -
    cur:a pointer to a zero terminated string
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree

    Function: htmlReadFd

    htmlDocPtr	htmlReadFd		(int fd, 
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML from a file descriptor and build a tree.

    -
    fd:an open file descriptor
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree

    Function: htmlReadFile

    htmlDocPtr	htmlReadFile		(const char * filename, 
    const char * encoding,
    int options)
    -

    parse an XML file from the filesystem or the network.

    -
    filename:a file or URL
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree

    Function: htmlReadIO

    htmlDocPtr	htmlReadIO		(xmlInputReadCallback ioread, 
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an HTML document from I/O functions and source and build a tree.

    -
    ioread:an I/O read function
    ioclose:an I/O close function
    ioctx:an I/O handler
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree

    Function: htmlReadMemory

    htmlDocPtr	htmlReadMemory		(const char * buffer, 
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML in-memory document and build a tree.

    -
    buffer:a pointer to a char array
    size:the size of the array
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of htmlParserOption(s)
    Returns:the resulting document tree

    Function: htmlSAXParseDoc

    htmlDocPtr	htmlSAXParseDoc		(xmlChar * cur, 
    const char * encoding,
    htmlSAXHandlerPtr sax,
    void * userData)
    -

    Parse an HTML in-memory document. If sax is not NULL, use the SAX callbacks to handle parse events. If sax is NULL, fallback to the default DOM behavior and return a tree.

    -
    cur:a pointer to an array of xmlChar
    encoding:a free form C string describing the HTML document encoding, or NULL
    sax:the SAX handler block
    userData:if using SAX, this pointer will be provided on callbacks.
    Returns:the resulting document tree unless SAX is NULL or the document is not well formed.

    Function: htmlSAXParseFile

    htmlDocPtr	htmlSAXParseFile	(const char * filename, 
    const char * encoding,
    htmlSAXHandlerPtr sax,
    void * userData)
    -

    parse an HTML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.

    -
    filename:the filename
    encoding:a free form C string describing the HTML document encoding, or NULL
    sax:the SAX handler block
    userData:if using SAX, this pointer will be provided on callbacks.
    Returns:the resulting document tree unless SAX is NULL or the document is not well formed.

    Function: htmlTagLookup

    const htmlElemDesc *	htmlTagLookup	(const xmlChar * tag)
    -

    Lookup the HTML tag in the ElementTable

    -
    tag:The tag name in lowercase
    Returns:the related htmlElemDescPtr or NULL if not found.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-HTMLtree.html b/src/tools/docbook/libxml2/doc/html/libxml-HTMLtree.html deleted file mode 100644 index 1f430aa98a..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-HTMLtree.html +++ /dev/null @@ -1,73 +0,0 @@ - - -Module HTMLtree from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module HTMLtree from libxml2

    API Menu
    API Indexes
    Related links

    this module implements a few function needed to process tree in an HTML specific way.

    Table of Contents

    #define HTML_COMMENT_NODE
    #define HTML_ENTITY_REF_NODE
    #define HTML_PI_NODE
    #define HTML_PRESERVE_NODE
    #define HTML_TEXT_NODE
    void	htmlDocContentDumpFormatOutput	(xmlOutputBufferPtr buf, 
    xmlDocPtr cur,
    const char * encoding,
    int format)
    -
    void	htmlDocContentDumpOutput	(xmlOutputBufferPtr buf, 
    xmlDocPtr cur,
    const char * encoding)
    -
    int	htmlDocDump			(FILE * f, 
    xmlDocPtr cur)
    -
    void	htmlDocDumpMemory		(xmlDocPtr cur, 
    xmlChar ** mem,
    int * size)
    -
    void	htmlDocDumpMemoryFormat		(xmlDocPtr cur, 
    xmlChar ** mem,
    int * size,
    int format)
    -
    const xmlChar *	htmlGetMetaEncoding	(htmlDocPtr doc)
    -
    int	htmlIsBooleanAttr		(const xmlChar * name)
    -
    htmlDocPtr	htmlNewDoc		(const xmlChar * URI, 
    const xmlChar * ExternalID)
    -
    htmlDocPtr	htmlNewDocNoDtD		(const xmlChar * URI, 
    const xmlChar * ExternalID)
    -
    int	htmlNodeDump			(xmlBufferPtr buf, 
    xmlDocPtr doc,
    xmlNodePtr cur)
    -
    void	htmlNodeDumpFile		(FILE * out, 
    xmlDocPtr doc,
    xmlNodePtr cur)
    -
    int	htmlNodeDumpFileFormat		(FILE * out, 
    xmlDocPtr doc,
    xmlNodePtr cur,
    const char * encoding,
    int format)
    -
    void	htmlNodeDumpFormatOutput	(xmlOutputBufferPtr buf, 
    xmlDocPtr doc,
    xmlNodePtr cur,
    const char * encoding,
    int format)
    -
    void	htmlNodeDumpOutput		(xmlOutputBufferPtr buf, 
    xmlDocPtr doc,
    xmlNodePtr cur,
    const char * encoding)
    -
    int	htmlSaveFile			(const char * filename, 
    xmlDocPtr cur)
    -
    int	htmlSaveFileEnc			(const char * filename, 
    xmlDocPtr cur,
    const char * encoding)
    -
    int	htmlSaveFileFormat		(const char * filename, 
    xmlDocPtr cur,
    const char * encoding,
    int format)
    -
    int	htmlSetMetaEncoding		(htmlDocPtr doc, 
    const xmlChar * encoding)
    -

    Description

    -

    Macro: HTML_COMMENT_NODE

    #define HTML_COMMENT_NODE

    Macro. A comment in a HTML document is really implemented the same way as a comment in an XML document.

    -

    Macro: HTML_ENTITY_REF_NODE

    #define HTML_ENTITY_REF_NODE

    Macro. An entity reference in a HTML document is really implemented the same way as an entity reference in an XML document.

    -

    Macro: HTML_PI_NODE

    #define HTML_PI_NODE

    Macro. A processing instruction in a HTML document is really implemented the same way as a processing instruction in an XML document.

    -

    Macro: HTML_PRESERVE_NODE

    #define HTML_PRESERVE_NODE

    Macro. A preserved node in a HTML document is really implemented the same way as a CDATA section in an XML document.

    -

    Macro: HTML_TEXT_NODE

    #define HTML_TEXT_NODE

    Macro. A text node in a HTML document is really implemented the same way as a text node in an XML document.

    -

    Function: htmlDocContentDumpFormatOutput

    void	htmlDocContentDumpFormatOutput	(xmlOutputBufferPtr buf, 
    xmlDocPtr cur,
    const char * encoding,
    int format)
    -

    Dump an HTML document.

    -
    buf:the HTML buffer output
    cur:the document
    encoding:the encoding string
    format:should formatting spaces been added

    Function: htmlDocContentDumpOutput

    void	htmlDocContentDumpOutput	(xmlOutputBufferPtr buf, 
    xmlDocPtr cur,
    const char * encoding)
    -

    Dump an HTML document. Formating return/spaces are added.

    -
    buf:the HTML buffer output
    cur:the document
    encoding:the encoding string

    Function: htmlDocDump

    int	htmlDocDump			(FILE * f, 
    xmlDocPtr cur)
    -

    Dump an HTML document to an open FILE.

    -
    f:the FILE*
    cur:the document
    Returns:the number of byte written or -1 in case of failure.

    Function: htmlDocDumpMemory

    void	htmlDocDumpMemory		(xmlDocPtr cur, 
    xmlChar ** mem,
    int * size)
    -

    Dump an HTML document in memory and return the xmlChar * and it's size. It's up to the caller to free the memory.

    -
    cur:the document
    mem:OUT: the memory pointer
    size:OUT: the memory length

    Function: htmlDocDumpMemoryFormat

    void	htmlDocDumpMemoryFormat		(xmlDocPtr cur, 
    xmlChar ** mem,
    int * size,
    int format)
    -

    Dump an HTML document in memory and return the xmlChar * and it's size. It's up to the caller to free the memory.

    -
    cur:the document
    mem:OUT: the memory pointer
    size:OUT: the memory length
    format:should formatting spaces been added

    Function: htmlGetMetaEncoding

    const xmlChar *	htmlGetMetaEncoding	(htmlDocPtr doc)
    -

    Encoding definition lookup in the Meta tags

    -
    doc:the document
    Returns:the current encoding as flagged in the HTML source

    Function: htmlIsBooleanAttr

    int	htmlIsBooleanAttr		(const xmlChar * name)
    -

    Determine if a given attribute is a boolean attribute.

    -
    name:the name of the attribute to check
    Returns:false if the attribute is not boolean, true otherwise.

    Function: htmlNewDoc

    htmlDocPtr	htmlNewDoc		(const xmlChar * URI, 
    const xmlChar * ExternalID)
    -

    Creates a new HTML document

    -
    URI:URI for the dtd, or NULL
    ExternalID:the external ID of the DTD, or NULL
    Returns:a new document

    Function: htmlNewDocNoDtD

    htmlDocPtr	htmlNewDocNoDtD		(const xmlChar * URI, 
    const xmlChar * ExternalID)
    -

    Creates a new HTML document without a DTD node if @URI and @ExternalID are NULL

    -
    URI:URI for the dtd, or NULL
    ExternalID:the external ID of the DTD, or NULL
    Returns:a new document, do not initialize the DTD if not provided

    Function: htmlNodeDump

    int	htmlNodeDump			(xmlBufferPtr buf, 
    xmlDocPtr doc,
    xmlNodePtr cur)
    -

    Dump an HTML node, recursive behaviour,children are printed too, and formatting returns are added.

    -
    buf:the HTML buffer output
    doc:the document
    cur:the current node
    Returns:the number of byte written or -1 in case of error

    Function: htmlNodeDumpFile

    void	htmlNodeDumpFile		(FILE * out, 
    xmlDocPtr doc,
    xmlNodePtr cur)
    -

    Dump an HTML node, recursive behaviour,children are printed too, and formatting returns are added.

    -
    out:the FILE pointer
    doc:the document
    cur:the current node

    Function: htmlNodeDumpFileFormat

    int	htmlNodeDumpFileFormat		(FILE * out, 
    xmlDocPtr doc,
    xmlNodePtr cur,
    const char * encoding,
    int format)
    -

    Dump an HTML node, recursive behaviour,children are printed too. TODO: if encoding == NULL try to save in the doc encoding

    -
    out:the FILE pointer
    doc:the document
    cur:the current node
    encoding:the document encoding
    format:should formatting spaces been added
    Returns:the number of byte written or -1 in case of failure.

    Function: htmlNodeDumpFormatOutput

    void	htmlNodeDumpFormatOutput	(xmlOutputBufferPtr buf, 
    xmlDocPtr doc,
    xmlNodePtr cur,
    const char * encoding,
    int format)
    -

    Dump an HTML node, recursive behaviour,children are printed too.

    -
    buf:the HTML buffer output
    doc:the document
    cur:the current node
    encoding:the encoding string
    format:should formatting spaces been added

    Function: htmlNodeDumpOutput

    void	htmlNodeDumpOutput		(xmlOutputBufferPtr buf, 
    xmlDocPtr doc,
    xmlNodePtr cur,
    const char * encoding)
    -

    Dump an HTML node, recursive behaviour,children are printed too, and formatting returns/spaces are added.

    -
    buf:the HTML buffer output
    doc:the document
    cur:the current node
    encoding:the encoding string

    Function: htmlSaveFile

    int	htmlSaveFile			(const char * filename, 
    xmlDocPtr cur)
    -

    Dump an HTML document to a file. If @filename is "-" the stdout file is used.

    -
    filename:the filename (or URL)
    cur:the document
    Returns:the number of byte written or -1 in case of failure.

    Function: htmlSaveFileEnc

    int	htmlSaveFileEnc			(const char * filename, 
    xmlDocPtr cur,
    const char * encoding)
    -

    Dump an HTML document to a file using a given encoding and formatting returns/spaces are added.

    -
    filename:the filename
    cur:the document
    encoding:the document encoding
    Returns:the number of byte written or -1 in case of failure.

    Function: htmlSaveFileFormat

    int	htmlSaveFileFormat		(const char * filename, 
    xmlDocPtr cur,
    const char * encoding,
    int format)
    -

    Dump an HTML document to a file using a given encoding.

    -
    filename:the filename
    cur:the document
    encoding:the document encoding
    format:should formatting spaces been added
    Returns:the number of byte written or -1 in case of failure.

    Function: htmlSetMetaEncoding

    int	htmlSetMetaEncoding		(htmlDocPtr doc, 
    const xmlChar * encoding)
    -

    Sets the current encoding in the Meta tags NOTE: this will not change the document content encoding, just the META flag associated.

    -
    doc:the document
    encoding:the encoding string
    Returns:0 in case of success and -1 in case of error

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-SAX.html b/src/tools/docbook/libxml2/doc/html/libxml-SAX.html deleted file mode 100644 index d2c8ac3357..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-SAX.html +++ /dev/null @@ -1,125 +0,0 @@ - - -Module SAX from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module SAX from libxml2

    API Menu
    API Indexes
    Related links

    This module is deprecated

    DEPRECATED set of SAX version 1 interfaces used to build the DOM tree.

    Table of Contents

    void	comment			(void * ctx, 
    const xmlChar * value)
    -
    int	checkNamespace			(void * ctx, 
    xmlChar * namespace)
    -
    int	getColumnNumber			(void * ctx)
    -
    void	entityDecl			(void * ctx, 
    const xmlChar * name,
    int type,
    const xmlChar * publicId,
    const xmlChar * systemId,
    xmlChar * content)
    -
    void	attribute			(void * ctx, 
    const xmlChar * fullname,
    const xmlChar * value)
    -
    xmlNsPtr	getNamespace		(void * ctx)
    -
    void	setDocumentLocator		(void * ctx, 
    xmlSAXLocatorPtr loc)
    -
    void	initxmlDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr, 
    int warning)
    -
    void	ignorableWhitespace		(void * ctx, 
    const xmlChar * ch,
    int len)
    -
    int	hasExternalSubset		(void * ctx)
    -
    void	unparsedEntityDecl		(void * ctx, 
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId,
    const xmlChar * notationName)
    -
    void	globalNamespace			(void * ctx, 
    const xmlChar * href,
    const xmlChar * prefix)
    -
    int	hasInternalSubset		(void * ctx)
    -
    void	reference			(void * ctx, 
    const xmlChar * name)
    -
    void	notationDecl			(void * ctx, 
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId)
    -
    const xmlChar *	getSystemId		(void * ctx)
    -
    void	externalSubset			(void * ctx, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -
    xmlParserInputPtr	resolveEntity	(void * ctx, 
    const xmlChar * publicId,
    const xmlChar * systemId)
    -
    void	startDocument			(void * ctx)
    -
    void	setNamespace			(void * ctx, 
    const xmlChar * name)
    -
    void	cdataBlock			(void * ctx, 
    const xmlChar * value,
    int len)
    -
    const xmlChar *	getPublicId		(void * ctx)
    -
    void	inithtmlDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr)
    -
    void	processingInstruction		(void * ctx, 
    const xmlChar * target,
    const xmlChar * data)
    -
    void	endElement			(void * ctx, 
    const xmlChar * name)
    -
    void	namespaceDecl			(void * ctx, 
    const xmlChar * href,
    const xmlChar * prefix)
    -
    void	initdocbDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr)
    -
    xmlEntityPtr	getEntity		(void * ctx, 
    const xmlChar * name)
    -
    void	characters			(void * ctx, 
    const xmlChar * ch,
    int len)
    -
    void	elementDecl			(void * ctx, 
    const xmlChar * name,
    int type,
    xmlElementContentPtr content)
    -
    void	startElement			(void * ctx, 
    const xmlChar * fullname,
    const xmlChar ** atts)
    -
    xmlEntityPtr	getParameterEntity	(void * ctx, 
    const xmlChar * name)
    -
    void	attributeDecl			(void * ctx, 
    const xmlChar * elem,
    const xmlChar * fullname,
    int type,
    int def,
    const xmlChar * defaultValue,
    xmlEnumerationPtr tree)
    -
    int	isStandalone			(void * ctx)
    -
    void	internalSubset			(void * ctx, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -
    void	endDocument			(void * ctx)
    -
    int	getLineNumber			(void * ctx)
    -

    Description

    -

    Function: comment

    void	comment			(void * ctx, 
    const xmlChar * value)
    -

    A comment has been parsed. DEPRECATED: use xmlSAX2Comment()

    -
    ctx:the user data (XML parser context)
    value:the comment content

    Function: checkNamespace

    int	checkNamespace			(void * ctx, 
    xmlChar * namespace)
    -

    Check that the current element namespace is the same as the one read upon parsing. DEPRECATED

    -
    ctx:the user data (XML parser context)
    namespace:the namespace to check against
    Returns:1 if true 0 otherwise

    Function: getColumnNumber

    int	getColumnNumber			(void * ctx)
    -

    Provide the column number of the current parsing point. DEPRECATED: use xmlSAX2GetColumnNumber()

    -
    ctx:the user data (XML parser context)
    Returns:an int

    Function: entityDecl

    void	entityDecl			(void * ctx, 
    const xmlChar * name,
    int type,
    const xmlChar * publicId,
    const xmlChar * systemId,
    xmlChar * content)
    -

    An entity definition has been parsed DEPRECATED: use xmlSAX2EntityDecl()

    -
    ctx:the user data (XML parser context)
    name:the entity name
    type:the entity type
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    content:the entity value (without processing).

    Function: attribute

    void	attribute			(void * ctx, 
    const xmlChar * fullname,
    const xmlChar * value)
    -

    Handle an attribute that has been read by the parser. The default handling is to convert the attribute into an DOM subtree and past it in a new xmlAttr element added to the element. DEPRECATED: use xmlSAX2Attribute()

    -
    ctx:the user data (XML parser context)
    fullname:The attribute name, including namespace prefix
    value:The attribute value

    Function: getNamespace

    xmlNsPtr	getNamespace		(void * ctx)
    -

    Get the current element namespace. DEPRECATED

    -
    ctx:the user data (XML parser context)
    Returns:the xmlNsPtr or NULL if none

    Function: setDocumentLocator

    void	setDocumentLocator		(void * ctx, 
    xmlSAXLocatorPtr loc)
    -

    Receive the document locator at startup, actually xmlDefaultSAXLocator Everything is available on the context, so this is useless in our case. DEPRECATED

    -
    ctx:the user data (XML parser context)
    loc:A SAX Locator

    Function: initxmlDefaultSAXHandler

    void	initxmlDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr, 
    int warning)
    -

    Initialize the default XML SAX version 1 handler DEPRECATED: use xmlSAX2InitDefaultSAXHandler() for the new SAX2 blocks

    -
    hdlr:the SAX handler
    warning:flag if non-zero sets the handler warning procedure

    Function: ignorableWhitespace

    void	ignorableWhitespace		(void * ctx, 
    const xmlChar * ch,
    int len)
    -

    receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use characters DEPRECATED: use xmlSAX2IgnorableWhitespace()

    -
    ctx:the user data (XML parser context)
    ch:a xmlChar string
    len:the number of xmlChar

    Function: hasExternalSubset

    int	hasExternalSubset		(void * ctx)
    -

    Does this document has an external subset DEPRECATED: use xmlSAX2HasExternalSubset()

    -
    ctx:the user data (XML parser context)
    Returns:1 if true

    Function: unparsedEntityDecl

    void	unparsedEntityDecl		(void * ctx, 
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId,
    const xmlChar * notationName)
    -

    What to do when an unparsed entity declaration is parsed DEPRECATED: use xmlSAX2UnparsedEntityDecl()

    -
    ctx:the user data (XML parser context)
    name:The name of the entity
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    notationName:the name of the notation

    Function: globalNamespace

    void	globalNamespace			(void * ctx, 
    const xmlChar * href,
    const xmlChar * prefix)
    -

    An old global namespace has been parsed. DEPRECATED

    -
    ctx:the user data (XML parser context)
    href:the namespace associated URN
    prefix:the namespace prefix

    Function: hasInternalSubset

    int	hasInternalSubset		(void * ctx)
    -

    Does this document has an internal subset DEPRECATED: use xmlSAX2HasInternalSubset()

    -
    ctx:the user data (XML parser context)
    Returns:1 if true

    Function: reference

    void	reference			(void * ctx, 
    const xmlChar * name)
    -

    called when an entity reference is detected. DEPRECATED: use xmlSAX2Reference()

    -
    ctx:the user data (XML parser context)
    name:The entity name

    Function: notationDecl

    void	notationDecl			(void * ctx, 
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId)
    -

    What to do when a notation declaration has been parsed. DEPRECATED: use xmlSAX2NotationDecl()

    -
    ctx:the user data (XML parser context)
    name:The name of the notation
    publicId:The public ID of the entity
    systemId:The system ID of the entity

    Function: getSystemId

    const xmlChar *	getSystemId		(void * ctx)
    -

    Provides the system ID, basically URL or filename e.g. http://www.sgmlsource.com/dtds/memo.dtd DEPRECATED: use xmlSAX2GetSystemId()

    -
    ctx:the user data (XML parser context)
    Returns:a xmlChar *

    Function: externalSubset

    void	externalSubset			(void * ctx, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    Callback on external subset declaration. DEPRECATED: use xmlSAX2ExternalSubset()

    -
    ctx:the user data (XML parser context)
    name:the root element name
    ExternalID:the external ID
    SystemID:the SYSTEM ID (e.g. filename or URL)

    Function: resolveEntity

    xmlParserInputPtr	resolveEntity	(void * ctx, 
    const xmlChar * publicId,
    const xmlChar * systemId)
    -

    The entity loader, to control the loading of external entities, the application can either: - override this resolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine DEPRECATED: use xmlSAX2ResolveEntity()

    -
    ctx:the user data (XML parser context)
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    Returns:the xmlParserInputPtr if inlined or NULL for DOM behaviour.

    Function: startDocument

    void	startDocument			(void * ctx)
    -

    called when the document start being processed. DEPRECATED: use xmlSAX2StartDocument()

    -
    ctx:the user data (XML parser context)

    Function: setNamespace

    void	setNamespace			(void * ctx, 
    const xmlChar * name)
    -

    Set the current element namespace. DEPRECATED

    -
    ctx:the user data (XML parser context)
    name:the namespace prefix

    Function: cdataBlock

    void	cdataBlock			(void * ctx, 
    const xmlChar * value,
    int len)
    -

    called when a pcdata block has been parsed DEPRECATED: use xmlSAX2CDataBlock()

    -
    ctx:the user data (XML parser context)
    value:The pcdata content
    len:the block length

    Function: getPublicId

    const xmlChar *	getPublicId		(void * ctx)
    -

    Provides the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN" DEPRECATED: use xmlSAX2GetPublicId()

    -
    ctx:the user data (XML parser context)
    Returns:a xmlChar *

    Function: inithtmlDefaultSAXHandler

    void	inithtmlDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr)
    -

    Initialize the default HTML SAX version 1 handler DEPRECATED: use xmlSAX2InitHtmlDefaultSAXHandler() for the new SAX2 blocks

    -
    hdlr:the SAX handler

    Function: processingInstruction

    void	processingInstruction		(void * ctx, 
    const xmlChar * target,
    const xmlChar * data)
    -

    A processing instruction has been parsed. DEPRECATED: use xmlSAX2ProcessingInstruction()

    -
    ctx:the user data (XML parser context)
    target:the target name
    data:the PI data's

    Function: endElement

    void	endElement			(void * ctx, 
    const xmlChar * name)
    -

    called when the end of an element has been detected. DEPRECATED: use xmlSAX2EndElement()

    -
    ctx:the user data (XML parser context)
    name:The element name

    Function: namespaceDecl

    void	namespaceDecl			(void * ctx, 
    const xmlChar * href,
    const xmlChar * prefix)
    -

    A namespace has been parsed. DEPRECATED

    -
    ctx:the user data (XML parser context)
    href:the namespace associated URN
    prefix:the namespace prefix

    Function: initdocbDefaultSAXHandler

    void	initdocbDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr)
    -

    Initialize the default DocBook SAX version 1 handler DEPRECATED: use xmlSAX2InitDocbDefaultSAXHandler() for the new SAX2 blocks

    -
    hdlr:the SAX handler

    Function: getEntity

    xmlEntityPtr	getEntity		(void * ctx, 
    const xmlChar * name)
    -

    Get an entity by name DEPRECATED: use xmlSAX2GetEntity()

    -
    ctx:the user data (XML parser context)
    name:The entity name
    Returns:the xmlEntityPtr if found.

    Function: characters

    void	characters			(void * ctx, 
    const xmlChar * ch,
    int len)
    -

    receiving some chars from the parser. DEPRECATED: use xmlSAX2Characters()

    -
    ctx:the user data (XML parser context)
    ch:a xmlChar string
    len:the number of xmlChar

    Function: elementDecl

    void	elementDecl			(void * ctx, 
    const xmlChar * name,
    int type,
    xmlElementContentPtr content)
    -

    An element definition has been parsed DEPRECATED: use xmlSAX2ElementDecl()

    -
    ctx:the user data (XML parser context)
    name:the element name
    type:the element type
    content:the element value tree

    Function: startElement

    void	startElement			(void * ctx, 
    const xmlChar * fullname,
    const xmlChar ** atts)
    -

    called when an opening tag has been processed. DEPRECATED: use xmlSAX2StartElement()

    -
    ctx:the user data (XML parser context)
    fullname:The element name, including namespace prefix
    atts:An array of name/value attributes pairs, NULL terminated

    Function: getParameterEntity

    xmlEntityPtr	getParameterEntity	(void * ctx, 
    const xmlChar * name)
    -

    Get a parameter entity by name DEPRECATED: use xmlSAX2GetParameterEntity()

    -
    ctx:the user data (XML parser context)
    name:The entity name
    Returns:the xmlEntityPtr if found.

    Function: attributeDecl

    void	attributeDecl			(void * ctx, 
    const xmlChar * elem,
    const xmlChar * fullname,
    int type,
    int def,
    const xmlChar * defaultValue,
    xmlEnumerationPtr tree)
    -

    An attribute definition has been parsed DEPRECATED: use xmlSAX2AttributeDecl()

    -
    ctx:the user data (XML parser context)
    elem:the name of the element
    fullname:the attribute name
    type:the attribute type
    def:the type of default value
    defaultValue:the attribute default value
    tree:the tree of enumerated value set

    Function: isStandalone

    int	isStandalone			(void * ctx)
    -

    Is this document tagged standalone ? DEPRECATED: use xmlSAX2IsStandalone()

    -
    ctx:the user data (XML parser context)
    Returns:1 if true

    Function: internalSubset

    void	internalSubset			(void * ctx, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    Callback on internal subset declaration. DEPRECATED: use xmlSAX2InternalSubset()

    -
    ctx:the user data (XML parser context)
    name:the root element name
    ExternalID:the external ID
    SystemID:the SYSTEM ID (e.g. filename or URL)

    Function: endDocument

    void	endDocument			(void * ctx)
    -

    called when the document end has been detected. DEPRECATED: use xmlSAX2EndDocument()

    -
    ctx:the user data (XML parser context)

    Function: getLineNumber

    int	getLineNumber			(void * ctx)
    -

    Provide the line number of the current parsing point. DEPRECATED: use xmlSAX2GetLineNumber()

    -
    ctx:the user data (XML parser context)
    Returns:an int

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-SAX2.html b/src/tools/docbook/libxml2/doc/html/libxml-SAX2.html deleted file mode 100644 index 028692dd7f..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-SAX2.html +++ /dev/null @@ -1,128 +0,0 @@ - - -Module SAX2 from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module SAX2 from libxml2

    API Menu
    API Indexes
    Related links

    those are the default SAX2 interfaces used by the library when building DOM tree.

    Table of Contents

    void	docbDefaultSAXHandlerInit	(void)
    -
    void	htmlDefaultSAXHandlerInit	(void)
    -
    void	xmlDefaultSAXHandlerInit	(void)
    -
    void	xmlSAX2AttributeDecl		(void * ctx, 
    const xmlChar * elem,
    const xmlChar * fullname,
    int type,
    int def,
    const xmlChar * defaultValue,
    xmlEnumerationPtr tree)
    -
    void	xmlSAX2CDataBlock		(void * ctx, 
    const xmlChar * value,
    int len)
    -
    void	xmlSAX2Characters		(void * ctx, 
    const xmlChar * ch,
    int len)
    -
    void	xmlSAX2Comment			(void * ctx, 
    const xmlChar * value)
    -
    void	xmlSAX2ElementDecl		(void * ctx, 
    const xmlChar * name,
    int type,
    xmlElementContentPtr content)
    -
    void	xmlSAX2EndDocument		(void * ctx)
    -
    void	xmlSAX2EndElement		(void * ctx, 
    const xmlChar * name)
    -
    void	xmlSAX2EndElementNs		(void * ctx, 
    const xmlChar * localname,
    const xmlChar * prefix,
    const xmlChar * URI)
    -
    void	xmlSAX2EntityDecl		(void * ctx, 
    const xmlChar * name,
    int type,
    const xmlChar * publicId,
    const xmlChar * systemId,
    xmlChar * content)
    -
    void	xmlSAX2ExternalSubset		(void * ctx, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -
    int	xmlSAX2GetColumnNumber		(void * ctx)
    -
    xmlEntityPtr	xmlSAX2GetEntity	(void * ctx, 
    const xmlChar * name)
    -
    int	xmlSAX2GetLineNumber		(void * ctx)
    -
    xmlEntityPtr	xmlSAX2GetParameterEntity	(void * ctx, 
    const xmlChar * name)
    -
    const xmlChar *	xmlSAX2GetPublicId	(void * ctx)
    -
    const xmlChar *	xmlSAX2GetSystemId	(void * ctx)
    -
    int	xmlSAX2HasExternalSubset	(void * ctx)
    -
    int	xmlSAX2HasInternalSubset	(void * ctx)
    -
    void	xmlSAX2IgnorableWhitespace	(void * ctx, 
    const xmlChar * ch,
    int len)
    -
    void	xmlSAX2InitDefaultSAXHandler	(xmlSAXHandler * hdlr, 
    int warning)
    -
    void	xmlSAX2InitDocbDefaultSAXHandler	(xmlSAXHandler * hdlr)
    -
    void	xmlSAX2InitHtmlDefaultSAXHandler	(xmlSAXHandler * hdlr)
    -
    void	xmlSAX2InternalSubset		(void * ctx, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -
    int	xmlSAX2IsStandalone		(void * ctx)
    -
    void	xmlSAX2NotationDecl		(void * ctx, 
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId)
    -
    void	xmlSAX2ProcessingInstruction	(void * ctx, 
    const xmlChar * target,
    const xmlChar * data)
    -
    void	xmlSAX2Reference		(void * ctx, 
    const xmlChar * name)
    -
    xmlParserInputPtr	xmlSAX2ResolveEntity	(void * ctx, 
    const xmlChar * publicId,
    const xmlChar * systemId)
    -
    void	xmlSAX2SetDocumentLocator	(void * ctx, 
    xmlSAXLocatorPtr loc)
    -
    void	xmlSAX2StartDocument		(void * ctx)
    -
    void	xmlSAX2StartElement		(void * ctx, 
    const xmlChar * fullname,
    const xmlChar ** atts)
    -
    void	xmlSAX2StartElementNs		(void * ctx, 
    const xmlChar * localname,
    const xmlChar * prefix,
    const xmlChar * URI,
    int nb_namespaces,
    const xmlChar ** namespaces,
    int nb_attributes,
    int nb_defaulted,
    const xmlChar ** attributes)
    -
    void	xmlSAX2UnparsedEntityDecl	(void * ctx, 
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId,
    const xmlChar * notationName)
    -
    int	xmlSAXDefaultVersion		(int version)
    -
    int	xmlSAXVersion			(xmlSAXHandler * hdlr, 
    int version)
    -

    Description

    -

    Function: docbDefaultSAXHandlerInit

    void	docbDefaultSAXHandlerInit	(void)
    -

    Initialize the default SAX handler

    -

    Function: htmlDefaultSAXHandlerInit

    void	htmlDefaultSAXHandlerInit	(void)
    -

    Initialize the default SAX handler

    -

    Function: xmlDefaultSAXHandlerInit

    void	xmlDefaultSAXHandlerInit	(void)
    -

    Initialize the default SAX2 handler

    -

    Function: xmlSAX2AttributeDecl

    void	xmlSAX2AttributeDecl		(void * ctx, 
    const xmlChar * elem,
    const xmlChar * fullname,
    int type,
    int def,
    const xmlChar * defaultValue,
    xmlEnumerationPtr tree)
    -

    An attribute definition has been parsed

    -
    ctx:the user data (XML parser context)
    elem:the name of the element
    fullname:the attribute name
    type:the attribute type
    def:the type of default value
    defaultValue:the attribute default value
    tree:the tree of enumerated value set

    Function: xmlSAX2CDataBlock

    void	xmlSAX2CDataBlock		(void * ctx, 
    const xmlChar * value,
    int len)
    -

    called when a pcdata block has been parsed

    -
    ctx:the user data (XML parser context)
    value:The pcdata content
    len:the block length

    Function: xmlSAX2Characters

    void	xmlSAX2Characters		(void * ctx, 
    const xmlChar * ch,
    int len)
    -

    receiving some chars from the parser.

    -
    ctx:the user data (XML parser context)
    ch:a xmlChar string
    len:the number of xmlChar

    Function: xmlSAX2Comment

    void	xmlSAX2Comment			(void * ctx, 
    const xmlChar * value)
    -

    A xmlSAX2Comment has been parsed.

    -
    ctx:the user data (XML parser context)
    value:the xmlSAX2Comment content

    Function: xmlSAX2ElementDecl

    void	xmlSAX2ElementDecl		(void * ctx, 
    const xmlChar * name,
    int type,
    xmlElementContentPtr content)
    -

    An element definition has been parsed

    -
    ctx:the user data (XML parser context)
    name:the element name
    type:the element type
    content:the element value tree

    Function: xmlSAX2EndDocument

    void	xmlSAX2EndDocument		(void * ctx)
    -

    called when the document end has been detected.

    -
    ctx:the user data (XML parser context)

    Function: xmlSAX2EndElement

    void	xmlSAX2EndElement		(void * ctx, 
    const xmlChar * name)
    -

    called when the end of an element has been detected.

    -
    ctx:the user data (XML parser context)
    name:The element name

    Function: xmlSAX2EndElementNs

    void	xmlSAX2EndElementNs		(void * ctx, 
    const xmlChar * localname,
    const xmlChar * prefix,
    const xmlChar * URI)
    -

    SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element.

    -
    ctx:the user data (XML parser context)
    localname:the local name of the element
    prefix:the element namespace prefix if available
    URI:the element namespace name if available

    Function: xmlSAX2EntityDecl

    void	xmlSAX2EntityDecl		(void * ctx, 
    const xmlChar * name,
    int type,
    const xmlChar * publicId,
    const xmlChar * systemId,
    xmlChar * content)
    -

    An entity definition has been parsed

    -
    ctx:the user data (XML parser context)
    name:the entity name
    type:the entity type
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    content:the entity value (without processing).

    Function: xmlSAX2ExternalSubset

    void	xmlSAX2ExternalSubset		(void * ctx, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    Callback on external subset declaration.

    -
    ctx:the user data (XML parser context)
    name:the root element name
    ExternalID:the external ID
    SystemID:the SYSTEM ID (e.g. filename or URL)

    Function: xmlSAX2GetColumnNumber

    int	xmlSAX2GetColumnNumber		(void * ctx)
    -

    Provide the column number of the current parsing point.

    -
    ctx:the user data (XML parser context)
    Returns:an int

    Function: xmlSAX2GetEntity

    xmlEntityPtr	xmlSAX2GetEntity	(void * ctx, 
    const xmlChar * name)
    -

    Get an entity by name

    -
    ctx:the user data (XML parser context)
    name:The entity name
    Returns:the xmlEntityPtr if found.

    Function: xmlSAX2GetLineNumber

    int	xmlSAX2GetLineNumber		(void * ctx)
    -

    Provide the line number of the current parsing point.

    -
    ctx:the user data (XML parser context)
    Returns:an int

    Function: xmlSAX2GetParameterEntity

    xmlEntityPtr	xmlSAX2GetParameterEntity	(void * ctx, 
    const xmlChar * name)
    -

    Get a parameter entity by name

    -
    ctx:the user data (XML parser context)
    name:The entity name
    Returns:the xmlEntityPtr if found.

    Function: xmlSAX2GetPublicId

    const xmlChar *	xmlSAX2GetPublicId	(void * ctx)
    -

    Provides the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN"

    -
    ctx:the user data (XML parser context)
    Returns:a xmlChar *

    Function: xmlSAX2GetSystemId

    const xmlChar *	xmlSAX2GetSystemId	(void * ctx)
    -

    Provides the system ID, basically URL or filename e.g. http://www.sgmlsource.com/dtds/memo.dtd

    -
    ctx:the user data (XML parser context)
    Returns:a xmlChar *

    Function: xmlSAX2HasExternalSubset

    int	xmlSAX2HasExternalSubset	(void * ctx)
    -

    Does this document has an external subset

    -
    ctx:the user data (XML parser context)
    Returns:1 if true

    Function: xmlSAX2HasInternalSubset

    int	xmlSAX2HasInternalSubset	(void * ctx)
    -

    Does this document has an internal subset

    -
    ctx:the user data (XML parser context)
    Returns:1 if true

    Function: xmlSAX2IgnorableWhitespace

    void	xmlSAX2IgnorableWhitespace	(void * ctx, 
    const xmlChar * ch,
    int len)
    -

    receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use xmlSAX2Characters

    -
    ctx:the user data (XML parser context)
    ch:a xmlChar string
    len:the number of xmlChar

    Function: xmlSAX2InitDefaultSAXHandler

    void	xmlSAX2InitDefaultSAXHandler	(xmlSAXHandler * hdlr, 
    int warning)
    -

    Initialize the default XML SAX2 handler

    -
    hdlr:the SAX handler
    warning:flag if non-zero sets the handler warning procedure

    Function: xmlSAX2InitDocbDefaultSAXHandler

    void	xmlSAX2InitDocbDefaultSAXHandler	(xmlSAXHandler * hdlr)
    -

    Initialize the default DocBook SAX2 handler

    -
    hdlr:the SAX handler

    Function: xmlSAX2InitHtmlDefaultSAXHandler

    void	xmlSAX2InitHtmlDefaultSAXHandler	(xmlSAXHandler * hdlr)
    -

    Initialize the default HTML SAX2 handler

    -
    hdlr:the SAX handler

    Function: xmlSAX2InternalSubset

    void	xmlSAX2InternalSubset		(void * ctx, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    Callback on internal subset declaration.

    -
    ctx:the user data (XML parser context)
    name:the root element name
    ExternalID:the external ID
    SystemID:the SYSTEM ID (e.g. filename or URL)

    Function: xmlSAX2IsStandalone

    int	xmlSAX2IsStandalone		(void * ctx)
    -

    Is this document tagged standalone ?

    -
    ctx:the user data (XML parser context)
    Returns:1 if true

    Function: xmlSAX2NotationDecl

    void	xmlSAX2NotationDecl		(void * ctx, 
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId)
    -

    What to do when a notation declaration has been parsed.

    -
    ctx:the user data (XML parser context)
    name:The name of the notation
    publicId:The public ID of the entity
    systemId:The system ID of the entity

    Function: xmlSAX2ProcessingInstruction

    void	xmlSAX2ProcessingInstruction	(void * ctx, 
    const xmlChar * target,
    const xmlChar * data)
    -

    A processing instruction has been parsed.

    -
    ctx:the user data (XML parser context)
    target:the target name
    data:the PI data's

    Function: xmlSAX2Reference

    void	xmlSAX2Reference		(void * ctx, 
    const xmlChar * name)
    -

    called when an entity xmlSAX2Reference is detected.

    -
    ctx:the user data (XML parser context)
    name:The entity name

    Function: xmlSAX2ResolveEntity

    xmlParserInputPtr	xmlSAX2ResolveEntity	(void * ctx, 
    const xmlChar * publicId,
    const xmlChar * systemId)
    -

    The entity loader, to control the loading of external entities, the application can either: - override this xmlSAX2ResolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine

    -
    ctx:the user data (XML parser context)
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    Returns:the xmlParserInputPtr if inlined or NULL for DOM behaviour.

    Function: xmlSAX2SetDocumentLocator

    void	xmlSAX2SetDocumentLocator	(void * ctx, 
    xmlSAXLocatorPtr loc)
    -

    Receive the document locator at startup, actually xmlDefaultSAXLocator Everything is available on the context, so this is useless in our case.

    -
    ctx:the user data (XML parser context)
    loc:A SAX Locator

    Function: xmlSAX2StartDocument

    void	xmlSAX2StartDocument		(void * ctx)
    -

    called when the document start being processed.

    -
    ctx:the user data (XML parser context)

    Function: xmlSAX2StartElement

    void	xmlSAX2StartElement		(void * ctx, 
    const xmlChar * fullname,
    const xmlChar ** atts)
    -

    called when an opening tag has been processed.

    -
    ctx:the user data (XML parser context)
    fullname:The element name, including namespace prefix
    atts:An array of name/value attributes pairs, NULL terminated

    Function: xmlSAX2StartElementNs

    void	xmlSAX2StartElementNs		(void * ctx, 
    const xmlChar * localname,
    const xmlChar * prefix,
    const xmlChar * URI,
    int nb_namespaces,
    const xmlChar ** namespaces,
    int nb_attributes,
    int nb_defaulted,
    const xmlChar ** attributes)
    -

    SAX2 callback when an element start has been detected by the parser. It provides the namespace informations for the element, as well as the new namespace declarations on the element.

    -
    ctx:the user data (XML parser context)
    localname:the local name of the element
    prefix:the element namespace prefix if available
    URI:the element namespace name if available
    nb_namespaces:number of namespace definitions on that node
    namespaces:pointer to the array of prefix/URI pairs namespace definitions
    nb_attributes:the number of attributes on that node
    nb_defaulted:the number of defaulted attributes.
    attributes:pointer to the array of (localname/prefix/URI/value/end) attribute values.

    Function: xmlSAX2UnparsedEntityDecl

    void	xmlSAX2UnparsedEntityDecl	(void * ctx, 
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId,
    const xmlChar * notationName)
    -

    What to do when an unparsed entity declaration is parsed

    -
    ctx:the user data (XML parser context)
    name:The name of the entity
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    notationName:the name of the notation

    Function: xmlSAXDefaultVersion

    int	xmlSAXDefaultVersion		(int version)
    -

    Set the default version of SAX used globally by the library. By default, during initialization the default is set to 2. Note that it is generally a better coding style to use xmlSAXVersion() to set up the version explicitly for a given parsing context.

    -
    version:the version, 1 or 2
    Returns:the previous value in case of success and -1 in case of error.

    Function: xmlSAXVersion

    int	xmlSAXVersion			(xmlSAXHandler * hdlr, 
    int version)
    -

    Initialize the default XML SAX handler according to the version

    -
    hdlr:the SAX handler
    version:the version, 1 or 2
    Returns:0 in case of success and -1 in case of error.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-c14n.html b/src/tools/docbook/libxml2/doc/html/libxml-c14n.html deleted file mode 100644 index a4a1bc347b..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-c14n.html +++ /dev/null @@ -1,32 +0,0 @@ - - -Module c14n from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module c14n from libxml2

    API Menu
    API Indexes
    Related links

    the c14n modules provides a "Canonical XML" implementation

    Table of Contents

    int	xmlC14NDocDumpMemory		(xmlDocPtr doc, 
    xmlNodeSetPtr nodes,
    int exclusive,
    xmlChar ** inclusive_ns_prefixes,
    int with_comments,
    xmlChar ** doc_txt_ptr)
    -
    int	xmlC14NDocSave			(xmlDocPtr doc, 
    xmlNodeSetPtr nodes,
    int exclusive,
    xmlChar ** inclusive_ns_prefixes,
    int with_comments,
    const char * filename,
    int compression)
    -
    int	xmlC14NDocSaveTo		(xmlDocPtr doc, 
    xmlNodeSetPtr nodes,
    int exclusive,
    xmlChar ** inclusive_ns_prefixes,
    int with_comments,
    xmlOutputBufferPtr buf)
    -
    int	xmlC14NExecute			(xmlDocPtr doc, 
    xmlC14NIsVisibleCallback is_visible_callback,
    void * user_data,
    int exclusive,
    xmlChar ** inclusive_ns_prefixes,
    int with_comments,
    xmlOutputBufferPtr buf)
    -
    Function type: xmlC14NIsVisibleCallback
    -int	xmlC14NIsVisibleCallback	(void * user_data, 
    xmlNodePtr node,
    xmlNodePtr parent) -
    -

    Description

    -

    Function: xmlC14NDocDumpMemory

    int	xmlC14NDocDumpMemory		(xmlDocPtr doc, 
    xmlNodeSetPtr nodes,
    int exclusive,
    xmlChar ** inclusive_ns_prefixes,
    int with_comments,
    xmlChar ** doc_txt_ptr)
    -

    Dumps the canonized image of given XML document into memory. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n)

    -
    doc:the XML document for canonization
    nodes:the nodes set to be included in the canonized image or NULL if all document nodes should be included
    exclusive:the exclusive flag (0 - non-exclusive canonicalization; otherwise - exclusive canonicalization)
    inclusive_ns_prefixes:the list of inclusive namespace prefixes ended with a NULL or NULL if there is no inclusive namespaces (only for exclusive canonicalization, ignored otherwise)
    with_comments:include comments in the result (!=0) or not (==0)
    doc_txt_ptr:the memory pointer for allocated canonical XML text; the caller of this functions is responsible for calling xmlFree() to free allocated memory
    Returns:the number of bytes written on success or a negative value on fail

    Function: xmlC14NDocSave

    int	xmlC14NDocSave			(xmlDocPtr doc, 
    xmlNodeSetPtr nodes,
    int exclusive,
    xmlChar ** inclusive_ns_prefixes,
    int with_comments,
    const char * filename,
    int compression)
    -

    Dumps the canonized image of given XML document into the file. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n)

    -
    doc:the XML document for canonization
    nodes:the nodes set to be included in the canonized image or NULL if all document nodes should be included
    exclusive:the exclusive flag (0 - non-exclusive canonicalization; otherwise - exclusive canonicalization)
    inclusive_ns_prefixes:the list of inclusive namespace prefixes ended with a NULL or NULL if there is no inclusive namespaces (only for exclusive canonicalization, ignored otherwise)
    with_comments:include comments in the result (!=0) or not (==0)
    filename:the filename to store canonical XML image
    compression:the compression level (zlib requred): -1 - libxml default, 0 - uncompressed, >0 - compression level
    Returns:the number of bytes written success or a negative value on fail

    Function: xmlC14NDocSaveTo

    int	xmlC14NDocSaveTo		(xmlDocPtr doc, 
    xmlNodeSetPtr nodes,
    int exclusive,
    xmlChar ** inclusive_ns_prefixes,
    int with_comments,
    xmlOutputBufferPtr buf)
    -

    Dumps the canonized image of given XML document into the provided buffer. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n)

    -
    doc:the XML document for canonization
    nodes:the nodes set to be included in the canonized image or NULL if all document nodes should be included
    exclusive:the exclusive flag (0 - non-exclusive canonicalization; otherwise - exclusive canonicalization)
    inclusive_ns_prefixes:the list of inclusive namespace prefixes ended with a NULL or NULL if there is no inclusive namespaces (only for exclusive canonicalization, ignored otherwise)
    with_comments:include comments in the result (!=0) or not (==0)
    buf:the output buffer to store canonical XML; this buffer MUST have encoder==NULL because C14N requires UTF-8 output
    Returns:non-negative value on success or a negative value on fail

    Function: xmlC14NExecute

    int	xmlC14NExecute			(xmlDocPtr doc, 
    xmlC14NIsVisibleCallback is_visible_callback,
    void * user_data,
    int exclusive,
    xmlChar ** inclusive_ns_prefixes,
    int with_comments,
    xmlOutputBufferPtr buf)
    -

    Dumps the canonized image of given XML document into the provided buffer. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n)

    -
    doc:the XML document for canonization
    is_visible_callback:the function to use to determine is node visible or not
    user_data:the first parameter for @is_visible_callback function (in most cases, it is nodes set)
    exclusive:the exclusive flag (0 - non-exclusive canonicalization; otherwise - exclusive canonicalization)
    inclusive_ns_prefixes:the list of inclusive namespace prefixes ended with a NULL or NULL if there is no inclusive namespaces (only for exclusive canonicalization, ignored otherwise)
    with_comments:include comments in the result (!=0) or not (==0)
    buf:the output buffer to store canonical XML; this buffer MUST have encoder==NULL because C14N requires UTF-8 output
    Returns:non-negative value on success or a negative value on fail

    Function type: xmlC14NIsVisibleCallback

    Function type: xmlC14NIsVisibleCallback
    -int	xmlC14NIsVisibleCallback	(void * user_data, 
    xmlNodePtr node,
    xmlNodePtr parent) -

    user_data:
    node:
    parent:
    Returns:

    -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-catalog.html b/src/tools/docbook/libxml2/doc/html/libxml-catalog.html deleted file mode 100644 index 51da79bc29..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-catalog.html +++ /dev/null @@ -1,142 +0,0 @@ - - -Module catalog from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module catalog from libxml2

    API Menu
    API Indexes
    Related links

    the catalog module implements the support for XML Catalogs and SGML catalogs

    Table of Contents

    #define XML_CATALOGS_NAMESPACE
    #define XML_CATALOG_PI
    Structure xmlCatalog
    struct _xmlCatalog -The content of this structure is not made public by the API. -
    Enum xmlCatalogAllow
    -
    Enum xmlCatalogPrefer
    -
    Typedef xmlCatalog * xmlCatalogPtr
    -
    int	xmlACatalogAdd			(xmlCatalogPtr catal, 
    const xmlChar * type,
    const xmlChar * orig,
    const xmlChar * replace)
    -
    void	xmlACatalogDump			(xmlCatalogPtr catal, 
    FILE * out)
    -
    int	xmlACatalogRemove		(xmlCatalogPtr catal, 
    const xmlChar * value)
    -
    xmlChar *	xmlACatalogResolve	(xmlCatalogPtr catal, 
    const xmlChar * pubID,
    const xmlChar * sysID)
    -
    xmlChar *	xmlACatalogResolvePublic	(xmlCatalogPtr catal, 
    const xmlChar * pubID)
    -
    xmlChar *	xmlACatalogResolveSystem	(xmlCatalogPtr catal, 
    const xmlChar * sysID)
    -
    xmlChar *	xmlACatalogResolveURI	(xmlCatalogPtr catal, 
    const xmlChar * URI)
    -
    int	xmlCatalogAdd			(const xmlChar * type, 
    const xmlChar * orig,
    const xmlChar * replace)
    -
    void *	xmlCatalogAddLocal		(void * catalogs, 
    const xmlChar * URL)
    -
    void	xmlCatalogCleanup		(void)
    -
    int	xmlCatalogConvert		(void)
    -
    void	xmlCatalogDump			(FILE * out)
    -
    void	xmlCatalogFreeLocal		(void * catalogs)
    -
    xmlCatalogAllow	xmlCatalogGetDefaults	(void)
    -
    const xmlChar *	xmlCatalogGetPublic	(const xmlChar * pubID)
    -
    const xmlChar *	xmlCatalogGetSystem	(const xmlChar * sysID)
    -
    int	xmlCatalogIsEmpty		(xmlCatalogPtr catal)
    -
    xmlChar *	xmlCatalogLocalResolve	(void * catalogs, 
    const xmlChar * pubID,
    const xmlChar * sysID)
    -
    xmlChar *	xmlCatalogLocalResolveURI	(void * catalogs, 
    const xmlChar * URI)
    -
    int	xmlCatalogRemove		(const xmlChar * value)
    -
    xmlChar *	xmlCatalogResolve	(const xmlChar * pubID, 
    const xmlChar * sysID)
    -
    xmlChar *	xmlCatalogResolvePublic	(const xmlChar * pubID)
    -
    xmlChar *	xmlCatalogResolveSystem	(const xmlChar * sysID)
    -
    xmlChar *	xmlCatalogResolveURI	(const xmlChar * URI)
    -
    int	xmlCatalogSetDebug		(int level)
    -
    xmlCatalogPrefer	xmlCatalogSetDefaultPrefer	(xmlCatalogPrefer prefer)
    -
    void	xmlCatalogSetDefaults		(xmlCatalogAllow allow)
    -
    int	xmlConvertSGMLCatalog		(xmlCatalogPtr catal)
    -
    void	xmlFreeCatalog			(xmlCatalogPtr catal)
    -
    void	xmlInitializeCatalog		(void)
    -
    xmlCatalogPtr	xmlLoadACatalog		(const char * filename)
    -
    int	xmlLoadCatalog			(const char * filename)
    -
    void	xmlLoadCatalogs			(const char * pathss)
    -
    xmlCatalogPtr	xmlLoadSGMLSuperCatalog	(const char * filename)
    -
    xmlCatalogPtr	xmlNewCatalog		(int sgml)
    -
    xmlDocPtr	xmlParseCatalogFile	(const char * filename)
    -

    Description

    -

    Macro: XML_CATALOGS_NAMESPACE

    #define XML_CATALOGS_NAMESPACE

    The namespace for the XML Catalogs elements.

    -

    Macro: XML_CATALOG_PI

    #define XML_CATALOG_PI

    The specific XML Catalog Processing Instuction name.

    -

    Structure xmlCatalog

    Structure xmlCatalog
    struct _xmlCatalog { -The content of this structure is not made public by the API. -}

    Enum xmlCatalogAllow

    Enum xmlCatalogAllow {
    -    XML_CATA_ALLOW_NONE = 0
    -    XML_CATA_ALLOW_GLOBAL = 1
    -    XML_CATA_ALLOW_DOCUMENT = 2
    -    XML_CATA_ALLOW_ALL = 3
    -}
    -

    Enum xmlCatalogPrefer

    Enum xmlCatalogPrefer {
    -    XML_CATA_PREFER_NONE = 0
    -    XML_CATA_PREFER_PUBLIC = 1
    -    XML_CATA_PREFER_SYSTEM = 2
    -}
    -

    Function: xmlACatalogAdd

    int	xmlACatalogAdd			(xmlCatalogPtr catal, 
    const xmlChar * type,
    const xmlChar * orig,
    const xmlChar * replace)
    -

    Add an entry in the catalog, it may overwrite existing but different entries.

    -
    catal:a Catalog
    type:the type of record to add to the catalog
    orig:the system, public or prefix to match
    replace:the replacement value for the match
    Returns:0 if successful, -1 otherwise

    Function: xmlACatalogDump

    void	xmlACatalogDump			(xmlCatalogPtr catal, 
    FILE * out)
    -

    Dump the given catalog to the given file.

    -
    catal:a Catalog
    out:the file.

    Function: xmlACatalogRemove

    int	xmlACatalogRemove		(xmlCatalogPtr catal, 
    const xmlChar * value)
    -

    Remove an entry from the catalog

    -
    catal:a Catalog
    value:the value to remove
    Returns:the number of entries removed if successful, -1 otherwise

    Function: xmlACatalogResolve

    xmlChar *	xmlACatalogResolve	(xmlCatalogPtr catal, 
    const xmlChar * pubID,
    const xmlChar * sysID)
    -

    Do a complete resolution lookup of an External Identifier

    -
    catal:a Catalog
    pubID:the public ID string
    sysID:the system ID string
    Returns:the URI of the resource or NULL if not found, it must be freed by the caller.

    Function: xmlACatalogResolvePublic

    xmlChar *	xmlACatalogResolvePublic	(xmlCatalogPtr catal, 
    const xmlChar * pubID)
    -

    Try to lookup the catalog local reference associated to a public ID in that catalog

    -
    catal:a Catalog
    pubID:the public ID string
    Returns:the local resource if found or NULL otherwise, the value returned must be freed by the caller.

    Function: xmlACatalogResolveSystem

    xmlChar *	xmlACatalogResolveSystem	(xmlCatalogPtr catal, 
    const xmlChar * sysID)
    -

    Try to lookup the catalog resource for a system ID

    -
    catal:a Catalog
    sysID:the system ID string
    Returns:the resource if found or NULL otherwise, the value returned must be freed by the caller.

    Function: xmlACatalogResolveURI

    xmlChar *	xmlACatalogResolveURI	(xmlCatalogPtr catal, 
    const xmlChar * URI)
    -

    Do a complete resolution lookup of an URI

    -
    catal:a Catalog
    URI:the URI
    Returns:the URI of the resource or NULL if not found, it must be freed by the caller.

    Function: xmlCatalogAdd

    int	xmlCatalogAdd			(const xmlChar * type, 
    const xmlChar * orig,
    const xmlChar * replace)
    -

    Add an entry in the catalog, it may overwrite existing but different entries. If called before any other catalog routine, allows to override the default shared catalog put in place by xmlInitializeCatalog();

    -
    type:the type of record to add to the catalog
    orig:the system, public or prefix to match
    replace:the replacement value for the match
    Returns:0 if successful, -1 otherwise

    Function: xmlCatalogAddLocal

    void *	xmlCatalogAddLocal		(void * catalogs, 
    const xmlChar * URL)
    -

    Add the new entry to the catalog list

    -
    catalogs:a document's list of catalogs
    URL:the URL to a new local catalog
    Returns:the updated list

    Function: xmlCatalogCleanup

    void	xmlCatalogCleanup		(void)
    -

    Free up all the memory associated with catalogs

    -

    Function: xmlCatalogConvert

    int	xmlCatalogConvert		(void)
    -

    Convert all the SGML catalog entries as XML ones

    -
    Returns:the number of entries converted if successful, -1 otherwise

    Function: xmlCatalogDump

    void	xmlCatalogDump			(FILE * out)
    -

    Dump all the global catalog content to the given file.

    -
    out:the file.

    Function: xmlCatalogFreeLocal

    void	xmlCatalogFreeLocal		(void * catalogs)
    -

    Free up the memory associated to the catalog list

    -
    catalogs:a document's list of catalogs

    Function: xmlCatalogGetDefaults

    xmlCatalogAllow	xmlCatalogGetDefaults	(void)
    -

    Used to get the user preference w.r.t. to what catalogs should be accepted

    -
    Returns:the current xmlCatalogAllow value

    Function: xmlCatalogGetPublic

    const xmlChar *	xmlCatalogGetPublic	(const xmlChar * pubID)
    -

    Try to lookup the catalog reference associated to a public ID DEPRECATED, use xmlCatalogResolvePublic()

    -
    pubID:the public ID string
    Returns:the resource if found or NULL otherwise.

    Function: xmlCatalogGetSystem

    const xmlChar *	xmlCatalogGetSystem	(const xmlChar * sysID)
    -

    Try to lookup the catalog reference associated to a system ID DEPRECATED, use xmlCatalogResolveSystem()

    -
    sysID:the system ID string
    Returns:the resource if found or NULL otherwise.

    Function: xmlCatalogIsEmpty

    int	xmlCatalogIsEmpty		(xmlCatalogPtr catal)
    -

    Check is a catalog is empty

    -
    catal:should this create an SGML catalog
    Returns:1 if the catalog is empty, 0 if not, amd -1 in case of error.

    Function: xmlCatalogLocalResolve

    xmlChar *	xmlCatalogLocalResolve	(void * catalogs, 
    const xmlChar * pubID,
    const xmlChar * sysID)
    -

    Do a complete resolution lookup of an External Identifier using a document's private catalog list

    -
    catalogs:a document's list of catalogs
    pubID:the public ID string
    sysID:the system ID string
    Returns:the URI of the resource or NULL if not found, it must be freed by the caller.

    Function: xmlCatalogLocalResolveURI

    xmlChar *	xmlCatalogLocalResolveURI	(void * catalogs, 
    const xmlChar * URI)
    -

    Do a complete resolution lookup of an URI using a document's private catalog list

    -
    catalogs:a document's list of catalogs
    URI:the URI
    Returns:the URI of the resource or NULL if not found, it must be freed by the caller.

    Function: xmlCatalogRemove

    int	xmlCatalogRemove		(const xmlChar * value)
    -

    Remove an entry from the catalog

    -
    value:the value to remove
    Returns:the number of entries removed if successful, -1 otherwise

    Function: xmlCatalogResolve

    xmlChar *	xmlCatalogResolve	(const xmlChar * pubID, 
    const xmlChar * sysID)
    -

    Do a complete resolution lookup of an External Identifier

    -
    pubID:the public ID string
    sysID:the system ID string
    Returns:the URI of the resource or NULL if not found, it must be freed by the caller.

    Function: xmlCatalogResolvePublic

    xmlChar *	xmlCatalogResolvePublic	(const xmlChar * pubID)
    -

    Try to lookup the catalog reference associated to a public ID

    -
    pubID:the public ID string
    Returns:the resource if found or NULL otherwise, the value returned must be freed by the caller.

    Function: xmlCatalogResolveSystem

    xmlChar *	xmlCatalogResolveSystem	(const xmlChar * sysID)
    -

    Try to lookup the catalog resource for a system ID

    -
    sysID:the system ID string
    Returns:the resource if found or NULL otherwise, the value returned must be freed by the caller.

    Function: xmlCatalogResolveURI

    xmlChar *	xmlCatalogResolveURI	(const xmlChar * URI)
    -

    Do a complete resolution lookup of an URI

    -
    URI:the URI
    Returns:the URI of the resource or NULL if not found, it must be freed by the caller.

    Function: xmlCatalogSetDebug

    int	xmlCatalogSetDebug		(int level)
    -

    Used to set the debug level for catalog operation, 0 disable debugging, 1 enable it

    -
    level:the debug level of catalogs required
    Returns:the previous value of the catalog debugging level

    Function: xmlCatalogSetDefaultPrefer

    xmlCatalogPrefer	xmlCatalogSetDefaultPrefer	(xmlCatalogPrefer prefer)
    -

    Allows to set the preference between public and system for deletion in XML Catalog resolution. C.f. section 4.1.1 of the spec Values accepted are XML_CATA_PREFER_PUBLIC or XML_CATA_PREFER_SYSTEM

    -
    prefer:the default preference for delegation
    Returns:the previous value of the default preference for delegation

    Function: xmlCatalogSetDefaults

    void	xmlCatalogSetDefaults		(xmlCatalogAllow allow)
    -

    Used to set the user preference w.r.t. to what catalogs should be accepted

    -
    allow:what catalogs should be accepted

    Function: xmlConvertSGMLCatalog

    int	xmlConvertSGMLCatalog		(xmlCatalogPtr catal)
    -

    Convert all the SGML catalog entries as XML ones

    -
    catal:the catalog
    Returns:the number of entries converted if successful, -1 otherwise

    Function: xmlFreeCatalog

    void	xmlFreeCatalog			(xmlCatalogPtr catal)
    -

    Free the memory allocated to a Catalog

    -
    catal:a Catalog

    Function: xmlInitializeCatalog

    void	xmlInitializeCatalog		(void)
    -

    Do the catalog initialization. this function is not thread safe, catalog initialization should preferably be done once at startup

    -

    Function: xmlLoadACatalog

    xmlCatalogPtr	xmlLoadACatalog		(const char * filename)
    -

    Load the catalog and build the associated data structures. This can be either an XML Catalog or an SGML Catalog It will recurse in SGML CATALOG entries. On the other hand XML Catalogs are not handled recursively.

    -
    filename:a file path
    Returns:the catalog parsed or NULL in case of error

    Function: xmlLoadCatalog

    int	xmlLoadCatalog			(const char * filename)
    -

    Load the catalog and makes its definitions effective for the default external entity loader. It will recurse in SGML CATALOG entries. this function is not thread safe, catalog initialization should preferably be done once at startup

    -
    filename:a file path
    Returns:0 in case of success -1 in case of error

    Function: xmlLoadCatalogs

    void	xmlLoadCatalogs			(const char * pathss)
    -

    Load the catalogs and makes their definitions effective for the default external entity loader. this function is not thread safe, catalog initialization should preferably be done once at startup

    -
    pathss:a list of directories separated by a colon or a space.

    Function: xmlLoadSGMLSuperCatalog

    xmlCatalogPtr	xmlLoadSGMLSuperCatalog	(const char * filename)
    -

    Load an SGML super catalog. It won't expand CATALOG or DELEGATE references. This is only needed for manipulating SGML Super Catalogs like adding and removing CATALOG or DELEGATE entries.

    -
    filename:a file path
    Returns:the catalog parsed or NULL in case of error

    Function: xmlNewCatalog

    xmlCatalogPtr	xmlNewCatalog		(int sgml)
    -

    create a new Catalog.

    -
    sgml:should this create an SGML catalog
    Returns:the xmlCatalogPtr or NULL in case of error

    Function: xmlParseCatalogFile

    xmlDocPtr	xmlParseCatalogFile	(const char * filename)
    -

    parse an XML file and build a tree. It's like xmlParseFile() except it bypass all catalog lookups.

    -
    filename:the filename
    Returns:the resulting document tree or NULL in case of error

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-chvalid.html b/src/tools/docbook/libxml2/doc/html/libxml-chvalid.html deleted file mode 100644 index b0ea1d4890..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-chvalid.html +++ /dev/null @@ -1,72 +0,0 @@ - - -Module chvalid from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module chvalid from libxml2

    API Menu
    API Indexes
    Related links

    this module exports interfaces for the character range validation APIs This file is automatically generated from the cvs source definition files using the genChRanges.py Python script

    Table of Contents

    #define xmlIsBaseCharQ
    #define xmlIsBaseChar_ch
    #define xmlIsBlankQ
    #define xmlIsBlank_ch
    #define xmlIsCharQ
    #define xmlIsChar_ch
    #define xmlIsCombiningQ
    #define xmlIsDigitQ
    #define xmlIsDigit_ch
    #define xmlIsExtenderQ
    #define xmlIsExtender_ch
    #define xmlIsIdeographicQ
    #define xmlIsPubidCharQ
    #define xmlIsPubidChar_ch
    Structure xmlChLRange
    struct _xmlChLRange -
    Typedef xmlChLRange * xmlChLRangePtr
    -
    Structure xmlChRangeGroup
    struct _xmlChRangeGroup -
    Typedef xmlChRangeGroup * xmlChRangeGroupPtr
    -
    Structure xmlChSRange
    struct _xmlChSRange -
    Typedef xmlChSRange * xmlChSRangePtr
    -
    int	xmlCharInRange			(unsigned int val, 
    const xmlChRangeGroup * rptr)
    -
    int	xmlIsBaseChar			(unsigned int ch)
    -
    int	xmlIsBlank			(unsigned int ch)
    -
    int	xmlIsChar			(unsigned int ch)
    -
    int	xmlIsCombining			(unsigned int ch)
    -
    int	xmlIsDigit			(unsigned int ch)
    -
    int	xmlIsExtender			(unsigned int ch)
    -
    int	xmlIsIdeographic		(unsigned int ch)
    -
    int	xmlIsPubidChar			(unsigned int ch)
    -

    Description

    -

    Macro: xmlIsBaseCharQ

    #define xmlIsBaseCharQ

    Automatically generated by genChRanges.py

    -

    Macro: xmlIsBaseChar_ch

    #define xmlIsBaseChar_ch

    Automatically generated by genChRanges.py

    -

    Macro: xmlIsBlankQ

    #define xmlIsBlankQ

    Automatically generated by genChRanges.py

    -

    Macro: xmlIsBlank_ch

    #define xmlIsBlank_ch

    Automatically generated by genChRanges.py

    -

    Macro: xmlIsCharQ

    #define xmlIsCharQ

    Automatically generated by genChRanges.py

    -

    Macro: xmlIsChar_ch

    #define xmlIsChar_ch

    Automatically generated by genChRanges.py

    -

    Macro: xmlIsCombiningQ

    #define xmlIsCombiningQ

    Automatically generated by genChRanges.py

    -

    Macro: xmlIsDigitQ

    #define xmlIsDigitQ

    Automatically generated by genChRanges.py

    -

    Macro: xmlIsDigit_ch

    #define xmlIsDigit_ch

    Automatically generated by genChRanges.py

    -

    Macro: xmlIsExtenderQ

    #define xmlIsExtenderQ

    Automatically generated by genChRanges.py

    -

    Macro: xmlIsExtender_ch

    #define xmlIsExtender_ch

    Automatically generated by genChRanges.py

    -

    Macro: xmlIsIdeographicQ

    #define xmlIsIdeographicQ

    Automatically generated by genChRanges.py

    -

    Macro: xmlIsPubidCharQ

    #define xmlIsPubidCharQ

    Automatically generated by genChRanges.py

    -

    Macro: xmlIsPubidChar_ch

    #define xmlIsPubidChar_ch

    Automatically generated by genChRanges.py

    -

    Structure xmlChLRange

    Structure xmlChLRange
    struct _xmlChLRange { - unsigned int low - unsigned int high -}

    Structure xmlChRangeGroup

    Structure xmlChRangeGroup
    struct _xmlChRangeGroup { - int nbShortRange - int nbLongRange - const xmlChSRange * shortRange : points to an array of ranges - const xmlChLRange * longRange -}

    Structure xmlChSRange

    Structure xmlChSRange
    struct _xmlChSRange { - unsigned short low - unsigned short high -}

    Function: xmlCharInRange

    int	xmlCharInRange			(unsigned int val, 
    const xmlChRangeGroup * rptr)
    -

    Does a binary search of the range table to determine if char is valid

    -
    val:character to be validated
    rptr:pointer to range to be used to validate
    Returns:true if character valid, false otherwise

    Function: xmlIsBaseChar

    int	xmlIsBaseChar			(unsigned int ch)
    -

    This function is DEPRECATED. Use xmlIsBaseChar_ch or xmlIsBaseCharQ instead

    -
    ch:character to validate
    Returns:true if argument valid, false otherwise

    Function: xmlIsBlank

    int	xmlIsBlank			(unsigned int ch)
    -

    This function is DEPRECATED. Use xmlIsBlank_ch or xmlIsBlankQ instead

    -
    ch:character to validate
    Returns:true if argument valid, false otherwise

    Function: xmlIsChar

    int	xmlIsChar			(unsigned int ch)
    -

    This function is DEPRECATED. Use xmlIsChar_ch or xmlIsCharQ instead

    -
    ch:character to validate
    Returns:true if argument valid, false otherwise

    Function: xmlIsCombining

    int	xmlIsCombining			(unsigned int ch)
    -

    This function is DEPRECATED. Use xmlIsCombiningQ instead

    -
    ch:character to validate
    Returns:true if argument valid, false otherwise

    Function: xmlIsDigit

    int	xmlIsDigit			(unsigned int ch)
    -

    This function is DEPRECATED. Use xmlIsDigit_ch or xmlIsDigitQ instead

    -
    ch:character to validate
    Returns:true if argument valid, false otherwise

    Function: xmlIsExtender

    int	xmlIsExtender			(unsigned int ch)
    -

    This function is DEPRECATED. Use xmlIsExtender_ch or xmlIsExtenderQ instead

    -
    ch:character to validate
    Returns:true if argument valid, false otherwise

    Function: xmlIsIdeographic

    int	xmlIsIdeographic		(unsigned int ch)
    -

    This function is DEPRECATED. Use xmlIsIdeographicQ instead

    -
    ch:character to validate
    Returns:true if argument valid, false otherwise

    Function: xmlIsPubidChar

    int	xmlIsPubidChar			(unsigned int ch)
    -

    This function is DEPRECATED. Use xmlIsPubidChar_ch or xmlIsPubidCharQ instead

    -
    ch:character to validate
    Returns:true if argument valid, false otherwise

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-debugXML.html b/src/tools/docbook/libxml2/doc/html/libxml-debugXML.html deleted file mode 100644 index ae944be9cd..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-debugXML.html +++ /dev/null @@ -1,120 +0,0 @@ - - -Module debugXML from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module debugXML from libxml2

    API Menu
    API Indexes
    Related links

    Interfaces to a set of routines used for debugging the tree produced by the XML parser.

    Table of Contents

    Structure xmlShellCtxt
    struct _xmlShellCtxt -
    Typedef xmlShellCtxt * xmlShellCtxtPtr
    -
    const char *	xmlBoolToText		(int boolval)
    -
    int	xmlDebugCheckDocument		(FILE * output, 
    xmlDocPtr doc)
    -
    void	xmlDebugDumpAttr		(FILE * output, 
    xmlAttrPtr attr,
    int depth)
    -
    void	xmlDebugDumpAttrList		(FILE * output, 
    xmlAttrPtr attr,
    int depth)
    -
    void	xmlDebugDumpDTD			(FILE * output, 
    xmlDtdPtr dtd)
    -
    void	xmlDebugDumpDocument		(FILE * output, 
    xmlDocPtr doc)
    -
    void	xmlDebugDumpDocumentHead	(FILE * output, 
    xmlDocPtr doc)
    -
    void	xmlDebugDumpEntities		(FILE * output, 
    xmlDocPtr doc)
    -
    void	xmlDebugDumpNode		(FILE * output, 
    xmlNodePtr node,
    int depth)
    -
    void	xmlDebugDumpNodeList		(FILE * output, 
    xmlNodePtr node,
    int depth)
    -
    void	xmlDebugDumpOneNode		(FILE * output, 
    xmlNodePtr node,
    int depth)
    -
    void	xmlDebugDumpString		(FILE * output, 
    const xmlChar * str)
    -
    int	xmlLsCountNode			(xmlNodePtr node)
    -
    void	xmlLsOneNode			(FILE * output, 
    xmlNodePtr node)
    -
    void	xmlShell			(xmlDocPtr doc, 
    char * filename,
    xmlShellReadlineFunc input,
    FILE * output)
    -
    int	xmlShellBase			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2)
    -
    int	xmlShellCat			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2)
    -
    Function type: xmlShellCmd
    -int	xmlShellCmd			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2) -
    -
    int	xmlShellDir			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2)
    -
    int	xmlShellDu			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr tree,
    xmlNodePtr node2)
    -
    int	xmlShellList			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2)
    -
    int	xmlShellLoad			(xmlShellCtxtPtr ctxt, 
    char * filename,
    xmlNodePtr node,
    xmlNodePtr node2)
    -
    void	xmlShellPrintNode		(xmlNodePtr node)
    -
    void	xmlShellPrintXPathError		(int errorType, 
    const char * arg)
    -
    void	xmlShellPrintXPathResult	(xmlXPathObjectPtr list)
    -
    int	xmlShellPwd			(xmlShellCtxtPtr ctxt, 
    char * buffer,
    xmlNodePtr node,
    xmlNodePtr node2)
    -
    Function type: xmlShellReadlineFunc
    -char *	xmlShellReadlineFunc		(char * prompt)
    -
    -
    int	xmlShellSave			(xmlShellCtxtPtr ctxt, 
    char * filename,
    xmlNodePtr node,
    xmlNodePtr node2)
    -
    int	xmlShellValidate		(xmlShellCtxtPtr ctxt, 
    char * dtd,
    xmlNodePtr node,
    xmlNodePtr node2)
    -
    int	xmlShellWrite			(xmlShellCtxtPtr ctxt, 
    char * filename,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Description

    -

    Structure xmlShellCtxt

    Structure xmlShellCtxt
    struct _xmlShellCtxt { - char * filename - xmlDocPtr doc - xmlNodePtr node - xmlXPathContextPtr pctxt - int loaded - FILE * output - xmlShellReadlineFunc input -}

    Function: xmlBoolToText

    const char *	xmlBoolToText		(int boolval)
    -

    Convenient way to turn bool into text

    -
    boolval:a bool to turn into text
    Returns:a pointer to either "True" or "False"

    Function: xmlDebugCheckDocument

    int	xmlDebugCheckDocument		(FILE * output, 
    xmlDocPtr doc)
    -

    Check the document for potential content problems, and output the errors to @output

    -
    output:the FILE * for the output
    doc:the document
    Returns:the number of errors found

    Function: xmlDebugDumpAttr

    void	xmlDebugDumpAttr		(FILE * output, 
    xmlAttrPtr attr,
    int depth)
    -

    Dumps debug information for the attribute

    -
    output:the FILE * for the output
    attr:the attribute
    depth:the indentation level.

    Function: xmlDebugDumpAttrList

    void	xmlDebugDumpAttrList		(FILE * output, 
    xmlAttrPtr attr,
    int depth)
    -

    Dumps debug information for the attribute list

    -
    output:the FILE * for the output
    attr:the attribute list
    depth:the indentation level.

    Function: xmlDebugDumpDTD

    void	xmlDebugDumpDTD			(FILE * output, 
    xmlDtdPtr dtd)
    -

    Dumps debug information for the DTD

    -
    output:the FILE * for the output
    dtd:the DTD

    Function: xmlDebugDumpDocument

    void	xmlDebugDumpDocument		(FILE * output, 
    xmlDocPtr doc)
    -

    Dumps debug information for the document, it's recursive

    -
    output:the FILE * for the output
    doc:the document

    Function: xmlDebugDumpDocumentHead

    void	xmlDebugDumpDocumentHead	(FILE * output, 
    xmlDocPtr doc)
    -

    Dumps debug information cncerning the document, not recursive

    -
    output:the FILE * for the output
    doc:the document

    Function: xmlDebugDumpEntities

    void	xmlDebugDumpEntities		(FILE * output, 
    xmlDocPtr doc)
    -

    Dumps debug information for all the entities in use by the document

    -
    output:the FILE * for the output
    doc:the document

    Function: xmlDebugDumpNode

    void	xmlDebugDumpNode		(FILE * output, 
    xmlNodePtr node,
    int depth)
    -

    Dumps debug information for the element node, it is recursive

    -
    output:the FILE * for the output
    node:the node
    depth:the indentation level.

    Function: xmlDebugDumpNodeList

    void	xmlDebugDumpNodeList		(FILE * output, 
    xmlNodePtr node,
    int depth)
    -

    Dumps debug information for the list of element node, it is recursive

    -
    output:the FILE * for the output
    node:the node list
    depth:the indentation level.

    Function: xmlDebugDumpOneNode

    void	xmlDebugDumpOneNode		(FILE * output, 
    xmlNodePtr node,
    int depth)
    -

    Dumps debug information for the element node, it is not recursive

    -
    output:the FILE * for the output
    node:the node
    depth:the indentation level.

    Function: xmlDebugDumpString

    void	xmlDebugDumpString		(FILE * output, 
    const xmlChar * str)
    -

    Dumps informations about the string, shorten it if necessary

    -
    output:the FILE * for the output
    str:the string

    Function: xmlLsCountNode

    int	xmlLsCountNode			(xmlNodePtr node)
    -

    Count the children of @node.

    -
    node:the node to count
    Returns:the number of children of @node.

    Function: xmlLsOneNode

    void	xmlLsOneNode			(FILE * output, 
    xmlNodePtr node)
    -

    Dump to @output the type and name of @node.

    -
    output:the FILE * for the output
    node:the node to dump

    Function: xmlShell

    void	xmlShell			(xmlDocPtr doc, 
    char * filename,
    xmlShellReadlineFunc input,
    FILE * output)
    -

    Implements the XML shell This allow to load, validate, view, modify and save a document using a environment similar to a UNIX commandline.

    -
    doc:the initial document
    filename:the output buffer
    input:the line reading function
    output:the output FILE*, defaults to stdout if NULL

    Function: xmlShellBase

    int	xmlShellBase			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "base" dumps the current XML base of the node

    -
    ctxt:the shell context
    arg:unused
    node:a node
    node2:unused
    Returns:0

    Function: xmlShellCat

    int	xmlShellCat			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "cat" dumps the serialization node content (XML or HTML).

    -
    ctxt:the shell context
    arg:unused
    node:a node
    node2:unused
    Returns:0

    Function type: xmlShellCmd

    Function type: xmlShellCmd
    -int	xmlShellCmd			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2) -

    This is a generic signature for the XML shell functions.

    ctxt:a shell context
    arg:a string argument
    node:a first node
    node2:a second node
    Returns:an int, negative returns indicating errors.

    -

    Function: xmlShellDir

    int	xmlShellDir			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "dir" dumps informations about the node (namespace, attributes, content).

    -
    ctxt:the shell context
    arg:unused
    node:a node
    node2:unused
    Returns:0

    Function: xmlShellDu

    int	xmlShellDu			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr tree,
    xmlNodePtr node2)
    -

    Implements the XML shell function "du" show the structure of the subtree under node @tree If @tree is null, the command works on the current node.

    -
    ctxt:the shell context
    arg:unused
    tree:a node defining a subtree
    node2:unused
    Returns:0 or -1 in case of error

    Function: xmlShellList

    int	xmlShellList			(xmlShellCtxtPtr ctxt, 
    char * arg,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "ls" Does an Unix like listing of the given node (like a directory)

    -
    ctxt:the shell context
    arg:unused
    node:a node
    node2:unused
    Returns:0

    Function: xmlShellLoad

    int	xmlShellLoad			(xmlShellCtxtPtr ctxt, 
    char * filename,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "load" loads a new document specified by the filename

    -
    ctxt:the shell context
    filename:the file name
    node:unused
    node2:unused
    Returns:0 or -1 if loading failed

    Function: xmlShellPrintNode

    void	xmlShellPrintNode		(xmlNodePtr node)
    -

    Print node to the output FILE

    -
    node:a non-null node to print to the output FILE

    Function: xmlShellPrintXPathError

    void	xmlShellPrintXPathError		(int errorType, 
    const char * arg)
    -

    Print the xpath error to libxml default error channel

    -
    errorType:valid xpath error id
    arg:the argument that cause xpath to fail

    Function: xmlShellPrintXPathResult

    void	xmlShellPrintXPathResult	(xmlXPathObjectPtr list)
    -

    Prints result to the output FILE

    -
    list:a valid result generated by an xpath evaluation

    Function: xmlShellPwd

    int	xmlShellPwd			(xmlShellCtxtPtr ctxt, 
    char * buffer,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "pwd" Show the full path from the root to the node, if needed building thumblers when similar elements exists at a given ancestor level. The output is compatible with XPath commands.

    -
    ctxt:the shell context
    buffer:the output buffer
    node:a node
    node2:unused
    Returns:0 or -1 in case of error

    Function type: xmlShellReadlineFunc

    Function type: xmlShellReadlineFunc
    -char *	xmlShellReadlineFunc		(char * prompt)
    -

    This is a generic signature for the XML shell input function.

    prompt:a string prompt
    Returns:a string which will be freed by the Shell.

    -

    Function: xmlShellSave

    int	xmlShellSave			(xmlShellCtxtPtr ctxt, 
    char * filename,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "save" Write the current document to the filename, or it's original name

    -
    ctxt:the shell context
    filename:the file name (optional)
    node:unused
    node2:unused
    Returns:0 or -1 in case of error

    Function: xmlShellValidate

    int	xmlShellValidate		(xmlShellCtxtPtr ctxt, 
    char * dtd,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "validate" Validate the document, if a DTD path is provided, then the validation is done against the given DTD.

    -
    ctxt:the shell context
    dtd:the DTD URI (optional)
    node:unused
    node2:unused
    Returns:0 or -1 in case of error

    Function: xmlShellWrite

    int	xmlShellWrite			(xmlShellCtxtPtr ctxt, 
    char * filename,
    xmlNodePtr node,
    xmlNodePtr node2)
    -

    Implements the XML shell function "write" Write the current node to the filename, it saves the serialization of the subtree under the @node specified

    -
    ctxt:the shell context
    filename:the file name
    node:a node in the tree
    node2:unused
    Returns:0 or -1 in case of error

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-dict.html b/src/tools/docbook/libxml2/doc/html/libxml-dict.html deleted file mode 100644 index ae1b99ac89..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-dict.html +++ /dev/null @@ -1,49 +0,0 @@ - - -Module dict from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module dict from libxml2

    API Menu
    API Indexes
    Related links

    dictionary of reusable strings, just used to avoid allocation and freeing operations.

    Table of Contents

    Structure xmlDict
    struct _xmlDict -The content of this structure is not made public by the API. -
    Typedef xmlDict * xmlDictPtr
    -
    void	xmlDictCleanup			(void)
    -
    xmlDictPtr	xmlDictCreate		(void)
    -
    xmlDictPtr	xmlDictCreateSub	(xmlDictPtr sub)
    -
    const xmlChar *	xmlDictExists		(xmlDictPtr dict, 
    const xmlChar * name,
    int len)
    -
    void	xmlDictFree			(xmlDictPtr dict)
    -
    const xmlChar *	xmlDictLookup		(xmlDictPtr dict, 
    const xmlChar * name,
    int len)
    -
    int	xmlDictOwns			(xmlDictPtr dict, 
    const xmlChar * str)
    -
    const xmlChar *	xmlDictQLookup		(xmlDictPtr dict, 
    const xmlChar * prefix,
    const xmlChar * name)
    -
    int	xmlDictReference		(xmlDictPtr dict)
    -
    int	xmlDictSize			(xmlDictPtr dict)
    -

    Description

    -

    Structure xmlDict

    Structure xmlDict
    struct _xmlDict { -The content of this structure is not made public by the API. -}

    Function: xmlDictCleanup

    void	xmlDictCleanup			(void)
    -

    Free the dictionary mutex.

    -

    Function: xmlDictCreate

    xmlDictPtr	xmlDictCreate		(void)
    -

    Create a new dictionary

    -
    Returns:the newly created dictionnary, or NULL if an error occured.

    Function: xmlDictCreateSub

    xmlDictPtr	xmlDictCreateSub	(xmlDictPtr sub)
    -

    Create a new dictionary, inheriting strings from the read-only dictionnary @sub. On lookup, strings are first searched in the new dictionnary, then in @sub, and if not found are created in the new dictionnary.

    -
    sub:an existing dictionnary
    Returns:the newly created dictionnary, or NULL if an error occured.

    Function: xmlDictExists

    const xmlChar *	xmlDictExists		(xmlDictPtr dict, 
    const xmlChar * name,
    int len)
    -

    Check if the @name exists in the dictionnary @dict.

    -
    dict:the dictionnary
    name:the name of the userdata
    len:the length of the name, if -1 it is recomputed
    Returns:the internal copy of the name or NULL if not found.

    Function: xmlDictFree

    void	xmlDictFree			(xmlDictPtr dict)
    -

    Free the hash @dict and its contents. The userdata is deallocated with @f if provided.

    -
    dict:the dictionnary

    Function: xmlDictLookup

    const xmlChar *	xmlDictLookup		(xmlDictPtr dict, 
    const xmlChar * name,
    int len)
    -

    Add the @name to the dictionnary @dict if not present.

    -
    dict:the dictionnary
    name:the name of the userdata
    len:the length of the name, if -1 it is recomputed
    Returns:the internal copy of the name or NULL in case of internal error

    Function: xmlDictOwns

    int	xmlDictOwns			(xmlDictPtr dict, 
    const xmlChar * str)
    -

    check if a string is owned by the disctionary

    -
    dict:the dictionnary
    str:the string
    Returns:1 if true, 0 if false and -1 in case of error -1 in case of error

    Function: xmlDictQLookup

    const xmlChar *	xmlDictQLookup		(xmlDictPtr dict, 
    const xmlChar * prefix,
    const xmlChar * name)
    -

    Add the QName @prefix:@name to the hash @dict if not present.

    -
    dict:the dictionnary
    prefix:the prefix
    name:the name
    Returns:the internal copy of the QName or NULL in case of internal error

    Function: xmlDictReference

    int	xmlDictReference		(xmlDictPtr dict)
    -

    Increment the reference counter of a dictionary

    -
    dict:the dictionnary
    Returns:0 in case of success and -1 in case of error

    Function: xmlDictSize

    int	xmlDictSize			(xmlDictPtr dict)
    -

    Query the number of elements installed in the hash @dict.

    -
    dict:the dictionnary
    Returns:the number of elements in the dictionnary or -1 in case of error

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-encoding.html b/src/tools/docbook/libxml2/doc/html/libxml-encoding.html deleted file mode 100644 index 259f5737d1..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-encoding.html +++ /dev/null @@ -1,118 +0,0 @@ - - -Module encoding from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module encoding from libxml2

    API Menu
    API Indexes
    Related links

    interface for the encoding conversion functions needed for XML basic encoding and iconv() support. Related specs are rfc2044 (UTF-8 and UTF-16) F. Yergeau Alis Technologies [ISO-10646] UTF-8 and UTF-16 in Annexes [ISO-8859-1] ISO Latin-1 characters codes. [UNICODE] The Unicode Consortium, "The Unicode Standard -- Worldwide Character Encoding -- Version 1.0", Addison- Wesley, Volume 1, 1991, Volume 2, 1992. UTF-8 is described in Unicode Technical Report #4. [US-ASCII] Coded Character Set--7-bit American Standard Code for Information Interchange, ANSI X3.4-1986.

    Table of Contents

    Enum xmlCharEncoding
    -
    Structure xmlCharEncodingHandler
    struct _xmlCharEncodingHandler -
    Typedef xmlCharEncodingHandler * xmlCharEncodingHandlerPtr
    -
    int	UTF8Toisolat1			(unsigned char * out, 
    int * outlen,
    const unsigned char * in,
    int * inlen)
    -
    int	isolat1ToUTF8			(unsigned char * out, 
    int * outlen,
    const unsigned char * in,
    int * inlen)
    -
    int	xmlAddEncodingAlias		(const char * name, 
    const char * alias)
    -
    int	xmlCharEncCloseFunc		(xmlCharEncodingHandler * handler)
    -
    int	xmlCharEncFirstLine		(xmlCharEncodingHandler * handler, 
    xmlBufferPtr out,
    xmlBufferPtr in)
    -
    int	xmlCharEncInFunc		(xmlCharEncodingHandler * handler, 
    xmlBufferPtr out,
    xmlBufferPtr in)
    -
    int	xmlCharEncOutFunc		(xmlCharEncodingHandler * handler, 
    xmlBufferPtr out,
    xmlBufferPtr in)
    -
    Function type: xmlCharEncodingInputFunc
    -int	xmlCharEncodingInputFunc	(unsigned char * out, 
    int * outlen,
    const unsigned char * in,
    int * inlen) -
    -
    Function type: xmlCharEncodingOutputFunc
    -int	xmlCharEncodingOutputFunc	(unsigned char * out, 
    int * outlen,
    const unsigned char * in,
    int * inlen) -
    -
    void	xmlCleanupCharEncodingHandlers	(void)
    -
    void	xmlCleanupEncodingAliases	(void)
    -
    int	xmlDelEncodingAlias		(const char * alias)
    -
    xmlCharEncoding	xmlDetectCharEncoding	(const unsigned char * in, 
    int len)
    -
    xmlCharEncodingHandlerPtr	xmlFindCharEncodingHandler	(const char * name)
    -
    xmlCharEncodingHandlerPtr	xmlGetCharEncodingHandler	(xmlCharEncoding enc)
    -
    const char *	xmlGetCharEncodingName	(xmlCharEncoding enc)
    -
    const char *	xmlGetEncodingAlias	(const char * alias)
    -
    void	xmlInitCharEncodingHandlers	(void)
    -
    xmlCharEncodingHandlerPtr	xmlNewCharEncodingHandler	(const char * name, 
    xmlCharEncodingInputFunc input,
    xmlCharEncodingOutputFunc output)
    -
    xmlCharEncoding	xmlParseCharEncoding	(const char * name)
    -
    void	xmlRegisterCharEncodingHandler	(xmlCharEncodingHandlerPtr handler)
    -

    Description

    -

    Enum xmlCharEncoding

    Enum xmlCharEncoding {
    -    XML_CHAR_ENCODING_ERROR = -1 : No char encoding detected
    -    XML_CHAR_ENCODING_NONE = 0 : No char encoding detected
    -    XML_CHAR_ENCODING_UTF8 = 1 : UTF-8
    -    XML_CHAR_ENCODING_UTF16LE = 2 : UTF-16 little endian
    -    XML_CHAR_ENCODING_UTF16BE = 3 : UTF-16 big endian
    -    XML_CHAR_ENCODING_UCS4LE = 4 : UCS-4 little endian
    -    XML_CHAR_ENCODING_UCS4BE = 5 : UCS-4 big endian
    -    XML_CHAR_ENCODING_EBCDIC = 6 : EBCDIC uh!
    -    XML_CHAR_ENCODING_UCS4_2143 = 7 : UCS-4 unusual ordering
    -    XML_CHAR_ENCODING_UCS4_3412 = 8 : UCS-4 unusual ordering
    -    XML_CHAR_ENCODING_UCS2 = 9 : UCS-2
    -    XML_CHAR_ENCODING_8859_1 = 10 : ISO-8859-1 ISO Latin 1
    -    XML_CHAR_ENCODING_8859_2 = 11 : ISO-8859-2 ISO Latin 2
    -    XML_CHAR_ENCODING_8859_3 = 12 : ISO-8859-3
    -    XML_CHAR_ENCODING_8859_4 = 13 : ISO-8859-4
    -    XML_CHAR_ENCODING_8859_5 = 14 : ISO-8859-5
    -    XML_CHAR_ENCODING_8859_6 = 15 : ISO-8859-6
    -    XML_CHAR_ENCODING_8859_7 = 16 : ISO-8859-7
    -    XML_CHAR_ENCODING_8859_8 = 17 : ISO-8859-8
    -    XML_CHAR_ENCODING_8859_9 = 18 : ISO-8859-9
    -    XML_CHAR_ENCODING_2022_JP = 19 : ISO-2022-JP
    -    XML_CHAR_ENCODING_SHIFT_JIS = 20 : Shift_JIS
    -    XML_CHAR_ENCODING_EUC_JP = 21 : EUC-JP
    -    XML_CHAR_ENCODING_ASCII = 22 : pure ASCII
    -}
    -

    Structure xmlCharEncodingHandler

    Structure xmlCharEncodingHandler
    struct _xmlCharEncodingHandler { - char * name - xmlCharEncodingInputFunc input - xmlCharEncodingOutputFunc output - iconv_t iconv_in - iconv_t iconv_out -}

    Function: UTF8Toisolat1

    int	UTF8Toisolat1			(unsigned char * out, 
    int * outlen,
    const unsigned char * in,
    int * inlen)
    -

    Take a block of UTF-8 chars in and try to convert it to an ISO Latin 1 block of chars out.

    -
    out:a pointer to an array of bytes to store the result
    outlen:the length of @out
    in:a pointer to an array of UTF-8 chars
    inlen:the length of @in
    Returns:the number of bytes written if success, -2 if the transcoding fails, or -1 otherwise The value of @inlen after return is the number of octets consumed if the return value is positive, else unpredictable. The value of @outlen after return is the number of octets consumed.

    Function: isolat1ToUTF8

    int	isolat1ToUTF8			(unsigned char * out, 
    int * outlen,
    const unsigned char * in,
    int * inlen)
    -

    Take a block of ISO Latin 1 chars in and try to convert it to an UTF-8 block of chars out.

    -
    out:a pointer to an array of bytes to store the result
    outlen:the length of @out
    in:a pointer to an array of ISO Latin 1 chars
    inlen:the length of @in
    Returns:the number of bytes written if success, or -1 otherwise The value of @inlen after return is the number of octets consumed if the return value is positive, else unpredictable. The value of @outlen after return is the number of octets consumed.

    Function: xmlAddEncodingAlias

    int	xmlAddEncodingAlias		(const char * name, 
    const char * alias)
    -

    Registers an alias @alias for an encoding named @name. Existing alias will be overwritten.

    -
    name:the encoding name as parsed, in UTF-8 format (ASCII actually)
    alias:the alias name as parsed, in UTF-8 format (ASCII actually)
    Returns:0 in case of success, -1 in case of error

    Function: xmlCharEncCloseFunc

    int	xmlCharEncCloseFunc		(xmlCharEncodingHandler * handler)
    -

    Generic front-end for encoding handler close function

    -
    handler:char enconding transformation data structure
    Returns:0 if success, or -1 in case of error

    Function: xmlCharEncFirstLine

    int	xmlCharEncFirstLine		(xmlCharEncodingHandler * handler, 
    xmlBufferPtr out,
    xmlBufferPtr in)
    -

    Front-end for the encoding handler input function, but handle only the very first line, i.e. limit itself to 45 chars.

    -
    handler:char enconding transformation data structure
    out:an xmlBuffer for the output.
    in:an xmlBuffer for the input
    Returns:the number of byte written if success, or -1 general error -2 if the transcoding fails (for *in is not valid utf8 string or the result of transformation can't fit into the encoding we want), or

    Function: xmlCharEncInFunc

    int	xmlCharEncInFunc		(xmlCharEncodingHandler * handler, 
    xmlBufferPtr out,
    xmlBufferPtr in)
    -

    Generic front-end for the encoding handler input function

    -
    handler:char encoding transformation data structure
    out:an xmlBuffer for the output.
    in:an xmlBuffer for the input
    Returns:the number of byte written if success, or -1 general error -2 if the transcoding fails (for *in is not valid utf8 string or the result of transformation can't fit into the encoding we want), or

    Function: xmlCharEncOutFunc

    int	xmlCharEncOutFunc		(xmlCharEncodingHandler * handler, 
    xmlBufferPtr out,
    xmlBufferPtr in)
    -

    Generic front-end for the encoding handler output function a first call with @in == NULL has to be made firs to initiate the output in case of non-stateless encoding needing to initiate their state or the output (like the BOM in UTF16). In case of UTF8 sequence conversion errors for the given encoder, the content will be automatically remapped to a CharRef sequence.

    -
    handler:char enconding transformation data structure
    out:an xmlBuffer for the output.
    in:an xmlBuffer for the input
    Returns:the number of byte written if success, or -1 general error -2 if the transcoding fails (for *in is not valid utf8 string or the result of transformation can't fit into the encoding we want), or

    Function type: xmlCharEncodingInputFunc

    Function type: xmlCharEncodingInputFunc
    -int	xmlCharEncodingInputFunc	(unsigned char * out, 
    int * outlen,
    const unsigned char * in,
    int * inlen) -

    Take a block of chars in the original encoding and try to convert it to an UTF-8 block of chars out.

    out:a pointer to an array of bytes to store the UTF-8 result
    outlen:the length of @out
    in:a pointer to an array of chars in the original encoding
    inlen:the length of @in
    Returns:the number of bytes written, -1 if lack of space, or -2 if the transcoding failed. The value of @inlen after return is the number of octets consumed if the return value is positive, else unpredictiable. The value of @outlen after return is the number of octets consumed.

    -

    Function type: xmlCharEncodingOutputFunc

    Function type: xmlCharEncodingOutputFunc
    -int	xmlCharEncodingOutputFunc	(unsigned char * out, 
    int * outlen,
    const unsigned char * in,
    int * inlen) -

    Take a block of UTF-8 chars in and try to convert it to another encoding. Note: a first call designed to produce heading info is called with in = NULL. If stateful this should also initialize the encoder state.

    out:a pointer to an array of bytes to store the result
    outlen:the length of @out
    in:a pointer to an array of UTF-8 chars
    inlen:the length of @in
    Returns:the number of bytes written, -1 if lack of space, or -2 if the transcoding failed. The value of @inlen after return is the number of octets consumed if the return value is positive, else unpredictiable. The value of @outlen after return is the number of octets produced.

    -

    Function: xmlCleanupCharEncodingHandlers

    void	xmlCleanupCharEncodingHandlers	(void)
    -

    Cleanup the memory allocated for the char encoding support, it unregisters all the encoding handlers and the aliases.

    -

    Function: xmlCleanupEncodingAliases

    void	xmlCleanupEncodingAliases	(void)
    -

    Unregisters all aliases

    -

    Function: xmlDelEncodingAlias

    int	xmlDelEncodingAlias		(const char * alias)
    -

    Unregisters an encoding alias @alias

    -
    alias:the alias name as parsed, in UTF-8 format (ASCII actually)
    Returns:0 in case of success, -1 in case of error

    Function: xmlDetectCharEncoding

    xmlCharEncoding	xmlDetectCharEncoding	(const unsigned char * in, 
    int len)
    -

    Guess the encoding of the entity using the first bytes of the entity content according to the non-normative appendix F of the XML-1.0 recommendation.

    -
    in:a pointer to the first bytes of the XML entity, must be at least 2 bytes long (at least 4 if encoding is UTF4 variant).
    len:pointer to the length of the buffer
    Returns:one of the XML_CHAR_ENCODING_... values.

    Function: xmlFindCharEncodingHandler

    xmlCharEncodingHandlerPtr	xmlFindCharEncodingHandler	(const char * name)
    -

    Search in the registered set the handler able to read/write that encoding.

    -
    name:a string describing the char encoding.
    Returns:the handler or NULL if not found

    Function: xmlGetCharEncodingHandler

    xmlCharEncodingHandlerPtr	xmlGetCharEncodingHandler	(xmlCharEncoding enc)
    -

    Search in the registered set the handler able to read/write that encoding.

    -
    enc:an xmlCharEncoding value.
    Returns:the handler or NULL if not found

    Function: xmlGetCharEncodingName

    const char *	xmlGetCharEncodingName	(xmlCharEncoding enc)
    -

    The "canonical" name for XML encoding. C.f. http://www.w3.org/TR/REC-xml#charencoding Section 4.3.3 Character Encoding in Entities

    -
    enc:the encoding
    Returns:the canonical name for the given encoding

    Function: xmlGetEncodingAlias

    const char *	xmlGetEncodingAlias	(const char * alias)
    -

    Lookup an encoding name for the given alias.

    -
    alias:the alias name as parsed, in UTF-8 format (ASCII actually)
    Returns:NULL if not found, otherwise the original name

    Function: xmlInitCharEncodingHandlers

    void	xmlInitCharEncodingHandlers	(void)
    -

    Initialize the char encoding support, it registers the default encoding supported. NOTE: while public, this function usually doesn't need to be called in normal processing.

    -

    Function: xmlNewCharEncodingHandler

    xmlCharEncodingHandlerPtr	xmlNewCharEncodingHandler	(const char * name, 
    xmlCharEncodingInputFunc input,
    xmlCharEncodingOutputFunc output)
    -

    Create and registers an xmlCharEncodingHandler.

    -
    name:the encoding name, in UTF-8 format (ASCII actually)
    input:the xmlCharEncodingInputFunc to read that encoding
    output:the xmlCharEncodingOutputFunc to write that encoding
    Returns:the xmlCharEncodingHandlerPtr created (or NULL in case of error).

    Function: xmlParseCharEncoding

    xmlCharEncoding	xmlParseCharEncoding	(const char * name)
    -

    Compare the string to the encoding schemes already known. Note that the comparison is case insensitive accordingly to the section [XML] 4.3.3 Character Encoding in Entities.

    -
    name:the encoding name as parsed, in UTF-8 format (ASCII actually)
    Returns:one of the XML_CHAR_ENCODING_... values or XML_CHAR_ENCODING_NONE if not recognized.

    Function: xmlRegisterCharEncodingHandler

    void	xmlRegisterCharEncodingHandler	(xmlCharEncodingHandlerPtr handler)
    -

    Register the char encoding handler, surprising, isn't it ?

    -
    handler:the xmlCharEncodingHandlerPtr handler block

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-entities.html b/src/tools/docbook/libxml2/doc/html/libxml-entities.html deleted file mode 100644 index ac203f3361..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-entities.html +++ /dev/null @@ -1,76 +0,0 @@ - - -Module entities from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module entities from libxml2

    API Menu
    API Indexes
    Related links

    this module provides some of the entity API needed for the parser and applications.

    Table of Contents

    Structure xmlEntitiesTable
    struct _xmlHashTable -The content of this structure is not made public by the API. -
    Typedef xmlEntitiesTable * xmlEntitiesTablePtr
    -
    Enum xmlEntityType
    -
    xmlEntityPtr	xmlAddDocEntity		(xmlDocPtr doc, 
    const xmlChar * name,
    int type,
    const xmlChar * ExternalID,
    const xmlChar * SystemID,
    const xmlChar * content)
    -
    xmlEntityPtr	xmlAddDtdEntity		(xmlDocPtr doc, 
    const xmlChar * name,
    int type,
    const xmlChar * ExternalID,
    const xmlChar * SystemID,
    const xmlChar * content)
    -
    void	xmlCleanupPredefinedEntities	(void)
    -
    xmlEntitiesTablePtr	xmlCopyEntitiesTable	(xmlEntitiesTablePtr table)
    -
    xmlEntitiesTablePtr	xmlCreateEntitiesTable	(void)
    -
    void	xmlDumpEntitiesTable		(xmlBufferPtr buf, 
    xmlEntitiesTablePtr table)
    -
    void	xmlDumpEntityDecl		(xmlBufferPtr buf, 
    xmlEntityPtr ent)
    -
    const xmlChar *	xmlEncodeEntities	(xmlDocPtr doc, 
    const xmlChar * input)
    -
    xmlChar *	xmlEncodeEntitiesReentrant	(xmlDocPtr doc, 
    const xmlChar * input)
    -
    xmlChar *	xmlEncodeSpecialChars	(xmlDocPtr doc, 
    const xmlChar * input)
    -
    void	xmlFreeEntitiesTable		(xmlEntitiesTablePtr table)
    -
    xmlEntityPtr	xmlGetDocEntity		(xmlDocPtr doc, 
    const xmlChar * name)
    -
    xmlEntityPtr	xmlGetDtdEntity		(xmlDocPtr doc, 
    const xmlChar * name)
    -
    xmlEntityPtr	xmlGetParameterEntity	(xmlDocPtr doc, 
    const xmlChar * name)
    -
    xmlEntityPtr	xmlGetPredefinedEntity	(const xmlChar * name)
    -
    void	xmlInitializePredefinedEntities	(void)
    -

    Description

    -

    Structure xmlEntitiesTable

    Structure xmlEntitiesTable
    struct _xmlHashTable { -The content of this structure is not made public by the API. -}

    Enum xmlEntityType

    Enum xmlEntityType {
    -    XML_INTERNAL_GENERAL_ENTITY = 1
    -    XML_EXTERNAL_GENERAL_PARSED_ENTITY = 2
    -    XML_EXTERNAL_GENERAL_UNPARSED_ENTITY = 3
    -    XML_INTERNAL_PARAMETER_ENTITY = 4
    -    XML_EXTERNAL_PARAMETER_ENTITY = 5
    -    XML_INTERNAL_PREDEFINED_ENTITY = 6
    -}
    -

    Function: xmlAddDocEntity

    xmlEntityPtr	xmlAddDocEntity		(xmlDocPtr doc, 
    const xmlChar * name,
    int type,
    const xmlChar * ExternalID,
    const xmlChar * SystemID,
    const xmlChar * content)
    -

    Register a new entity for this document.

    -
    doc:the document
    name:the entity name
    type:the entity type XML_xxx_yyy_ENTITY
    ExternalID:the entity external ID if available
    SystemID:the entity system ID if available
    content:the entity content
    Returns:a pointer to the entity or NULL in case of error

    Function: xmlAddDtdEntity

    xmlEntityPtr	xmlAddDtdEntity		(xmlDocPtr doc, 
    const xmlChar * name,
    int type,
    const xmlChar * ExternalID,
    const xmlChar * SystemID,
    const xmlChar * content)
    -

    Register a new entity for this document DTD external subset.

    -
    doc:the document
    name:the entity name
    type:the entity type XML_xxx_yyy_ENTITY
    ExternalID:the entity external ID if available
    SystemID:the entity system ID if available
    content:the entity content
    Returns:a pointer to the entity or NULL in case of error

    Function: xmlCleanupPredefinedEntities

    void	xmlCleanupPredefinedEntities	(void)
    -

    Cleanup up the predefined entities table. Deprecated call

    -

    Function: xmlCopyEntitiesTable

    xmlEntitiesTablePtr	xmlCopyEntitiesTable	(xmlEntitiesTablePtr table)
    -

    Build a copy of an entity table.

    -
    table:An entity table
    Returns:the new xmlEntitiesTablePtr or NULL in case of error.

    Function: xmlCreateEntitiesTable

    xmlEntitiesTablePtr	xmlCreateEntitiesTable	(void)
    -

    create and initialize an empty entities hash table. This really doesn't make sense and should be deprecated

    -
    Returns:the xmlEntitiesTablePtr just created or NULL in case of error.

    Function: xmlDumpEntitiesTable

    void	xmlDumpEntitiesTable		(xmlBufferPtr buf, 
    xmlEntitiesTablePtr table)
    -

    This will dump the content of the entity table as an XML DTD definition

    -
    buf:An XML buffer.
    table:An entity table

    Function: xmlDumpEntityDecl

    void	xmlDumpEntityDecl		(xmlBufferPtr buf, 
    xmlEntityPtr ent)
    -

    This will dump the content of the entity table as an XML DTD definition

    -
    buf:An XML buffer.
    ent:An entity table

    Function: xmlEncodeEntities

    const xmlChar *	xmlEncodeEntities	(xmlDocPtr doc, 
    const xmlChar * input)
    -

    TODO: remove xmlEncodeEntities, once we are not afraid of breaking binary compatibility People must migrate their code to xmlEncodeEntitiesReentrant ! This routine will issue a warning when encountered.

    -
    doc:the document containing the string
    input:A string to convert to XML.
    Returns:NULL

    Function: xmlEncodeEntitiesReentrant

    xmlChar *	xmlEncodeEntitiesReentrant	(xmlDocPtr doc, 
    const xmlChar * input)
    -

    Do a global encoding of a string, replacing the predefined entities and non ASCII values with their entities and CharRef counterparts. Contrary to xmlEncodeEntities, this routine is reentrant, and result must be deallocated.

    -
    doc:the document containing the string
    input:A string to convert to XML.
    Returns:A newly allocated string with the substitution done.

    Function: xmlEncodeSpecialChars

    xmlChar *	xmlEncodeSpecialChars	(xmlDocPtr doc, 
    const xmlChar * input)
    -

    Do a global encoding of a string, replacing the predefined entities this routine is reentrant, and result must be deallocated.

    -
    doc:the document containing the string
    input:A string to convert to XML.
    Returns:A newly allocated string with the substitution done.

    Function: xmlFreeEntitiesTable

    void	xmlFreeEntitiesTable		(xmlEntitiesTablePtr table)
    -

    Deallocate the memory used by an entities hash table.

    -
    table:An entity table

    Function: xmlGetDocEntity

    xmlEntityPtr	xmlGetDocEntity		(xmlDocPtr doc, 
    const xmlChar * name)
    -

    Do an entity lookup in the document entity hash table and

    -
    doc:the document referencing the entity
    name:the entity name
    Returns:the corresponding entity, otherwise a lookup is done in the predefined entities too. Returns A pointer to the entity structure or NULL if not found.

    Function: xmlGetDtdEntity

    xmlEntityPtr	xmlGetDtdEntity		(xmlDocPtr doc, 
    const xmlChar * name)
    -

    Do an entity lookup in the DTD entity hash table and

    -
    doc:the document referencing the entity
    name:the entity name
    Returns:the corresponding entity, if found. Note: the first argument is the document node, not the DTD node. Returns A pointer to the entity structure or NULL if not found.

    Function: xmlGetParameterEntity

    xmlEntityPtr	xmlGetParameterEntity	(xmlDocPtr doc, 
    const xmlChar * name)
    -

    Do an entity lookup in the internal and external subsets and

    -
    doc:the document referencing the entity
    name:the entity name
    Returns:the corresponding parameter entity, if found. Returns A pointer to the entity structure or NULL if not found.

    Function: xmlGetPredefinedEntity

    xmlEntityPtr	xmlGetPredefinedEntity	(const xmlChar * name)
    -

    Check whether this name is an predefined entity.

    -
    name:the entity name
    Returns:NULL if not, otherwise the entity

    Function: xmlInitializePredefinedEntities

    void	xmlInitializePredefinedEntities	(void)
    -

    Set up the predefined entities. Deprecated call

    -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-globals.html b/src/tools/docbook/libxml2/doc/html/libxml-globals.html deleted file mode 100644 index 1e7c1e9bcc..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-globals.html +++ /dev/null @@ -1,151 +0,0 @@ - - -Module globals from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module globals from libxml2

    API Menu
    API Indexes
    Related links

    all the global variables and thread handling for those variables is handled by this module. The bottom of this file is automatically generated by build_glob.py based on the description file global.data

    Table of Contents

    Structure xmlGlobalState
    struct _xmlGlobalState -
    Typedef xmlGlobalState * xmlGlobalStatePtr
    -
    void	xmlCleanupGlobals		(void)
    -
    xmlDeregisterNodeFunc	xmlDeregisterNodeDefault	(xmlDeregisterNodeFunc func)
    -
    Function type: xmlDeregisterNodeFunc
    -void	xmlDeregisterNodeFunc		(xmlNodePtr node)
    -
    -
    void	xmlInitGlobals			(void)
    -
    void	xmlInitializeGlobalState	(xmlGlobalStatePtr gs)
    -
    xmlOutputBufferCreateFilenameFunc	xmlOutputBufferCreateFilenameDefault	(xmlOutputBufferCreateFilenameFunc func)
    -
    Function type: xmlOutputBufferCreateFilenameFunc
    -xmlOutputBufferPtr	xmlOutputBufferCreateFilenameFunc	(const char * URI, 
    xmlCharEncodingHandlerPtr encoder,
    int compression) -
    -
    xmlParserInputBufferCreateFilenameFunc	xmlParserInputBufferCreateFilenameDefault	(xmlParserInputBufferCreateFilenameFunc func)
    -
    Function type: xmlParserInputBufferCreateFilenameFunc
    -xmlParserInputBufferPtr	xmlParserInputBufferCreateFilenameFunc	(const char * URI, 
    xmlCharEncoding enc) -
    -
    xmlRegisterNodeFunc	xmlRegisterNodeDefault	(xmlRegisterNodeFunc func)
    -
    Function type: xmlRegisterNodeFunc
    -void	xmlRegisterNodeFunc		(xmlNodePtr node)
    -
    -
    xmlBufferAllocationScheme	xmlThrDefBufferAllocScheme	(xmlBufferAllocationScheme v)
    -
    int	xmlThrDefDefaultBufferSize	(int v)
    -
    xmlDeregisterNodeFunc	xmlThrDefDeregisterNodeDefault	(xmlDeregisterNodeFunc func)
    -
    int	xmlThrDefDoValidityCheckingDefaultValue	(int v)
    -
    int	xmlThrDefGetWarningsDefaultValue	(int v)
    -
    int	xmlThrDefIndentTreeOutput	(int v)
    -
    int	xmlThrDefKeepBlanksDefaultValue	(int v)
    -
    int	xmlThrDefLineNumbersDefaultValue	(int v)
    -
    int	xmlThrDefLoadExtDtdDefaultValue	(int v)
    -
    xmlOutputBufferCreateFilenameFunc	xmlThrDefOutputBufferCreateFilenameDefault	(xmlOutputBufferCreateFilenameFunc func)
    -
    int	xmlThrDefParserDebugEntities	(int v)
    -
    xmlParserInputBufferCreateFilenameFunc	xmlThrDefParserInputBufferCreateFilenameDefault	(xmlParserInputBufferCreateFilenameFunc func)
    -
    int	xmlThrDefPedanticParserDefaultValue	(int v)
    -
    xmlRegisterNodeFunc	xmlThrDefRegisterNodeDefault	(xmlRegisterNodeFunc func)
    -
    int	xmlThrDefSaveNoEmptyTags	(int v)
    -
    void	xmlThrDefSetGenericErrorFunc	(void * ctx, 
    xmlGenericErrorFunc handler)
    -
    void	xmlThrDefSetStructuredErrorFunc	(void * ctx, 
    xmlStructuredErrorFunc handler)
    -
    int	xmlThrDefSubstituteEntitiesDefaultValue	(int v)
    -
    const char *	xmlThrDefTreeIndentString	(const char * v)
    -

    Description

    -

    Structure xmlGlobalState

    Structure xmlGlobalState
    struct _xmlGlobalState { - const char * xmlParserVersion - xmlSAXLocator xmlDefaultSAXLocator - xmlSAXHandlerV1 xmlDefaultSAXHandler - xmlSAXHandlerV1 docbDefaultSAXHandler - xmlSAXHandlerV1 htmlDefaultSAXHandler - xmlFreeFunc xmlFree - xmlMallocFunc xmlMalloc - xmlStrdupFunc xmlMemStrdup - xmlReallocFunc xmlRealloc - xmlGenericErrorFunc xmlGenericError - xmlStructuredErrorFunc xmlStructuredError - void * xmlGenericErrorContext - int oldXMLWDcompatibility - xmlBufferAllocationScheme xmlBufferAllocScheme - int xmlDefaultBufferSize - int xmlSubstituteEntitiesDefaultValue - int xmlDoValidityCheckingDefaultValue - int xmlGetWarningsDefaultValue - int xmlKeepBlanksDefaultValue - int xmlLineNumbersDefaultValue - int xmlLoadExtDtdDefaultValue - int xmlParserDebugEntities - int xmlPedanticParserDefaultValue - int xmlSaveNoEmptyTags - int xmlIndentTreeOutput - const char * xmlTreeIndentString - xmlRegisterNodeFunc xmlRegisterNodeDefaultValue - xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue - xmlMallocFunc xmlMallocAtomic - xmlError xmlLastError - xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue - xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue -}

    Function: xmlCleanupGlobals

    void	xmlCleanupGlobals		(void)
    -

    Additional cleanup for multi-threading

    -

    Function: xmlDeregisterNodeDefault

    xmlDeregisterNodeFunc	xmlDeregisterNodeDefault	(xmlDeregisterNodeFunc func)
    -

    Registers a callback for node destruction

    -
    func:function pointer to the new DeregisterNodeFunc
    Returns:the previous value of the deregistration function

    Function type: xmlDeregisterNodeFunc

    Function type: xmlDeregisterNodeFunc
    -void	xmlDeregisterNodeFunc		(xmlNodePtr node)
    -

    node:

    -

    Function: xmlInitGlobals

    void	xmlInitGlobals			(void)
    -

    Additional initialisation for multi-threading

    -

    Function: xmlInitializeGlobalState

    void	xmlInitializeGlobalState	(xmlGlobalStatePtr gs)
    -

    xmlInitializeGlobalState() initialize a global state with all the default values of the library.

    -
    gs:a pointer to a newly allocated global state

    Function: xmlOutputBufferCreateFilenameDefault

    xmlOutputBufferCreateFilenameFunc	xmlOutputBufferCreateFilenameDefault	(xmlOutputBufferCreateFilenameFunc func)
    -

    Registers a callback for URI output file handling

    -
    func:function pointer to the new OutputBufferCreateFilenameFunc
    Returns:the old value of the registration function

    Function type: xmlOutputBufferCreateFilenameFunc

    Function type: xmlOutputBufferCreateFilenameFunc
    -xmlOutputBufferPtr	xmlOutputBufferCreateFilenameFunc	(const char * URI, 
    xmlCharEncodingHandlerPtr encoder,
    int compression) -

    URI:
    encoder:
    compression:
    Returns:

    -

    Function: xmlParserInputBufferCreateFilenameDefault

    xmlParserInputBufferCreateFilenameFunc	xmlParserInputBufferCreateFilenameDefault	(xmlParserInputBufferCreateFilenameFunc func)
    -

    Registers a callback for URI input file handling

    -
    func:function pointer to the new ParserInputBufferCreateFilenameFunc
    Returns:the old value of the registration function

    Function type: xmlParserInputBufferCreateFilenameFunc

    Function type: xmlParserInputBufferCreateFilenameFunc
    -xmlParserInputBufferPtr	xmlParserInputBufferCreateFilenameFunc	(const char * URI, 
    xmlCharEncoding enc) -

    URI:
    enc:
    Returns:

    -

    Function: xmlRegisterNodeDefault

    xmlRegisterNodeFunc	xmlRegisterNodeDefault	(xmlRegisterNodeFunc func)
    -

    Registers a callback for node creation

    -
    func:function pointer to the new RegisterNodeFunc
    Returns:the old value of the registration function

    Function type: xmlRegisterNodeFunc

    Function type: xmlRegisterNodeFunc
    -void	xmlRegisterNodeFunc		(xmlNodePtr node)
    -

    node:

    -

    Function: xmlThrDefBufferAllocScheme

    xmlBufferAllocationScheme	xmlThrDefBufferAllocScheme	(xmlBufferAllocationScheme v)
    -

    -
    v:
    Returns:

    Function: xmlThrDefDefaultBufferSize

    int	xmlThrDefDefaultBufferSize	(int v)
    -

    -
    v:
    Returns:

    Function: xmlThrDefDeregisterNodeDefault

    xmlDeregisterNodeFunc	xmlThrDefDeregisterNodeDefault	(xmlDeregisterNodeFunc func)
    -

    -
    func:
    Returns:

    Function: xmlThrDefDoValidityCheckingDefaultValue

    int	xmlThrDefDoValidityCheckingDefaultValue	(int v)
    -

    -
    v:
    Returns:

    Function: xmlThrDefGetWarningsDefaultValue

    int	xmlThrDefGetWarningsDefaultValue	(int v)
    -

    -
    v:
    Returns:

    Function: xmlThrDefIndentTreeOutput

    int	xmlThrDefIndentTreeOutput	(int v)
    -

    -
    v:
    Returns:

    Function: xmlThrDefKeepBlanksDefaultValue

    int	xmlThrDefKeepBlanksDefaultValue	(int v)
    -

    -
    v:
    Returns:

    Function: xmlThrDefLineNumbersDefaultValue

    int	xmlThrDefLineNumbersDefaultValue	(int v)
    -

    -
    v:
    Returns:

    Function: xmlThrDefLoadExtDtdDefaultValue

    int	xmlThrDefLoadExtDtdDefaultValue	(int v)
    -

    -
    v:
    Returns:

    Function: xmlThrDefOutputBufferCreateFilenameDefault

    xmlOutputBufferCreateFilenameFunc	xmlThrDefOutputBufferCreateFilenameDefault	(xmlOutputBufferCreateFilenameFunc func)
    -

    -
    func:
    Returns:

    Function: xmlThrDefParserDebugEntities

    int	xmlThrDefParserDebugEntities	(int v)
    -

    -
    v:
    Returns:

    Function: xmlThrDefParserInputBufferCreateFilenameDefault

    xmlParserInputBufferCreateFilenameFunc	xmlThrDefParserInputBufferCreateFilenameDefault	(xmlParserInputBufferCreateFilenameFunc func)
    -

    -
    func:
    Returns:

    Function: xmlThrDefPedanticParserDefaultValue

    int	xmlThrDefPedanticParserDefaultValue	(int v)
    -

    -
    v:
    Returns:

    Function: xmlThrDefRegisterNodeDefault

    xmlRegisterNodeFunc	xmlThrDefRegisterNodeDefault	(xmlRegisterNodeFunc func)
    -

    -
    func:
    Returns:

    Function: xmlThrDefSaveNoEmptyTags

    int	xmlThrDefSaveNoEmptyTags	(int v)
    -

    -
    v:
    Returns:

    Function: xmlThrDefSetGenericErrorFunc

    void	xmlThrDefSetGenericErrorFunc	(void * ctx, 
    xmlGenericErrorFunc handler)
    -

    -
    ctx:
    handler:

    Function: xmlThrDefSetStructuredErrorFunc

    void	xmlThrDefSetStructuredErrorFunc	(void * ctx, 
    xmlStructuredErrorFunc handler)
    -

    -
    ctx:
    handler:

    Function: xmlThrDefSubstituteEntitiesDefaultValue

    int	xmlThrDefSubstituteEntitiesDefaultValue	(int v)
    -

    -
    v:
    Returns:

    Function: xmlThrDefTreeIndentString

    const char *	xmlThrDefTreeIndentString	(const char * v)
    -

    -
    v:
    Returns:

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-hash.html b/src/tools/docbook/libxml2/doc/html/libxml-hash.html deleted file mode 100644 index e2ffa5340b..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-hash.html +++ /dev/null @@ -1,116 +0,0 @@ - - -Module hash from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module hash from libxml2

    API Menu
    API Indexes
    Related links

    This module implements the hash table support used in various places in the library.

    Table of Contents

    #define XML_CAST_FPTR
    Structure xmlHashTable
    struct _xmlHashTable -The content of this structure is not made public by the API. -
    Typedef xmlHashTable * xmlHashTablePtr
    -
    int	xmlHashAddEntry			(xmlHashTablePtr table, 
    const xmlChar * name,
    void * userdata)
    -
    int	xmlHashAddEntry2		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    void * userdata)
    -
    int	xmlHashAddEntry3		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    void * userdata)
    -
    Function type: xmlHashCopier
    -void *	xmlHashCopier			(void * payload, 
    xmlChar * name) -
    -
    xmlHashTablePtr	xmlHashCopy		(xmlHashTablePtr table, 
    xmlHashCopier f)
    -
    xmlHashTablePtr	xmlHashCreate		(int size)
    -
    xmlHashTablePtr	xmlHashCreateDict	(int size, 
    xmlDictPtr dict)
    -
    Function type: xmlHashDeallocator
    -void	xmlHashDeallocator		(void * payload, 
    xmlChar * name) -
    -
    void	xmlHashFree			(xmlHashTablePtr table, 
    xmlHashDeallocator f)
    -
    void *	xmlHashLookup			(xmlHashTablePtr table, 
    const xmlChar * name)
    -
    void *	xmlHashLookup2			(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2)
    -
    void *	xmlHashLookup3			(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3)
    -
    void *	xmlHashQLookup			(xmlHashTablePtr table, 
    const xmlChar * prefix,
    const xmlChar * name)
    -
    void *	xmlHashQLookup2			(xmlHashTablePtr table, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * prefix2,
    const xmlChar * name2)
    -
    void *	xmlHashQLookup3			(xmlHashTablePtr table, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * prefix2,
    const xmlChar * name2,
    const xmlChar * prefix3,
    const xmlChar * name3)
    -
    int	xmlHashRemoveEntry		(xmlHashTablePtr table, 
    const xmlChar * name,
    xmlHashDeallocator f)
    -
    int	xmlHashRemoveEntry2		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    xmlHashDeallocator f)
    -
    int	xmlHashRemoveEntry3		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    xmlHashDeallocator f)
    -
    void	xmlHashScan			(xmlHashTablePtr table, 
    xmlHashScanner f,
    void * data)
    -
    void	xmlHashScan3			(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    xmlHashScanner f,
    void * data)
    -
    void	xmlHashScanFull			(xmlHashTablePtr table, 
    xmlHashScannerFull f,
    void * data)
    -
    void	xmlHashScanFull3		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    xmlHashScannerFull f,
    void * data)
    -
    Function type: xmlHashScanner
    -void	xmlHashScanner			(void * payload, 
    void * data,
    xmlChar * name) -
    -
    Function type: xmlHashScannerFull
    -void	xmlHashScannerFull		(void * payload, 
    void * data,
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3) -
    -
    int	xmlHashSize			(xmlHashTablePtr table)
    -
    int	xmlHashUpdateEntry		(xmlHashTablePtr table, 
    const xmlChar * name,
    void * userdata,
    xmlHashDeallocator f)
    -
    int	xmlHashUpdateEntry2		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    void * userdata,
    xmlHashDeallocator f)
    -
    int	xmlHashUpdateEntry3		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    void * userdata,
    xmlHashDeallocator f)
    -

    Description

    -

    Macro: XML_CAST_FPTR

    #define XML_CAST_FPTR

    Macro to do a casting from an object pointer to a function pointer without encountering a warning from gcc #define XML_CAST_FPTR(fptr) (*(void **)(&fptr)) This macro violated ISO C aliasing rules (gcc4 on s390 broke) so it is disabled now

    -

    Structure xmlHashTable

    Structure xmlHashTable
    struct _xmlHashTable { -The content of this structure is not made public by the API. -}

    Function: xmlHashAddEntry

    int	xmlHashAddEntry			(xmlHashTablePtr table, 
    const xmlChar * name,
    void * userdata)
    -

    Add the @userdata to the hash @table. This can later be retrieved by using the @name. Duplicate names generate errors.

    -
    table:the hash table
    name:the name of the userdata
    userdata:a pointer to the userdata
    Returns:0 the addition succeeded and -1 in case of error.

    Function: xmlHashAddEntry2

    int	xmlHashAddEntry2		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    void * userdata)
    -

    Add the @userdata to the hash @table. This can later be retrieved by using the (@name, @name2) tuple. Duplicate tuples generate errors.

    -
    table:the hash table
    name:the name of the userdata
    name2:a second name of the userdata
    userdata:a pointer to the userdata
    Returns:0 the addition succeeded and -1 in case of error.

    Function: xmlHashAddEntry3

    int	xmlHashAddEntry3		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    void * userdata)
    -

    Add the @userdata to the hash @table. This can later be retrieved by using the tuple (@name, @name2, @name3). Duplicate entries generate errors.

    -
    table:the hash table
    name:the name of the userdata
    name2:a second name of the userdata
    name3:a third name of the userdata
    userdata:a pointer to the userdata
    Returns:0 the addition succeeded and -1 in case of error.

    Function type: xmlHashCopier

    Function type: xmlHashCopier
    -void *	xmlHashCopier			(void * payload, 
    xmlChar * name) -

    Callback to copy data from a hash.

    payload:the data in the hash
    name:the name associated
    Returns:a copy of the data or NULL in case of error.

    -

    Function: xmlHashCopy

    xmlHashTablePtr	xmlHashCopy		(xmlHashTablePtr table, 
    xmlHashCopier f)
    -

    Scan the hash @table and applied @f to each value.

    -
    table:the hash table
    f:the copier function for items in the hash
    Returns:the new table or NULL in case of error.

    Function: xmlHashCreate

    xmlHashTablePtr	xmlHashCreate		(int size)
    -

    Create a new xmlHashTablePtr.

    -
    size:the size of the hash table
    Returns:the newly created object, or NULL if an error occured.

    Function: xmlHashCreateDict

    xmlHashTablePtr	xmlHashCreateDict	(int size, 
    xmlDictPtr dict)
    -

    Create a new xmlHashTablePtr which will use @dict as the internal dictionary

    -
    size:the size of the hash table
    dict:a dictionary to use for the hash
    Returns:the newly created object, or NULL if an error occured.

    Function type: xmlHashDeallocator

    Function type: xmlHashDeallocator
    -void	xmlHashDeallocator		(void * payload, 
    xmlChar * name) -

    Callback to free data from a hash.

    payload:the data in the hash
    name:the name associated

    -

    Function: xmlHashFree

    void	xmlHashFree			(xmlHashTablePtr table, 
    xmlHashDeallocator f)
    -

    Free the hash @table and its contents. The userdata is deallocated with @f if provided.

    -
    table:the hash table
    f:the deallocator function for items in the hash

    Function: xmlHashLookup

    void *	xmlHashLookup			(xmlHashTablePtr table, 
    const xmlChar * name)
    -

    Find the userdata specified by the @name.

    -
    table:the hash table
    name:the name of the userdata
    Returns:the pointer to the userdata

    Function: xmlHashLookup2

    void *	xmlHashLookup2			(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2)
    -

    Find the userdata specified by the (@name, @name2) tuple.

    -
    table:the hash table
    name:the name of the userdata
    name2:a second name of the userdata
    Returns:the pointer to the userdata

    Function: xmlHashLookup3

    void *	xmlHashLookup3			(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3)
    -

    Find the userdata specified by the (@name, @name2, @name3) tuple.

    -
    table:the hash table
    name:the name of the userdata
    name2:a second name of the userdata
    name3:a third name of the userdata
    Returns:the a pointer to the userdata

    Function: xmlHashQLookup

    void *	xmlHashQLookup			(xmlHashTablePtr table, 
    const xmlChar * prefix,
    const xmlChar * name)
    -

    Find the userdata specified by the QName @prefix:@name/@name.

    -
    table:the hash table
    prefix:the prefix of the userdata
    name:the name of the userdata
    Returns:the pointer to the userdata

    Function: xmlHashQLookup2

    void *	xmlHashQLookup2			(xmlHashTablePtr table, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * prefix2,
    const xmlChar * name2)
    -

    Find the userdata specified by the QNames tuple

    -
    table:the hash table
    prefix:the prefix of the userdata
    name:the name of the userdata
    prefix2:the second prefix of the userdata
    name2:a second name of the userdata
    Returns:the pointer to the userdata

    Function: xmlHashQLookup3

    void *	xmlHashQLookup3			(xmlHashTablePtr table, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * prefix2,
    const xmlChar * name2,
    const xmlChar * prefix3,
    const xmlChar * name3)
    -

    Find the userdata specified by the (@name, @name2, @name3) tuple.

    -
    table:the hash table
    prefix:the prefix of the userdata
    name:the name of the userdata
    prefix2:the second prefix of the userdata
    name2:a second name of the userdata
    prefix3:the third prefix of the userdata
    name3:a third name of the userdata
    Returns:the a pointer to the userdata

    Function: xmlHashRemoveEntry

    int	xmlHashRemoveEntry		(xmlHashTablePtr table, 
    const xmlChar * name,
    xmlHashDeallocator f)
    -

    Find the userdata specified by the @name and remove it from the hash @table. Existing userdata for this tuple will be removed and freed with @f.

    -
    table:the hash table
    name:the name of the userdata
    f:the deallocator function for removed item (if any)
    Returns:0 if the removal succeeded and -1 in case of error or not found.

    Function: xmlHashRemoveEntry2

    int	xmlHashRemoveEntry2		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    xmlHashDeallocator f)
    -

    Find the userdata specified by the (@name, @name2) tuple and remove it from the hash @table. Existing userdata for this tuple will be removed and freed with @f.

    -
    table:the hash table
    name:the name of the userdata
    name2:a second name of the userdata
    f:the deallocator function for removed item (if any)
    Returns:0 if the removal succeeded and -1 in case of error or not found.

    Function: xmlHashRemoveEntry3

    int	xmlHashRemoveEntry3		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    xmlHashDeallocator f)
    -

    Find the userdata specified by the (@name, @name2, @name3) tuple and remove it from the hash @table. Existing userdata for this tuple will be removed and freed with @f.

    -
    table:the hash table
    name:the name of the userdata
    name2:a second name of the userdata
    name3:a third name of the userdata
    f:the deallocator function for removed item (if any)
    Returns:0 if the removal succeeded and -1 in case of error or not found.

    Function: xmlHashScan

    void	xmlHashScan			(xmlHashTablePtr table, 
    xmlHashScanner f,
    void * data)
    -

    Scan the hash @table and applied @f to each value.

    -
    table:the hash table
    f:the scanner function for items in the hash
    data:extra data passed to f

    Function: xmlHashScan3

    void	xmlHashScan3			(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    xmlHashScanner f,
    void * data)
    -

    Scan the hash @table and applied @f to each value matching (@name, @name2, @name3) tuple. If one of the names is null, the comparison is considered to match.

    -
    table:the hash table
    name:the name of the userdata or NULL
    name2:a second name of the userdata or NULL
    name3:a third name of the userdata or NULL
    f:the scanner function for items in the hash
    data:extra data passed to f

    Function: xmlHashScanFull

    void	xmlHashScanFull			(xmlHashTablePtr table, 
    xmlHashScannerFull f,
    void * data)
    -

    Scan the hash @table and applied @f to each value.

    -
    table:the hash table
    f:the scanner function for items in the hash
    data:extra data passed to f

    Function: xmlHashScanFull3

    void	xmlHashScanFull3		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    xmlHashScannerFull f,
    void * data)
    -

    Scan the hash @table and applied @f to each value matching (@name, @name2, @name3) tuple. If one of the names is null, the comparison is considered to match.

    -
    table:the hash table
    name:the name of the userdata or NULL
    name2:a second name of the userdata or NULL
    name3:a third name of the userdata or NULL
    f:the scanner function for items in the hash
    data:extra data passed to f

    Function type: xmlHashScanner

    Function type: xmlHashScanner
    -void	xmlHashScanner			(void * payload, 
    void * data,
    xmlChar * name) -

    Callback when scanning data in a hash with the simple scanner.

    payload:the data in the hash
    data:extra scannner data
    name:the name associated

    -

    Function type: xmlHashScannerFull

    Function type: xmlHashScannerFull
    -void	xmlHashScannerFull		(void * payload, 
    void * data,
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3) -

    Callback when scanning data in a hash with the full scanner.

    payload:the data in the hash
    data:extra scannner data
    name:the name associated
    name2:the second name associated
    name3:the third name associated

    -

    Function: xmlHashSize

    int	xmlHashSize			(xmlHashTablePtr table)
    -

    Query the number of elements installed in the hash @table.

    -
    table:the hash table
    Returns:the number of elements in the hash table or -1 in case of error

    Function: xmlHashUpdateEntry

    int	xmlHashUpdateEntry		(xmlHashTablePtr table, 
    const xmlChar * name,
    void * userdata,
    xmlHashDeallocator f)
    -

    Add the @userdata to the hash @table. This can later be retrieved by using the @name. Existing entry for this @name will be removed and freed with @f if found.

    -
    table:the hash table
    name:the name of the userdata
    userdata:a pointer to the userdata
    f:the deallocator function for replaced item (if any)
    Returns:0 the addition succeeded and -1 in case of error.

    Function: xmlHashUpdateEntry2

    int	xmlHashUpdateEntry2		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    void * userdata,
    xmlHashDeallocator f)
    -

    Add the @userdata to the hash @table. This can later be retrieved by using the (@name, @name2) tuple. Existing entry for this tuple will be removed and freed with @f if found.

    -
    table:the hash table
    name:the name of the userdata
    name2:a second name of the userdata
    userdata:a pointer to the userdata
    f:the deallocator function for replaced item (if any)
    Returns:0 the addition succeeded and -1 in case of error.

    Function: xmlHashUpdateEntry3

    int	xmlHashUpdateEntry3		(xmlHashTablePtr table, 
    const xmlChar * name,
    const xmlChar * name2,
    const xmlChar * name3,
    void * userdata,
    xmlHashDeallocator f)
    -

    Add the @userdata to the hash @table. This can later be retrieved by using the tuple (@name, @name2, @name3). Existing entry for this tuple will be removed and freed with @f if found.

    -
    table:the hash table
    name:the name of the userdata
    name2:a second name of the userdata
    name3:a third name of the userdata
    userdata:a pointer to the userdata
    f:the deallocator function for replaced item (if any)
    Returns:0 the addition succeeded and -1 in case of error.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-lib.html b/src/tools/docbook/libxml2/doc/html/libxml-lib.html deleted file mode 100644 index 4a4962ada5..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-lib.html +++ /dev/null @@ -1,13 +0,0 @@ - - -Reference Manual for libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Reference Manual for libxml2

    API Menu
    API Indexes
    Related links

    Table of Contents

    • DOCBparser: old DocBook SGML parser
    • HTMLparser: interface for an HTML 4.0 non-verifying parser
    • HTMLtree: specific APIs to process HTML tree, especially serialization
    • SAX: Old SAX version 1 handler, deprecated
    • SAX2: SAX2 parser interface used to build the DOM tree
    • c14n: Provide Canonical XML and Exclusive XML Canonicalization
    • catalog: interfaces to the Catalog handling system
    • chvalid: Unicode character range checking
    • debugXML: Tree debugging APIs
    • dict: string dictionnary
    • encoding: interface for the encoding conversion functions
    • entities: interface for the XML entities handling
    • globals: interface for all global variables of the library
    • hash: Chained hash tables
    • list: lists interfaces
    • nanoftp: minimal FTP implementation
    • nanohttp: minimal HTTP implementation
    • parser: the core parser module
    • parserInternals: internals routines exported by the parser.
    • pattern: pattern expression handling
    • relaxng: implementation of the Relax-NG validation
    • schemasInternals: internal interfaces for XML Schemas
    • schematron: XML Schemastron implementation
    • threads: interfaces for thread handling
    • tree: interfaces for tree manipulation
    • uri: library of generic URI related routines
    • valid: The DTD validation
    • xinclude: implementation of XInclude
    • xlink: unfinished XLink detection module
    • xmlIO: interface for the I/O interfaces used by the parser
    • xmlautomata: API to build regexp automata
    • xmlerror: error handling
    • xmlexports: macros for marking symbols as exportable/importable.
    • xmlmemory: interface for the memory allocator
    • xmlmodule: dynamic module loading
    • xmlreader: the XMLReader implementation
    • xmlregexp: regular expressions handling
    • xmlsave: the XML document serializer
    • xmlschemas: incomplete XML Schemas structure implementation
    • xmlschemastypes: implementation of XML Schema Datatypes
    • xmlstring: set of routines to process strings
    • xmlunicode: Unicode character APIs
    • xmlversion: compile-time version informations
    • xmlwriter: text writing API for XML
    • xpath: XML Path Language implementation
    • xpathInternals: internal interfaces for XML Path Language implementation
    • xpointer: API to handle XML Pointers

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-list.html b/src/tools/docbook/libxml2/doc/html/libxml-list.html deleted file mode 100644 index b8254bb01e..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-list.html +++ /dev/null @@ -1,120 +0,0 @@ - - -Module list from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module list from libxml2

    API Menu
    API Indexes
    Related links

    this module implement the list support used in various place in the library.

    Table of Contents

    Structure xmlLink
    struct _xmlLink -The content of this structure is not made public by the API. -
    Typedef xmlLink * xmlLinkPtr
    -
    Structure xmlList
    struct _xmlList -The content of this structure is not made public by the API. -
    Typedef xmlList * xmlListPtr
    -
    void *	xmlLinkGetData			(xmlLinkPtr lk)
    -
    int	xmlListAppend			(xmlListPtr l, 
    void * data)
    -
    void	xmlListClear			(xmlListPtr l)
    -
    int	xmlListCopy			(xmlListPtr cur, 
    const xmlListPtr old)
    -
    xmlListPtr	xmlListCreate		(xmlListDeallocator deallocator, 
    xmlListDataCompare compare)
    -
    Function type: xmlListDataCompare
    -int	xmlListDataCompare		(const void * data0, 
    const void * data1) -
    -
    Function type: xmlListDeallocator
    -void	xmlListDeallocator		(xmlLinkPtr lk)
    -
    -
    void	xmlListDelete			(xmlListPtr l)
    -
    xmlListPtr	xmlListDup		(const xmlListPtr old)
    -
    int	xmlListEmpty			(xmlListPtr l)
    -
    xmlLinkPtr	xmlListEnd		(xmlListPtr l)
    -
    xmlLinkPtr	xmlListFront		(xmlListPtr l)
    -
    int	xmlListInsert			(xmlListPtr l, 
    void * data)
    -
    void	xmlListMerge			(xmlListPtr l1, 
    xmlListPtr l2)
    -
    void	xmlListPopBack			(xmlListPtr l)
    -
    void	xmlListPopFront			(xmlListPtr l)
    -
    int	xmlListPushBack			(xmlListPtr l, 
    void * data)
    -
    int	xmlListPushFront		(xmlListPtr l, 
    void * data)
    -
    int	xmlListRemoveAll		(xmlListPtr l, 
    void * data)
    -
    int	xmlListRemoveFirst		(xmlListPtr l, 
    void * data)
    -
    int	xmlListRemoveLast		(xmlListPtr l, 
    void * data)
    -
    void	xmlListReverse			(xmlListPtr l)
    -
    void *	xmlListReverseSearch		(xmlListPtr l, 
    void * data)
    -
    void	xmlListReverseWalk		(xmlListPtr l, 
    xmlListWalker walker,
    const void * user)
    -
    void *	xmlListSearch			(xmlListPtr l, 
    void * data)
    -
    int	xmlListSize			(xmlListPtr l)
    -
    void	xmlListSort			(xmlListPtr l)
    -
    void	xmlListWalk			(xmlListPtr l, 
    xmlListWalker walker,
    const void * user)
    -
    Function type: xmlListWalker
    -int	xmlListWalker			(const void * data, 
    const void * user) -
    -

    Description

    -

    Structure xmlLink

    Structure xmlLink
    struct _xmlLink { -The content of this structure is not made public by the API. -}

    Structure xmlList

    Structure xmlList
    struct _xmlList { -The content of this structure is not made public by the API. -}

    Function: xmlLinkGetData

    void *	xmlLinkGetData			(xmlLinkPtr lk)
    -

    See Returns.

    -
    lk:a link
    Returns:a pointer to the data referenced from this link

    Function: xmlListAppend

    int	xmlListAppend			(xmlListPtr l, 
    void * data)
    -

    Insert data in the ordered list at the end for this value

    -
    l:a list
    data:the data
    Returns:0 in case of success, 1 in case of failure

    Function: xmlListClear

    void	xmlListClear			(xmlListPtr l)
    -

    Remove the all data in the list

    -
    l:a list

    Function: xmlListCopy

    int	xmlListCopy			(xmlListPtr cur, 
    const xmlListPtr old)
    -

    Move all the element from the old list in the new list

    -
    cur:the new list
    old:the old list
    Returns:0 in case of success 1 in case of error

    Function: xmlListCreate

    xmlListPtr	xmlListCreate		(xmlListDeallocator deallocator, 
    xmlListDataCompare compare)
    -

    Create a new list

    -
    deallocator:an optional deallocator function
    compare:an optional comparison function
    Returns:the new list or NULL in case of error

    Function type: xmlListDataCompare

    Function type: xmlListDataCompare
    -int	xmlListDataCompare		(const void * data0, 
    const void * data1) -

    Callback function used to compare 2 data.

    data0:the first data
    data1:the second data
    Returns:0 is equality, -1 or 1 otherwise depending on the ordering.

    -

    Function type: xmlListDeallocator

    Function type: xmlListDeallocator
    -void	xmlListDeallocator		(xmlLinkPtr lk)
    -

    Callback function used to free data from a list.

    lk:the data to deallocate

    -

    Function: xmlListDelete

    void	xmlListDelete			(xmlListPtr l)
    -

    Deletes the list and its associated data

    -
    l:a list

    Function: xmlListDup

    xmlListPtr	xmlListDup		(const xmlListPtr old)
    -

    Duplicate the list

    -
    old:the list
    Returns:a new copy of the list or NULL in case of error

    Function: xmlListEmpty

    int	xmlListEmpty			(xmlListPtr l)
    -

    Is the list empty ?

    -
    l:a list
    Returns:1 if the list is empty, 0 if not empty and -1 in case of error

    Function: xmlListEnd

    xmlLinkPtr	xmlListEnd		(xmlListPtr l)
    -

    Get the last element in the list

    -
    l:a list
    Returns:the last element in the list, or NULL

    Function: xmlListFront

    xmlLinkPtr	xmlListFront		(xmlListPtr l)
    -

    Get the first element in the list

    -
    l:a list
    Returns:the first element in the list, or NULL

    Function: xmlListInsert

    int	xmlListInsert			(xmlListPtr l, 
    void * data)
    -

    Insert data in the ordered list at the beginning for this value

    -
    l:a list
    data:the data
    Returns:0 in case of success, 1 in case of failure

    Function: xmlListMerge

    void	xmlListMerge			(xmlListPtr l1, 
    xmlListPtr l2)
    -

    include all the elements of the second list in the first one and clear the second list

    -
    l1:the original list
    l2:the new list

    Function: xmlListPopBack

    void	xmlListPopBack			(xmlListPtr l)
    -

    Removes the last element in the list

    -
    l:a list

    Function: xmlListPopFront

    void	xmlListPopFront			(xmlListPtr l)
    -

    Removes the first element in the list

    -
    l:a list

    Function: xmlListPushBack

    int	xmlListPushBack			(xmlListPtr l, 
    void * data)
    -

    add the new data at the end of the list

    -
    l:a list
    data:new data
    Returns:1 if successful, 0 otherwise

    Function: xmlListPushFront

    int	xmlListPushFront		(xmlListPtr l, 
    void * data)
    -

    add the new data at the beginning of the list

    -
    l:a list
    data:new data
    Returns:1 if successful, 0 otherwise

    Function: xmlListRemoveAll

    int	xmlListRemoveAll		(xmlListPtr l, 
    void * data)
    -

    Remove the all instance associated to data in the list

    -
    l:a list
    data:list data
    Returns:the number of deallocation, or 0 if not found

    Function: xmlListRemoveFirst

    int	xmlListRemoveFirst		(xmlListPtr l, 
    void * data)
    -

    Remove the first instance associated to data in the list

    -
    l:a list
    data:list data
    Returns:1 if a deallocation occured, or 0 if not found

    Function: xmlListRemoveLast

    int	xmlListRemoveLast		(xmlListPtr l, 
    void * data)
    -

    Remove the last instance associated to data in the list

    -
    l:a list
    data:list data
    Returns:1 if a deallocation occured, or 0 if not found

    Function: xmlListReverse

    void	xmlListReverse			(xmlListPtr l)
    -

    Reverse the order of the elements in the list

    -
    l:a list

    Function: xmlListReverseSearch

    void *	xmlListReverseSearch		(xmlListPtr l, 
    void * data)
    -

    Search the list in reverse order for an existing value of @data

    -
    l:a list
    data:a search value
    Returns:the value associated to @data or NULL in case of error

    Function: xmlListReverseWalk

    void	xmlListReverseWalk		(xmlListPtr l, 
    xmlListWalker walker,
    const void * user)
    -

    Walk all the element of the list in reverse order and apply the walker function to it

    -
    l:a list
    walker:a processing function
    user:a user parameter passed to the walker function

    Function: xmlListSearch

    void *	xmlListSearch			(xmlListPtr l, 
    void * data)
    -

    Search the list for an existing value of @data

    -
    l:a list
    data:a search value
    Returns:the value associated to @data or NULL in case of error

    Function: xmlListSize

    int	xmlListSize			(xmlListPtr l)
    -

    Get the number of elements in the list

    -
    l:a list
    Returns:the number of elements in the list or -1 in case of error

    Function: xmlListSort

    void	xmlListSort			(xmlListPtr l)
    -

    Sort all the elements in the list

    -
    l:a list

    Function: xmlListWalk

    void	xmlListWalk			(xmlListPtr l, 
    xmlListWalker walker,
    const void * user)
    -

    Walk all the element of the first from first to last and apply the walker function to it

    -
    l:a list
    walker:a processing function
    user:a user parameter passed to the walker function

    Function type: xmlListWalker

    Function type: xmlListWalker
    -int	xmlListWalker			(const void * data, 
    const void * user) -

    Callback function used when walking a list with xmlListWalk().

    data:the data found in the list
    user:extra user provided data to the walker
    Returns:0 to stop walking the list, 1 otherwise.

    -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-nanoftp.html b/src/tools/docbook/libxml2/doc/html/libxml-nanoftp.html deleted file mode 100644 index 32aca494f2..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-nanoftp.html +++ /dev/null @@ -1,92 +0,0 @@ - - -Module nanoftp from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module nanoftp from libxml2

    API Menu
    API Indexes
    Related links

    minimal FTP implementation allowing to fetch resources like external subset.

    Table of Contents

    Function type: ftpDataCallback
    -void	ftpDataCallback			(void * userData, 
    const char * data,
    int len) -
    -
    Function type: ftpListCallback
    -void	ftpListCallback			(void * userData, 
    const char * filename,
    const char * attrib,
    const char * owner,
    const char * group,
    unsigned long size,
    int links,
    int year,
    const char * month,
    int day,
    int hour,
    int minute) -
    -
    int	xmlNanoFTPCheckResponse		(void * ctx)
    -
    void	xmlNanoFTPCleanup		(void)
    -
    int	xmlNanoFTPClose			(void * ctx)
    -
    int	xmlNanoFTPCloseConnection	(void * ctx)
    -
    int	xmlNanoFTPConnect		(void * ctx)
    -
    void *	xmlNanoFTPConnectTo		(const char * server, 
    int port)
    -
    int	xmlNanoFTPCwd			(void * ctx, 
    const char * directory)
    -
    int	xmlNanoFTPDele			(void * ctx, 
    const char * file)
    -
    void	xmlNanoFTPFreeCtxt		(void * ctx)
    -
    int	xmlNanoFTPGet			(void * ctx, 
    ftpDataCallback callback,
    void * userData,
    const char * filename)
    -
    int	xmlNanoFTPGetConnection		(void * ctx)
    -
    int	xmlNanoFTPGetResponse		(void * ctx)
    -
    int	xmlNanoFTPGetSocket		(void * ctx, 
    const char * filename)
    -
    void	xmlNanoFTPInit			(void)
    -
    int	xmlNanoFTPList			(void * ctx, 
    ftpListCallback callback,
    void * userData,
    const char * filename)
    -
    void *	xmlNanoFTPNewCtxt		(const char * URL)
    -
    void *	xmlNanoFTPOpen			(const char * URL)
    -
    void	xmlNanoFTPProxy			(const char * host, 
    int port,
    const char * user,
    const char * passwd,
    int type)
    -
    int	xmlNanoFTPQuit			(void * ctx)
    -
    int	xmlNanoFTPRead			(void * ctx, 
    void * dest,
    int len)
    -
    void	xmlNanoFTPScanProxy		(const char * URL)
    -
    int	xmlNanoFTPUpdateURL		(void * ctx, 
    const char * URL)
    -

    Description

    -

    Function type: ftpDataCallback

    Function type: ftpDataCallback
    -void	ftpDataCallback			(void * userData, 
    const char * data,
    int len) -

    A callback for the xmlNanoFTPGet command.

    userData:the user provided context
    data:the data received
    len:its size in bytes

    -

    Function type: ftpListCallback

    Function type: ftpListCallback
    -void	ftpListCallback			(void * userData, 
    const char * filename,
    const char * attrib,
    const char * owner,
    const char * group,
    unsigned long size,
    int links,
    int year,
    const char * month,
    int day,
    int hour,
    int minute) -

    A callback for the xmlNanoFTPList command. Note that only one of year and day:minute are specified.

    userData:user provided data for the callback
    filename:the file name (including "->" when links are shown)
    attrib:the attribute string
    owner:the owner string
    group:the group string
    size:the file size
    links:the link count
    year:the year
    month:the month
    day:the day
    hour:the hour
    minute:the minute

    -

    Function: xmlNanoFTPCheckResponse

    int	xmlNanoFTPCheckResponse		(void * ctx)
    -

    Check if there is a response from the FTP server after a command.

    -
    ctx:an FTP context
    Returns:the code number, or 0

    Function: xmlNanoFTPCleanup

    void	xmlNanoFTPCleanup		(void)
    -

    Cleanup the FTP protocol layer. This cleanup proxy informations.

    -

    Function: xmlNanoFTPClose

    int	xmlNanoFTPClose			(void * ctx)
    -

    Close the connection and both control and transport

    -
    ctx:an FTP context
    Returns:-1 incase of error, 0 otherwise

    Function: xmlNanoFTPCloseConnection

    int	xmlNanoFTPCloseConnection	(void * ctx)
    -

    Close the data connection from the server

    -
    ctx:an FTP context
    Returns:-1 incase of error, 0 otherwise

    Function: xmlNanoFTPConnect

    int	xmlNanoFTPConnect		(void * ctx)
    -

    Tries to open a control connection

    -
    ctx:an FTP context
    Returns:-1 in case of error, 0 otherwise

    Function: xmlNanoFTPConnectTo

    void *	xmlNanoFTPConnectTo		(const char * server, 
    int port)
    -

    Tries to open a control connection to the given server/port

    -
    server:an FTP server name
    port:the port (use 21 if 0)
    Returns:an fTP context or NULL if it failed

    Function: xmlNanoFTPCwd

    int	xmlNanoFTPCwd			(void * ctx, 
    const char * directory)
    -

    Tries to change the remote directory

    -
    ctx:an FTP context
    directory:a directory on the server
    Returns:-1 incase of error, 1 if CWD worked, 0 if it failed

    Function: xmlNanoFTPDele

    int	xmlNanoFTPDele			(void * ctx, 
    const char * file)
    -

    Tries to delete an item (file or directory) from server

    -
    ctx:an FTP context
    file:a file or directory on the server
    Returns:-1 incase of error, 1 if DELE worked, 0 if it failed

    Function: xmlNanoFTPFreeCtxt

    void	xmlNanoFTPFreeCtxt		(void * ctx)
    -

    Frees the context after closing the connection.

    -
    ctx:an FTP context

    Function: xmlNanoFTPGet

    int	xmlNanoFTPGet			(void * ctx, 
    ftpDataCallback callback,
    void * userData,
    const char * filename)
    -

    Fetch the given file from the server. All data are passed back in the callbacks. The last callback has a size of 0 block.

    -
    ctx:an FTP context
    callback:the user callback
    userData:the user callback data
    filename:the file to retrieve
    Returns:-1 incase of error, 0 otherwise

    Function: xmlNanoFTPGetConnection

    int	xmlNanoFTPGetConnection		(void * ctx)
    -

    Try to open a data connection to the server. Currently only passive mode is supported.

    -
    ctx:an FTP context
    Returns:-1 incase of error, 0 otherwise

    Function: xmlNanoFTPGetResponse

    int	xmlNanoFTPGetResponse		(void * ctx)
    -

    Get the response from the FTP server after a command.

    -
    ctx:an FTP context
    Returns:the code number

    Function: xmlNanoFTPGetSocket

    int	xmlNanoFTPGetSocket		(void * ctx, 
    const char * filename)
    -

    Initiate fetch of the given file from the server.

    -
    ctx:an FTP context
    filename:the file to retrieve (or NULL if path is in context).
    Returns:the socket for the data connection, or <0 in case of error

    Function: xmlNanoFTPInit

    void	xmlNanoFTPInit			(void)
    -

    Initialize the FTP protocol layer. Currently it just checks for proxy informations, and get the hostname

    -

    Function: xmlNanoFTPList

    int	xmlNanoFTPList			(void * ctx, 
    ftpListCallback callback,
    void * userData,
    const char * filename)
    -

    Do a listing on the server. All files info are passed back in the callbacks.

    -
    ctx:an FTP context
    callback:the user callback
    userData:the user callback data
    filename:optional files to list
    Returns:-1 incase of error, 0 otherwise

    Function: xmlNanoFTPNewCtxt

    void *	xmlNanoFTPNewCtxt		(const char * URL)
    -

    Allocate and initialize a new FTP context.

    -
    URL:The URL used to initialize the context
    Returns:an FTP context or NULL in case of error.

    Function: xmlNanoFTPOpen

    void *	xmlNanoFTPOpen			(const char * URL)
    -

    Start to fetch the given ftp:// resource

    -
    URL:the URL to the resource
    Returns:an FTP context, or NULL

    Function: xmlNanoFTPProxy

    void	xmlNanoFTPProxy			(const char * host, 
    int port,
    const char * user,
    const char * passwd,
    int type)
    -

    Setup the FTP proxy informations. This can also be done by using ftp_proxy ftp_proxy_user and ftp_proxy_password environment variables.

    -
    host:the proxy host name
    port:the proxy port
    user:the proxy user name
    passwd:the proxy password
    type:the type of proxy 1 for using SITE, 2 for USER a@b

    Function: xmlNanoFTPQuit

    int	xmlNanoFTPQuit			(void * ctx)
    -

    Send a QUIT command to the server

    -
    ctx:an FTP context
    Returns:-1 in case of error, 0 otherwise

    Function: xmlNanoFTPRead

    int	xmlNanoFTPRead			(void * ctx, 
    void * dest,
    int len)
    -

    This function tries to read @len bytes from the existing FTP connection and saves them in @dest. This is a blocking call.

    -
    ctx:the FTP context
    dest:a buffer
    len:the buffer length
    Returns:the number of byte read. 0 is an indication of an end of connection. -1 indicates a parameter error.

    Function: xmlNanoFTPScanProxy

    void	xmlNanoFTPScanProxy		(const char * URL)
    -

    (Re)Initialize the FTP Proxy context by parsing the URL and finding the protocol host port it indicates. Should be like ftp://myproxy/ or ftp://myproxy:3128/ A NULL URL cleans up proxy informations.

    -
    URL:The proxy URL used to initialize the proxy context

    Function: xmlNanoFTPUpdateURL

    int	xmlNanoFTPUpdateURL		(void * ctx, 
    const char * URL)
    -

    Update an FTP context by parsing the URL and finding new path it indicates. If there is an error in the protocol, hostname, port or other information, the error is raised. It indicates a new connection has to be established.

    -
    ctx:an FTP context
    URL:The URL used to update the context
    Returns:0 if Ok, -1 in case of error (other host).

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-nanohttp.html b/src/tools/docbook/libxml2/doc/html/libxml-nanohttp.html deleted file mode 100644 index b26e9d2999..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-nanohttp.html +++ /dev/null @@ -1,65 +0,0 @@ - - -Module nanohttp from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module nanohttp from libxml2

    API Menu
    API Indexes
    Related links

    minimal HTTP implementation allowing to fetch resources like external subset.

    Table of Contents

    const char *	xmlNanoHTTPAuthHeader	(void * ctx)
    -
    void	xmlNanoHTTPCleanup		(void)
    -
    void	xmlNanoHTTPClose		(void * ctx)
    -
    int	xmlNanoHTTPContentLength	(void * ctx)
    -
    const char *	xmlNanoHTTPEncoding	(void * ctx)
    -
    int	xmlNanoHTTPFetch		(const char * URL, 
    const char * filename,
    char ** contentType)
    -
    void	xmlNanoHTTPInit			(void)
    -
    void *	xmlNanoHTTPMethod		(const char * URL, 
    const char * method,
    const char * input,
    char ** contentType,
    const char * headers,
    int ilen)
    -
    void *	xmlNanoHTTPMethodRedir		(const char * URL, 
    const char * method,
    const char * input,
    char ** contentType,
    char ** redir,
    const char * headers,
    int ilen)
    -
    const char *	xmlNanoHTTPMimeType	(void * ctx)
    -
    void *	xmlNanoHTTPOpen			(const char * URL, 
    char ** contentType)
    -
    void *	xmlNanoHTTPOpenRedir		(const char * URL, 
    char ** contentType,
    char ** redir)
    -
    int	xmlNanoHTTPRead			(void * ctx, 
    void * dest,
    int len)
    -
    const char *	xmlNanoHTTPRedir	(void * ctx)
    -
    int	xmlNanoHTTPReturnCode		(void * ctx)
    -
    int	xmlNanoHTTPSave			(void * ctxt, 
    const char * filename)
    -
    void	xmlNanoHTTPScanProxy		(const char * URL)
    -

    Description

    -

    Function: xmlNanoHTTPAuthHeader

    const char *	xmlNanoHTTPAuthHeader	(void * ctx)
    -

    Get the authentication header of an HTTP context

    -
    ctx:the HTTP context
    Returns:the stashed value of the WWW-Authenticate or Proxy-Authenticate header.

    Function: xmlNanoHTTPCleanup

    void	xmlNanoHTTPCleanup		(void)
    -

    Cleanup the HTTP protocol layer.

    -

    Function: xmlNanoHTTPClose

    void	xmlNanoHTTPClose		(void * ctx)
    -

    This function closes an HTTP context, it ends up the connection and free all data related to it.

    -
    ctx:the HTTP context

    Function: xmlNanoHTTPContentLength

    int	xmlNanoHTTPContentLength	(void * ctx)
    -

    Provides the specified content length from the HTTP header.

    -
    ctx:the HTTP context
    Returns:the specified content length from the HTTP header. Note that a value of -1 indicates that the content length element was not included in the response header.

    Function: xmlNanoHTTPEncoding

    const char *	xmlNanoHTTPEncoding	(void * ctx)
    -

    Provides the specified encoding if specified in the HTTP headers.

    -
    ctx:the HTTP context
    Returns:the specified encoding or NULL if not available

    Function: xmlNanoHTTPFetch

    int	xmlNanoHTTPFetch		(const char * URL, 
    const char * filename,
    char ** contentType)
    -

    This function try to fetch the indicated resource via HTTP GET and save it's content in the file.

    -
    URL:The URL to load
    filename:the filename where the content should be saved
    contentType:if available the Content-Type information will be returned at that location
    Returns:-1 in case of failure, 0 incase of success. The contentType, if provided must be freed by the caller

    Function: xmlNanoHTTPInit

    void	xmlNanoHTTPInit			(void)
    -

    Initialize the HTTP protocol layer. Currently it just checks for proxy informations

    -

    Function: xmlNanoHTTPMethod

    void *	xmlNanoHTTPMethod		(const char * URL, 
    const char * method,
    const char * input,
    char ** contentType,
    const char * headers,
    int ilen)
    -

    This function try to open a connection to the indicated resource via HTTP using the given @method, adding the given extra headers and the input buffer for the request content.

    -
    URL:The URL to load
    method:the HTTP method to use
    input:the input string if any
    contentType:the Content-Type information IN and OUT
    headers:the extra headers
    ilen:input length
    Returns:NULL in case of failure, otherwise a request handler. The contentType, if provided must be freed by the caller

    Function: xmlNanoHTTPMethodRedir

    void *	xmlNanoHTTPMethodRedir		(const char * URL, 
    const char * method,
    const char * input,
    char ** contentType,
    char ** redir,
    const char * headers,
    int ilen)
    -

    This function try to open a connection to the indicated resource via HTTP using the given @method, adding the given extra headers and the input buffer for the request content.

    -
    URL:The URL to load
    method:the HTTP method to use
    input:the input string if any
    contentType:the Content-Type information IN and OUT
    redir:the redirected URL OUT
    headers:the extra headers
    ilen:input length
    Returns:NULL in case of failure, otherwise a request handler. The contentType, or redir, if provided must be freed by the caller

    Function: xmlNanoHTTPMimeType

    const char *	xmlNanoHTTPMimeType	(void * ctx)
    -

    Provides the specified Mime-Type if specified in the HTTP headers.

    -
    ctx:the HTTP context
    Returns:the specified Mime-Type or NULL if not available

    Function: xmlNanoHTTPOpen

    void *	xmlNanoHTTPOpen			(const char * URL, 
    char ** contentType)
    -

    This function try to open a connection to the indicated resource via HTTP GET.

    -
    URL:The URL to load
    contentType:if available the Content-Type information will be returned at that location
    Returns:NULL in case of failure, otherwise a request handler. The contentType, if provided must be freed by the caller

    Function: xmlNanoHTTPOpenRedir

    void *	xmlNanoHTTPOpenRedir		(const char * URL, 
    char ** contentType,
    char ** redir)
    -

    This function try to open a connection to the indicated resource via HTTP GET.

    -
    URL:The URL to load
    contentType:if available the Content-Type information will be returned at that location
    redir:if available the redirected URL will be returned
    Returns:NULL in case of failure, otherwise a request handler. The contentType, if provided must be freed by the caller

    Function: xmlNanoHTTPRead

    int	xmlNanoHTTPRead			(void * ctx, 
    void * dest,
    int len)
    -

    This function tries to read @len bytes from the existing HTTP connection and saves them in @dest. This is a blocking call.

    -
    ctx:the HTTP context
    dest:a buffer
    len:the buffer length
    Returns:the number of byte read. 0 is an indication of an end of connection. -1 indicates a parameter error.

    Function: xmlNanoHTTPRedir

    const char *	xmlNanoHTTPRedir	(void * ctx)
    -

    Provides the specified redirection URL if available from the HTTP header.

    -
    ctx:the HTTP context
    Returns:the specified redirection URL or NULL if not redirected.

    Function: xmlNanoHTTPReturnCode

    int	xmlNanoHTTPReturnCode		(void * ctx)
    -

    Get the latest HTTP return code received

    -
    ctx:the HTTP context
    Returns:the HTTP return code for the request.

    Function: xmlNanoHTTPSave

    int	xmlNanoHTTPSave			(void * ctxt, 
    const char * filename)
    -

    This function saves the output of the HTTP transaction to a file It closes and free the context at the end

    -
    ctxt:the HTTP context
    filename:the filename where the content should be saved
    Returns:-1 in case of failure, 0 incase of success.

    Function: xmlNanoHTTPScanProxy

    void	xmlNanoHTTPScanProxy		(const char * URL)
    -

    (Re)Initialize the HTTP Proxy context by parsing the URL and finding the protocol host port it indicates. Should be like http://myproxy/ or http://myproxy:3128/ A NULL URL cleans up proxy informations.

    -
    URL:The proxy URL used to initialize the proxy context

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-parser.html b/src/tools/docbook/libxml2/doc/html/libxml-parser.html deleted file mode 100644 index 438500b001..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-parser.html +++ /dev/null @@ -1,550 +0,0 @@ - - -Module parser from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module parser from libxml2

    API Menu
    API Indexes
    Related links

    Interfaces, constants and types related to the XML parser

    Table of Contents

    #define XML_COMPLETE_ATTRS
    #define XML_DEFAULT_VERSION
    #define XML_DETECT_IDS
    #define XML_SAX2_MAGIC
    #define XML_SKIP_IDS
    Enum xmlFeature
    -
    Enum xmlParserInputState
    -
    Enum xmlParserMode
    -
    Structure xmlParserNodeInfo
    struct _xmlParserNodeInfo -
    Typedef xmlParserNodeInfo * xmlParserNodeInfoPtr
    -
    Structure xmlParserNodeInfoSeq
    struct _xmlParserNodeInfoSeq -
    Typedef xmlParserNodeInfoSeq * xmlParserNodeInfoSeqPtr
    -
    Enum xmlParserOption
    -
    Structure xmlSAXHandlerV1
    struct _xmlSAXHandlerV1 -
    Typedef xmlSAXHandlerV1 * xmlSAXHandlerV1Ptr
    -
    Function type: attributeDeclSAXFunc
    -void	attributeDeclSAXFunc		(void * ctx, 
    const xmlChar * elem,
    const xmlChar * fullname,
    int type,
    int def,
    const xmlChar * defaultValue,
    xmlEnumerationPtr tree) -
    -
    Function type: attributeSAXFunc
    -void	attributeSAXFunc		(void * ctx, 
    const xmlChar * name,
    const xmlChar * value) -
    -
    Function type: cdataBlockSAXFunc
    -void	cdataBlockSAXFunc		(void * ctx, 
    const xmlChar * value,
    int len) -
    -
    Function type: charactersSAXFunc
    -void	charactersSAXFunc		(void * ctx, 
    const xmlChar * ch,
    int len) -
    -
    Function type: commentSAXFunc
    -void	commentSAXFunc			(void * ctx, 
    const xmlChar * value) -
    -
    Function type: elementDeclSAXFunc
    -void	elementDeclSAXFunc		(void * ctx, 
    const xmlChar * name,
    int type,
    xmlElementContentPtr content) -
    -
    Function type: endDocumentSAXFunc
    -void	endDocumentSAXFunc		(void * ctx)
    -
    -
    Function type: endElementNsSAX2Func
    -void	endElementNsSAX2Func		(void * ctx, 
    const xmlChar * localname,
    const xmlChar * prefix,
    const xmlChar * URI) -
    -
    Function type: endElementSAXFunc
    -void	endElementSAXFunc		(void * ctx, 
    const xmlChar * name) -
    -
    Function type: entityDeclSAXFunc
    -void	entityDeclSAXFunc		(void * ctx, 
    const xmlChar * name,
    int type,
    const xmlChar * publicId,
    const xmlChar * systemId,
    xmlChar * content) -
    -
    Function type: errorSAXFunc
    -void	errorSAXFunc			(void * ctx, 
    const char * msg,
    ... ...) -
    -
    Function type: externalSubsetSAXFunc
    -void	externalSubsetSAXFunc		(void * ctx, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID) -
    -
    Function type: fatalErrorSAXFunc
    -void	fatalErrorSAXFunc		(void * ctx, 
    const char * msg,
    ... ...) -
    -
    Function type: getEntitySAXFunc
    -xmlEntityPtr	getEntitySAXFunc	(void * ctx, 
    const xmlChar * name) -
    -
    Function type: getParameterEntitySAXFunc
    -xmlEntityPtr	getParameterEntitySAXFunc	(void * ctx, 
    const xmlChar * name) -
    -
    Function type: hasExternalSubsetSAXFunc
    -int	hasExternalSubsetSAXFunc	(void * ctx)
    -
    -
    Function type: hasInternalSubsetSAXFunc
    -int	hasInternalSubsetSAXFunc	(void * ctx)
    -
    -
    Function type: ignorableWhitespaceSAXFunc
    -void	ignorableWhitespaceSAXFunc	(void * ctx, 
    const xmlChar * ch,
    int len) -
    -
    Function type: internalSubsetSAXFunc
    -void	internalSubsetSAXFunc		(void * ctx, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID) -
    -
    Function type: isStandaloneSAXFunc
    -int	isStandaloneSAXFunc		(void * ctx)
    -
    -
    Function type: notationDeclSAXFunc
    -void	notationDeclSAXFunc		(void * ctx, 
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId) -
    -
    Function type: processingInstructionSAXFunc
    -void	processingInstructionSAXFunc	(void * ctx, 
    const xmlChar * target,
    const xmlChar * data) -
    -
    Function type: referenceSAXFunc
    -void	referenceSAXFunc		(void * ctx, 
    const xmlChar * name) -
    -
    Function type: resolveEntitySAXFunc
    -xmlParserInputPtr	resolveEntitySAXFunc	(void * ctx, 
    const xmlChar * publicId,
    const xmlChar * systemId) -
    -
    Function type: setDocumentLocatorSAXFunc
    -void	setDocumentLocatorSAXFunc	(void * ctx, 
    xmlSAXLocatorPtr loc) -
    -
    Function type: startDocumentSAXFunc
    -void	startDocumentSAXFunc		(void * ctx)
    -
    -
    Function type: startElementNsSAX2Func
    -void	startElementNsSAX2Func		(void * ctx, 
    const xmlChar * localname,
    const xmlChar * prefix,
    const xmlChar * URI,
    int nb_namespaces,
    const xmlChar ** namespaces,
    int nb_attributes,
    int nb_defaulted,
    const xmlChar ** attributes) -
    -
    Function type: startElementSAXFunc
    -void	startElementSAXFunc		(void * ctx, 
    const xmlChar * name,
    const xmlChar ** atts) -
    -
    Function type: unparsedEntityDeclSAXFunc
    -void	unparsedEntityDeclSAXFunc	(void * ctx, 
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId,
    const xmlChar * notationName) -
    -
    Function type: warningSAXFunc
    -void	warningSAXFunc			(void * ctx, 
    const char * msg,
    ... ...) -
    -
    long	xmlByteConsumed			(xmlParserCtxtPtr ctxt)
    -
    void	xmlCleanupParser		(void)
    -
    void	xmlClearNodeInfoSeq		(xmlParserNodeInfoSeqPtr seq)
    -
    void	xmlClearParserCtxt		(xmlParserCtxtPtr ctxt)
    -
    xmlParserCtxtPtr	xmlCreateDocParserCtxt	(const xmlChar * cur)
    -
    xmlParserCtxtPtr	xmlCreateIOParserCtxt	(xmlSAXHandlerPtr sax, 
    void * user_data,
    xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    xmlCharEncoding enc)
    -
    xmlParserCtxtPtr	xmlCreatePushParserCtxt	(xmlSAXHandlerPtr sax, 
    void * user_data,
    const char * chunk,
    int size,
    const char * filename)
    -
    xmlDocPtr	xmlCtxtReadDoc		(xmlParserCtxtPtr ctxt, 
    const xmlChar * cur,
    const char * URL,
    const char * encoding,
    int options)
    -
    xmlDocPtr	xmlCtxtReadFd		(xmlParserCtxtPtr ctxt, 
    int fd,
    const char * URL,
    const char * encoding,
    int options)
    -
    xmlDocPtr	xmlCtxtReadFile		(xmlParserCtxtPtr ctxt, 
    const char * filename,
    const char * encoding,
    int options)
    -
    xmlDocPtr	xmlCtxtReadIO		(xmlParserCtxtPtr ctxt, 
    xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -
    xmlDocPtr	xmlCtxtReadMemory	(xmlParserCtxtPtr ctxt, 
    const char * buffer,
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -
    void	xmlCtxtReset			(xmlParserCtxtPtr ctxt)
    -
    int	xmlCtxtResetPush		(xmlParserCtxtPtr ctxt, 
    const char * chunk,
    int size,
    const char * filename,
    const char * encoding)
    -
    int	xmlCtxtUseOptions		(xmlParserCtxtPtr ctxt, 
    int options)
    -
    Function type: xmlExternalEntityLoader
    -xmlParserInputPtr	xmlExternalEntityLoader	(const char * URL, 
    const char * ID,
    xmlParserCtxtPtr context) -
    -
    void	xmlFreeParserCtxt		(xmlParserCtxtPtr ctxt)
    -
    xmlExternalEntityLoader	xmlGetExternalEntityLoader	(void)
    -
    int	xmlGetFeature			(xmlParserCtxtPtr ctxt, 
    const char * name,
    void * result)
    -
    int	xmlGetFeaturesList		(int * len, 
    const char ** result)
    -
    int	xmlHasFeature			(xmlFeature feature)
    -
    xmlDtdPtr	xmlIOParseDTD		(xmlSAXHandlerPtr sax, 
    xmlParserInputBufferPtr input,
    xmlCharEncoding enc)
    -
    void	xmlInitNodeInfoSeq		(xmlParserNodeInfoSeqPtr seq)
    -
    void	xmlInitParser			(void)
    -
    int	xmlInitParserCtxt		(xmlParserCtxtPtr ctxt)
    -
    int	xmlKeepBlanksDefault		(int val)
    -
    int	xmlLineNumbersDefault		(int val)
    -
    xmlParserInputPtr	xmlLoadExternalEntity	(const char * URL, 
    const char * ID,
    xmlParserCtxtPtr ctxt)
    -
    xmlParserInputPtr	xmlNewIOInputStream	(xmlParserCtxtPtr ctxt, 
    xmlParserInputBufferPtr input,
    xmlCharEncoding enc)
    -
    xmlParserCtxtPtr	xmlNewParserCtxt	(void)
    -
    int	xmlParseBalancedChunkMemory	(xmlDocPtr doc, 
    xmlSAXHandlerPtr sax,
    void * user_data,
    int depth,
    const xmlChar * string,
    xmlNodePtr * lst)
    -
    int	xmlParseBalancedChunkMemoryRecover	(xmlDocPtr doc, 
    xmlSAXHandlerPtr sax,
    void * user_data,
    int depth,
    const xmlChar * string,
    xmlNodePtr * lst,
    int recover)
    -
    int	xmlParseChunk			(xmlParserCtxtPtr ctxt, 
    const char * chunk,
    int size,
    int terminate)
    -
    int	xmlParseCtxtExternalEntity	(xmlParserCtxtPtr ctx, 
    const xmlChar * URL,
    const xmlChar * ID,
    xmlNodePtr * lst)
    -
    xmlDtdPtr	xmlParseDTD		(const xmlChar * ExternalID, 
    const xmlChar * SystemID)
    -
    xmlDocPtr	xmlParseDoc		(const xmlChar * cur)
    -
    int	xmlParseDocument		(xmlParserCtxtPtr ctxt)
    -
    xmlDocPtr	xmlParseEntity		(const char * filename)
    -
    int	xmlParseExtParsedEnt		(xmlParserCtxtPtr ctxt)
    -
    int	xmlParseExternalEntity		(xmlDocPtr doc, 
    xmlSAXHandlerPtr sax,
    void * user_data,
    int depth,
    const xmlChar * URL,
    const xmlChar * ID,
    xmlNodePtr * lst)
    -
    xmlDocPtr	xmlParseFile		(const char * filename)
    -
    xmlParserErrors	xmlParseInNodeContext	(xmlNodePtr node, 
    const char * data,
    int datalen,
    int options,
    xmlNodePtr * lst)
    -
    xmlDocPtr	xmlParseMemory		(const char * buffer, 
    int size)
    -
    void	xmlParserAddNodeInfo		(xmlParserCtxtPtr ctxt, 
    const xmlParserNodeInfoPtr info)
    -
    const xmlParserNodeInfo *	xmlParserFindNodeInfo	(const xmlParserCtxtPtr ctx, 
    const xmlNodePtr node)
    -
    unsigned long	xmlParserFindNodeInfoIndex	(const xmlParserNodeInfoSeqPtr seq, 
    const xmlNodePtr node)
    -
    Function type: xmlParserInputDeallocate
    -void	xmlParserInputDeallocate	(xmlChar * str)
    -
    -
    int	xmlParserInputGrow		(xmlParserInputPtr in, 
    int len)
    -
    int	xmlParserInputRead		(xmlParserInputPtr in, 
    int len)
    -
    int	xmlPedanticParserDefault	(int val)
    -
    xmlDocPtr	xmlReadDoc		(const xmlChar * cur, 
    const char * URL,
    const char * encoding,
    int options)
    -
    xmlDocPtr	xmlReadFd		(int fd, 
    const char * URL,
    const char * encoding,
    int options)
    -
    xmlDocPtr	xmlReadFile		(const char * filename, 
    const char * encoding,
    int options)
    -
    xmlDocPtr	xmlReadIO		(xmlInputReadCallback ioread, 
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -
    xmlDocPtr	xmlReadMemory		(const char * buffer, 
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -
    xmlDocPtr	xmlRecoverDoc		(xmlChar * cur)
    -
    xmlDocPtr	xmlRecoverFile		(const char * filename)
    -
    xmlDocPtr	xmlRecoverMemory	(const char * buffer, 
    int size)
    -
    xmlDtdPtr	xmlSAXParseDTD		(xmlSAXHandlerPtr sax, 
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -
    xmlDocPtr	xmlSAXParseDoc		(xmlSAXHandlerPtr sax, 
    const xmlChar * cur,
    int recovery)
    -
    xmlDocPtr	xmlSAXParseEntity	(xmlSAXHandlerPtr sax, 
    const char * filename)
    -
    xmlDocPtr	xmlSAXParseFile		(xmlSAXHandlerPtr sax, 
    const char * filename,
    int recovery)
    -
    xmlDocPtr	xmlSAXParseFileWithData	(xmlSAXHandlerPtr sax, 
    const char * filename,
    int recovery,
    void * data)
    -
    xmlDocPtr	xmlSAXParseMemory	(xmlSAXHandlerPtr sax, 
    const char * buffer,
    int size,
    int recovery)
    -
    xmlDocPtr	xmlSAXParseMemoryWithData	(xmlSAXHandlerPtr sax, 
    const char * buffer,
    int size,
    int recovery,
    void * data)
    -
    int	xmlSAXUserParseFile		(xmlSAXHandlerPtr sax, 
    void * user_data,
    const char * filename)
    -
    int	xmlSAXUserParseMemory		(xmlSAXHandlerPtr sax, 
    void * user_data,
    const char * buffer,
    int size)
    -
    void	xmlSetExternalEntityLoader	(xmlExternalEntityLoader f)
    -
    int	xmlSetFeature			(xmlParserCtxtPtr ctxt, 
    const char * name,
    void * value)
    -
    void	xmlSetupParserForBuffer		(xmlParserCtxtPtr ctxt, 
    const xmlChar * buffer,
    const char * filename)
    -
    void	xmlStopParser			(xmlParserCtxtPtr ctxt)
    -
    int	xmlSubstituteEntitiesDefault	(int val)
    -

    Description

    -

    Macro: XML_COMPLETE_ATTRS

    #define XML_COMPLETE_ATTRS

    Bit in the loadsubset context field to tell to do complete the elements attributes lists with the ones defaulted from the DTDs. Use it to initialize xmlLoadExtDtdDefaultValue.

    -

    Macro: XML_DEFAULT_VERSION

    #define XML_DEFAULT_VERSION

    The default version of XML used: 1.0

    -

    Macro: XML_DETECT_IDS

    #define XML_DETECT_IDS

    Bit in the loadsubset context field to tell to do ID/REFs lookups. Use it to initialize xmlLoadExtDtdDefaultValue.

    -

    Macro: XML_SAX2_MAGIC

    #define XML_SAX2_MAGIC

    Special constant found in SAX2 blocks initialized fields

    -

    Macro: XML_SKIP_IDS

    #define XML_SKIP_IDS

    Bit in the loadsubset context field to tell to not do ID/REFs registration. Used to initialize xmlLoadExtDtdDefaultValue in some special cases.

    -

    Enum xmlFeature

    Enum xmlFeature {
    -    XML_WITH_THREAD = 1
    -    XML_WITH_TREE = 2
    -    XML_WITH_OUTPUT = 3
    -    XML_WITH_PUSH = 4
    -    XML_WITH_READER = 5
    -    XML_WITH_PATTERN = 6
    -    XML_WITH_WRITER = 7
    -    XML_WITH_SAX1 = 8
    -    XML_WITH_FTP = 9
    -    XML_WITH_HTTP = 10
    -    XML_WITH_VALID = 11
    -    XML_WITH_HTML = 12
    -    XML_WITH_LEGACY = 13
    -    XML_WITH_C14N = 14
    -    XML_WITH_CATALOG = 15
    -    XML_WITH_XPATH = 16
    -    XML_WITH_XPTR = 17
    -    XML_WITH_XINCLUDE = 18
    -    XML_WITH_ICONV = 19
    -    XML_WITH_ISO8859X = 20
    -    XML_WITH_UNICODE = 21
    -    XML_WITH_REGEXP = 22
    -    XML_WITH_AUTOMATA = 23
    -    XML_WITH_EXPR = 24
    -    XML_WITH_SCHEMAS = 25
    -    XML_WITH_SCHEMATRON = 26
    -    XML_WITH_MODULES = 27
    -    XML_WITH_DEBUG = 28
    -    XML_WITH_DEBUG_MEM = 29
    -    XML_WITH_DEBUG_RUN = 30
    -    XML_WITH_NONE = 99999 : just to be sure of allocation size
    -}
    -

    Enum xmlParserInputState

    Enum xmlParserInputState {
    -    XML_PARSER_EOF = -1 : nothing is to be parsed
    -    XML_PARSER_START = 0 : nothing has been parsed
    -    XML_PARSER_MISC = 1 : Misc* before int subset
    -    XML_PARSER_PI = 2 : Within a processing instruction
    -    XML_PARSER_DTD = 3 : within some DTD content
    -    XML_PARSER_PROLOG = 4 : Misc* after internal subset
    -    XML_PARSER_COMMENT = 5 : within a comment
    -    XML_PARSER_START_TAG = 6 : within a start tag
    -    XML_PARSER_CONTENT = 7 : within the content
    -    XML_PARSER_CDATA_SECTION = 8 : within a CDATA section
    -    XML_PARSER_END_TAG = 9 : within a closing tag
    -    XML_PARSER_ENTITY_DECL = 10 : within an entity declaration
    -    XML_PARSER_ENTITY_VALUE = 11 : within an entity value in a decl
    -    XML_PARSER_ATTRIBUTE_VALUE = 12 : within an attribute value
    -    XML_PARSER_SYSTEM_LITERAL = 13 : within a SYSTEM value
    -    XML_PARSER_EPILOG = 14 : the Misc* after the last end tag
    -    XML_PARSER_IGNORE = 15 : within an IGNORED section
    -    XML_PARSER_PUBLIC_LITERAL = 16 : within a PUBLIC value
    -}
    -

    Enum xmlParserMode

    Enum xmlParserMode {
    -    XML_PARSE_UNKNOWN = 0
    -    XML_PARSE_DOM = 1
    -    XML_PARSE_SAX = 2
    -    XML_PARSE_PUSH_DOM = 3
    -    XML_PARSE_PUSH_SAX = 4
    -    XML_PARSE_READER = 5
    -}
    -

    Structure xmlParserNodeInfo

    Structure xmlParserNodeInfo
    struct _xmlParserNodeInfo { - const struct _xmlNode * node : Position & line # that text that create - unsigned long begin_pos - unsigned long begin_line - unsigned long end_pos - unsigned long end_line -}

    Structure xmlParserNodeInfoSeq

    Structure xmlParserNodeInfoSeq
    struct _xmlParserNodeInfoSeq { - unsigned long maximum - unsigned long length - xmlParserNodeInfo * buffer -}

    Enum xmlParserOption

    Enum xmlParserOption {
    -    XML_PARSE_RECOVER = 1 : recover on errors
    -    XML_PARSE_NOENT = 2 : substitute entities
    -    XML_PARSE_DTDLOAD = 4 : load the external subset
    -    XML_PARSE_DTDATTR = 8 : default DTD attributes
    -    XML_PARSE_DTDVALID = 16 : validate with the DTD
    -    XML_PARSE_NOERROR = 32 : suppress error reports
    -    XML_PARSE_NOWARNING = 64 : suppress warning reports
    -    XML_PARSE_PEDANTIC = 128 : pedantic error reporting
    -    XML_PARSE_NOBLANKS = 256 : remove blank nodes
    -    XML_PARSE_SAX1 = 512 : use the SAX1 interface internally
    -    XML_PARSE_XINCLUDE = 1024 : Implement XInclude substitition
    -    XML_PARSE_NONET = 2048 : Forbid network access
    -    XML_PARSE_NODICT = 4096 : Do not reuse the context dictionnary
    -    XML_PARSE_NSCLEAN = 8192 : remove redundant namespaces declarations
    -    XML_PARSE_NOCDATA = 16384 : merge CDATA as text nodes
    -    XML_PARSE_NOXINCNODE = 32768 : do not generate XINCLUDE START/END nodes
    -    XML_PARSE_COMPACT = 65536 : compact small text nodes
    -}
    -

    Structure xmlSAXHandlerV1

    Structure xmlSAXHandlerV1
    struct _xmlSAXHandlerV1 { - internalSubsetSAXFunc internalSubset - isStandaloneSAXFunc isStandalone - hasInternalSubsetSAXFunc hasInternalSubset - hasExternalSubsetSAXFunc hasExternalSubset - resolveEntitySAXFunc resolveEntity - getEntitySAXFunc getEntity - entityDeclSAXFunc entityDecl - notationDeclSAXFunc notationDecl - attributeDeclSAXFunc attributeDecl - elementDeclSAXFunc elementDecl - unparsedEntityDeclSAXFunc unparsedEntityDecl - setDocumentLocatorSAXFunc setDocumentLocator - startDocumentSAXFunc startDocument - endDocumentSAXFunc endDocument - startElementSAXFunc startElement - endElementSAXFunc endElement - referenceSAXFunc reference - charactersSAXFunc characters - ignorableWhitespaceSAXFunc ignorableWhitespace - processingInstructionSAXFunc processingInstruction - commentSAXFunc comment - warningSAXFunc warning - errorSAXFunc error - fatalErrorSAXFunc fatalError : unused error() get all the errors - getParameterEntitySAXFunc getParameterEntity - cdataBlockSAXFunc cdataBlock - externalSubsetSAXFunc externalSubset - unsigned int initialized -}

    Function type: attributeDeclSAXFunc

    Function type: attributeDeclSAXFunc
    -void	attributeDeclSAXFunc		(void * ctx, 
    const xmlChar * elem,
    const xmlChar * fullname,
    int type,
    int def,
    const xmlChar * defaultValue,
    xmlEnumerationPtr tree) -

    An attribute definition has been parsed.

    ctx:the user data (XML parser context)
    elem:the name of the element
    fullname:the attribute name
    type:the attribute type
    def:the type of default value
    defaultValue:the attribute default value
    tree:the tree of enumerated value set

    -

    Function type: attributeSAXFunc

    Function type: attributeSAXFunc
    -void	attributeSAXFunc		(void * ctx, 
    const xmlChar * name,
    const xmlChar * value) -

    Handle an attribute that has been read by the parser. The default handling is to convert the attribute into an DOM subtree and past it in a new xmlAttr element added to the element.

    ctx:the user data (XML parser context)
    name:The attribute name, including namespace prefix
    value:The attribute value

    -

    Function type: cdataBlockSAXFunc

    Function type: cdataBlockSAXFunc
    -void	cdataBlockSAXFunc		(void * ctx, 
    const xmlChar * value,
    int len) -

    Called when a pcdata block has been parsed.

    ctx:the user data (XML parser context)
    value:The pcdata content
    len:the block length

    -

    Function type: charactersSAXFunc

    Function type: charactersSAXFunc
    -void	charactersSAXFunc		(void * ctx, 
    const xmlChar * ch,
    int len) -

    Receiving some chars from the parser.

    ctx:the user data (XML parser context)
    ch:a xmlChar string
    len:the number of xmlChar

    -

    Function type: commentSAXFunc

    Function type: commentSAXFunc
    -void	commentSAXFunc			(void * ctx, 
    const xmlChar * value) -

    A comment has been parsed.

    ctx:the user data (XML parser context)
    value:the comment content

    -

    Function type: elementDeclSAXFunc

    Function type: elementDeclSAXFunc
    -void	elementDeclSAXFunc		(void * ctx, 
    const xmlChar * name,
    int type,
    xmlElementContentPtr content) -

    An element definition has been parsed.

    ctx:the user data (XML parser context)
    name:the element name
    type:the element type
    content:the element value tree

    -

    Function type: endDocumentSAXFunc

    Function type: endDocumentSAXFunc
    -void	endDocumentSAXFunc		(void * ctx)
    -

    Called when the document end has been detected.

    ctx:the user data (XML parser context)

    -

    Function type: endElementNsSAX2Func

    Function type: endElementNsSAX2Func
    -void	endElementNsSAX2Func		(void * ctx, 
    const xmlChar * localname,
    const xmlChar * prefix,
    const xmlChar * URI) -

    SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element.

    ctx:the user data (XML parser context)
    localname:the local name of the element
    prefix:the element namespace prefix if available
    URI:the element namespace name if available

    -

    Function type: endElementSAXFunc

    Function type: endElementSAXFunc
    -void	endElementSAXFunc		(void * ctx, 
    const xmlChar * name) -

    Called when the end of an element has been detected.

    ctx:the user data (XML parser context)
    name:The element name

    -

    Function type: entityDeclSAXFunc

    Function type: entityDeclSAXFunc
    -void	entityDeclSAXFunc		(void * ctx, 
    const xmlChar * name,
    int type,
    const xmlChar * publicId,
    const xmlChar * systemId,
    xmlChar * content) -

    An entity definition has been parsed.

    ctx:the user data (XML parser context)
    name:the entity name
    type:the entity type
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    content:the entity value (without processing).

    -

    Function type: errorSAXFunc

    Function type: errorSAXFunc
    -void	errorSAXFunc			(void * ctx, 
    const char * msg,
    ... ...) -

    Display and format an error messages, callback.

    ctx:an XML parser context
    msg:the message to display/transmit
    ...:extra parameters for the message display

    -

    Function type: externalSubsetSAXFunc

    Function type: externalSubsetSAXFunc
    -void	externalSubsetSAXFunc		(void * ctx, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID) -

    Callback on external subset declaration.

    ctx:the user data (XML parser context)
    name:the root element name
    ExternalID:the external ID
    SystemID:the SYSTEM ID (e.g. filename or URL)

    -

    Function type: fatalErrorSAXFunc

    Function type: fatalErrorSAXFunc
    -void	fatalErrorSAXFunc		(void * ctx, 
    const char * msg,
    ... ...) -

    Display and format fatal error messages, callback. Note: so far fatalError() SAX callbacks are not used, error() get all the callbacks for errors.

    ctx:an XML parser context
    msg:the message to display/transmit
    ...:extra parameters for the message display

    -

    Function type: getEntitySAXFunc

    Function type: getEntitySAXFunc
    -xmlEntityPtr	getEntitySAXFunc	(void * ctx, 
    const xmlChar * name) -

    Get an entity by name.

    ctx:the user data (XML parser context)
    name:The entity name
    Returns:the xmlEntityPtr if found.

    -

    Function type: getParameterEntitySAXFunc

    Function type: getParameterEntitySAXFunc
    -xmlEntityPtr	getParameterEntitySAXFunc	(void * ctx, 
    const xmlChar * name) -

    Get a parameter entity by name.

    ctx:the user data (XML parser context)
    name:The entity name
    Returns:the xmlEntityPtr if found.

    -

    Function type: hasExternalSubsetSAXFunc

    Function type: hasExternalSubsetSAXFunc
    -int	hasExternalSubsetSAXFunc	(void * ctx)
    -

    Does this document has an external subset?

    ctx:the user data (XML parser context)
    Returns:1 if true

    -

    Function type: hasInternalSubsetSAXFunc

    Function type: hasInternalSubsetSAXFunc
    -int	hasInternalSubsetSAXFunc	(void * ctx)
    -

    Does this document has an internal subset.

    ctx:the user data (XML parser context)
    Returns:1 if true

    -

    Function type: ignorableWhitespaceSAXFunc

    Function type: ignorableWhitespaceSAXFunc
    -void	ignorableWhitespaceSAXFunc	(void * ctx, 
    const xmlChar * ch,
    int len) -

    Receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use characters.

    ctx:the user data (XML parser context)
    ch:a xmlChar string
    len:the number of xmlChar

    -

    Function type: internalSubsetSAXFunc

    Function type: internalSubsetSAXFunc
    -void	internalSubsetSAXFunc		(void * ctx, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID) -

    Callback on internal subset declaration.

    ctx:the user data (XML parser context)
    name:the root element name
    ExternalID:the external ID
    SystemID:the SYSTEM ID (e.g. filename or URL)

    -

    Function type: isStandaloneSAXFunc

    Function type: isStandaloneSAXFunc
    -int	isStandaloneSAXFunc		(void * ctx)
    -

    Is this document tagged standalone?

    ctx:the user data (XML parser context)
    Returns:1 if true

    -

    Function type: notationDeclSAXFunc

    Function type: notationDeclSAXFunc
    -void	notationDeclSAXFunc		(void * ctx, 
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId) -

    What to do when a notation declaration has been parsed.

    ctx:the user data (XML parser context)
    name:The name of the notation
    publicId:The public ID of the entity
    systemId:The system ID of the entity

    -

    Function type: processingInstructionSAXFunc

    Function type: processingInstructionSAXFunc
    -void	processingInstructionSAXFunc	(void * ctx, 
    const xmlChar * target,
    const xmlChar * data) -

    A processing instruction has been parsed.

    ctx:the user data (XML parser context)
    target:the target name
    data:the PI data's

    -

    Function type: referenceSAXFunc

    Function type: referenceSAXFunc
    -void	referenceSAXFunc		(void * ctx, 
    const xmlChar * name) -

    Called when an entity reference is detected.

    ctx:the user data (XML parser context)
    name:The entity name

    -

    Function type: resolveEntitySAXFunc

    Function type: resolveEntitySAXFunc
    -xmlParserInputPtr	resolveEntitySAXFunc	(void * ctx, 
    const xmlChar * publicId,
    const xmlChar * systemId) -

    Callback: The entity loader, to control the loading of external entities, the application can either: - override this resolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine

    ctx:the user data (XML parser context)
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    Returns:the xmlParserInputPtr if inlined or NULL for DOM behaviour.

    -

    Function type: setDocumentLocatorSAXFunc

    Function type: setDocumentLocatorSAXFunc
    -void	setDocumentLocatorSAXFunc	(void * ctx, 
    xmlSAXLocatorPtr loc) -

    Receive the document locator at startup, actually xmlDefaultSAXLocator. Everything is available on the context, so this is useless in our case.

    ctx:the user data (XML parser context)
    loc:A SAX Locator

    -

    Function type: startDocumentSAXFunc

    Function type: startDocumentSAXFunc
    -void	startDocumentSAXFunc		(void * ctx)
    -

    Called when the document start being processed.

    ctx:the user data (XML parser context)

    -

    Function type: startElementNsSAX2Func

    Function type: startElementNsSAX2Func
    -void	startElementNsSAX2Func		(void * ctx, 
    const xmlChar * localname,
    const xmlChar * prefix,
    const xmlChar * URI,
    int nb_namespaces,
    const xmlChar ** namespaces,
    int nb_attributes,
    int nb_defaulted,
    const xmlChar ** attributes) -

    SAX2 callback when an element start has been detected by the parser. It provides the namespace informations for the element, as well as the new namespace declarations on the element.

    ctx:the user data (XML parser context)
    localname:the local name of the element
    prefix:the element namespace prefix if available
    URI:the element namespace name if available
    nb_namespaces:number of namespace definitions on that node
    namespaces:pointer to the array of prefix/URI pairs namespace definitions
    nb_attributes:the number of attributes on that node
    nb_defaulted:the number of defaulted attributes. The defaulted ones are at the end of the array
    attributes:pointer to the array of (localname/prefix/URI/value/end) attribute values.

    -

    Function type: startElementSAXFunc

    Function type: startElementSAXFunc
    -void	startElementSAXFunc		(void * ctx, 
    const xmlChar * name,
    const xmlChar ** atts) -

    Called when an opening tag has been processed.

    ctx:the user data (XML parser context)
    name:The element name, including namespace prefix
    atts:An array of name/value attributes pairs, NULL terminated

    -

    Function type: unparsedEntityDeclSAXFunc

    Function type: unparsedEntityDeclSAXFunc
    -void	unparsedEntityDeclSAXFunc	(void * ctx, 
    const xmlChar * name,
    const xmlChar * publicId,
    const xmlChar * systemId,
    const xmlChar * notationName) -

    What to do when an unparsed entity declaration is parsed.

    ctx:the user data (XML parser context)
    name:The name of the entity
    publicId:The public ID of the entity
    systemId:The system ID of the entity
    notationName:the name of the notation

    -

    Function type: warningSAXFunc

    Function type: warningSAXFunc
    -void	warningSAXFunc			(void * ctx, 
    const char * msg,
    ... ...) -

    Display and format a warning messages, callback.

    ctx:an XML parser context
    msg:the message to display/transmit
    ...:extra parameters for the message display

    -

    Function: xmlByteConsumed

    long	xmlByteConsumed			(xmlParserCtxtPtr ctxt)
    -

    This function provides the current index of the parser relative to the start of the current entity. This function is computed in bytes from the beginning starting at zero and finishing at the size in byte of the file if parsing a file. The function is of constant cost if the input is UTF-8 but can be costly if run on non-UTF-8 input.

    -
    ctxt:an XML parser context
    Returns:the index in bytes from the beginning of the entity or -1 in case the index could not be computed.

    Function: xmlCleanupParser

    void	xmlCleanupParser		(void)
    -

    Cleanup function for the XML library. It tries to reclaim all parsing related global memory allocated for the library processing. It doesn't deallocate any document related memory. Calling this function should not prevent reusing the library but one should call xmlCleanupParser() only when the process has finished using the library or XML document built with it.

    -

    Function: xmlClearNodeInfoSeq

    void	xmlClearNodeInfoSeq		(xmlParserNodeInfoSeqPtr seq)
    -

    -- Clear (release memory and reinitialize) node info sequence

    -
    seq:a node info sequence pointer

    Function: xmlClearParserCtxt

    void	xmlClearParserCtxt		(xmlParserCtxtPtr ctxt)
    -

    Clear (release owned resources) and reinitialize a parser context

    -
    ctxt:an XML parser context

    Function: xmlCreateDocParserCtxt

    xmlParserCtxtPtr	xmlCreateDocParserCtxt	(const xmlChar * cur)
    -

    Creates a parser context for an XML in-memory document.

    -
    cur:a pointer to an array of xmlChar
    Returns:the new parser context or NULL

    Function: xmlCreateIOParserCtxt

    xmlParserCtxtPtr	xmlCreateIOParserCtxt	(xmlSAXHandlerPtr sax, 
    void * user_data,
    xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    xmlCharEncoding enc)
    -

    Create a parser context for using the XML parser with an existing I/O stream

    -
    sax:a SAX handler
    user_data:The user data returned on SAX callbacks
    ioread:an I/O read function
    ioclose:an I/O close function
    ioctx:an I/O handler
    enc:the charset encoding if known
    Returns:the new parser context or NULL

    Function: xmlCreatePushParserCtxt

    xmlParserCtxtPtr	xmlCreatePushParserCtxt	(xmlSAXHandlerPtr sax, 
    void * user_data,
    const char * chunk,
    int size,
    const char * filename)
    -

    Create a parser context for using the XML parser in push mode. If @buffer and @size are non-NULL, the data is used to detect the encoding. The remaining characters will be parsed so they don't need to be fed in again through xmlParseChunk. To allow content encoding detection, @size should be >= 4 The value of @filename is used for fetching external entities and error/warning reports.

    -
    sax:a SAX handler
    user_data:The user data returned on SAX callbacks
    chunk:a pointer to an array of chars
    size:number of chars in the array
    filename:an optional file name or URI
    Returns:the new parser context or NULL

    Function: xmlCtxtReadDoc

    xmlDocPtr	xmlCtxtReadDoc		(xmlParserCtxtPtr ctxt, 
    const xmlChar * cur,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context

    -
    ctxt:an XML parser context
    cur:a pointer to a zero terminated string
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree

    Function: xmlCtxtReadFd

    xmlDocPtr	xmlCtxtReadFd		(xmlParserCtxtPtr ctxt, 
    int fd,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML from a file descriptor and build a tree. This reuses the existing @ctxt parser context NOTE that the file descriptor will not be closed when the reader is closed or reset.

    -
    ctxt:an XML parser context
    fd:an open file descriptor
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree

    Function: xmlCtxtReadFile

    xmlDocPtr	xmlCtxtReadFile		(xmlParserCtxtPtr ctxt, 
    const char * filename,
    const char * encoding,
    int options)
    -

    parse an XML file from the filesystem or the network. This reuses the existing @ctxt parser context

    -
    ctxt:an XML parser context
    filename:a file or URL
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree

    Function: xmlCtxtReadIO

    xmlDocPtr	xmlCtxtReadIO		(xmlParserCtxtPtr ctxt, 
    xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML document from I/O functions and source and build a tree. This reuses the existing @ctxt parser context

    -
    ctxt:an XML parser context
    ioread:an I/O read function
    ioclose:an I/O close function
    ioctx:an I/O handler
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree

    Function: xmlCtxtReadMemory

    xmlDocPtr	xmlCtxtReadMemory	(xmlParserCtxtPtr ctxt, 
    const char * buffer,
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context

    -
    ctxt:an XML parser context
    buffer:a pointer to a char array
    size:the size of the array
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree

    Function: xmlCtxtReset

    void	xmlCtxtReset			(xmlParserCtxtPtr ctxt)
    -

    Reset a parser context

    -
    ctxt:an XML parser context

    Function: xmlCtxtResetPush

    int	xmlCtxtResetPush		(xmlParserCtxtPtr ctxt, 
    const char * chunk,
    int size,
    const char * filename,
    const char * encoding)
    -

    Reset a push parser context

    -
    ctxt:an XML parser context
    chunk:a pointer to an array of chars
    size:number of chars in the array
    filename:an optional file name or URI
    encoding:the document encoding, or NULL
    Returns:0 in case of success and 1 in case of error

    Function: xmlCtxtUseOptions

    int	xmlCtxtUseOptions		(xmlParserCtxtPtr ctxt, 
    int options)
    -

    Applies the options to the parser context

    -
    ctxt:an XML parser context
    options:a combination of xmlParserOption
    Returns:0 in case of success, the set of unknown or unimplemented options in case of error.

    Function type: xmlExternalEntityLoader

    Function type: xmlExternalEntityLoader
    -xmlParserInputPtr	xmlExternalEntityLoader	(const char * URL, 
    const char * ID,
    xmlParserCtxtPtr context) -

    External entity loaders types.

    URL:The System ID of the resource requested
    ID:The Public ID of the resource requested
    context:the XML parser context
    Returns:the entity input parser.

    -

    Function: xmlFreeParserCtxt

    void	xmlFreeParserCtxt		(xmlParserCtxtPtr ctxt)
    -

    Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed.

    -
    ctxt:an XML parser context

    Function: xmlGetExternalEntityLoader

    xmlExternalEntityLoader	xmlGetExternalEntityLoader	(void)
    -

    Get the default external entity resolver function for the application

    -
    Returns:the xmlExternalEntityLoader function pointer

    Function: xmlGetFeature

    int	xmlGetFeature			(xmlParserCtxtPtr ctxt, 
    const char * name,
    void * result)
    -

    Read the current value of one feature of this parser instance

    -
    ctxt:an XML/HTML parser context
    name:the feature name
    result:location to store the result
    Returns:-1 in case or error, 0 otherwise

    Function: xmlGetFeaturesList

    int	xmlGetFeaturesList		(int * len, 
    const char ** result)
    -

    Copy at most *@len feature names into the @result array

    -
    len:the length of the features name array (input/output)
    result:an array of string to be filled with the features name.
    Returns:-1 in case or error, or the total number of features, len is updated with the number of strings copied, strings must not be deallocated

    Function: xmlHasFeature

    int	xmlHasFeature			(xmlFeature feature)
    -

    Examines if the library has been compiled with a given feature.

    -
    feature:the feature to be examined
    Returns:a non-zero value if the feature exist, otherwise zero. Returns zero (0) if the feature does not exist or an unknown unknown feature is requested, non-zero otherwise.

    Function: xmlIOParseDTD

    xmlDtdPtr	xmlIOParseDTD		(xmlSAXHandlerPtr sax, 
    xmlParserInputBufferPtr input,
    xmlCharEncoding enc)
    -

    Load and parse a DTD

    -
    sax:the SAX handler block or NULL
    input:an Input Buffer
    enc:the charset encoding if known
    Returns:the resulting xmlDtdPtr or NULL in case of error. @input will be freed at parsing end.

    Function: xmlInitNodeInfoSeq

    void	xmlInitNodeInfoSeq		(xmlParserNodeInfoSeqPtr seq)
    -

    -- Initialize (set to initial state) node info sequence

    -
    seq:a node info sequence pointer

    Function: xmlInitParser

    void	xmlInitParser			(void)
    -

    Initialization function for the XML parser. This is not reentrant. Call once before processing in case of use in multithreaded programs.

    -

    Function: xmlInitParserCtxt

    int	xmlInitParserCtxt		(xmlParserCtxtPtr ctxt)
    -

    Initialize a parser context

    -
    ctxt:an XML parser context
    Returns:0 in case of success and -1 in case of error

    Function: xmlKeepBlanksDefault

    int	xmlKeepBlanksDefault		(int val)
    -

    Set and return the previous value for default blanks text nodes support. The 1.x version of the parser used an heuristic to try to detect ignorable white spaces. As a result the SAX callback was generating xmlSAX2IgnorableWhitespace() callbacks instead of characters() one, and when using the DOM output text nodes containing those blanks were not generated. The 2.x and later version will switch to the XML standard way and ignorableWhitespace() are only generated when running the parser in validating mode and when the current element doesn't allow CDATA or mixed content. This function is provided as a way to force the standard behavior on 1.X libs and to switch back to the old mode for compatibility when running 1.X client code on 2.X . Upgrade of 1.X code should be done by using xmlIsBlankNode() commodity function to detect the "empty" nodes generated. This value also affect autogeneration of indentation when saving code if blanks sections are kept, indentation is not generated.

    -
    val:int 0 or 1
    Returns:the last value for 0 for no substitution, 1 for substitution.

    Function: xmlLineNumbersDefault

    int	xmlLineNumbersDefault		(int val)
    -

    Set and return the previous value for enabling line numbers in elements contents. This may break on old application and is turned off by default.

    -
    val:int 0 or 1
    Returns:the last value for 0 for no substitution, 1 for substitution.

    Function: xmlLoadExternalEntity

    xmlParserInputPtr	xmlLoadExternalEntity	(const char * URL, 
    const char * ID,
    xmlParserCtxtPtr ctxt)
    -

    Load an external entity, note that the use of this function for unparsed entities may generate problems

    -
    URL:the URL for the entity to load
    ID:the Public ID for the entity to load
    ctxt:the context in which the entity is called or NULL
    Returns:the xmlParserInputPtr or NULL

    Function: xmlNewIOInputStream

    xmlParserInputPtr	xmlNewIOInputStream	(xmlParserCtxtPtr ctxt, 
    xmlParserInputBufferPtr input,
    xmlCharEncoding enc)
    -

    Create a new input stream structure encapsulating the @input into a stream suitable for the parser.

    -
    ctxt:an XML parser context
    input:an I/O Input
    enc:the charset encoding if known
    Returns:the new input stream or NULL

    Function: xmlNewParserCtxt

    xmlParserCtxtPtr	xmlNewParserCtxt	(void)
    -

    Allocate and initialize a new parser context.

    -
    Returns:the xmlParserCtxtPtr or NULL

    Function: xmlParseBalancedChunkMemory

    int	xmlParseBalancedChunkMemory	(xmlDocPtr doc, 
    xmlSAXHandlerPtr sax,
    void * user_data,
    int depth,
    const xmlChar * string,
    xmlNodePtr * lst)
    -

    Parse a well-balanced chunk of an XML document called by the parser The allowed sequence for the Well Balanced Chunk is the one defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

    -
    doc:the document the chunk pertains to
    sax:the SAX handler bloc (possibly NULL)
    user_data:The user data returned on SAX callbacks (possibly NULL)
    depth:Used for loop detection, use 0
    string:the input string in UTF8 or ISO-Latin (zero terminated)
    lst:the return value for the set of parsed nodes
    Returns:0 if the chunk is well balanced, -1 in case of args problem and the parser error code otherwise

    Function: xmlParseBalancedChunkMemoryRecover

    int	xmlParseBalancedChunkMemoryRecover	(xmlDocPtr doc, 
    xmlSAXHandlerPtr sax,
    void * user_data,
    int depth,
    const xmlChar * string,
    xmlNodePtr * lst,
    int recover)
    -

    Parse a well-balanced chunk of an XML document called by the parser The allowed sequence for the Well Balanced Chunk is the one defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

    -
    doc:the document the chunk pertains to
    sax:the SAX handler bloc (possibly NULL)
    user_data:The user data returned on SAX callbacks (possibly NULL)
    depth:Used for loop detection, use 0
    string:the input string in UTF8 or ISO-Latin (zero terminated)
    lst:the return value for the set of parsed nodes
    recover:return nodes even if the data is broken (use 0)
    Returns:0 if the chunk is well balanced, -1 in case of args problem and the parser error code otherwise In case recover is set to 1, the nodelist will not be empty even if the parsed chunk is not well balanced.

    Function: xmlParseChunk

    int	xmlParseChunk			(xmlParserCtxtPtr ctxt, 
    const char * chunk,
    int size,
    int terminate)
    -

    Parse a Chunk of memory

    -
    ctxt:an XML parser context
    chunk:an char array
    size:the size in byte of the chunk
    terminate:last chunk indicator
    Returns:zero if no error, the xmlParserErrors otherwise.

    Function: xmlParseCtxtExternalEntity

    int	xmlParseCtxtExternalEntity	(xmlParserCtxtPtr ctx, 
    const xmlChar * URL,
    const xmlChar * ID,
    xmlNodePtr * lst)
    -

    Parse an external general entity within an existing parsing context An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content

    -
    ctx:the existing parsing context
    URL:the URL for the entity to load
    ID:the System ID for the entity to load
    lst:the return value for the set of parsed nodes
    Returns:0 if the entity is well formed, -1 in case of args problem and the parser error code otherwise

    Function: xmlParseDTD

    xmlDtdPtr	xmlParseDTD		(const xmlChar * ExternalID, 
    const xmlChar * SystemID)
    -

    Load and parse an external subset.

    -
    ExternalID:a NAME* containing the External ID of the DTD
    SystemID:a NAME* containing the URL to the DTD
    Returns:the resulting xmlDtdPtr or NULL in case of error.

    Function: xmlParseDoc

    xmlDocPtr	xmlParseDoc		(const xmlChar * cur)
    -

    parse an XML in-memory document and build a tree.

    -
    cur:a pointer to an array of xmlChar
    Returns:the resulting document tree

    Function: xmlParseDocument

    int	xmlParseDocument		(xmlParserCtxtPtr ctxt)
    -

    parse an XML document (and build a tree if using the standard SAX interface). [1] document ::= prolog element Misc* [22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)?

    -
    ctxt:an XML parser context
    Returns:0, -1 in case of error. the parser context is augmented as a result of the parsing.

    Function: xmlParseEntity

    xmlDocPtr	xmlParseEntity		(const char * filename)
    -

    parse an XML external entity out of context and build a tree. [78] extParsedEnt ::= TextDecl? content This correspond to a "Well Balanced" chunk

    -
    filename:the filename
    Returns:the resulting document tree

    Function: xmlParseExtParsedEnt

    int	xmlParseExtParsedEnt		(xmlParserCtxtPtr ctxt)
    -

    parse a general parsed entity An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content

    -
    ctxt:an XML parser context
    Returns:0, -1 in case of error. the parser context is augmented as a result of the parsing.

    Function: xmlParseExternalEntity

    int	xmlParseExternalEntity		(xmlDocPtr doc, 
    xmlSAXHandlerPtr sax,
    void * user_data,
    int depth,
    const xmlChar * URL,
    const xmlChar * ID,
    xmlNodePtr * lst)
    -

    Parse an external general entity An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content

    -
    doc:the document the chunk pertains to
    sax:the SAX handler bloc (possibly NULL)
    user_data:The user data returned on SAX callbacks (possibly NULL)
    depth:Used for loop detection, use 0
    URL:the URL for the entity to load
    ID:the System ID for the entity to load
    lst:the return value for the set of parsed nodes
    Returns:0 if the entity is well formed, -1 in case of args problem and the parser error code otherwise

    Function: xmlParseFile

    xmlDocPtr	xmlParseFile		(const char * filename)
    -

    parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

    -
    filename:the filename
    Returns:the resulting document tree if the file was wellformed, NULL otherwise.

    Function: xmlParseInNodeContext

    xmlParserErrors	xmlParseInNodeContext	(xmlNodePtr node, 
    const char * data,
    int datalen,
    int options,
    xmlNodePtr * lst)
    -

    Parse a well-balanced chunk of an XML document within the context (DTD, namespaces, etc ...) of the given node. The allowed sequence for the data is a Well Balanced Chunk defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

    -
    node:the context node
    data:the input string
    datalen:the input string length in bytes
    options:a combination of xmlParserOption
    lst:the return value for the set of parsed nodes
    Returns:XML_ERR_OK if the chunk is well balanced, and the parser error code otherwise

    Function: xmlParseMemory

    xmlDocPtr	xmlParseMemory		(const char * buffer, 
    int size)
    -

    parse an XML in-memory block and build a tree.

    -
    buffer:an pointer to a char array
    size:the size of the array
    Returns:the resulting document tree

    Function: xmlParserAddNodeInfo

    void	xmlParserAddNodeInfo		(xmlParserCtxtPtr ctxt, 
    const xmlParserNodeInfoPtr info)
    -

    Insert node info record into the sorted sequence

    -
    ctxt:an XML parser context
    info:a node info sequence pointer

    Function: xmlParserFindNodeInfo

    const xmlParserNodeInfo *	xmlParserFindNodeInfo	(const xmlParserCtxtPtr ctx, 
    const xmlNodePtr node)
    -

    Find the parser node info struct for a given node

    -
    ctx:an XML parser context
    node:an XML node within the tree
    Returns:an xmlParserNodeInfo block pointer or NULL

    Function: xmlParserFindNodeInfoIndex

    unsigned long	xmlParserFindNodeInfoIndex	(const xmlParserNodeInfoSeqPtr seq, 
    const xmlNodePtr node)
    -

    xmlParserFindNodeInfoIndex : Find the index that the info record for the given node is or should be at in a sorted sequence

    -
    seq:a node info sequence pointer
    node:an XML node pointer
    Returns:a long indicating the position of the record

    Function type: xmlParserInputDeallocate

    Function type: xmlParserInputDeallocate
    -void	xmlParserInputDeallocate	(xmlChar * str)
    -

    Callback for freeing some parser input allocations.

    str:the string to deallocate

    -

    Function: xmlParserInputGrow

    int	xmlParserInputGrow		(xmlParserInputPtr in, 
    int len)
    -

    This function increase the input for the parser. It tries to preserve pointers to the input buffer, and keep already read data

    -
    in:an XML parser input
    len:an indicative size for the lookahead
    Returns:the number of xmlChars read, or -1 in case of error, 0 indicate the end of this entity

    Function: xmlParserInputRead

    int	xmlParserInputRead		(xmlParserInputPtr in, 
    int len)
    -

    This function refresh the input for the parser. It doesn't try to preserve pointers to the input buffer, and discard already read data

    -
    in:an XML parser input
    len:an indicative size for the lookahead
    Returns:the number of xmlChars read, or -1 in case of error, 0 indicate the end of this entity

    Function: xmlPedanticParserDefault

    int	xmlPedanticParserDefault	(int val)
    -

    Set and return the previous value for enabling pedantic warnings.

    -
    val:int 0 or 1
    Returns:the last value for 0 for no substitution, 1 for substitution.

    Function: xmlReadDoc

    xmlDocPtr	xmlReadDoc		(const xmlChar * cur, 
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML in-memory document and build a tree.

    -
    cur:a pointer to a zero terminated string
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree

    Function: xmlReadFd

    xmlDocPtr	xmlReadFd		(int fd, 
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML from a file descriptor and build a tree. NOTE that the file descriptor will not be closed when the reader is closed or reset.

    -
    fd:an open file descriptor
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree

    Function: xmlReadFile

    xmlDocPtr	xmlReadFile		(const char * filename, 
    const char * encoding,
    int options)
    -

    parse an XML file from the filesystem or the network.

    -
    filename:a file or URL
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree

    Function: xmlReadIO

    xmlDocPtr	xmlReadIO		(xmlInputReadCallback ioread, 
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML document from I/O functions and source and build a tree.

    -
    ioread:an I/O read function
    ioclose:an I/O close function
    ioctx:an I/O handler
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree

    Function: xmlReadMemory

    xmlDocPtr	xmlReadMemory		(const char * buffer, 
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -

    parse an XML in-memory document and build a tree.

    -
    buffer:a pointer to a char array
    size:the size of the array
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the resulting document tree

    Function: xmlRecoverDoc

    xmlDocPtr	xmlRecoverDoc		(xmlChar * cur)
    -

    parse an XML in-memory document and build a tree. In the case the document is not Well Formed, a tree is built anyway

    -
    cur:a pointer to an array of xmlChar
    Returns:the resulting document tree

    Function: xmlRecoverFile

    xmlDocPtr	xmlRecoverFile		(const char * filename)
    -

    parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. In the case the document is not Well Formed, a tree is built anyway

    -
    filename:the filename
    Returns:the resulting document tree

    Function: xmlRecoverMemory

    xmlDocPtr	xmlRecoverMemory	(const char * buffer, 
    int size)
    -

    parse an XML in-memory block and build a tree. In the case the document is not Well Formed, a tree is built anyway

    -
    buffer:an pointer to a char array
    size:the size of the array
    Returns:the resulting document tree

    Function: xmlSAXParseDTD

    xmlDtdPtr	xmlSAXParseDTD		(xmlSAXHandlerPtr sax, 
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    Load and parse an external subset.

    -
    sax:the SAX handler block
    ExternalID:a NAME* containing the External ID of the DTD
    SystemID:a NAME* containing the URL to the DTD
    Returns:the resulting xmlDtdPtr or NULL in case of error.

    Function: xmlSAXParseDoc

    xmlDocPtr	xmlSAXParseDoc		(xmlSAXHandlerPtr sax, 
    const xmlChar * cur,
    int recovery)
    -

    parse an XML in-memory document and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.

    -
    sax:the SAX handler block
    cur:a pointer to an array of xmlChar
    recovery:work in recovery mode, i.e. tries to read no Well Formed documents
    Returns:the resulting document tree

    Function: xmlSAXParseEntity

    xmlDocPtr	xmlSAXParseEntity	(xmlSAXHandlerPtr sax, 
    const char * filename)
    -

    parse an XML external entity out of context and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. [78] extParsedEnt ::= TextDecl? content This correspond to a "Well Balanced" chunk

    -
    sax:the SAX handler block
    filename:the filename
    Returns:the resulting document tree

    Function: xmlSAXParseFile

    xmlDocPtr	xmlSAXParseFile		(xmlSAXHandlerPtr sax, 
    const char * filename,
    int recovery)
    -

    parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.

    -
    sax:the SAX handler block
    filename:the filename
    recovery:work in recovery mode, i.e. tries to read no Well Formed documents
    Returns:the resulting document tree

    Function: xmlSAXParseFileWithData

    xmlDocPtr	xmlSAXParseFileWithData	(xmlSAXHandlerPtr sax, 
    const char * filename,
    int recovery,
    void * data)
    -

    parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. User data (void *) is stored within the parser context in the context's _private member, so it is available nearly everywhere in libxml

    -
    sax:the SAX handler block
    filename:the filename
    recovery:work in recovery mode, i.e. tries to read no Well Formed documents
    data:the userdata
    Returns:the resulting document tree

    Function: xmlSAXParseMemory

    xmlDocPtr	xmlSAXParseMemory	(xmlSAXHandlerPtr sax, 
    const char * buffer,
    int size,
    int recovery)
    -

    parse an XML in-memory block and use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.

    -
    sax:the SAX handler block
    buffer:an pointer to a char array
    size:the size of the array
    recovery:work in recovery mode, i.e. tries to read not Well Formed documents
    Returns:the resulting document tree

    Function: xmlSAXParseMemoryWithData

    xmlDocPtr	xmlSAXParseMemoryWithData	(xmlSAXHandlerPtr sax, 
    const char * buffer,
    int size,
    int recovery,
    void * data)
    -

    parse an XML in-memory block and use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. User data (void *) is stored within the parser context in the context's _private member, so it is available nearly everywhere in libxml

    -
    sax:the SAX handler block
    buffer:an pointer to a char array
    size:the size of the array
    recovery:work in recovery mode, i.e. tries to read no Well Formed documents
    data:the userdata
    Returns:the resulting document tree

    Function: xmlSAXUserParseFile

    int	xmlSAXUserParseFile		(xmlSAXHandlerPtr sax, 
    void * user_data,
    const char * filename)
    -

    parse an XML file and call the given SAX handler routines. Automatic support for ZLIB/Compress compressed document is provided

    -
    sax:a SAX handler
    user_data:The user data returned on SAX callbacks
    filename:a file name
    Returns:0 in case of success or a error number otherwise

    Function: xmlSAXUserParseMemory

    int	xmlSAXUserParseMemory		(xmlSAXHandlerPtr sax, 
    void * user_data,
    const char * buffer,
    int size)
    -

    A better SAX parsing routine. parse an XML in-memory buffer and call the given SAX handler routines.

    -
    sax:a SAX handler
    user_data:The user data returned on SAX callbacks
    buffer:an in-memory XML document input
    size:the length of the XML document in bytes
    Returns:0 in case of success or a error number otherwise

    Function: xmlSetExternalEntityLoader

    void	xmlSetExternalEntityLoader	(xmlExternalEntityLoader f)
    -

    Changes the defaultexternal entity resolver function for the application

    -
    f:the new entity resolver function

    Function: xmlSetFeature

    int	xmlSetFeature			(xmlParserCtxtPtr ctxt, 
    const char * name,
    void * value)
    -

    Change the current value of one feature of this parser instance

    -
    ctxt:an XML/HTML parser context
    name:the feature name
    value:pointer to the location of the new value
    Returns:-1 in case or error, 0 otherwise

    Function: xmlSetupParserForBuffer

    void	xmlSetupParserForBuffer		(xmlParserCtxtPtr ctxt, 
    const xmlChar * buffer,
    const char * filename)
    -

    Setup the parser context to parse a new buffer; Clears any prior contents from the parser context. The buffer parameter must not be NULL, but the filename parameter can be

    -
    ctxt:an XML parser context
    buffer:a xmlChar * buffer
    filename:a file name

    Function: xmlStopParser

    void	xmlStopParser			(xmlParserCtxtPtr ctxt)
    -

    Blocks further parser processing

    -
    ctxt:an XML parser context

    Function: xmlSubstituteEntitiesDefault

    int	xmlSubstituteEntitiesDefault	(int val)
    -

    Set and return the previous value for default entity support. Initially the parser always keep entity references instead of substituting entity values in the output. This function has to be used to change the default parser behavior SAX::substituteEntities() has to be used for changing that on a file by file basis.

    -
    val:int 0 or 1
    Returns:the last value for 0 for no substitution, 1 for substitution.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-parserInternals.html b/src/tools/docbook/libxml2/doc/html/libxml-parserInternals.html deleted file mode 100644 index f725f29b32..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-parserInternals.html +++ /dev/null @@ -1,318 +0,0 @@ - - -Module parserInternals from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module parserInternals from libxml2

    API Menu
    API Indexes
    Related links

    this module exports a number of internal parsing routines they are not really all intended for applications but can prove useful doing low level processing.

    Table of Contents

    #define INPUT_CHUNK
    #define IS_ASCII_DIGIT
    #define IS_ASCII_LETTER
    #define IS_BASECHAR
    #define IS_BLANK
    #define IS_BLANK_CH
    #define IS_BYTE_CHAR
    #define IS_CHAR
    #define IS_CHAR_CH
    #define IS_COMBINING
    #define IS_COMBINING_CH
    #define IS_DIGIT
    #define IS_DIGIT_CH
    #define IS_EXTENDER
    #define IS_EXTENDER_CH
    #define IS_IDEOGRAPHIC
    #define IS_LETTER
    #define IS_LETTER_CH
    #define IS_PUBIDCHAR
    #define IS_PUBIDCHAR_CH
    #define MOVETO_ENDTAG
    #define MOVETO_STARTTAG
    #define SKIP_EOL
    #define XML_MAX_NAMELEN
    #define XML_SUBSTITUTE_BOTH
    #define XML_SUBSTITUTE_NONE
    #define XML_SUBSTITUTE_PEREF
    #define XML_SUBSTITUTE_REF
    htmlParserCtxtPtr	htmlCreateFileParserCtxt	(const char * filename, 
    const char * encoding)
    -
    void	htmlInitAutoClose		(void)
    -
    xmlParserInputPtr	inputPop	(xmlParserCtxtPtr ctxt)
    -
    int	inputPush			(xmlParserCtxtPtr ctxt, 
    xmlParserInputPtr value)
    -
    const xmlChar *	namePop			(xmlParserCtxtPtr ctxt)
    -
    int	namePush			(xmlParserCtxtPtr ctxt, 
    const xmlChar * value)
    -
    xmlNodePtr	nodePop			(xmlParserCtxtPtr ctxt)
    -
    int	nodePush			(xmlParserCtxtPtr ctxt, 
    xmlNodePtr value)
    -
    int	xmlCheckLanguageID		(const xmlChar * lang)
    -
    int	xmlCopyChar			(int len, 
    xmlChar * out,
    int val)
    -
    int	xmlCopyCharMultiByte		(xmlChar * out, 
    int val)
    -
    xmlParserCtxtPtr	xmlCreateEntityParserCtxt	(const xmlChar * URL, 
    const xmlChar * ID,
    const xmlChar * base)
    -
    xmlParserCtxtPtr	xmlCreateFileParserCtxt	(const char * filename)
    -
    xmlParserCtxtPtr	xmlCreateMemoryParserCtxt	(const char * buffer, 
    int size)
    -
    xmlParserCtxtPtr	xmlCreateURLParserCtxt	(const char * filename, 
    int options)
    -
    int	xmlCurrentChar			(xmlParserCtxtPtr ctxt, 
    int * len)
    -
    xmlChar *	xmlDecodeEntities	(xmlParserCtxtPtr ctxt, 
    int len,
    int what,
    xmlChar end,
    xmlChar end2,
    xmlChar end3)
    -
    Function type: xmlEntityReferenceFunc
    -void	xmlEntityReferenceFunc		(xmlEntityPtr ent, 
    xmlNodePtr firstNode,
    xmlNodePtr lastNode) -
    -
    void	xmlErrMemory			(xmlParserCtxtPtr ctxt, 
    const char * extra)
    -
    void	xmlFreeInputStream		(xmlParserInputPtr input)
    -
    void	xmlHandleEntity			(xmlParserCtxtPtr ctxt, 
    xmlEntityPtr entity)
    -
    int	xmlIsLetter			(int c)
    -
    xmlChar *	xmlNamespaceParseNCName	(xmlParserCtxtPtr ctxt)
    -
    xmlChar *	xmlNamespaceParseNSDef	(xmlParserCtxtPtr ctxt)
    -
    xmlChar *	xmlNamespaceParseQName	(xmlParserCtxtPtr ctxt, 
    xmlChar ** prefix)
    -
    xmlParserInputPtr	xmlNewEntityInputStream	(xmlParserCtxtPtr ctxt, 
    xmlEntityPtr entity)
    -
    xmlParserInputPtr	xmlNewInputFromFile	(xmlParserCtxtPtr ctxt, 
    const char * filename)
    -
    xmlParserInputPtr	xmlNewInputStream	(xmlParserCtxtPtr ctxt)
    -
    xmlParserInputPtr	xmlNewStringInputStream	(xmlParserCtxtPtr ctxt, 
    const xmlChar * buffer)
    -
    void	xmlNextChar			(xmlParserCtxtPtr ctxt)
    -
    xmlChar *	xmlParseAttValue	(xmlParserCtxtPtr ctxt)
    -
    const xmlChar *	xmlParseAttribute	(xmlParserCtxtPtr ctxt, 
    xmlChar ** value)
    -
    void	xmlParseAttributeListDecl	(xmlParserCtxtPtr ctxt)
    -
    int	xmlParseAttributeType		(xmlParserCtxtPtr ctxt, 
    xmlEnumerationPtr * tree)
    -
    void	xmlParseCDSect			(xmlParserCtxtPtr ctxt)
    -
    void	xmlParseCharData		(xmlParserCtxtPtr ctxt, 
    int cdata)
    -
    int	xmlParseCharRef			(xmlParserCtxtPtr ctxt)
    -
    void	xmlParseComment			(xmlParserCtxtPtr ctxt)
    -
    void	xmlParseContent			(xmlParserCtxtPtr ctxt)
    -
    int	xmlParseDefaultDecl		(xmlParserCtxtPtr ctxt, 
    xmlChar ** value)
    -
    void	xmlParseDocTypeDecl		(xmlParserCtxtPtr ctxt)
    -
    void	xmlParseElement			(xmlParserCtxtPtr ctxt)
    -
    xmlElementContentPtr	xmlParseElementChildrenContentDecl	(xmlParserCtxtPtr ctxt, 
    int inputchk)
    -
    int	xmlParseElementContentDecl	(xmlParserCtxtPtr ctxt, 
    const xmlChar * name,
    xmlElementContentPtr * result)
    -
    int	xmlParseElementDecl		(xmlParserCtxtPtr ctxt)
    -
    xmlElementContentPtr	xmlParseElementMixedContentDecl	(xmlParserCtxtPtr ctxt, 
    int inputchk)
    -
    xmlChar *	xmlParseEncName		(xmlParserCtxtPtr ctxt)
    -
    const xmlChar *	xmlParseEncodingDecl	(xmlParserCtxtPtr ctxt)
    -
    void	xmlParseEndTag			(xmlParserCtxtPtr ctxt)
    -
    void	xmlParseEntityDecl		(xmlParserCtxtPtr ctxt)
    -
    xmlEntityPtr	xmlParseEntityRef	(xmlParserCtxtPtr ctxt)
    -
    xmlChar *	xmlParseEntityValue	(xmlParserCtxtPtr ctxt, 
    xmlChar ** orig)
    -
    int	xmlParseEnumeratedType		(xmlParserCtxtPtr ctxt, 
    xmlEnumerationPtr * tree)
    -
    xmlEnumerationPtr	xmlParseEnumerationType	(xmlParserCtxtPtr ctxt)
    -
    xmlChar *	xmlParseExternalID	(xmlParserCtxtPtr ctxt, 
    xmlChar ** publicID,
    int strict)
    -
    void	xmlParseExternalSubset		(xmlParserCtxtPtr ctxt, 
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -
    void	xmlParseMarkupDecl		(xmlParserCtxtPtr ctxt)
    -
    void	xmlParseMisc			(xmlParserCtxtPtr ctxt)
    -
    const xmlChar *	xmlParseName		(xmlParserCtxtPtr ctxt)
    -
    void	xmlParseNamespace		(xmlParserCtxtPtr ctxt)
    -
    xmlChar *	xmlParseNmtoken		(xmlParserCtxtPtr ctxt)
    -
    void	xmlParseNotationDecl		(xmlParserCtxtPtr ctxt)
    -
    xmlEnumerationPtr	xmlParseNotationType	(xmlParserCtxtPtr ctxt)
    -
    void	xmlParsePEReference		(xmlParserCtxtPtr ctxt)
    -
    void	xmlParsePI			(xmlParserCtxtPtr ctxt)
    -
    const xmlChar *	xmlParsePITarget	(xmlParserCtxtPtr ctxt)
    -
    xmlChar *	xmlParsePubidLiteral	(xmlParserCtxtPtr ctxt)
    -
    xmlChar *	xmlParseQuotedString	(xmlParserCtxtPtr ctxt)
    -
    void	xmlParseReference		(xmlParserCtxtPtr ctxt)
    -
    int	xmlParseSDDecl			(xmlParserCtxtPtr ctxt)
    -
    const xmlChar *	xmlParseStartTag	(xmlParserCtxtPtr ctxt)
    -
    xmlChar *	xmlParseSystemLiteral	(xmlParserCtxtPtr ctxt)
    -
    void	xmlParseTextDecl		(xmlParserCtxtPtr ctxt)
    -
    xmlChar *	xmlParseVersionInfo	(xmlParserCtxtPtr ctxt)
    -
    xmlChar *	xmlParseVersionNum	(xmlParserCtxtPtr ctxt)
    -
    void	xmlParseXMLDecl			(xmlParserCtxtPtr ctxt)
    -
    void	xmlParserHandlePEReference	(xmlParserCtxtPtr ctxt)
    -
    void	xmlParserHandleReference	(xmlParserCtxtPtr ctxt)
    -
    void	xmlParserInputShrink		(xmlParserInputPtr in)
    -
    xmlChar	xmlPopInput			(xmlParserCtxtPtr ctxt)
    -
    void	xmlPushInput			(xmlParserCtxtPtr ctxt, 
    xmlParserInputPtr input)
    -
    xmlChar *	xmlScanName		(xmlParserCtxtPtr ctxt)
    -
    void	xmlSetEntityReferenceFunc	(xmlEntityReferenceFunc func)
    -
    int	xmlSkipBlankChars		(xmlParserCtxtPtr ctxt)
    -
    xmlChar *	xmlSplitQName		(xmlParserCtxtPtr ctxt, 
    const xmlChar * name,
    xmlChar ** prefix)
    -
    int	xmlStringCurrentChar		(xmlParserCtxtPtr ctxt, 
    const xmlChar * cur,
    int * len)
    -
    xmlChar *	xmlStringDecodeEntities	(xmlParserCtxtPtr ctxt, 
    const xmlChar * str,
    int what,
    xmlChar end,
    xmlChar end2,
    xmlChar end3)
    -
    xmlChar *	xmlStringLenDecodeEntities	(xmlParserCtxtPtr ctxt, 
    const xmlChar * str,
    int len,
    int what,
    xmlChar end,
    xmlChar end2,
    xmlChar end3)
    -
    int	xmlSwitchEncoding		(xmlParserCtxtPtr ctxt, 
    xmlCharEncoding enc)
    -
    int	xmlSwitchInputEncoding		(xmlParserCtxtPtr ctxt, 
    xmlParserInputPtr input,
    xmlCharEncodingHandlerPtr handler)
    -
    int	xmlSwitchToEncoding		(xmlParserCtxtPtr ctxt, 
    xmlCharEncodingHandlerPtr handler)
    -

    Description

    -

    Macro: INPUT_CHUNK

    #define INPUT_CHUNK

    The parser tries to always have that amount of input ready. One of the point is providing context when reporting errors.

    -

    Macro: IS_ASCII_DIGIT

    #define IS_ASCII_DIGIT

    Macro to check [0-9]

    -

    Macro: IS_ASCII_LETTER

    #define IS_ASCII_LETTER

    Macro to check [a-zA-Z]

    -

    Macro: IS_BASECHAR

    #define IS_BASECHAR

    Macro to check the following production in the XML spec: [85] BaseChar ::= ... long list see REC ...

    -

    Macro: IS_BLANK

    #define IS_BLANK

    Macro to check the following production in the XML spec: [3] S ::= (#x20 | #x9 | #xD | #xA)+

    -

    Macro: IS_BLANK_CH

    #define IS_BLANK_CH

    Behaviour same as IS_BLANK

    -

    Macro: IS_BYTE_CHAR

    #define IS_BYTE_CHAR

    Macro to check the following production in the XML spec: [2] Char ::= #x9 | #xA | #xD | [#x20...] any byte character in the accepted range

    -

    Macro: IS_CHAR

    #define IS_CHAR

    Macro to check the following production in the XML spec: [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] any Unicode character, excluding the surrogate blocks, FFFE, and FFFF.

    -

    Macro: IS_CHAR_CH

    #define IS_CHAR_CH

    Behaves like IS_CHAR on single-byte value

    -

    Macro: IS_COMBINING

    #define IS_COMBINING

    Macro to check the following production in the XML spec: [87] CombiningChar ::= ... long list see REC ...

    -

    Macro: IS_COMBINING_CH

    #define IS_COMBINING_CH

    Always false (all combining chars > 0xff)

    -

    Macro: IS_DIGIT

    #define IS_DIGIT

    Macro to check the following production in the XML spec: [88] Digit ::= ... long list see REC ...

    -

    Macro: IS_DIGIT_CH

    #define IS_DIGIT_CH

    Behaves like IS_DIGIT but with a single byte argument

    -

    Macro: IS_EXTENDER

    #define IS_EXTENDER

    Macro to check the following production in the XML spec: [89] Extender ::= #x00B7 | #x02D0 | #x02D1 | #x0387 | #x0640 | #x0E46 | #x0EC6 | #x3005 | [#x3031-#x3035] | [#x309D-#x309E] | [#x30FC-#x30FE]

    -

    Macro: IS_EXTENDER_CH

    #define IS_EXTENDER_CH

    Behaves like IS_EXTENDER but with a single-byte argument

    -

    Macro: IS_IDEOGRAPHIC

    #define IS_IDEOGRAPHIC

    Macro to check the following production in the XML spec: [86] Ideographic ::= [#x4E00-#x9FA5] | #x3007 | [#x3021-#x3029]

    -

    Macro: IS_LETTER

    #define IS_LETTER

    Macro to check the following production in the XML spec: [84] Letter ::= BaseChar | Ideographic

    -

    Macro: IS_LETTER_CH

    #define IS_LETTER_CH

    Macro behaves like IS_LETTER, but only check base chars

    -

    Macro: IS_PUBIDCHAR

    #define IS_PUBIDCHAR

    Macro to check the following production in the XML spec: [13] PubidChar ::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%]

    -

    Macro: IS_PUBIDCHAR_CH

    #define IS_PUBIDCHAR_CH

    Same as IS_PUBIDCHAR but for single-byte value

    -

    Macro: MOVETO_ENDTAG

    #define MOVETO_ENDTAG

    Skips to the next '>' char.

    -

    Macro: MOVETO_STARTTAG

    #define MOVETO_STARTTAG

    Skips to the next '<' char.

    -

    Macro: SKIP_EOL

    #define SKIP_EOL

    Skips the end of line chars.

    -

    Macro: XML_MAX_NAMELEN

    #define XML_MAX_NAMELEN

    Identifiers can be longer, but this will be more costly at runtime.

    -

    Macro: XML_SUBSTITUTE_BOTH

    #define XML_SUBSTITUTE_BOTH

    Both general and parameter entities need to be substituted.

    -

    Macro: XML_SUBSTITUTE_NONE

    #define XML_SUBSTITUTE_NONE

    If no entities need to be substituted.

    -

    Macro: XML_SUBSTITUTE_PEREF

    #define XML_SUBSTITUTE_PEREF

    Whether parameter entities need to be substituted.

    -

    Macro: XML_SUBSTITUTE_REF

    #define XML_SUBSTITUTE_REF

    Whether general entities need to be substituted.

    -

    Function: htmlCreateFileParserCtxt

    htmlParserCtxtPtr	htmlCreateFileParserCtxt	(const char * filename, 
    const char * encoding)
    -

    Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

    -
    filename:the filename
    encoding:a free form C string describing the HTML document encoding, or NULL
    Returns:the new parser context or NULL

    Function: htmlInitAutoClose

    void	htmlInitAutoClose		(void)
    -

    Initialize the htmlStartCloseIndex for fast lookup of closing tags names. This is not reentrant. Call xmlInitParser() once before processing in case of use in multithreaded programs.

    -

    Function: inputPop

    xmlParserInputPtr	inputPop	(xmlParserCtxtPtr ctxt)
    -

    Pops the top parser input from the input stack

    -
    ctxt:an XML parser context
    Returns:the input just removed

    Function: inputPush

    int	inputPush			(xmlParserCtxtPtr ctxt, 
    xmlParserInputPtr value)
    -

    Pushes a new parser input on top of the input stack

    -
    ctxt:an XML parser context
    value:the parser input
    Returns:0 in case of error, the index in the stack otherwise

    Function: namePop

    const xmlChar *	namePop			(xmlParserCtxtPtr ctxt)
    -

    Pops the top element name from the name stack

    -
    ctxt:an XML parser context
    Returns:the name just removed

    Function: namePush

    int	namePush			(xmlParserCtxtPtr ctxt, 
    const xmlChar * value)
    -

    Pushes a new element name on top of the name stack

    -
    ctxt:an XML parser context
    value:the element name
    Returns:-1 in case of error, the index in the stack otherwise

    Function: nodePop

    xmlNodePtr	nodePop			(xmlParserCtxtPtr ctxt)
    -

    Pops the top element node from the node stack

    -
    ctxt:an XML parser context
    Returns:the node just removed

    Function: nodePush

    int	nodePush			(xmlParserCtxtPtr ctxt, 
    xmlNodePtr value)
    -

    Pushes a new element node on top of the node stack

    -
    ctxt:an XML parser context
    value:the element node
    Returns:0 in case of error, the index in the stack otherwise

    Function: xmlCheckLanguageID

    int	xmlCheckLanguageID		(const xmlChar * lang)
    -

    Checks that the value conforms to the LanguageID production: NOTE: this is somewhat deprecated, those productions were removed from the XML Second edition. [33] LanguageID ::= Langcode ('-' Subcode)* [34] Langcode ::= ISO639Code | IanaCode | UserCode [35] ISO639Code ::= ([a-z] | [A-Z]) ([a-z] | [A-Z]) [36] IanaCode ::= ('i' | 'I') '-' ([a-z] | [A-Z])+ [37] UserCode ::= ('x' | 'X') '-' ([a-z] | [A-Z])+ [38] Subcode ::= ([a-z] | [A-Z])+

    -
    lang:pointer to the string value
    Returns:1 if correct 0 otherwise

    Function: xmlCopyChar

    int	xmlCopyChar			(int len, 
    xmlChar * out,
    int val)
    -

    append the char value in the array

    -
    len:Ignored, compatibility
    out:pointer to an array of xmlChar
    val:the char value
    Returns:the number of xmlChar written

    Function: xmlCopyCharMultiByte

    int	xmlCopyCharMultiByte		(xmlChar * out, 
    int val)
    -

    append the char value in the array

    -
    out:pointer to an array of xmlChar
    val:the char value
    Returns:the number of xmlChar written

    Function: xmlCreateEntityParserCtxt

    xmlParserCtxtPtr	xmlCreateEntityParserCtxt	(const xmlChar * URL, 
    const xmlChar * ID,
    const xmlChar * base)
    -

    Create a parser context for an external entity Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

    -
    URL:the entity URL
    ID:the entity PUBLIC ID
    base:a possible base for the target URI
    Returns:the new parser context or NULL

    Function: xmlCreateFileParserCtxt

    xmlParserCtxtPtr	xmlCreateFileParserCtxt	(const char * filename)
    -

    Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

    -
    filename:the filename
    Returns:the new parser context or NULL

    Function: xmlCreateMemoryParserCtxt

    xmlParserCtxtPtr	xmlCreateMemoryParserCtxt	(const char * buffer, 
    int size)
    -

    Create a parser context for an XML in-memory document.

    -
    buffer:a pointer to a char array
    size:the size of the array
    Returns:the new parser context or NULL

    Function: xmlCreateURLParserCtxt

    xmlParserCtxtPtr	xmlCreateURLParserCtxt	(const char * filename, 
    int options)
    -

    Create a parser context for a file or URL content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time and for file accesses

    -
    filename:the filename or URL
    options:a combination of xmlParserOption
    Returns:the new parser context or NULL

    Function: xmlCurrentChar

    int	xmlCurrentChar			(xmlParserCtxtPtr ctxt, 
    int * len)
    -

    The current char value, if using UTF-8 this may actually span multiple bytes in the input buffer. Implement the end of line normalization: 2.11 End-of-Line Handling Wherever an external parsed entity or the literal entity value of an internal parsed entity contains either the literal two-character sequence "#xD#xA" or a standalone literal #xD, an XML processor must pass to the application the single character #xA. This behavior can conveniently be produced by normalizing all line breaks to #xA on input, before parsing.)

    -
    ctxt:the XML parser context
    len:pointer to the length of the char read
    Returns:the current char value and its length

    Function: xmlDecodeEntities

    xmlChar *	xmlDecodeEntities	(xmlParserCtxtPtr ctxt, 
    int len,
    int what,
    xmlChar end,
    xmlChar end2,
    xmlChar end3)
    -

    This function is deprecated, we now always process entities content through xmlStringDecodeEntities TODO: remove it in next major release. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';'

    -
    ctxt:the parser context
    len:the len to decode (in bytes !), -1 for no size limit
    what:combination of XML_SUBSTITUTE_REF and XML_SUBSTITUTE_PEREF
    end:an end marker xmlChar, 0 if none
    end2:an end marker xmlChar, 0 if none
    end3:an end marker xmlChar, 0 if none
    Returns:A newly allocated string with the substitution done. The caller must deallocate it !

    Function type: xmlEntityReferenceFunc

    Function type: xmlEntityReferenceFunc
    -void	xmlEntityReferenceFunc		(xmlEntityPtr ent, 
    xmlNodePtr firstNode,
    xmlNodePtr lastNode) -

    Callback function used when one needs to be able to track back the provenance of a chunk of nodes inherited from an entity replacement.

    ent:the entity
    firstNode:the fist node in the chunk
    lastNode:the last nod in the chunk

    -

    Function: xmlErrMemory

    void	xmlErrMemory			(xmlParserCtxtPtr ctxt, 
    const char * extra)
    -

    Handle a redefinition of attribute error

    -
    ctxt:an XML parser context
    extra:extra informations

    Function: xmlFreeInputStream

    void	xmlFreeInputStream		(xmlParserInputPtr input)
    -

    Free up an input stream.

    -

    Function: xmlHandleEntity

    void	xmlHandleEntity			(xmlParserCtxtPtr ctxt, 
    xmlEntityPtr entity)
    -

    Default handling of defined entities, when should we define a new input stream ? When do we just handle that as a set of chars ? OBSOLETE: to be removed at some point.

    -
    ctxt:an XML parser context
    entity:an XML entity pointer.

    Function: xmlIsLetter

    int	xmlIsLetter			(int c)
    -

    Check whether the character is allowed by the production [84] Letter ::= BaseChar | Ideographic

    -
    c:an unicode character (int)
    Returns:0 if not, non-zero otherwise

    Function: xmlNamespaceParseNCName

    xmlChar *	xmlNamespaceParseNCName	(xmlParserCtxtPtr ctxt)
    -

    parse an XML namespace name. TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. [NS 3] NCName ::= (Letter | '_') (NCNameChar)* [NS 4] NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender

    -
    ctxt:an XML parser context
    Returns:the namespace name or NULL

    Function: xmlNamespaceParseNSDef

    xmlChar *	xmlNamespaceParseNSDef	(xmlParserCtxtPtr ctxt)
    -

    parse a namespace prefix declaration TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. [NS 1] NSDef ::= PrefixDef Eq SystemLiteral [NS 2] PrefixDef ::= 'xmlns' (':' NCName)?

    -
    ctxt:an XML parser context
    Returns:the namespace name

    Function: xmlNamespaceParseQName

    xmlChar *	xmlNamespaceParseQName	(xmlParserCtxtPtr ctxt, 
    xmlChar ** prefix)
    -

    TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. parse an XML qualified name [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName

    -
    ctxt:an XML parser context
    prefix:a xmlChar **
    Returns:the local part, and prefix is updated to get the Prefix if any.

    Function: xmlNewEntityInputStream

    xmlParserInputPtr	xmlNewEntityInputStream	(xmlParserCtxtPtr ctxt, 
    xmlEntityPtr entity)
    -

    Create a new input stream based on an xmlEntityPtr

    -
    ctxt:an XML parser context
    entity:an Entity pointer
    Returns:the new input stream or NULL

    Function: xmlNewInputFromFile

    xmlParserInputPtr	xmlNewInputFromFile	(xmlParserCtxtPtr ctxt, 
    const char * filename)
    -

    Create a new input stream based on a file or an URL.

    -
    ctxt:an XML parser context
    filename:the filename to use as entity
    Returns:the new input stream or NULL in case of error

    Function: xmlNewInputStream

    xmlParserInputPtr	xmlNewInputStream	(xmlParserCtxtPtr ctxt)
    -

    Create a new input stream structure

    -
    ctxt:an XML parser context
    Returns:the new input stream or NULL

    Function: xmlNewStringInputStream

    xmlParserInputPtr	xmlNewStringInputStream	(xmlParserCtxtPtr ctxt, 
    const xmlChar * buffer)
    -

    Create a new input stream based on a memory buffer.

    -
    ctxt:an XML parser context
    buffer:an memory buffer
    Returns:the new input stream

    Function: xmlNextChar

    void	xmlNextChar			(xmlParserCtxtPtr ctxt)
    -

    Skip to the next char input char.

    -
    ctxt:the XML parser context

    Function: xmlParseAttValue

    xmlChar *	xmlParseAttValue	(xmlParserCtxtPtr ctxt)
    -

    parse a value for an attribute Note: the parser won't do substitution of entities here, this will be handled later in xmlStringGetNodeList [10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'" 3.3.3 Attribute-Value Normalization: Before the value of an attribute is passed to the application or checked for validity, the XML processor must normalize it as follows: - a character reference is processed by appending the referenced character to the attribute value - an entity reference is processed by recursively processing the replacement text of the entity - a whitespace character (#x20, #xD, #xA, #x9) is processed by appending #x20 to the normalized value, except that only a single #x20 is appended for a "#xD#xA" sequence that is part of an external parsed entity or the literal entity value of an internal parsed entity - other characters are processed by appending them to the normalized value If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) characters by a single space (#x20) character. All attributes for which no declaration has been read should be treated by a non-validating parser as if declared CDATA.

    -
    ctxt:an XML parser context
    Returns:the AttValue parsed or NULL. The value has to be freed by the caller.

    Function: xmlParseAttribute

    const xmlChar *	xmlParseAttribute	(xmlParserCtxtPtr ctxt, 
    xmlChar ** value)
    -

    parse an attribute [41] Attribute ::= Name Eq AttValue [ WFC: No External Entity References ] Attribute values cannot contain direct or indirect entity references to external entities. [ WFC: No < in Attribute Values ] The replacement text of any entity referred to directly or indirectly in an attribute value (other than "&lt;") must not contain a <. [ VC: Attribute Value Type ] The attribute must have been declared; the value must be of the type declared for it. [25] Eq ::= S? '=' S? With namespace: [NS 11] Attribute ::= QName Eq AttValue Also the case QName == xmlns:??? is handled independently as a namespace definition.

    -
    ctxt:an XML parser context
    value:a xmlChar ** used to store the value of the attribute
    Returns:the attribute name, and the value in *value.

    Function: xmlParseAttributeListDecl

    void	xmlParseAttributeListDecl	(xmlParserCtxtPtr ctxt)
    -

    : parse the Attribute list def for an element [52] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>' [53] AttDef ::= S Name S AttType S DefaultDecl

    -
    ctxt:an XML parser context

    Function: xmlParseAttributeType

    int	xmlParseAttributeType		(xmlParserCtxtPtr ctxt, 
    xmlEnumerationPtr * tree)
    -

    parse the Attribute list def for an element [54] AttType ::= StringType | TokenizedType | EnumeratedType [55] StringType ::= 'CDATA' [56] TokenizedType ::= 'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' | 'ENTITIES' | 'NMTOKEN' | 'NMTOKENS' Validity constraints for attribute values syntax are checked in xmlValidateAttributeValue() [ VC: ID ] Values of type ID must match the Name production. A name must not appear more than once in an XML document as a value of this type; i.e., ID values must uniquely identify the elements which bear them. [ VC: One ID per Element Type ] No element type may have more than one ID attribute specified. [ VC: ID Attribute Default ] An ID attribute must have a declared default of #IMPLIED or #REQUIRED. [ VC: IDREF ] Values of type IDREF must match the Name production, and values of type IDREFS must match Names; each IDREF Name must match the value of an ID attribute on some element in the XML document; i.e. IDREF values must match the value of some ID attribute. [ VC: Entity Name ] Values of type ENTITY must match the Name production, values of type ENTITIES must match Names; each Entity Name must match the name of an unparsed entity declared in the DTD. [ VC: Name Token ] Values of type NMTOKEN must match the Nmtoken production; values of type NMTOKENS must match Nmtokens.

    -
    ctxt:an XML parser context
    tree:the enumeration tree built while parsing
    Returns:the attribute type

    Function: xmlParseCDSect

    void	xmlParseCDSect			(xmlParserCtxtPtr ctxt)
    -

    Parse escaped pure raw content. [18] CDSect ::= CDStart CData CDEnd [19] CDStart ::= '<![CDATA[' [20] Data ::= (Char* - (Char* ']]>' Char*)) [21] CDEnd ::= ']]>'

    -
    ctxt:an XML parser context

    Function: xmlParseCharData

    void	xmlParseCharData		(xmlParserCtxtPtr ctxt, 
    int cdata)
    -

    parse a CharData section. if we are within a CDATA section ']]>' marks an end of section. The right angle bracket (>) may be represented using the string "&gt;", and must, for compatibility, be escaped using "&gt;" or a character reference when it appears in the string "]]>" in content, when that string is not marking the end of a CDATA section. [14] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*)

    -
    ctxt:an XML parser context
    cdata:int indicating whether we are within a CDATA section

    Function: xmlParseCharRef

    int	xmlParseCharRef			(xmlParserCtxtPtr ctxt)
    -

    parse Reference declarations [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' [ WFC: Legal Character ] Characters referred to using character references must match the production for Char.

    -
    ctxt:an XML parser context
    Returns:the value parsed (as an int), 0 in case of error

    Function: xmlParseComment

    void	xmlParseComment			(xmlParserCtxtPtr ctxt)
    -

    Skip an XML (SGML) comment <!-- .... --> The spec says that "For compatibility, the string "--" (double-hyphen) must not occur within comments. " [15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'

    -
    ctxt:an XML parser context

    Function: xmlParseContent

    void	xmlParseContent			(xmlParserCtxtPtr ctxt)
    -

    Parse a content: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

    -
    ctxt:an XML parser context

    Function: xmlParseDefaultDecl

    int	xmlParseDefaultDecl		(xmlParserCtxtPtr ctxt, 
    xmlChar ** value)
    -

    Parse an attribute default declaration [60] DefaultDecl ::= '#REQUIRED' | '#IMPLIED' | (('#FIXED' S)? AttValue) [ VC: Required Attribute ] if the default declaration is the keyword #REQUIRED, then the attribute must be specified for all elements of the type in the attribute-list declaration. [ VC: Attribute Default Legal ] The declared default value must meet the lexical constraints of the declared attribute type c.f. xmlValidateAttributeDecl() [ VC: Fixed Attribute Default ] if an attribute has a default value declared with the #FIXED keyword, instances of that attribute must match the default value. [ WFC: No < in Attribute Values ] handled in xmlParseAttValue()

    -
    ctxt:an XML parser context
    value:Receive a possible fixed default value for the attribute
    Returns:XML_ATTRIBUTE_NONE, XML_ATTRIBUTE_REQUIRED, XML_ATTRIBUTE_IMPLIED or XML_ATTRIBUTE_FIXED.

    Function: xmlParseDocTypeDecl

    void	xmlParseDocTypeDecl		(xmlParserCtxtPtr ctxt)
    -

    parse a DOCTYPE declaration [28] doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ('[' (markupdecl | PEReference | S)* ']' S?)? '>' [ VC: Root Element Type ] The Name in the document type declaration must match the element type of the root element.

    -
    ctxt:an XML parser context

    Function: xmlParseElement

    void	xmlParseElement			(xmlParserCtxtPtr ctxt)
    -

    parse an XML element, this is highly recursive [39] element ::= EmptyElemTag | STag content ETag [ WFC: Element Type Match ] The Name in an element's end-tag must match the element type in the start-tag.

    -
    ctxt:an XML parser context

    Function: xmlParseElementChildrenContentDecl

    xmlElementContentPtr	xmlParseElementChildrenContentDecl	(xmlParserCtxtPtr ctxt, 
    int inputchk)
    -

    parse the declaration for a Mixed Element content The leading '(' and spaces have been skipped in xmlParseElementContentDecl [47] children ::= (choice | seq) ('?' | '*' | '+')? [48] cp ::= (Name | choice | seq) ('?' | '*' | '+')? [49] choice ::= '(' S? cp ( S? '|' S? cp )* S? ')' [50] seq ::= '(' S? cp ( S? ',' S? cp )* S? ')' [ VC: Proper Group/PE Nesting ] applies to [49] and [50] TODO Parameter-entity replacement text must be properly nested with parenthesized groups. That is to say, if either of the opening or closing parentheses in a choice, seq, or Mixed construct is contained in the replacement text for a parameter entity, both must be contained in the same replacement text. For interoperability, if a parameter-entity reference appears in a choice, seq, or Mixed construct, its replacement text should not be empty, and neither the first nor last non-blank character of the replacement text should be a connector (| or ,).

    -
    ctxt:an XML parser context
    inputchk:the input used for the current entity, needed for boundary checks
    Returns:the tree of xmlElementContentPtr describing the element hierarchy.

    Function: xmlParseElementContentDecl

    int	xmlParseElementContentDecl	(xmlParserCtxtPtr ctxt, 
    const xmlChar * name,
    xmlElementContentPtr * result)
    -

    parse the declaration for an Element content either Mixed or Children, the cases EMPTY and ANY are handled directly in xmlParseElementDecl [46] contentspec ::= 'EMPTY' | 'ANY' | Mixed | children

    -
    ctxt:an XML parser context
    name:the name of the element being defined.
    result:the Element Content pointer will be stored here if any
    Returns:the type of element content XML_ELEMENT_TYPE_xxx

    Function: xmlParseElementDecl

    int	xmlParseElementDecl		(xmlParserCtxtPtr ctxt)
    -

    parse an Element declaration. [45] elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>' [ VC: Unique Element Type Declaration ] No element type may be declared more than once

    -
    ctxt:an XML parser context
    Returns:the type of the element, or -1 in case of error

    Function: xmlParseElementMixedContentDecl

    xmlElementContentPtr	xmlParseElementMixedContentDecl	(xmlParserCtxtPtr ctxt, 
    int inputchk)
    -

    parse the declaration for a Mixed Element content The leading '(' and spaces have been skipped in xmlParseElementContentDecl [51] Mixed ::= '(' S? '#PCDATA' (S? '|' S? Name)* S? ')*' | '(' S? '#PCDATA' S? ')' [ VC: Proper Group/PE Nesting ] applies to [51] too (see [49]) [ VC: No Duplicate Types ] The same name must not appear more than once in a single mixed-content declaration.

    -
    ctxt:an XML parser context
    inputchk:the input used for the current entity, needed for boundary checks
    Returns:the list of the xmlElementContentPtr describing the element choices

    Function: xmlParseEncName

    xmlChar *	xmlParseEncName		(xmlParserCtxtPtr ctxt)
    -

    parse the XML encoding name [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*

    -
    ctxt:an XML parser context
    Returns:the encoding name value or NULL

    Function: xmlParseEncodingDecl

    const xmlChar *	xmlParseEncodingDecl	(xmlParserCtxtPtr ctxt)
    -

    parse the XML encoding declaration [80] EncodingDecl ::= S 'encoding' Eq ('"' EncName '"' | "'" EncName "'") this setups the conversion filters.

    -
    ctxt:an XML parser context
    Returns:the encoding value or NULL

    Function: xmlParseEndTag

    void	xmlParseEndTag			(xmlParserCtxtPtr ctxt)
    -

    parse an end of tag [42] ETag ::= '</' Name S? '>' With namespace [NS 9] ETag ::= '</' QName S? '>'

    -
    ctxt:an XML parser context

    Function: xmlParseEntityDecl

    void	xmlParseEntityDecl		(xmlParserCtxtPtr ctxt)
    -

    parse <!ENTITY declarations [70] EntityDecl ::= GEDecl | PEDecl [71] GEDecl ::= '<!ENTITY' S Name S EntityDef S? '>' [72] PEDecl ::= '<!ENTITY' S '%' S Name S PEDef S? '>' [73] EntityDef ::= EntityValue | (ExternalID NDataDecl?) [74] PEDef ::= EntityValue | ExternalID [76] NDataDecl ::= S 'NDATA' S Name [ VC: Notation Declared ] The Name must match the declared name of a notation.

    -
    ctxt:an XML parser context

    Function: xmlParseEntityRef

    xmlEntityPtr	xmlParseEntityRef	(xmlParserCtxtPtr ctxt)
    -

    parse ENTITY references declarations [68] EntityRef ::= '&' Name ';' [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", the Name given in the entity reference must match that in an entity declaration, except that well-formed documents need not declare any of the following entities: amp, lt, gt, apos, quot. The declaration of a parameter entity must precede any reference to it. Similarly, the declaration of a general entity must precede any reference to it which appears in a default value in an attribute-list declaration. Note that if entities are declared in the external subset or in external parameter entities, a non-validating processor is not obligated to read and process their declarations; for such documents, the rule that an entity must be declared is a well-formedness constraint only if standalone='yes'. [ WFC: Parsed Entity ] An entity reference must not contain the name of an unparsed entity

    -
    ctxt:an XML parser context
    Returns:the xmlEntityPtr if found, or NULL otherwise.

    Function: xmlParseEntityValue

    xmlChar *	xmlParseEntityValue	(xmlParserCtxtPtr ctxt, 
    xmlChar ** orig)
    -

    parse a value for ENTITY declarations [9] EntityValue ::= '"' ([^%&"] | PEReference | Reference)* '"' | "'" ([^%&'] | PEReference | Reference)* "'"

    -
    ctxt:an XML parser context
    orig:if non-NULL store a copy of the original entity value
    Returns:the EntityValue parsed with reference substituted or NULL

    Function: xmlParseEnumeratedType

    int	xmlParseEnumeratedType		(xmlParserCtxtPtr ctxt, 
    xmlEnumerationPtr * tree)
    -

    parse an Enumerated attribute type. [57] EnumeratedType ::= NotationType | Enumeration [58] NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')'

    -
    ctxt:an XML parser context
    tree:the enumeration tree built while parsing
    Returns:XML_ATTRIBUTE_ENUMERATION or XML_ATTRIBUTE_NOTATION

    Function: xmlParseEnumerationType

    xmlEnumerationPtr	xmlParseEnumerationType	(xmlParserCtxtPtr ctxt)
    -

    parse an Enumeration attribute type. [59] Enumeration ::= '(' S? Nmtoken (S? '|' S? Nmtoken)* S? ')' [ VC: Enumeration ] Values of this type must match one of the Nmtoken tokens in the declaration

    -
    ctxt:an XML parser context
    Returns:the enumeration attribute tree built while parsing

    Function: xmlParseExternalID

    xmlChar *	xmlParseExternalID	(xmlParserCtxtPtr ctxt, 
    xmlChar ** publicID,
    int strict)
    -

    Parse an External ID or a Public ID NOTE: Productions [75] and [83] interact badly since [75] can generate 'PUBLIC' S PubidLiteral S SystemLiteral [75] ExternalID ::= 'SYSTEM' S SystemLiteral | 'PUBLIC' S PubidLiteral S SystemLiteral [83] PublicID ::= 'PUBLIC' S PubidLiteral

    -
    ctxt:an XML parser context
    publicID:a xmlChar** receiving PubidLiteral
    strict:indicate whether we should restrict parsing to only production [75], see NOTE below
    Returns:the function returns SystemLiteral and in the second case publicID receives PubidLiteral, is strict is off it is possible to return NULL and have publicID set.

    Function: xmlParseExternalSubset

    void	xmlParseExternalSubset		(xmlParserCtxtPtr ctxt, 
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    parse Markup declarations from an external subset [30] extSubset ::= textDecl? extSubsetDecl [31] extSubsetDecl ::= (markupdecl | conditionalSect | PEReference | S) *

    -
    ctxt:an XML parser context
    ExternalID:the external identifier
    SystemID:the system identifier (or URL)

    Function: xmlParseMarkupDecl

    void	xmlParseMarkupDecl		(xmlParserCtxtPtr ctxt)
    -

    parse Markup declarations [29] markupdecl ::= elementdecl | AttlistDecl | EntityDecl | NotationDecl | PI | Comment [ VC: Proper Declaration/PE Nesting ] Parameter-entity replacement text must be properly nested with markup declarations. That is to say, if either the first character or the last character of a markup declaration (markupdecl above) is contained in the replacement text for a parameter-entity reference, both must be contained in the same replacement text. [ WFC: PEs in Internal Subset ] In the internal DTD subset, parameter-entity references can occur only where markup declarations can occur, not within markup declarations. (This does not apply to references that occur in external parameter entities or to the external subset.)

    -
    ctxt:an XML parser context

    Function: xmlParseMisc

    void	xmlParseMisc			(xmlParserCtxtPtr ctxt)
    -

    parse an XML Misc* optional field. [27] Misc ::= Comment | PI | S

    -
    ctxt:an XML parser context

    Function: xmlParseName

    const xmlChar *	xmlParseName		(xmlParserCtxtPtr ctxt)
    -

    parse an XML name. [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* [6] Names ::= Name (#x20 Name)*

    -
    ctxt:an XML parser context
    Returns:the Name parsed or NULL

    Function: xmlParseNamespace

    void	xmlParseNamespace		(xmlParserCtxtPtr ctxt)
    -

    xmlParseNamespace: parse specific PI '<?namespace ...' constructs. This is what the older xml-name Working Draft specified, a bunch of other stuff may still rely on it, so support is still here as if it was declared on the root of the Tree:-( TODO: remove from library To be removed at next drop of binary compatibility

    -
    ctxt:an XML parser context

    Function: xmlParseNmtoken

    xmlChar *	xmlParseNmtoken		(xmlParserCtxtPtr ctxt)
    -

    parse an XML Nmtoken. [7] Nmtoken ::= (NameChar)+ [8] Nmtokens ::= Nmtoken (#x20 Nmtoken)*

    -
    ctxt:an XML parser context
    Returns:the Nmtoken parsed or NULL

    Function: xmlParseNotationDecl

    void	xmlParseNotationDecl		(xmlParserCtxtPtr ctxt)
    -

    parse a notation declaration [82] NotationDecl ::= '<!NOTATION' S Name S (ExternalID | PublicID) S? '>' Hence there is actually 3 choices: 'PUBLIC' S PubidLiteral 'PUBLIC' S PubidLiteral S SystemLiteral and 'SYSTEM' S SystemLiteral See the NOTE on xmlParseExternalID().

    -
    ctxt:an XML parser context

    Function: xmlParseNotationType

    xmlEnumerationPtr	xmlParseNotationType	(xmlParserCtxtPtr ctxt)
    -

    parse an Notation attribute type. Note: the leading 'NOTATION' S part has already being parsed... [58] NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')' [ VC: Notation Attributes ] Values of this type must match one of the notation names included in the declaration; all notation names in the declaration must be declared.

    -
    ctxt:an XML parser context
    Returns:the notation attribute tree built while parsing

    Function: xmlParsePEReference

    void	xmlParsePEReference		(xmlParserCtxtPtr ctxt)
    -

    parse PEReference declarations The entity content is handled directly by pushing it's content as a new input stream. [69] PEReference ::= '%' Name ';' [ WFC: No Recursion ] A parsed entity must not contain a recursive reference to itself, either directly or indirectly. [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", ... ... The declaration of a parameter entity must precede any reference to it... [ VC: Entity Declared ] In a document with an external subset or external parameter entities with "standalone='no'", ... ... The declaration of a parameter entity must precede any reference to it... [ WFC: In DTD ] Parameter-entity references may only appear in the DTD. NOTE: misleading but this is handled.

    -
    ctxt:an XML parser context

    Function: xmlParsePI

    void	xmlParsePI			(xmlParserCtxtPtr ctxt)
    -

    parse an XML Processing Instruction. [16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' The processing is transfered to SAX once parsed.

    -
    ctxt:an XML parser context

    Function: xmlParsePITarget

    const xmlChar *	xmlParsePITarget	(xmlParserCtxtPtr ctxt)
    -

    parse the name of a PI [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))

    -
    ctxt:an XML parser context
    Returns:the PITarget name or NULL

    Function: xmlParsePubidLiteral

    xmlChar *	xmlParsePubidLiteral	(xmlParserCtxtPtr ctxt)
    -

    parse an XML public literal [12] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'"

    -
    ctxt:an XML parser context
    Returns:the PubidLiteral parsed or NULL.

    Function: xmlParseQuotedString

    xmlChar *	xmlParseQuotedString	(xmlParserCtxtPtr ctxt)
    -

    Parse and return a string between quotes or doublequotes TODO: Deprecated, to be removed at next drop of binary compatibility

    -
    ctxt:an XML parser context
    Returns:the string parser or NULL.

    Function: xmlParseReference

    void	xmlParseReference		(xmlParserCtxtPtr ctxt)
    -

    parse and handle entity references in content, depending on the SAX interface, this may end-up in a call to character() if this is a CharRef, a predefined entity, if there is no reference() callback. or if the parser was asked to switch to that mode. [67] Reference ::= EntityRef | CharRef

    -
    ctxt:an XML parser context

    Function: xmlParseSDDecl

    int	xmlParseSDDecl			(xmlParserCtxtPtr ctxt)
    -

    parse the XML standalone declaration [32] SDDecl ::= S 'standalone' Eq (("'" ('yes' | 'no') "'") | ('"' ('yes' | 'no')'"')) [ VC: Standalone Document Declaration ] TODO The standalone document declaration must have the value "no" if any external markup declarations contain declarations of: - attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or - entities (other than amp, lt, gt, apos, quot), if references to those entities appear in the document, or - attributes with values subject to normalization, where the attribute appears in the document with a value which will change as a result of normalization, or - element types with element content, if white space occurs directly within any instance of those types.

    -
    ctxt:an XML parser context
    Returns:1 if standalone, 0 otherwise

    Function: xmlParseStartTag

    const xmlChar *	xmlParseStartTag	(xmlParserCtxtPtr ctxt)
    -

    parse a start of tag either for rule element or EmptyElement. In both case we don't parse the tag closing chars. [40] STag ::= '<' Name (S Attribute)* S? '>' [ WFC: Unique Att Spec ] No attribute name may appear more than once in the same start-tag or empty-element tag. [44] EmptyElemTag ::= '<' Name (S Attribute)* S? '/>' [ WFC: Unique Att Spec ] No attribute name may appear more than once in the same start-tag or empty-element tag. With namespace: [NS 8] STag ::= '<' QName (S Attribute)* S? '>' [NS 10] EmptyElement ::= '<' QName (S Attribute)* S? '/>'

    -
    ctxt:an XML parser context
    Returns:the element name parsed

    Function: xmlParseSystemLiteral

    xmlChar *	xmlParseSystemLiteral	(xmlParserCtxtPtr ctxt)
    -

    parse an XML Literal [11] SystemLiteral ::= ('"' [^"]* '"') | ("'" [^']* "'")

    -
    ctxt:an XML parser context
    Returns:the SystemLiteral parsed or NULL

    Function: xmlParseTextDecl

    void	xmlParseTextDecl		(xmlParserCtxtPtr ctxt)
    -

    parse an XML declaration header for external entities [77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>' Question: Seems that EncodingDecl is mandatory ? Is that a typo ?

    -
    ctxt:an XML parser context

    Function: xmlParseVersionInfo

    xmlChar *	xmlParseVersionInfo	(xmlParserCtxtPtr ctxt)
    -

    parse the XML version. [24] VersionInfo ::= S 'version' Eq (' VersionNum ' | " VersionNum ") [25] Eq ::= S? '=' S?

    -
    ctxt:an XML parser context
    Returns:the version string, e.g. "1.0"

    Function: xmlParseVersionNum

    xmlChar *	xmlParseVersionNum	(xmlParserCtxtPtr ctxt)
    -

    parse the XML version value. [26] VersionNum ::= ([a-zA-Z0-9_.:] | '-')+

    -
    ctxt:an XML parser context
    Returns:the string giving the XML version number, or NULL

    Function: xmlParseXMLDecl

    void	xmlParseXMLDecl			(xmlParserCtxtPtr ctxt)
    -

    parse an XML declaration header [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'

    -
    ctxt:an XML parser context

    Function: xmlParserHandlePEReference

    void	xmlParserHandlePEReference	(xmlParserCtxtPtr ctxt)
    -

    [69] PEReference ::= '%' Name ';' [ WFC: No Recursion ] A parsed entity must not contain a recursive reference to itself, either directly or indirectly. [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", ... ... The declaration of a parameter entity must precede any reference to it... [ VC: Entity Declared ] In a document with an external subset or external parameter entities with "standalone='no'", ... ... The declaration of a parameter entity must precede any reference to it... [ WFC: In DTD ] Parameter-entity references may only appear in the DTD. NOTE: misleading but this is handled. A PEReference may have been detected in the current input stream the handling is done accordingly to http://www.w3.org/TR/REC-xml#entproc i.e. - Included in literal in entity values - Included as Parameter Entity reference within DTDs

    -
    ctxt:the parser context

    Function: xmlParserHandleReference

    void	xmlParserHandleReference	(xmlParserCtxtPtr ctxt)
    -

    TODO: Remove, now deprecated ... the test is done directly in the content parsing routines. [67] Reference ::= EntityRef | CharRef [68] EntityRef ::= '&' Name ';' [ WFC: Entity Declared ] the Name given in the entity reference must match that in an entity declaration, except that well-formed documents need not declare any of the following entities: amp, lt, gt, apos, quot. [ WFC: Parsed Entity ] An entity reference must not contain the name of an unparsed entity [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' A PEReference may have been detected in the current input stream the handling is done accordingly to http://www.w3.org/TR/REC-xml#entproc

    -
    ctxt:the parser context

    Function: xmlParserInputShrink

    void	xmlParserInputShrink		(xmlParserInputPtr in)
    -

    This function removes used input for the parser.

    -
    in:an XML parser input

    Function: xmlPopInput

    xmlChar	xmlPopInput			(xmlParserCtxtPtr ctxt)
    -

    xmlPopInput: the current input pointed by ctxt->input came to an end pop it and return the next char.

    -
    ctxt:an XML parser context
    Returns:the current xmlChar in the parser context

    Function: xmlPushInput

    void	xmlPushInput			(xmlParserCtxtPtr ctxt, 
    xmlParserInputPtr input)
    -

    xmlPushInput: switch to a new input stream which is stacked on top of the previous one(s).

    -
    ctxt:an XML parser context
    input:an XML parser input fragment (entity, XML fragment ...).

    Function: xmlScanName

    xmlChar *	xmlScanName		(xmlParserCtxtPtr ctxt)
    -

    Trickery: parse an XML name but without consuming the input flow Needed for rollback cases. Used only when parsing entities references. TODO: seems deprecated now, only used in the default part of xmlParserHandleReference [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* [6] Names ::= Name (S Name)*

    -
    ctxt:an XML parser context
    Returns:the Name parsed or NULL

    Function: xmlSetEntityReferenceFunc

    void	xmlSetEntityReferenceFunc	(xmlEntityReferenceFunc func)
    -

    Set the function to call call back when a xml reference has been made

    -
    func:A valid function

    Function: xmlSkipBlankChars

    int	xmlSkipBlankChars		(xmlParserCtxtPtr ctxt)
    -

    skip all blanks character found at that point in the input streams. It pops up finished entities in the process if allowable at that point.

    -
    ctxt:the XML parser context
    Returns:the number of space chars skipped

    Function: xmlSplitQName

    xmlChar *	xmlSplitQName		(xmlParserCtxtPtr ctxt, 
    const xmlChar * name,
    xmlChar ** prefix)
    -

    parse an UTF8 encoded XML qualified name string [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName

    -
    ctxt:an XML parser context
    name:an XML parser context
    prefix:a xmlChar **
    Returns:the local part, and prefix is updated to get the Prefix if any.

    Function: xmlStringCurrentChar

    int	xmlStringCurrentChar		(xmlParserCtxtPtr ctxt, 
    const xmlChar * cur,
    int * len)
    -

    The current char value, if using UTF-8 this may actually span multiple bytes in the input buffer.

    -
    ctxt:the XML parser context
    cur:pointer to the beginning of the char
    len:pointer to the length of the char read
    Returns:the current char value and its length

    Function: xmlStringDecodeEntities

    xmlChar *	xmlStringDecodeEntities	(xmlParserCtxtPtr ctxt, 
    const xmlChar * str,
    int what,
    xmlChar end,
    xmlChar end2,
    xmlChar end3)
    -

    Takes a entity string content and process to do the adequate substitutions. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';'

    -
    ctxt:the parser context
    str:the input string
    what:combination of XML_SUBSTITUTE_REF and XML_SUBSTITUTE_PEREF
    end:an end marker xmlChar, 0 if none
    end2:an end marker xmlChar, 0 if none
    end3:an end marker xmlChar, 0 if none
    Returns:A newly allocated string with the substitution done. The caller must deallocate it !

    Function: xmlStringLenDecodeEntities

    xmlChar *	xmlStringLenDecodeEntities	(xmlParserCtxtPtr ctxt, 
    const xmlChar * str,
    int len,
    int what,
    xmlChar end,
    xmlChar end2,
    xmlChar end3)
    -

    Takes a entity string content and process to do the adequate substitutions. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';'

    -
    ctxt:the parser context
    str:the input string
    len:the string length
    what:combination of XML_SUBSTITUTE_REF and XML_SUBSTITUTE_PEREF
    end:an end marker xmlChar, 0 if none
    end2:an end marker xmlChar, 0 if none
    end3:an end marker xmlChar, 0 if none
    Returns:A newly allocated string with the substitution done. The caller must deallocate it !

    Function: xmlSwitchEncoding

    int	xmlSwitchEncoding		(xmlParserCtxtPtr ctxt, 
    xmlCharEncoding enc)
    -

    change the input functions when discovering the character encoding of a given entity.

    -
    ctxt:the parser context
    enc:the encoding value (number)
    Returns:0 in case of success, -1 otherwise

    Function: xmlSwitchInputEncoding

    int	xmlSwitchInputEncoding		(xmlParserCtxtPtr ctxt, 
    xmlParserInputPtr input,
    xmlCharEncodingHandlerPtr handler)
    -

    change the input functions when discovering the character encoding of a given entity.

    -
    ctxt:the parser context
    input:the input stream
    handler:the encoding handler
    Returns:0 in case of success, -1 otherwise

    Function: xmlSwitchToEncoding

    int	xmlSwitchToEncoding		(xmlParserCtxtPtr ctxt, 
    xmlCharEncodingHandlerPtr handler)
    -

    change the input functions when discovering the character encoding of a given entity.

    -
    ctxt:the parser context
    handler:the encoding handler
    Returns:0 in case of success, -1 otherwise

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-pattern.html b/src/tools/docbook/libxml2/doc/html/libxml-pattern.html deleted file mode 100644 index fe72902cfc..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-pattern.html +++ /dev/null @@ -1,76 +0,0 @@ - - -Module pattern from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module pattern from libxml2

    API Menu
    API Indexes
    Related links

    allows to compile and test pattern expressions for nodes either in a tree or based on a parser state.

    Table of Contents

    Structure xmlPattern
    struct _xmlPattern -The content of this structure is not made public by the API. -
    Enum xmlPatternFlags
    -
    Typedef xmlPattern * xmlPatternPtr
    -
    Structure xmlStreamCtxt
    struct _xmlStreamCtxt -The content of this structure is not made public by the API. -
    Typedef xmlStreamCtxt * xmlStreamCtxtPtr
    -
    void	xmlFreePattern			(xmlPatternPtr comp)
    -
    void	xmlFreePatternList		(xmlPatternPtr comp)
    -
    void	xmlFreeStreamCtxt		(xmlStreamCtxtPtr stream)
    -
    int	xmlPatternFromRoot		(xmlPatternPtr comp)
    -
    xmlStreamCtxtPtr	xmlPatternGetStreamCtxt	(xmlPatternPtr comp)
    -
    int	xmlPatternMatch			(xmlPatternPtr comp, 
    xmlNodePtr node)
    -
    int	xmlPatternMaxDepth		(xmlPatternPtr comp)
    -
    int	xmlPatternMinDepth		(xmlPatternPtr comp)
    -
    int	xmlPatternStreamable		(xmlPatternPtr comp)
    -
    xmlPatternPtr	xmlPatterncompile	(const xmlChar * pattern, 
    xmlDict * dict,
    int flags,
    const xmlChar ** namespaces)
    -
    int	xmlStreamPop			(xmlStreamCtxtPtr stream)
    -
    int	xmlStreamPush			(xmlStreamCtxtPtr stream, 
    const xmlChar * name,
    const xmlChar * ns)
    -
    int	xmlStreamPushAttr		(xmlStreamCtxtPtr stream, 
    const xmlChar * name,
    const xmlChar * ns)
    -
    int	xmlStreamPushNode		(xmlStreamCtxtPtr stream, 
    const xmlChar * name,
    const xmlChar * ns,
    int nodeType)
    -
    int	xmlStreamWantsAnyNode		(xmlStreamCtxtPtr streamCtxt)
    -

    Description

    -

    Structure xmlPattern

    Structure xmlPattern
    struct _xmlPattern { -The content of this structure is not made public by the API. -}

    Enum xmlPatternFlags

    Enum xmlPatternFlags {
    -    XML_PATTERN_DEFAULT = 0 : simple pattern match
    -    XML_PATTERN_XPATH = 1 : standard XPath pattern
    -    XML_PATTERN_XSSEL = 2 : XPath subset for schema selector
    -    XML_PATTERN_XSFIELD = 4 : XPath subset for schema field
    -}
    -

    Structure xmlStreamCtxt

    Structure xmlStreamCtxt
    struct _xmlStreamCtxt { -The content of this structure is not made public by the API. -}

    Function: xmlFreePattern

    void	xmlFreePattern			(xmlPatternPtr comp)
    -

    Free up the memory allocated by @comp

    -
    comp:an XSLT comp

    Function: xmlFreePatternList

    void	xmlFreePatternList		(xmlPatternPtr comp)
    -

    Free up the memory allocated by all the elements of @comp

    -
    comp:an XSLT comp list

    Function: xmlFreeStreamCtxt

    void	xmlFreeStreamCtxt		(xmlStreamCtxtPtr stream)
    -

    Free the stream context

    -
    stream:the stream context

    Function: xmlPatternFromRoot

    int	xmlPatternFromRoot		(xmlPatternPtr comp)
    -

    Check if the pattern must be looked at from the root.

    -
    comp:the precompiled pattern
    Returns:1 if true, 0 if false and -1 in case of error

    Function: xmlPatternGetStreamCtxt

    xmlStreamCtxtPtr	xmlPatternGetStreamCtxt	(xmlPatternPtr comp)
    -

    Get a streaming context for that pattern Use xmlFreeStreamCtxt to free the context.

    -
    comp:the precompiled pattern
    Returns:a pointer to the context or NULL in case of failure

    Function: xmlPatternMatch

    int	xmlPatternMatch			(xmlPatternPtr comp, 
    xmlNodePtr node)
    -

    Test whether the node matches the pattern

    -
    comp:the precompiled pattern
    node:a node
    Returns:1 if it matches, 0 if it doesn't and -1 in case of failure

    Function: xmlPatternMaxDepth

    int	xmlPatternMaxDepth		(xmlPatternPtr comp)
    -

    Check the maximum depth reachable by a pattern

    -
    comp:the precompiled pattern
    Returns:-2 if no limit (using //), otherwise the depth, and -1 in case of error

    Function: xmlPatternMinDepth

    int	xmlPatternMinDepth		(xmlPatternPtr comp)
    -

    Check the minimum depth reachable by a pattern, 0 mean the / or . are part of the set.

    -
    comp:the precompiled pattern
    Returns:-1 in case of error otherwise the depth,

    Function: xmlPatternStreamable

    int	xmlPatternStreamable		(xmlPatternPtr comp)
    -

    Check if the pattern is streamable i.e. xmlPatternGetStreamCtxt() should work.

    -
    comp:the precompiled pattern
    Returns:1 if streamable, 0 if not and -1 in case of error.

    Function: xmlPatterncompile

    xmlPatternPtr	xmlPatterncompile	(const xmlChar * pattern, 
    xmlDict * dict,
    int flags,
    const xmlChar ** namespaces)
    -

    Compile a pattern.

    -
    pattern:the pattern to compile
    dict:an optional dictionary for interned strings
    flags:compilation flags, see xmlPatternFlags
    namespaces:the prefix definitions, array of [URI, prefix] or NULL
    Returns:the compiled form of the pattern or NULL in case of error

    Function: xmlStreamPop

    int	xmlStreamPop			(xmlStreamCtxtPtr stream)
    -

    push one level from the stream.

    -
    stream:the stream context
    Returns:-1 in case of error, 0 otherwise.

    Function: xmlStreamPush

    int	xmlStreamPush			(xmlStreamCtxtPtr stream, 
    const xmlChar * name,
    const xmlChar * ns)
    -

    Push new data onto the stream. NOTE: if the call xmlPatterncompile() indicated a dictionary, then strings for name and ns will be expected to come from the dictionary. Both @name and @ns being NULL means the / i.e. the root of the document. This can also act as a reset. Otherwise the function will act as if it has been given an element-node.

    -
    stream:the stream context
    name:the current name
    ns:the namespace name
    Returns:-1 in case of error, 1 if the current state in the stream is a match and 0 otherwise.

    Function: xmlStreamPushAttr

    int	xmlStreamPushAttr		(xmlStreamCtxtPtr stream, 
    const xmlChar * name,
    const xmlChar * ns)
    -

    Push new attribute data onto the stream. NOTE: if the call xmlPatterncompile() indicated a dictionary, then strings for name and ns will be expected to come from the dictionary. Both @name and @ns being NULL means the / i.e. the root of the document. This can also act as a reset. Otherwise the function will act as if it has been given an attribute-node.

    -
    stream:the stream context
    name:the current name
    ns:the namespace name
    Returns:-1 in case of error, 1 if the current state in the stream is a match and 0 otherwise.

    Function: xmlStreamPushNode

    int	xmlStreamPushNode		(xmlStreamCtxtPtr stream, 
    const xmlChar * name,
    const xmlChar * ns,
    int nodeType)
    -

    Push new data onto the stream. NOTE: if the call xmlPatterncompile() indicated a dictionary, then strings for name and ns will be expected to come from the dictionary. Both @name and @ns being NULL means the / i.e. the root of the document. This can also act as a reset. Different from xmlStreamPush() this function can be fed with nodes of type: element-, attribute-, text-, cdata-section-, comment- and processing-instruction-node.

    -
    stream:the stream context
    name:the current name
    ns:the namespace name
    nodeType:the type of the node being pushed
    Returns:-1 in case of error, 1 if the current state in the stream is a match and 0 otherwise.

    Function: xmlStreamWantsAnyNode

    int	xmlStreamWantsAnyNode		(xmlStreamCtxtPtr streamCtxt)
    -

    Query if the streaming pattern additionally needs to be fed with text-, cdata-section-, comment- and processing-instruction-nodes. If the result is 0 then only element-nodes and attribute-nodes need to be pushed.

    -
    streamCtxt:the stream context
    Returns:1 in case of need of nodes of the above described types, 0 otherwise. -1 on API errors.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-relaxng.html b/src/tools/docbook/libxml2/doc/html/libxml-relaxng.html deleted file mode 100644 index 6a64233ef1..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-relaxng.html +++ /dev/null @@ -1,162 +0,0 @@ - - -Module relaxng from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module relaxng from libxml2

    API Menu
    API Indexes
    Related links

    implementation of the Relax-NG validation

    Table of Contents

    Structure xmlRelaxNG
    struct _xmlRelaxNG -The content of this structure is not made public by the API. -
    Structure xmlRelaxNGParserCtxt
    struct _xmlRelaxNGParserCtxt -The content of this structure is not made public by the API. -
    Typedef xmlRelaxNGParserCtxt * xmlRelaxNGParserCtxtPtr
    -
    Enum xmlRelaxNGParserFlag
    -
    Typedef xmlRelaxNG * xmlRelaxNGPtr
    -
    Structure xmlRelaxNGValidCtxt
    struct _xmlRelaxNGValidCtxt -The content of this structure is not made public by the API. -
    Typedef xmlRelaxNGValidCtxt * xmlRelaxNGValidCtxtPtr
    -
    Enum xmlRelaxNGValidErr
    -
    void	xmlRelaxNGCleanupTypes		(void)
    -
    void	xmlRelaxNGDump			(FILE * output, 
    xmlRelaxNGPtr schema)
    -
    void	xmlRelaxNGDumpTree		(FILE * output, 
    xmlRelaxNGPtr schema)
    -
    void	xmlRelaxNGFree			(xmlRelaxNGPtr schema)
    -
    void	xmlRelaxNGFreeParserCtxt	(xmlRelaxNGParserCtxtPtr ctxt)
    -
    void	xmlRelaxNGFreeValidCtxt		(xmlRelaxNGValidCtxtPtr ctxt)
    -
    int	xmlRelaxNGGetParserErrors	(xmlRelaxNGParserCtxtPtr ctxt, 
    xmlRelaxNGValidityErrorFunc * err,
    xmlRelaxNGValidityWarningFunc * warn,
    void ** ctx)
    -
    int	xmlRelaxNGGetValidErrors	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlRelaxNGValidityErrorFunc * err,
    xmlRelaxNGValidityWarningFunc * warn,
    void ** ctx)
    -
    int	xmlRelaxNGInitTypes		(void)
    -
    xmlRelaxNGParserCtxtPtr	xmlRelaxNGNewDocParserCtxt	(xmlDocPtr doc)
    -
    xmlRelaxNGParserCtxtPtr	xmlRelaxNGNewMemParserCtxt	(const char * buffer, 
    int size)
    -
    xmlRelaxNGParserCtxtPtr	xmlRelaxNGNewParserCtxt	(const char * URL)
    -
    xmlRelaxNGValidCtxtPtr	xmlRelaxNGNewValidCtxt	(xmlRelaxNGPtr schema)
    -
    xmlRelaxNGPtr	xmlRelaxNGParse		(xmlRelaxNGParserCtxtPtr ctxt)
    -
    void	xmlRelaxNGSetParserErrors	(xmlRelaxNGParserCtxtPtr ctxt, 
    xmlRelaxNGValidityErrorFunc err,
    xmlRelaxNGValidityWarningFunc warn,
    void * ctx)
    -
    void	xmlRelaxNGSetParserStructuredErrors	(xmlRelaxNGParserCtxtPtr ctxt, 
    xmlStructuredErrorFunc serror,
    void * ctx)
    -
    void	xmlRelaxNGSetValidErrors	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlRelaxNGValidityErrorFunc err,
    xmlRelaxNGValidityWarningFunc warn,
    void * ctx)
    -
    void	xmlRelaxNGSetValidStructuredErrors	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlStructuredErrorFunc serror,
    void * ctx)
    -
    int	xmlRelaxNGValidateDoc		(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlDocPtr doc)
    -
    int	xmlRelaxNGValidateFullElement	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem)
    -
    int	xmlRelaxNGValidatePopElement	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem)
    -
    int	xmlRelaxNGValidatePushCData	(xmlRelaxNGValidCtxtPtr ctxt, 
    const xmlChar * data,
    int len)
    -
    int	xmlRelaxNGValidatePushElement	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem)
    -
    Function type: xmlRelaxNGValidityErrorFunc
    -void	xmlRelaxNGValidityErrorFunc	(void * ctx, 
    const char * msg,
    ... ...) -
    -
    Function type: xmlRelaxNGValidityWarningFunc
    -void	xmlRelaxNGValidityWarningFunc	(void * ctx, 
    const char * msg,
    ... ...) -
    -
    int	xmlRelaxParserSetFlag		(xmlRelaxNGParserCtxtPtr ctxt, 
    int flags)
    -

    Description

    -

    Structure xmlRelaxNG

    Structure xmlRelaxNG
    struct _xmlRelaxNG { -The content of this structure is not made public by the API. -}

    Structure xmlRelaxNGParserCtxt

    Structure xmlRelaxNGParserCtxt
    struct _xmlRelaxNGParserCtxt { -The content of this structure is not made public by the API. -}

    Enum xmlRelaxNGParserFlag

    Enum xmlRelaxNGParserFlag {
    -    XML_RELAXNGP_NONE = 0
    -    XML_RELAXNGP_FREE_DOC = 1
    -    XML_RELAXNGP_CRNG = 2
    -}
    -

    Structure xmlRelaxNGValidCtxt

    Structure xmlRelaxNGValidCtxt
    struct _xmlRelaxNGValidCtxt { -The content of this structure is not made public by the API. -}

    Enum xmlRelaxNGValidErr

    Enum xmlRelaxNGValidErr {
    -    XML_RELAXNG_OK = 0
    -    XML_RELAXNG_ERR_MEMORY = 1
    -    XML_RELAXNG_ERR_TYPE = 2
    -    XML_RELAXNG_ERR_TYPEVAL = 3
    -    XML_RELAXNG_ERR_DUPID = 4
    -    XML_RELAXNG_ERR_TYPECMP = 5
    -    XML_RELAXNG_ERR_NOSTATE = 6
    -    XML_RELAXNG_ERR_NODEFINE = 7
    -    XML_RELAXNG_ERR_LISTEXTRA = 8
    -    XML_RELAXNG_ERR_LISTEMPTY = 9
    -    XML_RELAXNG_ERR_INTERNODATA = 10
    -    XML_RELAXNG_ERR_INTERSEQ = 11
    -    XML_RELAXNG_ERR_INTEREXTRA = 12
    -    XML_RELAXNG_ERR_ELEMNAME = 13
    -    XML_RELAXNG_ERR_ATTRNAME = 14
    -    XML_RELAXNG_ERR_ELEMNONS = 15
    -    XML_RELAXNG_ERR_ATTRNONS = 16
    -    XML_RELAXNG_ERR_ELEMWRONGNS = 17
    -    XML_RELAXNG_ERR_ATTRWRONGNS = 18
    -    XML_RELAXNG_ERR_ELEMEXTRANS = 19
    -    XML_RELAXNG_ERR_ATTREXTRANS = 20
    -    XML_RELAXNG_ERR_ELEMNOTEMPTY = 21
    -    XML_RELAXNG_ERR_NOELEM = 22
    -    XML_RELAXNG_ERR_NOTELEM = 23
    -    XML_RELAXNG_ERR_ATTRVALID = 24
    -    XML_RELAXNG_ERR_CONTENTVALID = 25
    -    XML_RELAXNG_ERR_EXTRACONTENT = 26
    -    XML_RELAXNG_ERR_INVALIDATTR = 27
    -    XML_RELAXNG_ERR_DATAELEM = 28
    -    XML_RELAXNG_ERR_VALELEM = 29
    -    XML_RELAXNG_ERR_LISTELEM = 30
    -    XML_RELAXNG_ERR_DATATYPE = 31
    -    XML_RELAXNG_ERR_VALUE = 32
    -    XML_RELAXNG_ERR_LIST = 33
    -    XML_RELAXNG_ERR_NOGRAMMAR = 34
    -    XML_RELAXNG_ERR_EXTRADATA = 35
    -    XML_RELAXNG_ERR_LACKDATA = 36
    -    XML_RELAXNG_ERR_INTERNAL = 37
    -    XML_RELAXNG_ERR_ELEMWRONG = 38
    -    XML_RELAXNG_ERR_TEXTWRONG = 39
    -}
    -

    Function: xmlRelaxNGCleanupTypes

    void	xmlRelaxNGCleanupTypes		(void)
    -

    Cleanup the default Schemas type library associated to RelaxNG

    -

    Function: xmlRelaxNGDump

    void	xmlRelaxNGDump			(FILE * output, 
    xmlRelaxNGPtr schema)
    -

    Dump a RelaxNG structure back

    -
    output:the file output
    schema:a schema structure

    Function: xmlRelaxNGDumpTree

    void	xmlRelaxNGDumpTree		(FILE * output, 
    xmlRelaxNGPtr schema)
    -

    Dump the transformed RelaxNG tree.

    -
    output:the file output
    schema:a schema structure

    Function: xmlRelaxNGFree

    void	xmlRelaxNGFree			(xmlRelaxNGPtr schema)
    -

    Deallocate a RelaxNG structure.

    -
    schema:a schema structure

    Function: xmlRelaxNGFreeParserCtxt

    void	xmlRelaxNGFreeParserCtxt	(xmlRelaxNGParserCtxtPtr ctxt)
    -

    Free the resources associated to the schema parser context

    -
    ctxt:the schema parser context

    Function: xmlRelaxNGFreeValidCtxt

    void	xmlRelaxNGFreeValidCtxt		(xmlRelaxNGValidCtxtPtr ctxt)
    -

    Free the resources associated to the schema validation context

    -
    ctxt:the schema validation context

    Function: xmlRelaxNGGetParserErrors

    int	xmlRelaxNGGetParserErrors	(xmlRelaxNGParserCtxtPtr ctxt, 
    xmlRelaxNGValidityErrorFunc * err,
    xmlRelaxNGValidityWarningFunc * warn,
    void ** ctx)
    -

    Get the callback information used to handle errors for a validation context

    -
    ctxt:a Relax-NG validation context
    err:the error callback result
    warn:the warning callback result
    ctx:contextual data for the callbacks result
    Returns:-1 in case of failure, 0 otherwise.

    Function: xmlRelaxNGGetValidErrors

    int	xmlRelaxNGGetValidErrors	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlRelaxNGValidityErrorFunc * err,
    xmlRelaxNGValidityWarningFunc * warn,
    void ** ctx)
    -

    Get the error and warning callback informations

    -
    ctxt:a Relax-NG validation context
    err:the error function result
    warn:the warning function result
    ctx:the functions context result
    Returns:-1 in case of error and 0 otherwise

    Function: xmlRelaxNGInitTypes

    int	xmlRelaxNGInitTypes		(void)
    -

    Initilize the default type libraries.

    -
    Returns:0 in case of success and -1 in case of error.

    Function: xmlRelaxNGNewDocParserCtxt

    xmlRelaxNGParserCtxtPtr	xmlRelaxNGNewDocParserCtxt	(xmlDocPtr doc)
    -

    Create an XML RelaxNGs parser context for that document. Note: since the process of compiling a RelaxNG schemas modifies the document, the @doc parameter is duplicated internally.

    -
    doc:a preparsed document tree
    Returns:the parser context or NULL in case of error

    Function: xmlRelaxNGNewMemParserCtxt

    xmlRelaxNGParserCtxtPtr	xmlRelaxNGNewMemParserCtxt	(const char * buffer, 
    int size)
    -

    Create an XML RelaxNGs parse context for that memory buffer expected to contain an XML RelaxNGs file.

    -
    buffer:a pointer to a char array containing the schemas
    size:the size of the array
    Returns:the parser context or NULL in case of error

    Function: xmlRelaxNGNewParserCtxt

    xmlRelaxNGParserCtxtPtr	xmlRelaxNGNewParserCtxt	(const char * URL)
    -

    Create an XML RelaxNGs parse context for that file/resource expected to contain an XML RelaxNGs file.

    -
    URL:the location of the schema
    Returns:the parser context or NULL in case of error

    Function: xmlRelaxNGNewValidCtxt

    xmlRelaxNGValidCtxtPtr	xmlRelaxNGNewValidCtxt	(xmlRelaxNGPtr schema)
    -

    Create an XML RelaxNGs validation context based on the given schema

    -
    schema:a precompiled XML RelaxNGs
    Returns:the validation context or NULL in case of error

    Function: xmlRelaxNGParse

    xmlRelaxNGPtr	xmlRelaxNGParse		(xmlRelaxNGParserCtxtPtr ctxt)
    -

    parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances.

    -
    ctxt:a Relax-NG parser context
    Returns:the internal XML RelaxNG structure built from the resource or NULL in case of error

    Function: xmlRelaxNGSetParserErrors

    void	xmlRelaxNGSetParserErrors	(xmlRelaxNGParserCtxtPtr ctxt, 
    xmlRelaxNGValidityErrorFunc err,
    xmlRelaxNGValidityWarningFunc warn,
    void * ctx)
    -

    Set the callback functions used to handle errors for a validation context

    -
    ctxt:a Relax-NG validation context
    err:the error callback
    warn:the warning callback
    ctx:contextual data for the callbacks

    Function: xmlRelaxNGSetParserStructuredErrors

    void	xmlRelaxNGSetParserStructuredErrors	(xmlRelaxNGParserCtxtPtr ctxt, 
    xmlStructuredErrorFunc serror,
    void * ctx)
    -

    Set the callback functions used to handle errors for a parsing context

    -
    ctxt:a Relax-NG parser context
    serror:the error callback
    ctx:contextual data for the callbacks

    Function: xmlRelaxNGSetValidErrors

    void	xmlRelaxNGSetValidErrors	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlRelaxNGValidityErrorFunc err,
    xmlRelaxNGValidityWarningFunc warn,
    void * ctx)
    -

    Set the error and warning callback informations

    -
    ctxt:a Relax-NG validation context
    err:the error function
    warn:the warning function
    ctx:the functions context

    Function: xmlRelaxNGSetValidStructuredErrors

    void	xmlRelaxNGSetValidStructuredErrors	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlStructuredErrorFunc serror,
    void * ctx)
    -

    Set the structured error callback

    -
    ctxt:a Relax-NG validation context
    serror:the structured error function
    ctx:the functions context

    Function: xmlRelaxNGValidateDoc

    int	xmlRelaxNGValidateDoc		(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlDocPtr doc)
    -

    Validate a document tree in memory.

    -
    ctxt:a Relax-NG validation context
    doc:a parsed document tree
    Returns:0 if the document is valid, a positive error code number otherwise and -1 in case of internal or API error.

    Function: xmlRelaxNGValidateFullElement

    int	xmlRelaxNGValidateFullElement	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem)
    -

    Validate a full subtree when xmlRelaxNGValidatePushElement() returned 0 and the content of the node has been expanded.

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element instance
    Returns:1 if no validation problem was found or -1 in case of error.

    Function: xmlRelaxNGValidatePopElement

    int	xmlRelaxNGValidatePopElement	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem)
    -

    Pop the element end from the RelaxNG validation stack.

    -
    ctxt:the RelaxNG validation context
    doc:a document instance
    elem:an element instance
    Returns:1 if no validation problem was found or 0 otherwise

    Function: xmlRelaxNGValidatePushCData

    int	xmlRelaxNGValidatePushCData	(xmlRelaxNGValidCtxtPtr ctxt, 
    const xmlChar * data,
    int len)
    -

    check the CData parsed for validation in the current stack

    -
    ctxt:the RelaxNG validation context
    data:some character data read
    len:the lenght of the data
    Returns:1 if no validation problem was found or -1 otherwise

    Function: xmlRelaxNGValidatePushElement

    int	xmlRelaxNGValidatePushElement	(xmlRelaxNGValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem)
    -

    Push a new element start on the RelaxNG validation stack.

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element instance
    Returns:1 if no validation problem was found or 0 if validating the element requires a full node, and -1 in case of error.

    Function type: xmlRelaxNGValidityErrorFunc

    Function type: xmlRelaxNGValidityErrorFunc
    -void	xmlRelaxNGValidityErrorFunc	(void * ctx, 
    const char * msg,
    ... ...) -

    ctx:
    msg:
    ...:

    -

    Function type: xmlRelaxNGValidityWarningFunc

    Function type: xmlRelaxNGValidityWarningFunc
    -void	xmlRelaxNGValidityWarningFunc	(void * ctx, 
    const char * msg,
    ... ...) -

    ctx:
    msg:
    ...:

    -

    Function: xmlRelaxParserSetFlag

    int	xmlRelaxParserSetFlag		(xmlRelaxNGParserCtxtPtr ctxt, 
    int flags)
    -

    Semi private function used to pass informations to a parser context which are a combination of xmlRelaxNGParserFlag .

    -
    ctxt:a RelaxNG parser context
    flags:a set of flags values
    Returns:0 if success and -1 in case of error

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-schemasInternals.html b/src/tools/docbook/libxml2/doc/html/libxml-schemasInternals.html deleted file mode 100644 index 96d4150717..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-schemasInternals.html +++ /dev/null @@ -1,373 +0,0 @@ - - -Module schemasInternals from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module schemasInternals from libxml2

    API Menu
    API Indexes
    Related links

    internal interfaces for the XML Schemas handling and schema validity checking The Schemas development is a Work In Progress. Some of those interfaces are not garanteed to be API or ABI stable !

    Table of Contents

    #define XML_SCHEMAS_ANYATTR_LAX
    #define XML_SCHEMAS_ANYATTR_SKIP
    #define XML_SCHEMAS_ANYATTR_STRICT
    #define XML_SCHEMAS_ANY_LAX
    #define XML_SCHEMAS_ANY_SKIP
    #define XML_SCHEMAS_ANY_STRICT
    #define XML_SCHEMAS_ATTRGROUP_GLOBAL
    #define XML_SCHEMAS_ATTRGROUP_HAS_REFS
    #define XML_SCHEMAS_ATTRGROUP_MARKED
    #define XML_SCHEMAS_ATTRGROUP_REDEFINED
    #define XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED
    #define XML_SCHEMAS_ATTR_FIXED
    #define XML_SCHEMAS_ATTR_GLOBAL
    #define XML_SCHEMAS_ATTR_INTERNAL_RESOLVED
    #define XML_SCHEMAS_ATTR_NSDEFAULT
    #define XML_SCHEMAS_ATTR_USE_OPTIONAL
    #define XML_SCHEMAS_ATTR_USE_PROHIBITED
    #define XML_SCHEMAS_ATTR_USE_REQUIRED
    #define XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION
    #define XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION
    #define XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION
    #define XML_SCHEMAS_ELEM_ABSTRACT
    #define XML_SCHEMAS_ELEM_BLOCK_ABSENT
    #define XML_SCHEMAS_ELEM_BLOCK_EXTENSION
    #define XML_SCHEMAS_ELEM_BLOCK_RESTRICTION
    #define XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION
    #define XML_SCHEMAS_ELEM_CIRCULAR
    #define XML_SCHEMAS_ELEM_DEFAULT
    #define XML_SCHEMAS_ELEM_FINAL_ABSENT
    #define XML_SCHEMAS_ELEM_FINAL_EXTENSION
    #define XML_SCHEMAS_ELEM_FINAL_RESTRICTION
    #define XML_SCHEMAS_ELEM_FIXED
    #define XML_SCHEMAS_ELEM_GLOBAL
    #define XML_SCHEMAS_ELEM_INTERNAL_CHECKED
    #define XML_SCHEMAS_ELEM_INTERNAL_RESOLVED
    #define XML_SCHEMAS_ELEM_NILLABLE
    #define XML_SCHEMAS_ELEM_NSDEFAULT
    #define XML_SCHEMAS_ELEM_REF
    #define XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD
    #define XML_SCHEMAS_ELEM_TOPLEVEL
    #define XML_SCHEMAS_FACET_COLLAPSE
    #define XML_SCHEMAS_FACET_PRESERVE
    #define XML_SCHEMAS_FACET_REPLACE
    #define XML_SCHEMAS_FACET_UNKNOWN
    #define XML_SCHEMAS_FINAL_DEFAULT_EXTENSION
    #define XML_SCHEMAS_FINAL_DEFAULT_LIST
    #define XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION
    #define XML_SCHEMAS_FINAL_DEFAULT_UNION
    #define XML_SCHEMAS_INCLUDING_CONVERT_NS
    #define XML_SCHEMAS_QUALIF_ATTR
    #define XML_SCHEMAS_QUALIF_ELEM
    #define XML_SCHEMAS_TYPE_ABSTRACT
    #define XML_SCHEMAS_TYPE_BLOCK_DEFAULT
    #define XML_SCHEMAS_TYPE_BLOCK_EXTENSION
    #define XML_SCHEMAS_TYPE_BLOCK_RESTRICTION
    #define XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE
    #define XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION
    #define XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION
    #define XML_SCHEMAS_TYPE_FACETSNEEDVALUE
    #define XML_SCHEMAS_TYPE_FINAL_DEFAULT
    #define XML_SCHEMAS_TYPE_FINAL_EXTENSION
    #define XML_SCHEMAS_TYPE_FINAL_LIST
    #define XML_SCHEMAS_TYPE_FINAL_RESTRICTION
    #define XML_SCHEMAS_TYPE_FINAL_UNION
    #define XML_SCHEMAS_TYPE_FIXUP_1
    #define XML_SCHEMAS_TYPE_GLOBAL
    #define XML_SCHEMAS_TYPE_HAS_FACETS
    #define XML_SCHEMAS_TYPE_INTERNAL_INVALID
    #define XML_SCHEMAS_TYPE_INTERNAL_RESOLVED
    #define XML_SCHEMAS_TYPE_MARKED
    #define XML_SCHEMAS_TYPE_MIXED
    #define XML_SCHEMAS_TYPE_NORMVALUENEEDED
    #define XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD
    #define XML_SCHEMAS_TYPE_REDEFINED
    #define XML_SCHEMAS_TYPE_VARIETY_ABSENT
    #define XML_SCHEMAS_TYPE_VARIETY_ATOMIC
    #define XML_SCHEMAS_TYPE_VARIETY_LIST
    #define XML_SCHEMAS_TYPE_VARIETY_UNION
    #define XML_SCHEMAS_TYPE_WHITESPACE_COLLAPSE
    #define XML_SCHEMAS_TYPE_WHITESPACE_PRESERVE
    #define XML_SCHEMAS_TYPE_WHITESPACE_REPLACE
    #define XML_SCHEMAS_WILDCARD_COMPLETE
    Structure xmlSchemaAnnot
    struct _xmlSchemaAnnot -
    Typedef xmlSchemaAnnot * xmlSchemaAnnotPtr
    -
    Structure xmlSchemaAttribute
    struct _xmlSchemaAttribute -
    Structure xmlSchemaAttributeGroup
    struct _xmlSchemaAttributeGroup -
    Typedef xmlSchemaAttributeGroup * xmlSchemaAttributeGroupPtr
    -
    Structure xmlSchemaAttributeLink
    struct _xmlSchemaAttributeLink -
    Typedef xmlSchemaAttributeLink * xmlSchemaAttributeLinkPtr
    -
    Typedef xmlSchemaAttribute * xmlSchemaAttributePtr
    -
    Enum xmlSchemaContentType
    -
    Structure xmlSchemaElement
    struct _xmlSchemaElement -
    Typedef xmlSchemaElement * xmlSchemaElementPtr
    -
    Structure xmlSchemaFacet
    struct _xmlSchemaFacet -
    Structure xmlSchemaFacetLink
    struct _xmlSchemaFacetLink -
    Typedef xmlSchemaFacetLink * xmlSchemaFacetLinkPtr
    -
    Typedef xmlSchemaFacet * xmlSchemaFacetPtr
    -
    Structure xmlSchemaNotation
    struct _xmlSchemaNotation -
    Typedef xmlSchemaNotation * xmlSchemaNotationPtr
    -
    Structure xmlSchemaType
    struct _xmlSchemaType -
    Structure xmlSchemaTypeLink
    struct _xmlSchemaTypeLink -
    Typedef xmlSchemaTypeLink * xmlSchemaTypeLinkPtr
    -
    Typedef xmlSchemaType * xmlSchemaTypePtr
    -
    Enum xmlSchemaTypeType
    -
    Structure xmlSchemaVal
    struct _xmlSchemaVal -The content of this structure is not made public by the API. -
    Typedef xmlSchemaVal * xmlSchemaValPtr
    -
    Enum xmlSchemaValType
    -
    Structure xmlSchemaWildcard
    struct _xmlSchemaWildcard -
    Structure xmlSchemaWildcardNs
    struct _xmlSchemaWildcardNs -
    Typedef xmlSchemaWildcardNs * xmlSchemaWildcardNsPtr
    -
    Typedef xmlSchemaWildcard * xmlSchemaWildcardPtr
    -
    void	xmlSchemaFreeType		(xmlSchemaTypePtr type)
    -
    void	xmlSchemaFreeWildcard		(xmlSchemaWildcardPtr wildcard)
    -

    Description

    -

    Macro: XML_SCHEMAS_ANYATTR_LAX

    #define XML_SCHEMAS_ANYATTR_LAX

    Ignore validation non definition on attributes Obsolete, not used anymore.

    -

    Macro: XML_SCHEMAS_ANYATTR_SKIP

    #define XML_SCHEMAS_ANYATTR_SKIP

    Skip unknown attribute from validation Obsolete, not used anymore.

    -

    Macro: XML_SCHEMAS_ANYATTR_STRICT

    #define XML_SCHEMAS_ANYATTR_STRICT

    Apply strict validation rules on attributes Obsolete, not used anymore.

    -

    Macro: XML_SCHEMAS_ANY_LAX

    #define XML_SCHEMAS_ANY_LAX

    Used by wildcards. Validate if type found, don't worry if not found

    -

    Macro: XML_SCHEMAS_ANY_SKIP

    #define XML_SCHEMAS_ANY_SKIP

    Skip unknown attribute from validation

    -

    Macro: XML_SCHEMAS_ANY_STRICT

    #define XML_SCHEMAS_ANY_STRICT

    Used by wildcards. Apply strict validation rules

    -

    Macro: XML_SCHEMAS_ATTRGROUP_GLOBAL

    #define XML_SCHEMAS_ATTRGROUP_GLOBAL

    The attribute wildcard has been already builded.

    -

    Macro: XML_SCHEMAS_ATTRGROUP_HAS_REFS

    #define XML_SCHEMAS_ATTRGROUP_HAS_REFS

    Whether this attr. group contains attr. group references.

    -

    Macro: XML_SCHEMAS_ATTRGROUP_MARKED

    #define XML_SCHEMAS_ATTRGROUP_MARKED

    Marks the attr group as marked; used for circular checks.

    -

    Macro: XML_SCHEMAS_ATTRGROUP_REDEFINED

    #define XML_SCHEMAS_ATTRGROUP_REDEFINED

    The attr group was redefined.

    -

    Macro: XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED

    #define XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED

    The attribute wildcard has been already builded.

    -

    Macro: XML_SCHEMAS_ATTR_FIXED

    #define XML_SCHEMAS_ATTR_FIXED

    the attribute has a fixed value

    -

    Macro: XML_SCHEMAS_ATTR_GLOBAL

    #define XML_SCHEMAS_ATTR_GLOBAL

    allow elements in no namespace

    -

    Macro: XML_SCHEMAS_ATTR_INTERNAL_RESOLVED

    #define XML_SCHEMAS_ATTR_INTERNAL_RESOLVED

    this is set when the "type" and "ref" references have been resolved.

    -

    Macro: XML_SCHEMAS_ATTR_NSDEFAULT

    #define XML_SCHEMAS_ATTR_NSDEFAULT

    allow elements in no namespace

    -

    Macro: XML_SCHEMAS_ATTR_USE_OPTIONAL

    #define XML_SCHEMAS_ATTR_USE_OPTIONAL

    The attribute is optional.

    -

    Macro: XML_SCHEMAS_ATTR_USE_PROHIBITED

    #define XML_SCHEMAS_ATTR_USE_PROHIBITED

    Used by wildcards. The attribute is prohibited.

    -

    Macro: XML_SCHEMAS_ATTR_USE_REQUIRED

    #define XML_SCHEMAS_ATTR_USE_REQUIRED

    The attribute is required.

    -

    Macro: XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION

    #define XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION

    the schema has "extension" in the set of blockDefault.

    -

    Macro: XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION

    #define XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION

    the schema has "restriction" in the set of blockDefault.

    -

    Macro: XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION

    #define XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION

    the schema has "substitution" in the set of blockDefault.

    -

    Macro: XML_SCHEMAS_ELEM_ABSTRACT

    #define XML_SCHEMAS_ELEM_ABSTRACT

    the element is abstract

    -

    Macro: XML_SCHEMAS_ELEM_BLOCK_ABSENT

    #define XML_SCHEMAS_ELEM_BLOCK_ABSENT

    the "block" attribute is absent

    -

    Macro: XML_SCHEMAS_ELEM_BLOCK_EXTENSION

    #define XML_SCHEMAS_ELEM_BLOCK_EXTENSION

    disallowed substitutions are absent

    -

    Macro: XML_SCHEMAS_ELEM_BLOCK_RESTRICTION

    #define XML_SCHEMAS_ELEM_BLOCK_RESTRICTION

    disallowed substitutions: "restriction"

    -

    Macro: XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION

    #define XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION

    disallowed substitutions: "substituion"

    -

    Macro: XML_SCHEMAS_ELEM_CIRCULAR

    #define XML_SCHEMAS_ELEM_CIRCULAR

    a helper flag for the search of circular references.

    -

    Macro: XML_SCHEMAS_ELEM_DEFAULT

    #define XML_SCHEMAS_ELEM_DEFAULT

    the element has a default value

    -

    Macro: XML_SCHEMAS_ELEM_FINAL_ABSENT

    #define XML_SCHEMAS_ELEM_FINAL_ABSENT

    substitution group exclusions are absent

    -

    Macro: XML_SCHEMAS_ELEM_FINAL_EXTENSION

    #define XML_SCHEMAS_ELEM_FINAL_EXTENSION

    substitution group exclusions: "extension"

    -

    Macro: XML_SCHEMAS_ELEM_FINAL_RESTRICTION

    #define XML_SCHEMAS_ELEM_FINAL_RESTRICTION

    substitution group exclusions: "restriction"

    -

    Macro: XML_SCHEMAS_ELEM_FIXED

    #define XML_SCHEMAS_ELEM_FIXED

    the element has a fixed value

    -

    Macro: XML_SCHEMAS_ELEM_GLOBAL

    #define XML_SCHEMAS_ELEM_GLOBAL

    the element is global

    -

    Macro: XML_SCHEMAS_ELEM_INTERNAL_CHECKED

    #define XML_SCHEMAS_ELEM_INTERNAL_CHECKED

    this is set when the elem decl has been checked against all constraints

    -

    Macro: XML_SCHEMAS_ELEM_INTERNAL_RESOLVED

    #define XML_SCHEMAS_ELEM_INTERNAL_RESOLVED

    this is set when "type", "ref", "substitutionGroup" references have been resolved.

    -

    Macro: XML_SCHEMAS_ELEM_NILLABLE

    #define XML_SCHEMAS_ELEM_NILLABLE

    the element is nillable

    -

    Macro: XML_SCHEMAS_ELEM_NSDEFAULT

    #define XML_SCHEMAS_ELEM_NSDEFAULT

    allow elements in no namespace Obsolete, not used anymore.

    -

    Macro: XML_SCHEMAS_ELEM_REF

    #define XML_SCHEMAS_ELEM_REF

    the element is a reference to a type

    -

    Macro: XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD

    #define XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD

    the declaration is a substitution group head

    -

    Macro: XML_SCHEMAS_ELEM_TOPLEVEL

    #define XML_SCHEMAS_ELEM_TOPLEVEL

    the element is top level obsolete: use XML_SCHEMAS_ELEM_GLOBAL instead

    -

    Macro: XML_SCHEMAS_FACET_COLLAPSE

    #define XML_SCHEMAS_FACET_COLLAPSE

    collapse the types of the facet

    -

    Macro: XML_SCHEMAS_FACET_PRESERVE

    #define XML_SCHEMAS_FACET_PRESERVE

    preserve the type of the facet

    -

    Macro: XML_SCHEMAS_FACET_REPLACE

    #define XML_SCHEMAS_FACET_REPLACE

    replace the type of the facet

    -

    Macro: XML_SCHEMAS_FACET_UNKNOWN

    #define XML_SCHEMAS_FACET_UNKNOWN

    unknown facet handling

    -

    Macro: XML_SCHEMAS_FINAL_DEFAULT_EXTENSION

    #define XML_SCHEMAS_FINAL_DEFAULT_EXTENSION

    the schema has "extension" in the set of finalDefault.

    -

    Macro: XML_SCHEMAS_FINAL_DEFAULT_LIST

    #define XML_SCHEMAS_FINAL_DEFAULT_LIST

    the cshema has "list" in the set of finalDefault.

    -

    Macro: XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION

    #define XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION

    the schema has "restriction" in the set of finalDefault.

    -

    Macro: XML_SCHEMAS_FINAL_DEFAULT_UNION

    #define XML_SCHEMAS_FINAL_DEFAULT_UNION

    the schema has "union" in the set of finalDefault.

    -

    Macro: XML_SCHEMAS_INCLUDING_CONVERT_NS

    #define XML_SCHEMAS_INCLUDING_CONVERT_NS

    the schema is currently including an other schema with no target namespace.

    -

    Macro: XML_SCHEMAS_QUALIF_ATTR

    #define XML_SCHEMAS_QUALIF_ATTR

    Reflects attributeFormDefault == qualified in an XML schema document.

    -

    Macro: XML_SCHEMAS_QUALIF_ELEM

    #define XML_SCHEMAS_QUALIF_ELEM

    Reflects elementFormDefault == qualified in an XML schema document.

    -

    Macro: XML_SCHEMAS_TYPE_ABSTRACT

    #define XML_SCHEMAS_TYPE_ABSTRACT

    the simple/complexType is abstract.

    -

    Macro: XML_SCHEMAS_TYPE_BLOCK_DEFAULT

    #define XML_SCHEMAS_TYPE_BLOCK_DEFAULT

    the complexType did not specify 'block' so use the default of the <schema> item.

    -

    Macro: XML_SCHEMAS_TYPE_BLOCK_EXTENSION

    #define XML_SCHEMAS_TYPE_BLOCK_EXTENSION

    the complexType has a 'block' of "extension".

    -

    Macro: XML_SCHEMAS_TYPE_BLOCK_RESTRICTION

    #define XML_SCHEMAS_TYPE_BLOCK_RESTRICTION

    the complexType has a 'block' of "restriction".

    -

    Macro: XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE

    #define XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE

    Marks the item as a builtin primitive.

    -

    Macro: XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION

    #define XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION

    the simple or complex type has a derivation method of "extension".

    -

    Macro: XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION

    #define XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION

    the simple or complex type has a derivation method of "restriction".

    -

    Macro: XML_SCHEMAS_TYPE_FACETSNEEDVALUE

    #define XML_SCHEMAS_TYPE_FACETSNEEDVALUE

    indicates if the facets need a computed value

    -

    Macro: XML_SCHEMAS_TYPE_FINAL_DEFAULT

    #define XML_SCHEMAS_TYPE_FINAL_DEFAULT

    the simpleType has a final of "default".

    -

    Macro: XML_SCHEMAS_TYPE_FINAL_EXTENSION

    #define XML_SCHEMAS_TYPE_FINAL_EXTENSION

    the complexType has a final of "extension".

    -

    Macro: XML_SCHEMAS_TYPE_FINAL_LIST

    #define XML_SCHEMAS_TYPE_FINAL_LIST

    the simpleType has a final of "list".

    -

    Macro: XML_SCHEMAS_TYPE_FINAL_RESTRICTION

    #define XML_SCHEMAS_TYPE_FINAL_RESTRICTION

    the simpleType/complexType has a final of "restriction".

    -

    Macro: XML_SCHEMAS_TYPE_FINAL_UNION

    #define XML_SCHEMAS_TYPE_FINAL_UNION

    the simpleType has a final of "union".

    -

    Macro: XML_SCHEMAS_TYPE_FIXUP_1

    #define XML_SCHEMAS_TYPE_FIXUP_1

    First stage of fixup was done.

    -

    Macro: XML_SCHEMAS_TYPE_GLOBAL

    #define XML_SCHEMAS_TYPE_GLOBAL

    the type is global

    -

    Macro: XML_SCHEMAS_TYPE_HAS_FACETS

    #define XML_SCHEMAS_TYPE_HAS_FACETS

    has facets

    -

    Macro: XML_SCHEMAS_TYPE_INTERNAL_INVALID

    #define XML_SCHEMAS_TYPE_INTERNAL_INVALID

    indicates that the type is invalid

    -

    Macro: XML_SCHEMAS_TYPE_INTERNAL_RESOLVED

    #define XML_SCHEMAS_TYPE_INTERNAL_RESOLVED

    indicates that the type was typefixed

    -

    Macro: XML_SCHEMAS_TYPE_MARKED

    #define XML_SCHEMAS_TYPE_MARKED

    Marks the item as marked; used for circular checks.

    -

    Macro: XML_SCHEMAS_TYPE_MIXED

    #define XML_SCHEMAS_TYPE_MIXED

    the element content type is mixed

    -

    Macro: XML_SCHEMAS_TYPE_NORMVALUENEEDED

    #define XML_SCHEMAS_TYPE_NORMVALUENEEDED

    indicates if the facets (pattern) need a normalized value

    -

    Macro: XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD

    #define XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD

    the complexType owns an attribute wildcard, i.e. it can be freed by the complexType

    -

    Macro: XML_SCHEMAS_TYPE_REDEFINED

    #define XML_SCHEMAS_TYPE_REDEFINED

    The type was redefined.

    -

    Macro: XML_SCHEMAS_TYPE_VARIETY_ABSENT

    #define XML_SCHEMAS_TYPE_VARIETY_ABSENT

    the simpleType has a variety of "absent". TODO: Actually not necessary :-/, since if none of the variety flags occur then it's automatically absent.

    -

    Macro: XML_SCHEMAS_TYPE_VARIETY_ATOMIC

    #define XML_SCHEMAS_TYPE_VARIETY_ATOMIC

    the simpleType has a variety of "union".

    -

    Macro: XML_SCHEMAS_TYPE_VARIETY_LIST

    #define XML_SCHEMAS_TYPE_VARIETY_LIST

    the simpleType has a variety of "list".

    -

    Macro: XML_SCHEMAS_TYPE_VARIETY_UNION

    #define XML_SCHEMAS_TYPE_VARIETY_UNION

    the simpleType has a variety of "union".

    -

    Macro: XML_SCHEMAS_TYPE_WHITESPACE_COLLAPSE

    #define XML_SCHEMAS_TYPE_WHITESPACE_COLLAPSE

    a whitespace-facet value of "collapse"

    -

    Macro: XML_SCHEMAS_TYPE_WHITESPACE_PRESERVE

    #define XML_SCHEMAS_TYPE_WHITESPACE_PRESERVE

    a whitespace-facet value of "preserve"

    -

    Macro: XML_SCHEMAS_TYPE_WHITESPACE_REPLACE

    #define XML_SCHEMAS_TYPE_WHITESPACE_REPLACE

    a whitespace-facet value of "replace"

    -

    Macro: XML_SCHEMAS_WILDCARD_COMPLETE

    #define XML_SCHEMAS_WILDCARD_COMPLETE

    If the wildcard is complete.

    -

    Structure xmlSchemaAnnot

    Structure xmlSchemaAnnot
    struct _xmlSchemaAnnot { - struct _xmlSchemaAnnot * next - xmlNodePtr content : the annotation -}

    Structure xmlSchemaAttribute

    Structure xmlSchemaAttribute
    struct _xmlSchemaAttribute { - xmlSchemaTypeType type - struct _xmlSchemaAttribute * next : the next attribute (not used?) - const xmlChar * name : the name of the declaration - const xmlChar * id : Deprecated; not used - const xmlChar * ref : Deprecated; not used - const xmlChar * refNs : Deprecated; not used - const xmlChar * typeName : the local name of the type definition - const xmlChar * typeNs : the ns URI of the type definition - xmlSchemaAnnotPtr annot - xmlSchemaTypePtr base : Deprecated; not used - int occurs : Deprecated; not used - const xmlChar * defValue : The initial value of the value constrai - xmlSchemaTypePtr subtypes : the type definition - xmlNodePtr node - const xmlChar * targetNamespace - int flags - const xmlChar * refPrefix : Deprecated; not used - xmlSchemaValPtr defVal : The compiled value constraint - xmlSchemaAttributePtr refDecl : Deprecated; not used -}

    Structure xmlSchemaAttributeGroup

    Structure xmlSchemaAttributeGroup
    struct _xmlSchemaAttributeGroup { - xmlSchemaTypeType type : The kind of type - struct _xmlSchemaAttribute * next : the next attribute if in a group ... - const xmlChar * name - const xmlChar * id - const xmlChar * ref : Deprecated; not used - const xmlChar * refNs : Deprecated; not used - xmlSchemaAnnotPtr annot - xmlSchemaAttributePtr attributes : Deprecated; not used - xmlNodePtr node - int flags - xmlSchemaWildcardPtr attributeWildcard - const xmlChar * refPrefix : Deprecated; not used - xmlSchemaAttributeGroupPtr refItem : Deprecated; not used - const xmlChar * targetNamespace - void * attrUses -}

    Structure xmlSchemaAttributeLink

    Structure xmlSchemaAttributeLink
    struct _xmlSchemaAttributeLink { - struct _xmlSchemaAttributeLink * next : the next attribute link ... - struct _xmlSchemaAttribute * attr : the linked attribute -}

    Enum xmlSchemaContentType

    Enum xmlSchemaContentType {
    -    XML_SCHEMA_CONTENT_UNKNOWN = 0
    -    XML_SCHEMA_CONTENT_EMPTY = 1
    -    XML_SCHEMA_CONTENT_ELEMENTS = 2
    -    XML_SCHEMA_CONTENT_MIXED = 3
    -    XML_SCHEMA_CONTENT_SIMPLE = 4
    -    XML_SCHEMA_CONTENT_MIXED_OR_ELEMENTS = 5 : Obsolete
    -    XML_SCHEMA_CONTENT_BASIC = 6
    -    XML_SCHEMA_CONTENT_ANY = 7
    -}
    -

    Structure xmlSchemaElement

    Structure xmlSchemaElement
    struct _xmlSchemaElement { - xmlSchemaTypeType type : The kind of type - struct _xmlSchemaType * next : Not used? - const xmlChar * name - const xmlChar * id : Deprecated; not used - const xmlChar * ref : Deprecated; not used - const xmlChar * refNs : Deprecated; not used - xmlSchemaAnnotPtr annot - xmlSchemaTypePtr subtypes : the type definition - xmlSchemaAttributePtr attributes - xmlNodePtr node - int minOccurs : Deprecated; not used - int maxOccurs : Deprecated; not used - int flags - const xmlChar * targetNamespace - const xmlChar * namedType - const xmlChar * namedTypeNs - const xmlChar * substGroup - const xmlChar * substGroupNs - const xmlChar * scope - const xmlChar * value : The original value of the value constra - struct _xmlSchemaElement * refDecl : This will now be used for the substitut - xmlRegexpPtr contModel : Obsolete for WXS, maybe used for RelaxN - xmlSchemaContentType contentType - const xmlChar * refPrefix : Deprecated; not used - xmlSchemaValPtr defVal : The compiled value contraint. - void * idcs : The identity-constraint defs -}

    Structure xmlSchemaFacet

    Structure xmlSchemaFacet
    struct _xmlSchemaFacet { - xmlSchemaTypeType type : The kind of type - struct _xmlSchemaFacet * next : the next type if in a sequence ... - const xmlChar * value : The original value - const xmlChar * id : Obsolete - xmlSchemaAnnotPtr annot - xmlNodePtr node - int fixed : XML_SCHEMAS_FACET_PRESERVE, etc. - int whitespace - xmlSchemaValPtr val : The compiled value - xmlRegexpPtr regexp : The regex for patterns -}

    Structure xmlSchemaFacetLink

    Structure xmlSchemaFacetLink
    struct _xmlSchemaFacetLink { - struct _xmlSchemaFacetLink * next : the next facet link ... - xmlSchemaFacetPtr facet : the linked facet -}

    Structure xmlSchemaNotation

    Structure xmlSchemaNotation
    struct _xmlSchemaNotation { - xmlSchemaTypeType type : The kind of type - const xmlChar * name - xmlSchemaAnnotPtr annot - const xmlChar * identifier - const xmlChar * targetNamespace -}

    Structure xmlSchemaType

    Structure xmlSchemaType
    struct _xmlSchemaType { - xmlSchemaTypeType type : The kind of type - struct _xmlSchemaType * next : the next type if in a sequence ... - const xmlChar * name - const xmlChar * id : Deprecated; not used - const xmlChar * ref : Deprecated; not used - const xmlChar * refNs : Deprecated; not used - xmlSchemaAnnotPtr annot - xmlSchemaTypePtr subtypes - xmlSchemaAttributePtr attributes : Deprecated; not used - xmlNodePtr node - int minOccurs : Deprecated; not used - int maxOccurs : Deprecated; not used - int flags - xmlSchemaContentType contentType - const xmlChar * base : Base type's local name - const xmlChar * baseNs : Base type's target namespace - xmlSchemaTypePtr baseType : The base type component - xmlSchemaFacetPtr facets : Local facets - struct _xmlSchemaType * redef : Deprecated; not used - int recurse : Obsolete - xmlSchemaAttributeLinkPtr * attributeUses : Deprecated; not used - xmlSchemaWildcardPtr attributeWildcard - int builtInType : Type of built-in types. - xmlSchemaTypeLinkPtr memberTypes : member-types if a union type. - xmlSchemaFacetLinkPtr facetSet : All facets (incl. inherited) - const xmlChar * refPrefix : Deprecated; not used - xmlSchemaTypePtr contentTypeDef : Used for the simple content of complex - xmlRegexpPtr contModel : Holds the automaton of the content mode - const xmlChar * targetNamespace - void * attrUses -}

    Structure xmlSchemaTypeLink

    Structure xmlSchemaTypeLink
    struct _xmlSchemaTypeLink { - struct _xmlSchemaTypeLink * next : the next type link ... - xmlSchemaTypePtr type : the linked type -}

    Enum xmlSchemaTypeType

    Enum xmlSchemaTypeType {
    -    XML_SCHEMA_TYPE_BASIC = 1 : A built-in datatype
    -    XML_SCHEMA_TYPE_ANY = 2
    -    XML_SCHEMA_TYPE_FACET = 3
    -    XML_SCHEMA_TYPE_SIMPLE = 4
    -    XML_SCHEMA_TYPE_COMPLEX = 5
    -    XML_SCHEMA_TYPE_SEQUENCE = 6
    -    XML_SCHEMA_TYPE_CHOICE = 7
    -    XML_SCHEMA_TYPE_ALL = 8
    -    XML_SCHEMA_TYPE_SIMPLE_CONTENT = 9
    -    XML_SCHEMA_TYPE_COMPLEX_CONTENT = 10
    -    XML_SCHEMA_TYPE_UR = 11
    -    XML_SCHEMA_TYPE_RESTRICTION = 12
    -    XML_SCHEMA_TYPE_EXTENSION = 13
    -    XML_SCHEMA_TYPE_ELEMENT = 14
    -    XML_SCHEMA_TYPE_ATTRIBUTE = 15
    -    XML_SCHEMA_TYPE_ATTRIBUTEGROUP = 16
    -    XML_SCHEMA_TYPE_GROUP = 17
    -    XML_SCHEMA_TYPE_NOTATION = 18
    -    XML_SCHEMA_TYPE_LIST = 19
    -    XML_SCHEMA_TYPE_UNION = 20
    -    XML_SCHEMA_TYPE_ANY_ATTRIBUTE = 21
    -    XML_SCHEMA_TYPE_IDC_UNIQUE = 22
    -    XML_SCHEMA_TYPE_IDC_KEY = 23
    -    XML_SCHEMA_TYPE_IDC_KEYREF = 24
    -    XML_SCHEMA_TYPE_PARTICLE = 25
    -    XML_SCHEMA_TYPE_ATTRIBUTE_USE = 26
    -    XML_SCHEMA_FACET_MININCLUSIVE = 1000
    -    XML_SCHEMA_FACET_MINEXCLUSIVE = 1001
    -    XML_SCHEMA_FACET_MAXINCLUSIVE = 1002
    -    XML_SCHEMA_FACET_MAXEXCLUSIVE = 1003
    -    XML_SCHEMA_FACET_TOTALDIGITS = 1004
    -    XML_SCHEMA_FACET_FRACTIONDIGITS = 1005
    -    XML_SCHEMA_FACET_PATTERN = 1006
    -    XML_SCHEMA_FACET_ENUMERATION = 1007
    -    XML_SCHEMA_FACET_WHITESPACE = 1008
    -    XML_SCHEMA_FACET_LENGTH = 1009
    -    XML_SCHEMA_FACET_MAXLENGTH = 1010
    -    XML_SCHEMA_FACET_MINLENGTH = 1011
    -    XML_SCHEMA_EXTRA_QNAMEREF = 2000
    -    XML_SCHEMA_EXTRA_ATTR_USE_PROHIB = 2001
    -}
    -

    Structure xmlSchemaVal

    Structure xmlSchemaVal
    struct _xmlSchemaVal { -The content of this structure is not made public by the API. -}

    Enum xmlSchemaValType

    Enum xmlSchemaValType {
    -    XML_SCHEMAS_UNKNOWN = 0
    -    XML_SCHEMAS_STRING = 1
    -    XML_SCHEMAS_NORMSTRING = 2
    -    XML_SCHEMAS_DECIMAL = 3
    -    XML_SCHEMAS_TIME = 4
    -    XML_SCHEMAS_GDAY = 5
    -    XML_SCHEMAS_GMONTH = 6
    -    XML_SCHEMAS_GMONTHDAY = 7
    -    XML_SCHEMAS_GYEAR = 8
    -    XML_SCHEMAS_GYEARMONTH = 9
    -    XML_SCHEMAS_DATE = 10
    -    XML_SCHEMAS_DATETIME = 11
    -    XML_SCHEMAS_DURATION = 12
    -    XML_SCHEMAS_FLOAT = 13
    -    XML_SCHEMAS_DOUBLE = 14
    -    XML_SCHEMAS_BOOLEAN = 15
    -    XML_SCHEMAS_TOKEN = 16
    -    XML_SCHEMAS_LANGUAGE = 17
    -    XML_SCHEMAS_NMTOKEN = 18
    -    XML_SCHEMAS_NMTOKENS = 19
    -    XML_SCHEMAS_NAME = 20
    -    XML_SCHEMAS_QNAME = 21
    -    XML_SCHEMAS_NCNAME = 22
    -    XML_SCHEMAS_ID = 23
    -    XML_SCHEMAS_IDREF = 24
    -    XML_SCHEMAS_IDREFS = 25
    -    XML_SCHEMAS_ENTITY = 26
    -    XML_SCHEMAS_ENTITIES = 27
    -    XML_SCHEMAS_NOTATION = 28
    -    XML_SCHEMAS_ANYURI = 29
    -    XML_SCHEMAS_INTEGER = 30
    -    XML_SCHEMAS_NPINTEGER = 31
    -    XML_SCHEMAS_NINTEGER = 32
    -    XML_SCHEMAS_NNINTEGER = 33
    -    XML_SCHEMAS_PINTEGER = 34
    -    XML_SCHEMAS_INT = 35
    -    XML_SCHEMAS_UINT = 36
    -    XML_SCHEMAS_LONG = 37
    -    XML_SCHEMAS_ULONG = 38
    -    XML_SCHEMAS_SHORT = 39
    -    XML_SCHEMAS_USHORT = 40
    -    XML_SCHEMAS_BYTE = 41
    -    XML_SCHEMAS_UBYTE = 42
    -    XML_SCHEMAS_HEXBINARY = 43
    -    XML_SCHEMAS_BASE64BINARY = 44
    -    XML_SCHEMAS_ANYTYPE = 45
    -    XML_SCHEMAS_ANYSIMPLETYPE = 46
    -}
    -

    Structure xmlSchemaWildcard

    Structure xmlSchemaWildcard
    struct _xmlSchemaWildcard { - xmlSchemaTypeType type : The kind of type - const xmlChar * id : Deprecated; not used - xmlSchemaAnnotPtr annot - xmlNodePtr node - int minOccurs : Deprecated; not used - int maxOccurs : Deprecated; not used - int processContents - int any : Indicates if the ns constraint is of ## - xmlSchemaWildcardNsPtr nsSet : The list of allowed namespaces - xmlSchemaWildcardNsPtr negNsSet : The negated namespace - int flags -}

    Structure xmlSchemaWildcardNs

    Structure xmlSchemaWildcardNs
    struct _xmlSchemaWildcardNs { - struct _xmlSchemaWildcardNs * next : the next constraint link ... - const xmlChar * value : the value -}

    Function: xmlSchemaFreeType

    void	xmlSchemaFreeType		(xmlSchemaTypePtr type)
    -

    Deallocate a Schema Type structure.

    -
    type:a schema type structure

    Function: xmlSchemaFreeWildcard

    void	xmlSchemaFreeWildcard		(xmlSchemaWildcardPtr wildcard)
    -

    Deallocates a wildcard structure.

    -
    wildcard:a wildcard structure

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-schematron.html b/src/tools/docbook/libxml2/doc/html/libxml-schematron.html deleted file mode 100644 index 6797672080..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-schematron.html +++ /dev/null @@ -1,77 +0,0 @@ - - -Module schematron from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module schematron from libxml2

    API Menu
    API Indexes
    Related links

    interface to the XML Schematron validity checking.

    Table of Contents

    Structure xmlSchematron
    struct _xmlSchematron -The content of this structure is not made public by the API. -
    Structure xmlSchematronParserCtxt
    struct _xmlSchematronParserCtxt -The content of this structure is not made public by the API. -
    Typedef xmlSchematronParserCtxt * xmlSchematronParserCtxtPtr
    -
    Typedef xmlSchematron * xmlSchematronPtr
    -
    Structure xmlSchematronValidCtxt
    struct _xmlSchematronValidCtxt -The content of this structure is not made public by the API. -
    Typedef xmlSchematronValidCtxt * xmlSchematronValidCtxtPtr
    -
    Enum xmlSchematronValidOptions
    -
    void	xmlSchematronFree		(xmlSchematronPtr schema)
    -
    void	xmlSchematronFreeParserCtxt	(xmlSchematronParserCtxtPtr ctxt)
    -
    void	xmlSchematronFreeValidCtxt	(xmlSchematronValidCtxtPtr ctxt)
    -
    xmlSchematronParserCtxtPtr	xmlSchematronNewDocParserCtxt	(xmlDocPtr doc)
    -
    xmlSchematronParserCtxtPtr	xmlSchematronNewMemParserCtxt	(const char * buffer, 
    int size)
    -
    xmlSchematronParserCtxtPtr	xmlSchematronNewParserCtxt	(const char * URL)
    -
    xmlSchematronValidCtxtPtr	xmlSchematronNewValidCtxt	(xmlSchematronPtr schema, 
    int options)
    -
    xmlSchematronPtr	xmlSchematronParse	(xmlSchematronParserCtxtPtr ctxt)
    -
    int	xmlSchematronValidateDoc	(xmlSchematronValidCtxtPtr ctxt, 
    xmlDocPtr instance)
    -
    Function type: xmlSchematronValidityErrorFunc
    -void	xmlSchematronValidityErrorFunc	(void * ctx, 
    const char * msg,
    ... ...) -
    -
    Function type: xmlSchematronValidityWarningFunc
    -void	xmlSchematronValidityWarningFunc	(void * ctx, 
    const char * msg,
    ... ...) -
    -

    Description

    -

    Structure xmlSchematron

    Structure xmlSchematron
    struct _xmlSchematron { -The content of this structure is not made public by the API. -}

    Structure xmlSchematronParserCtxt

    Structure xmlSchematronParserCtxt
    struct _xmlSchematronParserCtxt { -The content of this structure is not made public by the API. -}

    Structure xmlSchematronValidCtxt

    Structure xmlSchematronValidCtxt
    struct _xmlSchematronValidCtxt { -The content of this structure is not made public by the API. -}

    Enum xmlSchematronValidOptions

    Enum xmlSchematronValidOptions {
    -    XML_SCHEMATRON_OUT_QUIET = 1 : quiet no report
    -    XML_SCHEMATRON_OUT_TEXT = 2 : build a textual report
    -    XML_SCHEMATRON_OUT_XML = 4 : output SVRL
    -    XML_SCHEMATRON_OUT_FILE = 256 : output to a file descriptor
    -    XML_SCHEMATRON_OUT_BUFFER = 512 : output to a buffer
    -    XML_SCHEMATRON_OUT_IO = 1024 : output to I/O mechanism
    -}
    -

    Function: xmlSchematronFree

    void	xmlSchematronFree		(xmlSchematronPtr schema)
    -

    Deallocate a Schematron structure.

    -
    schema:a schema structure

    Function: xmlSchematronFreeParserCtxt

    void	xmlSchematronFreeParserCtxt	(xmlSchematronParserCtxtPtr ctxt)
    -

    Free the resources associated to the schema parser context

    -
    ctxt:the schema parser context

    Function: xmlSchematronFreeValidCtxt

    void	xmlSchematronFreeValidCtxt	(xmlSchematronValidCtxtPtr ctxt)
    -

    Free the resources associated to the schema validation context

    -
    ctxt:the schema validation context

    Function: xmlSchematronNewDocParserCtxt

    xmlSchematronParserCtxtPtr	xmlSchematronNewDocParserCtxt	(xmlDocPtr doc)
    -

    Create an XML Schematrons parse context for that document. NB. The document may be modified during the parsing process.

    -
    doc:a preparsed document tree
    Returns:the parser context or NULL in case of error

    Function: xmlSchematronNewMemParserCtxt

    xmlSchematronParserCtxtPtr	xmlSchematronNewMemParserCtxt	(const char * buffer, 
    int size)
    -

    Create an XML Schematrons parse context for that memory buffer expected to contain an XML Schematrons file.

    -
    buffer:a pointer to a char array containing the schemas
    size:the size of the array
    Returns:the parser context or NULL in case of error

    Function: xmlSchematronNewParserCtxt

    xmlSchematronParserCtxtPtr	xmlSchematronNewParserCtxt	(const char * URL)
    -

    Create an XML Schematrons parse context for that file/resource expected to contain an XML Schematrons file.

    -
    URL:the location of the schema
    Returns:the parser context or NULL in case of error

    Function: xmlSchematronNewValidCtxt

    xmlSchematronValidCtxtPtr	xmlSchematronNewValidCtxt	(xmlSchematronPtr schema, 
    int options)
    -

    Create an XML Schematrons validation context based on the given schema.

    -
    schema:a precompiled XML Schematrons
    options:a set of xmlSchematronValidOptions
    Returns:the validation context or NULL in case of error

    Function: xmlSchematronParse

    xmlSchematronPtr	xmlSchematronParse	(xmlSchematronParserCtxtPtr ctxt)
    -

    parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances.

    -
    ctxt:a schema validation context
    Returns:the internal XML Schematron structure built from the resource or NULL in case of error

    Function: xmlSchematronValidateDoc

    int	xmlSchematronValidateDoc	(xmlSchematronValidCtxtPtr ctxt, 
    xmlDocPtr instance)
    -

    Validate a tree instance against the schematron

    -
    ctxt:the schema validation context
    instance:the document instace tree
    Returns:0 in case of success, -1 in case of internal error and an error count otherwise.

    Function type: xmlSchematronValidityErrorFunc

    Function type: xmlSchematronValidityErrorFunc
    -void	xmlSchematronValidityErrorFunc	(void * ctx, 
    const char * msg,
    ... ...) -

    ctx:
    msg:
    ...:

    -

    Function type: xmlSchematronValidityWarningFunc

    Function type: xmlSchematronValidityWarningFunc
    -void	xmlSchematronValidityWarningFunc	(void * ctx, 
    const char * msg,
    ... ...) -

    ctx:
    msg:
    ...:

    -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-threads.html b/src/tools/docbook/libxml2/doc/html/libxml-threads.html deleted file mode 100644 index eebcf3cd1b..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-threads.html +++ /dev/null @@ -1,69 +0,0 @@ - - -Module threads from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module threads from libxml2

    API Menu
    API Indexes
    Related links

    set of generic threading related routines should work with pthreads, Windows native or TLS threads

    Table of Contents

    Structure xmlMutex
    struct _xmlMutex -The content of this structure is not made public by the API. -
    Typedef xmlMutex * xmlMutexPtr
    -
    Structure xmlRMutex
    struct _xmlRMutex -The content of this structure is not made public by the API. -
    Typedef xmlRMutex * xmlRMutexPtr
    -
    void	xmlCleanupThreads		(void)
    -
    void	xmlFreeMutex			(xmlMutexPtr tok)
    -
    void	xmlFreeRMutex			(xmlRMutexPtr tok)
    -
    xmlGlobalStatePtr	xmlGetGlobalState	(void)
    -
    int	xmlGetThreadId			(void)
    -
    void	xmlInitThreads			(void)
    -
    int	xmlIsMainThread			(void)
    -
    void	xmlLockLibrary			(void)
    -
    void	xmlMutexLock			(xmlMutexPtr tok)
    -
    void	xmlMutexUnlock			(xmlMutexPtr tok)
    -
    xmlMutexPtr	xmlNewMutex		(void)
    -
    xmlRMutexPtr	xmlNewRMutex		(void)
    -
    void	xmlRMutexLock			(xmlRMutexPtr tok)
    -
    void	xmlRMutexUnlock			(xmlRMutexPtr tok)
    -
    void	xmlUnlockLibrary		(void)
    -

    Description

    -

    Structure xmlMutex

    Structure xmlMutex
    struct _xmlMutex { -The content of this structure is not made public by the API. -}

    Structure xmlRMutex

    Structure xmlRMutex
    struct _xmlRMutex { -The content of this structure is not made public by the API. -}

    Function: xmlCleanupThreads

    void	xmlCleanupThreads		(void)
    -

    xmlCleanupThreads() is used to to cleanup all the thread related data of the libxml2 library once processing has ended.

    -

    Function: xmlFreeMutex

    void	xmlFreeMutex			(xmlMutexPtr tok)
    -

    xmlFreeMutex() is used to reclaim resources associated with a libxml2 token struct.

    -
    tok:the simple mutex

    Function: xmlFreeRMutex

    void	xmlFreeRMutex			(xmlRMutexPtr tok)
    -

    xmlRFreeMutex() is used to reclaim resources associated with a reentrant mutex.

    -
    tok:the reentrant mutex

    Function: xmlGetGlobalState

    xmlGlobalStatePtr	xmlGetGlobalState	(void)
    -

    xmlGetGlobalState() is called to retrieve the global state for a thread.

    -
    Returns:the thread global state or NULL in case of error

    Function: xmlGetThreadId

    int	xmlGetThreadId			(void)
    -

    xmlGetThreadId() find the current thread ID number

    -
    Returns:the current thread ID number

    Function: xmlInitThreads

    void	xmlInitThreads			(void)
    -

    xmlInitThreads() is used to to initialize all the thread related data of the libxml2 library.

    -

    Function: xmlIsMainThread

    int	xmlIsMainThread			(void)
    -

    xmlIsMainThread() check whether the current thread is the main thread.

    -
    Returns:1 if the current thread is the main thread, 0 otherwise

    Function: xmlLockLibrary

    void	xmlLockLibrary			(void)
    -

    xmlLockLibrary() is used to take out a re-entrant lock on the libxml2 library.

    -

    Function: xmlMutexLock

    void	xmlMutexLock			(xmlMutexPtr tok)
    -

    xmlMutexLock() is used to lock a libxml2 token.

    -
    tok:the simple mutex

    Function: xmlMutexUnlock

    void	xmlMutexUnlock			(xmlMutexPtr tok)
    -

    xmlMutexUnlock() is used to unlock a libxml2 token.

    -
    tok:the simple mutex

    Function: xmlNewMutex

    xmlMutexPtr	xmlNewMutex		(void)
    -

    xmlNewMutex() is used to allocate a libxml2 token struct for use in synchronizing access to data.

    -
    Returns:a new simple mutex pointer or NULL in case of error

    Function: xmlNewRMutex

    xmlRMutexPtr	xmlNewRMutex		(void)
    -

    xmlRNewMutex() is used to allocate a reentrant mutex for use in synchronizing access to data. token_r is a re-entrant lock and thus useful for synchronizing access to data structures that may be manipulated in a recursive fashion.

    -
    Returns:the new reentrant mutex pointer or NULL in case of error

    Function: xmlRMutexLock

    void	xmlRMutexLock			(xmlRMutexPtr tok)
    -

    xmlRMutexLock() is used to lock a libxml2 token_r.

    -
    tok:the reentrant mutex

    Function: xmlRMutexUnlock

    void	xmlRMutexUnlock			(xmlRMutexPtr tok)
    -

    xmlRMutexUnlock() is used to unlock a libxml2 token_r.

    -
    tok:the reentrant mutex

    Function: xmlUnlockLibrary

    void	xmlUnlockLibrary		(void)
    -

    xmlUnlockLibrary() is used to release a re-entrant lock on the libxml2 library.

    -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-tree.html b/src/tools/docbook/libxml2/doc/html/libxml-tree.html deleted file mode 100644 index 9e45be1b7b..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-tree.html +++ /dev/null @@ -1,911 +0,0 @@ - - -Module tree from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module tree from libxml2

    API Menu
    API Indexes
    Related links

    this module describes the structures found in an tree resulting from an XML or HTML parsing, as well as the API provided for various processing on that tree

    Table of Contents

    #define BASE_BUFFER_SIZE
    #define XML_GET_CONTENT
    #define XML_GET_LINE
    #define XML_LOCAL_NAMESPACE
    #define XML_XML_ID
    #define XML_XML_NAMESPACE
    #define xmlChildrenNode
    #define xmlRootNode
    Structure xmlAttr
    struct _xmlAttr -
    Typedef xmlAttr * xmlAttrPtr
    -
    Structure xmlAttribute
    struct _xmlAttribute -
    Enum xmlAttributeDefault
    -
    Typedef xmlAttribute * xmlAttributePtr
    -
    Enum xmlAttributeType
    -
    Structure xmlBuffer
    struct _xmlBuffer -
    Enum xmlBufferAllocationScheme
    -
    Typedef xmlBuffer * xmlBufferPtr
    -
    Structure xmlDOMWrapCtxt
    struct _xmlDOMWrapCtxt -
    Typedef xmlDOMWrapCtxt * xmlDOMWrapCtxtPtr
    -
    Structure xmlDoc
    struct _xmlDoc -
    Typedef xmlDoc * xmlDocPtr
    -
    Structure xmlDtd
    struct _xmlDtd -
    Typedef xmlDtd * xmlDtdPtr
    -
    Structure xmlElement
    struct _xmlElement -
    Structure xmlElementContent
    struct _xmlElementContent -
    Enum xmlElementContentOccur
    -
    Typedef xmlElementContent * xmlElementContentPtr
    -
    Enum xmlElementContentType
    -
    Typedef xmlElement * xmlElementPtr
    -
    Enum xmlElementType
    -
    Enum xmlElementTypeVal
    -
    Structure xmlEntity
    struct _xmlEntity -
    Typedef xmlEntity * xmlEntityPtr
    -
    Structure xmlEnumeration
    struct _xmlEnumeration -
    Typedef xmlEnumeration * xmlEnumerationPtr
    -
    Structure xmlID
    struct _xmlID -
    Typedef xmlID * xmlIDPtr
    -
    Structure xmlNode
    struct _xmlNode -
    Typedef xmlNode * xmlNodePtr
    -
    Structure xmlNotation
    struct _xmlNotation -
    Typedef xmlNotation * xmlNotationPtr
    -
    Structure xmlNs
    struct _xmlNs -
    Typedef xmlNs * xmlNsPtr
    -
    Typedef xmlElementType xmlNsType
    -
    Structure xmlOutputBuffer
    struct _xmlOutputBuffer -
    Typedef xmlOutputBuffer * xmlOutputBufferPtr
    -
    Structure xmlParserCtxt
    struct _xmlParserCtxt -
    Typedef xmlParserCtxt * xmlParserCtxtPtr
    -
    Structure xmlParserInput
    struct _xmlParserInput -
    Structure xmlParserInputBuffer
    struct _xmlParserInputBuffer -
    Typedef xmlParserInputBuffer * xmlParserInputBufferPtr
    -
    Typedef xmlParserInput * xmlParserInputPtr
    -
    Structure xmlRef
    struct _xmlRef -
    Typedef xmlRef * xmlRefPtr
    -
    Structure xmlSAXHandler
    struct _xmlSAXHandler -
    Typedef xmlSAXHandler * xmlSAXHandlerPtr
    -
    Structure xmlSAXLocator
    struct _xmlSAXLocator -
    Typedef xmlSAXLocator * xmlSAXLocatorPtr
    -
    xmlNodePtr	xmlAddChild		(xmlNodePtr parent, 
    xmlNodePtr cur)
    -
    xmlNodePtr	xmlAddChildList		(xmlNodePtr parent, 
    xmlNodePtr cur)
    -
    xmlNodePtr	xmlAddNextSibling	(xmlNodePtr cur, 
    xmlNodePtr elem)
    -
    xmlNodePtr	xmlAddPrevSibling	(xmlNodePtr cur, 
    xmlNodePtr elem)
    -
    xmlNodePtr	xmlAddSibling		(xmlNodePtr cur, 
    xmlNodePtr elem)
    -
    void	xmlAttrSerializeTxtContent	(xmlBufferPtr buf, 
    xmlDocPtr doc,
    xmlAttrPtr attr,
    const xmlChar * string)
    -
    int	xmlBufferAdd			(xmlBufferPtr buf, 
    const xmlChar * str,
    int len)
    -
    int	xmlBufferAddHead		(xmlBufferPtr buf, 
    const xmlChar * str,
    int len)
    -
    int	xmlBufferCCat			(xmlBufferPtr buf, 
    const char * str)
    -
    int	xmlBufferCat			(xmlBufferPtr buf, 
    const xmlChar * str)
    -
    const xmlChar *	xmlBufferContent	(const xmlBufferPtr buf)
    -
    xmlBufferPtr	xmlBufferCreate		(void)
    -
    xmlBufferPtr	xmlBufferCreateSize	(size_t size)
    -
    xmlBufferPtr	xmlBufferCreateStatic	(void * mem, 
    size_t size)
    -
    int	xmlBufferDump			(FILE * file, 
    xmlBufferPtr buf)
    -
    void	xmlBufferEmpty			(xmlBufferPtr buf)
    -
    void	xmlBufferFree			(xmlBufferPtr buf)
    -
    int	xmlBufferGrow			(xmlBufferPtr buf, 
    unsigned int len)
    -
    int	xmlBufferLength			(const xmlBufferPtr buf)
    -
    int	xmlBufferResize			(xmlBufferPtr buf, 
    unsigned int size)
    -
    void	xmlBufferSetAllocationScheme	(xmlBufferPtr buf, 
    xmlBufferAllocationScheme scheme)
    -
    int	xmlBufferShrink			(xmlBufferPtr buf, 
    unsigned int len)
    -
    void	xmlBufferWriteCHAR		(xmlBufferPtr buf, 
    const xmlChar * string)
    -
    void	xmlBufferWriteChar		(xmlBufferPtr buf, 
    const char * string)
    -
    void	xmlBufferWriteQuotedString	(xmlBufferPtr buf, 
    const xmlChar * string)
    -
    xmlChar *	xmlBuildQName		(const xmlChar * ncname, 
    const xmlChar * prefix,
    xmlChar * memory,
    int len)
    -
    xmlDocPtr	xmlCopyDoc		(xmlDocPtr doc, 
    int recursive)
    -
    xmlDtdPtr	xmlCopyDtd		(xmlDtdPtr dtd)
    -
    xmlNsPtr	xmlCopyNamespace	(xmlNsPtr cur)
    -
    xmlNsPtr	xmlCopyNamespaceList	(xmlNsPtr cur)
    -
    xmlNodePtr	xmlCopyNode		(const xmlNodePtr node, 
    int extended)
    -
    xmlNodePtr	xmlCopyNodeList		(const xmlNodePtr node)
    -
    xmlAttrPtr	xmlCopyProp		(xmlNodePtr target, 
    xmlAttrPtr cur)
    -
    xmlAttrPtr	xmlCopyPropList		(xmlNodePtr target, 
    xmlAttrPtr cur)
    -
    xmlDtdPtr	xmlCreateIntSubset	(xmlDocPtr doc, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -
    int	xmlDOMWrapAdoptNode		(xmlDOMWrapCtxtPtr ctxt, 
    xmlDocPtr sourceDoc,
    xmlNodePtr node,
    xmlDocPtr destDoc,
    xmlNodePtr destParent,
    int options)
    -
    int	xmlDOMWrapCloneNode		(xmlDOMWrapCtxtPtr ctxt, 
    xmlDocPtr sourceDoc,
    xmlNodePtr node,
    xmlNodePtr * resNode,
    xmlDocPtr destDoc,
    xmlNodePtr destParent,
    int deep,
    int options)
    -
    void	xmlDOMWrapFreeCtxt		(xmlDOMWrapCtxtPtr ctxt)
    -
    xmlDOMWrapCtxtPtr	xmlDOMWrapNewCtxt	(void)
    -
    int	xmlDOMWrapReconcileNamespaces	(xmlDOMWrapCtxtPtr ctxt, 
    xmlNodePtr elem,
    int options)
    -
    int	xmlDOMWrapRemoveNode		(xmlDOMWrapCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr node,
    int options)
    -
    xmlNodePtr	xmlDocCopyNode		(const xmlNodePtr node, 
    xmlDocPtr doc,
    int extended)
    -
    xmlNodePtr	xmlDocCopyNodeList	(xmlDocPtr doc, 
    const xmlNodePtr node)
    -
    int	xmlDocDump			(FILE * f, 
    xmlDocPtr cur)
    -
    void	xmlDocDumpFormatMemory		(xmlDocPtr cur, 
    xmlChar ** mem,
    int * size,
    int format)
    -
    void	xmlDocDumpFormatMemoryEnc	(xmlDocPtr out_doc, 
    xmlChar ** doc_txt_ptr,
    int * doc_txt_len,
    const char * txt_encoding,
    int format)
    -
    void	xmlDocDumpMemory		(xmlDocPtr cur, 
    xmlChar ** mem,
    int * size)
    -
    void	xmlDocDumpMemoryEnc		(xmlDocPtr out_doc, 
    xmlChar ** doc_txt_ptr,
    int * doc_txt_len,
    const char * txt_encoding)
    -
    int	xmlDocFormatDump		(FILE * f, 
    xmlDocPtr cur,
    int format)
    -
    xmlNodePtr	xmlDocGetRootElement	(xmlDocPtr doc)
    -
    xmlNodePtr	xmlDocSetRootElement	(xmlDocPtr doc, 
    xmlNodePtr root)
    -
    void	xmlElemDump			(FILE * f, 
    xmlDocPtr doc,
    xmlNodePtr cur)
    -
    void	xmlFreeDoc			(xmlDocPtr cur)
    -
    void	xmlFreeDtd			(xmlDtdPtr cur)
    -
    void	xmlFreeNode			(xmlNodePtr cur)
    -
    void	xmlFreeNodeList			(xmlNodePtr cur)
    -
    void	xmlFreeNs			(xmlNsPtr cur)
    -
    void	xmlFreeNsList			(xmlNsPtr cur)
    -
    void	xmlFreeProp			(xmlAttrPtr cur)
    -
    void	xmlFreePropList			(xmlAttrPtr cur)
    -
    xmlBufferAllocationScheme	xmlGetBufferAllocationScheme	(void)
    -
    int	xmlGetCompressMode		(void)
    -
    int	xmlGetDocCompressMode		(xmlDocPtr doc)
    -
    xmlDtdPtr	xmlGetIntSubset		(xmlDocPtr doc)
    -
    xmlNodePtr	xmlGetLastChild		(xmlNodePtr parent)
    -
    long	xmlGetLineNo			(xmlNodePtr node)
    -
    xmlChar *	xmlGetNoNsProp		(xmlNodePtr node, 
    const xmlChar * name)
    -
    xmlChar *	xmlGetNodePath		(xmlNodePtr node)
    -
    xmlNsPtr *	xmlGetNsList		(xmlDocPtr doc, 
    xmlNodePtr node)
    -
    xmlChar *	xmlGetNsProp		(xmlNodePtr node, 
    const xmlChar * name,
    const xmlChar * nameSpace)
    -
    xmlChar *	xmlGetProp		(xmlNodePtr node, 
    const xmlChar * name)
    -
    xmlAttrPtr	xmlHasNsProp		(xmlNodePtr node, 
    const xmlChar * name,
    const xmlChar * nameSpace)
    -
    xmlAttrPtr	xmlHasProp		(xmlNodePtr node, 
    const xmlChar * name)
    -
    int	xmlIsBlankNode			(xmlNodePtr node)
    -
    int	xmlIsXHTML			(const xmlChar * systemID, 
    const xmlChar * publicID)
    -
    xmlNodePtr	xmlNewCDataBlock	(xmlDocPtr doc, 
    const xmlChar * content,
    int len)
    -
    xmlNodePtr	xmlNewCharRef		(xmlDocPtr doc, 
    const xmlChar * name)
    -
    xmlNodePtr	xmlNewChild		(xmlNodePtr parent, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * content)
    -
    xmlNodePtr	xmlNewComment		(const xmlChar * content)
    -
    xmlDocPtr	xmlNewDoc		(const xmlChar * version)
    -
    xmlNodePtr	xmlNewDocComment	(xmlDocPtr doc, 
    const xmlChar * content)
    -
    xmlNodePtr	xmlNewDocFragment	(xmlDocPtr doc)
    -
    xmlNodePtr	xmlNewDocNode		(xmlDocPtr doc, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * content)
    -
    xmlNodePtr	xmlNewDocNodeEatName	(xmlDocPtr doc, 
    xmlNsPtr ns,
    xmlChar * name,
    const xmlChar * content)
    -
    xmlNodePtr	xmlNewDocPI		(xmlDocPtr doc, 
    const xmlChar * name,
    const xmlChar * content)
    -
    xmlAttrPtr	xmlNewDocProp		(xmlDocPtr doc, 
    const xmlChar * name,
    const xmlChar * value)
    -
    xmlNodePtr	xmlNewDocRawNode	(xmlDocPtr doc, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * content)
    -
    xmlNodePtr	xmlNewDocText		(xmlDocPtr doc, 
    const xmlChar * content)
    -
    xmlNodePtr	xmlNewDocTextLen	(xmlDocPtr doc, 
    const xmlChar * content,
    int len)
    -
    xmlDtdPtr	xmlNewDtd		(xmlDocPtr doc, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -
    xmlNsPtr	xmlNewGlobalNs		(xmlDocPtr doc, 
    const xmlChar * href,
    const xmlChar * prefix)
    -
    xmlNodePtr	xmlNewNode		(xmlNsPtr ns, 
    const xmlChar * name)
    -
    xmlNodePtr	xmlNewNodeEatName	(xmlNsPtr ns, 
    xmlChar * name)
    -
    xmlNsPtr	xmlNewNs		(xmlNodePtr node, 
    const xmlChar * href,
    const xmlChar * prefix)
    -
    xmlAttrPtr	xmlNewNsProp		(xmlNodePtr node, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * value)
    -
    xmlAttrPtr	xmlNewNsPropEatName	(xmlNodePtr node, 
    xmlNsPtr ns,
    xmlChar * name,
    const xmlChar * value)
    -
    xmlNodePtr	xmlNewPI		(const xmlChar * name, 
    const xmlChar * content)
    -
    xmlAttrPtr	xmlNewProp		(xmlNodePtr node, 
    const xmlChar * name,
    const xmlChar * value)
    -
    xmlNodePtr	xmlNewReference		(xmlDocPtr doc, 
    const xmlChar * name)
    -
    xmlNodePtr	xmlNewText		(const xmlChar * content)
    -
    xmlNodePtr	xmlNewTextChild		(xmlNodePtr parent, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * content)
    -
    xmlNodePtr	xmlNewTextLen		(const xmlChar * content, 
    int len)
    -
    void	xmlNodeAddContent		(xmlNodePtr cur, 
    const xmlChar * content)
    -
    void	xmlNodeAddContentLen		(xmlNodePtr cur, 
    const xmlChar * content,
    int len)
    -
    int	xmlNodeBufGetContent		(xmlBufferPtr buffer, 
    xmlNodePtr cur)
    -
    int	xmlNodeDump			(xmlBufferPtr buf, 
    xmlDocPtr doc,
    xmlNodePtr cur,
    int level,
    int format)
    -
    void	xmlNodeDumpOutput		(xmlOutputBufferPtr buf, 
    xmlDocPtr doc,
    xmlNodePtr cur,
    int level,
    int format,
    const char * encoding)
    -
    xmlChar *	xmlNodeGetBase		(xmlDocPtr doc, 
    xmlNodePtr cur)
    -
    xmlChar *	xmlNodeGetContent	(xmlNodePtr cur)
    -
    xmlChar *	xmlNodeGetLang		(xmlNodePtr cur)
    -
    int	xmlNodeGetSpacePreserve		(xmlNodePtr cur)
    -
    int	xmlNodeIsText			(xmlNodePtr node)
    -
    xmlChar *	xmlNodeListGetRawString	(xmlDocPtr doc, 
    xmlNodePtr list,
    int inLine)
    -
    xmlChar *	xmlNodeListGetString	(xmlDocPtr doc, 
    xmlNodePtr list,
    int inLine)
    -
    void	xmlNodeSetBase			(xmlNodePtr cur, 
    const xmlChar * uri)
    -
    void	xmlNodeSetContent		(xmlNodePtr cur, 
    const xmlChar * content)
    -
    void	xmlNodeSetContentLen		(xmlNodePtr cur, 
    const xmlChar * content,
    int len)
    -
    void	xmlNodeSetLang			(xmlNodePtr cur, 
    const xmlChar * lang)
    -
    void	xmlNodeSetName			(xmlNodePtr cur, 
    const xmlChar * name)
    -
    void	xmlNodeSetSpacePreserve		(xmlNodePtr cur, 
    int val)
    -
    int	xmlReconciliateNs		(xmlDocPtr doc, 
    xmlNodePtr tree)
    -
    int	xmlRemoveProp			(xmlAttrPtr cur)
    -
    xmlNodePtr	xmlReplaceNode		(xmlNodePtr old, 
    xmlNodePtr cur)
    -
    int	xmlSaveFile			(const char * filename, 
    xmlDocPtr cur)
    -
    int	xmlSaveFileEnc			(const char * filename, 
    xmlDocPtr cur,
    const char * encoding)
    -
    int	xmlSaveFileTo			(xmlOutputBufferPtr buf, 
    xmlDocPtr cur,
    const char * encoding)
    -
    int	xmlSaveFormatFile		(const char * filename, 
    xmlDocPtr cur,
    int format)
    -
    int	xmlSaveFormatFileEnc		(const char * filename, 
    xmlDocPtr cur,
    const char * encoding,
    int format)
    -
    int	xmlSaveFormatFileTo		(xmlOutputBufferPtr buf, 
    xmlDocPtr cur,
    const char * encoding,
    int format)
    -
    xmlNsPtr	xmlSearchNs		(xmlDocPtr doc, 
    xmlNodePtr node,
    const xmlChar * nameSpace)
    -
    xmlNsPtr	xmlSearchNsByHref	(xmlDocPtr doc, 
    xmlNodePtr node,
    const xmlChar * href)
    -
    void	xmlSetBufferAllocationScheme	(xmlBufferAllocationScheme scheme)
    -
    void	xmlSetCompressMode		(int mode)
    -
    void	xmlSetDocCompressMode		(xmlDocPtr doc, 
    int mode)
    -
    void	xmlSetListDoc			(xmlNodePtr list, 
    xmlDocPtr doc)
    -
    void	xmlSetNs			(xmlNodePtr node, 
    xmlNsPtr ns)
    -
    xmlAttrPtr	xmlSetNsProp		(xmlNodePtr node, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * value)
    -
    xmlAttrPtr	xmlSetProp		(xmlNodePtr node, 
    const xmlChar * name,
    const xmlChar * value)
    -
    void	xmlSetTreeDoc			(xmlNodePtr tree, 
    xmlDocPtr doc)
    -
    xmlChar *	xmlSplitQName2		(const xmlChar * name, 
    xmlChar ** prefix)
    -
    const xmlChar *	xmlSplitQName3		(const xmlChar * name, 
    int * len)
    -
    xmlNodePtr	xmlStringGetNodeList	(xmlDocPtr doc, 
    const xmlChar * value)
    -
    xmlNodePtr	xmlStringLenGetNodeList	(xmlDocPtr doc, 
    const xmlChar * value,
    int len)
    -
    int	xmlTextConcat			(xmlNodePtr node, 
    const xmlChar * content,
    int len)
    -
    xmlNodePtr	xmlTextMerge		(xmlNodePtr first, 
    xmlNodePtr second)
    -
    void	xmlUnlinkNode			(xmlNodePtr cur)
    -
    int	xmlUnsetNsProp			(xmlNodePtr node, 
    xmlNsPtr ns,
    const xmlChar * name)
    -
    int	xmlUnsetProp			(xmlNodePtr node, 
    const xmlChar * name)
    -
    int	xmlValidateNCName		(const xmlChar * value, 
    int space)
    -
    int	xmlValidateNMToken		(const xmlChar * value, 
    int space)
    -
    int	xmlValidateName			(const xmlChar * value, 
    int space)
    -
    int	xmlValidateQName		(const xmlChar * value, 
    int space)
    -

    Description

    -

    Macro: BASE_BUFFER_SIZE

    #define BASE_BUFFER_SIZE

    default buffer size 4000.

    -

    Macro: XML_GET_CONTENT

    #define XML_GET_CONTENT

    Macro to extract the content pointer of a node.

    -

    Macro: XML_GET_LINE

    #define XML_GET_LINE

    Macro to extract the line number of an element node.

    -

    Macro: XML_LOCAL_NAMESPACE

    #define XML_LOCAL_NAMESPACE

    A namespace declaration node.

    -

    Macro: XML_XML_ID

    #define XML_XML_ID

    This is the name for the special xml:id attribute

    -

    Macro: XML_XML_NAMESPACE

    #define XML_XML_NAMESPACE

    This is the namespace for the special xml: prefix predefined in the XML Namespace specification.

    -

    Macro: xmlChildrenNode

    #define xmlChildrenNode

    Macro for compatibility naming layer with libxml1. Maps to "children."

    -

    Macro: xmlRootNode

    #define xmlRootNode

    Macro for compatibility naming layer with libxml1. Maps to "children".

    -

    Structure xmlAttr

    Structure xmlAttr
    struct _xmlAttr { - void * _private : application data - xmlElementType type : XML_ATTRIBUTE_NODE, must be second ! - const xmlChar * name : the name of the property - struct _xmlNode * children : the value of the property - struct _xmlNode * last : NULL - struct _xmlNode * parent : child->parent link - struct _xmlAttr * next : next sibling link - struct _xmlAttr * prev : previous sibling link - struct _xmlDoc * doc : the containing document - xmlNs * ns : pointer to the associated namespace - xmlAttributeType atype : the attribute type if validating - void * psvi : for type/PSVI informations -}

    Structure xmlAttribute

    Structure xmlAttribute
    struct _xmlAttribute { - void * _private : application data - xmlElementType type : XML_ATTRIBUTE_DECL, must be second ! - const xmlChar * name : Attribute name - struct _xmlNode * children : NULL - struct _xmlNode * last : NULL - struct _xmlDtd * parent : -> DTD - struct _xmlNode * next : next sibling link - struct _xmlNode * prev : previous sibling link - struct _xmlDoc * doc : the containing document - struct _xmlAttribute * nexth : next in hash table - xmlAttributeType atype : The attribute type - xmlAttributeDefault def : the default - const xmlChar * defaultValue : or the default value - xmlEnumerationPtr tree : or the enumeration tree if any - const xmlChar * prefix : the namespace prefix if any - const xmlChar * elem : Element holding the attribute -}

    Enum xmlAttributeDefault

    Enum xmlAttributeDefault {
    -    XML_ATTRIBUTE_NONE = 1
    -    XML_ATTRIBUTE_REQUIRED = 2
    -    XML_ATTRIBUTE_IMPLIED = 3
    -    XML_ATTRIBUTE_FIXED = 4
    -}
    -

    Enum xmlAttributeType

    Enum xmlAttributeType {
    -    XML_ATTRIBUTE_CDATA = 1
    -    XML_ATTRIBUTE_ID = 2
    -    XML_ATTRIBUTE_IDREF = 3
    -    XML_ATTRIBUTE_IDREFS = 4
    -    XML_ATTRIBUTE_ENTITY = 5
    -    XML_ATTRIBUTE_ENTITIES = 6
    -    XML_ATTRIBUTE_NMTOKEN = 7
    -    XML_ATTRIBUTE_NMTOKENS = 8
    -    XML_ATTRIBUTE_ENUMERATION = 9
    -    XML_ATTRIBUTE_NOTATION = 10
    -}
    -

    Structure xmlBuffer

    Structure xmlBuffer
    struct _xmlBuffer { - xmlChar * content : The buffer content UTF8 - unsigned int use : The buffer size used - unsigned int size : The buffer size - xmlBufferAllocationScheme alloc : The realloc method -}

    Enum xmlBufferAllocationScheme

    Enum xmlBufferAllocationScheme {
    -    XML_BUFFER_ALLOC_DOUBLEIT = 1
    -    XML_BUFFER_ALLOC_EXACT = 2
    -    XML_BUFFER_ALLOC_IMMUTABLE = 3
    -}
    -

    Structure xmlDOMWrapCtxt

    Structure xmlDOMWrapCtxt
    struct _xmlDOMWrapCtxt { - void * _private -}

    Structure xmlDoc

    Structure xmlDoc
    struct _xmlDoc { - void * _private : application data - xmlElementType type : XML_DOCUMENT_NODE, must be second ! - char * name : name/filename/URI of the document - struct _xmlNode * children : the document tree - struct _xmlNode * last : last child link - struct _xmlNode * parent : child->parent link - struct _xmlNode * next : next sibling link - struct _xmlNode * prev : previous sibling link - struct _xmlDoc * doc : autoreference to itself End of common p - int compression : level of zlib compression - int standalone : standalone document (no external refs) - struct _xmlDtd * intSubset : the document internal subset - struct _xmlDtd * extSubset : the document external subset - struct _xmlNs * oldNs : Global namespace, the old way - const xmlChar * version : the XML version string - const xmlChar * encoding : external initial encoding, if any - void * ids : Hash table for ID attributes if any - void * refs : Hash table for IDREFs attributes if any - const xmlChar * URL : The URI for that document - int charset : encoding of the in-memory content actua - struct _xmlDict * dict : dict used to allocate names or NULL - void * psvi : for type/PSVI informations -}

    Structure xmlDtd

    Structure xmlDtd
    struct _xmlDtd { - void * _private : application data - xmlElementType type : XML_DTD_NODE, must be second ! - const xmlChar * name : Name of the DTD - struct _xmlNode * children : the value of the property link - struct _xmlNode * last : last child link - struct _xmlDoc * parent : child->parent link - struct _xmlNode * next : next sibling link - struct _xmlNode * prev : previous sibling link - struct _xmlDoc * doc : the containing document End of common p - void * notations : Hash table for notations if any - void * elements : Hash table for elements if any - void * attributes : Hash table for attributes if any - void * entities : Hash table for entities if any - const xmlChar * ExternalID : External identifier for PUBLIC DTD - const xmlChar * SystemID : URI for a SYSTEM or PUBLIC DTD - void * pentities : Hash table for param entities if any -}

    Structure xmlElement

    Structure xmlElement
    struct _xmlElement { - void * _private : application data - xmlElementType type : XML_ELEMENT_DECL, must be second ! - const xmlChar * name : Element name - struct _xmlNode * children : NULL - struct _xmlNode * last : NULL - struct _xmlDtd * parent : -> DTD - struct _xmlNode * next : next sibling link - struct _xmlNode * prev : previous sibling link - struct _xmlDoc * doc : the containing document - xmlElementTypeVal etype : The type - xmlElementContentPtr content : the allowed element content - xmlAttributePtr attributes : List of the declared attributes - const xmlChar * prefix : the namespace prefix if any - xmlRegexpPtr contModel : the validating regexp - void * contModel -}

    Structure xmlElementContent

    Structure xmlElementContent
    struct _xmlElementContent { - xmlElementContentType type : PCDATA, ELEMENT, SEQ or OR - xmlElementContentOccur ocur : ONCE, OPT, MULT or PLUS - const xmlChar * name : Element name - struct _xmlElementContent * c1 : first child - struct _xmlElementContent * c2 : second child - struct _xmlElementContent * parent : parent - const xmlChar * prefix : Namespace prefix -}

    Enum xmlElementContentOccur

    Enum xmlElementContentOccur {
    -    XML_ELEMENT_CONTENT_ONCE = 1
    -    XML_ELEMENT_CONTENT_OPT = 2
    -    XML_ELEMENT_CONTENT_MULT = 3
    -    XML_ELEMENT_CONTENT_PLUS = 4
    -}
    -

    Enum xmlElementContentType

    Enum xmlElementContentType {
    -    XML_ELEMENT_CONTENT_PCDATA = 1
    -    XML_ELEMENT_CONTENT_ELEMENT = 2
    -    XML_ELEMENT_CONTENT_SEQ = 3
    -    XML_ELEMENT_CONTENT_OR = 4
    -}
    -

    Enum xmlElementType

    Enum xmlElementType {
    -    XML_ELEMENT_NODE = 1
    -    XML_ATTRIBUTE_NODE = 2
    -    XML_TEXT_NODE = 3
    -    XML_CDATA_SECTION_NODE = 4
    -    XML_ENTITY_REF_NODE = 5
    -    XML_ENTITY_NODE = 6
    -    XML_PI_NODE = 7
    -    XML_COMMENT_NODE = 8
    -    XML_DOCUMENT_NODE = 9
    -    XML_DOCUMENT_TYPE_NODE = 10
    -    XML_DOCUMENT_FRAG_NODE = 11
    -    XML_NOTATION_NODE = 12
    -    XML_HTML_DOCUMENT_NODE = 13
    -    XML_DTD_NODE = 14
    -    XML_ELEMENT_DECL = 15
    -    XML_ATTRIBUTE_DECL = 16
    -    XML_ENTITY_DECL = 17
    -    XML_NAMESPACE_DECL = 18
    -    XML_XINCLUDE_START = 19
    -    XML_XINCLUDE_END = 20
    -    XML_DOCB_DOCUMENT_NODE = 21
    -}
    -

    Enum xmlElementTypeVal

    Enum xmlElementTypeVal {
    -    XML_ELEMENT_TYPE_UNDEFINED = 0
    -    XML_ELEMENT_TYPE_EMPTY = 1
    -    XML_ELEMENT_TYPE_ANY = 2
    -    XML_ELEMENT_TYPE_MIXED = 3
    -    XML_ELEMENT_TYPE_ELEMENT = 4
    -}
    -

    Structure xmlEntity

    Structure xmlEntity
    struct _xmlEntity { - void * _private : application data - xmlElementType type : XML_ENTITY_DECL, must be second ! - const xmlChar * name : Entity name - struct _xmlNode * children : First child link - struct _xmlNode * last : Last child link - struct _xmlDtd * parent : -> DTD - struct _xmlNode * next : next sibling link - struct _xmlNode * prev : previous sibling link - struct _xmlDoc * doc : the containing document - xmlChar * orig : content without ref substitution - xmlChar * content : content or ndata if unparsed - int length : the content length - xmlEntityType etype : The entity type - const xmlChar * ExternalID : External identifier for PUBLIC - const xmlChar * SystemID : URI for a SYSTEM or PUBLIC Entity - struct _xmlEntity * nexte : unused - const xmlChar * URI : the full URI as computed - int owner : does the entity own the childrens -}

    Structure xmlEnumeration

    Structure xmlEnumeration
    struct _xmlEnumeration { - struct _xmlEnumeration * next : next one - const xmlChar * name : Enumeration name -}

    Structure xmlID

    Structure xmlID
    struct _xmlID { - struct _xmlID * next : next ID - const xmlChar * value : The ID name - xmlAttrPtr attr : The attribute holding it - const xmlChar * name : The attribute if attr is not available - int lineno : The line number if attr is not availabl - struct _xmlDoc * doc : The document holding the ID -}

    Structure xmlNode

    Structure xmlNode
    struct _xmlNode { - void * _private : application data - xmlElementType type : type number, must be second ! - const xmlChar * name : the name of the node, or the entity - struct _xmlNode * children : parent->childs link - struct _xmlNode * last : last child link - struct _xmlNode * parent : child->parent link - struct _xmlNode * next : next sibling link - struct _xmlNode * prev : previous sibling link - struct _xmlDoc * doc : the containing document End of common p - xmlNs * ns : pointer to the associated namespace - xmlChar * content : the content - struct _xmlAttr * properties : properties list - xmlNs * nsDef : namespace definitions on this node - void * psvi : for type/PSVI informations - unsigned short line : line number - unsigned short extra : extra data for XPath/XSLT -}

    Structure xmlNotation

    Structure xmlNotation
    struct _xmlNotation { - const xmlChar * name : Notation name - const xmlChar * PublicID : Public identifier, if any - const xmlChar * SystemID : System identifier, if any -}

    Structure xmlNs

    Structure xmlNs
    struct _xmlNs { - struct _xmlNs * next : next Ns link for this node - xmlNsType type : global or local - const xmlChar * href : URL for the namespace - const xmlChar * prefix : prefix for the namespace - void * _private : application data -}

    Structure xmlOutputBuffer

    Structure xmlOutputBuffer
    struct _xmlOutputBuffer { - void * context - xmlOutputWriteCallback writecallback - xmlOutputCloseCallback closecallback - xmlCharEncodingHandlerPtr encoder : I18N conversions to UTF-8 - xmlBufferPtr buffer : Local buffer encoded in UTF-8 or ISOLat - xmlBufferPtr conv : if encoder != NULL buffer for output - int written : total number of byte written - int error -}

    Structure xmlParserCtxt

    Structure xmlParserCtxt
    struct _xmlParserCtxt { - struct _xmlSAXHandler * sax : The SAX handler - void * userData : For SAX interface only, used by DOM bui - xmlDocPtr myDoc : the document being built - int wellFormed : is the document well formed - int replaceEntities : shall we replace entities ? - const xmlChar * version : the XML version string - const xmlChar * encoding : the declared encoding, if any - int standalone : standalone document - int html : an HTML(1)/Docbook(2) document Input st - xmlParserInputPtr input : Current input stream - int inputNr : Number of current input streams - int inputMax : Max number of input streams - xmlParserInputPtr * inputTab : stack of inputs Node analysis stack onl - xmlNodePtr node : Current parsed Node - int nodeNr : Depth of the parsing stack - int nodeMax : Max depth of the parsing stack - xmlNodePtr * nodeTab : array of nodes - int record_info : Whether node info should be kept - xmlParserNodeInfoSeq node_seq : info about each node parsed - int errNo : error code - int hasExternalSubset : reference and external subset - int hasPErefs : the internal subset has PE refs - int external : are we parsing an external entity - int valid : is the document valid - int validate : shall we try to validate ? - xmlValidCtxt vctxt : The validity context - xmlParserInputState instate : current type of input - int token : next char look-ahead - char * directory : the data directory Node name stack - const xmlChar * name : Current parsed Node - int nameNr : Depth of the parsing stack - int nameMax : Max depth of the parsing stack - const xmlChar * * nameTab : array of nodes - long nbChars : number of xmlChar processed - long checkIndex : used by progressive parsing lookup - int keepBlanks : ugly but ... - int disableSAX : SAX callbacks are disabled - int inSubset : Parsing is in int 1/ext 2 subset - const xmlChar * intSubName : name of subset - xmlChar * extSubURI : URI of external subset - xmlChar * extSubSystem : SYSTEM ID of external subset xml:space - int * space : Should the parser preserve spaces - int spaceNr : Depth of the parsing stack - int spaceMax : Max depth of the parsing stack - int * spaceTab : array of space infos - int depth : to prevent entity substitution loops - xmlParserInputPtr entity : used to check entities boundaries - int charset : encoding of the in-memory content actua - int nodelen : Those two fields are there to - int nodemem : Speed up large node parsing - int pedantic : signal pedantic warnings - void * _private : For user data, libxml won't touch it - int loadsubset : should the external subset be loaded - int linenumbers : set line number in element content - void * catalogs : document's own catalog - int recovery : run in recovery mode - int progressive : is this a progressive parsing - xmlDictPtr dict : dictionnary for the parser - const xmlChar * * atts : array for the attributes callbacks - int maxatts : the size of the array - int docdict : * pre-interned strings * - const xmlChar * str_xml - const xmlChar * str_xmlns - const xmlChar * str_xml_ns : * Everything below is used only by the n - int sax2 : operating in the new SAX mode - int nsNr : the number of inherited namespaces - int nsMax : the size of the arrays - const xmlChar * * nsTab : the array of prefix/namespace name - int * attallocs : which attribute were allocated - void * * pushTab : array of data for push - xmlHashTablePtr attsDefault : defaulted attributes if any - xmlHashTablePtr attsSpecial : non-CDATA attributes if any - int nsWellFormed : is the document XML Nanespace okay - int options : * Those fields are needed only for tream - int dictNames : Use dictionary names for the tree - int freeElemsNr : number of freed element nodes - xmlNodePtr freeElems : List of freed element nodes - int freeAttrsNr : number of freed attributes nodes - xmlAttrPtr freeAttrs : * the complete error informations for th - xmlError lastError - xmlParserMode parseMode : the parser mode -}

    Structure xmlParserInput

    Structure xmlParserInput
    struct _xmlParserInput { - xmlParserInputBufferPtr buf : UTF-8 encoded buffer - const char * filename : The file analyzed, if any - const char * directory : the directory/base of the file - const xmlChar * base : Base of the array to parse - const xmlChar * cur : Current char being parsed - const xmlChar * end : end of the array to parse - int length : length if known - int line : Current line - int col : * NOTE: consumed is only tested for equa - unsigned long consumed : How many xmlChars already consumed - xmlParserInputDeallocate free : function to deallocate the base - const xmlChar * encoding : the encoding string for entity - const xmlChar * version : the version string for entity - int standalone : Was that entity marked standalone - int id : an unique identifier for the entity -}

    Structure xmlParserInputBuffer

    Structure xmlParserInputBuffer
    struct _xmlParserInputBuffer { - void * context - xmlInputReadCallback readcallback - xmlInputCloseCallback closecallback - xmlCharEncodingHandlerPtr encoder : I18N conversions to UTF-8 - xmlBufferPtr buffer : Local buffer encoded in UTF-8 - xmlBufferPtr raw : if encoder != NULL buffer for raw input - int compressed : -1=unknown, 0=not compressed, 1=compres - int error - unsigned long rawconsumed : amount consumed from raw -}

    Structure xmlRef

    Structure xmlRef
    struct _xmlRef { - struct _xmlRef * next : next Ref - const xmlChar * value : The Ref name - xmlAttrPtr attr : The attribute holding it - const xmlChar * name : The attribute if attr is not available - int lineno : The line number if attr is not availabl -}

    Structure xmlSAXHandler

    Structure xmlSAXHandler
    struct _xmlSAXHandler { - internalSubsetSAXFunc internalSubset - isStandaloneSAXFunc isStandalone - hasInternalSubsetSAXFunc hasInternalSubset - hasExternalSubsetSAXFunc hasExternalSubset - resolveEntitySAXFunc resolveEntity - getEntitySAXFunc getEntity - entityDeclSAXFunc entityDecl - notationDeclSAXFunc notationDecl - attributeDeclSAXFunc attributeDecl - elementDeclSAXFunc elementDecl - unparsedEntityDeclSAXFunc unparsedEntityDecl - setDocumentLocatorSAXFunc setDocumentLocator - startDocumentSAXFunc startDocument - endDocumentSAXFunc endDocument - startElementSAXFunc startElement - endElementSAXFunc endElement - referenceSAXFunc reference - charactersSAXFunc characters - ignorableWhitespaceSAXFunc ignorableWhitespace - processingInstructionSAXFunc processingInstruction - commentSAXFunc comment - warningSAXFunc warning - errorSAXFunc error - fatalErrorSAXFunc fatalError : unused error() get all the errors - getParameterEntitySAXFunc getParameterEntity - cdataBlockSAXFunc cdataBlock - externalSubsetSAXFunc externalSubset - unsigned int initialized : The following fields are extensions ava - void * _private - startElementNsSAX2Func startElementNs - endElementNsSAX2Func endElementNs - xmlStructuredErrorFunc serror -}

    Structure xmlSAXLocator

    Structure xmlSAXLocator
    struct _xmlSAXLocator { - const xmlChar *(*getPublicId) getPublicId - const xmlChar *(*getSystemId) getSystemId - int(*getLineNumber) getLineNumber - int(*getColumnNumber) getColumnNumber -}

    Function: xmlAddChild

    xmlNodePtr	xmlAddChild		(xmlNodePtr parent, 
    xmlNodePtr cur)
    -

    Add a new node to @parent, at the end of the child (or property) list merging adjacent TEXT nodes (in which case @cur is freed) If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed.

    -
    parent:the parent node
    cur:the child node
    Returns:the child or NULL in case of error.

    Function: xmlAddChildList

    xmlNodePtr	xmlAddChildList		(xmlNodePtr parent, 
    xmlNodePtr cur)
    -

    Add a list of node at the end of the child list of the parent merging adjacent TEXT nodes (@cur may be freed)

    -
    parent:the parent node
    cur:the first node in the list
    Returns:the last child or NULL in case of error.

    Function: xmlAddNextSibling

    xmlNodePtr	xmlAddNextSibling	(xmlNodePtr cur, 
    xmlNodePtr elem)
    -

    Add a new node @elem as the next sibling of @cur If the new node was already inserted in a document it is first unlinked from its existing context. As a result of text merging @elem may be freed. If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed.

    -
    cur:the child node
    elem:the new node
    Returns:the new node or NULL in case of error.

    Function: xmlAddPrevSibling

    xmlNodePtr	xmlAddPrevSibling	(xmlNodePtr cur, 
    xmlNodePtr elem)
    -

    Add a new node @elem as the previous sibling of @cur merging adjacent TEXT nodes (@elem may be freed) If the new node was already inserted in a document it is first unlinked from its existing context. If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed.

    -
    cur:the child node
    elem:the new node
    Returns:the new node or NULL in case of error.

    Function: xmlAddSibling

    xmlNodePtr	xmlAddSibling		(xmlNodePtr cur, 
    xmlNodePtr elem)
    -

    Add a new element @elem to the list of siblings of @cur merging adjacent TEXT nodes (@elem may be freed) If the new element was already inserted in a document it is first unlinked from its existing context.

    -
    cur:the child node
    elem:the new node
    Returns:the new element or NULL in case of error.

    Function: xmlAttrSerializeTxtContent

    void	xmlAttrSerializeTxtContent	(xmlBufferPtr buf, 
    xmlDocPtr doc,
    xmlAttrPtr attr,
    const xmlChar * string)
    -

    Serialize text attribute values to an xml simple buffer

    -
    buf:the XML buffer output
    doc:the document
    attr:the attribute node
    string:the text content

    Function: xmlBufferAdd

    int	xmlBufferAdd			(xmlBufferPtr buf, 
    const xmlChar * str,
    int len)
    -

    Add a string range to an XML buffer. if len == -1, the length of str is recomputed.

    -
    buf:the buffer to dump
    str:the #xmlChar string
    len:the number of #xmlChar to add
    Returns:0 successful, a positive error code number otherwise and -1 in case of internal or API error.

    Function: xmlBufferAddHead

    int	xmlBufferAddHead		(xmlBufferPtr buf, 
    const xmlChar * str,
    int len)
    -

    Add a string range to the beginning of an XML buffer. if len == -1, the length of @str is recomputed.

    -
    buf:the buffer
    str:the #xmlChar string
    len:the number of #xmlChar to add
    Returns:0 successful, a positive error code number otherwise and -1 in case of internal or API error.

    Function: xmlBufferCCat

    int	xmlBufferCCat			(xmlBufferPtr buf, 
    const char * str)
    -

    Append a zero terminated C string to an XML buffer.

    -
    buf:the buffer to dump
    str:the C char string
    Returns:0 successful, a positive error code number otherwise and -1 in case of internal or API error.

    Function: xmlBufferCat

    int	xmlBufferCat			(xmlBufferPtr buf, 
    const xmlChar * str)
    -

    Append a zero terminated string to an XML buffer.

    -
    buf:the buffer to add to
    str:the #xmlChar string
    Returns:0 successful, a positive error code number otherwise and -1 in case of internal or API error.

    Function: xmlBufferContent

    const xmlChar *	xmlBufferContent	(const xmlBufferPtr buf)
    -

    Function to extract the content of a buffer

    -
    buf:the buffer
    Returns:the internal content

    Function: xmlBufferCreate

    xmlBufferPtr	xmlBufferCreate		(void)
    -

    routine to create an XML buffer.

    -
    Returns:the new structure.

    Function: xmlBufferCreateSize

    xmlBufferPtr	xmlBufferCreateSize	(size_t size)
    -

    routine to create an XML buffer.

    -
    size:initial size of buffer
    Returns:the new structure.

    Function: xmlBufferCreateStatic

    xmlBufferPtr	xmlBufferCreateStatic	(void * mem, 
    size_t size)
    -

    routine to create an XML buffer from an immutable memory area. The area won't be modified nor copied, and is expected to be present until the end of the buffer lifetime.

    -
    mem:the memory area
    size:the size in byte
    Returns:the new structure.

    Function: xmlBufferDump

    int	xmlBufferDump			(FILE * file, 
    xmlBufferPtr buf)
    -

    Dumps an XML buffer to a FILE *.

    -
    file:the file output
    buf:the buffer to dump
    Returns:the number of #xmlChar written

    Function: xmlBufferEmpty

    void	xmlBufferEmpty			(xmlBufferPtr buf)
    -

    empty a buffer.

    -
    buf:the buffer

    Function: xmlBufferFree

    void	xmlBufferFree			(xmlBufferPtr buf)
    -

    Frees an XML buffer. It frees both the content and the structure which encapsulate it.

    -
    buf:the buffer to free

    Function: xmlBufferGrow

    int	xmlBufferGrow			(xmlBufferPtr buf, 
    unsigned int len)
    -

    Grow the available space of an XML buffer.

    -
    buf:the buffer
    len:the minimum free size to allocate
    Returns:the new available space or -1 in case of error

    Function: xmlBufferLength

    int	xmlBufferLength			(const xmlBufferPtr buf)
    -

    Function to get the length of a buffer

    -
    buf:the buffer
    Returns:the length of data in the internal content

    Function: xmlBufferResize

    int	xmlBufferResize			(xmlBufferPtr buf, 
    unsigned int size)
    -

    Resize a buffer to accommodate minimum size of @size.

    -
    buf:the buffer to resize
    size:the desired size
    Returns:0 in case of problems, 1 otherwise

    Function: xmlBufferSetAllocationScheme

    void	xmlBufferSetAllocationScheme	(xmlBufferPtr buf, 
    xmlBufferAllocationScheme scheme)
    -

    Sets the allocation scheme for this buffer

    -
    buf:the buffer to tune
    scheme:allocation scheme to use

    Function: xmlBufferShrink

    int	xmlBufferShrink			(xmlBufferPtr buf, 
    unsigned int len)
    -

    Remove the beginning of an XML buffer.

    -
    buf:the buffer to dump
    len:the number of xmlChar to remove
    Returns:the number of #xmlChar removed, or -1 in case of failure.

    Function: xmlBufferWriteCHAR

    void	xmlBufferWriteCHAR		(xmlBufferPtr buf, 
    const xmlChar * string)
    -

    routine which manages and grows an output buffer. This one adds xmlChars at the end of the buffer.

    -
    buf:the XML buffer
    string:the string to add

    Function: xmlBufferWriteChar

    void	xmlBufferWriteChar		(xmlBufferPtr buf, 
    const char * string)
    -

    routine which manage and grows an output buffer. This one add C chars at the end of the array.

    -
    buf:the XML buffer output
    string:the string to add

    Function: xmlBufferWriteQuotedString

    void	xmlBufferWriteQuotedString	(xmlBufferPtr buf, 
    const xmlChar * string)
    -

    routine which manage and grows an output buffer. This one writes a quoted or double quoted #xmlChar string, checking first if it holds quote or double-quotes internally

    -
    buf:the XML buffer output
    string:the string to add

    Function: xmlBuildQName

    xmlChar *	xmlBuildQName		(const xmlChar * ncname, 
    const xmlChar * prefix,
    xmlChar * memory,
    int len)
    -

    Builds the QName @prefix:@ncname in @memory if there is enough space and prefix is not NULL nor empty, otherwise allocate a new string. If prefix is NULL or empty it returns ncname.

    -
    ncname:the Name
    prefix:the prefix
    memory:preallocated memory
    len:preallocated memory length
    Returns:the new string which must be freed by the caller if different from @memory and @ncname or NULL in case of error

    Function: xmlCopyDoc

    xmlDocPtr	xmlCopyDoc		(xmlDocPtr doc, 
    int recursive)
    -

    Do a copy of the document info. If recursive, the content tree will be copied too as well as DTD, namespaces and entities.

    -
    doc:the document
    recursive:if not zero do a recursive copy.
    Returns:a new #xmlDocPtr, or NULL in case of error.

    Function: xmlCopyDtd

    xmlDtdPtr	xmlCopyDtd		(xmlDtdPtr dtd)
    -

    Do a copy of the dtd.

    -
    dtd:the dtd
    Returns:a new #xmlDtdPtr, or NULL in case of error.

    Function: xmlCopyNamespace

    xmlNsPtr	xmlCopyNamespace	(xmlNsPtr cur)
    -

    Do a copy of the namespace.

    -
    cur:the namespace
    Returns:a new #xmlNsPtr, or NULL in case of error.

    Function: xmlCopyNamespaceList

    xmlNsPtr	xmlCopyNamespaceList	(xmlNsPtr cur)
    -

    Do a copy of an namespace list.

    -
    cur:the first namespace
    Returns:a new #xmlNsPtr, or NULL in case of error.

    Function: xmlCopyNode

    xmlNodePtr	xmlCopyNode		(const xmlNodePtr node, 
    int extended)
    -

    Do a copy of the node.

    -
    node:the node
    extended:if 1 do a recursive copy (properties, namespaces and children when applicable) if 2 copy properties and namespaces (when applicable)
    Returns:a new #xmlNodePtr, or NULL in case of error.

    Function: xmlCopyNodeList

    xmlNodePtr	xmlCopyNodeList		(const xmlNodePtr node)
    -

    Do a recursive copy of the node list. Use xmlDocCopyNodeList() if possible to ensure string interning.

    -
    node:the first node in the list.
    Returns:a new #xmlNodePtr, or NULL in case of error.

    Function: xmlCopyProp

    xmlAttrPtr	xmlCopyProp		(xmlNodePtr target, 
    xmlAttrPtr cur)
    -

    Do a copy of the attribute.

    -
    target:the element where the attribute will be grafted
    cur:the attribute
    Returns:a new #xmlAttrPtr, or NULL in case of error.

    Function: xmlCopyPropList

    xmlAttrPtr	xmlCopyPropList		(xmlNodePtr target, 
    xmlAttrPtr cur)
    -

    Do a copy of an attribute list.

    -
    target:the element where the attributes will be grafted
    cur:the first attribute
    Returns:a new #xmlAttrPtr, or NULL in case of error.

    Function: xmlCreateIntSubset

    xmlDtdPtr	xmlCreateIntSubset	(xmlDocPtr doc, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    Create the internal subset of a document

    -
    doc:the document pointer
    name:the DTD name
    ExternalID:the external (PUBLIC) ID
    SystemID:the system ID
    Returns:a pointer to the new DTD structure

    Function: xmlDOMWrapAdoptNode

    int	xmlDOMWrapAdoptNode		(xmlDOMWrapCtxtPtr ctxt, 
    xmlDocPtr sourceDoc,
    xmlNodePtr node,
    xmlDocPtr destDoc,
    xmlNodePtr destParent,
    int options)
    -

    References of out-of scope ns-decls are remapped to point to @destDoc: 1) If @destParent is given, then nsDef entries on element-nodes are used 2) If *no* @destParent is given, then @destDoc->oldNs entries are used This is the case when you have an unliked node and just want to move it to the context of If @destParent is given, it ensures that the tree is namespace wellformed by creating additional ns-decls where needed. Note that, since prefixes of already existent ns-decls can be shadowed by this process, it could break QNames in attribute values or element content. WARNING: This function is in a experimental state.

    -
    ctxt:the optional context for custom processing
    sourceDoc:the optional sourceDoc
    node:the node to start with
    destDoc:the destination doc
    destParent:the optional new parent of @node in @destDoc
    options:option flags
    Returns:0 if the operation succeeded, 1 if a node of unsupported type was given, 2 if a node of not yet supported type was given and -1 on API/internal errors.

    Function: xmlDOMWrapCloneNode

    int	xmlDOMWrapCloneNode		(xmlDOMWrapCtxtPtr ctxt, 
    xmlDocPtr sourceDoc,
    xmlNodePtr node,
    xmlNodePtr * resNode,
    xmlDocPtr destDoc,
    xmlNodePtr destParent,
    int deep,
    int options)
    -

    References of out-of scope ns-decls are remapped to point to @destDoc: 1) If @destParent is given, then nsDef entries on element-nodes are used 2) If *no* @destParent is given, then @destDoc->oldNs entries are used This is the case when you have an unliked node and just want to move it to the context of If @destParent is given, it ensures that the tree is namespace wellformed by creating additional ns-decls where needed. Note that, since prefixes of already existent ns-decls can be shadowed by this process, it could break QNames in attribute values or element content. TODO: 1) Support dicts Optimize string adoption for equal or none dicts. 2) XInclude WARNING: This function is in a experimental state and should only be currently only be used to test it.

    -
    ctxt:the optional context for custom processing
    sourceDoc:the optional sourceDoc
    node:the node to start with
    resNode:the clone of the given @node
    destDoc:the destination doc
    destParent:the optional new parent of @node in @destDoc
    deep:descend into child if set
    options:option flags
    Returns:0 if the operation succeeded, 1 if a node of unsupported (or not yet supported) type was given, -1 on API/internal errors.

    Function: xmlDOMWrapFreeCtxt

    void	xmlDOMWrapFreeCtxt		(xmlDOMWrapCtxtPtr ctxt)
    -

    Frees the DOM-wrapper context.

    -
    ctxt:the DOM-wrapper context

    Function: xmlDOMWrapNewCtxt

    xmlDOMWrapCtxtPtr	xmlDOMWrapNewCtxt	(void)
    -

    Allocates and initializes a new DOM-wrapper context.

    -
    Returns:the xmlDOMWrapCtxtPtr or NULL in case of an internal errror.

    Function: xmlDOMWrapReconcileNamespaces

    int	xmlDOMWrapReconcileNamespaces	(xmlDOMWrapCtxtPtr ctxt, 
    xmlNodePtr elem,
    int options)
    -

    Ensures that ns-references point to ns-decls hold on element-nodes. Ensures that the tree is namespace wellformed by creating additional ns-decls where needed. Note that, since prefixes of already existent ns-decls can be shadowed by this process, it could break QNames in attribute values or element content. WARNING: This function is in a experimental state.

    -
    ctxt:DOM wrapper context, unused at the moment
    elem:the element-node
    options:option flags
    Returns:0 if succeeded, -1 otherwise and on API/internal errors.

    Function: xmlDOMWrapRemoveNode

    int	xmlDOMWrapRemoveNode		(xmlDOMWrapCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr node,
    int options)
    -

    Unlinks the given node from its owner. This will substitute ns-references to node->nsDef for ns-references to doc->oldNs, thus ensuring the removed branch to be autark wrt ns-references. WARNING: This function is in a experimental state.

    -
    ctxt:a DOM wrapper context
    doc:the doc
    node:the node to be removed.
    options:set of options, unused at the moment
    Returns:0 on success, 1 if the node is not supported, -1 on API and internal errors.

    Function: xmlDocCopyNode

    xmlNodePtr	xmlDocCopyNode		(const xmlNodePtr node, 
    xmlDocPtr doc,
    int extended)
    -

    Do a copy of the node to a given document.

    -
    node:the node
    doc:the document
    extended:if 1 do a recursive copy (properties, namespaces and children when applicable) if 2 copy properties and namespaces (when applicable)
    Returns:a new #xmlNodePtr, or NULL in case of error.

    Function: xmlDocCopyNodeList

    xmlNodePtr	xmlDocCopyNodeList	(xmlDocPtr doc, 
    const xmlNodePtr node)
    -

    Do a recursive copy of the node list.

    -
    doc:the target document
    node:the first node in the list.
    Returns:a new #xmlNodePtr, or NULL in case of error.

    Function: xmlDocDump

    int	xmlDocDump			(FILE * f, 
    xmlDocPtr cur)
    -

    Dump an XML document to an open FILE.

    -
    f:the FILE*
    cur:the document
    Returns:the number of bytes written or -1 in case of failure.

    Function: xmlDocDumpFormatMemory

    void	xmlDocDumpFormatMemory		(xmlDocPtr cur, 
    xmlChar ** mem,
    int * size,
    int format)
    -

    Dump an XML document in memory and return the #xmlChar * and it's size. It's up to the caller to free the memory with xmlFree(). Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called

    -
    cur:the document
    mem:OUT: the memory pointer
    size:OUT: the memory length
    format:should formatting spaces been added

    Function: xmlDocDumpFormatMemoryEnc

    void	xmlDocDumpFormatMemoryEnc	(xmlDocPtr out_doc, 
    xmlChar ** doc_txt_ptr,
    int * doc_txt_len,
    const char * txt_encoding,
    int format)
    -

    Dump the current DOM tree into memory using the character encoding specified by the caller. Note it is up to the caller of this function to free the allocated memory with xmlFree(). Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called

    -
    out_doc:Document to generate XML text from
    doc_txt_ptr:Memory pointer for allocated XML text
    doc_txt_len:Length of the generated XML text
    txt_encoding:Character encoding to use when generating XML text
    format:should formatting spaces been added

    Function: xmlDocDumpMemory

    void	xmlDocDumpMemory		(xmlDocPtr cur, 
    xmlChar ** mem,
    int * size)
    -

    Dump an XML document in memory and return the #xmlChar * and it's size in bytes. It's up to the caller to free the memory with xmlFree(). The resulting byte array is zero terminated, though the last 0 is not included in the returned size.

    -
    cur:the document
    mem:OUT: the memory pointer
    size:OUT: the memory length

    Function: xmlDocDumpMemoryEnc

    void	xmlDocDumpMemoryEnc		(xmlDocPtr out_doc, 
    xmlChar ** doc_txt_ptr,
    int * doc_txt_len,
    const char * txt_encoding)
    -

    Dump the current DOM tree into memory using the character encoding specified by the caller. Note it is up to the caller of this function to free the allocated memory with xmlFree().

    -
    out_doc:Document to generate XML text from
    doc_txt_ptr:Memory pointer for allocated XML text
    doc_txt_len:Length of the generated XML text
    txt_encoding:Character encoding to use when generating XML text

    Function: xmlDocFormatDump

    int	xmlDocFormatDump		(FILE * f, 
    xmlDocPtr cur,
    int format)
    -

    Dump an XML document to an open FILE.

    -
    f:the FILE*
    cur:the document
    format:should formatting spaces been added
    Returns:the number of bytes written or -1 in case of failure. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called

    Function: xmlDocGetRootElement

    xmlNodePtr	xmlDocGetRootElement	(xmlDocPtr doc)
    -

    Get the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...).

    -
    doc:the document
    Returns:the #xmlNodePtr for the root or NULL

    Function: xmlDocSetRootElement

    xmlNodePtr	xmlDocSetRootElement	(xmlDocPtr doc, 
    xmlNodePtr root)
    -

    Set the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...).

    -
    doc:the document
    root:the new document root element
    Returns:the old root element if any was found

    Function: xmlElemDump

    void	xmlElemDump			(FILE * f, 
    xmlDocPtr doc,
    xmlNodePtr cur)
    -

    Dump an XML/HTML node, recursive behaviour, children are printed too.

    -
    f:the FILE * for the output
    doc:the document
    cur:the current node

    Function: xmlFreeDoc

    void	xmlFreeDoc			(xmlDocPtr cur)
    -

    Free up all the structures used by a document, tree included.

    -
    cur:pointer to the document

    Function: xmlFreeDtd

    void	xmlFreeDtd			(xmlDtdPtr cur)
    -

    Free a DTD structure.

    -
    cur:the DTD structure to free up

    Function: xmlFreeNode

    void	xmlFreeNode			(xmlNodePtr cur)
    -

    Free a node, this is a recursive behaviour, all the children are freed too. This doesn't unlink the child from the list, use xmlUnlinkNode() first.

    -
    cur:the node

    Function: xmlFreeNodeList

    void	xmlFreeNodeList			(xmlNodePtr cur)
    -

    Free a node and all its siblings, this is a recursive behaviour, all the children are freed too.

    -
    cur:the first node in the list

    Function: xmlFreeNs

    void	xmlFreeNs			(xmlNsPtr cur)
    -

    Free up the structures associated to a namespace

    -
    cur:the namespace pointer

    Function: xmlFreeNsList

    void	xmlFreeNsList			(xmlNsPtr cur)
    -

    Free up all the structures associated to the chained namespaces.

    -
    cur:the first namespace pointer

    Function: xmlFreeProp

    void	xmlFreeProp			(xmlAttrPtr cur)
    -

    Free one attribute, all the content is freed too

    -
    cur:an attribute

    Function: xmlFreePropList

    void	xmlFreePropList			(xmlAttrPtr cur)
    -

    Free a property and all its siblings, all the children are freed too.

    -
    cur:the first property in the list

    Function: xmlGetBufferAllocationScheme

    xmlBufferAllocationScheme	xmlGetBufferAllocationScheme	(void)
    -

    Types are XML_BUFFER_ALLOC_EXACT - use exact sizes, keeps memory usage down XML_BUFFER_ALLOC_DOUBLEIT - double buffer when extra needed, improves performance

    -
    Returns:the current allocation scheme

    Function: xmlGetCompressMode

    int	xmlGetCompressMode		(void)
    -

    get the default compression mode used, ZLIB based.

    -
    Returns:0 (uncompressed) to 9 (max compression)

    Function: xmlGetDocCompressMode

    int	xmlGetDocCompressMode		(xmlDocPtr doc)
    -

    get the compression ratio for a document, ZLIB based

    -
    doc:the document
    Returns:0 (uncompressed) to 9 (max compression)

    Function: xmlGetIntSubset

    xmlDtdPtr	xmlGetIntSubset		(xmlDocPtr doc)
    -

    Get the internal subset of a document

    -
    doc:the document pointer
    Returns:a pointer to the DTD structure or NULL if not found

    Function: xmlGetLastChild

    xmlNodePtr	xmlGetLastChild		(xmlNodePtr parent)
    -

    Search the last child of a node.

    -
    parent:the parent node
    Returns:the last child or NULL if none.

    Function: xmlGetLineNo

    long	xmlGetLineNo			(xmlNodePtr node)
    -

    Get line number of @node. This requires activation of this option before invoking the parser by calling xmlLineNumbersDefault(1)

    -
    node:valid node
    Returns:the line number if successful, -1 otherwise

    Function: xmlGetNoNsProp

    xmlChar *	xmlGetNoNsProp		(xmlNodePtr node, 
    const xmlChar * name)
    -

    Search and get the value of an attribute associated to a node 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. This function is similar to xmlGetProp except it will accept only an attribute in no namespace.

    -
    node:the node
    name:the attribute name
    Returns:the attribute value or NULL if not found. It's up to the caller to free the memory with xmlFree().

    Function: xmlGetNodePath

    xmlChar *	xmlGetNodePath		(xmlNodePtr node)
    -

    Build a structure based Path for the given node

    -
    node:a node
    Returns:the new path or NULL in case of error. The caller must free the returned string

    Function: xmlGetNsList

    xmlNsPtr *	xmlGetNsList		(xmlDocPtr doc, 
    xmlNodePtr node)
    -

    Search all the namespace applying to a given element.

    -
    doc:the document
    node:the current node
    Returns:an NULL terminated array of all the #xmlNsPtr found that need to be freed by the caller or NULL if no namespace if defined

    Function: xmlGetNsProp

    xmlChar *	xmlGetNsProp		(xmlNodePtr node, 
    const xmlChar * name,
    const xmlChar * nameSpace)
    -

    Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified. 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.

    -
    node:the node
    name:the attribute name
    nameSpace:the URI of the namespace
    Returns:the attribute value or NULL if not found. It's up to the caller to free the memory with xmlFree().

    Function: xmlGetProp

    xmlChar *	xmlGetProp		(xmlNodePtr node, 
    const xmlChar * name)
    -

    Search and get the value of an attribute associated to a node 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. NOTE: this function acts independently of namespaces associated to the attribute. Use xmlGetNsProp() or xmlGetNoNsProp() for namespace aware processing.

    -
    node:the node
    name:the attribute name
    Returns:the attribute value or NULL if not found. It's up to the caller to free the memory with xmlFree().

    Function: xmlHasNsProp

    xmlAttrPtr	xmlHasNsProp		(xmlNodePtr node, 
    const xmlChar * name,
    const xmlChar * nameSpace)
    -

    Search for an attribute associated to a node This attribute has to be anchored in the namespace specified. 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. Note that a namespace of NULL indicates to use the default namespace.

    -
    node:the node
    name:the attribute name
    nameSpace:the URI of the namespace
    Returns:the attribute or the attribute declaration or NULL if neither was found.

    Function: xmlHasProp

    xmlAttrPtr	xmlHasProp		(xmlNodePtr node, 
    const xmlChar * name)
    -

    Search an attribute associated to a node This function also looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off.

    -
    node:the node
    name:the attribute name
    Returns:the attribute or the attribute declaration or NULL if neither was found.

    Function: xmlIsBlankNode

    int	xmlIsBlankNode			(xmlNodePtr node)
    -

    Checks whether this node is an empty or whitespace only (and possibly ignorable) text-node.

    -
    node:the node
    Returns:1 yes, 0 no

    Function: xmlIsXHTML

    int	xmlIsXHTML			(const xmlChar * systemID, 
    const xmlChar * publicID)
    -

    Try to find if the document correspond to an XHTML DTD

    -
    systemID:the system identifier
    publicID:the public identifier
    Returns:1 if true, 0 if not and -1 in case of error

    Function: xmlNewCDataBlock

    xmlNodePtr	xmlNewCDataBlock	(xmlDocPtr doc, 
    const xmlChar * content,
    int len)
    -

    Creation of a new node containing a CDATA block.

    -
    doc:the document
    content:the CDATA block content content
    len:the length of the block
    Returns:a pointer to the new node object.

    Function: xmlNewCharRef

    xmlNodePtr	xmlNewCharRef		(xmlDocPtr doc, 
    const xmlChar * name)
    -

    Creation of a new character reference node.

    -
    doc:the document
    name:the char ref string, starting with # or "&# ... ;"
    Returns:a pointer to the new node object.

    Function: xmlNewChild

    xmlNodePtr	xmlNewChild		(xmlNodePtr parent, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * content)
    -

    Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (NULL). If @ns is NULL, the newly created element inherits the namespace of @parent. If @content is non NULL, a child list containing the TEXTs and ENTITY_REFs node will be created. NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity references. XML special chars must be escaped first by using xmlEncodeEntitiesReentrant(), or xmlNewTextChild() should be used.

    -
    parent:the parent node
    ns:a namespace if any
    name:the name of the child
    content:the XML content of the child if any.
    Returns:a pointer to the new node object.

    Function: xmlNewComment

    xmlNodePtr	xmlNewComment		(const xmlChar * content)
    -

    Creation of a new node containing a comment.

    -
    content:the comment content
    Returns:a pointer to the new node object.

    Function: xmlNewDoc

    xmlDocPtr	xmlNewDoc		(const xmlChar * version)
    -

    Creates a new XML document

    -
    version:xmlChar string giving the version of XML "1.0"
    Returns:a new document

    Function: xmlNewDocComment

    xmlNodePtr	xmlNewDocComment	(xmlDocPtr doc, 
    const xmlChar * content)
    -

    Creation of a new node containing a comment within a document.

    -
    doc:the document
    content:the comment content
    Returns:a pointer to the new node object.

    Function: xmlNewDocFragment

    xmlNodePtr	xmlNewDocFragment	(xmlDocPtr doc)
    -

    Creation of a new Fragment node.

    -
    doc:the document owning the fragment
    Returns:a pointer to the new node object.

    Function: xmlNewDocNode

    xmlNodePtr	xmlNewDocNode		(xmlDocPtr doc, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * content)
    -

    Creation of a new node element within a document. @ns and @content are optional (NULL). NOTE: @content is supposed to be a piece of XML CDATA, so it allow entities references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewDocRawNode() if you don't need entities support.

    -
    doc:the document
    ns:namespace if any
    name:the node name
    content:the XML text content if any
    Returns:a pointer to the new node object.

    Function: xmlNewDocNodeEatName

    xmlNodePtr	xmlNewDocNodeEatName	(xmlDocPtr doc, 
    xmlNsPtr ns,
    xmlChar * name,
    const xmlChar * content)
    -

    Creation of a new node element within a document. @ns and @content are optional (NULL). NOTE: @content is supposed to be a piece of XML CDATA, so it allow entities references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewDocRawNode() if you don't need entities support.

    -
    doc:the document
    ns:namespace if any
    name:the node name
    content:the XML text content if any
    Returns:a pointer to the new node object.

    Function: xmlNewDocPI

    xmlNodePtr	xmlNewDocPI		(xmlDocPtr doc, 
    const xmlChar * name,
    const xmlChar * content)
    -

    Creation of a processing instruction element.

    -
    doc:the target document
    name:the processing instruction name
    content:the PI content
    Returns:a pointer to the new node object.

    Function: xmlNewDocProp

    xmlAttrPtr	xmlNewDocProp		(xmlDocPtr doc, 
    const xmlChar * name,
    const xmlChar * value)
    -

    Create a new property carried by a document.

    -
    doc:the document
    name:the name of the attribute
    value:the value of the attribute
    Returns:a pointer to the attribute

    Function: xmlNewDocRawNode

    xmlNodePtr	xmlNewDocRawNode	(xmlDocPtr doc, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * content)
    -

    Creation of a new node element within a document. @ns and @content are optional (NULL).

    -
    doc:the document
    ns:namespace if any
    name:the node name
    content:the text content if any
    Returns:a pointer to the new node object.

    Function: xmlNewDocText

    xmlNodePtr	xmlNewDocText		(xmlDocPtr doc, 
    const xmlChar * content)
    -

    Creation of a new text node within a document.

    -
    doc:the document
    content:the text content
    Returns:a pointer to the new node object.

    Function: xmlNewDocTextLen

    xmlNodePtr	xmlNewDocTextLen	(xmlDocPtr doc, 
    const xmlChar * content,
    int len)
    -

    Creation of a new text node with an extra content length parameter. The text node pertain to a given document.

    -
    doc:the document
    content:the text content
    len:the text len.
    Returns:a pointer to the new node object.

    Function: xmlNewDtd

    xmlDtdPtr	xmlNewDtd		(xmlDocPtr doc, 
    const xmlChar * name,
    const xmlChar * ExternalID,
    const xmlChar * SystemID)
    -

    Creation of a new DTD for the external subset. To create an internal subset, use xmlCreateIntSubset().

    -
    doc:the document pointer
    name:the DTD name
    ExternalID:the external ID
    SystemID:the system ID
    Returns:a pointer to the new DTD structure

    Function: xmlNewGlobalNs

    xmlNsPtr	xmlNewGlobalNs		(xmlDocPtr doc, 
    const xmlChar * href,
    const xmlChar * prefix)
    -

    Creation of a Namespace, the old way using PI and without scoping DEPRECATED !!!

    -
    doc:the document carrying the namespace
    href:the URI associated
    prefix:the prefix for the namespace
    Returns:NULL this functionality had been removed

    Function: xmlNewNode

    xmlNodePtr	xmlNewNode		(xmlNsPtr ns, 
    const xmlChar * name)
    -

    Creation of a new node element. @ns is optional (NULL).

    -
    ns:namespace if any
    name:the node name
    Returns:a pointer to the new node object. Uses xmlStrdup() to make copy of @name.

    Function: xmlNewNodeEatName

    xmlNodePtr	xmlNewNodeEatName	(xmlNsPtr ns, 
    xmlChar * name)
    -

    Creation of a new node element. @ns is optional (NULL).

    -
    ns:namespace if any
    name:the node name
    Returns:a pointer to the new node object, with pointer @name as new node's name. Use xmlNewNode() if a copy of @name string is is needed as new node's name.

    Function: xmlNewNs

    xmlNsPtr	xmlNewNs		(xmlNodePtr node, 
    const xmlChar * href,
    const xmlChar * prefix)
    -

    Creation of a new Namespace. This function will refuse to create a namespace with a similar prefix than an existing one present on this node. We use href==NULL in the case of an element creation where the namespace was not defined.

    -
    node:the element carrying the namespace
    href:the URI associated
    prefix:the prefix for the namespace
    Returns:a new namespace pointer or NULL

    Function: xmlNewNsProp

    xmlAttrPtr	xmlNewNsProp		(xmlNodePtr node, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * value)
    -

    Create a new property tagged with a namespace and carried by a node.

    -
    node:the holding node
    ns:the namespace
    name:the name of the attribute
    value:the value of the attribute
    Returns:a pointer to the attribute

    Function: xmlNewNsPropEatName

    xmlAttrPtr	xmlNewNsPropEatName	(xmlNodePtr node, 
    xmlNsPtr ns,
    xmlChar * name,
    const xmlChar * value)
    -

    Create a new property tagged with a namespace and carried by a node.

    -
    node:the holding node
    ns:the namespace
    name:the name of the attribute
    value:the value of the attribute
    Returns:a pointer to the attribute

    Function: xmlNewPI

    xmlNodePtr	xmlNewPI		(const xmlChar * name, 
    const xmlChar * content)
    -

    Creation of a processing instruction element. Use xmlDocNewPI preferably to get string interning

    -
    name:the processing instruction name
    content:the PI content
    Returns:a pointer to the new node object.

    Function: xmlNewProp

    xmlAttrPtr	xmlNewProp		(xmlNodePtr node, 
    const xmlChar * name,
    const xmlChar * value)
    -

    Create a new property carried by a node.

    -
    node:the holding node
    name:the name of the attribute
    value:the value of the attribute
    Returns:a pointer to the attribute

    Function: xmlNewReference

    xmlNodePtr	xmlNewReference		(xmlDocPtr doc, 
    const xmlChar * name)
    -

    Creation of a new reference node.

    -
    doc:the document
    name:the reference name, or the reference string with & and ;
    Returns:a pointer to the new node object.

    Function: xmlNewText

    xmlNodePtr	xmlNewText		(const xmlChar * content)
    -

    Creation of a new text node.

    -
    content:the text content
    Returns:a pointer to the new node object.

    Function: xmlNewTextChild

    xmlNodePtr	xmlNewTextChild		(xmlNodePtr parent, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * content)
    -

    Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (NULL). If @ns is NULL, the newly created element inherits the namespace of @parent. If @content is non NULL, a child TEXT node will be created containing the string @content. NOTE: Use xmlNewChild() if @content will contain entities that need to be preserved. Use this function, xmlNewTextChild(), if you need to ensure that reserved XML chars that might appear in @content, such as the ampersand, greater-than or less-than signs, are automatically replaced by their XML escaped entity representations.

    -
    parent:the parent node
    ns:a namespace if any
    name:the name of the child
    content:the text content of the child if any.
    Returns:a pointer to the new node object.

    Function: xmlNewTextLen

    xmlNodePtr	xmlNewTextLen		(const xmlChar * content, 
    int len)
    -

    Creation of a new text node with an extra parameter for the content's length

    -
    content:the text content
    len:the text len.
    Returns:a pointer to the new node object.

    Function: xmlNodeAddContent

    void	xmlNodeAddContent		(xmlNodePtr cur, 
    const xmlChar * content)
    -

    Append the extra substring to the node content.

    -
    cur:the node being modified
    content:extra content

    Function: xmlNodeAddContentLen

    void	xmlNodeAddContentLen		(xmlNodePtr cur, 
    const xmlChar * content,
    int len)
    -

    Append the extra substring to the node content.

    -
    cur:the node being modified
    content:extra content
    len:the size of @content

    Function: xmlNodeBufGetContent

    int	xmlNodeBufGetContent		(xmlBufferPtr buffer, 
    xmlNodePtr cur)
    -

    Read the value of a node @cur, this can be either the text carried directly by this node if it's a TEXT node or the aggregate string of the values carried by this node child's (TEXT and ENTITY_REF). Entity references are substituted. Fills up the buffer @buffer with this value

    -
    buffer:a buffer
    cur:the node being read
    Returns:0 in case of success and -1 in case of error.

    Function: xmlNodeDump

    int	xmlNodeDump			(xmlBufferPtr buf, 
    xmlDocPtr doc,
    xmlNodePtr cur,
    int level,
    int format)
    -

    Dump an XML node, recursive behaviour,children are printed too. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called

    -
    buf:the XML buffer output
    doc:the document
    cur:the current node
    level:the imbrication level for indenting
    format:is formatting allowed
    Returns:the number of bytes written to the buffer or -1 in case of error

    Function: xmlNodeDumpOutput

    void	xmlNodeDumpOutput		(xmlOutputBufferPtr buf, 
    xmlDocPtr doc,
    xmlNodePtr cur,
    int level,
    int format,
    const char * encoding)
    -

    Dump an XML node, recursive behaviour, children are printed too. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called

    -
    buf:the XML buffer output
    doc:the document
    cur:the current node
    level:the imbrication level for indenting
    format:is formatting allowed
    encoding:an optional encoding string

    Function: xmlNodeGetBase

    xmlChar *	xmlNodeGetBase		(xmlDocPtr doc, 
    xmlNodePtr cur)
    -

    Searches for the BASE URL. The code should work on both XML and HTML document even if base mechanisms are completely different. It returns the base as defined in RFC 2396 sections 5.1.1. Base URI within Document Content and 5.1.2. Base URI from the Encapsulating Entity However it does not return the document base (5.1.3), use xmlDocumentGetBase() for this

    -
    doc:the document the node pertains to
    cur:the node being checked
    Returns:a pointer to the base URL, or NULL if not found It's up to the caller to free the memory with xmlFree().

    Function: xmlNodeGetContent

    xmlChar *	xmlNodeGetContent	(xmlNodePtr cur)
    -

    Read the value of a node, this can be either the text carried directly by this node if it's a TEXT node or the aggregate string of the values carried by this node child's (TEXT and ENTITY_REF). Entity references are substituted.

    -
    cur:the node being read
    Returns:a new #xmlChar * or NULL if no content is available. It's up to the caller to free the memory with xmlFree().

    Function: xmlNodeGetLang

    xmlChar *	xmlNodeGetLang		(xmlNodePtr cur)
    -

    Searches the language of a node, i.e. the values of the xml:lang attribute or the one carried by the nearest ancestor.

    -
    cur:the node being checked
    Returns:a pointer to the lang value, or NULL if not found It's up to the caller to free the memory with xmlFree().

    Function: xmlNodeGetSpacePreserve

    int	xmlNodeGetSpacePreserve		(xmlNodePtr cur)
    -

    Searches the space preserving behaviour of a node, i.e. the values of the xml:space attribute or the one carried by the nearest ancestor.

    -
    cur:the node being checked
    Returns:-1 if xml:space is not inherited, 0 if "default", 1 if "preserve"

    Function: xmlNodeIsText

    int	xmlNodeIsText			(xmlNodePtr node)
    -

    Is this node a Text node ?

    -
    node:the node
    Returns:1 yes, 0 no

    Function: xmlNodeListGetRawString

    xmlChar *	xmlNodeListGetRawString	(xmlDocPtr doc, 
    xmlNodePtr list,
    int inLine)
    -

    Builds the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs, contrary to xmlNodeListGetString() this function doesn't do any character encoding handling.

    -
    doc:the document
    list:a Node list
    inLine:should we replace entity contents or show their external form
    Returns:a pointer to the string copy, the caller must free it with xmlFree().

    Function: xmlNodeListGetString

    xmlChar *	xmlNodeListGetString	(xmlDocPtr doc, 
    xmlNodePtr list,
    int inLine)
    -

    Build the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs

    -
    doc:the document
    list:a Node list
    inLine:should we replace entity contents or show their external form
    Returns:a pointer to the string copy, the caller must free it with xmlFree().

    Function: xmlNodeSetBase

    void	xmlNodeSetBase			(xmlNodePtr cur, 
    const xmlChar * uri)
    -

    Set (or reset) the base URI of a node, i.e. the value of the xml:base attribute.

    -
    cur:the node being changed
    uri:the new base URI

    Function: xmlNodeSetContent

    void	xmlNodeSetContent		(xmlNodePtr cur, 
    const xmlChar * content)
    -

    Replace the content of a node.

    -
    cur:the node being modified
    content:the new value of the content

    Function: xmlNodeSetContentLen

    void	xmlNodeSetContentLen		(xmlNodePtr cur, 
    const xmlChar * content,
    int len)
    -

    Replace the content of a node.

    -
    cur:the node being modified
    content:the new value of the content
    len:the size of @content

    Function: xmlNodeSetLang

    void	xmlNodeSetLang			(xmlNodePtr cur, 
    const xmlChar * lang)
    -

    Set the language of a node, i.e. the values of the xml:lang attribute.

    -
    cur:the node being changed
    lang:the language description

    Function: xmlNodeSetName

    void	xmlNodeSetName			(xmlNodePtr cur, 
    const xmlChar * name)
    -

    Set (or reset) the name of a node.

    -
    cur:the node being changed
    name:the new tag name

    Function: xmlNodeSetSpacePreserve

    void	xmlNodeSetSpacePreserve		(xmlNodePtr cur, 
    int val)
    -

    Set (or reset) the space preserving behaviour of a node, i.e. the value of the xml:space attribute.

    -
    cur:the node being changed
    val:the xml:space value ("0": default, 1: "preserve")

    Function: xmlReconciliateNs

    int	xmlReconciliateNs		(xmlDocPtr doc, 
    xmlNodePtr tree)
    -

    This function checks that all the namespaces declared within the given tree are properly declared. This is needed for example after Copy or Cut and then paste operations. The subtree may still hold pointers to namespace declarations outside the subtree or invalid/masked. As much as possible the function try to reuse the existing namespaces found in the new environment. If not possible the new namespaces are redeclared on @tree at the top of the given subtree.

    -
    doc:the document
    tree:a node defining the subtree to reconciliate
    Returns:the number of namespace declarations created or -1 in case of error.

    Function: xmlRemoveProp

    int	xmlRemoveProp			(xmlAttrPtr cur)
    -

    Unlink and free one attribute, all the content is freed too Note this doesn't work for namespace definition attributes

    -
    cur:an attribute
    Returns:0 if success and -1 in case of error.

    Function: xmlReplaceNode

    xmlNodePtr	xmlReplaceNode		(xmlNodePtr old, 
    xmlNodePtr cur)
    -

    Unlink the old node from its current context, prune the new one at the same place. If @cur was already inserted in a document it is first unlinked from its existing context.

    -
    old:the old node
    cur:the node
    Returns:the @old node

    Function: xmlSaveFile

    int	xmlSaveFile			(const char * filename, 
    xmlDocPtr cur)
    -

    Dump an XML document to a file. Will use compression if compiled in and enabled. If @filename is "-" the stdout file is used.

    -
    filename:the filename (or URL)
    cur:the document
    Returns:the number of bytes written or -1 in case of failure.

    Function: xmlSaveFileEnc

    int	xmlSaveFileEnc			(const char * filename, 
    xmlDocPtr cur,
    const char * encoding)
    -

    Dump an XML document, converting it to the given encoding

    -
    filename:the filename (or URL)
    cur:the document
    encoding:the name of an encoding (or NULL)
    Returns:the number of bytes written or -1 in case of failure.

    Function: xmlSaveFileTo

    int	xmlSaveFileTo			(xmlOutputBufferPtr buf, 
    xmlDocPtr cur,
    const char * encoding)
    -

    Dump an XML document to an I/O buffer. Warning ! This call xmlOutputBufferClose() on buf which is not available after this call.

    -
    buf:an output I/O buffer
    cur:the document
    encoding:the encoding if any assuming the I/O layer handles the trancoding
    Returns:the number of bytes written or -1 in case of failure.

    Function: xmlSaveFormatFile

    int	xmlSaveFormatFile		(const char * filename, 
    xmlDocPtr cur,
    int format)
    -

    Dump an XML document to a file. Will use compression if compiled in and enabled. If @filename is "-" the stdout file is used. If @format is set then the document will be indented on output. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called

    -
    filename:the filename (or URL)
    cur:the document
    format:should formatting spaces been added
    Returns:the number of bytes written or -1 in case of failure.

    Function: xmlSaveFormatFileEnc

    int	xmlSaveFormatFileEnc		(const char * filename, 
    xmlDocPtr cur,
    const char * encoding,
    int format)
    -

    Dump an XML document to a file or an URL.

    -
    filename:the filename or URL to output
    cur:the document being saved
    encoding:the name of the encoding to use or NULL.
    format:should formatting spaces be added.
    Returns:the number of bytes written or -1 in case of error. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called

    Function: xmlSaveFormatFileTo

    int	xmlSaveFormatFileTo		(xmlOutputBufferPtr buf, 
    xmlDocPtr cur,
    const char * encoding,
    int format)
    -

    Dump an XML document to an I/O buffer. Warning ! This call xmlOutputBufferClose() on buf which is not available after this call.

    -
    buf:an output I/O buffer
    cur:the document
    encoding:the encoding if any assuming the I/O layer handles the trancoding
    format:should formatting spaces been added
    Returns:the number of bytes written or -1 in case of failure.

    Function: xmlSearchNs

    xmlNsPtr	xmlSearchNs		(xmlDocPtr doc, 
    xmlNodePtr node,
    const xmlChar * nameSpace)
    -

    Search a Ns registered under a given name space for a document. recurse on the parents until it finds the defined namespace or return NULL otherwise. @nameSpace can be NULL, this is a search for the default namespace. We don't allow to cross entities boundaries. If you don't declare the namespace within those you will be in troubles !!! A warning is generated to cover this case.

    -
    doc:the document
    node:the current node
    nameSpace:the namespace prefix
    Returns:the namespace pointer or NULL.

    Function: xmlSearchNsByHref

    xmlNsPtr	xmlSearchNsByHref	(xmlDocPtr doc, 
    xmlNodePtr node,
    const xmlChar * href)
    -

    Search a Ns aliasing a given URI. Recurse on the parents until it finds the defined namespace or return NULL otherwise.

    -
    doc:the document
    node:the current node
    href:the namespace value
    Returns:the namespace pointer or NULL.

    Function: xmlSetBufferAllocationScheme

    void	xmlSetBufferAllocationScheme	(xmlBufferAllocationScheme scheme)
    -

    Set the buffer allocation method. Types are XML_BUFFER_ALLOC_EXACT - use exact sizes, keeps memory usage down XML_BUFFER_ALLOC_DOUBLEIT - double buffer when extra needed, improves performance

    -
    scheme:allocation method to use

    Function: xmlSetCompressMode

    void	xmlSetCompressMode		(int mode)
    -

    set the default compression mode used, ZLIB based Correct values: 0 (uncompressed) to 9 (max compression)

    -
    mode:the compression ratio

    Function: xmlSetDocCompressMode

    void	xmlSetDocCompressMode		(xmlDocPtr doc, 
    int mode)
    -

    set the compression ratio for a document, ZLIB based Correct values: 0 (uncompressed) to 9 (max compression)

    -
    doc:the document
    mode:the compression ratio

    Function: xmlSetListDoc

    void	xmlSetListDoc			(xmlNodePtr list, 
    xmlDocPtr doc)
    -

    update all nodes in the list to point to the right document

    -
    list:the first element
    doc:the document

    Function: xmlSetNs

    void	xmlSetNs			(xmlNodePtr node, 
    xmlNsPtr ns)
    -

    Associate a namespace to a node, a posteriori.

    -
    node:a node in the document
    ns:a namespace pointer

    Function: xmlSetNsProp

    xmlAttrPtr	xmlSetNsProp		(xmlNodePtr node, 
    xmlNsPtr ns,
    const xmlChar * name,
    const xmlChar * value)
    -

    Set (or reset) an attribute carried by a node. The ns structure must be in scope, this is not checked

    -
    node:the node
    ns:the namespace definition
    name:the attribute name
    value:the attribute value
    Returns:the attribute pointer.

    Function: xmlSetProp

    xmlAttrPtr	xmlSetProp		(xmlNodePtr node, 
    const xmlChar * name,
    const xmlChar * value)
    -

    Set (or reset) an attribute carried by a node. If @name has a prefix, then the corresponding namespace-binding will be used, if in scope; it is an error it there's no such ns-binding for the prefix in scope.

    -
    node:the node
    name:the attribute name (a QName)
    value:the attribute value
    Returns:the attribute pointer.

    Function: xmlSetTreeDoc

    void	xmlSetTreeDoc			(xmlNodePtr tree, 
    xmlDocPtr doc)
    -

    update all nodes under the tree to point to the right document

    -
    tree:the top element
    doc:the document

    Function: xmlSplitQName2

    xmlChar *	xmlSplitQName2		(const xmlChar * name, 
    xmlChar ** prefix)
    -

    parse an XML qualified name string [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName

    -
    name:the full QName
    prefix:a xmlChar **
    Returns:NULL if not a QName, otherwise the local part, and prefix is updated to get the Prefix if any.

    Function: xmlSplitQName3

    const xmlChar *	xmlSplitQName3		(const xmlChar * name, 
    int * len)
    -

    parse an XML qualified name string,i

    -
    name:the full QName
    len:an int *
    Returns:NULL if it is not a Qualified Name, otherwise, update len with the lenght in byte of the prefix and return a pointer to the start of the name without the prefix

    Function: xmlStringGetNodeList

    xmlNodePtr	xmlStringGetNodeList	(xmlDocPtr doc, 
    const xmlChar * value)
    -

    Parse the value string and build the node list associated. Should produce a flat tree with only TEXTs and ENTITY_REFs.

    -
    doc:the document
    value:the value of the attribute
    Returns:a pointer to the first child

    Function: xmlStringLenGetNodeList

    xmlNodePtr	xmlStringLenGetNodeList	(xmlDocPtr doc, 
    const xmlChar * value,
    int len)
    -

    Parse the value string and build the node list associated. Should produce a flat tree with only TEXTs and ENTITY_REFs.

    -
    doc:the document
    value:the value of the text
    len:the length of the string value
    Returns:a pointer to the first child

    Function: xmlTextConcat

    int	xmlTextConcat			(xmlNodePtr node, 
    const xmlChar * content,
    int len)
    -

    Concat the given string at the end of the existing node content

    -
    node:the node
    content:the content
    len:@content length
    Returns:-1 in case of error, 0 otherwise

    Function: xmlTextMerge

    xmlNodePtr	xmlTextMerge		(xmlNodePtr first, 
    xmlNodePtr second)
    -

    Merge two text nodes into one

    -
    first:the first text node
    second:the second text node being merged
    Returns:the first text node augmented

    Function: xmlUnlinkNode

    void	xmlUnlinkNode			(xmlNodePtr cur)
    -

    Unlink a node from it's current context, the node is not freed

    -
    cur:the node

    Function: xmlUnsetNsProp

    int	xmlUnsetNsProp			(xmlNodePtr node, 
    xmlNsPtr ns,
    const xmlChar * name)
    -

    Remove an attribute carried by a node.

    -
    node:the node
    ns:the namespace definition
    name:the attribute name
    Returns:0 if successful, -1 if not found

    Function: xmlUnsetProp

    int	xmlUnsetProp			(xmlNodePtr node, 
    const xmlChar * name)
    -

    Remove an attribute carried by a node. This handles only attributes in no namespace.

    -
    node:the node
    name:the attribute name
    Returns:0 if successful, -1 if not found

    Function: xmlValidateNCName

    int	xmlValidateNCName		(const xmlChar * value, 
    int space)
    -

    Check that a value conforms to the lexical space of NCName

    -
    value:the value to check
    space:allow spaces in front and end of the string
    Returns:0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.

    Function: xmlValidateNMToken

    int	xmlValidateNMToken		(const xmlChar * value, 
    int space)
    -

    Check that a value conforms to the lexical space of NMToken

    -
    value:the value to check
    space:allow spaces in front and end of the string
    Returns:0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.

    Function: xmlValidateName

    int	xmlValidateName			(const xmlChar * value, 
    int space)
    -

    Check that a value conforms to the lexical space of Name

    -
    value:the value to check
    space:allow spaces in front and end of the string
    Returns:0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.

    Function: xmlValidateQName

    int	xmlValidateQName		(const xmlChar * value, 
    int space)
    -

    Check that a value conforms to the lexical space of QName

    -
    value:the value to check
    space:allow spaces in front and end of the string
    Returns:0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-uri.html b/src/tools/docbook/libxml2/doc/html/libxml-uri.html deleted file mode 100644 index cb2a4196b1..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-uri.html +++ /dev/null @@ -1,69 +0,0 @@ - - -Module uri from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module uri from libxml2

    API Menu
    API Indexes
    Related links

    library of generic URI related routines Implements RFC 2396

    Table of Contents

    Structure xmlURI
    struct _xmlURI -
    Typedef xmlURI * xmlURIPtr
    -
    xmlChar *	xmlBuildRelativeURI	(const xmlChar * URI, 
    const xmlChar * base)
    -
    xmlChar *	xmlBuildURI		(const xmlChar * URI, 
    const xmlChar * base)
    -
    xmlChar *	xmlCanonicPath		(const xmlChar * path)
    -
    xmlURIPtr	xmlCreateURI		(void)
    -
    void	xmlFreeURI			(xmlURIPtr uri)
    -
    int	xmlNormalizeURIPath		(char * path)
    -
    xmlURIPtr	xmlParseURI		(const char * str)
    -
    xmlURIPtr	xmlParseURIRaw		(const char * str, 
    int raw)
    -
    int	xmlParseURIReference		(xmlURIPtr uri, 
    const char * str)
    -
    void	xmlPrintURI			(FILE * stream, 
    xmlURIPtr uri)
    -
    xmlChar *	xmlSaveUri		(xmlURIPtr uri)
    -
    xmlChar *	xmlURIEscape		(const xmlChar * str)
    -
    xmlChar *	xmlURIEscapeStr		(const xmlChar * str, 
    const xmlChar * list)
    -
    char *	xmlURIUnescapeString		(const char * str, 
    int len,
    char * target)
    -

    Description

    -

    Structure xmlURI

    Structure xmlURI
    struct _xmlURI { - char * scheme : the URI scheme - char * opaque : opaque part - char * authority : the authority part - char * server : the server part - char * user : the user part - int port : the port number - char * path : the path string - char * query : the query string - char * fragment : the fragment identifier - int cleanup : parsing potentially unclean URI -}

    Function: xmlBuildRelativeURI

    xmlChar *	xmlBuildRelativeURI	(const xmlChar * URI, 
    const xmlChar * base)
    -

    Expresses the URI of the reference in terms relative to the base. Some examples of this operation include: base = "http://site1.com/docs/book1.html" URI input URI returned docs/pic1.gif pic1.gif docs/img/pic1.gif img/pic1.gif img/pic1.gif ../img/pic1.gif http://site1.com/docs/pic1.gif pic1.gif http://site2.com/docs/pic1.gif http://site2.com/docs/pic1.gif base = "docs/book1.html" URI input URI returned docs/pic1.gif pic1.gif docs/img/pic1.gif img/pic1.gif img/pic1.gif ../img/pic1.gif http://site1.com/docs/pic1.gif http://site1.com/docs/pic1.gif Note: if the URI reference is really wierd or complicated, it may be worthwhile to first convert it into a "nice" one by calling xmlBuildURI (using 'base') before calling this routine, since this routine (for reasonable efficiency) assumes URI has already been through some validation.

    -
    URI:the URI reference under consideration
    base:the base value
    Returns:a new URI string (to be freed by the caller) or NULL in case error.

    Function: xmlBuildURI

    xmlChar *	xmlBuildURI		(const xmlChar * URI, 
    const xmlChar * base)
    -

    Computes he final URI of the reference done by checking that the given URI is valid, and building the final URI using the base URI. This is processed according to section 5.2 of the RFC 2396 5.2. Resolving Relative References to Absolute Form

    -
    URI:the URI instance found in the document
    base:the base value
    Returns:a new URI string (to be freed by the caller) or NULL in case of error.

    Function: xmlCanonicPath

    xmlChar *	xmlCanonicPath		(const xmlChar * path)
    -

    Constructs a canonic path from the specified path.

    -
    path:the resource locator in a filesystem notation
    Returns:a new canonic path, or a duplicate of the path parameter if the construction fails. The caller is responsible for freeing the memory occupied by the returned string. If there is insufficient memory available, or the argument is NULL, the function returns NULL.

    Function: xmlCreateURI

    xmlURIPtr	xmlCreateURI		(void)
    -

    Simply creates an empty xmlURI

    -
    Returns:the new structure or NULL in case of error

    Function: xmlFreeURI

    void	xmlFreeURI			(xmlURIPtr uri)
    -

    Free up the xmlURI struct

    -
    uri:pointer to an xmlURI

    Function: xmlNormalizeURIPath

    int	xmlNormalizeURIPath		(char * path)
    -

    Applies the 5 normalization steps to a path string--that is, RFC 2396 Section 5.2, steps 6.c through 6.g. Normalization occurs directly on the string, no new allocation is done

    -
    path:pointer to the path string
    Returns:0 or an error code

    Function: xmlParseURI

    xmlURIPtr	xmlParseURI		(const char * str)
    -

    Parse an URI URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]

    -
    str:the URI string to analyze
    Returns:a newly built xmlURIPtr or NULL in case of error

    Function: xmlParseURIRaw

    xmlURIPtr	xmlParseURIRaw		(const char * str, 
    int raw)
    -

    Parse an URI but allows to keep intact the original fragments. URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]

    -
    str:the URI string to analyze
    raw:if 1 unescaping of URI pieces are disabled
    Returns:a newly built xmlURIPtr or NULL in case of error

    Function: xmlParseURIReference

    int	xmlParseURIReference		(xmlURIPtr uri, 
    const char * str)
    -

    Parse an URI reference string and fills in the appropriate fields of the @uri structure URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]

    -
    uri:pointer to an URI structure
    str:the string to analyze
    Returns:0 or the error code

    Function: xmlPrintURI

    void	xmlPrintURI			(FILE * stream, 
    xmlURIPtr uri)
    -

    Prints the URI in the stream @stream.

    -
    stream:a FILE* for the output
    uri:pointer to an xmlURI

    Function: xmlSaveUri

    xmlChar *	xmlSaveUri		(xmlURIPtr uri)
    -

    Save the URI as an escaped string

    -
    uri:pointer to an xmlURI
    Returns:a new string (to be deallocated by caller)

    Function: xmlURIEscape

    xmlChar *	xmlURIEscape		(const xmlChar * str)
    -

    Escaping routine, does not do validity checks ! It will try to escape the chars needing this, but this is heuristic based it's impossible to be sure.

    -
    str:the string of the URI to escape
    Returns:an copy of the string, but escaped 25 May 2001 Uses xmlParseURI and xmlURIEscapeStr to try to escape correctly according to RFC2396. - Carl Douglas

    Function: xmlURIEscapeStr

    xmlChar *	xmlURIEscapeStr		(const xmlChar * str, 
    const xmlChar * list)
    -

    This routine escapes a string to hex, ignoring reserved characters (a-z) and the characters in the exception list.

    -
    str:string to escape
    list:exception list string of chars not to escape
    Returns:a new escaped string or NULL in case of error.

    Function: xmlURIUnescapeString

    char *	xmlURIUnescapeString		(const char * str, 
    int len,
    char * target)
    -

    Unescaping routine, does not do validity checks ! Output is direct unsigned char translation of %XX values (no encoding)

    -
    str:the string to unescape
    len:the length in bytes to unescape (or <= 0 to indicate full string)
    target:optional destination buffer
    Returns:an copy of the string, but unescaped

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-valid.html b/src/tools/docbook/libxml2/doc/html/libxml-valid.html deleted file mode 100644 index e8abbaa86d..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-valid.html +++ /dev/null @@ -1,289 +0,0 @@ - - -Module valid from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module valid from libxml2

    API Menu
    API Indexes
    Related links

    API for the DTD handling and the validity checking

    Table of Contents

    #define XML_CTXT_FINISH_DTD_0
    #define XML_CTXT_FINISH_DTD_1
    Structure xmlAttributeTable
    struct _xmlHashTable -The content of this structure is not made public by the API. -
    Typedef xmlAttributeTable * xmlAttributeTablePtr
    -
    Structure xmlElementTable
    struct _xmlHashTable -The content of this structure is not made public by the API. -
    Typedef xmlElementTable * xmlElementTablePtr
    -
    Structure xmlIDTable
    struct _xmlHashTable -The content of this structure is not made public by the API. -
    Typedef xmlIDTable * xmlIDTablePtr
    -
    Structure xmlNotationTable
    struct _xmlHashTable -The content of this structure is not made public by the API. -
    Typedef xmlNotationTable * xmlNotationTablePtr
    -
    Structure xmlRefTable
    struct _xmlHashTable -The content of this structure is not made public by the API. -
    Typedef xmlRefTable * xmlRefTablePtr
    -
    Structure xmlValidCtxt
    struct _xmlValidCtxt -
    Typedef xmlValidCtxt * xmlValidCtxtPtr
    -
    Structure xmlValidState
    struct _xmlValidState -The content of this structure is not made public by the API. -
    Typedef xmlValidState * xmlValidStatePtr
    -
    xmlAttributePtr	xmlAddAttributeDecl	(xmlValidCtxtPtr ctxt, 
    xmlDtdPtr dtd,
    const xmlChar * elem,
    const xmlChar * name,
    const xmlChar * ns,
    xmlAttributeType type,
    xmlAttributeDefault def,
    const xmlChar * defaultValue,
    xmlEnumerationPtr tree)
    -
    xmlElementPtr	xmlAddElementDecl	(xmlValidCtxtPtr ctxt, 
    xmlDtdPtr dtd,
    const xmlChar * name,
    xmlElementTypeVal type,
    xmlElementContentPtr content)
    -
    xmlIDPtr	xmlAddID		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    const xmlChar * value,
    xmlAttrPtr attr)
    -
    xmlNotationPtr	xmlAddNotationDecl	(xmlValidCtxtPtr ctxt, 
    xmlDtdPtr dtd,
    const xmlChar * name,
    const xmlChar * PublicID,
    const xmlChar * SystemID)
    -
    xmlRefPtr	xmlAddRef		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    const xmlChar * value,
    xmlAttrPtr attr)
    -
    xmlAttributeTablePtr	xmlCopyAttributeTable	(xmlAttributeTablePtr table)
    -
    xmlElementContentPtr	xmlCopyDocElementContent	(xmlDocPtr doc, 
    xmlElementContentPtr cur)
    -
    xmlElementContentPtr	xmlCopyElementContent	(xmlElementContentPtr cur)
    -
    xmlElementTablePtr	xmlCopyElementTable	(xmlElementTablePtr table)
    -
    xmlEnumerationPtr	xmlCopyEnumeration	(xmlEnumerationPtr cur)
    -
    xmlNotationTablePtr	xmlCopyNotationTable	(xmlNotationTablePtr table)
    -
    xmlEnumerationPtr	xmlCreateEnumeration	(const xmlChar * name)
    -
    void	xmlDumpAttributeDecl		(xmlBufferPtr buf, 
    xmlAttributePtr attr)
    -
    void	xmlDumpAttributeTable		(xmlBufferPtr buf, 
    xmlAttributeTablePtr table)
    -
    void	xmlDumpElementDecl		(xmlBufferPtr buf, 
    xmlElementPtr elem)
    -
    void	xmlDumpElementTable		(xmlBufferPtr buf, 
    xmlElementTablePtr table)
    -
    void	xmlDumpNotationDecl		(xmlBufferPtr buf, 
    xmlNotationPtr nota)
    -
    void	xmlDumpNotationTable		(xmlBufferPtr buf, 
    xmlNotationTablePtr table)
    -
    void	xmlFreeAttributeTable		(xmlAttributeTablePtr table)
    -
    void	xmlFreeDocElementContent	(xmlDocPtr doc, 
    xmlElementContentPtr cur)
    -
    void	xmlFreeElementContent		(xmlElementContentPtr cur)
    -
    void	xmlFreeElementTable		(xmlElementTablePtr table)
    -
    void	xmlFreeEnumeration		(xmlEnumerationPtr cur)
    -
    void	xmlFreeIDTable			(xmlIDTablePtr table)
    -
    void	xmlFreeNotationTable		(xmlNotationTablePtr table)
    -
    void	xmlFreeRefTable			(xmlRefTablePtr table)
    -
    void	xmlFreeValidCtxt		(xmlValidCtxtPtr cur)
    -
    xmlAttributePtr	xmlGetDtdAttrDesc	(xmlDtdPtr dtd, 
    const xmlChar * elem,
    const xmlChar * name)
    -
    xmlElementPtr	xmlGetDtdElementDesc	(xmlDtdPtr dtd, 
    const xmlChar * name)
    -
    xmlNotationPtr	xmlGetDtdNotationDesc	(xmlDtdPtr dtd, 
    const xmlChar * name)
    -
    xmlAttributePtr	xmlGetDtdQAttrDesc	(xmlDtdPtr dtd, 
    const xmlChar * elem,
    const xmlChar * name,
    const xmlChar * prefix)
    -
    xmlElementPtr	xmlGetDtdQElementDesc	(xmlDtdPtr dtd, 
    const xmlChar * name,
    const xmlChar * prefix)
    -
    xmlAttrPtr	xmlGetID		(xmlDocPtr doc, 
    const xmlChar * ID)
    -
    xmlListPtr	xmlGetRefs		(xmlDocPtr doc, 
    const xmlChar * ID)
    -
    int	xmlIsID			(xmlDocPtr doc, 
    xmlNodePtr elem,
    xmlAttrPtr attr)
    -
    int	xmlIsMixedElement		(xmlDocPtr doc, 
    const xmlChar * name)
    -
    int	xmlIsRef			(xmlDocPtr doc, 
    xmlNodePtr elem,
    xmlAttrPtr attr)
    -
    xmlElementContentPtr	xmlNewDocElementContent	(xmlDocPtr doc, 
    const xmlChar * name,
    xmlElementContentType type)
    -
    xmlElementContentPtr	xmlNewElementContent	(const xmlChar * name, 
    xmlElementContentType type)
    -
    xmlValidCtxtPtr	xmlNewValidCtxt		(void)
    -
    int	xmlRemoveID			(xmlDocPtr doc, 
    xmlAttrPtr attr)
    -
    int	xmlRemoveRef			(xmlDocPtr doc, 
    xmlAttrPtr attr)
    -
    void	xmlSnprintfElementContent	(char * buf, 
    int size,
    xmlElementContentPtr content,
    int englob)
    -
    void	xmlSprintfElementContent	(char * buf, 
    xmlElementContentPtr content,
    int englob)
    -
    int	xmlValidBuildContentModel	(xmlValidCtxtPtr ctxt, 
    xmlElementPtr elem)
    -
    xmlChar *	xmlValidCtxtNormalizeAttributeValue	(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * name,
    const xmlChar * value)
    -
    int	xmlValidGetPotentialChildren	(xmlElementContent * ctree, 
    const xmlChar ** names,
    int * len,
    int max)
    -
    int	xmlValidGetValidElements	(xmlNode * prev, 
    xmlNode * next,
    const xmlChar ** names,
    int max)
    -
    xmlChar *	xmlValidNormalizeAttributeValue	(xmlDocPtr doc, 
    xmlNodePtr elem,
    const xmlChar * name,
    const xmlChar * value)
    -
    int	xmlValidateAttributeDecl	(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlAttributePtr attr)
    -
    int	xmlValidateAttributeValue	(xmlAttributeType type, 
    const xmlChar * value)
    -
    int	xmlValidateDocument		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc)
    -
    int	xmlValidateDocumentFinal	(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc)
    -
    int	xmlValidateDtd			(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlDtdPtr dtd)
    -
    int	xmlValidateDtdFinal		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc)
    -
    int	xmlValidateElement		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem)
    -
    int	xmlValidateElementDecl		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlElementPtr elem)
    -
    int	xmlValidateNameValue		(const xmlChar * value)
    -
    int	xmlValidateNamesValue		(const xmlChar * value)
    -
    int	xmlValidateNmtokenValue		(const xmlChar * value)
    -
    int	xmlValidateNmtokensValue	(const xmlChar * value)
    -
    int	xmlValidateNotationDecl		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNotationPtr nota)
    -
    int	xmlValidateNotationUse		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    const xmlChar * notationName)
    -
    int	xmlValidateOneAttribute		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem,
    xmlAttrPtr attr,
    const xmlChar * value)
    -
    int	xmlValidateOneElement		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem)
    -
    int	xmlValidateOneNamespace		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * prefix,
    xmlNsPtr ns,
    const xmlChar * value)
    -
    int	xmlValidatePopElement		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * qname)
    -
    int	xmlValidatePushCData		(xmlValidCtxtPtr ctxt, 
    const xmlChar * data,
    int len)
    -
    int	xmlValidatePushElement		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * qname)
    -
    int	xmlValidateRoot			(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc)
    -
    Function type: xmlValidityErrorFunc
    -void	xmlValidityErrorFunc		(void * ctx, 
    const char * msg,
    ... ...) -
    -
    Function type: xmlValidityWarningFunc
    -void	xmlValidityWarningFunc		(void * ctx, 
    const char * msg,
    ... ...) -
    -

    Description

    -

    Macro: XML_CTXT_FINISH_DTD_0

    #define XML_CTXT_FINISH_DTD_0

    Special value for finishDtd field when embedded in an xmlParserCtxt

    -

    Macro: XML_CTXT_FINISH_DTD_1

    #define XML_CTXT_FINISH_DTD_1

    Special value for finishDtd field when embedded in an xmlParserCtxt

    -

    Structure xmlAttributeTable

    Structure xmlAttributeTable
    struct _xmlHashTable { -The content of this structure is not made public by the API. -}

    Structure xmlElementTable

    Structure xmlElementTable
    struct _xmlHashTable { -The content of this structure is not made public by the API. -}

    Structure xmlIDTable

    Structure xmlIDTable
    struct _xmlHashTable { -The content of this structure is not made public by the API. -}

    Structure xmlNotationTable

    Structure xmlNotationTable
    struct _xmlHashTable { -The content of this structure is not made public by the API. -}

    Structure xmlRefTable

    Structure xmlRefTable
    struct _xmlHashTable { -The content of this structure is not made public by the API. -}

    Structure xmlValidCtxt

    Structure xmlValidCtxt
    struct _xmlValidCtxt { - void * userData : user specific data block - xmlValidityErrorFunc error : the callback in case of errors - xmlValidityWarningFunc warning : the callback in case of warning Node an - xmlNodePtr node : Current parsed Node - int nodeNr : Depth of the parsing stack - int nodeMax : Max depth of the parsing stack - xmlNodePtr * nodeTab : array of nodes - unsigned int finishDtd : finished validating the Dtd ? - xmlDocPtr doc : the document - int valid : temporary validity check result state s - xmlValidState * vstate : current state - int vstateNr : Depth of the validation stack - int vstateMax : Max depth of the validation stack - xmlValidState * vstateTab : array of validation states - xmlAutomataPtr am : the automata - xmlAutomataStatePtr state : used to build the automata - void * am - void * state -}

    Structure xmlValidState

    Structure xmlValidState
    struct _xmlValidState { -The content of this structure is not made public by the API. -}

    Function: xmlAddAttributeDecl

    xmlAttributePtr	xmlAddAttributeDecl	(xmlValidCtxtPtr ctxt, 
    xmlDtdPtr dtd,
    const xmlChar * elem,
    const xmlChar * name,
    const xmlChar * ns,
    xmlAttributeType type,
    xmlAttributeDefault def,
    const xmlChar * defaultValue,
    xmlEnumerationPtr tree)
    -

    Register a new attribute declaration Note that @tree becomes the ownership of the DTD

    -
    ctxt:the validation context
    dtd:pointer to the DTD
    elem:the element name
    name:the attribute name
    ns:the attribute namespace prefix
    type:the attribute type
    def:the attribute default type
    defaultValue:the attribute default value
    tree:if it's an enumeration, the associated list
    Returns:NULL if not new, otherwise the attribute decl

    Function: xmlAddElementDecl

    xmlElementPtr	xmlAddElementDecl	(xmlValidCtxtPtr ctxt, 
    xmlDtdPtr dtd,
    const xmlChar * name,
    xmlElementTypeVal type,
    xmlElementContentPtr content)
    -

    Register a new element declaration

    -
    ctxt:the validation context
    dtd:pointer to the DTD
    name:the entity name
    type:the element type
    content:the element content tree or NULL
    Returns:NULL if not, otherwise the entity

    Function: xmlAddID

    xmlIDPtr	xmlAddID		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    const xmlChar * value,
    xmlAttrPtr attr)
    -

    Register a new id declaration

    -
    ctxt:the validation context
    doc:pointer to the document
    value:the value name
    attr:the attribute holding the ID
    Returns:NULL if not, otherwise the new xmlIDPtr

    Function: xmlAddNotationDecl

    xmlNotationPtr	xmlAddNotationDecl	(xmlValidCtxtPtr ctxt, 
    xmlDtdPtr dtd,
    const xmlChar * name,
    const xmlChar * PublicID,
    const xmlChar * SystemID)
    -

    Register a new notation declaration

    -
    ctxt:the validation context
    dtd:pointer to the DTD
    name:the entity name
    PublicID:the public identifier or NULL
    SystemID:the system identifier or NULL
    Returns:NULL if not, otherwise the entity

    Function: xmlAddRef

    xmlRefPtr	xmlAddRef		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    const xmlChar * value,
    xmlAttrPtr attr)
    -

    Register a new ref declaration

    -
    ctxt:the validation context
    doc:pointer to the document
    value:the value name
    attr:the attribute holding the Ref
    Returns:NULL if not, otherwise the new xmlRefPtr

    Function: xmlCopyAttributeTable

    xmlAttributeTablePtr	xmlCopyAttributeTable	(xmlAttributeTablePtr table)
    -

    Build a copy of an attribute table.

    -
    table:An attribute table
    Returns:the new xmlAttributeTablePtr or NULL in case of error.

    Function: xmlCopyDocElementContent

    xmlElementContentPtr	xmlCopyDocElementContent	(xmlDocPtr doc, 
    xmlElementContentPtr cur)
    -

    Build a copy of an element content description.

    -
    doc:the document owning the element declaration
    cur:An element content pointer.
    Returns:the new xmlElementContentPtr or NULL in case of error.

    Function: xmlCopyElementContent

    xmlElementContentPtr	xmlCopyElementContent	(xmlElementContentPtr cur)
    -

    Build a copy of an element content description. Deprecated, use xmlCopyDocElementContent instead

    -
    cur:An element content pointer.
    Returns:the new xmlElementContentPtr or NULL in case of error.

    Function: xmlCopyElementTable

    xmlElementTablePtr	xmlCopyElementTable	(xmlElementTablePtr table)
    -

    Build a copy of an element table.

    -
    table:An element table
    Returns:the new xmlElementTablePtr or NULL in case of error.

    Function: xmlCopyEnumeration

    xmlEnumerationPtr	xmlCopyEnumeration	(xmlEnumerationPtr cur)
    -

    Copy an enumeration attribute node (recursive).

    -
    cur:the tree to copy.
    Returns:the xmlEnumerationPtr just created or NULL in case of error.

    Function: xmlCopyNotationTable

    xmlNotationTablePtr	xmlCopyNotationTable	(xmlNotationTablePtr table)
    -

    Build a copy of a notation table.

    -
    table:A notation table
    Returns:the new xmlNotationTablePtr or NULL in case of error.

    Function: xmlCreateEnumeration

    xmlEnumerationPtr	xmlCreateEnumeration	(const xmlChar * name)
    -

    create and initialize an enumeration attribute node.

    -
    name:the enumeration name or NULL
    Returns:the xmlEnumerationPtr just created or NULL in case of error.

    Function: xmlDumpAttributeDecl

    void	xmlDumpAttributeDecl		(xmlBufferPtr buf, 
    xmlAttributePtr attr)
    -

    This will dump the content of the attribute declaration as an XML DTD definition

    -
    buf:the XML buffer output
    attr:An attribute declaration

    Function: xmlDumpAttributeTable

    void	xmlDumpAttributeTable		(xmlBufferPtr buf, 
    xmlAttributeTablePtr table)
    -

    This will dump the content of the attribute table as an XML DTD definition

    -
    buf:the XML buffer output
    table:An attribute table

    Function: xmlDumpElementDecl

    void	xmlDumpElementDecl		(xmlBufferPtr buf, 
    xmlElementPtr elem)
    -

    This will dump the content of the element declaration as an XML DTD definition

    -
    buf:the XML buffer output
    elem:An element table

    Function: xmlDumpElementTable

    void	xmlDumpElementTable		(xmlBufferPtr buf, 
    xmlElementTablePtr table)
    -

    This will dump the content of the element table as an XML DTD definition

    -
    buf:the XML buffer output
    table:An element table

    Function: xmlDumpNotationDecl

    void	xmlDumpNotationDecl		(xmlBufferPtr buf, 
    xmlNotationPtr nota)
    -

    This will dump the content the notation declaration as an XML DTD definition

    -
    buf:the XML buffer output
    nota:A notation declaration

    Function: xmlDumpNotationTable

    void	xmlDumpNotationTable		(xmlBufferPtr buf, 
    xmlNotationTablePtr table)
    -

    This will dump the content of the notation table as an XML DTD definition

    -
    buf:the XML buffer output
    table:A notation table

    Function: xmlFreeAttributeTable

    void	xmlFreeAttributeTable		(xmlAttributeTablePtr table)
    -

    Deallocate the memory used by an entities hash table.

    -
    table:An attribute table

    Function: xmlFreeDocElementContent

    void	xmlFreeDocElementContent	(xmlDocPtr doc, 
    xmlElementContentPtr cur)
    -

    Free an element content structure. The whole subtree is removed.

    -
    doc:the document owning the element declaration
    cur:the element content tree to free

    Function: xmlFreeElementContent

    void	xmlFreeElementContent		(xmlElementContentPtr cur)
    -

    Free an element content structure. The whole subtree is removed. Deprecated, use xmlFreeDocElementContent instead

    -
    cur:the element content tree to free

    Function: xmlFreeElementTable

    void	xmlFreeElementTable		(xmlElementTablePtr table)
    -

    Deallocate the memory used by an element hash table.

    -
    table:An element table

    Function: xmlFreeEnumeration

    void	xmlFreeEnumeration		(xmlEnumerationPtr cur)
    -

    free an enumeration attribute node (recursive).

    -
    cur:the tree to free.

    Function: xmlFreeIDTable

    void	xmlFreeIDTable			(xmlIDTablePtr table)
    -

    Deallocate the memory used by an ID hash table.

    -
    table:An id table

    Function: xmlFreeNotationTable

    void	xmlFreeNotationTable		(xmlNotationTablePtr table)
    -

    Deallocate the memory used by an entities hash table.

    -
    table:An notation table

    Function: xmlFreeRefTable

    void	xmlFreeRefTable			(xmlRefTablePtr table)
    -

    Deallocate the memory used by an Ref hash table.

    -
    table:An ref table

    Function: xmlFreeValidCtxt

    void	xmlFreeValidCtxt		(xmlValidCtxtPtr cur)
    -

    Free a validation context structure.

    -
    cur:the validation context to free

    Function: xmlGetDtdAttrDesc

    xmlAttributePtr	xmlGetDtdAttrDesc	(xmlDtdPtr dtd, 
    const xmlChar * elem,
    const xmlChar * name)
    -

    Search the DTD for the description of this attribute on this element.

    -
    dtd:a pointer to the DtD to search
    elem:the element name
    name:the attribute name
    Returns:the xmlAttributePtr if found or NULL

    Function: xmlGetDtdElementDesc

    xmlElementPtr	xmlGetDtdElementDesc	(xmlDtdPtr dtd, 
    const xmlChar * name)
    -

    Search the DTD for the description of this element

    -
    dtd:a pointer to the DtD to search
    name:the element name
    Returns:the xmlElementPtr if found or NULL

    Function: xmlGetDtdNotationDesc

    xmlNotationPtr	xmlGetDtdNotationDesc	(xmlDtdPtr dtd, 
    const xmlChar * name)
    -

    Search the DTD for the description of this notation

    -
    dtd:a pointer to the DtD to search
    name:the notation name
    Returns:the xmlNotationPtr if found or NULL

    Function: xmlGetDtdQAttrDesc

    xmlAttributePtr	xmlGetDtdQAttrDesc	(xmlDtdPtr dtd, 
    const xmlChar * elem,
    const xmlChar * name,
    const xmlChar * prefix)
    -

    Search the DTD for the description of this qualified attribute on this element.

    -
    dtd:a pointer to the DtD to search
    elem:the element name
    name:the attribute name
    prefix:the attribute namespace prefix
    Returns:the xmlAttributePtr if found or NULL

    Function: xmlGetDtdQElementDesc

    xmlElementPtr	xmlGetDtdQElementDesc	(xmlDtdPtr dtd, 
    const xmlChar * name,
    const xmlChar * prefix)
    -

    Search the DTD for the description of this element

    -
    dtd:a pointer to the DtD to search
    name:the element name
    prefix:the element namespace prefix
    Returns:the xmlElementPtr if found or NULL

    Function: xmlGetID

    xmlAttrPtr	xmlGetID		(xmlDocPtr doc, 
    const xmlChar * ID)
    -

    Search the attribute declaring the given ID

    -
    doc:pointer to the document
    ID:the ID value
    Returns:NULL if not found, otherwise the xmlAttrPtr defining the ID

    Function: xmlGetRefs

    xmlListPtr	xmlGetRefs		(xmlDocPtr doc, 
    const xmlChar * ID)
    -

    Find the set of references for the supplied ID.

    -
    doc:pointer to the document
    ID:the ID value
    Returns:NULL if not found, otherwise node set for the ID.

    Function: xmlIsID

    int	xmlIsID			(xmlDocPtr doc, 
    xmlNodePtr elem,
    xmlAttrPtr attr)
    -

    Determine whether an attribute is of type ID. In case we have DTD(s) then this is done if DTD loading has been requested. In the case of HTML documents parsed with the HTML parser, then ID detection is done systematically.

    -
    doc:the document
    elem:the element carrying the attribute
    attr:the attribute
    Returns:0 or 1 depending on the lookup result

    Function: xmlIsMixedElement

    int	xmlIsMixedElement		(xmlDocPtr doc, 
    const xmlChar * name)
    -

    Search in the DtDs whether an element accept Mixed content (or ANY) basically if it is supposed to accept text childs

    -
    doc:the document
    name:the element name
    Returns:0 if no, 1 if yes, and -1 if no element description is available

    Function: xmlIsRef

    int	xmlIsRef			(xmlDocPtr doc, 
    xmlNodePtr elem,
    xmlAttrPtr attr)
    -

    Determine whether an attribute is of type Ref. In case we have DTD(s) then this is simple, otherwise we use an heuristic: name Ref (upper or lowercase).

    -
    doc:the document
    elem:the element carrying the attribute
    attr:the attribute
    Returns:0 or 1 depending on the lookup result

    Function: xmlNewDocElementContent

    xmlElementContentPtr	xmlNewDocElementContent	(xmlDocPtr doc, 
    const xmlChar * name,
    xmlElementContentType type)
    -

    Allocate an element content structure for the document.

    -
    doc:the document
    name:the subelement name or NULL
    type:the type of element content decl
    Returns:NULL if not, otherwise the new element content structure

    Function: xmlNewElementContent

    xmlElementContentPtr	xmlNewElementContent	(const xmlChar * name, 
    xmlElementContentType type)
    -

    Allocate an element content structure. Deprecated in favor of xmlNewDocElementContent

    -
    name:the subelement name or NULL
    type:the type of element content decl
    Returns:NULL if not, otherwise the new element content structure

    Function: xmlNewValidCtxt

    xmlValidCtxtPtr	xmlNewValidCtxt		(void)
    -

    Allocate a validation context structure.

    -
    Returns:NULL if not, otherwise the new validation context structure

    Function: xmlRemoveID

    int	xmlRemoveID			(xmlDocPtr doc, 
    xmlAttrPtr attr)
    -

    Remove the given attribute from the ID table maintained internally.

    -
    doc:the document
    attr:the attribute
    Returns:-1 if the lookup failed and 0 otherwise

    Function: xmlRemoveRef

    int	xmlRemoveRef			(xmlDocPtr doc, 
    xmlAttrPtr attr)
    -

    Remove the given attribute from the Ref table maintained internally.

    -
    doc:the document
    attr:the attribute
    Returns:-1 if the lookup failed and 0 otherwise

    Function: xmlSnprintfElementContent

    void	xmlSnprintfElementContent	(char * buf, 
    int size,
    xmlElementContentPtr content,
    int englob)
    -

    This will dump the content of the element content definition Intended just for the debug routine

    -
    buf:an output buffer
    size:the buffer size
    content:An element table
    englob:1 if one must print the englobing parenthesis, 0 otherwise

    Function: xmlSprintfElementContent

    void	xmlSprintfElementContent	(char * buf, 
    xmlElementContentPtr content,
    int englob)
    -

    Deprecated, unsafe, use xmlSnprintfElementContent

    -
    buf:an output buffer
    content:An element table
    englob:1 if one must print the englobing parenthesis, 0 otherwise

    Function: xmlValidBuildContentModel

    int	xmlValidBuildContentModel	(xmlValidCtxtPtr ctxt, 
    xmlElementPtr elem)
    -

    (Re)Build the automata associated to the content model of this element

    -
    ctxt:a validation context
    elem:an element declaration node
    Returns:1 in case of success, 0 in case of error

    Function: xmlValidCtxtNormalizeAttributeValue

    xmlChar *	xmlValidCtxtNormalizeAttributeValue	(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * name,
    const xmlChar * value)
    -

    Does the validation related extra step of the normalization of attribute values: If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) characters by single space (#x20) character. Also check VC: Standalone Document Declaration in P32, and update ctxt->valid accordingly

    -
    ctxt:the validation context or NULL
    doc:the document
    elem:the parent
    name:the attribute name
    value:the attribute value
    Returns:a new normalized string if normalization is needed, NULL otherwise the caller must free the returned value.

    Function: xmlValidGetPotentialChildren

    int	xmlValidGetPotentialChildren	(xmlElementContent * ctree, 
    const xmlChar ** names,
    int * len,
    int max)
    -

    Build/extend a list of potential children allowed by the content tree

    -
    ctree:an element content tree
    names:an array to store the list of child names
    len:a pointer to the number of element in the list
    max:the size of the array
    Returns:the number of element in the list, or -1 in case of error.

    Function: xmlValidGetValidElements

    int	xmlValidGetValidElements	(xmlNode * prev, 
    xmlNode * next,
    const xmlChar ** names,
    int max)
    -

    This function returns the list of authorized children to insert within an existing tree while respecting the validity constraints forced by the Dtd. The insertion point is defined using @prev and @next in the following ways: to insert before 'node': xmlValidGetValidElements(node->prev, node, ... to insert next 'node': xmlValidGetValidElements(node, node->next, ... to replace 'node': xmlValidGetValidElements(node->prev, node->next, ... to prepend a child to 'node': xmlValidGetValidElements(NULL, node->childs, to append a child to 'node': xmlValidGetValidElements(node->last, NULL, ... pointers to the element names are inserted at the beginning of the array and do not need to be freed.

    -
    prev:an element to insert after
    next:an element to insert next
    names:an array to store the list of child names
    max:the size of the array
    Returns:the number of element in the list, or -1 in case of error. If the function returns the value @max the caller is invited to grow the receiving array and retry.

    Function: xmlValidNormalizeAttributeValue

    xmlChar *	xmlValidNormalizeAttributeValue	(xmlDocPtr doc, 
    xmlNodePtr elem,
    const xmlChar * name,
    const xmlChar * value)
    -

    Does the validation related extra step of the normalization of attribute values: If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) characters by single space (#x20) character.

    -
    doc:the document
    elem:the parent
    name:the attribute name
    value:the attribute value
    Returns:a new normalized string if normalization is needed, NULL otherwise the caller must free the returned value.

    Function: xmlValidateAttributeDecl

    int	xmlValidateAttributeDecl	(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlAttributePtr attr)
    -

    Try to validate a single attribute definition basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Default Legal ] - [ VC: Enumeration ] - [ VC: ID Attribute Default ] The ID/IDREF uniqueness and matching are done separately

    -
    ctxt:the validation context
    doc:a document instance
    attr:an attribute definition
    Returns:1 if valid or 0 otherwise

    Function: xmlValidateAttributeValue

    int	xmlValidateAttributeValue	(xmlAttributeType type, 
    const xmlChar * value)
    -

    Validate that the given attribute value match the proper production [ VC: ID ] Values of type ID must match the Name production.... [ VC: IDREF ] Values of type IDREF must match the Name production, and values of type IDREFS must match Names ... [ VC: Entity Name ] Values of type ENTITY must match the Name production, values of type ENTITIES must match Names ... [ VC: Name Token ] Values of type NMTOKEN must match the Nmtoken production; values of type NMTOKENS must match Nmtokens.

    -
    type:an attribute type
    value:an attribute value
    Returns:1 if valid or 0 otherwise

    Function: xmlValidateDocument

    int	xmlValidateDocument		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc)
    -

    Try to validate the document instance basically it does the all the checks described by the XML Rec i.e. validates the internal and external subset (if present) and validate the document tree.

    -
    ctxt:the validation context
    doc:a document instance
    Returns:1 if valid or 0 otherwise

    Function: xmlValidateDocumentFinal

    int	xmlValidateDocumentFinal	(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc)
    -

    Does the final step for the document validation once all the incremental validation steps have been completed basically it does the following checks described by the XML Rec Check all the IDREF/IDREFS attributes definition for validity

    -
    ctxt:the validation context
    doc:a document instance
    Returns:1 if valid or 0 otherwise

    Function: xmlValidateDtd

    int	xmlValidateDtd			(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlDtdPtr dtd)
    -

    Try to validate the document against the dtd instance Basically it does check all the definitions in the DtD. Note the the internal subset (if present) is de-coupled (i.e. not used), which could give problems if ID or IDREF is present.

    -
    ctxt:the validation context
    doc:a document instance
    dtd:a dtd instance
    Returns:1 if valid or 0 otherwise

    Function: xmlValidateDtdFinal

    int	xmlValidateDtdFinal		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc)
    -

    Does the final step for the dtds validation once all the subsets have been parsed basically it does the following checks described by the XML Rec - check that ENTITY and ENTITIES type attributes default or possible values matches one of the defined entities. - check that NOTATION type attributes default or possible values matches one of the defined notations.

    -
    ctxt:the validation context
    doc:a document instance
    Returns:1 if valid or 0 if invalid and -1 if not well-formed

    Function: xmlValidateElement

    int	xmlValidateElement		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem)
    -

    Try to validate the subtree under an element

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element instance
    Returns:1 if valid or 0 otherwise

    Function: xmlValidateElementDecl

    int	xmlValidateElementDecl		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlElementPtr elem)
    -

    Try to validate a single element definition basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: One ID per Element Type ] - [ VC: No Duplicate Types ] - [ VC: Unique Element Type Declaration ]

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element definition
    Returns:1 if valid or 0 otherwise

    Function: xmlValidateNameValue

    int	xmlValidateNameValue		(const xmlChar * value)
    -

    Validate that the given value match Name production

    -
    value:an Name value
    Returns:1 if valid or 0 otherwise

    Function: xmlValidateNamesValue

    int	xmlValidateNamesValue		(const xmlChar * value)
    -

    Validate that the given value match Names production

    -
    value:an Names value
    Returns:1 if valid or 0 otherwise

    Function: xmlValidateNmtokenValue

    int	xmlValidateNmtokenValue		(const xmlChar * value)
    -

    Validate that the given value match Nmtoken production [ VC: Name Token ]

    -
    value:an Nmtoken value
    Returns:1 if valid or 0 otherwise

    Function: xmlValidateNmtokensValue

    int	xmlValidateNmtokensValue	(const xmlChar * value)
    -

    Validate that the given value match Nmtokens production [ VC: Name Token ]

    -
    value:an Nmtokens value
    Returns:1 if valid or 0 otherwise

    Function: xmlValidateNotationDecl

    int	xmlValidateNotationDecl		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNotationPtr nota)
    -

    Try to validate a single notation definition basically it does the following checks as described by the XML-1.0 recommendation: - it seems that no validity constraint exists on notation declarations But this function get called anyway ...

    -
    ctxt:the validation context
    doc:a document instance
    nota:a notation definition
    Returns:1 if valid or 0 otherwise

    Function: xmlValidateNotationUse

    int	xmlValidateNotationUse		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    const xmlChar * notationName)
    -

    Validate that the given name match a notation declaration. - [ VC: Notation Declared ]

    -
    ctxt:the validation context
    doc:the document
    notationName:the notation name to check
    Returns:1 if valid or 0 otherwise

    Function: xmlValidateOneAttribute

    int	xmlValidateOneAttribute		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem,
    xmlAttrPtr attr,
    const xmlChar * value)
    -

    Try to validate a single attribute for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ] - [ VC: Entity Name ] - [ VC: Notation Attributes ] The ID/IDREF uniqueness and matching are done separately

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element instance
    attr:an attribute instance
    value:the attribute value (without entities processing)
    Returns:1 if valid or 0 otherwise

    Function: xmlValidateOneElement

    int	xmlValidateOneElement		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem)
    -

    Try to validate a single element and it's attributes, basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Element Valid ] - [ VC: Required Attribute ] Then call xmlValidateOneAttribute() for each attribute present. The ID/IDREF checkings are done separately

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element instance
    Returns:1 if valid or 0 otherwise

    Function: xmlValidateOneNamespace

    int	xmlValidateOneNamespace		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * prefix,
    xmlNsPtr ns,
    const xmlChar * value)
    -

    Try to validate a single namespace declaration for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ] - [ VC: Entity Name ] - [ VC: Notation Attributes ] The ID/IDREF uniqueness and matching are done separately

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element instance
    prefix:the namespace prefix
    ns:an namespace declaration instance
    value:the attribute value (without entities processing)
    Returns:1 if valid or 0 otherwise

    Function: xmlValidatePopElement

    int	xmlValidatePopElement		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * qname)
    -

    Pop the element end from the validation stack.

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element instance
    qname:the qualified name as appearing in the serialization
    Returns:1 if no validation problem was found or 0 otherwise

    Function: xmlValidatePushCData

    int	xmlValidatePushCData		(xmlValidCtxtPtr ctxt, 
    const xmlChar * data,
    int len)
    -

    check the CData parsed for validation in the current stack

    -
    ctxt:the validation context
    data:some character data read
    len:the lenght of the data
    Returns:1 if no validation problem was found or 0 otherwise

    Function: xmlValidatePushElement

    int	xmlValidatePushElement		(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc,
    xmlNodePtr elem,
    const xmlChar * qname)
    -

    Push a new element start on the validation stack.

    -
    ctxt:the validation context
    doc:a document instance
    elem:an element instance
    qname:the qualified name as appearing in the serialization
    Returns:1 if no validation problem was found or 0 otherwise

    Function: xmlValidateRoot

    int	xmlValidateRoot			(xmlValidCtxtPtr ctxt, 
    xmlDocPtr doc)
    -

    Try to validate a the root element basically it does the following check as described by the XML-1.0 recommendation: - [ VC: Root Element Type ] it doesn't try to recurse or apply other check to the element

    -
    ctxt:the validation context
    doc:a document instance
    Returns:1 if valid or 0 otherwise

    Function type: xmlValidityErrorFunc

    Function type: xmlValidityErrorFunc
    -void	xmlValidityErrorFunc		(void * ctx, 
    const char * msg,
    ... ...) -

    Callback called when a validity error is found. This is a message oriented function similar to an *printf function.

    ctx:usually an xmlValidCtxtPtr to a validity error context, but comes from ctxt->userData (which normally contains such a pointer); ctxt->userData can be changed by the user.
    msg:the string to format *printf like vararg
    ...:remaining arguments to the format

    -

    Function type: xmlValidityWarningFunc

    Function type: xmlValidityWarningFunc
    -void	xmlValidityWarningFunc		(void * ctx, 
    const char * msg,
    ... ...) -

    Callback called when a validity warning is found. This is a message oriented function similar to an *printf function.

    ctx:usually an xmlValidCtxtPtr to a validity error context, but comes from ctxt->userData (which normally contains such a pointer); ctxt->userData can be changed by the user.
    msg:the string to format *printf like vararg
    ...:remaining arguments to the format

    -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xinclude.html b/src/tools/docbook/libxml2/doc/html/libxml-xinclude.html deleted file mode 100644 index 44771b99f8..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xinclude.html +++ /dev/null @@ -1,53 +0,0 @@ - - -Module xinclude from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xinclude from libxml2

    API Menu
    API Indexes
    Related links

    API to handle XInclude processing, implements the World Wide Web Consortium Last Call Working Draft 10 November 2003

    Table of Contents

    #define XINCLUDE_FALLBACK
    #define XINCLUDE_HREF
    #define XINCLUDE_NODE
    #define XINCLUDE_NS
    #define XINCLUDE_OLD_NS
    #define XINCLUDE_PARSE
    #define XINCLUDE_PARSE_ENCODING
    #define XINCLUDE_PARSE_TEXT
    #define XINCLUDE_PARSE_XML
    #define XINCLUDE_PARSE_XPOINTER
    Structure xmlXIncludeCtxt
    struct _xmlXIncludeCtxt -The content of this structure is not made public by the API. -
    Typedef xmlXIncludeCtxt * xmlXIncludeCtxtPtr
    -
    void	xmlXIncludeFreeContext		(xmlXIncludeCtxtPtr ctxt)
    -
    xmlXIncludeCtxtPtr	xmlXIncludeNewContext	(xmlDocPtr doc)
    -
    int	xmlXIncludeProcess		(xmlDocPtr doc)
    -
    int	xmlXIncludeProcessFlags		(xmlDocPtr doc, 
    int flags)
    -
    int	xmlXIncludeProcessNode		(xmlXIncludeCtxtPtr ctxt, 
    xmlNodePtr node)
    -
    int	xmlXIncludeProcessTree		(xmlNodePtr tree)
    -
    int	xmlXIncludeProcessTreeFlags	(xmlNodePtr tree, 
    int flags)
    -
    int	xmlXIncludeSetFlags		(xmlXIncludeCtxtPtr ctxt, 
    int flags)
    -

    Description

    -

    Macro: XINCLUDE_FALLBACK

    #define XINCLUDE_FALLBACK

    Macro defining "fallback"

    -

    Macro: XINCLUDE_HREF

    #define XINCLUDE_HREF

    Macro defining "href"

    -

    Macro: XINCLUDE_NODE

    #define XINCLUDE_NODE

    Macro defining "include"

    -

    Macro: XINCLUDE_NS

    #define XINCLUDE_NS

    Macro defining the Xinclude namespace: http://www.w3.org/2003/XInclude

    -

    Macro: XINCLUDE_OLD_NS

    #define XINCLUDE_OLD_NS

    Macro defining the draft Xinclude namespace: http://www.w3.org/2001/XInclude

    -

    Macro: XINCLUDE_PARSE

    #define XINCLUDE_PARSE

    Macro defining "parse"

    -

    Macro: XINCLUDE_PARSE_ENCODING

    #define XINCLUDE_PARSE_ENCODING

    Macro defining "encoding"

    -

    Macro: XINCLUDE_PARSE_TEXT

    #define XINCLUDE_PARSE_TEXT

    Macro defining "text"

    -

    Macro: XINCLUDE_PARSE_XML

    #define XINCLUDE_PARSE_XML

    Macro defining "xml"

    -

    Macro: XINCLUDE_PARSE_XPOINTER

    #define XINCLUDE_PARSE_XPOINTER

    Macro defining "xpointer"

    -

    Structure xmlXIncludeCtxt

    Structure xmlXIncludeCtxt
    struct _xmlXIncludeCtxt { -The content of this structure is not made public by the API. -}

    Function: xmlXIncludeFreeContext

    void	xmlXIncludeFreeContext		(xmlXIncludeCtxtPtr ctxt)
    -

    Free an XInclude context

    -
    ctxt:the XInclude context

    Function: xmlXIncludeNewContext

    xmlXIncludeCtxtPtr	xmlXIncludeNewContext	(xmlDocPtr doc)
    -

    Creates a new XInclude context

    -
    doc:an XML Document
    Returns:the new set

    Function: xmlXIncludeProcess

    int	xmlXIncludeProcess		(xmlDocPtr doc)
    -

    Implement the XInclude substitution on the XML document @doc

    -
    doc:an XML document
    Returns:0 if no substitution were done, -1 if some processing failed or the number of substitutions done.

    Function: xmlXIncludeProcessFlags

    int	xmlXIncludeProcessFlags		(xmlDocPtr doc, 
    int flags)
    -

    Implement the XInclude substitution on the XML document @doc

    -
    doc:an XML document
    flags:a set of xmlParserOption used for parsing XML includes
    Returns:0 if no substitution were done, -1 if some processing failed or the number of substitutions done.

    Function: xmlXIncludeProcessNode

    int	xmlXIncludeProcessNode		(xmlXIncludeCtxtPtr ctxt, 
    xmlNodePtr node)
    -

    Implement the XInclude substitution for the given subtree reusing the informations and data coming from the given context.

    -
    ctxt:an existing XInclude context
    node:a node in an XML document
    Returns:0 if no substitution were done, -1 if some processing failed or the number of substitutions done.

    Function: xmlXIncludeProcessTree

    int	xmlXIncludeProcessTree		(xmlNodePtr tree)
    -

    Implement the XInclude substitution for the given subtree

    -
    tree:a node in an XML document
    Returns:0 if no substitution were done, -1 if some processing failed or the number of substitutions done.

    Function: xmlXIncludeProcessTreeFlags

    int	xmlXIncludeProcessTreeFlags	(xmlNodePtr tree, 
    int flags)
    -

    Implement the XInclude substitution for the given subtree

    -
    tree:a node in an XML document
    flags:a set of xmlParserOption used for parsing XML includes
    Returns:0 if no substitution were done, -1 if some processing failed or the number of substitutions done.

    Function: xmlXIncludeSetFlags

    int	xmlXIncludeSetFlags		(xmlXIncludeCtxtPtr ctxt, 
    int flags)
    -

    Set the flags used for further processing of XML resources.

    -
    ctxt:an XInclude processing context
    flags:a set of xmlParserOption used for parsing XML includes
    Returns:0 in case of success and -1 in case of error.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xlink.html b/src/tools/docbook/libxml2/doc/html/libxml-xlink.html deleted file mode 100644 index 0350911d6d..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xlink.html +++ /dev/null @@ -1,82 +0,0 @@ - - -Module xlink from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xlink from libxml2

    API Menu
    API Indexes
    Related links

    unfinished XLink detection module

    Table of Contents

    Enum xlinkActuate
    -
    Typedef xmlChar * xlinkHRef
    -
    Structure xlinkHandler
    struct _xlinkHandler -
    Typedef xlinkHandler * xlinkHandlerPtr
    -
    Typedef xmlChar * xlinkRole
    -
    Enum xlinkShow
    -
    Typedef xmlChar * xlinkTitle
    -
    Enum xlinkType
    -
    Function type: xlinkExtendedLinkFunk
    -void	xlinkExtendedLinkFunk		(void * ctx, 
    xmlNodePtr node,
    int nbLocators,
    const xlinkHRef * hrefs,
    const xlinkRole * roles,
    int nbArcs,
    const xlinkRole * from,
    const xlinkRole * to,
    xlinkShow * show,
    xlinkActuate * actuate,
    int nbTitles,
    const xlinkTitle * titles,
    const xmlChar ** langs) -
    -
    Function type: xlinkExtendedLinkSetFunk
    -void	xlinkExtendedLinkSetFunk	(void * ctx, 
    xmlNodePtr node,
    int nbLocators,
    const xlinkHRef * hrefs,
    const xlinkRole * roles,
    int nbTitles,
    const xlinkTitle * titles,
    const xmlChar ** langs) -
    -
    xlinkNodeDetectFunc	xlinkGetDefaultDetect	(void)
    -
    xlinkHandlerPtr	xlinkGetDefaultHandler	(void)
    -
    xlinkType	xlinkIsLink		(xmlDocPtr doc, 
    xmlNodePtr node)
    -
    Function type: xlinkNodeDetectFunc
    -void	xlinkNodeDetectFunc		(void * ctx, 
    xmlNodePtr node) -
    -
    void	xlinkSetDefaultDetect		(xlinkNodeDetectFunc func)
    -
    void	xlinkSetDefaultHandler		(xlinkHandlerPtr handler)
    -
    Function type: xlinkSimpleLinkFunk
    -void	xlinkSimpleLinkFunk		(void * ctx, 
    xmlNodePtr node,
    const xlinkHRef href,
    const xlinkRole role,
    const xlinkTitle title) -
    -

    Description

    -

    Enum xlinkActuate

    Enum xlinkActuate {
    -    XLINK_ACTUATE_NONE = 0
    -    XLINK_ACTUATE_AUTO = 1
    -    XLINK_ACTUATE_ONREQUEST = 2
    -}
    -

    Structure xlinkHandler

    Structure xlinkHandler
    struct _xlinkHandler { - xlinkSimpleLinkFunk simple - xlinkExtendedLinkFunk extended - xlinkExtendedLinkSetFunk set -}

    Enum xlinkShow

    Enum xlinkShow {
    -    XLINK_SHOW_NONE = 0
    -    XLINK_SHOW_NEW = 1
    -    XLINK_SHOW_EMBED = 2
    -    XLINK_SHOW_REPLACE = 3
    -}
    -

    Enum xlinkType

    Enum xlinkType {
    -    XLINK_TYPE_NONE = 0
    -    XLINK_TYPE_SIMPLE = 1
    -    XLINK_TYPE_EXTENDED = 2
    -    XLINK_TYPE_EXTENDED_SET = 3
    -}
    -

    Function type: xlinkExtendedLinkFunk

    Function type: xlinkExtendedLinkFunk
    -void	xlinkExtendedLinkFunk		(void * ctx, 
    xmlNodePtr node,
    int nbLocators,
    const xlinkHRef * hrefs,
    const xlinkRole * roles,
    int nbArcs,
    const xlinkRole * from,
    const xlinkRole * to,
    xlinkShow * show,
    xlinkActuate * actuate,
    int nbTitles,
    const xlinkTitle * titles,
    const xmlChar ** langs) -

    This is the prototype for a extended link detection callback.

    ctx:user data pointer
    node:the node carrying the link
    nbLocators:the number of locators detected on the link
    hrefs:pointer to the array of locator hrefs
    roles:pointer to the array of locator roles
    nbArcs:the number of arcs detected on the link
    from:pointer to the array of source roles found on the arcs
    to:pointer to the array of target roles found on the arcs
    show:array of values for the show attributes found on the arcs
    actuate:array of values for the actuate attributes found on the arcs
    nbTitles:the number of titles detected on the link
    titles:
    langs:array of xml:lang values for the titles

    -

    Function type: xlinkExtendedLinkSetFunk

    Function type: xlinkExtendedLinkSetFunk
    -void	xlinkExtendedLinkSetFunk	(void * ctx, 
    xmlNodePtr node,
    int nbLocators,
    const xlinkHRef * hrefs,
    const xlinkRole * roles,
    int nbTitles,
    const xlinkTitle * titles,
    const xmlChar ** langs) -

    This is the prototype for a extended link set detection callback.

    ctx:user data pointer
    node:the node carrying the link
    nbLocators:the number of locators detected on the link
    hrefs:pointer to the array of locator hrefs
    roles:pointer to the array of locator roles
    nbTitles:the number of titles detected on the link
    titles:
    langs:array of xml:lang values for the titles

    -

    Function: xlinkGetDefaultDetect

    xlinkNodeDetectFunc	xlinkGetDefaultDetect	(void)
    -

    Get the default xlink detection routine

    -
    Returns:the current function or NULL;

    Function: xlinkGetDefaultHandler

    xlinkHandlerPtr	xlinkGetDefaultHandler	(void)
    -

    Get the default xlink handler.

    -
    Returns:the current xlinkHandlerPtr value.

    Function: xlinkIsLink

    xlinkType	xlinkIsLink		(xmlDocPtr doc, 
    xmlNodePtr node)
    -

    Check whether the given node carries the attributes needed to be a link element (or is one of the linking elements issued from the (X)HTML DtDs). This routine don't try to do full checking of the link validity but tries to detect and return the appropriate link type.

    -
    doc:the document containing the node
    node:the node pointer itself
    Returns:the xlinkType of the node (XLINK_TYPE_NONE if there is no link detected.

    Function type: xlinkNodeDetectFunc

    Function type: xlinkNodeDetectFunc
    -void	xlinkNodeDetectFunc		(void * ctx, 
    xmlNodePtr node) -

    This is the prototype for the link detection routine. It calls the default link detection callbacks upon link detection.

    ctx:user data pointer
    node:the node to check

    -

    Function: xlinkSetDefaultDetect

    void	xlinkSetDefaultDetect		(xlinkNodeDetectFunc func)
    -

    Set the default xlink detection routine

    -
    func:pointer to the new detection routine.

    Function: xlinkSetDefaultHandler

    void	xlinkSetDefaultHandler		(xlinkHandlerPtr handler)
    -

    Set the default xlink handlers

    -
    handler:the new value for the xlink handler block

    Function type: xlinkSimpleLinkFunk

    Function type: xlinkSimpleLinkFunk
    -void	xlinkSimpleLinkFunk		(void * ctx, 
    xmlNodePtr node,
    const xlinkHRef href,
    const xlinkRole role,
    const xlinkTitle title) -

    This is the prototype for a simple link detection callback.

    ctx:user data pointer
    node:the node carrying the link
    href:the target of the link
    role:the role string
    title:the link title

    -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xmlIO.html b/src/tools/docbook/libxml2/doc/html/libxml-xmlIO.html deleted file mode 100644 index 5c0b9b094f..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xmlIO.html +++ /dev/null @@ -1,206 +0,0 @@ - - -Module xmlIO from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xmlIO from libxml2

    API Menu
    API Indexes
    Related links

    interface for the I/O interfaces used by the parser

    Table of Contents

    xmlOutputBufferPtr	xmlAllocOutputBuffer	(xmlCharEncodingHandlerPtr encoder)
    -
    xmlParserInputBufferPtr	xmlAllocParserInputBuffer	(xmlCharEncoding enc)
    -
    int	xmlCheckFilename		(const char * path)
    -
    xmlParserInputPtr	xmlCheckHTTPInput	(xmlParserCtxtPtr ctxt, 
    xmlParserInputPtr ret)
    -
    void	xmlCleanupInputCallbacks	(void)
    -
    void	xmlCleanupOutputCallbacks	(void)
    -
    int	xmlFileClose			(void * context)
    -
    int	xmlFileMatch			(const char * filename)
    -
    void *	xmlFileOpen			(const char * filename)
    -
    int	xmlFileRead			(void * context, 
    char * buffer,
    int len)
    -
    void	xmlFreeParserInputBuffer	(xmlParserInputBufferPtr in)
    -
    int	xmlIOFTPClose			(void * context)
    -
    int	xmlIOFTPMatch			(const char * filename)
    -
    void *	xmlIOFTPOpen			(const char * filename)
    -
    int	xmlIOFTPRead			(void * context, 
    char * buffer,
    int len)
    -
    int	xmlIOHTTPClose			(void * context)
    -
    int	xmlIOHTTPMatch			(const char * filename)
    -
    void *	xmlIOHTTPOpen			(const char * filename)
    -
    void *	xmlIOHTTPOpenW			(const char * post_uri, 
    int compression)
    -
    int	xmlIOHTTPRead			(void * context, 
    char * buffer,
    int len)
    -
    Function type: xmlInputCloseCallback
    -int	xmlInputCloseCallback		(void * context)
    -
    -
    Function type: xmlInputMatchCallback
    -int	xmlInputMatchCallback		(char const * filename)
    -
    -
    Function type: xmlInputOpenCallback
    -void *	xmlInputOpenCallback		(char const * filename)
    -
    -
    Function type: xmlInputReadCallback
    -int	xmlInputReadCallback		(void * context, 
    char * buffer,
    int len) -
    -
    xmlParserInputPtr	xmlNoNetExternalEntityLoader	(const char * URL, 
    const char * ID,
    xmlParserCtxtPtr ctxt)
    -
    xmlChar *	xmlNormalizeWindowsPath	(const xmlChar * path)
    -
    int	xmlOutputBufferClose		(xmlOutputBufferPtr out)
    -
    xmlOutputBufferPtr	xmlOutputBufferCreateBuffer	(xmlBufferPtr buffer, 
    xmlCharEncodingHandlerPtr encoder)
    -
    xmlOutputBufferPtr	xmlOutputBufferCreateFd	(int fd, 
    xmlCharEncodingHandlerPtr encoder)
    -
    xmlOutputBufferPtr	xmlOutputBufferCreateFile	(FILE * file, 
    xmlCharEncodingHandlerPtr encoder)
    -
    xmlOutputBufferPtr	xmlOutputBufferCreateFilename	(const char * URI, 
    xmlCharEncodingHandlerPtr encoder,
    int compression)
    -
    xmlOutputBufferPtr	xmlOutputBufferCreateIO	(xmlOutputWriteCallback iowrite, 
    xmlOutputCloseCallback ioclose,
    void * ioctx,
    xmlCharEncodingHandlerPtr encoder)
    -
    int	xmlOutputBufferFlush		(xmlOutputBufferPtr out)
    -
    int	xmlOutputBufferWrite		(xmlOutputBufferPtr out, 
    int len,
    const char * buf)
    -
    int	xmlOutputBufferWriteEscape	(xmlOutputBufferPtr out, 
    const xmlChar * str,
    xmlCharEncodingOutputFunc escaping)
    -
    int	xmlOutputBufferWriteString	(xmlOutputBufferPtr out, 
    const char * str)
    -
    Function type: xmlOutputCloseCallback
    -int	xmlOutputCloseCallback		(void * context)
    -
    -
    Function type: xmlOutputMatchCallback
    -int	xmlOutputMatchCallback		(char const * filename)
    -
    -
    Function type: xmlOutputOpenCallback
    -void *	xmlOutputOpenCallback		(char const * filename)
    -
    -
    Function type: xmlOutputWriteCallback
    -int	xmlOutputWriteCallback		(void * context, 
    const char * buffer,
    int len) -
    -
    char *	xmlParserGetDirectory		(const char * filename)
    -
    xmlParserInputBufferPtr	xmlParserInputBufferCreateFd	(int fd, 
    xmlCharEncoding enc)
    -
    xmlParserInputBufferPtr	xmlParserInputBufferCreateFile	(FILE * file, 
    xmlCharEncoding enc)
    -
    xmlParserInputBufferPtr	xmlParserInputBufferCreateFilename	(const char * URI, 
    xmlCharEncoding enc)
    -
    xmlParserInputBufferPtr	xmlParserInputBufferCreateIO	(xmlInputReadCallback ioread, 
    xmlInputCloseCallback ioclose,
    void * ioctx,
    xmlCharEncoding enc)
    -
    xmlParserInputBufferPtr	xmlParserInputBufferCreateMem	(const char * mem, 
    int size,
    xmlCharEncoding enc)
    -
    xmlParserInputBufferPtr	xmlParserInputBufferCreateStatic	(const char * mem, 
    int size,
    xmlCharEncoding enc)
    -
    int	xmlParserInputBufferGrow	(xmlParserInputBufferPtr in, 
    int len)
    -
    int	xmlParserInputBufferPush	(xmlParserInputBufferPtr in, 
    int len,
    const char * buf)
    -
    int	xmlParserInputBufferRead	(xmlParserInputBufferPtr in, 
    int len)
    -
    int	xmlPopInputCallbacks		(void)
    -
    void	xmlRegisterDefaultInputCallbacks	(void)
    -
    void	xmlRegisterDefaultOutputCallbacks	(void)
    -
    void	xmlRegisterHTTPPostCallbacks	(void)
    -
    int	xmlRegisterInputCallbacks	(xmlInputMatchCallback matchFunc, 
    xmlInputOpenCallback openFunc,
    xmlInputReadCallback readFunc,
    xmlInputCloseCallback closeFunc)
    -
    int	xmlRegisterOutputCallbacks	(xmlOutputMatchCallback matchFunc, 
    xmlOutputOpenCallback openFunc,
    xmlOutputWriteCallback writeFunc,
    xmlOutputCloseCallback closeFunc)
    -

    Description

    -

    Function: xmlAllocOutputBuffer

    xmlOutputBufferPtr	xmlAllocOutputBuffer	(xmlCharEncodingHandlerPtr encoder)
    -

    Create a buffered parser output

    -
    encoder:the encoding converter or NULL
    Returns:the new parser output or NULL

    Function: xmlAllocParserInputBuffer

    xmlParserInputBufferPtr	xmlAllocParserInputBuffer	(xmlCharEncoding enc)
    -

    Create a buffered parser input for progressive parsing

    -
    enc:the charset encoding if known
    Returns:the new parser input or NULL

    Function: xmlCheckFilename

    int	xmlCheckFilename		(const char * path)
    -

    function checks to see if @path is a valid source (file, socket...) for XML. if stat is not available on the target machine,

    -
    path:the path to check
    Returns:1. if stat fails, returns 0 (if calling stat on the filename fails, it can't be right). if stat succeeds and the file is a directory, returns 2. otherwise returns 1.

    Function: xmlCheckHTTPInput

    xmlParserInputPtr	xmlCheckHTTPInput	(xmlParserCtxtPtr ctxt, 
    xmlParserInputPtr ret)
    -

    Check an input in case it was created from an HTTP stream, in that case it will handle encoding and update of the base URL in case of redirection. It also checks for HTTP errors in which case the input is cleanly freed up and an appropriate error is raised in context

    -
    ctxt:an XML parser context
    ret:an XML parser input
    Returns:the input or NULL in case of HTTP error.

    Function: xmlCleanupInputCallbacks

    void	xmlCleanupInputCallbacks	(void)
    -

    clears the entire input callback table. this includes the compiled-in I/O.

    -

    Function: xmlCleanupOutputCallbacks

    void	xmlCleanupOutputCallbacks	(void)
    -

    clears the entire output callback table. this includes the compiled-in I/O callbacks.

    -

    Function: xmlFileClose

    int	xmlFileClose			(void * context)
    -

    Close an I/O channel

    -
    context:the I/O context
    Returns:0 or -1 in case of error

    Function: xmlFileMatch

    int	xmlFileMatch			(const char * filename)
    -

    input from FILE *

    -
    filename:the URI for matching
    Returns:1 if matches, 0 otherwise

    Function: xmlFileOpen

    void *	xmlFileOpen			(const char * filename)
    -

    Wrapper around xmlFileOpen_real that try it with an unescaped version of @filename, if this fails fallback to @filename

    -
    filename:the URI for matching
    Returns:a handler or NULL in case or failure

    Function: xmlFileRead

    int	xmlFileRead			(void * context, 
    char * buffer,
    int len)
    -

    Read @len bytes to @buffer from the I/O channel.

    -
    context:the I/O context
    buffer:where to drop data
    len:number of bytes to write
    Returns:the number of bytes written or < 0 in case of failure

    Function: xmlFreeParserInputBuffer

    void	xmlFreeParserInputBuffer	(xmlParserInputBufferPtr in)
    -

    Free up the memory used by a buffered parser input

    -
    in:a buffered parser input

    Function: xmlIOFTPClose

    int	xmlIOFTPClose			(void * context)
    -

    Close an FTP I/O channel

    -
    context:the I/O context
    Returns:0

    Function: xmlIOFTPMatch

    int	xmlIOFTPMatch			(const char * filename)
    -

    check if the URI matches an FTP one

    -
    filename:the URI for matching
    Returns:1 if matches, 0 otherwise

    Function: xmlIOFTPOpen

    void *	xmlIOFTPOpen			(const char * filename)
    -

    open an FTP I/O channel

    -
    filename:the URI for matching
    Returns:an I/O context or NULL in case of error

    Function: xmlIOFTPRead

    int	xmlIOFTPRead			(void * context, 
    char * buffer,
    int len)
    -

    Read @len bytes to @buffer from the I/O channel.

    -
    context:the I/O context
    buffer:where to drop data
    len:number of bytes to write
    Returns:the number of bytes written

    Function: xmlIOHTTPClose

    int	xmlIOHTTPClose			(void * context)
    -

    Close an HTTP I/O channel

    -
    context:the I/O context
    Returns:0

    Function: xmlIOHTTPMatch

    int	xmlIOHTTPMatch			(const char * filename)
    -

    check if the URI matches an HTTP one

    -
    filename:the URI for matching
    Returns:1 if matches, 0 otherwise

    Function: xmlIOHTTPOpen

    void *	xmlIOHTTPOpen			(const char * filename)
    -

    open an HTTP I/O channel

    -
    filename:the URI for matching
    Returns:an I/O context or NULL in case of error

    Function: xmlIOHTTPOpenW

    void *	xmlIOHTTPOpenW			(const char * post_uri, 
    int compression)
    -

    Open a temporary buffer to collect the document for a subsequent HTTP POST request. Non-static as is called from the output buffer creation routine.

    -
    post_uri:The destination URI for the document
    compression:The compression desired for the document.
    Returns:an I/O context or NULL in case of error.

    Function: xmlIOHTTPRead

    int	xmlIOHTTPRead			(void * context, 
    char * buffer,
    int len)
    -

    Read @len bytes to @buffer from the I/O channel.

    -
    context:the I/O context
    buffer:where to drop data
    len:number of bytes to write
    Returns:the number of bytes written

    Function type: xmlInputCloseCallback

    Function type: xmlInputCloseCallback
    -int	xmlInputCloseCallback		(void * context)
    -

    Callback used in the I/O Input API to close the resource

    context:an Input context
    Returns:0 or -1 in case of error

    -

    Function type: xmlInputMatchCallback

    Function type: xmlInputMatchCallback
    -int	xmlInputMatchCallback		(char const * filename)
    -

    Callback used in the I/O Input API to detect if the current handler can provide input fonctionnalities for this resource.

    filename:the filename or URI
    Returns:1 if yes and 0 if another Input module should be used

    -

    Function type: xmlInputOpenCallback

    Function type: xmlInputOpenCallback
    -void *	xmlInputOpenCallback		(char const * filename)
    -

    Callback used in the I/O Input API to open the resource

    filename:the filename or URI
    Returns:an Input context or NULL in case or error

    -

    Function type: xmlInputReadCallback

    Function type: xmlInputReadCallback
    -int	xmlInputReadCallback		(void * context, 
    char * buffer,
    int len) -

    Callback used in the I/O Input API to read the resource

    context:an Input context
    buffer:the buffer to store data read
    len:the length of the buffer in bytes
    Returns:the number of bytes read or -1 in case of error

    -

    Function: xmlNoNetExternalEntityLoader

    xmlParserInputPtr	xmlNoNetExternalEntityLoader	(const char * URL, 
    const char * ID,
    xmlParserCtxtPtr ctxt)
    -

    A specific entity loader disabling network accesses, though still allowing local catalog accesses for resolution.

    -
    URL:the URL for the entity to load
    ID:the System ID for the entity to load
    ctxt:the context in which the entity is called or NULL
    Returns:a new allocated xmlParserInputPtr, or NULL.

    Function: xmlNormalizeWindowsPath

    xmlChar *	xmlNormalizeWindowsPath	(const xmlChar * path)
    -

    This function is obsolete. Please see xmlURIFromPath in uri.c for a better solution.

    -
    path:the input file path
    Returns:a canonicalized version of the path

    Function: xmlOutputBufferClose

    int	xmlOutputBufferClose		(xmlOutputBufferPtr out)
    -

    flushes and close the output I/O channel and free up all the associated resources

    -
    out:a buffered output
    Returns:the number of byte written or -1 in case of error.

    Function: xmlOutputBufferCreateBuffer

    xmlOutputBufferPtr	xmlOutputBufferCreateBuffer	(xmlBufferPtr buffer, 
    xmlCharEncodingHandlerPtr encoder)
    -

    Create a buffered output for the progressive saving to a xmlBuffer

    -
    buffer:a xmlBufferPtr
    encoder:the encoding converter or NULL
    Returns:the new parser output or NULL

    Function: xmlOutputBufferCreateFd

    xmlOutputBufferPtr	xmlOutputBufferCreateFd	(int fd, 
    xmlCharEncodingHandlerPtr encoder)
    -

    Create a buffered output for the progressive saving to a file descriptor

    -
    fd:a file descriptor number
    encoder:the encoding converter or NULL
    Returns:the new parser output or NULL

    Function: xmlOutputBufferCreateFile

    xmlOutputBufferPtr	xmlOutputBufferCreateFile	(FILE * file, 
    xmlCharEncodingHandlerPtr encoder)
    -

    Create a buffered output for the progressive saving to a FILE * buffered C I/O

    -
    file:a FILE*
    encoder:the encoding converter or NULL
    Returns:the new parser output or NULL

    Function: xmlOutputBufferCreateFilename

    xmlOutputBufferPtr	xmlOutputBufferCreateFilename	(const char * URI, 
    xmlCharEncodingHandlerPtr encoder,
    int compression)
    -

    Create a buffered output for the progressive saving of a file If filename is "-' then we use stdout as the output. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. TODO: currently if compression is set, the library only support writing to a local file.

    -
    URI:a C string containing the URI or filename
    encoder:the encoding converter or NULL
    compression:the compression ration (0 none, 9 max).
    Returns:the new output or NULL

    Function: xmlOutputBufferCreateIO

    xmlOutputBufferPtr	xmlOutputBufferCreateIO	(xmlOutputWriteCallback iowrite, 
    xmlOutputCloseCallback ioclose,
    void * ioctx,
    xmlCharEncodingHandlerPtr encoder)
    -

    Create a buffered output for the progressive saving to an I/O handler

    -
    iowrite:an I/O write function
    ioclose:an I/O close function
    ioctx:an I/O handler
    encoder:the charset encoding if known
    Returns:the new parser output or NULL

    Function: xmlOutputBufferFlush

    int	xmlOutputBufferFlush		(xmlOutputBufferPtr out)
    -

    flushes the output I/O channel

    -
    out:a buffered output
    Returns:the number of byte written or -1 in case of error.

    Function: xmlOutputBufferWrite

    int	xmlOutputBufferWrite		(xmlOutputBufferPtr out, 
    int len,
    const char * buf)
    -

    Write the content of the array in the output I/O buffer This routine handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes.

    -
    out:a buffered parser output
    len:the size in bytes of the array.
    buf:an char array
    Returns:the number of chars immediately written, or -1 in case of error.

    Function: xmlOutputBufferWriteEscape

    int	xmlOutputBufferWriteEscape	(xmlOutputBufferPtr out, 
    const xmlChar * str,
    xmlCharEncodingOutputFunc escaping)
    -

    Write the content of the string in the output I/O buffer This routine escapes the caracters and then handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes.

    -
    out:a buffered parser output
    str:a zero terminated UTF-8 string
    escaping:an optional escaping function (or NULL)
    Returns:the number of chars immediately written, or -1 in case of error.

    Function: xmlOutputBufferWriteString

    int	xmlOutputBufferWriteString	(xmlOutputBufferPtr out, 
    const char * str)
    -

    Write the content of the string in the output I/O buffer This routine handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes.

    -
    out:a buffered parser output
    str:a zero terminated C string
    Returns:the number of chars immediately written, or -1 in case of error.

    Function type: xmlOutputCloseCallback

    Function type: xmlOutputCloseCallback
    -int	xmlOutputCloseCallback		(void * context)
    -

    Callback used in the I/O Output API to close the resource

    context:an Output context
    Returns:0 or -1 in case of error

    -

    Function type: xmlOutputMatchCallback

    Function type: xmlOutputMatchCallback
    -int	xmlOutputMatchCallback		(char const * filename)
    -

    Callback used in the I/O Output API to detect if the current handler can provide output fonctionnalities for this resource.

    filename:the filename or URI
    Returns:1 if yes and 0 if another Output module should be used

    -

    Function type: xmlOutputOpenCallback

    Function type: xmlOutputOpenCallback
    -void *	xmlOutputOpenCallback		(char const * filename)
    -

    Callback used in the I/O Output API to open the resource

    filename:the filename or URI
    Returns:an Output context or NULL in case or error

    -

    Function type: xmlOutputWriteCallback

    Function type: xmlOutputWriteCallback
    -int	xmlOutputWriteCallback		(void * context, 
    const char * buffer,
    int len) -

    Callback used in the I/O Output API to write to the resource

    context:an Output context
    buffer:the buffer of data to write
    len:the length of the buffer in bytes
    Returns:the number of bytes written or -1 in case of error

    -

    Function: xmlParserGetDirectory

    char *	xmlParserGetDirectory		(const char * filename)
    -

    lookup the directory for that file

    -
    filename:the path to a file
    Returns:a new allocated string containing the directory, or NULL.

    Function: xmlParserInputBufferCreateFd

    xmlParserInputBufferPtr	xmlParserInputBufferCreateFd	(int fd, 
    xmlCharEncoding enc)
    -

    Create a buffered parser input for the progressive parsing for the input from a file descriptor

    -
    fd:a file descriptor number
    enc:the charset encoding if known
    Returns:the new parser input or NULL

    Function: xmlParserInputBufferCreateFile

    xmlParserInputBufferPtr	xmlParserInputBufferCreateFile	(FILE * file, 
    xmlCharEncoding enc)
    -

    Create a buffered parser input for the progressive parsing of a FILE * buffered C I/O

    -
    file:a FILE*
    enc:the charset encoding if known
    Returns:the new parser input or NULL

    Function: xmlParserInputBufferCreateFilename

    xmlParserInputBufferPtr	xmlParserInputBufferCreateFilename	(const char * URI, 
    xmlCharEncoding enc)
    -

    Create a buffered parser input for the progressive parsing of a file If filename is "-' then we use stdin as the input. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. Do an encoding check if enc == XML_CHAR_ENCODING_NONE

    -
    URI:a C string containing the URI or filename
    enc:the charset encoding if known
    Returns:the new parser input or NULL

    Function: xmlParserInputBufferCreateIO

    xmlParserInputBufferPtr	xmlParserInputBufferCreateIO	(xmlInputReadCallback ioread, 
    xmlInputCloseCallback ioclose,
    void * ioctx,
    xmlCharEncoding enc)
    -

    Create a buffered parser input for the progressive parsing for the input from an I/O handler

    -
    ioread:an I/O read function
    ioclose:an I/O close function
    ioctx:an I/O handler
    enc:the charset encoding if known
    Returns:the new parser input or NULL

    Function: xmlParserInputBufferCreateMem

    xmlParserInputBufferPtr	xmlParserInputBufferCreateMem	(const char * mem, 
    int size,
    xmlCharEncoding enc)
    -

    Create a buffered parser input for the progressive parsing for the input from a memory area.

    -
    mem:the memory input
    size:the length of the memory block
    enc:the charset encoding if known
    Returns:the new parser input or NULL

    Function: xmlParserInputBufferCreateStatic

    xmlParserInputBufferPtr	xmlParserInputBufferCreateStatic	(const char * mem, 
    int size,
    xmlCharEncoding enc)
    -

    Create a buffered parser input for the progressive parsing for the input from an immutable memory area. This will not copy the memory area to the buffer, but the memory is expected to be available until the end of the parsing, this is useful for example when using mmap'ed file.

    -
    mem:the memory input
    size:the length of the memory block
    enc:the charset encoding if known
    Returns:the new parser input or NULL

    Function: xmlParserInputBufferGrow

    int	xmlParserInputBufferGrow	(xmlParserInputBufferPtr in, 
    int len)
    -

    Grow up the content of the input buffer, the old data are preserved This routine handle the I18N transcoding to internal UTF-8 This routine is used when operating the parser in normal (pull) mode TODO: one should be able to remove one extra copy by copying directly onto in->buffer or in->raw

    -
    in:a buffered parser input
    len:indicative value of the amount of chars to read
    Returns:the number of chars read and stored in the buffer, or -1 in case of error.

    Function: xmlParserInputBufferPush

    int	xmlParserInputBufferPush	(xmlParserInputBufferPtr in, 
    int len,
    const char * buf)
    -

    Push the content of the arry in the input buffer This routine handle the I18N transcoding to internal UTF-8 This is used when operating the parser in progressive (push) mode.

    -
    in:a buffered parser input
    len:the size in bytes of the array.
    buf:an char array
    Returns:the number of chars read and stored in the buffer, or -1 in case of error.

    Function: xmlParserInputBufferRead

    int	xmlParserInputBufferRead	(xmlParserInputBufferPtr in, 
    int len)
    -

    Refresh the content of the input buffer, the old data are considered consumed This routine handle the I18N transcoding to internal UTF-8

    -
    in:a buffered parser input
    len:indicative value of the amount of chars to read
    Returns:the number of chars read and stored in the buffer, or -1 in case of error.

    Function: xmlPopInputCallbacks

    int	xmlPopInputCallbacks		(void)
    -

    Clear the top input callback from the input stack. this includes the compiled-in I/O.

    -
    Returns:the number of input callback registered or -1 in case of error.

    Function: xmlRegisterDefaultInputCallbacks

    void	xmlRegisterDefaultInputCallbacks	(void)
    -

    Registers the default compiled-in I/O handlers.

    -

    Function: xmlRegisterDefaultOutputCallbacks

    void	xmlRegisterDefaultOutputCallbacks	(void)
    -

    Registers the default compiled-in I/O handlers.

    -

    Function: xmlRegisterHTTPPostCallbacks

    void	xmlRegisterHTTPPostCallbacks	(void)
    -

    By default, libxml submits HTTP output requests using the "PUT" method. Calling this method changes the HTTP output method to use the "POST" method instead.

    -

    Function: xmlRegisterInputCallbacks

    int	xmlRegisterInputCallbacks	(xmlInputMatchCallback matchFunc, 
    xmlInputOpenCallback openFunc,
    xmlInputReadCallback readFunc,
    xmlInputCloseCallback closeFunc)
    -

    Register a new set of I/O callback for handling parser input.

    -
    matchFunc:the xmlInputMatchCallback
    openFunc:the xmlInputOpenCallback
    readFunc:the xmlInputReadCallback
    closeFunc:the xmlInputCloseCallback
    Returns:the registered handler number or -1 in case of error

    Function: xmlRegisterOutputCallbacks

    int	xmlRegisterOutputCallbacks	(xmlOutputMatchCallback matchFunc, 
    xmlOutputOpenCallback openFunc,
    xmlOutputWriteCallback writeFunc,
    xmlOutputCloseCallback closeFunc)
    -

    Register a new set of I/O callback for handling output.

    -
    matchFunc:the xmlOutputMatchCallback
    openFunc:the xmlOutputOpenCallback
    writeFunc:the xmlOutputWriteCallback
    closeFunc:the xmlOutputCloseCallback
    Returns:the registered handler number or -1 in case of error

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xmlautomata.html b/src/tools/docbook/libxml2/doc/html/libxml-xmlautomata.html deleted file mode 100644 index d10c787dc3..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xmlautomata.html +++ /dev/null @@ -1,85 +0,0 @@ - - -Module xmlautomata from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xmlautomata from libxml2

    API Menu
    API Indexes
    Related links

    the API to build regexp automata

    Table of Contents

    Structure xmlAutomata
    struct _xmlAutomata -The content of this structure is not made public by the API. -
    Typedef xmlAutomata * xmlAutomataPtr
    -
    Structure xmlAutomataState
    struct _xmlAutomataState -The content of this structure is not made public by the API. -
    Typedef xmlAutomataState * xmlAutomataStatePtr
    -
    xmlRegexpPtr	xmlAutomataCompile	(xmlAutomataPtr am)
    -
    xmlAutomataStatePtr	xmlAutomataGetInitState	(xmlAutomataPtr am)
    -
    int	xmlAutomataIsDeterminist	(xmlAutomataPtr am)
    -
    xmlAutomataStatePtr	xmlAutomataNewAllTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    int lax)
    -
    xmlAutomataStatePtr	xmlAutomataNewCountTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    int min,
    int max,
    void * data)
    -
    xmlAutomataStatePtr	xmlAutomataNewCountTrans2	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    const xmlChar * token2,
    int min,
    int max,
    void * data)
    -
    xmlAutomataStatePtr	xmlAutomataNewCountedTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    int counter)
    -
    int	xmlAutomataNewCounter		(xmlAutomataPtr am, 
    int min,
    int max)
    -
    xmlAutomataStatePtr	xmlAutomataNewCounterTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    int counter)
    -
    xmlAutomataStatePtr	xmlAutomataNewEpsilon	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to)
    -
    xmlAutomataStatePtr	xmlAutomataNewNegTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    const xmlChar * token2,
    void * data)
    -
    xmlAutomataStatePtr	xmlAutomataNewOnceTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    int min,
    int max,
    void * data)
    -
    xmlAutomataStatePtr	xmlAutomataNewOnceTrans2	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    const xmlChar * token2,
    int min,
    int max,
    void * data)
    -
    xmlAutomataStatePtr	xmlAutomataNewState	(xmlAutomataPtr am)
    -
    xmlAutomataStatePtr	xmlAutomataNewTransition	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    void * data)
    -
    xmlAutomataStatePtr	xmlAutomataNewTransition2	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    const xmlChar * token2,
    void * data)
    -
    int	xmlAutomataSetFinalState	(xmlAutomataPtr am, 
    xmlAutomataStatePtr state)
    -
    void	xmlFreeAutomata			(xmlAutomataPtr am)
    -
    xmlAutomataPtr	xmlNewAutomata		(void)
    -

    Description

    -

    Structure xmlAutomata

    Structure xmlAutomata
    struct _xmlAutomata { -The content of this structure is not made public by the API. -}
    - A libxml automata description, It can be compiled into a regexp -

    Structure xmlAutomataState

    Structure xmlAutomataState
    struct _xmlAutomataState { -The content of this structure is not made public by the API. -}
    - A state int the automata description, -

    Function: xmlAutomataCompile

    xmlRegexpPtr	xmlAutomataCompile	(xmlAutomataPtr am)
    -

    Compile the automata into a Reg Exp ready for being executed. The automata should be free after this point.

    -
    am:an automata
    Returns:the compiled regexp or NULL in case of error

    Function: xmlAutomataGetInitState

    xmlAutomataStatePtr	xmlAutomataGetInitState	(xmlAutomataPtr am)
    -

    Initial state lookup

    -
    am:an automata
    Returns:the initial state of the automata

    Function: xmlAutomataIsDeterminist

    int	xmlAutomataIsDeterminist	(xmlAutomataPtr am)
    -

    Checks if an automata is determinist.

    -
    am:an automata
    Returns:1 if true, 0 if not, and -1 in case of error

    Function: xmlAutomataNewAllTrans

    xmlAutomataStatePtr	xmlAutomataNewAllTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    int lax)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds a an ALL transition from the @from state to the target state. That transition is an epsilon transition allowed only when all transitions from the @from node have been activated.

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    lax:allow to transition if not all all transitions have been activated
    Returns:the target state or NULL in case of error

    Function: xmlAutomataNewCountTrans

    xmlAutomataStatePtr	xmlAutomataNewCountTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    int min,
    int max,
    void * data)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and whose number is between @min and @max

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    token:the input string associated to that transition
    min:the minimum successive occurences of token
    max:the maximum successive occurences of token
    data:data associated to the transition
    Returns:the target state or NULL in case of error

    Function: xmlAutomataNewCountTrans2

    xmlAutomataStatePtr	xmlAutomataNewCountTrans2	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    const xmlChar * token2,
    int min,
    int max,
    void * data)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and @token2 and whose number is between @min and @max

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    token:the input string associated to that transition
    token2:the second input string associated to that transition
    min:the minimum successive occurences of token
    max:the maximum successive occurences of token
    data:data associated to the transition
    Returns:the target state or NULL in case of error

    Function: xmlAutomataNewCountedTrans

    xmlAutomataStatePtr	xmlAutomataNewCountedTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    int counter)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds an epsilon transition from the @from state to the target state which will increment the counter provided

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    counter:the counter associated to that transition
    Returns:the target state or NULL in case of error

    Function: xmlAutomataNewCounter

    int	xmlAutomataNewCounter		(xmlAutomataPtr am, 
    int min,
    int max)
    -

    Create a new counter

    -
    am:an automata
    min:the minimal value on the counter
    max:the maximal value on the counter
    Returns:the counter number or -1 in case of error

    Function: xmlAutomataNewCounterTrans

    xmlAutomataStatePtr	xmlAutomataNewCounterTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    int counter)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds an epsilon transition from the @from state to the target state which will be allowed only if the counter is within the right range.

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    counter:the counter associated to that transition
    Returns:the target state or NULL in case of error

    Function: xmlAutomataNewEpsilon

    xmlAutomataStatePtr	xmlAutomataNewEpsilon	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds an epsilon transition from the @from state to the target state

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    Returns:the target state or NULL in case of error

    Function: xmlAutomataNewNegTrans

    xmlAutomataStatePtr	xmlAutomataNewNegTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    const xmlChar * token2,
    void * data)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by any value except (@token,@token2) Note that if @token2 is not NULL, then (X, NULL) won't match to follow # the semantic of XSD ##other

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    token:the first input string associated to that transition
    token2:the second input string associated to that transition
    data:data passed to the callback function if the transition is activated
    Returns:the target state or NULL in case of error

    Function: xmlAutomataNewOnceTrans

    xmlAutomataStatePtr	xmlAutomataNewOnceTrans	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    int min,
    int max,
    void * data)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and whose number is between @min and @max, moreover that transition can only be crossed once.

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    token:the input string associated to that transition
    min:the minimum successive occurences of token
    max:the maximum successive occurences of token
    data:data associated to the transition
    Returns:the target state or NULL in case of error

    Function: xmlAutomataNewOnceTrans2

    xmlAutomataStatePtr	xmlAutomataNewOnceTrans2	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    const xmlChar * token2,
    int min,
    int max,
    void * data)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and @token2 and whose number is between @min and @max, moreover that transition can only be crossed once.

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    token:the input string associated to that transition
    token2:the second input string associated to that transition
    min:the minimum successive occurences of token
    max:the maximum successive occurences of token
    data:data associated to the transition
    Returns:the target state or NULL in case of error

    Function: xmlAutomataNewState

    xmlAutomataStatePtr	xmlAutomataNewState	(xmlAutomataPtr am)
    -

    Create a new disconnected state in the automata

    -
    am:an automata
    Returns:the new state or NULL in case of error

    Function: xmlAutomataNewTransition

    xmlAutomataStatePtr	xmlAutomataNewTransition	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    void * data)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by the value of @token

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    token:the input string associated to that transition
    data:data passed to the callback function if the transition is activated
    Returns:the target state or NULL in case of error

    Function: xmlAutomataNewTransition2

    xmlAutomataStatePtr	xmlAutomataNewTransition2	(xmlAutomataPtr am, 
    xmlAutomataStatePtr from,
    xmlAutomataStatePtr to,
    const xmlChar * token,
    const xmlChar * token2,
    void * data)
    -

    If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by the value of @token

    -
    am:an automata
    from:the starting point of the transition
    to:the target point of the transition or NULL
    token:the first input string associated to that transition
    token2:the second input string associated to that transition
    data:data passed to the callback function if the transition is activated
    Returns:the target state or NULL in case of error

    Function: xmlAutomataSetFinalState

    int	xmlAutomataSetFinalState	(xmlAutomataPtr am, 
    xmlAutomataStatePtr state)
    -

    Makes that state a final state

    -
    am:an automata
    state:a state in this automata
    Returns:0 or -1 in case of error

    Function: xmlFreeAutomata

    void	xmlFreeAutomata			(xmlAutomataPtr am)
    -

    Free an automata

    -
    am:an automata

    Function: xmlNewAutomata

    xmlAutomataPtr	xmlNewAutomata		(void)
    -

    Create a new automata

    -
    Returns:the new object or NULL in case of failure

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xmlerror.html b/src/tools/docbook/libxml2/doc/html/libxml-xmlerror.html deleted file mode 100644 index aefa9673d9..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xmlerror.html +++ /dev/null @@ -1,854 +0,0 @@ - - -Module xmlerror from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xmlerror from libxml2

    API Menu
    API Indexes
    Related links

    the API used to report errors

    Table of Contents

    Structure xmlError
    struct _xmlError -
    Enum xmlErrorDomain
    -
    Enum xmlErrorLevel
    -
    Typedef xmlError * xmlErrorPtr
    -
    Enum xmlParserErrors
    -
    void	initGenericErrorDefaultFunc	(xmlGenericErrorFunc * handler)
    -
    int	xmlCopyError			(xmlErrorPtr from, 
    xmlErrorPtr to)
    -
    xmlErrorPtr	xmlCtxtGetLastError	(void * ctx)
    -
    void	xmlCtxtResetLastError		(void * ctx)
    -
    Function type: xmlGenericErrorFunc
    -void	xmlGenericErrorFunc		(void * ctx, 
    const char * msg,
    ... ...) -
    -
    xmlErrorPtr	xmlGetLastError		(void)
    -
    void	xmlParserError			(void * ctx, 
    const char * msg,
    ... ...)
    -
    void	xmlParserPrintFileContext	(xmlParserInputPtr input)
    -
    void	xmlParserPrintFileInfo		(xmlParserInputPtr input)
    -
    void	xmlParserValidityError		(void * ctx, 
    const char * msg,
    ... ...)
    -
    void	xmlParserValidityWarning	(void * ctx, 
    const char * msg,
    ... ...)
    -
    void	xmlParserWarning		(void * ctx, 
    const char * msg,
    ... ...)
    -
    void	xmlResetError			(xmlErrorPtr err)
    -
    void	xmlResetLastError		(void)
    -
    void	xmlSetGenericErrorFunc		(void * ctx, 
    xmlGenericErrorFunc handler)
    -
    void	xmlSetStructuredErrorFunc	(void * ctx, 
    xmlStructuredErrorFunc handler)
    -
    Function type: xmlStructuredErrorFunc
    -void	xmlStructuredErrorFunc		(void * userData, 
    xmlErrorPtr error) -
    -

    Description

    -

    Structure xmlError

    Structure xmlError
    struct _xmlError { - int domain : What part of the library raised this er - int code : The error code, e.g. an xmlParserError - char * message : human-readable informative error messag - xmlErrorLevel level : how consequent is the error - char * file : the filename - int line : the line number if available - char * str1 : extra string information - char * str2 : extra string information - char * str3 : extra string information - int int1 : extra number information - int int2 : column number of the error or 0 if N/A - void * ctxt : the parser context if available - void * node : the node in the tree -}

    Enum xmlErrorDomain

    Enum xmlErrorDomain {
    -    XML_FROM_NONE = 0
    -    XML_FROM_PARSER = 1 : The XML parser
    -    XML_FROM_TREE = 2 : The tree module
    -    XML_FROM_NAMESPACE = 3 : The XML Namespace module
    -    XML_FROM_DTD = 4 : The XML DTD validation with parser contex
    -    XML_FROM_HTML = 5 : The HTML parser
    -    XML_FROM_MEMORY = 6 : The memory allocator
    -    XML_FROM_OUTPUT = 7 : The serialization code
    -    XML_FROM_IO = 8 : The Input/Output stack
    -    XML_FROM_FTP = 9 : The FTP module
    -    XML_FROM_HTTP = 10 : The HTTP module
    -    XML_FROM_XINCLUDE = 11 : The XInclude processing
    -    XML_FROM_XPATH = 12 : The XPath module
    -    XML_FROM_XPOINTER = 13 : The XPointer module
    -    XML_FROM_REGEXP = 14 : The regular expressions module
    -    XML_FROM_DATATYPE = 15 : The W3C XML Schemas Datatype module
    -    XML_FROM_SCHEMASP = 16 : The W3C XML Schemas parser module
    -    XML_FROM_SCHEMASV = 17 : The W3C XML Schemas validation module
    -    XML_FROM_RELAXNGP = 18 : The Relax-NG parser module
    -    XML_FROM_RELAXNGV = 19 : The Relax-NG validator module
    -    XML_FROM_CATALOG = 20 : The Catalog module
    -    XML_FROM_C14N = 21 : The Canonicalization module
    -    XML_FROM_XSLT = 22 : The XSLT engine from libxslt
    -    XML_FROM_VALID = 23 : The XML DTD validation with valid context
    -    XML_FROM_CHECK = 24 : The error checking module
    -    XML_FROM_WRITER = 25 : The xmlwriter module
    -    XML_FROM_MODULE = 26 : The dynamically loaded module modul
    -    XML_FROM_I18N = 27 : The module handling character conversion
    -}
    -

    Enum xmlErrorLevel

    Enum xmlErrorLevel {
    -    XML_ERR_NONE = 0
    -    XML_ERR_WARNING = 1 : A simple warning
    -    XML_ERR_ERROR = 2 : A recoverable error
    -    XML_ERR_FATAL = 3 : A fatal error
    -}
    -

    Enum xmlParserErrors

    Enum xmlParserErrors {
    -    XML_ERR_OK = 0
    -    XML_ERR_INTERNAL_ERROR = 1 : 1
    -    XML_ERR_NO_MEMORY = 2 : 2
    -    XML_ERR_DOCUMENT_START = 3 : 3
    -    XML_ERR_DOCUMENT_EMPTY = 4 : 4
    -    XML_ERR_DOCUMENT_END = 5 : 5
    -    XML_ERR_INVALID_HEX_CHARREF = 6 : 6
    -    XML_ERR_INVALID_DEC_CHARREF = 7 : 7
    -    XML_ERR_INVALID_CHARREF = 8 : 8
    -    XML_ERR_INVALID_CHAR = 9 : 9
    -    XML_ERR_CHARREF_AT_EOF = 10 : 10
    -    XML_ERR_CHARREF_IN_PROLOG = 11 : 11
    -    XML_ERR_CHARREF_IN_EPILOG = 12 : 12
    -    XML_ERR_CHARREF_IN_DTD = 13 : 13
    -    XML_ERR_ENTITYREF_AT_EOF = 14 : 14
    -    XML_ERR_ENTITYREF_IN_PROLOG = 15 : 15
    -    XML_ERR_ENTITYREF_IN_EPILOG = 16 : 16
    -    XML_ERR_ENTITYREF_IN_DTD = 17 : 17
    -    XML_ERR_PEREF_AT_EOF = 18 : 18
    -    XML_ERR_PEREF_IN_PROLOG = 19 : 19
    -    XML_ERR_PEREF_IN_EPILOG = 20 : 20
    -    XML_ERR_PEREF_IN_INT_SUBSET = 21 : 21
    -    XML_ERR_ENTITYREF_NO_NAME = 22 : 22
    -    XML_ERR_ENTITYREF_SEMICOL_MISSING = 23 : 23
    -    XML_ERR_PEREF_NO_NAME = 24 : 24
    -    XML_ERR_PEREF_SEMICOL_MISSING = 25 : 25
    -    XML_ERR_UNDECLARED_ENTITY = 26 : 26
    -    XML_WAR_UNDECLARED_ENTITY = 27 : 27
    -    XML_ERR_UNPARSED_ENTITY = 28 : 28
    -    XML_ERR_ENTITY_IS_EXTERNAL = 29 : 29
    -    XML_ERR_ENTITY_IS_PARAMETER = 30 : 30
    -    XML_ERR_UNKNOWN_ENCODING = 31 : 31
    -    XML_ERR_UNSUPPORTED_ENCODING = 32 : 32
    -    XML_ERR_STRING_NOT_STARTED = 33 : 33
    -    XML_ERR_STRING_NOT_CLOSED = 34 : 34
    -    XML_ERR_NS_DECL_ERROR = 35 : 35
    -    XML_ERR_ENTITY_NOT_STARTED = 36 : 36
    -    XML_ERR_ENTITY_NOT_FINISHED = 37 : 37
    -    XML_ERR_LT_IN_ATTRIBUTE = 38 : 38
    -    XML_ERR_ATTRIBUTE_NOT_STARTED = 39 : 39
    -    XML_ERR_ATTRIBUTE_NOT_FINISHED = 40 : 40
    -    XML_ERR_ATTRIBUTE_WITHOUT_VALUE = 41 : 41
    -    XML_ERR_ATTRIBUTE_REDEFINED = 42 : 42
    -    XML_ERR_LITERAL_NOT_STARTED = 43 : 43
    -    XML_ERR_LITERAL_NOT_FINISHED = 44 : 44
    -    XML_ERR_COMMENT_NOT_FINISHED = 45 : 45
    -    XML_ERR_PI_NOT_STARTED = 46 : 46
    -    XML_ERR_PI_NOT_FINISHED = 47 : 47
    -    XML_ERR_NOTATION_NOT_STARTED = 48 : 48
    -    XML_ERR_NOTATION_NOT_FINISHED = 49 : 49
    -    XML_ERR_ATTLIST_NOT_STARTED = 50 : 50
    -    XML_ERR_ATTLIST_NOT_FINISHED = 51 : 51
    -    XML_ERR_MIXED_NOT_STARTED = 52 : 52
    -    XML_ERR_MIXED_NOT_FINISHED = 53 : 53
    -    XML_ERR_ELEMCONTENT_NOT_STARTED = 54 : 54
    -    XML_ERR_ELEMCONTENT_NOT_FINISHED = 55 : 55
    -    XML_ERR_XMLDECL_NOT_STARTED = 56 : 56
    -    XML_ERR_XMLDECL_NOT_FINISHED = 57 : 57
    -    XML_ERR_CONDSEC_NOT_STARTED = 58 : 58
    -    XML_ERR_CONDSEC_NOT_FINISHED = 59 : 59
    -    XML_ERR_EXT_SUBSET_NOT_FINISHED = 60 : 60
    -    XML_ERR_DOCTYPE_NOT_FINISHED = 61 : 61
    -    XML_ERR_MISPLACED_CDATA_END = 62 : 62
    -    XML_ERR_CDATA_NOT_FINISHED = 63 : 63
    -    XML_ERR_RESERVED_XML_NAME = 64 : 64
    -    XML_ERR_SPACE_REQUIRED = 65 : 65
    -    XML_ERR_SEPARATOR_REQUIRED = 66 : 66
    -    XML_ERR_NMTOKEN_REQUIRED = 67 : 67
    -    XML_ERR_NAME_REQUIRED = 68 : 68
    -    XML_ERR_PCDATA_REQUIRED = 69 : 69
    -    XML_ERR_URI_REQUIRED = 70 : 70
    -    XML_ERR_PUBID_REQUIRED = 71 : 71
    -    XML_ERR_LT_REQUIRED = 72 : 72
    -    XML_ERR_GT_REQUIRED = 73 : 73
    -    XML_ERR_LTSLASH_REQUIRED = 74 : 74
    -    XML_ERR_EQUAL_REQUIRED = 75 : 75
    -    XML_ERR_TAG_NAME_MISMATCH = 76 : 76
    -    XML_ERR_TAG_NOT_FINISHED = 77 : 77
    -    XML_ERR_STANDALONE_VALUE = 78 : 78
    -    XML_ERR_ENCODING_NAME = 79 : 79
    -    XML_ERR_HYPHEN_IN_COMMENT = 80 : 80
    -    XML_ERR_INVALID_ENCODING = 81 : 81
    -    XML_ERR_EXT_ENTITY_STANDALONE = 82 : 82
    -    XML_ERR_CONDSEC_INVALID = 83 : 83
    -    XML_ERR_VALUE_REQUIRED = 84 : 84
    -    XML_ERR_NOT_WELL_BALANCED = 85 : 85
    -    XML_ERR_EXTRA_CONTENT = 86 : 86
    -    XML_ERR_ENTITY_CHAR_ERROR = 87 : 87
    -    XML_ERR_ENTITY_PE_INTERNAL = 88 : 88
    -    XML_ERR_ENTITY_LOOP = 89 : 89
    -    XML_ERR_ENTITY_BOUNDARY = 90 : 90
    -    XML_ERR_INVALID_URI = 91 : 91
    -    XML_ERR_URI_FRAGMENT = 92 : 92
    -    XML_WAR_CATALOG_PI = 93 : 93
    -    XML_ERR_NO_DTD = 94 : 94
    -    XML_ERR_CONDSEC_INVALID_KEYWORD = 95 : 95
    -    XML_ERR_VERSION_MISSING = 96 : 96
    -    XML_WAR_UNKNOWN_VERSION = 97 : 97
    -    XML_WAR_LANG_VALUE = 98 : 98
    -    XML_WAR_NS_URI = 99 : 99
    -    XML_WAR_NS_URI_RELATIVE = 100 : 100
    -    XML_ERR_MISSING_ENCODING = 101 : 101
    -    XML_WAR_SPACE_VALUE = 102 : 102
    -    XML_ERR_NOT_STANDALONE = 103 : 103
    -    XML_ERR_ENTITY_PROCESSING = 104 : 104
    -    XML_ERR_NOTATION_PROCESSING = 105 : 105
    -    XML_WAR_NS_COLUMN = 106 : 106
    -    XML_WAR_ENTITY_REDEFINED = 107 : 107
    -    XML_NS_ERR_XML_NAMESPACE = 200
    -    XML_NS_ERR_UNDEFINED_NAMESPACE = 201 : 201
    -    XML_NS_ERR_QNAME = 202 : 202
    -    XML_NS_ERR_ATTRIBUTE_REDEFINED = 203 : 203
    -    XML_NS_ERR_EMPTY = 204 : 204
    -    XML_DTD_ATTRIBUTE_DEFAULT = 500
    -    XML_DTD_ATTRIBUTE_REDEFINED = 501 : 501
    -    XML_DTD_ATTRIBUTE_VALUE = 502 : 502
    -    XML_DTD_CONTENT_ERROR = 503 : 503
    -    XML_DTD_CONTENT_MODEL = 504 : 504
    -    XML_DTD_CONTENT_NOT_DETERMINIST = 505 : 505
    -    XML_DTD_DIFFERENT_PREFIX = 506 : 506
    -    XML_DTD_ELEM_DEFAULT_NAMESPACE = 507 : 507
    -    XML_DTD_ELEM_NAMESPACE = 508 : 508
    -    XML_DTD_ELEM_REDEFINED = 509 : 509
    -    XML_DTD_EMPTY_NOTATION = 510 : 510
    -    XML_DTD_ENTITY_TYPE = 511 : 511
    -    XML_DTD_ID_FIXED = 512 : 512
    -    XML_DTD_ID_REDEFINED = 513 : 513
    -    XML_DTD_ID_SUBSET = 514 : 514
    -    XML_DTD_INVALID_CHILD = 515 : 515
    -    XML_DTD_INVALID_DEFAULT = 516 : 516
    -    XML_DTD_LOAD_ERROR = 517 : 517
    -    XML_DTD_MISSING_ATTRIBUTE = 518 : 518
    -    XML_DTD_MIXED_CORRUPT = 519 : 519
    -    XML_DTD_MULTIPLE_ID = 520 : 520
    -    XML_DTD_NO_DOC = 521 : 521
    -    XML_DTD_NO_DTD = 522 : 522
    -    XML_DTD_NO_ELEM_NAME = 523 : 523
    -    XML_DTD_NO_PREFIX = 524 : 524
    -    XML_DTD_NO_ROOT = 525 : 525
    -    XML_DTD_NOTATION_REDEFINED = 526 : 526
    -    XML_DTD_NOTATION_VALUE = 527 : 527
    -    XML_DTD_NOT_EMPTY = 528 : 528
    -    XML_DTD_NOT_PCDATA = 529 : 529
    -    XML_DTD_NOT_STANDALONE = 530 : 530
    -    XML_DTD_ROOT_NAME = 531 : 531
    -    XML_DTD_STANDALONE_WHITE_SPACE = 532 : 532
    -    XML_DTD_UNKNOWN_ATTRIBUTE = 533 : 533
    -    XML_DTD_UNKNOWN_ELEM = 534 : 534
    -    XML_DTD_UNKNOWN_ENTITY = 535 : 535
    -    XML_DTD_UNKNOWN_ID = 536 : 536
    -    XML_DTD_UNKNOWN_NOTATION = 537 : 537
    -    XML_DTD_STANDALONE_DEFAULTED = 538 : 538
    -    XML_DTD_XMLID_VALUE = 539 : 539
    -    XML_DTD_XMLID_TYPE = 540 : 540
    -    XML_HTML_STRUCURE_ERROR = 800
    -    XML_HTML_UNKNOWN_TAG = 801 : 801
    -    XML_RNGP_ANYNAME_ATTR_ANCESTOR = 1000
    -    XML_RNGP_ATTR_CONFLICT = 1001 : 1001
    -    XML_RNGP_ATTRIBUTE_CHILDREN = 1002 : 1002
    -    XML_RNGP_ATTRIBUTE_CONTENT = 1003 : 1003
    -    XML_RNGP_ATTRIBUTE_EMPTY = 1004 : 1004
    -    XML_RNGP_ATTRIBUTE_NOOP = 1005 : 1005
    -    XML_RNGP_CHOICE_CONTENT = 1006 : 1006
    -    XML_RNGP_CHOICE_EMPTY = 1007 : 1007
    -    XML_RNGP_CREATE_FAILURE = 1008 : 1008
    -    XML_RNGP_DATA_CONTENT = 1009 : 1009
    -    XML_RNGP_DEF_CHOICE_AND_INTERLEAVE = 1010 : 1010
    -    XML_RNGP_DEFINE_CREATE_FAILED = 1011 : 1011
    -    XML_RNGP_DEFINE_EMPTY = 1012 : 1012
    -    XML_RNGP_DEFINE_MISSING = 1013 : 1013
    -    XML_RNGP_DEFINE_NAME_MISSING = 1014 : 1014
    -    XML_RNGP_ELEM_CONTENT_EMPTY = 1015 : 1015
    -    XML_RNGP_ELEM_CONTENT_ERROR = 1016 : 1016
    -    XML_RNGP_ELEMENT_EMPTY = 1017 : 1017
    -    XML_RNGP_ELEMENT_CONTENT = 1018 : 1018
    -    XML_RNGP_ELEMENT_NAME = 1019 : 1019
    -    XML_RNGP_ELEMENT_NO_CONTENT = 1020 : 1020
    -    XML_RNGP_ELEM_TEXT_CONFLICT = 1021 : 1021
    -    XML_RNGP_EMPTY = 1022 : 1022
    -    XML_RNGP_EMPTY_CONSTRUCT = 1023 : 1023
    -    XML_RNGP_EMPTY_CONTENT = 1024 : 1024
    -    XML_RNGP_EMPTY_NOT_EMPTY = 1025 : 1025
    -    XML_RNGP_ERROR_TYPE_LIB = 1026 : 1026
    -    XML_RNGP_EXCEPT_EMPTY = 1027 : 1027
    -    XML_RNGP_EXCEPT_MISSING = 1028 : 1028
    -    XML_RNGP_EXCEPT_MULTIPLE = 1029 : 1029
    -    XML_RNGP_EXCEPT_NO_CONTENT = 1030 : 1030
    -    XML_RNGP_EXTERNALREF_EMTPY = 1031 : 1031
    -    XML_RNGP_EXTERNAL_REF_FAILURE = 1032 : 1032
    -    XML_RNGP_EXTERNALREF_RECURSE = 1033 : 1033
    -    XML_RNGP_FORBIDDEN_ATTRIBUTE = 1034 : 1034
    -    XML_RNGP_FOREIGN_ELEMENT = 1035 : 1035
    -    XML_RNGP_GRAMMAR_CONTENT = 1036 : 1036
    -    XML_RNGP_GRAMMAR_EMPTY = 1037 : 1037
    -    XML_RNGP_GRAMMAR_MISSING = 1038 : 1038
    -    XML_RNGP_GRAMMAR_NO_START = 1039 : 1039
    -    XML_RNGP_GROUP_ATTR_CONFLICT = 1040 : 1040
    -    XML_RNGP_HREF_ERROR = 1041 : 1041
    -    XML_RNGP_INCLUDE_EMPTY = 1042 : 1042
    -    XML_RNGP_INCLUDE_FAILURE = 1043 : 1043
    -    XML_RNGP_INCLUDE_RECURSE = 1044 : 1044
    -    XML_RNGP_INTERLEAVE_ADD = 1045 : 1045
    -    XML_RNGP_INTERLEAVE_CREATE_FAILED = 1046 : 1046
    -    XML_RNGP_INTERLEAVE_EMPTY = 1047 : 1047
    -    XML_RNGP_INTERLEAVE_NO_CONTENT = 1048 : 1048
    -    XML_RNGP_INVALID_DEFINE_NAME = 1049 : 1049
    -    XML_RNGP_INVALID_URI = 1050 : 1050
    -    XML_RNGP_INVALID_VALUE = 1051 : 1051
    -    XML_RNGP_MISSING_HREF = 1052 : 1052
    -    XML_RNGP_NAME_MISSING = 1053 : 1053
    -    XML_RNGP_NEED_COMBINE = 1054 : 1054
    -    XML_RNGP_NOTALLOWED_NOT_EMPTY = 1055 : 1055
    -    XML_RNGP_NSNAME_ATTR_ANCESTOR = 1056 : 1056
    -    XML_RNGP_NSNAME_NO_NS = 1057 : 1057
    -    XML_RNGP_PARAM_FORBIDDEN = 1058 : 1058
    -    XML_RNGP_PARAM_NAME_MISSING = 1059 : 1059
    -    XML_RNGP_PARENTREF_CREATE_FAILED = 1060 : 1060
    -    XML_RNGP_PARENTREF_NAME_INVALID = 1061 : 1061
    -    XML_RNGP_PARENTREF_NO_NAME = 1062 : 1062
    -    XML_RNGP_PARENTREF_NO_PARENT = 1063 : 1063
    -    XML_RNGP_PARENTREF_NOT_EMPTY = 1064 : 1064
    -    XML_RNGP_PARSE_ERROR = 1065 : 1065
    -    XML_RNGP_PAT_ANYNAME_EXCEPT_ANYNAME = 1066 : 1066
    -    XML_RNGP_PAT_ATTR_ATTR = 1067 : 1067
    -    XML_RNGP_PAT_ATTR_ELEM = 1068 : 1068
    -    XML_RNGP_PAT_DATA_EXCEPT_ATTR = 1069 : 1069
    -    XML_RNGP_PAT_DATA_EXCEPT_ELEM = 1070 : 1070
    -    XML_RNGP_PAT_DATA_EXCEPT_EMPTY = 1071 : 1071
    -    XML_RNGP_PAT_DATA_EXCEPT_GROUP = 1072 : 1072
    -    XML_RNGP_PAT_DATA_EXCEPT_INTERLEAVE = 1073 : 1073
    -    XML_RNGP_PAT_DATA_EXCEPT_LIST = 1074 : 1074
    -    XML_RNGP_PAT_DATA_EXCEPT_ONEMORE = 1075 : 1075
    -    XML_RNGP_PAT_DATA_EXCEPT_REF = 1076 : 1076
    -    XML_RNGP_PAT_DATA_EXCEPT_TEXT = 1077 : 1077
    -    XML_RNGP_PAT_LIST_ATTR = 1078 : 1078
    -    XML_RNGP_PAT_LIST_ELEM = 1079 : 1079
    -    XML_RNGP_PAT_LIST_INTERLEAVE = 1080 : 1080
    -    XML_RNGP_PAT_LIST_LIST = 1081 : 1081
    -    XML_RNGP_PAT_LIST_REF = 1082 : 1082
    -    XML_RNGP_PAT_LIST_TEXT = 1083 : 1083
    -    XML_RNGP_PAT_NSNAME_EXCEPT_ANYNAME = 1084 : 1084
    -    XML_RNGP_PAT_NSNAME_EXCEPT_NSNAME = 1085 : 1085
    -    XML_RNGP_PAT_ONEMORE_GROUP_ATTR = 1086 : 1086
    -    XML_RNGP_PAT_ONEMORE_INTERLEAVE_ATTR = 1087 : 1087
    -    XML_RNGP_PAT_START_ATTR = 1088 : 1088
    -    XML_RNGP_PAT_START_DATA = 1089 : 1089
    -    XML_RNGP_PAT_START_EMPTY = 1090 : 1090
    -    XML_RNGP_PAT_START_GROUP = 1091 : 1091
    -    XML_RNGP_PAT_START_INTERLEAVE = 1092 : 1092
    -    XML_RNGP_PAT_START_LIST = 1093 : 1093
    -    XML_RNGP_PAT_START_ONEMORE = 1094 : 1094
    -    XML_RNGP_PAT_START_TEXT = 1095 : 1095
    -    XML_RNGP_PAT_START_VALUE = 1096 : 1096
    -    XML_RNGP_PREFIX_UNDEFINED = 1097 : 1097
    -    XML_RNGP_REF_CREATE_FAILED = 1098 : 1098
    -    XML_RNGP_REF_CYCLE = 1099 : 1099
    -    XML_RNGP_REF_NAME_INVALID = 1100 : 1100
    -    XML_RNGP_REF_NO_DEF = 1101 : 1101
    -    XML_RNGP_REF_NO_NAME = 1102 : 1102
    -    XML_RNGP_REF_NOT_EMPTY = 1103 : 1103
    -    XML_RNGP_START_CHOICE_AND_INTERLEAVE = 1104 : 1104
    -    XML_RNGP_START_CONTENT = 1105 : 1105
    -    XML_RNGP_START_EMPTY = 1106 : 1106
    -    XML_RNGP_START_MISSING = 1107 : 1107
    -    XML_RNGP_TEXT_EXPECTED = 1108 : 1108
    -    XML_RNGP_TEXT_HAS_CHILD = 1109 : 1109
    -    XML_RNGP_TYPE_MISSING = 1110 : 1110
    -    XML_RNGP_TYPE_NOT_FOUND = 1111 : 1111
    -    XML_RNGP_TYPE_VALUE = 1112 : 1112
    -    XML_RNGP_UNKNOWN_ATTRIBUTE = 1113 : 1113
    -    XML_RNGP_UNKNOWN_COMBINE = 1114 : 1114
    -    XML_RNGP_UNKNOWN_CONSTRUCT = 1115 : 1115
    -    XML_RNGP_UNKNOWN_TYPE_LIB = 1116 : 1116
    -    XML_RNGP_URI_FRAGMENT = 1117 : 1117
    -    XML_RNGP_URI_NOT_ABSOLUTE = 1118 : 1118
    -    XML_RNGP_VALUE_EMPTY = 1119 : 1119
    -    XML_RNGP_VALUE_NO_CONTENT = 1120 : 1120
    -    XML_RNGP_XMLNS_NAME = 1121 : 1121
    -    XML_RNGP_XML_NS = 1122 : 1122
    -    XML_XPATH_EXPRESSION_OK = 1200
    -    XML_XPATH_NUMBER_ERROR = 1201 : 1201
    -    XML_XPATH_UNFINISHED_LITERAL_ERROR = 1202 : 1202
    -    XML_XPATH_START_LITERAL_ERROR = 1203 : 1203
    -    XML_XPATH_VARIABLE_REF_ERROR = 1204 : 1204
    -    XML_XPATH_UNDEF_VARIABLE_ERROR = 1205 : 1205
    -    XML_XPATH_INVALID_PREDICATE_ERROR = 1206 : 1206
    -    XML_XPATH_EXPR_ERROR = 1207 : 1207
    -    XML_XPATH_UNCLOSED_ERROR = 1208 : 1208
    -    XML_XPATH_UNKNOWN_FUNC_ERROR = 1209 : 1209
    -    XML_XPATH_INVALID_OPERAND = 1210 : 1210
    -    XML_XPATH_INVALID_TYPE = 1211 : 1211
    -    XML_XPATH_INVALID_ARITY = 1212 : 1212
    -    XML_XPATH_INVALID_CTXT_SIZE = 1213 : 1213
    -    XML_XPATH_INVALID_CTXT_POSITION = 1214 : 1214
    -    XML_XPATH_MEMORY_ERROR = 1215 : 1215
    -    XML_XPTR_SYNTAX_ERROR = 1216 : 1216
    -    XML_XPTR_RESOURCE_ERROR = 1217 : 1217
    -    XML_XPTR_SUB_RESOURCE_ERROR = 1218 : 1218
    -    XML_XPATH_UNDEF_PREFIX_ERROR = 1219 : 1219
    -    XML_XPATH_ENCODING_ERROR = 1220 : 1220
    -    XML_XPATH_INVALID_CHAR_ERROR = 1221 : 1221
    -    XML_TREE_INVALID_HEX = 1300
    -    XML_TREE_INVALID_DEC = 1301 : 1301
    -    XML_TREE_UNTERMINATED_ENTITY = 1302 : 1302
    -    XML_SAVE_NOT_UTF8 = 1400
    -    XML_SAVE_CHAR_INVALID = 1401 : 1401
    -    XML_SAVE_NO_DOCTYPE = 1402 : 1402
    -    XML_SAVE_UNKNOWN_ENCODING = 1403 : 1403
    -    XML_REGEXP_COMPILE_ERROR = 1450
    -    XML_IO_UNKNOWN = 1500
    -    XML_IO_EACCES = 1501 : 1501
    -    XML_IO_EAGAIN = 1502 : 1502
    -    XML_IO_EBADF = 1503 : 1503
    -    XML_IO_EBADMSG = 1504 : 1504
    -    XML_IO_EBUSY = 1505 : 1505
    -    XML_IO_ECANCELED = 1506 : 1506
    -    XML_IO_ECHILD = 1507 : 1507
    -    XML_IO_EDEADLK = 1508 : 1508
    -    XML_IO_EDOM = 1509 : 1509
    -    XML_IO_EEXIST = 1510 : 1510
    -    XML_IO_EFAULT = 1511 : 1511
    -    XML_IO_EFBIG = 1512 : 1512
    -    XML_IO_EINPROGRESS = 1513 : 1513
    -    XML_IO_EINTR = 1514 : 1514
    -    XML_IO_EINVAL = 1515 : 1515
    -    XML_IO_EIO = 1516 : 1516
    -    XML_IO_EISDIR = 1517 : 1517
    -    XML_IO_EMFILE = 1518 : 1518
    -    XML_IO_EMLINK = 1519 : 1519
    -    XML_IO_EMSGSIZE = 1520 : 1520
    -    XML_IO_ENAMETOOLONG = 1521 : 1521
    -    XML_IO_ENFILE = 1522 : 1522
    -    XML_IO_ENODEV = 1523 : 1523
    -    XML_IO_ENOENT = 1524 : 1524
    -    XML_IO_ENOEXEC = 1525 : 1525
    -    XML_IO_ENOLCK = 1526 : 1526
    -    XML_IO_ENOMEM = 1527 : 1527
    -    XML_IO_ENOSPC = 1528 : 1528
    -    XML_IO_ENOSYS = 1529 : 1529
    -    XML_IO_ENOTDIR = 1530 : 1530
    -    XML_IO_ENOTEMPTY = 1531 : 1531
    -    XML_IO_ENOTSUP = 1532 : 1532
    -    XML_IO_ENOTTY = 1533 : 1533
    -    XML_IO_ENXIO = 1534 : 1534
    -    XML_IO_EPERM = 1535 : 1535
    -    XML_IO_EPIPE = 1536 : 1536
    -    XML_IO_ERANGE = 1537 : 1537
    -    XML_IO_EROFS = 1538 : 1538
    -    XML_IO_ESPIPE = 1539 : 1539
    -    XML_IO_ESRCH = 1540 : 1540
    -    XML_IO_ETIMEDOUT = 1541 : 1541
    -    XML_IO_EXDEV = 1542 : 1542
    -    XML_IO_NETWORK_ATTEMPT = 1543 : 1543
    -    XML_IO_ENCODER = 1544 : 1544
    -    XML_IO_FLUSH = 1545 : 1545
    -    XML_IO_WRITE = 1546 : 1546
    -    XML_IO_NO_INPUT = 1547 : 1547
    -    XML_IO_BUFFER_FULL = 1548 : 1548
    -    XML_IO_LOAD_ERROR = 1549 : 1549
    -    XML_IO_ENOTSOCK = 1550 : 1550
    -    XML_IO_EISCONN = 1551 : 1551
    -    XML_IO_ECONNREFUSED = 1552 : 1552
    -    XML_IO_ENETUNREACH = 1553 : 1553
    -    XML_IO_EADDRINUSE = 1554 : 1554
    -    XML_IO_EALREADY = 1555 : 1555
    -    XML_IO_EAFNOSUPPORT = 1556 : 1556
    -    XML_XINCLUDE_RECURSION = 1600
    -    XML_XINCLUDE_PARSE_VALUE = 1601 : 1601
    -    XML_XINCLUDE_ENTITY_DEF_MISMATCH = 1602 : 1602
    -    XML_XINCLUDE_NO_HREF = 1603 : 1603
    -    XML_XINCLUDE_NO_FALLBACK = 1604 : 1604
    -    XML_XINCLUDE_HREF_URI = 1605 : 1605
    -    XML_XINCLUDE_TEXT_FRAGMENT = 1606 : 1606
    -    XML_XINCLUDE_TEXT_DOCUMENT = 1607 : 1607
    -    XML_XINCLUDE_INVALID_CHAR = 1608 : 1608
    -    XML_XINCLUDE_BUILD_FAILED = 1609 : 1609
    -    XML_XINCLUDE_UNKNOWN_ENCODING = 1610 : 1610
    -    XML_XINCLUDE_MULTIPLE_ROOT = 1611 : 1611
    -    XML_XINCLUDE_XPTR_FAILED = 1612 : 1612
    -    XML_XINCLUDE_XPTR_RESULT = 1613 : 1613
    -    XML_XINCLUDE_INCLUDE_IN_INCLUDE = 1614 : 1614
    -    XML_XINCLUDE_FALLBACKS_IN_INCLUDE = 1615 : 1615
    -    XML_XINCLUDE_FALLBACK_NOT_IN_INCLUDE = 1616 : 1616
    -    XML_XINCLUDE_DEPRECATED_NS = 1617 : 1617
    -    XML_XINCLUDE_FRAGMENT_ID = 1618 : 1618
    -    XML_CATALOG_MISSING_ATTR = 1650
    -    XML_CATALOG_ENTRY_BROKEN = 1651 : 1651
    -    XML_CATALOG_PREFER_VALUE = 1652 : 1652
    -    XML_CATALOG_NOT_CATALOG = 1653 : 1653
    -    XML_CATALOG_RECURSION = 1654 : 1654
    -    XML_SCHEMAP_PREFIX_UNDEFINED = 1700
    -    XML_SCHEMAP_ATTRFORMDEFAULT_VALUE = 1701 : 1701
    -    XML_SCHEMAP_ATTRGRP_NONAME_NOREF = 1702 : 1702
    -    XML_SCHEMAP_ATTR_NONAME_NOREF = 1703 : 1703
    -    XML_SCHEMAP_COMPLEXTYPE_NONAME_NOREF = 1704 : 1704
    -    XML_SCHEMAP_ELEMFORMDEFAULT_VALUE = 1705 : 1705
    -    XML_SCHEMAP_ELEM_NONAME_NOREF = 1706 : 1706
    -    XML_SCHEMAP_EXTENSION_NO_BASE = 1707 : 1707
    -    XML_SCHEMAP_FACET_NO_VALUE = 1708 : 1708
    -    XML_SCHEMAP_FAILED_BUILD_IMPORT = 1709 : 1709
    -    XML_SCHEMAP_GROUP_NONAME_NOREF = 1710 : 1710
    -    XML_SCHEMAP_IMPORT_NAMESPACE_NOT_URI = 1711 : 1711
    -    XML_SCHEMAP_IMPORT_REDEFINE_NSNAME = 1712 : 1712
    -    XML_SCHEMAP_IMPORT_SCHEMA_NOT_URI = 1713 : 1713
    -    XML_SCHEMAP_INVALID_BOOLEAN = 1714 : 1714
    -    XML_SCHEMAP_INVALID_ENUM = 1715 : 1715
    -    XML_SCHEMAP_INVALID_FACET = 1716 : 1716
    -    XML_SCHEMAP_INVALID_FACET_VALUE = 1717 : 1717
    -    XML_SCHEMAP_INVALID_MAXOCCURS = 1718 : 1718
    -    XML_SCHEMAP_INVALID_MINOCCURS = 1719 : 1719
    -    XML_SCHEMAP_INVALID_REF_AND_SUBTYPE = 1720 : 1720
    -    XML_SCHEMAP_INVALID_WHITE_SPACE = 1721 : 1721
    -    XML_SCHEMAP_NOATTR_NOREF = 1722 : 1722
    -    XML_SCHEMAP_NOTATION_NO_NAME = 1723 : 1723
    -    XML_SCHEMAP_NOTYPE_NOREF = 1724 : 1724
    -    XML_SCHEMAP_REF_AND_SUBTYPE = 1725 : 1725
    -    XML_SCHEMAP_RESTRICTION_NONAME_NOREF = 1726 : 1726
    -    XML_SCHEMAP_SIMPLETYPE_NONAME = 1727 : 1727
    -    XML_SCHEMAP_TYPE_AND_SUBTYPE = 1728 : 1728
    -    XML_SCHEMAP_UNKNOWN_ALL_CHILD = 1729 : 1729
    -    XML_SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD = 1730 : 1730
    -    XML_SCHEMAP_UNKNOWN_ATTR_CHILD = 1731 : 1731
    -    XML_SCHEMAP_UNKNOWN_ATTRGRP_CHILD = 1732 : 1732
    -    XML_SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP = 1733 : 1733
    -    XML_SCHEMAP_UNKNOWN_BASE_TYPE = 1734 : 1734
    -    XML_SCHEMAP_UNKNOWN_CHOICE_CHILD = 1735 : 1735
    -    XML_SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD = 1736 : 1736
    -    XML_SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD = 1737 : 1737
    -    XML_SCHEMAP_UNKNOWN_ELEM_CHILD = 1738 : 1738
    -    XML_SCHEMAP_UNKNOWN_EXTENSION_CHILD = 1739 : 1739
    -    XML_SCHEMAP_UNKNOWN_FACET_CHILD = 1740 : 1740
    -    XML_SCHEMAP_UNKNOWN_FACET_TYPE = 1741 : 1741
    -    XML_SCHEMAP_UNKNOWN_GROUP_CHILD = 1742 : 1742
    -    XML_SCHEMAP_UNKNOWN_IMPORT_CHILD = 1743 : 1743
    -    XML_SCHEMAP_UNKNOWN_LIST_CHILD = 1744 : 1744
    -    XML_SCHEMAP_UNKNOWN_NOTATION_CHILD = 1745 : 1745
    -    XML_SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD = 1746 : 1746
    -    XML_SCHEMAP_UNKNOWN_REF = 1747 : 1747
    -    XML_SCHEMAP_UNKNOWN_RESTRICTION_CHILD = 1748 : 1748
    -    XML_SCHEMAP_UNKNOWN_SCHEMAS_CHILD = 1749 : 1749
    -    XML_SCHEMAP_UNKNOWN_SEQUENCE_CHILD = 1750 : 1750
    -    XML_SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD = 1751 : 1751
    -    XML_SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD = 1752 : 1752
    -    XML_SCHEMAP_UNKNOWN_TYPE = 1753 : 1753
    -    XML_SCHEMAP_UNKNOWN_UNION_CHILD = 1754 : 1754
    -    XML_SCHEMAP_ELEM_DEFAULT_FIXED = 1755 : 1755
    -    XML_SCHEMAP_REGEXP_INVALID = 1756 : 1756
    -    XML_SCHEMAP_FAILED_LOAD = 1757 : 1757
    -    XML_SCHEMAP_NOTHING_TO_PARSE = 1758 : 1758
    -    XML_SCHEMAP_NOROOT = 1759 : 1759
    -    XML_SCHEMAP_REDEFINED_GROUP = 1760 : 1760
    -    XML_SCHEMAP_REDEFINED_TYPE = 1761 : 1761
    -    XML_SCHEMAP_REDEFINED_ELEMENT = 1762 : 1762
    -    XML_SCHEMAP_REDEFINED_ATTRGROUP = 1763 : 1763
    -    XML_SCHEMAP_REDEFINED_ATTR = 1764 : 1764
    -    XML_SCHEMAP_REDEFINED_NOTATION = 1765 : 1765
    -    XML_SCHEMAP_FAILED_PARSE = 1766 : 1766
    -    XML_SCHEMAP_UNKNOWN_PREFIX = 1767 : 1767
    -    XML_SCHEMAP_DEF_AND_PREFIX = 1768 : 1768
    -    XML_SCHEMAP_UNKNOWN_INCLUDE_CHILD = 1769 : 1769
    -    XML_SCHEMAP_INCLUDE_SCHEMA_NOT_URI = 1770 : 1770
    -    XML_SCHEMAP_INCLUDE_SCHEMA_NO_URI = 1771 : 1771
    -    XML_SCHEMAP_NOT_SCHEMA = 1772 : 1772
    -    XML_SCHEMAP_UNKNOWN_MEMBER_TYPE = 1773 : 1773
    -    XML_SCHEMAP_INVALID_ATTR_USE = 1774 : 1774
    -    XML_SCHEMAP_RECURSIVE = 1775 : 1775
    -    XML_SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE = 1776 : 1776
    -    XML_SCHEMAP_INVALID_ATTR_COMBINATION = 1777 : 1777
    -    XML_SCHEMAP_INVALID_ATTR_INLINE_COMBINATION = 1778 : 1778
    -    XML_SCHEMAP_MISSING_SIMPLETYPE_CHILD = 1779 : 1779
    -    XML_SCHEMAP_INVALID_ATTR_NAME = 1780 : 1780
    -    XML_SCHEMAP_REF_AND_CONTENT = 1781 : 1781
    -    XML_SCHEMAP_CT_PROPS_CORRECT_1 = 1782 : 1782
    -    XML_SCHEMAP_CT_PROPS_CORRECT_2 = 1783 : 1783
    -    XML_SCHEMAP_CT_PROPS_CORRECT_3 = 1784 : 1784
    -    XML_SCHEMAP_CT_PROPS_CORRECT_4 = 1785 : 1785
    -    XML_SCHEMAP_CT_PROPS_CORRECT_5 = 1786 : 1786
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_1 = 1787 : 1787
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1 = 1788 : 1788
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2 = 1789 : 1789
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_2 = 1790 : 1790
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_3 = 1791 : 1791
    -    XML_SCHEMAP_WILDCARD_INVALID_NS_MEMBER = 1792 : 1792
    -    XML_SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE = 1793 : 1793
    -    XML_SCHEMAP_UNION_NOT_EXPRESSIBLE = 1794 : 1794
    -    XML_SCHEMAP_SRC_IMPORT_3_1 = 1795 : 1795
    -    XML_SCHEMAP_SRC_IMPORT_3_2 = 1796 : 1796
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_1 = 1797 : 1797
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_2 = 1798 : 1798
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_3 = 1799 : 1799
    -    XML_SCHEMAP_COS_CT_EXTENDS_1_3 = 1800 : 1800
    -    XML_SCHEMAV_NOROOT = 1801
    -    XML_SCHEMAV_UNDECLAREDELEM = 1802 : 1802
    -    XML_SCHEMAV_NOTTOPLEVEL = 1803 : 1803
    -    XML_SCHEMAV_MISSING = 1804 : 1804
    -    XML_SCHEMAV_WRONGELEM = 1805 : 1805
    -    XML_SCHEMAV_NOTYPE = 1806 : 1806
    -    XML_SCHEMAV_NOROLLBACK = 1807 : 1807
    -    XML_SCHEMAV_ISABSTRACT = 1808 : 1808
    -    XML_SCHEMAV_NOTEMPTY = 1809 : 1809
    -    XML_SCHEMAV_ELEMCONT = 1810 : 1810
    -    XML_SCHEMAV_HAVEDEFAULT = 1811 : 1811
    -    XML_SCHEMAV_NOTNILLABLE = 1812 : 1812
    -    XML_SCHEMAV_EXTRACONTENT = 1813 : 1813
    -    XML_SCHEMAV_INVALIDATTR = 1814 : 1814
    -    XML_SCHEMAV_INVALIDELEM = 1815 : 1815
    -    XML_SCHEMAV_NOTDETERMINIST = 1816 : 1816
    -    XML_SCHEMAV_CONSTRUCT = 1817 : 1817
    -    XML_SCHEMAV_INTERNAL = 1818 : 1818
    -    XML_SCHEMAV_NOTSIMPLE = 1819 : 1819
    -    XML_SCHEMAV_ATTRUNKNOWN = 1820 : 1820
    -    XML_SCHEMAV_ATTRINVALID = 1821 : 1821
    -    XML_SCHEMAV_VALUE = 1822 : 1822
    -    XML_SCHEMAV_FACET = 1823 : 1823
    -    XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_1 = 1824 : 1824
    -    XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_2 = 1825 : 1825
    -    XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_3 = 1826 : 1826
    -    XML_SCHEMAV_CVC_TYPE_3_1_1 = 1827 : 1827
    -    XML_SCHEMAV_CVC_TYPE_3_1_2 = 1828 : 1828
    -    XML_SCHEMAV_CVC_FACET_VALID = 1829 : 1829
    -    XML_SCHEMAV_CVC_LENGTH_VALID = 1830 : 1830
    -    XML_SCHEMAV_CVC_MINLENGTH_VALID = 1831 : 1831
    -    XML_SCHEMAV_CVC_MAXLENGTH_VALID = 1832 : 1832
    -    XML_SCHEMAV_CVC_MININCLUSIVE_VALID = 1833 : 1833
    -    XML_SCHEMAV_CVC_MAXINCLUSIVE_VALID = 1834 : 1834
    -    XML_SCHEMAV_CVC_MINEXCLUSIVE_VALID = 1835 : 1835
    -    XML_SCHEMAV_CVC_MAXEXCLUSIVE_VALID = 1836 : 1836
    -    XML_SCHEMAV_CVC_TOTALDIGITS_VALID = 1837 : 1837
    -    XML_SCHEMAV_CVC_FRACTIONDIGITS_VALID = 1838 : 1838
    -    XML_SCHEMAV_CVC_PATTERN_VALID = 1839 : 1839
    -    XML_SCHEMAV_CVC_ENUMERATION_VALID = 1840 : 1840
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_2_1 = 1841 : 1841
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_2_2 = 1842 : 1842
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_2_3 = 1843 : 1843
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_2_4 = 1844 : 1844
    -    XML_SCHEMAV_CVC_ELT_1 = 1845 : 1845
    -    XML_SCHEMAV_CVC_ELT_2 = 1846 : 1846
    -    XML_SCHEMAV_CVC_ELT_3_1 = 1847 : 1847
    -    XML_SCHEMAV_CVC_ELT_3_2_1 = 1848 : 1848
    -    XML_SCHEMAV_CVC_ELT_3_2_2 = 1849 : 1849
    -    XML_SCHEMAV_CVC_ELT_4_1 = 1850 : 1850
    -    XML_SCHEMAV_CVC_ELT_4_2 = 1851 : 1851
    -    XML_SCHEMAV_CVC_ELT_4_3 = 1852 : 1852
    -    XML_SCHEMAV_CVC_ELT_5_1_1 = 1853 : 1853
    -    XML_SCHEMAV_CVC_ELT_5_1_2 = 1854 : 1854
    -    XML_SCHEMAV_CVC_ELT_5_2_1 = 1855 : 1855
    -    XML_SCHEMAV_CVC_ELT_5_2_2_1 = 1856 : 1856
    -    XML_SCHEMAV_CVC_ELT_5_2_2_2_1 = 1857 : 1857
    -    XML_SCHEMAV_CVC_ELT_5_2_2_2_2 = 1858 : 1858
    -    XML_SCHEMAV_CVC_ELT_6 = 1859 : 1859
    -    XML_SCHEMAV_CVC_ELT_7 = 1860 : 1860
    -    XML_SCHEMAV_CVC_ATTRIBUTE_1 = 1861 : 1861
    -    XML_SCHEMAV_CVC_ATTRIBUTE_2 = 1862 : 1862
    -    XML_SCHEMAV_CVC_ATTRIBUTE_3 = 1863 : 1863
    -    XML_SCHEMAV_CVC_ATTRIBUTE_4 = 1864 : 1864
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_3_1 = 1865 : 1865
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_1 = 1866 : 1866
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_2 = 1867 : 1867
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_4 = 1868 : 1868
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_5_1 = 1869 : 1869
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_5_2 = 1870 : 1870
    -    XML_SCHEMAV_ELEMENT_CONTENT = 1871 : 1871
    -    XML_SCHEMAV_DOCUMENT_ELEMENT_MISSING = 1872 : 1872
    -    XML_SCHEMAV_CVC_COMPLEX_TYPE_1 = 1873 : 1873
    -    XML_SCHEMAV_CVC_AU = 1874 : 1874
    -    XML_SCHEMAV_CVC_TYPE_1 = 1875 : 1875
    -    XML_SCHEMAV_CVC_TYPE_2 = 1876 : 1876
    -    XML_SCHEMAV_CVC_IDC = 1877 : 1877
    -    XML_SCHEMAV_CVC_WILDCARD = 1878 : 1878
    -    XML_SCHEMAV_MISC = 1879 : 1879
    -    XML_XPTR_UNKNOWN_SCHEME = 1900
    -    XML_XPTR_CHILDSEQ_START = 1901 : 1901
    -    XML_XPTR_EVAL_FAILED = 1902 : 1902
    -    XML_XPTR_EXTRA_OBJECTS = 1903 : 1903
    -    XML_C14N_CREATE_CTXT = 1950
    -    XML_C14N_REQUIRES_UTF8 = 1951 : 1951
    -    XML_C14N_CREATE_STACK = 1952 : 1952
    -    XML_C14N_INVALID_NODE = 1953 : 1953
    -    XML_C14N_UNKNOW_NODE = 1954 : 1954
    -    XML_C14N_RELATIVE_NAMESPACE = 1955 : 1955
    -    XML_FTP_PASV_ANSWER = 2000
    -    XML_FTP_EPSV_ANSWER = 2001 : 2001
    -    XML_FTP_ACCNT = 2002 : 2002
    -    XML_FTP_URL_SYNTAX = 2003 : 2003
    -    XML_HTTP_URL_SYNTAX = 2020
    -    XML_HTTP_USE_IP = 2021 : 2021
    -    XML_HTTP_UNKNOWN_HOST = 2022 : 2022
    -    XML_SCHEMAP_SRC_SIMPLE_TYPE_1 = 3000
    -    XML_SCHEMAP_SRC_SIMPLE_TYPE_2 = 3001 : 3001
    -    XML_SCHEMAP_SRC_SIMPLE_TYPE_3 = 3002 : 3002
    -    XML_SCHEMAP_SRC_SIMPLE_TYPE_4 = 3003 : 3003
    -    XML_SCHEMAP_SRC_RESOLVE = 3004 : 3004
    -    XML_SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE = 3005 : 3005
    -    XML_SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE = 3006 : 3006
    -    XML_SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES = 3007 : 3007
    -    XML_SCHEMAP_ST_PROPS_CORRECT_1 = 3008 : 3008
    -    XML_SCHEMAP_ST_PROPS_CORRECT_2 = 3009 : 3009
    -    XML_SCHEMAP_ST_PROPS_CORRECT_3 = 3010 : 3010
    -    XML_SCHEMAP_COS_ST_RESTRICTS_1_1 = 3011 : 3011
    -    XML_SCHEMAP_COS_ST_RESTRICTS_1_2 = 3012 : 3012
    -    XML_SCHEMAP_COS_ST_RESTRICTS_1_3_1 = 3013 : 3013
    -    XML_SCHEMAP_COS_ST_RESTRICTS_1_3_2 = 3014 : 3014
    -    XML_SCHEMAP_COS_ST_RESTRICTS_2_1 = 3015 : 3015
    -    XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_1 = 3016 : 3016
    -    XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_2 = 3017 : 3017
    -    XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_1 = 3018 : 3018
    -    XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_2 = 3019 : 3019
    -    XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_3 = 3020 : 3020
    -    XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_4 = 3021 : 3021
    -    XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_5 = 3022 : 3022
    -    XML_SCHEMAP_COS_ST_RESTRICTS_3_1 = 3023 : 3023
    -    XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1 = 3024 : 3024
    -    XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1_2 = 3025 : 3025
    -    XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_2 = 3026 : 3026
    -    XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_1 = 3027 : 3027
    -    XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_3 = 3028 : 3028
    -    XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_4 = 3029 : 3029
    -    XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_5 = 3030 : 3030
    -    XML_SCHEMAP_COS_ST_DERIVED_OK_2_1 = 3031 : 3031
    -    XML_SCHEMAP_COS_ST_DERIVED_OK_2_2 = 3032 : 3032
    -    XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED = 3033 : 3033
    -    XML_SCHEMAP_S4S_ELEM_MISSING = 3034 : 3034
    -    XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED = 3035 : 3035
    -    XML_SCHEMAP_S4S_ATTR_MISSING = 3036 : 3036
    -    XML_SCHEMAP_S4S_ATTR_INVALID_VALUE = 3037 : 3037
    -    XML_SCHEMAP_SRC_ELEMENT_1 = 3038 : 3038
    -    XML_SCHEMAP_SRC_ELEMENT_2_1 = 3039 : 3039
    -    XML_SCHEMAP_SRC_ELEMENT_2_2 = 3040 : 3040
    -    XML_SCHEMAP_SRC_ELEMENT_3 = 3041 : 3041
    -    XML_SCHEMAP_P_PROPS_CORRECT_1 = 3042 : 3042
    -    XML_SCHEMAP_P_PROPS_CORRECT_2_1 = 3043 : 3043
    -    XML_SCHEMAP_P_PROPS_CORRECT_2_2 = 3044 : 3044
    -    XML_SCHEMAP_E_PROPS_CORRECT_2 = 3045 : 3045
    -    XML_SCHEMAP_E_PROPS_CORRECT_3 = 3046 : 3046
    -    XML_SCHEMAP_E_PROPS_CORRECT_4 = 3047 : 3047
    -    XML_SCHEMAP_E_PROPS_CORRECT_5 = 3048 : 3048
    -    XML_SCHEMAP_E_PROPS_CORRECT_6 = 3049 : 3049
    -    XML_SCHEMAP_SRC_INCLUDE = 3050 : 3050
    -    XML_SCHEMAP_SRC_ATTRIBUTE_1 = 3051 : 3051
    -    XML_SCHEMAP_SRC_ATTRIBUTE_2 = 3052 : 3052
    -    XML_SCHEMAP_SRC_ATTRIBUTE_3_1 = 3053 : 3053
    -    XML_SCHEMAP_SRC_ATTRIBUTE_3_2 = 3054 : 3054
    -    XML_SCHEMAP_SRC_ATTRIBUTE_4 = 3055 : 3055
    -    XML_SCHEMAP_NO_XMLNS = 3056 : 3056
    -    XML_SCHEMAP_NO_XSI = 3057 : 3057
    -    XML_SCHEMAP_COS_VALID_DEFAULT_1 = 3058 : 3058
    -    XML_SCHEMAP_COS_VALID_DEFAULT_2_1 = 3059 : 3059
    -    XML_SCHEMAP_COS_VALID_DEFAULT_2_2_1 = 3060 : 3060
    -    XML_SCHEMAP_COS_VALID_DEFAULT_2_2_2 = 3061 : 3061
    -    XML_SCHEMAP_CVC_SIMPLE_TYPE = 3062 : 3062
    -    XML_SCHEMAP_COS_CT_EXTENDS_1_1 = 3063 : 3063
    -    XML_SCHEMAP_SRC_IMPORT_1_1 = 3064 : 3064
    -    XML_SCHEMAP_SRC_IMPORT_1_2 = 3065 : 3065
    -    XML_SCHEMAP_SRC_IMPORT_2 = 3066 : 3066
    -    XML_SCHEMAP_SRC_IMPORT_2_1 = 3067 : 3067
    -    XML_SCHEMAP_SRC_IMPORT_2_2 = 3068 : 3068
    -    XML_SCHEMAP_INTERNAL = 3069 : 3069 non-W3C
    -    XML_SCHEMAP_NOT_DETERMINISTIC = 3070 : 3070 non-W3C
    -    XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_1 = 3071 : 3071
    -    XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_2 = 3072 : 3072
    -    XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_3 = 3073 : 3073
    -    XML_SCHEMAP_MG_PROPS_CORRECT_1 = 3074 : 3074
    -    XML_SCHEMAP_MG_PROPS_CORRECT_2 = 3075 : 3075
    -    XML_SCHEMAP_SRC_CT_1 = 3076 : 3076
    -    XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3 = 3077 : 3077
    -    XML_SCHEMAP_AU_PROPS_CORRECT_2 = 3078 : 3078
    -    XML_SCHEMAP_A_PROPS_CORRECT_2 = 3079 : 3079
    -    XML_SCHEMAP_C_PROPS_CORRECT = 3080 : 3080
    -    XML_SCHEMAP_SRC_REDEFINE = 3081 : 3081
    -    XML_SCHEMAP_SRC_IMPORT = 3082 : 3082
    -    XML_SCHEMAP_WARN_SKIP_SCHEMA = 3083 : 3083
    -    XML_SCHEMAP_WARN_UNLOCATED_SCHEMA = 3084 : 3084
    -    XML_SCHEMAP_WARN_ATTR_REDECL_PROH = 3085 : 3085
    -    XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH = 3086 : 3085
    -    XML_SCHEMAP_AG_PROPS_CORRECT = 3087 : 3086
    -    XML_SCHEMAP_COS_CT_EXTENDS_1_2 = 3088 : 3087
    -    XML_SCHEMAP_AU_PROPS_CORRECT = 3089 : 3088
    -    XML_SCHEMAP_A_PROPS_CORRECT_3 = 3090 : 3089
    -    XML_SCHEMAP_COS_ALL_LIMITED = 3091 : 3090
    -    XML_MODULE_OPEN = 4900 : 4900
    -    XML_MODULE_CLOSE = 4901 : 4901
    -    XML_CHECK_FOUND_ELEMENT = 5000
    -    XML_CHECK_FOUND_ATTRIBUTE = 5001 : 5001
    -    XML_CHECK_FOUND_TEXT = 5002 : 5002
    -    XML_CHECK_FOUND_CDATA = 5003 : 5003
    -    XML_CHECK_FOUND_ENTITYREF = 5004 : 5004
    -    XML_CHECK_FOUND_ENTITY = 5005 : 5005
    -    XML_CHECK_FOUND_PI = 5006 : 5006
    -    XML_CHECK_FOUND_COMMENT = 5007 : 5007
    -    XML_CHECK_FOUND_DOCTYPE = 5008 : 5008
    -    XML_CHECK_FOUND_FRAGMENT = 5009 : 5009
    -    XML_CHECK_FOUND_NOTATION = 5010 : 5010
    -    XML_CHECK_UNKNOWN_NODE = 5011 : 5011
    -    XML_CHECK_ENTITY_TYPE = 5012 : 5012
    -    XML_CHECK_NO_PARENT = 5013 : 5013
    -    XML_CHECK_NO_DOC = 5014 : 5014
    -    XML_CHECK_NO_NAME = 5015 : 5015
    -    XML_CHECK_NO_ELEM = 5016 : 5016
    -    XML_CHECK_WRONG_DOC = 5017 : 5017
    -    XML_CHECK_NO_PREV = 5018 : 5018
    -    XML_CHECK_WRONG_PREV = 5019 : 5019
    -    XML_CHECK_NO_NEXT = 5020 : 5020
    -    XML_CHECK_WRONG_NEXT = 5021 : 5021
    -    XML_CHECK_NOT_DTD = 5022 : 5022
    -    XML_CHECK_NOT_ATTR = 5023 : 5023
    -    XML_CHECK_NOT_ATTR_DECL = 5024 : 5024
    -    XML_CHECK_NOT_ELEM_DECL = 5025 : 5025
    -    XML_CHECK_NOT_ENTITY_DECL = 5026 : 5026
    -    XML_CHECK_NOT_NS_DECL = 5027 : 5027
    -    XML_CHECK_NO_HREF = 5028 : 5028
    -    XML_CHECK_WRONG_PARENT = 5029 : 5029
    -    XML_CHECK_NS_SCOPE = 5030 : 5030
    -    XML_CHECK_NS_ANCESTOR = 5031 : 5031
    -    XML_CHECK_NOT_UTF8 = 5032 : 5032
    -    XML_CHECK_NO_DICT = 5033 : 5033
    -    XML_CHECK_NOT_NCNAME = 5034 : 5034
    -    XML_CHECK_OUTSIDE_DICT = 5035 : 5035
    -    XML_CHECK_WRONG_NAME = 5036 : 5036
    -    XML_CHECK_NAME_NOT_NULL = 5037 : 5037
    -    XML_I18N_NO_NAME = 6000
    -    XML_I18N_NO_HANDLER = 6001 : 6001
    -    XML_I18N_EXCESS_HANDLER = 6002 : 6002
    -    XML_I18N_CONV_FAILED = 6003 : 6003
    -    XML_I18N_NO_OUTPUT = 6004 : 6004
    -    XML_CHECK_ = 6005 : 5033
    -    XML_CHECK_X = 6006 : 503
    -}
    -

    Function: initGenericErrorDefaultFunc

    void	initGenericErrorDefaultFunc	(xmlGenericErrorFunc * handler)
    -

    Set or reset (if NULL) the default handler for generic errors to the builtin error function.

    -
    handler:the handler

    Function: xmlCopyError

    int	xmlCopyError			(xmlErrorPtr from, 
    xmlErrorPtr to)
    -

    Save the original error to the new place.

    -
    from:a source error
    to:a target error
    Returns:0 in case of success and -1 in case of error.

    Function: xmlCtxtGetLastError

    xmlErrorPtr	xmlCtxtGetLastError	(void * ctx)
    -

    Get the last parsing error registered.

    -
    ctx:an XML parser context
    Returns:NULL if no error occured or a pointer to the error

    Function: xmlCtxtResetLastError

    void	xmlCtxtResetLastError		(void * ctx)
    -

    Cleanup the last global error registered. For parsing error this does not change the well-formedness result.

    -
    ctx:an XML parser context

    Function type: xmlGenericErrorFunc

    Function type: xmlGenericErrorFunc
    -void	xmlGenericErrorFunc		(void * ctx, 
    const char * msg,
    ... ...) -

    Signature of the function to use when there is an error and no parsing or validity context available .

    ctx:a parsing context
    msg:the message
    ...:the extra arguments of the varags to format the message

    -

    Function: xmlGetLastError

    xmlErrorPtr	xmlGetLastError		(void)
    -

    Get the last global error registered. This is per thread if compiled with thread support.

    -
    Returns:NULL if no error occured or a pointer to the error

    Function: xmlParserError

    void	xmlParserError			(void * ctx, 
    const char * msg,
    ... ...)
    -

    Display and format an error messages, gives file, line, position and extra parameters.

    -
    ctx:an XML parser context
    msg:the message to display/transmit
    ...:extra parameters for the message display

    Function: xmlParserPrintFileContext

    void	xmlParserPrintFileContext	(xmlParserInputPtr input)
    -

    Displays current context within the input content for error tracking

    -
    input:an xmlParserInputPtr input

    Function: xmlParserPrintFileInfo

    void	xmlParserPrintFileInfo		(xmlParserInputPtr input)
    -

    Displays the associated file and line informations for the current input

    -
    input:an xmlParserInputPtr input

    Function: xmlParserValidityError

    void	xmlParserValidityError		(void * ctx, 
    const char * msg,
    ... ...)
    -

    Display and format an validity error messages, gives file, line, position and extra parameters.

    -
    ctx:an XML parser context
    msg:the message to display/transmit
    ...:extra parameters for the message display

    Function: xmlParserValidityWarning

    void	xmlParserValidityWarning	(void * ctx, 
    const char * msg,
    ... ...)
    -

    Display and format a validity warning messages, gives file, line, position and extra parameters.

    -
    ctx:an XML parser context
    msg:the message to display/transmit
    ...:extra parameters for the message display

    Function: xmlParserWarning

    void	xmlParserWarning		(void * ctx, 
    const char * msg,
    ... ...)
    -

    Display and format a warning messages, gives file, line, position and extra parameters.

    -
    ctx:an XML parser context
    msg:the message to display/transmit
    ...:extra parameters for the message display

    Function: xmlResetError

    void	xmlResetError			(xmlErrorPtr err)
    -

    Cleanup the error.

    -
    err:pointer to the error.

    Function: xmlResetLastError

    void	xmlResetLastError		(void)
    -

    Cleanup the last global error registered. For parsing error this does not change the well-formedness result.

    -

    Function: xmlSetGenericErrorFunc

    void	xmlSetGenericErrorFunc		(void * ctx, 
    xmlGenericErrorFunc handler)
    -

    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. For multi-threaded applications, this must be set separately for each thread.

    -
    ctx:the new error handling context
    handler:the new handler function

    Function: xmlSetStructuredErrorFunc

    void	xmlSetStructuredErrorFunc	(void * ctx, 
    xmlStructuredErrorFunc handler)
    -

    Function to reset the handler and the error context for out of context structured 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 For multi-threaded applications, this must be set separately for each thread.

    -
    ctx:the new error handling context
    handler:the new handler function

    Function type: xmlStructuredErrorFunc

    Function type: xmlStructuredErrorFunc
    -void	xmlStructuredErrorFunc		(void * userData, 
    xmlErrorPtr error) -

    Signature of the function to use when there is an error and the module handles the new error reporting mechanism.

    userData:user provided data for the error callback
    error:the error being raised.

    -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xmlexports.html b/src/tools/docbook/libxml2/doc/html/libxml-xmlexports.html deleted file mode 100644 index 1ce2de8936..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xmlexports.html +++ /dev/null @@ -1,20 +0,0 @@ - - -Module xmlexports from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xmlexports from libxml2

    API Menu
    API Indexes
    Related links

    macros for marking symbols as exportable/importable.

    Table of Contents

    #define LIBXML_DLL_IMPORT
    #define XMLCALL
    #define XMLCDECL
    #define XMLPUBFUN
    #define XMLPUBVAR
    #define _REENTRANT

    Description

    -

    Macro: LIBXML_DLL_IMPORT

    #define LIBXML_DLL_IMPORT

    -

    Macro: XMLCALL

    #define XMLCALL

    -

    Macro: XMLCDECL

    #define XMLCDECL

    -

    Macro: XMLPUBFUN

    #define XMLPUBFUN

    -

    Macro: XMLPUBVAR

    #define XMLPUBVAR

    -

    Macro: _REENTRANT

    #define _REENTRANT

    -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xmlmemory.html b/src/tools/docbook/libxml2/doc/html/libxml-xmlmemory.html deleted file mode 100644 index 66350c8fc8..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xmlmemory.html +++ /dev/null @@ -1,104 +0,0 @@ - - -Module xmlmemory from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xmlmemory from libxml2

    API Menu
    API Indexes
    Related links

    provides interfaces for the memory allocator, including debugging capabilities.

    Table of Contents

    #define DEBUG_MEMORY
    Variable xmlMallocFunc xmlMalloc
    -
    -
    Variable xmlMallocFunc xmlMallocAtomic
    -
    -
    Variable xmlStrdupFunc xmlMemStrdup
    -
    -
    Variable xmlReallocFunc xmlRealloc
    -
    -
    void	xmlCleanupMemory		(void)
    -
    Function type: xmlFreeFunc
    -void	xmlFreeFunc			(void * mem)
    -
    -
    int	xmlGcMemGet			(xmlFreeFunc * freeFunc, 
    xmlMallocFunc * mallocFunc,
    xmlMallocFunc * mallocAtomicFunc,
    xmlReallocFunc * reallocFunc,
    xmlStrdupFunc * strdupFunc)
    -
    int	xmlGcMemSetup			(xmlFreeFunc freeFunc, 
    xmlMallocFunc mallocFunc,
    xmlMallocFunc mallocAtomicFunc,
    xmlReallocFunc reallocFunc,
    xmlStrdupFunc strdupFunc)
    -
    int	xmlInitMemory			(void)
    -
    void *	xmlMallocAtomicLoc		(size_t size, 
    const char * file,
    int line)
    -
    Function type: xmlMallocFunc
    -void *	xmlMallocFunc			(size_t size)
    -
    -
    void *	xmlMallocLoc			(size_t size, 
    const char * file,
    int line)
    -
    int	xmlMemBlocks			(void)
    -
    void	xmlMemDisplay			(FILE * fp)
    -
    void	xmlMemFree			(void * ptr)
    -
    int	xmlMemGet			(xmlFreeFunc * freeFunc, 
    xmlMallocFunc * mallocFunc,
    xmlReallocFunc * reallocFunc,
    xmlStrdupFunc * strdupFunc)
    -
    void *	xmlMemMalloc			(size_t size)
    -
    void *	xmlMemRealloc			(void * ptr, 
    size_t size)
    -
    int	xmlMemSetup			(xmlFreeFunc freeFunc, 
    xmlMallocFunc mallocFunc,
    xmlReallocFunc reallocFunc,
    xmlStrdupFunc strdupFunc)
    -
    void	xmlMemShow			(FILE * fp, 
    int nr)
    -
    char *	xmlMemStrdupLoc			(const char * str, 
    const char * file,
    int line)
    -
    int	xmlMemUsed			(void)
    -
    void	xmlMemoryDump			(void)
    -
    char *	xmlMemoryStrdup			(const char * str)
    -
    Function type: xmlReallocFunc
    -void *	xmlReallocFunc			(void * mem, 
    size_t size) -
    -
    void *	xmlReallocLoc			(void * ptr, 
    size_t size,
    const char * file,
    int line)
    -
    Function type: xmlStrdupFunc
    -char *	xmlStrdupFunc			(const char * str)
    -
    -

    Description

    -

    Macro: DEBUG_MEMORY

    #define DEBUG_MEMORY

    DEBUG_MEMORY replaces the allocator with a collect and debug shell to the libc allocator. DEBUG_MEMORY should only be activated when debugging libxml i.e. if libxml has been configured with --with-debug-mem too. #define DEBUG_MEMORY_FREED #define DEBUG_MEMORY_LOCATION

    -

    Function: xmlCleanupMemory

    void	xmlCleanupMemory		(void)
    -

    Free up all the memory allocated by the library for its own use. This should not be called by user level code.

    -

    Function type: xmlFreeFunc

    Function type: xmlFreeFunc
    -void	xmlFreeFunc			(void * mem)
    -

    Signature for a free() implementation.

    mem:an already allocated block of memory

    -

    Function: xmlGcMemGet

    int	xmlGcMemGet			(xmlFreeFunc * freeFunc, 
    xmlMallocFunc * mallocFunc,
    xmlMallocFunc * mallocAtomicFunc,
    xmlReallocFunc * reallocFunc,
    xmlStrdupFunc * strdupFunc)
    -

    Provides the memory access functions set currently in use The mallocAtomicFunc is specialized for atomic block allocations (i.e. of areas useful for garbage collected memory allocators

    -
    freeFunc:place to save the free() function in use
    mallocFunc:place to save the malloc() function in use
    mallocAtomicFunc:place to save the atomic malloc() function in use
    reallocFunc:place to save the realloc() function in use
    strdupFunc:place to save the strdup() function in use
    Returns:0 on success

    Function: xmlGcMemSetup

    int	xmlGcMemSetup			(xmlFreeFunc freeFunc, 
    xmlMallocFunc mallocFunc,
    xmlMallocFunc mallocAtomicFunc,
    xmlReallocFunc reallocFunc,
    xmlStrdupFunc strdupFunc)
    -

    Override the default memory access functions with a new set This has to be called before any other libxml routines ! The mallocAtomicFunc is specialized for atomic block allocations (i.e. of areas useful for garbage collected memory allocators Should this be blocked if there was already some allocations done ?

    -
    freeFunc:the free() function to use
    mallocFunc:the malloc() function to use
    mallocAtomicFunc:the malloc() function to use for atomic allocations
    reallocFunc:the realloc() function to use
    strdupFunc:the strdup() function to use
    Returns:0 on success

    Function: xmlInitMemory

    int	xmlInitMemory			(void)
    -

    Initialize the memory layer.

    -
    Returns:0 on success

    Function: xmlMallocAtomicLoc

    void *	xmlMallocAtomicLoc		(size_t size, 
    const char * file,
    int line)
    -

    a malloc() equivalent, with logging of the allocation info.

    -
    size:an int specifying the size in byte to allocate.
    file:the file name or NULL
    line:the line number
    Returns:a pointer to the allocated area or NULL in case of lack of memory.

    Function type: xmlMallocFunc

    Function type: xmlMallocFunc
    -void *	xmlMallocFunc			(size_t size)
    -

    Signature for a malloc() implementation.

    size:the size requested in bytes
    Returns:a pointer to the newly allocated block or NULL in case of error.

    -

    Function: xmlMallocLoc

    void *	xmlMallocLoc			(size_t size, 
    const char * file,
    int line)
    -

    a malloc() equivalent, with logging of the allocation info.

    -
    size:an int specifying the size in byte to allocate.
    file:the file name or NULL
    line:the line number
    Returns:a pointer to the allocated area or NULL in case of lack of memory.

    Function: xmlMemBlocks

    int	xmlMemBlocks			(void)
    -

    Provides the number of memory areas currently allocated

    -
    Returns:an int representing the number of blocks

    Function: xmlMemDisplay

    void	xmlMemDisplay			(FILE * fp)
    -

    show in-extenso the memory blocks allocated

    -
    fp:a FILE descriptor used as the output file, if NULL, the result is written to the file .memorylist

    Function: xmlMemFree

    void	xmlMemFree			(void * ptr)
    -

    a free() equivalent, with error checking.

    -
    ptr:the memory block pointer

    Function: xmlMemGet

    int	xmlMemGet			(xmlFreeFunc * freeFunc, 
    xmlMallocFunc * mallocFunc,
    xmlReallocFunc * reallocFunc,
    xmlStrdupFunc * strdupFunc)
    -

    Provides the memory access functions set currently in use

    -
    freeFunc:place to save the free() function in use
    mallocFunc:place to save the malloc() function in use
    reallocFunc:place to save the realloc() function in use
    strdupFunc:place to save the strdup() function in use
    Returns:0 on success

    Function: xmlMemMalloc

    void *	xmlMemMalloc			(size_t size)
    -

    a malloc() equivalent, with logging of the allocation info.

    -
    size:an int specifying the size in byte to allocate.
    Returns:a pointer to the allocated area or NULL in case of lack of memory.

    Function: xmlMemRealloc

    void *	xmlMemRealloc			(void * ptr, 
    size_t size)
    -

    a realloc() equivalent, with logging of the allocation info.

    -
    ptr:the initial memory block pointer
    size:an int specifying the size in byte to allocate.
    Returns:a pointer to the allocated area or NULL in case of lack of memory.

    Function: xmlMemSetup

    int	xmlMemSetup			(xmlFreeFunc freeFunc, 
    xmlMallocFunc mallocFunc,
    xmlReallocFunc reallocFunc,
    xmlStrdupFunc strdupFunc)
    -

    Override the default memory access functions with a new set This has to be called before any other libxml routines ! Should this be blocked if there was already some allocations done ?

    -
    freeFunc:the free() function to use
    mallocFunc:the malloc() function to use
    reallocFunc:the realloc() function to use
    strdupFunc:the strdup() function to use
    Returns:0 on success

    Function: xmlMemShow

    void	xmlMemShow			(FILE * fp, 
    int nr)
    -

    show a show display of the memory allocated, and dump the @nr last allocated areas which were not freed

    -
    fp:a FILE descriptor used as the output file
    nr:number of entries to dump

    Function: xmlMemStrdupLoc

    char *	xmlMemStrdupLoc			(const char * str, 
    const char * file,
    int line)
    -

    a strdup() equivalent, with logging of the allocation info.

    -
    str:the initial string pointer
    file:the file name or NULL
    line:the line number
    Returns:a pointer to the new string or NULL if allocation error occurred.

    Function: xmlMemUsed

    int	xmlMemUsed			(void)
    -

    Provides the amount of memory currently allocated

    -
    Returns:an int representing the amount of memory allocated.

    Function: xmlMemoryDump

    void	xmlMemoryDump			(void)
    -

    Dump in-extenso the memory blocks allocated to the file .memorylist

    -

    Function: xmlMemoryStrdup

    char *	xmlMemoryStrdup			(const char * str)
    -

    a strdup() equivalent, with logging of the allocation info.

    -
    str:the initial string pointer
    Returns:a pointer to the new string or NULL if allocation error occurred.

    Function type: xmlReallocFunc

    Function type: xmlReallocFunc
    -void *	xmlReallocFunc			(void * mem, 
    size_t size) -

    Signature for a realloc() implementation.

    mem:an already allocated block of memory
    size:the new size requested in bytes
    Returns:a pointer to the newly reallocated block or NULL in case of error.

    -

    Function: xmlReallocLoc

    void *	xmlReallocLoc			(void * ptr, 
    size_t size,
    const char * file,
    int line)
    -

    a realloc() equivalent, with logging of the allocation info.

    -
    ptr:the initial memory block pointer
    size:an int specifying the size in byte to allocate.
    file:the file name or NULL
    line:the line number
    Returns:a pointer to the allocated area or NULL in case of lack of memory.

    Function type: xmlStrdupFunc

    Function type: xmlStrdupFunc
    -char *	xmlStrdupFunc			(const char * str)
    -

    Signature for an strdup() implementation.

    str:a zero terminated string
    Returns:the copy of the string or NULL in case of error.

    -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xmlmodule.html b/src/tools/docbook/libxml2/doc/html/libxml-xmlmodule.html deleted file mode 100644 index c5a6441999..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xmlmodule.html +++ /dev/null @@ -1,38 +0,0 @@ - - -Module xmlmodule from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xmlmodule from libxml2

    API Menu
    API Indexes
    Related links

    basic API for dynamic module loading, used by libexslt added in 2.6.17

    Table of Contents

    Structure xmlModule
    struct _xmlModule -The content of this structure is not made public by the API. -
    Enum xmlModuleOption
    -
    Typedef xmlModule * xmlModulePtr
    -
    int	xmlModuleClose			(xmlModulePtr module)
    -
    int	xmlModuleFree			(xmlModulePtr module)
    -
    xmlModulePtr	xmlModuleOpen		(const char * name, 
    int options)
    -
    int	xmlModuleSymbol			(xmlModulePtr module, 
    const char * name,
    void ** symbol)
    -

    Description

    -

    Structure xmlModule

    Structure xmlModule
    struct _xmlModule { -The content of this structure is not made public by the API. -}

    Enum xmlModuleOption

    Enum xmlModuleOption {
    -    XML_MODULE_LAZY = 1 : lazy binding
    -    XML_MODULE_LOCAL = 2 : local binding
    -}
    -
    - A handle to a dynamically loaded module -

    Function: xmlModuleClose

    int	xmlModuleClose			(xmlModulePtr module)
    -

    The close operations unload the associated module and free the data associated to the module.

    -
    module:the module handle
    Returns:0 in case of success, -1 in case of argument error and -2 if the module could not be closed/unloaded.

    Function: xmlModuleFree

    int	xmlModuleFree			(xmlModulePtr module)
    -

    The free operations free the data associated to the module but does not unload the associated shared library which may still be in use.

    -
    module:the module handle
    Returns:0 in case of success, -1 in case of argument error

    Function: xmlModuleOpen

    xmlModulePtr	xmlModuleOpen		(const char * name, 
    int options)
    -

    Opens a module/shared library given its name or path TODO: options are not yet implemented.

    -
    name:the module name
    options:a set of xmlModuleOption
    Returns:a handle for the module or NULL in case of error

    Function: xmlModuleSymbol

    int	xmlModuleSymbol			(xmlModulePtr module, 
    const char * name,
    void ** symbol)
    -

    Lookup for a symbol address in the given module

    -
    module:the module
    name:the name of the symbol
    symbol:the resulting symbol address
    Returns:0 if the symbol was found, or -1 in case of error

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xmlreader.html b/src/tools/docbook/libxml2/doc/html/libxml-xmlreader.html deleted file mode 100644 index fd525de575..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xmlreader.html +++ /dev/null @@ -1,324 +0,0 @@ - - -Module xmlreader from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xmlreader from libxml2

    API Menu
    API Indexes
    Related links

    API of the XML streaming API based on C# interfaces.

    Table of Contents

    Enum xmlParserProperties
    -
    Enum xmlParserSeverities
    -
    Enum xmlReaderTypes
    -
    Structure xmlTextReader
    struct _xmlTextReader -The content of this structure is not made public by the API. -
    Typedef void * xmlTextReaderLocatorPtr
    -
    Enum xmlTextReaderMode
    -
    Typedef xmlTextReader * xmlTextReaderPtr
    -
    void	xmlFreeTextReader		(xmlTextReaderPtr reader)
    -
    xmlTextReaderPtr	xmlNewTextReader	(xmlParserInputBufferPtr input, 
    const char * URI)
    -
    xmlTextReaderPtr	xmlNewTextReaderFilename	(const char * URI)
    -
    xmlTextReaderPtr	xmlReaderForDoc	(const xmlChar * cur, 
    const char * URL,
    const char * encoding,
    int options)
    -
    xmlTextReaderPtr	xmlReaderForFd	(int fd, 
    const char * URL,
    const char * encoding,
    int options)
    -
    xmlTextReaderPtr	xmlReaderForFile	(const char * filename, 
    const char * encoding,
    int options)
    -
    xmlTextReaderPtr	xmlReaderForIO	(xmlInputReadCallback ioread, 
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -
    xmlTextReaderPtr	xmlReaderForMemory	(const char * buffer, 
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -
    int	xmlReaderNewDoc			(xmlTextReaderPtr reader, 
    const xmlChar * cur,
    const char * URL,
    const char * encoding,
    int options)
    -
    int	xmlReaderNewFd			(xmlTextReaderPtr reader, 
    int fd,
    const char * URL,
    const char * encoding,
    int options)
    -
    int	xmlReaderNewFile		(xmlTextReaderPtr reader, 
    const char * filename,
    const char * encoding,
    int options)
    -
    int	xmlReaderNewIO			(xmlTextReaderPtr reader, 
    xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -
    int	xmlReaderNewMemory		(xmlTextReaderPtr reader, 
    const char * buffer,
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -
    int	xmlReaderNewWalker		(xmlTextReaderPtr reader, 
    xmlDocPtr doc)
    -
    xmlTextReaderPtr	xmlReaderWalker	(xmlDocPtr doc)
    -
    int	xmlTextReaderAttributeCount	(xmlTextReaderPtr reader)
    -
    xmlChar *	xmlTextReaderBaseUri	(xmlTextReaderPtr reader)
    -
    long	xmlTextReaderByteConsumed	(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderClose		(xmlTextReaderPtr reader)
    -
    const xmlChar *	xmlTextReaderConstBaseUri	(xmlTextReaderPtr reader)
    -
    const xmlChar *	xmlTextReaderConstEncoding	(xmlTextReaderPtr reader)
    -
    const xmlChar *	xmlTextReaderConstLocalName	(xmlTextReaderPtr reader)
    -
    const xmlChar *	xmlTextReaderConstName	(xmlTextReaderPtr reader)
    -
    const xmlChar *	xmlTextReaderConstNamespaceUri	(xmlTextReaderPtr reader)
    -
    const xmlChar *	xmlTextReaderConstPrefix	(xmlTextReaderPtr reader)
    -
    const xmlChar *	xmlTextReaderConstString	(xmlTextReaderPtr reader, 
    const xmlChar * str)
    -
    const xmlChar *	xmlTextReaderConstValue	(xmlTextReaderPtr reader)
    -
    const xmlChar *	xmlTextReaderConstXmlLang	(xmlTextReaderPtr reader)
    -
    const xmlChar *	xmlTextReaderConstXmlVersion	(xmlTextReaderPtr reader)
    -
    xmlDocPtr	xmlTextReaderCurrentDoc	(xmlTextReaderPtr reader)
    -
    xmlNodePtr	xmlTextReaderCurrentNode	(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderDepth		(xmlTextReaderPtr reader)
    -
    Function type: xmlTextReaderErrorFunc
    -void	xmlTextReaderErrorFunc		(void * arg, 
    const char * msg,
    xmlParserSeverities severity,
    xmlTextReaderLocatorPtr locator) -
    -
    xmlNodePtr	xmlTextReaderExpand	(xmlTextReaderPtr reader)
    -
    xmlChar *	xmlTextReaderGetAttribute	(xmlTextReaderPtr reader, 
    const xmlChar * name)
    -
    xmlChar *	xmlTextReaderGetAttributeNo	(xmlTextReaderPtr reader, 
    int no)
    -
    xmlChar *	xmlTextReaderGetAttributeNs	(xmlTextReaderPtr reader, 
    const xmlChar * localName,
    const xmlChar * namespaceURI)
    -
    void	xmlTextReaderGetErrorHandler	(xmlTextReaderPtr reader, 
    xmlTextReaderErrorFunc * f,
    void ** arg)
    -
    int	xmlTextReaderGetParserColumnNumber	(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderGetParserLineNumber	(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderGetParserProp	(xmlTextReaderPtr reader, 
    int prop)
    -
    xmlParserInputBufferPtr	xmlTextReaderGetRemainder	(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderHasAttributes	(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderHasValue		(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderIsDefault		(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderIsEmptyElement	(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderIsNamespaceDecl	(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderIsValid		(xmlTextReaderPtr reader)
    -
    xmlChar *	xmlTextReaderLocalName	(xmlTextReaderPtr reader)
    -
    xmlChar *	xmlTextReaderLocatorBaseURI	(xmlTextReaderLocatorPtr locator)
    -
    int	xmlTextReaderLocatorLineNumber	(xmlTextReaderLocatorPtr locator)
    -
    xmlChar *	xmlTextReaderLookupNamespace	(xmlTextReaderPtr reader, 
    const xmlChar * prefix)
    -
    int	xmlTextReaderMoveToAttribute	(xmlTextReaderPtr reader, 
    const xmlChar * name)
    -
    int	xmlTextReaderMoveToAttributeNo	(xmlTextReaderPtr reader, 
    int no)
    -
    int	xmlTextReaderMoveToAttributeNs	(xmlTextReaderPtr reader, 
    const xmlChar * localName,
    const xmlChar * namespaceURI)
    -
    int	xmlTextReaderMoveToElement	(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderMoveToFirstAttribute	(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderMoveToNextAttribute	(xmlTextReaderPtr reader)
    -
    xmlChar *	xmlTextReaderName	(xmlTextReaderPtr reader)
    -
    xmlChar *	xmlTextReaderNamespaceUri	(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderNext		(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderNextSibling	(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderNodeType		(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderNormalization	(xmlTextReaderPtr reader)
    -
    xmlChar *	xmlTextReaderPrefix	(xmlTextReaderPtr reader)
    -
    xmlNodePtr	xmlTextReaderPreserve	(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderPreservePattern	(xmlTextReaderPtr reader, 
    const xmlChar * pattern,
    const xmlChar ** namespaces)
    -
    int	xmlTextReaderQuoteChar		(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderRead		(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderReadAttributeValue	(xmlTextReaderPtr reader)
    -
    xmlChar *	xmlTextReaderReadInnerXml	(xmlTextReaderPtr reader)
    -
    xmlChar *	xmlTextReaderReadOuterXml	(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderReadState		(xmlTextReaderPtr reader)
    -
    xmlChar *	xmlTextReaderReadString	(xmlTextReaderPtr reader)
    -
    int	xmlTextReaderRelaxNGSetSchema	(xmlTextReaderPtr reader, 
    xmlRelaxNGPtr schema)
    -
    int	xmlTextReaderRelaxNGValidate	(xmlTextReaderPtr reader, 
    const char * rng)
    -
    int	xmlTextReaderSchemaValidate	(xmlTextReaderPtr reader, 
    const char * xsd)
    -
    int	xmlTextReaderSchemaValidateCtxt	(xmlTextReaderPtr reader, 
    xmlSchemaValidCtxtPtr ctxt,
    int options)
    -
    void	xmlTextReaderSetErrorHandler	(xmlTextReaderPtr reader, 
    xmlTextReaderErrorFunc f,
    void * arg)
    -
    int	xmlTextReaderSetParserProp	(xmlTextReaderPtr reader, 
    int prop,
    int value)
    -
    int	xmlTextReaderSetSchema		(xmlTextReaderPtr reader, 
    xmlSchemaPtr schema)
    -
    void	xmlTextReaderSetStructuredErrorHandler	(xmlTextReaderPtr reader, 
    xmlStructuredErrorFunc f,
    void * arg)
    -
    int	xmlTextReaderStandalone		(xmlTextReaderPtr reader)
    -
    xmlChar *	xmlTextReaderValue	(xmlTextReaderPtr reader)
    -
    xmlChar *	xmlTextReaderXmlLang	(xmlTextReaderPtr reader)
    -

    Description

    -

    Enum xmlParserProperties

    Enum xmlParserProperties {
    -    XML_PARSER_LOADDTD = 1
    -    XML_PARSER_DEFAULTATTRS = 2
    -    XML_PARSER_VALIDATE = 3
    -    XML_PARSER_SUBST_ENTITIES = 4
    -}
    -

    Enum xmlParserSeverities

    Enum xmlParserSeverities {
    -    XML_PARSER_SEVERITY_VALIDITY_WARNING = 1
    -    XML_PARSER_SEVERITY_VALIDITY_ERROR = 2
    -    XML_PARSER_SEVERITY_WARNING = 3
    -    XML_PARSER_SEVERITY_ERROR = 4
    -}
    -

    Enum xmlReaderTypes

    Enum xmlReaderTypes {
    -    XML_READER_TYPE_NONE = 0
    -    XML_READER_TYPE_ELEMENT = 1
    -    XML_READER_TYPE_ATTRIBUTE = 2
    -    XML_READER_TYPE_TEXT = 3
    -    XML_READER_TYPE_CDATA = 4
    -    XML_READER_TYPE_ENTITY_REFERENCE = 5
    -    XML_READER_TYPE_ENTITY = 6
    -    XML_READER_TYPE_PROCESSING_INSTRUCTION = 7
    -    XML_READER_TYPE_COMMENT = 8
    -    XML_READER_TYPE_DOCUMENT = 9
    -    XML_READER_TYPE_DOCUMENT_TYPE = 10
    -    XML_READER_TYPE_DOCUMENT_FRAGMENT = 11
    -    XML_READER_TYPE_NOTATION = 12
    -    XML_READER_TYPE_WHITESPACE = 13
    -    XML_READER_TYPE_SIGNIFICANT_WHITESPACE = 14
    -    XML_READER_TYPE_END_ELEMENT = 15
    -    XML_READER_TYPE_END_ENTITY = 16
    -    XML_READER_TYPE_XML_DECLARATION = 17
    -}
    -

    Structure xmlTextReader

    Structure xmlTextReader
    struct _xmlTextReader { -The content of this structure is not made public by the API. -}

    Enum xmlTextReaderMode

    Enum xmlTextReaderMode {
    -    XML_TEXTREADER_MODE_INITIAL = 0
    -    XML_TEXTREADER_MODE_INTERACTIVE = 1
    -    XML_TEXTREADER_MODE_ERROR = 2
    -    XML_TEXTREADER_MODE_EOF = 3
    -    XML_TEXTREADER_MODE_CLOSED = 4
    -    XML_TEXTREADER_MODE_READING = 5
    -}
    -
    - Pointer to an xmlReader context. -

    Function: xmlFreeTextReader

    void	xmlFreeTextReader		(xmlTextReaderPtr reader)
    -

    Deallocate all the resources associated to the reader

    -
    reader:the xmlTextReaderPtr

    Function: xmlNewTextReader

    xmlTextReaderPtr	xmlNewTextReader	(xmlParserInputBufferPtr input, 
    const char * URI)
    -

    Create an xmlTextReader structure fed with @input

    -
    input:the xmlParserInputBufferPtr used to read data
    URI:the URI information for the source if available
    Returns:the new xmlTextReaderPtr or NULL in case of error

    Function: xmlNewTextReaderFilename

    xmlTextReaderPtr	xmlNewTextReaderFilename	(const char * URI)
    -

    Create an xmlTextReader structure fed with the resource at @URI

    -
    URI:the URI of the resource to process
    Returns:the new xmlTextReaderPtr or NULL in case of error

    Function: xmlReaderForDoc

    xmlTextReaderPtr	xmlReaderForDoc	(const xmlChar * cur, 
    const char * URL,
    const char * encoding,
    int options)
    -

    Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption.

    -
    cur:a pointer to a zero terminated string
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the new reader or NULL in case of error.

    Function: xmlReaderForFd

    xmlTextReaderPtr	xmlReaderForFd	(int fd, 
    const char * URL,
    const char * encoding,
    int options)
    -

    Create an xmltextReader for an XML from a file descriptor. The parsing flags @options are a combination of xmlParserOption. NOTE that the file descriptor will not be closed when the reader is closed or reset.

    -
    fd:an open file descriptor
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the new reader or NULL in case of error.

    Function: xmlReaderForFile

    xmlTextReaderPtr	xmlReaderForFile	(const char * filename, 
    const char * encoding,
    int options)
    -

    parse an XML file from the filesystem or the network. The parsing flags @options are a combination of xmlParserOption.

    -
    filename:a file or URL
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the new reader or NULL in case of error.

    Function: xmlReaderForIO

    xmlTextReaderPtr	xmlReaderForIO	(xmlInputReadCallback ioread, 
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -

    Create an xmltextReader for an XML document from I/O functions and source. The parsing flags @options are a combination of xmlParserOption.

    -
    ioread:an I/O read function
    ioclose:an I/O close function
    ioctx:an I/O handler
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the new reader or NULL in case of error.

    Function: xmlReaderForMemory

    xmlTextReaderPtr	xmlReaderForMemory	(const char * buffer, 
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -

    Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption.

    -
    buffer:a pointer to a char array
    size:the size of the array
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:the new reader or NULL in case of error.

    Function: xmlReaderNewDoc

    int	xmlReaderNewDoc			(xmlTextReaderPtr reader, 
    const xmlChar * cur,
    const char * URL,
    const char * encoding,
    int options)
    -

    Setup an xmltextReader to parse an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader.

    -
    reader:an XML reader
    cur:a pointer to a zero terminated string
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:0 in case of success and -1 in case of error

    Function: xmlReaderNewFd

    int	xmlReaderNewFd			(xmlTextReaderPtr reader, 
    int fd,
    const char * URL,
    const char * encoding,
    int options)
    -

    Setup an xmltextReader to parse an XML from a file descriptor. NOTE that the file descriptor will not be closed when the reader is closed or reset. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader.

    -
    reader:an XML reader
    fd:an open file descriptor
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:0 in case of success and -1 in case of error

    Function: xmlReaderNewFile

    int	xmlReaderNewFile		(xmlTextReaderPtr reader, 
    const char * filename,
    const char * encoding,
    int options)
    -

    parse an XML file from the filesystem or the network. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader.

    -
    reader:an XML reader
    filename:a file or URL
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:0 in case of success and -1 in case of error

    Function: xmlReaderNewIO

    int	xmlReaderNewIO			(xmlTextReaderPtr reader, 
    xmlInputReadCallback ioread,
    xmlInputCloseCallback ioclose,
    void * ioctx,
    const char * URL,
    const char * encoding,
    int options)
    -

    Setup an xmltextReader to parse an XML document from I/O functions and source. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader.

    -
    reader:an XML reader
    ioread:an I/O read function
    ioclose:an I/O close function
    ioctx:an I/O handler
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:0 in case of success and -1 in case of error

    Function: xmlReaderNewMemory

    int	xmlReaderNewMemory		(xmlTextReaderPtr reader, 
    const char * buffer,
    int size,
    const char * URL,
    const char * encoding,
    int options)
    -

    Setup an xmltextReader to parse an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader.

    -
    reader:an XML reader
    buffer:a pointer to a char array
    size:the size of the array
    URL:the base URL to use for the document
    encoding:the document encoding, or NULL
    options:a combination of xmlParserOption
    Returns:0 in case of success and -1 in case of error

    Function: xmlReaderNewWalker

    int	xmlReaderNewWalker		(xmlTextReaderPtr reader, 
    xmlDocPtr doc)
    -

    Setup an xmltextReader to parse a preparsed XML document. This reuses the existing @reader xmlTextReader.

    -
    reader:an XML reader
    doc:a preparsed document
    Returns:0 in case of success and -1 in case of error

    Function: xmlReaderWalker

    xmlTextReaderPtr	xmlReaderWalker	(xmlDocPtr doc)
    -

    Create an xmltextReader for a preparsed document.

    -
    doc:a preparsed document
    Returns:the new reader or NULL in case of error.

    Function: xmlTextReaderAttributeCount

    int	xmlTextReaderAttributeCount	(xmlTextReaderPtr reader)
    -

    Provides the number of attributes of the current node

    -
    reader:the xmlTextReaderPtr used
    Returns:0 i no attributes, -1 in case of error or the attribute count

    Function: xmlTextReaderBaseUri

    xmlChar *	xmlTextReaderBaseUri	(xmlTextReaderPtr reader)
    -

    The base URI of the node.

    -
    reader:the xmlTextReaderPtr used
    Returns:the base URI or NULL if not available

    Function: xmlTextReaderByteConsumed

    long	xmlTextReaderByteConsumed	(xmlTextReaderPtr reader)
    -

    This function provides the current index of the parser used by the reader, relative to the start of the current entity. This function actually just wraps a call to xmlBytesConsumed() for the parser context associated with the reader. See xmlBytesConsumed() for more information.

    -
    reader:an XML reader
    Returns:the index in bytes from the beginning of the entity or -1 in case the index could not be computed.

    Function: xmlTextReaderClose

    int	xmlTextReaderClose		(xmlTextReaderPtr reader)
    -

    This method releases any resources allocated by the current instance changes the state to Closed and close any underlying input.

    -
    reader:the xmlTextReaderPtr used
    Returns:0 or -1 in case of error

    Function: xmlTextReaderConstBaseUri

    const xmlChar *	xmlTextReaderConstBaseUri	(xmlTextReaderPtr reader)
    -

    The base URI of the node.

    -
    reader:the xmlTextReaderPtr used
    Returns:the base URI or NULL if not available, the string will be deallocated with the reader

    Function: xmlTextReaderConstEncoding

    const xmlChar *	xmlTextReaderConstEncoding	(xmlTextReaderPtr reader)
    -

    Determine the encoding of the document being read.

    -
    reader:the xmlTextReaderPtr used
    Returns:a string containing the encoding of the document or NULL in case of error. The string is deallocated with the reader.

    Function: xmlTextReaderConstLocalName

    const xmlChar *	xmlTextReaderConstLocalName	(xmlTextReaderPtr reader)
    -

    The local name of the node.

    -
    reader:the xmlTextReaderPtr used
    Returns:the local name or NULL if not available, the string will be deallocated with the reader.

    Function: xmlTextReaderConstName

    const xmlChar *	xmlTextReaderConstName	(xmlTextReaderPtr reader)
    -

    The qualified name of the node, equal to Prefix :LocalName.

    -
    reader:the xmlTextReaderPtr used
    Returns:the local name or NULL if not available, the string is deallocated with the reader.

    Function: xmlTextReaderConstNamespaceUri

    const xmlChar *	xmlTextReaderConstNamespaceUri	(xmlTextReaderPtr reader)
    -

    The URI defining the namespace associated with the node.

    -
    reader:the xmlTextReaderPtr used
    Returns:the namespace URI or NULL if not available, the string will be deallocated with the reader

    Function: xmlTextReaderConstPrefix

    const xmlChar *	xmlTextReaderConstPrefix	(xmlTextReaderPtr reader)
    -

    A shorthand reference to the namespace associated with the node.

    -
    reader:the xmlTextReaderPtr used
    Returns:the prefix or NULL if not available, the string is deallocated with the reader.

    Function: xmlTextReaderConstString

    const xmlChar *	xmlTextReaderConstString	(xmlTextReaderPtr reader, 
    const xmlChar * str)
    -

    Get an interned string from the reader, allows for example to speedup string name comparisons

    -
    reader:the xmlTextReaderPtr used
    str:the string to intern.
    Returns:an interned copy of the string or NULL in case of error. The string will be deallocated with the reader.

    Function: xmlTextReaderConstValue

    const xmlChar *	xmlTextReaderConstValue	(xmlTextReaderPtr reader)
    -

    Provides the text value of the node if present

    -
    reader:the xmlTextReaderPtr used
    Returns:the string or NULL if not available. The result will be deallocated on the next Read() operation.

    Function: xmlTextReaderConstXmlLang

    const xmlChar *	xmlTextReaderConstXmlLang	(xmlTextReaderPtr reader)
    -

    The xml:lang scope within which the node resides.

    -
    reader:the xmlTextReaderPtr used
    Returns:the xml:lang value or NULL if none exists.

    Function: xmlTextReaderConstXmlVersion

    const xmlChar *	xmlTextReaderConstXmlVersion	(xmlTextReaderPtr reader)
    -

    Determine the XML version of the document being read.

    -
    reader:the xmlTextReaderPtr used
    Returns:a string containing the XML version of the document or NULL in case of error. The string is deallocated with the reader.

    Function: xmlTextReaderCurrentDoc

    xmlDocPtr	xmlTextReaderCurrentDoc	(xmlTextReaderPtr reader)
    -

    Hacking interface allowing to get the xmlDocPtr correponding to the current document being accessed by the xmlTextReader. NOTE: as a result of this call, the reader will not destroy the associated XML document and calling xmlFreeDoc() on the result is needed once the reader parsing has finished.

    -
    reader:the xmlTextReaderPtr used
    Returns:the xmlDocPtr or NULL in case of error.

    Function: xmlTextReaderCurrentNode

    xmlNodePtr	xmlTextReaderCurrentNode	(xmlTextReaderPtr reader)
    -

    Hacking interface allowing to get the xmlNodePtr correponding to the current node being accessed by the xmlTextReader. This is dangerous because the underlying node may be destroyed on the next Reads.

    -
    reader:the xmlTextReaderPtr used
    Returns:the xmlNodePtr or NULL in case of error.

    Function: xmlTextReaderDepth

    int	xmlTextReaderDepth		(xmlTextReaderPtr reader)
    -

    The depth of the node in the tree.

    -
    reader:the xmlTextReaderPtr used
    Returns:the depth or -1 in case of error

    Function type: xmlTextReaderErrorFunc

    Function type: xmlTextReaderErrorFunc
    -void	xmlTextReaderErrorFunc		(void * arg, 
    const char * msg,
    xmlParserSeverities severity,
    xmlTextReaderLocatorPtr locator) -

    arg:
    msg:
    severity:
    locator:

    -

    Function: xmlTextReaderExpand

    xmlNodePtr	xmlTextReaderExpand	(xmlTextReaderPtr reader)
    -

    Reads the contents of the current node and the full subtree. It then makes the subtree available until the next xmlTextReaderRead() call

    -
    reader:the xmlTextReaderPtr used
    Returns:a node pointer valid until the next xmlTextReaderRead() call or NULL in case of error.

    Function: xmlTextReaderGetAttribute

    xmlChar *	xmlTextReaderGetAttribute	(xmlTextReaderPtr reader, 
    const xmlChar * name)
    -

    Provides the value of the attribute with the specified qualified name.

    -
    reader:the xmlTextReaderPtr used
    name:the qualified name of the attribute.
    Returns:a string containing the value of the specified attribute, or NULL in case of error. The string must be deallocated by the caller.

    Function: xmlTextReaderGetAttributeNo

    xmlChar *	xmlTextReaderGetAttributeNo	(xmlTextReaderPtr reader, 
    int no)
    -

    Provides the value of the attribute with the specified index relative to the containing element.

    -
    reader:the xmlTextReaderPtr used
    no:the zero-based index of the attribute relative to the containing element
    Returns:a string containing the value of the specified attribute, or NULL in case of error. The string must be deallocated by the caller.

    Function: xmlTextReaderGetAttributeNs

    xmlChar *	xmlTextReaderGetAttributeNs	(xmlTextReaderPtr reader, 
    const xmlChar * localName,
    const xmlChar * namespaceURI)
    -

    Provides the value of the specified attribute

    -
    reader:the xmlTextReaderPtr used
    localName:the local name of the attribute.
    namespaceURI:the namespace URI of the attribute.
    Returns:a string containing the value of the specified attribute, or NULL in case of error. The string must be deallocated by the caller.

    Function: xmlTextReaderGetErrorHandler

    void	xmlTextReaderGetErrorHandler	(xmlTextReaderPtr reader, 
    xmlTextReaderErrorFunc * f,
    void ** arg)
    -

    Retrieve the error callback function and user argument.

    -
    reader:the xmlTextReaderPtr used
    f:the callback function or NULL is no callback has been registered
    arg:a user argument

    Function: xmlTextReaderGetParserColumnNumber

    int	xmlTextReaderGetParserColumnNumber	(xmlTextReaderPtr reader)
    -

    Provide the column number of the current parsing point.

    -
    reader:the user data (XML reader context)
    Returns:an int or 0 if not available

    Function: xmlTextReaderGetParserLineNumber

    int	xmlTextReaderGetParserLineNumber	(xmlTextReaderPtr reader)
    -

    Provide the line number of the current parsing point.

    -
    reader:the user data (XML reader context)
    Returns:an int or 0 if not available

    Function: xmlTextReaderGetParserProp

    int	xmlTextReaderGetParserProp	(xmlTextReaderPtr reader, 
    int prop)
    -

    Read the parser internal property.

    -
    reader:the xmlTextReaderPtr used
    prop:the xmlParserProperties to get
    Returns:the value, usually 0 or 1, or -1 in case of error.

    Function: xmlTextReaderGetRemainder

    xmlParserInputBufferPtr	xmlTextReaderGetRemainder	(xmlTextReaderPtr reader)
    -

    Method to get the remainder of the buffered XML. this method stops the parser, set its state to End Of File and return the input stream with what is left that the parser did not use. The implementation is not good, the parser certainly procgressed past what's left in reader->input, and there is an allocation problem. Best would be to rewrite it differently.

    -
    reader:the xmlTextReaderPtr used
    Returns:the xmlParserInputBufferPtr attached to the XML or NULL in case of error.

    Function: xmlTextReaderHasAttributes

    int	xmlTextReaderHasAttributes	(xmlTextReaderPtr reader)
    -

    Whether the node has attributes.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 if true, 0 if false, and -1 in case or error

    Function: xmlTextReaderHasValue

    int	xmlTextReaderHasValue		(xmlTextReaderPtr reader)
    -

    Whether the node can have a text value.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 if true, 0 if false, and -1 in case or error

    Function: xmlTextReaderIsDefault

    int	xmlTextReaderIsDefault		(xmlTextReaderPtr reader)
    -

    Whether an Attribute node was generated from the default value defined in the DTD or schema.

    -
    reader:the xmlTextReaderPtr used
    Returns:0 if not defaulted, 1 if defaulted, and -1 in case of error

    Function: xmlTextReaderIsEmptyElement

    int	xmlTextReaderIsEmptyElement	(xmlTextReaderPtr reader)
    -

    Check if the current node is empty

    -
    reader:the xmlTextReaderPtr used
    Returns:1 if empty, 0 if not and -1 in case of error

    Function: xmlTextReaderIsNamespaceDecl

    int	xmlTextReaderIsNamespaceDecl	(xmlTextReaderPtr reader)
    -

    Determine whether the current node is a namespace declaration rather than a regular attribute.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 if the current node is a namespace declaration, 0 if it is a regular attribute or other type of node, or -1 in case of error.

    Function: xmlTextReaderIsValid

    int	xmlTextReaderIsValid		(xmlTextReaderPtr reader)
    -

    Retrieve the validity status from the parser context

    -
    reader:the xmlTextReaderPtr used
    Returns:the flag value 1 if valid, 0 if no, and -1 in case of error

    Function: xmlTextReaderLocalName

    xmlChar *	xmlTextReaderLocalName	(xmlTextReaderPtr reader)
    -

    The local name of the node.

    -
    reader:the xmlTextReaderPtr used
    Returns:the local name or NULL if not available

    Function: xmlTextReaderLocatorBaseURI

    xmlChar *	xmlTextReaderLocatorBaseURI	(xmlTextReaderLocatorPtr locator)
    -

    Obtain the base URI for the given locator.

    -
    locator:the xmlTextReaderLocatorPtr used
    Returns:the base URI or NULL in case of error.

    Function: xmlTextReaderLocatorLineNumber

    int	xmlTextReaderLocatorLineNumber	(xmlTextReaderLocatorPtr locator)
    -

    Obtain the line number for the given locator.

    -
    locator:the xmlTextReaderLocatorPtr used
    Returns:the line number or -1 in case of error.

    Function: xmlTextReaderLookupNamespace

    xmlChar *	xmlTextReaderLookupNamespace	(xmlTextReaderPtr reader, 
    const xmlChar * prefix)
    -

    Resolves a namespace prefix in the scope of the current element.

    -
    reader:the xmlTextReaderPtr used
    prefix:the prefix whose namespace URI is to be resolved. To return the default namespace, specify NULL
    Returns:a string containing the namespace URI to which the prefix maps or NULL in case of error. The string must be deallocated by the caller.

    Function: xmlTextReaderMoveToAttribute

    int	xmlTextReaderMoveToAttribute	(xmlTextReaderPtr reader, 
    const xmlChar * name)
    -

    Moves the position of the current instance to the attribute with the specified qualified name.

    -
    reader:the xmlTextReaderPtr used
    name:the qualified name of the attribute.
    Returns:1 in case of success, -1 in case of error, 0 if not found

    Function: xmlTextReaderMoveToAttributeNo

    int	xmlTextReaderMoveToAttributeNo	(xmlTextReaderPtr reader, 
    int no)
    -

    Moves the position of the current instance to the attribute with the specified index relative to the containing element.

    -
    reader:the xmlTextReaderPtr used
    no:the zero-based index of the attribute relative to the containing element.
    Returns:1 in case of success, -1 in case of error, 0 if not found

    Function: xmlTextReaderMoveToAttributeNs

    int	xmlTextReaderMoveToAttributeNs	(xmlTextReaderPtr reader, 
    const xmlChar * localName,
    const xmlChar * namespaceURI)
    -

    Moves the position of the current instance to the attribute with the specified local name and namespace URI.

    -
    reader:the xmlTextReaderPtr used
    localName:the local name of the attribute.
    namespaceURI:the namespace URI of the attribute.
    Returns:1 in case of success, -1 in case of error, 0 if not found

    Function: xmlTextReaderMoveToElement

    int	xmlTextReaderMoveToElement	(xmlTextReaderPtr reader)
    -

    Moves the position of the current instance to the node that contains the current Attribute node.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 in case of success, -1 in case of error, 0 if not moved

    Function: xmlTextReaderMoveToFirstAttribute

    int	xmlTextReaderMoveToFirstAttribute	(xmlTextReaderPtr reader)
    -

    Moves the position of the current instance to the first attribute associated with the current node.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 in case of success, -1 in case of error, 0 if not found

    Function: xmlTextReaderMoveToNextAttribute

    int	xmlTextReaderMoveToNextAttribute	(xmlTextReaderPtr reader)
    -

    Moves the position of the current instance to the next attribute associated with the current node.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 in case of success, -1 in case of error, 0 if not found

    Function: xmlTextReaderName

    xmlChar *	xmlTextReaderName	(xmlTextReaderPtr reader)
    -

    The qualified name of the node, equal to Prefix :LocalName.

    -
    reader:the xmlTextReaderPtr used
    Returns:the local name or NULL if not available

    Function: xmlTextReaderNamespaceUri

    xmlChar *	xmlTextReaderNamespaceUri	(xmlTextReaderPtr reader)
    -

    The URI defining the namespace associated with the node.

    -
    reader:the xmlTextReaderPtr used
    Returns:the namespace URI or NULL if not available

    Function: xmlTextReaderNext

    int	xmlTextReaderNext		(xmlTextReaderPtr reader)
    -

    Skip to the node following the current one in document order while avoiding the subtree if any.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 if the node was read successfully, 0 if there is no more nodes to read, or -1 in case of error

    Function: xmlTextReaderNextSibling

    int	xmlTextReaderNextSibling	(xmlTextReaderPtr reader)
    -

    Skip to the node following the current one in document order while avoiding the subtree if any. Currently implemented only for Readers built on a document

    -
    reader:the xmlTextReaderPtr used
    Returns:1 if the node was read successfully, 0 if there is no more nodes to read, or -1 in case of error

    Function: xmlTextReaderNodeType

    int	xmlTextReaderNodeType		(xmlTextReaderPtr reader)
    -

    Get the node type of the current node Reference: http://dotgnu.org/pnetlib-doc/System/Xml/XmlNodeType.html

    -
    reader:the xmlTextReaderPtr used
    Returns:the xmlNodeType of the current node or -1 in case of error

    Function: xmlTextReaderNormalization

    int	xmlTextReaderNormalization	(xmlTextReaderPtr reader)
    -

    The value indicating whether to normalize white space and attribute values. Since attribute value and end of line normalizations are a MUST in the XML specification only the value true is accepted. The broken bahaviour of accepting out of range character entities like &#0; is of course not supported either.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 or -1 in case of error.

    Function: xmlTextReaderPrefix

    xmlChar *	xmlTextReaderPrefix	(xmlTextReaderPtr reader)
    -

    A shorthand reference to the namespace associated with the node.

    -
    reader:the xmlTextReaderPtr used
    Returns:the prefix or NULL if not available

    Function: xmlTextReaderPreserve

    xmlNodePtr	xmlTextReaderPreserve	(xmlTextReaderPtr reader)
    -

    This tells the XML Reader to preserve the current node. The caller must also use xmlTextReaderCurrentDoc() to keep an handle on the resulting document once parsing has finished

    -
    reader:the xmlTextReaderPtr used
    Returns:the xmlNodePtr or NULL in case of error.

    Function: xmlTextReaderPreservePattern

    int	xmlTextReaderPreservePattern	(xmlTextReaderPtr reader, 
    const xmlChar * pattern,
    const xmlChar ** namespaces)
    -

    This tells the XML Reader to preserve all nodes matched by the pattern. The caller must also use xmlTextReaderCurrentDoc() to keep an handle on the resulting document once parsing has finished

    -
    reader:the xmlTextReaderPtr used
    pattern:an XPath subset pattern
    namespaces:the prefix definitions, array of [URI, prefix] or NULL
    Returns:a positive number in case of success and -1 in case of error

    Function: xmlTextReaderQuoteChar

    int	xmlTextReaderQuoteChar		(xmlTextReaderPtr reader)
    -

    The quotation mark character used to enclose the value of an attribute.

    -
    reader:the xmlTextReaderPtr used
    Returns:" or ' and -1 in case of error

    Function: xmlTextReaderRead

    int	xmlTextReaderRead		(xmlTextReaderPtr reader)
    -

    Moves the position of the current instance to the next node in the stream, exposing its properties.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 if the node was read successfully, 0 if there is no more nodes to read, or -1 in case of error

    Function: xmlTextReaderReadAttributeValue

    int	xmlTextReaderReadAttributeValue	(xmlTextReaderPtr reader)
    -

    Parses an attribute value into one or more Text and EntityReference nodes.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 in case of success, 0 if the reader was not positionned on an ttribute node or all the attribute values have been read, or -1 in case of error.

    Function: xmlTextReaderReadInnerXml

    xmlChar *	xmlTextReaderReadInnerXml	(xmlTextReaderPtr reader)
    -

    Reads the contents of the current node, including child nodes and markup.

    -
    reader:the xmlTextReaderPtr used
    Returns:a string containing the XML content, or NULL if the current node is neither an element nor attribute, or has no child nodes. The string must be deallocated by the caller.

    Function: xmlTextReaderReadOuterXml

    xmlChar *	xmlTextReaderReadOuterXml	(xmlTextReaderPtr reader)
    -

    Reads the contents of the current node, including child nodes and markup.

    -
    reader:the xmlTextReaderPtr used
    Returns:a string containing the XML content, or NULL if the current node is neither an element nor attribute, or has no child nodes. The string must be deallocated by the caller.

    Function: xmlTextReaderReadState

    int	xmlTextReaderReadState		(xmlTextReaderPtr reader)
    -

    Gets the read state of the reader.

    -
    reader:the xmlTextReaderPtr used
    Returns:the state value, or -1 in case of error

    Function: xmlTextReaderReadString

    xmlChar *	xmlTextReaderReadString	(xmlTextReaderPtr reader)
    -

    Reads the contents of an element or a text node as a string.

    -
    reader:the xmlTextReaderPtr used
    Returns:a string containing the contents of the Element or Text node, or NULL if the reader is positioned on any other type of node. The string must be deallocated by the caller.

    Function: xmlTextReaderRelaxNGSetSchema

    int	xmlTextReaderRelaxNGSetSchema	(xmlTextReaderPtr reader, 
    xmlRelaxNGPtr schema)
    -

    Use RelaxNG to validate the document as it is processed. Activation is only possible before the first Read(). if @schema is NULL, then RelaxNG validation is desactivated. @ The @schema should not be freed until the reader is deallocated or its use has been deactivated.

    -
    reader:the xmlTextReaderPtr used
    schema:a precompiled RelaxNG schema
    Returns:0 in case the RelaxNG validation could be (des)activated and -1 in case of error.

    Function: xmlTextReaderRelaxNGValidate

    int	xmlTextReaderRelaxNGValidate	(xmlTextReaderPtr reader, 
    const char * rng)
    -

    Use RelaxNG to validate the document as it is processed. Activation is only possible before the first Read(). if @rng is NULL, then RelaxNG validation is desactivated.

    -
    reader:the xmlTextReaderPtr used
    rng:the path to a RelaxNG schema or NULL
    Returns:0 in case the RelaxNG validation could be (des)activated and -1 in case of error.

    Function: xmlTextReaderSchemaValidate

    int	xmlTextReaderSchemaValidate	(xmlTextReaderPtr reader, 
    const char * xsd)
    -

    Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read(). If @xsd is NULL, then XML Schema validation is deactivated.

    -
    reader:the xmlTextReaderPtr used
    xsd:the path to a W3C XSD schema or NULL
    Returns:0 in case the schemas validation could be (de)activated and -1 in case of error.

    Function: xmlTextReaderSchemaValidateCtxt

    int	xmlTextReaderSchemaValidateCtxt	(xmlTextReaderPtr reader, 
    xmlSchemaValidCtxtPtr ctxt,
    int options)
    -

    Use W3C XSD schema context to validate the document as it is processed. Activation is only possible before the first Read(). If @ctxt is NULL, then XML Schema validation is deactivated.

    -
    reader:the xmlTextReaderPtr used
    ctxt:the XML Schema validation context or NULL
    options:options (not used yet)
    Returns:0 in case the schemas validation could be (de)activated and -1 in case of error.

    Function: xmlTextReaderSetErrorHandler

    void	xmlTextReaderSetErrorHandler	(xmlTextReaderPtr reader, 
    xmlTextReaderErrorFunc f,
    void * arg)
    -

    Register a callback function that will be called on error and warnings. If @f is NULL, the default error and warning handlers are restored.

    -
    reader:the xmlTextReaderPtr used
    f:the callback function to call on error and warnings
    arg:a user argument to pass to the callback function

    Function: xmlTextReaderSetParserProp

    int	xmlTextReaderSetParserProp	(xmlTextReaderPtr reader, 
    int prop,
    int value)
    -

    Change the parser processing behaviour by changing some of its internal properties. Note that some properties can only be changed before any read has been done.

    -
    reader:the xmlTextReaderPtr used
    prop:the xmlParserProperties to set
    value:usually 0 or 1 to (de)activate it
    Returns:0 if the call was successful, or -1 in case of error

    Function: xmlTextReaderSetSchema

    int	xmlTextReaderSetSchema		(xmlTextReaderPtr reader, 
    xmlSchemaPtr schema)
    -

    Use XSD Schema to validate the document as it is processed. Activation is only possible before the first Read(). if @schema is NULL, then Schema validation is desactivated. @ The @schema should not be freed until the reader is deallocated or its use has been deactivated.

    -
    reader:the xmlTextReaderPtr used
    schema:a precompiled Schema schema
    Returns:0 in case the Schema validation could be (des)activated and -1 in case of error.

    Function: xmlTextReaderSetStructuredErrorHandler

    void	xmlTextReaderSetStructuredErrorHandler	(xmlTextReaderPtr reader, 
    xmlStructuredErrorFunc f,
    void * arg)
    -

    Register a callback function that will be called on error and warnings. If @f is NULL, the default error and warning handlers are restored.

    -
    reader:the xmlTextReaderPtr used
    f:the callback function to call on error and warnings
    arg:a user argument to pass to the callback function

    Function: xmlTextReaderStandalone

    int	xmlTextReaderStandalone		(xmlTextReaderPtr reader)
    -

    Determine the standalone status of the document being read.

    -
    reader:the xmlTextReaderPtr used
    Returns:1 if the document was declared to be standalone, 0 if it was declared to be not standalone, or -1 if the document did not specify its standalone status or in case of error.

    Function: xmlTextReaderValue

    xmlChar *	xmlTextReaderValue	(xmlTextReaderPtr reader)
    -

    Provides the text value of the node if present

    -
    reader:the xmlTextReaderPtr used
    Returns:the string or NULL if not available. The result must be deallocated with xmlFree()

    Function: xmlTextReaderXmlLang

    xmlChar *	xmlTextReaderXmlLang	(xmlTextReaderPtr reader)
    -

    The xml:lang scope within which the node resides.

    -
    reader:the xmlTextReaderPtr used
    Returns:the xml:lang value or NULL if none exists.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xmlregexp.html b/src/tools/docbook/libxml2/doc/html/libxml-xmlregexp.html deleted file mode 100644 index 69834f0fc0..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xmlregexp.html +++ /dev/null @@ -1,143 +0,0 @@ - - -Module xmlregexp from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xmlregexp from libxml2

    API Menu
    API Indexes
    Related links

    basic API for libxml regular expressions handling used for XML Schemas and validation.

    Table of Contents

    Structure xmlExpCtxt
    struct _xmlExpCtxt -The content of this structure is not made public by the API. -
    Typedef xmlExpCtxt * xmlExpCtxtPtr
    -
    Structure xmlExpNode
    struct _xmlExpNode -The content of this structure is not made public by the API. -
    Typedef xmlExpNode * xmlExpNodePtr
    -
    Enum xmlExpNodeType
    -
    Structure xmlRegExecCtxt
    struct _xmlRegExecCtxt -The content of this structure is not made public by the API. -
    Typedef xmlRegExecCtxt * xmlRegExecCtxtPtr
    -
    Structure xmlRegexp
    struct _xmlRegexp -The content of this structure is not made public by the API. -
    Typedef xmlRegexp * xmlRegexpPtr
    -
    int	xmlExpCtxtNbCons		(xmlExpCtxtPtr ctxt)
    -
    int	xmlExpCtxtNbNodes		(xmlExpCtxtPtr ctxt)
    -
    void	xmlExpDump			(xmlBufferPtr buf, 
    xmlExpNodePtr expr)
    -
    xmlExpNodePtr	xmlExpExpDerive		(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp,
    xmlExpNodePtr sub)
    -
    void	xmlExpFree			(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp)
    -
    void	xmlExpFreeCtxt			(xmlExpCtxtPtr ctxt)
    -
    int	xmlExpGetLanguage		(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp,
    const xmlChar ** langList,
    int len)
    -
    int	xmlExpGetStart			(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp,
    const xmlChar ** tokList,
    int len)
    -
    int	xmlExpIsNillable		(xmlExpNodePtr exp)
    -
    int	xmlExpMaxToken			(xmlExpNodePtr expr)
    -
    xmlExpNodePtr	xmlExpNewAtom		(xmlExpCtxtPtr ctxt, 
    const xmlChar * name,
    int len)
    -
    xmlExpCtxtPtr	xmlExpNewCtxt		(int maxNodes, 
    xmlDictPtr dict)
    -
    xmlExpNodePtr	xmlExpNewOr		(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr left,
    xmlExpNodePtr right)
    -
    xmlExpNodePtr	xmlExpNewRange		(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr subset,
    int min,
    int max)
    -
    xmlExpNodePtr	xmlExpNewSeq		(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr left,
    xmlExpNodePtr right)
    -
    xmlExpNodePtr	xmlExpParse		(xmlExpCtxtPtr ctxt, 
    const char * expr)
    -
    void	xmlExpRef			(xmlExpNodePtr exp)
    -
    xmlExpNodePtr	xmlExpStringDerive	(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp,
    const xmlChar * str,
    int len)
    -
    int	xmlExpSubsume			(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp,
    xmlExpNodePtr sub)
    -
    Function type: xmlRegExecCallbacks
    -void	xmlRegExecCallbacks		(xmlRegExecCtxtPtr exec, 
    const xmlChar * token,
    void * transdata,
    void * inputdata) -
    -
    int	xmlRegExecErrInfo		(xmlRegExecCtxtPtr exec, 
    const xmlChar ** string,
    int * nbval,
    int * nbneg,
    xmlChar ** values,
    int * terminal)
    -
    int	xmlRegExecNextValues		(xmlRegExecCtxtPtr exec, 
    int * nbval,
    int * nbneg,
    xmlChar ** values,
    int * terminal)
    -
    int	xmlRegExecPushString		(xmlRegExecCtxtPtr exec, 
    const xmlChar * value,
    void * data)
    -
    int	xmlRegExecPushString2		(xmlRegExecCtxtPtr exec, 
    const xmlChar * value,
    const xmlChar * value2,
    void * data)
    -
    void	xmlRegFreeExecCtxt		(xmlRegExecCtxtPtr exec)
    -
    void	xmlRegFreeRegexp		(xmlRegexpPtr regexp)
    -
    xmlRegExecCtxtPtr	xmlRegNewExecCtxt	(xmlRegexpPtr comp, 
    xmlRegExecCallbacks callback,
    void * data)
    -
    xmlRegexpPtr	xmlRegexpCompile	(const xmlChar * regexp)
    -
    int	xmlRegexpExec			(xmlRegexpPtr comp, 
    const xmlChar * content)
    -
    int	xmlRegexpIsDeterminist		(xmlRegexpPtr comp)
    -
    void	xmlRegexpPrint			(FILE * output, 
    xmlRegexpPtr regexp)
    -

    Description

    -

    Structure xmlExpCtxt

    Structure xmlExpCtxt
    struct _xmlExpCtxt { -The content of this structure is not made public by the API. -}

    Structure xmlExpNode

    Structure xmlExpNode
    struct _xmlExpNode { -The content of this structure is not made public by the API. -}

    Enum xmlExpNodeType

    Enum xmlExpNodeType {
    -    XML_EXP_EMPTY = 0
    -    XML_EXP_FORBID = 1
    -    XML_EXP_ATOM = 2
    -    XML_EXP_SEQ = 3
    -    XML_EXP_OR = 4
    -    XML_EXP_COUNT = 5
    -}
    -

    Structure xmlRegExecCtxt

    Structure xmlRegExecCtxt
    struct _xmlRegExecCtxt { -The content of this structure is not made public by the API. -}
    - A libxml progressive regular expression evaluation context -

    Structure xmlRegexp

    Structure xmlRegexp
    struct _xmlRegexp { -The content of this structure is not made public by the API. -}
    - A libxml regular expression, they can actually be far more complex thank the POSIX regex expressions. -

    Function: xmlExpCtxtNbCons

    int	xmlExpCtxtNbCons		(xmlExpCtxtPtr ctxt)
    -

    Debugging facility provides the number of allocated nodes over lifetime

    -
    ctxt:an expression context
    Returns:the number of nodes ever allocated or -1 in case of error

    Function: xmlExpCtxtNbNodes

    int	xmlExpCtxtNbNodes		(xmlExpCtxtPtr ctxt)
    -

    Debugging facility provides the number of allocated nodes at a that point

    -
    ctxt:an expression context
    Returns:the number of nodes in use or -1 in case of error

    Function: xmlExpDump

    void	xmlExpDump			(xmlBufferPtr buf, 
    xmlExpNodePtr expr)
    -

    Serialize the expression as compiled to the buffer

    -
    buf:a buffer to receive the output
    expr:the compiled expression

    Function: xmlExpExpDerive

    xmlExpNodePtr	xmlExpExpDerive		(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp,
    xmlExpNodePtr sub)
    -

    Evaluates the expression resulting from @exp consuming a sub expression @sub Based on algebraic derivation and sometimes direct Brzozowski derivation it usually tatkes less than linear time and can handle expressions generating infinite languages.

    -
    ctxt:the expressions context
    exp:the englobing expression
    sub:the subexpression
    Returns:the resulting expression or NULL in case of internal error, the result must be freed

    Function: xmlExpFree

    void	xmlExpFree			(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp)
    -

    Dereference the expression

    -
    ctxt:the expression context
    exp:the expression

    Function: xmlExpFreeCtxt

    void	xmlExpFreeCtxt			(xmlExpCtxtPtr ctxt)
    -

    Free an expression context

    -
    ctxt:an expression context

    Function: xmlExpGetLanguage

    int	xmlExpGetLanguage		(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp,
    const xmlChar ** langList,
    int len)
    -

    Find all the strings used in @exp and store them in @list

    -
    ctxt:the expression context
    exp:the expression
    langList:where to store the tokens
    len:the allocated lenght of @list
    Returns:the number of unique strings found, -1 in case of errors and -2 if there is more than @len strings

    Function: xmlExpGetStart

    int	xmlExpGetStart			(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp,
    const xmlChar ** tokList,
    int len)
    -

    Find all the strings that appears at the start of the languages accepted by @exp and store them in @list. E.g. for (a, b) | c it will return the list [a, c]

    -
    ctxt:the expression context
    exp:the expression
    tokList:where to store the tokens
    len:the allocated lenght of @list
    Returns:the number of unique strings found, -1 in case of errors and -2 if there is more than @len strings

    Function: xmlExpIsNillable

    int	xmlExpIsNillable		(xmlExpNodePtr exp)
    -

    Finds if the expression is nillable, i.e. if it accepts the empty sequqnce

    -
    exp:the expression
    Returns:1 if nillable, 0 if not and -1 in case of error

    Function: xmlExpMaxToken

    int	xmlExpMaxToken			(xmlExpNodePtr expr)
    -

    Indicate the maximum number of input a expression can accept

    -
    expr:a compiled expression
    Returns:the maximum length or -1 in case of error

    Function: xmlExpNewAtom

    xmlExpNodePtr	xmlExpNewAtom		(xmlExpCtxtPtr ctxt, 
    const xmlChar * name,
    int len)
    -

    Get the atom associated to this name from that context

    -
    ctxt:the expression context
    name:the atom name
    len:the atom name lenght in byte (or -1);
    Returns:the node or NULL in case of error

    Function: xmlExpNewCtxt

    xmlExpCtxtPtr	xmlExpNewCtxt		(int maxNodes, 
    xmlDictPtr dict)
    -

    Creates a new context for manipulating expressions

    -
    maxNodes:the maximum number of nodes
    dict:optional dictionnary to use internally
    Returns:the context or NULL in case of error

    Function: xmlExpNewOr

    xmlExpNodePtr	xmlExpNewOr		(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr left,
    xmlExpNodePtr right)
    -

    Get the atom associated to the choice @left | @right Note that @left and @right are consumed in the operation, to keep an handle on them use xmlExpRef() and use xmlExpFree() to release them, this is true even in case of failure (unless ctxt == NULL).

    -
    ctxt:the expression context
    left:left expression
    right:right expression
    Returns:the node or NULL in case of error

    Function: xmlExpNewRange

    xmlExpNodePtr	xmlExpNewRange		(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr subset,
    int min,
    int max)
    -

    Get the atom associated to the range (@subset){@min, @max} Note that @subset is consumed in the operation, to keep an handle on it use xmlExpRef() and use xmlExpFree() to release it, this is true even in case of failure (unless ctxt == NULL).

    -
    ctxt:the expression context
    subset:the expression to be repeated
    min:the lower bound for the repetition
    max:the upper bound for the repetition, -1 means infinite
    Returns:the node or NULL in case of error

    Function: xmlExpNewSeq

    xmlExpNodePtr	xmlExpNewSeq		(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr left,
    xmlExpNodePtr right)
    -

    Get the atom associated to the sequence @left , @right Note that @left and @right are consumed in the operation, to keep an handle on them use xmlExpRef() and use xmlExpFree() to release them, this is true even in case of failure (unless ctxt == NULL).

    -
    ctxt:the expression context
    left:left expression
    right:right expression
    Returns:the node or NULL in case of error

    Function: xmlExpParse

    xmlExpNodePtr	xmlExpParse		(xmlExpCtxtPtr ctxt, 
    const char * expr)
    -

    Minimal parser for regexps, it understand the following constructs - string terminals - choice operator | - sequence operator , - subexpressions (...) - usual cardinality operators + * and ? - finite sequences { min, max } - infinite sequences { min, * } There is minimal checkings made especially no checking on strings values

    -
    ctxt:the expressions context
    expr:the 0 terminated string
    Returns:a new expression or NULL in case of failure

    Function: xmlExpRef

    void	xmlExpRef			(xmlExpNodePtr exp)
    -

    Increase the reference count of the expression

    -
    exp:the expression

    Function: xmlExpStringDerive

    xmlExpNodePtr	xmlExpStringDerive	(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp,
    const xmlChar * str,
    int len)
    -

    Do one step of Brzozowski derivation of the expression @exp with respect to the input string

    -
    ctxt:the expression context
    exp:the expression
    str:the string
    len:the string len in bytes if available
    Returns:the resulting expression or NULL in case of internal error

    Function: xmlExpSubsume

    int	xmlExpSubsume			(xmlExpCtxtPtr ctxt, 
    xmlExpNodePtr exp,
    xmlExpNodePtr sub)
    -

    Check whether @exp accepts all the languages accexpted by @sub the input being a subexpression.

    -
    ctxt:the expressions context
    exp:the englobing expression
    sub:the subexpression
    Returns:1 if true 0 if false and -1 in case of failure.

    Function type: xmlRegExecCallbacks

    Function type: xmlRegExecCallbacks
    -void	xmlRegExecCallbacks		(xmlRegExecCtxtPtr exec, 
    const xmlChar * token,
    void * transdata,
    void * inputdata) -

    exec:
    token:
    transdata:
    inputdata:

    -

    Function: xmlRegExecErrInfo

    int	xmlRegExecErrInfo		(xmlRegExecCtxtPtr exec, 
    const xmlChar ** string,
    int * nbval,
    int * nbneg,
    xmlChar ** values,
    int * terminal)
    -

    Extract error informations from the regexp execution, the parameter @string will be updated with the value pushed and not accepted, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values

    -
    exec:a regexp execution context generating an error
    string:return value for the error string
    nbval:pointer to the number of accepted values IN/OUT
    nbneg:return number of negative transitions
    values:pointer to the array of acceptable values
    terminal:return value if this was a terminal state
    Returns:will be freed with the @exec context and don't need to be deallocated. Returns: 0 in case of success or -1 in case of error.

    Function: xmlRegExecNextValues

    int	xmlRegExecNextValues		(xmlRegExecCtxtPtr exec, 
    int * nbval,
    int * nbneg,
    xmlChar ** values,
    int * terminal)
    -

    Extract informations from the regexp execution, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values

    -
    exec:a regexp execution context
    nbval:pointer to the number of accepted values IN/OUT
    nbneg:return number of negative transitions
    values:pointer to the array of acceptable values
    terminal:return value if this was a terminal state
    Returns:will be freed with the @exec context and don't need to be deallocated. Returns: 0 in case of success or -1 in case of error.

    Function: xmlRegExecPushString

    int	xmlRegExecPushString		(xmlRegExecCtxtPtr exec, 
    const xmlChar * value,
    void * data)
    -

    Push one input token in the execution context

    -
    exec:a regexp execution context or NULL to indicate the end
    value:a string token input
    data:data associated to the token to reuse in callbacks
    Returns:1 if the regexp reached a final state, 0 if non-final, and a negative value in case of error.

    Function: xmlRegExecPushString2

    int	xmlRegExecPushString2		(xmlRegExecCtxtPtr exec, 
    const xmlChar * value,
    const xmlChar * value2,
    void * data)
    -

    Push one input token in the execution context

    -
    exec:a regexp execution context or NULL to indicate the end
    value:the first string token input
    value2:the second string token input
    data:data associated to the token to reuse in callbacks
    Returns:1 if the regexp reached a final state, 0 if non-final, and a negative value in case of error.

    Function: xmlRegFreeExecCtxt

    void	xmlRegFreeExecCtxt		(xmlRegExecCtxtPtr exec)
    -

    Free the structures associated to a regular expression evaulation context.

    -
    exec:a regular expression evaulation context

    Function: xmlRegFreeRegexp

    void	xmlRegFreeRegexp		(xmlRegexpPtr regexp)
    -

    Free a regexp

    -
    regexp:the regexp

    Function: xmlRegNewExecCtxt

    xmlRegExecCtxtPtr	xmlRegNewExecCtxt	(xmlRegexpPtr comp, 
    xmlRegExecCallbacks callback,
    void * data)
    -

    Build a context used for progressive evaluation of a regexp.

    -
    comp:a precompiled regular expression
    callback:a callback function used for handling progresses in the automata matching phase
    data:the context data associated to the callback in this context
    Returns:the new context

    Function: xmlRegexpCompile

    xmlRegexpPtr	xmlRegexpCompile	(const xmlChar * regexp)
    -

    Parses a regular expression conforming to XML Schemas Part 2 Datatype Appendix F and builds an automata suitable for testing strings against that regular expression

    -
    regexp:a regular expression string
    Returns:the compiled expression or NULL in case of error

    Function: xmlRegexpExec

    int	xmlRegexpExec			(xmlRegexpPtr comp, 
    const xmlChar * content)
    -

    Check if the regular expression generates the value

    -
    comp:the compiled regular expression
    content:the value to check against the regular expression
    Returns:1 if it matches, 0 if not and a negative value in case of error

    Function: xmlRegexpIsDeterminist

    int	xmlRegexpIsDeterminist		(xmlRegexpPtr comp)
    -

    Check if the regular expression is determinist

    -
    comp:the compiled regular expression
    Returns:1 if it yes, 0 if not and a negative value in case of error

    Function: xmlRegexpPrint

    void	xmlRegexpPrint			(FILE * output, 
    xmlRegexpPtr regexp)
    -

    Print the content of the compiled regular expression

    -
    output:the file for the output debug
    regexp:the compiled regexp

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xmlsave.html b/src/tools/docbook/libxml2/doc/html/libxml-xmlsave.html deleted file mode 100644 index 664c6efe04..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xmlsave.html +++ /dev/null @@ -1,56 +0,0 @@ - - -Module xmlsave from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xmlsave from libxml2

    API Menu
    API Indexes
    Related links

    API to save document or subtree of document

    Table of Contents

    Structure xmlSaveCtxt
    struct _xmlSaveCtxt -The content of this structure is not made public by the API. -
    Typedef xmlSaveCtxt * xmlSaveCtxtPtr
    -
    Enum xmlSaveOption
    -
    int	xmlSaveClose			(xmlSaveCtxtPtr ctxt)
    -
    long	xmlSaveDoc			(xmlSaveCtxtPtr ctxt, 
    xmlDocPtr doc)
    -
    int	xmlSaveFlush			(xmlSaveCtxtPtr ctxt)
    -
    int	xmlSaveSetAttrEscape		(xmlSaveCtxtPtr ctxt, 
    xmlCharEncodingOutputFunc escape)
    -
    int	xmlSaveSetEscape		(xmlSaveCtxtPtr ctxt, 
    xmlCharEncodingOutputFunc escape)
    -
    xmlSaveCtxtPtr	xmlSaveToBuffer		(xmlBufferPtr buffer, 
    const char * encoding,
    int options)
    -
    xmlSaveCtxtPtr	xmlSaveToFd		(int fd, 
    const char * encoding,
    int options)
    -
    xmlSaveCtxtPtr	xmlSaveToFilename	(const char * filename, 
    const char * encoding,
    int options)
    -
    xmlSaveCtxtPtr	xmlSaveToIO		(xmlOutputWriteCallback iowrite, 
    xmlOutputCloseCallback ioclose,
    void * ioctx,
    const char * encoding,
    int options)
    -
    long	xmlSaveTree			(xmlSaveCtxtPtr ctxt, 
    xmlNodePtr node)
    -

    Description

    -

    Structure xmlSaveCtxt

    Structure xmlSaveCtxt
    struct _xmlSaveCtxt { -The content of this structure is not made public by the API. -}

    Enum xmlSaveOption

    Enum xmlSaveOption {
    -    XML_SAVE_FORMAT = 1 : format save output
    -    XML_SAVE_NO_DECL = 2 : drop the xml declaration
    -    XML_SAVE_NO_EMPTY = 4 : no empty tags
    -    XML_SAVE_NO_XHTML = 8 : disable XHTML1 specific rules
    -}
    -

    Function: xmlSaveClose

    int	xmlSaveClose			(xmlSaveCtxtPtr ctxt)
    -

    Close a document saving context, i.e. make sure that all bytes have been output and free the associated data.

    -
    ctxt:a document saving context
    Returns:the number of byte written or -1 in case of error.

    Function: xmlSaveDoc

    long	xmlSaveDoc			(xmlSaveCtxtPtr ctxt, 
    xmlDocPtr doc)
    -

    Save a full document to a saving context TODO: The function is not fully implemented yet as it does not return the byte count but 0 instead

    -
    ctxt:a document saving context
    doc:a document
    Returns:the number of byte written or -1 in case of error

    Function: xmlSaveFlush

    int	xmlSaveFlush			(xmlSaveCtxtPtr ctxt)
    -

    Flush a document saving context, i.e. make sure that all bytes have been output.

    -
    ctxt:a document saving context
    Returns:the number of byte written or -1 in case of error.

    Function: xmlSaveSetAttrEscape

    int	xmlSaveSetAttrEscape		(xmlSaveCtxtPtr ctxt, 
    xmlCharEncodingOutputFunc escape)
    -

    Set a custom escaping function to be used for text in attribute content

    -
    ctxt:a document saving context
    escape:the escaping function
    Returns:0 if successful or -1 in case of error.

    Function: xmlSaveSetEscape

    int	xmlSaveSetEscape		(xmlSaveCtxtPtr ctxt, 
    xmlCharEncodingOutputFunc escape)
    -

    Set a custom escaping function to be used for text in element content

    -
    ctxt:a document saving context
    escape:the escaping function
    Returns:0 if successful or -1 in case of error.

    Function: xmlSaveToBuffer

    xmlSaveCtxtPtr	xmlSaveToBuffer		(xmlBufferPtr buffer, 
    const char * encoding,
    int options)
    -

    Create a document saving context serializing to a buffer with the encoding and the options given

    -
    buffer:a buffer
    encoding:the encoding name to use or NULL
    options:a set of xmlSaveOptions
    Returns:a new serialization context or NULL in case of error.

    Function: xmlSaveToFd

    xmlSaveCtxtPtr	xmlSaveToFd		(int fd, 
    const char * encoding,
    int options)
    -

    Create a document saving context serializing to a file descriptor with the encoding and the options given.

    -
    fd:a file descriptor number
    encoding:the encoding name to use or NULL
    options:a set of xmlSaveOptions
    Returns:a new serialization context or NULL in case of error.

    Function: xmlSaveToFilename

    xmlSaveCtxtPtr	xmlSaveToFilename	(const char * filename, 
    const char * encoding,
    int options)
    -

    Create a document saving context serializing to a filename or possibly to an URL (but this is less reliable) with the encoding and the options given.

    -
    filename:a file name or an URL
    encoding:the encoding name to use or NULL
    options:a set of xmlSaveOptions
    Returns:a new serialization context or NULL in case of error.

    Function: xmlSaveToIO

    xmlSaveCtxtPtr	xmlSaveToIO		(xmlOutputWriteCallback iowrite, 
    xmlOutputCloseCallback ioclose,
    void * ioctx,
    const char * encoding,
    int options)
    -

    Create a document saving context serializing to a file descriptor with the encoding and the options given

    -
    iowrite:an I/O write function
    ioclose:an I/O close function
    ioctx:an I/O handler
    encoding:the encoding name to use or NULL
    options:a set of xmlSaveOptions
    Returns:a new serialization context or NULL in case of error.

    Function: xmlSaveTree

    long	xmlSaveTree			(xmlSaveCtxtPtr ctxt, 
    xmlNodePtr node)
    -

    Save a subtree starting at the node parameter to a saving context TODO: The function is not fully implemented yet as it does not return the byte count but 0 instead

    -
    ctxt:a document saving context
    node:a document
    Returns:the number of byte written or -1 in case of error

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xmlschemas.html b/src/tools/docbook/libxml2/doc/html/libxml-xmlschemas.html deleted file mode 100644 index b5de3055af..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xmlschemas.html +++ /dev/null @@ -1,170 +0,0 @@ - - -Module xmlschemas from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xmlschemas from libxml2

    API Menu
    API Indexes
    Related links

    interface to the XML Schemas handling and schema validity checking, it is incomplete right now.

    Table of Contents

    Structure xmlSchema
    struct _xmlSchema -
    Structure xmlSchemaParserCtxt
    struct _xmlSchemaParserCtxt -The content of this structure is not made public by the API. -
    Typedef xmlSchemaParserCtxt * xmlSchemaParserCtxtPtr
    -
    Typedef xmlSchema * xmlSchemaPtr
    -
    Typedef xmlSchemaSAXPlugStruct * xmlSchemaSAXPlugPtr
    -
    Structure xmlSchemaSAXPlugStruct
    struct _xmlSchemaSAXPlug -The content of this structure is not made public by the API. -
    Structure xmlSchemaValidCtxt
    struct _xmlSchemaValidCtxt -The content of this structure is not made public by the API. -
    Typedef xmlSchemaValidCtxt * xmlSchemaValidCtxtPtr
    -
    Enum xmlSchemaValidError
    -
    Enum xmlSchemaValidOption
    -
    void	xmlSchemaDump			(FILE * output, 
    xmlSchemaPtr schema)
    -
    void	xmlSchemaFree			(xmlSchemaPtr schema)
    -
    void	xmlSchemaFreeParserCtxt		(xmlSchemaParserCtxtPtr ctxt)
    -
    void	xmlSchemaFreeValidCtxt		(xmlSchemaValidCtxtPtr ctxt)
    -
    int	xmlSchemaGetParserErrors	(xmlSchemaParserCtxtPtr ctxt, 
    xmlSchemaValidityErrorFunc * err,
    xmlSchemaValidityWarningFunc * warn,
    void ** ctx)
    -
    int	xmlSchemaGetValidErrors		(xmlSchemaValidCtxtPtr ctxt, 
    xmlSchemaValidityErrorFunc * err,
    xmlSchemaValidityWarningFunc * warn,
    void ** ctx)
    -
    int	xmlSchemaIsValid		(xmlSchemaValidCtxtPtr ctxt)
    -
    xmlSchemaParserCtxtPtr	xmlSchemaNewDocParserCtxt	(xmlDocPtr doc)
    -
    xmlSchemaParserCtxtPtr	xmlSchemaNewMemParserCtxt	(const char * buffer, 
    int size)
    -
    xmlSchemaParserCtxtPtr	xmlSchemaNewParserCtxt	(const char * URL)
    -
    xmlSchemaValidCtxtPtr	xmlSchemaNewValidCtxt	(xmlSchemaPtr schema)
    -
    xmlSchemaPtr	xmlSchemaParse		(xmlSchemaParserCtxtPtr ctxt)
    -
    xmlSchemaSAXPlugPtr	xmlSchemaSAXPlug	(xmlSchemaValidCtxtPtr ctxt, 
    xmlSAXHandlerPtr * sax,
    void ** user_data)
    -
    int	xmlSchemaSAXUnplug		(xmlSchemaSAXPlugPtr plug)
    -
    void	xmlSchemaSetParserErrors	(xmlSchemaParserCtxtPtr ctxt, 
    xmlSchemaValidityErrorFunc err,
    xmlSchemaValidityWarningFunc warn,
    void * ctx)
    -
    void	xmlSchemaSetParserStructuredErrors	(xmlSchemaParserCtxtPtr ctxt, 
    xmlStructuredErrorFunc serror,
    void * ctx)
    -
    void	xmlSchemaSetValidErrors		(xmlSchemaValidCtxtPtr ctxt, 
    xmlSchemaValidityErrorFunc err,
    xmlSchemaValidityWarningFunc warn,
    void * ctx)
    -
    int	xmlSchemaSetValidOptions	(xmlSchemaValidCtxtPtr ctxt, 
    int options)
    -
    void	xmlSchemaSetValidStructuredErrors	(xmlSchemaValidCtxtPtr ctxt, 
    xmlStructuredErrorFunc serror,
    void * ctx)
    -
    int	xmlSchemaValidCtxtGetOptions	(xmlSchemaValidCtxtPtr ctxt)
    -
    int	xmlSchemaValidateDoc		(xmlSchemaValidCtxtPtr ctxt, 
    xmlDocPtr instance)
    -
    int	xmlSchemaValidateFile		(xmlSchemaValidCtxtPtr ctxt, 
    const char * filename,
    int options)
    -
    int	xmlSchemaValidateOneElement	(xmlSchemaValidCtxtPtr ctxt, 
    xmlNodePtr elem)
    -
    int	xmlSchemaValidateStream		(xmlSchemaValidCtxtPtr ctxt, 
    xmlParserInputBufferPtr input,
    xmlCharEncoding enc,
    xmlSAXHandlerPtr sax,
    void * user_data)
    -
    Function type: xmlSchemaValidityErrorFunc
    -void	xmlSchemaValidityErrorFunc	(void * ctx, 
    const char * msg,
    ... ...) -
    -
    Function type: xmlSchemaValidityWarningFunc
    -void	xmlSchemaValidityWarningFunc	(void * ctx, 
    const char * msg,
    ... ...) -
    -

    Description

    -

    Structure xmlSchema

    Structure xmlSchema
    struct _xmlSchema { - const xmlChar * name : schema name - const xmlChar * targetNamespace : the target namespace - const xmlChar * version - const xmlChar * id : Obsolete - xmlDocPtr doc - xmlSchemaAnnotPtr annot - int flags - xmlHashTablePtr typeDecl - xmlHashTablePtr attrDecl - xmlHashTablePtr attrgrpDecl - xmlHashTablePtr elemDecl - xmlHashTablePtr notaDecl - xmlHashTablePtr schemasImports - void * _private : unused by the library for users or bind - xmlHashTablePtr groupDecl - xmlDictPtr dict - void * includes : the includes, this is opaque for now - int preserve : whether to free the document - int counter : used to give ononymous components uniqu - xmlHashTablePtr idcDef : All identity-constraint defs. - void * volatiles : Obsolete -}

    Structure xmlSchemaParserCtxt

    Structure xmlSchemaParserCtxt
    struct _xmlSchemaParserCtxt { -The content of this structure is not made public by the API. -}

    Structure xmlSchemaSAXPlugStruct

    Structure xmlSchemaSAXPlugStruct
    struct _xmlSchemaSAXPlug { -The content of this structure is not made public by the API. -}

    Structure xmlSchemaValidCtxt

    Structure xmlSchemaValidCtxt
    struct _xmlSchemaValidCtxt { -The content of this structure is not made public by the API. -}

    Enum xmlSchemaValidError

    Enum xmlSchemaValidError {
    -    XML_SCHEMAS_ERR_OK = 0
    -    XML_SCHEMAS_ERR_NOROOT = 1
    -    XML_SCHEMAS_ERR_UNDECLAREDELEM = 2
    -    XML_SCHEMAS_ERR_NOTTOPLEVEL = 3
    -    XML_SCHEMAS_ERR_MISSING = 4
    -    XML_SCHEMAS_ERR_WRONGELEM = 5
    -    XML_SCHEMAS_ERR_NOTYPE = 6
    -    XML_SCHEMAS_ERR_NOROLLBACK = 7
    -    XML_SCHEMAS_ERR_ISABSTRACT = 8
    -    XML_SCHEMAS_ERR_NOTEMPTY = 9
    -    XML_SCHEMAS_ERR_ELEMCONT = 10
    -    XML_SCHEMAS_ERR_HAVEDEFAULT = 11
    -    XML_SCHEMAS_ERR_NOTNILLABLE = 12
    -    XML_SCHEMAS_ERR_EXTRACONTENT = 13
    -    XML_SCHEMAS_ERR_INVALIDATTR = 14
    -    XML_SCHEMAS_ERR_INVALIDELEM = 15
    -    XML_SCHEMAS_ERR_NOTDETERMINIST = 16
    -    XML_SCHEMAS_ERR_CONSTRUCT = 17
    -    XML_SCHEMAS_ERR_INTERNAL = 18
    -    XML_SCHEMAS_ERR_NOTSIMPLE = 19
    -    XML_SCHEMAS_ERR_ATTRUNKNOWN = 20
    -    XML_SCHEMAS_ERR_ATTRINVALID = 21
    -    XML_SCHEMAS_ERR_VALUE = 22
    -    XML_SCHEMAS_ERR_FACET = 23
    -    XML_SCHEMAS_ERR_ = 24
    -    XML_SCHEMAS_ERR_XXX = 25
    -}
    -

    Enum xmlSchemaValidOption

    Enum xmlSchemaValidOption {
    -    XML_SCHEMA_VAL_VC_I_CREATE = 1 : Default/fixed: create an attribute node * or an element's text node on the instance. *
    -}
    -

    Function: xmlSchemaDump

    void	xmlSchemaDump			(FILE * output, 
    xmlSchemaPtr schema)
    -

    Dump a Schema structure.

    -
    output:the file output
    schema:a schema structure

    Function: xmlSchemaFree

    void	xmlSchemaFree			(xmlSchemaPtr schema)
    -

    Deallocate a Schema structure.

    -
    schema:a schema structure

    Function: xmlSchemaFreeParserCtxt

    void	xmlSchemaFreeParserCtxt		(xmlSchemaParserCtxtPtr ctxt)
    -

    Free the resources associated to the schema parser context

    -
    ctxt:the schema parser context

    Function: xmlSchemaFreeValidCtxt

    void	xmlSchemaFreeValidCtxt		(xmlSchemaValidCtxtPtr ctxt)
    -

    -
    ctxt:

    Function: xmlSchemaGetParserErrors

    int	xmlSchemaGetParserErrors	(xmlSchemaParserCtxtPtr ctxt, 
    xmlSchemaValidityErrorFunc * err,
    xmlSchemaValidityWarningFunc * warn,
    void ** ctx)
    -

    Get the callback information used to handle errors for a parser context

    -
    ctxt:a XMl-Schema parser context
    err:the error callback result
    warn:the warning callback result
    ctx:contextual data for the callbacks result
    Returns:-1 in case of failure, 0 otherwise

    Function: xmlSchemaGetValidErrors

    int	xmlSchemaGetValidErrors		(xmlSchemaValidCtxtPtr ctxt, 
    xmlSchemaValidityErrorFunc * err,
    xmlSchemaValidityWarningFunc * warn,
    void ** ctx)
    -

    -
    ctxt:
    err:
    warn:
    ctx:
    Returns:

    Function: xmlSchemaIsValid

    int	xmlSchemaIsValid		(xmlSchemaValidCtxtPtr ctxt)
    -

    -
    ctxt:
    Returns:

    Function: xmlSchemaNewDocParserCtxt

    xmlSchemaParserCtxtPtr	xmlSchemaNewDocParserCtxt	(xmlDocPtr doc)
    -

    Create an XML Schemas parse context for that document. NB. The document may be modified during the parsing process.

    -
    doc:a preparsed document tree
    Returns:the parser context or NULL in case of error

    Function: xmlSchemaNewMemParserCtxt

    xmlSchemaParserCtxtPtr	xmlSchemaNewMemParserCtxt	(const char * buffer, 
    int size)
    -

    Create an XML Schemas parse context for that memory buffer expected to contain an XML Schemas file.

    -
    buffer:a pointer to a char array containing the schemas
    size:the size of the array
    Returns:the parser context or NULL in case of error

    Function: xmlSchemaNewParserCtxt

    xmlSchemaParserCtxtPtr	xmlSchemaNewParserCtxt	(const char * URL)
    -

    Create an XML Schemas parse context for that file/resource expected to contain an XML Schemas file.

    -
    URL:the location of the schema
    Returns:the parser context or NULL in case of error

    Function: xmlSchemaNewValidCtxt

    xmlSchemaValidCtxtPtr	xmlSchemaNewValidCtxt	(xmlSchemaPtr schema)
    -

    -
    schema:
    Returns:

    Function: xmlSchemaParse

    xmlSchemaPtr	xmlSchemaParse		(xmlSchemaParserCtxtPtr ctxt)
    -

    parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances.

    -
    ctxt:a schema validation context
    Returns:the internal XML Schema structure built from the resource or NULL in case of error

    Function: xmlSchemaSAXPlug

    xmlSchemaSAXPlugPtr	xmlSchemaSAXPlug	(xmlSchemaValidCtxtPtr ctxt, 
    xmlSAXHandlerPtr * sax,
    void ** user_data)
    -

    -
    ctxt:
    sax:
    user_data:
    Returns:

    Function: xmlSchemaSAXUnplug

    int	xmlSchemaSAXUnplug		(xmlSchemaSAXPlugPtr plug)
    -

    -
    plug:
    Returns:

    Function: xmlSchemaSetParserErrors

    void	xmlSchemaSetParserErrors	(xmlSchemaParserCtxtPtr ctxt, 
    xmlSchemaValidityErrorFunc err,
    xmlSchemaValidityWarningFunc warn,
    void * ctx)
    -

    Set the callback functions used to handle errors for a validation context

    -
    ctxt:a schema validation context
    err:the error callback
    warn:the warning callback
    ctx:contextual data for the callbacks

    Function: xmlSchemaSetParserStructuredErrors

    void	xmlSchemaSetParserStructuredErrors	(xmlSchemaParserCtxtPtr ctxt, 
    xmlStructuredErrorFunc serror,
    void * ctx)
    -

    Set the structured error callback

    -
    ctxt:a schema parser context
    serror:the structured error function
    ctx:the functions context

    Function: xmlSchemaSetValidErrors

    void	xmlSchemaSetValidErrors		(xmlSchemaValidCtxtPtr ctxt, 
    xmlSchemaValidityErrorFunc err,
    xmlSchemaValidityWarningFunc warn,
    void * ctx)
    -

    -
    ctxt:
    err:
    warn:
    ctx:

    Function: xmlSchemaSetValidOptions

    int	xmlSchemaSetValidOptions	(xmlSchemaValidCtxtPtr ctxt, 
    int options)
    -

    -
    ctxt:
    options:
    Returns:

    Function: xmlSchemaSetValidStructuredErrors

    void	xmlSchemaSetValidStructuredErrors	(xmlSchemaValidCtxtPtr ctxt, 
    xmlStructuredErrorFunc serror,
    void * ctx)
    -

    -
    ctxt:
    serror:
    ctx:

    Function: xmlSchemaValidCtxtGetOptions

    int	xmlSchemaValidCtxtGetOptions	(xmlSchemaValidCtxtPtr ctxt)
    -

    -
    ctxt:
    Returns:

    Function: xmlSchemaValidateDoc

    int	xmlSchemaValidateDoc		(xmlSchemaValidCtxtPtr ctxt, 
    xmlDocPtr instance)
    -

    -
    ctxt:
    instance:
    Returns:

    Function: xmlSchemaValidateFile

    int	xmlSchemaValidateFile		(xmlSchemaValidCtxtPtr ctxt, 
    const char * filename,
    int options)
    -

    -
    ctxt:
    filename:
    options:
    Returns:

    Function: xmlSchemaValidateOneElement

    int	xmlSchemaValidateOneElement	(xmlSchemaValidCtxtPtr ctxt, 
    xmlNodePtr elem)
    -

    -
    ctxt:
    elem:
    Returns:

    Function: xmlSchemaValidateStream

    int	xmlSchemaValidateStream		(xmlSchemaValidCtxtPtr ctxt, 
    xmlParserInputBufferPtr input,
    xmlCharEncoding enc,
    xmlSAXHandlerPtr sax,
    void * user_data)
    -

    -
    ctxt:
    input:
    enc:
    sax:
    user_data:
    Returns:

    Function type: xmlSchemaValidityErrorFunc

    Function type: xmlSchemaValidityErrorFunc
    -void	xmlSchemaValidityErrorFunc	(void * ctx, 
    const char * msg,
    ... ...) -

    ctx:
    msg:
    ...:

    -

    Function type: xmlSchemaValidityWarningFunc

    Function type: xmlSchemaValidityWarningFunc
    -void	xmlSchemaValidityWarningFunc	(void * ctx, 
    const char * msg,
    ... ...) -

    ctx:
    msg:
    ...:

    -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xmlschemastypes.html b/src/tools/docbook/libxml2/doc/html/libxml-xmlschemastypes.html deleted file mode 100644 index c890b591c8..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xmlschemastypes.html +++ /dev/null @@ -1,123 +0,0 @@ - - -Module xmlschemastypes from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xmlschemastypes from libxml2

    API Menu
    API Indexes
    Related links

    module providing the XML Schema Datatypes implementation both definition and validity checking

    Table of Contents

    Enum xmlSchemaWhitespaceValueType
    -
    int	xmlSchemaCheckFacet		(xmlSchemaFacetPtr facet, 
    xmlSchemaTypePtr typeDecl,
    xmlSchemaParserCtxtPtr pctxt,
    const xmlChar * name)
    -
    void	xmlSchemaCleanupTypes		(void)
    -
    xmlChar *	xmlSchemaCollapseString	(const xmlChar * value)
    -
    int	xmlSchemaCompareValues		(xmlSchemaValPtr x, 
    xmlSchemaValPtr y)
    -
    int	xmlSchemaCompareValuesWhtsp	(xmlSchemaValPtr x, 
    xmlSchemaWhitespaceValueType xws,
    xmlSchemaValPtr y,
    xmlSchemaWhitespaceValueType yws)
    -
    xmlSchemaValPtr	xmlSchemaCopyValue	(xmlSchemaValPtr val)
    -
    void	xmlSchemaFreeFacet		(xmlSchemaFacetPtr facet)
    -
    void	xmlSchemaFreeValue		(xmlSchemaValPtr value)
    -
    xmlSchemaTypePtr	xmlSchemaGetBuiltInListSimpleTypeItemType	(xmlSchemaTypePtr type)
    -
    xmlSchemaTypePtr	xmlSchemaGetBuiltInType	(xmlSchemaValType type)
    -
    int	xmlSchemaGetCanonValue		(xmlSchemaValPtr val, 
    const xmlChar ** retValue)
    -
    int	xmlSchemaGetCanonValueWhtsp	(xmlSchemaValPtr val, 
    const xmlChar ** retValue,
    xmlSchemaWhitespaceValueType ws)
    -
    unsigned long	xmlSchemaGetFacetValueAsULong	(xmlSchemaFacetPtr facet)
    -
    xmlSchemaTypePtr	xmlSchemaGetPredefinedType	(const xmlChar * name, 
    const xmlChar * ns)
    -
    xmlSchemaValType	xmlSchemaGetValType	(xmlSchemaValPtr val)
    -
    void	xmlSchemaInitTypes		(void)
    -
    int	xmlSchemaIsBuiltInTypeFacet	(xmlSchemaTypePtr type, 
    int facetType)
    -
    xmlSchemaFacetPtr	xmlSchemaNewFacet	(void)
    -
    xmlSchemaValPtr	xmlSchemaNewNOTATIONValue	(const xmlChar * name, 
    const xmlChar * ns)
    -
    xmlSchemaValPtr	xmlSchemaNewQNameValue	(const xmlChar * namespaceName, 
    const xmlChar * localName)
    -
    xmlSchemaValPtr	xmlSchemaNewStringValue	(xmlSchemaValType type, 
    const xmlChar * value)
    -
    int	xmlSchemaValPredefTypeNode	(xmlSchemaTypePtr type, 
    const xmlChar * value,
    xmlSchemaValPtr * val,
    xmlNodePtr node)
    -
    int	xmlSchemaValPredefTypeNodeNoNorm	(xmlSchemaTypePtr type, 
    const xmlChar * value,
    xmlSchemaValPtr * val,
    xmlNodePtr node)
    -
    int	xmlSchemaValidateFacet		(xmlSchemaTypePtr base, 
    xmlSchemaFacetPtr facet,
    const xmlChar * value,
    xmlSchemaValPtr val)
    -
    int	xmlSchemaValidateFacetWhtsp	(xmlSchemaFacetPtr facet, 
    xmlSchemaWhitespaceValueType fws,
    xmlSchemaValType valType,
    const xmlChar * value,
    xmlSchemaValPtr val,
    xmlSchemaWhitespaceValueType ws)
    -
    int	xmlSchemaValidateLengthFacet	(xmlSchemaTypePtr type, 
    xmlSchemaFacetPtr facet,
    const xmlChar * value,
    xmlSchemaValPtr val,
    unsigned long * length)
    -
    int	xmlSchemaValidateLengthFacetWhtsp	(xmlSchemaFacetPtr facet, 
    xmlSchemaValType valType,
    const xmlChar * value,
    xmlSchemaValPtr val,
    unsigned long * length,
    xmlSchemaWhitespaceValueType ws)
    -
    int	xmlSchemaValidateListSimpleTypeFacet	(xmlSchemaFacetPtr facet, 
    const xmlChar * value,
    unsigned long actualLen,
    unsigned long * expectedLen)
    -
    int	xmlSchemaValidatePredefinedType	(xmlSchemaTypePtr type, 
    const xmlChar * value,
    xmlSchemaValPtr * val)
    -
    int	xmlSchemaValueAppend		(xmlSchemaValPtr prev, 
    xmlSchemaValPtr cur)
    -
    int	xmlSchemaValueGetAsBoolean	(xmlSchemaValPtr val)
    -
    const xmlChar *	xmlSchemaValueGetAsString	(xmlSchemaValPtr val)
    -
    xmlSchemaValPtr	xmlSchemaValueGetNext	(xmlSchemaValPtr cur)
    -
    xmlChar *	xmlSchemaWhiteSpaceReplace	(const xmlChar * value)
    -

    Description

    -

    Enum xmlSchemaWhitespaceValueType

    Enum xmlSchemaWhitespaceValueType {
    -    XML_SCHEMA_WHITESPACE_UNKNOWN = 0
    -    XML_SCHEMA_WHITESPACE_PRESERVE = 1
    -    XML_SCHEMA_WHITESPACE_REPLACE = 2
    -    XML_SCHEMA_WHITESPACE_COLLAPSE = 3
    -}
    -

    Function: xmlSchemaCheckFacet

    int	xmlSchemaCheckFacet		(xmlSchemaFacetPtr facet, 
    xmlSchemaTypePtr typeDecl,
    xmlSchemaParserCtxtPtr pctxt,
    const xmlChar * name)
    -

    Checks and computes the values of facets.

    -
    facet:the facet
    typeDecl:the schema type definition
    pctxt:the schema parser context or NULL
    name:the optional name of the type
    Returns:0 if valid, a positive error code if not valid and -1 in case of an internal or API error.

    Function: xmlSchemaCleanupTypes

    void	xmlSchemaCleanupTypes		(void)
    -

    Cleanup the default XML Schemas type library

    -

    Function: xmlSchemaCollapseString

    xmlChar *	xmlSchemaCollapseString	(const xmlChar * value)
    -

    Removes and normalize white spaces in the string

    -
    value:a value
    Returns:the new string or NULL if no change was required.

    Function: xmlSchemaCompareValues

    int	xmlSchemaCompareValues		(xmlSchemaValPtr x, 
    xmlSchemaValPtr y)
    -

    Compare 2 values

    -
    x:a first value
    y:a second value
    Returns:-1 if x < y, 0 if x == y, 1 if x > y, 2 if x <> y, and -2 in case of error

    Function: xmlSchemaCompareValuesWhtsp

    int	xmlSchemaCompareValuesWhtsp	(xmlSchemaValPtr x, 
    xmlSchemaWhitespaceValueType xws,
    xmlSchemaValPtr y,
    xmlSchemaWhitespaceValueType yws)
    -

    Compare 2 values

    -
    x:a first value
    xws:the whitespace value of x
    y:a second value
    yws:the whitespace value of y
    Returns:-1 if x < y, 0 if x == y, 1 if x > y, 2 if x <> y, and -2 in case of error

    Function: xmlSchemaCopyValue

    xmlSchemaValPtr	xmlSchemaCopyValue	(xmlSchemaValPtr val)
    -

    Copies the precomputed value. This duplicates any string within.

    -
    val:the precomputed value to be copied
    Returns:the copy or NULL if a copy for a data-type is not implemented.

    Function: xmlSchemaFreeFacet

    void	xmlSchemaFreeFacet		(xmlSchemaFacetPtr facet)
    -

    Deallocate a Schema Facet structure.

    -
    facet:a schema facet structure

    Function: xmlSchemaFreeValue

    void	xmlSchemaFreeValue		(xmlSchemaValPtr value)
    -

    Cleanup the default XML Schemas type library

    -
    value:the value to free

    Function: xmlSchemaGetBuiltInListSimpleTypeItemType

    xmlSchemaTypePtr	xmlSchemaGetBuiltInListSimpleTypeItemType	(xmlSchemaTypePtr type)
    -

    Lookup function

    -
    type:the built-in simple type.
    Returns:the item type of @type as defined by the built-in datatype hierarchy of XML Schema Part 2: Datatypes, or NULL in case of an error.

    Function: xmlSchemaGetBuiltInType

    xmlSchemaTypePtr	xmlSchemaGetBuiltInType	(xmlSchemaValType type)
    -

    Gives you the type struct for a built-in type by its type id.

    -
    type:the type of the built in type
    Returns:the type if found, NULL otherwise.

    Function: xmlSchemaGetCanonValue

    int	xmlSchemaGetCanonValue		(xmlSchemaValPtr val, 
    const xmlChar ** retValue)
    -

    Get a the cononical lexical representation of the value. The caller has to FREE the returned retValue. WARNING: Some value types are not supported yet, resulting in a @retValue of "???". TODO: XML Schema 1.0 does not define canonical representations for: duration, gYearMonth, gYear, gMonthDay, gMonth, gDay, anyURI, QName, NOTATION. This will be fixed in XML Schema 1.1.

    -
    val:the precomputed value
    retValue:the returned value
    Returns:0 if the value could be built, 1 if the value type is not supported yet and -1 in case of API errors.

    Function: xmlSchemaGetCanonValueWhtsp

    int	xmlSchemaGetCanonValueWhtsp	(xmlSchemaValPtr val, 
    const xmlChar ** retValue,
    xmlSchemaWhitespaceValueType ws)
    -

    Get a the cononical representation of the value. The caller has to free the returned @retValue.

    -
    val:the precomputed value
    retValue:the returned value
    ws:the whitespace type of the value
    Returns:0 if the value could be built, 1 if the value type is not supported yet and -1 in case of API errors.

    Function: xmlSchemaGetFacetValueAsULong

    unsigned long	xmlSchemaGetFacetValueAsULong	(xmlSchemaFacetPtr facet)
    -

    Extract the value of a facet

    -
    facet:an schemas type facet
    Returns:the value as a long

    Function: xmlSchemaGetPredefinedType

    xmlSchemaTypePtr	xmlSchemaGetPredefinedType	(const xmlChar * name, 
    const xmlChar * ns)
    -

    Lookup a type in the default XML Schemas type library

    -
    name:the type name
    ns:the URI of the namespace usually "http://www.w3.org/2001/XMLSchema"
    Returns:the type if found, NULL otherwise

    Function: xmlSchemaGetValType

    xmlSchemaValType	xmlSchemaGetValType	(xmlSchemaValPtr val)
    -

    Accessor for the type of a value

    -
    val:a schemas value
    Returns:the xmlSchemaValType of the value

    Function: xmlSchemaInitTypes

    void	xmlSchemaInitTypes		(void)
    -

    Initialize the default XML Schemas type library

    -

    Function: xmlSchemaIsBuiltInTypeFacet

    int	xmlSchemaIsBuiltInTypeFacet	(xmlSchemaTypePtr type, 
    int facetType)
    -

    Evaluates if a specific facet can be used in conjunction with a type.

    -
    type:the built-in type
    facetType:the facet type
    Returns:1 if the facet can be used with the given built-in type, 0 otherwise and -1 in case the type is not a built-in type.

    Function: xmlSchemaNewFacet

    xmlSchemaFacetPtr	xmlSchemaNewFacet	(void)
    -

    Allocate a new Facet structure.

    -
    Returns:the newly allocated structure or NULL in case or error

    Function: xmlSchemaNewNOTATIONValue

    xmlSchemaValPtr	xmlSchemaNewNOTATIONValue	(const xmlChar * name, 
    const xmlChar * ns)
    -

    Allocate a new NOTATION value. The given values are consumed and freed with the struct.

    -
    name:the notation name
    ns:the notation namespace name or NULL
    Returns:a pointer to the new value or NULL in case of error

    Function: xmlSchemaNewQNameValue

    xmlSchemaValPtr	xmlSchemaNewQNameValue	(const xmlChar * namespaceName, 
    const xmlChar * localName)
    -

    Allocate a new QName value. The given values are consumed and freed with the struct.

    -
    namespaceName:the namespace name
    localName:the local name
    Returns:a pointer to the new value or NULL in case of an error.

    Function: xmlSchemaNewStringValue

    xmlSchemaValPtr	xmlSchemaNewStringValue	(xmlSchemaValType type, 
    const xmlChar * value)
    -

    Allocate a new simple type value. The type can be of XML_SCHEMAS_STRING. WARNING: This one is intended to be expanded for other string based types. We need this for anySimpleType as well. The given value is consumed and freed with the struct.

    -
    type:the value type
    value:the value
    Returns:a pointer to the new value or NULL in case of error

    Function: xmlSchemaValPredefTypeNode

    int	xmlSchemaValPredefTypeNode	(xmlSchemaTypePtr type, 
    const xmlChar * value,
    xmlSchemaValPtr * val,
    xmlNodePtr node)
    -

    Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val.

    -
    type:the predefined type
    value:the value to check
    val:the return computed value
    node:the node containing the value
    Returns:0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.

    Function: xmlSchemaValPredefTypeNodeNoNorm

    int	xmlSchemaValPredefTypeNodeNoNorm	(xmlSchemaTypePtr type, 
    const xmlChar * value,
    xmlSchemaValPtr * val,
    xmlNodePtr node)
    -

    Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val. This one does apply any normalization to the value.

    -
    type:the predefined type
    value:the value to check
    val:the return computed value
    node:the node containing the value
    Returns:0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.

    Function: xmlSchemaValidateFacet

    int	xmlSchemaValidateFacet		(xmlSchemaTypePtr base, 
    xmlSchemaFacetPtr facet,
    const xmlChar * value,
    xmlSchemaValPtr val)
    -

    Check a value against a facet condition

    -
    base:the base type
    facet:the facet to check
    value:the lexical repr of the value to validate
    val:the precomputed value
    Returns:0 if the element is schemas valid, a positive error code number otherwise and -1 in case of internal or API error.

    Function: xmlSchemaValidateFacetWhtsp

    int	xmlSchemaValidateFacetWhtsp	(xmlSchemaFacetPtr facet, 
    xmlSchemaWhitespaceValueType fws,
    xmlSchemaValType valType,
    const xmlChar * value,
    xmlSchemaValPtr val,
    xmlSchemaWhitespaceValueType ws)
    -

    Check a value against a facet condition. This takes value normalization according to the specified whitespace types into account. Note that @value needs to be the *normalized* value if the facet is of type "pattern".

    -
    facet:the facet to check
    fws:the whitespace type of the facet's value
    valType:the built-in type of the value
    value:the lexical (or normalized for pattern) repr of the value to validate
    val:the precomputed value
    ws:the whitespace type of the value
    Returns:0 if the element is schemas valid, a positive error code number otherwise and -1 in case of internal or API error.

    Function: xmlSchemaValidateLengthFacet

    int	xmlSchemaValidateLengthFacet	(xmlSchemaTypePtr type, 
    xmlSchemaFacetPtr facet,
    const xmlChar * value,
    xmlSchemaValPtr val,
    unsigned long * length)
    -

    Checka a value against a "length", "minLength" and "maxLength" facet; sets @length to the computed length of @value.

    -
    type:the built-in type
    facet:the facet to check
    value:the lexical repr. of the value to be validated
    val:the precomputed value
    length:the actual length of the value
    Returns:0 if the value is valid, a positive error code otherwise and -1 in case of an internal or API error.

    Function: xmlSchemaValidateLengthFacetWhtsp

    int	xmlSchemaValidateLengthFacetWhtsp	(xmlSchemaFacetPtr facet, 
    xmlSchemaValType valType,
    const xmlChar * value,
    xmlSchemaValPtr val,
    unsigned long * length,
    xmlSchemaWhitespaceValueType ws)
    -

    Checka a value against a "length", "minLength" and "maxLength" facet; sets @length to the computed length of @value.

    -
    facet:the facet to check
    valType:the built-in type
    value:the lexical repr. of the value to be validated
    val:the precomputed value
    length:the actual length of the value
    ws:the whitespace type of the value
    Returns:0 if the value is valid, a positive error code otherwise and -1 in case of an internal or API error.

    Function: xmlSchemaValidateListSimpleTypeFacet

    int	xmlSchemaValidateListSimpleTypeFacet	(xmlSchemaFacetPtr facet, 
    const xmlChar * value,
    unsigned long actualLen,
    unsigned long * expectedLen)
    -

    Checks the value of a list simple type against a facet.

    -
    facet:the facet to check
    value:the lexical repr of the value to validate
    actualLen:the number of list items
    expectedLen:the resulting expected number of list items
    Returns:0 if the value is valid, a positive error code number otherwise and -1 in case of an internal error.

    Function: xmlSchemaValidatePredefinedType

    int	xmlSchemaValidatePredefinedType	(xmlSchemaTypePtr type, 
    const xmlChar * value,
    xmlSchemaValPtr * val)
    -

    Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val.

    -
    type:the predefined type
    value:the value to check
    val:the return computed value
    Returns:0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.

    Function: xmlSchemaValueAppend

    int	xmlSchemaValueAppend		(xmlSchemaValPtr prev, 
    xmlSchemaValPtr cur)
    -

    Appends a next sibling to a list of computed values.

    -
    prev:the value
    cur:the value to be appended
    Returns:0 if succeeded and -1 on API errors.

    Function: xmlSchemaValueGetAsBoolean

    int	xmlSchemaValueGetAsBoolean	(xmlSchemaValPtr val)
    -

    Accessor for the boolean value of a computed value.

    -
    val:the value
    Returns:1 if true and 0 if false, or in case of an error. Hmm.

    Function: xmlSchemaValueGetAsString

    const xmlChar *	xmlSchemaValueGetAsString	(xmlSchemaValPtr val)
    -

    Accessor for the string value of a computed value.

    -
    val:the value
    Returns:the string value or NULL if there was none, or on API errors.

    Function: xmlSchemaValueGetNext

    xmlSchemaValPtr	xmlSchemaValueGetNext	(xmlSchemaValPtr cur)
    -

    Accessor for the next sibling of a list of computed values.

    -
    cur:the value
    Returns:the next value or NULL if there was none, or on API errors.

    Function: xmlSchemaWhiteSpaceReplace

    xmlChar *	xmlSchemaWhiteSpaceReplace	(const xmlChar * value)
    -

    Replaces 0xd, 0x9 and 0xa with a space.

    -
    value:a value
    Returns:the new string or NULL if no change was required.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xmlstring.html b/src/tools/docbook/libxml2/doc/html/libxml-xmlstring.html deleted file mode 100644 index e29d740367..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xmlstring.html +++ /dev/null @@ -1,108 +0,0 @@ - - -Module xmlstring from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xmlstring from libxml2

    API Menu
    API Indexes
    Related links

    type and interfaces needed for the internal string handling of the library, especially UTF8 processing.

    Table of Contents

    #define BAD_CAST
    Typedef unsigned char xmlChar
    -
    xmlChar *	xmlCharStrdup		(const char * cur)
    -
    xmlChar *	xmlCharStrndup		(const char * cur, 
    int len)
    -
    int	xmlCheckUTF8			(const unsigned char * utf)
    -
    int	xmlGetUTF8Char			(const unsigned char * utf, 
    int * len)
    -
    int	xmlStrEqual			(const xmlChar * str1, 
    const xmlChar * str2)
    -
    int	xmlStrPrintf			(xmlChar * buf, 
    int len,
    const xmlChar * msg,
    ... ...)
    -
    int	xmlStrQEqual			(const xmlChar * pref, 
    const xmlChar * name,
    const xmlChar * str)
    -
    int	xmlStrVPrintf			(xmlChar * buf, 
    int len,
    const xmlChar * msg,
    va_list ap)
    -
    int	xmlStrcasecmp			(const xmlChar * str1, 
    const xmlChar * str2)
    -
    const xmlChar *	xmlStrcasestr		(const xmlChar * str, 
    xmlChar * val)
    -
    xmlChar *	xmlStrcat		(xmlChar * cur, 
    const xmlChar * add)
    -
    const xmlChar *	xmlStrchr		(const xmlChar * str, 
    xmlChar val)
    -
    int	xmlStrcmp			(const xmlChar * str1, 
    const xmlChar * str2)
    -
    xmlChar *	xmlStrdup		(const xmlChar * cur)
    -
    int	xmlStrlen			(const xmlChar * str)
    -
    int	xmlStrncasecmp			(const xmlChar * str1, 
    const xmlChar * str2,
    int len)
    -
    xmlChar *	xmlStrncat		(xmlChar * cur, 
    const xmlChar * add,
    int len)
    -
    xmlChar *	xmlStrncatNew		(const xmlChar * str1, 
    const xmlChar * str2,
    int len)
    -
    int	xmlStrncmp			(const xmlChar * str1, 
    const xmlChar * str2,
    int len)
    -
    xmlChar *	xmlStrndup		(const xmlChar * cur, 
    int len)
    -
    const xmlChar *	xmlStrstr		(const xmlChar * str, 
    const xmlChar * val)
    -
    xmlChar *	xmlStrsub		(const xmlChar * str, 
    int start,
    int len)
    -
    int	xmlUTF8Charcmp			(const xmlChar * utf1, 
    const xmlChar * utf2)
    -
    int	xmlUTF8Size			(const xmlChar * utf)
    -
    int	xmlUTF8Strlen			(const xmlChar * utf)
    -
    int	xmlUTF8Strloc			(const xmlChar * utf, 
    const xmlChar * utfchar)
    -
    xmlChar *	xmlUTF8Strndup		(const xmlChar * utf, 
    int len)
    -
    const xmlChar *	xmlUTF8Strpos		(const xmlChar * utf, 
    int pos)
    -
    int	xmlUTF8Strsize			(const xmlChar * utf, 
    int len)
    -
    xmlChar *	xmlUTF8Strsub		(const xmlChar * utf, 
    int start,
    int len)
    -

    Description

    -

    Macro: BAD_CAST

    #define BAD_CAST

    Macro to cast a string to an xmlChar * when one know its safe.

    - - This is a basic byte in an UTF-8 encoded string. It's unsigned allowing to pinpoint case where char * are assigned to xmlChar * (possibly making serialization back impossible). -

    Function: xmlCharStrdup

    xmlChar *	xmlCharStrdup		(const char * cur)
    -

    a strdup for char's to xmlChar's

    -
    cur:the input char *
    Returns:a new xmlChar * or NULL

    Function: xmlCharStrndup

    xmlChar *	xmlCharStrndup		(const char * cur, 
    int len)
    -

    a strndup for char's to xmlChar's

    -
    cur:the input char *
    len:the len of @cur
    Returns:a new xmlChar * or NULL

    Function: xmlCheckUTF8

    int	xmlCheckUTF8			(const unsigned char * utf)
    -

    Checks @utf for being valid UTF-8. @utf is assumed to be null-terminated. This function is not super-strict, as it will allow longer UTF-8 sequences than necessary. Note that Java is capable of producing these sequences if provoked. Also note, this routine checks for the 4-byte maximum size, but does not check for 0x10ffff maximum value.

    -
    utf:Pointer to putative UTF-8 encoded string.
    Returns:value: true if @utf is valid.

    Function: xmlGetUTF8Char

    int	xmlGetUTF8Char			(const unsigned char * utf, 
    int * len)
    -

    Read the first UTF8 character from @utf

    -
    utf:a sequence of UTF-8 encoded bytes
    len:a pointer to the minimum number of bytes present in the sequence. This is used to assure the next character is completely contained within the sequence.
    Returns:the char value or -1 in case of error, and sets *len to the actual number of bytes consumed (0 in case of error)

    Function: xmlStrEqual

    int	xmlStrEqual			(const xmlChar * str1, 
    const xmlChar * str2)
    -

    Check if both strings are equal of have same content. Should be a bit more readable and faster than xmlStrcmp()

    -
    str1:the first xmlChar *
    str2:the second xmlChar *
    Returns:1 if they are equal, 0 if they are different

    Function: xmlStrPrintf

    int	xmlStrPrintf			(xmlChar * buf, 
    int len,
    const xmlChar * msg,
    ... ...)
    -

    Formats @msg and places result into @buf.

    -
    buf:the result buffer.
    len:the result buffer length.
    msg:the message with printf formatting.
    ...:extra parameters for the message.
    Returns:the number of characters written to @buf or -1 if an error occurs.

    Function: xmlStrQEqual

    int	xmlStrQEqual			(const xmlChar * pref, 
    const xmlChar * name,
    const xmlChar * str)
    -

    Check if a QName is Equal to a given string

    -
    pref:the prefix of the QName
    name:the localname of the QName
    str:the second xmlChar *
    Returns:1 if they are equal, 0 if they are different

    Function: xmlStrVPrintf

    int	xmlStrVPrintf			(xmlChar * buf, 
    int len,
    const xmlChar * msg,
    va_list ap)
    -

    Formats @msg and places result into @buf.

    -
    buf:the result buffer.
    len:the result buffer length.
    msg:the message with printf formatting.
    ap:extra parameters for the message.
    Returns:the number of characters written to @buf or -1 if an error occurs.

    Function: xmlStrcasecmp

    int	xmlStrcasecmp			(const xmlChar * str1, 
    const xmlChar * str2)
    -

    a strcasecmp for xmlChar's

    -
    str1:the first xmlChar *
    str2:the second xmlChar *
    Returns:the integer result of the comparison

    Function: xmlStrcasestr

    const xmlChar *	xmlStrcasestr		(const xmlChar * str, 
    xmlChar * val)
    -

    a case-ignoring strstr for xmlChar's

    -
    str:the xmlChar * array (haystack)
    val:the xmlChar to search (needle)
    Returns:the xmlChar * for the first occurrence or NULL.

    Function: xmlStrcat

    xmlChar *	xmlStrcat		(xmlChar * cur, 
    const xmlChar * add)
    -

    a strcat for array of xmlChar's. Since they are supposed to be encoded in UTF-8 or an encoding with 8bit based chars, we assume a termination mark of '0'.

    -
    cur:the original xmlChar * array
    add:the xmlChar * array added
    Returns:a new xmlChar * containing the concatenated string.

    Function: xmlStrchr

    const xmlChar *	xmlStrchr		(const xmlChar * str, 
    xmlChar val)
    -

    a strchr for xmlChar's

    -
    str:the xmlChar * array
    val:the xmlChar to search
    Returns:the xmlChar * for the first occurrence or NULL.

    Function: xmlStrcmp

    int	xmlStrcmp			(const xmlChar * str1, 
    const xmlChar * str2)
    -

    a strcmp for xmlChar's

    -
    str1:the first xmlChar *
    str2:the second xmlChar *
    Returns:the integer result of the comparison

    Function: xmlStrdup

    xmlChar *	xmlStrdup		(const xmlChar * cur)
    -

    a strdup for array of xmlChar's. Since they are supposed to be encoded in UTF-8 or an encoding with 8bit based chars, we assume a termination mark of '0'.

    -
    cur:the input xmlChar *
    Returns:a new xmlChar * or NULL

    Function: xmlStrlen

    int	xmlStrlen			(const xmlChar * str)
    -

    length of a xmlChar's string

    -
    str:the xmlChar * array
    Returns:the number of xmlChar contained in the ARRAY.

    Function: xmlStrncasecmp

    int	xmlStrncasecmp			(const xmlChar * str1, 
    const xmlChar * str2,
    int len)
    -

    a strncasecmp for xmlChar's

    -
    str1:the first xmlChar *
    str2:the second xmlChar *
    len:the max comparison length
    Returns:the integer result of the comparison

    Function: xmlStrncat

    xmlChar *	xmlStrncat		(xmlChar * cur, 
    const xmlChar * add,
    int len)
    -

    a strncat for array of xmlChar's, it will extend @cur with the len first bytes of @add. Note that if @len < 0 then this is an API error and NULL will be returned.

    -
    cur:the original xmlChar * array
    add:the xmlChar * array added
    len:the length of @add
    Returns:a new xmlChar *, the original @cur is reallocated if needed and should not be freed

    Function: xmlStrncatNew

    xmlChar *	xmlStrncatNew		(const xmlChar * str1, 
    const xmlChar * str2,
    int len)
    -

    same as xmlStrncat, but creates a new string. The original two strings are not freed. If @len is < 0 then the length will be calculated automatically.

    -
    str1:first xmlChar string
    str2:second xmlChar string
    len:the len of @str2 or < 0
    Returns:a new xmlChar * or NULL

    Function: xmlStrncmp

    int	xmlStrncmp			(const xmlChar * str1, 
    const xmlChar * str2,
    int len)
    -

    a strncmp for xmlChar's

    -
    str1:the first xmlChar *
    str2:the second xmlChar *
    len:the max comparison length
    Returns:the integer result of the comparison

    Function: xmlStrndup

    xmlChar *	xmlStrndup		(const xmlChar * cur, 
    int len)
    -

    a strndup for array of xmlChar's

    -
    cur:the input xmlChar *
    len:the len of @cur
    Returns:a new xmlChar * or NULL

    Function: xmlStrstr

    const xmlChar *	xmlStrstr		(const xmlChar * str, 
    const xmlChar * val)
    -

    a strstr for xmlChar's

    -
    str:the xmlChar * array (haystack)
    val:the xmlChar to search (needle)
    Returns:the xmlChar * for the first occurrence or NULL.

    Function: xmlStrsub

    xmlChar *	xmlStrsub		(const xmlChar * str, 
    int start,
    int len)
    -

    Extract a substring of a given string

    -
    str:the xmlChar * array (haystack)
    start:the index of the first char (zero based)
    len:the length of the substring
    Returns:the xmlChar * for the first occurrence or NULL.

    Function: xmlUTF8Charcmp

    int	xmlUTF8Charcmp			(const xmlChar * utf1, 
    const xmlChar * utf2)
    -

    compares the two UCS4 values

    -
    utf1:pointer to first UTF8 char
    utf2:pointer to second UTF8 char
    Returns:result of the compare as with xmlStrncmp

    Function: xmlUTF8Size

    int	xmlUTF8Size			(const xmlChar * utf)
    -

    calculates the internal size of a UTF8 character

    -
    utf:pointer to the UTF8 character
    Returns:the numbers of bytes in the character, -1 on format error

    Function: xmlUTF8Strlen

    int	xmlUTF8Strlen			(const xmlChar * utf)
    -

    compute the length of an UTF8 string, it doesn't do a full UTF8 checking of the content of the string.

    -
    utf:a sequence of UTF-8 encoded bytes
    Returns:the number of characters in the string or -1 in case of error

    Function: xmlUTF8Strloc

    int	xmlUTF8Strloc			(const xmlChar * utf, 
    const xmlChar * utfchar)
    -

    a function to provide the relative location of a UTF8 char

    -
    utf:the input UTF8 *
    utfchar:the UTF8 character to be found
    Returns:the relative character position of the desired char or -1 if not found

    Function: xmlUTF8Strndup

    xmlChar *	xmlUTF8Strndup		(const xmlChar * utf, 
    int len)
    -

    a strndup for array of UTF8's

    -
    utf:the input UTF8 *
    len:the len of @utf (in chars)
    Returns:a new UTF8 * or NULL

    Function: xmlUTF8Strpos

    const xmlChar *	xmlUTF8Strpos		(const xmlChar * utf, 
    int pos)
    -

    a function to provide the equivalent of fetching a character from a string array

    -
    utf:the input UTF8 *
    pos:the position of the desired UTF8 char (in chars)
    Returns:a pointer to the UTF8 character or NULL

    Function: xmlUTF8Strsize

    int	xmlUTF8Strsize			(const xmlChar * utf, 
    int len)
    -

    storage size of an UTF8 string the behaviour is not garanteed if the input string is not UTF-8

    -
    utf:a sequence of UTF-8 encoded bytes
    len:the number of characters in the array
    Returns:the storage size of the first 'len' characters of ARRAY

    Function: xmlUTF8Strsub

    xmlChar *	xmlUTF8Strsub		(const xmlChar * utf, 
    int start,
    int len)
    -

    Create a substring from a given UTF-8 string Note: positions are given in units of UTF-8 chars

    -
    utf:a sequence of UTF-8 encoded bytes
    start:relative pos of first char
    len:total number to copy
    Returns:a pointer to a newly created string or NULL if any problem

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xmlunicode.html b/src/tools/docbook/libxml2/doc/html/libxml-xmlunicode.html deleted file mode 100644 index ceb8450798..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xmlunicode.html +++ /dev/null @@ -1,512 +0,0 @@ - - -Module xmlunicode from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xmlunicode from libxml2

    API Menu
    API Indexes
    Related links

    API for the Unicode character APIs This file is automatically generated from the UCS description files of the Unicode Character Database

    Table of Contents

    int	xmlUCSIsAegeanNumbers		(int code)
    -
    int	xmlUCSIsAlphabeticPresentationForms	(int code)
    -
    int	xmlUCSIsArabic			(int code)
    -
    int	xmlUCSIsArabicPresentationFormsA	(int code)
    -
    int	xmlUCSIsArabicPresentationFormsB	(int code)
    -
    int	xmlUCSIsArmenian		(int code)
    -
    int	xmlUCSIsArrows			(int code)
    -
    int	xmlUCSIsBasicLatin		(int code)
    -
    int	xmlUCSIsBengali			(int code)
    -
    int	xmlUCSIsBlock			(int code, 
    const char * block)
    -
    int	xmlUCSIsBlockElements		(int code)
    -
    int	xmlUCSIsBopomofo		(int code)
    -
    int	xmlUCSIsBopomofoExtended	(int code)
    -
    int	xmlUCSIsBoxDrawing		(int code)
    -
    int	xmlUCSIsBraillePatterns		(int code)
    -
    int	xmlUCSIsBuhid			(int code)
    -
    int	xmlUCSIsByzantineMusicalSymbols	(int code)
    -
    int	xmlUCSIsCJKCompatibility	(int code)
    -
    int	xmlUCSIsCJKCompatibilityForms	(int code)
    -
    int	xmlUCSIsCJKCompatibilityIdeographs	(int code)
    -
    int	xmlUCSIsCJKCompatibilityIdeographsSupplement	(int code)
    -
    int	xmlUCSIsCJKRadicalsSupplement	(int code)
    -
    int	xmlUCSIsCJKSymbolsandPunctuation	(int code)
    -
    int	xmlUCSIsCJKUnifiedIdeographs	(int code)
    -
    int	xmlUCSIsCJKUnifiedIdeographsExtensionA	(int code)
    -
    int	xmlUCSIsCJKUnifiedIdeographsExtensionB	(int code)
    -
    int	xmlUCSIsCat			(int code, 
    const char * cat)
    -
    int	xmlUCSIsCatC			(int code)
    -
    int	xmlUCSIsCatCc			(int code)
    -
    int	xmlUCSIsCatCf			(int code)
    -
    int	xmlUCSIsCatCo			(int code)
    -
    int	xmlUCSIsCatCs			(int code)
    -
    int	xmlUCSIsCatL			(int code)
    -
    int	xmlUCSIsCatLl			(int code)
    -
    int	xmlUCSIsCatLm			(int code)
    -
    int	xmlUCSIsCatLo			(int code)
    -
    int	xmlUCSIsCatLt			(int code)
    -
    int	xmlUCSIsCatLu			(int code)
    -
    int	xmlUCSIsCatM			(int code)
    -
    int	xmlUCSIsCatMc			(int code)
    -
    int	xmlUCSIsCatMe			(int code)
    -
    int	xmlUCSIsCatMn			(int code)
    -
    int	xmlUCSIsCatN			(int code)
    -
    int	xmlUCSIsCatNd			(int code)
    -
    int	xmlUCSIsCatNl			(int code)
    -
    int	xmlUCSIsCatNo			(int code)
    -
    int	xmlUCSIsCatP			(int code)
    -
    int	xmlUCSIsCatPc			(int code)
    -
    int	xmlUCSIsCatPd			(int code)
    -
    int	xmlUCSIsCatPe			(int code)
    -
    int	xmlUCSIsCatPf			(int code)
    -
    int	xmlUCSIsCatPi			(int code)
    -
    int	xmlUCSIsCatPo			(int code)
    -
    int	xmlUCSIsCatPs			(int code)
    -
    int	xmlUCSIsCatS			(int code)
    -
    int	xmlUCSIsCatSc			(int code)
    -
    int	xmlUCSIsCatSk			(int code)
    -
    int	xmlUCSIsCatSm			(int code)
    -
    int	xmlUCSIsCatSo			(int code)
    -
    int	xmlUCSIsCatZ			(int code)
    -
    int	xmlUCSIsCatZl			(int code)
    -
    int	xmlUCSIsCatZp			(int code)
    -
    int	xmlUCSIsCatZs			(int code)
    -
    int	xmlUCSIsCherokee		(int code)
    -
    int	xmlUCSIsCombiningDiacriticalMarks	(int code)
    -
    int	xmlUCSIsCombiningDiacriticalMarksforSymbols	(int code)
    -
    int	xmlUCSIsCombiningHalfMarks	(int code)
    -
    int	xmlUCSIsCombiningMarksforSymbols	(int code)
    -
    int	xmlUCSIsControlPictures		(int code)
    -
    int	xmlUCSIsCurrencySymbols		(int code)
    -
    int	xmlUCSIsCypriotSyllabary	(int code)
    -
    int	xmlUCSIsCyrillic		(int code)
    -
    int	xmlUCSIsCyrillicSupplement	(int code)
    -
    int	xmlUCSIsDeseret			(int code)
    -
    int	xmlUCSIsDevanagari		(int code)
    -
    int	xmlUCSIsDingbats		(int code)
    -
    int	xmlUCSIsEnclosedAlphanumerics	(int code)
    -
    int	xmlUCSIsEnclosedCJKLettersandMonths	(int code)
    -
    int	xmlUCSIsEthiopic		(int code)
    -
    int	xmlUCSIsGeneralPunctuation	(int code)
    -
    int	xmlUCSIsGeometricShapes		(int code)
    -
    int	xmlUCSIsGeorgian		(int code)
    -
    int	xmlUCSIsGothic			(int code)
    -
    int	xmlUCSIsGreek			(int code)
    -
    int	xmlUCSIsGreekExtended		(int code)
    -
    int	xmlUCSIsGreekandCoptic		(int code)
    -
    int	xmlUCSIsGujarati		(int code)
    -
    int	xmlUCSIsGurmukhi		(int code)
    -
    int	xmlUCSIsHalfwidthandFullwidthForms	(int code)
    -
    int	xmlUCSIsHangulCompatibilityJamo	(int code)
    -
    int	xmlUCSIsHangulJamo		(int code)
    -
    int	xmlUCSIsHangulSyllables		(int code)
    -
    int	xmlUCSIsHanunoo			(int code)
    -
    int	xmlUCSIsHebrew			(int code)
    -
    int	xmlUCSIsHighPrivateUseSurrogates	(int code)
    -
    int	xmlUCSIsHighSurrogates		(int code)
    -
    int	xmlUCSIsHiragana		(int code)
    -
    int	xmlUCSIsIPAExtensions		(int code)
    -
    int	xmlUCSIsIdeographicDescriptionCharacters	(int code)
    -
    int	xmlUCSIsKanbun			(int code)
    -
    int	xmlUCSIsKangxiRadicals		(int code)
    -
    int	xmlUCSIsKannada			(int code)
    -
    int	xmlUCSIsKatakana		(int code)
    -
    int	xmlUCSIsKatakanaPhoneticExtensions	(int code)
    -
    int	xmlUCSIsKhmer			(int code)
    -
    int	xmlUCSIsKhmerSymbols		(int code)
    -
    int	xmlUCSIsLao			(int code)
    -
    int	xmlUCSIsLatin1Supplement	(int code)
    -
    int	xmlUCSIsLatinExtendedA		(int code)
    -
    int	xmlUCSIsLatinExtendedAdditional	(int code)
    -
    int	xmlUCSIsLatinExtendedB		(int code)
    -
    int	xmlUCSIsLetterlikeSymbols	(int code)
    -
    int	xmlUCSIsLimbu			(int code)
    -
    int	xmlUCSIsLinearBIdeograms	(int code)
    -
    int	xmlUCSIsLinearBSyllabary	(int code)
    -
    int	xmlUCSIsLowSurrogates		(int code)
    -
    int	xmlUCSIsMalayalam		(int code)
    -
    int	xmlUCSIsMathematicalAlphanumericSymbols	(int code)
    -
    int	xmlUCSIsMathematicalOperators	(int code)
    -
    int	xmlUCSIsMiscellaneousMathematicalSymbolsA	(int code)
    -
    int	xmlUCSIsMiscellaneousMathematicalSymbolsB	(int code)
    -
    int	xmlUCSIsMiscellaneousSymbols	(int code)
    -
    int	xmlUCSIsMiscellaneousSymbolsandArrows	(int code)
    -
    int	xmlUCSIsMiscellaneousTechnical	(int code)
    -
    int	xmlUCSIsMongolian		(int code)
    -
    int	xmlUCSIsMusicalSymbols		(int code)
    -
    int	xmlUCSIsMyanmar			(int code)
    -
    int	xmlUCSIsNumberForms		(int code)
    -
    int	xmlUCSIsOgham			(int code)
    -
    int	xmlUCSIsOldItalic		(int code)
    -
    int	xmlUCSIsOpticalCharacterRecognition	(int code)
    -
    int	xmlUCSIsOriya			(int code)
    -
    int	xmlUCSIsOsmanya			(int code)
    -
    int	xmlUCSIsPhoneticExtensions	(int code)
    -
    int	xmlUCSIsPrivateUse		(int code)
    -
    int	xmlUCSIsPrivateUseArea		(int code)
    -
    int	xmlUCSIsRunic			(int code)
    -
    int	xmlUCSIsShavian			(int code)
    -
    int	xmlUCSIsSinhala			(int code)
    -
    int	xmlUCSIsSmallFormVariants	(int code)
    -
    int	xmlUCSIsSpacingModifierLetters	(int code)
    -
    int	xmlUCSIsSpecials		(int code)
    -
    int	xmlUCSIsSuperscriptsandSubscripts	(int code)
    -
    int	xmlUCSIsSupplementalArrowsA	(int code)
    -
    int	xmlUCSIsSupplementalArrowsB	(int code)
    -
    int	xmlUCSIsSupplementalMathematicalOperators	(int code)
    -
    int	xmlUCSIsSupplementaryPrivateUseAreaA	(int code)
    -
    int	xmlUCSIsSupplementaryPrivateUseAreaB	(int code)
    -
    int	xmlUCSIsSyriac			(int code)
    -
    int	xmlUCSIsTagalog			(int code)
    -
    int	xmlUCSIsTagbanwa		(int code)
    -
    int	xmlUCSIsTags			(int code)
    -
    int	xmlUCSIsTaiLe			(int code)
    -
    int	xmlUCSIsTaiXuanJingSymbols	(int code)
    -
    int	xmlUCSIsTamil			(int code)
    -
    int	xmlUCSIsTelugu			(int code)
    -
    int	xmlUCSIsThaana			(int code)
    -
    int	xmlUCSIsThai			(int code)
    -
    int	xmlUCSIsTibetan			(int code)
    -
    int	xmlUCSIsUgaritic		(int code)
    -
    int	xmlUCSIsUnifiedCanadianAboriginalSyllabics	(int code)
    -
    int	xmlUCSIsVariationSelectors	(int code)
    -
    int	xmlUCSIsVariationSelectorsSupplement	(int code)
    -
    int	xmlUCSIsYiRadicals		(int code)
    -
    int	xmlUCSIsYiSyllables		(int code)
    -
    int	xmlUCSIsYijingHexagramSymbols	(int code)
    -

    Description

    -

    Function: xmlUCSIsAegeanNumbers

    int	xmlUCSIsAegeanNumbers		(int code)
    -

    Check whether the character is part of AegeanNumbers UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsAlphabeticPresentationForms

    int	xmlUCSIsAlphabeticPresentationForms	(int code)
    -

    Check whether the character is part of AlphabeticPresentationForms UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsArabic

    int	xmlUCSIsArabic			(int code)
    -

    Check whether the character is part of Arabic UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsArabicPresentationFormsA

    int	xmlUCSIsArabicPresentationFormsA	(int code)
    -

    Check whether the character is part of ArabicPresentationForms-A UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsArabicPresentationFormsB

    int	xmlUCSIsArabicPresentationFormsB	(int code)
    -

    Check whether the character is part of ArabicPresentationForms-B UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsArmenian

    int	xmlUCSIsArmenian		(int code)
    -

    Check whether the character is part of Armenian UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsArrows

    int	xmlUCSIsArrows			(int code)
    -

    Check whether the character is part of Arrows UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsBasicLatin

    int	xmlUCSIsBasicLatin		(int code)
    -

    Check whether the character is part of BasicLatin UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsBengali

    int	xmlUCSIsBengali			(int code)
    -

    Check whether the character is part of Bengali UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsBlock

    int	xmlUCSIsBlock			(int code, 
    const char * block)
    -

    Check whether the character is part of the UCS Block

    -
    code:UCS code point
    block:UCS block name
    Returns:1 if true, 0 if false and -1 on unknown block

    Function: xmlUCSIsBlockElements

    int	xmlUCSIsBlockElements		(int code)
    -

    Check whether the character is part of BlockElements UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsBopomofo

    int	xmlUCSIsBopomofo		(int code)
    -

    Check whether the character is part of Bopomofo UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsBopomofoExtended

    int	xmlUCSIsBopomofoExtended	(int code)
    -

    Check whether the character is part of BopomofoExtended UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsBoxDrawing

    int	xmlUCSIsBoxDrawing		(int code)
    -

    Check whether the character is part of BoxDrawing UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsBraillePatterns

    int	xmlUCSIsBraillePatterns		(int code)
    -

    Check whether the character is part of BraillePatterns UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsBuhid

    int	xmlUCSIsBuhid			(int code)
    -

    Check whether the character is part of Buhid UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsByzantineMusicalSymbols

    int	xmlUCSIsByzantineMusicalSymbols	(int code)
    -

    Check whether the character is part of ByzantineMusicalSymbols UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCJKCompatibility

    int	xmlUCSIsCJKCompatibility	(int code)
    -

    Check whether the character is part of CJKCompatibility UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCJKCompatibilityForms

    int	xmlUCSIsCJKCompatibilityForms	(int code)
    -

    Check whether the character is part of CJKCompatibilityForms UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCJKCompatibilityIdeographs

    int	xmlUCSIsCJKCompatibilityIdeographs	(int code)
    -

    Check whether the character is part of CJKCompatibilityIdeographs UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCJKCompatibilityIdeographsSupplement

    int	xmlUCSIsCJKCompatibilityIdeographsSupplement	(int code)
    -

    Check whether the character is part of CJKCompatibilityIdeographsSupplement UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCJKRadicalsSupplement

    int	xmlUCSIsCJKRadicalsSupplement	(int code)
    -

    Check whether the character is part of CJKRadicalsSupplement UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCJKSymbolsandPunctuation

    int	xmlUCSIsCJKSymbolsandPunctuation	(int code)
    -

    Check whether the character is part of CJKSymbolsandPunctuation UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCJKUnifiedIdeographs

    int	xmlUCSIsCJKUnifiedIdeographs	(int code)
    -

    Check whether the character is part of CJKUnifiedIdeographs UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCJKUnifiedIdeographsExtensionA

    int	xmlUCSIsCJKUnifiedIdeographsExtensionA	(int code)
    -

    Check whether the character is part of CJKUnifiedIdeographsExtensionA UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCJKUnifiedIdeographsExtensionB

    int	xmlUCSIsCJKUnifiedIdeographsExtensionB	(int code)
    -

    Check whether the character is part of CJKUnifiedIdeographsExtensionB UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCat

    int	xmlUCSIsCat			(int code, 
    const char * cat)
    -

    Check whether the character is part of the UCS Category

    -
    code:UCS code point
    cat:UCS Category name
    Returns:1 if true, 0 if false and -1 on unknown category

    Function: xmlUCSIsCatC

    int	xmlUCSIsCatC			(int code)
    -

    Check whether the character is part of C UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatCc

    int	xmlUCSIsCatCc			(int code)
    -

    Check whether the character is part of Cc UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatCf

    int	xmlUCSIsCatCf			(int code)
    -

    Check whether the character is part of Cf UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatCo

    int	xmlUCSIsCatCo			(int code)
    -

    Check whether the character is part of Co UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatCs

    int	xmlUCSIsCatCs			(int code)
    -

    Check whether the character is part of Cs UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatL

    int	xmlUCSIsCatL			(int code)
    -

    Check whether the character is part of L UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatLl

    int	xmlUCSIsCatLl			(int code)
    -

    Check whether the character is part of Ll UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatLm

    int	xmlUCSIsCatLm			(int code)
    -

    Check whether the character is part of Lm UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatLo

    int	xmlUCSIsCatLo			(int code)
    -

    Check whether the character is part of Lo UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatLt

    int	xmlUCSIsCatLt			(int code)
    -

    Check whether the character is part of Lt UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatLu

    int	xmlUCSIsCatLu			(int code)
    -

    Check whether the character is part of Lu UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatM

    int	xmlUCSIsCatM			(int code)
    -

    Check whether the character is part of M UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatMc

    int	xmlUCSIsCatMc			(int code)
    -

    Check whether the character is part of Mc UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatMe

    int	xmlUCSIsCatMe			(int code)
    -

    Check whether the character is part of Me UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatMn

    int	xmlUCSIsCatMn			(int code)
    -

    Check whether the character is part of Mn UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatN

    int	xmlUCSIsCatN			(int code)
    -

    Check whether the character is part of N UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatNd

    int	xmlUCSIsCatNd			(int code)
    -

    Check whether the character is part of Nd UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatNl

    int	xmlUCSIsCatNl			(int code)
    -

    Check whether the character is part of Nl UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatNo

    int	xmlUCSIsCatNo			(int code)
    -

    Check whether the character is part of No UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatP

    int	xmlUCSIsCatP			(int code)
    -

    Check whether the character is part of P UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatPc

    int	xmlUCSIsCatPc			(int code)
    -

    Check whether the character is part of Pc UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatPd

    int	xmlUCSIsCatPd			(int code)
    -

    Check whether the character is part of Pd UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatPe

    int	xmlUCSIsCatPe			(int code)
    -

    Check whether the character is part of Pe UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatPf

    int	xmlUCSIsCatPf			(int code)
    -

    Check whether the character is part of Pf UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatPi

    int	xmlUCSIsCatPi			(int code)
    -

    Check whether the character is part of Pi UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatPo

    int	xmlUCSIsCatPo			(int code)
    -

    Check whether the character is part of Po UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatPs

    int	xmlUCSIsCatPs			(int code)
    -

    Check whether the character is part of Ps UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatS

    int	xmlUCSIsCatS			(int code)
    -

    Check whether the character is part of S UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatSc

    int	xmlUCSIsCatSc			(int code)
    -

    Check whether the character is part of Sc UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatSk

    int	xmlUCSIsCatSk			(int code)
    -

    Check whether the character is part of Sk UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatSm

    int	xmlUCSIsCatSm			(int code)
    -

    Check whether the character is part of Sm UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatSo

    int	xmlUCSIsCatSo			(int code)
    -

    Check whether the character is part of So UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatZ

    int	xmlUCSIsCatZ			(int code)
    -

    Check whether the character is part of Z UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatZl

    int	xmlUCSIsCatZl			(int code)
    -

    Check whether the character is part of Zl UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatZp

    int	xmlUCSIsCatZp			(int code)
    -

    Check whether the character is part of Zp UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCatZs

    int	xmlUCSIsCatZs			(int code)
    -

    Check whether the character is part of Zs UCS Category

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCherokee

    int	xmlUCSIsCherokee		(int code)
    -

    Check whether the character is part of Cherokee UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCombiningDiacriticalMarks

    int	xmlUCSIsCombiningDiacriticalMarks	(int code)
    -

    Check whether the character is part of CombiningDiacriticalMarks UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCombiningDiacriticalMarksforSymbols

    int	xmlUCSIsCombiningDiacriticalMarksforSymbols	(int code)
    -

    Check whether the character is part of CombiningDiacriticalMarksforSymbols UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCombiningHalfMarks

    int	xmlUCSIsCombiningHalfMarks	(int code)
    -

    Check whether the character is part of CombiningHalfMarks UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCombiningMarksforSymbols

    int	xmlUCSIsCombiningMarksforSymbols	(int code)
    -

    Check whether the character is part of CombiningMarksforSymbols UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsControlPictures

    int	xmlUCSIsControlPictures		(int code)
    -

    Check whether the character is part of ControlPictures UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCurrencySymbols

    int	xmlUCSIsCurrencySymbols		(int code)
    -

    Check whether the character is part of CurrencySymbols UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCypriotSyllabary

    int	xmlUCSIsCypriotSyllabary	(int code)
    -

    Check whether the character is part of CypriotSyllabary UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCyrillic

    int	xmlUCSIsCyrillic		(int code)
    -

    Check whether the character is part of Cyrillic UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsCyrillicSupplement

    int	xmlUCSIsCyrillicSupplement	(int code)
    -

    Check whether the character is part of CyrillicSupplement UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsDeseret

    int	xmlUCSIsDeseret			(int code)
    -

    Check whether the character is part of Deseret UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsDevanagari

    int	xmlUCSIsDevanagari		(int code)
    -

    Check whether the character is part of Devanagari UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsDingbats

    int	xmlUCSIsDingbats		(int code)
    -

    Check whether the character is part of Dingbats UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsEnclosedAlphanumerics

    int	xmlUCSIsEnclosedAlphanumerics	(int code)
    -

    Check whether the character is part of EnclosedAlphanumerics UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsEnclosedCJKLettersandMonths

    int	xmlUCSIsEnclosedCJKLettersandMonths	(int code)
    -

    Check whether the character is part of EnclosedCJKLettersandMonths UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsEthiopic

    int	xmlUCSIsEthiopic		(int code)
    -

    Check whether the character is part of Ethiopic UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsGeneralPunctuation

    int	xmlUCSIsGeneralPunctuation	(int code)
    -

    Check whether the character is part of GeneralPunctuation UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsGeometricShapes

    int	xmlUCSIsGeometricShapes		(int code)
    -

    Check whether the character is part of GeometricShapes UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsGeorgian

    int	xmlUCSIsGeorgian		(int code)
    -

    Check whether the character is part of Georgian UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsGothic

    int	xmlUCSIsGothic			(int code)
    -

    Check whether the character is part of Gothic UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsGreek

    int	xmlUCSIsGreek			(int code)
    -

    Check whether the character is part of Greek UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsGreekExtended

    int	xmlUCSIsGreekExtended		(int code)
    -

    Check whether the character is part of GreekExtended UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsGreekandCoptic

    int	xmlUCSIsGreekandCoptic		(int code)
    -

    Check whether the character is part of GreekandCoptic UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsGujarati

    int	xmlUCSIsGujarati		(int code)
    -

    Check whether the character is part of Gujarati UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsGurmukhi

    int	xmlUCSIsGurmukhi		(int code)
    -

    Check whether the character is part of Gurmukhi UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsHalfwidthandFullwidthForms

    int	xmlUCSIsHalfwidthandFullwidthForms	(int code)
    -

    Check whether the character is part of HalfwidthandFullwidthForms UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsHangulCompatibilityJamo

    int	xmlUCSIsHangulCompatibilityJamo	(int code)
    -

    Check whether the character is part of HangulCompatibilityJamo UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsHangulJamo

    int	xmlUCSIsHangulJamo		(int code)
    -

    Check whether the character is part of HangulJamo UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsHangulSyllables

    int	xmlUCSIsHangulSyllables		(int code)
    -

    Check whether the character is part of HangulSyllables UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsHanunoo

    int	xmlUCSIsHanunoo			(int code)
    -

    Check whether the character is part of Hanunoo UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsHebrew

    int	xmlUCSIsHebrew			(int code)
    -

    Check whether the character is part of Hebrew UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsHighPrivateUseSurrogates

    int	xmlUCSIsHighPrivateUseSurrogates	(int code)
    -

    Check whether the character is part of HighPrivateUseSurrogates UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsHighSurrogates

    int	xmlUCSIsHighSurrogates		(int code)
    -

    Check whether the character is part of HighSurrogates UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsHiragana

    int	xmlUCSIsHiragana		(int code)
    -

    Check whether the character is part of Hiragana UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsIPAExtensions

    int	xmlUCSIsIPAExtensions		(int code)
    -

    Check whether the character is part of IPAExtensions UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsIdeographicDescriptionCharacters

    int	xmlUCSIsIdeographicDescriptionCharacters	(int code)
    -

    Check whether the character is part of IdeographicDescriptionCharacters UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsKanbun

    int	xmlUCSIsKanbun			(int code)
    -

    Check whether the character is part of Kanbun UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsKangxiRadicals

    int	xmlUCSIsKangxiRadicals		(int code)
    -

    Check whether the character is part of KangxiRadicals UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsKannada

    int	xmlUCSIsKannada			(int code)
    -

    Check whether the character is part of Kannada UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsKatakana

    int	xmlUCSIsKatakana		(int code)
    -

    Check whether the character is part of Katakana UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsKatakanaPhoneticExtensions

    int	xmlUCSIsKatakanaPhoneticExtensions	(int code)
    -

    Check whether the character is part of KatakanaPhoneticExtensions UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsKhmer

    int	xmlUCSIsKhmer			(int code)
    -

    Check whether the character is part of Khmer UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsKhmerSymbols

    int	xmlUCSIsKhmerSymbols		(int code)
    -

    Check whether the character is part of KhmerSymbols UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsLao

    int	xmlUCSIsLao			(int code)
    -

    Check whether the character is part of Lao UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsLatin1Supplement

    int	xmlUCSIsLatin1Supplement	(int code)
    -

    Check whether the character is part of Latin-1Supplement UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsLatinExtendedA

    int	xmlUCSIsLatinExtendedA		(int code)
    -

    Check whether the character is part of LatinExtended-A UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsLatinExtendedAdditional

    int	xmlUCSIsLatinExtendedAdditional	(int code)
    -

    Check whether the character is part of LatinExtendedAdditional UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsLatinExtendedB

    int	xmlUCSIsLatinExtendedB		(int code)
    -

    Check whether the character is part of LatinExtended-B UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsLetterlikeSymbols

    int	xmlUCSIsLetterlikeSymbols	(int code)
    -

    Check whether the character is part of LetterlikeSymbols UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsLimbu

    int	xmlUCSIsLimbu			(int code)
    -

    Check whether the character is part of Limbu UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsLinearBIdeograms

    int	xmlUCSIsLinearBIdeograms	(int code)
    -

    Check whether the character is part of LinearBIdeograms UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsLinearBSyllabary

    int	xmlUCSIsLinearBSyllabary	(int code)
    -

    Check whether the character is part of LinearBSyllabary UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsLowSurrogates

    int	xmlUCSIsLowSurrogates		(int code)
    -

    Check whether the character is part of LowSurrogates UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsMalayalam

    int	xmlUCSIsMalayalam		(int code)
    -

    Check whether the character is part of Malayalam UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsMathematicalAlphanumericSymbols

    int	xmlUCSIsMathematicalAlphanumericSymbols	(int code)
    -

    Check whether the character is part of MathematicalAlphanumericSymbols UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsMathematicalOperators

    int	xmlUCSIsMathematicalOperators	(int code)
    -

    Check whether the character is part of MathematicalOperators UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsMiscellaneousMathematicalSymbolsA

    int	xmlUCSIsMiscellaneousMathematicalSymbolsA	(int code)
    -

    Check whether the character is part of MiscellaneousMathematicalSymbols-A UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsMiscellaneousMathematicalSymbolsB

    int	xmlUCSIsMiscellaneousMathematicalSymbolsB	(int code)
    -

    Check whether the character is part of MiscellaneousMathematicalSymbols-B UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsMiscellaneousSymbols

    int	xmlUCSIsMiscellaneousSymbols	(int code)
    -

    Check whether the character is part of MiscellaneousSymbols UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsMiscellaneousSymbolsandArrows

    int	xmlUCSIsMiscellaneousSymbolsandArrows	(int code)
    -

    Check whether the character is part of MiscellaneousSymbolsandArrows UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsMiscellaneousTechnical

    int	xmlUCSIsMiscellaneousTechnical	(int code)
    -

    Check whether the character is part of MiscellaneousTechnical UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsMongolian

    int	xmlUCSIsMongolian		(int code)
    -

    Check whether the character is part of Mongolian UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsMusicalSymbols

    int	xmlUCSIsMusicalSymbols		(int code)
    -

    Check whether the character is part of MusicalSymbols UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsMyanmar

    int	xmlUCSIsMyanmar			(int code)
    -

    Check whether the character is part of Myanmar UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsNumberForms

    int	xmlUCSIsNumberForms		(int code)
    -

    Check whether the character is part of NumberForms UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsOgham

    int	xmlUCSIsOgham			(int code)
    -

    Check whether the character is part of Ogham UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsOldItalic

    int	xmlUCSIsOldItalic		(int code)
    -

    Check whether the character is part of OldItalic UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsOpticalCharacterRecognition

    int	xmlUCSIsOpticalCharacterRecognition	(int code)
    -

    Check whether the character is part of OpticalCharacterRecognition UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsOriya

    int	xmlUCSIsOriya			(int code)
    -

    Check whether the character is part of Oriya UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsOsmanya

    int	xmlUCSIsOsmanya			(int code)
    -

    Check whether the character is part of Osmanya UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsPhoneticExtensions

    int	xmlUCSIsPhoneticExtensions	(int code)
    -

    Check whether the character is part of PhoneticExtensions UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsPrivateUse

    int	xmlUCSIsPrivateUse		(int code)
    -

    Check whether the character is part of PrivateUse UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsPrivateUseArea

    int	xmlUCSIsPrivateUseArea		(int code)
    -

    Check whether the character is part of PrivateUseArea UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsRunic

    int	xmlUCSIsRunic			(int code)
    -

    Check whether the character is part of Runic UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsShavian

    int	xmlUCSIsShavian			(int code)
    -

    Check whether the character is part of Shavian UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsSinhala

    int	xmlUCSIsSinhala			(int code)
    -

    Check whether the character is part of Sinhala UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsSmallFormVariants

    int	xmlUCSIsSmallFormVariants	(int code)
    -

    Check whether the character is part of SmallFormVariants UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsSpacingModifierLetters

    int	xmlUCSIsSpacingModifierLetters	(int code)
    -

    Check whether the character is part of SpacingModifierLetters UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsSpecials

    int	xmlUCSIsSpecials		(int code)
    -

    Check whether the character is part of Specials UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsSuperscriptsandSubscripts

    int	xmlUCSIsSuperscriptsandSubscripts	(int code)
    -

    Check whether the character is part of SuperscriptsandSubscripts UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsSupplementalArrowsA

    int	xmlUCSIsSupplementalArrowsA	(int code)
    -

    Check whether the character is part of SupplementalArrows-A UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsSupplementalArrowsB

    int	xmlUCSIsSupplementalArrowsB	(int code)
    -

    Check whether the character is part of SupplementalArrows-B UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsSupplementalMathematicalOperators

    int	xmlUCSIsSupplementalMathematicalOperators	(int code)
    -

    Check whether the character is part of SupplementalMathematicalOperators UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsSupplementaryPrivateUseAreaA

    int	xmlUCSIsSupplementaryPrivateUseAreaA	(int code)
    -

    Check whether the character is part of SupplementaryPrivateUseArea-A UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsSupplementaryPrivateUseAreaB

    int	xmlUCSIsSupplementaryPrivateUseAreaB	(int code)
    -

    Check whether the character is part of SupplementaryPrivateUseArea-B UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsSyriac

    int	xmlUCSIsSyriac			(int code)
    -

    Check whether the character is part of Syriac UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsTagalog

    int	xmlUCSIsTagalog			(int code)
    -

    Check whether the character is part of Tagalog UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsTagbanwa

    int	xmlUCSIsTagbanwa		(int code)
    -

    Check whether the character is part of Tagbanwa UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsTags

    int	xmlUCSIsTags			(int code)
    -

    Check whether the character is part of Tags UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsTaiLe

    int	xmlUCSIsTaiLe			(int code)
    -

    Check whether the character is part of TaiLe UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsTaiXuanJingSymbols

    int	xmlUCSIsTaiXuanJingSymbols	(int code)
    -

    Check whether the character is part of TaiXuanJingSymbols UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsTamil

    int	xmlUCSIsTamil			(int code)
    -

    Check whether the character is part of Tamil UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsTelugu

    int	xmlUCSIsTelugu			(int code)
    -

    Check whether the character is part of Telugu UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsThaana

    int	xmlUCSIsThaana			(int code)
    -

    Check whether the character is part of Thaana UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsThai

    int	xmlUCSIsThai			(int code)
    -

    Check whether the character is part of Thai UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsTibetan

    int	xmlUCSIsTibetan			(int code)
    -

    Check whether the character is part of Tibetan UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsUgaritic

    int	xmlUCSIsUgaritic		(int code)
    -

    Check whether the character is part of Ugaritic UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsUnifiedCanadianAboriginalSyllabics

    int	xmlUCSIsUnifiedCanadianAboriginalSyllabics	(int code)
    -

    Check whether the character is part of UnifiedCanadianAboriginalSyllabics UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsVariationSelectors

    int	xmlUCSIsVariationSelectors	(int code)
    -

    Check whether the character is part of VariationSelectors UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsVariationSelectorsSupplement

    int	xmlUCSIsVariationSelectorsSupplement	(int code)
    -

    Check whether the character is part of VariationSelectorsSupplement UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsYiRadicals

    int	xmlUCSIsYiRadicals		(int code)
    -

    Check whether the character is part of YiRadicals UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsYiSyllables

    int	xmlUCSIsYiSyllables		(int code)
    -

    Check whether the character is part of YiSyllables UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Function: xmlUCSIsYijingHexagramSymbols

    int	xmlUCSIsYijingHexagramSymbols	(int code)
    -

    Check whether the character is part of YijingHexagramSymbols UCS Block

    -
    code:UCS code point
    Returns:1 if true 0 otherwise

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xmlversion.html b/src/tools/docbook/libxml2/doc/html/libxml-xmlversion.html deleted file mode 100644 index c27b701ab4..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xmlversion.html +++ /dev/null @@ -1,57 +0,0 @@ - - -Module xmlversion from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xmlversion from libxml2

    API Menu
    API Indexes
    Related links

    compile-time version informations for the XML library

    Table of Contents

    #define ATTRIBUTE_UNUSED
    #define DEBUG_MEMORY_LOCATION
    #define LIBXML_AUTOMATA_ENABLED
    #define LIBXML_C14N_ENABLED
    #define LIBXML_CATALOG_ENABLED
    #define LIBXML_DEBUG_ENABLED
    #define LIBXML_DEBUG_RUNTIME
    #define LIBXML_DOCB_ENABLED
    #define LIBXML_DOTTED_VERSION
    #define LIBXML_EXPR_ENABLED
    #define LIBXML_FTP_ENABLED
    #define LIBXML_HTML_ENABLED
    #define LIBXML_HTTP_ENABLED
    #define LIBXML_ICONV_ENABLED
    #define LIBXML_ISO8859X_ENABLED
    #define LIBXML_LEGACY_ENABLED
    #define LIBXML_MODULES_ENABLED
    #define LIBXML_MODULE_EXTENSION
    #define LIBXML_OUTPUT_ENABLED
    #define LIBXML_PATTERN_ENABLED
    #define LIBXML_PUSH_ENABLED
    #define LIBXML_READER_ENABLED
    #define LIBXML_REGEXP_ENABLED
    #define LIBXML_SAX1_ENABLED
    #define LIBXML_SCHEMAS_ENABLED
    #define LIBXML_SCHEMATRON_ENABLED
    #define LIBXML_TEST_VERSION
    #define LIBXML_THREAD_ENABLED
    #define LIBXML_TREE_ENABLED
    #define LIBXML_UNICODE_ENABLED
    #define LIBXML_VALID_ENABLED
    #define LIBXML_VERSION
    #define LIBXML_VERSION_EXTRA
    #define LIBXML_VERSION_STRING
    #define LIBXML_WRITER_ENABLED
    #define LIBXML_XINCLUDE_ENABLED
    #define LIBXML_XPATH_ENABLED
    #define LIBXML_XPTR_ENABLED
    #define WITHOUT_TRIO
    #define WITH_TRIO
    void	xmlCheckVersion			(int version)
    -

    Description

    -

    Macro: ATTRIBUTE_UNUSED

    #define ATTRIBUTE_UNUSED

    Macro used to signal to GCC unused function parameters

    -

    Macro: DEBUG_MEMORY_LOCATION

    #define DEBUG_MEMORY_LOCATION

    Whether the memory debugging is configured in

    -

    Macro: LIBXML_AUTOMATA_ENABLED

    #define LIBXML_AUTOMATA_ENABLED

    Whether the automata interfaces are compiled in

    -

    Macro: LIBXML_C14N_ENABLED

    #define LIBXML_C14N_ENABLED

    Whether the Canonicalization support is configured in

    -

    Macro: LIBXML_CATALOG_ENABLED

    #define LIBXML_CATALOG_ENABLED

    Whether the Catalog support is configured in

    -

    Macro: LIBXML_DEBUG_ENABLED

    #define LIBXML_DEBUG_ENABLED

    Whether Debugging module is configured in

    -

    Macro: LIBXML_DEBUG_RUNTIME

    #define LIBXML_DEBUG_RUNTIME

    Whether the runtime debugging is configured in

    -

    Macro: LIBXML_DOCB_ENABLED

    #define LIBXML_DOCB_ENABLED

    Whether the SGML Docbook support is configured in

    -

    Macro: LIBXML_DOTTED_VERSION

    #define LIBXML_DOTTED_VERSION

    the version string like "1.2.3"

    -

    Macro: LIBXML_EXPR_ENABLED

    #define LIBXML_EXPR_ENABLED

    Whether the formal expressions interfaces are compiled in

    -

    Macro: LIBXML_FTP_ENABLED

    #define LIBXML_FTP_ENABLED

    Whether the FTP support is configured in

    -

    Macro: LIBXML_HTML_ENABLED

    #define LIBXML_HTML_ENABLED

    Whether the HTML support is configured in

    -

    Macro: LIBXML_HTTP_ENABLED

    #define LIBXML_HTTP_ENABLED

    Whether the HTTP support is configured in

    -

    Macro: LIBXML_ICONV_ENABLED

    #define LIBXML_ICONV_ENABLED

    Whether iconv support is available

    -

    Macro: LIBXML_ISO8859X_ENABLED

    #define LIBXML_ISO8859X_ENABLED

    Whether ISO-8859-* support is made available in case iconv is not

    -

    Macro: LIBXML_LEGACY_ENABLED

    #define LIBXML_LEGACY_ENABLED

    Whether the deprecated APIs are compiled in for compatibility

    -

    Macro: LIBXML_MODULES_ENABLED

    #define LIBXML_MODULES_ENABLED

    Whether the module interfaces are compiled in

    -

    Macro: LIBXML_MODULE_EXTENSION

    #define LIBXML_MODULE_EXTENSION

    the string suffix used by dynamic modules (usually shared libraries)

    -

    Macro: LIBXML_OUTPUT_ENABLED

    #define LIBXML_OUTPUT_ENABLED

    Whether the serialization/saving support is configured in

    -

    Macro: LIBXML_PATTERN_ENABLED

    #define LIBXML_PATTERN_ENABLED

    Whether the xmlPattern node selection interface is configured in

    -

    Macro: LIBXML_PUSH_ENABLED

    #define LIBXML_PUSH_ENABLED

    Whether the push parsing interfaces are configured in

    -

    Macro: LIBXML_READER_ENABLED

    #define LIBXML_READER_ENABLED

    Whether the xmlReader parsing interface is configured in

    -

    Macro: LIBXML_REGEXP_ENABLED

    #define LIBXML_REGEXP_ENABLED

    Whether the regular expressions interfaces are compiled in

    -

    Macro: LIBXML_SAX1_ENABLED

    #define LIBXML_SAX1_ENABLED

    Whether the older SAX1 interface is configured in

    -

    Macro: LIBXML_SCHEMAS_ENABLED

    #define LIBXML_SCHEMAS_ENABLED

    Whether the Schemas validation interfaces are compiled in

    -

    Macro: LIBXML_SCHEMATRON_ENABLED

    #define LIBXML_SCHEMATRON_ENABLED

    Whether the Schematron validation interfaces are compiled in

    -

    Macro: LIBXML_TEST_VERSION

    #define LIBXML_TEST_VERSION

    Macro to check that the libxml version in use is compatible with the version the software has been compiled against

    -

    Macro: LIBXML_THREAD_ENABLED

    #define LIBXML_THREAD_ENABLED

    Whether the thread support is configured in

    -

    Macro: LIBXML_TREE_ENABLED

    #define LIBXML_TREE_ENABLED

    Whether the DOM like tree manipulation API support is configured in

    -

    Macro: LIBXML_UNICODE_ENABLED

    #define LIBXML_UNICODE_ENABLED

    Whether the Unicode related interfaces are compiled in

    -

    Macro: LIBXML_VALID_ENABLED

    #define LIBXML_VALID_ENABLED

    Whether the DTD validation support is configured in

    -

    Macro: LIBXML_VERSION

    #define LIBXML_VERSION

    the version number: 1.2.3 value is 1002003

    -

    Macro: LIBXML_VERSION_EXTRA

    #define LIBXML_VERSION_EXTRA

    extra version information, used to show a CVS compilation

    -

    Macro: LIBXML_VERSION_STRING

    #define LIBXML_VERSION_STRING

    the version number string, 1.2.3 value is "1002003"

    -

    Macro: LIBXML_WRITER_ENABLED

    #define LIBXML_WRITER_ENABLED

    Whether the xmlWriter saving interface is configured in

    -

    Macro: LIBXML_XINCLUDE_ENABLED

    #define LIBXML_XINCLUDE_ENABLED

    Whether XInclude is configured in

    -

    Macro: LIBXML_XPATH_ENABLED

    #define LIBXML_XPATH_ENABLED

    Whether XPath is configured in

    -

    Macro: LIBXML_XPTR_ENABLED

    #define LIBXML_XPTR_ENABLED

    Whether XPointer is configured in

    -

    Macro: WITHOUT_TRIO

    #define WITHOUT_TRIO

    defined if the trio support should not be configured in

    -

    Macro: WITH_TRIO

    #define WITH_TRIO

    defined if the trio support need to be configured in

    -

    Function: xmlCheckVersion

    void	xmlCheckVersion			(int version)
    -

    check the compiled lib version against the include one. This can warn or immediately kill the application

    -
    version:the include version number

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xmlwriter.html b/src/tools/docbook/libxml2/doc/html/libxml-xmlwriter.html deleted file mode 100644 index 111207b5bb..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xmlwriter.html +++ /dev/null @@ -1,258 +0,0 @@ - - -Module xmlwriter from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xmlwriter from libxml2

    API Menu
    API Indexes
    Related links

    text writing API for XML

    Table of Contents

    #define xmlTextWriterWriteDocType
    #define xmlTextWriterWriteProcessingInstruction
    Structure xmlTextWriter
    struct _xmlTextWriter -The content of this structure is not made public by the API. -
    Typedef xmlTextWriter * xmlTextWriterPtr
    -
    void	xmlFreeTextWriter		(xmlTextWriterPtr writer)
    -
    xmlTextWriterPtr	xmlNewTextWriter	(xmlOutputBufferPtr out)
    -
    xmlTextWriterPtr	xmlNewTextWriterDoc	(xmlDocPtr * doc, 
    int compression)
    -
    xmlTextWriterPtr	xmlNewTextWriterFilename	(const char * uri, 
    int compression)
    -
    xmlTextWriterPtr	xmlNewTextWriterMemory	(xmlBufferPtr buf, 
    int compression)
    -
    xmlTextWriterPtr	xmlNewTextWriterPushParser	(xmlParserCtxtPtr ctxt, 
    int compression)
    -
    xmlTextWriterPtr	xmlNewTextWriterTree	(xmlDocPtr doc, 
    xmlNodePtr node,
    int compression)
    -
    int	xmlTextWriterEndAttribute	(xmlTextWriterPtr writer)
    -
    int	xmlTextWriterEndCDATA		(xmlTextWriterPtr writer)
    -
    int	xmlTextWriterEndComment		(xmlTextWriterPtr writer)
    -
    int	xmlTextWriterEndDTD		(xmlTextWriterPtr writer)
    -
    int	xmlTextWriterEndDTDAttlist	(xmlTextWriterPtr writer)
    -
    int	xmlTextWriterEndDTDElement	(xmlTextWriterPtr writer)
    -
    int	xmlTextWriterEndDTDEntity	(xmlTextWriterPtr writer)
    -
    int	xmlTextWriterEndDocument	(xmlTextWriterPtr writer)
    -
    int	xmlTextWriterEndElement		(xmlTextWriterPtr writer)
    -
    int	xmlTextWriterEndPI		(xmlTextWriterPtr writer)
    -
    int	xmlTextWriterFlush		(xmlTextWriterPtr writer)
    -
    int	xmlTextWriterFullEndElement	(xmlTextWriterPtr writer)
    -
    int	xmlTextWriterSetIndent		(xmlTextWriterPtr writer, 
    int indent)
    -
    int	xmlTextWriterSetIndentString	(xmlTextWriterPtr writer, 
    const xmlChar * str)
    -
    int	xmlTextWriterStartAttribute	(xmlTextWriterPtr writer, 
    const xmlChar * name)
    -
    int	xmlTextWriterStartAttributeNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI)
    -
    int	xmlTextWriterStartCDATA		(xmlTextWriterPtr writer)
    -
    int	xmlTextWriterStartComment	(xmlTextWriterPtr writer)
    -
    int	xmlTextWriterStartDTD		(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid)
    -
    int	xmlTextWriterStartDTDAttlist	(xmlTextWriterPtr writer, 
    const xmlChar * name)
    -
    int	xmlTextWriterStartDTDElement	(xmlTextWriterPtr writer, 
    const xmlChar * name)
    -
    int	xmlTextWriterStartDTDEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name)
    -
    int	xmlTextWriterStartDocument	(xmlTextWriterPtr writer, 
    const char * version,
    const char * encoding,
    const char * standalone)
    -
    int	xmlTextWriterStartElement	(xmlTextWriterPtr writer, 
    const xmlChar * name)
    -
    int	xmlTextWriterStartElementNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI)
    -
    int	xmlTextWriterStartPI		(xmlTextWriterPtr writer, 
    const xmlChar * target)
    -
    int	xmlTextWriterWriteAttribute	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * content)
    -
    int	xmlTextWriterWriteAttributeNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const xmlChar * content)
    -
    int	xmlTextWriterWriteBase64	(xmlTextWriterPtr writer, 
    const char * data,
    int start,
    int len)
    -
    int	xmlTextWriterWriteBinHex	(xmlTextWriterPtr writer, 
    const char * data,
    int start,
    int len)
    -
    int	xmlTextWriterWriteCDATA		(xmlTextWriterPtr writer, 
    const xmlChar * content)
    -
    int	xmlTextWriterWriteComment	(xmlTextWriterPtr writer, 
    const xmlChar * content)
    -
    int	xmlTextWriterWriteDTD		(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const xmlChar * subset)
    -
    int	xmlTextWriterWriteDTDAttlist	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * content)
    -
    int	xmlTextWriterWriteDTDElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * content)
    -
    int	xmlTextWriterWriteDTDEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const xmlChar * ndataid,
    const xmlChar * content)
    -
    int	xmlTextWriterWriteDTDExternalEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const xmlChar * ndataid)
    -
    int	xmlTextWriterWriteDTDExternalEntityContents	(xmlTextWriterPtr writer, 
    const xmlChar * pubid,
    const xmlChar * sysid,
    const xmlChar * ndataid)
    -
    int	xmlTextWriterWriteDTDInternalEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name,
    const xmlChar * content)
    -
    int	xmlTextWriterWriteDTDNotation	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid)
    -
    int	xmlTextWriterWriteElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * content)
    -
    int	xmlTextWriterWriteElementNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const xmlChar * content)
    -
    int	xmlTextWriterWriteFormatAttribute	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    ... ...)
    -
    int	xmlTextWriterWriteFormatAttributeNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const char * format,
    ... ...)
    -
    int	xmlTextWriterWriteFormatCDATA	(xmlTextWriterPtr writer, 
    const char * format,
    ... ...)
    -
    int	xmlTextWriterWriteFormatComment	(xmlTextWriterPtr writer, 
    const char * format,
    ... ...)
    -
    int	xmlTextWriterWriteFormatDTD	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const char * format,
    ... ...)
    -
    int	xmlTextWriterWriteFormatDTDAttlist	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    ... ...)
    -
    int	xmlTextWriterWriteFormatDTDElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    ... ...)
    -
    int	xmlTextWriterWriteFormatDTDInternalEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name,
    const char * format,
    ... ...)
    -
    int	xmlTextWriterWriteFormatElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    ... ...)
    -
    int	xmlTextWriterWriteFormatElementNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const char * format,
    ... ...)
    -
    int	xmlTextWriterWriteFormatPI	(xmlTextWriterPtr writer, 
    const xmlChar * target,
    const char * format,
    ... ...)
    -
    int	xmlTextWriterWriteFormatRaw	(xmlTextWriterPtr writer, 
    const char * format,
    ... ...)
    -
    int	xmlTextWriterWriteFormatString	(xmlTextWriterPtr writer, 
    const char * format,
    ... ...)
    -
    int	xmlTextWriterWritePI		(xmlTextWriterPtr writer, 
    const xmlChar * target,
    const xmlChar * content)
    -
    int	xmlTextWriterWriteRaw		(xmlTextWriterPtr writer, 
    const xmlChar * content)
    -
    int	xmlTextWriterWriteRawLen	(xmlTextWriterPtr writer, 
    const xmlChar * content,
    int len)
    -
    int	xmlTextWriterWriteString	(xmlTextWriterPtr writer, 
    const xmlChar * content)
    -
    int	xmlTextWriterWriteVFormatAttribute	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    va_list argptr)
    -
    int	xmlTextWriterWriteVFormatAttributeNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const char * format,
    va_list argptr)
    -
    int	xmlTextWriterWriteVFormatCDATA	(xmlTextWriterPtr writer, 
    const char * format,
    va_list argptr)
    -
    int	xmlTextWriterWriteVFormatComment	(xmlTextWriterPtr writer, 
    const char * format,
    va_list argptr)
    -
    int	xmlTextWriterWriteVFormatDTD	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const char * format,
    va_list argptr)
    -
    int	xmlTextWriterWriteVFormatDTDAttlist	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    va_list argptr)
    -
    int	xmlTextWriterWriteVFormatDTDElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    va_list argptr)
    -
    int	xmlTextWriterWriteVFormatDTDInternalEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name,
    const char * format,
    va_list argptr)
    -
    int	xmlTextWriterWriteVFormatElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    va_list argptr)
    -
    int	xmlTextWriterWriteVFormatElementNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const char * format,
    va_list argptr)
    -
    int	xmlTextWriterWriteVFormatPI	(xmlTextWriterPtr writer, 
    const xmlChar * target,
    const char * format,
    va_list argptr)
    -
    int	xmlTextWriterWriteVFormatRaw	(xmlTextWriterPtr writer, 
    const char * format,
    va_list argptr)
    -
    int	xmlTextWriterWriteVFormatString	(xmlTextWriterPtr writer, 
    const char * format,
    va_list argptr)
    -

    Description

    -

    Macro: xmlTextWriterWriteDocType

    #define xmlTextWriterWriteDocType

    this macro maps to xmlTextWriterWriteDTD

    -

    Macro: xmlTextWriterWriteProcessingInstruction

    #define xmlTextWriterWriteProcessingInstruction

    This macro maps to xmlTextWriterWritePI

    -

    Structure xmlTextWriter

    Structure xmlTextWriter
    struct _xmlTextWriter { -The content of this structure is not made public by the API. -}

    Function: xmlFreeTextWriter

    void	xmlFreeTextWriter		(xmlTextWriterPtr writer)
    -

    Deallocate all the resources associated to the writer

    -
    writer:the xmlTextWriterPtr

    Function: xmlNewTextWriter

    xmlTextWriterPtr	xmlNewTextWriter	(xmlOutputBufferPtr out)
    -

    Create a new xmlNewTextWriter structure using an xmlOutputBufferPtr NOTE: the @out parameter will be deallocated when the writer is closed (if the call succeed.)

    -
    out:an xmlOutputBufferPtr
    Returns:the new xmlTextWriterPtr or NULL in case of error

    Function: xmlNewTextWriterDoc

    xmlTextWriterPtr	xmlNewTextWriterDoc	(xmlDocPtr * doc, 
    int compression)
    -

    Create a new xmlNewTextWriter structure with @*doc as output

    -
    doc:address of a xmlDocPtr to hold the new XML document tree
    compression:compress the output?
    Returns:the new xmlTextWriterPtr or NULL in case of error

    Function: xmlNewTextWriterFilename

    xmlTextWriterPtr	xmlNewTextWriterFilename	(const char * uri, 
    int compression)
    -

    Create a new xmlNewTextWriter structure with @uri as output

    -
    uri:the URI of the resource for the output
    compression:compress the output?
    Returns:the new xmlTextWriterPtr or NULL in case of error

    Function: xmlNewTextWriterMemory

    xmlTextWriterPtr	xmlNewTextWriterMemory	(xmlBufferPtr buf, 
    int compression)
    -

    Create a new xmlNewTextWriter structure with @buf as output TODO: handle compression

    -
    buf:xmlBufferPtr
    compression:compress the output?
    Returns:the new xmlTextWriterPtr or NULL in case of error

    Function: xmlNewTextWriterPushParser

    xmlTextWriterPtr	xmlNewTextWriterPushParser	(xmlParserCtxtPtr ctxt, 
    int compression)
    -

    Create a new xmlNewTextWriter structure with @ctxt as output NOTE: the @ctxt context will be freed with the resulting writer (if the call succeeds). TODO: handle compression

    -
    ctxt:xmlParserCtxtPtr to hold the new XML document tree
    compression:compress the output?
    Returns:the new xmlTextWriterPtr or NULL in case of error

    Function: xmlNewTextWriterTree

    xmlTextWriterPtr	xmlNewTextWriterTree	(xmlDocPtr doc, 
    xmlNodePtr node,
    int compression)
    -

    Create a new xmlNewTextWriter structure with @doc as output starting at @node

    -
    doc:xmlDocPtr
    node:xmlNodePtr or NULL for doc->children
    compression:compress the output?
    Returns:the new xmlTextWriterPtr or NULL in case of error

    Function: xmlTextWriterEndAttribute

    int	xmlTextWriterEndAttribute	(xmlTextWriterPtr writer)
    -

    End the current xml element.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterEndCDATA

    int	xmlTextWriterEndCDATA		(xmlTextWriterPtr writer)
    -

    End an xml CDATA section.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterEndComment

    int	xmlTextWriterEndComment		(xmlTextWriterPtr writer)
    -

    End the current xml coment.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterEndDTD

    int	xmlTextWriterEndDTD		(xmlTextWriterPtr writer)
    -

    End an xml DTD.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterEndDTDAttlist

    int	xmlTextWriterEndDTDAttlist	(xmlTextWriterPtr writer)
    -

    End an xml DTD attribute list.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterEndDTDElement

    int	xmlTextWriterEndDTDElement	(xmlTextWriterPtr writer)
    -

    End an xml DTD element.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterEndDTDEntity

    int	xmlTextWriterEndDTDEntity	(xmlTextWriterPtr writer)
    -

    End an xml DTD entity.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterEndDocument

    int	xmlTextWriterEndDocument	(xmlTextWriterPtr writer)
    -

    End an xml document. All open elements are closed

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterEndElement

    int	xmlTextWriterEndElement		(xmlTextWriterPtr writer)
    -

    End the current xml element.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterEndPI

    int	xmlTextWriterEndPI		(xmlTextWriterPtr writer)
    -

    End the current xml PI.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterFlush

    int	xmlTextWriterFlush		(xmlTextWriterPtr writer)
    -

    Flush the output buffer.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterFullEndElement

    int	xmlTextWriterFullEndElement	(xmlTextWriterPtr writer)
    -

    End the current xml element. Writes an end tag even if the element is empty

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterSetIndent

    int	xmlTextWriterSetIndent		(xmlTextWriterPtr writer, 
    int indent)
    -

    Set indentation output. indent = 0 do not indentation. indent > 0 do indentation.

    -
    writer:the xmlTextWriterPtr
    indent:do indentation?
    Returns:-1 on error or 0 otherwise.

    Function: xmlTextWriterSetIndentString

    int	xmlTextWriterSetIndentString	(xmlTextWriterPtr writer, 
    const xmlChar * str)
    -

    Set string indentation.

    -
    writer:the xmlTextWriterPtr
    str:the xmlChar string
    Returns:-1 on error or 0 otherwise.

    Function: xmlTextWriterStartAttribute

    int	xmlTextWriterStartAttribute	(xmlTextWriterPtr writer, 
    const xmlChar * name)
    -

    Start an xml attribute.

    -
    writer:the xmlTextWriterPtr
    name:element name
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterStartAttributeNS

    int	xmlTextWriterStartAttributeNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI)
    -

    Start an xml attribute with namespace support.

    -
    writer:the xmlTextWriterPtr
    prefix:namespace prefix or NULL
    name:element local name
    namespaceURI:namespace URI or NULL
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterStartCDATA

    int	xmlTextWriterStartCDATA		(xmlTextWriterPtr writer)
    -

    Start an xml CDATA section.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterStartComment

    int	xmlTextWriterStartComment	(xmlTextWriterPtr writer)
    -

    Start an xml comment.

    -
    writer:the xmlTextWriterPtr
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterStartDTD

    int	xmlTextWriterStartDTD		(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid)
    -

    Start an xml DTD.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD
    pubid:the public identifier, which is an alternative to the system identifier
    sysid:the system identifier, which is the URI of the DTD
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterStartDTDAttlist

    int	xmlTextWriterStartDTDAttlist	(xmlTextWriterPtr writer, 
    const xmlChar * name)
    -

    Start an xml DTD ATTLIST.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD ATTLIST
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterStartDTDElement

    int	xmlTextWriterStartDTDElement	(xmlTextWriterPtr writer, 
    const xmlChar * name)
    -

    Start an xml DTD element.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD element
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterStartDTDEntity

    int	xmlTextWriterStartDTDEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name)
    -

    Start an xml DTD ATTLIST.

    -
    writer:the xmlTextWriterPtr
    pe:TRUE if this is a parameter entity, FALSE if not
    name:the name of the DTD ATTLIST
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterStartDocument

    int	xmlTextWriterStartDocument	(xmlTextWriterPtr writer, 
    const char * version,
    const char * encoding,
    const char * standalone)
    -

    Start a new xml document

    -
    writer:the xmlTextWriterPtr
    version:the xml version ("1.0") or NULL for default ("1.0")
    encoding:the encoding or NULL for default
    standalone:"yes" or "no" or NULL for default
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterStartElement

    int	xmlTextWriterStartElement	(xmlTextWriterPtr writer, 
    const xmlChar * name)
    -

    Start an xml element.

    -
    writer:the xmlTextWriterPtr
    name:element name
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterStartElementNS

    int	xmlTextWriterStartElementNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI)
    -

    Start an xml element with namespace support.

    -
    writer:the xmlTextWriterPtr
    prefix:namespace prefix or NULL
    name:element local name
    namespaceURI:namespace URI or NULL
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterStartPI

    int	xmlTextWriterStartPI		(xmlTextWriterPtr writer, 
    const xmlChar * target)
    -

    Start an xml PI.

    -
    writer:the xmlTextWriterPtr
    target:PI target
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteAttribute

    int	xmlTextWriterWriteAttribute	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * content)
    -

    Write an xml attribute.

    -
    writer:the xmlTextWriterPtr
    name:attribute name
    content:attribute content
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteAttributeNS

    int	xmlTextWriterWriteAttributeNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const xmlChar * content)
    -

    Write an xml attribute.

    -
    writer:the xmlTextWriterPtr
    prefix:namespace prefix
    name:attribute local name
    namespaceURI:namespace URI
    content:attribute content
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteBase64

    int	xmlTextWriterWriteBase64	(xmlTextWriterPtr writer, 
    const char * data,
    int start,
    int len)
    -

    Write an base64 encoded xml text.

    -
    writer:the xmlTextWriterPtr
    data:binary data
    start:the position within the data of the first byte to encode
    len:the number of bytes to encode
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteBinHex

    int	xmlTextWriterWriteBinHex	(xmlTextWriterPtr writer, 
    const char * data,
    int start,
    int len)
    -

    Write a BinHex encoded xml text.

    -
    writer:the xmlTextWriterPtr
    data:binary data
    start:the position within the data of the first byte to encode
    len:the number of bytes to encode
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteCDATA

    int	xmlTextWriterWriteCDATA		(xmlTextWriterPtr writer, 
    const xmlChar * content)
    -

    Write an xml CDATA.

    -
    writer:the xmlTextWriterPtr
    content:CDATA content
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteComment

    int	xmlTextWriterWriteComment	(xmlTextWriterPtr writer, 
    const xmlChar * content)
    -

    Write an xml comment.

    -
    writer:the xmlTextWriterPtr
    content:comment string
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteDTD

    int	xmlTextWriterWriteDTD		(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const xmlChar * subset)
    -

    Write a DTD.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD
    pubid:the public identifier, which is an alternative to the system identifier
    sysid:the system identifier, which is the URI of the DTD
    subset:string content of the DTD
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteDTDAttlist

    int	xmlTextWriterWriteDTDAttlist	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * content)
    -

    Write a DTD ATTLIST.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD ATTLIST
    content:content of the ATTLIST
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteDTDElement

    int	xmlTextWriterWriteDTDElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * content)
    -

    Write a DTD element.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD element
    content:content of the element
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteDTDEntity

    int	xmlTextWriterWriteDTDEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const xmlChar * ndataid,
    const xmlChar * content)
    -

    Write a DTD entity.

    -
    writer:the xmlTextWriterPtr
    pe:TRUE if this is a parameter entity, FALSE if not
    name:the name of the DTD entity
    pubid:the public identifier, which is an alternative to the system identifier
    sysid:the system identifier, which is the URI of the DTD
    ndataid:the xml notation name.
    content:content of the entity
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteDTDExternalEntity

    int	xmlTextWriterWriteDTDExternalEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const xmlChar * ndataid)
    -

    Write a DTD external entity. The entity must have been started with xmlTextWriterStartDTDEntity

    -
    writer:the xmlTextWriterPtr
    pe:TRUE if this is a parameter entity, FALSE if not
    name:the name of the DTD entity
    pubid:the public identifier, which is an alternative to the system identifier
    sysid:the system identifier, which is the URI of the DTD
    ndataid:the xml notation name.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteDTDExternalEntityContents

    int	xmlTextWriterWriteDTDExternalEntityContents	(xmlTextWriterPtr writer, 
    const xmlChar * pubid,
    const xmlChar * sysid,
    const xmlChar * ndataid)
    -

    Write the contents of a DTD external entity.

    -
    writer:the xmlTextWriterPtr
    pubid:the public identifier, which is an alternative to the system identifier
    sysid:the system identifier, which is the URI of the DTD
    ndataid:the xml notation name.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteDTDInternalEntity

    int	xmlTextWriterWriteDTDInternalEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name,
    const xmlChar * content)
    -

    Write a DTD internal entity.

    -
    writer:the xmlTextWriterPtr
    pe:TRUE if this is a parameter entity, FALSE if not
    name:the name of the DTD entity
    content:content of the entity
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteDTDNotation

    int	xmlTextWriterWriteDTDNotation	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid)
    -

    Write a DTD entity.

    -
    writer:the xmlTextWriterPtr
    name:the name of the xml notation
    pubid:the public identifier, which is an alternative to the system identifier
    sysid:the system identifier, which is the URI of the DTD
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteElement

    int	xmlTextWriterWriteElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * content)
    -

    Write an xml element.

    -
    writer:the xmlTextWriterPtr
    name:element name
    content:element content
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteElementNS

    int	xmlTextWriterWriteElementNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const xmlChar * content)
    -

    Write an xml element with namespace support.

    -
    writer:the xmlTextWriterPtr
    prefix:namespace prefix
    name:element local name
    namespaceURI:namespace URI
    content:element content
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteFormatAttribute

    int	xmlTextWriterWriteFormatAttribute	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    ... ...)
    -

    Write a formatted xml attribute.

    -
    writer:the xmlTextWriterPtr
    name:attribute name
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteFormatAttributeNS

    int	xmlTextWriterWriteFormatAttributeNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const char * format,
    ... ...)
    -

    Write a formatted xml attribute.with namespace support

    -
    writer:the xmlTextWriterPtr
    prefix:namespace prefix
    name:attribute local name
    namespaceURI:namespace URI
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteFormatCDATA

    int	xmlTextWriterWriteFormatCDATA	(xmlTextWriterPtr writer, 
    const char * format,
    ... ...)
    -

    Write a formatted xml CDATA.

    -
    writer:the xmlTextWriterPtr
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteFormatComment

    int	xmlTextWriterWriteFormatComment	(xmlTextWriterPtr writer, 
    const char * format,
    ... ...)
    -

    Write an xml comment.

    -
    writer:the xmlTextWriterPtr
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteFormatDTD

    int	xmlTextWriterWriteFormatDTD	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const char * format,
    ... ...)
    -

    Write a DTD with a formatted markup declarations part.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD
    pubid:the public identifier, which is an alternative to the system identifier
    sysid:the system identifier, which is the URI of the DTD
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteFormatDTDAttlist

    int	xmlTextWriterWriteFormatDTDAttlist	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    ... ...)
    -

    Write a formatted DTD ATTLIST.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD ATTLIST
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteFormatDTDElement

    int	xmlTextWriterWriteFormatDTDElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    ... ...)
    -

    Write a formatted DTD element.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD element
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteFormatDTDInternalEntity

    int	xmlTextWriterWriteFormatDTDInternalEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name,
    const char * format,
    ... ...)
    -

    Write a formatted DTD internal entity.

    -
    writer:the xmlTextWriterPtr
    pe:TRUE if this is a parameter entity, FALSE if not
    name:the name of the DTD entity
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteFormatElement

    int	xmlTextWriterWriteFormatElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    ... ...)
    -

    Write a formatted xml element.

    -
    writer:the xmlTextWriterPtr
    name:element name
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteFormatElementNS

    int	xmlTextWriterWriteFormatElementNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const char * format,
    ... ...)
    -

    Write a formatted xml element with namespace support.

    -
    writer:the xmlTextWriterPtr
    prefix:namespace prefix
    name:element local name
    namespaceURI:namespace URI
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteFormatPI

    int	xmlTextWriterWriteFormatPI	(xmlTextWriterPtr writer, 
    const xmlChar * target,
    const char * format,
    ... ...)
    -

    Write a formatted PI.

    -
    writer:the xmlTextWriterPtr
    target:PI target
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteFormatRaw

    int	xmlTextWriterWriteFormatRaw	(xmlTextWriterPtr writer, 
    const char * format,
    ... ...)
    -

    Write a formatted raw xml text.

    -
    writer:the xmlTextWriterPtr
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteFormatString

    int	xmlTextWriterWriteFormatString	(xmlTextWriterPtr writer, 
    const char * format,
    ... ...)
    -

    Write a formatted xml text.

    -
    writer:the xmlTextWriterPtr
    format:format string (see printf)
    ...:extra parameters for the format
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWritePI

    int	xmlTextWriterWritePI		(xmlTextWriterPtr writer, 
    const xmlChar * target,
    const xmlChar * content)
    -

    Write an xml PI.

    -
    writer:the xmlTextWriterPtr
    target:PI target
    content:PI content
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteRaw

    int	xmlTextWriterWriteRaw		(xmlTextWriterPtr writer, 
    const xmlChar * content)
    -

    Write a raw xml text.

    -
    writer:the xmlTextWriterPtr
    content:text string
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteRawLen

    int	xmlTextWriterWriteRawLen	(xmlTextWriterPtr writer, 
    const xmlChar * content,
    int len)
    -

    Write an xml text. TODO: what about entities and special chars??

    -
    writer:the xmlTextWriterPtr
    content:text string
    len:length of the text string
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteString

    int	xmlTextWriterWriteString	(xmlTextWriterPtr writer, 
    const xmlChar * content)
    -

    Write an xml text.

    -
    writer:the xmlTextWriterPtr
    content:text string
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteVFormatAttribute

    int	xmlTextWriterWriteVFormatAttribute	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    va_list argptr)
    -

    Write a formatted xml attribute.

    -
    writer:the xmlTextWriterPtr
    name:attribute name
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteVFormatAttributeNS

    int	xmlTextWriterWriteVFormatAttributeNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const char * format,
    va_list argptr)
    -

    Write a formatted xml attribute.with namespace support

    -
    writer:the xmlTextWriterPtr
    prefix:namespace prefix
    name:attribute local name
    namespaceURI:namespace URI
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteVFormatCDATA

    int	xmlTextWriterWriteVFormatCDATA	(xmlTextWriterPtr writer, 
    const char * format,
    va_list argptr)
    -

    Write a formatted xml CDATA.

    -
    writer:the xmlTextWriterPtr
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteVFormatComment

    int	xmlTextWriterWriteVFormatComment	(xmlTextWriterPtr writer, 
    const char * format,
    va_list argptr)
    -

    Write an xml comment.

    -
    writer:the xmlTextWriterPtr
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteVFormatDTD

    int	xmlTextWriterWriteVFormatDTD	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const xmlChar * pubid,
    const xmlChar * sysid,
    const char * format,
    va_list argptr)
    -

    Write a DTD with a formatted markup declarations part.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD
    pubid:the public identifier, which is an alternative to the system identifier
    sysid:the system identifier, which is the URI of the DTD
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteVFormatDTDAttlist

    int	xmlTextWriterWriteVFormatDTDAttlist	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    va_list argptr)
    -

    Write a formatted DTD ATTLIST.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD ATTLIST
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteVFormatDTDElement

    int	xmlTextWriterWriteVFormatDTDElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    va_list argptr)
    -

    Write a formatted DTD element.

    -
    writer:the xmlTextWriterPtr
    name:the name of the DTD element
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteVFormatDTDInternalEntity

    int	xmlTextWriterWriteVFormatDTDInternalEntity	(xmlTextWriterPtr writer, 
    int pe,
    const xmlChar * name,
    const char * format,
    va_list argptr)
    -

    Write a formatted DTD internal entity.

    -
    writer:the xmlTextWriterPtr
    pe:TRUE if this is a parameter entity, FALSE if not
    name:the name of the DTD entity
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteVFormatElement

    int	xmlTextWriterWriteVFormatElement	(xmlTextWriterPtr writer, 
    const xmlChar * name,
    const char * format,
    va_list argptr)
    -

    Write a formatted xml element.

    -
    writer:the xmlTextWriterPtr
    name:element name
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteVFormatElementNS

    int	xmlTextWriterWriteVFormatElementNS	(xmlTextWriterPtr writer, 
    const xmlChar * prefix,
    const xmlChar * name,
    const xmlChar * namespaceURI,
    const char * format,
    va_list argptr)
    -

    Write a formatted xml element with namespace support.

    -
    writer:the xmlTextWriterPtr
    prefix:namespace prefix
    name:element local name
    namespaceURI:namespace URI
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteVFormatPI

    int	xmlTextWriterWriteVFormatPI	(xmlTextWriterPtr writer, 
    const xmlChar * target,
    const char * format,
    va_list argptr)
    -

    Write a formatted xml PI.

    -
    writer:the xmlTextWriterPtr
    target:PI target
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteVFormatRaw

    int	xmlTextWriterWriteVFormatRaw	(xmlTextWriterPtr writer, 
    const char * format,
    va_list argptr)
    -

    Write a formatted raw xml text.

    -
    writer:the xmlTextWriterPtr
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Function: xmlTextWriterWriteVFormatString

    int	xmlTextWriterWriteVFormatString	(xmlTextWriterPtr writer, 
    const char * format,
    va_list argptr)
    -

    Write a formatted xml text.

    -
    writer:the xmlTextWriterPtr
    format:format string (see printf)
    argptr:pointer to the first member of the variable argument list.
    Returns:the bytes written (may be 0 because of buffering) or -1 in case of error

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xpath.html b/src/tools/docbook/libxml2/doc/html/libxml-xpath.html deleted file mode 100644 index a0d9ba744c..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xpath.html +++ /dev/null @@ -1,304 +0,0 @@ - - -Module xpath from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xpath from libxml2

    API Menu
    API Indexes
    Related links

    API for the XML Path Language implementation XML Path Language implementation XPath is a language for addressing parts of an XML document, designed to be used by both XSLT and XPointer

    Table of Contents

    #define XML_XPATH_CHECKNS
    #define XML_XPATH_NOVAR
    #define xmlXPathNodeSetGetLength
    #define xmlXPathNodeSetIsEmpty
    #define xmlXPathNodeSetItem
    Structure xmlNodeSet
    struct _xmlNodeSet -
    Typedef xmlNodeSet * xmlNodeSetPtr
    -
    Structure xmlXPathAxis
    struct _xmlXPathAxis -
    Typedef xmlXPathAxis * xmlXPathAxisPtr
    -
    Structure xmlXPathCompExpr
    struct _xmlXPathCompExpr -The content of this structure is not made public by the API. -
    Typedef xmlXPathCompExpr * xmlXPathCompExprPtr
    -
    Structure xmlXPathContext
    struct _xmlXPathContext -
    Typedef xmlXPathContext * xmlXPathContextPtr
    -
    Enum xmlXPathError
    -
    Typedef xmlXPathFunct * xmlXPathFuncPtr
    -
    Structure xmlXPathFunct
    struct _xmlXPathFunct -
    Structure xmlXPathObject
    struct _xmlXPathObject -
    Typedef xmlXPathObject * xmlXPathObjectPtr
    -
    Enum xmlXPathObjectType
    -
    Structure xmlXPathParserContext
    struct _xmlXPathParserContext -
    Typedef xmlXPathParserContext * xmlXPathParserContextPtr
    -
    Structure xmlXPathType
    struct _xmlXPathType -
    Typedef xmlXPathType * xmlXPathTypePtr
    -
    Structure xmlXPathVariable
    struct _xmlXPathVariable -
    Typedef xmlXPathVariable * xmlXPathVariablePtr
    -
    Function type: xmlXPathAxisFunc
    -xmlXPathObjectPtr	xmlXPathAxisFunc	(xmlXPathParserContextPtr ctxt, 
    xmlXPathObjectPtr cur) -
    -
    double	xmlXPathCastBooleanToNumber	(int val)
    -
    xmlChar *	xmlXPathCastBooleanToString	(int val)
    -
    int	xmlXPathCastNodeSetToBoolean	(xmlNodeSetPtr ns)
    -
    double	xmlXPathCastNodeSetToNumber	(xmlNodeSetPtr ns)
    -
    xmlChar *	xmlXPathCastNodeSetToString	(xmlNodeSetPtr ns)
    -
    double	xmlXPathCastNodeToNumber	(xmlNodePtr node)
    -
    xmlChar *	xmlXPathCastNodeToString	(xmlNodePtr node)
    -
    int	xmlXPathCastNumberToBoolean	(double val)
    -
    xmlChar *	xmlXPathCastNumberToString	(double val)
    -
    int	xmlXPathCastStringToBoolean	(const xmlChar * val)
    -
    double	xmlXPathCastStringToNumber	(const xmlChar * val)
    -
    int	xmlXPathCastToBoolean		(xmlXPathObjectPtr val)
    -
    double	xmlXPathCastToNumber		(xmlXPathObjectPtr val)
    -
    xmlChar *	xmlXPathCastToString	(xmlXPathObjectPtr val)
    -
    int	xmlXPathCmpNodes		(xmlNodePtr node1, 
    xmlNodePtr node2)
    -
    xmlXPathCompExprPtr	xmlXPathCompile	(const xmlChar * str)
    -
    xmlXPathObjectPtr	xmlXPathCompiledEval	(xmlXPathCompExprPtr comp, 
    xmlXPathContextPtr ctx)
    -
    int	xmlXPathContextSetCache		(xmlXPathContextPtr ctxt, 
    int active,
    int value,
    int options)
    -
    xmlXPathObjectPtr	xmlXPathConvertBoolean	(xmlXPathObjectPtr val)
    -
    Function type: xmlXPathConvertFunc
    -int	xmlXPathConvertFunc		(xmlXPathObjectPtr obj, 
    int type) -
    -
    xmlXPathObjectPtr	xmlXPathConvertNumber	(xmlXPathObjectPtr val)
    -
    xmlXPathObjectPtr	xmlXPathConvertString	(xmlXPathObjectPtr val)
    -
    xmlXPathCompExprPtr	xmlXPathCtxtCompile	(xmlXPathContextPtr ctxt, 
    const xmlChar * str)
    -
    xmlXPathObjectPtr	xmlXPathEval	(const xmlChar * str, 
    xmlXPathContextPtr ctx)
    -
    xmlXPathObjectPtr	xmlXPathEvalExpression	(const xmlChar * str, 
    xmlXPathContextPtr ctxt)
    -
    Function type: xmlXPathEvalFunc
    -void	xmlXPathEvalFunc		(xmlXPathParserContextPtr ctxt, 
    int nargs) -
    -
    int	xmlXPathEvalPredicate		(xmlXPathContextPtr ctxt, 
    xmlXPathObjectPtr res)
    -
    void	xmlXPathFreeCompExpr		(xmlXPathCompExprPtr comp)
    -
    void	xmlXPathFreeContext		(xmlXPathContextPtr ctxt)
    -
    void	xmlXPathFreeNodeSet		(xmlNodeSetPtr obj)
    -
    void	xmlXPathFreeNodeSetList		(xmlXPathObjectPtr obj)
    -
    void	xmlXPathFreeObject		(xmlXPathObjectPtr obj)
    -
    Function type: xmlXPathFuncLookupFunc
    -xmlXPathFunction	xmlXPathFuncLookupFunc	(void * ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri) -
    -
    Function type: xmlXPathFunction
    -void	xmlXPathFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs) -
    -
    void	xmlXPathInit			(void)
    -
    int	xmlXPathIsInf			(double val)
    -
    int	xmlXPathIsNaN			(double val)
    -
    xmlXPathContextPtr	xmlXPathNewContext	(xmlDocPtr doc)
    -
    xmlNodeSetPtr	xmlXPathNodeSetCreate	(xmlNodePtr val)
    -
    xmlXPathObjectPtr	xmlXPathObjectCopy	(xmlXPathObjectPtr val)
    -
    long	xmlXPathOrderDocElems		(xmlDocPtr doc)
    -
    Function type: xmlXPathVariableLookupFunc
    -xmlXPathObjectPtr	xmlXPathVariableLookupFunc	(void * ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri) -
    -

    Description

    -

    Macro: XML_XPATH_CHECKNS

    #define XML_XPATH_CHECKNS

    check namespaces at compilation

    -

    Macro: XML_XPATH_NOVAR

    #define XML_XPATH_NOVAR

    forbid variables in expression

    -

    Macro: xmlXPathNodeSetGetLength

    #define xmlXPathNodeSetGetLength

    Implement a functionality similar to the DOM NodeList.length. Returns the number of nodes in the node-set.

    -

    Macro: xmlXPathNodeSetIsEmpty

    #define xmlXPathNodeSetIsEmpty

    Checks whether @ns is empty or not. Returns %TRUE if @ns is an empty node-set.

    -

    Macro: xmlXPathNodeSetItem

    #define xmlXPathNodeSetItem

    Implements a functionality similar to the DOM NodeList.item(). Returns the xmlNodePtr at the given @index in @ns or NULL if @index is out of range (0 to length-1)

    -

    Structure xmlNodeSet

    Structure xmlNodeSet
    struct _xmlNodeSet { - int nodeNr : number of nodes in the set - int nodeMax : size of the array as allocated - xmlNodePtr * nodeTab : array of nodes in no particular order @ -}

    Structure xmlXPathAxis

    Structure xmlXPathAxis
    struct _xmlXPathAxis { - const xmlChar * name : the axis name - xmlXPathAxisFunc func : the search function -}

    Structure xmlXPathCompExpr

    Structure xmlXPathCompExpr
    struct _xmlXPathCompExpr { -The content of this structure is not made public by the API. -}

    Structure xmlXPathContext

    Structure xmlXPathContext
    struct _xmlXPathContext { - xmlDocPtr doc : The current document - xmlNodePtr node : The current node - int nb_variables_unused : unused (hash table) - int max_variables_unused : unused (hash table) - xmlHashTablePtr varHash : Hash table of defined variables - int nb_types : number of defined types - int max_types : max number of types - xmlXPathTypePtr types : Array of defined types - int nb_funcs_unused : unused (hash table) - int max_funcs_unused : unused (hash table) - xmlHashTablePtr funcHash : Hash table of defined funcs - int nb_axis : number of defined axis - int max_axis : max number of axis - xmlXPathAxisPtr axis : Array of defined axis the namespace nod - xmlNsPtr * namespaces : Array of namespaces - int nsNr : number of namespace in scope - void * user : function to free extra variables - int contextSize : the context size - int proximityPosition : the proximity position extra stuff for - int xptr : it this an XPointer context - xmlNodePtr here : for here() - xmlNodePtr origin : for origin() the set of namespace decla - xmlHashTablePtr nsHash : The namespaces hash table - xmlXPathVariableLookupFunc varLookupFunc : variable lookup func - void * varLookupData : variable lookup data Possibility to lin - void * extra : needed for XSLT The function name and U - const xmlChar * function - const xmlChar * functionURI : function lookup function and data - xmlXPathFuncLookupFunc funcLookupFunc : function lookup func - void * funcLookupData : function lookup data temporary namespac - xmlNsPtr * tmpNsList : Array of namespaces - int tmpNsNr : number of namespace in scope error repo - void * userData : user specific data block - xmlStructuredErrorFunc error : the callback in case of errors - xmlError lastError : the last error - xmlNodePtr debugNode : the source node XSLT dictionnary - xmlDictPtr dict : dictionnary if any - int flags : flags to control compilation Cache for - void * cache -}

    Enum xmlXPathError

    Enum xmlXPathError {
    -    XPATH_EXPRESSION_OK = 0
    -    XPATH_NUMBER_ERROR = 1
    -    XPATH_UNFINISHED_LITERAL_ERROR = 2
    -    XPATH_START_LITERAL_ERROR = 3
    -    XPATH_VARIABLE_REF_ERROR = 4
    -    XPATH_UNDEF_VARIABLE_ERROR = 5
    -    XPATH_INVALID_PREDICATE_ERROR = 6
    -    XPATH_EXPR_ERROR = 7
    -    XPATH_UNCLOSED_ERROR = 8
    -    XPATH_UNKNOWN_FUNC_ERROR = 9
    -    XPATH_INVALID_OPERAND = 10
    -    XPATH_INVALID_TYPE = 11
    -    XPATH_INVALID_ARITY = 12
    -    XPATH_INVALID_CTXT_SIZE = 13
    -    XPATH_INVALID_CTXT_POSITION = 14
    -    XPATH_MEMORY_ERROR = 15
    -    XPTR_SYNTAX_ERROR = 16
    -    XPTR_RESOURCE_ERROR = 17
    -    XPTR_SUB_RESOURCE_ERROR = 18
    -    XPATH_UNDEF_PREFIX_ERROR = 19
    -    XPATH_ENCODING_ERROR = 20
    -    XPATH_INVALID_CHAR_ERROR = 21
    -    XPATH_INVALID_CTXT = 22
    -}
    -

    Structure xmlXPathFunct

    Structure xmlXPathFunct
    struct _xmlXPathFunct { - const xmlChar * name : the function name - xmlXPathEvalFunc func : the evaluation function -}

    Structure xmlXPathObject

    Structure xmlXPathObject
    struct _xmlXPathObject { - xmlXPathObjectType type - xmlNodeSetPtr nodesetval - int boolval - double floatval - xmlChar * stringval - void * user - int index - void * user2 - int index2 -}

    Enum xmlXPathObjectType

    Enum xmlXPathObjectType {
    -    XPATH_UNDEFINED = 0
    -    XPATH_NODESET = 1
    -    XPATH_BOOLEAN = 2
    -    XPATH_NUMBER = 3
    -    XPATH_STRING = 4
    -    XPATH_POINT = 5
    -    XPATH_RANGE = 6
    -    XPATH_LOCATIONSET = 7
    -    XPATH_USERS = 8
    -    XPATH_XSLT_TREE = 9 : An XSLT value tree, non modifiable
    -}
    -

    Structure xmlXPathParserContext

    Structure xmlXPathParserContext
    struct _xmlXPathParserContext { - const xmlChar * cur : the current char being parsed - const xmlChar * base : the full expression - int error : error code - xmlXPathContextPtr context : the evaluation context - xmlXPathObjectPtr value : the current value - int valueNr : number of values stacked - int valueMax : max number of values stacked - xmlXPathObjectPtr * valueTab : stack of values - xmlXPathCompExprPtr comp : the precompiled expression - int xptr : it this an XPointer expression - xmlNodePtr ancestor : used for walking preceding axis -}

    Structure xmlXPathType

    Structure xmlXPathType
    struct _xmlXPathType { - const xmlChar * name : the type name - xmlXPathConvertFunc func : the conversion function -}

    Structure xmlXPathVariable

    Structure xmlXPathVariable
    struct _xmlXPathVariable { - const xmlChar * name : the variable name - xmlXPathObjectPtr value : the value -}

    Function type: xmlXPathAxisFunc

    Function type: xmlXPathAxisFunc
    -xmlXPathObjectPtr	xmlXPathAxisFunc	(xmlXPathParserContextPtr ctxt, 
    xmlXPathObjectPtr cur) -

    An axis traversal function. To traverse an axis, the engine calls the first time with cur == NULL and repeat until the function returns NULL indicating the end of the axis traversal.

    ctxt:the XPath interpreter context
    cur:the previous node being explored on that axis
    Returns:the next node in that axis or NULL if at the end of the axis.

    -

    Function: xmlXPathCastBooleanToNumber

    double	xmlXPathCastBooleanToNumber	(int val)
    -

    Converts a boolean to its number value

    -
    val:a boolean
    Returns:the number value

    Function: xmlXPathCastBooleanToString

    xmlChar *	xmlXPathCastBooleanToString	(int val)
    -

    Converts a boolean to its string value.

    -
    val:a boolean
    Returns:a newly allocated string.

    Function: xmlXPathCastNodeSetToBoolean

    int	xmlXPathCastNodeSetToBoolean	(xmlNodeSetPtr ns)
    -

    Converts a node-set to its boolean value

    -
    ns:a node-set
    Returns:the boolean value

    Function: xmlXPathCastNodeSetToNumber

    double	xmlXPathCastNodeSetToNumber	(xmlNodeSetPtr ns)
    -

    Converts a node-set to its number value

    -
    ns:a node-set
    Returns:the number value

    Function: xmlXPathCastNodeSetToString

    xmlChar *	xmlXPathCastNodeSetToString	(xmlNodeSetPtr ns)
    -

    Converts a node-set to its string value.

    -
    ns:a node-set
    Returns:a newly allocated string.

    Function: xmlXPathCastNodeToNumber

    double	xmlXPathCastNodeToNumber	(xmlNodePtr node)
    -

    Converts a node to its number value

    -
    node:a node
    Returns:the number value

    Function: xmlXPathCastNodeToString

    xmlChar *	xmlXPathCastNodeToString	(xmlNodePtr node)
    -

    Converts a node to its string value.

    -
    node:a node
    Returns:a newly allocated string.

    Function: xmlXPathCastNumberToBoolean

    int	xmlXPathCastNumberToBoolean	(double val)
    -

    Converts a number to its boolean value

    -
    val:a number
    Returns:the boolean value

    Function: xmlXPathCastNumberToString

    xmlChar *	xmlXPathCastNumberToString	(double val)
    -

    Converts a number to its string value.

    -
    val:a number
    Returns:a newly allocated string.

    Function: xmlXPathCastStringToBoolean

    int	xmlXPathCastStringToBoolean	(const xmlChar * val)
    -

    Converts a string to its boolean value

    -
    val:a string
    Returns:the boolean value

    Function: xmlXPathCastStringToNumber

    double	xmlXPathCastStringToNumber	(const xmlChar * val)
    -

    Converts a string to its number value

    -
    val:a string
    Returns:the number value

    Function: xmlXPathCastToBoolean

    int	xmlXPathCastToBoolean		(xmlXPathObjectPtr val)
    -

    Converts an XPath object to its boolean value

    -
    val:an XPath object
    Returns:the boolean value

    Function: xmlXPathCastToNumber

    double	xmlXPathCastToNumber		(xmlXPathObjectPtr val)
    -

    Converts an XPath object to its number value

    -
    val:an XPath object
    Returns:the number value

    Function: xmlXPathCastToString

    xmlChar *	xmlXPathCastToString	(xmlXPathObjectPtr val)
    -

    Converts an existing object to its string() equivalent

    -
    val:an XPath object
    Returns:the string value of the object, NULL in case of error. A new string is allocated only if needed (@val isn't a string object).

    Function: xmlXPathCmpNodes

    int	xmlXPathCmpNodes		(xmlNodePtr node1, 
    xmlNodePtr node2)
    -

    Compare two nodes w.r.t document order

    -
    node1:the first node
    node2:the second node
    Returns:-2 in case of error 1 if first point < second point, 0 if it's the same node, -1 otherwise

    Function: xmlXPathCompile

    xmlXPathCompExprPtr	xmlXPathCompile	(const xmlChar * str)
    -

    Compile an XPath expression

    -
    str:the XPath expression
    Returns:the xmlXPathCompExprPtr resulting from the compilation or NULL. the caller has to free the object.

    Function: xmlXPathCompiledEval

    xmlXPathObjectPtr	xmlXPathCompiledEval	(xmlXPathCompExprPtr comp, 
    xmlXPathContextPtr ctx)
    -

    Evaluate the Precompiled XPath expression in the given context.

    -
    comp:the compiled XPath expression
    ctx:the XPath context
    Returns:the xmlXPathObjectPtr resulting from the evaluation or NULL. the caller has to free the object.

    Function: xmlXPathContextSetCache

    int	xmlXPathContextSetCache		(xmlXPathContextPtr ctxt, 
    int active,
    int value,
    int options)
    -

    Creates/frees an object cache on the XPath context. If activates XPath objects (xmlXPathObject) will be cached internally to be reused. @options: 0: This will set the XPath object caching: @value: This will set the maximum number of XPath objects to be cached per slot There are 5 slots for: node-set, string, number, boolean, and misc objects. Use <0 for the default number (100). Other values for @options have currently no effect.

    -
    ctxt:the XPath context
    active:enables/disables (creates/frees) the cache
    value:a value with semantics dependant on @options
    options:options (currently only the value 0 is used)
    Returns:0 if the setting succeeded, and -1 on API or internal errors.

    Function: xmlXPathConvertBoolean

    xmlXPathObjectPtr	xmlXPathConvertBoolean	(xmlXPathObjectPtr val)
    -

    Converts an existing object to its boolean() equivalent

    -
    val:an XPath object
    Returns:the new object, the old one is freed (or the operation is done directly on @val)

    Function type: xmlXPathConvertFunc

    Function type: xmlXPathConvertFunc
    -int	xmlXPathConvertFunc		(xmlXPathObjectPtr obj, 
    int type) -

    A conversion function is associated to a type and used to cast the new type to primitive values.

    obj:an XPath object
    type:the number of the target type
    Returns:-1 in case of error, 0 otherwise

    -

    Function: xmlXPathConvertNumber

    xmlXPathObjectPtr	xmlXPathConvertNumber	(xmlXPathObjectPtr val)
    -

    Converts an existing object to its number() equivalent

    -
    val:an XPath object
    Returns:the new object, the old one is freed (or the operation is done directly on @val)

    Function: xmlXPathConvertString

    xmlXPathObjectPtr	xmlXPathConvertString	(xmlXPathObjectPtr val)
    -

    Converts an existing object to its string() equivalent

    -
    val:an XPath object
    Returns:the new object, the old one is freed (or the operation is done directly on @val)

    Function: xmlXPathCtxtCompile

    xmlXPathCompExprPtr	xmlXPathCtxtCompile	(xmlXPathContextPtr ctxt, 
    const xmlChar * str)
    -

    Compile an XPath expression

    -
    ctxt:an XPath context
    str:the XPath expression
    Returns:the xmlXPathCompExprPtr resulting from the compilation or NULL. the caller has to free the object.

    Function: xmlXPathEval

    xmlXPathObjectPtr	xmlXPathEval	(const xmlChar * str, 
    xmlXPathContextPtr ctx)
    -

    Evaluate the XPath Location Path in the given context.

    -
    str:the XPath expression
    ctx:the XPath context
    Returns:the xmlXPathObjectPtr resulting from the evaluation or NULL. the caller has to free the object.

    Function: xmlXPathEvalExpression

    xmlXPathObjectPtr	xmlXPathEvalExpression	(const xmlChar * str, 
    xmlXPathContextPtr ctxt)
    -

    Evaluate the XPath expression in the given context.

    -
    str:the XPath expression
    ctxt:the XPath context
    Returns:the xmlXPathObjectPtr resulting from the evaluation or NULL. the caller has to free the object.

    Function type: xmlXPathEvalFunc

    Function type: xmlXPathEvalFunc
    -void	xmlXPathEvalFunc		(xmlXPathParserContextPtr ctxt, 
    int nargs) -

    An XPath evaluation function, the parameters are on the XPath context stack.

    ctxt:an XPath parser context
    nargs:the number of arguments passed to the function

    -

    Function: xmlXPathEvalPredicate

    int	xmlXPathEvalPredicate		(xmlXPathContextPtr ctxt, 
    xmlXPathObjectPtr res)
    -

    Evaluate a predicate result for the current node. A PredicateExpr is evaluated by evaluating the Expr and converting the result to a boolean. If the result is a number, the result will be converted to true if the number is equal to the position of the context node in the context node list (as returned by the position function) and will be converted to false otherwise; if the result is not a number, then the result will be converted as if by a call to the boolean function.

    -
    ctxt:the XPath context
    res:the Predicate Expression evaluation result
    Returns:1 if predicate is true, 0 otherwise

    Function: xmlXPathFreeCompExpr

    void	xmlXPathFreeCompExpr		(xmlXPathCompExprPtr comp)
    -

    Free up the memory allocated by @comp

    -
    comp:an XPATH comp

    Function: xmlXPathFreeContext

    void	xmlXPathFreeContext		(xmlXPathContextPtr ctxt)
    -

    Free up an xmlXPathContext

    -
    ctxt:the context to free

    Function: xmlXPathFreeNodeSet

    void	xmlXPathFreeNodeSet		(xmlNodeSetPtr obj)
    -

    Free the NodeSet compound (not the actual nodes !).

    -
    obj:the xmlNodeSetPtr to free

    Function: xmlXPathFreeNodeSetList

    void	xmlXPathFreeNodeSetList		(xmlXPathObjectPtr obj)
    -

    Free up the xmlXPathObjectPtr @obj but don't deallocate the objects in the list contrary to xmlXPathFreeObject().

    -
    obj:an existing NodeSetList object

    Function: xmlXPathFreeObject

    void	xmlXPathFreeObject		(xmlXPathObjectPtr obj)
    -

    Free up an xmlXPathObjectPtr object.

    -
    obj:the object to free

    Function type: xmlXPathFuncLookupFunc

    Function type: xmlXPathFuncLookupFunc
    -xmlXPathFunction	xmlXPathFuncLookupFunc	(void * ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri) -

    Prototype for callbacks used to plug function lookup in the XPath engine.

    ctxt:an XPath context
    name:name of the function
    ns_uri:the namespace name hosting this function
    Returns:the XPath function or NULL if not found.

    -

    Function type: xmlXPathFunction

    Function type: xmlXPathFunction
    -void	xmlXPathFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs) -

    An XPath function. The arguments (if any) are popped out from the context stack and the result is pushed on the stack.

    ctxt:the XPath interprestation context
    nargs:the number of arguments

    -

    Function: xmlXPathInit

    void	xmlXPathInit			(void)
    -

    Initialize the XPath environment

    -

    Function: xmlXPathIsInf

    int	xmlXPathIsInf			(double val)
    -

    Provides a portable isinf() function to detect whether a double is a +Infinite or -Infinite. Based on trio code http://sourceforge.net/projects/ctrio/

    -
    val:a double value
    Returns:1 vi the value is +Infinite, -1 if -Infinite, 0 otherwise

    Function: xmlXPathIsNaN

    int	xmlXPathIsNaN			(double val)
    -

    Provides a portable isnan() function to detect whether a double is a NotaNumber. Based on trio code http://sourceforge.net/projects/ctrio/

    -
    val:a double value
    Returns:1 if the value is a NaN, 0 otherwise

    Function: xmlXPathNewContext

    xmlXPathContextPtr	xmlXPathNewContext	(xmlDocPtr doc)
    -

    Create a new xmlXPathContext

    -
    doc:the XML document
    Returns:the xmlXPathContext just allocated. The caller will need to free it.

    Function: xmlXPathNodeSetCreate

    xmlNodeSetPtr	xmlXPathNodeSetCreate	(xmlNodePtr val)
    -

    Create a new xmlNodeSetPtr of type double and of value @val

    -
    val:an initial xmlNodePtr, or NULL
    Returns:the newly created object.

    Function: xmlXPathObjectCopy

    xmlXPathObjectPtr	xmlXPathObjectCopy	(xmlXPathObjectPtr val)
    -

    allocate a new copy of a given object

    -
    val:the original object
    Returns:the newly created object.

    Function: xmlXPathOrderDocElems

    long	xmlXPathOrderDocElems		(xmlDocPtr doc)
    -

    Call this routine to speed up XPath computation on static documents. This stamps all the element nodes with the document order Like for line information, the order is kept in the element->content field, the value stored is actually - the node number (starting at -1) to be able to differentiate from line numbers.

    -
    doc:an input document
    Returns:the number of elements found in the document or -1 in case of error.

    Function type: xmlXPathVariableLookupFunc

    Function type: xmlXPathVariableLookupFunc
    -xmlXPathObjectPtr	xmlXPathVariableLookupFunc	(void * ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri) -

    Prototype for callbacks used to plug variable lookup in the XPath engine.

    ctxt:an XPath context
    name:name of the variable
    ns_uri:the namespace name hosting this variable
    Returns:the XPath object value or NULL if not found.

    -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xpathInternals.html b/src/tools/docbook/libxml2/doc/html/libxml-xpathInternals.html deleted file mode 100644 index eae9705f9c..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xpathInternals.html +++ /dev/null @@ -1,394 +0,0 @@ - - -Module xpathInternals from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xpathInternals from libxml2

    API Menu
    API Indexes
    Related links

    internal interfaces for XML Path Language implementation used to build new modules on top of XPath like XPointer and XSLT

    Table of Contents

    #define CAST_TO_BOOLEAN
    #define CAST_TO_NUMBER
    #define CAST_TO_STRING
    #define CHECK_ARITY
    #define CHECK_ERROR
    #define CHECK_ERROR0
    #define CHECK_TYPE
    #define CHECK_TYPE0
    #define XP_ERROR
    #define XP_ERROR0
    #define xmlXPathCheckError
    #define xmlXPathEmptyNodeSet
    #define xmlXPathGetContextNode
    #define xmlXPathGetDocument
    #define xmlXPathGetError
    #define xmlXPathReturnBoolean
    #define xmlXPathReturnEmptyNodeSet
    #define xmlXPathReturnEmptyString
    #define xmlXPathReturnExternal
    #define xmlXPathReturnFalse
    #define xmlXPathReturnNodeSet
    #define xmlXPathReturnNumber
    #define xmlXPathReturnString
    #define xmlXPathReturnTrue
    #define xmlXPathSetArityError
    #define xmlXPathSetError
    #define xmlXPathSetTypeError
    #define xmlXPathStackIsExternal
    #define xmlXPathStackIsNodeSet
    xmlXPathObjectPtr	valuePop	(xmlXPathParserContextPtr ctxt)
    -
    int	valuePush			(xmlXPathParserContextPtr ctxt, 
    xmlXPathObjectPtr value)
    -
    void	xmlXPathAddValues		(xmlXPathParserContextPtr ctxt)
    -
    void	xmlXPathBooleanFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathCeilingFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    int	xmlXPathCompareValues		(xmlXPathParserContextPtr ctxt, 
    int inf,
    int strict)
    -
    void	xmlXPathConcatFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathContainsFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathCountFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathDebugDumpCompExpr	(FILE * output, 
    xmlXPathCompExprPtr comp,
    int depth)
    -
    void	xmlXPathDebugDumpObject		(FILE * output, 
    xmlXPathObjectPtr cur,
    int depth)
    -
    xmlNodeSetPtr	xmlXPathDifference	(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -
    xmlNodeSetPtr	xmlXPathDistinct	(xmlNodeSetPtr nodes)
    -
    xmlNodeSetPtr	xmlXPathDistinctSorted	(xmlNodeSetPtr nodes)
    -
    void	xmlXPathDivValues		(xmlXPathParserContextPtr ctxt)
    -
    int	xmlXPathEqualValues		(xmlXPathParserContextPtr ctxt)
    -
    void	xmlXPathErr			(xmlXPathParserContextPtr ctxt, 
    int error)
    -
    void	xmlXPathEvalExpr		(xmlXPathParserContextPtr ctxt)
    -
    int	xmlXPathEvaluatePredicateResult	(xmlXPathParserContextPtr ctxt, 
    xmlXPathObjectPtr res)
    -
    void	xmlXPathFalseFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathFloorFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathFreeParserContext	(xmlXPathParserContextPtr ctxt)
    -
    xmlXPathFunction	xmlXPathFunctionLookup	(xmlXPathContextPtr ctxt, 
    const xmlChar * name)
    -
    xmlXPathFunction	xmlXPathFunctionLookupNS	(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri)
    -
    int	xmlXPathHasSameNodes		(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -
    void	xmlXPathIdFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    xmlNodeSetPtr	xmlXPathIntersection	(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -
    int	xmlXPathIsNodeType		(const xmlChar * name)
    -
    void	xmlXPathLangFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathLastFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    xmlNodeSetPtr	xmlXPathLeading		(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -
    xmlNodeSetPtr	xmlXPathLeadingSorted	(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -
    void	xmlXPathLocalNameFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathModValues		(xmlXPathParserContextPtr ctxt)
    -
    void	xmlXPathMultValues		(xmlXPathParserContextPtr ctxt)
    -
    void	xmlXPathNamespaceURIFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    xmlXPathObjectPtr	xmlXPathNewBoolean	(int val)
    -
    xmlXPathObjectPtr	xmlXPathNewCString	(const char * val)
    -
    xmlXPathObjectPtr	xmlXPathNewFloat	(double val)
    -
    xmlXPathObjectPtr	xmlXPathNewNodeSet	(xmlNodePtr val)
    -
    xmlXPathObjectPtr	xmlXPathNewNodeSetList	(xmlNodeSetPtr val)
    -
    xmlXPathParserContextPtr	xmlXPathNewParserContext	(const xmlChar * str, 
    xmlXPathContextPtr ctxt)
    -
    xmlXPathObjectPtr	xmlXPathNewString	(const xmlChar * val)
    -
    xmlXPathObjectPtr	xmlXPathNewValueTree	(xmlNodePtr val)
    -
    xmlNodePtr	xmlXPathNextAncestor	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -
    xmlNodePtr	xmlXPathNextAncestorOrSelf	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -
    xmlNodePtr	xmlXPathNextAttribute	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -
    xmlNodePtr	xmlXPathNextChild	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -
    xmlNodePtr	xmlXPathNextDescendant	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -
    xmlNodePtr	xmlXPathNextDescendantOrSelf	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -
    xmlNodePtr	xmlXPathNextFollowing	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -
    xmlNodePtr	xmlXPathNextFollowingSibling	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -
    xmlNodePtr	xmlXPathNextNamespace	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -
    xmlNodePtr	xmlXPathNextParent	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -
    xmlNodePtr	xmlXPathNextPreceding	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -
    xmlNodePtr	xmlXPathNextPrecedingSibling	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -
    xmlNodePtr	xmlXPathNextSelf	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -
    xmlNodeSetPtr	xmlXPathNodeLeading	(xmlNodeSetPtr nodes, 
    xmlNodePtr node)
    -
    xmlNodeSetPtr	xmlXPathNodeLeadingSorted	(xmlNodeSetPtr nodes, 
    xmlNodePtr node)
    -
    void	xmlXPathNodeSetAdd		(xmlNodeSetPtr cur, 
    xmlNodePtr val)
    -
    void	xmlXPathNodeSetAddNs		(xmlNodeSetPtr cur, 
    xmlNodePtr node,
    xmlNsPtr ns)
    -
    void	xmlXPathNodeSetAddUnique	(xmlNodeSetPtr cur, 
    xmlNodePtr val)
    -
    int	xmlXPathNodeSetContains		(xmlNodeSetPtr cur, 
    xmlNodePtr val)
    -
    void	xmlXPathNodeSetDel		(xmlNodeSetPtr cur, 
    xmlNodePtr val)
    -
    void	xmlXPathNodeSetFreeNs		(xmlNsPtr ns)
    -
    xmlNodeSetPtr	xmlXPathNodeSetMerge	(xmlNodeSetPtr val1, 
    xmlNodeSetPtr val2)
    -
    void	xmlXPathNodeSetRemove		(xmlNodeSetPtr cur, 
    int val)
    -
    void	xmlXPathNodeSetSort		(xmlNodeSetPtr set)
    -
    xmlNodeSetPtr	xmlXPathNodeTrailing	(xmlNodeSetPtr nodes, 
    xmlNodePtr node)
    -
    xmlNodeSetPtr	xmlXPathNodeTrailingSorted	(xmlNodeSetPtr nodes, 
    xmlNodePtr node)
    -
    void	xmlXPathNormalizeFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    int	xmlXPathNotEqualValues		(xmlXPathParserContextPtr ctxt)
    -
    void	xmlXPathNotFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    const xmlChar *	xmlXPathNsLookup	(xmlXPathContextPtr ctxt, 
    const xmlChar * prefix)
    -
    void	xmlXPathNumberFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    xmlChar *	xmlXPathParseNCName	(xmlXPathParserContextPtr ctxt)
    -
    xmlChar *	xmlXPathParseName	(xmlXPathParserContextPtr ctxt)
    -
    int	xmlXPathPopBoolean		(xmlXPathParserContextPtr ctxt)
    -
    void *	xmlXPathPopExternal		(xmlXPathParserContextPtr ctxt)
    -
    xmlNodeSetPtr	xmlXPathPopNodeSet	(xmlXPathParserContextPtr ctxt)
    -
    double	xmlXPathPopNumber		(xmlXPathParserContextPtr ctxt)
    -
    xmlChar *	xmlXPathPopString	(xmlXPathParserContextPtr ctxt)
    -
    void	xmlXPathPositionFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathRegisterAllFunctions	(xmlXPathContextPtr ctxt)
    -
    int	xmlXPathRegisterFunc		(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    xmlXPathFunction f)
    -
    void	xmlXPathRegisterFuncLookup	(xmlXPathContextPtr ctxt, 
    xmlXPathFuncLookupFunc f,
    void * funcCtxt)
    -
    int	xmlXPathRegisterFuncNS		(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri,
    xmlXPathFunction f)
    -
    int	xmlXPathRegisterNs		(xmlXPathContextPtr ctxt, 
    const xmlChar * prefix,
    const xmlChar * ns_uri)
    -
    int	xmlXPathRegisterVariable	(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    xmlXPathObjectPtr value)
    -
    void	xmlXPathRegisterVariableLookup	(xmlXPathContextPtr ctxt, 
    xmlXPathVariableLookupFunc f,
    void * data)
    -
    int	xmlXPathRegisterVariableNS	(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri,
    xmlXPathObjectPtr value)
    -
    void	xmlXPathRegisteredFuncsCleanup	(xmlXPathContextPtr ctxt)
    -
    void	xmlXPathRegisteredNsCleanup	(xmlXPathContextPtr ctxt)
    -
    void	xmlXPathRegisteredVariablesCleanup	(xmlXPathContextPtr ctxt)
    -
    void	xmlXPathRoot			(xmlXPathParserContextPtr ctxt)
    -
    void	xmlXPathRoundFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathStartsWithFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    double	xmlXPathStringEvalNumber	(const xmlChar * str)
    -
    void	xmlXPathStringFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathStringLengthFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathSubValues		(xmlXPathParserContextPtr ctxt)
    -
    void	xmlXPathSubstringAfterFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathSubstringBeforeFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathSubstringFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathSumFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    xmlNodeSetPtr	xmlXPathTrailing	(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -
    xmlNodeSetPtr	xmlXPathTrailingSorted	(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -
    void	xmlXPathTranslateFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathTrueFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xmlXPathValueFlipSign		(xmlXPathParserContextPtr ctxt)
    -
    xmlXPathObjectPtr	xmlXPathVariableLookup	(xmlXPathContextPtr ctxt, 
    const xmlChar * name)
    -
    xmlXPathObjectPtr	xmlXPathVariableLookupNS	(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri)
    -
    xmlXPathObjectPtr	xmlXPathWrapCString	(char * val)
    -
    xmlXPathObjectPtr	xmlXPathWrapExternal	(void * val)
    -
    xmlXPathObjectPtr	xmlXPathWrapNodeSet	(xmlNodeSetPtr val)
    -
    xmlXPathObjectPtr	xmlXPathWrapString	(xmlChar * val)
    -
    void	xmlXPatherror			(xmlXPathParserContextPtr ctxt, 
    const char * file,
    int line,
    int no)
    -

    Description

    -

    Macro: CAST_TO_BOOLEAN

    #define CAST_TO_BOOLEAN

    Macro to try to cast the value on the top of the XPath stack to a boolean.

    -

    Macro: CAST_TO_NUMBER

    #define CAST_TO_NUMBER

    Macro to try to cast the value on the top of the XPath stack to a number.

    -

    Macro: CAST_TO_STRING

    #define CAST_TO_STRING

    Macro to try to cast the value on the top of the XPath stack to a string.

    -

    Macro: CHECK_ARITY

    #define CHECK_ARITY

    Macro to check that the number of args passed to an XPath function matches.

    -

    Macro: CHECK_ERROR

    #define CHECK_ERROR

    Macro to return from the function if an XPath error was detected.

    -

    Macro: CHECK_ERROR0

    #define CHECK_ERROR0

    Macro to return 0 from the function if an XPath error was detected.

    -

    Macro: CHECK_TYPE

    #define CHECK_TYPE

    Macro to check that the value on top of the XPath stack is of a given type.

    -

    Macro: CHECK_TYPE0

    #define CHECK_TYPE0

    Macro to check that the value on top of the XPath stack is of a given type. Return(0) in case of failure

    -

    Macro: XP_ERROR

    #define XP_ERROR

    Macro to raise an XPath error and return.

    -

    Macro: XP_ERROR0

    #define XP_ERROR0

    Macro to raise an XPath error and return 0.

    -

    Macro: xmlXPathCheckError

    #define xmlXPathCheckError

    Check if an XPath error was raised. Returns true if an error has been raised, false otherwise.

    -

    Macro: xmlXPathEmptyNodeSet

    #define xmlXPathEmptyNodeSet

    Empties a node-set.

    -

    Macro: xmlXPathGetContextNode

    #define xmlXPathGetContextNode

    Get the context node of an XPath context. Returns the context node.

    -

    Macro: xmlXPathGetDocument

    #define xmlXPathGetDocument

    Get the document of an XPath context. Returns the context document.

    -

    Macro: xmlXPathGetError

    #define xmlXPathGetError

    Get the error code of an XPath context. Returns the context error.

    -

    Macro: xmlXPathReturnBoolean

    #define xmlXPathReturnBoolean

    Pushes the boolean @val on the context stack.

    -

    Macro: xmlXPathReturnEmptyNodeSet

    #define xmlXPathReturnEmptyNodeSet

    Pushes an empty node-set on the context stack.

    -

    Macro: xmlXPathReturnEmptyString

    #define xmlXPathReturnEmptyString

    Pushes an empty string on the stack.

    -

    Macro: xmlXPathReturnExternal

    #define xmlXPathReturnExternal

    Pushes user data on the context stack.

    -

    Macro: xmlXPathReturnFalse

    #define xmlXPathReturnFalse

    Pushes false on the context stack.

    -

    Macro: xmlXPathReturnNodeSet

    #define xmlXPathReturnNodeSet

    Pushes the node-set @ns on the context stack.

    -

    Macro: xmlXPathReturnNumber

    #define xmlXPathReturnNumber

    Pushes the double @val on the context stack.

    -

    Macro: xmlXPathReturnString

    #define xmlXPathReturnString

    Pushes the string @str on the context stack.

    -

    Macro: xmlXPathReturnTrue

    #define xmlXPathReturnTrue

    Pushes true on the context stack.

    -

    Macro: xmlXPathSetArityError

    #define xmlXPathSetArityError

    Raises an XPATH_INVALID_ARITY error.

    -

    Macro: xmlXPathSetError

    #define xmlXPathSetError

    Raises an error.

    -

    Macro: xmlXPathSetTypeError

    #define xmlXPathSetTypeError

    Raises an XPATH_INVALID_TYPE error.

    -

    Macro: xmlXPathStackIsExternal

    #define xmlXPathStackIsExternal

    Checks if the current value on the XPath stack is an external object. Returns true if the current object on the stack is an external object.

    -

    Macro: xmlXPathStackIsNodeSet

    #define xmlXPathStackIsNodeSet

    Check if the current value on the XPath stack is a node set or an XSLT value tree. Returns true if the current object on the stack is a node-set.

    -

    Function: valuePop

    xmlXPathObjectPtr	valuePop	(xmlXPathParserContextPtr ctxt)
    -

    Pops the top XPath object from the value stack

    -
    ctxt:an XPath evaluation context
    Returns:the XPath object just removed

    Function: valuePush

    int	valuePush			(xmlXPathParserContextPtr ctxt, 
    xmlXPathObjectPtr value)
    -

    Pushes a new XPath object on top of the value stack

    -
    ctxt:an XPath evaluation context
    value:the XPath object
    Returns:the number of items on the value stack

    Function: xmlXPathAddValues

    void	xmlXPathAddValues		(xmlXPathParserContextPtr ctxt)
    -

    Implement the add operation on XPath objects: The numeric operators convert their operands to numbers as if by calling the number function.

    -
    ctxt:the XPath Parser context

    Function: xmlXPathBooleanFunction

    void	xmlXPathBooleanFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the boolean() XPath function boolean boolean(object) The boolean function converts its argument to a boolean as follows: - a number is true if and only if it is neither positive or negative zero nor NaN - a node-set is true if and only if it is non-empty - a string is true if and only if its length is non-zero

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathCeilingFunction

    void	xmlXPathCeilingFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the ceiling() XPath function number ceiling(number) The ceiling function returns the smallest (closest to negative infinity) number that is not less than the argument and that is an integer.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathCompareValues

    int	xmlXPathCompareValues		(xmlXPathParserContextPtr ctxt, 
    int inf,
    int strict)
    -

    Implement the compare operation on XPath objects: @arg1 < @arg2 (1, 1, ... @arg1 <= @arg2 (1, 0, ... @arg1 > @arg2 (0, 1, ... @arg1 >= @arg2 (0, 0, ... When neither object to be compared is a node-set and the operator is <=, <, >=, >, then the objects are compared by converted both objects to numbers and comparing the numbers according to IEEE 754. The < comparison will be true if and only if the first number is less than the second number. The <= comparison will be true if and only if the first number is less than or equal to the second number. The > comparison will be true if and only if the first number is greater than the second number. The >= comparison will be true if and only if the first number is greater than or equal to the second number.

    -
    ctxt:the XPath Parser context
    inf:less than (1) or greater than (0)
    strict:is the comparison strict
    Returns:1 if the comparison succeeded, 0 if it failed

    Function: xmlXPathConcatFunction

    void	xmlXPathConcatFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the concat() XPath function string concat(string, string, string*) The concat function returns the concatenation of its arguments.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathContainsFunction

    void	xmlXPathContainsFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the contains() XPath function boolean contains(string, string) The contains function returns true if the first argument string contains the second argument string, and otherwise returns false.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathCountFunction

    void	xmlXPathCountFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the count() XPath function number count(node-set)

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathDebugDumpCompExpr

    void	xmlXPathDebugDumpCompExpr	(FILE * output, 
    xmlXPathCompExprPtr comp,
    int depth)
    -

    Dumps the tree of the compiled XPath expression.

    -
    output:the FILE * for the output
    comp:the precompiled XPath expression
    depth:the indentation level.

    Function: xmlXPathDebugDumpObject

    void	xmlXPathDebugDumpObject		(FILE * output, 
    xmlXPathObjectPtr cur,
    int depth)
    -

    Dump the content of the object for debugging purposes

    -
    output:the FILE * to dump the output
    cur:the object to inspect
    depth:indentation level

    Function: xmlXPathDifference

    xmlNodeSetPtr	xmlXPathDifference	(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -

    Implements the EXSLT - Sets difference() function: node-set set:difference (node-set, node-set)

    -
    nodes1:a node-set
    nodes2:a node-set
    Returns:the difference between the two node sets, or nodes1 if nodes2 is empty

    Function: xmlXPathDistinct

    xmlNodeSetPtr	xmlXPathDistinct	(xmlNodeSetPtr nodes)
    -

    Implements the EXSLT - Sets distinct() function: node-set set:distinct (node-set) @nodes is sorted by document order, then #exslSetsDistinctSorted is called with the sorted node-set

    -
    nodes:a node-set
    Returns:a subset of the nodes contained in @nodes, or @nodes if it is empty

    Function: xmlXPathDistinctSorted

    xmlNodeSetPtr	xmlXPathDistinctSorted	(xmlNodeSetPtr nodes)
    -

    Implements the EXSLT - Sets distinct() function: node-set set:distinct (node-set)

    -
    nodes:a node-set, sorted by document order
    Returns:a subset of the nodes contained in @nodes, or @nodes if it is empty

    Function: xmlXPathDivValues

    void	xmlXPathDivValues		(xmlXPathParserContextPtr ctxt)
    -

    Implement the div operation on XPath objects @arg1 / @arg2: The numeric operators convert their operands to numbers as if by calling the number function.

    -
    ctxt:the XPath Parser context

    Function: xmlXPathEqualValues

    int	xmlXPathEqualValues		(xmlXPathParserContextPtr ctxt)
    -

    Implement the equal operation on XPath objects content: @arg1 == @arg2

    -
    ctxt:the XPath Parser context
    Returns:0 or 1 depending on the results of the test.

    Function: xmlXPathErr

    void	xmlXPathErr			(xmlXPathParserContextPtr ctxt, 
    int error)
    -

    Handle an XPath error

    -
    ctxt:a XPath parser context
    error:the error code

    Function: xmlXPathEvalExpr

    void	xmlXPathEvalExpr		(xmlXPathParserContextPtr ctxt)
    -

    Parse and evaluate an XPath expression in the given context, then push the result on the context stack

    -
    ctxt:the XPath Parser context

    Function: xmlXPathEvaluatePredicateResult

    int	xmlXPathEvaluatePredicateResult	(xmlXPathParserContextPtr ctxt, 
    xmlXPathObjectPtr res)
    -

    Evaluate a predicate result for the current node. A PredicateExpr is evaluated by evaluating the Expr and converting the result to a boolean. If the result is a number, the result will be converted to true if the number is equal to the position of the context node in the context node list (as returned by the position function) and will be converted to false otherwise; if the result is not a number, then the result will be converted as if by a call to the boolean function.

    -
    ctxt:the XPath Parser context
    res:the Predicate Expression evaluation result
    Returns:1 if predicate is true, 0 otherwise

    Function: xmlXPathFalseFunction

    void	xmlXPathFalseFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the false() XPath function boolean false()

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathFloorFunction

    void	xmlXPathFloorFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the floor() XPath function number floor(number) The floor function returns the largest (closest to positive infinity) number that is not greater than the argument and that is an integer.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathFreeParserContext

    void	xmlXPathFreeParserContext	(xmlXPathParserContextPtr ctxt)
    -

    Free up an xmlXPathParserContext

    -
    ctxt:the context to free

    Function: xmlXPathFunctionLookup

    xmlXPathFunction	xmlXPathFunctionLookup	(xmlXPathContextPtr ctxt, 
    const xmlChar * name)
    -

    Search in the Function array of the context for the given function.

    -
    ctxt:the XPath context
    name:the function name
    Returns:the xmlXPathFunction or NULL if not found

    Function: xmlXPathFunctionLookupNS

    xmlXPathFunction	xmlXPathFunctionLookupNS	(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri)
    -

    Search in the Function array of the context for the given function.

    -
    ctxt:the XPath context
    name:the function name
    ns_uri:the function namespace URI
    Returns:the xmlXPathFunction or NULL if not found

    Function: xmlXPathHasSameNodes

    int	xmlXPathHasSameNodes		(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -

    Implements the EXSLT - Sets has-same-nodes function: boolean set:has-same-node(node-set, node-set)

    -
    nodes1:a node-set
    nodes2:a node-set
    Returns:true (1) if @nodes1 shares any node with @nodes2, false (0) otherwise

    Function: xmlXPathIdFunction

    void	xmlXPathIdFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the id() XPath function node-set id(object) The id function selects elements by their unique ID (see [5.2.1 Unique IDs]). When the argument to id is of type node-set, then the result is the union of the result of applying id to the string value of each of the nodes in the argument node-set. When the argument to id is of any other type, the argument is converted to a string as if by a call to the string function; the string is split into a whitespace-separated list of tokens (whitespace is any sequence of characters matching the production S); the result is a node-set containing the elements in the same document as the context node that have a unique ID equal to any of the tokens in the list.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathIntersection

    xmlNodeSetPtr	xmlXPathIntersection	(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -

    Implements the EXSLT - Sets intersection() function: node-set set:intersection (node-set, node-set)

    -
    nodes1:a node-set
    nodes2:a node-set
    Returns:a node set comprising the nodes that are within both the node sets passed as arguments

    Function: xmlXPathIsNodeType

    int	xmlXPathIsNodeType		(const xmlChar * name)
    -

    Is the name given a NodeType one. [38] NodeType ::= 'comment' | 'text' | 'processing-instruction' | 'node'

    -
    name:a name string
    Returns:1 if true 0 otherwise

    Function: xmlXPathLangFunction

    void	xmlXPathLangFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the lang() XPath function boolean lang(string) The lang function returns true or false depending on whether the language of the context node as specified by xml:lang attributes is the same as or is a sublanguage of the language specified by the argument string. The language of the context node is determined by the value of the xml:lang attribute on the context node, or, if the context node has no xml:lang attribute, by the value of the xml:lang attribute on the nearest ancestor of the context node that has an xml:lang attribute. If there is no such attribute, then lang

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathLastFunction

    void	xmlXPathLastFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the last() XPath function number last() The last function returns the number of nodes in the context node list.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathLeading

    xmlNodeSetPtr	xmlXPathLeading		(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -

    Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set) @nodes1 and @nodes2 are sorted by document order, then #exslSetsLeadingSorted is called.

    -
    nodes1:a node-set
    nodes2:a node-set
    Returns:the nodes in @nodes1 that precede the first node in @nodes2 in document order, @nodes1 if @nodes2 is NULL or empty or an empty node-set if @nodes1 doesn't contain @nodes2

    Function: xmlXPathLeadingSorted

    xmlNodeSetPtr	xmlXPathLeadingSorted	(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -

    Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set)

    -
    nodes1:a node-set, sorted by document order
    nodes2:a node-set, sorted by document order
    Returns:the nodes in @nodes1 that precede the first node in @nodes2 in document order, @nodes1 if @nodes2 is NULL or empty or an empty node-set if @nodes1 doesn't contain @nodes2

    Function: xmlXPathLocalNameFunction

    void	xmlXPathLocalNameFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the local-name() XPath function string local-name(node-set?) The local-name function returns a string containing the local part of the name of the node in the argument node-set that is first in document order. If the node-set is empty or the first node has no name, an empty string is returned. If the argument is omitted it defaults to the context node.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathModValues

    void	xmlXPathModValues		(xmlXPathParserContextPtr ctxt)
    -

    Implement the mod operation on XPath objects: @arg1 / @arg2 The numeric operators convert their operands to numbers as if by calling the number function.

    -
    ctxt:the XPath Parser context

    Function: xmlXPathMultValues

    void	xmlXPathMultValues		(xmlXPathParserContextPtr ctxt)
    -

    Implement the multiply operation on XPath objects: The numeric operators convert their operands to numbers as if by calling the number function.

    -
    ctxt:the XPath Parser context

    Function: xmlXPathNamespaceURIFunction

    void	xmlXPathNamespaceURIFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the namespace-uri() XPath function string namespace-uri(node-set?) The namespace-uri function returns a string containing the namespace URI of the expanded name of the node in the argument node-set that is first in document order. If the node-set is empty, the first node has no name, or the expanded name has no namespace URI, an empty string is returned. If the argument is omitted it defaults to the context node.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathNewBoolean

    xmlXPathObjectPtr	xmlXPathNewBoolean	(int val)
    -

    Create a new xmlXPathObjectPtr of type boolean and of value @val

    -
    val:the boolean value
    Returns:the newly created object.

    Function: xmlXPathNewCString

    xmlXPathObjectPtr	xmlXPathNewCString	(const char * val)
    -

    Create a new xmlXPathObjectPtr of type string and of value @val

    -
    val:the char * value
    Returns:the newly created object.

    Function: xmlXPathNewFloat

    xmlXPathObjectPtr	xmlXPathNewFloat	(double val)
    -

    Create a new xmlXPathObjectPtr of type double and of value @val

    -
    val:the double value
    Returns:the newly created object.

    Function: xmlXPathNewNodeSet

    xmlXPathObjectPtr	xmlXPathNewNodeSet	(xmlNodePtr val)
    -

    Create a new xmlXPathObjectPtr of type NodeSet and initialize it with the single Node @val

    -
    val:the NodePtr value
    Returns:the newly created object.

    Function: xmlXPathNewNodeSetList

    xmlXPathObjectPtr	xmlXPathNewNodeSetList	(xmlNodeSetPtr val)
    -

    Create a new xmlXPathObjectPtr of type NodeSet and initialize it with the Nodeset @val

    -
    val:an existing NodeSet
    Returns:the newly created object.

    Function: xmlXPathNewParserContext

    xmlXPathParserContextPtr	xmlXPathNewParserContext	(const xmlChar * str, 
    xmlXPathContextPtr ctxt)
    -

    Create a new xmlXPathParserContext

    -
    str:the XPath expression
    ctxt:the XPath context
    Returns:the xmlXPathParserContext just allocated.

    Function: xmlXPathNewString

    xmlXPathObjectPtr	xmlXPathNewString	(const xmlChar * val)
    -

    Create a new xmlXPathObjectPtr of type string and of value @val

    -
    val:the xmlChar * value
    Returns:the newly created object.

    Function: xmlXPathNewValueTree

    xmlXPathObjectPtr	xmlXPathNewValueTree	(xmlNodePtr val)
    -

    Create a new xmlXPathObjectPtr of type Value Tree (XSLT) and initialize it with the tree root @val

    -
    val:the NodePtr value
    Returns:the newly created object.

    Function: xmlXPathNextAncestor

    xmlNodePtr	xmlXPathNextAncestor	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "ancestor" direction the ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; the nodes are ordered in reverse document order; thus the parent is the first node on the axis, and the parent's parent is the second node on the axis

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis

    Function: xmlXPathNextAncestorOrSelf

    xmlNodePtr	xmlXPathNextAncestorOrSelf	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "ancestor-or-self" direction he ancestor-or-self axis contains the context node and ancestors of the context node in reverse document order; thus the context node is the first node on the axis, and the context node's parent the second; parent here is defined the same as with the parent axis.

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis

    Function: xmlXPathNextAttribute

    xmlNodePtr	xmlXPathNextAttribute	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "attribute" direction TODO: support DTD inherited default attributes

    -
    ctxt:the XPath Parser context
    cur:the current attribute in the traversal
    Returns:the next element following that axis

    Function: xmlXPathNextChild

    xmlNodePtr	xmlXPathNextChild	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "child" direction The child axis contains the children of the context node in document order.

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis

    Function: xmlXPathNextDescendant

    xmlNodePtr	xmlXPathNextDescendant	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "descendant" direction the descendant axis contains the descendants of the context node in document order; a descendant is a child or a child of a child and so on.

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis

    Function: xmlXPathNextDescendantOrSelf

    xmlNodePtr	xmlXPathNextDescendantOrSelf	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "descendant-or-self" direction the descendant-or-self axis contains the context node and the descendants of the context node in document order; thus the context node is the first node on the axis, and the first child of the context node is the second node on the axis

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis

    Function: xmlXPathNextFollowing

    xmlNodePtr	xmlXPathNextFollowing	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "following" direction The following axis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute nodes and namespace nodes; the nodes are ordered in document order

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis

    Function: xmlXPathNextFollowingSibling

    xmlNodePtr	xmlXPathNextFollowingSibling	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "following-sibling" direction The following-sibling axis contains the following siblings of the context node in document order.

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis

    Function: xmlXPathNextNamespace

    xmlNodePtr	xmlXPathNextNamespace	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "namespace" direction the namespace axis contains the namespace nodes of the context node; the order of nodes on this axis is implementation-defined; the axis will be empty unless the context node is an element We keep the XML namespace node at the end of the list.

    -
    ctxt:the XPath Parser context
    cur:the current attribute in the traversal
    Returns:the next element following that axis

    Function: xmlXPathNextParent

    xmlNodePtr	xmlXPathNextParent	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "parent" direction The parent axis contains the parent of the context node, if there is one.

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis

    Function: xmlXPathNextPreceding

    xmlNodePtr	xmlXPathNextPreceding	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "preceding" direction the preceding axis contains all nodes in the same document as the context node that are before the context node in document order, excluding any ancestors and excluding attribute nodes and namespace nodes; the nodes are ordered in reverse document order

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis

    Function: xmlXPathNextPrecedingSibling

    xmlNodePtr	xmlXPathNextPrecedingSibling	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "preceding-sibling" direction The preceding-sibling axis contains the preceding siblings of the context node in reverse document order; the first preceding sibling is first on the axis; the sibling preceding that node is the second on the axis and so on.

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis

    Function: xmlXPathNextSelf

    xmlNodePtr	xmlXPathNextSelf	(xmlXPathParserContextPtr ctxt, 
    xmlNodePtr cur)
    -

    Traversal function for the "self" direction The self axis contains just the context node itself

    -
    ctxt:the XPath Parser context
    cur:the current node in the traversal
    Returns:the next element following that axis

    Function: xmlXPathNodeLeading

    xmlNodeSetPtr	xmlXPathNodeLeading	(xmlNodeSetPtr nodes, 
    xmlNodePtr node)
    -

    Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set) @nodes is sorted by document order, then #exslSetsNodeLeadingSorted is called.

    -
    nodes:a node-set
    node:a node
    Returns:the nodes in @nodes that precede @node in document order, @nodes if @node is NULL or an empty node-set if @nodes doesn't contain @node

    Function: xmlXPathNodeLeadingSorted

    xmlNodeSetPtr	xmlXPathNodeLeadingSorted	(xmlNodeSetPtr nodes, 
    xmlNodePtr node)
    -

    Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set)

    -
    nodes:a node-set, sorted by document order
    node:a node
    Returns:the nodes in @nodes that precede @node in document order, @nodes if @node is NULL or an empty node-set if @nodes doesn't contain @node

    Function: xmlXPathNodeSetAdd

    void	xmlXPathNodeSetAdd		(xmlNodeSetPtr cur, 
    xmlNodePtr val)
    -

    add a new xmlNodePtr to an existing NodeSet

    -
    cur:the initial node set
    val:a new xmlNodePtr

    Function: xmlXPathNodeSetAddNs

    void	xmlXPathNodeSetAddNs		(xmlNodeSetPtr cur, 
    xmlNodePtr node,
    xmlNsPtr ns)
    -

    add a new namespace node to an existing NodeSet

    -
    cur:the initial node set
    node:the hosting node
    ns:a the namespace node

    Function: xmlXPathNodeSetAddUnique

    void	xmlXPathNodeSetAddUnique	(xmlNodeSetPtr cur, 
    xmlNodePtr val)
    -

    add a new xmlNodePtr to an existing NodeSet, optimized version when we are sure the node is not already in the set.

    -
    cur:the initial node set
    val:a new xmlNodePtr

    Function: xmlXPathNodeSetContains

    int	xmlXPathNodeSetContains		(xmlNodeSetPtr cur, 
    xmlNodePtr val)
    -

    checks whether @cur contains @val

    -
    cur:the node-set
    val:the node
    Returns:true (1) if @cur contains @val, false (0) otherwise

    Function: xmlXPathNodeSetDel

    void	xmlXPathNodeSetDel		(xmlNodeSetPtr cur, 
    xmlNodePtr val)
    -

    Removes an xmlNodePtr from an existing NodeSet

    -
    cur:the initial node set
    val:an xmlNodePtr

    Function: xmlXPathNodeSetFreeNs

    void	xmlXPathNodeSetFreeNs		(xmlNsPtr ns)
    -

    Namespace nodes in libxml don't match the XPath semantic. In a node set the namespace nodes are duplicated and the next pointer is set to the parent node in the XPath semantic. Check if such a node needs to be freed

    -
    ns:the XPath namespace node found in a nodeset.

    Function: xmlXPathNodeSetMerge

    xmlNodeSetPtr	xmlXPathNodeSetMerge	(xmlNodeSetPtr val1, 
    xmlNodeSetPtr val2)
    -

    Merges two nodesets, all nodes from @val2 are added to @val1 if @val1 is NULL, a new set is created and copied from @val2

    -
    val1:the first NodeSet or NULL
    val2:the second NodeSet
    Returns:@val1 once extended or NULL in case of error.

    Function: xmlXPathNodeSetRemove

    void	xmlXPathNodeSetRemove		(xmlNodeSetPtr cur, 
    int val)
    -

    Removes an entry from an existing NodeSet list.

    -
    cur:the initial node set
    val:the index to remove

    Function: xmlXPathNodeSetSort

    void	xmlXPathNodeSetSort		(xmlNodeSetPtr set)
    -

    Sort the node set in document order

    -
    set:the node set

    Function: xmlXPathNodeTrailing

    xmlNodeSetPtr	xmlXPathNodeTrailing	(xmlNodeSetPtr nodes, 
    xmlNodePtr node)
    -

    Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set) @nodes is sorted by document order, then #xmlXPathNodeTrailingSorted is called.

    -
    nodes:a node-set
    node:a node
    Returns:the nodes in @nodes that follow @node in document order, @nodes if @node is NULL or an empty node-set if @nodes doesn't contain @node

    Function: xmlXPathNodeTrailingSorted

    xmlNodeSetPtr	xmlXPathNodeTrailingSorted	(xmlNodeSetPtr nodes, 
    xmlNodePtr node)
    -

    Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set)

    -
    nodes:a node-set, sorted by document order
    node:a node
    Returns:the nodes in @nodes that follow @node in document order, @nodes if @node is NULL or an empty node-set if @nodes doesn't contain @node

    Function: xmlXPathNormalizeFunction

    void	xmlXPathNormalizeFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the normalize-space() XPath function string normalize-space(string?) The normalize-space function returns the argument string with white space normalized by stripping leading and trailing whitespace and replacing sequences of whitespace characters by a single space. Whitespace characters are the same allowed by the S production in XML. If the argument is omitted, it defaults to the context node converted to a string, in other words the value of the context node.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathNotEqualValues

    int	xmlXPathNotEqualValues		(xmlXPathParserContextPtr ctxt)
    -

    Implement the equal operation on XPath objects content: @arg1 == @arg2

    -
    ctxt:the XPath Parser context
    Returns:0 or 1 depending on the results of the test.

    Function: xmlXPathNotFunction

    void	xmlXPathNotFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the not() XPath function boolean not(boolean) The not function returns true if its argument is false, and false otherwise.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathNsLookup

    const xmlChar *	xmlXPathNsLookup	(xmlXPathContextPtr ctxt, 
    const xmlChar * prefix)
    -

    Search in the namespace declaration array of the context for the given namespace name associated to the given prefix

    -
    ctxt:the XPath context
    prefix:the namespace prefix value
    Returns:the value or NULL if not found

    Function: xmlXPathNumberFunction

    void	xmlXPathNumberFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the number() XPath function number number(object?)

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathParseNCName

    xmlChar *	xmlXPathParseNCName	(xmlXPathParserContextPtr ctxt)
    -

    parse an XML namespace non qualified name. [NS 3] NCName ::= (Letter | '_') (NCNameChar)* [NS 4] NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender

    -
    ctxt:the XPath Parser context
    Returns:the namespace name or NULL

    Function: xmlXPathParseName

    xmlChar *	xmlXPathParseName	(xmlXPathParserContextPtr ctxt)
    -

    parse an XML name [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)*

    -
    ctxt:the XPath Parser context
    Returns:the namespace name or NULL

    Function: xmlXPathPopBoolean

    int	xmlXPathPopBoolean		(xmlXPathParserContextPtr ctxt)
    -

    Pops a boolean from the stack, handling conversion if needed. Check error with #xmlXPathCheckError.

    -
    ctxt:an XPath parser context
    Returns:the boolean

    Function: xmlXPathPopExternal

    void *	xmlXPathPopExternal		(xmlXPathParserContextPtr ctxt)
    -

    Pops an external object from the stack, handling conversion if needed. Check error with #xmlXPathCheckError.

    -
    ctxt:an XPath parser context
    Returns:the object

    Function: xmlXPathPopNodeSet

    xmlNodeSetPtr	xmlXPathPopNodeSet	(xmlXPathParserContextPtr ctxt)
    -

    Pops a node-set from the stack, handling conversion if needed. Check error with #xmlXPathCheckError.

    -
    ctxt:an XPath parser context
    Returns:the node-set

    Function: xmlXPathPopNumber

    double	xmlXPathPopNumber		(xmlXPathParserContextPtr ctxt)
    -

    Pops a number from the stack, handling conversion if needed. Check error with #xmlXPathCheckError.

    -
    ctxt:an XPath parser context
    Returns:the number

    Function: xmlXPathPopString

    xmlChar *	xmlXPathPopString	(xmlXPathParserContextPtr ctxt)
    -

    Pops a string from the stack, handling conversion if needed. Check error with #xmlXPathCheckError.

    -
    ctxt:an XPath parser context
    Returns:the string

    Function: xmlXPathPositionFunction

    void	xmlXPathPositionFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the position() XPath function number position() The position function returns the position of the context node in the context node list. The first position is 1, and so the last position will be equal to last().

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathRegisterAllFunctions

    void	xmlXPathRegisterAllFunctions	(xmlXPathContextPtr ctxt)
    -

    Registers all default XPath functions in this context

    -
    ctxt:the XPath context

    Function: xmlXPathRegisterFunc

    int	xmlXPathRegisterFunc		(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    xmlXPathFunction f)
    -

    Register a new function. If @f is NULL it unregisters the function

    -
    ctxt:the XPath context
    name:the function name
    f:the function implementation or NULL
    Returns:0 in case of success, -1 in case of error

    Function: xmlXPathRegisterFuncLookup

    void	xmlXPathRegisterFuncLookup	(xmlXPathContextPtr ctxt, 
    xmlXPathFuncLookupFunc f,
    void * funcCtxt)
    -

    Registers an external mechanism to do function lookup.

    -
    ctxt:the XPath context
    f:the lookup function
    funcCtxt:the lookup data

    Function: xmlXPathRegisterFuncNS

    int	xmlXPathRegisterFuncNS		(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri,
    xmlXPathFunction f)
    -

    Register a new function. If @f is NULL it unregisters the function

    -
    ctxt:the XPath context
    name:the function name
    ns_uri:the function namespace URI
    f:the function implementation or NULL
    Returns:0 in case of success, -1 in case of error

    Function: xmlXPathRegisterNs

    int	xmlXPathRegisterNs		(xmlXPathContextPtr ctxt, 
    const xmlChar * prefix,
    const xmlChar * ns_uri)
    -

    Register a new namespace. If @ns_uri is NULL it unregisters the namespace

    -
    ctxt:the XPath context
    prefix:the namespace prefix
    ns_uri:the namespace name
    Returns:0 in case of success, -1 in case of error

    Function: xmlXPathRegisterVariable

    int	xmlXPathRegisterVariable	(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    xmlXPathObjectPtr value)
    -

    Register a new variable value. If @value is NULL it unregisters the variable

    -
    ctxt:the XPath context
    name:the variable name
    value:the variable value or NULL
    Returns:0 in case of success, -1 in case of error

    Function: xmlXPathRegisterVariableLookup

    void	xmlXPathRegisterVariableLookup	(xmlXPathContextPtr ctxt, 
    xmlXPathVariableLookupFunc f,
    void * data)
    -

    register an external mechanism to do variable lookup

    -
    ctxt:the XPath context
    f:the lookup function
    data:the lookup data

    Function: xmlXPathRegisterVariableNS

    int	xmlXPathRegisterVariableNS	(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri,
    xmlXPathObjectPtr value)
    -

    Register a new variable value. If @value is NULL it unregisters the variable

    -
    ctxt:the XPath context
    name:the variable name
    ns_uri:the variable namespace URI
    value:the variable value or NULL
    Returns:0 in case of success, -1 in case of error

    Function: xmlXPathRegisteredFuncsCleanup

    void	xmlXPathRegisteredFuncsCleanup	(xmlXPathContextPtr ctxt)
    -

    Cleanup the XPath context data associated to registered functions

    -
    ctxt:the XPath context

    Function: xmlXPathRegisteredNsCleanup

    void	xmlXPathRegisteredNsCleanup	(xmlXPathContextPtr ctxt)
    -

    Cleanup the XPath context data associated to registered variables

    -
    ctxt:the XPath context

    Function: xmlXPathRegisteredVariablesCleanup

    void	xmlXPathRegisteredVariablesCleanup	(xmlXPathContextPtr ctxt)
    -

    Cleanup the XPath context data associated to registered variables

    -
    ctxt:the XPath context

    Function: xmlXPathRoot

    void	xmlXPathRoot			(xmlXPathParserContextPtr ctxt)
    -

    Initialize the context to the root of the document

    -
    ctxt:the XPath Parser context

    Function: xmlXPathRoundFunction

    void	xmlXPathRoundFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the round() XPath function number round(number) The round function returns the number that is closest to the argument and that is an integer. If there are two such numbers, then the one that is even is returned.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathStartsWithFunction

    void	xmlXPathStartsWithFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the starts-with() XPath function boolean starts-with(string, string) The starts-with function returns true if the first argument string starts with the second argument string, and otherwise returns false.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathStringEvalNumber

    double	xmlXPathStringEvalNumber	(const xmlChar * str)
    -

    [30a] Float ::= Number ('e' Digits?)? [30] Number ::= Digits ('.' Digits?)? | '.' Digits [31] Digits ::= [0-9]+ Compile a Number in the string In complement of the Number expression, this function also handles negative values : '-' Number.

    -
    str:A string to scan
    Returns:the double value.

    Function: xmlXPathStringFunction

    void	xmlXPathStringFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the string() XPath function string string(object?) The string function converts an object to a string as follows: - A node-set is converted to a string by returning the value of the node in the node-set that is first in document order. If the node-set is empty, an empty string is returned. - A number is converted to a string as follows + NaN is converted to the string NaN + positive zero is converted to the string 0 + negative zero is converted to the string 0 + positive infinity is converted to the string Infinity + negative infinity is converted to the string -Infinity + if the number is an integer, the number is represented in decimal form as a Number with no decimal point and no leading zeros, preceded by a minus sign (-) if the number is negative + otherwise, the number is represented in decimal form as a Number including a decimal point with at least one digit before the decimal point and at least one digit after the decimal point, preceded by a minus sign (-) if the number is negative; there must be no leading zeros before the decimal point apart possibly from the one required digit immediately before the decimal point; beyond the one required digit after the decimal point there must be as many, but only as many, more digits as are needed to uniquely distinguish the number from all other IEEE 754 numeric values. - The boolean false value is converted to the string false. The boolean true value is converted to the string true. If the argument is omitted, it defaults to a node-set with the context node as its only member.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathStringLengthFunction

    void	xmlXPathStringLengthFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the string-length() XPath function number string-length(string?) The string-length returns the number of characters in the string (see [3.6 Strings]). If the argument is omitted, it defaults to the context node converted to a string, in other words the value of the context node.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathSubValues

    void	xmlXPathSubValues		(xmlXPathParserContextPtr ctxt)
    -

    Implement the subtraction operation on XPath objects: The numeric operators convert their operands to numbers as if by calling the number function.

    -
    ctxt:the XPath Parser context

    Function: xmlXPathSubstringAfterFunction

    void	xmlXPathSubstringAfterFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the substring-after() XPath function string substring-after(string, string) The substring-after function returns the substring of the first argument string that follows the first occurrence of the second argument string in the first argument string, or the empty stringi if the first argument string does not contain the second argument string. For example, substring-after("1999/04/01","/") returns 04/01, and substring-after("1999/04/01","19") returns 99/04/01.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathSubstringBeforeFunction

    void	xmlXPathSubstringBeforeFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the substring-before() XPath function string substring-before(string, string) The substring-before function returns the substring of the first argument string that precedes the first occurrence of the second argument string in the first argument string, or the empty string if the first argument string does not contain the second argument string. For example, substring-before("1999/04/01","/") returns 1999.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathSubstringFunction

    void	xmlXPathSubstringFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the substring() XPath function string substring(string, number, number?) The substring function returns the substring of the first argument starting at the position specified in the second argument with length specified in the third argument. For example, substring("12345",2,3) returns "234". If the third argument is not specified, it returns the substring starting at the position specified in the second argument and continuing to the end of the string. For example, substring("12345",2) returns "2345". More precisely, each character in the string (see [3.6 Strings]) is considered to have a numeric position: the position of the first character is 1, the position of the second character is 2 and so on. The returned substring contains those characters for which the position of the character is greater than or equal to the second argument and, if the third argument is specified, less than the sum of the second and third arguments; the comparisons and addition used for the above follow the standard IEEE 754 rules. Thus: - substring("12345", 1.5, 2.6) returns "234" - substring("12345", 0, 3) returns "12" - substring("12345", 0 div 0, 3) returns "" - substring("12345", 1, 0 div 0) returns "" - substring("12345", -42, 1 div 0) returns "12345" - substring("12345", -1 div 0, 1 div 0) returns ""

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathSumFunction

    void	xmlXPathSumFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the sum() XPath function number sum(node-set) The sum function returns the sum of the values of the nodes in the argument node-set.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathTrailing

    xmlNodeSetPtr	xmlXPathTrailing	(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -

    Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set) @nodes1 and @nodes2 are sorted by document order, then #xmlXPathTrailingSorted is called.

    -
    nodes1:a node-set
    nodes2:a node-set
    Returns:the nodes in @nodes1 that follow the first node in @nodes2 in document order, @nodes1 if @nodes2 is NULL or empty or an empty node-set if @nodes1 doesn't contain @nodes2

    Function: xmlXPathTrailingSorted

    xmlNodeSetPtr	xmlXPathTrailingSorted	(xmlNodeSetPtr nodes1, 
    xmlNodeSetPtr nodes2)
    -

    Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set)

    -
    nodes1:a node-set, sorted by document order
    nodes2:a node-set, sorted by document order
    Returns:the nodes in @nodes1 that follow the first node in @nodes2 in document order, @nodes1 if @nodes2 is NULL or empty or an empty node-set if @nodes1 doesn't contain @nodes2

    Function: xmlXPathTranslateFunction

    void	xmlXPathTranslateFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the translate() XPath function string translate(string, string, string) The translate function returns the first argument string with occurrences of characters in the second argument string replaced by the character at the corresponding position in the third argument string. For example, translate("bar","abc","ABC") returns the string BAr. If there is a character in the second argument string with no character at a corresponding position in the third argument string (because the second argument string is longer than the third argument string), then occurrences of that character in the first argument string are removed. For example, translate("--aaa--","abc-","ABC")

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathTrueFunction

    void	xmlXPathTrueFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the true() XPath function boolean true()

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xmlXPathValueFlipSign

    void	xmlXPathValueFlipSign		(xmlXPathParserContextPtr ctxt)
    -

    Implement the unary - operation on an XPath object The numeric operators convert their operands to numbers as if by calling the number function.

    -
    ctxt:the XPath Parser context

    Function: xmlXPathVariableLookup

    xmlXPathObjectPtr	xmlXPathVariableLookup	(xmlXPathContextPtr ctxt, 
    const xmlChar * name)
    -

    Search in the Variable array of the context for the given variable value.

    -
    ctxt:the XPath context
    name:the variable name
    Returns:a copy of the value or NULL if not found

    Function: xmlXPathVariableLookupNS

    xmlXPathObjectPtr	xmlXPathVariableLookupNS	(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri)
    -

    Search in the Variable array of the context for the given variable value.

    -
    ctxt:the XPath context
    name:the variable name
    ns_uri:the variable namespace URI
    Returns:the a copy of the value or NULL if not found

    Function: xmlXPathWrapCString

    xmlXPathObjectPtr	xmlXPathWrapCString	(char * val)
    -

    Wraps a string into an XPath object.

    -
    val:the char * value
    Returns:the newly created object.

    Function: xmlXPathWrapExternal

    xmlXPathObjectPtr	xmlXPathWrapExternal	(void * val)
    -

    Wraps the @val data into an XPath object.

    -
    val:the user data
    Returns:the newly created object.

    Function: xmlXPathWrapNodeSet

    xmlXPathObjectPtr	xmlXPathWrapNodeSet	(xmlNodeSetPtr val)
    -

    Wrap the Nodeset @val in a new xmlXPathObjectPtr

    -
    val:the NodePtr value
    Returns:the newly created object.

    Function: xmlXPathWrapString

    xmlXPathObjectPtr	xmlXPathWrapString	(xmlChar * val)
    -

    Wraps the @val string into an XPath object.

    -
    val:the xmlChar * value
    Returns:the newly created object.

    Function: xmlXPatherror

    void	xmlXPatherror			(xmlXPathParserContextPtr ctxt, 
    const char * file,
    int line,
    int no)
    -

    Formats an error message.

    -
    ctxt:the XPath Parser context
    file:the file name
    line:the line number
    no:the error number

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/libxml-xpointer.html b/src/tools/docbook/libxml2/doc/html/libxml-xpointer.html deleted file mode 100644 index 7b0c350e81..0000000000 --- a/src/tools/docbook/libxml2/doc/html/libxml-xpointer.html +++ /dev/null @@ -1,83 +0,0 @@ - - -Module xpointer from libxml2
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Module xpointer from libxml2

    API Menu
    API Indexes
    Related links

    API to handle XML Pointers Base implementation was made accordingly to W3C Candidate Recommendation 7 June 2000

    Table of Contents

    Structure xmlLocationSet
    struct _xmlLocationSet -
    Typedef xmlLocationSet * xmlLocationSetPtr
    -
    xmlNodePtr	xmlXPtrBuildNodeList	(xmlXPathObjectPtr obj)
    -
    xmlXPathObjectPtr	xmlXPtrEval	(const xmlChar * str, 
    xmlXPathContextPtr ctx)
    -
    void	xmlXPtrEvalRangePredicate	(xmlXPathParserContextPtr ctxt)
    -
    void	xmlXPtrFreeLocationSet		(xmlLocationSetPtr obj)
    -
    void	xmlXPtrLocationSetAdd		(xmlLocationSetPtr cur, 
    xmlXPathObjectPtr val)
    -
    xmlLocationSetPtr	xmlXPtrLocationSetCreate	(xmlXPathObjectPtr val)
    -
    void	xmlXPtrLocationSetDel		(xmlLocationSetPtr cur, 
    xmlXPathObjectPtr val)
    -
    xmlLocationSetPtr	xmlXPtrLocationSetMerge	(xmlLocationSetPtr val1, 
    xmlLocationSetPtr val2)
    -
    void	xmlXPtrLocationSetRemove	(xmlLocationSetPtr cur, 
    int val)
    -
    xmlXPathObjectPtr	xmlXPtrNewCollapsedRange	(xmlNodePtr start)
    -
    xmlXPathContextPtr	xmlXPtrNewContext	(xmlDocPtr doc, 
    xmlNodePtr here,
    xmlNodePtr origin)
    -
    xmlXPathObjectPtr	xmlXPtrNewLocationSetNodeSet	(xmlNodeSetPtr set)
    -
    xmlXPathObjectPtr	xmlXPtrNewLocationSetNodes	(xmlNodePtr start, 
    xmlNodePtr end)
    -
    xmlXPathObjectPtr	xmlXPtrNewRange	(xmlNodePtr start, 
    int startindex,
    xmlNodePtr end,
    int endindex)
    -
    xmlXPathObjectPtr	xmlXPtrNewRangeNodeObject	(xmlNodePtr start, 
    xmlXPathObjectPtr end)
    -
    xmlXPathObjectPtr	xmlXPtrNewRangeNodePoint	(xmlNodePtr start, 
    xmlXPathObjectPtr end)
    -
    xmlXPathObjectPtr	xmlXPtrNewRangeNodes	(xmlNodePtr start, 
    xmlNodePtr end)
    -
    xmlXPathObjectPtr	xmlXPtrNewRangePointNode	(xmlXPathObjectPtr start, 
    xmlNodePtr end)
    -
    xmlXPathObjectPtr	xmlXPtrNewRangePoints	(xmlXPathObjectPtr start, 
    xmlXPathObjectPtr end)
    -
    void	xmlXPtrRangeToFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    xmlXPathObjectPtr	xmlXPtrWrapLocationSet	(xmlLocationSetPtr val)
    -

    Description

    -

    Structure xmlLocationSet

    Structure xmlLocationSet
    struct _xmlLocationSet { - int locNr : number of locations in the set - int locMax : size of the array as allocated - xmlXPathObjectPtr * locTab : array of locations -}

    Function: xmlXPtrBuildNodeList

    xmlNodePtr	xmlXPtrBuildNodeList	(xmlXPathObjectPtr obj)
    -

    Build a node list tree copy of the XPointer result. This will drop Attributes and Namespace declarations.

    -
    obj:the XPointer result from the evaluation.
    Returns:an xmlNodePtr list or NULL. the caller has to free the node tree.

    Function: xmlXPtrEval

    xmlXPathObjectPtr	xmlXPtrEval	(const xmlChar * str, 
    xmlXPathContextPtr ctx)
    -

    Evaluate the XPath Location Path in the given context.

    -
    str:the XPointer expression
    ctx:the XPointer context
    Returns:the xmlXPathObjectPtr resulting from the evaluation or NULL. the caller has to free the object.

    Function: xmlXPtrEvalRangePredicate

    void	xmlXPtrEvalRangePredicate	(xmlXPathParserContextPtr ctxt)
    -

    [8] Predicate ::= '[' PredicateExpr ']' [9] PredicateExpr ::= Expr Evaluate a predicate as in xmlXPathEvalPredicate() but for a Location Set instead of a node set

    -
    ctxt:the XPointer Parser context

    Function: xmlXPtrFreeLocationSet

    void	xmlXPtrFreeLocationSet		(xmlLocationSetPtr obj)
    -

    Free the LocationSet compound (not the actual ranges !).

    -
    obj:the xmlLocationSetPtr to free

    Function: xmlXPtrLocationSetAdd

    void	xmlXPtrLocationSetAdd		(xmlLocationSetPtr cur, 
    xmlXPathObjectPtr val)
    -

    add a new xmlXPathObjectPtr to an existing LocationSet If the location already exist in the set @val is freed.

    -
    cur:the initial range set
    val:a new xmlXPathObjectPtr

    Function: xmlXPtrLocationSetCreate

    xmlLocationSetPtr	xmlXPtrLocationSetCreate	(xmlXPathObjectPtr val)
    -

    Create a new xmlLocationSetPtr of type double and of value @val

    -
    val:an initial xmlXPathObjectPtr, or NULL
    Returns:the newly created object.

    Function: xmlXPtrLocationSetDel

    void	xmlXPtrLocationSetDel		(xmlLocationSetPtr cur, 
    xmlXPathObjectPtr val)
    -

    Removes an xmlXPathObjectPtr from an existing LocationSet

    -
    cur:the initial range set
    val:an xmlXPathObjectPtr

    Function: xmlXPtrLocationSetMerge

    xmlLocationSetPtr	xmlXPtrLocationSetMerge	(xmlLocationSetPtr val1, 
    xmlLocationSetPtr val2)
    -

    Merges two rangesets, all ranges from @val2 are added to @val1

    -
    val1:the first LocationSet
    val2:the second LocationSet
    Returns:val1 once extended or NULL in case of error.

    Function: xmlXPtrLocationSetRemove

    void	xmlXPtrLocationSetRemove	(xmlLocationSetPtr cur, 
    int val)
    -

    Removes an entry from an existing LocationSet list.

    -
    cur:the initial range set
    val:the index to remove

    Function: xmlXPtrNewCollapsedRange

    xmlXPathObjectPtr	xmlXPtrNewCollapsedRange	(xmlNodePtr start)
    -

    Create a new xmlXPathObjectPtr of type range using a single nodes

    -
    start:the starting and ending node
    Returns:the newly created object.

    Function: xmlXPtrNewContext

    xmlXPathContextPtr	xmlXPtrNewContext	(xmlDocPtr doc, 
    xmlNodePtr here,
    xmlNodePtr origin)
    -

    Create a new XPointer context

    -
    doc:the XML document
    here:the node that directly contains the XPointer being evaluated or NULL
    origin:the element from which a user or program initiated traversal of the link, or NULL.
    Returns:the xmlXPathContext just allocated.

    Function: xmlXPtrNewLocationSetNodeSet

    xmlXPathObjectPtr	xmlXPtrNewLocationSetNodeSet	(xmlNodeSetPtr set)
    -

    Create a new xmlXPathObjectPtr of type LocationSet and initialize it with all the nodes from @set

    -
    set:a node set
    Returns:the newly created object.

    Function: xmlXPtrNewLocationSetNodes

    xmlXPathObjectPtr	xmlXPtrNewLocationSetNodes	(xmlNodePtr start, 
    xmlNodePtr end)
    -

    Create a new xmlXPathObjectPtr of type LocationSet and initialize it with the single range made of the two nodes @start and @end

    -
    start:the start NodePtr value
    end:the end NodePtr value or NULL
    Returns:the newly created object.

    Function: xmlXPtrNewRange

    xmlXPathObjectPtr	xmlXPtrNewRange	(xmlNodePtr start, 
    int startindex,
    xmlNodePtr end,
    int endindex)
    -

    Create a new xmlXPathObjectPtr of type range

    -
    start:the starting node
    startindex:the start index
    end:the ending point
    endindex:the ending index
    Returns:the newly created object.

    Function: xmlXPtrNewRangeNodeObject

    xmlXPathObjectPtr	xmlXPtrNewRangeNodeObject	(xmlNodePtr start, 
    xmlXPathObjectPtr end)
    -

    Create a new xmlXPathObjectPtr of type range from a not to an object

    -
    start:the starting node
    end:the ending object
    Returns:the newly created object.

    Function: xmlXPtrNewRangeNodePoint

    xmlXPathObjectPtr	xmlXPtrNewRangeNodePoint	(xmlNodePtr start, 
    xmlXPathObjectPtr end)
    -

    Create a new xmlXPathObjectPtr of type range from a node to a point

    -
    start:the starting node
    end:the ending point
    Returns:the newly created object.

    Function: xmlXPtrNewRangeNodes

    xmlXPathObjectPtr	xmlXPtrNewRangeNodes	(xmlNodePtr start, 
    xmlNodePtr end)
    -

    Create a new xmlXPathObjectPtr of type range using 2 nodes

    -
    start:the starting node
    end:the ending node
    Returns:the newly created object.

    Function: xmlXPtrNewRangePointNode

    xmlXPathObjectPtr	xmlXPtrNewRangePointNode	(xmlXPathObjectPtr start, 
    xmlNodePtr end)
    -

    Create a new xmlXPathObjectPtr of type range from a point to a node

    -
    start:the starting point
    end:the ending node
    Returns:the newly created object.

    Function: xmlXPtrNewRangePoints

    xmlXPathObjectPtr	xmlXPtrNewRangePoints	(xmlXPathObjectPtr start, 
    xmlXPathObjectPtr end)
    -

    Create a new xmlXPathObjectPtr of type range using 2 Points

    -
    start:the starting point
    end:the ending point
    Returns:the newly created object.

    Function: xmlXPtrRangeToFunction

    void	xmlXPtrRangeToFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the range-to() XPointer function

    -
    ctxt:the XPointer Parser context
    nargs:the number of args

    Function: xmlXPtrWrapLocationSet

    xmlXPathObjectPtr	xmlXPtrWrapLocationSet	(xmlLocationSetPtr val)
    -

    Wrap the LocationSet @val in a new xmlXPathObjectPtr

    -
    val:the LocationSet value
    Returns:the newly created object.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/html/right.png b/src/tools/docbook/libxml2/doc/html/right.png deleted file mode 100644 index 92832e3a45..0000000000 Binary files a/src/tools/docbook/libxml2/doc/html/right.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/html/up.png b/src/tools/docbook/libxml2/doc/html/up.png deleted file mode 100644 index 85b3e2a275..0000000000 Binary files a/src/tools/docbook/libxml2/doc/html/up.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/index.html b/src/tools/docbook/libxml2/doc/index.html deleted file mode 100644 index 22f013b702..0000000000 --- a/src/tools/docbook/libxml2/doc/index.html +++ /dev/null @@ -1,307 +0,0 @@ - - - - - - - - The XML C parser and toolkit of Gnome - - - - - - - - -
    - - Action against software patents - - - - Gnome2 Logo - - - W3C Logo - - - Red Hat Logo - -
    - - Made with Libxml2 Logo - -
    -
    - - - - -
    - - - - -
    -

    The XML C parser and toolkit of Gnome

    -

    libxml

    -
    -
    -
    - - - - -
    - - - - - -
    - - - - -
    - - - - - - - -
    -
    - Main Menu -
    -
    -
    - - -
    - -
    - - - - - - - -
    -
    - Related links -
    -
    - -
    -
    -
    - - - - -
    - - - - -
    - - - - -
    -

    -

    "Programmingwithlibxml2 -is like the thrilling embrace of an exotic stranger." MarkPilgrim

    -

    Libxml2 is the XML C parser and toolkit developed for the Gnomeproject(but -usable outside of the Gnome platform), it is free softwareavailableunder the -MITLicense.XML -itself is a metalanguage to design markup languages, i.e.text languagewhere -semantic and structure are added to the content usingextra -"markup"information enclosed between angle brackets. HTML is the -mostwell-knownmarkup language. Though the library is written in C avariety of language bindingsmake it available inother -environments.

    -

    Libxml2 is known to be very portable, the library should build -andworkwithout serious troubles on a variety of systems (Linux, -Unix,Windows,CygWin, MacOS, MacOS X, RISC Os, OS/2, VMS, QNX, MVS, ...)

    -

    Libxml2 implements a number of existing standards related -tomarkuplanguages:

    - -

    In most cases libxml2 tries to implement the specifications in -arelativelystrictly compliant way. As of release 2.4.16, libxml2 passed -all1800+ testsfrom the OASIS -XMLTestsSuite.

    -

    To some extent libxml2 provides support for the -followingadditionalspecifications but doesn't claim to implement them -completely:

    -
    • Document Object Model (DOM) http://www.w3.org/TR/DOM-Level-2-Core/thedocument - model, but it doesn't implement the API itself, gdome2 doesthison top of - libxml2
    • -
    • RFC959:libxml2 - implements a basic FTP client code
    • -
    • RFC1945:HTTP/1.0, - again a basic HTTP client code
    • -
    • SAX: a SAX2 like interface and a minimal SAX1 - implementationcompatiblewith early expat versions
    • -
    -

    A partial implementation of XML Schemas -Part1:Structureis being worked on but it would be far too early to -makeanyconformance statement about it at the moment.

    -

    Separate documents:

    - -

    Logo designed by Marc Liyanage.

    -

    - Daniel Veillard -

    -
    -
    -
    -
    -
    - - diff --git a/src/tools/docbook/libxml2/doc/index.py b/src/tools/docbook/libxml2/doc/index.py deleted file mode 100755 index 578f288b37..0000000000 --- a/src/tools/docbook/libxml2/doc/index.py +++ /dev/null @@ -1,1258 +0,0 @@ -#!/usr/bin/python -u -# -# imports the API description and fills up a database with -# name relevance to modules, functions or web pages -# -# Operation needed: -# ================= -# -# install mysqld, the python wrappers for mysql and libxml2, start mysqld -# Change the root passwd of mysql: -# mysqladmin -u root password new_password -# Create the new database xmlsoft -# mysqladmin -p create xmlsoft -# Create a database user 'veillard' and give him passord access -# change veillard and abcde with the right user name and passwd -# mysql -p -# password: -# mysql> GRANT ALL PRIVILEGES ON xmlsoft TO veillard@localhost -# IDENTIFIED BY 'abcde' WITH GRANT OPTION; -# -# As the user check the access: -# mysql -p xmlsoft -# Enter password: -# Welcome to the MySQL monitor.... -# mysql> use xmlsoft -# Database changed -# mysql> quit -# Bye -# -# Then run the script in the doc subdir, it will create the symbols and -# word tables and populate them with informations extracted from -# the libxml2-api.xml API description, and make then accessible read-only -# by nobody@loaclhost the user expected to be Apache's one -# -# On the Apache configuration, make sure you have php support enabled -# - -import MySQLdb -import libxml2 -import sys -import string -import os - -# -# We are not interested in parsing errors here -# -def callback(ctx, str): - return -libxml2.registerErrorHandler(callback, None) - -# -# The dictionnary of tables required and the SQL command needed -# to create them -# -TABLES={ - "symbols" : """CREATE TABLE symbols ( - name varchar(255) BINARY NOT NULL, - module varchar(255) BINARY NOT NULL, - type varchar(25) NOT NULL, - descr varchar(255), - UNIQUE KEY name (name), - KEY module (module))""", - "words" : """CREATE TABLE words ( - name varchar(50) BINARY NOT NULL, - symbol varchar(255) BINARY NOT NULL, - relevance int, - KEY name (name), - KEY symbol (symbol), - UNIQUE KEY ID (name, symbol))""", - "wordsHTML" : """CREATE TABLE wordsHTML ( - name varchar(50) BINARY NOT NULL, - resource varchar(255) BINARY NOT NULL, - section varchar(255), - id varchar(50), - relevance int, - KEY name (name), - KEY resource (resource), - UNIQUE KEY ref (name, resource))""", - "wordsArchive" : """CREATE TABLE wordsArchive ( - name varchar(50) BINARY NOT NULL, - ID int(11) NOT NULL, - relevance int, - KEY name (name), - UNIQUE KEY ref (name, ID))""", - "pages" : """CREATE TABLE pages ( - resource varchar(255) BINARY NOT NULL, - title varchar(255) BINARY NOT NULL, - UNIQUE KEY name (resource))""", - "archives" : """CREATE TABLE archives ( - ID int(11) NOT NULL auto_increment, - resource varchar(255) BINARY NOT NULL, - title varchar(255) BINARY NOT NULL, - UNIQUE KEY id (ID,resource(255)), - INDEX (ID), - INDEX (resource))""", - "Queries" : """CREATE TABLE Queries ( - ID int(11) NOT NULL auto_increment, - Value varchar(50) NOT NULL, - Count int(11) NOT NULL, - UNIQUE KEY id (ID,Value(35)), - INDEX (ID))""", - "AllQueries" : """CREATE TABLE AllQueries ( - ID int(11) NOT NULL auto_increment, - Value varchar(50) NOT NULL, - Count int(11) NOT NULL, - UNIQUE KEY id (ID,Value(35)), - INDEX (ID))""", -} - -# -# The XML API description file to parse -# -API="libxml2-api.xml" -DB=None - -######################################################################### -# # -# MySQL database interfaces # -# # -######################################################################### -def createTable(db, name): - global TABLES - - if db == None: - return -1 - if name == None: - return -1 - c = db.cursor() - - ret = c.execute("DROP TABLE IF EXISTS %s" % (name)) - if ret == 1: - print "Removed table %s" % (name) - print "Creating table %s" % (name) - try: - ret = c.execute(TABLES[name]) - except: - print "Failed to create table %s" % (name) - return -1 - return ret - -def checkTables(db, verbose = 1): - global TABLES - - if db == None: - return -1 - c = db.cursor() - nbtables = c.execute("show tables") - if verbose: - print "Found %d tables" % (nbtables) - tables = {} - i = 0 - while i < nbtables: - l = c.fetchone() - name = l[0] - tables[name] = {} - i = i + 1 - - for table in TABLES.keys(): - if not tables.has_key(table): - print "table %s missing" % (table) - createTable(db, table) - try: - ret = c.execute("SELECT count(*) from %s" % table); - row = c.fetchone() - if verbose: - print "Table %s contains %d records" % (table, row[0]) - except: - print "Troubles with table %s : repairing" % (table) - ret = c.execute("repair table %s" % table); - print "repairing returned %d" % (ret) - ret = c.execute("SELECT count(*) from %s" % table); - row = c.fetchone() - print "Table %s contains %d records" % (table, row[0]) - if verbose: - print "checkTables finished" - - # make sure apache can access the tables read-only - try: - ret = c.execute("GRANT SELECT ON xmlsoft.* TO nobody@localhost") - ret = c.execute("GRANT INSERT,SELECT,UPDATE ON xmlsoft.Queries TO nobody@localhost") - except: - pass - return 0 - -def openMySQL(db="xmlsoft", passwd=None, verbose = 1): - global DB - - if passwd == None: - try: - passwd = os.environ["MySQL_PASS"] - except: - print "No password available, set environment MySQL_PASS" - sys.exit(1) - - DB = MySQLdb.connect(passwd=passwd, db=db) - if DB == None: - return -1 - ret = checkTables(DB, verbose) - return ret - -def updateWord(name, symbol, relevance): - global DB - - if DB == None: - openMySQL() - if DB == None: - return -1 - if name == None: - return -1 - if symbol == None: - return -1 - - c = DB.cursor() - try: - ret = c.execute( -"""INSERT INTO words (name, symbol, relevance) VALUES ('%s','%s', %d)""" % - (name, symbol, relevance)) - except: - try: - ret = c.execute( - """UPDATE words SET relevance = %d where name = '%s' and symbol = '%s'""" % - (relevance, name, symbol)) - except: - print "Update word (%s, %s, %s) failed command" % (name, symbol, relevance) - print "UPDATE words SET relevance = %d where name = '%s' and symbol = '%s'" % (relevance, name, symbol) - print sys.exc_type, sys.exc_value - return -1 - - return ret - -def updateSymbol(name, module, type, desc): - global DB - - updateWord(name, name, 50) - if DB == None: - openMySQL() - if DB == None: - return -1 - if name == None: - return -1 - if module == None: - return -1 - if type == None: - return -1 - - try: - desc = string.replace(desc, "'", " ") - l = string.split(desc, ".") - desc = l[0] - desc = desc[0:99] - except: - desc = "" - - c = DB.cursor() - try: - ret = c.execute( -"""INSERT INTO symbols (name, module, type, descr) VALUES ('%s','%s', '%s', '%s')""" % - (name, module, type, desc)) - except: - try: - ret = c.execute( -"""UPDATE symbols SET module='%s', type='%s', descr='%s' where name='%s'""" % - (module, type, desc, name)) - except: - print "Update symbol (%s, %s, %s) failed command" % (name, module, type) - print """UPDATE symbols SET module='%s', type='%s', descr='%s' where name='%s'""" % (module, type, desc, name) - print sys.exc_type, sys.exc_value - return -1 - - return ret - -def addFunction(name, module, desc = ""): - return updateSymbol(name, module, 'function', desc) - -def addMacro(name, module, desc = ""): - return updateSymbol(name, module, 'macro', desc) - -def addEnum(name, module, desc = ""): - return updateSymbol(name, module, 'enum', desc) - -def addStruct(name, module, desc = ""): - return updateSymbol(name, module, 'struct', desc) - -def addConst(name, module, desc = ""): - return updateSymbol(name, module, 'const', desc) - -def addType(name, module, desc = ""): - return updateSymbol(name, module, 'type', desc) - -def addFunctype(name, module, desc = ""): - return updateSymbol(name, module, 'functype', desc) - -def addPage(resource, title): - global DB - - if DB == None: - openMySQL() - if DB == None: - return -1 - if resource == None: - return -1 - - c = DB.cursor() - try: - ret = c.execute( - """INSERT INTO pages (resource, title) VALUES ('%s','%s')""" % - (resource, title)) - except: - try: - ret = c.execute( - """UPDATE pages SET title='%s' WHERE resource='%s'""" % - (title, resource)) - except: - print "Update symbol (%s, %s, %s) failed command" % (name, module, type) - print """UPDATE pages SET title='%s' WHERE resource='%s'""" % (title, resource) - print sys.exc_type, sys.exc_value - return -1 - - return ret - -def updateWordHTML(name, resource, desc, id, relevance): - global DB - - if DB == None: - openMySQL() - if DB == None: - return -1 - if name == None: - return -1 - if resource == None: - return -1 - if id == None: - id = "" - if desc == None: - desc = "" - else: - try: - desc = string.replace(desc, "'", " ") - desc = desc[0:99] - except: - desc = "" - - c = DB.cursor() - try: - ret = c.execute( -"""INSERT INTO wordsHTML (name, resource, section, id, relevance) VALUES ('%s','%s', '%s', '%s', '%d')""" % - (name, resource, desc, id, relevance)) - except: - try: - ret = c.execute( -"""UPDATE wordsHTML SET section='%s', id='%s', relevance='%d' where name='%s' and resource='%s'""" % - (desc, id, relevance, name, resource)) - except: - print "Update symbol (%s, %s, %d) failed command" % (name, resource, relevance) - print """UPDATE wordsHTML SET section='%s', id='%s', relevance='%d' where name='%s' and resource='%s'""" % (desc, id, relevance, name, resource) - print sys.exc_type, sys.exc_value - return -1 - - return ret - -def checkXMLMsgArchive(url): - global DB - - if DB == None: - openMySQL() - if DB == None: - return -1 - if url == None: - return -1 - - c = DB.cursor() - try: - ret = c.execute( - """SELECT ID FROM archives WHERE resource='%s'""" % (url)) - row = c.fetchone() - if row == None: - return -1 - except: - return -1 - - return row[0] - -def addXMLMsgArchive(url, title): - global DB - - if DB == None: - openMySQL() - if DB == None: - return -1 - if url == None: - return -1 - if title == None: - title = "" - else: - title = string.replace(title, "'", " ") - title = title[0:99] - - c = DB.cursor() - try: - cmd = """INSERT INTO archives (resource, title) VALUES ('%s','%s')""" % (url, title) - ret = c.execute(cmd) - cmd = """SELECT ID FROM archives WHERE resource='%s'""" % (url) - ret = c.execute(cmd) - row = c.fetchone() - if row == None: - print "addXMLMsgArchive failed to get the ID: %s" % (url) - return -1 - except: - print "addXMLMsgArchive failed command: %s" % (cmd) - return -1 - - return((int)(row[0])) - -def updateWordArchive(name, id, relevance): - global DB - - if DB == None: - openMySQL() - if DB == None: - return -1 - if name == None: - return -1 - if id == None: - return -1 - - c = DB.cursor() - try: - ret = c.execute( -"""INSERT INTO wordsArchive (name, id, relevance) VALUES ('%s', '%d', '%d')""" % - (name, id, relevance)) - except: - try: - ret = c.execute( -"""UPDATE wordsArchive SET relevance='%d' where name='%s' and ID='%d'""" % - (relevance, name, id)) - except: - print "Update word archive (%s, %d, %d) failed command" % (name, id, relevance) - print """UPDATE wordsArchive SET relevance='%d' where name='%s' and ID='%d'""" % (relevance, name, id) - print sys.exc_type, sys.exc_value - return -1 - - return ret - -######################################################################### -# # -# Word dictionnary and analysis routines # -# # -######################################################################### - -# -# top 100 english word without the one len < 3 + own set -# -dropWords = { - 'the':0, 'this':0, 'can':0, 'man':0, 'had':0, 'him':0, 'only':0, - 'and':0, 'not':0, 'been':0, 'other':0, 'even':0, 'are':0, 'was':0, - 'new':0, 'most':0, 'but':0, 'when':0, 'some':0, 'made':0, 'from':0, - 'who':0, 'could':0, 'after':0, 'that':0, 'will':0, 'time':0, 'also':0, - 'have':0, 'more':0, 'these':0, 'did':0, 'was':0, 'two':0, 'many':0, - 'they':0, 'may':0, 'before':0, 'for':0, 'which':0, 'out':0, 'then':0, - 'must':0, 'one':0, 'through':0, 'with':0, 'you':0, 'said':0, - 'first':0, 'back':0, 'were':0, 'what':0, 'any':0, 'years':0, 'his':0, - 'her':0, 'where':0, 'all':0, 'its':0, 'now':0, 'much':0, 'she':0, - 'about':0, 'such':0, 'your':0, 'there':0, 'into':0, 'like':0, 'may':0, - 'would':0, 'than':0, 'our':0, 'well':0, 'their':0, 'them':0, 'over':0, - 'down':0, - 'net':0, 'www':0, 'bad':0, 'Okay':0, 'bin':0, 'cur':0, -} - -wordsDict = {} -wordsDictHTML = {} -wordsDictArchive = {} - -def cleanupWordsString(str): - str = string.replace(str, ".", " ") - str = string.replace(str, "!", " ") - str = string.replace(str, "?", " ") - str = string.replace(str, ",", " ") - str = string.replace(str, "'", " ") - str = string.replace(str, '"', " ") - str = string.replace(str, ";", " ") - str = string.replace(str, "(", " ") - str = string.replace(str, ")", " ") - str = string.replace(str, "{", " ") - str = string.replace(str, "}", " ") - str = string.replace(str, "<", " ") - str = string.replace(str, ">", " ") - str = string.replace(str, "=", " ") - str = string.replace(str, "/", " ") - str = string.replace(str, "*", " ") - str = string.replace(str, ":", " ") - str = string.replace(str, "#", " ") - str = string.replace(str, "\\", " ") - str = string.replace(str, "\n", " ") - str = string.replace(str, "\r", " ") - str = string.replace(str, "\xc2", " ") - str = string.replace(str, "\xa0", " ") - return str - -def cleanupDescrString(str): - str = string.replace(str, "'", " ") - str = string.replace(str, "\n", " ") - str = string.replace(str, "\r", " ") - str = string.replace(str, "\xc2", " ") - str = string.replace(str, "\xa0", " ") - l = string.split(str) - str = string.join(str) - return str - -def splitIdentifier(str): - ret = [] - while str != "": - cur = string.lower(str[0]) - str = str[1:] - if ((cur < 'a') or (cur > 'z')): - continue - while (str != "") and (str[0] >= 'A') and (str[0] <= 'Z'): - cur = cur + string.lower(str[0]) - str = str[1:] - while (str != "") and (str[0] >= 'a') and (str[0] <= 'z'): - cur = cur + str[0] - str = str[1:] - while (str != "") and (str[0] >= '0') and (str[0] <= '9'): - str = str[1:] - ret.append(cur) - return ret - -def addWord(word, module, symbol, relevance): - global wordsDict - - if word == None or len(word) < 3: - return -1 - if module == None or symbol == None: - return -1 - if dropWords.has_key(word): - return 0 - if ord(word[0]) > 0x80: - return 0 - - if wordsDict.has_key(word): - d = wordsDict[word] - if d == None: - return 0 - if len(d) > 500: - wordsDict[word] = None - return 0 - try: - relevance = relevance + d[(module, symbol)] - except: - pass - else: - wordsDict[word] = {} - wordsDict[word][(module, symbol)] = relevance - return relevance - -def addString(str, module, symbol, relevance): - if str == None or len(str) < 3: - return -1 - ret = 0 - str = cleanupWordsString(str) - l = string.split(str) - for word in l: - if len(word) > 2: - ret = ret + addWord(word, module, symbol, 5) - - return ret - -def addWordHTML(word, resource, id, section, relevance): - global wordsDictHTML - - if word == None or len(word) < 3: - return -1 - if resource == None or section == None: - return -1 - if dropWords.has_key(word): - return 0 - if ord(word[0]) > 0x80: - return 0 - - section = cleanupDescrString(section) - - if wordsDictHTML.has_key(word): - d = wordsDictHTML[word] - if d == None: - print "skipped %s" % (word) - return 0 - try: - (r,i,s) = d[resource] - if i != None: - id = i - if s != None: - section = s - relevance = relevance + r - except: - pass - else: - wordsDictHTML[word] = {} - d = wordsDictHTML[word]; - d[resource] = (relevance, id, section) - return relevance - -def addStringHTML(str, resource, id, section, relevance): - if str == None or len(str) < 3: - return -1 - ret = 0 - str = cleanupWordsString(str) - l = string.split(str) - for word in l: - if len(word) > 2: - try: - r = addWordHTML(word, resource, id, section, relevance) - if r < 0: - print "addWordHTML failed: %s %s" % (word, resource) - ret = ret + r - except: - print "addWordHTML failed: %s %s %d" % (word, resource, relevance) - print sys.exc_type, sys.exc_value - - return ret - -def addWordArchive(word, id, relevance): - global wordsDictArchive - - if word == None or len(word) < 3: - return -1 - if id == None or id == -1: - return -1 - if dropWords.has_key(word): - return 0 - if ord(word[0]) > 0x80: - return 0 - - if wordsDictArchive.has_key(word): - d = wordsDictArchive[word] - if d == None: - print "skipped %s" % (word) - return 0 - try: - r = d[id] - relevance = relevance + r - except: - pass - else: - wordsDictArchive[word] = {} - d = wordsDictArchive[word]; - d[id] = relevance - return relevance - -def addStringArchive(str, id, relevance): - if str == None or len(str) < 3: - return -1 - ret = 0 - str = cleanupWordsString(str) - l = string.split(str) - for word in l: - i = len(word) - if i > 2: - try: - r = addWordArchive(word, id, relevance) - if r < 0: - print "addWordArchive failed: %s %s" % (word, id) - else: - ret = ret + r - except: - print "addWordArchive failed: %s %s %d" % (word, id, relevance) - print sys.exc_type, sys.exc_value - return ret - -######################################################################### -# # -# XML API description analysis # -# # -######################################################################### - -def loadAPI(filename): - doc = libxml2.parseFile(filename) - print "loaded %s" % (filename) - return doc - -def foundExport(file, symbol): - if file == None: - return 0 - if symbol == None: - return 0 - addFunction(symbol, file) - l = splitIdentifier(symbol) - for word in l: - addWord(word, file, symbol, 10) - return 1 - -def analyzeAPIFile(top): - count = 0 - name = top.prop("name") - cur = top.children - while cur != None: - if cur.type == 'text': - cur = cur.next - continue - if cur.name == "exports": - count = count + foundExport(name, cur.prop("symbol")) - else: - print "unexpected element %s in API doc " % (name) - cur = cur.next - return count - -def analyzeAPIFiles(top): - count = 0 - cur = top.children - - while cur != None: - if cur.type == 'text': - cur = cur.next - continue - if cur.name == "file": - count = count + analyzeAPIFile(cur) - else: - print "unexpected element %s in API doc " % (cur.name) - cur = cur.next - return count - -def analyzeAPIEnum(top): - file = top.prop("file") - if file == None: - return 0 - symbol = top.prop("name") - if symbol == None: - return 0 - - addEnum(symbol, file) - l = splitIdentifier(symbol) - for word in l: - addWord(word, file, symbol, 10) - - return 1 - -def analyzeAPIConst(top): - file = top.prop("file") - if file == None: - return 0 - symbol = top.prop("name") - if symbol == None: - return 0 - - addConst(symbol, file) - l = splitIdentifier(symbol) - for word in l: - addWord(word, file, symbol, 10) - - return 1 - -def analyzeAPIType(top): - file = top.prop("file") - if file == None: - return 0 - symbol = top.prop("name") - if symbol == None: - return 0 - - addType(symbol, file) - l = splitIdentifier(symbol) - for word in l: - addWord(word, file, symbol, 10) - return 1 - -def analyzeAPIFunctype(top): - file = top.prop("file") - if file == None: - return 0 - symbol = top.prop("name") - if symbol == None: - return 0 - - addFunctype(symbol, file) - l = splitIdentifier(symbol) - for word in l: - addWord(word, file, symbol, 10) - return 1 - -def analyzeAPIStruct(top): - file = top.prop("file") - if file == None: - return 0 - symbol = top.prop("name") - if symbol == None: - return 0 - - addStruct(symbol, file) - l = splitIdentifier(symbol) - for word in l: - addWord(word, file, symbol, 10) - - info = top.prop("info") - if info != None: - info = string.replace(info, "'", " ") - info = string.strip(info) - l = string.split(info) - for word in l: - if len(word) > 2: - addWord(word, file, symbol, 5) - return 1 - -def analyzeAPIMacro(top): - file = top.prop("file") - if file == None: - return 0 - symbol = top.prop("name") - if symbol == None: - return 0 - symbol = string.replace(symbol, "'", " ") - symbol = string.strip(symbol) - - info = None - cur = top.children - while cur != None: - if cur.type == 'text': - cur = cur.next - continue - if cur.name == "info": - info = cur.content - break - cur = cur.next - - l = splitIdentifier(symbol) - for word in l: - addWord(word, file, symbol, 10) - - if info == None: - addMacro(symbol, file) - print "Macro %s description has no " % (symbol) - return 0 - - info = string.replace(info, "'", " ") - info = string.strip(info) - addMacro(symbol, file, info) - l = string.split(info) - for word in l: - if len(word) > 2: - addWord(word, file, symbol, 5) - return 1 - -def analyzeAPIFunction(top): - file = top.prop("file") - if file == None: - return 0 - symbol = top.prop("name") - if symbol == None: - return 0 - - symbol = string.replace(symbol, "'", " ") - symbol = string.strip(symbol) - info = None - cur = top.children - while cur != None: - if cur.type == 'text': - cur = cur.next - continue - if cur.name == "info": - info = cur.content - elif cur.name == "return": - rinfo = cur.prop("info") - if rinfo != None: - rinfo = string.replace(rinfo, "'", " ") - rinfo = string.strip(rinfo) - addString(rinfo, file, symbol, 7) - elif cur.name == "arg": - ainfo = cur.prop("info") - if ainfo != None: - ainfo = string.replace(ainfo, "'", " ") - ainfo = string.strip(ainfo) - addString(ainfo, file, symbol, 5) - name = cur.prop("name") - if name != None: - name = string.replace(name, "'", " ") - name = string.strip(name) - addWord(name, file, symbol, 7) - cur = cur.next - if info == None: - print "Function %s description has no " % (symbol) - addFunction(symbol, file, "") - else: - info = string.replace(info, "'", " ") - info = string.strip(info) - addFunction(symbol, file, info) - addString(info, file, symbol, 5) - - l = splitIdentifier(symbol) - for word in l: - addWord(word, file, symbol, 10) - - return 1 - -def analyzeAPISymbols(top): - count = 0 - cur = top.children - - while cur != None: - if cur.type == 'text': - cur = cur.next - continue - if cur.name == "macro": - count = count + analyzeAPIMacro(cur) - elif cur.name == "function": - count = count + analyzeAPIFunction(cur) - elif cur.name == "const": - count = count + analyzeAPIConst(cur) - elif cur.name == "typedef": - count = count + analyzeAPIType(cur) - elif cur.name == "struct": - count = count + analyzeAPIStruct(cur) - elif cur.name == "enum": - count = count + analyzeAPIEnum(cur) - elif cur.name == "functype": - count = count + analyzeAPIFunctype(cur) - else: - print "unexpected element %s in API doc " % (cur.name) - cur = cur.next - return count - -def analyzeAPI(doc): - count = 0 - if doc == None: - return -1 - root = doc.getRootElement() - if root.name != "api": - print "Unexpected root name" - return -1 - cur = root.children - while cur != None: - if cur.type == 'text': - cur = cur.next - continue - if cur.name == "files": - pass -# count = count + analyzeAPIFiles(cur) - elif cur.name == "symbols": - count = count + analyzeAPISymbols(cur) - else: - print "unexpected element %s in API doc" % (cur.name) - cur = cur.next - return count - -######################################################################### -# # -# Web pages parsing and analysis # -# # -######################################################################### - -import glob - -def analyzeHTMLText(doc, resource, p, section, id): - words = 0 - try: - content = p.content - words = words + addStringHTML(content, resource, id, section, 5) - except: - return -1 - return words - -def analyzeHTMLPara(doc, resource, p, section, id): - words = 0 - try: - content = p.content - words = words + addStringHTML(content, resource, id, section, 5) - except: - return -1 - return words - -def analyzeHTMLPre(doc, resource, p, section, id): - words = 0 - try: - content = p.content - words = words + addStringHTML(content, resource, id, section, 5) - except: - return -1 - return words - -def analyzeHTML(doc, resource, p, section, id): - words = 0 - try: - content = p.content - words = words + addStringHTML(content, resource, id, section, 5) - except: - return -1 - return words - -def analyzeHTML(doc, resource): - para = 0; - ctxt = doc.xpathNewContext() - try: - res = ctxt.xpathEval("//head/title") - title = res[0].content - except: - title = "Page %s" % (resource) - addPage(resource, title) - try: - items = ctxt.xpathEval("//h1 | //h2 | //h3 | //text()") - section = title - id = "" - for item in items: - if item.name == 'h1' or item.name == 'h2' or item.name == 'h3': - section = item.content - if item.prop("id"): - id = item.prop("id") - elif item.prop("name"): - id = item.prop("name") - elif item.type == 'text': - analyzeHTMLText(doc, resource, item, section, id) - para = para + 1 - elif item.name == 'p': - analyzeHTMLPara(doc, resource, item, section, id) - para = para + 1 - elif item.name == 'pre': - analyzeHTMLPre(doc, resource, item, section, id) - para = para + 1 - else: - print "Page %s, unexpected %s element" % (resource, item.name) - except: - print "Page %s: problem analyzing" % (resource) - print sys.exc_type, sys.exc_value - - return para - -def analyzeHTMLPages(): - ret = 0 - HTMLfiles = glob.glob("*.html") + glob.glob("tutorial/*.html") - for html in HTMLfiles: - if html[0:3] == "API": - continue - if html == "xml.html": - continue - try: - doc = libxml2.parseFile(html) - except: - doc = libxml2.htmlParseFile(html, None) - try: - res = analyzeHTML(doc, html) - print "Parsed %s : %d paragraphs" % (html, res) - ret = ret + 1 - except: - print "could not parse %s" % (html) - return ret - -######################################################################### -# # -# Mail archives parsing and analysis # -# # -######################################################################### - -import time - -def getXMLDateArchive(t = None): - if t == None: - t = time.time() - T = time.gmtime(t) - month = time.strftime("%B", T) - year = T[0] - url = "http://mail.gnome.org/archives/xml/%d-%s/date.html" % (year, month) - return url - -def scanXMLMsgArchive(url, title, force = 0): - if url == None or title == None: - return 0 - - ID = checkXMLMsgArchive(url) - if force == 0 and ID != -1: - return 0 - - if ID == -1: - ID = addXMLMsgArchive(url, title) - if ID == -1: - return 0 - - try: - print "Loading %s" % (url) - doc = libxml2.htmlParseFile(url, None); - except: - doc = None - if doc == None: - print "Failed to parse %s" % (url) - return 0 - - addStringArchive(title, ID, 20) - ctxt = doc.xpathNewContext() - texts = ctxt.xpathEval("//pre//text()") - for text in texts: - addStringArchive(text.content, ID, 5) - - return 1 - -def scanXMLDateArchive(t = None, force = 0): - global wordsDictArchive - - wordsDictArchive = {} - - url = getXMLDateArchive(t) - print "loading %s" % (url) - try: - doc = libxml2.htmlParseFile(url, None); - except: - doc = None - if doc == None: - print "Failed to parse %s" % (url) - return -1 - ctxt = doc.xpathNewContext() - anchors = ctxt.xpathEval("//a[@href]") - links = 0 - newmsg = 0 - for anchor in anchors: - href = anchor.prop("href") - if href == None or href[0:3] != "msg": - continue - try: - links = links + 1 - - msg = libxml2.buildURI(href, url) - title = anchor.content - if title != None and title[0:4] == 'Re: ': - title = title[4:] - if title != None and title[0:6] == '[xml] ': - title = title[6:] - newmsg = newmsg + scanXMLMsgArchive(msg, title, force) - - except: - pass - - return newmsg - - -######################################################################### -# # -# Main code: open the DB, the API XML and analyze it # -# # -######################################################################### -def analyzeArchives(t = None, force = 0): - global wordsDictArchive - - ret = scanXMLDateArchive(t, force) - print "Indexed %d words in %d archive pages" % (len(wordsDictArchive), ret) - - i = 0 - skipped = 0 - for word in wordsDictArchive.keys(): - refs = wordsDictArchive[word] - if refs == None: - skipped = skipped + 1 - continue; - for id in refs.keys(): - relevance = refs[id] - updateWordArchive(word, id, relevance) - i = i + 1 - - print "Found %d associations in HTML pages" % (i) - -def analyzeHTMLTop(): - global wordsDictHTML - - ret = analyzeHTMLPages() - print "Indexed %d words in %d HTML pages" % (len(wordsDictHTML), ret) - - i = 0 - skipped = 0 - for word in wordsDictHTML.keys(): - refs = wordsDictHTML[word] - if refs == None: - skipped = skipped + 1 - continue; - for resource in refs.keys(): - (relevance, id, section) = refs[resource] - updateWordHTML(word, resource, section, id, relevance) - i = i + 1 - - print "Found %d associations in HTML pages" % (i) - -def analyzeAPITop(): - global wordsDict - global API - - try: - doc = loadAPI(API) - ret = analyzeAPI(doc) - print "Analyzed %d blocs" % (ret) - doc.freeDoc() - except: - print "Failed to parse and analyze %s" % (API) - print sys.exc_type, sys.exc_value - sys.exit(1) - - print "Indexed %d words" % (len(wordsDict)) - i = 0 - skipped = 0 - for word in wordsDict.keys(): - refs = wordsDict[word] - if refs == None: - skipped = skipped + 1 - continue; - for (module, symbol) in refs.keys(): - updateWord(word, symbol, refs[(module, symbol)]) - i = i + 1 - - print "Found %d associations, skipped %d words" % (i, skipped) - -def usage(): - print "Usage index.py [--force] [--archive] [--archive-year year] [--archive-month month] [--API] [--docs]" - sys.exit(1) - -def main(): - try: - openMySQL() - except: - print "Failed to open the database" - print sys.exc_type, sys.exc_value - sys.exit(1) - - args = sys.argv[1:] - force = 0 - if args: - i = 0 - while i < len(args): - if args[i] == '--force': - force = 1 - elif args[i] == '--archive': - analyzeArchives(None, force) - elif args[i] == '--archive-year': - i = i + 1; - year = args[i] - months = ["January" , "February", "March", "April", "May", - "June", "July", "August", "September", "October", - "November", "December"]; - for month in months: - try: - str = "%s-%s" % (year, month) - T = time.strptime(str, "%Y-%B") - t = time.mktime(T) + 3600 * 24 * 10; - analyzeArchives(t, force) - except: - print "Failed to index month archive:" - print sys.exc_type, sys.exc_value - elif args[i] == '--archive-month': - i = i + 1; - month = args[i] - try: - T = time.strptime(month, "%Y-%B") - t = time.mktime(T) + 3600 * 24 * 10; - analyzeArchives(t, force) - except: - print "Failed to index month archive:" - print sys.exc_type, sys.exc_value - elif args[i] == '--API': - analyzeAPITop() - elif args[i] == '--docs': - analyzeHTMLTop() - else: - usage() - i = i + 1 - else: - usage() - -if __name__ == "__main__": - main() diff --git a/src/tools/docbook/libxml2/doc/interface.html b/src/tools/docbook/libxml2/doc/interface.html deleted file mode 100644 index 88ec0d8aba..0000000000 --- a/src/tools/docbook/libxml2/doc/interface.html +++ /dev/null @@ -1,58 +0,0 @@ - - -The SAX interface
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    The SAX interface

    Developer Menu
    API Indexes
    Related links

    Sometimes the DOM tree output is just too large to fit -reasonablyintomemory. In that case (and if you don't expect to save back the -XMLdocumentloaded using libxml), it's better to use the SAX interface of -libxml.SAX isa callback-based interfaceto the parser. -Beforeparsing,the application layer registers a customized set of callbacks -whicharecalled by the library as it progresses through the XML input.

    To get more detailed step-by-step guidance on using the SAX -interfaceoflibxml, see the nicedocumentation.writtenby -JamesHenstridge.

    You can debug the SAX behaviour by using -thetestSAXprogram located in the gnome-xml module (it's -usuallynot shipped in thebinary packages of libxml, but you can find it in -the tarsourcedistribution). Here is the sequence of callbacks that would be -reportedbytestSAX when parsing the example XML document shown earlier:

    SAX.setDocumentLocator()
    -SAX.startDocument()
    -SAX.getEntity(amp)
    -SAX.startElement(EXAMPLE, prop1='gnome is great', prop2='&amp; linux too')
    -SAX.characters(   , 3)
    -SAX.startElement(head)
    -SAX.characters(    , 4)
    -SAX.startElement(title)
    -SAX.characters(Welcome to Gnome, 16)
    -SAX.endElement(title)
    -SAX.characters(   , 3)
    -SAX.endElement(head)
    -SAX.characters(   , 3)
    -SAX.startElement(chapter)
    -SAX.characters(    , 4)
    -SAX.startElement(title)
    -SAX.characters(The Linux adventure, 19)
    -SAX.endElement(title)
    -SAX.characters(    , 4)
    -SAX.startElement(p)
    -SAX.characters(bla bla bla ..., 15)
    -SAX.endElement(p)
    -SAX.characters(    , 4)
    -SAX.startElement(image, href='linus.gif')
    -SAX.endElement(image)
    -SAX.characters(    , 4)
    -SAX.startElement(p)
    -SAX.characters(..., 3)
    -SAX.endElement(p)
    -SAX.characters(   , 3)
    -SAX.endElement(chapter)
    -SAX.characters( , 1)
    -SAX.endElement(EXAMPLE)
    -SAX.endDocument()

    Most of the other interfaces of libxml2 are based on the -DOMtree-buildingfacility, so nearly everything up to the end of this -documentpresupposes theuse of the standard DOM tree build. Note that the DOM -treeitself is built bya set of registered default callbacks, without -internalspecificinterface.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/intro.html b/src/tools/docbook/libxml2/doc/intro.html deleted file mode 100644 index 1ae322f26f..0000000000 --- a/src/tools/docbook/libxml2/doc/intro.html +++ /dev/null @@ -1,29 +0,0 @@ - - -Introduction
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    Introduction

    Main Menu
    Related links

    This document describes libxml, the XMLC parser and toolkit developed for theGnomeproject. XML is a standardfor -buildingtag-basedstructured documents/data.

    Here are some key points about libxml:

    • Libxml2 exports Push (progressive) and Pull (blocking) - typeparserinterfaces for both XML and HTML.
    • -
    • Libxml2 can do DTD validation at parse time, using a - parseddocumentinstance, or with an arbitrary DTD.
    • -
    • Libxml2 includes complete XPath, XPointerand XIncludeimplementations.
    • -
    • It is written in plain C, making as few assumptions as - possible,andsticking closely to ANSI C/POSIX for easy embedding. - WorksonLinux/Unix/Windows, ported to a number of other platforms.
    • -
    • Basic support for HTTP and FTP client allowing applications - tofetchremote resources.
    • -
    • The design is modular, most of the extensions can be compiled out.
    • -
    • The internal document representation is as close as possible to the DOMinterfaces.
    • -
    • Libxml2 also has a SAX like - interface;theinterface is designed to be compatible with Expat.
    • -
    • This library is released under the MITLicense.See - the Copyright file in the distribution for the precisewording.
    • -

    Warning: unless you are forced to because your application links -withaGnome-1.X library requiring it, Do Not Use -libxml1,uselibxml2

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/library.html b/src/tools/docbook/libxml2/doc/library.html deleted file mode 100644 index afe4d774e4..0000000000 --- a/src/tools/docbook/libxml2/doc/library.html +++ /dev/null @@ -1,142 +0,0 @@ - - -The parser interfaces
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    The parser interfaces

    Developer Menu
    API Indexes
    Related links

    This section is directly intended to help programmers -gettingbootstrappedusing the XML tollkit from the C language. It is not -intended tobeextensive. I hope the automatically generated documents will -providethecompleteness required, but as a separate set of documents. The -interfacesofthe XML parser are by principle low level, Those interested in a -higherlevelAPI should look at DOM.

    The parser interfaces -forXMLareseparated from the HTMLparserinterfaces. Let's have a -look at how the XML parser can becalled:

    Invoking the parser : the pull method

    Usually, the first thing to do is to read an XML input. The -parseracceptsdocuments either from in-memory strings or from files. The -functionsaredefined in "parser.h":

    xmlDocPtr xmlParseMemory(char *buffer, int size);
    -

    Parse a null-terminated string containing the document.

    -
    -
    xmlDocPtr xmlParseFile(const char *filename);
    -

    Parse an XML document contained in a (possibly compressed)file.

    -
    -

    The parser returns a pointer to the document structure (or NULL in -caseoffailure).

    Invoking the parser: the push method

    In order for the application to keep the control when the document -isbeingfetched (which is common for GUI based programs) libxml2 provides -apushinterface, too, as of version 1.8.3. Here are the interfacefunctions:

    xmlParserCtxtPtr xmlCreatePushParserCtxt(xmlSAXHandlerPtr sax,
    -                                         void *user_data,
    -                                         const char *chunk,
    -                                         int size,
    -                                         const char *filename);
    -int              xmlParseChunk          (xmlParserCtxtPtr ctxt,
    -                                         const char *chunk,
    -                                         int size,
    -                                         int terminate);

    and here is a simple example showing how to use the interface:

                FILE *f;
    -
    -            f = fopen(filename, "r");
    -            if (f != NULL) {
    -                int res, size = 1024;
    -                char chars[1024];
    -                xmlParserCtxtPtr ctxt;
    -
    -                res = fread(chars, 1, 4, f);
    -                if (res > 0) {
    -                    ctxt = xmlCreatePushParserCtxt(NULL, NULL,
    -                                chars, res, filename);
    -                    while ((res = fread(chars, 1, size, f)) > 0) {
    -                        xmlParseChunk(ctxt, chars, res, 0);
    -                    }
    -                    xmlParseChunk(ctxt, chars, 0, 1);
    -                    doc = ctxt->myDoc;
    -                    xmlFreeParserCtxt(ctxt);
    -                }
    -            }

    The HTML parser embedded into libxml2 also has a push -interface;thefunctions are just prefixed by "html" rather than "xml".

    Invoking the parser: the SAX interface

    The tree-building interface makes the parser memory-hungry, -firstloadingthe document in memory and then building the tree itself. Reading -adocumentwithout building the tree is possible using the SAX interfaces -(seeSAX.h andJamesHenstridge'sdocumentation). -Note also that the push interface can belimited to SAX:just use the two first -arguments ofxmlCreatePushParserCtxt().

    Building a tree from scratch

    The other way to get an XML tree in memory is by building -it.Basicallythere is a set of functions dedicated to building new -elements.(These arealso described in <libxml/tree.h>.) For example, -here is apiece ofcode that produces the XML document used in the previous -examples:

        #include <libxml/tree.h>
    -    xmlDocPtr doc;
    -    xmlNodePtr tree, subtree;
    -
    -    doc = xmlNewDoc("1.0");
    -    doc->children = xmlNewDocNode(doc, NULL, "EXAMPLE", NULL);
    -    xmlSetProp(doc->children, "prop1", "gnome is great");
    -    xmlSetProp(doc->children, "prop2", "& linux too");
    -    tree = xmlNewChild(doc->children, NULL, "head", NULL);
    -    subtree = xmlNewChild(tree, NULL, "title", "Welcome to Gnome");
    -    tree = xmlNewChild(doc->children, NULL, "chapter", NULL);
    -    subtree = xmlNewChild(tree, NULL, "title", "The Linux adventure");
    -    subtree = xmlNewChild(tree, NULL, "p", "bla bla bla ...");
    -    subtree = xmlNewChild(tree, NULL, "image", NULL);
    -    xmlSetProp(subtree, "href", "linus.gif");

    Not really rocket science ...

    Traversing the tree

    Basically by including"tree.h"yourcode -has access to the internal structure of all the elementsof the tree.The names -should be somewhat simple -likeparent,children, -next,prev,properties, -etc... For example, stillwith the previousexample:

    doc->children->children->children

    points to the title element,

    doc->children->children->next->children->children

    points to the text node containing the chapter title -"TheLinuxadventure".

    NOTE: XML allows PIs and -commentstobepresent before the document root, so -doc->childrenmaypointto an element which is not the document -Root Element; afunctionxmlDocGetRootElement()was added for this -purpose.

    Modifying the tree

    Functions are provided for reading and writing the document content.Hereis -an excerpt from the tree API:

    xmlAttrPtr xmlSetProp(xmlNodePtr node, const xmlChar - *name,constxmlChar *value);
    -

    This sets (or changes) an attribute carried by an ELEMENT - node.Thevalue can be NULL.

    -
    -
    const xmlChar *xmlGetProp(xmlNodePtr node, - constxmlChar*name);
    -

    This function returns a pointer to new copy of thepropertycontent. - Note that the user must deallocate the result.

    -
    -

    Two functions are provided for reading and writing the text -associatedwithelements:

    xmlNodePtr xmlStringGetNodeList(xmlDocPtr doc, - constxmlChar*value);
    -

    This function takes an "external" string and converts it toonetext - node or possibly to a list of entity and text nodes.Allnon-predefined - entity references like &Gnome; will bestoredinternally as entity - nodes, hence the result of the function maynot bea single node.

    -
    -
    xmlChar *xmlNodeListGetString(xmlDocPtr doc, xmlNodePtr - list,intinLine);
    -

    This function is the inverseofxmlStringGetNodeList(). - It generates a newstringcontaining the content of the text and entity - nodes. Note theextraargument inLine. If this argument is set to 1, the - function willexpandentity references. For example, instead of - returning the&Gnome;XML encoding in the string, it will substitute - it with itsvalue (say,"GNU Network Object Model Environment").

    -
    -

    Saving a tree

    Basically 3 options are possible:

    void xmlDocDumpMemory(xmlDocPtr cur, - xmlChar**mem,int*size);
    -

    Returns a buffer into which the document has been saved.

    -
    -
    extern void xmlDocDump(FILE *f, xmlDocPtr doc);
    -

    Dumps a document to an open file descriptor.

    -
    -
    int xmlSaveFile(const char *filename, xmlDocPtr cur);
    -

    Saves the document to a file. In this case, - thecompressioninterface is triggered if it has been turned on.

    -
    -

    Compression

    The library transparently handles compression when -doingfile-basedaccesses. The level of compression on saves can be turned on -eithergloballyor individually for one file:

    int xmlGetDocCompressMode (xmlDocPtr doc);
    -

    Gets the document compression ratio (0-9).

    -
    -
    void xmlSetDocCompressMode (xmlDocPtr doc, int mode);
    -

    Sets the document compression ratio.

    -
    -
    int xmlGetCompressMode(void);
    -

    Gets the default compression ratio.

    -
    -
    void xmlSetCompressMode(int mode);
    -

    Sets the default compression ratio.

    -
    -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/libxml.gif b/src/tools/docbook/libxml2/doc/libxml.gif deleted file mode 100644 index e24adf8f6a..0000000000 Binary files a/src/tools/docbook/libxml2/doc/libxml.gif and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/libxml2-api.xml b/src/tools/docbook/libxml2/doc/libxml2-api.xml deleted file mode 100644 index 2dbf900eff..0000000000 --- a/src/tools/docbook/libxml2/doc/libxml2-api.xml +++ /dev/null @@ -1,18035 +0,0 @@ - - - - - old DocBook SGML parser - interface for a DocBook SGML non-verifying parser This code is DEPRECATED, and should not be used anymore. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - interface for an HTML 4.0 non-verifying parser - this module implements an HTML 4.0 non-verifying parser with API compatible with the XML parser ones. It should be able to parse "real world" HTML, even if severely broken from a specification point of view. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - specific APIs to process HTML tree, especially serialization - this module implements a few function needed to process tree in an HTML specific way. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - Old SAX version 1 handler, deprecated - DEPRECATED set of SAX version 1 interfaces used to build the DOM tree. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SAX2 parser interface used to build the DOM tree - those are the default SAX2 interfaces used by the library when building DOM tree. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Provide Canonical XML and Exclusive XML Canonicalization - the c14n modules provides a "Canonical XML" implementation - Aleksey Sanin <aleksey@aleksey.com> - - - - - - - - interfaces to the Catalog handling system - the catalog module implements the support for XML Catalogs and SGML catalogs - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Unicode character range checking - this module exports interfaces for the character range validation APIs This file is automatically generated from the cvs source definition files using the genChRanges.py Python script - William Brack <wbrack@mmm.com.hk> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Tree debugging APIs - Interfaces to a set of routines used for debugging the tree produced by the XML parser. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - string dictionnary - dictionary of reusable strings, just used to avoid allocation and freeing operations. - Daniel Veillard - - - - - - - - - - - - - - - interface for the encoding conversion functions - interface for the encoding conversion functions needed for XML basic encoding and iconv() support. Related specs are rfc2044 (UTF-8 and UTF-16) F. Yergeau Alis Technologies [ISO-10646] UTF-8 and UTF-16 in Annexes [ISO-8859-1] ISO Latin-1 characters codes. [UNICODE] The Unicode Consortium, "The Unicode Standard -- Worldwide Character Encoding -- Version 1.0", Addison- Wesley, Volume 1, 1991, Volume 2, 1992. UTF-8 is described in Unicode Technical Report #4. [US-ASCII] Coded Character Set--7-bit American Standard Code for Information Interchange, ANSI X3.4-1986. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - interface for the XML entities handling - this module provides some of the entity API needed for the parser and applications. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - interface for all global variables of the library - all the global variables and thread handling for those variables is handled by this module. The bottom of this file is automatically generated by build_glob.py based on the description file global.data - Gary Pennington <Gary.Pennington@uk.sun.com>, Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Chained hash tables - This module implements the hash table support used in various places in the library. - Bjorn Reese <bjorn.reese@systematic.dk> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - lists interfaces - this module implement the list support used in various place in the library. - Gary Pennington <Gary.Pennington@uk.sun.com> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - minimal FTP implementation - minimal FTP implementation allowing to fetch resources like external subset. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - minimal HTTP implementation - minimal HTTP implementation allowing to fetch resources like external subset. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - the core parser module - Interfaces, constants and types related to the XML parser - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - internals routines exported by the parser. - this module exports a number of internal parsing routines they are not really all intended for applications but can prove useful doing low level processing. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pattern expression handling - allows to compile and test pattern expressions for nodes either in a tree or based on a parser state. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - implementation of the Relax-NG validation - implementation of the Relax-NG validation - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - internal interfaces for XML Schemas - internal interfaces for the XML Schemas handling and schema validity checking The Schemas development is a Work In Progress. Some of those interfaces are not garanteed to be API or ABI stable ! - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - XML Schemastron implementation - interface to the XML Schematron validity checking. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - interfaces for thread handling - set of generic threading related routines should work with pthreads, Windows native or TLS threads - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - interfaces for tree manipulation - this module describes the structures found in an tree resulting from an XML or HTML parsing, as well as the API provided for various processing on that tree - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - library of generic URI related routines - library of generic URI related routines Implements RFC 2396 - Daniel Veillard - - - - - - - - - - - - - - - - - - - - The DTD validation - API for the DTD handling and the validity checking - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - implementation of XInclude - API to handle XInclude processing, implements the World Wide Web Consortium Last Call Working Draft 10 November 2003 - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - unfinished XLink detection module - unfinished XLink detection module - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - interface for the I/O interfaces used by the parser - interface for the I/O interfaces used by the parser - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - API to build regexp automata - the API to build regexp automata - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - error handling - the API used to report errors - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - macros for marking symbols as exportable/importable. - macros for marking symbols as exportable/importable. - Igor Zlatovic <igor@zlatkovic.com> - - - - - - - - - interface for the memory allocator - provides interfaces for the memory allocator, including debugging capabilities. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - dynamic module loading - basic API for dynamic module loading, used by libexslt added in 2.6.17 - Joel W. Reed - - - - - - - - - - - - the XMLReader implementation - API of the XML streaming API based on C# interfaces. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - regular expressions handling - basic API for libxml regular expressions handling used for XML Schemas and validation. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - the XML document serializer - API to save document or subtree of document - Daniel Veillard - - - - - - - - - - - - - - - - - - - - incomplete XML Schemas structure implementation - interface to the XML Schemas handling and schema validity checking, it is incomplete right now. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - implementation of XML Schema Datatypes - module providing the XML Schema Datatypes implementation both definition and validity checking - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - set of routines to process strings - type and interfaces needed for the internal string handling of the library, especially UTF8 processing. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Unicode character APIs - API for the Unicode character APIs This file is automatically generated from the UCS description files of the Unicode Character Database - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - compile-time version informations - compile-time version informations for the XML library - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text writing API for XML - text writing API for XML - Alfred Mickautsch <alfred@mickautsch.de> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - XML Path Language implementation - API for the XML Path Language implementation XML Path Language implementation XPath is a language for addressing parts of an XML document, designed to be used by both XSLT and XPointer - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - internal interfaces for XML Path Language implementation - internal interfaces for XML Path Language implementation used to build new modules on top of XPath like XPointer and XSLT - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - API to handle XML Pointers - API to handle XML Pointers Base implementation was made accordingly to W3C Candidate Recommendation 7 June 2000 - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Macro used to signal to GCC unused function parameters - - - Macro to cast a string to an xmlChar * when one know its safe. - - - default buffer size 4000. - - - Macro to try to cast the value on the top of the XPath stack to a boolean. - - - Macro to try to cast the value on the top of the XPath stack to a number. - - - Macro to try to cast the value on the top of the XPath stack to a string. - - - Macro to check that the number of args passed to an XPath function matches. - - - - Macro to return from the function if an XPath error was detected. - - - Macro to return 0 from the function if an XPath error was detected. - - - Macro to check that the value on top of the XPath stack is of a given type. - - - - Macro to check that the value on top of the XPath stack is of a given type. Return(0) in case of failure - - - - DEBUG_MEMORY replaces the allocator with a collect and debug shell to the libc allocator. DEBUG_MEMORY should only be activated when debugging libxml i.e. if libxml has been configured with --with-debug-mem too. #define DEBUG_MEMORY_FREED #define DEBUG_MEMORY_LOCATION - - - Whether the memory debugging is configured in - - - Macro. A comment in a HTML document is really implemented the same way as a comment in an XML document. - - - Macro. An entity reference in a HTML document is really implemented the same way as an entity reference in an XML document. - - - Macro. A processing instruction in a HTML document is really implemented the same way as a processing instruction in an XML document. - - - Macro. A preserved node in a HTML document is really implemented the same way as a CDATA section in an XML document. - - - Macro. A text node in a HTML document is really implemented the same way as a text node in an XML document. - - - The parser tries to always have that amount of input ready. One of the point is providing context when reporting errors. - - - Macro to check [0-9] - - - - Macro to check [a-zA-Z] - - - - Macro to check the following production in the XML spec: [85] BaseChar ::= ... long list see REC ... - - - - Macro to check the following production in the XML spec: [3] S ::= (#x20 | #x9 | #xD | #xA)+ - - - - Behaviour same as IS_BLANK - - - - Macro to check the following production in the XML spec: [2] Char ::= #x9 | #xA | #xD | [#x20...] any byte character in the accepted range - - - - Macro to check the following production in the XML spec: [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. - - - - Behaves like IS_CHAR on single-byte value - - - - Macro to check the following production in the XML spec: [87] CombiningChar ::= ... long list see REC ... - - - - Always false (all combining chars > 0xff) - - - - Macro to check the following production in the XML spec: [88] Digit ::= ... long list see REC ... - - - - Behaves like IS_DIGIT but with a single byte argument - - - - Macro to check the following production in the XML spec: [89] Extender ::= #x00B7 | #x02D0 | #x02D1 | #x0387 | #x0640 | #x0E46 | #x0EC6 | #x3005 | [#x3031-#x3035] | [#x309D-#x309E] | [#x30FC-#x30FE] - - - - Behaves like IS_EXTENDER but with a single-byte argument - - - - Macro to check the following production in the XML spec: [86] Ideographic ::= [#x4E00-#x9FA5] | #x3007 | [#x3021-#x3029] - - - - Macro to check the following production in the XML spec: [84] Letter ::= BaseChar | Ideographic - - - - Macro behaves like IS_LETTER, but only check base chars - - - - Macro to check the following production in the XML spec: [13] PubidChar ::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%] - - - - Same as IS_PUBIDCHAR but for single-byte value - - - - Whether the automata interfaces are compiled in - - - Whether the Canonicalization support is configured in - - - Whether the Catalog support is configured in - - - Whether Debugging module is configured in - - - Whether the runtime debugging is configured in - - - - - Whether the SGML Docbook support is configured in - - - the version string like "1.2.3" - - - Whether the formal expressions interfaces are compiled in - - - Whether the FTP support is configured in - - - Whether the HTML support is configured in - - - Whether the HTTP support is configured in - - - Whether iconv support is available - - - Whether ISO-8859-* support is made available in case iconv is not - - - Whether the deprecated APIs are compiled in for compatibility - - - Whether the module interfaces are compiled in - - - the string suffix used by dynamic modules (usually shared libraries) - - - Whether the serialization/saving support is configured in - - - Whether the xmlPattern node selection interface is configured in - - - Whether the push parsing interfaces are configured in - - - Whether the xmlReader parsing interface is configured in - - - Whether the regular expressions interfaces are compiled in - - - Whether the older SAX1 interface is configured in - - - Whether the Schemas validation interfaces are compiled in - - - Whether the Schematron validation interfaces are compiled in - - - Macro to check that the libxml version in use is compatible with the version the software has been compiled against - - - Whether the thread support is configured in - - - Whether the DOM like tree manipulation API support is configured in - - - Whether the Unicode related interfaces are compiled in - - - Whether the DTD validation support is configured in - - - the version number: 1.2.3 value is 1002003 - - - extra version information, used to show a CVS compilation - - - the version number string, 1.2.3 value is "1002003" - - - Whether the xmlWriter saving interface is configured in - - - Whether XInclude is configured in - - - Whether XPath is configured in - - - Whether XPointer is configured in - - - Skips to the next '>' char. - - - - Skips to the next '<' char. - - - - Skips the end of line chars. - - - - defined if the trio support should not be configured in - - - defined if the trio support need to be configured in - - - Macro defining "fallback" - - - Macro defining "href" - - - Macro defining "include" - - - Macro defining the Xinclude namespace: http://www.w3.org/2003/XInclude - - - Macro defining the draft Xinclude namespace: http://www.w3.org/2001/XInclude - - - Macro defining "parse" - - - Macro defining "encoding" - - - Macro defining "text" - - - Macro defining "xml" - - - Macro defining "xpointer" - - - - - - - - - - - Macro to do a casting from an object pointer to a function pointer without encountering a warning from gcc #define XML_CAST_FPTR(fptr) (*(void **)(&fptr)) This macro violated ISO C aliasing rules (gcc4 on s390 broke) so it is disabled now - - - - The namespace for the XML Catalogs elements. - - - The specific XML Catalog Processing Instuction name. - - - Bit in the loadsubset context field to tell to do complete the elements attributes lists with the ones defaulted from the DTDs. Use it to initialize xmlLoadExtDtdDefaultValue. - - - Special value for finishDtd field when embedded in an xmlParserCtxt - - - Special value for finishDtd field when embedded in an xmlParserCtxt - - - The default version of XML used: 1.0 - - - Bit in the loadsubset context field to tell to do ID/REFs lookups. Use it to initialize xmlLoadExtDtdDefaultValue. - - - Macro to extract the content pointer of a node. - - - Macro to extract the line number of an element node. - - - A namespace declaration node. - - - Identifiers can be longer, but this will be more costly at runtime. - - - Special constant found in SAX2 blocks initialized fields - - - Ignore validation non definition on attributes Obsolete, not used anymore. - - - Skip unknown attribute from validation Obsolete, not used anymore. - - - Apply strict validation rules on attributes Obsolete, not used anymore. - - - Used by wildcards. Validate if type found, don't worry if not found - - - Skip unknown attribute from validation - - - Used by wildcards. Apply strict validation rules - - - The attribute wildcard has been already builded. - - - Whether this attr. group contains attr. group references. - - - Marks the attr group as marked; used for circular checks. - - - The attr group was redefined. - - - The attribute wildcard has been already builded. - - - the attribute has a fixed value - - - allow elements in no namespace - - - this is set when the "type" and "ref" references have been resolved. - - - allow elements in no namespace - - - The attribute is optional. - - - Used by wildcards. The attribute is prohibited. - - - The attribute is required. - - - the schema has "extension" in the set of blockDefault. - - - the schema has "restriction" in the set of blockDefault. - - - the schema has "substitution" in the set of blockDefault. - - - the element is abstract - - - the "block" attribute is absent - - - disallowed substitutions are absent - - - disallowed substitutions: "restriction" - - - disallowed substitutions: "substituion" - - - a helper flag for the search of circular references. - - - the element has a default value - - - substitution group exclusions are absent - - - substitution group exclusions: "extension" - - - substitution group exclusions: "restriction" - - - the element has a fixed value - - - the element is global - - - this is set when the elem decl has been checked against all constraints - - - this is set when "type", "ref", "substitutionGroup" references have been resolved. - - - the element is nillable - - - allow elements in no namespace Obsolete, not used anymore. - - - the element is a reference to a type - - - the declaration is a substitution group head - - - the element is top level obsolete: use XML_SCHEMAS_ELEM_GLOBAL instead - - - collapse the types of the facet - - - preserve the type of the facet - - - replace the type of the facet - - - unknown facet handling - - - the schema has "extension" in the set of finalDefault. - - - the cshema has "list" in the set of finalDefault. - - - the schema has "restriction" in the set of finalDefault. - - - the schema has "union" in the set of finalDefault. - - - the schema is currently including an other schema with no target namespace. - - - Reflects attributeFormDefault == qualified in an XML schema document. - - - Reflects elementFormDefault == qualified in an XML schema document. - - - the simple/complexType is abstract. - - - the complexType did not specify 'block' so use the default of the <schema> item. - - - the complexType has a 'block' of "extension". - - - the complexType has a 'block' of "restriction". - - - Marks the item as a builtin primitive. - - - the simple or complex type has a derivation method of "extension". - - - the simple or complex type has a derivation method of "restriction". - - - indicates if the facets need a computed value - - - the simpleType has a final of "default". - - - the complexType has a final of "extension". - - - the simpleType has a final of "list". - - - the simpleType/complexType has a final of "restriction". - - - the simpleType has a final of "union". - - - First stage of fixup was done. - - - the type is global - - - has facets - - - indicates that the type is invalid - - - indicates that the type was typefixed - - - Marks the item as marked; used for circular checks. - - - the element content type is mixed - - - indicates if the facets (pattern) need a normalized value - - - the complexType owns an attribute wildcard, i.e. it can be freed by the complexType - - - The type was redefined. - - - the simpleType has a variety of "absent". TODO: Actually not necessary :-/, since if none of the variety flags occur then it's automatically absent. - - - the simpleType has a variety of "union". - - - the simpleType has a variety of "list". - - - the simpleType has a variety of "union". - - - a whitespace-facet value of "collapse" - - - a whitespace-facet value of "preserve" - - - a whitespace-facet value of "replace" - - - If the wildcard is complete. - - - Bit in the loadsubset context field to tell to not do ID/REFs registration. Used to initialize xmlLoadExtDtdDefaultValue in some special cases. - - - Both general and parameter entities need to be substituted. - - - If no entities need to be substituted. - - - Whether parameter entities need to be substituted. - - - Whether general entities need to be substituted. - - - This is the name for the special xml:id attribute - - - This is the namespace for the special xml: prefix predefined in the XML Namespace specification. - - - check namespaces at compilation - - - forbid variables in expression - - - Macro to raise an XPath error and return. - - - - Macro to raise an XPath error and return 0. - - - - - - Returns the default subelement for this element - - - - Checks whether an HTML element description may be a direct child of the specified element. Returns 1 if allowed; 0 otherwise. - - - - - Returns the attributes required for the specified element. - - - - Macro for compatibility naming layer with libxml1. Maps to "children." - - - Automatically generated by genChRanges.py - - - - Automatically generated by genChRanges.py - - - - Automatically generated by genChRanges.py - - - - Automatically generated by genChRanges.py - - - - Automatically generated by genChRanges.py - - - - Automatically generated by genChRanges.py - - - - Automatically generated by genChRanges.py - - - - Automatically generated by genChRanges.py - - - - Automatically generated by genChRanges.py - - - - Automatically generated by genChRanges.py - - - - Automatically generated by genChRanges.py - - - - Automatically generated by genChRanges.py - - - - Automatically generated by genChRanges.py - - - - Automatically generated by genChRanges.py - - - - Macro for compatibility naming layer with libxml1. Maps to "children". - - - this macro maps to xmlTextWriterWriteDTD - - - This macro maps to xmlTextWriterWritePI - - - Check if an XPath error was raised. Returns true if an error has been raised, false otherwise. - - - - Empties a node-set. - - - - Get the context node of an XPath context. Returns the context node. - - - - Get the document of an XPath context. Returns the context document. - - - - Get the error code of an XPath context. Returns the context error. - - - - Implement a functionality similar to the DOM NodeList.length. Returns the number of nodes in the node-set. - - - - Checks whether @ns is empty or not. Returns %TRUE if @ns is an empty node-set. - - - - Implements a functionality similar to the DOM NodeList.item(). Returns the xmlNodePtr at the given @index in @ns or NULL if @index is out of range (0 to length-1) - - - - - Pushes the boolean @val on the context stack. - - - - - Pushes an empty node-set on the context stack. - - - - Pushes an empty string on the stack. - - - - Pushes user data on the context stack. - - - - - Pushes false on the context stack. - - - - Pushes the node-set @ns on the context stack. - - - - - Pushes the double @val on the context stack. - - - - - Pushes the string @str on the context stack. - - - - - Pushes true on the context stack. - - - - Raises an XPATH_INVALID_ARITY error. - - - - Raises an error. - - - - - Raises an XPATH_INVALID_TYPE error. - - - - Checks if the current value on the XPath stack is an external object. Returns true if the current object on the stack is an external object. - - - - Check if the current value on the XPath stack is a node set or an XSLT value tree. Returns true if the current object on the stack is a node-set. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - A libxml automata description, It can be compiled into a regexp - - - - A state int the automata description, - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This is a basic byte in an UTF-8 encoded string. It's unsigned allowing to pinpoint case where char * are assigned to xmlChar * (possibly making serialization back impossible). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - A handle to a dynamically loaded module - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - A libxml progressive regular expression evaluation context - - - - A libxml regular expression, they can actually be far more complex thank the POSIX regex expressions. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Pointer to an xmlReader context. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - defined(LIBXML_HTML_ENABLED) - Take a block of UTF-8 chars in and try to convert it to an ASCII plus HTML entities block of chars out. - - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Take a block of UTF-8 chars in and try to convert it to an ISO Latin 1 block of chars out. - - - - - - - - defined(LIBXML_LEGACY_ENABLED) - Handle an attribute that has been read by the parser. The default handling is to convert the attribute into an DOM subtree and past it in a new xmlAttr element added to the element. DEPRECATED: use xmlSAX2Attribute() - - - - - - - defined(LIBXML_LEGACY_ENABLED) - An attribute definition has been parsed DEPRECATED: use xmlSAX2AttributeDecl() - - - - - - - - - - - An attribute definition has been parsed. - - - - - - - - - - - Handle an attribute that has been read by the parser. The default handling is to convert the attribute into an DOM subtree and past it in a new xmlAttr element added to the element. - - - - - - - defined(LIBXML_LEGACY_ENABLED) - called when a pcdata block has been parsed DEPRECATED: use xmlSAX2CDataBlock() - - - - - - - Called when a pcdata block has been parsed. - - - - - - - defined(LIBXML_LEGACY_ENABLED) - receiving some chars from the parser. DEPRECATED: use xmlSAX2Characters() - - - - - - - Receiving some chars from the parser. - - - - - - - defined(LIBXML_LEGACY_ENABLED) - Check that the current element namespace is the same as the one read upon parsing. DEPRECATED - - - - - - defined(LIBXML_LEGACY_ENABLED) - A comment has been parsed. DEPRECATED: use xmlSAX2Comment() - - - - - - A comment has been parsed. - - - - - - defined(LIBXML_DOCB_ENABLED) - Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. - - - - - - defined(LIBXML_DOCB_ENABLED) - Create a parser context for using the DocBook SGML parser in push mode To allow content encoding detection, @size should be >= 4 The value of @filename is used for fetching external entities and error/warning reports. - - - - - - - - - - defined(LIBXML_DOCB_ENABLED) - Initialize the default SAX handler - - - - defined(LIBXML_DOCB_ENABLED) - Take a block of UTF-8 chars in and try to convert it to an ASCII plus SGML entities block of chars out. - - - - - - - - - defined(LIBXML_DOCB_ENABLED) - Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed. - - - - - defined(LIBXML_DOCB_ENABLED) - Parse a Chunk of memory - - - - - - - - defined(LIBXML_DOCB_ENABLED) - parse an SGML in-memory document and build a tree. - - - - - - defined(LIBXML_DOCB_ENABLED) - parse an SGML document (and build a tree if using the standard SAX interface). - - - - - defined(LIBXML_DOCB_ENABLED) - parse a Docbook SGML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. - - - - - - defined(LIBXML_DOCB_ENABLED) - parse an SGML in-memory document and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. - - - - - - - - defined(LIBXML_DOCB_ENABLED) - parse an SGML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. - - - - - - - - defined(LIBXML_LEGACY_ENABLED) - An element definition has been parsed DEPRECATED: use xmlSAX2ElementDecl() - - - - - - - - An element definition has been parsed. - - - - - - - - defined(LIBXML_LEGACY_ENABLED) - called when the document end has been detected. DEPRECATED: use xmlSAX2EndDocument() - - - - - Called when the document end has been detected. - - - - - defined(LIBXML_LEGACY_ENABLED) - called when the end of an element has been detected. DEPRECATED: use xmlSAX2EndElement() - - - - - - SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element. - - - - - - - - Called when the end of an element has been detected. - - - - - - defined(LIBXML_LEGACY_ENABLED) - An entity definition has been parsed DEPRECATED: use xmlSAX2EntityDecl() - - - - - - - - - - An entity definition has been parsed. - - - - - - - - - - Display and format an error messages, callback. - - - - - - - defined(LIBXML_LEGACY_ENABLED) - Callback on external subset declaration. DEPRECATED: use xmlSAX2ExternalSubset() - - - - - - - - Callback on external subset declaration. - - - - - - - - Display and format fatal error messages, callback. Note: so far fatalError() SAX callbacks are not used, error() get all the callbacks for errors. - - - - - - - defined(LIBXML_FTP_ENABLED) - A callback for the xmlNanoFTPGet command. - - - - - - - defined(LIBXML_FTP_ENABLED) - A callback for the xmlNanoFTPList command. Note that only one of year and day:minute are specified. - - - - - - - - - - - - - - - - defined(LIBXML_LEGACY_ENABLED) - Provide the column number of the current parsing point. DEPRECATED: use xmlSAX2GetColumnNumber() - - - - - defined(LIBXML_LEGACY_ENABLED) - Get an entity by name DEPRECATED: use xmlSAX2GetEntity() - - - - - - Get an entity by name. - - - - - - defined(LIBXML_LEGACY_ENABLED) - Provide the line number of the current parsing point. DEPRECATED: use xmlSAX2GetLineNumber() - - - - - defined(LIBXML_LEGACY_ENABLED) - Get the current element namespace. DEPRECATED - - - - - defined(LIBXML_LEGACY_ENABLED) - Get a parameter entity by name DEPRECATED: use xmlSAX2GetParameterEntity() - - - - - - Get a parameter entity by name. - - - - - - defined(LIBXML_LEGACY_ENABLED) - Provides the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN" DEPRECATED: use xmlSAX2GetPublicId() - - - - - defined(LIBXML_LEGACY_ENABLED) - Provides the system ID, basically URL or filename e.g. http://www.sgmlsource.com/dtds/memo.dtd DEPRECATED: use xmlSAX2GetSystemId() - - - - - defined(LIBXML_LEGACY_ENABLED) - An old global namespace has been parsed. DEPRECATED - - - - - - - defined(LIBXML_LEGACY_ENABLED) - Does this document has an external subset DEPRECATED: use xmlSAX2HasExternalSubset() - - - - - Does this document has an external subset? - - - - - defined(LIBXML_LEGACY_ENABLED) - Does this document has an internal subset DEPRECATED: use xmlSAX2HasInternalSubset() - - - - - Does this document has an internal subset. - - - - - defined(LIBXML_HTML_ENABLED) - Checks whether an attribute is valid for an element Has full knowledge of Required and Deprecated attributes - - - - - - - defined(LIBXML_HTML_ENABLED) - The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if the element or one of it's children would autoclose the given tag. - - - - - - - defined(LIBXML_HTML_ENABLED) - Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. - - - - - - defined(LIBXML_HTML_ENABLED) - Create a parser context for an HTML in-memory document. - - - - - - defined(LIBXML_HTML_ENABLED) && defined(LIBXML_PUSH_ENABLED) - Create a parser context for using the HTML parser in push mode The value of @filename is used for fetching external entities and error/warning reports. - - - - - - - - - - defined(LIBXML_HTML_ENABLED) - parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context - - - - - - - - - defined(LIBXML_HTML_ENABLED) - parse an XML from a file descriptor and build a tree. This reuses the existing @ctxt parser context - - - - - - - - - defined(LIBXML_HTML_ENABLED) - parse an XML file from the filesystem or the network. This reuses the existing @ctxt parser context - - - - - - - - defined(LIBXML_HTML_ENABLED) - parse an HTML document from I/O functions and source and build a tree. This reuses the existing @ctxt parser context - - - - - - - - - - - defined(LIBXML_HTML_ENABLED) - parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context - - - - - - - - - - defined(LIBXML_HTML_ENABLED) - Reset a parser context - - - - - defined(LIBXML_HTML_ENABLED) - Applies the options to the parser context - - - - - - defined(LIBXML_HTML_ENABLED) - Initialize the default SAX handler - - - - defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump an HTML document. - - - - - - - - defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump an HTML document. Formating return/spaces are added. - - - - - - - defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump an HTML document to an open FILE. - - - - - - defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump an HTML document in memory and return the xmlChar * and it's size. It's up to the caller to free the memory. - - - - - - - defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump an HTML document in memory and return the xmlChar * and it's size. It's up to the caller to free the memory. - - - - - - - - defined(LIBXML_HTML_ENABLED) - Checks whether an HTML element may be a direct child of a parent element. Note - doesn't check for deprecated elements - - - - - - defined(LIBXML_HTML_ENABLED) - Checks whether an HTML element may be a direct child of a parent element. and if so whether it is valid or deprecated. - - - - - - defined(LIBXML_HTML_ENABLED) - Take a block of UTF-8 chars in and try to convert it to an ASCII plus HTML entities block of chars out. - - - - - - - - - defined(LIBXML_HTML_ENABLED) - Lookup the given entity in EntitiesTable TODO: the linear scan is really ugly, an hash table is really needed. - - - - - defined(LIBXML_HTML_ENABLED) - Lookup the given entity in EntitiesTable TODO: the linear scan is really ugly, an hash table is really needed. - - - - - defined(LIBXML_HTML_ENABLED) - Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed. - - - - - defined(LIBXML_HTML_ENABLED) - Encoding definition lookup in the Meta tags - - - - - defined(LIBXML_HTML_ENABLED) - Set and return the previous value for handling HTML omitted tags. - - - - - defined(LIBXML_HTML_ENABLED) - Initialize the htmlStartCloseIndex for fast lookup of closing tags names. This is not reentrant. Call xmlInitParser() once before processing in case of use in multithreaded programs. - - - - defined(LIBXML_HTML_ENABLED) - The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if a tag is autoclosed by one of it's child - - - - - - defined(LIBXML_HTML_ENABLED) - Determine if a given attribute is a boolean attribute. - - - - - defined(LIBXML_HTML_ENABLED) - Check if an attribute is of content type Script - - - - - defined(LIBXML_HTML_ENABLED) - Creates a new HTML document - - - - - - defined(LIBXML_HTML_ENABLED) - Creates a new HTML document without a DTD node if @URI and @ExternalID are NULL - - - - - - defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump an HTML node, recursive behaviour,children are printed too, and formatting returns are added. - - - - - - - defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump an HTML node, recursive behaviour,children are printed too, and formatting returns are added. - - - - - - - defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump an HTML node, recursive behaviour,children are printed too. TODO: if encoding == NULL try to save in the doc encoding - - - - - - - - - defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump an HTML node, recursive behaviour,children are printed too. - - - - - - - - - defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump an HTML node, recursive behaviour,children are printed too, and formatting returns/spaces are added. - - - - - - - - defined(LIBXML_HTML_ENABLED) - Checks whether the tree node is valid. Experimental (the author only uses the HTML enhancements in a SAX parser) - - - - - - defined(LIBXML_HTML_ENABLED) - parse Reference declarations [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' - - - - - defined(LIBXML_HTML_ENABLED) && defined(LIBXML_PUSH_ENABLED) - Parse a Chunk of memory - - - - - - - - defined(LIBXML_HTML_ENABLED) - parse an HTML in-memory document and build a tree. - - - - - - defined(LIBXML_HTML_ENABLED) - parse an HTML document (and build a tree if using the standard SAX interface). - - - - - defined(LIBXML_HTML_ENABLED) - parse an HTML element, this is highly recursive [39] element ::= EmptyElemTag | STag content ETag [41] Attribute ::= Name Eq AttValue - - - - - defined(LIBXML_HTML_ENABLED) - parse an HTML ENTITY references [68] EntityRef ::= '&' Name ';' - - - - - - defined(LIBXML_HTML_ENABLED) - parse an HTML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. - - - - - - defined(LIBXML_HTML_ENABLED) - parse an XML in-memory document and build a tree. - - - - - - - - defined(LIBXML_HTML_ENABLED) - parse an XML from a file descriptor and build a tree. - - - - - - - - defined(LIBXML_HTML_ENABLED) - parse an XML file from the filesystem or the network. - - - - - - - defined(LIBXML_HTML_ENABLED) - parse an HTML document from I/O functions and source and build a tree. - - - - - - - - - - defined(LIBXML_HTML_ENABLED) - parse an XML in-memory document and build a tree. - - - - - - - - - defined(LIBXML_HTML_ENABLED) - Parse an HTML in-memory document. If sax is not NULL, use the SAX callbacks to handle parse events. If sax is NULL, fallback to the default DOM behavior and return a tree. - - - - - - - - defined(LIBXML_HTML_ENABLED) - parse an HTML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. - - - - - - - - defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump an HTML document to a file. If @filename is "-" the stdout file is used. - - - - - - defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump an HTML document to a file using a given encoding and formatting returns/spaces are added. - - - - - - - defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump an HTML document to a file using a given encoding. - - - - - - - - defined(LIBXML_HTML_ENABLED) - Sets the current encoding in the Meta tags NOTE: this will not change the document content encoding, just the META flag associated. - - - - - - defined(LIBXML_HTML_ENABLED) - Lookup the HTML tag in the ElementTable - - - - - defined(LIBXML_LEGACY_ENABLED) - receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use characters DEPRECATED: use xmlSAX2IgnorableWhitespace() - - - - - - - Receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use characters. - - - - - - - Set or reset (if NULL) the default handler for generic errors to the builtin error function. - - - - - defined(LIBXML_LEGACY_ENABLED) && defined(LIBXML_SAX1_ENABLED) && defined(LIBXML_DOCB_ENABLED) - Initialize the default DocBook SAX version 1 handler DEPRECATED: use xmlSAX2InitDocbDefaultSAXHandler() for the new SAX2 blocks - - - - - defined(LIBXML_LEGACY_ENABLED) && defined(LIBXML_SAX1_ENABLED) && defined(LIBXML_HTML_ENABLED) - Initialize the default HTML SAX version 1 handler DEPRECATED: use xmlSAX2InitHtmlDefaultSAXHandler() for the new SAX2 blocks - - - - - defined(LIBXML_LEGACY_ENABLED) && defined(LIBXML_SAX1_ENABLED) - Initialize the default XML SAX version 1 handler DEPRECATED: use xmlSAX2InitDefaultSAXHandler() for the new SAX2 blocks - - - - - - Pops the top parser input from the input stack - - - - - Pushes a new parser input on top of the input stack - - - - - - defined(LIBXML_LEGACY_ENABLED) - Callback on internal subset declaration. DEPRECATED: use xmlSAX2InternalSubset() - - - - - - - - Callback on internal subset declaration. - - - - - - - - defined(LIBXML_LEGACY_ENABLED) - Is this document tagged standalone ? DEPRECATED: use xmlSAX2IsStandalone() - - - - - Is this document tagged standalone? - - - - - Take a block of ISO Latin 1 chars in and try to convert it to an UTF-8 block of chars out. - - - - - - - - Pops the top element name from the name stack - - - - - Pushes a new element name on top of the name stack - - - - - - defined(LIBXML_LEGACY_ENABLED) - A namespace has been parsed. DEPRECATED - - - - - - - Pops the top element node from the node stack - - - - - Pushes a new element node on top of the node stack - - - - - - defined(LIBXML_LEGACY_ENABLED) - What to do when a notation declaration has been parsed. DEPRECATED: use xmlSAX2NotationDecl() - - - - - - - - What to do when a notation declaration has been parsed. - - - - - - - - defined(LIBXML_LEGACY_ENABLED) - A processing instruction has been parsed. DEPRECATED: use xmlSAX2ProcessingInstruction() - - - - - - - A processing instruction has been parsed. - - - - - - - defined(LIBXML_LEGACY_ENABLED) - called when an entity reference is detected. DEPRECATED: use xmlSAX2Reference() - - - - - - Called when an entity reference is detected. - - - - - - defined(LIBXML_LEGACY_ENABLED) - The entity loader, to control the loading of external entities, the application can either: - override this resolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine DEPRECATED: use xmlSAX2ResolveEntity() - - - - - - - Callback: The entity loader, to control the loading of external entities, the application can either: - override this resolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine - - - - - - - defined(LIBXML_LEGACY_ENABLED) - Receive the document locator at startup, actually xmlDefaultSAXLocator Everything is available on the context, so this is useless in our case. DEPRECATED - - - - - - Receive the document locator at startup, actually xmlDefaultSAXLocator. Everything is available on the context, so this is useless in our case. - - - - - - defined(LIBXML_LEGACY_ENABLED) - Set the current element namespace. DEPRECATED - - - - - - defined(LIBXML_LEGACY_ENABLED) - called when the document start being processed. DEPRECATED: use xmlSAX2StartDocument() - - - - - Called when the document start being processed. - - - - - defined(LIBXML_LEGACY_ENABLED) - called when an opening tag has been processed. DEPRECATED: use xmlSAX2StartElement() - - - - - - - SAX2 callback when an element start has been detected by the parser. It provides the namespace informations for the element, as well as the new namespace declarations on the element. - - - - - - - - - - - - - Called when an opening tag has been processed. - - - - - - - defined(LIBXML_LEGACY_ENABLED) - What to do when an unparsed entity declaration is parsed DEPRECATED: use xmlSAX2UnparsedEntityDecl() - - - - - - - - - What to do when an unparsed entity declaration is parsed. - - - - - - - - - defined(LIBXML_XPATH_ENABLED) - Pops the top XPath object from the value stack - - - - - defined(LIBXML_XPATH_ENABLED) - Pushes a new XPath object on top of the value stack - - - - - - Display and format a warning messages, callback. - - - - - - - defined(LIBXML_XPTR_ENABLED) - This is the prototype for a extended link detection callback. - - - - - - - - - - - - - - - - - defined(LIBXML_XPTR_ENABLED) - This is the prototype for a extended link set detection callback. - - - - - - - - - - - - defined(LIBXML_XPTR_ENABLED) - Get the default xlink detection routine - - - - defined(LIBXML_XPTR_ENABLED) - Get the default xlink handler. - - - - defined(LIBXML_XPTR_ENABLED) - Check whether the given node carries the attributes needed to be a link element (or is one of the linking elements issued from the (X)HTML DtDs). This routine don't try to do full checking of the link validity but tries to detect and return the appropriate link type. - - - - - - defined(LIBXML_XPTR_ENABLED) - This is the prototype for the link detection routine. It calls the default link detection callbacks upon link detection. - - - - - - defined(LIBXML_XPTR_ENABLED) - Set the default xlink detection routine - - - - - defined(LIBXML_XPTR_ENABLED) - Set the default xlink handlers - - - - - defined(LIBXML_XPTR_ENABLED) - This is the prototype for a simple link detection callback. - - - - - - - - - defined(LIBXML_CATALOG_ENABLED) - Add an entry in the catalog, it may overwrite existing but different entries. - - - - - - - - defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump the given catalog to the given file. - - - - - - defined(LIBXML_CATALOG_ENABLED) - Remove an entry from the catalog - - - - - - defined(LIBXML_CATALOG_ENABLED) - Do a complete resolution lookup of an External Identifier - - - - - - - defined(LIBXML_CATALOG_ENABLED) - Try to lookup the catalog local reference associated to a public ID in that catalog - - - - - - defined(LIBXML_CATALOG_ENABLED) - Try to lookup the catalog resource for a system ID - - - - - - defined(LIBXML_CATALOG_ENABLED) - Do a complete resolution lookup of an URI - - - - - - Register a new attribute declaration Note that @tree becomes the ownership of the DTD - - - - - - - - - - - - - Add a new node to @parent, at the end of the child (or property) list merging adjacent TEXT nodes (in which case @cur is freed) If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed. - - - - - - Add a list of node at the end of the child list of the parent merging adjacent TEXT nodes (@cur may be freed) - - - - - - Register a new entity for this document. - - - - - - - - - - Register a new entity for this document DTD external subset. - - - - - - - - - - Register a new element declaration - - - - - - - - - Registers an alias @alias for an encoding named @name. Existing alias will be overwritten. - - - - - - Register a new id declaration - - - - - - - - Add a new node @elem as the next sibling of @cur If the new node was already inserted in a document it is first unlinked from its existing context. As a result of text merging @elem may be freed. If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed. - - - - - - Register a new notation declaration - - - - - - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - Add a new node @elem as the previous sibling of @cur merging adjacent TEXT nodes (@elem may be freed) If the new node was already inserted in a document it is first unlinked from its existing context. If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed. - - - - - - Register a new ref declaration - - - - - - - - Add a new element @elem to the list of siblings of @cur merging adjacent TEXT nodes (@elem may be freed) If the new element was already inserted in a document it is first unlinked from its existing context. - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Create a buffered parser output - - - - - Create a buffered parser input for progressive parsing - - - - - defined(LIBXML_OUTPUT_ENABLED) - Serialize text attribute values to an xml simple buffer - - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - Compile the automata into a Reg Exp ready for being executed. The automata should be free after this point. - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - Initial state lookup - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - Checks if an automata is determinist. - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - If @to is NULL, this creates first a new target state in the automata and then adds a an ALL transition from the @from state to the target state. That transition is an epsilon transition allowed only when all transitions from the @from node have been activated. - - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and whose number is between @min and @max - - - - - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and @token2 and whose number is between @min and @max - - - - - - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - If @to is NULL, this creates first a new target state in the automata and then adds an epsilon transition from the @from state to the target state which will increment the counter provided - - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - Create a new counter - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - If @to is NULL, this creates first a new target state in the automata and then adds an epsilon transition from the @from state to the target state which will be allowed only if the counter is within the right range. - - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - If @to is NULL, this creates first a new target state in the automata and then adds an epsilon transition from the @from state to the target state - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by any value except (@token,@token2) Note that if @token2 is not NULL, then (X, NULL) won't match to follow # the semantic of XSD ##other - - - - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and whose number is between @min and @max, moreover that transition can only be crossed once. - - - - - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and @token2 and whose number is between @min and @max, moreover that transition can only be crossed once. - - - - - - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - Create a new disconnected state in the automata - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by the value of @token - - - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by the value of @token - - - - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - Makes that state a final state - - - - - - defined(LIBXML_DEBUG_ENABLED) - Convenient way to turn bool into text - - - - - Add a string range to an XML buffer. if len == -1, the length of str is recomputed. - - - - - - - Add a string range to the beginning of an XML buffer. if len == -1, the length of @str is recomputed. - - - - - - - Append a zero terminated C string to an XML buffer. - - - - - - Append a zero terminated string to an XML buffer. - - - - - - Function to extract the content of a buffer - - - - - routine to create an XML buffer. - - - - routine to create an XML buffer. - - - - - routine to create an XML buffer from an immutable memory area. The area won't be modified nor copied, and is expected to be present until the end of the buffer lifetime. - - - - - - Dumps an XML buffer to a FILE *. - - - - - - empty a buffer. - - - - - Frees an XML buffer. It frees both the content and the structure which encapsulate it. - - - - - Grow the available space of an XML buffer. - - - - - - Function to get the length of a buffer - - - - - Resize a buffer to accommodate minimum size of @size. - - - - - - Sets the allocation scheme for this buffer - - - - - - Remove the beginning of an XML buffer. - - - - - - routine which manages and grows an output buffer. This one adds xmlChars at the end of the buffer. - - - - - - routine which manage and grows an output buffer. This one add C chars at the end of the array. - - - - - - routine which manage and grows an output buffer. This one writes a quoted or double quoted #xmlChar string, checking first if it holds quote or double-quotes internally - - - - - - Builds the QName @prefix:@ncname in @memory if there is enough space and prefix is not NULL nor empty, otherwise allocate a new string. If prefix is NULL or empty it returns ncname. - - - - - - - - Expresses the URI of the reference in terms relative to the base. Some examples of this operation include: base = "http://site1.com/docs/book1.html" URI input URI returned docs/pic1.gif pic1.gif docs/img/pic1.gif img/pic1.gif img/pic1.gif ../img/pic1.gif http://site1.com/docs/pic1.gif pic1.gif http://site2.com/docs/pic1.gif http://site2.com/docs/pic1.gif base = "docs/book1.html" URI input URI returned docs/pic1.gif pic1.gif docs/img/pic1.gif img/pic1.gif img/pic1.gif ../img/pic1.gif http://site1.com/docs/pic1.gif http://site1.com/docs/pic1.gif Note: if the URI reference is really wierd or complicated, it may be worthwhile to first convert it into a "nice" one by calling xmlBuildURI (using 'base') before calling this routine, since this routine (for reasonable efficiency) assumes URI has already been through some validation. - - - - - - Computes he final URI of the reference done by checking that the given URI is valid, and building the final URI using the base URI. This is processed according to section 5.2 of the RFC 2396 5.2. Resolving Relative References to Absolute Form - - - - - - This function provides the current index of the parser relative to the start of the current entity. This function is computed in bytes from the beginning starting at zero and finishing at the size in byte of the file if parsing a file. The function is of constant cost if the input is UTF-8 but can be costly if run on non-UTF-8 input. - - - - - defined(LIBXML_C14N_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dumps the canonized image of given XML document into memory. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n) - - - - - - - - - - defined(LIBXML_C14N_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dumps the canonized image of given XML document into the file. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n) - - - - - - - - - - - defined(LIBXML_C14N_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dumps the canonized image of given XML document into the provided buffer. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n) - - - - - - - - - - defined(LIBXML_C14N_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dumps the canonized image of given XML document into the provided buffer. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n) - - - - - - - - - - - defined(LIBXML_C14N_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - - - - - - - - Constructs a canonic path from the specified path. - - - - - defined(LIBXML_CATALOG_ENABLED) - Add an entry in the catalog, it may overwrite existing but different entries. If called before any other catalog routine, allows to override the default shared catalog put in place by xmlInitializeCatalog(); - - - - - - - defined(LIBXML_CATALOG_ENABLED) - Add the new entry to the catalog list - - - - - - defined(LIBXML_CATALOG_ENABLED) - Free up all the memory associated with catalogs - - - - defined(LIBXML_CATALOG_ENABLED) - Convert all the SGML catalog entries as XML ones - - - - defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump all the global catalog content to the given file. - - - - - defined(LIBXML_CATALOG_ENABLED) - Free up the memory associated to the catalog list - - - - - defined(LIBXML_CATALOG_ENABLED) - Used to get the user preference w.r.t. to what catalogs should be accepted - - - - defined(LIBXML_CATALOG_ENABLED) - Try to lookup the catalog reference associated to a public ID DEPRECATED, use xmlCatalogResolvePublic() - - - - - defined(LIBXML_CATALOG_ENABLED) - Try to lookup the catalog reference associated to a system ID DEPRECATED, use xmlCatalogResolveSystem() - - - - - defined(LIBXML_CATALOG_ENABLED) - Check is a catalog is empty - - - - - defined(LIBXML_CATALOG_ENABLED) - Do a complete resolution lookup of an External Identifier using a document's private catalog list - - - - - - - defined(LIBXML_CATALOG_ENABLED) - Do a complete resolution lookup of an URI using a document's private catalog list - - - - - - defined(LIBXML_CATALOG_ENABLED) - Remove an entry from the catalog - - - - - defined(LIBXML_CATALOG_ENABLED) - Do a complete resolution lookup of an External Identifier - - - - - - defined(LIBXML_CATALOG_ENABLED) - Try to lookup the catalog reference associated to a public ID - - - - - defined(LIBXML_CATALOG_ENABLED) - Try to lookup the catalog resource for a system ID - - - - - defined(LIBXML_CATALOG_ENABLED) - Do a complete resolution lookup of an URI - - - - - defined(LIBXML_CATALOG_ENABLED) - Used to set the debug level for catalog operation, 0 disable debugging, 1 enable it - - - - - defined(LIBXML_CATALOG_ENABLED) - Allows to set the preference between public and system for deletion in XML Catalog resolution. C.f. section 4.1.1 of the spec Values accepted are XML_CATA_PREFER_PUBLIC or XML_CATA_PREFER_SYSTEM - - - - - defined(LIBXML_CATALOG_ENABLED) - Used to set the user preference w.r.t. to what catalogs should be accepted - - - - - Generic front-end for encoding handler close function - - - - - Front-end for the encoding handler input function, but handle only the very first line, i.e. limit itself to 45 chars. - - - - - - - Generic front-end for the encoding handler input function - - - - - - - Generic front-end for the encoding handler output function a first call with @in == NULL has to be made firs to initiate the output in case of non-stateless encoding needing to initiate their state or the output (like the BOM in UTF16). In case of UTF8 sequence conversion errors for the given encoder, the content will be automatically remapped to a CharRef sequence. - - - - - - - Take a block of chars in the original encoding and try to convert it to an UTF-8 block of chars out. - - - - - - - - Take a block of UTF-8 chars in and try to convert it to another encoding. Note: a first call designed to produce heading info is called with in = NULL. If stateful this should also initialize the encoder state. - - - - - - - - Does a binary search of the range table to determine if char is valid - - - - - - a strdup for char's to xmlChar's - - - - - a strndup for char's to xmlChar's - - - - - - function checks to see if @path is a valid source (file, socket...) for XML. if stat is not available on the target machine, - - - - - Check an input in case it was created from an HTTP stream, in that case it will handle encoding and update of the base URL in case of redirection. It also checks for HTTP errors in which case the input is cleanly freed up and an appropriate error is raised in context - - - - - - Checks that the value conforms to the LanguageID production: NOTE: this is somewhat deprecated, those productions were removed from the XML Second edition. [33] LanguageID ::= Langcode ('-' Subcode)* [34] Langcode ::= ISO639Code | IanaCode | UserCode [35] ISO639Code ::= ([a-z] | [A-Z]) ([a-z] | [A-Z]) [36] IanaCode ::= ('i' | 'I') '-' ([a-z] | [A-Z])+ [37] UserCode ::= ('x' | 'X') '-' ([a-z] | [A-Z])+ [38] Subcode ::= ([a-z] | [A-Z])+ - - - - - Checks @utf for being valid UTF-8. @utf is assumed to be null-terminated. This function is not super-strict, as it will allow longer UTF-8 sequences than necessary. Note that Java is capable of producing these sequences if provoked. Also note, this routine checks for the 4-byte maximum size, but does not check for 0x10ffff maximum value. - - - - - check the compiled lib version against the include one. This can warn or immediately kill the application - - - - - Cleanup the memory allocated for the char encoding support, it unregisters all the encoding handlers and the aliases. - - - - Unregisters all aliases - - - - Additional cleanup for multi-threading - - - - clears the entire input callback table. this includes the compiled-in I/O. - - - - Free up all the memory allocated by the library for its own use. This should not be called by user level code. - - - - defined(LIBXML_OUTPUT_ENABLED) - clears the entire output callback table. this includes the compiled-in I/O callbacks. - - - - Cleanup function for the XML library. It tries to reclaim all parsing related global memory allocated for the library processing. It doesn't deallocate any document related memory. Calling this function should not prevent reusing the library but one should call xmlCleanupParser() only when the process has finished using the library or XML document built with it. - - - - defined(LIBXML_LEGACY_ENABLED) - Cleanup up the predefined entities table. Deprecated call - - - - xmlCleanupThreads() is used to to cleanup all the thread related data of the libxml2 library once processing has ended. - - - - -- Clear (release memory and reinitialize) node info sequence - - - - - Clear (release owned resources) and reinitialize a parser context - - - - - defined(LIBXML_CATALOG_ENABLED) - Convert all the SGML catalog entries as XML ones - - - - - defined(LIBXML_TREE_ENABLED) - Build a copy of an attribute table. - - - - - append the char value in the array - - - - - - - append the char value in the array - - - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - Do a copy of the document info. If recursive, the content tree will be copied too as well as DTD, namespaces and entities. - - - - - - Build a copy of an element content description. - - - - - - defined(LIBXML_TREE_ENABLED) - Do a copy of the dtd. - - - - - Build a copy of an element content description. Deprecated, use xmlCopyDocElementContent instead - - - - - defined(LIBXML_TREE_ENABLED) - Build a copy of an element table. - - - - - defined(LIBXML_TREE_ENABLED) - Build a copy of an entity table. - - - - - defined(LIBXML_TREE_ENABLED) - Copy an enumeration attribute node (recursive). - - - - - Save the original error to the new place. - - - - - - Do a copy of the namespace. - - - - - Do a copy of an namespace list. - - - - - Do a copy of the node. - - - - - - Do a recursive copy of the node list. Use xmlDocCopyNodeList() if possible to ensure string interning. - - - - - defined(LIBXML_TREE_ENABLED) - Build a copy of a notation table. - - - - - Do a copy of the attribute. - - - - - - Do a copy of an attribute list. - - - - - - Creates a parser context for an XML in-memory document. - - - - - create and initialize an empty entities hash table. This really doesn't make sense and should be deprecated - - - - Create a parser context for an external entity Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. - - - - - - - create and initialize an enumeration attribute node. - - - - - Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. - - - - - Create a parser context for using the XML parser with an existing I/O stream - - - - - - - - - - Create the internal subset of a document - - - - - - - - Create a parser context for an XML in-memory document. - - - - - - defined(LIBXML_PUSH_ENABLED) - Create a parser context for using the XML parser in push mode. If @buffer and @size are non-NULL, the data is used to detect the encoding. The remaining characters will be parsed so they don't need to be fed in again through xmlParseChunk. To allow content encoding detection, @size should be >= 4 The value of @filename is used for fetching external entities and error/warning reports. - - - - - - - - - Simply creates an empty xmlURI - - - - Create a parser context for a file or URL content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time and for file accesses - - - - - - Get the last parsing error registered. - - - - - parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context - - - - - - - - - parse an XML from a file descriptor and build a tree. This reuses the existing @ctxt parser context NOTE that the file descriptor will not be closed when the reader is closed or reset. - - - - - - - - - parse an XML file from the filesystem or the network. This reuses the existing @ctxt parser context - - - - - - - - parse an XML document from I/O functions and source and build a tree. This reuses the existing @ctxt parser context - - - - - - - - - - - parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context - - - - - - - - - - Reset a parser context - - - - - Cleanup the last global error registered. For parsing error this does not change the well-formedness result. - - - - - Reset a push parser context - - - - - - - - - Applies the options to the parser context - - - - - - The current char value, if using UTF-8 this may actually span multiple bytes in the input buffer. Implement the end of line normalization: 2.11 End-of-Line Handling Wherever an external parsed entity or the literal entity value of an internal parsed entity contains either the literal two-character sequence "#xD#xA" or a standalone literal #xD, an XML processor must pass to the application the single character #xA. This behavior can conveniently be produced by normalizing all line breaks to #xA on input, before parsing.) - - - - - - References of out-of scope ns-decls are remapped to point to @destDoc: 1) If @destParent is given, then nsDef entries on element-nodes are used 2) If *no* @destParent is given, then @destDoc->oldNs entries are used This is the case when you have an unliked node and just want to move it to the context of If @destParent is given, it ensures that the tree is namespace wellformed by creating additional ns-decls where needed. Note that, since prefixes of already existent ns-decls can be shadowed by this process, it could break QNames in attribute values or element content. WARNING: This function is in a experimental state. - - - - - - - - - - References of out-of scope ns-decls are remapped to point to @destDoc: 1) If @destParent is given, then nsDef entries on element-nodes are used 2) If *no* @destParent is given, then @destDoc->oldNs entries are used This is the case when you have an unliked node and just want to move it to the context of If @destParent is given, it ensures that the tree is namespace wellformed by creating additional ns-decls where needed. Note that, since prefixes of already existent ns-decls can be shadowed by this process, it could break QNames in attribute values or element content. TODO: 1) Support dicts Optimize string adoption for equal or none dicts. 2) XInclude WARNING: This function is in a experimental state and should only be currently only be used to test it. - - - - - - - - - - - - Frees the DOM-wrapper context. - - - - - Allocates and initializes a new DOM-wrapper context. - - - - Ensures that ns-references point to ns-decls hold on element-nodes. Ensures that the tree is namespace wellformed by creating additional ns-decls where needed. Note that, since prefixes of already existent ns-decls can be shadowed by this process, it could break QNames in attribute values or element content. WARNING: This function is in a experimental state. - - - - - - - Unlinks the given node from its owner. This will substitute ns-references to node->nsDef for ns-references to doc->oldNs, thus ensuring the removed branch to be autark wrt ns-references. WARNING: This function is in a experimental state. - - - - - - - - defined(LIBXML_DEBUG_ENABLED) - Check the document for potential content problems, and output the errors to @output - - - - - - defined(LIBXML_DEBUG_ENABLED) - Dumps debug information for the attribute - - - - - - - defined(LIBXML_DEBUG_ENABLED) - Dumps debug information for the attribute list - - - - - - - defined(LIBXML_DEBUG_ENABLED) - Dumps debug information for the DTD - - - - - - defined(LIBXML_DEBUG_ENABLED) - Dumps debug information for the document, it's recursive - - - - - - defined(LIBXML_DEBUG_ENABLED) - Dumps debug information cncerning the document, not recursive - - - - - - defined(LIBXML_DEBUG_ENABLED) - Dumps debug information for all the entities in use by the document - - - - - - defined(LIBXML_DEBUG_ENABLED) - Dumps debug information for the element node, it is recursive - - - - - - - defined(LIBXML_DEBUG_ENABLED) - Dumps debug information for the list of element node, it is recursive - - - - - - - defined(LIBXML_DEBUG_ENABLED) - Dumps debug information for the element node, it is not recursive - - - - - - - defined(LIBXML_DEBUG_ENABLED) - Dumps informations about the string, shorten it if necessary - - - - - - defined(LIBXML_LEGACY_ENABLED) - This function is deprecated, we now always process entities content through xmlStringDecodeEntities TODO: remove it in next major release. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';' - - - - - - - - - - Initialize the default SAX2 handler - - - - Unregisters an encoding alias @alias - - - - - Registers a callback for node destruction - - - - - - - - - - Guess the encoding of the entity using the first bytes of the entity content according to the non-normative appendix F of the XML-1.0 recommendation. - - - - - - Free the dictionary mutex. - - - - Create a new dictionary - - - - Create a new dictionary, inheriting strings from the read-only dictionnary @sub. On lookup, strings are first searched in the new dictionnary, then in @sub, and if not found are created in the new dictionnary. - - - - - Check if the @name exists in the dictionnary @dict. - - - - - - - Free the hash @dict and its contents. The userdata is deallocated with @f if provided. - - - - - Add the @name to the dictionnary @dict if not present. - - - - - - - check if a string is owned by the disctionary - - - - - - Add the QName @prefix:@name to the hash @dict if not present. - - - - - - - Increment the reference counter of a dictionary - - - - - Query the number of elements installed in the hash @dict. - - - - - Do a copy of the node to a given document. - - - - - - - Do a recursive copy of the node list. - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Dump an XML document to an open FILE. - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Dump an XML document in memory and return the #xmlChar * and it's size. It's up to the caller to free the memory with xmlFree(). Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called - - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Dump the current DOM tree into memory using the character encoding specified by the caller. Note it is up to the caller of this function to free the allocated memory with xmlFree(). Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called - - - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Dump an XML document in memory and return the #xmlChar * and it's size in bytes. It's up to the caller to free the memory with xmlFree(). The resulting byte array is zero terminated, though the last 0 is not included in the returned size. - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Dump the current DOM tree into memory using the character encoding specified by the caller. Note it is up to the caller of this function to free the allocated memory with xmlFree(). - - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Dump an XML document to an open FILE. - - - - - - - Get the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...). - - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) - Set the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...). - - - - - - defined(LIBXML_OUTPUT_ENABLED) - This will dump the content of the attribute declaration as an XML DTD definition - - - - - - defined(LIBXML_OUTPUT_ENABLED) - This will dump the content of the attribute table as an XML DTD definition - - - - - - defined(LIBXML_OUTPUT_ENABLED) - This will dump the content of the element declaration as an XML DTD definition - - - - - - defined(LIBXML_OUTPUT_ENABLED) - This will dump the content of the element table as an XML DTD definition - - - - - - defined(LIBXML_OUTPUT_ENABLED) - This will dump the content of the entity table as an XML DTD definition - - - - - - defined(LIBXML_OUTPUT_ENABLED) - This will dump the content of the entity table as an XML DTD definition - - - - - - defined(LIBXML_OUTPUT_ENABLED) - This will dump the content the notation declaration as an XML DTD definition - - - - - - defined(LIBXML_OUTPUT_ENABLED) - This will dump the content of the notation table as an XML DTD definition - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Dump an XML/HTML node, recursive behaviour, children are printed too. - - - - - - - defined(LIBXML_LEGACY_ENABLED) - TODO: remove xmlEncodeEntities, once we are not afraid of breaking binary compatibility People must migrate their code to xmlEncodeEntitiesReentrant ! This routine will issue a warning when encountered. - - - - - - Do a global encoding of a string, replacing the predefined entities and non ASCII values with their entities and CharRef counterparts. Contrary to xmlEncodeEntities, this routine is reentrant, and result must be deallocated. - - - - - - Do a global encoding of a string, replacing the predefined entities this routine is reentrant, and result must be deallocated. - - - - - - defined(LIBXML_LEGACY_ENABLED) - Callback function used when one needs to be able to track back the provenance of a chunk of nodes inherited from an entity replacement. - - - - - - - Handle a redefinition of attribute error - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Debugging facility provides the number of allocated nodes over lifetime - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Debugging facility provides the number of allocated nodes at a that point - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Serialize the expression as compiled to the buffer - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Evaluates the expression resulting from @exp consuming a sub expression @sub Based on algebraic derivation and sometimes direct Brzozowski derivation it usually tatkes less than linear time and can handle expressions generating infinite languages. - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Dereference the expression - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Free an expression context - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Find all the strings used in @exp and store them in @list - - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Find all the strings that appears at the start of the languages accepted by @exp and store them in @list. E.g. for (a, b) | c it will return the list [a, c] - - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Finds if the expression is nillable, i.e. if it accepts the empty sequqnce - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Indicate the maximum number of input a expression can accept - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Get the atom associated to this name from that context - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Creates a new context for manipulating expressions - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Get the atom associated to the choice @left | @right Note that @left and @right are consumed in the operation, to keep an handle on them use xmlExpRef() and use xmlExpFree() to release them, this is true even in case of failure (unless ctxt == NULL). - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Get the atom associated to the range (@subset){@min, @max} Note that @subset is consumed in the operation, to keep an handle on it use xmlExpRef() and use xmlExpFree() to release it, this is true even in case of failure (unless ctxt == NULL). - - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Get the atom associated to the sequence @left , @right Note that @left and @right are consumed in the operation, to keep an handle on them use xmlExpRef() and use xmlExpFree() to release them, this is true even in case of failure (unless ctxt == NULL). - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Minimal parser for regexps, it understand the following constructs - string terminals - choice operator | - sequence operator , - subexpressions (...) - usual cardinality operators + * and ? - finite sequences { min, max } - infinite sequences { min, * } There is minimal checkings made especially no checking on strings values - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Increase the reference count of the expression - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Do one step of Brzozowski derivation of the expression @exp with respect to the input string - - - - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - Check whether @exp accepts all the languages accexpted by @sub the input being a subexpression. - - - - - - - External entity loaders types. - - - - - - - Close an I/O channel - - - - - input from FILE * - - - - - Wrapper around xmlFileOpen_real that try it with an unescaped version of @filename, if this fails fallback to @filename - - - - - Read @len bytes to @buffer from the I/O channel. - - - - - - - Search in the registered set the handler able to read/write that encoding. - - - - - Deallocate the memory used by an entities hash table. - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - Free an automata - - - - - defined(LIBXML_CATALOG_ENABLED) - Free the memory allocated to a Catalog - - - - - Free up all the structures used by a document, tree included. - - - - - Free an element content structure. The whole subtree is removed. - - - - - - Free a DTD structure. - - - - - Free an element content structure. The whole subtree is removed. Deprecated, use xmlFreeDocElementContent instead - - - - - Deallocate the memory used by an element hash table. - - - - - Deallocate the memory used by an entities hash table. - - - - - free an enumeration attribute node (recursive). - - - - - Signature for a free() implementation. - - - - - Deallocate the memory used by an ID hash table. - - - - - Free up an input stream. - - - - - xmlFreeMutex() is used to reclaim resources associated with a libxml2 token struct. - - - - - Free a node, this is a recursive behaviour, all the children are freed too. This doesn't unlink the child from the list, use xmlUnlinkNode() first. - - - - - Free a node and all its siblings, this is a recursive behaviour, all the children are freed too. - - - - - Deallocate the memory used by an entities hash table. - - - - - Free up the structures associated to a namespace - - - - - Free up all the structures associated to the chained namespaces. - - - - - Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed. - - - - - Free up the memory used by a buffered parser input - - - - - defined(LIBXML_PATTERN_ENABLED) - Free up the memory allocated by @comp - - - - - defined(LIBXML_PATTERN_ENABLED) - Free up the memory allocated by all the elements of @comp - - - - - Free one attribute, all the content is freed too - - - - - Free a property and all its siblings, all the children are freed too. - - - - - xmlRFreeMutex() is used to reclaim resources associated with a reentrant mutex. - - - - - Deallocate the memory used by an Ref hash table. - - - - - defined(LIBXML_PATTERN_ENABLED) - Free the stream context - - - - - defined(LIBXML_READER_ENABLED) - Deallocate all the resources associated to the reader - - - - - defined(LIBXML_WRITER_ENABLED) - Deallocate all the resources associated to the writer - - - - - Free up the xmlURI struct - - - - - defined(LIBXML_VALID_ENABLED) - Free a validation context structure. - - - - - Provides the memory access functions set currently in use The mallocAtomicFunc is specialized for atomic block allocations (i.e. of areas useful for garbage collected memory allocators - - - - - - - - - Override the default memory access functions with a new set This has to be called before any other libxml routines ! The mallocAtomicFunc is specialized for atomic block allocations (i.e. of areas useful for garbage collected memory allocators Should this be blocked if there was already some allocations done ? - - - - - - - - - Signature of the function to use when there is an error and no parsing or validity context available . - - - - - - - Types are XML_BUFFER_ALLOC_EXACT - use exact sizes, keeps memory usage down XML_BUFFER_ALLOC_DOUBLEIT - double buffer when extra needed, improves performance - - - - Search in the registered set the handler able to read/write that encoding. - - - - - The "canonical" name for XML encoding. C.f. http://www.w3.org/TR/REC-xml#charencoding Section 4.3.3 Character Encoding in Entities - - - - - get the default compression mode used, ZLIB based. - - - - get the compression ratio for a document, ZLIB based - - - - - Do an entity lookup in the document entity hash table and - - - - - - Search the DTD for the description of this attribute on this element. - - - - - - - Search the DTD for the description of this element - - - - - - Do an entity lookup in the DTD entity hash table and - - - - - - Search the DTD for the description of this notation - - - - - - Search the DTD for the description of this qualified attribute on this element. - - - - - - - - Search the DTD for the description of this element - - - - - - - Lookup an encoding name for the given alias. - - - - - Get the default external entity resolver function for the application - - - - defined(LIBXML_LEGACY_ENABLED) - Read the current value of one feature of this parser instance - - - - - - - defined(LIBXML_LEGACY_ENABLED) - Copy at most *@len feature names into the @result array - - - - - - xmlGetGlobalState() is called to retrieve the global state for a thread. - - - - Search the attribute declaring the given ID - - - - - - Get the internal subset of a document - - - - - Search the last child of a node. - - - - - Get the last global error registered. This is per thread if compiled with thread support. - - - - Get line number of @node. This requires activation of this option before invoking the parser by calling xmlLineNumbersDefault(1) - - - - - Search and get the value of an attribute associated to a node 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. This function is similar to xmlGetProp except it will accept only an attribute in no namespace. - - - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_DEBUG_ENABLED) - Build a structure based Path for the given node - - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) - Search all the namespace applying to a given element. - - - - - - Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified. 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. - - - - - - - Do an entity lookup in the internal and external subsets and - - - - - - Check whether this name is an predefined entity. - - - - - Search and get the value of an attribute associated to a node 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. NOTE: this function acts independently of namespaces associated to the attribute. Use xmlGetNsProp() or xmlGetNoNsProp() for namespace aware processing. - - - - - - Find the set of references for the supplied ID. - - - - - - xmlGetThreadId() find the current thread ID number - - - - Read the first UTF8 character from @utf - - - - - - defined(LIBXML_LEGACY_ENABLED) - Default handling of defined entities, when should we define a new input stream ? When do we just handle that as a set of chars ? OBSOLETE: to be removed at some point. - - - - - - Examines if the library has been compiled with a given feature. - - - - - Search for an attribute associated to a node This attribute has to be anchored in the namespace specified. 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. Note that a namespace of NULL indicates to use the default namespace. - - - - - - - Search an attribute associated to a node This function also looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. - - - - - - Add the @userdata to the hash @table. This can later be retrieved by using the @name. Duplicate names generate errors. - - - - - - - Add the @userdata to the hash @table. This can later be retrieved by using the (@name, @name2) tuple. Duplicate tuples generate errors. - - - - - - - - Add the @userdata to the hash @table. This can later be retrieved by using the tuple (@name, @name2, @name3). Duplicate entries generate errors. - - - - - - - - - Callback to copy data from a hash. - - - - - - Scan the hash @table and applied @f to each value. - - - - - - Create a new xmlHashTablePtr. - - - - - Create a new xmlHashTablePtr which will use @dict as the internal dictionary - - - - - - Callback to free data from a hash. - - - - - - Free the hash @table and its contents. The userdata is deallocated with @f if provided. - - - - - - Find the userdata specified by the @name. - - - - - - Find the userdata specified by the (@name, @name2) tuple. - - - - - - - Find the userdata specified by the (@name, @name2, @name3) tuple. - - - - - - - - Find the userdata specified by the QName @prefix:@name/@name. - - - - - - - Find the userdata specified by the QNames tuple - - - - - - - - - Find the userdata specified by the (@name, @name2, @name3) tuple. - - - - - - - - - - - Find the userdata specified by the @name and remove it from the hash @table. Existing userdata for this tuple will be removed and freed with @f. - - - - - - - Find the userdata specified by the (@name, @name2) tuple and remove it from the hash @table. Existing userdata for this tuple will be removed and freed with @f. - - - - - - - - Find the userdata specified by the (@name, @name2, @name3) tuple and remove it from the hash @table. Existing userdata for this tuple will be removed and freed with @f. - - - - - - - - - Scan the hash @table and applied @f to each value. - - - - - - - Scan the hash @table and applied @f to each value matching (@name, @name2, @name3) tuple. If one of the names is null, the comparison is considered to match. - - - - - - - - - - Scan the hash @table and applied @f to each value. - - - - - - - Scan the hash @table and applied @f to each value matching (@name, @name2, @name3) tuple. If one of the names is null, the comparison is considered to match. - - - - - - - - - - Callback when scanning data in a hash with the simple scanner. - - - - - - - Callback when scanning data in a hash with the full scanner. - - - - - - - - - Query the number of elements installed in the hash @table. - - - - - Add the @userdata to the hash @table. This can later be retrieved by using the @name. Existing entry for this @name will be removed and freed with @f if found. - - - - - - - - Add the @userdata to the hash @table. This can later be retrieved by using the (@name, @name2) tuple. Existing entry for this tuple will be removed and freed with @f if found. - - - - - - - - - Add the @userdata to the hash @table. This can later be retrieved by using the tuple (@name, @name2, @name3). Existing entry for this tuple will be removed and freed with @f if found. - - - - - - - - - - defined(LIBXML_FTP_ENABLED) - Close an FTP I/O channel - - - - - defined(LIBXML_FTP_ENABLED) - check if the URI matches an FTP one - - - - - defined(LIBXML_FTP_ENABLED) - open an FTP I/O channel - - - - - defined(LIBXML_FTP_ENABLED) - Read @len bytes to @buffer from the I/O channel. - - - - - - - defined(LIBXML_HTTP_ENABLED) - Close an HTTP I/O channel - - - - - defined(LIBXML_HTTP_ENABLED) - check if the URI matches an HTTP one - - - - - defined(LIBXML_HTTP_ENABLED) - open an HTTP I/O channel - - - - - defined(LIBXML_HTTP_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Open a temporary buffer to collect the document for a subsequent HTTP POST request. Non-static as is called from the output buffer creation routine. - - - - - - defined(LIBXML_HTTP_ENABLED) - Read @len bytes to @buffer from the I/O channel. - - - - - - - defined(LIBXML_VALID_ENABLED) - Load and parse a DTD - - - - - - - Initialize the char encoding support, it registers the default encoding supported. NOTE: while public, this function usually doesn't need to be called in normal processing. - - - - Additional initialisation for multi-threading - - - - Initialize the memory layer. - - - - -- Initialize (set to initial state) node info sequence - - - - - Initialization function for the XML parser. This is not reentrant. Call once before processing in case of use in multithreaded programs. - - - - Initialize a parser context - - - - - xmlInitThreads() is used to to initialize all the thread related data of the libxml2 library. - - - - defined(LIBXML_CATALOG_ENABLED) - Do the catalog initialization. this function is not thread safe, catalog initialization should preferably be done once at startup - - - - xmlInitializeGlobalState() initialize a global state with all the default values of the library. - - - - - defined(LIBXML_LEGACY_ENABLED) - Set up the predefined entities. Deprecated call - - - - Callback used in the I/O Input API to close the resource - - - - - Callback used in the I/O Input API to detect if the current handler can provide input fonctionnalities for this resource. - - - - - Callback used in the I/O Input API to open the resource - - - - - Callback used in the I/O Input API to read the resource - - - - - - - This function is DEPRECATED. Use xmlIsBaseChar_ch or xmlIsBaseCharQ instead - - - - - This function is DEPRECATED. Use xmlIsBlank_ch or xmlIsBlankQ instead - - - - - Checks whether this node is an empty or whitespace only (and possibly ignorable) text-node. - - - - - This function is DEPRECATED. Use xmlIsChar_ch or xmlIsCharQ instead - - - - - This function is DEPRECATED. Use xmlIsCombiningQ instead - - - - - This function is DEPRECATED. Use xmlIsDigit_ch or xmlIsDigitQ instead - - - - - This function is DEPRECATED. Use xmlIsExtender_ch or xmlIsExtenderQ instead - - - - - Determine whether an attribute is of type ID. In case we have DTD(s) then this is done if DTD loading has been requested. In the case of HTML documents parsed with the HTML parser, then ID detection is done systematically. - - - - - - - This function is DEPRECATED. Use xmlIsIdeographicQ instead - - - - - Check whether the character is allowed by the production [84] Letter ::= BaseChar | Ideographic - - - - - xmlIsMainThread() check whether the current thread is the main thread. - - - - Search in the DtDs whether an element accept Mixed content (or ANY) basically if it is supposed to accept text childs - - - - - - This function is DEPRECATED. Use xmlIsPubidChar_ch or xmlIsPubidCharQ instead - - - - - Determine whether an attribute is of type Ref. In case we have DTD(s) then this is simple, otherwise we use an heuristic: name Ref (upper or lowercase). - - - - - - - Try to find if the document correspond to an XHTML DTD - - - - - - Set and return the previous value for default blanks text nodes support. The 1.x version of the parser used an heuristic to try to detect ignorable white spaces. As a result the SAX callback was generating xmlSAX2IgnorableWhitespace() callbacks instead of characters() one, and when using the DOM output text nodes containing those blanks were not generated. The 2.x and later version will switch to the XML standard way and ignorableWhitespace() are only generated when running the parser in validating mode and when the current element doesn't allow CDATA or mixed content. This function is provided as a way to force the standard behavior on 1.X libs and to switch back to the old mode for compatibility when running 1.X client code on 2.X . Upgrade of 1.X code should be done by using xmlIsBlankNode() commodity function to detect the "empty" nodes generated. This value also affect autogeneration of indentation when saving code if blanks sections are kept, indentation is not generated. - - - - - Set and return the previous value for enabling line numbers in elements contents. This may break on old application and is turned off by default. - - - - - See Returns. - - - - - Insert data in the ordered list at the end for this value - - - - - - Remove the all data in the list - - - - - Move all the element from the old list in the new list - - - - - - Create a new list - - - - - - Callback function used to compare 2 data. - - - - - - Callback function used to free data from a list. - - - - - Deletes the list and its associated data - - - - - Duplicate the list - - - - - Is the list empty ? - - - - - Get the last element in the list - - - - - Get the first element in the list - - - - - Insert data in the ordered list at the beginning for this value - - - - - - include all the elements of the second list in the first one and clear the second list - - - - - - Removes the last element in the list - - - - - Removes the first element in the list - - - - - add the new data at the end of the list - - - - - - add the new data at the beginning of the list - - - - - - Remove the all instance associated to data in the list - - - - - - Remove the first instance associated to data in the list - - - - - - Remove the last instance associated to data in the list - - - - - - Reverse the order of the elements in the list - - - - - Search the list in reverse order for an existing value of @data - - - - - - Walk all the element of the list in reverse order and apply the walker function to it - - - - - - - Search the list for an existing value of @data - - - - - - Get the number of elements in the list - - - - - Sort all the elements in the list - - - - - Walk all the element of the first from first to last and apply the walker function to it - - - - - - - Callback function used when walking a list with xmlListWalk(). - - - - - - defined(LIBXML_CATALOG_ENABLED) - Load the catalog and build the associated data structures. This can be either an XML Catalog or an SGML Catalog It will recurse in SGML CATALOG entries. On the other hand XML Catalogs are not handled recursively. - - - - - defined(LIBXML_CATALOG_ENABLED) - Load the catalog and makes its definitions effective for the default external entity loader. It will recurse in SGML CATALOG entries. this function is not thread safe, catalog initialization should preferably be done once at startup - - - - - defined(LIBXML_CATALOG_ENABLED) - Load the catalogs and makes their definitions effective for the default external entity loader. this function is not thread safe, catalog initialization should preferably be done once at startup - - - - - Load an external entity, note that the use of this function for unparsed entities may generate problems - - - - - - - defined(LIBXML_CATALOG_ENABLED) - Load an SGML super catalog. It won't expand CATALOG or DELEGATE references. This is only needed for manipulating SGML Super Catalogs like adding and removing CATALOG or DELEGATE entries. - - - - - xmlLockLibrary() is used to take out a re-entrant lock on the libxml2 library. - - - - defined(LIBXML_DEBUG_ENABLED) - Count the children of @node. - - - - - defined(LIBXML_DEBUG_ENABLED) - Dump to @output the type and name of @node. - - - - - - a malloc() equivalent, with logging of the allocation info. - - - - - - - Signature for a malloc() implementation. - - - - - a malloc() equivalent, with logging of the allocation info. - - - - - - - Provides the number of memory areas currently allocated - - - - show in-extenso the memory blocks allocated - - - - - a free() equivalent, with error checking. - - - - - Provides the memory access functions set currently in use - - - - - - - - a malloc() equivalent, with logging of the allocation info. - - - - - a realloc() equivalent, with logging of the allocation info. - - - - - - Override the default memory access functions with a new set This has to be called before any other libxml routines ! Should this be blocked if there was already some allocations done ? - - - - - - - - show a show display of the memory allocated, and dump the @nr last allocated areas which were not freed - - - - - - a strdup() equivalent, with logging of the allocation info. - - - - - - - Provides the amount of memory currently allocated - - - - Dump in-extenso the memory blocks allocated to the file .memorylist - - - - a strdup() equivalent, with logging of the allocation info. - - - - - defined(LIBXML_MODULES_ENABLED) - The close operations unload the associated module and free the data associated to the module. - - - - - defined(LIBXML_MODULES_ENABLED) - The free operations free the data associated to the module but does not unload the associated shared library which may still be in use. - - - - - defined(LIBXML_MODULES_ENABLED) - Opens a module/shared library given its name or path TODO: options are not yet implemented. - - - - - - defined(LIBXML_MODULES_ENABLED) - Lookup for a symbol address in the given module - - - - - - - xmlMutexLock() is used to lock a libxml2 token. - - - - - xmlMutexUnlock() is used to unlock a libxml2 token. - - - - - defined(LIBXML_LEGACY_ENABLED) - parse an XML namespace name. TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. [NS 3] NCName ::= (Letter | '_') (NCNameChar)* [NS 4] NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender - - - - - defined(LIBXML_LEGACY_ENABLED) - parse a namespace prefix declaration TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. [NS 1] NSDef ::= PrefixDef Eq SystemLiteral [NS 2] PrefixDef ::= 'xmlns' (':' NCName)? - - - - - defined(LIBXML_LEGACY_ENABLED) - TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. parse an XML qualified name [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName - - - - - - defined(LIBXML_FTP_ENABLED) - Check if there is a response from the FTP server after a command. - - - - - defined(LIBXML_FTP_ENABLED) - Cleanup the FTP protocol layer. This cleanup proxy informations. - - - - defined(LIBXML_FTP_ENABLED) - Close the connection and both control and transport - - - - - defined(LIBXML_FTP_ENABLED) - Close the data connection from the server - - - - - defined(LIBXML_FTP_ENABLED) - Tries to open a control connection - - - - - defined(LIBXML_FTP_ENABLED) - Tries to open a control connection to the given server/port - - - - - - defined(LIBXML_FTP_ENABLED) - Tries to change the remote directory - - - - - - defined(LIBXML_FTP_ENABLED) - Tries to delete an item (file or directory) from server - - - - - - defined(LIBXML_FTP_ENABLED) - Frees the context after closing the connection. - - - - - defined(LIBXML_FTP_ENABLED) - Fetch the given file from the server. All data are passed back in the callbacks. The last callback has a size of 0 block. - - - - - - - - defined(LIBXML_FTP_ENABLED) - Try to open a data connection to the server. Currently only passive mode is supported. - - - - - defined(LIBXML_FTP_ENABLED) - Get the response from the FTP server after a command. - - - - - defined(LIBXML_FTP_ENABLED) - Initiate fetch of the given file from the server. - - - - - - defined(LIBXML_FTP_ENABLED) - Initialize the FTP protocol layer. Currently it just checks for proxy informations, and get the hostname - - - - defined(LIBXML_FTP_ENABLED) - Do a listing on the server. All files info are passed back in the callbacks. - - - - - - - - defined(LIBXML_FTP_ENABLED) - Allocate and initialize a new FTP context. - - - - - defined(LIBXML_FTP_ENABLED) - Start to fetch the given ftp:// resource - - - - - defined(LIBXML_FTP_ENABLED) - Setup the FTP proxy informations. This can also be done by using ftp_proxy ftp_proxy_user and ftp_proxy_password environment variables. - - - - - - - - - defined(LIBXML_FTP_ENABLED) - Send a QUIT command to the server - - - - - defined(LIBXML_FTP_ENABLED) - This function tries to read @len bytes from the existing FTP connection and saves them in @dest. This is a blocking call. - - - - - - - defined(LIBXML_FTP_ENABLED) - (Re)Initialize the FTP Proxy context by parsing the URL and finding the protocol host port it indicates. Should be like ftp://myproxy/ or ftp://myproxy:3128/ A NULL URL cleans up proxy informations. - - - - - defined(LIBXML_FTP_ENABLED) - Update an FTP context by parsing the URL and finding new path it indicates. If there is an error in the protocol, hostname, port or other information, the error is raised. It indicates a new connection has to be established. - - - - - - defined(LIBXML_HTTP_ENABLED) - Get the authentication header of an HTTP context - - - - - defined(LIBXML_HTTP_ENABLED) - Cleanup the HTTP protocol layer. - - - - defined(LIBXML_HTTP_ENABLED) - This function closes an HTTP context, it ends up the connection and free all data related to it. - - - - - defined(LIBXML_HTTP_ENABLED) - Provides the specified content length from the HTTP header. - - - - - defined(LIBXML_HTTP_ENABLED) - Provides the specified encoding if specified in the HTTP headers. - - - - - defined(LIBXML_HTTP_ENABLED) - This function try to fetch the indicated resource via HTTP GET and save it's content in the file. - - - - - - - defined(LIBXML_HTTP_ENABLED) - Initialize the HTTP protocol layer. Currently it just checks for proxy informations - - - - defined(LIBXML_HTTP_ENABLED) - This function try to open a connection to the indicated resource via HTTP using the given @method, adding the given extra headers and the input buffer for the request content. - - - - - - - - - - defined(LIBXML_HTTP_ENABLED) - This function try to open a connection to the indicated resource via HTTP using the given @method, adding the given extra headers and the input buffer for the request content. - - - - - - - - - - - defined(LIBXML_HTTP_ENABLED) - Provides the specified Mime-Type if specified in the HTTP headers. - - - - - defined(LIBXML_HTTP_ENABLED) - This function try to open a connection to the indicated resource via HTTP GET. - - - - - - defined(LIBXML_HTTP_ENABLED) - This function try to open a connection to the indicated resource via HTTP GET. - - - - - - - defined(LIBXML_HTTP_ENABLED) - This function tries to read @len bytes from the existing HTTP connection and saves them in @dest. This is a blocking call. - - - - - - - defined(LIBXML_HTTP_ENABLED) - Provides the specified redirection URL if available from the HTTP header. - - - - - defined(LIBXML_HTTP_ENABLED) - Get the latest HTTP return code received - - - - - defined(LIBXML_HTTP_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - This function saves the output of the HTTP transaction to a file It closes and free the context at the end - - - - - - defined(LIBXML_HTTP_ENABLED) - (Re)Initialize the HTTP Proxy context by parsing the URL and finding the protocol host port it indicates. Should be like http://myproxy/ or http://myproxy:3128/ A NULL URL cleans up proxy informations. - - - - - defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - Create a new automata - - - - Creation of a new node containing a CDATA block. - - - - - - - defined(LIBXML_CATALOG_ENABLED) - create a new Catalog. - - - - - Create and registers an xmlCharEncodingHandler. - - - - - - - Creation of a new character reference node. - - - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (NULL). If @ns is NULL, the newly created element inherits the namespace of @parent. If @content is non NULL, a child list containing the TEXTs and ENTITY_REFs node will be created. NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity references. XML special chars must be escaped first by using xmlEncodeEntitiesReentrant(), or xmlNewTextChild() should be used. - - - - - - - - Creation of a new node containing a comment. - - - - - Creates a new XML document - - - - - Creation of a new node containing a comment within a document. - - - - - - Allocate an element content structure for the document. - - - - - - - defined(LIBXML_TREE_ENABLED) - Creation of a new Fragment node. - - - - - Creation of a new node element within a document. @ns and @content are optional (NULL). NOTE: @content is supposed to be a piece of XML CDATA, so it allow entities references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewDocRawNode() if you don't need entities support. - - - - - - - - Creation of a new node element within a document. @ns and @content are optional (NULL). NOTE: @content is supposed to be a piece of XML CDATA, so it allow entities references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewDocRawNode() if you don't need entities support. - - - - - - - - Creation of a processing instruction element. - - - - - - - Create a new property carried by a document. - - - - - - - defined(LIBXML_TREE_ENABLED) - Creation of a new node element within a document. @ns and @content are optional (NULL). - - - - - - - - Creation of a new text node within a document. - - - - - - Creation of a new text node with an extra content length parameter. The text node pertain to a given document. - - - - - - - Creation of a new DTD for the external subset. To create an internal subset, use xmlCreateIntSubset(). - - - - - - - - Allocate an element content structure. Deprecated in favor of xmlNewDocElementContent - - - - - - Create a new input stream based on an xmlEntityPtr - - - - - - defined(LIBXML_LEGACY_ENABLED) - Creation of a Namespace, the old way using PI and without scoping DEPRECATED !!! - - - - - - - Create a new input stream structure encapsulating the @input into a stream suitable for the parser. - - - - - - - Create a new input stream based on a file or an URL. - - - - - - Create a new input stream structure - - - - - xmlNewMutex() is used to allocate a libxml2 token struct for use in synchronizing access to data. - - - - Creation of a new node element. @ns is optional (NULL). - - - - - - Creation of a new node element. @ns is optional (NULL). - - - - - - Creation of a new Namespace. This function will refuse to create a namespace with a similar prefix than an existing one present on this node. We use href==NULL in the case of an element creation where the namespace was not defined. - - - - - - - Create a new property tagged with a namespace and carried by a node. - - - - - - - - Create a new property tagged with a namespace and carried by a node. - - - - - - - - Creation of a processing instruction element. Use xmlDocNewPI preferably to get string interning - - - - - - Allocate and initialize a new parser context. - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - Create a new property carried by a node. - - - - - - - xmlRNewMutex() is used to allocate a reentrant mutex for use in synchronizing access to data. token_r is a re-entrant lock and thus useful for synchronizing access to data structures that may be manipulated in a recursive fashion. - - - - Creation of a new reference node. - - - - - - Create a new input stream based on a memory buffer. - - - - - - Creation of a new text node. - - - - - defined(LIBXML_TREE_ENABLED) - Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (NULL). If @ns is NULL, the newly created element inherits the namespace of @parent. If @content is non NULL, a child TEXT node will be created containing the string @content. NOTE: Use xmlNewChild() if @content will contain entities that need to be preserved. Use this function, xmlNewTextChild(), if you need to ensure that reserved XML chars that might appear in @content, such as the ampersand, greater-than or less-than signs, are automatically replaced by their XML escaped entity representations. - - - - - - - - Creation of a new text node with an extra parameter for the content's length - - - - - - defined(LIBXML_READER_ENABLED) - Create an xmlTextReader structure fed with @input - - - - - - defined(LIBXML_READER_ENABLED) - Create an xmlTextReader structure fed with the resource at @URI - - - - - defined(LIBXML_WRITER_ENABLED) - Create a new xmlNewTextWriter structure using an xmlOutputBufferPtr NOTE: the @out parameter will be deallocated when the writer is closed (if the call succeed.) - - - - - defined(LIBXML_WRITER_ENABLED) - Create a new xmlNewTextWriter structure with @*doc as output - - - - - - defined(LIBXML_WRITER_ENABLED) - Create a new xmlNewTextWriter structure with @uri as output - - - - - - defined(LIBXML_WRITER_ENABLED) - Create a new xmlNewTextWriter structure with @buf as output TODO: handle compression - - - - - - defined(LIBXML_WRITER_ENABLED) - Create a new xmlNewTextWriter structure with @ctxt as output NOTE: the @ctxt context will be freed with the resulting writer (if the call succeeds). TODO: handle compression - - - - - - defined(LIBXML_WRITER_ENABLED) - Create a new xmlNewTextWriter structure with @doc as output starting at @node - - - - - - - defined(LIBXML_VALID_ENABLED) - Allocate a validation context structure. - - - - Skip to the next char input char. - - - - - A specific entity loader disabling network accesses, though still allowing local catalog accesses for resolution. - - - - - - - Append the extra substring to the node content. - - - - - - Append the extra substring to the node content. - - - - - - - Read the value of a node @cur, this can be either the text carried directly by this node if it's a TEXT node or the aggregate string of the values carried by this node child's (TEXT and ENTITY_REF). Entity references are substituted. Fills up the buffer @buffer with this value - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Dump an XML node, recursive behaviour,children are printed too. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called - - - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Dump an XML node, recursive behaviour, children are printed too. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called - - - - - - - - - - Searches for the BASE URL. The code should work on both XML and HTML document even if base mechanisms are completely different. It returns the base as defined in RFC 2396 sections 5.1.1. Base URI within Document Content and 5.1.2. Base URI from the Encapsulating Entity However it does not return the document base (5.1.3), use xmlDocumentGetBase() for this - - - - - - Read the value of a node, this can be either the text carried directly by this node if it's a TEXT node or the aggregate string of the values carried by this node child's (TEXT and ENTITY_REF). Entity references are substituted. - - - - - Searches the language of a node, i.e. the values of the xml:lang attribute or the one carried by the nearest ancestor. - - - - - Searches the space preserving behaviour of a node, i.e. the values of the xml:space attribute or the one carried by the nearest ancestor. - - - - - Is this node a Text node ? - - - - - defined(LIBXML_TREE_ENABLED) - Builds the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs, contrary to xmlNodeListGetString() this function doesn't do any character encoding handling. - - - - - - - Build the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs - - - - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) - Set (or reset) the base URI of a node, i.e. the value of the xml:base attribute. - - - - - - Replace the content of a node. - - - - - - defined(LIBXML_TREE_ENABLED) - Replace the content of a node. - - - - - - - defined(LIBXML_TREE_ENABLED) - Set the language of a node, i.e. the values of the xml:lang attribute. - - - - - - defined(LIBXML_TREE_ENABLED) - Set (or reset) the name of a node. - - - - - - defined(LIBXML_TREE_ENABLED) - Set (or reset) the space preserving behaviour of a node, i.e. the value of the xml:space attribute. - - - - - - Applies the 5 normalization steps to a path string--that is, RFC 2396 Section 5.2, steps 6.c through 6.g. Normalization occurs directly on the string, no new allocation is done - - - - - This function is obsolete. Please see xmlURIFromPath in uri.c for a better solution. - - - - - defined(LIBXML_OUTPUT_ENABLED) - flushes and close the output I/O channel and free up all the associated resources - - - - - defined(LIBXML_OUTPUT_ENABLED) - Create a buffered output for the progressive saving to a xmlBuffer - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Create a buffered output for the progressive saving to a file descriptor - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Create a buffered output for the progressive saving to a FILE * buffered C I/O - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Create a buffered output for the progressive saving of a file If filename is "-' then we use stdout as the output. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. TODO: currently if compression is set, the library only support writing to a local file. - - - - - - - Registers a callback for URI output file handling - - - - - - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Create a buffered output for the progressive saving to an I/O handler - - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - flushes the output I/O channel - - - - - defined(LIBXML_OUTPUT_ENABLED) - Write the content of the array in the output I/O buffer This routine handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes. - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Write the content of the string in the output I/O buffer This routine escapes the caracters and then handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes. - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Write the content of the string in the output I/O buffer This routine handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes. - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Callback used in the I/O Output API to close the resource - - - - - defined(LIBXML_OUTPUT_ENABLED) - Callback used in the I/O Output API to detect if the current handler can provide output fonctionnalities for this resource. - - - - - defined(LIBXML_OUTPUT_ENABLED) - Callback used in the I/O Output API to open the resource - - - - - defined(LIBXML_OUTPUT_ENABLED) - Callback used in the I/O Output API to write to the resource - - - - - - - parse a value for an attribute Note: the parser won't do substitution of entities here, this will be handled later in xmlStringGetNodeList [10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'" 3.3.3 Attribute-Value Normalization: Before the value of an attribute is passed to the application or checked for validity, the XML processor must normalize it as follows: - a character reference is processed by appending the referenced character to the attribute value - an entity reference is processed by recursively processing the replacement text of the entity - a whitespace character (#x20, #xD, #xA, #x9) is processed by appending #x20 to the normalized value, except that only a single #x20 is appended for a "#xD#xA" sequence that is part of an external parsed entity or the literal entity value of an internal parsed entity - other characters are processed by appending them to the normalized value If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) characters by a single space (#x20) character. All attributes for which no declaration has been read should be treated by a non-validating parser as if declared CDATA. - - - - - defined(LIBXML_SAX1_ENABLED) - parse an attribute [41] Attribute ::= Name Eq AttValue [ WFC: No External Entity References ] Attribute values cannot contain direct or indirect entity references to external entities. [ WFC: No < in Attribute Values ] The replacement text of any entity referred to directly or indirectly in an attribute value (other than "&lt;") must not contain a <. [ VC: Attribute Value Type ] The attribute must have been declared; the value must be of the type declared for it. [25] Eq ::= S? '=' S? With namespace: [NS 11] Attribute ::= QName Eq AttValue Also the case QName == xmlns:??? is handled independently as a namespace definition. - - - - - - : parse the Attribute list def for an element [52] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>' [53] AttDef ::= S Name S AttType S DefaultDecl - - - - - parse the Attribute list def for an element [54] AttType ::= StringType | TokenizedType | EnumeratedType [55] StringType ::= 'CDATA' [56] TokenizedType ::= 'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' | 'ENTITIES' | 'NMTOKEN' | 'NMTOKENS' Validity constraints for attribute values syntax are checked in xmlValidateAttributeValue() [ VC: ID ] Values of type ID must match the Name production. A name must not appear more than once in an XML document as a value of this type; i.e., ID values must uniquely identify the elements which bear them. [ VC: One ID per Element Type ] No element type may have more than one ID attribute specified. [ VC: ID Attribute Default ] An ID attribute must have a declared default of #IMPLIED or #REQUIRED. [ VC: IDREF ] Values of type IDREF must match the Name production, and values of type IDREFS must match Names; each IDREF Name must match the value of an ID attribute on some element in the XML document; i.e. IDREF values must match the value of some ID attribute. [ VC: Entity Name ] Values of type ENTITY must match the Name production, values of type ENTITIES must match Names; each Entity Name must match the name of an unparsed entity declared in the DTD. [ VC: Name Token ] Values of type NMTOKEN must match the Nmtoken production; values of type NMTOKENS must match Nmtokens. - - - - - - defined(LIBXML_SAX1_ENABLED) - Parse a well-balanced chunk of an XML document called by the parser The allowed sequence for the Well Balanced Chunk is the one defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)* - - - - - - - - - - defined(LIBXML_SAX1_ENABLED) - Parse a well-balanced chunk of an XML document called by the parser The allowed sequence for the Well Balanced Chunk is the one defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)* - - - - - - - - - - - Parse escaped pure raw content. [18] CDSect ::= CDStart CData CDEnd [19] CDStart ::= '<![CDATA[' [20] Data ::= (Char* - (Char* ']]>' Char*)) [21] CDEnd ::= ']]>' - - - - - defined(LIBXML_CATALOG_ENABLED) - parse an XML file and build a tree. It's like xmlParseFile() except it bypass all catalog lookups. - - - - - parse a CharData section. if we are within a CDATA section ']]>' marks an end of section. The right angle bracket (>) may be represented using the string "&gt;", and must, for compatibility, be escaped using "&gt;" or a character reference when it appears in the string "]]>" in content, when that string is not marking the end of a CDATA section. [14] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*) - - - - - - Compare the string to the encoding schemes already known. Note that the comparison is case insensitive accordingly to the section [XML] 4.3.3 Character Encoding in Entities. - - - - - parse Reference declarations [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' [ WFC: Legal Character ] Characters referred to using character references must match the production for Char. - - - - - defined(LIBXML_PUSH_ENABLED) - Parse a Chunk of memory - - - - - - - - Skip an XML (SGML) comment <!-- .... --> The spec says that "For compatibility, the string "--" (double-hyphen) must not occur within comments. " [15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->' - - - - - Parse a content: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)* - - - - - Parse an external general entity within an existing parsing context An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content - - - - - - - - defined(LIBXML_VALID_ENABLED) - Load and parse an external subset. - - - - - - Parse an attribute default declaration [60] DefaultDecl ::= '#REQUIRED' | '#IMPLIED' | (('#FIXED' S)? AttValue) [ VC: Required Attribute ] if the default declaration is the keyword #REQUIRED, then the attribute must be specified for all elements of the type in the attribute-list declaration. [ VC: Attribute Default Legal ] The declared default value must meet the lexical constraints of the declared attribute type c.f. xmlValidateAttributeDecl() [ VC: Fixed Attribute Default ] if an attribute has a default value declared with the #FIXED keyword, instances of that attribute must match the default value. [ WFC: No < in Attribute Values ] handled in xmlParseAttValue() - - - - - - defined(LIBXML_SAX1_ENABLED) - parse an XML in-memory document and build a tree. - - - - - parse a DOCTYPE declaration [28] doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ('[' (markupdecl | PEReference | S)* ']' S?)? '>' [ VC: Root Element Type ] The Name in the document type declaration must match the element type of the root element. - - - - - parse an XML document (and build a tree if using the standard SAX interface). [1] document ::= prolog element Misc* [22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)? - - - - - parse an XML element, this is highly recursive [39] element ::= EmptyElemTag | STag content ETag [ WFC: Element Type Match ] The Name in an element's end-tag must match the element type in the start-tag. - - - - - parse the declaration for a Mixed Element content The leading '(' and spaces have been skipped in xmlParseElementContentDecl [47] children ::= (choice | seq) ('?' | '*' | '+')? [48] cp ::= (Name | choice | seq) ('?' | '*' | '+')? [49] choice ::= '(' S? cp ( S? '|' S? cp )* S? ')' [50] seq ::= '(' S? cp ( S? ',' S? cp )* S? ')' [ VC: Proper Group/PE Nesting ] applies to [49] and [50] TODO Parameter-entity replacement text must be properly nested with parenthesized groups. That is to say, if either of the opening or closing parentheses in a choice, seq, or Mixed construct is contained in the replacement text for a parameter entity, both must be contained in the same replacement text. For interoperability, if a parameter-entity reference appears in a choice, seq, or Mixed construct, its replacement text should not be empty, and neither the first nor last non-blank character of the replacement text should be a connector (| or ,). - - - - - - parse the declaration for an Element content either Mixed or Children, the cases EMPTY and ANY are handled directly in xmlParseElementDecl [46] contentspec ::= 'EMPTY' | 'ANY' | Mixed | children - - - - - - - parse an Element declaration. [45] elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>' [ VC: Unique Element Type Declaration ] No element type may be declared more than once - - - - - parse the declaration for a Mixed Element content The leading '(' and spaces have been skipped in xmlParseElementContentDecl [51] Mixed ::= '(' S? '#PCDATA' (S? '|' S? Name)* S? ')*' | '(' S? '#PCDATA' S? ')' [ VC: Proper Group/PE Nesting ] applies to [51] too (see [49]) [ VC: No Duplicate Types ] The same name must not appear more than once in a single mixed-content declaration. - - - - - - parse the XML encoding name [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')* - - - - - parse the XML encoding declaration [80] EncodingDecl ::= S 'encoding' Eq ('"' EncName '"' | "'" EncName "'") this setups the conversion filters. - - - - - defined(LIBXML_SAX1_ENABLED) - parse an end of tag [42] ETag ::= '</' Name S? '>' With namespace [NS 9] ETag ::= '</' QName S? '>' - - - - - defined(LIBXML_SAX1_ENABLED) - parse an XML external entity out of context and build a tree. [78] extParsedEnt ::= TextDecl? content This correspond to a "Well Balanced" chunk - - - - - parse <!ENTITY declarations [70] EntityDecl ::= GEDecl | PEDecl [71] GEDecl ::= '<!ENTITY' S Name S EntityDef S? '>' [72] PEDecl ::= '<!ENTITY' S '%' S Name S PEDef S? '>' [73] EntityDef ::= EntityValue | (ExternalID NDataDecl?) [74] PEDef ::= EntityValue | ExternalID [76] NDataDecl ::= S 'NDATA' S Name [ VC: Notation Declared ] The Name must match the declared name of a notation. - - - - - parse ENTITY references declarations [68] EntityRef ::= '&' Name ';' [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", the Name given in the entity reference must match that in an entity declaration, except that well-formed documents need not declare any of the following entities: amp, lt, gt, apos, quot. The declaration of a parameter entity must precede any reference to it. Similarly, the declaration of a general entity must precede any reference to it which appears in a default value in an attribute-list declaration. Note that if entities are declared in the external subset or in external parameter entities, a non-validating processor is not obligated to read and process their declarations; for such documents, the rule that an entity must be declared is a well-formedness constraint only if standalone='yes'. [ WFC: Parsed Entity ] An entity reference must not contain the name of an unparsed entity - - - - - parse a value for ENTITY declarations [9] EntityValue ::= '"' ([^%&"] | PEReference | Reference)* '"' | "'" ([^%&'] | PEReference | Reference)* "'" - - - - - - parse an Enumerated attribute type. [57] EnumeratedType ::= NotationType | Enumeration [58] NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')' - - - - - - parse an Enumeration attribute type. [59] Enumeration ::= '(' S? Nmtoken (S? '|' S? Nmtoken)* S? ')' [ VC: Enumeration ] Values of this type must match one of the Nmtoken tokens in the declaration - - - - - parse a general parsed entity An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content - - - - - defined(LIBXML_SAX1_ENABLED) - Parse an external general entity An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content - - - - - - - - - - - Parse an External ID or a Public ID NOTE: Productions [75] and [83] interact badly since [75] can generate 'PUBLIC' S PubidLiteral S SystemLiteral [75] ExternalID ::= 'SYSTEM' S SystemLiteral | 'PUBLIC' S PubidLiteral S SystemLiteral [83] PublicID ::= 'PUBLIC' S PubidLiteral - - - - - - - parse Markup declarations from an external subset [30] extSubset ::= textDecl? extSubsetDecl [31] extSubsetDecl ::= (markupdecl | conditionalSect | PEReference | S) * - - - - - - - defined(LIBXML_SAX1_ENABLED) - parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. - - - - - Parse a well-balanced chunk of an XML document within the context (DTD, namespaces, etc ...) of the given node. The allowed sequence for the data is a Well Balanced Chunk defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)* - - - - - - - - - parse Markup declarations [29] markupdecl ::= elementdecl | AttlistDecl | EntityDecl | NotationDecl | PI | Comment [ VC: Proper Declaration/PE Nesting ] Parameter-entity replacement text must be properly nested with markup declarations. That is to say, if either the first character or the last character of a markup declaration (markupdecl above) is contained in the replacement text for a parameter-entity reference, both must be contained in the same replacement text. [ WFC: PEs in Internal Subset ] In the internal DTD subset, parameter-entity references can occur only where markup declarations can occur, not within markup declarations. (This does not apply to references that occur in external parameter entities or to the external subset.) - - - - - defined(LIBXML_SAX1_ENABLED) - parse an XML in-memory block and build a tree. - - - - - - parse an XML Misc* optional field. [27] Misc ::= Comment | PI | S - - - - - parse an XML name. [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* [6] Names ::= Name (#x20 Name)* - - - - - defined(LIBXML_LEGACY_ENABLED) - xmlParseNamespace: parse specific PI '<?namespace ...' constructs. This is what the older xml-name Working Draft specified, a bunch of other stuff may still rely on it, so support is still here as if it was declared on the root of the Tree:-( TODO: remove from library To be removed at next drop of binary compatibility - - - - - parse an XML Nmtoken. [7] Nmtoken ::= (NameChar)+ [8] Nmtokens ::= Nmtoken (#x20 Nmtoken)* - - - - - parse a notation declaration [82] NotationDecl ::= '<!NOTATION' S Name S (ExternalID | PublicID) S? '>' Hence there is actually 3 choices: 'PUBLIC' S PubidLiteral 'PUBLIC' S PubidLiteral S SystemLiteral and 'SYSTEM' S SystemLiteral See the NOTE on xmlParseExternalID(). - - - - - parse an Notation attribute type. Note: the leading 'NOTATION' S part has already being parsed... [58] NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')' [ VC: Notation Attributes ] Values of this type must match one of the notation names included in the declaration; all notation names in the declaration must be declared. - - - - - parse PEReference declarations The entity content is handled directly by pushing it's content as a new input stream. [69] PEReference ::= '%' Name ';' [ WFC: No Recursion ] A parsed entity must not contain a recursive reference to itself, either directly or indirectly. [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", ... ... The declaration of a parameter entity must precede any reference to it... [ VC: Entity Declared ] In a document with an external subset or external parameter entities with "standalone='no'", ... ... The declaration of a parameter entity must precede any reference to it... [ WFC: In DTD ] Parameter-entity references may only appear in the DTD. NOTE: misleading but this is handled. - - - - - parse an XML Processing Instruction. [16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' The processing is transfered to SAX once parsed. - - - - - parse the name of a PI [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l')) - - - - - parse an XML public literal [12] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'" - - - - - defined(LIBXML_LEGACY_ENABLED) - Parse and return a string between quotes or doublequotes TODO: Deprecated, to be removed at next drop of binary compatibility - - - - - parse and handle entity references in content, depending on the SAX interface, this may end-up in a call to character() if this is a CharRef, a predefined entity, if there is no reference() callback. or if the parser was asked to switch to that mode. [67] Reference ::= EntityRef | CharRef - - - - - parse the XML standalone declaration [32] SDDecl ::= S 'standalone' Eq (("'" ('yes' | 'no') "'") | ('"' ('yes' | 'no')'"')) [ VC: Standalone Document Declaration ] TODO The standalone document declaration must have the value "no" if any external markup declarations contain declarations of: - attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or - entities (other than amp, lt, gt, apos, quot), if references to those entities appear in the document, or - attributes with values subject to normalization, where the attribute appears in the document with a value which will change as a result of normalization, or - element types with element content, if white space occurs directly within any instance of those types. - - - - - defined(LIBXML_SAX1_ENABLED) - parse a start of tag either for rule element or EmptyElement. In both case we don't parse the tag closing chars. [40] STag ::= '<' Name (S Attribute)* S? '>' [ WFC: Unique Att Spec ] No attribute name may appear more than once in the same start-tag or empty-element tag. [44] EmptyElemTag ::= '<' Name (S Attribute)* S? '/>' [ WFC: Unique Att Spec ] No attribute name may appear more than once in the same start-tag or empty-element tag. With namespace: [NS 8] STag ::= '<' QName (S Attribute)* S? '>' [NS 10] EmptyElement ::= '<' QName (S Attribute)* S? '/>' - - - - - parse an XML Literal [11] SystemLiteral ::= ('"' [^"]* '"') | ("'" [^']* "'") - - - - - parse an XML declaration header for external entities [77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>' Question: Seems that EncodingDecl is mandatory ? Is that a typo ? - - - - - Parse an URI URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ] - - - - - Parse an URI but allows to keep intact the original fragments. URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ] - - - - - - Parse an URI reference string and fills in the appropriate fields of the @uri structure URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ] - - - - - - parse the XML version. [24] VersionInfo ::= S 'version' Eq (' VersionNum ' | " VersionNum ") [25] Eq ::= S? '=' S? - - - - - parse the XML version value. [26] VersionNum ::= ([a-zA-Z0-9_.:] | '-')+ - - - - - parse an XML declaration header [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>' - - - - - Insert node info record into the sorted sequence - - - - - - Display and format an error messages, gives file, line, position and extra parameters. - - - - - - - Find the parser node info struct for a given node - - - - - - xmlParserFindNodeInfoIndex : Find the index that the info record for the given node is or should be at in a sorted sequence - - - - - - lookup the directory for that file - - - - - [69] PEReference ::= '%' Name ';' [ WFC: No Recursion ] A parsed entity must not contain a recursive reference to itself, either directly or indirectly. [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", ... ... The declaration of a parameter entity must precede any reference to it... [ VC: Entity Declared ] In a document with an external subset or external parameter entities with "standalone='no'", ... ... The declaration of a parameter entity must precede any reference to it... [ WFC: In DTD ] Parameter-entity references may only appear in the DTD. NOTE: misleading but this is handled. A PEReference may have been detected in the current input stream the handling is done accordingly to http://www.w3.org/TR/REC-xml#entproc i.e. - Included in literal in entity values - Included as Parameter Entity reference within DTDs - - - - - defined(LIBXML_LEGACY_ENABLED) - TODO: Remove, now deprecated ... the test is done directly in the content parsing routines. [67] Reference ::= EntityRef | CharRef [68] EntityRef ::= '&' Name ';' [ WFC: Entity Declared ] the Name given in the entity reference must match that in an entity declaration, except that well-formed documents need not declare any of the following entities: amp, lt, gt, apos, quot. [ WFC: Parsed Entity ] An entity reference must not contain the name of an unparsed entity [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' A PEReference may have been detected in the current input stream the handling is done accordingly to http://www.w3.org/TR/REC-xml#entproc - - - - - Create a buffered parser input for the progressive parsing for the input from a file descriptor - - - - - - Create a buffered parser input for the progressive parsing of a FILE * buffered C I/O - - - - - - Create a buffered parser input for the progressive parsing of a file If filename is "-' then we use stdin as the input. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. Do an encoding check if enc == XML_CHAR_ENCODING_NONE - - - - - - Registers a callback for URI input file handling - - - - - - - - - - - Create a buffered parser input for the progressive parsing for the input from an I/O handler - - - - - - - - Create a buffered parser input for the progressive parsing for the input from a memory area. - - - - - - - Create a buffered parser input for the progressive parsing for the input from an immutable memory area. This will not copy the memory area to the buffer, but the memory is expected to be available until the end of the parsing, this is useful for example when using mmap'ed file. - - - - - - - Grow up the content of the input buffer, the old data are preserved This routine handle the I18N transcoding to internal UTF-8 This routine is used when operating the parser in normal (pull) mode TODO: one should be able to remove one extra copy by copying directly onto in->buffer or in->raw - - - - - - Push the content of the arry in the input buffer This routine handle the I18N transcoding to internal UTF-8 This is used when operating the parser in progressive (push) mode. - - - - - - - Refresh the content of the input buffer, the old data are considered consumed This routine handle the I18N transcoding to internal UTF-8 - - - - - - Callback for freeing some parser input allocations. - - - - - This function increase the input for the parser. It tries to preserve pointers to the input buffer, and keep already read data - - - - - - This function refresh the input for the parser. It doesn't try to preserve pointers to the input buffer, and discard already read data - - - - - - This function removes used input for the parser. - - - - - Displays current context within the input content for error tracking - - - - - Displays the associated file and line informations for the current input - - - - - Display and format an validity error messages, gives file, line, position and extra parameters. - - - - - - - Display and format a validity warning messages, gives file, line, position and extra parameters. - - - - - - - Display and format a warning messages, gives file, line, position and extra parameters. - - - - - - - defined(LIBXML_PATTERN_ENABLED) - Check if the pattern must be looked at from the root. - - - - - defined(LIBXML_PATTERN_ENABLED) - Get a streaming context for that pattern Use xmlFreeStreamCtxt to free the context. - - - - - defined(LIBXML_PATTERN_ENABLED) - Test whether the node matches the pattern - - - - - - defined(LIBXML_PATTERN_ENABLED) - Check the maximum depth reachable by a pattern - - - - - defined(LIBXML_PATTERN_ENABLED) - Check the minimum depth reachable by a pattern, 0 mean the / or . are part of the set. - - - - - defined(LIBXML_PATTERN_ENABLED) - Check if the pattern is streamable i.e. xmlPatternGetStreamCtxt() should work. - - - - - defined(LIBXML_PATTERN_ENABLED) - Compile a pattern. - - - - - - - - Set and return the previous value for enabling pedantic warnings. - - - - - xmlPopInput: the current input pointed by ctxt->input came to an end pop it and return the next char. - - - - - Clear the top input callback from the input stack. this includes the compiled-in I/O. - - - - Prints the URI in the stream @stream. - - - - - - xmlPushInput: switch to a new input stream which is stacked on top of the previous one(s). - - - - - - xmlRMutexLock() is used to lock a libxml2 token_r. - - - - - xmlRMutexUnlock() is used to unlock a libxml2 token_r. - - - - - parse an XML in-memory document and build a tree. - - - - - - - - parse an XML from a file descriptor and build a tree. NOTE that the file descriptor will not be closed when the reader is closed or reset. - - - - - - - - parse an XML file from the filesystem or the network. - - - - - - - parse an XML document from I/O functions and source and build a tree. - - - - - - - - - - parse an XML in-memory document and build a tree. - - - - - - - - - defined(LIBXML_READER_ENABLED) - Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. - - - - - - - - defined(LIBXML_READER_ENABLED) - Create an xmltextReader for an XML from a file descriptor. The parsing flags @options are a combination of xmlParserOption. NOTE that the file descriptor will not be closed when the reader is closed or reset. - - - - - - - - defined(LIBXML_READER_ENABLED) - parse an XML file from the filesystem or the network. The parsing flags @options are a combination of xmlParserOption. - - - - - - - defined(LIBXML_READER_ENABLED) - Create an xmltextReader for an XML document from I/O functions and source. The parsing flags @options are a combination of xmlParserOption. - - - - - - - - - - defined(LIBXML_READER_ENABLED) - Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. - - - - - - - - - defined(LIBXML_READER_ENABLED) - Setup an xmltextReader to parse an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader. - - - - - - - - - defined(LIBXML_READER_ENABLED) - Setup an xmltextReader to parse an XML from a file descriptor. NOTE that the file descriptor will not be closed when the reader is closed or reset. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader. - - - - - - - - - defined(LIBXML_READER_ENABLED) - parse an XML file from the filesystem or the network. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader. - - - - - - - - defined(LIBXML_READER_ENABLED) - Setup an xmltextReader to parse an XML document from I/O functions and source. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader. - - - - - - - - - - - defined(LIBXML_READER_ENABLED) - Setup an xmltextReader to parse an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader. - - - - - - - - - - defined(LIBXML_READER_ENABLED) - Setup an xmltextReader to parse a preparsed XML document. This reuses the existing @reader xmlTextReader. - - - - - - defined(LIBXML_READER_ENABLED) - Create an xmltextReader for a preparsed document. - - - - - Signature for a realloc() implementation. - - - - - - a realloc() equivalent, with logging of the allocation info. - - - - - - - - defined(LIBXML_TREE_ENABLED) - This function checks that all the namespaces declared within the given tree are properly declared. This is needed for example after Copy or Cut and then paste operations. The subtree may still hold pointers to namespace declarations outside the subtree or invalid/masked. As much as possible the function try to reuse the existing namespaces found in the new environment. If not possible the new namespaces are redeclared on @tree at the top of the given subtree. - - - - - - defined(LIBXML_SAX1_ENABLED) - parse an XML in-memory document and build a tree. In the case the document is not Well Formed, a tree is built anyway - - - - - defined(LIBXML_SAX1_ENABLED) - parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. In the case the document is not Well Formed, a tree is built anyway - - - - - defined(LIBXML_SAX1_ENABLED) - parse an XML in-memory block and build a tree. In the case the document is not Well Formed, a tree is built anyway - - - - - - defined(LIBXML_REGEXP_ENABLED) - - - - - - - - - defined(LIBXML_REGEXP_ENABLED) - Extract error informations from the regexp execution, the parameter @string will be updated with the value pushed and not accepted, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values - - - - - - - - - - defined(LIBXML_REGEXP_ENABLED) - Extract informations from the regexp execution, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values - - - - - - - - - defined(LIBXML_REGEXP_ENABLED) - Push one input token in the execution context - - - - - - - defined(LIBXML_REGEXP_ENABLED) - Push one input token in the execution context - - - - - - - - defined(LIBXML_REGEXP_ENABLED) - Free the structures associated to a regular expression evaulation context. - - - - - defined(LIBXML_REGEXP_ENABLED) - Free a regexp - - - - - defined(LIBXML_REGEXP_ENABLED) - Build a context used for progressive evaluation of a regexp. - - - - - - - defined(LIBXML_REGEXP_ENABLED) - Parses a regular expression conforming to XML Schemas Part 2 Datatype Appendix F and builds an automata suitable for testing strings against that regular expression - - - - - defined(LIBXML_REGEXP_ENABLED) - Check if the regular expression generates the value - - - - - - defined(LIBXML_REGEXP_ENABLED) - Check if the regular expression is determinist - - - - - defined(LIBXML_REGEXP_ENABLED) - Print the content of the compiled regular expression - - - - - - Register the char encoding handler, surprising, isn't it ? - - - - - Registers the default compiled-in I/O handlers. - - - - defined(LIBXML_OUTPUT_ENABLED) - Registers the default compiled-in I/O handlers. - - - - defined(LIBXML_OUTPUT_ENABLED) && defined(LIBXML_HTTP_ENABLED) - By default, libxml submits HTTP output requests using the "PUT" method. Calling this method changes the HTTP output method to use the "POST" method instead. - - - - Register a new set of I/O callback for handling parser input. - - - - - - - - Registers a callback for node creation - - - - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Register a new set of I/O callback for handling output. - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Cleanup the default Schemas type library associated to RelaxNG - - - - defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump a RelaxNG structure back - - - - - - defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump the transformed RelaxNG tree. - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Deallocate a RelaxNG structure. - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Free the resources associated to the schema parser context - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Free the resources associated to the schema validation context - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Get the callback information used to handle errors for a validation context - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Get the error and warning callback informations - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Initilize the default type libraries. - - - - defined(LIBXML_SCHEMAS_ENABLED) - Create an XML RelaxNGs parser context for that document. Note: since the process of compiling a RelaxNG schemas modifies the document, the @doc parameter is duplicated internally. - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Create an XML RelaxNGs parse context for that memory buffer expected to contain an XML RelaxNGs file. - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Create an XML RelaxNGs parse context for that file/resource expected to contain an XML RelaxNGs file. - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Create an XML RelaxNGs validation context based on the given schema - - - - - defined(LIBXML_SCHEMAS_ENABLED) - parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances. - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Set the callback functions used to handle errors for a validation context - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Set the callback functions used to handle errors for a parsing context - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Set the error and warning callback informations - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Set the structured error callback - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Validate a document tree in memory. - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Validate a full subtree when xmlRelaxNGValidatePushElement() returned 0 and the content of the node has been expanded. - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Pop the element end from the RelaxNG validation stack. - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - check the CData parsed for validation in the current stack - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Push a new element start on the RelaxNG validation stack. - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Semi private function used to pass informations to a parser context which are a combination of xmlRelaxNGParserFlag . - - - - - - Remove the given attribute from the ID table maintained internally. - - - - - - Unlink and free one attribute, all the content is freed too Note this doesn't work for namespace definition attributes - - - - - Remove the given attribute from the Ref table maintained internally. - - - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) - Unlink the old node from its current context, prune the new one at the same place. If @cur was already inserted in a document it is first unlinked from its existing context. - - - - - - Cleanup the error. - - - - - Cleanup the last global error registered. For parsing error this does not change the well-formedness result. - - - - An attribute definition has been parsed - - - - - - - - - - - called when a pcdata block has been parsed - - - - - - - receiving some chars from the parser. - - - - - - - A xmlSAX2Comment has been parsed. - - - - - - An element definition has been parsed - - - - - - - - called when the document end has been detected. - - - - - defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_DOCB_ENABLED) - called when the end of an element has been detected. - - - - - - SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element. - - - - - - - - An entity definition has been parsed - - - - - - - - - - Callback on external subset declaration. - - - - - - - - Provide the column number of the current parsing point. - - - - - Get an entity by name - - - - - - Provide the line number of the current parsing point. - - - - - Get a parameter entity by name - - - - - - Provides the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN" - - - - - Provides the system ID, basically URL or filename e.g. http://www.sgmlsource.com/dtds/memo.dtd - - - - - Does this document has an external subset - - - - - Does this document has an internal subset - - - - - receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use xmlSAX2Characters - - - - - - - Initialize the default XML SAX2 handler - - - - - - defined(LIBXML_DOCB_ENABLED) - Initialize the default DocBook SAX2 handler - - - - - defined(LIBXML_HTML_ENABLED) - Initialize the default HTML SAX2 handler - - - - - Callback on internal subset declaration. - - - - - - - - Is this document tagged standalone ? - - - - - What to do when a notation declaration has been parsed. - - - - - - - - A processing instruction has been parsed. - - - - - - - called when an entity xmlSAX2Reference is detected. - - - - - - The entity loader, to control the loading of external entities, the application can either: - override this xmlSAX2ResolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine - - - - - - - Receive the document locator at startup, actually xmlDefaultSAXLocator Everything is available on the context, so this is useless in our case. - - - - - - called when the document start being processed. - - - - - defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_DOCB_ENABLED) - called when an opening tag has been processed. - - - - - - - SAX2 callback when an element start has been detected by the parser. It provides the namespace informations for the element, as well as the new namespace declarations on the element. - - - - - - - - - - - - - What to do when an unparsed entity declaration is parsed - - - - - - - - - defined(LIBXML_SAX1_ENABLED) - Set the default version of SAX used globally by the library. By default, during initialization the default is set to 2. Note that it is generally a better coding style to use xmlSAXVersion() to set up the version explicitly for a given parsing context. - - - - - defined(LIBXML_VALID_ENABLED) - Load and parse an external subset. - - - - - - - defined(LIBXML_SAX1_ENABLED) - parse an XML in-memory document and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. - - - - - - - defined(LIBXML_SAX1_ENABLED) - parse an XML external entity out of context and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. [78] extParsedEnt ::= TextDecl? content This correspond to a "Well Balanced" chunk - - - - - - defined(LIBXML_SAX1_ENABLED) - parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. - - - - - - - defined(LIBXML_SAX1_ENABLED) - parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. User data (void *) is stored within the parser context in the context's _private member, so it is available nearly everywhere in libxml - - - - - - - - defined(LIBXML_SAX1_ENABLED) - parse an XML in-memory block and use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. - - - - - - - - defined(LIBXML_SAX1_ENABLED) - parse an XML in-memory block and use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. User data (void *) is stored within the parser context in the context's _private member, so it is available nearly everywhere in libxml - - - - - - - - - defined(LIBXML_SAX1_ENABLED) - parse an XML file and call the given SAX handler routines. Automatic support for ZLIB/Compress compressed document is provided - - - - - - - defined(LIBXML_SAX1_ENABLED) - A better SAX parsing routine. parse an XML in-memory buffer and call the given SAX handler routines. - - - - - - - - Initialize the default XML SAX handler according to the version - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Close a document saving context, i.e. make sure that all bytes have been output and free the associated data. - - - - - defined(LIBXML_OUTPUT_ENABLED) - Save a full document to a saving context TODO: The function is not fully implemented yet as it does not return the byte count but 0 instead - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Dump an XML document to a file. Will use compression if compiled in and enabled. If @filename is "-" the stdout file is used. - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Dump an XML document, converting it to the given encoding - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Dump an XML document to an I/O buffer. Warning ! This call xmlOutputBufferClose() on buf which is not available after this call. - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Flush a document saving context, i.e. make sure that all bytes have been output. - - - - - defined(LIBXML_OUTPUT_ENABLED) - Dump an XML document to a file. Will use compression if compiled in and enabled. If @filename is "-" the stdout file is used. If @format is set then the document will be indented on output. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Dump an XML document to a file or an URL. - - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Dump an XML document to an I/O buffer. Warning ! This call xmlOutputBufferClose() on buf which is not available after this call. - - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Set a custom escaping function to be used for text in attribute content - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Set a custom escaping function to be used for text in element content - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Create a document saving context serializing to a buffer with the encoding and the options given - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Create a document saving context serializing to a file descriptor with the encoding and the options given. - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Create a document saving context serializing to a filename or possibly to an URL (but this is less reliable) with the encoding and the options given. - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Create a document saving context serializing to a file descriptor with the encoding and the options given - - - - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Save a subtree starting at the node parameter to a saving context TODO: The function is not fully implemented yet as it does not return the byte count but 0 instead - - - - - - Save the URI as an escaped string - - - - - defined(LIBXML_LEGACY_ENABLED) - Trickery: parse an XML name but without consuming the input flow Needed for rollback cases. Used only when parsing entities references. TODO: seems deprecated now, only used in the default part of xmlParserHandleReference [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* [6] Names ::= Name (S Name)* - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Checks and computes the values of facets. - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Cleanup the default XML Schemas type library - - - - defined(LIBXML_SCHEMAS_ENABLED) - Removes and normalize white spaces in the string - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Compare 2 values - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Compare 2 values - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Copies the precomputed value. This duplicates any string within. - - - - - defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Dump a Schema structure. - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Deallocate a Schema structure. - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Deallocate a Schema Facet structure. - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Free the resources associated to the schema parser context - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Deallocate a Schema Type structure. - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Cleanup the default XML Schemas type library - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Deallocates a wildcard structure. - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Lookup function - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Gives you the type struct for a built-in type by its type id. - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Get a the cononical lexical representation of the value. The caller has to FREE the returned retValue. WARNING: Some value types are not supported yet, resulting in a @retValue of "???". TODO: XML Schema 1.0 does not define canonical representations for: duration, gYearMonth, gYear, gMonthDay, gMonth, gDay, anyURI, QName, NOTATION. This will be fixed in XML Schema 1.1. - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Get a the cononical representation of the value. The caller has to free the returned @retValue. - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Extract the value of a facet - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Get the callback information used to handle errors for a parser context - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Lookup a type in the default XML Schemas type library - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Accessor for the type of a value - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Initialize the default XML Schemas type library - - - - defined(LIBXML_SCHEMAS_ENABLED) - Evaluates if a specific facet can be used in conjunction with a type. - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Create an XML Schemas parse context for that document. NB. The document may be modified during the parsing process. - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Allocate a new Facet structure. - - - - defined(LIBXML_SCHEMAS_ENABLED) - Create an XML Schemas parse context for that memory buffer expected to contain an XML Schemas file. - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Allocate a new NOTATION value. The given values are consumed and freed with the struct. - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Create an XML Schemas parse context for that file/resource expected to contain an XML Schemas file. - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Allocate a new QName value. The given values are consumed and freed with the struct. - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Allocate a new simple type value. The type can be of XML_SCHEMAS_STRING. WARNING: This one is intended to be expanded for other string based types. We need this for anySimpleType as well. The given value is consumed and freed with the struct. - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances. - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Set the callback functions used to handle errors for a validation context - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Set the structured error callback - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val. - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val. This one does apply any normalization to the value. - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Check a value against a facet condition - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Check a value against a facet condition. This takes value normalization according to the specified whitespace types into account. Note that @value needs to be the *normalized* value if the facet is of type "pattern". - - - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Checka a value against a "length", "minLength" and "maxLength" facet; sets @length to the computed length of @value. - - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Checka a value against a "length", "minLength" and "maxLength" facet; sets @length to the computed length of @value. - - - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Checks the value of a list simple type against a facet. - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val. - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - - - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Appends a next sibling to a list of computed values. - - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Accessor for the boolean value of a computed value. - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Accessor for the string value of a computed value. - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Accessor for the next sibling of a list of computed values. - - - - - defined(LIBXML_SCHEMAS_ENABLED) - Replaces 0xd, 0x9 and 0xa with a space. - - - - - defined(LIBXML_SCHEMATRON_ENABLED) - Deallocate a Schematron structure. - - - - - defined(LIBXML_SCHEMATRON_ENABLED) - Free the resources associated to the schema parser context - - - - - defined(LIBXML_SCHEMATRON_ENABLED) - Free the resources associated to the schema validation context - - - - - defined(LIBXML_SCHEMATRON_ENABLED) - Create an XML Schematrons parse context for that document. NB. The document may be modified during the parsing process. - - - - - defined(LIBXML_SCHEMATRON_ENABLED) - Create an XML Schematrons parse context for that memory buffer expected to contain an XML Schematrons file. - - - - - - defined(LIBXML_SCHEMATRON_ENABLED) - Create an XML Schematrons parse context for that file/resource expected to contain an XML Schematrons file. - - - - - defined(LIBXML_SCHEMATRON_ENABLED) - Create an XML Schematrons validation context based on the given schema. - - - - - - defined(LIBXML_SCHEMATRON_ENABLED) - parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances. - - - - - defined(LIBXML_SCHEMATRON_ENABLED) - Validate a tree instance against the schematron - - - - - - defined(LIBXML_SCHEMATRON_ENABLED) - - - - - - - - defined(LIBXML_SCHEMATRON_ENABLED) - - - - - - - - Search a Ns registered under a given name space for a document. recurse on the parents until it finds the defined namespace or return NULL otherwise. @nameSpace can be NULL, this is a search for the default namespace. We don't allow to cross entities boundaries. If you don't declare the namespace within those you will be in troubles !!! A warning is generated to cover this case. - - - - - - - Search a Ns aliasing a given URI. Recurse on the parents until it finds the defined namespace or return NULL otherwise. - - - - - - - Set the buffer allocation method. Types are XML_BUFFER_ALLOC_EXACT - use exact sizes, keeps memory usage down XML_BUFFER_ALLOC_DOUBLEIT - double buffer when extra needed, improves performance - - - - - set the default compression mode used, ZLIB based Correct values: 0 (uncompressed) to 9 (max compression) - - - - - set the compression ratio for a document, ZLIB based Correct values: 0 (uncompressed) to 9 (max compression) - - - - - - defined(LIBXML_LEGACY_ENABLED) - Set the function to call call back when a xml reference has been made - - - - - Changes the defaultexternal entity resolver function for the application - - - - - defined(LIBXML_LEGACY_ENABLED) - Change the current value of one feature of this parser instance - - - - - - - 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. For multi-threaded applications, this must be set separately for each thread. - - - - - - update all nodes in the list to point to the right document - - - - - - Associate a namespace to a node, a posteriori. - - - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) - Set (or reset) an attribute carried by a node. The ns structure must be in scope, this is not checked - - - - - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) - Set (or reset) an attribute carried by a node. If @name has a prefix, then the corresponding namespace-binding will be used, if in scope; it is an error it there's no such ns-binding for the prefix in scope. - - - - - - - Function to reset the handler and the error context for out of context structured 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 For multi-threaded applications, this must be set separately for each thread. - - - - - - update all nodes under the tree to point to the right document - - - - - - defined(LIBXML_SAX1_ENABLED) - Setup the parser context to parse a new buffer; Clears any prior contents from the parser context. The buffer parameter must not be NULL, but the filename parameter can be - - - - - - - defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - Implements the XML shell This allow to load, validate, view, modify and save a document using a environment similar to a UNIX commandline. - - - - - - - - defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - Implements the XML shell function "base" dumps the current XML base of the node - - - - - - - - defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Implements the XML shell function "cat" dumps the serialization node content (XML or HTML). - - - - - - - - defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - This is a generic signature for the XML shell functions. - - - - - - - - defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - Implements the XML shell function "dir" dumps informations about the node (namespace, attributes, content). - - - - - - - - defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - Implements the XML shell function "du" show the structure of the subtree under node @tree If @tree is null, the command works on the current node. - - - - - - - - defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - Implements the XML shell function "ls" Does an Unix like listing of the given node (like a directory) - - - - - - - - defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - Implements the XML shell function "load" loads a new document specified by the filename - - - - - - - - defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Print node to the output FILE - - - - - defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - Print the xpath error to libxml default error channel - - - - - - defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - Prints result to the output FILE - - - - - defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - Implements the XML shell function "pwd" Show the full path from the root to the node, if needed building thumblers when similar elements exists at a given ancestor level. The output is compatible with XPath commands. - - - - - - - - defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - This is a generic signature for the XML shell input function. - - - - - defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Implements the XML shell function "save" Write the current document to the filename, or it's original name - - - - - - - - defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_VALID_ENABLED) - Implements the XML shell function "validate" Validate the document, if a DTD path is provided, then the validation is done against the given DTD. - - - - - - - - defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - Implements the XML shell function "write" Write the current node to the filename, it saves the serialization of the subtree under the @node specified - - - - - - - - skip all blanks character found at that point in the input streams. It pops up finished entities in the process if allowable at that point. - - - - - This will dump the content of the element content definition Intended just for the debug routine - - - - - - - - parse an UTF8 encoded XML qualified name string [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName - - - - - - - parse an XML qualified name string [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName - - - - - - parse an XML qualified name string,i - - - - - - defined(LIBXML_OUTPUT_ENABLED) - Deprecated, unsafe, use xmlSnprintfElementContent - - - - - - - Blocks further parser processing - - - - - Check if both strings are equal of have same content. Should be a bit more readable and faster than xmlStrcmp() - - - - - - Formats @msg and places result into @buf. - - - - - - - - Check if a QName is Equal to a given string - - - - - - - Formats @msg and places result into @buf. - - - - - - - - a strcasecmp for xmlChar's - - - - - - a case-ignoring strstr for xmlChar's - - - - - - a strcat for array of xmlChar's. Since they are supposed to be encoded in UTF-8 or an encoding with 8bit based chars, we assume a termination mark of '0'. - - - - - - a strchr for xmlChar's - - - - - - a strcmp for xmlChar's - - - - - - a strdup for array of xmlChar's. Since they are supposed to be encoded in UTF-8 or an encoding with 8bit based chars, we assume a termination mark of '0'. - - - - - Signature for an strdup() implementation. - - - - - defined(LIBXML_PATTERN_ENABLED) - push one level from the stream. - - - - - defined(LIBXML_PATTERN_ENABLED) - Push new data onto the stream. NOTE: if the call xmlPatterncompile() indicated a dictionary, then strings for name and ns will be expected to come from the dictionary. Both @name and @ns being NULL means the / i.e. the root of the document. This can also act as a reset. Otherwise the function will act as if it has been given an element-node. - - - - - - - defined(LIBXML_PATTERN_ENABLED) - Push new attribute data onto the stream. NOTE: if the call xmlPatterncompile() indicated a dictionary, then strings for name and ns will be expected to come from the dictionary. Both @name and @ns being NULL means the / i.e. the root of the document. This can also act as a reset. Otherwise the function will act as if it has been given an attribute-node. - - - - - - - defined(LIBXML_PATTERN_ENABLED) - Push new data onto the stream. NOTE: if the call xmlPatterncompile() indicated a dictionary, then strings for name and ns will be expected to come from the dictionary. Both @name and @ns being NULL means the / i.e. the root of the document. This can also act as a reset. Different from xmlStreamPush() this function can be fed with nodes of type: element-, attribute-, text-, cdata-section-, comment- and processing-instruction-node. - - - - - - - - defined(LIBXML_PATTERN_ENABLED) - Query if the streaming pattern additionally needs to be fed with text-, cdata-section-, comment- and processing-instruction-nodes. If the result is 0 then only element-nodes and attribute-nodes need to be pushed. - - - - - The current char value, if using UTF-8 this may actually span multiple bytes in the input buffer. - - - - - - - Takes a entity string content and process to do the adequate substitutions. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';' - - - - - - - - - - Parse the value string and build the node list associated. Should produce a flat tree with only TEXTs and ENTITY_REFs. - - - - - - Takes a entity string content and process to do the adequate substitutions. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';' - - - - - - - - - - - Parse the value string and build the node list associated. Should produce a flat tree with only TEXTs and ENTITY_REFs. - - - - - - - length of a xmlChar's string - - - - - a strncasecmp for xmlChar's - - - - - - - a strncat for array of xmlChar's, it will extend @cur with the len first bytes of @add. Note that if @len < 0 then this is an API error and NULL will be returned. - - - - - - - same as xmlStrncat, but creates a new string. The original two strings are not freed. If @len is < 0 then the length will be calculated automatically. - - - - - - - a strncmp for xmlChar's - - - - - - - a strndup for array of xmlChar's - - - - - - a strstr for xmlChar's - - - - - - Extract a substring of a given string - - - - - - - Signature of the function to use when there is an error and the module handles the new error reporting mechanism. - - - - - - Set and return the previous value for default entity support. Initially the parser always keep entity references instead of substituting entity values in the output. This function has to be used to change the default parser behavior SAX::substituteEntities() has to be used for changing that on a file by file basis. - - - - - change the input functions when discovering the character encoding of a given entity. - - - - - - change the input functions when discovering the character encoding of a given entity. - - - - - - - change the input functions when discovering the character encoding of a given entity. - - - - - - Concat the given string at the end of the existing node content - - - - - - - Merge two text nodes into one - - - - - - defined(LIBXML_READER_ENABLED) - Provides the number of attributes of the current node - - - - - defined(LIBXML_READER_ENABLED) - The base URI of the node. - - - - - defined(LIBXML_READER_ENABLED) - This function provides the current index of the parser used by the reader, relative to the start of the current entity. This function actually just wraps a call to xmlBytesConsumed() for the parser context associated with the reader. See xmlBytesConsumed() for more information. - - - - - defined(LIBXML_READER_ENABLED) - This method releases any resources allocated by the current instance changes the state to Closed and close any underlying input. - - - - - defined(LIBXML_READER_ENABLED) - The base URI of the node. - - - - - defined(LIBXML_READER_ENABLED) - Determine the encoding of the document being read. - - - - - defined(LIBXML_READER_ENABLED) - The local name of the node. - - - - - defined(LIBXML_READER_ENABLED) - The qualified name of the node, equal to Prefix :LocalName. - - - - - defined(LIBXML_READER_ENABLED) - The URI defining the namespace associated with the node. - - - - - defined(LIBXML_READER_ENABLED) - A shorthand reference to the namespace associated with the node. - - - - - defined(LIBXML_READER_ENABLED) - Get an interned string from the reader, allows for example to speedup string name comparisons - - - - - - defined(LIBXML_READER_ENABLED) - Provides the text value of the node if present - - - - - defined(LIBXML_READER_ENABLED) - The xml:lang scope within which the node resides. - - - - - defined(LIBXML_READER_ENABLED) - Determine the XML version of the document being read. - - - - - defined(LIBXML_READER_ENABLED) - Hacking interface allowing to get the xmlDocPtr correponding to the current document being accessed by the xmlTextReader. NOTE: as a result of this call, the reader will not destroy the associated XML document and calling xmlFreeDoc() on the result is needed once the reader parsing has finished. - - - - - defined(LIBXML_READER_ENABLED) - Hacking interface allowing to get the xmlNodePtr correponding to the current node being accessed by the xmlTextReader. This is dangerous because the underlying node may be destroyed on the next Reads. - - - - - defined(LIBXML_READER_ENABLED) - The depth of the node in the tree. - - - - - defined(LIBXML_READER_ENABLED) - - - - - - - - - defined(LIBXML_READER_ENABLED) - Reads the contents of the current node and the full subtree. It then makes the subtree available until the next xmlTextReaderRead() call - - - - - defined(LIBXML_READER_ENABLED) - Provides the value of the attribute with the specified qualified name. - - - - - - defined(LIBXML_READER_ENABLED) - Provides the value of the attribute with the specified index relative to the containing element. - - - - - - defined(LIBXML_READER_ENABLED) - Provides the value of the specified attribute - - - - - - - defined(LIBXML_READER_ENABLED) - Retrieve the error callback function and user argument. - - - - - - - defined(LIBXML_READER_ENABLED) - Provide the column number of the current parsing point. - - - - - defined(LIBXML_READER_ENABLED) - Provide the line number of the current parsing point. - - - - - defined(LIBXML_READER_ENABLED) - Read the parser internal property. - - - - - - defined(LIBXML_READER_ENABLED) - Method to get the remainder of the buffered XML. this method stops the parser, set its state to End Of File and return the input stream with what is left that the parser did not use. The implementation is not good, the parser certainly procgressed past what's left in reader->input, and there is an allocation problem. Best would be to rewrite it differently. - - - - - defined(LIBXML_READER_ENABLED) - Whether the node has attributes. - - - - - defined(LIBXML_READER_ENABLED) - Whether the node can have a text value. - - - - - defined(LIBXML_READER_ENABLED) - Whether an Attribute node was generated from the default value defined in the DTD or schema. - - - - - defined(LIBXML_READER_ENABLED) - Check if the current node is empty - - - - - defined(LIBXML_READER_ENABLED) - Determine whether the current node is a namespace declaration rather than a regular attribute. - - - - - defined(LIBXML_READER_ENABLED) - Retrieve the validity status from the parser context - - - - - defined(LIBXML_READER_ENABLED) - The local name of the node. - - - - - defined(LIBXML_READER_ENABLED) - Obtain the base URI for the given locator. - - - - - defined(LIBXML_READER_ENABLED) - Obtain the line number for the given locator. - - - - - defined(LIBXML_READER_ENABLED) - Resolves a namespace prefix in the scope of the current element. - - - - - - defined(LIBXML_READER_ENABLED) - Moves the position of the current instance to the attribute with the specified qualified name. - - - - - - defined(LIBXML_READER_ENABLED) - Moves the position of the current instance to the attribute with the specified index relative to the containing element. - - - - - - defined(LIBXML_READER_ENABLED) - Moves the position of the current instance to the attribute with the specified local name and namespace URI. - - - - - - - defined(LIBXML_READER_ENABLED) - Moves the position of the current instance to the node that contains the current Attribute node. - - - - - defined(LIBXML_READER_ENABLED) - Moves the position of the current instance to the first attribute associated with the current node. - - - - - defined(LIBXML_READER_ENABLED) - Moves the position of the current instance to the next attribute associated with the current node. - - - - - defined(LIBXML_READER_ENABLED) - The qualified name of the node, equal to Prefix :LocalName. - - - - - defined(LIBXML_READER_ENABLED) - The URI defining the namespace associated with the node. - - - - - defined(LIBXML_READER_ENABLED) - Skip to the node following the current one in document order while avoiding the subtree if any. - - - - - defined(LIBXML_READER_ENABLED) - Skip to the node following the current one in document order while avoiding the subtree if any. Currently implemented only for Readers built on a document - - - - - defined(LIBXML_READER_ENABLED) - Get the node type of the current node Reference: http://dotgnu.org/pnetlib-doc/System/Xml/XmlNodeType.html - - - - - defined(LIBXML_READER_ENABLED) - The value indicating whether to normalize white space and attribute values. Since attribute value and end of line normalizations are a MUST in the XML specification only the value true is accepted. The broken bahaviour of accepting out of range character entities like &#0; is of course not supported either. - - - - - defined(LIBXML_READER_ENABLED) - A shorthand reference to the namespace associated with the node. - - - - - defined(LIBXML_READER_ENABLED) - This tells the XML Reader to preserve the current node. The caller must also use xmlTextReaderCurrentDoc() to keep an handle on the resulting document once parsing has finished - - - - - defined(LIBXML_READER_ENABLED) && defined(LIBXML_PATTERN_ENABLED) - This tells the XML Reader to preserve all nodes matched by the pattern. The caller must also use xmlTextReaderCurrentDoc() to keep an handle on the resulting document once parsing has finished - - - - - - - defined(LIBXML_READER_ENABLED) - The quotation mark character used to enclose the value of an attribute. - - - - - defined(LIBXML_READER_ENABLED) - Moves the position of the current instance to the next node in the stream, exposing its properties. - - - - - defined(LIBXML_READER_ENABLED) - Parses an attribute value into one or more Text and EntityReference nodes. - - - - - defined(LIBXML_READER_ENABLED) && defined(LIBXML_WRITER_ENABLED) - Reads the contents of the current node, including child nodes and markup. - - - - - defined(LIBXML_READER_ENABLED) && defined(LIBXML_WRITER_ENABLED) - Reads the contents of the current node, including child nodes and markup. - - - - - defined(LIBXML_READER_ENABLED) - Gets the read state of the reader. - - - - - defined(LIBXML_READER_ENABLED) - Reads the contents of an element or a text node as a string. - - - - - defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) - Use RelaxNG to validate the document as it is processed. Activation is only possible before the first Read(). if @schema is NULL, then RelaxNG validation is desactivated. @ The @schema should not be freed until the reader is deallocated or its use has been deactivated. - - - - - - defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) - Use RelaxNG to validate the document as it is processed. Activation is only possible before the first Read(). if @rng is NULL, then RelaxNG validation is desactivated. - - - - - - defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) - Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read(). If @xsd is NULL, then XML Schema validation is deactivated. - - - - - - defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) - Use W3C XSD schema context to validate the document as it is processed. Activation is only possible before the first Read(). If @ctxt is NULL, then XML Schema validation is deactivated. - - - - - - - defined(LIBXML_READER_ENABLED) - Register a callback function that will be called on error and warnings. If @f is NULL, the default error and warning handlers are restored. - - - - - - - defined(LIBXML_READER_ENABLED) - Change the parser processing behaviour by changing some of its internal properties. Note that some properties can only be changed before any read has been done. - - - - - - - defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) - Use XSD Schema to validate the document as it is processed. Activation is only possible before the first Read(). if @schema is NULL, then Schema validation is desactivated. @ The @schema should not be freed until the reader is deallocated or its use has been deactivated. - - - - - - defined(LIBXML_READER_ENABLED) - Register a callback function that will be called on error and warnings. If @f is NULL, the default error and warning handlers are restored. - - - - - - - defined(LIBXML_READER_ENABLED) - Determine the standalone status of the document being read. - - - - - defined(LIBXML_READER_ENABLED) - Provides the text value of the node if present - - - - - defined(LIBXML_READER_ENABLED) - The xml:lang scope within which the node resides. - - - - - defined(LIBXML_WRITER_ENABLED) - End the current xml element. - - - - - defined(LIBXML_WRITER_ENABLED) - End an xml CDATA section. - - - - - defined(LIBXML_WRITER_ENABLED) - End the current xml coment. - - - - - defined(LIBXML_WRITER_ENABLED) - End an xml DTD. - - - - - defined(LIBXML_WRITER_ENABLED) - End an xml DTD attribute list. - - - - - defined(LIBXML_WRITER_ENABLED) - End an xml DTD element. - - - - - defined(LIBXML_WRITER_ENABLED) - End an xml DTD entity. - - - - - defined(LIBXML_WRITER_ENABLED) - End an xml document. All open elements are closed - - - - - defined(LIBXML_WRITER_ENABLED) - End the current xml element. - - - - - defined(LIBXML_WRITER_ENABLED) - End the current xml PI. - - - - - defined(LIBXML_WRITER_ENABLED) - Flush the output buffer. - - - - - defined(LIBXML_WRITER_ENABLED) - End the current xml element. Writes an end tag even if the element is empty - - - - - defined(LIBXML_WRITER_ENABLED) - Set indentation output. indent = 0 do not indentation. indent > 0 do indentation. - - - - - - defined(LIBXML_WRITER_ENABLED) - Set string indentation. - - - - - - defined(LIBXML_WRITER_ENABLED) - Start an xml attribute. - - - - - - defined(LIBXML_WRITER_ENABLED) - Start an xml attribute with namespace support. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Start an xml CDATA section. - - - - - defined(LIBXML_WRITER_ENABLED) - Start an xml comment. - - - - - defined(LIBXML_WRITER_ENABLED) - Start an xml DTD. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Start an xml DTD ATTLIST. - - - - - - defined(LIBXML_WRITER_ENABLED) - Start an xml DTD element. - - - - - - defined(LIBXML_WRITER_ENABLED) - Start an xml DTD ATTLIST. - - - - - - - defined(LIBXML_WRITER_ENABLED) - Start a new xml document - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Start an xml element. - - - - - - defined(LIBXML_WRITER_ENABLED) - Start an xml element with namespace support. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Start an xml PI. - - - - - - defined(LIBXML_WRITER_ENABLED) - Write an xml attribute. - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write an xml attribute. - - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write an base64 encoded xml text. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a BinHex encoded xml text. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write an xml CDATA. - - - - - - defined(LIBXML_WRITER_ENABLED) - Write an xml comment. - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a DTD. - - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a DTD ATTLIST. - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a DTD element. - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a DTD entity. - - - - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a DTD external entity. The entity must have been started with xmlTextWriterStartDTDEntity - - - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write the contents of a DTD external entity. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a DTD internal entity. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a DTD entity. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write an xml element. - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write an xml element with namespace support. - - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted xml attribute. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted xml attribute.with namespace support - - - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted xml CDATA. - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write an xml comment. - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a DTD with a formatted markup declarations part. - - - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted DTD ATTLIST. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted DTD element. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted DTD internal entity. - - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted xml element. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted xml element with namespace support. - - - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted PI. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted raw xml text. - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted xml text. - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write an xml PI. - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a raw xml text. - - - - - - defined(LIBXML_WRITER_ENABLED) - Write an xml text. TODO: what about entities and special chars?? - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write an xml text. - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted xml attribute. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted xml attribute.with namespace support - - - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted xml CDATA. - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write an xml comment. - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a DTD with a formatted markup declarations part. - - - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted DTD ATTLIST. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted DTD element. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted DTD internal entity. - - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted xml element. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted xml element with namespace support. - - - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted xml PI. - - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted raw xml text. - - - - - - - defined(LIBXML_WRITER_ENABLED) - Write a formatted xml text. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of AegeanNumbers UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of AlphabeticPresentationForms UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Arabic UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of ArabicPresentationForms-A UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of ArabicPresentationForms-B UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Armenian UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Arrows UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of BasicLatin UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Bengali UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of the UCS Block - - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of BlockElements UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Bopomofo UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of BopomofoExtended UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of BoxDrawing UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of BraillePatterns UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Buhid UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of ByzantineMusicalSymbols UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of CJKCompatibility UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of CJKCompatibilityForms UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of CJKCompatibilityIdeographs UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of CJKCompatibilityIdeographsSupplement UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of CJKRadicalsSupplement UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of CJKSymbolsandPunctuation UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of CJKUnifiedIdeographs UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of CJKUnifiedIdeographsExtensionA UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of CJKUnifiedIdeographsExtensionB UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of the UCS Category - - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of C UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Cc UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Cf UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Co UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Cs UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of L UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Ll UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Lm UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Lo UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Lt UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Lu UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of M UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Mc UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Me UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Mn UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of N UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Nd UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Nl UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of No UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of P UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Pc UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Pd UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Pe UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Pf UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Pi UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Po UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Ps UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of S UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Sc UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Sk UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Sm UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of So UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Z UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Zl UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Zp UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Zs UCS Category - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Cherokee UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of CombiningDiacriticalMarks UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of CombiningDiacriticalMarksforSymbols UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of CombiningHalfMarks UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of CombiningMarksforSymbols UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of ControlPictures UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of CurrencySymbols UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of CypriotSyllabary UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Cyrillic UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of CyrillicSupplement UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Deseret UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Devanagari UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Dingbats UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of EnclosedAlphanumerics UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of EnclosedCJKLettersandMonths UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Ethiopic UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of GeneralPunctuation UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of GeometricShapes UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Georgian UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Gothic UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Greek UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of GreekExtended UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of GreekandCoptic UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Gujarati UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Gurmukhi UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of HalfwidthandFullwidthForms UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of HangulCompatibilityJamo UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of HangulJamo UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of HangulSyllables UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Hanunoo UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Hebrew UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of HighPrivateUseSurrogates UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of HighSurrogates UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Hiragana UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of IPAExtensions UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of IdeographicDescriptionCharacters UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Kanbun UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of KangxiRadicals UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Kannada UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Katakana UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of KatakanaPhoneticExtensions UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Khmer UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of KhmerSymbols UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Lao UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Latin-1Supplement UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of LatinExtended-A UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of LatinExtendedAdditional UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of LatinExtended-B UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of LetterlikeSymbols UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Limbu UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of LinearBIdeograms UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of LinearBSyllabary UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of LowSurrogates UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Malayalam UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of MathematicalAlphanumericSymbols UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of MathematicalOperators UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of MiscellaneousMathematicalSymbols-A UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of MiscellaneousMathematicalSymbols-B UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of MiscellaneousSymbols UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of MiscellaneousSymbolsandArrows UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of MiscellaneousTechnical UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Mongolian UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of MusicalSymbols UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Myanmar UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of NumberForms UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Ogham UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of OldItalic UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of OpticalCharacterRecognition UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Oriya UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Osmanya UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of PhoneticExtensions UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of PrivateUse UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of PrivateUseArea UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Runic UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Shavian UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Sinhala UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of SmallFormVariants UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of SpacingModifierLetters UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Specials UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of SuperscriptsandSubscripts UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of SupplementalArrows-A UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of SupplementalArrows-B UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of SupplementalMathematicalOperators UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of SupplementaryPrivateUseArea-A UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of SupplementaryPrivateUseArea-B UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Syriac UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Tagalog UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Tagbanwa UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Tags UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of TaiLe UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of TaiXuanJingSymbols UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Tamil UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Telugu UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Thaana UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Thai UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Tibetan UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of Ugaritic UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of UnifiedCanadianAboriginalSyllabics UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of VariationSelectors UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of VariationSelectorsSupplement UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of YiRadicals UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of YiSyllables UCS Block - - - - - defined(LIBXML_UNICODE_ENABLED) - Check whether the character is part of YijingHexagramSymbols UCS Block - - - - - Escaping routine, does not do validity checks ! It will try to escape the chars needing this, but this is heuristic based it's impossible to be sure. - - - - - This routine escapes a string to hex, ignoring reserved characters (a-z) and the characters in the exception list. - - - - - - Unescaping routine, does not do validity checks ! Output is direct unsigned char translation of %XX values (no encoding) - - - - - - - compares the two UCS4 values - - - - - - calculates the internal size of a UTF8 character - - - - - compute the length of an UTF8 string, it doesn't do a full UTF8 checking of the content of the string. - - - - - a function to provide the relative location of a UTF8 char - - - - - - a strndup for array of UTF8's - - - - - - a function to provide the equivalent of fetching a character from a string array - - - - - - storage size of an UTF8 string the behaviour is not garanteed if the input string is not UTF-8 - - - - - - Create a substring from a given UTF-8 string Note: positions are given in units of UTF-8 chars - - - - - - - Unlink a node from it's current context, the node is not freed - - - - - xmlUnlockLibrary() is used to release a re-entrant lock on the libxml2 library. - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - Remove an attribute carried by a node. - - - - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - Remove an attribute carried by a node. This handles only attributes in no namespace. - - - - - - defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) - (Re)Build the automata associated to the content model of this element - - - - - - defined(LIBXML_VALID_ENABLED) - Does the validation related extra step of the normalization of attribute values: If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) characters by single space (#x20) character. Also check VC: Standalone Document Declaration in P32, and update ctxt->valid accordingly - - - - - - - - - defined(LIBXML_VALID_ENABLED) - Build/extend a list of potential children allowed by the content tree - - - - - - - - defined(LIBXML_VALID_ENABLED) - This function returns the list of authorized children to insert within an existing tree while respecting the validity constraints forced by the Dtd. The insertion point is defined using @prev and @next in the following ways: to insert before 'node': xmlValidGetValidElements(node->prev, node, ... to insert next 'node': xmlValidGetValidElements(node, node->next, ... to replace 'node': xmlValidGetValidElements(node->prev, node->next, ... to prepend a child to 'node': xmlValidGetValidElements(NULL, node->childs, to append a child to 'node': xmlValidGetValidElements(node->last, NULL, ... pointers to the element names are inserted at the beginning of the array and do not need to be freed. - - - - - - - - defined(LIBXML_VALID_ENABLED) - Does the validation related extra step of the normalization of attribute values: If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) characters by single space (#x20) character. - - - - - - - - defined(LIBXML_VALID_ENABLED) - Try to validate a single attribute definition basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Default Legal ] - [ VC: Enumeration ] - [ VC: ID Attribute Default ] The ID/IDREF uniqueness and matching are done separately - - - - - - - defined(LIBXML_VALID_ENABLED) - Validate that the given attribute value match the proper production [ VC: ID ] Values of type ID must match the Name production.... [ VC: IDREF ] Values of type IDREF must match the Name production, and values of type IDREFS must match Names ... [ VC: Entity Name ] Values of type ENTITY must match the Name production, values of type ENTITIES must match Names ... [ VC: Name Token ] Values of type NMTOKEN must match the Nmtoken production; values of type NMTOKENS must match Nmtokens. - - - - - - defined(LIBXML_VALID_ENABLED) - Try to validate the document instance basically it does the all the checks described by the XML Rec i.e. validates the internal and external subset (if present) and validate the document tree. - - - - - - defined(LIBXML_VALID_ENABLED) - Does the final step for the document validation once all the incremental validation steps have been completed basically it does the following checks described by the XML Rec Check all the IDREF/IDREFS attributes definition for validity - - - - - - defined(LIBXML_VALID_ENABLED) - Try to validate the document against the dtd instance Basically it does check all the definitions in the DtD. Note the the internal subset (if present) is de-coupled (i.e. not used), which could give problems if ID or IDREF is present. - - - - - - - defined(LIBXML_VALID_ENABLED) - Does the final step for the dtds validation once all the subsets have been parsed basically it does the following checks described by the XML Rec - check that ENTITY and ENTITIES type attributes default or possible values matches one of the defined entities. - check that NOTATION type attributes default or possible values matches one of the defined notations. - - - - - - defined(LIBXML_VALID_ENABLED) - Try to validate the subtree under an element - - - - - - - defined(LIBXML_VALID_ENABLED) - Try to validate a single element definition basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: One ID per Element Type ] - [ VC: No Duplicate Types ] - [ VC: Unique Element Type Declaration ] - - - - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_DEBUG_ENABLED) || defined (LIBXML_HTML_ENABLED) - Check that a value conforms to the lexical space of NCName - - - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - Check that a value conforms to the lexical space of NMToken - - - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - Check that a value conforms to the lexical space of Name - - - - - - defined(LIBXML_VALID_ENABLED) - Validate that the given value match Name production - - - - - defined(LIBXML_VALID_ENABLED) - Validate that the given value match Names production - - - - - defined(LIBXML_VALID_ENABLED) - Validate that the given value match Nmtoken production [ VC: Name Token ] - - - - - defined(LIBXML_VALID_ENABLED) - Validate that the given value match Nmtokens production [ VC: Name Token ] - - - - - defined(LIBXML_VALID_ENABLED) - Try to validate a single notation definition basically it does the following checks as described by the XML-1.0 recommendation: - it seems that no validity constraint exists on notation declarations But this function get called anyway ... - - - - - - - defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - Validate that the given name match a notation declaration. - [ VC: Notation Declared ] - - - - - - - defined(LIBXML_VALID_ENABLED) - Try to validate a single attribute for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ] - [ VC: Entity Name ] - [ VC: Notation Attributes ] The ID/IDREF uniqueness and matching are done separately - - - - - - - - - defined(LIBXML_VALID_ENABLED) - Try to validate a single element and it's attributes, basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Element Valid ] - [ VC: Required Attribute ] Then call xmlValidateOneAttribute() for each attribute present. The ID/IDREF checkings are done separately - - - - - - - defined(LIBXML_VALID_ENABLED) - Try to validate a single namespace declaration for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ] - [ VC: Entity Name ] - [ VC: Notation Attributes ] The ID/IDREF uniqueness and matching are done separately - - - - - - - - - - defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) - Pop the element end from the validation stack. - - - - - - - - defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) - check the CData parsed for validation in the current stack - - - - - - - defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) - Push a new element start on the validation stack. - - - - - - - - defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - Check that a value conforms to the lexical space of QName - - - - - - defined(LIBXML_VALID_ENABLED) - Try to validate a the root element basically it does the following check as described by the XML-1.0 recommendation: - [ VC: Root Element Type ] it doesn't try to recurse or apply other check to the element - - - - - - Callback called when a validity error is found. This is a message oriented function similar to an *printf function. - - - - - - - Callback called when a validity warning is found. This is a message oriented function similar to an *printf function. - - - - - - - defined(LIBXML_XINCLUDE_ENABLED) - Free an XInclude context - - - - - defined(LIBXML_XINCLUDE_ENABLED) - Creates a new XInclude context - - - - - defined(LIBXML_XINCLUDE_ENABLED) - Implement the XInclude substitution on the XML document @doc - - - - - defined(LIBXML_XINCLUDE_ENABLED) - Implement the XInclude substitution on the XML document @doc - - - - - - defined(LIBXML_XINCLUDE_ENABLED) - Implement the XInclude substitution for the given subtree reusing the informations and data coming from the given context. - - - - - - defined(LIBXML_XINCLUDE_ENABLED) - Implement the XInclude substitution for the given subtree - - - - - defined(LIBXML_XINCLUDE_ENABLED) - Implement the XInclude substitution for the given subtree - - - - - - defined(LIBXML_XINCLUDE_ENABLED) - Set the flags used for further processing of XML resources. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the add operation on XPath objects: The numeric operators convert their operands to numbers as if by calling the number function. - - - - - defined(LIBXML_XPATH_ENABLED) - An axis traversal function. To traverse an axis, the engine calls the first time with cur == NULL and repeat until the function returns NULL indicating the end of the axis traversal. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the boolean() XPath function boolean boolean(object) The boolean function converts its argument to a boolean as follows: - a number is true if and only if it is neither positive or negative zero nor NaN - a node-set is true if and only if it is non-empty - a string is true if and only if its length is non-zero - - - - - - defined(LIBXML_XPATH_ENABLED) - Converts a boolean to its number value - - - - - defined(LIBXML_XPATH_ENABLED) - Converts a boolean to its string value. - - - - - defined(LIBXML_XPATH_ENABLED) - Converts a node-set to its boolean value - - - - - defined(LIBXML_XPATH_ENABLED) - Converts a node-set to its number value - - - - - defined(LIBXML_XPATH_ENABLED) - Converts a node-set to its string value. - - - - - defined(LIBXML_XPATH_ENABLED) - Converts a node to its number value - - - - - defined(LIBXML_XPATH_ENABLED) - Converts a node to its string value. - - - - - defined(LIBXML_XPATH_ENABLED) - Converts a number to its boolean value - - - - - defined(LIBXML_XPATH_ENABLED) - Converts a number to its string value. - - - - - defined(LIBXML_XPATH_ENABLED) - Converts a string to its boolean value - - - - - defined(LIBXML_XPATH_ENABLED) - Converts a string to its number value - - - - - defined(LIBXML_XPATH_ENABLED) - Converts an XPath object to its boolean value - - - - - defined(LIBXML_XPATH_ENABLED) - Converts an XPath object to its number value - - - - - defined(LIBXML_XPATH_ENABLED) - Converts an existing object to its string() equivalent - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the ceiling() XPath function number ceiling(number) The ceiling function returns the smallest (closest to negative infinity) number that is not less than the argument and that is an integer. - - - - - - defined(LIBXML_XPATH_ENABLED) - Compare two nodes w.r.t document order - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the compare operation on XPath objects: @arg1 < @arg2 (1, 1, ... @arg1 <= @arg2 (1, 0, ... @arg1 > @arg2 (0, 1, ... @arg1 >= @arg2 (0, 0, ... When neither object to be compared is a node-set and the operator is <=, <, >=, >, then the objects are compared by converted both objects to numbers and comparing the numbers according to IEEE 754. The < comparison will be true if and only if the first number is less than the second number. The <= comparison will be true if and only if the first number is less than or equal to the second number. The > comparison will be true if and only if the first number is greater than the second number. The >= comparison will be true if and only if the first number is greater than or equal to the second number. - - - - - - - defined(LIBXML_XPATH_ENABLED) - Compile an XPath expression - - - - - defined(LIBXML_XPATH_ENABLED) - Evaluate the Precompiled XPath expression in the given context. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the concat() XPath function string concat(string, string, string*) The concat function returns the concatenation of its arguments. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the contains() XPath function boolean contains(string, string) The contains function returns true if the first argument string contains the second argument string, and otherwise returns false. - - - - - - defined(LIBXML_XPATH_ENABLED) - Creates/frees an object cache on the XPath context. If activates XPath objects (xmlXPathObject) will be cached internally to be reused. @options: 0: This will set the XPath object caching: @value: This will set the maximum number of XPath objects to be cached per slot There are 5 slots for: node-set, string, number, boolean, and misc objects. Use <0 for the default number (100). Other values for @options have currently no effect. - - - - - - - - defined(LIBXML_XPATH_ENABLED) - Converts an existing object to its boolean() equivalent - - - - - defined(LIBXML_XPATH_ENABLED) - A conversion function is associated to a type and used to cast the new type to primitive values. - - - - - - defined(LIBXML_XPATH_ENABLED) - Converts an existing object to its number() equivalent - - - - - defined(LIBXML_XPATH_ENABLED) - Converts an existing object to its string() equivalent - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the count() XPath function number count(node-set) - - - - - - defined(LIBXML_XPATH_ENABLED) - Compile an XPath expression - - - - - - defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_DEBUG_ENABLED) - Dumps the tree of the compiled XPath expression. - - - - - - - defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_DEBUG_ENABLED) - Dump the content of the object for debugging purposes - - - - - - - defined(LIBXML_XPATH_ENABLED) - Implements the EXSLT - Sets difference() function: node-set set:difference (node-set, node-set) - - - - - - defined(LIBXML_XPATH_ENABLED) - Implements the EXSLT - Sets distinct() function: node-set set:distinct (node-set) @nodes is sorted by document order, then #exslSetsDistinctSorted is called with the sorted node-set - - - - - defined(LIBXML_XPATH_ENABLED) - Implements the EXSLT - Sets distinct() function: node-set set:distinct (node-set) - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the div operation on XPath objects @arg1 / @arg2: The numeric operators convert their operands to numbers as if by calling the number function. - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the equal operation on XPath objects content: @arg1 == @arg2 - - - - - defined(LIBXML_XPATH_ENABLED) - Handle an XPath error - - - - - - defined(LIBXML_XPATH_ENABLED) - Evaluate the XPath Location Path in the given context. - - - - - - defined(LIBXML_XPATH_ENABLED) - Parse and evaluate an XPath expression in the given context, then push the result on the context stack - - - - - defined(LIBXML_XPATH_ENABLED) - Evaluate the XPath expression in the given context. - - - - - - defined(LIBXML_XPATH_ENABLED) - An XPath evaluation function, the parameters are on the XPath context stack. - - - - - - defined(LIBXML_XPATH_ENABLED) - Evaluate a predicate result for the current node. A PredicateExpr is evaluated by evaluating the Expr and converting the result to a boolean. If the result is a number, the result will be converted to true if the number is equal to the position of the context node in the context node list (as returned by the position function) and will be converted to false otherwise; if the result is not a number, then the result will be converted as if by a call to the boolean function. - - - - - - defined(LIBXML_XPATH_ENABLED) - Evaluate a predicate result for the current node. A PredicateExpr is evaluated by evaluating the Expr and converting the result to a boolean. If the result is a number, the result will be converted to true if the number is equal to the position of the context node in the context node list (as returned by the position function) and will be converted to false otherwise; if the result is not a number, then the result will be converted as if by a call to the boolean function. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the false() XPath function boolean false() - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the floor() XPath function number floor(number) The floor function returns the largest (closest to positive infinity) number that is not greater than the argument and that is an integer. - - - - - - defined(LIBXML_XPATH_ENABLED) - Free up the memory allocated by @comp - - - - - defined(LIBXML_XPATH_ENABLED) - Free up an xmlXPathContext - - - - - defined(LIBXML_XPATH_ENABLED) - Free the NodeSet compound (not the actual nodes !). - - - - - defined(LIBXML_XPATH_ENABLED) - Free up the xmlXPathObjectPtr @obj but don't deallocate the objects in the list contrary to xmlXPathFreeObject(). - - - - - defined(LIBXML_XPATH_ENABLED) - Free up an xmlXPathObjectPtr object. - - - - - defined(LIBXML_XPATH_ENABLED) - Free up an xmlXPathParserContext - - - - - defined(LIBXML_XPATH_ENABLED) - Prototype for callbacks used to plug function lookup in the XPath engine. - - - - - - - defined(LIBXML_XPATH_ENABLED) - An XPath function. The arguments (if any) are popped out from the context stack and the result is pushed on the stack. - - - - - - defined(LIBXML_XPATH_ENABLED) - Search in the Function array of the context for the given function. - - - - - - defined(LIBXML_XPATH_ENABLED) - Search in the Function array of the context for the given function. - - - - - - - defined(LIBXML_XPATH_ENABLED) - Implements the EXSLT - Sets has-same-nodes function: boolean set:has-same-node(node-set, node-set) - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the id() XPath function node-set id(object) The id function selects elements by their unique ID (see [5.2.1 Unique IDs]). When the argument to id is of type node-set, then the result is the union of the result of applying id to the string value of each of the nodes in the argument node-set. When the argument to id is of any other type, the argument is converted to a string as if by a call to the string function; the string is split into a whitespace-separated list of tokens (whitespace is any sequence of characters matching the production S); the result is a node-set containing the elements in the same document as the context node that have a unique ID equal to any of the tokens in the list. - - - - - - defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - Initialize the XPath environment - - - - defined(LIBXML_XPATH_ENABLED) - Implements the EXSLT - Sets intersection() function: node-set set:intersection (node-set, node-set) - - - - - - defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - Provides a portable isinf() function to detect whether a double is a +Infinite or -Infinite. Based on trio code http://sourceforge.net/projects/ctrio/ - - - - - defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - Provides a portable isnan() function to detect whether a double is a NotaNumber. Based on trio code http://sourceforge.net/projects/ctrio/ - - - - - defined(LIBXML_XPATH_ENABLED) - Is the name given a NodeType one. [38] NodeType ::= 'comment' | 'text' | 'processing-instruction' | 'node' - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the lang() XPath function boolean lang(string) The lang function returns true or false depending on whether the language of the context node as specified by xml:lang attributes is the same as or is a sublanguage of the language specified by the argument string. The language of the context node is determined by the value of the xml:lang attribute on the context node, or, if the context node has no xml:lang attribute, by the value of the xml:lang attribute on the nearest ancestor of the context node that has an xml:lang attribute. If there is no such attribute, then lang - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the last() XPath function number last() The last function returns the number of nodes in the context node list. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set) @nodes1 and @nodes2 are sorted by document order, then #exslSetsLeadingSorted is called. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set) - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the local-name() XPath function string local-name(node-set?) The local-name function returns a string containing the local part of the name of the node in the argument node-set that is first in document order. If the node-set is empty or the first node has no name, an empty string is returned. If the argument is omitted it defaults to the context node. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the mod operation on XPath objects: @arg1 / @arg2 The numeric operators convert their operands to numbers as if by calling the number function. - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the multiply operation on XPath objects: The numeric operators convert their operands to numbers as if by calling the number function. - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the namespace-uri() XPath function string namespace-uri(node-set?) The namespace-uri function returns a string containing the namespace URI of the expanded name of the node in the argument node-set that is first in document order. If the node-set is empty, the first node has no name, or the expanded name has no namespace URI, an empty string is returned. If the argument is omitted it defaults to the context node. - - - - - - defined(LIBXML_XPATH_ENABLED) - Create a new xmlXPathObjectPtr of type boolean and of value @val - - - - - defined(LIBXML_XPATH_ENABLED) - Create a new xmlXPathObjectPtr of type string and of value @val - - - - - defined(LIBXML_XPATH_ENABLED) - Create a new xmlXPathContext - - - - - defined(LIBXML_XPATH_ENABLED) - Create a new xmlXPathObjectPtr of type double and of value @val - - - - - defined(LIBXML_XPATH_ENABLED) - Create a new xmlXPathObjectPtr of type NodeSet and initialize it with the single Node @val - - - - - defined(LIBXML_XPATH_ENABLED) - Create a new xmlXPathObjectPtr of type NodeSet and initialize it with the Nodeset @val - - - - - defined(LIBXML_XPATH_ENABLED) - Create a new xmlXPathParserContext - - - - - - defined(LIBXML_XPATH_ENABLED) - Create a new xmlXPathObjectPtr of type string and of value @val - - - - - defined(LIBXML_XPATH_ENABLED) - Create a new xmlXPathObjectPtr of type Value Tree (XSLT) and initialize it with the tree root @val - - - - - defined(LIBXML_XPATH_ENABLED) - Traversal function for the "ancestor" direction the ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; the nodes are ordered in reverse document order; thus the parent is the first node on the axis, and the parent's parent is the second node on the axis - - - - - - defined(LIBXML_XPATH_ENABLED) - Traversal function for the "ancestor-or-self" direction he ancestor-or-self axis contains the context node and ancestors of the context node in reverse document order; thus the context node is the first node on the axis, and the context node's parent the second; parent here is defined the same as with the parent axis. - - - - - - defined(LIBXML_XPATH_ENABLED) - Traversal function for the "attribute" direction TODO: support DTD inherited default attributes - - - - - - defined(LIBXML_XPATH_ENABLED) - Traversal function for the "child" direction The child axis contains the children of the context node in document order. - - - - - - defined(LIBXML_XPATH_ENABLED) - Traversal function for the "descendant" direction the descendant axis contains the descendants of the context node in document order; a descendant is a child or a child of a child and so on. - - - - - - defined(LIBXML_XPATH_ENABLED) - Traversal function for the "descendant-or-self" direction the descendant-or-self axis contains the context node and the descendants of the context node in document order; thus the context node is the first node on the axis, and the first child of the context node is the second node on the axis - - - - - - defined(LIBXML_XPATH_ENABLED) - Traversal function for the "following" direction The following axis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute nodes and namespace nodes; the nodes are ordered in document order - - - - - - defined(LIBXML_XPATH_ENABLED) - Traversal function for the "following-sibling" direction The following-sibling axis contains the following siblings of the context node in document order. - - - - - - defined(LIBXML_XPATH_ENABLED) - Traversal function for the "namespace" direction the namespace axis contains the namespace nodes of the context node; the order of nodes on this axis is implementation-defined; the axis will be empty unless the context node is an element We keep the XML namespace node at the end of the list. - - - - - - defined(LIBXML_XPATH_ENABLED) - Traversal function for the "parent" direction The parent axis contains the parent of the context node, if there is one. - - - - - - defined(LIBXML_XPATH_ENABLED) - Traversal function for the "preceding" direction the preceding axis contains all nodes in the same document as the context node that are before the context node in document order, excluding any ancestors and excluding attribute nodes and namespace nodes; the nodes are ordered in reverse document order - - - - - - defined(LIBXML_XPATH_ENABLED) - Traversal function for the "preceding-sibling" direction The preceding-sibling axis contains the preceding siblings of the context node in reverse document order; the first preceding sibling is first on the axis; the sibling preceding that node is the second on the axis and so on. - - - - - - defined(LIBXML_XPATH_ENABLED) - Traversal function for the "self" direction The self axis contains just the context node itself - - - - - - defined(LIBXML_XPATH_ENABLED) - Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set) @nodes is sorted by document order, then #exslSetsNodeLeadingSorted is called. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set) - - - - - - defined(LIBXML_XPATH_ENABLED) - add a new xmlNodePtr to an existing NodeSet - - - - - - defined(LIBXML_XPATH_ENABLED) - add a new namespace node to an existing NodeSet - - - - - - - defined(LIBXML_XPATH_ENABLED) - add a new xmlNodePtr to an existing NodeSet, optimized version when we are sure the node is not already in the set. - - - - - - defined(LIBXML_XPATH_ENABLED) - checks whether @cur contains @val - - - - - - defined(LIBXML_XPATH_ENABLED) - Create a new xmlNodeSetPtr of type double and of value @val - - - - - defined(LIBXML_XPATH_ENABLED) - Removes an xmlNodePtr from an existing NodeSet - - - - - - defined(LIBXML_XPATH_ENABLED) - Namespace nodes in libxml don't match the XPath semantic. In a node set the namespace nodes are duplicated and the next pointer is set to the parent node in the XPath semantic. Check if such a node needs to be freed - - - - - defined(LIBXML_XPATH_ENABLED) - Merges two nodesets, all nodes from @val2 are added to @val1 if @val1 is NULL, a new set is created and copied from @val2 - - - - - - defined(LIBXML_XPATH_ENABLED) - Removes an entry from an existing NodeSet list. - - - - - - defined(LIBXML_XPATH_ENABLED) - Sort the node set in document order - - - - - defined(LIBXML_XPATH_ENABLED) - Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set) @nodes is sorted by document order, then #xmlXPathNodeTrailingSorted is called. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set) - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the normalize-space() XPath function string normalize-space(string?) The normalize-space function returns the argument string with white space normalized by stripping leading and trailing whitespace and replacing sequences of whitespace characters by a single space. Whitespace characters are the same allowed by the S production in XML. If the argument is omitted, it defaults to the context node converted to a string, in other words the value of the context node. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the equal operation on XPath objects content: @arg1 == @arg2 - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the not() XPath function boolean not(boolean) The not function returns true if its argument is false, and false otherwise. - - - - - - defined(LIBXML_XPATH_ENABLED) - Search in the namespace declaration array of the context for the given namespace name associated to the given prefix - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the number() XPath function number number(object?) - - - - - - defined(LIBXML_XPATH_ENABLED) - allocate a new copy of a given object - - - - - defined(LIBXML_XPATH_ENABLED) - Call this routine to speed up XPath computation on static documents. This stamps all the element nodes with the document order Like for line information, the order is kept in the element->content field, the value stored is actually - the node number (starting at -1) to be able to differentiate from line numbers. - - - - - defined(LIBXML_XPATH_ENABLED) - parse an XML namespace non qualified name. [NS 3] NCName ::= (Letter | '_') (NCNameChar)* [NS 4] NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender - - - - - defined(LIBXML_XPATH_ENABLED) - parse an XML name [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* - - - - - defined(LIBXML_XPATH_ENABLED) - Pops a boolean from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. - - - - - defined(LIBXML_XPATH_ENABLED) - Pops an external object from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. - - - - - defined(LIBXML_XPATH_ENABLED) - Pops a node-set from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. - - - - - defined(LIBXML_XPATH_ENABLED) - Pops a number from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. - - - - - defined(LIBXML_XPATH_ENABLED) - Pops a string from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the position() XPath function number position() The position function returns the position of the context node in the context node list. The first position is 1, and so the last position will be equal to last(). - - - - - - defined(LIBXML_XPATH_ENABLED) - Registers all default XPath functions in this context - - - - - defined(LIBXML_XPATH_ENABLED) - Register a new function. If @f is NULL it unregisters the function - - - - - - - defined(LIBXML_XPATH_ENABLED) - Registers an external mechanism to do function lookup. - - - - - - - defined(LIBXML_XPATH_ENABLED) - Register a new function. If @f is NULL it unregisters the function - - - - - - - - defined(LIBXML_XPATH_ENABLED) - Register a new namespace. If @ns_uri is NULL it unregisters the namespace - - - - - - - defined(LIBXML_XPATH_ENABLED) - Register a new variable value. If @value is NULL it unregisters the variable - - - - - - - defined(LIBXML_XPATH_ENABLED) - register an external mechanism to do variable lookup - - - - - - - defined(LIBXML_XPATH_ENABLED) - Register a new variable value. If @value is NULL it unregisters the variable - - - - - - - - defined(LIBXML_XPATH_ENABLED) - Cleanup the XPath context data associated to registered functions - - - - - defined(LIBXML_XPATH_ENABLED) - Cleanup the XPath context data associated to registered variables - - - - - defined(LIBXML_XPATH_ENABLED) - Cleanup the XPath context data associated to registered variables - - - - - defined(LIBXML_XPATH_ENABLED) - Initialize the context to the root of the document - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the round() XPath function number round(number) The round function returns the number that is closest to the argument and that is an integer. If there are two such numbers, then the one that is even is returned. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the starts-with() XPath function boolean starts-with(string, string) The starts-with function returns true if the first argument string starts with the second argument string, and otherwise returns false. - - - - - - defined(LIBXML_XPATH_ENABLED) - [30a] Float ::= Number ('e' Digits?)? [30] Number ::= Digits ('.' Digits?)? | '.' Digits [31] Digits ::= [0-9]+ Compile a Number in the string In complement of the Number expression, this function also handles negative values : '-' Number. - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the string() XPath function string string(object?) The string function converts an object to a string as follows: - A node-set is converted to a string by returning the value of the node in the node-set that is first in document order. If the node-set is empty, an empty string is returned. - A number is converted to a string as follows + NaN is converted to the string NaN + positive zero is converted to the string 0 + negative zero is converted to the string 0 + positive infinity is converted to the string Infinity + negative infinity is converted to the string -Infinity + if the number is an integer, the number is represented in decimal form as a Number with no decimal point and no leading zeros, preceded by a minus sign (-) if the number is negative + otherwise, the number is represented in decimal form as a Number including a decimal point with at least one digit before the decimal point and at least one digit after the decimal point, preceded by a minus sign (-) if the number is negative; there must be no leading zeros before the decimal point apart possibly from the one required digit immediately before the decimal point; beyond the one required digit after the decimal point there must be as many, but only as many, more digits as are needed to uniquely distinguish the number from all other IEEE 754 numeric values. - The boolean false value is converted to the string false. The boolean true value is converted to the string true. If the argument is omitted, it defaults to a node-set with the context node as its only member. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the string-length() XPath function number string-length(string?) The string-length returns the number of characters in the string (see [3.6 Strings]). If the argument is omitted, it defaults to the context node converted to a string, in other words the value of the context node. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the subtraction operation on XPath objects: The numeric operators convert their operands to numbers as if by calling the number function. - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the substring-after() XPath function string substring-after(string, string) The substring-after function returns the substring of the first argument string that follows the first occurrence of the second argument string in the first argument string, or the empty stringi if the first argument string does not contain the second argument string. For example, substring-after("1999/04/01","/") returns 04/01, and substring-after("1999/04/01","19") returns 99/04/01. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the substring-before() XPath function string substring-before(string, string) The substring-before function returns the substring of the first argument string that precedes the first occurrence of the second argument string in the first argument string, or the empty string if the first argument string does not contain the second argument string. For example, substring-before("1999/04/01","/") returns 1999. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the substring() XPath function string substring(string, number, number?) The substring function returns the substring of the first argument starting at the position specified in the second argument with length specified in the third argument. For example, substring("12345",2,3) returns "234". If the third argument is not specified, it returns the substring starting at the position specified in the second argument and continuing to the end of the string. For example, substring("12345",2) returns "2345". More precisely, each character in the string (see [3.6 Strings]) is considered to have a numeric position: the position of the first character is 1, the position of the second character is 2 and so on. The returned substring contains those characters for which the position of the character is greater than or equal to the second argument and, if the third argument is specified, less than the sum of the second and third arguments; the comparisons and addition used for the above follow the standard IEEE 754 rules. Thus: - substring("12345", 1.5, 2.6) returns "234" - substring("12345", 0, 3) returns "12" - substring("12345", 0 div 0, 3) returns "" - substring("12345", 1, 0 div 0) returns "" - substring("12345", -42, 1 div 0) returns "12345" - substring("12345", -1 div 0, 1 div 0) returns "" - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the sum() XPath function number sum(node-set) The sum function returns the sum of the values of the nodes in the argument node-set. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set) @nodes1 and @nodes2 are sorted by document order, then #xmlXPathTrailingSorted is called. - - - - - - defined(LIBXML_XPATH_ENABLED) - Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set) - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the translate() XPath function string translate(string, string, string) The translate function returns the first argument string with occurrences of characters in the second argument string replaced by the character at the corresponding position in the third argument string. For example, translate("bar","abc","ABC") returns the string BAr. If there is a character in the second argument string with no character at a corresponding position in the third argument string (because the second argument string is longer than the third argument string), then occurrences of that character in the first argument string are removed. For example, translate("--aaa--","abc-","ABC") - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the true() XPath function boolean true() - - - - - - defined(LIBXML_XPATH_ENABLED) - Implement the unary - operation on an XPath object The numeric operators convert their operands to numbers as if by calling the number function. - - - - - defined(LIBXML_XPATH_ENABLED) - Search in the Variable array of the context for the given variable value. - - - - - - defined(LIBXML_XPATH_ENABLED) - Prototype for callbacks used to plug variable lookup in the XPath engine. - - - - - - - defined(LIBXML_XPATH_ENABLED) - Search in the Variable array of the context for the given variable value. - - - - - - - defined(LIBXML_XPATH_ENABLED) - Wraps a string into an XPath object. - - - - - defined(LIBXML_XPATH_ENABLED) - Wraps the @val data into an XPath object. - - - - - defined(LIBXML_XPATH_ENABLED) - Wrap the Nodeset @val in a new xmlXPathObjectPtr - - - - - defined(LIBXML_XPATH_ENABLED) - Wraps the @val string into an XPath object. - - - - - defined(LIBXML_XPATH_ENABLED) - Formats an error message. - - - - - - - - defined(LIBXML_XPTR_ENABLED) - Build a node list tree copy of the XPointer result. This will drop Attributes and Namespace declarations. - - - - - defined(LIBXML_XPTR_ENABLED) - Evaluate the XPath Location Path in the given context. - - - - - - defined(LIBXML_XPTR_ENABLED) - [8] Predicate ::= '[' PredicateExpr ']' [9] PredicateExpr ::= Expr Evaluate a predicate as in xmlXPathEvalPredicate() but for a Location Set instead of a node set - - - - - defined(LIBXML_XPTR_ENABLED) - Free the LocationSet compound (not the actual ranges !). - - - - - defined(LIBXML_XPTR_ENABLED) - add a new xmlXPathObjectPtr to an existing LocationSet If the location already exist in the set @val is freed. - - - - - - defined(LIBXML_XPTR_ENABLED) - Create a new xmlLocationSetPtr of type double and of value @val - - - - - defined(LIBXML_XPTR_ENABLED) - Removes an xmlXPathObjectPtr from an existing LocationSet - - - - - - defined(LIBXML_XPTR_ENABLED) - Merges two rangesets, all ranges from @val2 are added to @val1 - - - - - - defined(LIBXML_XPTR_ENABLED) - Removes an entry from an existing LocationSet list. - - - - - - defined(LIBXML_XPTR_ENABLED) - Create a new xmlXPathObjectPtr of type range using a single nodes - - - - - defined(LIBXML_XPTR_ENABLED) - Create a new XPointer context - - - - - - - defined(LIBXML_XPTR_ENABLED) - Create a new xmlXPathObjectPtr of type LocationSet and initialize it with all the nodes from @set - - - - - defined(LIBXML_XPTR_ENABLED) - Create a new xmlXPathObjectPtr of type LocationSet and initialize it with the single range made of the two nodes @start and @end - - - - - - defined(LIBXML_XPTR_ENABLED) - Create a new xmlXPathObjectPtr of type range - - - - - - - - defined(LIBXML_XPTR_ENABLED) - Create a new xmlXPathObjectPtr of type range from a not to an object - - - - - - defined(LIBXML_XPTR_ENABLED) - Create a new xmlXPathObjectPtr of type range from a node to a point - - - - - - defined(LIBXML_XPTR_ENABLED) - Create a new xmlXPathObjectPtr of type range using 2 nodes - - - - - - defined(LIBXML_XPTR_ENABLED) - Create a new xmlXPathObjectPtr of type range from a point to a node - - - - - - defined(LIBXML_XPTR_ENABLED) - Create a new xmlXPathObjectPtr of type range using 2 Points - - - - - - defined(LIBXML_XPTR_ENABLED) - Implement the range-to() XPointer function - - - - - - defined(LIBXML_XPTR_ENABLED) - Wrap the LocationSet @val in a new xmlXPathObjectPtr - - - - - diff --git a/src/tools/docbook/libxml2/doc/libxml2.xsa b/src/tools/docbook/libxml2/doc/libxml2.xsa deleted file mode 100644 index 0cfdca564b..0000000000 --- a/src/tools/docbook/libxml2/doc/libxml2.xsa +++ /dev/null @@ -1,16 +0,0 @@ - - - - - Daniel Veillard - daniel@veillard.com - http://veillard.com/ - - - libxml2 - 2.6.25 - Jun 6 2006: - http://xmlsoft.org/ - Do not use or package 2.6.25 - - diff --git a/src/tools/docbook/libxml2/doc/namespaces.html b/src/tools/docbook/libxml2/doc/namespaces.html deleted file mode 100644 index a4d6ace1e5..0000000000 --- a/src/tools/docbook/libxml2/doc/namespaces.html +++ /dev/null @@ -1,50 +0,0 @@ - - -Namespaces
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    Namespaces

    Main Menu
    Related links

    The libxml2 library implements XML -namespacessupportbyrecognizing namespace constructs in the input, and -does namespacelookupautomatically when building the DOM tree. A namespace -declarationisassociated with an in-memory structure and all elements or -attributeswithinthat namespace point to it. Hence testing the namespace is a -simple andfastequality operation at the user level.

    I suggest that people using libxml2 use a namespace, and declare it -intheroot element of their document as the default namespace. Then they -don'tneedto use the prefix in the content but we will have a basis for -futuresemanticrefinement and merging of data from different sources. This -doesn'tincreasethe size of the XML output significantly, but significantly -increasesitsvalue in the long-term. Example:

    <mydoc xmlns="http://mydoc.example.org/schemas/">
    -   <elem1>...</elem1>
    -   <elem2>...</elem2>
    -</mydoc>

    The namespace value has to be an absolute URL, but the URL doesn't -havetopoint to any existing resource on the Web. It will bind all the -elementandattributes with that URL. I suggest to use an URL within a -domainyoucontrol, and that the URL should contain some kind of version -informationifpossible. For example, -"http://www.gnome.org/gnumeric/1.0/"isagood namespace scheme.

    Then when you load a file, make sure that a namespace -carryingtheversion-independent prefix is installed on the root element of -yourdocument,and if the version information don't match something you know, -warnthe userand be liberal in what you accept as the input. Also do *not* try -tobasenamespace checking on the prefix value. <foo:text> may be -exactlythesame as <bar:text> in another document. What really matters -is theURIassociated with the element or the attribute, not the prefix string -(whichisjust a shortcut for the full URI). In libxml, element and attributes -haveannsfield pointing to an xmlNs structure detailing -thenamespaceprefix and its URI.

    @@Interfaces@@

    xmlNodePtr node;
    -if(!strncmp(node->name,"mytag",5)
    -  && node->ns
    -  && !strcmp(node->ns->href,"http://www.mysite.com/myns/1.0")) {
    -  ...
    -}

    Usually people object to using namespaces together with validitychecking.I -will try to make sure that using namespaces won't break validitychecking,so -even if you plan to use or currently are using validation Istronglysuggest -adding namespaces to your document. A default -namespaceschemexmlns="http://...."should not break validity even -onlessflexible parsers. Using namespaces to mix and differentiate -contentcomingfrom multiple DTDs will certainly break current validation -schemes. Tochecksuch documents one needs to use schema-validation, which is -supportedinlibxml2 as well. See relagx-ngand w3c-schema.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/newapi.xsl b/src/tools/docbook/libxml2/doc/newapi.xsl deleted file mode 100644 index 17d0464ac4..0000000000 --- a/src/tools/docbook/libxml2/doc/newapi.xsl +++ /dev/null @@ -1,764 +0,0 @@ - - - - - - - - - - - - - - - html - ../ - - - API Menu - -
    - - -
    - -
    - - - - - -
    - - - - - - - -
    -
    - -
    -
    - -
    - - - - - - - -
    -
    - API Indexes -
    -
    - -
    - - - - - - - -
    -
    - Related links -
    -
    - -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -    #define 
    -    
    -
    - - -
    -    Variable 
    -    
    -      
    -    
    -     
    -    
    -    
    -    
    -
    -
    -    
    -
    - - - -
    -    
    -      
    -	Enum 
    -	
    -	
    -
    -      
    -      
    -	Typedef 
    -	
    -	  
    -	
    -	 
    -	
    -	
    -
    -      
    -    
    -    
    -
    - - - -

    Enum

    -
    -      Enum 
    -      
    -       {
    -
    -      
    -        
    -            
    -        
    -         = 
    -        
    -        
    -	   : 
    -	  
    -	    
    -	  
    -        
    -        
    -
    -      
    -      }
    -
    -    
    -
    - - -
    -    Structure 
    - - - - The content of this structure is not made public by the API. - - -
    -
    - - -

    Structure

    -
    -    Structure 
    - { - - - The content of this structure is not made public by the API. - - - - - - - - - - - : - - - - - - - - } -
    -
    - - - -

    Macro:

    -
    #define 
    -

    - - - -

    - -
    - - - - - - -
    -    
    -      
    -    
    -    	
    -    
    -    
    -      	
    -    
    -    
    -      	
    -    
    -    	(
    -    
    -      void
    -    
    -    
    -      
    -        
    -      
    -       
    -      
    -      
    -        , 
    - - - - - - - -
    -
    - ) -
    - -
    - - - - - - -
    -    Function type: 
    -    
    -    
    -
    -    
    -      
    -    
    -    	
    -    
    -    
    -      	
    -    
    -    
    -      	
    -    
    -    	(
    -    
    -      void
    -    
    -    
    -      
    -        
    -      
    -       
    -      
    -      
    -        , 
    - - - - - - - -
    -
    - ) - -
    - - -
    - - - - - - -

    - - Function type: - -

    -
    -    Function type: 
    -    
    -    
    -
    -    
    -      
    -    
    -    	
    -    
    -    
    -      	
    -    
    -    
    -      	
    -    
    -    	(
    -    
    -      void
    -    
    -    
    -      
    -        
    -      
    -       
    -      
    -      
    -        , 
    - - - - - - - -
    -
    - ) - -
    -

    - - - -

    - -
    - - - - - - - - - - - - -
    : - - - -
    Returns: - - - -
    -
    -
    - - -
    - - - - - - -

    Function:

    -
    -    
    -      
    -    
    -    	
    -    
    -    
    -      	
    -    
    -    
    -      	
    -    
    -    	(
    -    
    -      void
    -    
    -    
    -      
    -        
    -      
    -       
    -      
    -      
    -        , 
    - - - - - - - -
    -
    - )
    - - -
    -

    - - - -

    - - -
    - - - - - - - - - - - - -
    : - - - -
    Returns: - - - -
    -
    -
    - - - - - - - - - - - -

    This module is deprecated

    -
    - -

    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - Module from - - - - - - <xsl:value-of select="$title"/> - - - - - - - - - -
    - - - - - -
    - - - - - - -
    - - - - -
    - - - - -
    - - - - -
    -

    Table of Contents

    - -

    Description

    - - - -
    -
    - -

    Table of Contents

    - - - - - - - - - - - - - - - -

    Description

    - - - - - - - - - - - - - - - - - -
    -
    -

    Daniel Veillard

    -
    -
    -
    -
    -
    - - -
    -
    - - - -
  • - - : - -
  • -
    - - - - Reference Manual for - - - - - - <xsl:value-of select="$title"/> - - - - - - - - - -
    - - - - - -
    - - - - - - -
    - - - - -
    - - - - -
    -

    Table of Contents

    -
      - -
    -

    Daniel Veillard

    -
    -
    -
    -
    -
    - - -
    -
    - - - - - - - - - - - - - - -
    diff --git a/src/tools/docbook/libxml2/doc/news.html b/src/tools/docbook/libxml2/doc/news.html deleted file mode 100644 index b67feaa119..0000000000 --- a/src/tools/docbook/libxml2/doc/news.html +++ /dev/null @@ -1,1260 +0,0 @@ - - -Releases
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    Releases

    Main Menu
    Related links

    Items not finished and worked on, get in touch with the list if you -wanttohelp those

    • More testing on RelaxNG
    • -
    • Finishing up XMLSchemas
    • -

    The change logdescribes the recents -commitstothe CVScode -base.

    There is the list of public releases:

    2.6.26: Jun 6 2006

    • portability fixes: Python detection (Joseph Sacco), compilation - error(William Brack and Graham Bennett), LynxOS patch (Olli Savia)
    • -
    • bug fixes: encoding buffer problem, mix of code and data in - xmlIO.c(Kjartan Maraas), entities in XSD validation (Kasimier Buchcik), - variousXSD validation fixes (Kasimier), memory leak in pattern (Rob - Richards andKasimier), attribute with colon in name (Rob Richards), XPath - leak inerror reporting (Aleksey Sanin), XInclude text include of - selfdocument.
    • -
    • improvements: Xpath optimizations (Kasimier), XPath object - cache(Kasimier)
    • -

    2.6.25: Jun 6 2006:

    Do not use or package 2.6.25

    2.6.24: Apr 28 2006

    • Portability fixes: configure on Windows, testapi compile - onwindows(Kasimier Buchcik, venkat naidu), Borland C++ 6 compile - (EricZurcher),HP-UX compiler workaround (Rick Jones), xml2-config - bugfix,gcc-4.1cleanups, Python detection scheme (Joseph Sacco), UTF-8 - file pathsonWindows (Roland Schwingel).
    • -
    • Improvements: xmlDOMWrapReconcileNamespaces - xmlDOMWrapCloneNode(KasimierBuchcik), XML catalog debugging (Rick Jones), - update to Unicode4.01.
    • -
    • Bug fixes: xmlParseChunk() problem in 2.6.23, - xmlParseInNodeContext()onHTML docs, URI behaviour on Windows (Rob - Richards), comment streamingbug,xmlParseComment (with William Brack), - regexp bug fixes (DV &YouriGolovanov), xmlGetNodePath on text/CDATA - (Kasimier),one Relax-NGinterleave bug, xmllint --path and --valid,XSD - bugfixes (Kasimier),remove debugleft in Python bindings (Nic Ferrier), - xmlCatalogAdd bug(Martin Cole),xmlSetProp fixes (Rob Richards), HTML - IDness (RobRichards), a largenumber of cleanups and small fixes based on - Coverityreports, bugin character ranges, Unicode tables const (Aivars - Kalvans),schemasfix (Stefan Kost), xmlRelaxNGParse - errordeallocation,xmlSchemaAddSchemaDoc error deallocation, error - handling onunallowedcode point, ixmllint --nonet to never reach the net - (GaryCoady),line break in writer after end PI (Jason Viers).
    • -
    • Documentation: man pages updates and cleanups (Daniel Leidert).
    • -
    • New features: Relax NG structure error handlers.
    • -

    2.6.23: Jan 5 2006

    • portability fixes: Windows (Rob Richards), getaddrinfo on - Windows(KoljaNowak, Rob Richards), icc warnings (Kjartan - Maraas),--with-minimumcompilation fixes (William Brack), error case - handling fixon Solaris(Albert Chin), don't use 'list' as parameter name - reported bySamuel DiazGarcia, more old Unices portability fixes (Albert - Chin),MinGW compilation(Mark Junker), HP-UX compiler warnings - (RickJones),
    • -
    • code cleanup: xmlReportError (Adrian Mouat), removexmlBufferClose(Geert - Jansen), unreachable code (Oleksandr Kononenko),refactoringparsing code - (Bjorn Reese)
    • -
    • bug fixes: xmlBuildRelativeURI and empty path - (WilliamBrack),combinatory explosion and performances in regexp code, - leakinxmlTextReaderReadString(), xmlStringLenDecodeEntities - problem(MassimoMorara), Identity Constraints bugs and a segfault - (KasimierBuchcik),XPath pattern based evaluation bugs (DV - &Kasimier),xmlSchemaContentModelDump() memory leak (Kasimier), - potentialleak inxmlSchemaCheckCSelectorXPath(), xmlTextWriterVSprintf() - misuseofvsnprintf (William Brack), XHTML serialization fix (Rob - Richards),CRLFsplit problem (William), issues with non-namespaced - attributesinxmlAddChild() xmlAddNextSibling() and xmlAddPrevSibling() - (RobRichards),HTML parsing of script, Python must not output to stdout - (NicFerrier),exclusive C14N namespace visibility (Aleksey Sanin), - XSDdataypetotalDigits bug (Kasimier Buchcik), error handling when writing - toanxmlBuffer (Rob Richards), runtest schemas error not - reported(HisashiFujinaka), signed/unsigned problem in date/time code - (AlbertChin), fixXSI driven XSD validation (Kasimier), parsing of - xs:decimal(Kasimier),fix DTD writer output (Rob Richards), leak - inxmlTextReaderReadInnerXml(Gary Coady), regexp bug affecting - schemas(Kasimier), configuration ofruntime debugging - (Kasimier),xmlNodeBufGetContent bug on entity refs(Oleksandr - Kononenko),xmlRegExecPushString2 bug (Sreeni Nair),compilation and build - fixes(Michael Day), removed dependancies onxmlSchemaValidError - (Kasimier), bugwith <xml:foo/>, more XPathpattern based evaluation - fixes(Kasimier)
    • -
    • improvements: XSD Schemas redefinitions/restrictions - (KasimierBuchcik),node copy checks and fix for attribute (Rob Richards), - countedtransitionbug in regexps, ctxt->standalone = -2 to indicate - nostandaloneattribute was found, add - xmlSchemaSetParserStructuredErrors()(KasimierBuchcik), add - xmlTextReaderSchemaValidateCtxt() to API(Kasimier), handlegzipped HTTP - resources (Gary Coady), addhtmlDocDumpMemoryFormat. (RobRichards),
    • -
    • documentation: typo (Michael Day), libxml man page (Albert - Chin),savefunction to XML buffer (Geert Jansen), small doc fix - (AronStansvik),
    • -

    2.6.22: Sep 12 2005

    • build fixes: compile without schematron (Stéphane Bidoul)
    • -
    • bug fixes: xmlDebugDumpNode on namespace node (Oleg - Paraschenko)i,CDATApush parser bug, xmlElemDump problem with XHTML1 - doc,XML_FEATURE_xxxclash with expat headers renamed XML_WITH_xxx, fix - someoutput formattingfor meta element (Rob Richards), script and - styleXHTML1 serialization(David Madore), Attribute derivation fixups in - XSD(Kasimier Buchcik),better IDC error reports (Kasimier Buchcik)
    • -
    • improvements: add XML_SAVE_NO_EMPTY xmlSaveOption (Rob - Richards),addXML_SAVE_NO_XHTML xmlSaveOption, XML Schemas improvements - preparingforderive (Kasimier Buchcik).
    • -
    • documentation: generation of gtk-doc like docs, - integrationwithdevhelp.
    • -

    2.6.21: Sep 4 2005

    • build fixes: Cygwin portability fixes (Gerrit P. - Haase),callingconvention problems on Windows (Marcus Boerger), cleanups - based onLinus'sparse tool, update of win32/configure.js (Rob Richards), - removewarningson Windows(Marcus Boerger), compilation without SAX1, - detectionof thePython binary, use $GCC inestad of $CC = 'gcc' (Andrew - W.Nosenko),compilation/link with threads and old gcc, compile problem - byC370 onZ/OS,
    • -
    • bug fixes: http_proxy environments (Peter Breitenlohner), HTML - UTF-8bug(Jiri Netolicky), XPath NaN compare bug (William - Brack),htmlParseScriptpotential bug, Schemas regexp handling of spaces, - Base64Schemascomparisons NIST passes, automata build error - xsd:all,xmlGetNodePath fornamespaced attributes (Alexander Pohoyda), - xmlSchemasforeign namespaceshandling, XML Schemas facet comparison - (KupriyanovAnatolij),xmlSchemaPSimpleTypeErr error report (Kasimier - Buchcik), xml:namespaceahndling in Schemas (Kasimier), empty model group - in Schemas(Kasimier),wilcard in Schemas (Kasimier), URI composition - (William),xs:anyType inSchemas (Kasimier), Python resolver emmitting - errormessages directly,Python xmlAttr.parent (Jakub Piotr Clapa), trying - tofix the file path/URIconversion, xmlTextReaderGetAttribute fix - (RobRichards),xmlSchemaFreeAnnot memleak (Kasimier), HTML - UTF-8serialization, streamingXPath, Schemas determinism detection - problem,XInclude bug, Schemascontext type (Dean Hill), validation fix - (DerekPoon),xmlTextReaderGetAttribute[Ns] namespaces (Rob Richards), - Schemastype fix(Kuba Nowakowski), UTF-8 parser bug, error in - encodinghandling,xmlGetLineNo fixes, bug on entities handling, entity - nameextraction inerror handling with XInclude, text nodes in HTML body - tags(Gary Coady),xml:id and IDness at the treee level fixes, XPath - streamingpatternsbugs.
    • -
    • improvements: structured interfaces for schemas and RNG - errorreports(Marcus Boerger), optimization of the char data inner - loopparsing(thanks to Behdad Esfahbod for the idea), schematron - validationthoughnot finished yet, xmlSaveOption to omit XML declaration, - keyrefmatcherror reports (Kasimier), formal expression handling code - notpluggedyet, more lax mode for the HTML parser, parser - XML_PARSE_COMPACToptionfor text nodes allocation.
    • -
    • documentation: xmllint man page had --nonet duplicated
    • -

    2.6.20: Jul 10 2005

    • build fixes: Windows build (Rob Richards), Mingw - compilation(IgorZlatkovic), Windows Makefile (Igor), gcc warnings - (Kasimierandandriy@google.com), use gcc weak references to pthread to - avoidthepthread dependancy on Linux, compilation problem (Steve - Nairn),compilingof subset (Morten Welinder), IPv6/ss_family compilation - (WilliamBrack),compilation when disabling parts of the library, - standalonetestdistribution.
    • -
    • bug fixes: bug in lang(), memory cleanup on errors (William - Brack),HTTPquery strings (Aron Stansvik), memory leak in DTD - (William),integeroverflow in XPath (William), nanoftp buffer size, - pattern "." apthfixup(Kasimier), leak in tree reported by Malcolm Rowe, - replaceNodepatch(Brent Hendricks), CDATA with NULL content (Mark Vakoc), - xml:basefixupon XInclude (William), pattern fixes (William), attribute - buginexclusive c14n (Aleksey Sanin), xml:space and xml:lang with - SAX2(RobRichards), namespace trouble in complex parsing (Malcolm Rowe), - XSDtypeQNames fixes (Kasimier), XPath streaming fixups (William), - RelaxNGbug(Rob Richards), Schemas for Schemas fixes (Kasimier), removal - of ID(RobRichards), a small RelaxNG leak, HTML parsing in push mode - bug(JamesBursa), failure to detect UTF-8 parsing bugs in - CDATAsections,areBlanks() heuristic failure, duplicate attributes in - DTDbug(William).
    • -
    • improvements: lot of work on Schemas by Kasimier Buchcik - bothonconformance and streaming, Schemas validation messages - (KasimierBuchcik,Matthew Burgess), namespace removal at the python - level(BrentHendricks), Update to new Schemas regression tests - fromW3C/Nist(Kasimier), xmlSchemaValidateFile() (Kasimier), - implementationofxmlTextReaderReadInnerXml and xmlTextReaderReadOuterXml - (JamesWert),standalone test framework and programs, new DOM - importAPIsxmlDOMWrapReconcileNamespaces() - xmlDOMWrapAdoptNode()andxmlDOMWrapRemoveNode(), extension of xmllint - capabilities for SAXandSchemas regression tests, xmlStopParser() - available in pull modetoo,ienhancement to xmllint --shell namespaces - support, Windows port ofthestandalone testing tools (Kasimier - andWilliam),xmlSchemaValidateStream() xmlSchemaSAXPlug() - andxmlSchemaSAXUnplug() SAXSchemas APIs, Schemas xmlReader support.
    • -

    2.6.19: Apr 02 2005

    • build fixes: drop .la from RPMs, --with-minimum build - fix(WilliamBrack), use XML_SOCKLEN_T instead of SOCKLEN_T because it - breakswith AIX5.3 compiler, fixed elfgcchack.h generation and PLT - reductioncode onLinux/ELF/gcc4
    • -
    • bug fixes: schemas type decimal fixups (William Brack), - xmmlintreturncode (Gerry Murphy), small schemas fixes (Matthew Burgess - andGUYFabrice), workaround "DAV:" namespace brokeness in c14n - (AlekseySanin),segfault in Schemas (Kasimier Buchcik), Schemas - attributevalidation(Kasimier), Prop related functions and - xmlNewNodeEatName (RobRichards),HTML serialization of name attribute on a - elements, Pythonerror handlersleaks and improvement (Brent Hendricks), - uninitializedvariable inencoding code, Relax-NG validation bug, potential - crashifgnorableWhitespace is NULL, xmlSAXParseDoc and - xmlParseDocsignatures,switched back to assuming UTF-8 in case no encoding - is givenatserialization time
    • -
    • improvements: lot of work on Schemas by Kasimier Buchcik - onfacetschecking and also mixed handling.
    • -
    • -

    2.6.18: Mar 13 2005

    • build fixes: warnings (Peter Breitenlohner), - testapi.cgeneration,Bakefile support (Francesco Montorsi), Windows - compilation(Joel Reed),some gcc4 fixes, HP-UX portability fixes (Rick - Jones).
    • -
    • bug fixes: xmlSchemaElementDump namespace (Kasimier Buchcik), - pushandxmlreader stopping on non-fatal errors, thread support - fordictionnariesreference counting (Gary Coady), internal subset and - pushproblem, URLsaved in xmlCopyDoc, various schemas bug fixes - (Kasimier),Python pathsfixup (Stephane Bidoul), xmlGetNodePath and - namespaces,xmlSetNsProp fix(Mike Hommey), warning should not count as - error (WilliamBrack),xmlCreatePushParser empty chunk, XInclude parser - flags (William),cleanupFTP and HTTP code to reuse the uri parsing and - IPv6(William),xmlTextWriterStartAttributeNS fix (Rob - Richards),XMLLINT_INDENT beingempty (William), xmlWriter bugs (Rob - Richards),multithreading on Windows(Rich Salz), xmlSearchNsByHref fix - (Kasimier),Python binding leak (BrentHendricks), aliasing bug exposed by - gcc4 ons390, xmlTextReaderNext bug(Rob Richards), Schemas decimal type - fixes(William Brack),xmlByteConsumed static buffer (Ben Maurer).
    • -
    • improvement: speedup parsing comments and DTDs, dictionnary - supportforhash tables, Schemas Identity constraints (Kasimier), - streamingXPathsubset, xmlTextReaderReadString added (Bjorn Reese), - Schemascanonicalvalues handling (Kasimier), add - xmlTextReaderByteConsumed(AronStansvik),
    • -
    • Documentation: Wiki support (Joel Reed)
    • -

    2.6.17: Jan 16 2005

    • build fixes: Windows, warnings removal (William - Brack),maintainer-cleandependency(William), build in a different - directory(William), fixing--with-minimum configure build (William), BeOS - build(Marcin Konicki),Python-2.4 detection (William), compilation on AIX - (DanMcNichol)
    • -
    • bug fixes: xmlTextReaderHasAttributes (Rob - Richards),xmlCtxtReadFile()to use the catalog(s), loop on output (William - Brack),XPath memory leak,ID deallocation problem (Steve Shepard), - debugDumpNodecrash (William),warning not using error callback (William), - xmlStopParserbug (William),UTF-16 with BOM on DTDs (William), namespace - bug on emptyelements inpush mode (Rob Richards), line and col - computations fixups(AlekseySanin), xmlURIEscape fix (William), - xmlXPathErr on bad range(William),patterns with too many steps, bug in - RNG choice optimization,line numbersometimes missing.
    • -
    • improvements: XSD Schemas (Kasimier Buchcik), pythongenerator(William), - xmlUTF8Strpos speedup (William), unicode Pythonstrings(William), XSD - error reports (Kasimier Buchcik), Python __str__callserialize().
    • -
    • new APIs: added xmlDictExists(), GetLineNumber and - GetColumnNumberforthe xmlReader (Aleksey Sanin), Dynamic Shared Libraries - APIs (mostlyJoelReed), error extraction API from regexps, new XMLSave - option forformat(Phil Shafer)
    • -
    • documentation: site improvement (John Fleck), FAQ entries(William).
    • -

    2.6.16: Nov 10 2004

    • general hardening and bug fixing crossing all the API based - onnewautomated regression testing
    • -
    • build fix: IPv6 build and test on AIX (Dodji Seketeli)
    • -
    • bug fixes: problem with XML::Libxml reported by Petr - Pajas,encodingconversion functions return values, UTF-8 bug affecting - XPathreported byMarkus Bertheau, catalog problem with NULL entries - (WilliamBrack)
    • -
    • documentation: fix to xmllint man page, some API - functiondescritpionwere updated.
    • -
    • improvements: DTD validation APIs provided at the Python - level(BrentHendricks)
    • -

    2.6.15: Oct 27 2004

    • security fixes on the nanoftp and nanohttp modules
    • -
    • build fixes: xmllint detection bug in configure, building - outsidethesource tree (Thomas Fitzsimmons)
    • -
    • bug fixes: HTML parser on broken ASCII chars in names - (William),Pythonpaths (Malcolm Tredinnick), xmlHasNsProp and default - namespace(William),saving to python file objects (Malcolm Tredinnick), - DTD lookupfix(Malcolm), save back <group> in catalogs (William), - treebuildfixes (DV and Rob Richards), Schemas memory bug, structured - errorhandleron Python 64bits, thread local memory deallocation, memory - leakreportedby Volker Roth, xmlValidateDtd in the presence of an - internalsubset,entities and _private problem (William), - xmlBuildRelativeURIerror(William).
    • -
    • improvements: better XInclude error reports (William), - treedebuggingmodule and tests, convenience functions at the Reader - API(GrahamBennett), add support for PI in the HTML parser.
    • -

    2.6.14: Sep 29 2004

    • build fixes: configure paths for xmllint and - xsltproc,compilationwithout HTML parser, compilation warning cleanups - (WilliamBrack &Malcolm Tredinnick), VMS makefile update (Craig - Berry),
    • -
    • bug fixes: xmlGetUTF8Char (William Brack), QName - properties(KasimierBuchcik), XInclude testing, Notation - serialization,UTF8ToISO8859xtranscoding (Mark Itzcovitz), lots of XML - Schemas cleanupand fixes(Kasimier), ChangeLog cleanup (Stepan Kasal), - memory fixes (MarkVakoc),handling of failed realloc(), out of bound array - adressing inSchemasdate handling, Python space/tabs cleanups (Malcolm - Tredinnick),NMTOKENSE20 validation fix (Malcolm),
    • -
    • improvements: added W3C XML Schemas testsuite (Kasimier - Buchcik),addxmlSchemaValidateOneElement (Kasimier), Python - exceptionhierearchy(Malcolm Tredinnick), Python libxml2 driver - improvement(MalcolmTredinnick), Schemas support - forxsi:schemaLocation,xsi:noNamespaceSchemaLocation, xsi:type - (KasimierBuchcik)
    • -

    2.6.13: Aug 31 2004

    • build fixes: Windows and zlib (Igor Zlatkovic), -O flag withgcc,Solaris - compiler warning, fixing RPM BuildRequires,
    • -
    • fixes: DTD loading on Windows (Igor), Schemas error - reportsAPIs(Kasimier Buchcik), Schemas validation crash, xmlCheckUTF8 - (WilliamBrackand Julius Mittenzwei), Schemas facet check (Kasimier), - defaultnamespaceproblem (William), Schemas hexbinary empty values, - encodingerror couldgenrate a serialization loop.
    • -
    • Improvements: Schemas validity improvements (Kasimier), added - --pathand--load-trace options to xmllint
    • -
    • documentation: tutorial update (John Fleck)
    • -

    2.6.12: Aug 22 2004

    • build fixes: fix --with-minimum, elfgcchack.h - fixes(PeterBreitenlohner), perl path lookup (William), diff on - Solaris(AlbertChin), some 64bits cleanups.
    • -
    • Python: avoid a warning with 2.3 (William Brack), tab and - spacemixes(William), wrapper generator fixes (William), Cygwin support - (GerritP.Haase), node wrapper fix (Marc-Antoine Parent), XML - Schemassupport(Torkel Lyng)
    • -
    • Schemas: a lot of bug fixes and improvements from Kasimier Buchcik
    • -
    • fixes: RVT fixes (William), XPath context resets bug - (William),memorydebug (Steve Hay), catalog white space handling - (PeterBreitenlohner),xmlReader state after attribute reading - (William),structured errorhandler (William), XInclude generated xml:base - fixup(William), Windowsmemory reallocation problem (Steve Hay), Out of - Memoryconditionshandling (William and Olivier Andrieu), htmlNewDoc() - charsetbug,htmlReadMemory init (William), a posteriori validation - DTDbase(William), notations serialization missing, - xmlGetNodePath(Dodji),xmlCheckUTF8 (Diego Tartara), missing line numbers - onentity(William)
    • -
    • improvements: DocBook catalog build scrip (William), - xmlcatalogtool(Albert Chin), xmllint --c14n option, no_proxy environment - (MikeHommey),xmlParseInNodeContext() addition, extend xmllint --shell, - allowXIncludeto not generate start/end nodes, extend xmllint --version - toinclude CVStag (William)
    • -
    • documentation: web pages fixes, validity API docs fixes(William)schemas - API fix (Eric Haszlakiewicz), xmllint man page (JohnFleck)
    • -

    2.6.11: July 5 2004

    • Schemas: a lot of changes and improvements by Kasimier - Buchcikforattributes, namespaces and simple types.
    • -
    • build fixes: --with-minimum (William Brack), some gcccleanup(William), - --with-thread-alloc (William)
    • -
    • portability: Windows binary package change (Igor Zlatkovic),Catalogpath - on Windows
    • -
    • documentation: update to the tutorial (John Fleck), xmllint - returncode(John Fleck), man pages (Ville Skytta),
    • -
    • bug fixes: C14N bug serializing namespaces (Aleksey - Sanin),testSAXproperly initialize the library (William), empty node set - inXPath(William), xmlSchemas errors (William), invalid charref - problempointedby Morus Walter, XInclude xml:base generation (William), - Relax-NGbugwith div processing (William), XPointer and - xml:baseproblem(William),Reader and entities, xmllint return code for - schemas(William), readerstreaming problem (Steve Ball), DTD - serializationproblem (William),libxml.m4 fixes (Mike Hommey), do not - providedestructors as methods onPython classes, xmlReader buffer bug, - Pythonbindings memory interfacesimprovement (with Stéphane Bidoul), Fixed - thepush parser to be back tosynchronous behaviour.
    • -
    • improvement: custom per-thread I/O enhancement (Rob - Richards),registernamespace in debug shell (Stefano Debenedetti), Python - basedregressiontest for non-Unix users (William), dynamically increase - thenumber ofXPath extension functions in Python and fix a memory - leak(Marc-AntoineParent and William)
    • -
    • performance: hack done with Arjan van de Ven to reduce ELF - footprintandgenerated code on Linux, plus use gcc runtime profiling to - optimizethecode generated in the RPM packages.
    • -

    2.6.10: May 17 2004

    • Web page generated for ChangeLog
    • -
    • build fixes: --without-html problems, make check without make all
    • -
    • portability: problem with xpath.c on Windows (MSC and - Borland),memcmpvs. strncmp on Solaris, XPath tests on Windows (Mark - Vakoc), C++ donotuse "list" as parameter name, make tests work with - Python 1.5(EdDavis),
    • -
    • improvements: made xmlTextReaderMode public, small - buffersresizing(Morten Welinder), add --maxmem option to - xmllint,addxmlPopInputCallback() for Matt Sergeant, refactoring - ofserializationescaping, added escaping customization
    • -
    • bugfixes: xsd:extension (Taihei Goi), assorted regexp - bugs(WilliamBrack), xmlReader end of stream problem, node deregistration - withreader,URI escaping and filemanes, XHTML1 formatting (Nick - Wellnhofer),regexptransition reduction (William), various XSD Schemas - fixes(KasimierBuchcik), XInclude fallback problem (William), weird - problemswith DTD(William), structured error handler callback context - (William),reversexmlEncodeSpecialChars() behaviour back to escaping - '"'
    • -

    2.6.9: Apr 18 2004

    • implement xml:id Working Draft, relaxed XPath id() checking
    • -
    • bugfixes: xmlCtxtReset (Brent Hendricks), line number and - CDATA(DaveBeckett), Relax-NG compilation (William Brack), Regexp - patches(withWilliam), xmlUriEscape (Mark Vakoc), a Relax-NG notAllowed - problem(withWilliam), Relax-NG name classes compares (William), - XIncludeduplicatefallback (William), external DTD encoding detection - (William), aDTDvalidation bug (William), xmlReader Close() fix, - recusiveextentionschemas
    • -
    • improvements: use xmlRead* APIs in test tools (Mark - Vakoc),indentingsave optimization, better handle IIS broken HTTP - redirectbehaviour (IanHummel), HTML parser frameset (James Bursa), - libxml2-pythonRPMdependancy, XML Schemas union support (Kasimier - Buchcik), warningremovalclanup (William), keep ChangeLog compressed when - installing fromRPMs
    • -
    • documentation: examples and xmlDocDumpMemory docs (John - Fleck),newexample (load, xpath, modify, save), xmlCatalogDump() - comments,
    • -
    • Windows: Borland C++ builder (Eric Zurcher), work - aroundMicrosoftcompiler NaN handling bug (Mark Vakoc)
    • -

    2.6.8: Mar 23 2004

    • First step of the cleanup of the serialization code and APIs
    • -
    • XML Schemas: mixed content (Adam Dickmeiss), QName handling - fixes(AdamDickmeiss), anyURI for "" (John Belmonte)
    • -
    • Python: Canonicalization C14N support added (Anthony Carrico)
    • -
    • xmlDocCopyNode() extension (William)
    • -
    • Relax-NG: fix when processing XInclude results - (William),externalreference in interleave (William), missing error - on<choice>failure (William), memory leak in schemas - datatypefacets.
    • -
    • xmlWriter: patch for better DTD support (Alfred Mickautsch)
    • -
    • bug fixes: xmlXPathLangFunction memory leak (Mike Hommey - andWilliamBrack), no ID errors if using HTML_PARSE_NOERROR, - xmlcatalogfallbacks toURI on SYSTEM lookup failure, XInclude parse - flagsinheritance (William),XInclude and XPointer fixes for entities - (William),XML parser bugreported by Holger Rauch, nanohttp fd leak - (William),regexps chargroups '-' handling (William), dictionnary - reference countingproblems,do not close stderr.
    • -
    • performance patches from Petr Pajas
    • -
    • Documentation fixes: XML_CATALOG_FILES in man pages (Mike Hommey)
    • -
    • compilation and portability fixes: --without-valid, - catalogcleanups(Peter Breitenlohner), MingW patch (Roland - Schwingel),cross-compilationto Windows (Christophe de Vienne), - --with-html-dirfixup (Julio MerinoVidal), Windows build (Eric - Zurcher)
    • -

    2.6.7: Feb 23 2004

    • documentation: tutorial updates (John Fleck), benchmark results
    • -
    • xmlWriter: updates and fixes (Alfred Mickautsch, Lucas Brasilino)
    • -
    • XPath optimization (Petr Pajas)
    • -
    • DTD ID handling optimization
    • -
    • bugfixes: xpath number with > 19 fractional (William - Brack),pushmode with unescaped '>' characters, fix xmllint --stream - --timing,fixxmllint --memory --stream memory - usage,xmlAttrSerializeTxtContenthandling NULL, trying to fix - Relax-NG/Perlinterface.
    • -
    • python: 2.3 compatibility, whitespace fixes (Malcolm Tredinnick)
    • -
    • Added relaxng option to xmllint --shell
    • -

    2.6.6: Feb 12 2004

    • nanohttp and nanoftp: buffer overflow error on URI parsing - (IgorandWilliam) reported by Yuuichi Teranishi
    • -
    • bugfixes: make test and path issues, xmlWriter - attributeserialization(William Brack), xmlWriter indentation (William), - schemasvalidation(Eric Haszlakiewicz), XInclude dictionnaries issues - (Williamand OlegParaschenko), XInclude empty fallback (William), HTML - warnings(William),XPointer in XInclude (William), Python - namespaceserialization,isolat1ToUTF8 bound error (Alfred Mickautsch), - output ofparameterentities in internal subset (William), internal subset - bug inpush mode,<xs:all> fix (Alexey Sarytchev)
    • -
    • Build: fix for automake-1.8 (Alexander Winston), warningsremoval(Philip - Ludlam), SOCKLEN_T detection fixes (Daniel Richard),fix--with-minimum - configuration.
    • -
    • XInclude: allow the 2001 namespace without warning.
    • -
    • Documentation: missing example/index.html (John - Fleck),versiondependancies (John Fleck)
    • -
    • reader API: structured error reporting (Steve Ball)
    • -
    • Windows compilation: mingw, msys (Mikhail - Grushinskiy),functionprototype (Cameron Johnson), MSVC6 compiler - warnings,_WINSOCKAPI_patch
    • -
    • Parsers: added xmlByteConsumed(ctxt) API to get the byte - offestininput.
    • -

    2.6.5: Jan 25 2004

    • Bugfixes: dictionnaries for schemas (William Brack), - regexpsegfault(William), xs:all problem (William), a number of - XPointerbugfixes(William), xmllint error go to stderr, DTD validation - problemwithnamespace, memory leak (William), SAX1 cleanup and minimal - optionsfixes(Mark Vadoc), parser context reset on error (Shaun McCance), - XPathunionevaluation problem (William) , xmlReallocLoc with NULL - (AlekseySanin),XML Schemas double free (Steve Ball), XInclude with no - href,argumentcallbacks order for XPath callbacks (Frederic Peters)
    • -
    • Documentation: python scripts (William Brack), xslt - stylesheets(JohnFleck), doc (Sven Zimmerman), I/O example.
    • -
    • Python bindings: fixes (William), enum support - (StéphaneBidoul),structured error reporting (Stéphane Bidoul)
    • -
    • XInclude: various fixes for conformance, problem related - todictionnaryreferences (William & me), recursion (William)
    • -
    • xmlWriter: indentation (Lucas Brasilino), memory - leaks(AlfredMickautsch),
    • -
    • xmlSchemas: normalizedString datatype (John Belmonte)
    • -
    • code cleanup for strings functions (William)
    • -
    • Windows: compiler patches (Mark Vakoc)
    • -
    • Parser optimizations, a few new XPath and dictionnary APIs - forfutureXSLT optimizations.
    • -

    2.6.4: Dec 24 2003

    • Windows build fixes (Igor Zlatkovic)
    • -
    • Some serious XInclude problems reported by Oleg Paraschenko and
    • -
    • Unix and Makefile packaging fixes (me, William Brack,
    • -
    • Documentation improvements (John Fleck, William Brack), - examplefix(Lucas Brasilino)
    • -
    • bugfixes: xmlTextReaderExpand() with xmlReaderWalker, XPath - handlingofNULL strings (William Brack) , API building reader or - parserfromfiledescriptor should not close it, changed XPath sorting to - bestableagain (William Brack), xmlGetNodePath() generating - '(null)'(WilliamBrack), DTD validation and namespace bug (William Brack), - XMLSchemasdouble inclusion behaviour
    • -

    2.6.3: Dec 10 2003

    • documentation updates and cleanup (DV, William Brack, John Fleck)
    • -
    • added a repository of examples, examples from Aleksey - Sanin,DodjiSeketeli, Alfred Mickautsch
    • -
    • Windows updates: Mark Vakoc, Igor Zlatkovic, Eric Zurcher,Mingw(Kenneth - Haley)
    • -
    • Unicode range checking (William Brack)
    • -
    • code cleanup (William Brack)
    • -
    • Python bindings: doc (John Fleck), bug fixes
    • -
    • UTF-16 cleanup and BOM issues (William Brack)
    • -
    • bug fixes: ID and xmlReader validation, XPath (William - Brack),xmlWriter(Alfred Mickautsch), hash.h inclusion problem, HTML - parser(James Bursa),attribute defaulting and validation, some - serializationcleanups,XML_GET_LINE macro, memory debug when using threads - (WilliamBrack),serialization of attributes and entities content, - xmlWriter(DanielSchulman)
    • -
    • XInclude bugfix, new APIs and update to the last version - includingthenamespace change.
    • -
    • XML Schemas improvements: include (Robert Stepanek), importandnamespace - handling, fixed the regression tests troubles, addedexamplesbased on Eric - van der Vlist book, regexp fixes
    • -
    • preliminary pattern support for streaming (needed - forschemasconstraints), added xmlTextReaderPreservePattern() to - collectsubdocumentwhen streaming.
    • -
    • various fixes in the structured error handling
    • -

    2.6.2: Nov 4 2003

    • XPath context unregistration fixes
    • -
    • text node coalescing fixes (Mark Lilback)
    • -
    • API to screate a W3C Schemas from an existing document (Steve Ball)
    • -
    • BeOS patches (Marcin 'Shard' Konicki)
    • -
    • xmlStrVPrintf function added (Aleksey Sanin)
    • -
    • compilation fixes (Mark Vakoc)
    • -
    • stdin parsing fix (William Brack)
    • -
    • a posteriori DTD validation fixes
    • -
    • xmlReader bug fixes: Walker fixes, python bindings
    • -
    • fixed xmlStopParser() to really stop the parser and errors
    • -
    • always generate line numbers when using the new xmlReadxxxfunctions
    • -
    • added XInclude support to the xmlReader interface
    • -
    • implemented XML_PARSE_NONET parser option
    • -
    • DocBook XSLT processing bug fixed
    • -
    • HTML serialization for <p> elements (William Brack and me)
    • -
    • XPointer failure in XInclude are now handled as resource errors
    • -
    • fixed xmllint --html to use the HTML serializer on output(added--xmlout - to implement the previous behaviour of saving it using - theXMLserializer)
    • -

    2.6.1: Oct 28 2003

    • Mostly bugfixes after the big 2.6.0 changes
    • -
    • Unix compilation patches: libxml.m4 (Patrick Welche), - warningscleanup(William Brack)
    • -
    • Windows compilation patches (Joachim Bauch, Stephane - Bidoul,IgorZlatkovic)
    • -
    • xmlWriter bugfix (Alfred Mickautsch)
    • -
    • chvalid.[ch]: couple of fixes from Stephane Bidoul
    • -
    • context reset: error state reset, push parser reset (GrahamBennett)
    • -
    • context reuse: generate errors if file is not readable
    • -
    • defaulted attributes for element coming from internal - entities(StephaneBidoul)
    • -
    • Python: tab and spaces mix (William Brack)
    • -
    • Error handler could crash in DTD validation in 2.6.0
    • -
    • xmlReader: do not use the document or element _private field
    • -
    • testSAX.c: avoid a problem with some PIs (Massimo Morara)
    • -
    • general bug fixes: mandatory encoding in text decl, - serializingDocumentFragment nodes, xmlSearchNs 2.6.0 problem (Kasimier - Buchcik),XPath errorsnot reported, slow HTML parsing of large - documents.
    • -

    2.6.0: Oct 20 2003

    • Major revision release: should be API and ABI compatible but got alotof - change
    • -
    • Increased the library modularity, far more options can be strippedout,a - --with-minimum configuration will weight around 160KBytes
    • -
    • Use per parser and per document dictionnary, allocate names - andsmalltext nodes from the dictionnary
    • -
    • Switch to a SAX2 like parser rewrote most of the XML - parsercore,provides namespace resolution and defaulted attributes, - minimizememoryallocations and copies, namespace checking and specific - errorhandling,immutable buffers, make predefined entities static - structures,etc...
    • -
    • rewrote all the error handling in the library, all errors - canbeintercepted at a structured level, with - preciseinformationavailable.
    • -
    • New simpler and more generic XML and HTML parser APIs, - allowingtoeasilly modify the parsing options and reuse parser context - formultipleconsecutive documents.
    • -
    • Similar new APIs for the xmlReader, for options and reuse, - providednewfunctions to access content as const strings, use them - forPythonbindings
    • -
    • a lot of other smaller API improvements: xmlStrPrintf - (AlekseySanin),Walker i.e. reader on a document tree based on Alfred - Mickautschcode,make room in nodes for line numbers, reference counting - and futurePSVIextensions, generation of character ranges to be checked - withfasteralgorithm (William), xmlParserMaxDepth (Crutcher - Dunnavant),bufferaccess
    • -
    • New xmlWriter API provided by Alfred Mickautsch
    • -
    • Schemas: base64 support by Anthony Carrico
    • -
    • Parser<->HTTP integration fix, proper processing of - theMime-Typeand charset informations if available.
    • -
    • Relax-NG: bug fixes including the one reported by Martijn - FaassenandzeroOrMore, better error reporting.
    • -
    • Python bindings (Stéphane Bidoul), never use stdout forerrorsoutput
    • -
    • Portability: all the headers have macros for export - andcallingconvention definitions (Igor Zlatkovic), VMS update (Craig - A.Berry),Windows: threads (Jesse Pelton), Borland compiler (Eric - Zurcher,Igor),Mingw (Igor), typos (Mark Vakoc), beta version - (StephaneBidoul),warning cleanups on AIX and MIPS compilers (William - Brack), BeOS(Marcin'Shard' Konicki)
    • -
    • Documentation fixes and README (William Brack), search - fix(William),tutorial updates (John Fleck), namespace docs (Stefan - Kost)
    • -
    • Bug fixes: xmlCleanupParser (Dave Beckett), - threadinguninitializedmutexes, HTML doctype lowercase, SAX/IO - (William),compression detectionand restore (William), attribute - declaration in DTDs(William), namespaceon attribute in HTML output - (William), input filename(Rob Richards),namespace DTD validation, - xmlReplaceNode (Chris Ryland),I/O callbacks(Markus Keim), CDATA - serialization (Shaun McCance),xmlReader (PeterDerr), high codepoint - charref like &#x10FFFF;, bufferaccess in pushmode (Justin Fletcher), - TLS threads on Windows (JessePelton), XPath bug(William), - xmlCleanupParser (Marc Liyanage), CDATAoutput (William), HTTPerror - handling.
    • -
    • xmllint options: --dtdvalidfpi for Tobias Reif, --sax1 - forcompattesting, --nodict for building without tree dictionnary, - --nocdatatoreplace CDATA by text, --nsclean to remove - surperfluousnamespacedeclarations
    • -
    • added xml2-config --libtool-libs option from Kevin P. Fleming
    • -
    • a lot of profiling and tuning of the code, speedup - patchforxmlSearchNs() by Luca Padovani. The xmlReader should do - farlessallocation and it speed should get closer to SAX. Chris - Andersonworkedon speeding and cleaning up repetitive checking code.
    • -
    • cleanup of "make tests"
    • -
    • libxml-2.0-uninstalled.pc from Malcolm Tredinnick
    • -
    • deactivated the broken docBook SGML parser code and plugged - theXMLparser instead.
    • -

    2.5.11: Sep 9 2003

    A bugfix only release:

    • risk of crash in Relax-NG
    • -
    • risk of crash when using multithreaded programs
    • -

    2.5.10: Aug 15 2003

    A bugfixes only release

    • Windows Makefiles (William Brack)
    • -
    • UTF-16 support fixes (Mark Itzcovitz)
    • -
    • Makefile and portability (William Brack) automake, Linux alpha, - MingwonWindows (Mikhail Grushinskiy)
    • -
    • HTML parser (Oliver Stoeneberg)
    • -
    • XInclude performance problem reported by Kevin Ruscoe
    • -
    • XML parser performance problem reported by Grant Goodale
    • -
    • xmlSAXParseDTD() bug fix from Malcolm Tredinnick
    • -
    • and a couple other cleanup
    • -

    2.5.9: Aug 9 2003

    • bugfixes: IPv6 portability, xmlHasNsProp (Markus Keim), - Windowsbuild(Wiliam Brake, Jesse Pelton, Igor), Schemas (Peter - Sobisch),threading(Rob Richards), hexBinary type (), UTF-16 BOM - (DodjiSeketeli),xmlReader, Relax-NG schemas compilation, namespace - handling,EXSLT (SeanGriffin), HTML parsing problem (William Brack), DTD - validationfor mixedcontent + namespaces, HTML serialization, - libraryinitialization,progressive HTML parser
    • -
    • better interfaces for Relax-NG error handling (Joachim Bauch, )
    • -
    • adding xmlXIncludeProcessTree() for XInclud'ing in a subtree
    • -
    • doc fixes and improvements (John Fleck)
    • -
    • configure flag for -with-fexceptions when embedding in C++
    • -
    • couple of new UTF-8 helper functions (William Brack)
    • -
    • general encoding cleanup + ISO-8859-x without iconv (Peter Jacobi)
    • -
    • xmlTextReader cleanup + enum for node types (Bjorn Reese)
    • -
    • general compilation/warning cleanup Solaris/HP-UX/...(WilliamBrack)
    • -

    2.5.8: Jul 6 2003

    • bugfixes: XPath, XInclude, file/URI mapping, UTF-16 - save(MarkItzcovitz), UTF-8 checking, URI saving, error printing - (WilliamBrack),PI related memleak, compilation without schemas or without - xpath(JoergSchmitz-Linneweber/Garry Pennington), xmlUnlinkNode problem - withDTDs,rpm problem on , i86_64, removed a few compilation problems - from2.5.7,xmlIOParseDTD, and xmlSAXParseDTD (Malcolm Tredinnick)
    • -
    • portability: DJGPP (MsDos) , OpenVMS (Craig A. Berry)
    • -
    • William Brack fixed multithreading lock problems
    • -
    • IPv6 patch for FTP and HTTP accesses (Archana Shah/Wipro)
    • -
    • Windows fixes (Igor Zlatkovic, Eric Zurcher), - threading(StéphaneBidoul)
    • -
    • A few W3C Schemas Structure improvements
    • -
    • W3C Schemas Datatype improvements (Charlie Bozeman)
    • -
    • Python bindings for thread globals (Stéphane Bidoul), - andmethod/classgenerator
    • -
    • added --nonet option to xmllint
    • -
    • documentation improvements (John Fleck)
    • -

    2.5.7: Apr 25 2003

    • Relax-NG: Compiling to regexp and streaming validation on top - ofthexmlReader interface, added to xmllint --stream
    • -
    • xmlReader: Expand(), Next() and DOM access glue, bug fixes
    • -
    • Support for large files: RGN validated a 4.5GB instance
    • -
    • Thread support is now configured in by default
    • -
    • Fixes: update of the Trio code (Bjorn), WXS Date and - Durationfixes(Charles Bozeman), DTD and namespaces (Brent Hendricks), - HTML pushparserand zero bytes handling, some missing Windows file - pathconversions,behaviour of the parser and validator in the presence of - "outof memory"error conditions
    • -
    • extended the API to be able to plug a garbage - collectingmemoryallocator, added xmlMallocAtomic() and modified - theallocationsaccordingly.
    • -
    • Performances: removed excessive malloc() calls, speedup of the - pushandxmlReader interfaces, removed excessive thread locking
    • -
    • Documentation: man page (John Fleck), xmlReader documentation
    • -
    • Python: adding binding for xmlCatalogAddLocal (Brent M Hendricks)
    • -

    2.5.6: Apr 1 2003

    • Fixed W3C XML Schemas datatype, should be compliant now exceptforbinHex - and base64 which are not supported yet.
    • -
    • bug fixes: non-ASCII IDs, HTML output, XInclude on large - docsandXInclude entities handling, encoding detection on external - subsets,XMLSchemas bugs and memory leaks, HTML parser (James Bursa)
    • -
    • portability: python/trio (Albert Chin), Sun compiler warnings
    • -
    • documentation: added --relaxng option to xmllint man page (John)
    • -
    • improved error reporting: xml:space, start/end tag mismatches, - RelaxNGerrors
    • -

    2.5.5: Mar 24 2003

    • Lot of fixes on the Relax NG implementation. More - testingincludingDocBook and TEI examples.
    • -
    • Increased the support for W3C XML Schemas datatype
    • -
    • Several bug fixes in the URI handling layer
    • -
    • Bug fixes: HTML parser, xmlReader, DTD validation, - XPath,encodingconversion, line counting in the parser.
    • -
    • Added support for $XMLLINT_INDENT environment variable, FTP delete
    • -
    • Fixed the RPM spec file name
    • -

    2.5.4: Feb 20 2003

    • Conformance testing and lot of fixes on Relax NG - andXIncludeimplementation
    • -
    • Implementation of XPointer element() scheme
    • -
    • Bug fixes: XML parser, XInclude entities merge, validity - checkingonnamespaces, -

      2 serialization bugs, node info generation problems, a - DTDregexpgeneration problem.

      -
    • -
    • Portability: windows updates and path canonicalization (Igor)
    • -
    • A few typo fixes (Kjartan Maraas)
    • -
    • Python bindings generator fixes (Stephane Bidoul)
    • -

    2.5.3: Feb 10 2003

    • RelaxNG and XML Schemas datatypes improvements, and added afirstversion - of RelaxNG Python bindings
    • -
    • Fixes: XLink (Sean Chittenden), XInclude (Sean Chittenden), API - fixforserializing namespace nodes, encoding conversion - bug,XHTML1serialization
    • -
    • Portability fixes: Windows (Igor), AMD 64bits RPM spec file
    • -

    2.5.2: Feb 5 2003

    • First implementation of RelaxNG, added --relaxng flag to xmllint
    • -
    • Schemas support now compiled in by default.
    • -
    • Bug fixes: DTD validation, namespace checking, XInclude - andentities,delegateURI in XML Catalogs, HTML parser, XML reader - (StéphaneBidoul),XPath parser and evaluation, UTF8ToUTF8 serialization, - XMLreader memoryconsumption, HTML parser, HTML serialization in the - presenceofnamespaces
    • -
    • added an HTML API to check elements and attributes.
    • -
    • Documentation improvement, PDF for the tutorial (John Fleck),docpatches - (Stefan Kost)
    • -
    • Portability fixes: NetBSD (Julio Merino), Windows (Igor Zlatkovic)
    • -
    • Added python bindings for XPointer, contextual error - reporting(StéphaneBidoul)
    • -
    • URI/file escaping problems (Stefano Zacchiroli)
    • -

    2.5.1: Jan 8 2003

    • Fixes a memory leak and configuration/compilation problems in 2.5.0
    • -
    • documentation updates (John)
    • -
    • a couple of XmlTextReader fixes
    • -

    2.5.0: Jan 6 2003

    • New XmltextReader interfacebased on - C#API(with help of Stéphane Bidoul)
    • -
    • Windows: more exports, including the new API (Igor)
    • -
    • XInclude fallback fix
    • -
    • Python: bindings for the new API, packaging - (StéphaneBidoul),drv_libxml2.py Python xml.sax driver (Stéphane Bidoul), - fixes,speedupand iterators for Python-2.2 (Hannu Krosing)
    • -
    • Tutorial fixes (john Fleck and Niraj Tolia) xmllint manupdate(John)
    • -
    • Fix an XML parser bug raised by Vyacheslav Pindyura
    • -
    • Fix for VMS serialization (Nigel Hall) and config (Craig A. Berry)
    • -
    • Entities handling fixes
    • -
    • new API to optionally track node creation and - deletion(LukasSchroeder)
    • -
    • Added documentation for the XmltextReader interface and some XML guidelines
    • -

    2.4.30: Dec 12 2002

    • 2.4.29 broke the python bindings, rereleasing
    • -
    • Improvement/fixes of the XML API generator, and couple of - minorcodefixes.
    • -

    2.4.29: Dec 11 2002

    • Windows fixes (Igor): Windows CE port, pthread linking, - pythonbindings(Stéphane Bidoul), Mingw (Magnus Henoch), and export - listupdates
    • -
    • Fix for prev in python bindings (ERDI Gergo)
    • -
    • Fix for entities handling (Marcus Clarke)
    • -
    • Refactored the XML and HTML dumps to a single code path, - fixedXHTML1dump
    • -
    • Fix for URI parsing when handling URNs with fragment identifiers
    • -
    • Fix for HTTP URL escaping problem
    • -
    • added an TextXmlReader (C#) like API (work in progress)
    • -
    • Rewrote the API in XML generation script, includes a C parser - andsavesmore informations needed for C# bindings
    • -

    2.4.28: Nov 22 2002

    • a couple of python binding fixes
    • -
    • 2 bug fixes in the XML push parser
    • -
    • potential memory leak removed (Martin Stoilov)
    • -
    • fix to the configure script for Unix (Dimitri Papadopoulos)
    • -
    • added encoding support for XInclude parse="text"
    • -
    • autodetection of XHTML1 and specific serialization rules added
    • -
    • nasty threading bug fixed (William Brack)
    • -

    2.4.27: Nov 17 2002

    • fixes for the Python bindings
    • -
    • a number of bug fixes: SGML catalogs,xmlParseBalancedChunkMemory(),HTML - parser, Schemas (Charles Bozeman),document fragment support(Christian - Glahn), xmlReconciliateNs (BrianStafford), XPointer,xmlFreeNode(), - xmlSAXParseMemory (Peter Jones),xmlGetNodePath (PetrPajas), entities - processing
    • -
    • added grep to xmllint --shell
    • -
    • VMS update patch from Craig A. Berry
    • -
    • cleanup of the Windows build with support for more - compilers(Igor),better thread support on Windows
    • -
    • cleanup of Unix Makefiles and spec file
    • -
    • Improvements to the documentation (John Fleck)
    • -

    2.4.26: Oct 18 2002

    • Patches for Windows CE port, improvements on Windows paths handling
    • -
    • Fixes to the validation code (DTD and Schemas), xmlNodeGetPath() - ,HTMLserialization, Namespace compliance, and a number of - smallproblems
    • -

    2.4.25: Sep 26 2002

    • A number of bug fixes: XPath, validation, Python bindings, DOM - andtree,xmlI/O, Html
    • -
    • Serious rewrite of XInclude
    • -
    • Made XML Schemas regexp part of the default build and APIs, smallfixand - improvement of the regexp core
    • -
    • Changed the validation code to reuse XML Schemas regexp APIs
    • -
    • Better handling of Windows file paths, improvement of - Makefiles(Igor,Daniel Gehriger, Mark Vakoc)
    • -
    • Improved the python I/O bindings, the tests, added resolver - andregexpAPIs
    • -
    • New logos from Marc Liyanage
    • -
    • Tutorial improvements: John Fleck, Christopher Harris
    • -
    • Makefile: Fixes for AMD x86_64 (Mandrake), - DESTDIR(ChristopheMerlet)
    • -
    • removal of all stderr/perror use for error reporting
    • -
    • Better error reporting: XPath and DTD validation
    • -
    • update of the trio portability layer (Bjorn Reese)
    • -

    2.4.24: Aug 22 2002

    • XPath fixes (William), xf:escape-uri() (Wesley Terpstra)
    • -
    • Python binding fixes: makefiles (William), generator, rpm - build,x86-64(fcrozat)
    • -
    • HTML <style> and boolean attributes serializer fixes
    • -
    • C14N improvements by Aleksey
    • -
    • doc cleanups: Rick Jones
    • -
    • Windows compiler makefile updates: Igor and Elizabeth Barham
    • -
    • XInclude: implementation of fallback and xml:base fixup added
    • -

    2.4.23: July 6 2002

    • performances patches: Peter Jacobi
    • -
    • c14n fixes, testsuite and performances: Aleksey Sanin
    • -
    • added xmlDocFormatDump: Chema Celorio
    • -
    • new tutorial: John Fleck
    • -
    • new hash functions and performances: Sander Vesik, portability - fixfromPeter Jacobi
    • -
    • a number of bug fixes: XPath (William Brack, Richard Jinks), XMLandHTML - parsers, ID lookup function
    • -
    • removal of all remaining sprintf: Aleksey Sanin
    • -

    2.4.22: May 27 2002

    • a number of bug fixes: configure scripts, base handling, - parser,memoryusage, HTML parser, XPath, documentation - (ChristianCornelssen),indentation, URI parsing
    • -
    • Optimizations for XMLSec, fixing and making public some of - thenetworkprotocol handlers (Aleksey)
    • -
    • performance patch from Gary Pennington
    • -
    • Charles Bozeman provided date and time support for - XMLSchemasdatatypes
    • -

    2.4.21: Apr 29 2002

    This release is both a bug fix release and also contains the -earlyXMLSchemas structuresand -datatypescode, -beware,allinterfaces are likely to change, there is huge holes, it is clearly -a workinprogress and don't even think of putting this code in a -productionsystem,it's actually not compiled in by default. The real fixes -are:

    • a couple of bugs or limitations introduced in 2.4.20
    • -
    • patches for Borland C++ and MSC by Igor
    • -
    • some fixes on XPath strings and conformance patches by RichardJinks
    • -
    • patch from Aleksey for the ExcC14N specification
    • -
    • OSF/1 bug fix by Bjorn
    • -

    2.4.20: Apr 15 2002

    • bug fixes: file descriptor leak, XPath, HTML output, DTD validation
    • -
    • XPath conformance testing by Richard Jinks
    • -
    • Portability fixes: Solaris, MPE/iX, Windows, OSF/1, - pythonbindings,libxml.m4
    • -

    2.4.19: Mar 25 2002

    • bug fixes: half a dozen XPath bugs, Validation, ISO-Latin - toUTF8encoder
    • -
    • portability fixes in the HTTP code
    • -
    • memory allocation checks using valgrind, and profiling tests
    • -
    • revamp of the Windows build and Makefiles
    • -

    2.4.18: Mar 18 2002

    • bug fixes: tree, SAX, canonicalization, - validation,portability,XPath
    • -
    • removed the --with-buffer option it was becoming unmaintainable
    • -
    • serious cleanup of the Python makefiles
    • -
    • speedup patch to XPath very effective for DocBook stylesheets
    • -
    • Fixes for Windows build, cleanup of the documentation
    • -

    2.4.17: Mar 8 2002

    • a lot of bug fixes, including "namespace nodes have no - parentsinXPath"
    • -
    • fixed/improved the Python wrappers, added more examples - andmoreregression tests, XPath extension functions can now - returnnode-sets
    • -
    • added the XML Canonicalization support from Aleksey Sanin
    • -

    2.4.16: Feb 20 2002

    • a lot of bug fixes, most of them were triggered by the XMLTestsuitefrom - OASIS and W3C. Compliance has been significantlyimproved.
    • -
    • a couple of portability fixes too.
    • -

    2.4.15: Feb 11 2002

    • Fixed the Makefiles, especially the python module ones
    • -
    • A few bug fixes and cleanup
    • -
    • Includes cleanup
    • -

    2.4.14: Feb 8 2002

    • Change of License to the MITLicensebasicallyfor - integration in XFree86 codebase, and removingconfusion around theprevious - dual-licensing
    • -
    • added Python bindings, beta software but should already - bequitecomplete
    • -
    • a large number of fixes and cleanups, especially for - alltreemanipulations
    • -
    • cleanup of the headers, generation of a reference API - definitioninXML
    • -

    2.4.13: Jan 14 2002

    • update of the documentation: John Fleck and Charlie Bozeman
    • -
    • cleanup of timing code from Justin Fletcher
    • -
    • fixes for Windows and initial thread support on Win32: Igor - andSergueiNarojnyi
    • -
    • Cygwin patch from Robert Collins
    • -
    • added xmlSetEntityReferenceFunc() for Keith Isdale work on xsldbg
    • -

    2.4.12: Dec 7 2001

    • a few bug fixes: thread (Gary Pennington), xmllint - (GeertKloosterman),XML parser (Robin Berjon), XPointer (Danny Jamshy), - I/Ocleanups(robert)
    • -
    • Eric Lavigne contributed project files for MacOS
    • -
    • some makefiles cleanups
    • -

    2.4.11: Nov 26 2001

    • fixed a couple of errors in the includes, fixed a few bugs, - somecodecleanups
    • -
    • xmllint man pages improvement by Heiko Rupp
    • -
    • updated VMS build instructions from John A Fotheringham
    • -
    • Windows Makefiles updates from Igor
    • -

    2.4.10: Nov 10 2001

    • URI escaping fix (Joel Young)
    • -
    • added xmlGetNodePath() (for paths or XPointers generation)
    • -
    • Fixes namespace handling problems when using DTD and validation
    • -
    • improvements on xmllint: Morus Walter patches for --format - and--encode,Stefan Kost and Heiko Rupp improvements on the --shell
    • -
    • fixes for xmlcatalog linking pointed by Weiqi Gao
    • -
    • fixes to the HTML parser
    • -

    2.4.9: Nov 6 2001

    • fixes more catalog bugs
    • -
    • avoid a compilation problem, improve xmlGetLineNo()
    • -

    2.4.8: Nov 4 2001

    • fixed SGML catalogs broken in previous release, - updatedxmlcatalogtool
    • -
    • fixed a compile errors and some includes troubles.
    • -

    2.4.7: Oct 30 2001

    • exported some debugging interfaces
    • -
    • serious rewrite of the catalog code
    • -
    • integrated Gary Pennington thread safety patch, added - configureoptionand regression tests
    • -
    • removed an HTML parser bug
    • -
    • fixed a couple of potentially serious validation bugs
    • -
    • integrated the SGML DocBook support in xmllint
    • -
    • changed the nanoftp anonymous login passwd
    • -
    • some I/O cleanup and a couple of interfaces for Perl wrapper
    • -
    • general bug fixes
    • -
    • updated xmllint man page by John Fleck
    • -
    • some VMS and Windows updates
    • -

    2.4.6: Oct 10 2001

    • added an updated man pages by John Fleck
    • -
    • portability and configure fixes
    • -
    • an infinite loop on the HTML parser was removed (William)
    • -
    • Windows makefile patches from Igor
    • -
    • fixed half a dozen bugs reported for libxml or libxslt
    • -
    • updated xmlcatalog to be able to modify SGML super catalogs
    • -

    2.4.5: Sep 14 2001

    • Remove a few annoying bugs in 2.4.4
    • -
    • forces the HTML serializer to output decimal charrefs since - someversionof Netscape can't handle hexadecimal ones
    • -

    1.8.16: Sep 14 2001

    • maintenance release of the old libxml1 branch, couple of - bugandportability fixes
    • -

    2.4.4: Sep 12 2001

    • added --convert to xmlcatalog, bug fixes and cleanups of XMLCatalog
    • -
    • a few bug fixes and some portability changes
    • -
    • some documentation cleanups
    • -

    2.4.3: Aug 23 2001

    • XML Catalog support see the doc
    • -
    • New NaN/Infinity floating point code
    • -
    • A few bug fixes
    • -

    2.4.2: Aug 15 2001

    • adds xmlLineNumbersDefault() to control line number generation
    • -
    • lot of bug fixes
    • -
    • the Microsoft MSC projects files should now be up to date
    • -
    • inheritance of namespaces from DTD defaulted attributes
    • -
    • fixes a serious potential security bug
    • -
    • added a --format option to xmllint
    • -

    2.4.1: July 24 2001

    • possibility to keep line numbers in the tree
    • -
    • some computation NaN fixes
    • -
    • extension of the XPath API
    • -
    • cleanup for alpha and ia64 targets
    • -
    • patch to allow saving through HTTP PUT or POST
    • -

    2.4.0: July 10 2001

    • Fixed a few bugs in XPath, validation, and tree handling.
    • -
    • Fixed XML Base implementation, added a couple of examples - totheregression tests
    • -
    • A bit of cleanup
    • -

    2.3.14: July 5 2001

    • fixed some entities problems and reduce memory - requirementwhensubstituting them
    • -
    • lots of improvements in the XPath queries interpreter - canbesubstantially faster
    • -
    • Makefiles and configure cleanups
    • -
    • Fixes to XPath variable eval, and compare on empty node set
    • -
    • HTML tag closing bug fixed
    • -
    • Fixed an URI reference computation problem when validating
    • -

    2.3.13: June 28 2001

    • 2.3.12 configure.in was broken as well as the push mode XML parser
    • -
    • a few more fixes for compilation on Windows MSC by Yon Derek
    • -

    1.8.14: June 28 2001

    • Zbigniew Chyla gave a patch to use the old XML parser in push mode
    • -
    • Small Makefile fix
    • -

    2.3.12: June 26 2001

    • lots of cleanup
    • -
    • a couple of validation fix
    • -
    • fixed line number counting
    • -
    • fixed serious problems in the XInclude processing
    • -
    • added support for UTF8 BOM at beginning of entities
    • -
    • fixed a strange gcc optimizer bugs in xpath handling of - float,gcc-3.0miscompile uri.c (William), Thomas Leitner provided a fix - fortheoptimizer on Tru64
    • -
    • incorporated Yon Derek and Igor Zlatkovic fixes and - improvementsforcompilation on Windows MSC
    • -
    • update of libxml-doc.el (Felix Natter)
    • -
    • fixed 2 bugs in URI normalization code
    • -

    2.3.11: June 17 2001

    • updates to trio, Makefiles and configure should fix - someportabilityproblems (alpha)
    • -
    • fixed some HTML serialization problems (pre, script, - andblock/inlinehandling), added encoding aware APIs, cleanup of - thiscode
    • -
    • added xmlHasNsProp()
    • -
    • implemented a specific PI for encoding support in the - DocBookSGMLparser
    • -
    • some XPath fixes (-Infinity, / as a function parameter - andnamespacesnode selection)
    • -
    • fixed a performance problem and an error in the validation code
    • -
    • fixed XInclude routine to implement the recursive behaviour
    • -
    • fixed xmlFreeNode problem when libxml is included statically twice
    • -
    • added --version to xmllint for bug reports
    • -

    2.3.10: June 1 2001

    • fixed the SGML catalog support
    • -
    • a number of reported bugs got fixed, in XPath, iconv - detection,XIncludeprocessing
    • -
    • XPath string function should now handle unicode correctly
    • -

    2.3.9: May 19 2001

    Lots of bugfixes, and added a basic SGML catalog support:

    • HTML push bugfix #54891 and another patch from Jonas Borgström
    • -
    • some serious speed optimization again
    • -
    • some documentation cleanups
    • -
    • trying to get better linking on Solaris (-R)
    • -
    • XPath API cleanup from Thomas Broyer
    • -
    • Validation bug fixed #54631, added a patch from Gary - Pennington,fixedxmlValidGetValidElements()
    • -
    • Added an INSTALL file
    • -
    • Attribute removal added to API: #54433
    • -
    • added a basic support for SGML catalogs
    • -
    • fixed xmlKeepBlanksDefault(0) API
    • -
    • bugfix in xmlNodeGetLang()
    • -
    • fixed a small configure portability problem
    • -
    • fixed an inversion of SYSTEM and PUBLIC identifier in HTML document
    • -

    1.8.13: May 14 2001

    • bugfixes release of the old libxml1 branch used by Gnome
    • -

    2.3.8: May 3 2001

    • Integrated an SGML DocBook parser for the Gnome project
    • -
    • Fixed a few things in the HTML parser
    • -
    • Fixed some XPath bugs raised by XSLT use, tried to fix thefloatingpoint - portability issue
    • -
    • Speed improvement (8M/s for SAX, 3M/s for DOM, 1.5M/s - forDOM+validationusing the XML REC as input and a 700MHz celeron).
    • -
    • incorporated more Windows cleanup
    • -
    • added xmlSaveFormatFile()
    • -
    • fixed problems in copying nodes with entities references (gdome)
    • -
    • removed some troubles surrounding the new validation module
    • -

    2.3.7: April 22 2001

    • lots of small bug fixes, corrected XPointer
    • -
    • Non deterministic content model validation support
    • -
    • added xmlDocCopyNode for gdome2
    • -
    • revamped the way the HTML parser handles end of tags
    • -
    • XPath: corrections of namespaces support and number formatting
    • -
    • Windows: Igor Zlatkovic patches for MSC compilation
    • -
    • HTML output fixes from P C Chow and William M. Brack
    • -
    • Improved validation speed sensible for DocBook
    • -
    • fixed a big bug with ID declared in external parsed entities
    • -
    • portability fixes, update of Trio from Bjorn Reese
    • -

    2.3.6: April 8 2001

    • Code cleanup using extreme gcc compiler warning options, - foundandcleared half a dozen potential problem
    • -
    • the Eazel team found an XML parser bug
    • -
    • cleaned up the user of some of the string formatting function. - usedthetrio library code to provide the one needed when the platform - ismissingthem
    • -
    • xpath: removed a memory leak and fixed the predicate - evaluationproblem,extended the testsuite and cleaned up the result. - XPointer seemsbroken...
    • -

    2.3.5: Mar 23 2001

    • Biggest change is separate parsing and evaluation of - XPathexpressions,there is some new APIs for this too
    • -
    • included a number of bug fixes(XML push parser, - 51876,notations,52299)
    • -
    • Fixed some portability issues
    • -

    2.3.4: Mar 10 2001

    • Fixed bugs #51860 and #51861
    • -
    • Added a global variable xmlDefaultBufferSize to allow defaultbuffersize - to be application tunable.
    • -
    • Some cleanup in the validation code, still a bug left and - thispartshould probably be rewritten to support ambiguous content - model:-\
    • -
    • Fix a couple of serious bugs introduced or raised by changes - in2.3.3parser
    • -
    • Fixed another bug in xmlNodeGetContent()
    • -
    • Bjorn fixed XPath node collection and Number formatting
    • -
    • Fixed a loop reported in the HTML parsing
    • -
    • blank space are reported even if the Dtd content model proves - thattheyare formatting spaces, this is for XML conformance
    • -

    2.3.3: Mar 1 2001

    • small change in XPath for XSLT
    • -
    • documentation cleanups
    • -
    • fix in validation by Gary Pennington
    • -
    • serious parsing performances improvements
    • -

    2.3.2: Feb 24 2001

    • chasing XPath bugs, found a bunch, completed some TODO
    • -
    • fixed a Dtd parsing bug
    • -
    • fixed a bug in xmlNodeGetContent
    • -
    • ID/IDREF support partly rewritten by Gary Pennington
    • -

    2.3.1: Feb 15 2001

    • some XPath and HTML bug fixes for XSLT
    • -
    • small extension of the hash table interfaces for - DOMgdome2implementation
    • -
    • A few bug fixes
    • -

    2.3.0: Feb 8 2001 (2.2.12 was on 25 Jan but I didn't kept track)

    • Lots of XPath bug fixes
    • -
    • Add a mode with Dtd lookup but without validation error - reportingforXSLT
    • -
    • Add support for text node without escaping (XSLT)
    • -
    • bug fixes for xmlCheckFilename
    • -
    • validation code bug fixes from Gary Pennington
    • -
    • Patch from Paul D. Smith correcting URI path normalization
    • -
    • Patch to allow simultaneous install of libxml-develandlibxml2-devel
    • -
    • the example Makefile is now fixed
    • -
    • added HTML to the RPM packages
    • -
    • tree copying bugfixes
    • -
    • updates to Windows makefiles
    • -
    • optimization patch from Bjorn Reese
    • -

    2.2.11: Jan 4 2001

    • bunch of bug fixes (memory I/O, xpath, ftp/http, ...)
    • -
    • added htmlHandleOmittedElem()
    • -
    • Applied Bjorn Reese's IPV6 first patch
    • -
    • Applied Paul D. Smith patches for validation of XInclude results
    • -
    • added XPointer xmlns() new scheme support
    • -

    2.2.10: Nov 25 2000

    • Fix the Windows problems of 2.2.8
    • -
    • integrate OpenVMS patches
    • -
    • better handling of some nasty HTML input
    • -
    • Improved the XPointer implementation
    • -
    • integrate a number of provided patches
    • -

    2.2.9: Nov 25 2000

    • erroneous release :-(
    • -

    2.2.8: Nov 13 2000

    • First version of XIncludesupport
    • -
    • Patch in conditional section handling
    • -
    • updated MS compiler project
    • -
    • fixed some XPath problems
    • -
    • added an URI escaping function
    • -
    • some other bug fixes
    • -

    2.2.7: Oct 31 2000

    • added message redirection
    • -
    • XPath improvements (thanks TOM !)
    • -
    • xmlIOParseDTD() added
    • -
    • various small fixes in the HTML, URI, HTTP and XPointer support
    • -
    • some cleanup of the Makefile, autoconf and the distribution content
    • -

    2.2.6: Oct 25 2000:

    • Added an hash table module, migrated a number of internal - structuretothose
    • -
    • Fixed a posteriori validation problems
    • -
    • HTTP module cleanups
    • -
    • HTML parser improvements (tag errors, script/style - handling,attributenormalization)
    • -
    • coalescing of adjacent text nodes
    • -
    • couple of XPath bug fixes, exported the internal API
    • -

    2.2.5: Oct 15 2000:

    • XPointer implementation and testsuite
    • -
    • Lot of XPath fixes, added variable and functions - registration,moretests
    • -
    • Portability fixes, lots of enhancements toward an easy Windows - buildandrelease
    • -
    • Late validation fixes
    • -
    • Integrated a lot of contributed patches
    • -
    • added memory management docs
    • -
    • a performance problem when using large buffer seems fixed
    • -

    2.2.4: Oct 1 2000:

    • main XPath problem fixed
    • -
    • Integrated portability patches for Windows
    • -
    • Serious bug fixes on the URI and HTML code
    • -

    2.2.3: Sep 17 2000

    • bug fixes
    • -
    • cleanup of entity handling code
    • -
    • overall review of all loops in the parsers, all sprintf usage - hasbeenchecked too
    • -
    • Far better handling of larges Dtd. Validating against DocBook - XMLDtdworks smoothly now.
    • -

    1.8.10: Sep 6 2000

    • bug fix release for some Gnome projects
    • -

    2.2.2: August 12 2000

    • mostly bug fixes
    • -
    • started adding routines to access xml parser context options
    • -

    2.2.1: July 21 2000

    • a purely bug fixes release
    • -
    • fixed an encoding support problem when parsing from a memory block
    • -
    • fixed a DOCTYPE parsing problem
    • -
    • removed a bug in the function allowing to override the - memoryallocationroutines
    • -

    2.2.0: July 14 2000

    • applied a lot of portability fixes
    • -
    • better encoding support/cleanup and saving (content is nowalwaysencoded - in UTF-8)
    • -
    • the HTML parser now correctly handles encodings
    • -
    • added xmlHasProp()
    • -
    • fixed a serious problem with &#38;
    • -
    • propagated the fix to FTP client
    • -
    • cleanup, bugfixes, etc ...
    • -
    • Added a page about libxmlInternationalizationsupport
    • -

    1.8.9: July 9 2000

    • fixed the spec the RPMs should be better
    • -
    • fixed a serious bug in the FTP implementation, released 1.8.9 - tosolverpmfind users problem
    • -

    2.1.1: July 1 2000

    • fixes a couple of bugs in the 2.1.0 packaging
    • -
    • improvements on the HTML parser
    • -

    2.1.0 and 1.8.8: June 29 2000

    • 1.8.8 is mostly a commodity package for upgrading to libxml2accordingto - new instructions. It fixes a nastyproblemabout - &#38; charref parsing
    • -
    • 2.1.0 also ease the upgrade from libxml v1 to the recent version.italso - contains numerous fixes and enhancements: -
      • added xmlStopParser() to stop parsing
      • -
      • improved a lot parsing speed when there is large CDATA blocs
      • -
      • includes XPath patches provided by Picdar Technology
      • -
      • tried to fix as much as possible DTD validation andnamespacerelated - problems
      • -
      • output to a given encoding has been added/tested
      • -
      • lot of various fixes
      • -
    • -

    2.0.0: Apr 12 2000

    • First public release of libxml2. If you are using libxml, it's - agoodidea to check the 1.x to 2.x upgrade instructions. NOTE: - whileinitiallyscheduled for Apr 3 the release occurred only on Apr 12 due - tomassiveworkload.
    • -
    • The include are now located under $prefix/include/libxml - (insteadof$prefix/include/gnome-xml), they also are referenced by -
      #include <libxml/xxx.h>
      -

      instead of

      -
      #include "xxx.h"
      -
    • -
    • a new URI module for parsing URIs and following strictly RFC 2396
    • -
    • the memory allocation routines used by libxml can now - beoverloadeddynamically by using xmlMemSetup()
    • -
    • The previously CVS only tool tester has - beenrenamedxmllintand is now installed as part of - thelibxml2package
    • -
    • The I/O interface has been revamped. There is now ways to - pluginspecific I/O modules, either at the URI scheme detection - levelusingxmlRegisterInputCallbacks() or by passing I/O functions - whencreating aparser context using xmlCreateIOParserCtxt()
    • -
    • there is a C preprocessor macro LIBXML_VERSION providing - theversionnumber of the libxml module in use
    • -
    • a number of optional features of libxml can now be excluded - atconfiguretime (FTP/HTTP/HTML/XPath/Debug)
    • -

    2.0.0beta: Mar 14 2000

    • This is a first Beta release of libxml version 2
    • -
    • It's available only fromxmlsoft.orgFTP, it's packaged - aslibxml2-2.0.0beta and available as tar andRPMs
    • -
    • This version is now the head in the Gnome CVS base, the old - oneisavailable under the tag LIB_XML_1_X
    • -
    • This includes a very large set of changes. From a programmatic - pointofview applications should not have to be modified too much, check - theupgrade page
    • -
    • Some interfaces may changes (especially a bit about encoding).
    • -
    • the updates includes: -
      • fix I18N support. ISO-Latin-x/UTF-8/UTF-16 (nearly) - seemscorrectlyhandled now
      • -
      • Better handling of entities, especially well-formedness - checkingandproper PEref extensions in external subsets
      • -
      • DTD conditional sections
      • -
      • Validation now correctly handle entities content
      • -
      • changestructuresto - accommodate DOM
      • -
    • -
    • Serious progress were made toward compliance, here are the result of the - testagainsttheOASIS testsuite (except the Japanese tests since I - don't supportthatencoding yet). This URL is rebuilt every couple of hours - using theCVShead version.
    • -

    1.8.7: Mar 6 2000

    • This is a bug fix release:
    • -
    • It is possible to disable the ignorable blanks heuristic - usedbylibxml-1.x, a new function xmlKeepBlanksDefault(0) will allow - this.Notethat for adherence to XML spec, this behaviour will be - disabledbydefault in 2.x . The same function will allow to keep - compatibilityforold code.
    • -
    • Blanks in <a> </a> constructs are not - ignoredanymore,avoiding heuristic is really the Right Way :-\
    • -
    • The unchecked use of snprintf which was breakinglibxml-1.8.6compilation - on some platforms has been fixed
    • -
    • nanoftp.c nanohttp.c: Fixed '#' and '?' stripping - whenprocessingURIs
    • -

    1.8.6: Jan 31 2000

    • added a nanoFTP transport module, debugged until the new version of rpmfindcanuseit - without troubles
    • -

    1.8.5: Jan 21 2000

    • adding APIs to parse a well balanced chunk of XML (production [43] contentof - theXMLspec)
    • -
    • fixed a hideous bug in xmlGetProp pointed by Rune.Djurhuus@fast.no
    • -
    • Jody Goldberg <jgoldberg@home.com> provided another patchtryingto - solve the zlib checks problems
    • -
    • The current state in gnome CVS base is expected to ship as - 1.8.5withgnumeric soon
    • -

    1.8.4: Jan 13 2000

    • bug fixes, reintroduced xmlNewGlobalNs(), fixed xmlNewNs()
    • -
    • all exit() call should have been removed from libxml
    • -
    • fixed a problem with INCLUDE_WINSOCK on WIN32 platform
    • -
    • added newDocFragment()
    • -

    1.8.3: Jan 5 2000

    • a Push interface for the XML and HTML parsers
    • -
    • a shell-like interface to the document tree (try tester --shell :-)
    • -
    • lots of bug fixes and improvement added over XMas holidays
    • -
    • fixed the DTD parsing code to work with the xhtml DTD
    • -
    • added xmlRemoveProp(), xmlRemoveID() and xmlRemoveRef()
    • -
    • Fixed bugs in xmlNewNs()
    • -
    • External entity loading code has been revamped, now - itusesxmlLoadExternalEntity(), some fix on entities processing - wereadded
    • -
    • cleaned up WIN32 includes of socket stuff
    • -

    1.8.2: Dec 21 1999

    • I got another problem with includes and C++, I hope this issue - isfixedfor good this time
    • -
    • Added a few tree modification - functions:xmlReplaceNode,xmlAddPrevSibling, xmlAddNextSibling, - xmlNodeSetNameandxmlDocSetRootElement
    • -
    • Tried to improve the HTML output with help from Chris Lahey
    • -

    1.8.1: Dec 18 1999

    • various patches to avoid troubles when using libxml with - C++compilersthe "namespace" keyword and C escaping in include files
    • -
    • a problem in one of the core macros IS_CHAR was corrected
    • -
    • fixed a bug introduced in 1.8.0 breaking default - namespaceprocessing,and more specifically the Dia application
    • -
    • fixed a posteriori validation (validation after parsing, or by - usingaDtd not specified in the original document)
    • -
    • fixed a bug in
    • -

    1.8.0: Dec 12 1999

    • cleanup, especially memory wise
    • -
    • the parser should be more reliable, especially the HTML one, - itshouldnot crash, whatever the input !
    • -
    • Integrated various patches, especially a speedup improvement - forlargedataset from CarlNygard,configure with - --with-buffers to enable them.
    • -
    • attribute normalization, oops should have been added long ago !
    • -
    • attributes defaulted from DTDs should be available, xmlSetProp()nowdoes - entities escaping by default.
    • -

    1.7.4: Oct 25 1999

    • Lots of HTML improvement
    • -
    • Fixed some errors when saving both XML and HTML
    • -
    • More examples, the regression tests should now look clean
    • -
    • Fixed a bug with contiguous charref
    • -

    1.7.3: Sep 29 1999

    • portability problems fixed
    • -
    • snprintf was used unconditionally, leading to link problems - onsystemwere it's not available, fixed
    • -

    1.7.1: Sep 24 1999

    • The basic type for strings manipulated by libxml has been - renamedin1.7.1 from CHARto xmlChar. - Thereasonis that CHAR was conflicting with a predefined type on - Windows.Howeveron non WIN32 environment, compatibility is provided by the - way ofa#define .
    • -
    • Changed another error : the use of a structure field called - errno,andleading to troubles on platforms where it's a macro
    • -

    1.7.0: Sep 23 1999

    • Added the ability to fetch remote DTD or parsed entities, see the nanohttpmodule.
    • -
    • Added an errno to report errors by another mean than a simpleprintflike - callback
    • -
    • Finished ID/IDREF support and checking when validation
    • -
    • Serious memory leaks fixed (there is now a memory wrappermodule)
    • -
    • Improvement of XPathimplementation
    • -
    • Added an HTML parser front-end
    • -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/news.xsl b/src/tools/docbook/libxml2/doc/news.xsl deleted file mode 100644 index 2312e0daa7..0000000000 --- a/src/tools/docbook/libxml2/doc/news.xsl +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - NEWS file for libxml2 - - Note that this is automatically generated from the news webpage at: - http://xmlsoft.org/news.html - - - - - - - - - : - - - - - - - - - - - - - - - - - at - - - - - - - diff --git a/src/tools/docbook/libxml2/doc/python.html b/src/tools/docbook/libxml2/doc/python.html deleted file mode 100644 index adb3d36d96..0000000000 --- a/src/tools/docbook/libxml2/doc/python.html +++ /dev/null @@ -1,251 +0,0 @@ - - -Python and bindings
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    Python and bindings

    Developer Menu
    API Indexes
    Related links

    There are a number of language bindings and wrappers available -forlibxml2,the list below is not exhaustive. Please contact the xml-bindings@gnome.org(archives) inorder -toget updates to this list or to discuss the specific topic of -libxml2orlibxslt wrappers or bindings:

    • Libxml++seemsthemost - up-to-date C++ bindings for libxml2, check the documentationandthe - examples.
    • -
    • There is another C++wrapperbased on the gdome2 - bindingsmaintained by Tobias Peters.
    • -
    • and a third C++ wrapper by Peter Jones <pjones@pmade.org> -

      Website: http://pmade.org/pjones/software/xmlwrapp/

      -
    • -
    • MattSergeantdevelopedXML::LibXSLT, a Perl - wrapperforlibxml2/libxslt as part of the AxKitXMLapplication server.
    • -
    • If you're interested into scripting XML processing, have a look at XSHan XML editing shell - basedonLibxml2 Perl bindings.
    • -
    • Dave - Kuhlmanprovidesanearlier version of the libxml/libxslt wrappers for Python.
    • -
    • Gopal.V and Peter Minten develop libxml#, a - setofC# libxml2 bindings.
    • -
    • Petr Kozelka provides Pascal units - togluelibxml2with Kylix, Delphi and other Pascal compilers.
    • -
    • Uwe Fechner also provides idom2, - aDOM2implementation for Kylix2/D5/D6 from Borland.
    • -
    • There is bindings forRubyand - libxml2 bindings are also available in Ruby through the libgdome-rubymodulemaintainedby - Tobias Peters.
    • -
    • Steve Ball and contributors maintains libxml2 and libxslt - bindingsforTcl.
    • -
    • libxml2 and libxslt is the default XML library for PHP5.
    • -
    • LibxmlJisaneffort - to create a 100% JAXP-compatible Java wrapper for libxml2andlibxslt as - part of GNU ClasspathX project.
    • -
    • Patrick McPhee provides Rexx bindings fof libxml2 and libxslt, - lookforRexxXML.
    • -
    • SatimageprovidesXMLLibosax.This - is an osax for Mac OS X with a set of commands toimplement inAppleScript - the XML DOM, XPATH and XSLT. Also includescommands forProperty-lists - (Apple's fast lookup table XML format.)
    • -
    • Francesco Montorsi developped wxXml2wrappersthat - interface libxml2, allowing wxWidgets applications toload/save/editXML - instances.
    • -

    The distribution includes a set of Python bindings, which are -guaranteedtobe maintained as part of the library in the future, though -thePythoninterface have not yet reached the completeness of the C API.

    Note that some of the Python purist dislike the default set -ofPythonbindings, rather than complaining I suggest they have a look at lxml the more pythonic bindings -forlibxml2and libxsltand helpMartijnFaassencomplete -those.

    StéphaneBidoulmaintains aWindows portof the Python -bindings.

    Note to people interested in building bindings, the API is formalized asan XML API description filewhich allows -toautomatea large part of the Python bindings, this includes -functiondescriptions,enums, structures, typedefs, etc... The Python script -used tobuild thebindings is python/generator.py in the source -distribution.

    To install the Python bindings there are 2 options:

    • If you use an RPM based distribution, simply install the libxml2-pythonRPM(andif - needed the libxslt-pythonRPM).
    • -
    • Otherwise use the libxml2-pythonmoduledistributioncorresponding - to your installed version oflibxml2 andlibxslt. Note that to install it - you will need both libxml2and libxsltinstalled and run "python setup.py - build install" in themodule tree.
    • -

    The distribution includes a set of examples and regression tests -forthepython bindings in the python/testsdirectory. Here -aresomeexcerpts from those tests:

    tst.py:

    This is a basic test of the file interface and DOM navigation:

    import libxml2, sys
    -
    -doc = libxml2.parseFile("tst.xml")
    -if doc.name != "tst.xml":
    -    print "doc.name failed"
    -    sys.exit(1)
    -root = doc.children
    -if root.name != "doc":
    -    print "root.name failed"
    -    sys.exit(1)
    -child = root.children
    -if child.name != "foo":
    -    print "child.name failed"
    -    sys.exit(1)
    -doc.freeDoc()

    The Python module is called libxml2; parseFile is the -equivalentofxmlParseFile (most of the bindings are automatically generated, -and thexmlprefix is removed and the casing convention are kept). All node -seen atthebinding level share the same subset of accessors:

    • name: returns the node name
    • -
    • type: returns a string indicating the node type
    • -
    • content: returns the content of the node, it is - basedonxmlNodeGetContent() and hence is recursive.
    • -
    • parent, - children,last,next, - prev,doc,properties: pointing to - the associatedelement in the tree,those may return None in case no such - linkexists.
    • -

    Also note the need to explicitly deallocate documents with -freeDoc().Reference counting for libxml2 trees would need quite a lot of -worktofunction properly, and rather than risk memory leaks if -notimplementedcorrectly it sounds safer to have an explicit function to free -atree. Thewrapper python objects like doc, root or child are -themautomatically garbagecollected.

    validate.py:

    This test check the validation interfaces and redirection -oferrormessages:

    import libxml2
    -
    -#deactivate error messages from the validation
    -def noerr(ctx, str):
    -    pass
    -
    -libxml2.registerErrorHandler(noerr, None)
    -
    -ctxt = libxml2.createFileParserCtxt("invalid.xml")
    -ctxt.validate(1)
    -ctxt.parseDocument()
    -doc = ctxt.doc()
    -valid = ctxt.isValid()
    -doc.freeDoc()
    -if valid != 0:
    -    print "validity check failed"

    The first thing to notice is the call to registerErrorHandler(), -itdefinesa new error handler global to the library. It is used to avoid -seeingtheerror messages when trying to validate the invalid document.

    The main interest of that test is the creation of a parser -contextwithcreateFileParserCtxt() and how the behaviour can be changed -beforecallingparseDocument() . Similarly the informations resulting from -theparsing phaseare also available using context methods.

    Contexts like nodes are defined as class and the libxml2 wrappers mapstheC -function interfaces in terms of objects method as much as possible.Thebest to -get a complete view of what methods are supported is to look atthelibxml2.py -module containing all the wrappers.

    push.py:

    This test show how to activate the push parser interface:

    import libxml2
    -
    -ctxt = libxml2.createPushParser(None, "<foo", 4, "test.xml")
    -ctxt.parseChunk("/>", 2, 1)
    -doc = ctxt.doc()
    -
    -doc.freeDoc()

    The context is created with a special call based -onthexmlCreatePushParser() from the C library. The first argument is -anoptionalSAX callback object, then the initial set of data, the length and -thename ofthe resource in case URI-References need to be computed by -theparser.

    Then the data are pushed using the parseChunk() method, the -lastcallsetting the third argument terminate to 1.

    pushSAX.py:

    this test show the use of the event based parsing interfaces. In -thiscasethe parser does not build a document, but provides callback -informationasthe parser makes progresses analyzing the data being -provided:

    import libxml2
    -log = ""
    -
    -class callback:
    -    def startDocument(self):
    -        global log
    -        log = log + "startDocument:"
    -
    -    def endDocument(self):
    -        global log
    -        log = log + "endDocument:"
    -
    -    def startElement(self, tag, attrs):
    -        global log
    -        log = log + "startElement %s %s:" % (tag, attrs)
    -
    -    def endElement(self, tag):
    -        global log
    -        log = log + "endElement %s:" % (tag)
    -
    -    def characters(self, data):
    -        global log
    -        log = log + "characters: %s:" % (data)
    -
    -    def warning(self, msg):
    -        global log
    -        log = log + "warning: %s:" % (msg)
    -
    -    def error(self, msg):
    -        global log
    -        log = log + "error: %s:" % (msg)
    -
    -    def fatalError(self, msg):
    -        global log
    -        log = log + "fatalError: %s:" % (msg)
    -
    -handler = callback()
    -
    -ctxt = libxml2.createPushParser(handler, "<foo", 4, "test.xml")
    -chunk = " url='tst'>b"
    -ctxt.parseChunk(chunk, len(chunk), 0)
    -chunk = "ar</foo>"
    -ctxt.parseChunk(chunk, len(chunk), 1)
    -
    -reference = "startDocument:startElement foo {'url': 'tst'}:" + \ 
    -            "characters: bar:endElement foo:endDocument:"
    -if log != reference:
    -    print "Error got: %s" % log
    -    print "Expected: %s" % reference

    The key object in that test is the handler, it provides a number -ofentrypoints which can be called by the parser as it makes progresses -toindicatethe information set obtained. The full set of callback is larger -thanwhatthe callback class in that specific example implements (see -theSAXdefinition for a complete list). The wrapper will only call those -suppliedbythe object when activated. The startElement receives the names of -theelementand a dictionary containing the attributes carried by this -element.

    Also note that the reference string generated from the callback -showsasingle character call even though the string "bar" is passed to -theparserfrom 2 different call to parseChunk()

    xpath.py:

    This is a basic test of XPath wrappers support

    import libxml2
    -
    -doc = libxml2.parseFile("tst.xml")
    -ctxt = doc.xpathNewContext()
    -res = ctxt.xpathEval("//*")
    -if len(res) != 2:
    -    print "xpath query: wrong node set size"
    -    sys.exit(1)
    -if res[0].name != "doc" or res[1].name != "foo":
    -    print "xpath query: wrong node set value"
    -    sys.exit(1)
    -doc.freeDoc()
    -ctxt.xpathFreeContext()

    This test parses a file, then create an XPath context to -evaluateXPathexpression on it. The xpathEval() method execute an XPath query -andreturnsthe result mapped in a Python way. String and numbers are -nativelyconverted,and node sets are returned as a tuple of libxml2 Python -nodeswrappers. Likethe document, the XPath context need to be freed -explicitly,also not thatthe result of the XPath query may point back to the -documenttree and hencethe document must be freed after the result of the -query isused.

    xpathext.py:

    This test shows how to extend the XPath engine with functions -writteninpython:

    import libxml2
    -
    -def foo(ctx, x):
    -    return x + 1
    -
    -doc = libxml2.parseFile("tst.xml")
    -ctxt = doc.xpathNewContext()
    -libxml2.registerXPathFunction(ctxt._o, "foo", None, foo)
    -res = ctxt.xpathEval("foo(1)")
    -if res != 2:
    -    print "xpath extension failure"
    -doc.freeDoc()
    -ctxt.xpathFreeContext()

    Note how the extension function is registered with the context -(butthatpart is not yet finalized, this may change slightly in the -future).

    tstxpath.py:

    This test is similar to the previous one but shows how -theextensionfunction can access the XPath evaluation context:

    def foo(ctx, x):
    -    global called
    -
    -    #
    -    # test that access to the XPath evaluation contexts
    -    #
    -    pctxt = libxml2.xpathParserContext(_obj=ctx)
    -    ctxt = pctxt.context()
    -    called = ctxt.function()
    -    return x + 1

    All the interfaces around the XPath parser(or rather evaluation)contextare -not finalized, but it should be sufficient to do contextual workat -theevaluation point.

    Memory debugging:

    last but not least, all tests starts with the following prologue:

    #memory debug specific
    -libxml2.debugMemory(1)

    and ends with the following epilogue:

    #memory debug specific
    -libxml2.cleanupParser()
    -if libxml2.debugMemory(1) == 0:
    -    print "OK"
    -else:
    -    print "Memory leak %d bytes" % (libxml2.debugMemory(1))
    -    libxml2.dumpMemory()

    Those activate the memory debugging interface of libxml2 whereallallocated -block in the library are tracked. The prologue then cleans upthelibrary state -and checks that all allocated memory has been freed. If notitcalls -dumpMemory() which saves that list in a .memdumpfile.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/redhat.gif b/src/tools/docbook/libxml2/doc/redhat.gif deleted file mode 100644 index eff3d73069..0000000000 Binary files a/src/tools/docbook/libxml2/doc/redhat.gif and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/search.php b/src/tools/docbook/libxml2/doc/search.php deleted file mode 100644 index 7b332c2b03..0000000000 --- a/src/tools/docbook/libxml2/doc/search.php +++ /dev/null @@ -1,475 +0,0 @@ - - - - - - -Search the documentation on XMLSoft.org - - - - - -
    -Gnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo
    -
    -

    The XML C library for Gnome

    -

    Search engine

    -
    -
    - - -
    - - - -
    Main Menu
    - - - -
    API Indexes
    - - - -
    Related links
    -
    -Search the documentation on XMLSoft.org"; - } - if ($scope == NULL) - $scope = "any"; - $scope = ltrim ($scope); - if ($scope == "") - $scope = "any"; - -?> -

    The search service indexes the libxml2 and libxslt APIs and documentation as well as the xml@gnome.org and xslt@gnome.org mailing-list archives. To use it simply provide a set of keywords: -

    -

    - - - -
    - $rb) ? -1 : 1; - } - if (($query) && (strlen($query) <= 50)) { - $link = mysql_connect ("localhost", "nobody"); - if (!$link) { - echo "

    Could not connect to the database: ", mysql_error(); - } else { - mysql_select_db("xmlsoft", $link); - $list = explode (" ", $query); - $results = array(); - $number = 0; - for ($number = 0;$number < count($list);$number++) { - - $word = $list[$number]; - if (($scope == 'any') || ($scope == 'XML') || - ($scope == 'API') || ($scope == 'XMLAPI')) { - list($result, $j) = queryWord($word); - if ($j > 0) { - for ($i = 0; $i < $j; $i++) { - $relevance = mysql_result($result, $i, 0); - $name = mysql_result($result, $i, 1); - $type = mysql_result($result, $i, 2); - $module = mysql_result($result, $i, 3); - $desc = mysql_result($result, $i, 4); - if (array_key_exists($name, $results)) { - list($r,$t,$m,$d,$w,$u) = $results[$name]; - $results[$name] = array(($r + $relevance) * 2, - $t,$m,$d,$w,$u); - } else { - $id = $name; - $m = strtolower($module); - $url = "html/libxml-$module.html#$id"; - $results[$name] = array($relevance,$type, - $module, $desc, $name, $url); - } - } - mysql_free_result($result); - } - } - if (($scope == 'any') || ($scope == 'XSLT') || - ($scope == 'API') || ($scope == 'XSLTAPI')) { - list($result, $j) = XSLTqueryWord($word); - if ($j > 0) { - for ($i = 0; $i < $j; $i++) { - $relevance = mysql_result($result, $i, 0); - $name = mysql_result($result, $i, 1); - $type = mysql_result($result, $i, 2); - $module = mysql_result($result, $i, 3); - $desc = mysql_result($result, $i, 4); - if (array_key_exists($name, $results)) { - list($r,$t,$m,$d,$w,$u) = $results[$name]; - $results[$name] = array(($r + $relevance) * 2, - $t,$m,$d,$w,$u); - } else { - $id = $name; - $m = strtolower($module); - $url = "XSLT/html/libxslt-$module.html#$id"; - $results[$name] = array($relevance,$type, - $module, $desc, $name, $url); - } - } - mysql_free_result($result); - } - } - if (($scope == 'any') || ($scope == 'XML') || - ($scope == 'DOCS') || ($scope == 'XMLDOC')) { - list($result, $k) = queryHTMLWord($word); - if ($k > 0) { - for ($i = 0; $i < $k; $i++) { - $relevance = mysql_result($result, $i, 0); - $name = mysql_result($result, $i, 1); - $id = mysql_result($result, $i, 2); - $module = mysql_result($result, $i, 3); - $desc = mysql_result($result, $i, 4); - $url = $module; - if ($id != "") { - $url = $url + "#$id"; - } - $results["$name _html_ $number _ $i"] = - array($relevance, "XML docs", - $module, $desc, $name, $url); - } - mysql_free_result($result); - } - } - if (($scope == 'any') || ($scope == 'XSLT') || - ($scope == 'DOCS') || ($scope == 'XSLTDOC')) { - list($result, $k) = XSLTqueryHTMLWord($word); - if ($k > 0) { - for ($i = 0; $i < $k; $i++) { - $relevance = mysql_result($result, $i, 0); - $name = mysql_result($result, $i, 1); - $id = mysql_result($result, $i, 2); - $module = mysql_result($result, $i, 3); - $desc = mysql_result($result, $i, 4); - $url = "XSLT/$module"; - if ($id != "") { - $url = $url + "#$id"; - } - $results["$name xslthtml $number _ $i "] = - array($relevance, "XSLT docs", - $module, $desc, $name, $url); - } - mysql_free_result($result); - } - } - if (($scope == 'any') || ($scope == 'XML') || - ($scope == 'LISTS') || ($scope == 'XMLLIST')) { - list($result, $j) = queryArchiveWord($word); - if ($j > 0) { - for ($i = 0; $i < $j; $i++) { - $relevance = mysql_result($result, $i, 0); - $name = mysql_result($result, $i, 1); - $type = mysql_result($result, $i, 2); - $url = mysql_result($result, $i, 3); - $desc = mysql_result($result, $i, 4); - if (array_key_exists($url, $results)) { - list($r,$t,$m,$d,$w,$u) = $results[$url]; - $results[$name] = array(($r + $relevance) * 2, - $t,$m,$d,$w,$u); - } else { - $id = $name; - $m = strtolower($module); - $u = str_replace( - "http://mail.gnome.org/archives/xml/", "", $url); - $results[$url] = array($relevance,$type, - $u, $desc, $name, $url); - } - } - mysql_free_result($result); - } - } - if (($scope == 'any') || ($scope == 'XSLT') || - ($scope == 'LISTS') || ($scope == 'XSLTLIST')) { - list($result, $j) = XSLTqueryArchiveWord($word); - if ($j > 0) { - for ($i = 0; $i < $j; $i++) { - $relevance = mysql_result($result, $i, 0); - $name = mysql_result($result, $i, 1); - $type = mysql_result($result, $i, 2); - $url = mysql_result($result, $i, 3); - $desc = mysql_result($result, $i, 4); - if (array_key_exists($url, $results)) { - list($r,$t,$m,$d,$w,$u) = $results[$url]; - $results[$name] = array(($r + $relevance) * 2, - $t,$m,$d,$w,$u); - } else { - $id = $name; - $m = strtolower($module); - $u = str_replace( - "http://mail.gnome.org/archives/xslt/", "", $url); - $results[$url] = array($relevance,$type, - $u, $desc, $name, $url); - } - } - mysql_free_result($result); - } - } - } - if ((count($results) == 0) && (count($list) == 1)) { - $word = $list[0]; - if (($scope == 'any') || ($scope == 'XML') || - ($scope == 'API') || ($scope == 'XMLAPI')) { - list($result, $j) = queryWord("xml$word"); - if ($j > 0) { - for ($i = 0; $i < $j; $i++) { - $relevance = mysql_result($result, $i, 0); - $name = mysql_result($result, $i, 1); - $type = mysql_result($result, $i, 2); - $module = mysql_result($result, $i, 3); - $desc = mysql_result($result, $i, 4); - if (array_key_exists($name, $results)) { - list($r,$t,$m,$d,$w,$u) = $results[$name]; - $results[$name] = array(($r + $relevance) * 2, - $t,$m,$d,$w,$u); - } else { - $id = $name; - $m = strtolower($module); - $url = "html/libxml-$module.html#$id"; - $results[$name] = array($relevance,$type, - $module, $desc, $name, $url); - } - } - mysql_free_result($result); - } - } - if (($scope == 'any') || ($scope == 'XSLT') || - ($scope == 'API') || ($scope == 'XSLTAPI')) { - list($result, $j) = XSLTqueryWord("xslt$word"); - if ($j > 0) { - for ($i = 0; $i < $j; $i++) { - $relevance = mysql_result($result, $i, 0); - $name = mysql_result($result, $i, 1); - $type = mysql_result($result, $i, 2); - $module = mysql_result($result, $i, 3); - $desc = mysql_result($result, $i, 4); - if (array_key_exists($name, $results)) { - list($r,$t,$m,$d,$w,$u) = $results[$name]; - $results[$name] = array(($r + $relevance) * 2, - $t,$m,$d,$w,$u); - } else { - $id = $name; - $m = strtolower($module); - $url = "XSLT/html/libxslt-$module.html#$id"; - $results[$name] = array($relevance,$type, - $module, $desc, $name, $url); - } - } - mysql_free_result($result); - } - } - } - mysql_close($link); - $nb = count($results); - echo "

    Found $nb results for query $query

    \n"; - usort($results, "resSort"); - - if ($nb > 0) { - printf("\n"); - printf("\n"); - $i = 0; - while (list ($name, $val) = each ($results)) { - list($r,$t,$m,$d,$s,$u) = $val; - $m = str_replace("<", "<", $m); - $s = str_replace("<", "<", $s); - $d = str_replace("<", "<", $d); - echo ""; - $i = $i + 1; - if ($i > 75) - break; - } - printf("
    QualitySymbolTypemoduleDescription
    $r$s$t$m$d
    \n"); - } - } - } -?> - -
    - - - diff --git a/src/tools/docbook/libxml2/doc/searches.html b/src/tools/docbook/libxml2/doc/searches.html deleted file mode 100644 index c22b8d6a09..0000000000 --- a/src/tools/docbook/libxml2/doc/searches.html +++ /dev/null @@ -1,61 +0,0 @@ - - -Search statistics for 20040408
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    Search statistics for 20040408

    Main Menu
    Related links

    weekly statistics:

    416435 total words, - 9875 uniq words.

    Top 50 queries:


    libxml2 11812 times. -
    libxml 10170 times. -
    xpath 6172 times. -
    schema 5798 times. -
    xmllint 5472 times. -
    XML 5435 times. -
    xmlParseFile 4219 times. -
    php 3935 times. -
    DTD 3270 times. -
    encoding 3101 times. -
    xmlGetProp 3084 times. -
    xsltproc 3074 times. -
    download 2971 times. -
    xmlNodeListGetString 2917 times. -
    python 2789 times. -
    SAX 2621 times. -
    xmlParseMemory 2472 times. -
    perl 2385 times. -
    iconv 2318 times. -
    error 2298 times. -
    html 2255 times. -
    xmlChar 2136 times. -
    libxslt 2055 times. -
    c++ 2020 times. -
    xmlNodePtr 1928 times. -
    windows 1918 times. -
    to 1891 times. -
    node 1860 times. -
    xmlFree 1854 times. -
    example 1784 times. -
    install 1763 times. -
    parser 1715 times. -
    xmlNewDoc 1695 times. -
    namespace 1693 times. -
    xmlStrcmp 1564 times. -
    xmlnode 1558 times. -
    parse 1517 times. -
    memory 1484 times. -
    dom 1457 times. -
    XInclude 1444 times. -
    entity 1423 times. -
    xmlSaveFormatFile 1390 times. -
    xslt 1361 times. -
    attribute 1360 times. -
    xmlDocPtr 1350 times. -
    xsd 1319 times. -
    xmlDocGetRootElement 1285 times. -
    validate 1270 times. -
    validation 1234 times. -
    tutorial 1140 times. -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/searches.xsl b/src/tools/docbook/libxml2/doc/searches.xsl deleted file mode 100644 index a1db33522a..0000000000 --- a/src/tools/docbook/libxml2/doc/searches.xsl +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - - - - - - - -

    weekly statistics:

    -

    total words, - uniq words.

    -

    Top queries:

    -
    - - -
    - times. -
    - - - - Search statistics for - - - - - - - - - - - - - - - - -
    - - - - - -
    - - - - - - -
    - - - - -
    - - - - -
    - -

    - -

    -

    Daniel Veillard

    -
    -
    -
    -
    -
    - - -
    -
    - - - - - -
    diff --git a/src/tools/docbook/libxml2/doc/site.xsl b/src/tools/docbook/libxml2/doc/site.xsl deleted file mode 100644 index 23f409b0bf..0000000000 --- a/src/tools/docbook/libxml2/doc/site.xsl +++ /dev/null @@ -1,739 +0,0 @@ - - - - - - Main Menu - - - - - - intro.html - - - docs.html - - - bugs.html - - - help.html - - - help.html - - - downloads.html - - - news.html - - - contribs.html - - - xsltproc2.html - - - - - - XSLT.html - - - XMLinfo.html - - - xmldtd.html - - - - - - - - - - - - - - - - - - - - - namespaces.html - - - - - - catalog.html - - - - - - encoding.html - - - - - - - - - - - - FAQ.html - - - - - - unknown.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xsltproc2.html - - - API.html - - - XSLT.html - - - - - - - - - tree.html - - - library.html - - - interface.html - - - example.html - - - entities.html - - - architecture.html - - - namespaces.html - - - DOM.html - - - - - - upgrade.html - - - - - - xmlio.html - - - xmlmem.html - - - threads.html - - - - - - python.html - - - unknown.html - - - - - - - - - - - intro.html - - - docs.html - - - bugs.html - - - help.html - - - help.html - - - downloads.html - - - news.html - - - contribs.html - - - xsltproc2.html - - - API.html - - - XSLT.html - - - XMLinfo.html - - - xmldtd.html - - - tree.html - - - library.html - - - interface.html - - - example.html - - - entities.html - - - architecture.html - - - namespaces.html - - - DOM.html - - - catalog.html - - - upgrade.html - - - encoding.html - - - xmlio.html - - - xmlmem.html - - - threads.html - - - FAQ.html - - - python.html - - - unknown.html - - - - - - - - - - -
    - - -
    - -
    - -
    - - -
    - -
    - - - - - - - - - - - -
    - - - - - - - -
    -
    - -
    -
    - -
    - - - - - - - -
    -
    - Related links -
    -
    - -
    -
    -
    - - - - - -
    - - - - - - - -
    -
    - Developer Menu -
    -
    - -
    - - - - - - - -
    -
    - API Indexes -
    -
    - -
    - - - - - - - -
    -
    - Related links -
    -
    - -
    -
    -
    - - - <xsl:apply-templates/> - - - - - - - - - - - - - - - - - - -
    - Action against software patents - - Gnome2 Logo - W3C Logo - Red Hat Logo -
    - Made with Libxml2 Logo -
    -
    - - - - -
    - - - - -
    - - - - - - -
    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - -
    - - - - - - - - - - - - - - - - -
    - - - - -
    - - - - -
    - -

    Daniel Veillard

    -
    -
    -
    -
    -
    - - -
    -
    - - - - - - - - - - - - - - - - - -
    - - - - - -
    - - - - - - -
    - - - - -
    - - - - -
    - - - - - - -

    Daniel Veillard

    -
    -
    -
    -
    -
    - -
    - - - - - - - - Generating the Web pages - - - - -
    diff --git a/src/tools/docbook/libxml2/doc/smallfootonly.gif b/src/tools/docbook/libxml2/doc/smallfootonly.gif deleted file mode 100644 index ddbb9eee12..0000000000 Binary files a/src/tools/docbook/libxml2/doc/smallfootonly.gif and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/structure.gif b/src/tools/docbook/libxml2/doc/structure.gif deleted file mode 100644 index 4b9a3e6d49..0000000000 Binary files a/src/tools/docbook/libxml2/doc/structure.gif and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/threads.html b/src/tools/docbook/libxml2/doc/threads.html deleted file mode 100644 index e6fe497c53..0000000000 --- a/src/tools/docbook/libxml2/doc/threads.html +++ /dev/null @@ -1,28 +0,0 @@ - - -Thread safety
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    Thread safety

    Developer Menu
    API Indexes
    Related links

    Starting with 2.4.7, libxml2 makes provisions to ensure -thatconcurrentthreads can safely work in parallel parsing different -documents.There ishowever a couple of things to do to ensure it:

    • configure the library accordingly using the --with-threads options
    • -
    • call xmlInitParser() in the "main" thread before using any ofthelibxml2 - API (except possibly selecting a different memoryallocator)
    • -

    Note that the thread safety cannot be ensured for multiple -threadssharingthe same document, the locking must be done at the application -level,libxmlexports a basic mutex and reentrant mutexes API -in<libxml/threads.h>.The parts of the library checked for thread -safetyare:

    • concurrent loading
    • -
    • file access resolution
    • -
    • catalog access
    • -
    • catalog building
    • -
    • entities lookup/accesses
    • -
    • validation
    • -
    • global variables per-thread override
    • -
    • memory handling
    • -

    XPath is supposed to be thread safe now, but this -wasn'ttestedseriously.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/tree.html b/src/tools/docbook/libxml2/doc/tree.html deleted file mode 100644 index 238cd6db2d..0000000000 --- a/src/tools/docbook/libxml2/doc/tree.html +++ /dev/null @@ -1,53 +0,0 @@ - - -The tree output
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    The tree output

    Developer Menu
    API Indexes
    Related links

    The parser returns a tree built during the document analysis. -Thevaluereturned is an xmlDocPtr(i.e., a pointer -toanxmlDocstructure). This structure contains -informationsuchas the file name, the document type, and -achildrenpointerwhich is the root of the document (or -moreexactly the first child under theroot which is the document). The tree -ismade of xmlNodes,chained in double-linked lists of -siblingsand with a children<->parentrelationship. An xmlNode can also -carryproperties (a chain of xmlAttrstructures). An attribute may have a -valuewhich is a list of TEXT orENTITY_REF nodes.

    Here is an example (erroneous with respect to the XML spec -sincethereshould be only one ELEMENT under the root):

     structure.gif

    In the source package there is a small program (not installed -bydefault)called xmllintwhich parses XML files given -asargument andprints them back as parsed. This is useful for detecting -errorsboth in XMLcode and in the XML parser itself. It has an -option--debugwhich prints the actual in-memory structure of -thedocument; here is theresult with the examplegivenbefore:

    DOCUMENT
    -version=1.0
    -standalone=true
    -  ELEMENT EXAMPLE
    -    ATTRIBUTE prop1
    -      TEXT
    -      content=gnome is great
    -    ATTRIBUTE prop2
    -      ENTITY_REF
    -      TEXT
    -      content= linux too 
    -    ELEMENT head
    -      ELEMENT title
    -        TEXT
    -        content=Welcome to Gnome
    -    ELEMENT chapter
    -      ELEMENT title
    -        TEXT
    -        content=The Linux adventure
    -      ELEMENT p
    -        TEXT
    -        content=bla bla bla ...
    -      ELEMENT image
    -        ATTRIBUTE href
    -          TEXT
    -          content=linus.gif
    -      ELEMENT p
    -        TEXT
    -        content=...

    This should be useful for learning the internal representation model.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/apa.html b/src/tools/docbook/libxml2/doc/tutorial/apa.html deleted file mode 100644 index 964e15f4ef..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/apa.html +++ /dev/null @@ -1,8 +0,0 @@ -A. Compilation

    A. Compilation

    - Libxml includes a script, - xml2-config, that can be used to generate - flags for compilation and linking of programs written with the - library. For pre-processor and compiler flags, use xml2-config - --cflags. For library linking flags, use xml2-config - --libs. Other options are available using xml2-config - --help.

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/apb.html b/src/tools/docbook/libxml2/doc/tutorial/apb.html deleted file mode 100644 index ef14066b8b..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/apb.html +++ /dev/null @@ -1,14 +0,0 @@ -B. Sample Document

    B. Sample Document

    -<?xml version="1.0"?>
    -<story>
    -  <storyinfo>
    -    <author>John Fleck</author>
    -    <datewritten>June 2, 2002</datewritten>
    -    <keyword>example keyword</keyword>
    -  </storyinfo>
    -  <body>
    -    <headline>This is the headline</headline>
    -    <para>This is the body text.</para>
    -  </body>
    -</story>
    -
    diff --git a/src/tools/docbook/libxml2/doc/tutorial/apc.html b/src/tools/docbook/libxml2/doc/tutorial/apc.html deleted file mode 100644 index f8d991117c..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/apc.html +++ /dev/null @@ -1,82 +0,0 @@ -C. Code for Keyword Example

    C. Code for Keyword Example

    -

    -#include <stdio.h>
    -#include <string.h>
    -#include <stdlib.h>
    -#include <libxml/xmlmemory.h>
    -#include <libxml/parser.h>
    -
    -void
    -parseStory (xmlDocPtr doc, xmlNodePtr cur) {
    -
    -	xmlChar *key;
    -	cur = cur->xmlChildrenNode;
    -	while (cur != NULL) {
    -	    if ((!xmlStrcmp(cur->name, (const xmlChar *)"keyword"))) {
    -		    key = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
    -		    printf("keyword: %s\n", key);
    -		    xmlFree(key);
    - 	    }
    -	cur = cur->next;
    -	}
    -    return;
    -}
    -
    -static void
    -parseDoc(char *docname) {
    -
    -	xmlDocPtr doc;
    -	xmlNodePtr cur;
    -
    -	doc = xmlParseFile(docname);
    -	
    -	if (doc == NULL ) {
    -		fprintf(stderr,"Document not parsed successfully. \n");
    -		return;
    -	}
    -	
    -	cur = xmlDocGetRootElement(doc);
    -	
    -	if (cur == NULL) {
    -		fprintf(stderr,"empty document\n");
    -		xmlFreeDoc(doc);
    -		return;
    -	}
    -	
    -	if (xmlStrcmp(cur->name, (const xmlChar *) "story")) {
    -		fprintf(stderr,"document of the wrong type, root node != story");
    -		xmlFreeDoc(doc);
    -		return;
    -	}
    -	
    -	cur = cur->xmlChildrenNode;
    -	while (cur != NULL) {
    -		if ((!xmlStrcmp(cur->name, (const xmlChar *)"storyinfo"))){
    -			parseStory (doc, cur);
    -		}
    -		 
    -	cur = cur->next;
    -	}
    -	
    -	xmlFreeDoc(doc);
    -	return;
    -}
    -
    -int
    -main(int argc, char **argv) {
    -
    -	char *docname;
    -		
    -	if (argc <= 1) {
    -		printf("Usage: %s docname\n", argv[0]);
    -		return(0);
    -	}
    -
    -	docname = argv[1];
    -	parseDoc (docname);
    -
    -	return (1);
    -}
    -
    -

    -

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/apd.html b/src/tools/docbook/libxml2/doc/tutorial/apd.html deleted file mode 100644 index 8f9618d52b..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/apd.html +++ /dev/null @@ -1,76 +0,0 @@ -D. Code for XPath Example

    D. Code for XPath Example

    -

    -#include <libxml/parser.h>
    -#include <libxml/xpath.h>
    -
    -xmlDocPtr
    -getdoc (char *docname) {
    -	xmlDocPtr doc;
    -	doc = xmlParseFile(docname);
    -	
    -	if (doc == NULL ) {
    -		fprintf(stderr,"Document not parsed successfully. \n");
    -		return NULL;
    -	}
    -
    -	return doc;
    -}
    -
    -xmlXPathObjectPtr
    -getnodeset (xmlDocPtr doc, xmlChar *xpath){
    -	
    -	xmlXPathContextPtr context;
    -	xmlXPathObjectPtr result;
    -
    -	context = xmlXPathNewContext(doc);
    -	if (context == NULL) {
    -		printf("Error in xmlXPathNewContext\n");
    -		return NULL;
    -	}
    -	result = xmlXPathEvalExpression(xpath, context);
    -	xmlXPathFreeContext(context);
    -	if (result == NULL) {
    -		printf("Error in xmlXPathEvalExpression\n");
    -		return NULL;
    -	}
    -	if(xmlXPathNodeSetIsEmpty(result->nodesetval)){
    -		xmlXPathFreeObject(result);
    -                printf("No result\n");
    -		return NULL;
    -	}
    -	return result;
    -}
    -int
    -main(int argc, char **argv) {
    -
    -	char *docname;
    -	xmlDocPtr doc;
    -	xmlChar *xpath = (xmlChar*) "//keyword";
    -	xmlNodeSetPtr nodeset;
    -	xmlXPathObjectPtr result;
    -	int i;
    -	xmlChar *keyword;
    -		
    -	if (argc <= 1) {
    -		printf("Usage: %s docname\n", argv[0]);
    -		return(0);
    -	}
    -
    -	docname = argv[1];
    -	doc = getdoc(docname);
    -	result = getnodeset (doc, xpath);
    -	if (result) {
    -		nodeset = result->nodesetval;
    -		for (i=0; i < nodeset->nodeNr; i++) {
    -			keyword = xmlNodeListGetString(doc, nodeset->nodeTab[i]->xmlChildrenNode, 1);
    -		printf("keyword: %s\n", keyword);
    -		xmlFree(keyword);
    -		}
    -		xmlXPathFreeObject (result);
    -	}
    -	xmlFreeDoc(doc);
    -	xmlCleanupParser();
    -	return (1);
    -}
    -

    -

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/ape.html b/src/tools/docbook/libxml2/doc/tutorial/ape.html deleted file mode 100644 index 200319a07d..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/ape.html +++ /dev/null @@ -1,78 +0,0 @@ -E. Code for Add Keyword Example

    E. Code for Add Keyword Example

    -

    -#include <stdio.h>
    -#include <string.h>
    -#include <stdlib.h>
    -#include <libxml/xmlmemory.h>
    -#include <libxml/parser.h>
    -
    -void
    -parseStory (xmlDocPtr doc, xmlNodePtr cur, char *keyword) {
    -
    -	xmlNewTextChild (cur, NULL, "keyword", keyword);
    -    return;
    -}
    -
    -xmlDocPtr
    -parseDoc(char *docname, char *keyword) {
    -
    -	xmlDocPtr doc;
    -	xmlNodePtr cur;
    -
    -	doc = xmlParseFile(docname);
    -	
    -	if (doc == NULL ) {
    -		fprintf(stderr,"Document not parsed successfully. \n");
    -		return (NULL);
    -	}
    -	
    -	cur = xmlDocGetRootElement(doc);
    -	
    -	if (cur == NULL) {
    -		fprintf(stderr,"empty document\n");
    -		xmlFreeDoc(doc);
    -		return (NULL);
    -	}
    -	
    -	if (xmlStrcmp(cur->name, (const xmlChar *) "story")) {
    -		fprintf(stderr,"document of the wrong type, root node != story");
    -		xmlFreeDoc(doc);
    -		return (NULL);
    -	}
    -	
    -	cur = cur->xmlChildrenNode;
    -	while (cur != NULL) {
    -		if ((!xmlStrcmp(cur->name, (const xmlChar *)"storyinfo"))){
    -			parseStory (doc, cur, keyword);
    -		}
    -		 
    -	cur = cur->next;
    -	}
    -	return(doc);
    -}
    -
    -int
    -main(int argc, char **argv) {
    -
    -	char *docname;
    -	char *keyword;
    -	xmlDocPtr doc;
    -
    -	if (argc <= 2) {
    -		printf("Usage: %s docname, keyword\n", argv[0]);
    -		return(0);
    -	}
    -
    -	docname = argv[1];
    -	keyword = argv[2];
    -	doc = parseDoc (docname, keyword);
    -	if (doc != NULL) {
    -		xmlSaveFormatFile (docname, doc, 0);
    -		xmlFreeDoc(doc);
    -	}
    -	
    -	return (1);
    -}
    -
    -

    -

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/apf.html b/src/tools/docbook/libxml2/doc/tutorial/apf.html deleted file mode 100644 index 4848cdbfec..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/apf.html +++ /dev/null @@ -1,67 +0,0 @@ -F. Code for Add Attribute Example

    F. Code for Add Attribute Example

    -

    -#include <stdio.h>
    -#include <string.h>
    -#include <stdlib.h>
    -#include <libxml/xmlmemory.h>
    -#include <libxml/parser.h>
    -
    -
    -xmlDocPtr
    -parseDoc(char *docname, char *uri) {
    -
    -	xmlDocPtr doc;
    -	xmlNodePtr cur;
    -	xmlNodePtr newnode;
    -	xmlAttrPtr newattr;
    -
    -	doc = xmlParseFile(docname);
    -	
    -	if (doc == NULL ) {
    -		fprintf(stderr,"Document not parsed successfully. \n");
    -		return (NULL);
    -	}
    -	
    -	cur = xmlDocGetRootElement(doc);
    -	
    -	if (cur == NULL) {
    -		fprintf(stderr,"empty document\n");
    -		xmlFreeDoc(doc);
    -		return (NULL);
    -	}
    -	
    -	if (xmlStrcmp(cur->name, (const xmlChar *) "story")) {
    -		fprintf(stderr,"document of the wrong type, root node != story");
    -		xmlFreeDoc(doc);
    -		return (NULL);
    -	}
    -	
    -	newnode = xmlNewTextChild (cur, NULL, "reference", NULL);
    -	newattr = xmlNewProp (newnode, "uri", uri);
    -	return(doc);
    -}
    -
    -int
    -main(int argc, char **argv) {
    -
    -	char *docname;
    -	char *uri;
    -	xmlDocPtr doc;
    -
    -	if (argc <= 2) {
    -		printf("Usage: %s docname, uri\n", argv[0]);
    -		return(0);
    -	}
    -
    -	docname = argv[1];
    -	uri = argv[2];
    -	doc = parseDoc (docname, uri);
    -	if (doc != NULL) {
    -		xmlSaveFormatFile (docname, doc, 1);
    -		xmlFreeDoc(doc);
    -	}
    -	return (1);
    -}
    -
    -

    -

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/apg.html b/src/tools/docbook/libxml2/doc/tutorial/apg.html deleted file mode 100644 index fffa0eed68..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/apg.html +++ /dev/null @@ -1,75 +0,0 @@ -G. Code for Retrieving Attribute Value Example

    G. Code for Retrieving Attribute Value Example

    -

    -#include <stdio.h>
    -#include <string.h>
    -#include <stdlib.h>
    -#include <libxml/xmlmemory.h>
    -#include <libxml/parser.h>
    -
    -void
    -getReference (xmlDocPtr doc, xmlNodePtr cur) {
    -
    -	xmlChar *uri;
    -	cur = cur->xmlChildrenNode;
    -	while (cur != NULL) {
    -	    if ((!xmlStrcmp(cur->name, (const xmlChar *)"reference"))) {
    -		    uri = xmlGetProp(cur, "uri");
    -		    printf("uri: %s\n", uri);
    -		    xmlFree(uri);
    -	    }
    -	    cur = cur->next;
    -	}
    -	return;
    -}
    -
    -
    -void
    -parseDoc(char *docname) {
    -
    -	xmlDocPtr doc;
    -	xmlNodePtr cur;
    -
    -	doc = xmlParseFile(docname);
    -	
    -	if (doc == NULL ) {
    -		fprintf(stderr,"Document not parsed successfully. \n");
    -		return;
    -	}
    -	
    -	cur = xmlDocGetRootElement(doc);
    -	
    -	if (cur == NULL) {
    -		fprintf(stderr,"empty document\n");
    -		xmlFreeDoc(doc);
    -		return;
    -	}
    -	
    -	if (xmlStrcmp(cur->name, (const xmlChar *) "story")) {
    -		fprintf(stderr,"document of the wrong type, root node != story");
    -		xmlFreeDoc(doc);
    -		return;
    -	}
    -	
    -	getReference (doc, cur);
    -	xmlFreeDoc(doc);
    -	return;
    -}
    -
    -int
    -main(int argc, char **argv) {
    -
    -	char *docname;
    -
    -	if (argc <= 1) {
    -		printf("Usage: %s docname\n", argv[0]);
    -		return(0);
    -	}
    -
    -	docname = argv[1];
    -	parseDoc (docname);
    -	
    -	return (1);
    -}
    -
    -

    -

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/aph.html b/src/tools/docbook/libxml2/doc/tutorial/aph.html deleted file mode 100644 index ef466057a6..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/aph.html +++ /dev/null @@ -1,76 +0,0 @@ -H. Code for Encoding Conversion Example

    H. Code for Encoding Conversion Example

    -

    -#include <string.h>
    -#include <libxml/parser.h>
    -
    -
    -unsigned char*
    -convert (unsigned char *in, char *encoding)
    -{
    -	unsigned char *out;
    -        int ret,size,out_size,temp;
    -        xmlCharEncodingHandlerPtr handler;
    -
    -        size = (int)strlen(in)+1; 
    -        out_size = size*2-1; 
    -        out = malloc((size_t)out_size); 
    -
    -        if (out) {
    -                handler = xmlFindCharEncodingHandler(encoding);
    -                
    -                if (!handler) {
    -                        free(out);
    -                        out = NULL;
    -                }
    -        }
    -        if (out) {
    -                temp=size-1;
    -                ret = handler->input(out, &out_size, in, &temp);
    -                if (ret || temp-size+1) {
    -                        if (ret) {
    -                                printf("conversion wasn't successful.\n");
    -                        } else {
    -                                printf("conversion wasn't successful. converted: %i octets.\n",temp);
    -                        }
    -                        free(out);
    -                        out = NULL;
    -                } else {
    -                        out = realloc(out,out_size+1); 
    -                        out[out_size]=0; /*null terminating out*/
    -                        
    -                }
    -        } else {
    -                printf("no mem\n");
    -        }
    -        return (out);
    -}	
    -
    -
    -int
    -main(int argc, char **argv) {
    -
    -	unsigned char *content, *out;
    -	xmlDocPtr doc;
    -	xmlNodePtr rootnode;
    -	char *encoding = "ISO-8859-1";
    -	
    -		
    -	if (argc <= 1) {
    -		printf("Usage: %s content\n", argv[0]);
    -		return(0);
    -	}
    -
    -	content = argv[1];
    -
    -	out = convert(content, encoding);
    -
    -	doc = xmlNewDoc ("1.0");
    -	rootnode = xmlNewDocNode(doc, NULL, (const xmlChar*)"root", out);
    -	xmlDocSetRootElement(doc, rootnode);
    -
    -	xmlSaveFormatFileEnc("-", doc, encoding, 1);
    -	return (1);
    -}
    -
    -

    -

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/api.html b/src/tools/docbook/libxml2/doc/tutorial/api.html deleted file mode 100644 index 16e7981232..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/api.html +++ /dev/null @@ -1,4 +0,0 @@ -I. Acknowledgements

    I. Acknowledgements

    A number of people have generously offered feedback, code and - suggested improvements to this tutorial. In no particular order: - Daniel Veillard, Marcus Labib Iskander, Christopher R. Harris, Igor Zlatkovic, Niraj Tolia, David Turover -

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/ar01s02.html b/src/tools/docbook/libxml2/doc/tutorial/ar01s02.html deleted file mode 100644 index 1e30a98bcf..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/ar01s02.html +++ /dev/null @@ -1,14 +0,0 @@ -Data Types

    Data Types

    Libxml declares a number of data types we - will encounter repeatedly, hiding the messy stuff so you do not have to deal - with it unless you have some specific need.

    -

    -xmlChar

    A basic replacement for char, a byte in a UTF-8 encoded - string. If your data uses another encoding, it must be converted to - UTF-8 for use with libxml's - functions. More information on encoding is available on the libxml encoding support web page.

    - xmlDoc

    A structure containing the tree created by a parsed doc. xmlDocPtr - is a pointer to the structure.

    -xmlNodePtr - and xmlNode

    A structure containing a single node. xmlNodePtr - is a pointer to the structure, and is used in traversing the document tree.

    -

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/ar01s03.html b/src/tools/docbook/libxml2/doc/tutorial/ar01s03.html deleted file mode 100644 index cd28fff540..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/ar01s03.html +++ /dev/null @@ -1,47 +0,0 @@ -Parsing the file

    Parsing the file

    -Parsing the file requires only the name of the file and a single - function call, plus error checking. Full code: Appendix C, Code for Keyword Example

    -

    -        1 xmlDocPtr doc;
    -	2 xmlNodePtr cur;
    -
    -	3 doc = xmlParseFile(docname);
    -	
    -	4 if (doc == NULL ) {
    -		fprintf(stderr,"Document not parsed successfully. \n");
    -		return;
    -	}
    -
    -	5 cur = xmlDocGetRootElement(doc);
    -	
    -	6 if (cur == NULL) {
    -		fprintf(stderr,"empty document\n");
    -		xmlFreeDoc(doc);
    -		return;
    -	}
    -	
    -	7 if (xmlStrcmp(cur->name, (const xmlChar *) "story")) {
    -		fprintf(stderr,"document of the wrong type, root node != story");
    -		xmlFreeDoc(doc);
    -		return;
    -	}
    -
    -    

    -

    1

    Declare the pointer that will point to your parsed document.

    2

    Declare a node pointer (you'll need this in order to - interact with individual nodes).

    4

    Check to see that the document was successfully parsed. If it - was not, libxml will at this point - register an error and stop. -

    [Note]Note

    -One common example of an error at this point is improper - handling of encoding. The XML standard requires - documents stored with an encoding other than UTF-8 or UTF-16 to - contain an explicit declaration of their encoding. If the - declaration is there, libxml will - automatically perform the necessary conversion to UTF-8 for - you. More information on XML's encoding - requirements is contained in the standard.

    -

    5

    Retrieve the document's root element.

    6

    Check to make sure the document actually contains something.

    7

    In our case, we need to make sure the document is the right - type. "story" is the root type of the documents used in this - tutorial.

    - -

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/ar01s04.html b/src/tools/docbook/libxml2/doc/tutorial/ar01s04.html deleted file mode 100644 index 11492ebf21..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/ar01s04.html +++ /dev/null @@ -1,54 +0,0 @@ -Retrieving Element Content

    Retrieving Element Content

    -Retrieving the content of an element involves traversing the document - tree until you find what you are looking for. In this case, we are looking - for an element called "keyword" contained within element called "story". The - process to find the node we are interested in involves tediously walking the - tree. We assume you already have an xmlDocPtr called doc - and an xmlNodPtr called cur.

    -

    -	1cur = cur->xmlChildrenNode;
    -	2while (cur != NULL) {
    -		if ((!xmlStrcmp(cur->name, (const xmlChar *)"storyinfo"))){
    -			parseStory (doc, cur);
    -		}
    -		 
    -	cur = cur->next;
    -	}
    -      

    - -

    1

    Get the first child node of cur. At this - point, cur points at the document root, which is - the element "story".

    2

    This loop iterates through the elements that are children of - "story", looking for one called "storyinfo". That - is the element that will contain the "keywords" we are - looking for. It uses the libxml string - comparison - function, xmlStrcmp. If there is a match, it calls the function parseStory.

    -

    -

    -void
    -parseStory (xmlDocPtr doc, xmlNodePtr cur) {
    -
    -	xmlChar *key;
    -	1 cur = cur->xmlChildrenNode;
    -	2 while (cur != NULL) {
    -	    if ((!xmlStrcmp(cur->name, (const xmlChar *)"keyword"))) {
    -	3	    key = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
    -		    printf("keyword: %s\n", key);
    -		    xmlFree(key);
    - 	    }
    -	cur = cur->next;
    -	}
    -    return;
    -}
    -      

    -

    1

    Again we get the first child node.

    2

    Like the loop above, we then iterate through the nodes, looking - for one that matches the element we're interested in, in this case - "keyword".

    3

    When we find the "keyword" element, we need to print - its contents. Remember that in XML, the text - contained within an element is a child node of that element, so we - turn to cur->xmlChildrenNode. To retrieve it, we - use the function xmlNodeListGetString, which also takes the doc pointer as an argument. In this case, we just print it out.

    [Note]Note

    Because xmlNodeListGetString allocates - memory for the string it returns, you must use - xmlFree to free it.

    -

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/ar01s05.html b/src/tools/docbook/libxml2/doc/tutorial/ar01s05.html deleted file mode 100644 index 1c40925275..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/ar01s05.html +++ /dev/null @@ -1,55 +0,0 @@ -Using XPath to Retrieve Element Content

    Using XPath to Retrieve Element Content

    In addition to walking the document tree to find an element, - Libxml2 includes support for - use of XPath expressions to retrieve sets of - nodes that match a specified criteria. Full documentation of the - XPath API is here. -

    XPath allows searching through a document - for nodes that match specified criteria. In the example below we search - through a document for the contents of all keyword - elements. -

    [Note]Note

    A full discussion of XPath is beyond - the scope of this document. For details on its use, see the XPath specification.

    - Full code for this example is at Appendix D, Code for XPath Example. -

    Using XPath requires setting up an - xmlXPathContext and then supplying the XPath - expression and the context to the - xmlXPathEvalExpression function. The function returns - an xmlXPathObjectPtr, which includes the set of nodes satisfying the - XPath expression.

    -

    -	xmlXPathObjectPtr
    -	getnodeset (xmlDocPtr doc, xmlChar *xpath){
    -	
    -	1xmlXPathContextPtr context;
    -	xmlXPathObjectPtr result;
    -
    -	2context = xmlXPathNewContext(doc);
    -	3result = xmlXPathEvalExpression(xpath, context);
    -	4if(xmlXPathNodeSetIsEmpty(result->nodesetval)){
    -		xmlXPathFreeObject(result);
    -                printf("No result\n");
    -		return NULL;
    -      

    -

    1

    First we declare our variables.

    2

    Initialize the context variable.

    3

    Apply the XPath expression.

    4

    Check the result and free the memory allocated to - result if no result is found.

    -

    The xmlPathObjectPtr returned by the function contains a set of nodes - and other information needed to iterate through the set and act on the - results. For this example, our functions returns the - xmlXPathObjectPtr. We use it to print the contents of - keyword nodes in our document. The node set object - includes the number of elements in the set (nodeNr) and - an array of nodes (nodeTab): -

    -	1for (i=0; i < nodeset->nodeNr; i++) {
    -	2keyword = xmlNodeListGetString(doc, nodeset->nodeTab[i]->xmlChildrenNode, 1);
    -		printf("keyword: %s\n", keyword);
    -	        xmlFree(keyword);
    -	}
    -      

    -

    1

    The value of nodeset->Nr holds the number of - elements in the node set. Here we use it to iterate through the array.

    2

    Here we print the contents of each of the nodes returned. -

    [Note]Note

    Note that we are printing the child node of the node that is - returned, because the contents of the keyword - element are a child text node.

    -

    -

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/ar01s06.html b/src/tools/docbook/libxml2/doc/tutorial/ar01s06.html deleted file mode 100644 index c09e6efbb9..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/ar01s06.html +++ /dev/null @@ -1,35 +0,0 @@ -Writing element content

    Writing element content

    - Writing element content uses many of the same steps we used above - — parsing the document and walking the tree. We parse the document, - then traverse the tree to find the place we want to insert our element. For - this example, we want to again find the "storyinfo" element and - this time insert a keyword. Then we'll write the file to disk. Full code: - Appendix E, Code for Add Keyword Example

    - The main difference in this example is in - parseStory: - -

    -void
    -parseStory (xmlDocPtr doc, xmlNodePtr cur, char *keyword) {
    -
    -	1 xmlNewTextChild (cur, NULL, "keyword", keyword);
    -    return;
    -}
    -      

    -

    1

    The xmlNewTextChild - function adds a new child element at the - current node pointer's location in the - tree, specified by cur.

    -

    - - Once the node has been added, we would like to write the document to - file. Is you want the element to have a namespace, you can add it here as - well. In our case, the namespace is NULL. -

    -	xmlSaveFormatFile (docname, doc, 1);
    -      

    - The first parameter is the name of the file to be written. You'll notice - it is the same as the file we just read. In this case, we just write over - the old file. The second parameter is a pointer to the xmlDoc - structure. Setting the third parameter equal to one ensures indenting on output. -

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/ar01s07.html b/src/tools/docbook/libxml2/doc/tutorial/ar01s07.html deleted file mode 100644 index fd5c4dd99e..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/ar01s07.html +++ /dev/null @@ -1,30 +0,0 @@ -Writing Attribute

    Writing Attribute

    -Writing an attribute is similar to writing text to a new element. In - this case, we'll add a reference URI to our - document. Full code:Appendix F, Code for Add Attribute Example.

    - A reference is a child of the story - element, so finding the place to put our new element and attribute is - simple. As soon as we do the error-checking test in our - parseDoc, we are in the right spot to add our - element. But before we do that, we need to make a declaration using a - data type we have not seen yet: -

    -	xmlAttrPtr newattr;
    -      

    - We also need an extra xmlNodePtr: -

    -	xmlNodePtr newnode;
    -      

    -

    - The rest of parseDoc is the same as before until we - check to see if our root element is story. If it is, - then we know we are at the right spot to add our element: - -

    -	1 newnode = xmlNewTextChild (cur, NULL, "reference", NULL);
    -	2 newattr = xmlNewProp (newnode, "uri", uri);	
    -      

    -

    1

    First we add a new node at the location of the current node - pointer, cur. using the xmlNewTextChild function.

    -

    Once the node is added, the file is written to disk just as in the - previous example in which we added an element with text content.

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/ar01s08.html b/src/tools/docbook/libxml2/doc/tutorial/ar01s08.html deleted file mode 100644 index 758f811682..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/ar01s08.html +++ /dev/null @@ -1,38 +0,0 @@ -Retrieving Attributes

    Retrieving Attributes

    -Retrieving the value of an attribute is similar to the previous - example in which we retrieved a node's text contents. In this case we'll - extract the value of the URI we added in the previous - section. Full code: Appendix G, Code for Retrieving Attribute Value Example.

    - The initial steps for this example are similar to the previous ones: parse - the doc, find the element you are interested in, then enter a function to - carry out the specific task required. In this case, we call - getReference: -

    -void
    -getReference (xmlDocPtr doc, xmlNodePtr cur) {
    -
    -	xmlChar *uri;
    -	cur = cur->xmlChildrenNode;
    -	while (cur != NULL) {
    -	    if ((!xmlStrcmp(cur->name, (const xmlChar *)"reference"))) {
    -		   1 uri = xmlGetProp(cur, "uri");
    -		    printf("uri: %s\n", uri);
    -		    xmlFree(uri);
    -	    }
    -	    cur = cur->next;
    -	}
    -	return;
    -}
    -      

    - -

    1

    - The key function is xmlGetProp, which returns an - xmlChar containing the attribute's value. In this case, - we just print it out. -

    [Note]Note

    - If you are using a DTD that declares a fixed or - default value for the attribute, this function will retrieve it. -

    -

    - -

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/ar01s09.html b/src/tools/docbook/libxml2/doc/tutorial/ar01s09.html deleted file mode 100644 index 2987add33c..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/ar01s09.html +++ /dev/null @@ -1,63 +0,0 @@ -Encoding Conversion

    Encoding Conversion

    -Data encoding compatibility problems are one of the most common - difficulties encountered by programmers new to XML in - general and libxml in particular. Thinking - through the design of your application in light of this issue will help - avoid difficulties later. Internally, libxml - stores and manipulates data in the UTF-8 format. Data used by your program - in other formats, such as the commonly used ISO-8859-1 encoding, must be - converted to UTF-8 before passing it to libxml - functions. If you want your program's output in an encoding other than - UTF-8, you also must convert it.

    Libxml uses - iconv if it is available to convert - data. Without iconv, only UTF-8, UTF-16 and - ISO-8859-1 can be used as external formats. With - iconv, any format can be used provided - iconv is able to convert it to and from - UTF-8. Currently iconv supports about 150 - different character formats with ability to convert from any to any. While - the actual number of supported formats varies between implementations, every - iconv implementation is almost guaranteed to - support every format anyone has ever heard of.

    [Warning]Warning

    A common mistake is to use different formats for the internal data - in different parts of one's code. The most common case is an application - that assumes ISO-8859-1 to be the internal data format, combined with - libxml, which assumes UTF-8 to be the - internal data format. The result is an application that treats internal - data differently, depending on which code section is executing. The one or - the other part of code will then, naturally, misinterpret the data. -

    This example constructs a simple document, then adds content provided - at the command line to the document's root element and outputs the results - to stdout in the proper encoding. For this example, we - use ISO-8859-1 encoding. The encoding of the string input at the command - line is converted from ISO-8859-1 to UTF-8. Full code: Appendix H, Code for Encoding Conversion Example

    The conversion, encapsulated in the example code in the - convert function, uses - libxml's - xmlFindCharEncodingHandler function: -

    -	1xmlCharEncodingHandlerPtr handler;
    -        2size = (int)strlen(in)+1; 
    -        out_size = size*2-1; 
    -        out = malloc((size_t)out_size); 
    -
    -…
    -	3handler = xmlFindCharEncodingHandler(encoding);
    -…
    -	4handler->input(out, &out_size, in, &temp);
    -…	
    -	5xmlSaveFormatFileEnc("-", doc, encoding, 1);
    -      

    -

    1

    handler is declared as a pointer to an - xmlCharEncodingHandler function.

    2

    The xmlCharEncodingHandler function needs - to be given the size of the input and output strings, which are - calculated here for strings in and - out.

    3

    xmlFindCharEncodingHandler takes as its - argument the data's initial encoding and searches - libxml's built-in set of conversion - handlers, returning a pointer to the function or NULL if none is - found.

    4

    The conversion function identified by handler - requires as its arguments pointers to the input and output strings, - along with the length of each. The lengths must be determined - separately by the application.

    5

    To output in a specified encoding rather than UTF-8, we use - xmlSaveFormatFileEnc, specifying the - encoding.

    -

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/blank.png b/src/tools/docbook/libxml2/doc/tutorial/images/blank.png deleted file mode 100644 index 764bf4f0c3..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/blank.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/1.png b/src/tools/docbook/libxml2/doc/tutorial/images/callouts/1.png deleted file mode 100644 index 7d473430b7..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/1.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/10.png b/src/tools/docbook/libxml2/doc/tutorial/images/callouts/10.png deleted file mode 100644 index 997bbc8246..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/10.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/2.png b/src/tools/docbook/libxml2/doc/tutorial/images/callouts/2.png deleted file mode 100644 index 5d09341b2f..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/2.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/3.png b/src/tools/docbook/libxml2/doc/tutorial/images/callouts/3.png deleted file mode 100644 index ef7b700471..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/3.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/4.png b/src/tools/docbook/libxml2/doc/tutorial/images/callouts/4.png deleted file mode 100644 index adb8364eb5..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/4.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/5.png b/src/tools/docbook/libxml2/doc/tutorial/images/callouts/5.png deleted file mode 100644 index 4d7eb46002..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/5.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/6.png b/src/tools/docbook/libxml2/doc/tutorial/images/callouts/6.png deleted file mode 100644 index 0ba694af6c..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/6.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/7.png b/src/tools/docbook/libxml2/doc/tutorial/images/callouts/7.png deleted file mode 100644 index 472e96f8ac..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/7.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/8.png b/src/tools/docbook/libxml2/doc/tutorial/images/callouts/8.png deleted file mode 100644 index 5e60973c21..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/8.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/9.png b/src/tools/docbook/libxml2/doc/tutorial/images/callouts/9.png deleted file mode 100644 index a0676d26cc..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/callouts/9.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/caution.png b/src/tools/docbook/libxml2/doc/tutorial/images/caution.png deleted file mode 100644 index 5b7809ca4a..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/caution.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/draft.png b/src/tools/docbook/libxml2/doc/tutorial/images/draft.png deleted file mode 100644 index 0084708c9b..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/draft.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/home.png b/src/tools/docbook/libxml2/doc/tutorial/images/home.png deleted file mode 100644 index cbb711de71..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/home.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/important.png b/src/tools/docbook/libxml2/doc/tutorial/images/important.png deleted file mode 100644 index 12c90f607a..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/important.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/next.png b/src/tools/docbook/libxml2/doc/tutorial/images/next.png deleted file mode 100644 index 45835bf89a..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/next.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/note.png b/src/tools/docbook/libxml2/doc/tutorial/images/note.png deleted file mode 100644 index d0c3c645ab..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/note.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/prev.png b/src/tools/docbook/libxml2/doc/tutorial/images/prev.png deleted file mode 100644 index cf24654f8a..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/prev.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/tip.png b/src/tools/docbook/libxml2/doc/tutorial/images/tip.png deleted file mode 100644 index 5c4aab3bb3..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/tip.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/toc-blank.png b/src/tools/docbook/libxml2/doc/tutorial/images/toc-blank.png deleted file mode 100644 index 6ffad17a0c..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/toc-blank.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/toc-minus.png b/src/tools/docbook/libxml2/doc/tutorial/images/toc-minus.png deleted file mode 100644 index abbb020c8e..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/toc-minus.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/toc-plus.png b/src/tools/docbook/libxml2/doc/tutorial/images/toc-plus.png deleted file mode 100644 index 941312ce0d..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/toc-plus.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/up.png b/src/tools/docbook/libxml2/doc/tutorial/images/up.png deleted file mode 100644 index 07634de26b..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/up.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/images/warning.png b/src/tools/docbook/libxml2/doc/tutorial/images/warning.png deleted file mode 100644 index 1c33db8f34..0000000000 Binary files a/src/tools/docbook/libxml2/doc/tutorial/images/warning.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/tutorial/includeaddattribute.c b/src/tools/docbook/libxml2/doc/tutorial/includeaddattribute.c deleted file mode 100644 index bb6a18b478..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/includeaddattribute.c +++ /dev/null @@ -1,64 +0,0 @@ - -#include -#include -#include -#include - - -xmlDocPtr -parseDoc(char *docname, char *uri) { - - xmlDocPtr doc; - xmlNodePtr cur; - xmlNodePtr newnode; - xmlAttrPtr newattr; - - doc = xmlParseFile(docname); - - if (doc == NULL ) { - fprintf(stderr,"Document not parsed successfully. \n"); - return (NULL); - } - - cur = xmlDocGetRootElement(doc); - - if (cur == NULL) { - fprintf(stderr,"empty document\n"); - xmlFreeDoc(doc); - return (NULL); - } - - if (xmlStrcmp(cur->name, (const xmlChar *) "story")) { - fprintf(stderr,"document of the wrong type, root node != story"); - xmlFreeDoc(doc); - return (NULL); - } - - newnode = xmlNewTextChild (cur, NULL, "reference", NULL); - newattr = xmlNewProp (newnode, "uri", uri); - return(doc); -} - -int -main(int argc, char **argv) { - - char *docname; - char *uri; - xmlDocPtr doc; - - if (argc <= 2) { - printf("Usage: %s docname, uri\n", argv[0]); - return(0); - } - - docname = argv[1]; - uri = argv[2]; - doc = parseDoc (docname, uri); - if (doc != NULL) { - xmlSaveFormatFile (docname, doc, 1); - xmlFreeDoc(doc); - } - return (1); -} -]]> diff --git a/src/tools/docbook/libxml2/doc/tutorial/includeaddkeyword.c b/src/tools/docbook/libxml2/doc/tutorial/includeaddkeyword.c deleted file mode 100644 index 975168d70a..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/includeaddkeyword.c +++ /dev/null @@ -1,75 +0,0 @@ - -#include -#include -#include -#include - -void -parseStory (xmlDocPtr doc, xmlNodePtr cur, char *keyword) { - - xmlNewTextChild (cur, NULL, "keyword", keyword); - return; -} - -xmlDocPtr -parseDoc(char *docname, char *keyword) { - - xmlDocPtr doc; - xmlNodePtr cur; - - doc = xmlParseFile(docname); - - if (doc == NULL ) { - fprintf(stderr,"Document not parsed successfully. \n"); - return (NULL); - } - - cur = xmlDocGetRootElement(doc); - - if (cur == NULL) { - fprintf(stderr,"empty document\n"); - xmlFreeDoc(doc); - return (NULL); - } - - if (xmlStrcmp(cur->name, (const xmlChar *) "story")) { - fprintf(stderr,"document of the wrong type, root node != story"); - xmlFreeDoc(doc); - return (NULL); - } - - cur = cur->xmlChildrenNode; - while (cur != NULL) { - if ((!xmlStrcmp(cur->name, (const xmlChar *)"storyinfo"))){ - parseStory (doc, cur, keyword); - } - - cur = cur->next; - } - return(doc); -} - -int -main(int argc, char **argv) { - - char *docname; - char *keyword; - xmlDocPtr doc; - - if (argc <= 2) { - printf("Usage: %s docname, keyword\n", argv[0]); - return(0); - } - - docname = argv[1]; - keyword = argv[2]; - doc = parseDoc (docname, keyword); - if (doc != NULL) { - xmlSaveFormatFile (docname, doc, 0); - xmlFreeDoc(doc); - } - - return (1); -} -]]> diff --git a/src/tools/docbook/libxml2/doc/tutorial/includeconvert.c b/src/tools/docbook/libxml2/doc/tutorial/includeconvert.c deleted file mode 100644 index 482e56fc02..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/includeconvert.c +++ /dev/null @@ -1,73 +0,0 @@ - -#include - - -unsigned char* -convert (unsigned char *in, char *encoding) -{ - unsigned char *out; - int ret,size,out_size,temp; - xmlCharEncodingHandlerPtr handler; - - size = (int)strlen(in)+1; - out_size = size*2-1; - out = malloc((size_t)out_size); - - if (out) { - handler = xmlFindCharEncodingHandler(encoding); - - if (!handler) { - free(out); - out = NULL; - } - } - if (out) { - temp=size-1; - ret = handler->input(out, &out_size, in, &temp); - if (ret || temp-size+1) { - if (ret) { - printf("conversion wasn't successful.\n"); - } else { - printf("conversion wasn't successful. converted: %i octets.\n",temp); - } - free(out); - out = NULL; - } else { - out = realloc(out,out_size+1); - out[out_size]=0; /*null terminating out*/ - - } - } else { - printf("no mem\n"); - } - return (out); -} - - -int -main(int argc, char **argv) { - - unsigned char *content, *out; - xmlDocPtr doc; - xmlNodePtr rootnode; - char *encoding = "ISO-8859-1"; - - - if (argc <= 1) { - printf("Usage: %s content\n", argv[0]); - return(0); - } - - content = argv[1]; - - out = convert(content, encoding); - - doc = xmlNewDoc ("1.0"); - rootnode = xmlNewDocNode(doc, NULL, (const xmlChar*)"root", out); - xmlDocSetRootElement(doc, rootnode); - - xmlSaveFormatFileEnc("-", doc, encoding, 1); - return (1); -} -]]> diff --git a/src/tools/docbook/libxml2/doc/tutorial/includegetattribute.c b/src/tools/docbook/libxml2/doc/tutorial/includegetattribute.c deleted file mode 100644 index b2b7471102..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/includegetattribute.c +++ /dev/null @@ -1,72 +0,0 @@ - -#include -#include -#include -#include - -void -getReference (xmlDocPtr doc, xmlNodePtr cur) { - - xmlChar *uri; - cur = cur->xmlChildrenNode; - while (cur != NULL) { - if ((!xmlStrcmp(cur->name, (const xmlChar *)"reference"))) { - uri = xmlGetProp(cur, "uri"); - printf("uri: %s\n", uri); - xmlFree(uri); - } - cur = cur->next; - } - return; -} - - -void -parseDoc(char *docname) { - - xmlDocPtr doc; - xmlNodePtr cur; - - doc = xmlParseFile(docname); - - if (doc == NULL ) { - fprintf(stderr,"Document not parsed successfully. \n"); - return; - } - - cur = xmlDocGetRootElement(doc); - - if (cur == NULL) { - fprintf(stderr,"empty document\n"); - xmlFreeDoc(doc); - return; - } - - if (xmlStrcmp(cur->name, (const xmlChar *) "story")) { - fprintf(stderr,"document of the wrong type, root node != story"); - xmlFreeDoc(doc); - return; - } - - getReference (doc, cur); - xmlFreeDoc(doc); - return; -} - -int -main(int argc, char **argv) { - - char *docname; - - if (argc <= 1) { - printf("Usage: %s docname\n", argv[0]); - return(0); - } - - docname = argv[1]; - parseDoc (docname); - - return (1); -} -]]> diff --git a/src/tools/docbook/libxml2/doc/tutorial/includekeyword.c b/src/tools/docbook/libxml2/doc/tutorial/includekeyword.c deleted file mode 100644 index e9bb467247..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/includekeyword.c +++ /dev/null @@ -1,79 +0,0 @@ - -#include -#include -#include -#include - -void -parseStory (xmlDocPtr doc, xmlNodePtr cur) { - - xmlChar *key; - cur = cur->xmlChildrenNode; - while (cur != NULL) { - if ((!xmlStrcmp(cur->name, (const xmlChar *)"keyword"))) { - key = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); - printf("keyword: %s\n", key); - xmlFree(key); - } - cur = cur->next; - } - return; -} - -static void -parseDoc(char *docname) { - - xmlDocPtr doc; - xmlNodePtr cur; - - doc = xmlParseFile(docname); - - if (doc == NULL ) { - fprintf(stderr,"Document not parsed successfully. \n"); - return; - } - - cur = xmlDocGetRootElement(doc); - - if (cur == NULL) { - fprintf(stderr,"empty document\n"); - xmlFreeDoc(doc); - return; - } - - if (xmlStrcmp(cur->name, (const xmlChar *) "story")) { - fprintf(stderr,"document of the wrong type, root node != story"); - xmlFreeDoc(doc); - return; - } - - cur = cur->xmlChildrenNode; - while (cur != NULL) { - if ((!xmlStrcmp(cur->name, (const xmlChar *)"storyinfo"))){ - parseStory (doc, cur); - } - - cur = cur->next; - } - - xmlFreeDoc(doc); - return; -} - -int -main(int argc, char **argv) { - - char *docname; - - if (argc <= 1) { - printf("Usage: %s docname\n", argv[0]); - return(0); - } - - docname = argv[1]; - parseDoc (docname); - - return (1); -} -]]> diff --git a/src/tools/docbook/libxml2/doc/tutorial/includexpath.c b/src/tools/docbook/libxml2/doc/tutorial/includexpath.c deleted file mode 100644 index 6b66e60556..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/includexpath.c +++ /dev/null @@ -1,74 +0,0 @@ - -#include - -xmlDocPtr -getdoc (char *docname) { - xmlDocPtr doc; - doc = xmlParseFile(docname); - - if (doc == NULL ) { - fprintf(stderr,"Document not parsed successfully. \n"); - return NULL; - } - - return doc; -} - -xmlXPathObjectPtr -getnodeset (xmlDocPtr doc, xmlChar *xpath){ - - xmlXPathContextPtr context; - xmlXPathObjectPtr result; - - context = xmlXPathNewContext(doc); - if (context == NULL) { - printf("Error in xmlXPathNewContext\n"); - return NULL; - } - result = xmlXPathEvalExpression(xpath, context); - xmlXPathFreeContext(context); - if (result == NULL) { - printf("Error in xmlXPathEvalExpression\n"); - return NULL; - } - if(xmlXPathNodeSetIsEmpty(result->nodesetval)){ - xmlXPathFreeObject(result); - printf("No result\n"); - return NULL; - } - return result; -} -int -main(int argc, char **argv) { - - char *docname; - xmlDocPtr doc; - xmlChar *xpath = (xmlChar*) "//keyword"; - xmlNodeSetPtr nodeset; - xmlXPathObjectPtr result; - int i; - xmlChar *keyword; - - if (argc <= 1) { - printf("Usage: %s docname\n", argv[0]); - return(0); - } - - docname = argv[1]; - doc = getdoc(docname); - result = getnodeset (doc, xpath); - if (result) { - nodeset = result->nodesetval; - for (i=0; i < nodeset->nodeNr; i++) { - keyword = xmlNodeListGetString(doc, nodeset->nodeTab[i]->xmlChildrenNode, 1); - printf("keyword: %s\n", keyword); - xmlFree(keyword); - } - xmlXPathFreeObject (result); - } - xmlFreeDoc(doc); - xmlCleanupParser(); - return (1); -} -]]> \ No newline at end of file diff --git a/src/tools/docbook/libxml2/doc/tutorial/index.html b/src/tools/docbook/libxml2/doc/tutorial/index.html deleted file mode 100644 index 51fd481842..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/index.html +++ /dev/null @@ -1,14 +0,0 @@ -Libxml Tutorial

    Libxml Tutorial

    John Fleck

    Revision History
    Revision 1June 4, 2002
    Initial draft
    Revision 2June 12, 2002
    retrieving attribute value added
    Revision 3Aug. 31, 2002
    freeing memory fix
    Revision 4Nov. 10, 2002
    encoding discussion added
    Revision 5Dec. 15, 2002
    more memory freeing changes
    Revision 6Jan. 26. 2003
    add index
    Revision 7April 25, 2003
    add compilation appendix
    Revision 8July 24, 2003
    add XPath example
    Revision 9Feb. 14, 2004
    Fix bug in XPath example
    Revision 7Aug. 24, 2004
    Fix another bug in XPath example

    Abstract

    Libxml is a freely licensed C language library for handling - XML, portable across a large number of platforms. This - tutorial provides examples of its basic functions.

    Introduction

    Libxml is a C language library implementing functions for reading, - creating and manipulating XML data. This tutorial - provides example code and explanations of its basic functionality.

    Libxml and more details about its use are available on the project home page. Included there is complete - API documentation. This tutorial is not meant - to substitute for that complete documentation, but to illustrate the - functions needed to use the library to perform basic operations. - -

    The tutorial is based on a simple XML application I - use for articles I write. The format includes metadata and the body - of the article.

    The example code in this tutorial demonstrates how to: -

    • Parse the document.

    • Extract the text within a specified element.

    • Add an element and its content.

    • Add an attribute.

    • Extract the value of an attribute.

    -

    Full code for the examples is included in the appendices.

    diff --git a/src/tools/docbook/libxml2/doc/tutorial/ix01.html b/src/tools/docbook/libxml2/doc/tutorial/ix01.html deleted file mode 100644 index fca9d42f32..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/ix01.html +++ /dev/null @@ -1 +0,0 @@ -Index

    Index

    A

    attribute
    retrieving value, Retrieving Attributes
    writing, Writing Attribute

    C

    compiler flags, Compilation

    E

    element
    retrieving content, Retrieving Element Content
    writing content, Writing element content
    encoding, Parsing the file, Encoding Conversion

    X

    xmlChar, Data Types
    xmlDoc, Data Types
    xmlNodePtr, Data Types
    diff --git a/src/tools/docbook/libxml2/doc/tutorial/xmltutorial.pdf b/src/tools/docbook/libxml2/doc/tutorial/xmltutorial.pdf deleted file mode 100644 index 967d445531..0000000000 --- a/src/tools/docbook/libxml2/doc/tutorial/xmltutorial.pdf +++ /dev/null @@ -1,1336 +0,0 @@ -%PDF-1.3 -%ª«¬­ -4 0 obj -<< /Type /Info -/Producer (FOP 0.20.5) >> -endobj -5 0 obj -<< /Length 1748 /Filter [ /ASCII85Decode /FlateDecode ] - >> -stream -Gb"/*>Edeu'RnB3cso,c'tRV<@2QG"Te1sI,sZ*n#KKlNVMQ<5BAq5!'k+!#c"8(NNgbpHe&;a;1aP(M@rJfk-$BS+$?JcRY,(_A6k,SUN`TO7efXhh3i=3:BXHM%E2OW]0H+sk$H[O\XG#u0mW@.r"s`W.g99!tcR*(\/("@>q@BW^Q2G*D>/#n3]_.il=X.o?OD#U^04dS]Ss+,a%^lQgnf/]&ceW@ko*%B0QokTBn:$jairCK+PLS%Cdch@t;kIOGu!8)fQ]DhR/U#>#9%l:;J>aO=nBdX8N?;VToPUM@?BfP;2DbSCG8.#;H:nr:@X[RoUP5#8V!2XYms3+,Pg+L(An4XOouF2iL@.s#m5[\'e,fq`PS,Y"o@$je=#b?gu9;/r=qMt:mb%%G5$FjcsdUbn".i6X#Km]hZSOE(i@A:'C!]#YQVN-&c&_nu&jGD2gg2I,X>Af/QL5%8n)7XSCb0W0Z8*)+\&9B^bTmkJ.5_$RWeH_2p2XZM9@ot$UX[_53q*&3VO&J)5%86Y$AZWkI@N:&FKcs%p6WMQCcUFbh8)(40P\*ZA"bb8R+Uti6J;Fdmlr'!#08-$\rUW.S*`0l$l7lOkfeCu3KUG37:dV;6?`SiLnX36m\Ar>kEqpnE4+,0ZZ3>mbtc]/Ye]ERO8`($8oE>X;g2g1^GaWe,."f\E*6Km3M;^8S1^,jb5M4kL$muHb\#!ZDs2A'bm;94ZWTnMuE=%!9!G)bJEiSMujhEeJoj\[m_?-@s8c*.C1268G+TV1+An"dq!66BOQ/uWk*6"Zr]hpdqsAYX6mH:4q,p%/mN/clgm6_*Vk"=D&P?A)R&GV[-;l5h5dH^[E8!6^O+q)a!Ngs^]Q]QTYaG>BGrFu -endstream -endobj -6 0 obj -<< /Type /Page -/Parent 1 0 R -/MediaBox [ 0 0 612 792 ] -/Resources 3 0 R -/Contents 5 0 R -/Annots 7 0 R ->> -endobj -7 0 obj -[ -8 0 R -10 0 R -12 0 R -14 0 R -16 0 R -18 0 R -20 0 R -22 0 R -24 0 R -26 0 R -28 0 R -30 0 R -32 0 R -34 0 R -36 0 R -38 0 R -40 0 R -42 0 R -] -endobj -8 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 336.111 193.44 326.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 9 0 R -/H /I ->> -endobj -10 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 325.111 189.82 315.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 11 0 R -/H /I ->> -endobj -12 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 314.111 204.55 304.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 13 0 R -/H /I ->> -endobj -14 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 303.111 256.22 293.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 15 0 R -/H /I ->> -endobj -16 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 292.111 312.05 282.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 17 0 R -/H /I ->> -endobj -18 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 281.111 241.21 271.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 19 0 R -/H /I ->> -endobj -20 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 270.111 213.72 260.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 21 0 R -/H /I ->> -endobj -22 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 259.111 228.72 249.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 23 0 R -/H /I ->> -endobj -24 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 248.111 230.94 238.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 25 0 R -/H /I ->> -endobj -26 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 237.111 206.23 227.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 27 0 R -/H /I ->> -endobj -28 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 226.111 229.83 216.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 29 0 R -/H /I ->> -endobj -30 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 215.111 268.7 205.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 31 0 R -/H /I ->> -endobj -32 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 204.111 257.04 194.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 33 0 R -/H /I ->> -endobj -34 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 193.111 287.86 183.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 35 0 R -/H /I ->> -endobj -36 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 182.111 286.21 172.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 37 0 R -/H /I ->> -endobj -38 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 171.111 339.25 161.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 39 0 R -/H /I ->> -endobj -40 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 160.111 318.98 150.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 41 0 R -/H /I ->> -endobj -42 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 149.111 231.76 139.111 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 43 0 R -/H /I ->> -endobj -44 0 obj -<< /Length 1970 /Filter [ /ASCII85Decode /FlateDecode ] - >> -stream -Gat=,=c_>r%"@)@iO:/L`pnKL/_:&.,f(7`!X7:ABPbqR$=B([4oTk@OWIA+4)'QU(?B+bQUm"&pP5fY2lRStIc)5A=+PRF'mbH1$b\5c1meN1+6MFRp&93T.bTmCC[Xt;`dSL&60,^g0&&(*cX!K=g*;q:et62rBUCjRZ5n?05Ff\bT:/_4"`%09AcElf^08^P=?A?TFKJcGeUf"b7J5C3b<,X-$:\'NQXH>\Y#;"_As:Kf[l:Q."b%M*F!R*3AN'##69g9!fQc."g"2G@I+`7q@&5U'r$"^?k@\d^C1kkf4S(@Gq.OJSaUa\R=EctaF!:u9NfqLs,%M0\b<%#]H])4C,>^$F,<;gtL22]H)KKDnY251JPZj\_eqmgMQE@Du&XI!2GcuSro%=1]VO6g=97Burk(cB>ITR8R9JdtsHgE+k=Y'S]VNL4U<"+-#;V85td%%r\Xj6![NqhME,!+"t90\oA1k+o'>"$rlgTG:gRa:t%=mj>_$I7F/7j+`9b?+Xi^hU:Bh;,1@e9s4!-,?0#(UN<#4[8>'Q@NK56"R\7)dp;4j$:,H[&4!7)rI?Y68=RN#]qkrdkK@JH&pq:D`NOOr+d=Y[c]gWC-oViQH)!;CLs;hDhq)GuRnlk89ZK>+-C0.HtfRmQ5LA[Kn^hXV3ei2*!;C1nA4A`m2C'q29lVD77t>J8P9p3`RP`$hQgfWHkO#_dki3GO?PeZMhFM?]pW-r6Hc`op.:b4a0TfB(JojgKl7A\h!I&P;]dG4)u'c,+fp1G+Abf*8ZAaTcL,fGt;[+lkrH>\r;ljeq11PAF>FXedJZ;>Z&l)EkXRIf\Ha:#=XgB)1-Z]&q+"bP*.A&V'C_X"L7PlNNX?lVp91%H1n=Yn]oa#3@,Ib&J[LZUmFMg?jPEDa2sgp0db=,c^&1/*9LC9rV/n?;UW_\>iXRc"`1qPj8u)8'H'Dq?7ZQ\j`KtH<>V9O@M`ZPm(VaoFUW4Y&A;KK>o#o*Rsd0gnWrK?R;#r`((7;dH8YnLcA1=o[9G:t*4EBVooVn0Ia'=2/(T5?Q`5l'GhY -endstream -endobj -45 0 obj -<< /Type /Page -/Parent 1 0 R -/MediaBox [ 0 0 612 792 ] -/Resources 3 0 R -/Contents 44 0 R -/Annots 46 0 R ->> -endobj -46 0 obj -[ -47 0 R -48 0 R -49 0 R -50 0 R -51 0 R -52 0 R -53 0 R -54 0 R -55 0 R -56 0 R -57 0 R -] -endobj -47 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 384.46 600.674 473.05 590.674 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://www.xmlsoft.org/) -/S /URI >> -/H /I ->> -endobj -48 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 253.694 589.674 331.744 579.674 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://xmlsoft.org/html/libxml-lib.html) -/S /URI >> -/H /I ->> -endobj -49 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 251.348 179.0 241.348 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://xmlsoft.org/html/libxml-tree.html#XMLCHAR) -/S /URI >> -/H /I ->> -endobj -50 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 352.782 207.348 469.722 197.348 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://www.xmlsoft.org/encoding.html) -/S /URI >> -/H /I ->> -endobj -51 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 264.0 196.348 282.88 186.348 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://www.xmlsoft.org/encoding.html) -/S /URI >> -/H /I ->> -endobj -52 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 175.348 176.22 165.348 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://xmlsoft.org/html/libxml-tree.html#XMLDOC) -/S /URI >> -/H /I ->> -endobj -53 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 283.44 164.348 327.33 154.348 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://xmlsoft.org/html/libxml-tree.html#XMLDOCPTR) -/S /URI >> -/H /I ->> -endobj -54 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 143.348 192.89 133.348 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://xmlsoft.org/html/libxml-tree.html#XMLNODEPTR) -/S /URI >> -/H /I ->> -endobj -55 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 212.33 143.348 231.22 133.348 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://xmlsoft.org/html/libxml-tree.html#XMLNODE) -/S /URI >> -/H /I ->> -endobj -56 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 132.348 165.66 122.348 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://xmlsoft.org/html/libxml-tree.html#XMLNODE) -/S /URI >> -/H /I ->> -endobj -57 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 424.512 143.348 473.402 133.348 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://xmlsoft.org/html/libxml-tree.html#XMLNODEPTR) -/S /URI >> -/H /I ->> -endobj -58 0 obj -<< /Length 2255 /Filter [ /ASCII85Decode /FlateDecode ] - >> -stream -Gat$:CN%rcn9]V)f)7lYMf=BOaGonl2NeL#u91a,^@K1brQZuE0=@IajGN?FZ4NajnBA_M>$dU!$+"`eJ1M:]Ojt7YKEu/OYS42f>`:;^:<_db'E9`C7D86c>iM!V?%pq(j]8(TmjVJ@/hO"p#j@3$Cj)4QYlBcgmo5=D]d<8.JRsJY8>L4/XA88AID>np@tONC8KI)bAGC3$m"!ol?'^:h?4-6L<"E#a5rAX2ShL+&_V,VqYEtn>0Fj43E%+&Ekf?Li<4)g$teS2lhk6>sg2KSjV/BMUnok;DSIBKIbUhDRqs.9s]Bp3=r"*W]mmU)T`L'&is2[VesK?nNlQW+Uahq#nVnFM-VB)JSoeo1rq&7<6]P/6JJ0/D,$3%QY<05[,$Bu^Ae]k+F4_O=l2g^<#2LmSAW:Dg?r!I#$;1'RT^-d;:$PNM0SfjJc!"cQZR?[dCCA/snB&hh'4#.+2d?roNc-)'@gK;cN$J7'="QakeCFunHn=1U3USH&9&$/,lqM)"Y'4*H3g)qD<)kXPS;]okLL`JWqWMRlE%3`n0@O6tXU$U;4<#MC&G$?d=.VcSME<\3sIPJl.7[CM!ZS1#ahHq'0`Oa78ENU_Er5@;9oP[b`k;X'n*oo_28P_AZ;d>63&TeE_^UH_:)bSM4b*=#7>H"2PAtLr:%D#t"8/uEm0)SGaq+.A4rZ_<:#;WB`mk28O`#XYBYHe(CXl;7[=Zmnf>CFp_Qk&EE2=-\/)BUG5CgE:$^ea!Vce4,h-eulDr1h9jd6+g2s43i!`Z.X^b9(aAqnjcQ@#)-c0&?Xo*d_B%7i[ujL\pI$,cZci6BNbt0l'I+Bi.ml?R'^Z`)<2DCRJKmENilV[D6AmL%9&fp=rSnhn:Er+E!o"Oe/%nf]X^Y]=[(V],=KW>)Qr9^.hEfHP[P0--L4i9JHYLN4q+nC%k"+67D6+u7]g3=L*SSkBV;5s=(V;;;%S/O/rCA\tC;K[g]Og43!D]U)&(IYu4,t5,Q"4p=_kW]Kf37`!Q/i=UI(]S\AY3NrUr9n?lPpei&m6CoL!F`f1+bJ$84s'f0tU@=jQIjTU("RUJle@h7c`d.fuADeA4tVEWS[5H-"W0_a^lq5DI(Z2_DWJIGhSjqc(nY"rdP.V*G7.LOF'0]?;ZgSME\LiNLcOJ+n?Na8g7&Y@WgLo39FL'PQ9aFr##"lo'oaIMH0MX/E.nHkg4Ja0!6:N$p!WhL5inlikLtQKUXVR8#9Lh=1YEJL(oo\t'U@@iK;.=#g=V3+>Aj=?H/_SNohk*67B;HjI&#_:l42+^]%"B)M<=5DK%T79CZ_=P(W3NMU6`#oPccelH<4)5@*IX4oI:AR5OYQ=li?mjlg"1":[Y00-:\@)_A>F8"AAX!RU?Ocn3'i?Sh%Z1?T8k[CjJ%Hk6[#]Abe7DpY5@:0R%J)<$X+,\`)9`~> -endstream -endobj -59 0 obj -<< /Type /Page -/Parent 1 0 R -/MediaBox [ 0 0 612 792 ] -/Resources 3 0 R -/Contents 58 0 R -/Annots 60 0 R ->> -endobj -60 0 obj -[ -61 0 R -62 0 R -] -endobj -61 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 249.81 674.674 414.8 664.674 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 31 0 R -/H /I ->> -endobj -62 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 361.83 222.18 395.71 212.18 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://www.w3.org/TR/REC-xml#charencoding) -/S /URI >> -/H /I ->> -endobj -63 0 obj -<< /Length 2246 /Filter [ /ASCII85Decode /FlateDecode ] - >> -stream -Gau0ED/\/e&H88.i?T1`KZ:@;DYDi(6aa\!>qr$"?Y%npAuc0WfOT1=I4j@Nj)4aBQ+q3Pa3(aUU75?9EhY]l!(_GIo\i/[M"`c&W]oL@>WG])@66`>;!2H^Tuf2u+>EkCXSYS$Jd,P;E2f]]etge+?UA!d^F52EY@d6K^eU5Ao`BTU$H"J%tJ);S?DXeUbSelaNNpNBJ:qjS%,84V;iGk6&C/X=k"Ec0X*j/C,d`ch#rca=9PGr$LkQM(\i=)+LfKG,7,5mV3ukqfp2#4k[g+o[g^=T[UHJ0EXb!&7_2]id]cpVh;;n>n+oX=-TgO"HeIrM%V&aG9Ym?8^oG@Nk%=e4V_YOgd_#ac6BF,E@*'](*M^fsd4%&6;Ho*r8-JYbRJc!Rr?YK0@8i]-$F+&X!">e:>m3Q243PU53n6(SnKNAVS]:$7i93u=TieI'rtbdbTmc6Skbif(hQsKIh3RO-bUDoE'B:EbR#3YQp`RO"5j0%IfboC=\KHS'!Pks:fn&tHtHb&d[6ii,[f4aK-WW*YbPsnK`Suho`#&;[P_2iGNd@@W-FaZ(iMbV#?.=*)?XIU0Kbd_>Dh$$dfO'+X8CHRDEPulqFjCEAYaJV#F*BC4U[/%os/M]h`1EbRcUh;7g`\I;3`m.H.m1e(U]LN,P.<5>*P+>9]9/-&eb4'>g($8@JE,4OBmN$\u[*!=YS#46d`GNnr*CJK6<2jMm^m*B$8jq*qg5qR$LQ?#-q-foc\)T7G;Uo<`^Vdra4PYor"Nb/t3r*ki*!SV^2ZK$)$+&4@u&XOYemi9M?Aj3AuPS3;^gfV$47i(4oA-`?*'oFB!ogXt:2?o<-;^ckYV(R@!(pI\H^S+=*bkTe^Y31&$6j,=d7p.ffdV;nY"lp3Yb0UujM)F"[M+DKmK+2Ot^LO>)]O.5?Rm8?]gr^%Z;IDLZji1m;=uketLoR=IZQpk@B:]K@8(&(g$k?8KB7>E%K_AXend`36oJc5)8Do0cObfGJL;Md\*+:U;M%e5gK8VjQ4PaL;o]49r5f;Bfcs=I>R;I(u3bPc0]'j%aO$dLm"A4"se*j%-VW,kPmgToCI:i7pJ_F((hrse=HpsIi@ee1K[Br0lq!dSBrQ(8#g:+6N`R*\#939.tKt9rlACg=OC8VEc8jEVQ3f0aicZH-[4CpkX"l'pke7rA*TO?jHJ.#MFgW'`J!2Rk=a"k+@9:I`]'"7BMU;8/]l\"3aNSo%"bgW5lGYe)r0/(d?@=ZrXohAR73#)Y-6q.8-I0Of'7Z4lVE7sDnnK9Q&.&8FpPttORU@,_l?"4F2!]:RGLkj@1?YAcGB5*9[IcG_`i]cg7[hiI_1SBC/McQI/-s=8@5`p8@_-a=IcI$)hi$FI$&9dD8 -endstream -endobj -64 0 obj -<< /Type /Page -/Parent 1 0 R -/MediaBox [ 0 0 612 792 ] -/Resources 3 0 R -/Contents 63 0 R -/Annots 65 0 R ->> -endobj -65 0 obj -[ -66 0 R -67 0 R -] -endobj -66 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 186.56 514.4 240.56 504.4 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://xmlsoft.org/html/libxml-parser.html#XMLSTRCMP) -/S /URI >> -/H /I ->> -endobj -67 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 262.18 229.78 382.18 219.78 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://xmlsoft.org/html/libxml-tree.html#XMLNODELISTGETSTRING) -/S /URI >> -/H /I ->> -endobj -68 0 obj -<< /Length 2448 /Filter [ /ASCII85Decode /FlateDecode ] - >> -stream -Gat^W'uNY0_Xf9KZ+sN+]f\Y0XhlN`OXShJ0_co2^'JFQL?"Y%SXR1@]`YPL]N6qYe(mO2n-Z(TS>Q&1"=J?.2uMn!F9ISR)9h0'@QhZA2r5\uol7c6@ODf.H$"aZ^nd*TPs4n%.1-b\!IloaWu8OPh*54L,b>X$9YN+%PJ5))^OljfW,u+S$c9T(A[.3GZg.=O_J#<>O:H7=S]&cT)hTd=]/Jc1fE`g+`q^p$ReCb0I0aX9GV48Z&mj4JT=WFuC1C=Z'ad&aEstoX%'i'X,=8^f93::pC)9og[0ZJf+-+kWH-0'[nm7Cm-U>l+aLEu.5n6Gh9Y/L^Y!BO%f7D'VMp&d2+Etg#SN<[44`Del8(gVW"&f;/C0@N??3!7V3o??'8&33a/QAs)Qh4#Y[INpQ]=lcL3:$A'#?CoI.#2,UZ]G8SkCVa^7+N*q['QpWCjB3.oJp.=0C/`0o"'nP7F=P=Pp0Wo[7`L_t.0QVS+N1j(r0(cEKLH@i_qUtfgg]-*Jj@JiiDFZAs4NABV72_)m7lck-C;U*`&KpX!@8N)Til]s7C,FY%.BgeO>K^)N![Um]LY>9&)EFo7fPNR),'Q<9"Q[)U14`7fBj2RuG8J7AJ8\\EUIN1VlE2g44VcX6WG;bkEZW:Om=/(':s&[4Q>$g-c7A!Wh;nUtni\/\Wpdct?R*)+1eYYlFf.o6OG@63'I7/02kX'pG&@H1]ju\nT,eg=V!#;"2.*rb]h4^0dck22HQ7jY4YFIj(`#bd;?9cZ8`PWZPN0-\j8u`$dWHAtfHX;DNVX?aVkGPK(\MeFW8VRUe6r0oR?^Y3C-US'%*,4'Xol)QZ.6hiMOH/UJXW@or4nUJ8#`r>KbMr=V'Hb=+l:3IpI1[F:Q8MR6D_9n[2+Ws*CB`4.0NO8B6H*Rs">%I7+pp-l,)ZY34E39q@l]IV7M?Kj1"#+b]gpRV%%qatk)\!BNJ=Q(V*g<,Qp+MrS_l%0[)!EUc,Ilh)dAaW,Yk3tZ.[.J+d"E+Ah#=Gp:dnQBpW2[V>iC%LV"&sIFdF+e5Whj,;_T(-/IP_H`oBZP:3JKt$)r8YaT_rOs$gQpBA!SU<3RVE0e/;qN-\^KoBAajC]>'%VZD40K)Vo1qklK/c=edgY6chpU]L/C8:mr"H3qTFBi*mGorIE6OE4MAM=j1nN$]#US0'U*L[[i].Z!O;P+iX'l'eb9'A%t4G/D0Fe.c@?W8]uN7[HPWM\hHKo,@]Pd(l_oIP%.r;#R_'?lqV0&Hucn:)5f=%HZaVnY2b7^Z@mWnQI5p"9TGYGD(T1)-q_iZT15JQ9lo]dHcJ4`=^PX/9IH+UOH',T5Mb(^1WRa>3T&E\d:i~> -endstream -endobj -69 0 obj -<< /Type /Page -/Parent 1 0 R -/MediaBox [ 0 0 612 792 ] -/Resources 3 0 R -/Contents 68 0 R -/Annots 70 0 R ->> -endobj -70 0 obj -[ -71 0 R -72 0 R -73 0 R -] -endobj -71 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 363.98 698.0 381.19 688.0 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://xmlsoft.org/html/libxml-xpath.html) -/S /URI >> -/H /I ->> -endobj -72 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 263.38 597.866 341.98 587.866 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://www.w3.org/TR/xpath) -/S /URI >> -/H /I ->> -endobj -73 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 270.38 586.866 424.81 576.866 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 33 0 R -/H /I ->> -endobj -74 0 obj -<< /Length 2451 /Filter [ /ASCII85Decode /FlateDecode ] - >> -stream -Gasar99\,?&\cSp;#.ERe/0A(k2nMWXK.k63=fn@.i%6_Tcf72M9pjMjf)5YHU)b,h%2$\Q7i+ndHGI1q>n:chYltM[ZRg#2V\19Yk`;e2hCqLND)^_9T)6Y.,A]8Rt&-NW&s\Nk22Zq?`[54OTA!Y8S"4pI#0djP)3Z>\iZ,sTaU`q)@"KaDS!FT_?JWUl;/RH"<5$a+8,VfPX!C$Ui)#IWp5UnP;s`GAC=X"'IMXs`mid:Tkn'iC'LkXnGfe]Cu\MVY!/@-12l%/-Z=9P@Nu0klY+@3DjA"6hGd@;V`,'L;ehIl4Xg:O>'Y/4d)V2i!d1;JV%=*mSLMV9%_6p-OYlRi*'lXH$_uW[2a:RqG'l2*g1S!bfaj8"D]I3A/IDI7L5`e6gnLcXE1Q3gZ]aD>0)-p_X-tO'kMC9-H6tGIm(e60+9TNkhJR5/DOf_\;Hs)YVLn?eM?n(j/3il+Hc)2gjKQX.%3bpm'nDq.6ZG,\/[e8knrl#+tD.JIO[_bDO+DVb:-Xq0[>6.`9!bh@RI9,Dbqd)m4UJ&8q!HnoR'qq_\bIgs0q\HSit'dGa)5.I2_]o,A8;%H(7@C%GRgHi8hhFP,Ds^-#MXW'7KNBLPaZ8.72(3*Y0S5Ss+Ln[RpsRS@*pm)?UP')2']J'paRlLmd\I+Jmt.$F#J%g4!"B@ZA6DoDJ9IYo014=Z)BLiUh]+'i%MX2\FhPODTbr7QeZ8J.JE(F)omVj"DnB@V7o57L+u/YQ]2\K=l%T^OWN;$!H,l?]pe@Y.Q)dG0sF6i=:YI")%]FSrJJrmhrrg2M.0a:@uYpX'pWonJI)%OM#G#<^n9^F.lf-Z[fXZ+XZs%B1rH6oe$X`@sD#[%k5`,*8-C("llc/[TChY0apeTqX-Bfst6]3WSkOc?p`E5`>S(1'jud28EOYW)//EEi[:(n=UG/&3&Vpme`DH^4De?0.ia8p"Ms-L_R]1[.'=p8k9??Rlns*hV'D65GD+oPCXa%!aoWfE12-5V*t^W/.>`ItdY57BqZHjTC$KJ`oq="M1c3M5c>J!4)4Oj'7D:DZCrS,NNGh-ZRq"$MUos9IME-aU:7ktce_UEdpKYq![CX[G0D'lU#luaWj<+8+:>dT(%!n#YM/.KL[aaMT*5;N4WZ>HomM"=EuO4Ds[:3Uj",jK9d`hhK#jKo&l1HhFA"10jInOua:6kTBi*`m2H7[6el!edoBk,[2%mSpkZj)iZLg/cGQYYddK+G6(*gD`ct('-"@Z>J_@DU[tK"<\'^G<0#<2\H0V0q]L]=bo@4\)S/:Y*@,\+Q^aQA-6dM^*Y\T%H3+b_MKP6=GIror,rWc\urD!MCn*U@t)D=stWd*g;6#`\^>a;:M$Wl^*+6-\-(-8@u;kj-`jX$em[0fZmdsEc15Y03;]$*Y$ErD!"QAYF-gMgp`&C#fbEeB"9=Q\YLAZCH4#P_e&6DYRS-[Me1u#(f(^gLqVA"ShhLe#=!b.!XA9)O-@$"Lsmk#m7XQl@)Ilh,s(ArJWdWe7>@WQu#O/[KVH$+TOb.EGl@Wr.S2QeJl4%"48C9-^`lK`US@it7[TbFp05Si&l;.Dp70if4#V&HMgQ#Fr7dS)dH"LnU,O*&_8?-0(L!N'l:'9)$11?,[a;ShNt%e++a]:/s3A>]kOElQo=j]^-L#T$M0)''pj?#*a8*/[SZ:SlN8r^baQu;VGstii2\od]Wb-%"!(LdW6P>0mrr]ZFG+Ln;96\9Zp?hWb,fdrr_0@G\I~> -endstream -endobj -75 0 obj -<< /Type /Page -/Parent 1 0 R -/MediaBox [ 0 0 612 792 ] -/Resources 3 0 R -/Contents 74 0 R -/Annots 76 0 R ->> -endobj -76 0 obj -[ -77 0 R -78 0 R -79 0 R -80 0 R -] -endobj -77 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 272.33 574.54 455.37 564.54 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 35 0 R -/H /I ->> -endobj -78 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 186.348 433.66 276.348 423.66 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://xmlsoft.org/html/libxml-tree.html#XMLNEWTEXTCHILD) -/S /URI >> -/H /I ->> -endobj -79 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 324.744 220.754 470.014 210.754 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 37 0 R -/H /I ->> -endobj -80 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 209.754 208.16 199.754 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 37 0 R -/H /I ->> -endobj -81 0 obj -<< /Length 2156 /Filter [ /ASCII85Decode /FlateDecode ] - >> -stream -GatU4=`<(R&:XAW:]hF%()p9JiLg?p3H,S?BtEP%[h"@^o!4S#NC:_qMZ3>[77oAa9'ZJ2!J<2fI,pfffpA27+"pR9F_o+P'PEGKF66X9r4/,_HGGKtIhGqS46t5aLV*+\m+?YfYH2B!UL_Y#G$b:=q9&QWgAD"[i;bb9"b?^^4Zc=pct:T(_%1oTYg.%88>JX.+Jm+LE1+f=7TbGIDV/`eT=BEL/eCJs1#CiVP$Y'.mKf)?D4aoRC@\L/,VP:m-_KrmbAYK'K&AGjNu(4U[O+HU65kh1AdmH\#?J,l<[m'S8RNoHVpr$BP/MOVBS=`';1C`?3VQXq`q->?Eq\]fG!&9Ofm#eM)ig;(k/pqh)=4%VmS-BU!gI_qpR4EeJJ&+\8BQTP,L4jVl/NV)naGOGh5Uh0e2=d?<@P>0f^o>_RQ;o]C'6)"'nKr>,&PY#%.NYHeHMZ_MKR"-[5esp%eaN&2TGqTRHgC7e#0iOX;BHhE;CL*&B#l6`goi_Su:Z)k':'g7,IM[PjKgl`Pa>:q,KcEr@C]u3<3mhT$3!`h^VW)"2567"61``P%T_@Dhn^BdsD0U2u;CCgY@8\gbLf!]:BWGBPC!UBo#kb$LrtWCMa[JBZf7[#Q:gNZ2.t0NiHn;+C_98Rj-*Xn*?jmeg!6=n?;c&AV57Gejf[n#<339o!1R(gjSSSZm4]+Pk_&df#`VD#O8Vh=*L4B(b54n]6-7UBu-`p?9<6]o7/JiZWi]FtepGHIP*%g.]NX*@o%(b)rS2dY"GZb':M&O`aZdc$N2Ro;j+UhQs+kM'Tmf=Y?[)g"^qqOI^UXp3ljX26T,)]49t$+R'e!'Cpn-k1&_2IHq1('$Y,m?\!IJAQtHkj^>S+,[VN$XP31LjLiIK)BFO(SWQnZeRRSQ9W6_I3V?ldFKW[o!56g_&jI9"LR;[L:oe);Ek=`(P-FdVsg+6(CE?%d-RnK?<@qHt=Tc(2DZ@pUq(32)l#d\IE&:6r=$7;Y.'.I+1OXhp4>YI&UWSnGnS]KFSVFk;SV%h/colS3/ElIQ02bZd15,g!3(<'mZa4P+uA.-opVha"G\;[Ou_]^>mmQ3kj2TP99YHpI'&sEH!1LEGC*R('l&C*OG^&i4F7rq2l[$ZhM:j(V1r\>Y"Cm%Q`;k:FC&DgU8UXs-Xqc[I1aJfkIW'TY/uk"QB[MUS#lU5r7Lg_9a@.k.5cp5PqtnKiS_K\gBWAN8_E+[_:NunDoiZogef7OTY6/ZE0haWh..]2"Z,.GE_ZL]KQ9)me=>po=Mn@hm\3JIQ]_t<*a-lVOeW=]-?jqG,>1uY;A=oG[[?7#G"_R"Q)*K`ic>j,8"nCXSLhPDjaSBdrbNR`[)Ud#4P/P,ReX8e;(u9L5JoG4,F=JpqGF!X2TX*JeuFM*+=Y/er4G^"LPoFkS3o%pih1F%u(J+-2]7V6Pa.VK:*od36#ccZ,?$)!Gth@=%?@u(4-P(gEfJ*L;i)j/nJYr:rd21V-a)h@ajIMi")]=kt'84)S%&-9*-ro$:^7tm[FfJ09:DkXg"f17Ub?+ooe'C!qh2N)/DpTU5(8aYhhlg2J8ZT:ZG`Da6L]A$gItu*E^k9.aEK)Hat -endstream -endobj -82 0 obj -<< /Type /Page -/Parent 1 0 R -/MediaBox [ 0 0 612 792 ] -/Resources 3 0 R -/Contents 81 0 R -/Annots 83 0 R ->> -endobj -83 0 obj -[ -84 0 R -85 0 R -86 0 R -87 0 R -] -endobj -84 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 204.89 545.98 279.89 535.98 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://xmlsoft.org/html/libxml-tree.html#XMLNEWTEXTCHILD) -/S /URI >> -/H /I ->> -endobj -85 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 338.334 437.654 471.934 427.654 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 39 0 R -/H /I ->> -endobj -86 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 144.0 426.654 242.88 416.654 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 39 0 R -/H /I ->> -endobj -87 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 246.998 175.034 306.998 165.034 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A << /URI (http://xmlsoft.org/html/libxml-tree.html#XMLGETPROP) -/S /URI >> -/H /I ->> -endobj -88 0 obj -<< /Length 3062 /Filter [ /ASCII85Decode /FlateDecode ] - >> -stream -Gat=.D/\LD&cV3*Z,h^W?#-KeIn@ugaYcPj8C84+iX41(5k!--,$J\2;>.Q8^*I?i)9Q.;.IIS9a5h2O3#p4Wn%7u+n#s&l)Fme.DROa*n`Kfpfu3#[Z>%H0hGeJ1`EBP#*]O+Fs*_BBpStk*YdmB,.VbunX>]N3p>(?@7b)])2ZMWMs(k(=Rj9nMNBf-Ja`Bh6%ZnRZK[#*5UHV(N*g%ECLd-=Z>8jC4:"Xd`7RABsnA\mOqLo#gm\G])`CqZA2kJ\<&RI7G-%%caI9)@22KWDu$$Uck3MfXOrU#JD`]+4S@INT7rVGZ8NQkTJX/\s[h0Ar;@M=nh%.b)q%Z($8UC_Op0LGG8rH0%hN=H,QKG#;-.>$,KJ\l82YSCrRN6![?e>*'6s"R?HZBb!3>d=1,HNbjB-%otsYjL^8LX!)4]V.3OFF)#Mb`KMbAFS.pp/UY)g+EkEZ0S9>-(@\b^_%fg\BY1=%U1G[<^cIV9KQ:[=]ELb:Cecr8*_!!!9c68%"6&&Qdf#t;dpfQi&Ve7+ZR!jC@5'E.+%3U+RQ+FQ^,spj`cOR5ZsunQ+#b<)=sB2;c\t:5drmt$So8AUaMd"-86MVphQa=tA%"cf#h9:RRLo_$%:c7]&2m67)W4!#gKg&>!9!W;Qpc9KOVJ)HVG*fI>>('-\+n/5H$_Xk/0VIdb(06+?2U@NQr'$l1Knk@0CdAIjF(b/L(+4)V,R6OgC3]OI^PbT@nDimj=L=W,XkhqE^/c.rHN/(mPeT8D**'g0I$kG7]DZBm:PP`j6,r7l]@5j13Ya&kXCW7GjYU5fSZuoQsmj;2.,^>8cHFL_F[,E'b6oT+B'b2ICQ.&B=]@Zm"$qa'7^@`jtAh@6=t/?g'ZMNfai]3*2Oa.4]FVV1+XAhX*)@9Fr1>VKOl\k,L+_Yh`Z^ES2"pkbD^+*TKX.Mq1t[JF=j!%&RFLEl2nJ`G8'nXIMRH:ic90+f%bjM8"=gU*&pA,oX4XrCMlT:U%Tlk*Di!W[q5TR3&j/f(>D*l`N"luAPpDgS]ms?Y5:j;4jois'^e0d9>952;TVuH5KXi:L$!-i&P>\*8j%d#^/35S<4N2a:dKD,Zh8>^2!B>pr:@UHMSU@&/@/RN?5-e!^M>E\-T-13UJ'RG[tNIq]S8N\nl"prl^1"-pVeCPoe^!Q@rjDNCX^PFjk*!"35#R245@$\"'!SV>1rciW^2<_6qN/LVX4(QBHnP8:^n=?j<_U[l*I2XBShl's<#KqEBT%1rqf+u+*'WHGj^'OTu&RjP!;%M,NZUob'UC*pfqqYf?[S*?r0l66+56fQD:U?'hje?+T"&\CX<:Odcc!=ES(.FHTC2F^"C,5r.OQ")dK!tl/2<'D*f-)Bt3=j5E.R9%R^9T7og?#DbIO:OscXcI,0DE8\pTEe/jTAsm1mA-u?)\M6W.;[R`sKU&YjXUtU9=BE08?N^ZQYbiM0WX;iRpZ(aS=pVgN)E:RIW5YCDIDo8T#1@d,OFd_AA[R-K:XL;B<406j`gL*#=H#qH.:&a5o)M[=i5Nbn(OLN@D/>)J0je'%@=UZFHL]GJC\fhoi20IX?)aq?o#B>gDk>5)ZVOb+b[?[ekkPE%X3Yn1Wb9n?:dA/>&;9Ms@*KWQf!$e$cNaK4RP+F>%!'GP9HsFVuKJ'kf\<\7[D#=$6j+q6*fah]f@n.Mi&<"l'FWbId9J*>A=L,7A%L-.f0OIl+:,5IDS,I()"$SCKYNb,>U-Gce`PQR2IMr\h$X<>#&a9Q&:aHr8iLWp=&H;0YO_^M+X9AW/4$j1]ek.V3#tnZ#Q,:kc"geUJn4q?IqqfXg>0K?6-Uln#[Bn@RbNj`uF^k"R6SOCqJhcY$hC5Q!FQ3[_pr]ME,oWtLGihWT/B7QW-dB;;-WnE.VEW@liO[#F#?UuLAC%Q/g-c46u92`R&(3;CR!dJeNdhTW1G=Z^*A?<=n]NheBAT$2@'YM6lpTH.*`F>(jt4crCCj>Yr_N)LahT]P]ccBcE0RBlTf[T"TabbnR>Dm4qt0Rj$n4NMJrq;5D#0BAb;Le0H2%rKS_L"q%"%L:FX._].JPV[T'ps-5e1HGsII^`_,he%/1EYQ,m@s!3j0842/.%^)-WpHgr3QcR7$#._!)hQJ-=p7YBLO?2XZ\].Kkj]SW)Q0JdKK?7p]!K6hN!l$cI'?/NOFY3b7%WlFQ%QD"/E"T8ic:i;a~> -endstream -endobj -89 0 obj -<< /Type /Page -/Parent 1 0 R -/MediaBox [ 0 0 612 792 ] -/Resources 3 0 R -/Contents 88 0 R -/Annots 90 0 R ->> -endobj -90 0 obj -[ -91 0 R -] -endobj -91 0 obj -<< /Type /Annot -/Subtype /Link -/Rect [ 219.0 344.54 435.37 334.54 ] -/C [ 0 0 0 ] -/Border [ 0 0 0 ] -/A 41 0 R -/H /I ->> -endobj -92 0 obj -<< /Length 2048 /Filter [ /ASCII85Decode /FlateDecode ] - >> -stream -Gat=,D/\/e&H88.Tk5.-$o'>kHJR!`l\c!i6+8$*Vg0?uM7/,\P"SYDK44e.-^#*6>B5=hBZiL-T&[NTkdSaAq''d^Md0o*5'*:>)0T9[K,kqd^l5LQE9&QocJlZ$F(Y-OfVH%Li)OdsJ9,j@)(AH^0jUVUOqmIpKXJcU@\BUu(2P&CK"(b2(*sccC0I;+VZIt2^/tKbJji9`0?*):f=X@qVK$HRsWF##YU>hDO#-X$ZQ>0mbt,f=_!Y6#1M:Q$=A@Lo".+lblXl(a1Pg/La0([KVlj-2".T]&;]U[V9r)c=Sp2@?_1n.`B3o#skAJZ!,J\Rr6$P!@TQMQ[Yi\`IEGG_b9oZs=Bf?ume::TV-V*R,^"a\9O7,_e27Ap?'klu7Zo%%&HRM3qhq=MRr%dT)_tR&c$$"qi.J.F"U:#T,28X6bJc$HZ?_M\VV?is-l3sQ-qQPE\(5jbok/+0+[\4$DhX6h8BU\8]WTeJ,,6pC>Up-4YcVNCQ"8-0J;/9,RHPlb&O[$Ip(F&o`[BFKc^l=H0a@aD57"%9g?oX]1M0t7ceY,P+5<=trle/De_)a^r=DeMSO3mjI?R;Rs>X_W(s5A=Vj:=2O,g)kXU68G1j;f]$HWG&e\na.cOVOBb"&(Qn7EN%Ld.])&:IoOBiYEKKkmS8:ZtZC2M24&YSiUihY#.d&7/\NonBR;rc)QRh&iN$>nSAY(,W3k`Q79jM?S2KPh@"-RU`lPaMGR&&)1;MaQR0dQTf6P<.^I_91nV(jK@5W>)[U6Shc7;Ra,te:;oUDN1:(m`Ul]`nV86mc@H=4),`%TO]uZ9e/b^V$nKAm$FC`I6XX,*OQ!Pm5^U7:h?+Sc`@g:N]3YNaSM:S_H@>%1eYla[rNU/Kq.r8)SdHbk4h"*H`UIF+YeVnK$hsd't*Gl4r`pLeLAfPSr;6B/Zc#B#eB#mu8oUFk*86\C%lYS70o.;-n&ebM."+6;pPqTG"GMK_^9=0*VES82q]4_"nHk'X+3pd4,Bje&61/sSfD2\hjUjY3ceu\m9lm7EHF)Ca\Q^*$>g)Q6LjoBsI#o?"Jpj#1HS+(CoMQ.Sac0*g)b8M$!AJD7f5:eRcU[@<)+bG_"UEnsH+q'"9H^U@k(@l5GB[qkf35n4#5U7r?AnQO:PNL3Ye+gE5c!E.eEsCZ"/V.s2;1eBlU"fH:'l-.q385kF%/\qWeRrE.36c$G2,S\9h>V"+f[7o2J8!Mh_7(q44IPeNqj.*,L#BX33kSWrkUS+FVc6JBZWGMr'8^1r/k1C/pfDLp1G'1Q7D;kY,/68llZ-?5IYkbq8-hrpON(?pB6oj<[r06)u&&/I]t>31<_imL/Bt^V)]Gm=(*W_@i]&@Go&>'UIC7^eE=O\Dcq9aGee`WWg -endstream -endobj -93 0 obj -<< /Type /Page -/Parent 1 0 R -/MediaBox [ 0 0 612 792 ] -/Resources 3 0 R -/Contents 92 0 R ->> -endobj -94 0 obj -<< /Length 1148 /Filter [ /ASCII85Decode /FlateDecode ] - >> -stream -Gatm:>AMtc&:XAW:f7XD8LJjlD/Tr%P/8B,SCWB\Pm>iG-N[Fk=)sd,c@8'jP&*^ueo%/aJp'1$Ml2.!baf&08=$@S283c\,$][Y?I@usVs9a8_62%o;Dn(@[0q>.ZI3,--WmC4:_>mj,Q2p![Q-HXD!1bQq]2WjAU6FL4cXDEl,H0;DPM9O^qZ(B3^;(U:4q?WW7U?ltd_o=j9+B7abk]1Mq%haO^fKf>kYQSEc)m!k0I,NbDhWs`BSsPeCG.CUTq?k#*##l$HT^Q?f!68O2Oo_I%f_'8b55'e9VH_0bLnD@[E[3b>GK%QK_RP!S2!k<&G2K3+ERl8)p5),ba,::YifpEg!=suk#kRT$MZgCh1KN>n!0hP$2[8`oq;-N(#A]l843_lYDgjGq.`[7!p$Cn/O:*_[9\;f4G/TpU;FA\2ad\ASc64amQ*j^-A'`jl`3tL.cUQ;MIK\emF&I8mehqH=98fbI^p\@2`%b%^Mq@+Yt_#RB#47Jr=61NMqmsM?Z+lo^3=Yo&2.+&=uLia[ -endstream -endobj -95 0 obj -<< /Type /Page -/Parent 1 0 R -/MediaBox [ 0 0 612 792 ] -/Resources 3 0 R -/Contents 94 0 R ->> -endobj -96 0 obj -<< /Length 1343 /Filter [ /ASCII85Decode /FlateDecode ] - >> -stream -GatU3>ArLj'Ro4H=@e]"929(]2c$p9LYX:WX!g]MXAgXoK*)5A(2R`TCnds0^#KL70k6*@8-GD,d?/8*X,='P%2+#T7KH6lgY_+CT0*QA^?t[2r*[b`g/`Xh"\`>0*TD4Vhf-"e!0D)GFYZ:\0H2%'_H#i&^1g6`V?ZZ21Yu9oRG4T4VGfX'G[%@$SF.Nb;QKL<3>W6#t^5!h&eSVfnrhO_ZU6$%-7B%tG[6s8[Ds>%:Ed-+J*/N.Aq.n7]cmj[K>nTW[b+GK_;C0G$Xq:%k(lV?4-Ve5QV7_uuJ+$[_AVI$ThO[])kS7/:cQcpB35t@ZtrPk_OA`-UO=12q(.+I.TDj?dq]PX0HQiSp^in-e_(T5s%&-GtpmQcNs9p3GsR)(V\Cacr,N$hM+/Kq_4266XPRQ*(E1ldg)S-nJ)6>"D+DP$U%C1)npoLcne!o_WHTU5-=/mP:6'j0$+pFWg0(7gaq1k,%49>6DA.]u8$mpmO!S#QR/M3r8`e4ZVK+4DK!MTo^bQjb3L'[:KW4#!j)&0MLA<j.ee:9PcCH[r.&c"i7aGK9m7Pl*bL0!=hs2Z;JhDi?iu5=f.g@iA][rMeYf`Q<.:1$>Q3Hj_.Y\"om_S/X%HKVa0rA9h;Kt[Z_(4j3R]rppClG(AKEruL/4-X$BBk1AYPo(_5p!U91E/c?Q*ZG+IBCk&jV-92Gm7\rR@-UBKZ$A>O_2%kn7BV9L[49J_9U;QoN-=i0(7FlM`AZ"^M.aUrqV#)4&*CmWhP1<'PnQ`:cBSC\0X.^irY"6hJ7t,DV-bJ\&?@^D-C9.T6@`Mt(f`d\arVlo?Y'!\UmGT1;f_/l"*8rZi\U]`**dgJpLo9n6qrJ^I]N%:6`@"2?6uSRg8U(`f,U3;5W(hQCR5gmoA=X-iWp#>MK6>RY_Rp,]^$#MOE*LV?o-0L]GP/4G+$Y!p6<4/();o@?+7H-;K'&1?(12tnRA)N:LcN>O('5hphg'NN]0*F#0)$!X[Q>#;3O:6cA)_Gq3s#:/;j!ReMc@%X,c-r,?6BL>oQ;DHik91egU-`TsIJ(mr5cMJR#1Jap>EX=MpV1!Ja"GPlZH086n00?&'*M$\FrtUflpL7M%u&M^%@dic@,s"CYgB5\u<+tT:S"dm6s\mKp1u`Gg`-O\s%[=RQlHCKfC1cUP=BuWSU`i!='8K<%J/,>jm?#&9Sr)YIR\t!l;u]H9JH"'PZag`7AL\N$RetRk58[RCF!E0Xj^TR.2.&gWCBhjtk*Hd+^BYdZX -endstream -endobj -99 0 obj -<< /Type /Page -/Parent 1 0 R -/MediaBox [ 0 0 612 792 ] -/Resources 3 0 R -/Contents 98 0 R ->> -endobj -100 0 obj -<< /Length 1188 /Filter [ /ASCII85Decode /FlateDecode ] - >> -stream -Gat=+?#S1_'Re<2n.r-jY2In&jmfR*Zp97s.`Cb0-ense32sO$@a5'@OD@g=p`[XINq4i9U>Ro4sr%\I_6_BC^8nYuq4l>&U:)Wg9BA^^Q\/\&W:(q%Pb4@nujEB=<:`O/d7?`tl#dkQ?3A>T5ACSCIe4';hr%XSseO#.T*!@3rLn8ahpHc2&cdQend>O-)Oj2:]ZfK*G*5_7LZ%`KFn5Yp'k@\QpW,q^QsiXG4,1a]1jCU5SmBlN/V^gr[M9o]nLU3Hd@2DSe^?:al2[,B\Ju$^ss,9`F*1E],l35de,NoA4&07JWt=76Er&Dn<:k+Y4ksY^'BNXB]j?g[+0to^_f'FjKYgl!cR+:cZ!9[)TFcSCoDG2FU4&abbtXncGOsI:,$Kh?Zj/.fT\O0<+u`gotb2Qa=P'OE,?RhPn-9+kdn6YkRc>sB^#U8A6Ln=lMI%C>),l<@hT8#I#r/d@.rsuo[2=dTMe[J@aO8MDT=+_J#r>'$S5GG``["PO;e^c"u6BV;+4>e'^KMGh1H:CN`DR/;Pq6H&&>a<*Tc-E%okku_T)hF\dE]*+EiaH-CEtc\GR`#bNj"M-Tij=`)e)'BO1HuIX5lDWUM6IX%&WIb'iaV*/ZO@0C]`_nU>RT[29^`GJ@)i,$^d]Z6Y+6GZu+5YFa7?Nmca7a!WME)MG/:K#4UV]8p(#Xm3XHSg+k(j#?b66&341W.b#[WGYD54@3=D-k[/lj85~> -endstream -endobj -101 0 obj -<< /Type /Page -/Parent 1 0 R -/MediaBox [ 0 0 612 792 ] -/Resources 3 0 R -/Contents 100 0 R ->> -endobj -102 0 obj -<< /Length 1250 /Filter [ /ASCII85Decode /FlateDecode ] - >> -stream -Gat%#>E@5m'RoMS#_Q/m&Y-*H4-!H/=pBkk)Bfk'04Z+jlZOI08_6[LB!p@m^*gDPK&$p:>/edtIQmbVl.a2XeIX)n,i-=r(?f+;YDWbAR@a'V3M0*8/o?6,m3rks<-u%4!(`bYj")W(u1O>B@5P7e`rRpj3aMDf1:Y,J#/Ks?/YBi(A:8Q6\\Lf'3dA4K4#jj[A?@:SL)u['@rG=b)YQSK90i?N*Tb@%ejQ>XBBRC"(!]d>,i[Qu43/#dY7C@e%J2G>(d91BU'c"E%\7#G@K**I]2S`Q%VuU0GUTbZh`Fc=2oj:/u4C)>+!J9$_@,UUtlS4`r.g)pW"QEOK?fF.1cV5;oo44mtLPn7-'m1NX%g>LHoIr587)DA8:bDgK-%Z-%4HkKo5r`W2;31^.0KRY\XFeEM=T6%6>R2?#V,VnA+dq=*7$s2V,DVX?Z$f,l0.82M:B]OLLDqLLR4[/`%PU2.U&+?mM[\GlJ>Q]<+7dhK?&b&sj^EX-K8'flDH'pTIZq@[6"nqo8'OQOp/qb"*d/.=hO5htJCat=u-ODViR?$pN/HbUclK\sC*A_4qZ)G&cdEP@,]Tn'MgrW33jcSj)A4*6#qH?o<=7(pgZ1Zm4GB-?%(W4Q<8f;:9uh!jtY[Xo2O,jG:O;W-g0,7;e95C\NT1k$-X^>tA*-CVUndP]rGm#FmCoV#~> -endstream -endobj -103 0 obj -<< /Type /Page -/Parent 1 0 R -/MediaBox [ 0 0 612 792 ] -/Resources 3 0 R -/Contents 102 0 R ->> -endobj -104 0 obj -<< /Length 1203 /Filter [ /ASCII85Decode /FlateDecode ] - >> -stream -Gat%"gMYb8&:N/3YV$8RXutPk05[/5,^+dT.+2.A$B7BK<\a]5<0sC"-cj&8QDDHq]Tc\=0M#r]B?jag/LHh9O[f]hDm>lFD_n(._*@54LuCiGs+f$,CqWWn"VKp1O#-.X9+HQ^m^9'0SW=m:362T`Df,m$+mcF*C-;bbVY!nhIhkIqPpqo$KB6bIL]C%Q"W4g1._sN;b=DVs,I"69Y'T:`XL]mO_GQ$hGgtHb/?cHZR-@.ZSOt"inu&1J^&UAW"hbTO,3_E#6i!e2a`c89G4F"BI6N1daNJ_[g%m)k%>nhqJ=BV(W=Ie$a4]2P4JarbA4">ddc_qkH+R,lZM,6Oc!O]b`:hun-SuADm@jR+g*,??&8;Nk,8Z1SF5YbsDlp<_s!uoFZQ/Fi^/sFd!f-S=^n@J\0b;>8aaaIns]bt?AUuFE6I".$">t2bfW/L;h69">g8FS;5)S*H#K[miPY_Y`?mK=R6^q5j*NH"Tr>]/%E^$8DT@,*S#$)c$q!6tHiE]Z`]mKXj=AW3NtXQEali1FO+k5g7`@?[.)S--H]MVaB'@3L_\k%7W,Z'XU:bEnD(pg>u4b1*-9:lIgdLnd[eH-JJj!"7'-E$R%bK_qP'S_9IK-eLhO?*4*N2!?2]3<8HVt(f@=`]lJXQAT+J$'LZqEtDbfdil$U*u#A%#@i+-/[^S7mdgng7ph867%GZ\+KR[<7T2+QK;Rth?sN=d[oifV(foA$G04ltNPo2V[[LWYM;Y5RK@(/he'3a9V-Z_*_4*7'^3R;.It4StQ7m9M:js0c!QK4Z7Q+uZuW7P]3lH0`QoP?6m=Q]INW"EKf#e-^bMKBf=B)L?&%n\1rA:T)C[m17McmW -endstream -endobj -105 0 obj -<< /Type /Page -/Parent 1 0 R -/MediaBox [ 0 0 612 792 ] -/Resources 3 0 R -/Contents 104 0 R ->> -endobj -106 0 obj -<< /Length 1326 /Filter [ /ASCII85Decode /FlateDecode ] - >> -stream -GatU3>Ar7S'Roe[cjX`s^%d6p8PrZX!G`XL*J3VjpF-FV9r;3)16kFO13D?%+)+Rg4/C>7#S>&kcZa9a\`i-qFM1lT`0_JK\LPW13i7%;N?>O^bF;T(WEh*/XPl*sVfIT/YaO'"Q.RBf58GD8+*PlICZc]Td-8b2h\ZF$6*#F7@[IUOs1eb\#j97cd3'_bahS!^Y=DX@j^qHVY>6Q[JoY3?@AMG?7iUF"r6eK]HKebRk#;:YfCj"lJV9B4ZdN'Su:f(>J]oc%)_)17(!)B"T^Lh-1QUq2^rV>j=ikEWI]oFK#[#bfmXKk1dif?YW^E".rmF"s5eU!QL*6YUFClC&5;+H@A>3(rnehj"M:]?u#rF$pQMq.S#g"0C,>bnd+X1^0!NdN_p@0XZdIrb]H@/)O9O[]b2BA/rh(hq'AIqa"a@a6*BV@/X*1gF;tD&$_^3d_65g3s19Y]1`;Llr82&MEUTiK@5;I!KKg8>QNf7mH],0BZ^@`LciSbR.\`T@,,!ZB$N[MnJ(I!fYT.F1'O+<[$(ji>]h-5U%*,8;,>XbapAe)bCVp'4#C(398,DZc5("li]i3dfW4aa<)Nr_7f"qFM>U:*`X%BTpVCC:?TlPX\#e>_6(l2tJ.S^-6Z==Y79g>6oigGnKlhkoCN7/a`\^WaYt;s)/Yep\tf6f"oGn8=BoYpdb3;D5=\W6JJ!C-FKA&A??7fg.VX1b"Tr)tDB@CD5Is7ncag)n/3u?P!qXn3d0QF*LtBU4,2;hs+djk?P,fR!OsgdQ_=5R#BL,+0!D5>qSWs2'5\B!)>7&e_'N#$B8*oDa!r6oMU0\Z0nBfY<56= -endstream -endobj -107 0 obj -<< /Type /Page -/Parent 1 0 R -/MediaBox [ 0 0 612 792 ] -/Resources 3 0 R -/Contents 106 0 R ->> -endobj -108 0 obj -<< /Length 817 /Filter [ /ASCII85Decode /FlateDecode ] - >> -stream -Gat%!?#uMY'RekG_.,6a&.hh->Os^H-ge8]Vpf@X&$1[A%4bZ\B_q1Ud3r*9VrNDM4Qfu;"YQ/+k2J9%(dS;QI"O\h_#W-n"&,Zt@h_0JKCf/XS\.,ik6)$O,(p#:;Ds<40Ku@TIs_t,W.^6!GrnA#;$s(f9)Y?njhchE&*?4F[QJmroANC3B!/e:.BB\)JOQ]!C$4[(gs)X_6\-S26U;)p&ieiOdM[QSYB]2mpjJ`JopoZP2JdO'V?T$KYciKiD*c47hETggnZGLA-'G\'#LoBWT!TojA.W9Q/SNQ]nJ`O]ANEHXS8j':ceoE+9cGii^Wf=[A1kBGCWM]!jkED&P^+_.>&bKm.5;3qTK?ppVcZ$AGm)GD=Q>Cg9$OE':kjQWVe.YT9E=O6,PD&>4CZYags^t'3erVnTh.?YQ\q9sZF44TY%64A7?c+qhj7TB`T'>Gd$])l4-[KR2YPVSJ_4/jW9$HYfU'(JV5&]0_?P<=eaf<-5s2DgkGad1Gs8n@;)91d-5CJ!F%[/#D(20lr6&ha,YfIo"9%b_Y4gXf9u5h@OGJ1VCRqSC_V!>M\+e+%H7@E>](t%:T`*,,0an'h\o2,oMu`\9j5r*;!sCH3#nAPNNG\AqDJ]ro_tDX%Ef>f@noBOGmLBeZcb0k0PLCUR)UIp~> -endstream -endobj -109 0 obj -<< /Type /Page -/Parent 1 0 R -/MediaBox [ 0 0 612 792 ] -/Resources 3 0 R -/Contents 108 0 R -/Annots 110 0 R ->> -endobj -110 0 obj -[ -] -endobj -113 0 obj -<< - /Title (\376\377\0\114\0\151\0\142\0\170\0\155\0\154\0\40\0\124\0\165\0\164\0\157\0\162\0\151\0\141\0\154) - /Parent 111 0 R - /Next 115 0 R - /A 112 0 R ->> endobj -115 0 obj -<< - /Title (\376\377\0\124\0\141\0\142\0\154\0\145\0\40\0\157\0\146\0\40\0\103\0\157\0\156\0\164\0\145\0\156\0\164\0\163) - /Parent 111 0 R - /Prev 113 0 R - /Next 116 0 R - /A 114 0 R ->> endobj -116 0 obj -<< - /Title (\376\377\0\111\0\156\0\164\0\162\0\157\0\144\0\165\0\143\0\164\0\151\0\157\0\156) - /Parent 111 0 R - /Prev 115 0 R - /Next 117 0 R - /A 9 0 R ->> endobj -117 0 obj -<< - /Title (\376\377\0\104\0\141\0\164\0\141\0\40\0\124\0\171\0\160\0\145\0\163) - /Parent 111 0 R - /Prev 116 0 R - /Next 118 0 R - /A 11 0 R ->> endobj -118 0 obj -<< - /Title (\376\377\0\120\0\141\0\162\0\163\0\151\0\156\0\147\0\40\0\164\0\150\0\145\0\40\0\146\0\151\0\154\0\145) - /Parent 111 0 R - /Prev 117 0 R - /Next 119 0 R - /A 13 0 R ->> endobj -119 0 obj -<< - /Title (\376\377\0\122\0\145\0\164\0\162\0\151\0\145\0\166\0\151\0\156\0\147\0\40\0\105\0\154\0\145\0\155\0\145\0\156\0\164\0\40\0\103\0\157\0\156\0\164\0\145\0\156\0\164) - /Parent 111 0 R - /Prev 118 0 R - /Next 120 0 R - /A 15 0 R ->> endobj -120 0 obj -<< - /Title (\376\377\0\125\0\163\0\151\0\156\0\147\0\40\0\130\0\120\0\141\0\164\0\150\0\40\0\164\0\157\0\40\0\122\0\145\0\164\0\162\0\151\0\145\0\166\0\145\0\40\0\105\0\154\0\145\0\155\0\145\0\156\0\164\0\40\0\103\0\157\0\156\0\164\0\145\0\156\0\164) - /Parent 111 0 R - /Prev 119 0 R - /Next 121 0 R - /A 17 0 R ->> endobj -121 0 obj -<< - /Title (\376\377\0\127\0\162\0\151\0\164\0\151\0\156\0\147\0\40\0\145\0\154\0\145\0\155\0\145\0\156\0\164\0\40\0\143\0\157\0\156\0\164\0\145\0\156\0\164) - /Parent 111 0 R - /Prev 120 0 R - /Next 122 0 R - /A 19 0 R ->> endobj -122 0 obj -<< - /Title (\376\377\0\127\0\162\0\151\0\164\0\151\0\156\0\147\0\40\0\101\0\164\0\164\0\162\0\151\0\142\0\165\0\164\0\145) - /Parent 111 0 R - /Prev 121 0 R - /Next 123 0 R - /A 21 0 R ->> endobj -123 0 obj -<< - /Title (\376\377\0\122\0\145\0\164\0\162\0\151\0\145\0\166\0\151\0\156\0\147\0\40\0\101\0\164\0\164\0\162\0\151\0\142\0\165\0\164\0\145\0\163) - /Parent 111 0 R - /Prev 122 0 R - /Next 124 0 R - /A 23 0 R ->> endobj -124 0 obj -<< - /Title (\376\377\0\105\0\156\0\143\0\157\0\144\0\151\0\156\0\147\0\40\0\103\0\157\0\156\0\166\0\145\0\162\0\163\0\151\0\157\0\156) - /Parent 111 0 R - /Prev 123 0 R - /Next 125 0 R - /A 25 0 R ->> endobj -125 0 obj -<< - /Title (\376\377\0\101\0\56\0\240\0\103\0\157\0\155\0\160\0\151\0\154\0\141\0\164\0\151\0\157\0\156) - /Parent 111 0 R - /Prev 124 0 R - /Next 126 0 R - /A 27 0 R ->> endobj -126 0 obj -<< - /Title (\376\377\0\102\0\56\0\240\0\123\0\141\0\155\0\160\0\154\0\145\0\40\0\104\0\157\0\143\0\165\0\155\0\145\0\156\0\164) - /Parent 111 0 R - /Prev 125 0 R - /Next 127 0 R - /A 29 0 R ->> endobj -127 0 obj -<< - /Title (\376\377\0\103\0\56\0\240\0\103\0\157\0\144\0\145\0\40\0\146\0\157\0\162\0\40\0\113\0\145\0\171\0\167\0\157\0\162\0\144\0\40\0\105\0\170\0\141\0\155\0\160\0\154\0\145) - /Parent 111 0 R - /Prev 126 0 R - /Next 128 0 R - /A 31 0 R ->> endobj -128 0 obj -<< - /Title (\376\377\0\104\0\56\0\240\0\103\0\157\0\144\0\145\0\40\0\146\0\157\0\162\0\40\0\130\0\120\0\141\0\164\0\150\0\40\0\105\0\170\0\141\0\155\0\160\0\154\0\145) - /Parent 111 0 R - /Prev 127 0 R - /Next 129 0 R - /A 33 0 R ->> endobj -129 0 obj -<< - /Title (\376\377\0\105\0\56\0\240\0\103\0\157\0\144\0\145\0\40\0\146\0\157\0\162\0\40\0\101\0\144\0\144\0\40\0\113\0\145\0\171\0\167\0\157\0\162\0\144\0\40\0\105\0\170\0\141\0\155\0\160\0\154\0\145) - /Parent 111 0 R - /Prev 128 0 R - /Next 130 0 R - /A 35 0 R ->> endobj -130 0 obj -<< - /Title (\376\377\0\106\0\56\0\240\0\103\0\157\0\144\0\145\0\40\0\146\0\157\0\162\0\40\0\101\0\144\0\144\0\40\0\101\0\164\0\164\0\162\0\151\0\142\0\165\0\164\0\145\0\40\0\105\0\170\0\141\0\155\0\160\0\154\0\145) - /Parent 111 0 R - /Prev 129 0 R - /Next 131 0 R - /A 37 0 R ->> endobj -131 0 obj -<< - /Title (\376\377\0\107\0\56\0\240\0\103\0\157\0\144\0\145\0\40\0\146\0\157\0\162\0\40\0\122\0\145\0\164\0\162\0\151\0\145\0\166\0\151\0\156\0\147\0\40\0\101\0\164\0\164\0\162\0\151\0\142\0\165\0\164\0\145\0\40\0\126\0\141\0\154\0\165\0\145\0\40\0\105\0\170\0\141\0\155\0\160\0\154\0\145) - /Parent 111 0 R - /Prev 130 0 R - /Next 132 0 R - /A 39 0 R ->> endobj -132 0 obj -<< - /Title (\376\377\0\110\0\56\0\240\0\103\0\157\0\144\0\145\0\40\0\146\0\157\0\162\0\40\0\105\0\156\0\143\0\157\0\144\0\151\0\156\0\147\0\40\0\103\0\157\0\156\0\166\0\145\0\162\0\163\0\151\0\157\0\156\0\40\0\105\0\170\0\141\0\155\0\160\0\154\0\145) - /Parent 111 0 R - /Prev 131 0 R - /Next 133 0 R - /A 41 0 R ->> endobj -133 0 obj -<< - /Title (\376\377\0\111\0\56\0\240\0\101\0\143\0\153\0\156\0\157\0\167\0\154\0\145\0\144\0\147\0\145\0\155\0\145\0\156\0\164\0\163) - /Parent 111 0 R - /Prev 132 0 R - /Next 135 0 R - /A 43 0 R ->> endobj -135 0 obj -<< - /Title (\376\377\0\111\0\156\0\144\0\145\0\170) - /Parent 111 0 R - /Prev 133 0 R - /A 134 0 R ->> endobj -136 0 obj -<< /Type /Font -/Subtype /Type1 -/Name /F3 -/BaseFont /Helvetica-Bold -/Encoding /WinAnsiEncoding >> -endobj -137 0 obj -<< /Type /Font -/Subtype /Type1 -/Name /F14 -/BaseFont /ZapfDingbats >> -endobj -138 0 obj -<< /Type /Font -/Subtype /Type1 -/Name /F5 -/BaseFont /Times-Roman -/Encoding /WinAnsiEncoding >> -endobj -139 0 obj -<< /Type /Font -/Subtype /Type1 -/Name /F6 -/BaseFont /Times-Italic -/Encoding /WinAnsiEncoding >> -endobj -140 0 obj -<< /Type /Font -/Subtype /Type1 -/Name /F1 -/BaseFont /Helvetica -/Encoding /WinAnsiEncoding >> -endobj -141 0 obj -<< /Type /Font -/Subtype /Type1 -/Name /F9 -/BaseFont /Courier -/Encoding /WinAnsiEncoding >> -endobj -142 0 obj -<< /Type /Font -/Subtype /Type1 -/Name /F7 -/BaseFont /Times-Bold -/Encoding /WinAnsiEncoding >> -endobj -1 0 obj -<< /Type /Pages -/Count 17 -/Kids [6 0 R 45 0 R 59 0 R 64 0 R 69 0 R 75 0 R 82 0 R 89 0 R 93 0 R 95 0 R 97 0 R 99 0 R 101 0 R 103 0 R 105 0 R 107 0 R 109 0 R ] >> -endobj -2 0 obj -<< /Type /Catalog -/Pages 1 0 R - /Outlines 111 0 R - /PageMode /UseOutlines - >> -endobj -3 0 obj -<< -/Font << /F3 136 0 R /F5 138 0 R /F14 137 0 R /F1 140 0 R /F6 139 0 R /F9 141 0 R /F7 142 0 R >> -/ProcSet [ /PDF /ImageC /Text ] >> -endobj -9 0 obj -<< -/S /GoTo -/D [45 0 R /XYZ 139.0 693.0 null] ->> -endobj -11 0 obj -<< -/S /GoTo -/D [45 0 R /XYZ 139.0 363.674 null] ->> -endobj -13 0 obj -<< -/S /GoTo -/D [59 0 R /XYZ 139.0 725.0 null] ->> -endobj -15 0 obj -<< -/S /GoTo -/D [59 0 R /XYZ 139.0 173.18 null] ->> -endobj -17 0 obj -<< -/S /GoTo -/D [64 0 R /XYZ 139.0 156.646 null] ->> -endobj -19 0 obj -<< -/S /GoTo -/D [75 0 R /XYZ 139.0 667.866 null] ->> -endobj -21 0 obj -<< -/S /GoTo -/D [75 0 R /XYZ 139.0 281.08 null] ->> -endobj -23 0 obj -<< -/S /GoTo -/D [82 0 R /XYZ 139.0 508.98 null] ->> -endobj -25 0 obj -<< -/S /GoTo -/D [89 0 R /XYZ 139.0 725.0 null] ->> -endobj -27 0 obj -<< -/S /GoTo -/D [93 0 R /XYZ 139.0 648.0 null] ->> -endobj -29 0 obj -<< -/S /GoTo -/D [93 0 R /XYZ 139.0 564.561 null] ->> -endobj -31 0 obj -<< -/S /GoTo -/D [93 0 R /XYZ 139.0 386.942 null] ->> -endobj -33 0 obj -<< -/S /GoTo -/D [95 0 R /XYZ 139.0 182.42 null] ->> -endobj -35 0 obj -<< -/S /GoTo -/D [99 0 R /XYZ 139.0 665.56 null] ->> -endobj -37 0 obj -<< -/S /GoTo -/D [101 0 R /XYZ 139.0 497.94 null] ->> -endobj -39 0 obj -<< -/S /GoTo -/D [103 0 R /XYZ 139.0 438.78 null] ->> -endobj -41 0 obj -<< -/S /GoTo -/D [105 0 R /XYZ 139.0 281.02 null] ->> -endobj -43 0 obj -<< -/S /GoTo -/D [107 0 R /XYZ 139.0 113.4 null] ->> -endobj -111 0 obj -<< - /First 113 0 R - /Last 135 0 R ->> endobj -112 0 obj -<< -/S /GoTo -/D [6 0 R /XYZ 139.0 725.0 null] ->> -endobj -114 0 obj -<< -/S /GoTo -/D [6 0 R /XYZ 139.0 396.11 null] ->> -endobj -134 0 obj -<< -/S /GoTo -/D [109 0 R /XYZ 139.0 682.0 null] ->> -endobj -xref -0 143 -0000000000 65535 f -0000046903 00000 n -0000047079 00000 n -0000047172 00000 n -0000000015 00000 n -0000000071 00000 n -0000001911 00000 n -0000002031 00000 n -0000002175 00000 n -0000047325 00000 n -0000002309 00000 n -0000047389 00000 n -0000002445 00000 n -0000047456 00000 n -0000002581 00000 n -0000047521 00000 n -0000002717 00000 n -0000047587 00000 n -0000002853 00000 n -0000047654 00000 n -0000002989 00000 n -0000047721 00000 n -0000003125 00000 n -0000047787 00000 n -0000003261 00000 n -0000047853 00000 n -0000003397 00000 n -0000047918 00000 n -0000003533 00000 n -0000047983 00000 n -0000003669 00000 n -0000048050 00000 n -0000003804 00000 n -0000048117 00000 n -0000003940 00000 n -0000048183 00000 n -0000004076 00000 n -0000048249 00000 n -0000004212 00000 n -0000048316 00000 n -0000004348 00000 n -0000048383 00000 n -0000004484 00000 n -0000048450 00000 n -0000004620 00000 n -0000006683 00000 n -0000006806 00000 n -0000006903 00000 n -0000007078 00000 n -0000007271 00000 n -0000007469 00000 n -0000007659 00000 n -0000007846 00000 n -0000008044 00000 n -0000008246 00000 n -0000008448 00000 n -0000008648 00000 n -0000008847 00000 n -0000009052 00000 n -0000011400 00000 n -0000011523 00000 n -0000011557 00000 n -0000011693 00000 n -0000011884 00000 n -0000014223 00000 n -0000014346 00000 n -0000014380 00000 n -0000014580 00000 n -0000014791 00000 n -0000017332 00000 n -0000017455 00000 n -0000017496 00000 n -0000017685 00000 n -0000017863 00000 n -0000018000 00000 n -0000020544 00000 n -0000020667 00000 n -0000020715 00000 n -0000020850 00000 n -0000021058 00000 n -0000021197 00000 n -0000021333 00000 n -0000023582 00000 n -0000023705 00000 n -0000023753 00000 n -0000023959 00000 n -0000024098 00000 n -0000024234 00000 n -0000024439 00000 n -0000027594 00000 n -0000027717 00000 n -0000027744 00000 n -0000027878 00000 n -0000030019 00000 n -0000030127 00000 n -0000031368 00000 n -0000031476 00000 n -0000032912 00000 n -0000033020 00000 n -0000034353 00000 n -0000034461 00000 n -0000035743 00000 n -0000035853 00000 n -0000037197 00000 n -0000037307 00000 n -0000038604 00000 n -0000038714 00000 n -0000040134 00000 n -0000040244 00000 n -0000041154 00000 n -0000041280 00000 n -0000048516 00000 n -0000048570 00000 n -0000041301 00000 n -0000048635 00000 n -0000041476 00000 n -0000041677 00000 n -0000041848 00000 n -0000042007 00000 n -0000042201 00000 n -0000042455 00000 n -0000042784 00000 n -0000043020 00000 n -0000043221 00000 n -0000043446 00000 n -0000043659 00000 n -0000043842 00000 n -0000044048 00000 n -0000044306 00000 n -0000044552 00000 n -0000044833 00000 n -0000045126 00000 n -0000045496 00000 n -0000045825 00000 n -0000048701 00000 n -0000046038 00000 n -0000046154 00000 n -0000046268 00000 n -0000046354 00000 n -0000046465 00000 n -0000046577 00000 n -0000046686 00000 n -0000046793 00000 n -trailer -<< -/Size 143 -/Root 2 0 R -/Info 4 0 R ->> -startxref -48768 -%%EOF diff --git a/src/tools/docbook/libxml2/doc/upgrade.html b/src/tools/docbook/libxml2/doc/upgrade.html deleted file mode 100644 index 590b8a42c0..0000000000 --- a/src/tools/docbook/libxml2/doc/upgrade.html +++ /dev/null @@ -1,108 +0,0 @@ - - -Upgrading 1.x code
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    Upgrading 1.x code

    Developer Menu
    API Indexes
    Related links

    Incompatible changes:

    Version 2 of libxml2 is the first version introducing -seriousbackwardincompatible changes. The main goals were:

    • a general cleanup. A number of mistakes inherited from the - veryearlyversions couldn't be changed due to compatibility - constraints.Examplethe "childs" element in the nodes.
    • -
    • Uniformization of the various nodes, at least for their header - andlinkparts (doc, parent, children, prev, next), the goal is - asimplerprogramming model and simplifying the task of the - DOMimplementors.
    • -
    • better conformances to the XML specification, for example version1.xhad - an heuristic to try to detect ignorable white spaces. As a resulttheSAX - event generated were ignorableWhitespace() while the - specrequirescharacter() in that case. This also mean that a number of - DOMnodecontaining blank text may populate the DOM tree which were - notpresentbefore.
    • -

    How to fix libxml-1.x code:

    So client code of libxml designed to run with version 1.x may have -tobechanged to compile against version 2.x of libxml. Here is a list -ofchangesthat I have collected, they may not be sufficient, so in case you -findotherchange which are required, dropme amail:

    1. The package name have changed from libxml to libxml2, the librarynameis - now -lxml2 . There is a new xml2-config script which should beused - toselect the right parameters libxml2
    2. -
    3. Node childsfield has - beenrenamedchildrenso s/childs/children/g should - beapplied(probability of having "childs" anywhere else is close to 0+
    4. -
    5. The document don't have anymore a rootelement - ithasbeen replaced by childrenand usually you will - getalist of element here. For example a Dtd element for the - internalsubsetand it's declaration may be found in that list, as well - asprocessinginstructions or comments found before or after the - documentroot element.Use xmlDocGetRootElement(doc)to get - theroot element ofa document. Alternatively if you are sure to not - referenceDTDs nor havePIs or comments before or after the - rootelements/->root/->children/g will probably do it.
    6. -
    7. The white space issue, this one is more complex, unless special - caseofvalidating parsing, the line breaks and spaces usually used - forindentingand formatting the document content becomes significant. So - theyarereported by SAX and if your using the DOM tree, corresponding - nodesaregenerated. Too approach can be taken: -
      1. lazy one, use the - compatibilitycallxmlKeepBlanksDefault(0)but be aware - that youarerelying on a special (and possibly broken) set of - heuristicsoflibxml to detect ignorable blanks. Don't complain if it - breaksormake your application not 100% clean w.r.t. to it's - input.
      2. -
      3. the Right Way: change you code to accept - possiblyinsignificantblanks characters, or have your tree populated - withweird blank textnodes. You can spot them using the - commodityfunctionxmlIsBlankNode(node)returning 1 for - suchblanknodes.
      4. -

      Note also that with the new default the output functions don't - addanyextra indentation when saving a tree in order to be able to - roundtrip(read and save) without inflating the document with - extraformattingchars.

      -
    8. -
    9. The include path has changed to $prefix/libxml/ and - theincludesthemselves uses this new prefix in includes instructions... - Ifyou areusing (as expected) the -
      xml2-config --cflags
      -

      output to generate you compile commands this will probably work - outofthe box

      -
    10. -
    11. xmlDetectCharEncoding takes an extra argument indicating the - lengthinbyte of the head of the document available for character - detection.
    12. -

    Ensuring both libxml-1.x and libxml-2.x compatibility

    Two new version of libxml (1.8.11) and libxml2 (2.3.4) have beenreleasedto -allow smooth upgrade of existing libxml v1code whileretainingcompatibility. -They offers the following:

    1. similar include naming, one - shoulduse#include<libxml/...>in both cases.
    2. -
    3. similar identifiers defined via macros for the child and - rootfields:respectivelyxmlChildrenNodeandxmlRootNode
    4. -
    5. a new macro LIBXML_TEST_VERSIONwhich should - beinsertedonce in the client code
    6. -

    So the roadmap to upgrade your existing libxml applications -isthefollowing:

    1. install the libxml-1.8.8 (and libxml-devel-1.8.8) packages
    2. -
    3. find all occurrences where the xmlDoc rootfield - isusedand change it to xmlRootNode
    4. -
    5. similarly find all occurrences where - thexmlNodechildsfield is used and change - ittoxmlChildrenNode
    6. -
    7. add a LIBXML_TEST_VERSIONmacro somewhere - inyourmain()or in the library init entry point
    8. -
    9. Recompile, check compatibility, it should still work
    10. -
    11. Change your configure script to look first for xml2-config and - fallbackusing xml-config . Use the --cflags and --libs output of the - commandasthe Include and Linking parameters needed to use libxml.
    12. -
    13. install libxml2-2.3.x and libxml2-devel-2.3.x - (libxml-1.8.yandlibxml-devel-1.8.y can be kept simultaneously)
    14. -
    15. remove your config.cache, relaunch your configuration - mechanism,andrecompile, if steps 2 and 3 were done right it should - compileas-is
    16. -
    17. Test that your application is still running correctly, if not thismaybe - due to extra empty nodes due to formating spaces being kept - inlibxml2contrary to libxml1, in that case insert - xmlKeepBlanksDefault(1)in yourcode before calling the parser - (nexttoLIBXML_TEST_VERSIONis a fine place).
    18. -

    Following those steps should work. It worked for some of my own code.

    Let me put some emphasis on the fact that there is far more -changesfromlibxml 1.x to 2.x than the ones you may have to patch for. The -overallcodehas been considerably cleaned up and the conformance to the -XMLspecificationhas been drastically improved too. Don't take those changes -asan excuse tonot upgrade, it may cost a lot on the long term ...

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/w3c.png b/src/tools/docbook/libxml2/doc/w3c.png deleted file mode 100644 index c541c20dcd..0000000000 Binary files a/src/tools/docbook/libxml2/doc/w3c.png and /dev/null differ diff --git a/src/tools/docbook/libxml2/doc/wiki.xsl b/src/tools/docbook/libxml2/doc/wiki.xsl deleted file mode 100644 index 8f707bb0a4..0000000000 --- a/src/tools/docbook/libxml2/doc/wiki.xsl +++ /dev/null @@ -1,589 +0,0 @@ - - - - - - - - - - - - wiki - ../ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -    #define 
    -    
    -
    - - -
    -    Variable 
    -    
    -      
    -    
    -     
    -    
    -    
    -    
    -
    -
    -    
    -
    - - - -
    -    
    -      
    -	Enum 
    -	
    -	
    -
    -      
    -      
    -	Typedef 
    -	
    -	  
    -	
    -	 
    -	
    -	
    -
    -      
    -    
    -    
    -
    - - - -

    Enum

    -
    -      Enum 
    -      
    -       {
    -
    -      
    -        
    -            
    -        
    -         = 
    -        
    -        
    -	   : 
    -	  
    -	    
    -	  
    -        
    -        
    -
    -      
    -      }
    -
    -    
    -
    - - -
    -    Structure 
    - - - - The content of this structure is not made public by the API. - - -
    -
    - - -

    Structure

    -
    -    Structure 
    - { - - - The content of this structure is not made public by the API. - - - - - - - - - - - : - - - - - - - - } -
    -
    - - - -

    Macro:

    -
    #define 
    -

    - - - -

    - -
    - - - - - - -
    -    
    -      
    -    
    -    	
    -    
    -    
    -      	
    -    
    -    
    -      	
    -    
    -    	(
    -    
    -      void
    -    
    -    
    -      
    -        
    -      
    -       
    -      
    -      
    -        , 
    - - - - - - - -
    -
    - ) -
    - -
    - - - - - - -
    -    Function type: 
    -    
    -    
    -
    -    
    -      
    -    
    -    	
    -    
    -    
    -      	
    -    
    -    
    -      	
    -    
    -    	(
    -    
    -      void
    -    
    -    
    -      
    -        
    -      
    -       
    -      
    -      
    -        , 
    - - - - - - - -
    -
    - ) - -
    - - -
    - - - - - - -

    - - Function type: - -

    -
    -    Function type: 
    -    
    -    
    -
    -    
    -      
    -    
    -    	
    -    
    -    
    -      	
    -    
    -    
    -      	
    -    
    -    	(
    -    
    -      void
    -    
    -    
    -      
    -        
    -      
    -       
    -      
    -      
    -        , 
    - - - - - - - -
    -
    - ) - -
    -

    - - - -

    - -
    - - - - - - - - - - - - -
    : - - - -
    Returns: - - - -
    -
    -
    - - -
    - - - - - - -

    Function:

    -
    -    
    -      
    -    
    -    	
    -    
    -    
    -      	
    -    
    -    
    -      	
    -    
    -    	(
    -    
    -      void
    -    
    -    
    -      
    -        
    -      
    -       
    -      
    -      
    -        , 
    - - - - - - - -
    -
    - )
    - - -
    -

    - - - -

    - - -
    - - - - - - - - - - - - -
    : - - - -
    Returns: - - - -
    -
    -
    - - - - - - - - - - - -

    This module is deprecated

    -
    - -

    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - Module from - - - - - - - -
    - - - -
    -

    Table of Contents

    - -

    Description

    - - - -
    -
    - -

    Table of Contents

    - - - - - - - - - - - - - - - -

    Description

    - - - - - - - - - - - - - - - - - -
    -
    -
    -
    -
    - - - -
    - -

    -
    - - - - Reference Manual for - - - - - - - -
    - -
    -
    -
    - - - - - - - - -
    diff --git a/src/tools/docbook/libxml2/doc/xml.html b/src/tools/docbook/libxml2/doc/xml.html deleted file mode 100644 index 72a0a9c64a..0000000000 --- a/src/tools/docbook/libxml2/doc/xml.html +++ /dev/null @@ -1,5001 +0,0 @@ - - - - The XML C parser and toolkit of Gnome - - - - - -

    The XML C parser and toolkit of Gnome

    - -

    Note: this is the flat content of the website

    - -

    libxml, a.k.a. gnome-xml

    - -

    - -

    "Programmingwithlibxml2 -is like the thrilling embrace of an exotic stranger." MarkPilgrim

    - -

    Libxml2 is the XML C parser and toolkit developed for the Gnomeproject(but -usable outside of the Gnome platform), it is free softwareavailableunder the -MITLicense.XML -itself is a metalanguage to design markup languages, i.e.text languagewhere -semantic and structure are added to the content usingextra -"markup"information enclosed between angle brackets. HTML is the -mostwell-knownmarkup language. Though the library is written in C avariety of language bindingsmake it available inother -environments.

    - -

    Libxml2 is known to be very portable, the library should build -andworkwithout serious troubles on a variety of systems (Linux, -Unix,Windows,CygWin, MacOS, MacOS X, RISC Os, OS/2, VMS, QNX, MVS, ...)

    - -

    Libxml2 implements a number of existing standards related -tomarkuplanguages:

    - - -

    In most cases libxml2 tries to implement the specifications in -arelativelystrictly compliant way. As of release 2.4.16, libxml2 passed -all1800+ testsfrom the OASIS -XMLTestsSuite.

    - -

    To some extent libxml2 provides support for the -followingadditionalspecifications but doesn't claim to implement them -completely:

    -
      -
    • Document Object Model (DOM) http://www.w3.org/TR/DOM-Level-2-Core/thedocument - model, but it doesn't implement the API itself, gdome2 doesthison top of - libxml2
    • -
    • RFC959:libxml2 - implements a basic FTP client code
    • -
    • RFC1945:HTTP/1.0, - again a basic HTTP client code
    • -
    • SAX: a SAX2 like interface and a minimal SAX1 - implementationcompatiblewith early expat versions
    • -
    - -

    A partial implementation of XML Schemas -Part1:Structureis being worked on but it would be far too early to -makeanyconformance statement about it at the moment.

    - -

    Separate documents:

    - - - -

    Logo designed by Marc Liyanage.

    - -

    Introduction

    - -

    This document describes libxml, the XMLC parser and toolkit developed for theGnomeproject. XML is a standardfor -buildingtag-basedstructured documents/data.

    - -

    Here are some key points about libxml:

    -
      -
    • Libxml2 exports Push (progressive) and Pull (blocking) - typeparserinterfaces for both XML and HTML.
    • -
    • Libxml2 can do DTD validation at parse time, using a - parseddocumentinstance, or with an arbitrary DTD.
    • -
    • Libxml2 includes complete XPath, XPointerand XIncludeimplementations.
    • -
    • It is written in plain C, making as few assumptions as - possible,andsticking closely to ANSI C/POSIX for easy embedding. - WorksonLinux/Unix/Windows, ported to a number of other platforms.
    • -
    • Basic support for HTTP and FTP client allowing applications - tofetchremote resources.
    • -
    • The design is modular, most of the extensions can be compiled out.
    • -
    • The internal document representation is as close as possible to the DOMinterfaces.
    • -
    • Libxml2 also has a SAX like - interface;theinterface is designed to be compatible with Expat.
    • -
    • This library is released under the MITLicense.See - the Copyright file in the distribution for the precisewording.
    • -
    - -

    Warning: unless you are forced to because your application links -withaGnome-1.X library requiring it, Do Not Use -libxml1,uselibxml2

    - -

    FAQ

    - -

    Table of Contents:

    - - -

    License(s)

    -
      -
    1. Licensing Terms for libxml -

      libxml2 is released under the MITLicense;see - the file Copyright in the distribution for the precisewording

      -
    2. -
    3. Can I embed libxml2 in a proprietary application ? -

      Yes. The MIT License allows you to keep proprietary the changesyoumade - to libxml, but it would be graceful to send-back bug fixesandimprovements - as patches for possible incorporation in themaindevelopment tree.

      -
    4. -
    - -

    Installation

    -
      -
    1. Do - NotUselibxml1, use libxml2
    2. -
    3. Where can I get libxml? -

      The original distribution comes from xmlsoft.orgor gnome.org

      -

      Most Linux and BSD distributions include libxml, this is - probablythesafer way for end-users to use libxml.

      -

      David Doolin provides precompiled Windows versions at http://www.ce.berkeley.edu/~doolin/code/libxmlwin32/

      -
    4. -
    5. I see libxml and libxml2 releases, which one should I install ? -
        -
      • If you are not constrained by backward compatibility - issueswithexisting applications, install libxml2 only
      • -
      • If you are not doing development, you can safely - installboth.Usually the packages libxmland libxml2arecompatible(this - is not the case for development packages).
      • -
      • If you are a developer and your system provides - separatepackagingfor shared libraries and the development components, - it ispossibleto install libxml and libxml2, and also libxml-develandlibxml2-develtoofor - libxml2 >= 2.3.0
      • -
      • If you are developing a new application, please - developagainstlibxml2(-devel)
      • -
      -
    6. -
    7. I can't install the libxml package, it conflicts with libxml0 -

      You probably have an old libxml0 package used to provide - thesharedlibrary for libxml.so.0, you can probably safely remove it. - Thelibxmlpackages provided on xmlsoft.orgprovidelibxml.so.0

      -
    8. -
    9. I can't install the libxml(2) RPM package due - tofaileddependencies -

      The most generic solution is to re-fetch the latest src.rpm - ,andrebuild it locally with

      -

      rpm --rebuild libxml(2)-xxx.src.rpm.

      -

      If everything goes well it will generate two binary rpm - packages(oneproviding the shared libs and xmllint, and the other one, - the-develpackage, providing includes, static libraries and scripts needed - tobuildapplications with libxml(2)) that you can install locally.

      -
    10. -
    - -

    Compilation

    -
      -
    1. What is the process to compile libxml2 ? -

      As most UNIX libraries libxml2 follows the "standard":

      -

      gunzip -c xxx.tar.gz | tar xvf -

      -

      cd libxml-xxxx

      -

      ./configure --help

      -

      to see the options, then the compilation/installation proper

      -

      ./configure [possible options]

      -

      make

      -

      make install

      -

      At that point you may have to rerun ldconfig or a similar - utilitytoupdate your list of installed shared libs.

      -
    2. -
    3. What other libraries are needed to compile/install libxml2 ? -

      Libxml2 does not require any other library, the normal C ANSIAPIshould - be sufficient (please report any violation to this rule youmayfind).

      -

      However if found at configuration time libxml2 will detect and - usethefollowing libs:

      -
        -
      • libz:ahighly - portable and available widely compression library.
      • -
      • iconv: a powerful character encoding conversion library. - Itisincluded by default in recent glibc libraries, so it doesn't - needtobe installed specifically on Linux. It now seems a partofthe - official UNIXspecification. Here is one implementation - ofthelibrarywhich source can be found here.
      • -
      -
    4. -
    5. Make check fails on some platforms -

      Sometimes the regression tests' results don't completely matchthevalue - produced by the parser, and the makefile uses diff to printthedelta. On - some platforms the diff return breaks the compilationprocess;if the diff - is small this is probably not a serious problem.

      -

      Sometimes (especially on Solaris) make checks fail due tolimitationsin - make. Try using GNU-make instead.

      -
    6. -
    7. I use the CVS version and there is no configure script -

      The configure script (and other Makefiles) are generated. - Usetheautogen.sh script to regenerate the configure script - andMakefiles,like:

      -

      ./autogen.sh --prefix=/usr --disable-shared

      -
    8. -
    9. I have troubles when running make tests with gcc-3.0 -

      It seems the initial release of gcc-3.0 has a problem withtheoptimizer - which miscompiles the URI module. Please useanothercompiler.

      -
    10. -
    - -

    Developercorner

    -
      -
    1. Troubles compiling or linking programs using libxml2 -

      Usually the problem comes from the fact that the compiler - doesn'tgetthe right compilation or linking flags. There is a small - shellscriptxml2-configwhich is installed as part of - libxml2usualinstall process which provides those flags. Use

      -

      xml2-config --cflags

      -

      to get the compilation flags and

      -

      xml2-config --libs

      -

      to get the linker flags. Usually this is done directly fromtheMakefile - as:

      -

      CFLAGS=`xml2-config --cflags`

      -

      LIBS=`xml2-config --libs`

      -
    2. -
    3. I want to install my own copy of libxml2 in my home - directoryandlink my programs against it, but it doesn't work -

      There are many different ways to accomplish this. Here is one waytodo - this under Linux. Suppose your home directory - is/home/user.Then:

      -
        -
      • Create a subdirectory, let's call it myxml
      • -
      • unpack the libxml2 distribution into that subdirectory
      • -
      • chdir into the unpacked - distribution(/home/user/myxml/libxml2)
      • -
      • configure the library using the - "--prefix"switch,specifying an installation - subdirectoryin/home/user/myxml, e.g. -

        ./configure - --prefix/home/user/myxml/xmlinst{otherconfiguration - options}

        -
      • -
      • now run makefollowed by make install
      • -
      • At this point, the installation subdirectory contains - thecomplete"private" include files, library files and binary - programfiles (e.g.xmllint), located in -

        /home/user/myxml/xmlinst/lib,/home/user/myxml/xmlinst/includeand - /home/user/myxml/xmlinst/bin

        - respectively.
      • -
      • In order to use this "private" library, you should first add - ittothe beginning of your default PATH (so that your own - privateprogramfiles such as xmllint will be used instead of the - normalsystemones). To do this, the Bash command would be -

        export PATH=/home/user/myxml/xmlinst/bin:$PATH

        -
      • -
      • Now suppose you have a program test1.cthat - youwouldlike to compile with your "private" library. Simply compile - itusingthe command -

        gcc `xml2-config --cflags --libs` -o test test.c

        - Note that, because your PATH has been set - with/home/user/myxml/xmlinst/binat the beginning, - thexml2-configprogram which you just installed will be used instead - ofthe systemdefault one, and this will automaticallyget - thecorrectlibraries linked with your program.
      • -
      -
    4. - -

      -
    5. xmlDocDump() generates output on one line. -

      Libxml2 will not inventspaces in the content - ofadocument since all spaces in the content of a - documentaresignificant. If you build a tree from the API - andwantindentation:

      -
        -
      1. the correct way is to generate those yourself too.
      2. -
      3. the dangerous way is to ask libxml2 to add those blanks - toyourcontent modifying the content of your document - intheprocess. The result may not be what you expect. - ThereisNOway to guarantee that such a - modificationwon'taffect other parts of the content of your document. - See xmlKeepBlanksDefault()andxmlSaveFormatFile()
      4. -
      -
    6. -
    7. Extra nodes in the document: -

      For a XML file as below:

      -
      <?xml version="1.0"?>
      -<PLAN xmlns="http://www.argus.ca/autotest/1.0/">
      -<NODE CommFlag="0"/>
      -<NODE CommFlag="1"/>
      -</PLAN>
      -

      after parsing it with - thefunctionpxmlDoc=xmlParseFile(...);

      -

      I want to the get the content of the first node (node - withtheCommFlag="0")

      -

      so I did it as following;

      -
      xmlNodePtr pnode;
      -pnode=pxmlDoc->children->children;
      -

      but it does not work. If I change it to

      -
      pnode=pxmlDoc->children->children->next;
      -

      then it works. Can someone explain it to me.

      -

      -

      In XML all characters in the content of the document - aresignificantincluding blanks and formatting - linebreaks.

      -

      The extra nodes you are wondering about are just that, text - nodeswiththe formatting spaces which are part of the document but that - peopletendto forget. There is a function xmlKeepBlanksDefault()toremove - those at parse time, but that's an heuristic, and itsuse should belimited - to cases where you are certain there is nomixed-content in - thedocument.

      -
    8. -
    9. I get compilation errors of existing code like - whenaccessingrootor child - fieldsofnodes. -

      You are compiling code developed for libxml version 1 and - usingalibxml2 development environment. Either switch back to libxml v1 - develoreven better fix the code to compile with libxml2 (or both) by following the instructions.

      -
    10. -
    11. I get compilation errors about - nonexistingxmlRootNodeorxmlChildrenNodefields. -

      The source code you are using has been upgradedto be able to compile with both - libxmlandlibxml2, but you need to install a more recent - version:libxml(-devel)>= 1.8.8 or libxml2(-devel) >= 2.1.0

      -
    12. -
    13. XPath implementation looks seriously broken -

      XPath implementation prior to 2.3.0 was really incomplete. Upgrade - toarecent version, there are no known bugs in the current version.

      -
    14. -
    15. The example provided in the web page does not compile. -

      It's hard to maintain the documentation in sync with - thecode<grin/> ...

      -

      Check the previous points 1/ and 2/ raised before, and - pleasesendpatches.

      -
    16. -
    17. Where can I get more examples and information than provided - ontheweb page? -

      Ideally a libxml2 book would be nice. I have no such plan ... - Butyoucan:

      -
        -
      • check more deeply the existinggenerated doc
      • -
      • have a look at the - setofexamples.
      • -
      • look for examples of use for libxml2 function using the - Gnomecode.For example the following will query the full Gnome CVS - base fortheuse of the xmlAddChild()function: -

        http://cvs.gnome.org/lxr/search?string=xmlAddChild

        -

        This may be slow, a large hardware donation to the - gnomeprojectcould cure this :-)

        -
      • -
      • Browsethelibxml2 - source, I try to write code as clean and documentedaspossible, so - looking at it may be helpful. In particular the codeofxmllint.c and - of the various testXXX.c test programs shouldprovidegood examples of - how to do things with the library.
      • -
      -
    18. -
    19. What about C++ ? -

      libxml2 is written in pure C in order to allow easy reuse on anumberof - platforms, including embedded systems. I don't intend to converttoC++.

      -

      There is however a C++ wrapper which may fulfill your needs:

      - -
    20. -
    21. How to validate a document a posteriori ? -

      It is possible to validate documents which had not been - validatedatinitial parsing time or documents which have been built - fromscratchusing the API. Use the xmlValidateDtd()function.It - is also possible to simply add a DTD to an existingdocument:

      -
      xmlDocPtr doc; /* your existing document */
      -xmlDtdPtr dtd = xmlParseDTD(NULL, filename_of_dtd); /* parse the DTD */
      -
      -        dtd->name = xmlStrDup((xmlChar*)"root_name"); /* use the given root */
      -
      -        doc->intSubset = dtd;
      -        if (doc->children == NULL) xmlAddChild((xmlNodePtr)doc, (xmlNodePtr)dtd);
      -        else xmlAddPrevSibling(doc->children, (xmlNodePtr)dtd);
      -          
      -
    22. -
    23. So what is this funky "xmlChar" used all the time? -

      It is a null terminated sequence of utf-8 characters. And - onlyutf-8!You need to convert strings encoded in different ways to - utf-8beforepassing them to the API. This can be accomplished with the - iconvlibraryfor instance.

      -
    24. -
    25. etc ...
    26. -
    - -

    - -

    Developer Menu

    - -

    There are several on-line resources related to using libxml:

    -
      -
    1. Use the search engineto lookupinformation.
    2. -
    3. Check the FAQ.
    4. -
    5. Check the extensivedocumentationautomaticallyextracted - from code comments.
    6. -
    7. Look at the documentation about libxmlinternationalization support.
    8. -
    9. This page provides a global overview and someexampleson how to use libxml.
    10. -
    11. Code examples
    12. -
    13. John Fleck's libxml2 tutorial: htmlorpdf.
    14. -
    15. If you need to parse large files, check the xmlReaderAPI tutorial
    16. -
    17. James Henstridgewrote somenicedocumentationexplaining - how to use the libxml SAX interface.
    18. -
    19. George Lebl wrote anarticlefor - IBM developerWorksabout using libxml.
    20. -
    21. Check theTODOfile.
    22. -
    23. Read the 1.x to 2.x upgrade - pathdescription.If you are starting a new project using libxml you - shouldreally use the2.x version.
    24. -
    25. And don't forget to look at the mailing-list archive.
    26. -
    - -

    Reporting bugs and getting help

    - -

    Well, bugs or missing features are always possible, and I will make -apointof fixing them in a timely fashion. The best way to report a bug is -touse theGnomebugtracking -database(make sure to use the "libxml2" module name). Ilook atreports -there regularly and it's good to have a reminder when a bugis stillopen. Be -sure to specify that the bug is for the package libxml2.

    - -

    For small problems you can try to get help on IRC, the #xml -channelonirc.gnome.org (port 6667) usually have a few person subscribed which -mayhelp(but there is no garantee and if a real issue is raised it should go -onthemailing-list for archival).

    - -

    There is also a mailing-list xml@gnome.orgfor libxml, with an on-line archive(old). To subscribe to this -list,pleasevisit the associatedWebpage -andfollow the instructions. Do not send code, I won'tdebug -it(but patches are really appreciated!).

    - -

    Please note that with the current amount of virus and SPAM, sending -mailtothe list without being subscribed won't work. There is *far too -manybounces*(in the order of a thousand a day !) I cannot approve them -manuallyanymore.If your mail to the list bounced waiting for administrator -approval,it isLOST ! Repost it and fix the problem triggering the error. Also -pleasenotethat emails -withalegal warning asking to not copy or redistribute freely the -informationstheycontainare NOTacceptable for the -mailing-list,suchmail will as much as possible be discarded automatically, -and are lesslikelyto be answered if they made it to the list, DO -NOTpost tothe list from an email address where such legal -requirements areautomaticallyadded, get private paying support if you can't -shareinformations.

    - -

    Check the following beforeposting:

    -
      -
    • Read the FAQand usethesearch engineto get information related to - your problem.
    • -
    • Make sure you are using - arecentversion, and that the problem still shows up in a - recentversion.
    • -
    • Check the listarchivesto see if - theproblem was reported already. In this casethere is probably a - fixavailable, similarly check the registeredopenbugs.
    • -
    • Make sure you can reproduce the bug with xmllint or one of - thetestprograms found in source in the distribution.
    • -
    • Please send the command showing the error as well as the input - (asanattachment)
    • -
    - -

    Then send the bug with associated information to reproduce it to the xml@gnome.orglist; if it's -reallylibxmlrelated I will approve it. Please do not send mail to me -directly, itmakesthings really hard to track and in some cases I am not the -best persontoanswer a given question, ask on the list.

    - -

    To be really clear about support:

    -
      -
    • Support or help requests MUST be senttothe - list or on bugzillain case of problems, so that theQuestionand - Answers can be shared publicly. Failing to do so carries - theimplicitmessage "I want free support but I don't want to share - thebenefits withothers" and is not welcome. I will automatically - Carbon-Copythexml@gnome.org mailing list for any technical reply made - about libxml2orlibxslt.
    • -
    • There is no garantee of - support,ifyour question remains unanswered after a week, repost - it, making sureyougave all the detail needed and the information - requested.
    • -
    • Failing to provide information as requested or double checking - firstforprior feedback also carries the implicit message "the time of - thelibrarymaintainers is less valuable than my time" and might not - bewelcome.
    • -
    - -

    Of course, bugs reported with a suggested patch for fixing -themwillprobably be processed faster than those without.

    - -

    If you're looking for help, a quick look at the list -archivemayactuallyprovide the answer. I usually send source samples when -answeringlibxml2usage questions. The auto-generateddocumentationisnot -as polished as I would like (i need to learn moreabout DocBook), butit's a -good starting point.

    - -

    How to help

    - -

    You can help the project in various ways, the best thing to do first -istosubscribe to the mailing-list as explained before, check the archives and the Gnomebugdatabase:

    -
      -
    1. Provide patches when you find problems.
    2. -
    3. Provide the diffs when you port libxml2 to a new platform. They - maynotbe integrated in all cases but help pinpointing - portabilityproblemsand
    4. -
    5. Provide documentation fixes (either as patches to the code commentsoras - HTML diffs).
    6. -
    7. Provide new documentations pieces (translations, examples, etc...).
    8. -
    9. Check the TODO file and try to close one of the items.
    10. -
    11. Take one of the points raised in the archive or the bug - databaseandprovide a fix. Get in - touch withmebefore to avoid synchronization problems and check that - thesuggestedfix will fit in nicely :-)
    12. -
    - -

    Downloads

    - -

    The latest versions of libxml2 can be found on the xmlsoft.orgserver ( HTTP, FTPand rsync are available), there -isalsomirrors (Australia(Web), France) or on the Gnome FTP serveras source -archive,Antonin Sprinzl also provide amirror in Austria. (NOTE -thatyou need both the libxml(2)and libxml(2)-develpackagesinstalled -to compile applications using libxml.)

    - -

    You can find all the history of libxml(2) and libxslt releases in the olddirectory. -TheprecompiledWindows binaries made by Igor Zlatovic are available in the win32directory.

    - -

    Binary ports:

    - - -

    If you know other supported binary ports, please contact me.

    - -

    Snapshot:

    - - -

    Contributions:

    - -

    I do accept external contributions, especially if compiling -onanotherplatform, get in touch with the list to upload the package, -wrappersforvarious languages have been provided, and can be found in the bindings section

    - -

    Libxml2 is also available from CVS:

    - - -

    Releases

    - -

    Items not finished and worked on, get in touch with the list if you -wanttohelp those

    -
      -
    • More testing on RelaxNG
    • -
    • Finishing up XMLSchemas
    • -
    - -

    The change logdescribes the recents -commitstothe CVScode -base.

    - -

    There is the list of public releases:

    - -

    2.6.26: Jun 6 2006

    -
      -
    • portability fixes: Python detection (Joseph Sacco), compilation - error(William Brack and Graham Bennett), LynxOS patch (Olli Savia)
    • -
    • bug fixes: encoding buffer problem, mix of code and data in - xmlIO.c(Kjartan Maraas), entities in XSD validation (Kasimier Buchcik), - variousXSD validation fixes (Kasimier), memory leak in pattern (Rob - Richards andKasimier), attribute with colon in name (Rob Richards), XPath - leak inerror reporting (Aleksey Sanin), XInclude text include of - selfdocument.
    • -
    • improvements: Xpath optimizations (Kasimier), XPath object - cache(Kasimier)
    • -
    - -

    2.6.25: Jun 6 2006:

    - -

    Do not use or package 2.6.25

    - -

    2.6.24: Apr 28 2006

    -
      -
    • Portability fixes: configure on Windows, testapi compile - onwindows(Kasimier Buchcik, venkat naidu), Borland C++ 6 compile - (EricZurcher),HP-UX compiler workaround (Rick Jones), xml2-config - bugfix,gcc-4.1cleanups, Python detection scheme (Joseph Sacco), UTF-8 - file pathsonWindows (Roland Schwingel).
    • -
    • Improvements: xmlDOMWrapReconcileNamespaces - xmlDOMWrapCloneNode(KasimierBuchcik), XML catalog debugging (Rick Jones), - update to Unicode4.01.
    • -
    • Bug fixes: xmlParseChunk() problem in 2.6.23, - xmlParseInNodeContext()onHTML docs, URI behaviour on Windows (Rob - Richards), comment streamingbug,xmlParseComment (with William Brack), - regexp bug fixes (DV &YouriGolovanov), xmlGetNodePath on text/CDATA - (Kasimier),one Relax-NGinterleave bug, xmllint --path and --valid,XSD - bugfixes (Kasimier),remove debugleft in Python bindings (Nic Ferrier), - xmlCatalogAdd bug(Martin Cole),xmlSetProp fixes (Rob Richards), HTML - IDness (RobRichards), a largenumber of cleanups and small fixes based on - Coverityreports, bugin character ranges, Unicode tables const (Aivars - Kalvans),schemasfix (Stefan Kost), xmlRelaxNGParse - errordeallocation,xmlSchemaAddSchemaDoc error deallocation, error - handling onunallowedcode point, ixmllint --nonet to never reach the net - (GaryCoady),line break in writer after end PI (Jason Viers).
    • -
    • Documentation: man pages updates and cleanups (Daniel Leidert).
    • -
    • New features: Relax NG structure error handlers.
    • -
    - -

    2.6.23: Jan 5 2006

    -
      -
    • portability fixes: Windows (Rob Richards), getaddrinfo on - Windows(KoljaNowak, Rob Richards), icc warnings (Kjartan - Maraas),--with-minimumcompilation fixes (William Brack), error case - handling fixon Solaris(Albert Chin), don't use 'list' as parameter name - reported bySamuel DiazGarcia, more old Unices portability fixes (Albert - Chin),MinGW compilation(Mark Junker), HP-UX compiler warnings - (RickJones),
    • -
    • code cleanup: xmlReportError (Adrian Mouat), removexmlBufferClose(Geert - Jansen), unreachable code (Oleksandr Kononenko),refactoringparsing code - (Bjorn Reese)
    • -
    • bug fixes: xmlBuildRelativeURI and empty path - (WilliamBrack),combinatory explosion and performances in regexp code, - leakinxmlTextReaderReadString(), xmlStringLenDecodeEntities - problem(MassimoMorara), Identity Constraints bugs and a segfault - (KasimierBuchcik),XPath pattern based evaluation bugs (DV - &Kasimier),xmlSchemaContentModelDump() memory leak (Kasimier), - potentialleak inxmlSchemaCheckCSelectorXPath(), xmlTextWriterVSprintf() - misuseofvsnprintf (William Brack), XHTML serialization fix (Rob - Richards),CRLFsplit problem (William), issues with non-namespaced - attributesinxmlAddChild() xmlAddNextSibling() and xmlAddPrevSibling() - (RobRichards),HTML parsing of script, Python must not output to stdout - (NicFerrier),exclusive C14N namespace visibility (Aleksey Sanin), - XSDdataypetotalDigits bug (Kasimier Buchcik), error handling when writing - toanxmlBuffer (Rob Richards), runtest schemas error not - reported(HisashiFujinaka), signed/unsigned problem in date/time code - (AlbertChin), fixXSI driven XSD validation (Kasimier), parsing of - xs:decimal(Kasimier),fix DTD writer output (Rob Richards), leak - inxmlTextReaderReadInnerXml(Gary Coady), regexp bug affecting - schemas(Kasimier), configuration ofruntime debugging - (Kasimier),xmlNodeBufGetContent bug on entity refs(Oleksandr - Kononenko),xmlRegExecPushString2 bug (Sreeni Nair),compilation and build - fixes(Michael Day), removed dependancies onxmlSchemaValidError - (Kasimier), bugwith <xml:foo/>, more XPathpattern based evaluation - fixes(Kasimier)
    • -
    • improvements: XSD Schemas redefinitions/restrictions - (KasimierBuchcik),node copy checks and fix for attribute (Rob Richards), - countedtransitionbug in regexps, ctxt->standalone = -2 to indicate - nostandaloneattribute was found, add - xmlSchemaSetParserStructuredErrors()(KasimierBuchcik), add - xmlTextReaderSchemaValidateCtxt() to API(Kasimier), handlegzipped HTTP - resources (Gary Coady), addhtmlDocDumpMemoryFormat. (RobRichards),
    • -
    • documentation: typo (Michael Day), libxml man page (Albert - Chin),savefunction to XML buffer (Geert Jansen), small doc fix - (AronStansvik),
    • -
    - -

    2.6.22: Sep 12 2005

    -
      -
    • build fixes: compile without schematron (Stéphane Bidoul)
    • -
    • bug fixes: xmlDebugDumpNode on namespace node (Oleg - Paraschenko)i,CDATApush parser bug, xmlElemDump problem with XHTML1 - doc,XML_FEATURE_xxxclash with expat headers renamed XML_WITH_xxx, fix - someoutput formattingfor meta element (Rob Richards), script and - styleXHTML1 serialization(David Madore), Attribute derivation fixups in - XSD(Kasimier Buchcik),better IDC error reports (Kasimier Buchcik)
    • -
    • improvements: add XML_SAVE_NO_EMPTY xmlSaveOption (Rob - Richards),addXML_SAVE_NO_XHTML xmlSaveOption, XML Schemas improvements - preparingforderive (Kasimier Buchcik).
    • -
    • documentation: generation of gtk-doc like docs, - integrationwithdevhelp.
    • -
    - -

    2.6.21: Sep 4 2005

    -
      -
    • build fixes: Cygwin portability fixes (Gerrit P. - Haase),callingconvention problems on Windows (Marcus Boerger), cleanups - based onLinus'sparse tool, update of win32/configure.js (Rob Richards), - removewarningson Windows(Marcus Boerger), compilation without SAX1, - detectionof thePython binary, use $GCC inestad of $CC = 'gcc' (Andrew - W.Nosenko),compilation/link with threads and old gcc, compile problem - byC370 onZ/OS,
    • -
    • bug fixes: http_proxy environments (Peter Breitenlohner), HTML - UTF-8bug(Jiri Netolicky), XPath NaN compare bug (William - Brack),htmlParseScriptpotential bug, Schemas regexp handling of spaces, - Base64Schemascomparisons NIST passes, automata build error - xsd:all,xmlGetNodePath fornamespaced attributes (Alexander Pohoyda), - xmlSchemasforeign namespaceshandling, XML Schemas facet comparison - (KupriyanovAnatolij),xmlSchemaPSimpleTypeErr error report (Kasimier - Buchcik), xml:namespaceahndling in Schemas (Kasimier), empty model group - in Schemas(Kasimier),wilcard in Schemas (Kasimier), URI composition - (William),xs:anyType inSchemas (Kasimier), Python resolver emmitting - errormessages directly,Python xmlAttr.parent (Jakub Piotr Clapa), trying - tofix the file path/URIconversion, xmlTextReaderGetAttribute fix - (RobRichards),xmlSchemaFreeAnnot memleak (Kasimier), HTML - UTF-8serialization, streamingXPath, Schemas determinism detection - problem,XInclude bug, Schemascontext type (Dean Hill), validation fix - (DerekPoon),xmlTextReaderGetAttribute[Ns] namespaces (Rob Richards), - Schemastype fix(Kuba Nowakowski), UTF-8 parser bug, error in - encodinghandling,xmlGetLineNo fixes, bug on entities handling, entity - nameextraction inerror handling with XInclude, text nodes in HTML body - tags(Gary Coady),xml:id and IDness at the treee level fixes, XPath - streamingpatternsbugs.
    • -
    • improvements: structured interfaces for schemas and RNG - errorreports(Marcus Boerger), optimization of the char data inner - loopparsing(thanks to Behdad Esfahbod for the idea), schematron - validationthoughnot finished yet, xmlSaveOption to omit XML declaration, - keyrefmatcherror reports (Kasimier), formal expression handling code - notpluggedyet, more lax mode for the HTML parser, parser - XML_PARSE_COMPACToptionfor text nodes allocation.
    • -
    • documentation: xmllint man page had --nonet duplicated
    • -
    - -

    2.6.20: Jul 10 2005

    -
      -
    • build fixes: Windows build (Rob Richards), Mingw - compilation(IgorZlatkovic), Windows Makefile (Igor), gcc warnings - (Kasimierandandriy@google.com), use gcc weak references to pthread to - avoidthepthread dependancy on Linux, compilation problem (Steve - Nairn),compilingof subset (Morten Welinder), IPv6/ss_family compilation - (WilliamBrack),compilation when disabling parts of the library, - standalonetestdistribution.
    • -
    • bug fixes: bug in lang(), memory cleanup on errors (William - Brack),HTTPquery strings (Aron Stansvik), memory leak in DTD - (William),integeroverflow in XPath (William), nanoftp buffer size, - pattern "." apthfixup(Kasimier), leak in tree reported by Malcolm Rowe, - replaceNodepatch(Brent Hendricks), CDATA with NULL content (Mark Vakoc), - xml:basefixupon XInclude (William), pattern fixes (William), attribute - buginexclusive c14n (Aleksey Sanin), xml:space and xml:lang with - SAX2(RobRichards), namespace trouble in complex parsing (Malcolm Rowe), - XSDtypeQNames fixes (Kasimier), XPath streaming fixups (William), - RelaxNGbug(Rob Richards), Schemas for Schemas fixes (Kasimier), removal - of ID(RobRichards), a small RelaxNG leak, HTML parsing in push mode - bug(JamesBursa), failure to detect UTF-8 parsing bugs in - CDATAsections,areBlanks() heuristic failure, duplicate attributes in - DTDbug(William).
    • -
    • improvements: lot of work on Schemas by Kasimier Buchcik - bothonconformance and streaming, Schemas validation messages - (KasimierBuchcik,Matthew Burgess), namespace removal at the python - level(BrentHendricks), Update to new Schemas regression tests - fromW3C/Nist(Kasimier), xmlSchemaValidateFile() (Kasimier), - implementationofxmlTextReaderReadInnerXml and xmlTextReaderReadOuterXml - (JamesWert),standalone test framework and programs, new DOM - importAPIsxmlDOMWrapReconcileNamespaces() - xmlDOMWrapAdoptNode()andxmlDOMWrapRemoveNode(), extension of xmllint - capabilities for SAXandSchemas regression tests, xmlStopParser() - available in pull modetoo,ienhancement to xmllint --shell namespaces - support, Windows port ofthestandalone testing tools (Kasimier - andWilliam),xmlSchemaValidateStream() xmlSchemaSAXPlug() - andxmlSchemaSAXUnplug() SAXSchemas APIs, Schemas xmlReader support.
    • -
    - -

    2.6.19: Apr 02 2005

    -
      -
    • build fixes: drop .la from RPMs, --with-minimum build - fix(WilliamBrack), use XML_SOCKLEN_T instead of SOCKLEN_T because it - breakswith AIX5.3 compiler, fixed elfgcchack.h generation and PLT - reductioncode onLinux/ELF/gcc4
    • -
    • bug fixes: schemas type decimal fixups (William Brack), - xmmlintreturncode (Gerry Murphy), small schemas fixes (Matthew Burgess - andGUYFabrice), workaround "DAV:" namespace brokeness in c14n - (AlekseySanin),segfault in Schemas (Kasimier Buchcik), Schemas - attributevalidation(Kasimier), Prop related functions and - xmlNewNodeEatName (RobRichards),HTML serialization of name attribute on a - elements, Pythonerror handlersleaks and improvement (Brent Hendricks), - uninitializedvariable inencoding code, Relax-NG validation bug, potential - crashifgnorableWhitespace is NULL, xmlSAXParseDoc and - xmlParseDocsignatures,switched back to assuming UTF-8 in case no encoding - is givenatserialization time
    • -
    • improvements: lot of work on Schemas by Kasimier Buchcik - onfacetschecking and also mixed handling.
    • -
    • -
    - -

    2.6.18: Mar 13 2005

    -
      -
    • build fixes: warnings (Peter Breitenlohner), - testapi.cgeneration,Bakefile support (Francesco Montorsi), Windows - compilation(Joel Reed),some gcc4 fixes, HP-UX portability fixes (Rick - Jones).
    • -
    • bug fixes: xmlSchemaElementDump namespace (Kasimier Buchcik), - pushandxmlreader stopping on non-fatal errors, thread support - fordictionnariesreference counting (Gary Coady), internal subset and - pushproblem, URLsaved in xmlCopyDoc, various schemas bug fixes - (Kasimier),Python pathsfixup (Stephane Bidoul), xmlGetNodePath and - namespaces,xmlSetNsProp fix(Mike Hommey), warning should not count as - error (WilliamBrack),xmlCreatePushParser empty chunk, XInclude parser - flags (William),cleanupFTP and HTTP code to reuse the uri parsing and - IPv6(William),xmlTextWriterStartAttributeNS fix (Rob - Richards),XMLLINT_INDENT beingempty (William), xmlWriter bugs (Rob - Richards),multithreading on Windows(Rich Salz), xmlSearchNsByHref fix - (Kasimier),Python binding leak (BrentHendricks), aliasing bug exposed by - gcc4 ons390, xmlTextReaderNext bug(Rob Richards), Schemas decimal type - fixes(William Brack),xmlByteConsumed static buffer (Ben Maurer).
    • -
    • improvement: speedup parsing comments and DTDs, dictionnary - supportforhash tables, Schemas Identity constraints (Kasimier), - streamingXPathsubset, xmlTextReaderReadString added (Bjorn Reese), - Schemascanonicalvalues handling (Kasimier), add - xmlTextReaderByteConsumed(AronStansvik),
    • -
    • Documentation: Wiki support (Joel Reed)
    • -
    - -

    2.6.17: Jan 16 2005

    -
      -
    • build fixes: Windows, warnings removal (William - Brack),maintainer-cleandependency(William), build in a different - directory(William), fixing--with-minimum configure build (William), BeOS - build(Marcin Konicki),Python-2.4 detection (William), compilation on AIX - (DanMcNichol)
    • -
    • bug fixes: xmlTextReaderHasAttributes (Rob - Richards),xmlCtxtReadFile()to use the catalog(s), loop on output (William - Brack),XPath memory leak,ID deallocation problem (Steve Shepard), - debugDumpNodecrash (William),warning not using error callback (William), - xmlStopParserbug (William),UTF-16 with BOM on DTDs (William), namespace - bug on emptyelements inpush mode (Rob Richards), line and col - computations fixups(AlekseySanin), xmlURIEscape fix (William), - xmlXPathErr on bad range(William),patterns with too many steps, bug in - RNG choice optimization,line numbersometimes missing.
    • -
    • improvements: XSD Schemas (Kasimier Buchcik), pythongenerator(William), - xmlUTF8Strpos speedup (William), unicode Pythonstrings(William), XSD - error reports (Kasimier Buchcik), Python __str__callserialize().
    • -
    • new APIs: added xmlDictExists(), GetLineNumber and - GetColumnNumberforthe xmlReader (Aleksey Sanin), Dynamic Shared Libraries - APIs (mostlyJoelReed), error extraction API from regexps, new XMLSave - option forformat(Phil Shafer)
    • -
    • documentation: site improvement (John Fleck), FAQ entries(William).
    • -
    - -

    2.6.16: Nov 10 2004

    -
      -
    • general hardening and bug fixing crossing all the API based - onnewautomated regression testing
    • -
    • build fix: IPv6 build and test on AIX (Dodji Seketeli)
    • -
    • bug fixes: problem with XML::Libxml reported by Petr - Pajas,encodingconversion functions return values, UTF-8 bug affecting - XPathreported byMarkus Bertheau, catalog problem with NULL entries - (WilliamBrack)
    • -
    • documentation: fix to xmllint man page, some API - functiondescritpionwere updated.
    • -
    • improvements: DTD validation APIs provided at the Python - level(BrentHendricks)
    • -
    - -

    2.6.15: Oct 27 2004

    -
      -
    • security fixes on the nanoftp and nanohttp modules
    • -
    • build fixes: xmllint detection bug in configure, building - outsidethesource tree (Thomas Fitzsimmons)
    • -
    • bug fixes: HTML parser on broken ASCII chars in names - (William),Pythonpaths (Malcolm Tredinnick), xmlHasNsProp and default - namespace(William),saving to python file objects (Malcolm Tredinnick), - DTD lookupfix(Malcolm), save back <group> in catalogs (William), - treebuildfixes (DV and Rob Richards), Schemas memory bug, structured - errorhandleron Python 64bits, thread local memory deallocation, memory - leakreportedby Volker Roth, xmlValidateDtd in the presence of an - internalsubset,entities and _private problem (William), - xmlBuildRelativeURIerror(William).
    • -
    • improvements: better XInclude error reports (William), - treedebuggingmodule and tests, convenience functions at the Reader - API(GrahamBennett), add support for PI in the HTML parser.
    • -
    - -

    2.6.14: Sep 29 2004

    -
      -
    • build fixes: configure paths for xmllint and - xsltproc,compilationwithout HTML parser, compilation warning cleanups - (WilliamBrack &Malcolm Tredinnick), VMS makefile update (Craig - Berry),
    • -
    • bug fixes: xmlGetUTF8Char (William Brack), QName - properties(KasimierBuchcik), XInclude testing, Notation - serialization,UTF8ToISO8859xtranscoding (Mark Itzcovitz), lots of XML - Schemas cleanupand fixes(Kasimier), ChangeLog cleanup (Stepan Kasal), - memory fixes (MarkVakoc),handling of failed realloc(), out of bound array - adressing inSchemasdate handling, Python space/tabs cleanups (Malcolm - Tredinnick),NMTOKENSE20 validation fix (Malcolm),
    • -
    • improvements: added W3C XML Schemas testsuite (Kasimier - Buchcik),addxmlSchemaValidateOneElement (Kasimier), Python - exceptionhierearchy(Malcolm Tredinnick), Python libxml2 driver - improvement(MalcolmTredinnick), Schemas support - forxsi:schemaLocation,xsi:noNamespaceSchemaLocation, xsi:type - (KasimierBuchcik)
    • -
    - -

    2.6.13: Aug 31 2004

    -
      -
    • build fixes: Windows and zlib (Igor Zlatkovic), -O flag withgcc,Solaris - compiler warning, fixing RPM BuildRequires,
    • -
    • fixes: DTD loading on Windows (Igor), Schemas error - reportsAPIs(Kasimier Buchcik), Schemas validation crash, xmlCheckUTF8 - (WilliamBrackand Julius Mittenzwei), Schemas facet check (Kasimier), - defaultnamespaceproblem (William), Schemas hexbinary empty values, - encodingerror couldgenrate a serialization loop.
    • -
    • Improvements: Schemas validity improvements (Kasimier), added - --pathand--load-trace options to xmllint
    • -
    • documentation: tutorial update (John Fleck)
    • -
    - -

    2.6.12: Aug 22 2004

    -
      -
    • build fixes: fix --with-minimum, elfgcchack.h - fixes(PeterBreitenlohner), perl path lookup (William), diff on - Solaris(AlbertChin), some 64bits cleanups.
    • -
    • Python: avoid a warning with 2.3 (William Brack), tab and - spacemixes(William), wrapper generator fixes (William), Cygwin support - (GerritP.Haase), node wrapper fix (Marc-Antoine Parent), XML - Schemassupport(Torkel Lyng)
    • -
    • Schemas: a lot of bug fixes and improvements from Kasimier Buchcik
    • -
    • fixes: RVT fixes (William), XPath context resets bug - (William),memorydebug (Steve Hay), catalog white space handling - (PeterBreitenlohner),xmlReader state after attribute reading - (William),structured errorhandler (William), XInclude generated xml:base - fixup(William), Windowsmemory reallocation problem (Steve Hay), Out of - Memoryconditionshandling (William and Olivier Andrieu), htmlNewDoc() - charsetbug,htmlReadMemory init (William), a posteriori validation - DTDbase(William), notations serialization missing, - xmlGetNodePath(Dodji),xmlCheckUTF8 (Diego Tartara), missing line numbers - onentity(William)
    • -
    • improvements: DocBook catalog build scrip (William), - xmlcatalogtool(Albert Chin), xmllint --c14n option, no_proxy environment - (MikeHommey),xmlParseInNodeContext() addition, extend xmllint --shell, - allowXIncludeto not generate start/end nodes, extend xmllint --version - toinclude CVStag (William)
    • -
    • documentation: web pages fixes, validity API docs fixes(William)schemas - API fix (Eric Haszlakiewicz), xmllint man page (JohnFleck)
    • -
    - -

    2.6.11: July 5 2004

    -
      -
    • Schemas: a lot of changes and improvements by Kasimier - Buchcikforattributes, namespaces and simple types.
    • -
    • build fixes: --with-minimum (William Brack), some gcccleanup(William), - --with-thread-alloc (William)
    • -
    • portability: Windows binary package change (Igor Zlatkovic),Catalogpath - on Windows
    • -
    • documentation: update to the tutorial (John Fleck), xmllint - returncode(John Fleck), man pages (Ville Skytta),
    • -
    • bug fixes: C14N bug serializing namespaces (Aleksey - Sanin),testSAXproperly initialize the library (William), empty node set - inXPath(William), xmlSchemas errors (William), invalid charref - problempointedby Morus Walter, XInclude xml:base generation (William), - Relax-NGbugwith div processing (William), XPointer and - xml:baseproblem(William),Reader and entities, xmllint return code for - schemas(William), readerstreaming problem (Steve Ball), DTD - serializationproblem (William),libxml.m4 fixes (Mike Hommey), do not - providedestructors as methods onPython classes, xmlReader buffer bug, - Pythonbindings memory interfacesimprovement (with Stéphane Bidoul), Fixed - thepush parser to be back tosynchronous behaviour.
    • -
    • improvement: custom per-thread I/O enhancement (Rob - Richards),registernamespace in debug shell (Stefano Debenedetti), Python - basedregressiontest for non-Unix users (William), dynamically increase - thenumber ofXPath extension functions in Python and fix a memory - leak(Marc-AntoineParent and William)
    • -
    • performance: hack done with Arjan van de Ven to reduce ELF - footprintandgenerated code on Linux, plus use gcc runtime profiling to - optimizethecode generated in the RPM packages.
    • -
    - -

    2.6.10: May 17 2004

    -
      -
    • Web page generated for ChangeLog
    • -
    • build fixes: --without-html problems, make check without make all
    • -
    • portability: problem with xpath.c on Windows (MSC and - Borland),memcmpvs. strncmp on Solaris, XPath tests on Windows (Mark - Vakoc), C++ donotuse "list" as parameter name, make tests work with - Python 1.5(EdDavis),
    • -
    • improvements: made xmlTextReaderMode public, small - buffersresizing(Morten Welinder), add --maxmem option to - xmllint,addxmlPopInputCallback() for Matt Sergeant, refactoring - ofserializationescaping, added escaping customization
    • -
    • bugfixes: xsd:extension (Taihei Goi), assorted regexp - bugs(WilliamBrack), xmlReader end of stream problem, node deregistration - withreader,URI escaping and filemanes, XHTML1 formatting (Nick - Wellnhofer),regexptransition reduction (William), various XSD Schemas - fixes(KasimierBuchcik), XInclude fallback problem (William), weird - problemswith DTD(William), structured error handler callback context - (William),reversexmlEncodeSpecialChars() behaviour back to escaping - '"'
    • -
    - -

    2.6.9: Apr 18 2004

    -
      -
    • implement xml:id Working Draft, relaxed XPath id() checking
    • -
    • bugfixes: xmlCtxtReset (Brent Hendricks), line number and - CDATA(DaveBeckett), Relax-NG compilation (William Brack), Regexp - patches(withWilliam), xmlUriEscape (Mark Vakoc), a Relax-NG notAllowed - problem(withWilliam), Relax-NG name classes compares (William), - XIncludeduplicatefallback (William), external DTD encoding detection - (William), aDTDvalidation bug (William), xmlReader Close() fix, - recusiveextentionschemas
    • -
    • improvements: use xmlRead* APIs in test tools (Mark - Vakoc),indentingsave optimization, better handle IIS broken HTTP - redirectbehaviour (IanHummel), HTML parser frameset (James Bursa), - libxml2-pythonRPMdependancy, XML Schemas union support (Kasimier - Buchcik), warningremovalclanup (William), keep ChangeLog compressed when - installing fromRPMs
    • -
    • documentation: examples and xmlDocDumpMemory docs (John - Fleck),newexample (load, xpath, modify, save), xmlCatalogDump() - comments,
    • -
    • Windows: Borland C++ builder (Eric Zurcher), work - aroundMicrosoftcompiler NaN handling bug (Mark Vakoc)
    • -
    - -

    2.6.8: Mar 23 2004

    -
      -
    • First step of the cleanup of the serialization code and APIs
    • -
    • XML Schemas: mixed content (Adam Dickmeiss), QName handling - fixes(AdamDickmeiss), anyURI for "" (John Belmonte)
    • -
    • Python: Canonicalization C14N support added (Anthony Carrico)
    • -
    • xmlDocCopyNode() extension (William)
    • -
    • Relax-NG: fix when processing XInclude results - (William),externalreference in interleave (William), missing error - on<choice>failure (William), memory leak in schemas - datatypefacets.
    • -
    • xmlWriter: patch for better DTD support (Alfred Mickautsch)
    • -
    • bug fixes: xmlXPathLangFunction memory leak (Mike Hommey - andWilliamBrack), no ID errors if using HTML_PARSE_NOERROR, - xmlcatalogfallbacks toURI on SYSTEM lookup failure, XInclude parse - flagsinheritance (William),XInclude and XPointer fixes for entities - (William),XML parser bugreported by Holger Rauch, nanohttp fd leak - (William),regexps chargroups '-' handling (William), dictionnary - reference countingproblems,do not close stderr.
    • -
    • performance patches from Petr Pajas
    • -
    • Documentation fixes: XML_CATALOG_FILES in man pages (Mike Hommey)
    • -
    • compilation and portability fixes: --without-valid, - catalogcleanups(Peter Breitenlohner), MingW patch (Roland - Schwingel),cross-compilationto Windows (Christophe de Vienne), - --with-html-dirfixup (Julio MerinoVidal), Windows build (Eric - Zurcher)
    • -
    - -

    2.6.7: Feb 23 2004

    -
      -
    • documentation: tutorial updates (John Fleck), benchmark results
    • -
    • xmlWriter: updates and fixes (Alfred Mickautsch, Lucas Brasilino)
    • -
    • XPath optimization (Petr Pajas)
    • -
    • DTD ID handling optimization
    • -
    • bugfixes: xpath number with > 19 fractional (William - Brack),pushmode with unescaped '>' characters, fix xmllint --stream - --timing,fixxmllint --memory --stream memory - usage,xmlAttrSerializeTxtContenthandling NULL, trying to fix - Relax-NG/Perlinterface.
    • -
    • python: 2.3 compatibility, whitespace fixes (Malcolm Tredinnick)
    • -
    • Added relaxng option to xmllint --shell
    • -
    - -

    2.6.6: Feb 12 2004

    -
      -
    • nanohttp and nanoftp: buffer overflow error on URI parsing - (IgorandWilliam) reported by Yuuichi Teranishi
    • -
    • bugfixes: make test and path issues, xmlWriter - attributeserialization(William Brack), xmlWriter indentation (William), - schemasvalidation(Eric Haszlakiewicz), XInclude dictionnaries issues - (Williamand OlegParaschenko), XInclude empty fallback (William), HTML - warnings(William),XPointer in XInclude (William), Python - namespaceserialization,isolat1ToUTF8 bound error (Alfred Mickautsch), - output ofparameterentities in internal subset (William), internal subset - bug inpush mode,<xs:all> fix (Alexey Sarytchev)
    • -
    • Build: fix for automake-1.8 (Alexander Winston), warningsremoval(Philip - Ludlam), SOCKLEN_T detection fixes (Daniel Richard),fix--with-minimum - configuration.
    • -
    • XInclude: allow the 2001 namespace without warning.
    • -
    • Documentation: missing example/index.html (John - Fleck),versiondependancies (John Fleck)
    • -
    • reader API: structured error reporting (Steve Ball)
    • -
    • Windows compilation: mingw, msys (Mikhail - Grushinskiy),functionprototype (Cameron Johnson), MSVC6 compiler - warnings,_WINSOCKAPI_patch
    • -
    • Parsers: added xmlByteConsumed(ctxt) API to get the byte - offestininput.
    • -
    - -

    2.6.5: Jan 25 2004

    -
      -
    • Bugfixes: dictionnaries for schemas (William Brack), - regexpsegfault(William), xs:all problem (William), a number of - XPointerbugfixes(William), xmllint error go to stderr, DTD validation - problemwithnamespace, memory leak (William), SAX1 cleanup and minimal - optionsfixes(Mark Vadoc), parser context reset on error (Shaun McCance), - XPathunionevaluation problem (William) , xmlReallocLoc with NULL - (AlekseySanin),XML Schemas double free (Steve Ball), XInclude with no - href,argumentcallbacks order for XPath callbacks (Frederic Peters)
    • -
    • Documentation: python scripts (William Brack), xslt - stylesheets(JohnFleck), doc (Sven Zimmerman), I/O example.
    • -
    • Python bindings: fixes (William), enum support - (StéphaneBidoul),structured error reporting (Stéphane Bidoul)
    • -
    • XInclude: various fixes for conformance, problem related - todictionnaryreferences (William & me), recursion (William)
    • -
    • xmlWriter: indentation (Lucas Brasilino), memory - leaks(AlfredMickautsch),
    • -
    • xmlSchemas: normalizedString datatype (John Belmonte)
    • -
    • code cleanup for strings functions (William)
    • -
    • Windows: compiler patches (Mark Vakoc)
    • -
    • Parser optimizations, a few new XPath and dictionnary APIs - forfutureXSLT optimizations.
    • -
    - -

    2.6.4: Dec 24 2003

    -
      -
    • Windows build fixes (Igor Zlatkovic)
    • -
    • Some serious XInclude problems reported by Oleg Paraschenko and
    • -
    • Unix and Makefile packaging fixes (me, William Brack,
    • -
    • Documentation improvements (John Fleck, William Brack), - examplefix(Lucas Brasilino)
    • -
    • bugfixes: xmlTextReaderExpand() with xmlReaderWalker, XPath - handlingofNULL strings (William Brack) , API building reader or - parserfromfiledescriptor should not close it, changed XPath sorting to - bestableagain (William Brack), xmlGetNodePath() generating - '(null)'(WilliamBrack), DTD validation and namespace bug (William Brack), - XMLSchemasdouble inclusion behaviour
    • -
    - -

    2.6.3: Dec 10 2003

    -
      -
    • documentation updates and cleanup (DV, William Brack, John Fleck)
    • -
    • added a repository of examples, examples from Aleksey - Sanin,DodjiSeketeli, Alfred Mickautsch
    • -
    • Windows updates: Mark Vakoc, Igor Zlatkovic, Eric Zurcher,Mingw(Kenneth - Haley)
    • -
    • Unicode range checking (William Brack)
    • -
    • code cleanup (William Brack)
    • -
    • Python bindings: doc (John Fleck), bug fixes
    • -
    • UTF-16 cleanup and BOM issues (William Brack)
    • -
    • bug fixes: ID and xmlReader validation, XPath (William - Brack),xmlWriter(Alfred Mickautsch), hash.h inclusion problem, HTML - parser(James Bursa),attribute defaulting and validation, some - serializationcleanups,XML_GET_LINE macro, memory debug when using threads - (WilliamBrack),serialization of attributes and entities content, - xmlWriter(DanielSchulman)
    • -
    • XInclude bugfix, new APIs and update to the last version - includingthenamespace change.
    • -
    • XML Schemas improvements: include (Robert Stepanek), importandnamespace - handling, fixed the regression tests troubles, addedexamplesbased on Eric - van der Vlist book, regexp fixes
    • -
    • preliminary pattern support for streaming (needed - forschemasconstraints), added xmlTextReaderPreservePattern() to - collectsubdocumentwhen streaming.
    • -
    • various fixes in the structured error handling
    • -
    - -

    2.6.2: Nov 4 2003

    -
      -
    • XPath context unregistration fixes
    • -
    • text node coalescing fixes (Mark Lilback)
    • -
    • API to screate a W3C Schemas from an existing document (Steve Ball)
    • -
    • BeOS patches (Marcin 'Shard' Konicki)
    • -
    • xmlStrVPrintf function added (Aleksey Sanin)
    • -
    • compilation fixes (Mark Vakoc)
    • -
    • stdin parsing fix (William Brack)
    • -
    • a posteriori DTD validation fixes
    • -
    • xmlReader bug fixes: Walker fixes, python bindings
    • -
    • fixed xmlStopParser() to really stop the parser and errors
    • -
    • always generate line numbers when using the new xmlReadxxxfunctions
    • -
    • added XInclude support to the xmlReader interface
    • -
    • implemented XML_PARSE_NONET parser option
    • -
    • DocBook XSLT processing bug fixed
    • -
    • HTML serialization for <p> elements (William Brack and me)
    • -
    • XPointer failure in XInclude are now handled as resource errors
    • -
    • fixed xmllint --html to use the HTML serializer on output(added--xmlout - to implement the previous behaviour of saving it using - theXMLserializer)
    • -
    - -

    2.6.1: Oct 28 2003

    -
      -
    • Mostly bugfixes after the big 2.6.0 changes
    • -
    • Unix compilation patches: libxml.m4 (Patrick Welche), - warningscleanup(William Brack)
    • -
    • Windows compilation patches (Joachim Bauch, Stephane - Bidoul,IgorZlatkovic)
    • -
    • xmlWriter bugfix (Alfred Mickautsch)
    • -
    • chvalid.[ch]: couple of fixes from Stephane Bidoul
    • -
    • context reset: error state reset, push parser reset (GrahamBennett)
    • -
    • context reuse: generate errors if file is not readable
    • -
    • defaulted attributes for element coming from internal - entities(StephaneBidoul)
    • -
    • Python: tab and spaces mix (William Brack)
    • -
    • Error handler could crash in DTD validation in 2.6.0
    • -
    • xmlReader: do not use the document or element _private field
    • -
    • testSAX.c: avoid a problem with some PIs (Massimo Morara)
    • -
    • general bug fixes: mandatory encoding in text decl, - serializingDocumentFragment nodes, xmlSearchNs 2.6.0 problem (Kasimier - Buchcik),XPath errorsnot reported, slow HTML parsing of large - documents.
    • -
    - -

    2.6.0: Oct 20 2003

    -
      -
    • Major revision release: should be API and ABI compatible but got alotof - change
    • -
    • Increased the library modularity, far more options can be strippedout,a - --with-minimum configuration will weight around 160KBytes
    • -
    • Use per parser and per document dictionnary, allocate names - andsmalltext nodes from the dictionnary
    • -
    • Switch to a SAX2 like parser rewrote most of the XML - parsercore,provides namespace resolution and defaulted attributes, - minimizememoryallocations and copies, namespace checking and specific - errorhandling,immutable buffers, make predefined entities static - structures,etc...
    • -
    • rewrote all the error handling in the library, all errors - canbeintercepted at a structured level, with - preciseinformationavailable.
    • -
    • New simpler and more generic XML and HTML parser APIs, - allowingtoeasilly modify the parsing options and reuse parser context - formultipleconsecutive documents.
    • -
    • Similar new APIs for the xmlReader, for options and reuse, - providednewfunctions to access content as const strings, use them - forPythonbindings
    • -
    • a lot of other smaller API improvements: xmlStrPrintf - (AlekseySanin),Walker i.e. reader on a document tree based on Alfred - Mickautschcode,make room in nodes for line numbers, reference counting - and futurePSVIextensions, generation of character ranges to be checked - withfasteralgorithm (William), xmlParserMaxDepth (Crutcher - Dunnavant),bufferaccess
    • -
    • New xmlWriter API provided by Alfred Mickautsch
    • -
    • Schemas: base64 support by Anthony Carrico
    • -
    • Parser<->HTTP integration fix, proper processing of - theMime-Typeand charset informations if available.
    • -
    • Relax-NG: bug fixes including the one reported by Martijn - FaassenandzeroOrMore, better error reporting.
    • -
    • Python bindings (Stéphane Bidoul), never use stdout forerrorsoutput
    • -
    • Portability: all the headers have macros for export - andcallingconvention definitions (Igor Zlatkovic), VMS update (Craig - A.Berry),Windows: threads (Jesse Pelton), Borland compiler (Eric - Zurcher,Igor),Mingw (Igor), typos (Mark Vakoc), beta version - (StephaneBidoul),warning cleanups on AIX and MIPS compilers (William - Brack), BeOS(Marcin'Shard' Konicki)
    • -
    • Documentation fixes and README (William Brack), search - fix(William),tutorial updates (John Fleck), namespace docs (Stefan - Kost)
    • -
    • Bug fixes: xmlCleanupParser (Dave Beckett), - threadinguninitializedmutexes, HTML doctype lowercase, SAX/IO - (William),compression detectionand restore (William), attribute - declaration in DTDs(William), namespaceon attribute in HTML output - (William), input filename(Rob Richards),namespace DTD validation, - xmlReplaceNode (Chris Ryland),I/O callbacks(Markus Keim), CDATA - serialization (Shaun McCance),xmlReader (PeterDerr), high codepoint - charref like &#x10FFFF;, bufferaccess in pushmode (Justin Fletcher), - TLS threads on Windows (JessePelton), XPath bug(William), - xmlCleanupParser (Marc Liyanage), CDATAoutput (William), HTTPerror - handling.
    • -
    • xmllint options: --dtdvalidfpi for Tobias Reif, --sax1 - forcompattesting, --nodict for building without tree dictionnary, - --nocdatatoreplace CDATA by text, --nsclean to remove - surperfluousnamespacedeclarations
    • -
    • added xml2-config --libtool-libs option from Kevin P. Fleming
    • -
    • a lot of profiling and tuning of the code, speedup - patchforxmlSearchNs() by Luca Padovani. The xmlReader should do - farlessallocation and it speed should get closer to SAX. Chris - Andersonworkedon speeding and cleaning up repetitive checking code.
    • -
    • cleanup of "make tests"
    • -
    • libxml-2.0-uninstalled.pc from Malcolm Tredinnick
    • -
    • deactivated the broken docBook SGML parser code and plugged - theXMLparser instead.
    • -
    - -

    2.5.11: Sep 9 2003

    - -

    A bugfix only release:

    -
      -
    • risk of crash in Relax-NG
    • -
    • risk of crash when using multithreaded programs
    • -
    - -

    2.5.10: Aug 15 2003

    - -

    A bugfixes only release

    -
      -
    • Windows Makefiles (William Brack)
    • -
    • UTF-16 support fixes (Mark Itzcovitz)
    • -
    • Makefile and portability (William Brack) automake, Linux alpha, - MingwonWindows (Mikhail Grushinskiy)
    • -
    • HTML parser (Oliver Stoeneberg)
    • -
    • XInclude performance problem reported by Kevin Ruscoe
    • -
    • XML parser performance problem reported by Grant Goodale
    • -
    • xmlSAXParseDTD() bug fix from Malcolm Tredinnick
    • -
    • and a couple other cleanup
    • -
    - -

    2.5.9: Aug 9 2003

    -
      -
    • bugfixes: IPv6 portability, xmlHasNsProp (Markus Keim), - Windowsbuild(Wiliam Brake, Jesse Pelton, Igor), Schemas (Peter - Sobisch),threading(Rob Richards), hexBinary type (), UTF-16 BOM - (DodjiSeketeli),xmlReader, Relax-NG schemas compilation, namespace - handling,EXSLT (SeanGriffin), HTML parsing problem (William Brack), DTD - validationfor mixedcontent + namespaces, HTML serialization, - libraryinitialization,progressive HTML parser
    • -
    • better interfaces for Relax-NG error handling (Joachim Bauch, )
    • -
    • adding xmlXIncludeProcessTree() for XInclud'ing in a subtree
    • -
    • doc fixes and improvements (John Fleck)
    • -
    • configure flag for -with-fexceptions when embedding in C++
    • -
    • couple of new UTF-8 helper functions (William Brack)
    • -
    • general encoding cleanup + ISO-8859-x without iconv (Peter Jacobi)
    • -
    • xmlTextReader cleanup + enum for node types (Bjorn Reese)
    • -
    • general compilation/warning cleanup Solaris/HP-UX/...(WilliamBrack)
    • -
    - -

    2.5.8: Jul 6 2003

    -
      -
    • bugfixes: XPath, XInclude, file/URI mapping, UTF-16 - save(MarkItzcovitz), UTF-8 checking, URI saving, error printing - (WilliamBrack),PI related memleak, compilation without schemas or without - xpath(JoergSchmitz-Linneweber/Garry Pennington), xmlUnlinkNode problem - withDTDs,rpm problem on , i86_64, removed a few compilation problems - from2.5.7,xmlIOParseDTD, and xmlSAXParseDTD (Malcolm Tredinnick)
    • -
    • portability: DJGPP (MsDos) , OpenVMS (Craig A. Berry)
    • -
    • William Brack fixed multithreading lock problems
    • -
    • IPv6 patch for FTP and HTTP accesses (Archana Shah/Wipro)
    • -
    • Windows fixes (Igor Zlatkovic, Eric Zurcher), - threading(StéphaneBidoul)
    • -
    • A few W3C Schemas Structure improvements
    • -
    • W3C Schemas Datatype improvements (Charlie Bozeman)
    • -
    • Python bindings for thread globals (Stéphane Bidoul), - andmethod/classgenerator
    • -
    • added --nonet option to xmllint
    • -
    • documentation improvements (John Fleck)
    • -
    - -

    2.5.7: Apr 25 2003

    -
      -
    • Relax-NG: Compiling to regexp and streaming validation on top - ofthexmlReader interface, added to xmllint --stream
    • -
    • xmlReader: Expand(), Next() and DOM access glue, bug fixes
    • -
    • Support for large files: RGN validated a 4.5GB instance
    • -
    • Thread support is now configured in by default
    • -
    • Fixes: update of the Trio code (Bjorn), WXS Date and - Durationfixes(Charles Bozeman), DTD and namespaces (Brent Hendricks), - HTML pushparserand zero bytes handling, some missing Windows file - pathconversions,behaviour of the parser and validator in the presence of - "outof memory"error conditions
    • -
    • extended the API to be able to plug a garbage - collectingmemoryallocator, added xmlMallocAtomic() and modified - theallocationsaccordingly.
    • -
    • Performances: removed excessive malloc() calls, speedup of the - pushandxmlReader interfaces, removed excessive thread locking
    • -
    • Documentation: man page (John Fleck), xmlReader documentation
    • -
    • Python: adding binding for xmlCatalogAddLocal (Brent M Hendricks)
    • -
    - -

    2.5.6: Apr 1 2003

    -
      -
    • Fixed W3C XML Schemas datatype, should be compliant now exceptforbinHex - and base64 which are not supported yet.
    • -
    • bug fixes: non-ASCII IDs, HTML output, XInclude on large - docsandXInclude entities handling, encoding detection on external - subsets,XMLSchemas bugs and memory leaks, HTML parser (James Bursa)
    • -
    • portability: python/trio (Albert Chin), Sun compiler warnings
    • -
    • documentation: added --relaxng option to xmllint man page (John)
    • -
    • improved error reporting: xml:space, start/end tag mismatches, - RelaxNGerrors
    • -
    - -

    2.5.5: Mar 24 2003

    -
      -
    • Lot of fixes on the Relax NG implementation. More - testingincludingDocBook and TEI examples.
    • -
    • Increased the support for W3C XML Schemas datatype
    • -
    • Several bug fixes in the URI handling layer
    • -
    • Bug fixes: HTML parser, xmlReader, DTD validation, - XPath,encodingconversion, line counting in the parser.
    • -
    • Added support for $XMLLINT_INDENT environment variable, FTP delete
    • -
    • Fixed the RPM spec file name
    • -
    - -

    2.5.4: Feb 20 2003

    -
      -
    • Conformance testing and lot of fixes on Relax NG - andXIncludeimplementation
    • -
    • Implementation of XPointer element() scheme
    • -
    • Bug fixes: XML parser, XInclude entities merge, validity - checkingonnamespaces, -

      2 serialization bugs, node info generation problems, a - DTDregexpgeneration problem.

      -
    • -
    • Portability: windows updates and path canonicalization (Igor)
    • -
    • A few typo fixes (Kjartan Maraas)
    • -
    • Python bindings generator fixes (Stephane Bidoul)
    • -
    - -

    2.5.3: Feb 10 2003

    -
      -
    • RelaxNG and XML Schemas datatypes improvements, and added afirstversion - of RelaxNG Python bindings
    • -
    • Fixes: XLink (Sean Chittenden), XInclude (Sean Chittenden), API - fixforserializing namespace nodes, encoding conversion - bug,XHTML1serialization
    • -
    • Portability fixes: Windows (Igor), AMD 64bits RPM spec file
    • -
    - -

    2.5.2: Feb 5 2003

    -
      -
    • First implementation of RelaxNG, added --relaxng flag to xmllint
    • -
    • Schemas support now compiled in by default.
    • -
    • Bug fixes: DTD validation, namespace checking, XInclude - andentities,delegateURI in XML Catalogs, HTML parser, XML reader - (StéphaneBidoul),XPath parser and evaluation, UTF8ToUTF8 serialization, - XMLreader memoryconsumption, HTML parser, HTML serialization in the - presenceofnamespaces
    • -
    • added an HTML API to check elements and attributes.
    • -
    • Documentation improvement, PDF for the tutorial (John Fleck),docpatches - (Stefan Kost)
    • -
    • Portability fixes: NetBSD (Julio Merino), Windows (Igor Zlatkovic)
    • -
    • Added python bindings for XPointer, contextual error - reporting(StéphaneBidoul)
    • -
    • URI/file escaping problems (Stefano Zacchiroli)
    • -
    - -

    2.5.1: Jan 8 2003

    -
      -
    • Fixes a memory leak and configuration/compilation problems in 2.5.0
    • -
    • documentation updates (John)
    • -
    • a couple of XmlTextReader fixes
    • -
    - -

    2.5.0: Jan 6 2003

    -
      -
    • New XmltextReader interfacebased on - C#API(with help of Stéphane Bidoul)
    • -
    • Windows: more exports, including the new API (Igor)
    • -
    • XInclude fallback fix
    • -
    • Python: bindings for the new API, packaging - (StéphaneBidoul),drv_libxml2.py Python xml.sax driver (Stéphane Bidoul), - fixes,speedupand iterators for Python-2.2 (Hannu Krosing)
    • -
    • Tutorial fixes (john Fleck and Niraj Tolia) xmllint manupdate(John)
    • -
    • Fix an XML parser bug raised by Vyacheslav Pindyura
    • -
    • Fix for VMS serialization (Nigel Hall) and config (Craig A. Berry)
    • -
    • Entities handling fixes
    • -
    • new API to optionally track node creation and - deletion(LukasSchroeder)
    • -
    • Added documentation for the XmltextReader interface and some XML guidelines
    • -
    - -

    2.4.30: Dec 12 2002

    -
      -
    • 2.4.29 broke the python bindings, rereleasing
    • -
    • Improvement/fixes of the XML API generator, and couple of - minorcodefixes.
    • -
    - -

    2.4.29: Dec 11 2002

    -
      -
    • Windows fixes (Igor): Windows CE port, pthread linking, - pythonbindings(Stéphane Bidoul), Mingw (Magnus Henoch), and export - listupdates
    • -
    • Fix for prev in python bindings (ERDI Gergo)
    • -
    • Fix for entities handling (Marcus Clarke)
    • -
    • Refactored the XML and HTML dumps to a single code path, - fixedXHTML1dump
    • -
    • Fix for URI parsing when handling URNs with fragment identifiers
    • -
    • Fix for HTTP URL escaping problem
    • -
    • added an TextXmlReader (C#) like API (work in progress)
    • -
    • Rewrote the API in XML generation script, includes a C parser - andsavesmore informations needed for C# bindings
    • -
    - -

    2.4.28: Nov 22 2002

    -
      -
    • a couple of python binding fixes
    • -
    • 2 bug fixes in the XML push parser
    • -
    • potential memory leak removed (Martin Stoilov)
    • -
    • fix to the configure script for Unix (Dimitri Papadopoulos)
    • -
    • added encoding support for XInclude parse="text"
    • -
    • autodetection of XHTML1 and specific serialization rules added
    • -
    • nasty threading bug fixed (William Brack)
    • -
    - -

    2.4.27: Nov 17 2002

    -
      -
    • fixes for the Python bindings
    • -
    • a number of bug fixes: SGML catalogs,xmlParseBalancedChunkMemory(),HTML - parser, Schemas (Charles Bozeman),document fragment support(Christian - Glahn), xmlReconciliateNs (BrianStafford), XPointer,xmlFreeNode(), - xmlSAXParseMemory (Peter Jones),xmlGetNodePath (PetrPajas), entities - processing
    • -
    • added grep to xmllint --shell
    • -
    • VMS update patch from Craig A. Berry
    • -
    • cleanup of the Windows build with support for more - compilers(Igor),better thread support on Windows
    • -
    • cleanup of Unix Makefiles and spec file
    • -
    • Improvements to the documentation (John Fleck)
    • -
    - -

    2.4.26: Oct 18 2002

    -
      -
    • Patches for Windows CE port, improvements on Windows paths handling
    • -
    • Fixes to the validation code (DTD and Schemas), xmlNodeGetPath() - ,HTMLserialization, Namespace compliance, and a number of - smallproblems
    • -
    - -

    2.4.25: Sep 26 2002

    -
      -
    • A number of bug fixes: XPath, validation, Python bindings, DOM - andtree,xmlI/O, Html
    • -
    • Serious rewrite of XInclude
    • -
    • Made XML Schemas regexp part of the default build and APIs, smallfixand - improvement of the regexp core
    • -
    • Changed the validation code to reuse XML Schemas regexp APIs
    • -
    • Better handling of Windows file paths, improvement of - Makefiles(Igor,Daniel Gehriger, Mark Vakoc)
    • -
    • Improved the python I/O bindings, the tests, added resolver - andregexpAPIs
    • -
    • New logos from Marc Liyanage
    • -
    • Tutorial improvements: John Fleck, Christopher Harris
    • -
    • Makefile: Fixes for AMD x86_64 (Mandrake), - DESTDIR(ChristopheMerlet)
    • -
    • removal of all stderr/perror use for error reporting
    • -
    • Better error reporting: XPath and DTD validation
    • -
    • update of the trio portability layer (Bjorn Reese)
    • -
    - -

    2.4.24: Aug 22 2002

    -
      -
    • XPath fixes (William), xf:escape-uri() (Wesley Terpstra)
    • -
    • Python binding fixes: makefiles (William), generator, rpm - build,x86-64(fcrozat)
    • -
    • HTML <style> and boolean attributes serializer fixes
    • -
    • C14N improvements by Aleksey
    • -
    • doc cleanups: Rick Jones
    • -
    • Windows compiler makefile updates: Igor and Elizabeth Barham
    • -
    • XInclude: implementation of fallback and xml:base fixup added
    • -
    - -

    2.4.23: July 6 2002

    -
      -
    • performances patches: Peter Jacobi
    • -
    • c14n fixes, testsuite and performances: Aleksey Sanin
    • -
    • added xmlDocFormatDump: Chema Celorio
    • -
    • new tutorial: John Fleck
    • -
    • new hash functions and performances: Sander Vesik, portability - fixfromPeter Jacobi
    • -
    • a number of bug fixes: XPath (William Brack, Richard Jinks), XMLandHTML - parsers, ID lookup function
    • -
    • removal of all remaining sprintf: Aleksey Sanin
    • -
    - -

    2.4.22: May 27 2002

    -
      -
    • a number of bug fixes: configure scripts, base handling, - parser,memoryusage, HTML parser, XPath, documentation - (ChristianCornelssen),indentation, URI parsing
    • -
    • Optimizations for XMLSec, fixing and making public some of - thenetworkprotocol handlers (Aleksey)
    • -
    • performance patch from Gary Pennington
    • -
    • Charles Bozeman provided date and time support for - XMLSchemasdatatypes
    • -
    - -

    2.4.21: Apr 29 2002

    - -

    This release is both a bug fix release and also contains the -earlyXMLSchemas structuresand -datatypescode, -beware,allinterfaces are likely to change, there is huge holes, it is clearly -a workinprogress and don't even think of putting this code in a -productionsystem,it's actually not compiled in by default. The real fixes -are:

    -
      -
    • a couple of bugs or limitations introduced in 2.4.20
    • -
    • patches for Borland C++ and MSC by Igor
    • -
    • some fixes on XPath strings and conformance patches by RichardJinks
    • -
    • patch from Aleksey for the ExcC14N specification
    • -
    • OSF/1 bug fix by Bjorn
    • -
    - -

    2.4.20: Apr 15 2002

    -
      -
    • bug fixes: file descriptor leak, XPath, HTML output, DTD validation
    • -
    • XPath conformance testing by Richard Jinks
    • -
    • Portability fixes: Solaris, MPE/iX, Windows, OSF/1, - pythonbindings,libxml.m4
    • -
    - -

    2.4.19: Mar 25 2002

    -
      -
    • bug fixes: half a dozen XPath bugs, Validation, ISO-Latin - toUTF8encoder
    • -
    • portability fixes in the HTTP code
    • -
    • memory allocation checks using valgrind, and profiling tests
    • -
    • revamp of the Windows build and Makefiles
    • -
    - -

    2.4.18: Mar 18 2002

    -
      -
    • bug fixes: tree, SAX, canonicalization, - validation,portability,XPath
    • -
    • removed the --with-buffer option it was becoming unmaintainable
    • -
    • serious cleanup of the Python makefiles
    • -
    • speedup patch to XPath very effective for DocBook stylesheets
    • -
    • Fixes for Windows build, cleanup of the documentation
    • -
    - -

    2.4.17: Mar 8 2002

    -
      -
    • a lot of bug fixes, including "namespace nodes have no - parentsinXPath"
    • -
    • fixed/improved the Python wrappers, added more examples - andmoreregression tests, XPath extension functions can now - returnnode-sets
    • -
    • added the XML Canonicalization support from Aleksey Sanin
    • -
    - -

    2.4.16: Feb 20 2002

    -
      -
    • a lot of bug fixes, most of them were triggered by the XMLTestsuitefrom - OASIS and W3C. Compliance has been significantlyimproved.
    • -
    • a couple of portability fixes too.
    • -
    - -

    2.4.15: Feb 11 2002

    -
      -
    • Fixed the Makefiles, especially the python module ones
    • -
    • A few bug fixes and cleanup
    • -
    • Includes cleanup
    • -
    - -

    2.4.14: Feb 8 2002

    -
      -
    • Change of License to the MITLicensebasicallyfor - integration in XFree86 codebase, and removingconfusion around theprevious - dual-licensing
    • -
    • added Python bindings, beta software but should already - bequitecomplete
    • -
    • a large number of fixes and cleanups, especially for - alltreemanipulations
    • -
    • cleanup of the headers, generation of a reference API - definitioninXML
    • -
    - -

    2.4.13: Jan 14 2002

    -
      -
    • update of the documentation: John Fleck and Charlie Bozeman
    • -
    • cleanup of timing code from Justin Fletcher
    • -
    • fixes for Windows and initial thread support on Win32: Igor - andSergueiNarojnyi
    • -
    • Cygwin patch from Robert Collins
    • -
    • added xmlSetEntityReferenceFunc() for Keith Isdale work on xsldbg
    • -
    - -

    2.4.12: Dec 7 2001

    -
      -
    • a few bug fixes: thread (Gary Pennington), xmllint - (GeertKloosterman),XML parser (Robin Berjon), XPointer (Danny Jamshy), - I/Ocleanups(robert)
    • -
    • Eric Lavigne contributed project files for MacOS
    • -
    • some makefiles cleanups
    • -
    - -

    2.4.11: Nov 26 2001

    -
      -
    • fixed a couple of errors in the includes, fixed a few bugs, - somecodecleanups
    • -
    • xmllint man pages improvement by Heiko Rupp
    • -
    • updated VMS build instructions from John A Fotheringham
    • -
    • Windows Makefiles updates from Igor
    • -
    - -

    2.4.10: Nov 10 2001

    -
      -
    • URI escaping fix (Joel Young)
    • -
    • added xmlGetNodePath() (for paths or XPointers generation)
    • -
    • Fixes namespace handling problems when using DTD and validation
    • -
    • improvements on xmllint: Morus Walter patches for --format - and--encode,Stefan Kost and Heiko Rupp improvements on the --shell
    • -
    • fixes for xmlcatalog linking pointed by Weiqi Gao
    • -
    • fixes to the HTML parser
    • -
    - -

    2.4.9: Nov 6 2001

    -
      -
    • fixes more catalog bugs
    • -
    • avoid a compilation problem, improve xmlGetLineNo()
    • -
    - -

    2.4.8: Nov 4 2001

    -
      -
    • fixed SGML catalogs broken in previous release, - updatedxmlcatalogtool
    • -
    • fixed a compile errors and some includes troubles.
    • -
    - -

    2.4.7: Oct 30 2001

    -
      -
    • exported some debugging interfaces
    • -
    • serious rewrite of the catalog code
    • -
    • integrated Gary Pennington thread safety patch, added - configureoptionand regression tests
    • -
    • removed an HTML parser bug
    • -
    • fixed a couple of potentially serious validation bugs
    • -
    • integrated the SGML DocBook support in xmllint
    • -
    • changed the nanoftp anonymous login passwd
    • -
    • some I/O cleanup and a couple of interfaces for Perl wrapper
    • -
    • general bug fixes
    • -
    • updated xmllint man page by John Fleck
    • -
    • some VMS and Windows updates
    • -
    - -

    2.4.6: Oct 10 2001

    -
      -
    • added an updated man pages by John Fleck
    • -
    • portability and configure fixes
    • -
    • an infinite loop on the HTML parser was removed (William)
    • -
    • Windows makefile patches from Igor
    • -
    • fixed half a dozen bugs reported for libxml or libxslt
    • -
    • updated xmlcatalog to be able to modify SGML super catalogs
    • -
    - -

    2.4.5: Sep 14 2001

    -
      -
    • Remove a few annoying bugs in 2.4.4
    • -
    • forces the HTML serializer to output decimal charrefs since - someversionof Netscape can't handle hexadecimal ones
    • -
    - -

    1.8.16: Sep 14 2001

    -
      -
    • maintenance release of the old libxml1 branch, couple of - bugandportability fixes
    • -
    - -

    2.4.4: Sep 12 2001

    -
      -
    • added --convert to xmlcatalog, bug fixes and cleanups of XMLCatalog
    • -
    • a few bug fixes and some portability changes
    • -
    • some documentation cleanups
    • -
    - -

    2.4.3: Aug 23 2001

    -
      -
    • XML Catalog support see the doc
    • -
    • New NaN/Infinity floating point code
    • -
    • A few bug fixes
    • -
    - -

    2.4.2: Aug 15 2001

    -
      -
    • adds xmlLineNumbersDefault() to control line number generation
    • -
    • lot of bug fixes
    • -
    • the Microsoft MSC projects files should now be up to date
    • -
    • inheritance of namespaces from DTD defaulted attributes
    • -
    • fixes a serious potential security bug
    • -
    • added a --format option to xmllint
    • -
    - -

    2.4.1: July 24 2001

    -
      -
    • possibility to keep line numbers in the tree
    • -
    • some computation NaN fixes
    • -
    • extension of the XPath API
    • -
    • cleanup for alpha and ia64 targets
    • -
    • patch to allow saving through HTTP PUT or POST
    • -
    - -

    2.4.0: July 10 2001

    -
      -
    • Fixed a few bugs in XPath, validation, and tree handling.
    • -
    • Fixed XML Base implementation, added a couple of examples - totheregression tests
    • -
    • A bit of cleanup
    • -
    - -

    2.3.14: July 5 2001

    -
      -
    • fixed some entities problems and reduce memory - requirementwhensubstituting them
    • -
    • lots of improvements in the XPath queries interpreter - canbesubstantially faster
    • -
    • Makefiles and configure cleanups
    • -
    • Fixes to XPath variable eval, and compare on empty node set
    • -
    • HTML tag closing bug fixed
    • -
    • Fixed an URI reference computation problem when validating
    • -
    - -

    2.3.13: June 28 2001

    -
      -
    • 2.3.12 configure.in was broken as well as the push mode XML parser
    • -
    • a few more fixes for compilation on Windows MSC by Yon Derek
    • -
    - -

    1.8.14: June 28 2001

    -
      -
    • Zbigniew Chyla gave a patch to use the old XML parser in push mode
    • -
    • Small Makefile fix
    • -
    - -

    2.3.12: June 26 2001

    -
      -
    • lots of cleanup
    • -
    • a couple of validation fix
    • -
    • fixed line number counting
    • -
    • fixed serious problems in the XInclude processing
    • -
    • added support for UTF8 BOM at beginning of entities
    • -
    • fixed a strange gcc optimizer bugs in xpath handling of - float,gcc-3.0miscompile uri.c (William), Thomas Leitner provided a fix - fortheoptimizer on Tru64
    • -
    • incorporated Yon Derek and Igor Zlatkovic fixes and - improvementsforcompilation on Windows MSC
    • -
    • update of libxml-doc.el (Felix Natter)
    • -
    • fixed 2 bugs in URI normalization code
    • -
    - -

    2.3.11: June 17 2001

    -
      -
    • updates to trio, Makefiles and configure should fix - someportabilityproblems (alpha)
    • -
    • fixed some HTML serialization problems (pre, script, - andblock/inlinehandling), added encoding aware APIs, cleanup of - thiscode
    • -
    • added xmlHasNsProp()
    • -
    • implemented a specific PI for encoding support in the - DocBookSGMLparser
    • -
    • some XPath fixes (-Infinity, / as a function parameter - andnamespacesnode selection)
    • -
    • fixed a performance problem and an error in the validation code
    • -
    • fixed XInclude routine to implement the recursive behaviour
    • -
    • fixed xmlFreeNode problem when libxml is included statically twice
    • -
    • added --version to xmllint for bug reports
    • -
    - -

    2.3.10: June 1 2001

    -
      -
    • fixed the SGML catalog support
    • -
    • a number of reported bugs got fixed, in XPath, iconv - detection,XIncludeprocessing
    • -
    • XPath string function should now handle unicode correctly
    • -
    - -

    2.3.9: May 19 2001

    - -

    Lots of bugfixes, and added a basic SGML catalog support:

    -
      -
    • HTML push bugfix #54891 and another patch from Jonas Borgström
    • -
    • some serious speed optimization again
    • -
    • some documentation cleanups
    • -
    • trying to get better linking on Solaris (-R)
    • -
    • XPath API cleanup from Thomas Broyer
    • -
    • Validation bug fixed #54631, added a patch from Gary - Pennington,fixedxmlValidGetValidElements()
    • -
    • Added an INSTALL file
    • -
    • Attribute removal added to API: #54433
    • -
    • added a basic support for SGML catalogs
    • -
    • fixed xmlKeepBlanksDefault(0) API
    • -
    • bugfix in xmlNodeGetLang()
    • -
    • fixed a small configure portability problem
    • -
    • fixed an inversion of SYSTEM and PUBLIC identifier in HTML document
    • -
    - -

    1.8.13: May 14 2001

    -
      -
    • bugfixes release of the old libxml1 branch used by Gnome
    • -
    - -

    2.3.8: May 3 2001

    -
      -
    • Integrated an SGML DocBook parser for the Gnome project
    • -
    • Fixed a few things in the HTML parser
    • -
    • Fixed some XPath bugs raised by XSLT use, tried to fix thefloatingpoint - portability issue
    • -
    • Speed improvement (8M/s for SAX, 3M/s for DOM, 1.5M/s - forDOM+validationusing the XML REC as input and a 700MHz celeron).
    • -
    • incorporated more Windows cleanup
    • -
    • added xmlSaveFormatFile()
    • -
    • fixed problems in copying nodes with entities references (gdome)
    • -
    • removed some troubles surrounding the new validation module
    • -
    - -

    2.3.7: April 22 2001

    -
      -
    • lots of small bug fixes, corrected XPointer
    • -
    • Non deterministic content model validation support
    • -
    • added xmlDocCopyNode for gdome2
    • -
    • revamped the way the HTML parser handles end of tags
    • -
    • XPath: corrections of namespaces support and number formatting
    • -
    • Windows: Igor Zlatkovic patches for MSC compilation
    • -
    • HTML output fixes from P C Chow and William M. Brack
    • -
    • Improved validation speed sensible for DocBook
    • -
    • fixed a big bug with ID declared in external parsed entities
    • -
    • portability fixes, update of Trio from Bjorn Reese
    • -
    - -

    2.3.6: April 8 2001

    -
      -
    • Code cleanup using extreme gcc compiler warning options, - foundandcleared half a dozen potential problem
    • -
    • the Eazel team found an XML parser bug
    • -
    • cleaned up the user of some of the string formatting function. - usedthetrio library code to provide the one needed when the platform - ismissingthem
    • -
    • xpath: removed a memory leak and fixed the predicate - evaluationproblem,extended the testsuite and cleaned up the result. - XPointer seemsbroken...
    • -
    - -

    2.3.5: Mar 23 2001

    -
      -
    • Biggest change is separate parsing and evaluation of - XPathexpressions,there is some new APIs for this too
    • -
    • included a number of bug fixes(XML push parser, - 51876,notations,52299)
    • -
    • Fixed some portability issues
    • -
    - -

    2.3.4: Mar 10 2001

    -
      -
    • Fixed bugs #51860 and #51861
    • -
    • Added a global variable xmlDefaultBufferSize to allow defaultbuffersize - to be application tunable.
    • -
    • Some cleanup in the validation code, still a bug left and - thispartshould probably be rewritten to support ambiguous content - model:-\
    • -
    • Fix a couple of serious bugs introduced or raised by changes - in2.3.3parser
    • -
    • Fixed another bug in xmlNodeGetContent()
    • -
    • Bjorn fixed XPath node collection and Number formatting
    • -
    • Fixed a loop reported in the HTML parsing
    • -
    • blank space are reported even if the Dtd content model proves - thattheyare formatting spaces, this is for XML conformance
    • -
    - -

    2.3.3: Mar 1 2001

    -
      -
    • small change in XPath for XSLT
    • -
    • documentation cleanups
    • -
    • fix in validation by Gary Pennington
    • -
    • serious parsing performances improvements
    • -
    - -

    2.3.2: Feb 24 2001

    -
      -
    • chasing XPath bugs, found a bunch, completed some TODO
    • -
    • fixed a Dtd parsing bug
    • -
    • fixed a bug in xmlNodeGetContent
    • -
    • ID/IDREF support partly rewritten by Gary Pennington
    • -
    - -

    2.3.1: Feb 15 2001

    -
      -
    • some XPath and HTML bug fixes for XSLT
    • -
    • small extension of the hash table interfaces for - DOMgdome2implementation
    • -
    • A few bug fixes
    • -
    - -

    2.3.0: Feb 8 2001 (2.2.12 was on 25 Jan but I didn't kept track)

    -
      -
    • Lots of XPath bug fixes
    • -
    • Add a mode with Dtd lookup but without validation error - reportingforXSLT
    • -
    • Add support for text node without escaping (XSLT)
    • -
    • bug fixes for xmlCheckFilename
    • -
    • validation code bug fixes from Gary Pennington
    • -
    • Patch from Paul D. Smith correcting URI path normalization
    • -
    • Patch to allow simultaneous install of libxml-develandlibxml2-devel
    • -
    • the example Makefile is now fixed
    • -
    • added HTML to the RPM packages
    • -
    • tree copying bugfixes
    • -
    • updates to Windows makefiles
    • -
    • optimization patch from Bjorn Reese
    • -
    - -

    2.2.11: Jan 4 2001

    -
      -
    • bunch of bug fixes (memory I/O, xpath, ftp/http, ...)
    • -
    • added htmlHandleOmittedElem()
    • -
    • Applied Bjorn Reese's IPV6 first patch
    • -
    • Applied Paul D. Smith patches for validation of XInclude results
    • -
    • added XPointer xmlns() new scheme support
    • -
    - -

    2.2.10: Nov 25 2000

    -
      -
    • Fix the Windows problems of 2.2.8
    • -
    • integrate OpenVMS patches
    • -
    • better handling of some nasty HTML input
    • -
    • Improved the XPointer implementation
    • -
    • integrate a number of provided patches
    • -
    - -

    2.2.9: Nov 25 2000

    -
      -
    • erroneous release :-(
    • -
    - -

    2.2.8: Nov 13 2000

    -
      -
    • First version of XIncludesupport
    • -
    • Patch in conditional section handling
    • -
    • updated MS compiler project
    • -
    • fixed some XPath problems
    • -
    • added an URI escaping function
    • -
    • some other bug fixes
    • -
    - -

    2.2.7: Oct 31 2000

    -
      -
    • added message redirection
    • -
    • XPath improvements (thanks TOM !)
    • -
    • xmlIOParseDTD() added
    • -
    • various small fixes in the HTML, URI, HTTP and XPointer support
    • -
    • some cleanup of the Makefile, autoconf and the distribution content
    • -
    - -

    2.2.6: Oct 25 2000:

    -
      -
    • Added an hash table module, migrated a number of internal - structuretothose
    • -
    • Fixed a posteriori validation problems
    • -
    • HTTP module cleanups
    • -
    • HTML parser improvements (tag errors, script/style - handling,attributenormalization)
    • -
    • coalescing of adjacent text nodes
    • -
    • couple of XPath bug fixes, exported the internal API
    • -
    - -

    2.2.5: Oct 15 2000:

    -
      -
    • XPointer implementation and testsuite
    • -
    • Lot of XPath fixes, added variable and functions - registration,moretests
    • -
    • Portability fixes, lots of enhancements toward an easy Windows - buildandrelease
    • -
    • Late validation fixes
    • -
    • Integrated a lot of contributed patches
    • -
    • added memory management docs
    • -
    • a performance problem when using large buffer seems fixed
    • -
    - -

    2.2.4: Oct 1 2000:

    -
      -
    • main XPath problem fixed
    • -
    • Integrated portability patches for Windows
    • -
    • Serious bug fixes on the URI and HTML code
    • -
    - -

    2.2.3: Sep 17 2000

    -
      -
    • bug fixes
    • -
    • cleanup of entity handling code
    • -
    • overall review of all loops in the parsers, all sprintf usage - hasbeenchecked too
    • -
    • Far better handling of larges Dtd. Validating against DocBook - XMLDtdworks smoothly now.
    • -
    - -

    1.8.10: Sep 6 2000

    -
      -
    • bug fix release for some Gnome projects
    • -
    - -

    2.2.2: August 12 2000

    -
      -
    • mostly bug fixes
    • -
    • started adding routines to access xml parser context options
    • -
    - -

    2.2.1: July 21 2000

    -
      -
    • a purely bug fixes release
    • -
    • fixed an encoding support problem when parsing from a memory block
    • -
    • fixed a DOCTYPE parsing problem
    • -
    • removed a bug in the function allowing to override the - memoryallocationroutines
    • -
    - -

    2.2.0: July 14 2000

    -
      -
    • applied a lot of portability fixes
    • -
    • better encoding support/cleanup and saving (content is nowalwaysencoded - in UTF-8)
    • -
    • the HTML parser now correctly handles encodings
    • -
    • added xmlHasProp()
    • -
    • fixed a serious problem with &#38;
    • -
    • propagated the fix to FTP client
    • -
    • cleanup, bugfixes, etc ...
    • -
    • Added a page about libxmlInternationalizationsupport
    • -
    - -

    1.8.9: July 9 2000

    -
      -
    • fixed the spec the RPMs should be better
    • -
    • fixed a serious bug in the FTP implementation, released 1.8.9 - tosolverpmfind users problem
    • -
    - -

    2.1.1: July 1 2000

    -
      -
    • fixes a couple of bugs in the 2.1.0 packaging
    • -
    • improvements on the HTML parser
    • -
    - -

    2.1.0 and 1.8.8: June 29 2000

    -
      -
    • 1.8.8 is mostly a commodity package for upgrading to libxml2accordingto - new instructions. It fixes a nastyproblemabout - &#38; charref parsing
    • -
    • 2.1.0 also ease the upgrade from libxml v1 to the recent version.italso - contains numerous fixes and enhancements: -
        -
      • added xmlStopParser() to stop parsing
      • -
      • improved a lot parsing speed when there is large CDATA blocs
      • -
      • includes XPath patches provided by Picdar Technology
      • -
      • tried to fix as much as possible DTD validation andnamespacerelated - problems
      • -
      • output to a given encoding has been added/tested
      • -
      • lot of various fixes
      • -
      -
    • -
    - -

    2.0.0: Apr 12 2000

    -
      -
    • First public release of libxml2. If you are using libxml, it's - agoodidea to check the 1.x to 2.x upgrade instructions. NOTE: - whileinitiallyscheduled for Apr 3 the release occurred only on Apr 12 due - tomassiveworkload.
    • -
    • The include are now located under $prefix/include/libxml - (insteadof$prefix/include/gnome-xml), they also are referenced by -
      #include <libxml/xxx.h>
      -

      instead of

      -
      #include "xxx.h"
      -
    • -
    • a new URI module for parsing URIs and following strictly RFC 2396
    • -
    • the memory allocation routines used by libxml can now - beoverloadeddynamically by using xmlMemSetup()
    • -
    • The previously CVS only tool tester has - beenrenamedxmllintand is now installed as part of - thelibxml2package
    • -
    • The I/O interface has been revamped. There is now ways to - pluginspecific I/O modules, either at the URI scheme detection - levelusingxmlRegisterInputCallbacks() or by passing I/O functions - whencreating aparser context using xmlCreateIOParserCtxt()
    • -
    • there is a C preprocessor macro LIBXML_VERSION providing - theversionnumber of the libxml module in use
    • -
    • a number of optional features of libxml can now be excluded - atconfiguretime (FTP/HTTP/HTML/XPath/Debug)
    • -
    - -

    2.0.0beta: Mar 14 2000

    -
      -
    • This is a first Beta release of libxml version 2
    • -
    • It's available only fromxmlsoft.orgFTP, it's packaged - aslibxml2-2.0.0beta and available as tar andRPMs
    • -
    • This version is now the head in the Gnome CVS base, the old - oneisavailable under the tag LIB_XML_1_X
    • -
    • This includes a very large set of changes. From a programmatic - pointofview applications should not have to be modified too much, check - theupgrade page
    • -
    • Some interfaces may changes (especially a bit about encoding).
    • -
    • the updates includes: -
        -
      • fix I18N support. ISO-Latin-x/UTF-8/UTF-16 (nearly) - seemscorrectlyhandled now
      • -
      • Better handling of entities, especially well-formedness - checkingandproper PEref extensions in external subsets
      • -
      • DTD conditional sections
      • -
      • Validation now correctly handle entities content
      • -
      • changestructuresto - accommodate DOM
      • -
      -
    • -
    • Serious progress were made toward compliance, here are the result of the - testagainsttheOASIS testsuite (except the Japanese tests since I - don't supportthatencoding yet). This URL is rebuilt every couple of hours - using theCVShead version.
    • -
    - -

    1.8.7: Mar 6 2000

    -
      -
    • This is a bug fix release:
    • -
    • It is possible to disable the ignorable blanks heuristic - usedbylibxml-1.x, a new function xmlKeepBlanksDefault(0) will allow - this.Notethat for adherence to XML spec, this behaviour will be - disabledbydefault in 2.x . The same function will allow to keep - compatibilityforold code.
    • -
    • Blanks in <a> </a> constructs are not - ignoredanymore,avoiding heuristic is really the Right Way :-\
    • -
    • The unchecked use of snprintf which was breakinglibxml-1.8.6compilation - on some platforms has been fixed
    • -
    • nanoftp.c nanohttp.c: Fixed '#' and '?' stripping - whenprocessingURIs
    • -
    - -

    1.8.6: Jan 31 2000

    -
      -
    • added a nanoFTP transport module, debugged until the new version of rpmfindcanuseit - without troubles
    • -
    - -

    1.8.5: Jan 21 2000

    -
      -
    • adding APIs to parse a well balanced chunk of XML (production [43] contentof - theXMLspec)
    • -
    • fixed a hideous bug in xmlGetProp pointed by Rune.Djurhuus@fast.no
    • -
    • Jody Goldberg <jgoldberg@home.com> provided another patchtryingto - solve the zlib checks problems
    • -
    • The current state in gnome CVS base is expected to ship as - 1.8.5withgnumeric soon
    • -
    - -

    1.8.4: Jan 13 2000

    -
      -
    • bug fixes, reintroduced xmlNewGlobalNs(), fixed xmlNewNs()
    • -
    • all exit() call should have been removed from libxml
    • -
    • fixed a problem with INCLUDE_WINSOCK on WIN32 platform
    • -
    • added newDocFragment()
    • -
    - -

    1.8.3: Jan 5 2000

    -
      -
    • a Push interface for the XML and HTML parsers
    • -
    • a shell-like interface to the document tree (try tester --shell :-)
    • -
    • lots of bug fixes and improvement added over XMas holidays
    • -
    • fixed the DTD parsing code to work with the xhtml DTD
    • -
    • added xmlRemoveProp(), xmlRemoveID() and xmlRemoveRef()
    • -
    • Fixed bugs in xmlNewNs()
    • -
    • External entity loading code has been revamped, now - itusesxmlLoadExternalEntity(), some fix on entities processing - wereadded
    • -
    • cleaned up WIN32 includes of socket stuff
    • -
    - -

    1.8.2: Dec 21 1999

    -
      -
    • I got another problem with includes and C++, I hope this issue - isfixedfor good this time
    • -
    • Added a few tree modification - functions:xmlReplaceNode,xmlAddPrevSibling, xmlAddNextSibling, - xmlNodeSetNameandxmlDocSetRootElement
    • -
    • Tried to improve the HTML output with help from Chris Lahey
    • -
    - -

    1.8.1: Dec 18 1999

    -
      -
    • various patches to avoid troubles when using libxml with - C++compilersthe "namespace" keyword and C escaping in include files
    • -
    • a problem in one of the core macros IS_CHAR was corrected
    • -
    • fixed a bug introduced in 1.8.0 breaking default - namespaceprocessing,and more specifically the Dia application
    • -
    • fixed a posteriori validation (validation after parsing, or by - usingaDtd not specified in the original document)
    • -
    • fixed a bug in
    • -
    - -

    1.8.0: Dec 12 1999

    -
      -
    • cleanup, especially memory wise
    • -
    • the parser should be more reliable, especially the HTML one, - itshouldnot crash, whatever the input !
    • -
    • Integrated various patches, especially a speedup improvement - forlargedataset from CarlNygard,configure with - --with-buffers to enable them.
    • -
    • attribute normalization, oops should have been added long ago !
    • -
    • attributes defaulted from DTDs should be available, xmlSetProp()nowdoes - entities escaping by default.
    • -
    - -

    1.7.4: Oct 25 1999

    -
      -
    • Lots of HTML improvement
    • -
    • Fixed some errors when saving both XML and HTML
    • -
    • More examples, the regression tests should now look clean
    • -
    • Fixed a bug with contiguous charref
    • -
    - -

    1.7.3: Sep 29 1999

    -
      -
    • portability problems fixed
    • -
    • snprintf was used unconditionally, leading to link problems - onsystemwere it's not available, fixed
    • -
    - -

    1.7.1: Sep 24 1999

    -
      -
    • The basic type for strings manipulated by libxml has been - renamedin1.7.1 from CHARto xmlChar. - Thereasonis that CHAR was conflicting with a predefined type on - Windows.Howeveron non WIN32 environment, compatibility is provided by the - way ofa#define .
    • -
    • Changed another error : the use of a structure field called - errno,andleading to troubles on platforms where it's a macro
    • -
    - -

    1.7.0: Sep 23 1999

    -
      -
    • Added the ability to fetch remote DTD or parsed entities, see the nanohttpmodule.
    • -
    • Added an errno to report errors by another mean than a simpleprintflike - callback
    • -
    • Finished ID/IDREF support and checking when validation
    • -
    • Serious memory leaks fixed (there is now a memory wrappermodule)
    • -
    • Improvement of XPathimplementation
    • -
    • Added an HTML parser front-end
    • -
    - -

    XML

    - -

    XML is astandardformarkup-based -structured documents. Here is an example -XMLdocument:

    -
    <?xml version="1.0"?>
    -<EXAMPLE prop1="gnome is great" prop2="&amp; linux too">
    -  <head>
    -   <title>Welcome to Gnome</title>
    -  </head>
    -  <chapter>
    -   <title>The Linux adventure</title>
    -   <p>bla bla bla ...</p>
    -   <image href="linus.gif"/>
    -   <p>...</p>
    -  </chapter>
    -</EXAMPLE>
    - -

    The first line specifies that it is an XML document and -givesusefulinformation about its encoding. Then the rest of the document is -atextformat whose structure is specified by tags between -brackets.Eachtag opened has to be closed. XML is pedantic -about this.However, ifa tag is empty (no content), a single tag can serve as -both theopening andclosing tag if it ends with />rather -thanwith>. Note that, for example, the image tag has no -content(justan attribute) and is closed by ending the tag -with/>.

    - -

    XML can be applied successfully to a wide range of tasks, ranging -fromlongterm structured document maintenance (where it follows the steps -ofSGML) tosimple data encoding mechanisms like configuration file -formatting(glade),spreadsheets (gnumeric), or even shorter lived documents -such asWebDAV whereit is used to encode remote calls between a client and -aserver.

    - -

    XSLT

    - -

    Check the separate libxslt page

    - -

    XSL Transformations, is -alanguagefor transforming XML documents into other XML documents -(orHTML/textualoutput).

    - -

    A separate library called libxslt is available implementing -XSLT-1.0forlibxml2. This module "libxslt" too can be found in the Gnome CVS -base.

    - -

    You can check the progresses on the libxslt Changelog.

    - -

    Python and bindings

    - -

    There are a number of language bindings and wrappers available -forlibxml2,the list below is not exhaustive. Please contact the xml-bindings@gnome.org(archives) inorder -toget updates to this list or to discuss the specific topic of -libxml2orlibxslt wrappers or bindings:

    -
      -
    • Libxml++seemsthemost - up-to-date C++ bindings for libxml2, check the documentationandthe - examples.
    • -
    • There is another C++wrapperbased on the gdome2 - bindingsmaintained by Tobias Peters.
    • -
    • and a third C++ wrapper by Peter Jones <pjones@pmade.org> -

      Website: http://pmade.org/pjones/software/xmlwrapp/

      -
    • -
    • MattSergeantdevelopedXML::LibXSLT, a Perl - wrapperforlibxml2/libxslt as part of the AxKitXMLapplication server.
    • -
    • If you're interested into scripting XML processing, have a look at XSHan XML editing shell - basedonLibxml2 Perl bindings.
    • -
    • Dave - Kuhlmanprovidesanearlier version of the libxml/libxslt wrappers for Python.
    • -
    • Gopal.V and Peter Minten develop libxml#, a - setofC# libxml2 bindings.
    • -
    • Petr Kozelka provides Pascal units - togluelibxml2with Kylix, Delphi and other Pascal compilers.
    • -
    • Uwe Fechner also provides idom2, - aDOM2implementation for Kylix2/D5/D6 from Borland.
    • -
    • There is bindings forRubyand - libxml2 bindings are also available in Ruby through the libgdome-rubymodulemaintainedby - Tobias Peters.
    • -
    • Steve Ball and contributors maintains libxml2 and libxslt - bindingsforTcl.
    • -
    • libxml2 and libxslt is the default XML library for PHP5.
    • -
    • LibxmlJisaneffort - to create a 100% JAXP-compatible Java wrapper for libxml2andlibxslt as - part of GNU ClasspathX project.
    • -
    • Patrick McPhee provides Rexx bindings fof libxml2 and libxslt, - lookforRexxXML.
    • -
    • SatimageprovidesXMLLibosax.This - is an osax for Mac OS X with a set of commands toimplement inAppleScript - the XML DOM, XPATH and XSLT. Also includescommands forProperty-lists - (Apple's fast lookup table XML format.)
    • -
    • Francesco Montorsi developped wxXml2wrappersthat - interface libxml2, allowing wxWidgets applications toload/save/editXML - instances.
    • -
    - -

    The distribution includes a set of Python bindings, which are -guaranteedtobe maintained as part of the library in the future, though -thePythoninterface have not yet reached the completeness of the C API.

    - -

    Note that some of the Python purist dislike the default set -ofPythonbindings, rather than complaining I suggest they have a look at lxml the more pythonic bindings -forlibxml2and libxsltand helpMartijnFaassencomplete -those.

    - -

    StéphaneBidoulmaintains aWindows portof the Python -bindings.

    - -

    Note to people interested in building bindings, the API is formalized asan XML API description filewhich allows -toautomatea large part of the Python bindings, this includes -functiondescriptions,enums, structures, typedefs, etc... The Python script -used tobuild thebindings is python/generator.py in the source -distribution.

    - -

    To install the Python bindings there are 2 options:

    -
      -
    • If you use an RPM based distribution, simply install the libxml2-pythonRPM(andif - needed the libxslt-pythonRPM).
    • -
    • Otherwise use the libxml2-pythonmoduledistributioncorresponding - to your installed version oflibxml2 andlibxslt. Note that to install it - you will need both libxml2and libxsltinstalled and run "python setup.py - build install" in themodule tree.
    • -
    - -

    The distribution includes a set of examples and regression tests -forthepython bindings in the python/testsdirectory. Here -aresomeexcerpts from those tests:

    - -

    tst.py:

    - -

    This is a basic test of the file interface and DOM navigation:

    -
    import libxml2, sys
    -
    -doc = libxml2.parseFile("tst.xml")
    -if doc.name != "tst.xml":
    -    print "doc.name failed"
    -    sys.exit(1)
    -root = doc.children
    -if root.name != "doc":
    -    print "root.name failed"
    -    sys.exit(1)
    -child = root.children
    -if child.name != "foo":
    -    print "child.name failed"
    -    sys.exit(1)
    -doc.freeDoc()
    - -

    The Python module is called libxml2; parseFile is the -equivalentofxmlParseFile (most of the bindings are automatically generated, -and thexmlprefix is removed and the casing convention are kept). All node -seen atthebinding level share the same subset of accessors:

    -
      -
    • name: returns the node name
    • -
    • type: returns a string indicating the node type
    • -
    • content: returns the content of the node, it is - basedonxmlNodeGetContent() and hence is recursive.
    • -
    • parent, - children,last,next, - prev,doc,properties: pointing to - the associatedelement in the tree,those may return None in case no such - linkexists.
    • -
    - -

    Also note the need to explicitly deallocate documents with -freeDoc().Reference counting for libxml2 trees would need quite a lot of -worktofunction properly, and rather than risk memory leaks if -notimplementedcorrectly it sounds safer to have an explicit function to free -atree. Thewrapper python objects like doc, root or child are -themautomatically garbagecollected.

    - -

    validate.py:

    - -

    This test check the validation interfaces and redirection -oferrormessages:

    -
    import libxml2
    -
    -#deactivate error messages from the validation
    -def noerr(ctx, str):
    -    pass
    -
    -libxml2.registerErrorHandler(noerr, None)
    -
    -ctxt = libxml2.createFileParserCtxt("invalid.xml")
    -ctxt.validate(1)
    -ctxt.parseDocument()
    -doc = ctxt.doc()
    -valid = ctxt.isValid()
    -doc.freeDoc()
    -if valid != 0:
    -    print "validity check failed"
    - -

    The first thing to notice is the call to registerErrorHandler(), -itdefinesa new error handler global to the library. It is used to avoid -seeingtheerror messages when trying to validate the invalid document.

    - -

    The main interest of that test is the creation of a parser -contextwithcreateFileParserCtxt() and how the behaviour can be changed -beforecallingparseDocument() . Similarly the informations resulting from -theparsing phaseare also available using context methods.

    - -

    Contexts like nodes are defined as class and the libxml2 wrappers mapstheC -function interfaces in terms of objects method as much as possible.Thebest to -get a complete view of what methods are supported is to look atthelibxml2.py -module containing all the wrappers.

    - -

    push.py:

    - -

    This test show how to activate the push parser interface:

    -
    import libxml2
    -
    -ctxt = libxml2.createPushParser(None, "<foo", 4, "test.xml")
    -ctxt.parseChunk("/>", 2, 1)
    -doc = ctxt.doc()
    -
    -doc.freeDoc()
    - -

    The context is created with a special call based -onthexmlCreatePushParser() from the C library. The first argument is -anoptionalSAX callback object, then the initial set of data, the length and -thename ofthe resource in case URI-References need to be computed by -theparser.

    - -

    Then the data are pushed using the parseChunk() method, the -lastcallsetting the third argument terminate to 1.

    - -

    pushSAX.py:

    - -

    this test show the use of the event based parsing interfaces. In -thiscasethe parser does not build a document, but provides callback -informationasthe parser makes progresses analyzing the data being -provided:

    -
    import libxml2
    -log = ""
    -
    -class callback:
    -    def startDocument(self):
    -        global log
    -        log = log + "startDocument:"
    -
    -    def endDocument(self):
    -        global log
    -        log = log + "endDocument:"
    -
    -    def startElement(self, tag, attrs):
    -        global log
    -        log = log + "startElement %s %s:" % (tag, attrs)
    -
    -    def endElement(self, tag):
    -        global log
    -        log = log + "endElement %s:" % (tag)
    -
    -    def characters(self, data):
    -        global log
    -        log = log + "characters: %s:" % (data)
    -
    -    def warning(self, msg):
    -        global log
    -        log = log + "warning: %s:" % (msg)
    -
    -    def error(self, msg):
    -        global log
    -        log = log + "error: %s:" % (msg)
    -
    -    def fatalError(self, msg):
    -        global log
    -        log = log + "fatalError: %s:" % (msg)
    -
    -handler = callback()
    -
    -ctxt = libxml2.createPushParser(handler, "<foo", 4, "test.xml")
    -chunk = " url='tst'>b"
    -ctxt.parseChunk(chunk, len(chunk), 0)
    -chunk = "ar</foo>"
    -ctxt.parseChunk(chunk, len(chunk), 1)
    -
    -reference = "startDocument:startElement foo {'url': 'tst'}:" + \ 
    -            "characters: bar:endElement foo:endDocument:"
    -if log != reference:
    -    print "Error got: %s" % log
    -    print "Expected: %s" % reference
    - -

    The key object in that test is the handler, it provides a number -ofentrypoints which can be called by the parser as it makes progresses -toindicatethe information set obtained. The full set of callback is larger -thanwhatthe callback class in that specific example implements (see -theSAXdefinition for a complete list). The wrapper will only call those -suppliedbythe object when activated. The startElement receives the names of -theelementand a dictionary containing the attributes carried by this -element.

    - -

    Also note that the reference string generated from the callback -showsasingle character call even though the string "bar" is passed to -theparserfrom 2 different call to parseChunk()

    - -

    xpath.py:

    - -

    This is a basic test of XPath wrappers support

    -
    import libxml2
    -
    -doc = libxml2.parseFile("tst.xml")
    -ctxt = doc.xpathNewContext()
    -res = ctxt.xpathEval("//*")
    -if len(res) != 2:
    -    print "xpath query: wrong node set size"
    -    sys.exit(1)
    -if res[0].name != "doc" or res[1].name != "foo":
    -    print "xpath query: wrong node set value"
    -    sys.exit(1)
    -doc.freeDoc()
    -ctxt.xpathFreeContext()
    - -

    This test parses a file, then create an XPath context to -evaluateXPathexpression on it. The xpathEval() method execute an XPath query -andreturnsthe result mapped in a Python way. String and numbers are -nativelyconverted,and node sets are returned as a tuple of libxml2 Python -nodeswrappers. Likethe document, the XPath context need to be freed -explicitly,also not thatthe result of the XPath query may point back to the -documenttree and hencethe document must be freed after the result of the -query isused.

    - -

    xpathext.py:

    - -

    This test shows how to extend the XPath engine with functions -writteninpython:

    -
    import libxml2
    -
    -def foo(ctx, x):
    -    return x + 1
    -
    -doc = libxml2.parseFile("tst.xml")
    -ctxt = doc.xpathNewContext()
    -libxml2.registerXPathFunction(ctxt._o, "foo", None, foo)
    -res = ctxt.xpathEval("foo(1)")
    -if res != 2:
    -    print "xpath extension failure"
    -doc.freeDoc()
    -ctxt.xpathFreeContext()
    - -

    Note how the extension function is registered with the context -(butthatpart is not yet finalized, this may change slightly in the -future).

    - -

    tstxpath.py:

    - -

    This test is similar to the previous one but shows how -theextensionfunction can access the XPath evaluation context:

    -
    def foo(ctx, x):
    -    global called
    -
    -    #
    -    # test that access to the XPath evaluation contexts
    -    #
    -    pctxt = libxml2.xpathParserContext(_obj=ctx)
    -    ctxt = pctxt.context()
    -    called = ctxt.function()
    -    return x + 1
    - -

    All the interfaces around the XPath parser(or rather evaluation)contextare -not finalized, but it should be sufficient to do contextual workat -theevaluation point.

    - -

    Memory debugging:

    - -

    last but not least, all tests starts with the following prologue:

    -
    #memory debug specific
    -libxml2.debugMemory(1)
    - -

    and ends with the following epilogue:

    -
    #memory debug specific
    -libxml2.cleanupParser()
    -if libxml2.debugMemory(1) == 0:
    -    print "OK"
    -else:
    -    print "Memory leak %d bytes" % (libxml2.debugMemory(1))
    -    libxml2.dumpMemory()
    - -

    Those activate the memory debugging interface of libxml2 whereallallocated -block in the library are tracked. The prologue then cleans upthelibrary state -and checks that all allocated memory has been freed. If notitcalls -dumpMemory() which saves that list in a .memdumpfile.

    - -

    libxml2 architecture

    - -

    Libxml2 is made of multiple components; some of them are optional, -andmostof the block interfaces are public. The main components are:

    -
      -
    • an Input/Output layer
    • -
    • FTP and HTTP client layers (optional)
    • -
    • an Internationalization layer managing the encodings support
    • -
    • a URI module
    • -
    • the XML parser and its basic SAX interface
    • -
    • an HTML parser using the same SAX interface (optional)
    • -
    • a SAX tree module to build an in-memory DOM representation
    • -
    • a tree module to manipulate the DOM representation
    • -
    • a validation module using the DOM representation (optional)
    • -
    • an XPath module for global lookup in a DOM representation(optional)
    • -
    • a debug module (optional)
    • -
    - -

    Graphically this gives the following:

    - -

    a graphical view of the various

    - -

    - -

    The tree output

    - -

    The parser returns a tree built during the document analysis. -Thevaluereturned is an xmlDocPtr(i.e., a pointer -toanxmlDocstructure). This structure contains -informationsuchas the file name, the document type, and -achildrenpointerwhich is the root of the document (or -moreexactly the first child under theroot which is the document). The tree -ismade of xmlNodes,chained in double-linked lists of -siblingsand with a children<->parentrelationship. An xmlNode can also -carryproperties (a chain of xmlAttrstructures). An attribute may have a -valuewhich is a list of TEXT orENTITY_REF nodes.

    - -

    Here is an example (erroneous with respect to the XML spec -sincethereshould be only one ELEMENT under the root):

    - -

     structure.gif

    - -

    In the source package there is a small program (not installed -bydefault)called xmllintwhich parses XML files given -asargument andprints them back as parsed. This is useful for detecting -errorsboth in XMLcode and in the XML parser itself. It has an -option--debugwhich prints the actual in-memory structure of -thedocument; here is theresult with the examplegivenbefore:

    -
    DOCUMENT
    -version=1.0
    -standalone=true
    -  ELEMENT EXAMPLE
    -    ATTRIBUTE prop1
    -      TEXT
    -      content=gnome is great
    -    ATTRIBUTE prop2
    -      ENTITY_REF
    -      TEXT
    -      content= linux too 
    -    ELEMENT head
    -      ELEMENT title
    -        TEXT
    -        content=Welcome to Gnome
    -    ELEMENT chapter
    -      ELEMENT title
    -        TEXT
    -        content=The Linux adventure
    -      ELEMENT p
    -        TEXT
    -        content=bla bla bla ...
    -      ELEMENT image
    -        ATTRIBUTE href
    -          TEXT
    -          content=linus.gif
    -      ELEMENT p
    -        TEXT
    -        content=...
    - -

    This should be useful for learning the internal representation model.

    - -

    The SAX interface

    - -

    Sometimes the DOM tree output is just too large to fit -reasonablyintomemory. In that case (and if you don't expect to save back the -XMLdocumentloaded using libxml), it's better to use the SAX interface of -libxml.SAX isa callback-based interfaceto the parser. -Beforeparsing,the application layer registers a customized set of callbacks -whicharecalled by the library as it progresses through the XML input.

    - -

    To get more detailed step-by-step guidance on using the SAX -interfaceoflibxml, see the nicedocumentation.writtenby -JamesHenstridge.

    - -

    You can debug the SAX behaviour by using -thetestSAXprogram located in the gnome-xml module (it's -usuallynot shipped in thebinary packages of libxml, but you can find it in -the tarsourcedistribution). Here is the sequence of callbacks that would be -reportedbytestSAX when parsing the example XML document shown earlier:

    -
    SAX.setDocumentLocator()
    -SAX.startDocument()
    -SAX.getEntity(amp)
    -SAX.startElement(EXAMPLE, prop1='gnome is great', prop2='&amp; linux too')
    -SAX.characters(   , 3)
    -SAX.startElement(head)
    -SAX.characters(    , 4)
    -SAX.startElement(title)
    -SAX.characters(Welcome to Gnome, 16)
    -SAX.endElement(title)
    -SAX.characters(   , 3)
    -SAX.endElement(head)
    -SAX.characters(   , 3)
    -SAX.startElement(chapter)
    -SAX.characters(    , 4)
    -SAX.startElement(title)
    -SAX.characters(The Linux adventure, 19)
    -SAX.endElement(title)
    -SAX.characters(    , 4)
    -SAX.startElement(p)
    -SAX.characters(bla bla bla ..., 15)
    -SAX.endElement(p)
    -SAX.characters(    , 4)
    -SAX.startElement(image, href='linus.gif')
    -SAX.endElement(image)
    -SAX.characters(    , 4)
    -SAX.startElement(p)
    -SAX.characters(..., 3)
    -SAX.endElement(p)
    -SAX.characters(   , 3)
    -SAX.endElement(chapter)
    -SAX.characters( , 1)
    -SAX.endElement(EXAMPLE)
    -SAX.endDocument()
    - -

    Most of the other interfaces of libxml2 are based on the -DOMtree-buildingfacility, so nearly everything up to the end of this -documentpresupposes theuse of the standard DOM tree build. Note that the DOM -treeitself is built bya set of registered default callbacks, without -internalspecificinterface.

    - -

    Validation & DTDs

    - -

    Table of Content:

    -
      -
    1. General overview
    2. -
    3. The definition
    4. -
    5. Simple rules -
        -
      1. How to reference a DTD from a document
      2. -
      3. Declaring elements
      4. -
      5. Declaring attributes
      6. -
      -
    6. -
    7. Some examples
    8. -
    9. How to validate
    10. -
    11. Other resources
    12. -
    - -

    General overview

    - -

    Well what is validation and what is a DTD ?

    - -

    DTD is the acronym for Document Type Definition. This is a -descriptionofthe content for a family of XML files. This is part of the -XML1.0specification, and allows one to describe and verify that a -givendocumentinstance conforms to the set of rules detailing its structure -andcontent.

    - -

    Validation is the process of checking a document against a -DTD(moregenerally against a set of construction rules).

    - -

    The validation process and building DTDs are the two most difficultpartsof -the XML life cycle. Briefly a DTD defines all the possible elementsto befound -within your document, what is the formal shape of your documenttree(by -defining the allowed content of an element; either text, aregularexpression -for the allowed list of children, or mixed content i.e.both textand -children). The DTD also defines the valid attributes for allelements andthe -types of those attributes.

    - -

    The definition

    - -

    The W3C XML Recommendation(Tim Bray's annotated -versionofRev1):

    - - -

    (unfortunately) all this is inherited from the SGML world, the -syntaxisancient...

    - -

    Simple rules

    - -

    Writing DTDs can be done in many ways. The rules to build them if -youneedsomething permanent or something which can evolve over time can -beradicallydifferent. Really complex DTDs like DocBook ones are flexible -butquiteharder to design. I will just focus on DTDs for a formats with a -fixedsimplestructure. It is just a set of basic rules, and definitely -notexhaustive norusable for complex DTD design.

    - -

    How to reference a DTD from a document:

    - -

    Assuming the top element of the document is specand the -dtdisplaced in the file mydtdin the -subdirectorydtdsofthe directory from where the document were -loaded:

    - -

    <!DOCTYPE spec SYSTEM "dtds/mydtd">

    - -

    Notes:

    -
      -
    • The system string is actually an URI-Reference (as defined in RFC 2396) so you can - useafull URL string indicating the location of your DTD on the Web. This - isareally good thing to do if you want others to validate - yourdocument.
    • -
    • It is also possible to associate a PUBLICidentifier(amagic - string) so that the DTD is looked up in catalogs on the clientsidewithout - having to locate it on the web.
    • -
    • A DTD contains a set of element and attribute declarations, - buttheydon't define what the root of the document should be. This - isexplicitlytold to the parser/validator as the first element - oftheDOCTYPEdeclaration.
    • -
    - -

    Declaring elements:

    - -

    The following declares an element spec:

    - -

    <!ELEMENT spec (front, body, back?)>

    - -

    It also expresses that the spec element contains onefront,one -bodyand one optionalbackchildren elements inthis -order. The declaration of oneelement of the structure and its contentare done -in a single declaration.Similarly the following -declaresdiv1elements:

    - -

    <!ELEMENT div1 (head, (p | list | note)*, div2?)>

    - -

    which means div1 contains one headthen a series -ofoptionalp, lists and notes and -thenanoptional div2. And last but not least an element -cancontaintext:

    - -

    <!ELEMENT b (#PCDATA)>

    - -

    bcontains text or being of mixed content (text and -elementsinno particular order):

    - -

    <!ELEMENT p (#PCDATA|a|ul|b|i|em)*>

    - -

    p can contain text or -a,ul,b, i or -emelements inno particularorder.

    - -

    Declaring attributes:

    - -

    Again the attributes declaration includes their content definition:

    - -

    <!ATTLIST termdef name CDATA #IMPLIED>

    - -

    means that the element termdefcan have -anameattribute containing text (CDATA) and which -isoptional(#IMPLIED). The attribute value can also be -definedwithin aset:

    - -

    <!ATTLIST list -type(bullets|ordered|glossary)"ordered">

    - -

    means listelement have a typeattribute -with3allowed values "bullets", "ordered" or "glossary" and which -defaultto"ordered" if the attribute is not explicitly specified.

    - -

    The content type of an attribute can be -text(CDATA),anchor/reference/references(ID/IDREF/IDREFS),entity(ies)(ENTITY/ENTITIES) -orname(s)(NMTOKEN/NMTOKENS). The following -definesthat achapterelement can have an -optionalidattributeof type ID, usable for reference -fromattribute of typeIDREF:

    - -

    <!ATTLIST chapter id ID #IMPLIED>

    - -

    The last value of an attribute definition can -be#REQUIREDmeaning that the attribute has to be -given,#IMPLIEDmeaning that it is optional, or the default -value(possibly prefixed by#FIXEDif it is the only allowed).

    - -

    Notes:

    -
      -
    • Usually the attributes pertaining to a given element are declared - inasingle expression, but it is just a convention adopted by a lot - ofDTDwriters: -
      <!ATTLIST termdef
      -          id      ID      #REQUIRED
      -          name    CDATA   #IMPLIED>
      -

      The previous construct defines - bothidandnameattributes for the - elementtermdef.

      -
    • -
    - -

    Some examples

    - -

    The directory test/valid/dtds/in the -libxml2distributioncontains some complex DTD examples. The example in -thefiletest/valid/dia.xmlshows an XML file where the simple -DTDisdirectly included within the document.

    - -

    How to validate

    - -

    The simplest way is to use the xmllint program included with -libxml.The--validoption turns-on validation of the files given -asinput.For example the following validates a copy of the first revision of -theXML1.0 specification:

    - -

    xmllint --valid --noout test/valid/REC-xml-19980210.xml

    - -

    the -- noout is used to disable output of the resulting tree.

    - -

    The --dtdvalid dtdallows validation of the -document(s)againsta given DTD.

    - -

    Libxml2 exports an API to handle DTDs and validation, check the associateddescription.

    - -

    Other resources

    - -

    DTDs are as old as SGML. So there may be a number of examples -on-line,Iwill just list one for now, others pointers welcome:

    - - -

    I suggest looking at the examples found under test/valid/dtd and any -ofthelarge number of books available on XML. The dia example in -test/validshouldbe both simple and complete enough to allow you to build your -own.

    - -

    - -

    Memory Management

    - -

    Table of Content:

    -
      -
    1. General overview
    2. -
    3. Setting libxml2 set of memory routines
    4. -
    5. Cleaning up after parsing
    6. -
    7. Debugging routines
    8. -
    9. General memory requirements
    10. -
    - -

    General overview

    - -

    The module xmlmemory.hprovidesthe -interfaces to the libxml2 memory system:

    -
      -
    • libxml2 does not use the libc memory allocator directly - butxmlFree(),xmlMalloc() and xmlRealloc()
    • -
    • those routines can be reallocated to a specific set of - routine,bydefault the libc ones i.e. free(), malloc() and realloc()
    • -
    • the xmlmemory.c module includes a set of debugging routine
    • -
    - -

    Setting libxml2 set of memory routines

    - -

    It is sometimes useful to not use the default memory allocator, -eitherfordebugging, analysis or to implement a specific behaviour on -memorymanagement(like on embedded systems). Two function calls are available -to doso:

    -
      -
    • xmlMemGet()whichreturn - the current set of functions in use by the parser
    • -
    • xmlMemSetup()whichallow - to set up a new set of memory allocation functions
    • -
    - -

    Of course a call to xmlMemSetup() should probably be done beforecallingany -other libxml2 routines (unless you are sure your allocationsroutines -arecompatibles).

    - -

    Cleaning up after parsing

    - -

    Libxml2 is not stateless, there is a few set of memory -structuresneedingallocation before the parser is fully functional (some -encodingstructuresfor example). This also mean that once parsing is finished -there isa tinyamount of memory (a few hundred bytes) which can be recollected -if youdon'treuse the parser immediately:

    -
      -
    • xmlCleanupParser()isa - centralized routine to free the parsing states. Note that - itwon'tdeallocate any produced tree if any (use the xmlFreeDoc() - andrelatedroutines for this).
    • -
    • xmlInitParser()isthe - dual routine allowing to preallocate the parsing statewhich can beuseful - for example to avoid initialization reentrancyproblems when usinglibxml2 - in multithreaded applications
    • -
    - -

    Generally xmlCleanupParser() is safe, if needed the state will berebuildat -the next invocation of parser routines, but be careful of theconsequencesin -multithreaded applications.

    - -

    Debugging routines

    - -

    When configured using --with-mem-debug flag (off by default), libxml2usesa -set of memory allocation debugging routines keeping track of -allallocatedblocks and the location in the code where the routine was called. -Acouple ofother debugging routines allow to dump the memory allocated infos -toa fileor call a specific routine when a given block number is allocated:

    - - -

    When developing libxml2 memory debug is enabled, the tests -programscallxmlMemoryDump () and the "make test" regression tests will check -foranymemory leak during the full regression test sequence, this helps -alotensuring that libxml2 does not leak memory and bullet -proofmemoryallocations use (some libc implementations are known to be far -toopermissiveresulting in major portability problems!).

    - -

    If the .memdump reports a leak, it displays the allocation functionandalso -tries to give some informations about the content and structure -oftheallocated blocks left. This is sufficient in most cases to find -theculprit,but not always. Assuming the allocation problem is reproducible, -itispossible to find more easily:

    -
      -
    1. write down the block number xxxx not allocated
    2. -
    3. export the environment variable XML_MEM_BREAKPOINT=xxxx , - theeasiestwhen using GDB is to simply give the command -

      set environment XML_MEM_BREAKPOINT xxxx

      -

      before running the program.

      -
    4. -
    5. run the program under a debugger and set a - breakpointonxmlMallocBreakpoint() a specific function called when this - preciseblockis allocated
    6. -
    7. when the breakpoint is reached you can then do a fine analysis - oftheallocation an step to see the condition resulting in - themissingdeallocation.
    8. -
    - -

    I used to use a commercial tool to debug libxml2 memory problems -butafternoticing that it was not detecting memory leaks that simple -mechanismwasused and proved extremely efficient until now. Lately I have also -used valgrindwith quite -somesuccess,it is tied to the i386 architecture since it works by emulating -theprocessorand instruction set, it is slow but extremely efficient, i.e. -itspot memoryusage errors in a very precise way.

    - -

    General memory requirements

    - -

    How much libxml2 memory require ? It's hard to tell in average itdependsof -a number of things:

    -
      -
    • the parser itself should work in a fixed amount of memory, - exceptforinformation maintained about the stacks of names and - entitieslocations.The I/O and encoding handlers will probably account for - a fewKBytes.This is true for both the XML and HTML parser (though the - HTMLparserneed more state).
    • -
    • If you are generating the DOM tree then memory requirements - willgrownearly linear with the size of the data. In general for - abalancedtextual document the internal memory requirement is about 4 - timesthesize of the UTF8 serialization of this document (example - theXML-1.0recommendation is a bit more of 150KBytes and takes 650KBytes - ofmainmemory when parsed). Validation will add a amount of memory - requiredformaintaining the external Dtd state which should be linear - withthecomplexity of the content model defined by the Dtd
    • -
    • If you need to work with fixed memory requirements or don't needthefull - DOM tree then using the xmlReaderinterfaceis - probably the best way toproceed, it still allows tovalidate or operate on - subset of the tree ifneeded.
    • -
    • If you don't care about the advanced features of libxml2likevalidation, - DOM, XPath or XPointer, don't use entities, need to workwithfixed memory - requirements, and try to get the fastest parsingpossiblethen the SAX - interface should be used, but it has knownrestrictions.
    • -
    - -

    - -

    Encodings support

    - -

    If you are not really familiar with Internationalization (usual -shortcutisI18N) , Unicode, characters and glyphs, I suggest you read a presentationbyTim -Bray on Unicode and why you should care about it.

    - -

    If you don't understand why it does not make sense to have -astringwithout knowing what encoding it uses, then as Joel Spolsky said -please do -notwriteanother line of code until you finish reading that article.. It -isaprerequisite to understand this page, and avoid a lot of -problemswithlibxml2, XML or text processing in general.

    - -

    Table of Content:

    -
      -
    1. What does internationalization - supportmean?
    2. -
    3. The internal encoding, - howandwhy
    4. -
    5. How is it implemented ?
    6. -
    7. Default supported encodings
    8. -
    9. How to extend theexistingsupport
    10. -
    - -

    What does internationalization support mean ?

    - -

    XML was designed from the start to allow the support of any charactersetby -using Unicode. Any conformant XML parser has to support the UTF-8andUTF-16 -default encodings which can both express the full unicode ranges.UTF8is a -variable length encoding whose greatest points are to reuse thesameencoding -for ASCII and to save space for Western encodings, but it is abitmore complex -to handle in practice. UTF-16 use 2 bytes per character(andsometimes combines -two pairs), it makes implementation easier, but looksabit overkill for -Western languages encoding. Moreover the XMLspecificationallows the document -to be encoded in other encodings at thecondition thatthey are clearly labeled -as such. For example the following isa wellformedXML document encoded in -ISO-8859-1 and using accentuated lettersthat weFrench like for both markup -and content:

    -
    <?xml version="1.0" encoding="ISO-8859-1"?>
    -<très>là</très>
    - -

    Having internationalization support in libxml2 means the following:

    -
      -
    • the document is properly parsed
    • -
    • informations about it's encoding are saved
    • -
    • it can be modified
    • -
    • it can be saved in its original encoding
    • -
    • it can also be saved in another encoding supported by - libxml2(forexample straight UTF8 or even an ASCII form)
    • -
    - -

    Another very important point is that the whole libxml2 API, -withtheexception of a few routines to read with a specific encoding or save -toaspecific encoding, is completely agnostic about the original encoding -ofthedocument.

    - -

    It should be noted too that the HTML parser embedded in libxml2 nowobeythe -same rules too, the following document will be (as of 2.2.2) handledinan -internationalized fashion by libxml2 too:

    -
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
    -                      "http://www.w3.org/TR/REC-html40/loose.dtd">
    -<html lang="fr">
    -<head>
    -  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
    -</head>
    -<body>
    -<p>W3C crée des standards pour le Web.</body>
    -</html>
    - -

    The internal encoding, how and why

    - -

    One of the core decisions was to force all documents to be converted -toadefault internal encoding, and that encoding to be UTF-8, here -aretherationales for those choices:

    -
      -
    • keeping the native encoding in the internal form would force - thelibxmlusers (or the code associated) to be fully aware of the encoding - oftheoriginal document, for examples when adding a text node to - adocument,the content would have to be provided in the document - encoding,i.e. theclient code would have to check it before hand, make - sure it'sconformantto the encoding, etc ... Very hard in practice, though - in somespecificcases this may make sense.
    • -
    • the second decision was which encoding. From the XML spec only - UTF8andUTF16 really makes sense as being the two only encodings for - whichthereis mandatory support. UCS-4 (32 bits fixed size encoding) - couldbeconsidered an intelligent choice too since it's a direct - Unicodemappingsupport. I selected UTF-8 on the basis of efficiency - andcompatibilitywith surrounding software: -
        -
      • UTF-8 while a bit more complex to convert from/to (i.e.slightlymore - costly to import and export CPU wise) is also far morecompactthan - UTF-16 (and UCS-4) for a majority of the documents I seeit usedfor - right now (RPM RDF catalogs, advogato data, variousconfigurationfile - formats, etc.) and the key point for today'scomputerarchitecture is - efficient uses of caches. If one nearlydouble thememory requirement - to store the same amount of data, thiswill trashcaches (main - memory/external caches/internal caches) and mytake isthat this harms - the system far more than the CPU requirementsneededfor the conversion - to UTF-8
      • -
      • Most of libxml2 version 1 users were using it with - straightASCIImost of the time, doing the conversion with an - internalencodingrequiring all their code to be rewritten was a - seriousshow-stopperfor using UTF-16 or UCS-4.
      • -
      • UTF-8 is being used as the de-facto internal encoding - standardforrelated code like the pangoupcoming Gnome text widget, - anda lot of Unix code (yet another placewhere Unix programmer base - takesa different approach from Microsoft- they are using UTF-16)
      • -
      -
    • -
    - -

    What does this mean in practice for the libxml2 user:

    -
      -
    • xmlChar, the libxml2 data type is a byte, those bytes must - beassembledas UTF-8 valid strings. The proper way to terminate an xmlChar - *stringis simply to append 0 byte, as usual.
    • -
    • One just need to make sure that when using chars outside the - ASCIIset,the values has been properly converted to UTF-8
    • -
    - -

    How is it implemented ?

    - -

    Let's describe how all this works within libxml, basically -theI18N(internationalization) support get triggered only during I/O -operation,i.e.when reading a document or saving one. Let's look first at -thereadingsequence:

    -
      -
    1. when a document is processed, we usually don't know the - encoding,asimple heuristic allows to detect UTF-16 and UCS-4 from - encodingswherethe ASCII range (0-0x7F) maps with ASCII
    2. -
    3. the xml declaration if available is parsed, including - theencodingdeclaration. At that point, if the autodetected encoding - isdifferentfrom the one declared a call to xmlSwitchEncoding() - isissued.
    4. -
    5. If there is no encoding declaration, then the input has to be - ineitherUTF-8 or UTF-16, if it is not then at some point when - processingtheinput, the converter/checker of UTF-8 form will raise an - encodingerror.You may end-up with a garbled document, or no document at - all !Example: -
      ~/XML -> ./xmllint err.xml 
      -err.xml:1: error: Input is not proper UTF-8, indicate encoding !
      -<très>là</très>
      -   ^
      -err.xml:1: error: Bytes: 0xE8 0x73 0x3E 0x6C
      -<très>là</très>
      -   ^
      -
    6. -
    7. xmlSwitchEncoding() does an encoding name lookup, canonicalize - it,andthen search the default registered encoding converters for - thatencoding.If it's not within the default set and iconv() support has - beencompiledit, it will ask iconv for such an encoder. If this fails then - theparserwill report an error and stops processing: -
      ~/XML -> ./xmllint err2.xml 
      -err2.xml:1: error: Unsupported encoding UnsupportedEnc
      -<?xml version="1.0" encoding="UnsupportedEnc"?>
      -                                             ^
      -
    8. -
    9. From that point the encoder processes progressively the input - (itisplugged as a front-end to the I/O module) for that entity. - Itcapturesand converts on-the-fly the document to be parsed to UTF-8. - Theparseritself just does UTF-8 checking of this input and - processittransparently. The only difference is that the encoding - informationhasbeen added to the parsing context (more precisely to - theinputcorresponding to this entity).
    10. -
    11. The result (when using DOM) is an internal form completely in - UTF-8withjust an encoding information on the document node.
    12. -
    - -

    Ok then what happens when saving the document (assuming -youcollected/builtan xmlDoc DOM like structure) ? It depends on the -functioncalled,xmlSaveFile() will just try to save in the original -encoding,whilexmlSaveFileTo() and xmlSaveFileEnc() can optionally save to -agivenencoding:

    -
      -
    1. if no encoding is given, libxml2 will look for an - encodingvalueassociated to the document and if it exists will try to save - tothatencoding, -

      otherwise everything is written in the internal form, i.e. UTF-8

      -
    2. -
    3. so if an encoding was specified, either at the API level or - onthedocument, libxml2 will again canonicalize the encoding name, - lookupfor aconverter in the registered set or through iconv. If not - foundthefunction will return an error code
    4. -
    5. the converter is placed before the I/O buffer layer, as another - kindofbuffer, then libxml2 will simply push the UTF-8 serialization - tothroughthat buffer, which will then progressively be converted and - pushedontothe I/O layer.
    6. -
    7. It is possible that the converter code fails on some input, - forexampletrying to push an UTF-8 encoded Chinese character through - theUTF-8 toISO-8859-1 converter won't work. Since the encoders - areprogressive theywill just report the error and the number of - bytesconverted, at thatpoint libxml2 will decode the offending - character,remove it from thebuffer and replace it with the associated - charRefencoding &#123; andresume the conversion. This guarantees that - anydocument will be savedwithout losses (except for markup names where - thisis not legal, this isa problem in the current version, in practice - avoidusing non-asciicharacters for tag or attribute names). A special - "ascii"encoding nameis used to save documents to a pure ascii form can be - usedwhenportability is really crucial
    8. -
    - -

    Here are a few examples based on the same test document:

    -
    ~/XML -> ./xmllint isolat1 
    -<?xml version="1.0" encoding="ISO-8859-1"?>
    -<très>là</très>
    -~/XML -> ./xmllint --encode UTF-8 isolat1 
    -<?xml version="1.0" encoding="UTF-8"?>
    -<très>là  </très>
    -~/XML -> 
    - -

    The same processing is applied (and reuse most of the code) for -HTMLI18Nprocessing. Looking up and modifying the content encoding is a -bitmoredifficult since it is located in a <meta> tag under -the<head>,so a couple of functions htmlGetMetaEncoding() -andhtmlSetMetaEncoding() havebeen provided. The parser also attempts to -switchencoding on the fly whendetecting such a tag on input. Except for that -theprocessing is the same(and again reuses the same code).

    - -

    Default supported encodings

    - -

    libxml2 has a set of default converters for the followingencodings(located -in encoding.c):

    -
      -
    1. UTF-8 is supported by default (null handlers)
    2. -
    3. UTF-16, both little and big endian
    4. -
    5. ISO-Latin-1 (ISO-8859-1) covering most western languages
    6. -
    7. ASCII, useful mostly for saving
    8. -
    9. HTML, a specific handler for the conversion of UTF-8 to ASCII - withHTMLpredefined entities like &copy; for the Copyright sign.
    10. -
    - -

    More over when compiled on an Unix platform with iconv support the -fullsetof encodings supported by iconv can be instantly be used by libxml. On -alinuxmachine with glibc-2.1 the list of supported encodings and aliases -fill3 fullpages, and include UCS-4, the full set of ISO-Latin encodings, and -thevariousJapanese ones.

    - -

    To convert from the UTF-8 values returned from the API to -anotherencodingthen it is possible to use the function provided from the encoding modulelike UTF8Toisolat1, or -usethePOSIX iconv()APIdirectly.

    - -

    Encoding aliases

    - -

    From 2.2.3, libxml2 has support to register encoding names aliases.Thegoal -is to be able to parse document whose encoding is supported butwherethe name -differs (for example from the default set of names acceptedbyiconv). The -following functions allow to register and handle new aliasesforexisting -encodings. Once registered libxml2 will automatically lookupthealiases when -handling a document:

    -
      -
    • int xmlAddEncodingAlias(const char *name, const char *alias);
    • -
    • int xmlDelEncodingAlias(const char *alias);
    • -
    • const char * xmlGetEncodingAlias(const char *alias);
    • -
    • void xmlCleanupEncodingAliases(void);
    • -
    - -

    How to extend the existing support

    - -

    Well adding support for new encoding, or overriding one of -theencoders(assuming it is buggy) should not be hard, just write input -andoutputconversion routines to/from UTF-8, and register -themusingxmlNewCharEncodingHandler(name, xxxToUTF8, UTF8Toxxx), and they -willbecalled automatically if the parser(s) encounter such an -encodingname(register it uppercase, this will help). The description of -theencoders,their arguments and expected return values are described in -theencoding.hheader.

    - -

    I/O Interfaces

    - -

    Table of Content:

    -
      -
    1. General overview
    2. -
    3. The basic buffer type
    4. -
    5. Input I/O handlers
    6. -
    7. Output I/O handlers
    8. -
    9. The entities loader
    10. -
    11. Example of customized I/O
    12. -
    - -

    General overview

    - -

    The module xmlIO.hprovidestheinterfaces -to the libxml2 I/O system. This consists of 4 main parts:

    -
      -
    • Entities loader, this is a routine which tries to fetch - theentities(files) based on their PUBLIC and SYSTEM identifiers. The - defaultloaderdon't look at the public identifier since libxml2 do not - maintainacatalog. You can redefine you own entity loader - byusingxmlGetExternalEntityLoader()andxmlSetExternalEntityLoader().Check theexample.
    • -
    • Input I/O buffers which are a commodity structure used by - theparser(s)input layer to handle fetching the informations to feed - theparser. Thisprovides buffering and is also a placeholder where - theencodingconverters to UTF8 are piggy-backed.
    • -
    • Output I/O buffers are similar to the Input ones and fulfillsimilartask - but when generating a serialization from a tree.
    • -
    • A mechanism to register sets of I/O callbacks and associate - themwithspecific naming schemes like the protocol part of the URIs. -

      This affect the default I/O operations and allows to use - specificI/Ohandlers for certain names.

      -
    • -
    - -

    The general mechanism used when loading -http://rpmfind.net/xml.htmlforexample in the HTML parser is the following:

    -
      -
    1. The default entity loader - callsxmlNewInputFromFile()withthe parsing context and the - URIstring.
    2. -
    3. the URI string is checked against the existing registered - handlersusingtheir match() callback function, if the HTTP module was - compiledin, it isregistered and its match() function will succeeds
    4. -
    5. the open() function of the handler is called and if - successfulwillreturn an I/O Input buffer
    6. -
    7. the parser will the start reading from this buffer - andprogressivelyfetch information from the resource, calling the - read()function of thehandler until the resource is exhausted
    8. -
    9. if an encoding change is detected it will be installed on - theinputbuffer, providing buffering and efficient use of - theconversionroutines
    10. -
    11. once the parser has finished, the close() function of the - handleriscalled once and the Input buffer and associated - resourcesaredeallocated.
    12. -
    - -

    The user defined callbacks are checked first to allow overriding -ofthedefault libxml2 I/O routines.

    - -

    The basic buffer type

    - -

    All the buffer manipulation handling is done -usingthexmlBuffertype define in tree.hwhich -isaresizable memory buffer. The buffer allocation strategy can be selected -tobeeither best-fit or use an exponential doubling one (CPU vs. -memoryusetrade-off). The values -areXML_BUFFER_ALLOC_EXACTandXML_BUFFER_ALLOC_DOUBLEIT,and -can be set individually or on asystem wide basis -usingxmlBufferSetAllocationScheme(). A numberof functions allows -tomanipulate buffers with names starting -withthexmlBuffer...prefix.

    - -

    Input I/O handlers

    - -

    An Input I/O handler is a -simplestructurexmlParserInputBuffercontaining a context -associated totheresource (file descriptor, or pointer to a protocol handler), -the read()andclose() callbacks to use and an xmlBuffer. And extra xmlBuffer -and acharsetencoding handler are also present to support charset -conversionwhenneeded.

    - -

    Output I/O handlers

    - -

    An Output handler xmlOutputBufferis completely similar -toanInput one except the callbacks are write() and close().

    - -

    The entities loader

    - -

    The entity loader resolves requests for new entities and create -inputsforthe parser. Creating an input from a filename or an URI string -isdonethrough the xmlNewInputFromFile() routine. The default entity loader -donothandle the PUBLIC identifier associated with an entity (if any). So -itjustcalls xmlNewInputFromFile() with the SYSTEM identifier (which -ismandatory inXML).

    - -

    If you want to hook up a catalog mechanism then you simply need -tooverridethe default entity loader, here is an example:

    -
    #include <libxml/xmlIO.h>
    -
    -xmlExternalEntityLoader defaultLoader = NULL;
    -
    -xmlParserInputPtr
    -xmlMyExternalEntityLoader(const char *URL, const char *ID,
    -                               xmlParserCtxtPtr ctxt) {
    -    xmlParserInputPtr ret;
    -    const char *fileID = NULL;
    -    /* lookup for the fileID depending on ID */
    -
    -    ret = xmlNewInputFromFile(ctxt, fileID);
    -    if (ret != NULL)
    -        return(ret);
    -    if (defaultLoader != NULL)
    -        ret = defaultLoader(URL, ID, ctxt);
    -    return(ret);
    -}
    -
    -int main(..) {
    -    ...
    -
    -    /*
    -     * Install our own entity loader
    -     */
    -    defaultLoader = xmlGetExternalEntityLoader();
    -    xmlSetExternalEntityLoader(xmlMyExternalEntityLoader);
    -
    -    ...
    -}
    - -

    Example of customized I/O

    - -

    This example come from areal use case,xmlDocDump() -closes the FILE * passed by the applicationand this was aproblem. The solutionwasto redefine anew -output handler with the closing call deactivated:

    -
      -
    1. First define a new I/O output allocator where the output don't - closethefile: -
      xmlOutputBufferPtr
      -xmlOutputBufferCreateOwn(FILE *file, xmlCharEncodingHandlerPtr encoder) {
      -    xmlOutputBufferPtr ret;
      -    
      -    if (xmlOutputCallbackInitialized == 0)
      -        xmlRegisterDefaultOutputCallbacks();
      -
      -    if (file == NULL) return(NULL);
      -    ret = xmlAllocOutputBuffer(encoder);
      -    if (ret != NULL) {
      -        ret->context = file;
      -        ret->writecallback = xmlFileWrite;
      -        ret->closecallback = NULL;  /* No close callback */
      -    }
      -    return(ret);
      -} 
      -
    2. -
    3. And then use it to save the document: -
      FILE *f;
      -xmlOutputBufferPtr output;
      -xmlDocPtr doc;
      -int res;
      -
      -f = ...
      -doc = ....
      -
      -output = xmlOutputBufferCreateOwn(f, NULL);
      -res = xmlSaveFileTo(output, doc, NULL);
      -    
      -
    4. -
    - -

    Catalog support

    - -

    Table of Content:

    -
      -
    1. General overview
    2. -
    3. The definition
    4. -
    5. Using catalogs
    6. -
    7. Some examples
    8. -
    9. How to tune catalog usage
    10. -
    11. How to debug catalog processing
    12. -
    13. How to create and maintain catalogs
    14. -
    15. The implementor corner quick review - oftheAPI
    16. -
    17. Other resources
    18. -
    - -

    General overview

    - -

    What is a catalog? Basically it's a lookup mechanism used when an -entity(afile or a remote resource) references another entity. The catalog -lookupisinserted between the moment the reference is recognized by the -software(XMLparser, stylesheet processing, or even images referenced for -inclusionin arendering) and the time where loading that resource is -actuallystarted.

    - -

    It is basically used for 3 things:

    -
      -
    • mapping from "logical" names, the public identifiers and a - moreconcretename usable for download (and URI). For example it can - associatethelogical name -

      "-//OASIS//DTD DocBook XML V4.1.2//EN"

      -

      of the DocBook 4.1.2 XML DTD with the actual URL where it - canbedownloaded

      -

      http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd

      -
    • -
    • remapping from a given URL to another one, like an - HTTPindirectionsaying that -

      "http://www.oasis-open.org/committes/tr.xsl"

      -

      should really be looked at

      -

      "http://www.oasis-open.org/committes/entity/stylesheets/base/tr.xsl"

      -
    • -
    • providing a local cache mechanism allowing to load - theentitiesassociated to public identifiers or remote resources, this is - areallyimportant feature for any significant deployment of XML or - SGMLsince itallows to avoid the aleas and delays associated to - fetchingremoteresources.
    • -
    - -

    The definitions

    - -

    Libxml, as of 2.4.3 implements 2 kind of catalogs:

    -
      -
    • the older SGML catalogs, the official spec is SGML - OpenTechnicalResolution TR9401:1997, but is better understood by reading - the SP - CatalogpagefromJames Clark. This is relatively old and not the - preferredmode ofoperation of libxml.
    • -
    • XMLCatalogsisfar - more flexible, more recent, uses an XML syntax andshould scale - quitebetter. This is the default option of libxml.
    • -
    - -

    - -

    Using catalog

    - -

    In a normal environment libxml2 will by default check the presence -ofacatalog in /etc/xml/catalog, and assuming it has been -correctlypopulated,the processing is completely transparent to the document -user. Totake aconcrete example, suppose you are authoring a DocBook document, -thisonestarts with the following DOCTYPE definition:

    -
    <?xml version='1.0'?>
    -<!DOCTYPE book PUBLIC "-//Norman Walsh//DTD DocBk XML V3.1.4//EN"
    -          "http://nwalsh.com/docbook/xml/3.1.4/db3xml.dtd">
    - -

    When validating the document with libxml, the catalog will -beautomaticallyconsulted to lookup the public identifier "-//Norman -Walsh//DTDDocBk XMLV3.1.4//EN" and the -systemidentifier"http://nwalsh.com/docbook/xml/3.1.4/db3xml.dtd", and if -theseentities havebeen installed on your system and the catalogs actually -point tothem, libxmlwill fetch them from the local disk.

    - -

    Note: Really don't usethisDOCTYPE -example it's a really old version, but is fine as an example.

    - -

    Libxml2 will check the catalog each time that it is requested to -loadanentity, this includes DTD, external parsed entities, stylesheets, etc -...Ifyour system is correctly configured all the authoring phase -andprocessingshould use only local files, even if your document stays -portablebecause ituses the canonical public and system ID, referencing the -remotedocument.

    - -

    Some examples:

    - -

    Here is a couple of fragments from XML Catalogs used in -libxml2earlyregression tests in test/catalogs:

    -
    <?xml version="1.0"?>
    -<!DOCTYPE catalog PUBLIC 
    -   "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
    -   "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
    -<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
    -  <public publicId="-//OASIS//DTD DocBook XML V4.1.2//EN"
    -   uri="http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"/>
    -...
    - -

    This is the beginning of a catalog for DocBook 4.1.2, XML -Catalogsarewritten in XML, there is a specific namespace for -catalogelements"urn:oasis:names:tc:entity:xmlns:xml:catalog". The first entry -inthiscatalog is a publicmapping it allows to associate -aPublicIdentifier with an URI.

    -
    ...
    -    <rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/"
    -                   rewritePrefix="file:///usr/share/xml/docbook/"/>
    -...
    - -

    A rewriteSystemis a very powerful instruction, it saysthatany -URI starting with a given prefix should be looked at anotherURIconstructed by -replacing the prefix with an new one. In effect this actslikea cache system -for a full area of the Web. In practice it is extremelyusefulwith a file -prefix if you have installed a copy of those resources onyourlocal system.

    -
    ...
    -<delegatePublic publicIdStartString="-//OASIS//DTD XML Catalog //"
    -                catalog="file:///usr/share/xml/docbook.xml"/>
    -<delegatePublic publicIdStartString="-//OASIS//ENTITIES DocBook XML"
    -                catalog="file:///usr/share/xml/docbook.xml"/>
    -<delegatePublic publicIdStartString="-//OASIS//DTD DocBook XML"
    -                catalog="file:///usr/share/xml/docbook.xml"/>
    -<delegateSystem systemIdStartString="http://www.oasis-open.org/docbook/"
    -                catalog="file:///usr/share/xml/docbook.xml"/>
    -<delegateURI uriStartString="http://www.oasis-open.org/docbook/"
    -                catalog="file:///usr/share/xml/docbook.xml"/>
    -...
    - -

    Delegation is the core features which allows to build a tree -ofcatalogs,easier to maintain than a single catalog, based on -PublicIdentifier, SystemIdentifier or URI prefixes it instructs the -catalogsoftware to look upentries in another resource. This feature allow to -buildhierarchies ofcatalogs, the set of entries presented should be -sufficient toredirect theresolution of all DocBook references to the specific -catalogin/usr/share/xml/docbook.xmlthis one in turn could -delegateallreferences for DocBook 4.2.1 to a specific catalog installed at -the sametimeas the DocBook resources on the local machine.

    - -

    How to tune catalog usage:

    - -

    The user can change the default catalog behaviour by redirecting -queriestoits own set of catalogs, this can be done by -settingtheXML_CATALOG_FILESenvironment variable to a list of -catalogs,anempty one should deactivate loading the -default/etc/xml/catalogdefault catalog

    - -

    How to debug catalog processing:

    - -

    Setting up the XML_DEBUG_CATALOGenvironment variable -willmakelibxml2 output debugging informations for each catalog -operations,forexample:

    -
    orchis:~/XML -> xmllint --memory --noout test/ent2
    -warning: failed to load external entity "title.xml"
    -orchis:~/XML -> export XML_DEBUG_CATALOG=
    -orchis:~/XML -> xmllint --memory --noout test/ent2
    -Failed to parse catalog /etc/xml/catalog
    -Failed to parse catalog /etc/xml/catalog
    -warning: failed to load external entity "title.xml"
    -Catalogs cleanup
    -orchis:~/XML -> 
    - -

    The test/ent2 references an entity, running the parser from memorymakesthe -base URI unavailable and the the "title.xml" entity cannot beloaded.Setting -up the debug environment variable allows to detect that anattempt ismade to -load the /etc/xml/catalogbut since it's notpresent theresolution -fails.

    - -

    But the most advanced way to debug XML catalog processing is to -usethexmlcatalogcommand shipped with libxml2, it allows -toloadcatalogs and make resolution queries to see what is going on. This -isalsoused for the regression tests:

    -
    orchis:~/XML -> ./xmlcatalog test/catalogs/docbook.xml \
    -                   "-//OASIS//DTD DocBook XML V4.1.2//EN"
    -http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd
    -orchis:~/XML -> 
    - -

    For debugging what is going on, adding one -v flags increase -theverbositylevel to indicate the processing done (adding a second flag -alsoindicatewhat elements are recognized at parsing):

    -
    orchis:~/XML -> ./xmlcatalog -v test/catalogs/docbook.xml \
    -                   "-//OASIS//DTD DocBook XML V4.1.2//EN"
    -Parsing catalog test/catalogs/docbook.xml's content
    -Found public match -//OASIS//DTD DocBook XML V4.1.2//EN
    -http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd
    -Catalogs cleanup
    -orchis:~/XML -> 
    - -

    A shell interface is also available to debug and process -multiplequeries(and for regression tests):

    -
    orchis:~/XML -> ./xmlcatalog -shell test/catalogs/docbook.xml \
    -                   "-//OASIS//DTD DocBook XML V4.1.2//EN"
    -> help   
    -Commands available:
    -public PublicID: make a PUBLIC identifier lookup
    -system SystemID: make a SYSTEM identifier lookup
    -resolve PublicID SystemID: do a full resolver lookup
    -add 'type' 'orig' 'replace' : add an entry
    -del 'values' : remove values
    -dump: print the current catalog state
    -debug: increase the verbosity level
    -quiet: decrease the verbosity level
    -exit:  quit the shell
    -> public "-//OASIS//DTD DocBook XML V4.1.2//EN"
    -http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd
    -> quit
    -orchis:~/XML -> 
    - -

    This should be sufficient for most debugging purpose, this wasactuallyused -heavily to debug the XML Catalog implementation itself.

    - -

    How to create and maintaincatalogs:

    - -

    Basically XML Catalogs are XML files, you can either use XML toolstomanage -them or use xmlcatalogfor this. The basic stepisto create a -catalog the -create option provide this facility:

    -
    orchis:~/XML -> ./xmlcatalog --create tst.xml
    -<?xml version="1.0"?>
    -<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
    -         "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
    -<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"/>
    -orchis:~/XML -> 
    - -

    By default xmlcatalog does not overwrite the original catalog and -savetheresult on the standard output, this can be overridden using -the-nooutoption. The -addcommand allows to add entries -inthecatalog:

    -
    orchis:~/XML -> ./xmlcatalog --noout --create --add "public" \
    -  "-//OASIS//DTD DocBook XML V4.1.2//EN" \
    -  http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd tst.xml
    -orchis:~/XML -> cat tst.xml
    -<?xml version="1.0"?>
    -<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" \
    -  "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
    -<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
    -<public publicId="-//OASIS//DTD DocBook XML V4.1.2//EN"
    -        uri="http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"/>
    -</catalog>
    -orchis:~/XML -> 
    - -

    The -addoption will always take 3 parameters even if -someofthe XML Catalog constructs (like nextCatalog) will have only -asingleargument, just pass a third empty string, it will be ignored.

    - -

    Similarly the -deloption remove matching entries -fromthecatalog:

    -
    orchis:~/XML -> ./xmlcatalog --del \
    -  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" tst.xml
    -<?xml version="1.0"?>
    -<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
    -    "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
    -<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"/>
    -orchis:~/XML -> 
    - -

    The catalog is now empty. Note that the matching -of-delisexact and would have worked in a similar fashion with -thePublic IDstring.

    - -

    This is rudimentary but should be sufficient to manage a not -toocomplexcatalog tree of resources.

    - -

    The implementor corner quick review -oftheAPI:

    - -

    First, and like for every other module of libxml, there is -anautomaticallygenerated API page -forcatalogsupport.

    - -

    The header for the catalog interfaces should be included as:

    -
    #include <libxml/catalog.h>
    - -

    The API is voluntarily kept very simple. First it is not -obviousthatapplications really need access to it since it is the default -behaviouroflibxml2 (Note: it is possible to completely override libxml2 -defaultcatalogby using xmlSetExternalEntityLoadertoplug -anapplication specific resolver).

    - -

    Basically libxml2 support 2 catalog lists:

    -
      -
    • the default one, global shared by all the application
    • -
    • a per-document catalog, this one is built if the document - usestheoasis-xml-catalogPIs to specify its own catalog list, - itisassociated to the parser context and destroyed when the - parsingcontextis destroyed.
    • -
    - -

    the document one will be used first if it exists.

    - -

    Initialization routines:

    - -

    xmlInitializeCatalog(), xmlLoadCatalog() and xmlLoadCatalogs() -shouldbeused at startup to initialize the catalog, if the catalog -shouldbeinitialized with specific values xmlLoadCatalog() -orxmlLoadCatalogs()should be called before xmlInitializeCatalog() which -wouldotherwise do adefault initialization first.

    - -

    The xmlCatalogAddLocal() call is used by the parser to grow thedocumentown -catalog list if needed.

    - -

    Preferences setup:

    - -

    The XML Catalog spec requires the possibility to select -defaultpreferencesbetween public and system -delegation,xmlCatalogSetDefaultPrefer() allowsthis, xmlCatalogSetDefaults() -andxmlCatalogGetDefaults() allow to control ifXML Catalogs resolution -shouldbe forbidden, allowed for global catalog, fordocument catalog or both, -thedefault is to allow both.

    - -

    And of course xmlCatalogSetDebug() allows to generate -debugmessages(through the xmlGenericError() mechanism).

    - -

    Querying routines:

    - -

    xmlCatalogResolve(), -xmlCatalogResolveSystem(),xmlCatalogResolvePublic()and xmlCatalogResolveURI() -are relatively explicitif you read the XMLCatalog specification they -correspond to section 7algorithms, they shouldalso work if you have loaded an -SGML catalog with asimplified semantic.

    - -

    xmlCatalogLocalResolve() and xmlCatalogLocalResolveURI() are the -samebutoperate on the document catalog list

    - -

    Cleanup and Miscellaneous:

    - -

    xmlCatalogCleanup() free-up the global catalog, xmlCatalogFreeLocal()isthe -per-document equivalent.

    - -

    xmlCatalogAdd() and xmlCatalogRemove() are used to dynamically -modifythefirst catalog in the global list, and xmlCatalogDump() allows to -dumpacatalog state, those routines are primarily designed for xmlcatalog, -I'mnotsure that exposing more complex interfaces (like navigation ones) -wouldbereally useful.

    - -

    The xmlParseCatalogFile() is a function used to load XML Catalogfiles,it's -similar as xmlParseFile() except it bypass all catalog lookups,it'sprovided -because this functionality may be useful for client tools.

    - -

    threaded environments:

    - -

    Since the catalog tree is built progressively, some care has been -takentotry to avoid troubles in multithreaded environments. The code is -nowthreadsafe assuming that the libxml2 library has been compiled -withthreadssupport.

    - -

    - -

    Other resources

    - -

    The XML Catalog specification is relatively recent so there -isn'tmuchliterature to point at:

    -
      -
    • You can find a good rant from Norm Walsh about theneedfor - catalogs, it provides a lot of context informations even ifIdon't - agree with everything presented. Norm also wrote a morerecentarticle XMLentitiesand - URI resolversdescribing them.
    • -
    • An oldXMLcatalog - proposalfrom John Cowan
    • -
    • The Resource - DirectoryDescriptionLanguage(RDDL) another catalog system but more - orientedtowardproviding metadata for XML namespaces.
    • -
    • the page from the OASIS Technical Committee - onEntityResolutionwho maintains XML Catalog, you will find pointers - tothespecification update, some background and pointers to - otherstoolsproviding XML Catalog support
    • -
    • There is a shell scriptto - generateXMLCatalogs for DocBook 4.1.2 . If it can write to the - /etc/xml/directory,it will set-up /etc/xml/catalog and /etc/xml/docbook - based ontheresources found on the system. Otherwise it will just - create~/xmlcatalogand ~/dbkxmlcatalog and doing: -

      export XML_CATALOG_FILES=$HOME/xmlcatalog

      -

      should allow to process DocBook documentations withoutrequiringnetwork - accesses for the DTD or stylesheets

      -
    • -
    • I have uploaded asmalltarballcontaining - XML Catalogs for DocBook 4.1.2 which seemsto workfine for me too
    • -
    • The xmlcatalogmanualpage
    • -
    - -

    If you have suggestions for corrections or additions, simply contactme:

    - -

    The parser interfaces

    - -

    This section is directly intended to help programmers -gettingbootstrappedusing the XML tollkit from the C language. It is not -intended tobeextensive. I hope the automatically generated documents will -providethecompleteness required, but as a separate set of documents. The -interfacesofthe XML parser are by principle low level, Those interested in a -higherlevelAPI should look at DOM.

    - -

    The parser interfaces -forXMLareseparated from the HTMLparserinterfaces. Let's have a -look at how the XML parser can becalled:

    - -

    Invoking the parser : the pull method

    - -

    Usually, the first thing to do is to read an XML input. The -parseracceptsdocuments either from in-memory strings or from files. The -functionsaredefined in "parser.h":

    -
    -
    xmlDocPtr xmlParseMemory(char *buffer, int size);
    -

    Parse a null-terminated string containing the document.

    -
    -
    -
    -
    xmlDocPtr xmlParseFile(const char *filename);
    -

    Parse an XML document contained in a (possibly compressed)file.

    -
    -
    - -

    The parser returns a pointer to the document structure (or NULL in -caseoffailure).

    - -

    Invoking the parser: the push method

    - -

    In order for the application to keep the control when the document -isbeingfetched (which is common for GUI based programs) libxml2 provides -apushinterface, too, as of version 1.8.3. Here are the interfacefunctions:

    -
    xmlParserCtxtPtr xmlCreatePushParserCtxt(xmlSAXHandlerPtr sax,
    -                                         void *user_data,
    -                                         const char *chunk,
    -                                         int size,
    -                                         const char *filename);
    -int              xmlParseChunk          (xmlParserCtxtPtr ctxt,
    -                                         const char *chunk,
    -                                         int size,
    -                                         int terminate);
    - -

    and here is a simple example showing how to use the interface:

    -
                FILE *f;
    -
    -            f = fopen(filename, "r");
    -            if (f != NULL) {
    -                int res, size = 1024;
    -                char chars[1024];
    -                xmlParserCtxtPtr ctxt;
    -
    -                res = fread(chars, 1, 4, f);
    -                if (res > 0) {
    -                    ctxt = xmlCreatePushParserCtxt(NULL, NULL,
    -                                chars, res, filename);
    -                    while ((res = fread(chars, 1, size, f)) > 0) {
    -                        xmlParseChunk(ctxt, chars, res, 0);
    -                    }
    -                    xmlParseChunk(ctxt, chars, 0, 1);
    -                    doc = ctxt->myDoc;
    -                    xmlFreeParserCtxt(ctxt);
    -                }
    -            }
    - -

    The HTML parser embedded into libxml2 also has a push -interface;thefunctions are just prefixed by "html" rather than "xml".

    - -

    Invoking the parser: the SAX interface

    - -

    The tree-building interface makes the parser memory-hungry, -firstloadingthe document in memory and then building the tree itself. Reading -adocumentwithout building the tree is possible using the SAX interfaces -(seeSAX.h andJamesHenstridge'sdocumentation). -Note also that the push interface can belimited to SAX:just use the two first -arguments ofxmlCreatePushParserCtxt().

    - -

    Building a tree from scratch

    - -

    The other way to get an XML tree in memory is by building -it.Basicallythere is a set of functions dedicated to building new -elements.(These arealso described in <libxml/tree.h>.) For example, -here is apiece ofcode that produces the XML document used in the previous -examples:

    -
        #include <libxml/tree.h>
    -    xmlDocPtr doc;
    -    xmlNodePtr tree, subtree;
    -
    -    doc = xmlNewDoc("1.0");
    -    doc->children = xmlNewDocNode(doc, NULL, "EXAMPLE", NULL);
    -    xmlSetProp(doc->children, "prop1", "gnome is great");
    -    xmlSetProp(doc->children, "prop2", "& linux too");
    -    tree = xmlNewChild(doc->children, NULL, "head", NULL);
    -    subtree = xmlNewChild(tree, NULL, "title", "Welcome to Gnome");
    -    tree = xmlNewChild(doc->children, NULL, "chapter", NULL);
    -    subtree = xmlNewChild(tree, NULL, "title", "The Linux adventure");
    -    subtree = xmlNewChild(tree, NULL, "p", "bla bla bla ...");
    -    subtree = xmlNewChild(tree, NULL, "image", NULL);
    -    xmlSetProp(subtree, "href", "linus.gif");
    - -

    Not really rocket science ...

    - -

    Traversing the tree

    - -

    Basically by including"tree.h"yourcode -has access to the internal structure of all the elementsof the tree.The names -should be somewhat simple -likeparent,children, -next,prev,properties, -etc... For example, stillwith the previousexample:

    -
    doc->children->children->children
    - -

    points to the title element,

    -
    doc->children->children->next->children->children
    - -

    points to the text node containing the chapter title -"TheLinuxadventure".

    - -

    NOTE: XML allows PIs and -commentstobepresent before the document root, so -doc->childrenmaypointto an element which is not the document -Root Element; afunctionxmlDocGetRootElement()was added for this -purpose.

    - -

    Modifying the tree

    - -

    Functions are provided for reading and writing the document content.Hereis -an excerpt from the tree API:

    -
    -
    xmlAttrPtr xmlSetProp(xmlNodePtr node, const xmlChar - *name,constxmlChar *value);
    -

    This sets (or changes) an attribute carried by an ELEMENT - node.Thevalue can be NULL.

    -
    -
    -
    -
    const xmlChar *xmlGetProp(xmlNodePtr node, - constxmlChar*name);
    -

    This function returns a pointer to new copy of thepropertycontent. - Note that the user must deallocate the result.

    -
    -
    - -

    Two functions are provided for reading and writing the text -associatedwithelements:

    -
    -
    xmlNodePtr xmlStringGetNodeList(xmlDocPtr doc, - constxmlChar*value);
    -

    This function takes an "external" string and converts it toonetext - node or possibly to a list of entity and text nodes.Allnon-predefined - entity references like &Gnome; will bestoredinternally as entity - nodes, hence the result of the function maynot bea single node.

    -
    -
    -
    -
    xmlChar *xmlNodeListGetString(xmlDocPtr doc, xmlNodePtr - list,intinLine);
    -

    This function is the inverseofxmlStringGetNodeList(). - It generates a newstringcontaining the content of the text and entity - nodes. Note theextraargument inLine. If this argument is set to 1, the - function willexpandentity references. For example, instead of - returning the&Gnome;XML encoding in the string, it will substitute - it with itsvalue (say,"GNU Network Object Model Environment").

    -
    -
    - -

    Saving a tree

    - -

    Basically 3 options are possible:

    -
    -
    void xmlDocDumpMemory(xmlDocPtr cur, - xmlChar**mem,int*size);
    -

    Returns a buffer into which the document has been saved.

    -
    -
    -
    -
    extern void xmlDocDump(FILE *f, xmlDocPtr doc);
    -

    Dumps a document to an open file descriptor.

    -
    -
    -
    -
    int xmlSaveFile(const char *filename, xmlDocPtr cur);
    -

    Saves the document to a file. In this case, - thecompressioninterface is triggered if it has been turned on.

    -
    -
    - -

    Compression

    - -

    The library transparently handles compression when -doingfile-basedaccesses. The level of compression on saves can be turned on -eithergloballyor individually for one file:

    -
    -
    int xmlGetDocCompressMode (xmlDocPtr doc);
    -

    Gets the document compression ratio (0-9).

    -
    -
    -
    -
    void xmlSetDocCompressMode (xmlDocPtr doc, int mode);
    -

    Sets the document compression ratio.

    -
    -
    -
    -
    int xmlGetCompressMode(void);
    -

    Gets the default compression ratio.

    -
    -
    -
    -
    void xmlSetCompressMode(int mode);
    -

    Sets the default compression ratio.

    -
    -
    - -

    Entities or no entities

    - -

    Entities in principle are similar to simple C macros. An entity -definesanabbreviation for a given string that you can reuse many times -throughoutthecontent of your document. Entities are especially useful when a -givenstringmay occur frequently within a document, or to confine the change -neededto adocument to a restricted area in the internal subset of the -document (atthebeginning). Example:

    -
    1 <?xml version="1.0"?>
    -2 <!DOCTYPE EXAMPLE SYSTEM "example.dtd" [
    -3 <!ENTITY xml "Extensible Markup Language">
    -4 ]>
    -5 <EXAMPLE>
    -6    &xml;
    -7 </EXAMPLE>
    - -

    Line 3 declares the xml entity. Line 6 uses the xml entity, byprefixingits -name with '&' and following it by ';' without any spacesadded. Thereare 5 -predefined entities in libxml2 allowing you to escapecharacters -withpredefined meaning in some parts of the xml -documentcontent:&lt;for the character -'<',&gt;for the character -'>',&apos;for the -character''',&quot;for the character -'"',and&amp;for the character '&'.

    - -

    One of the problems related to entities is that you may want the -parsertosubstitute an entity's content so that you can see the replacement -textinyour application. Or you may prefer to keep entity references as such -inthecontent to be able to save the document back without losing -thisusuallyprecious information (if the user went through the pain -ofexplicitlydefining entities, he may have a a rather negative attitude if -youblindlysubstitute them as saving time). The xmlSubstituteEntitiesDefault()functionallows -you to check and change the behaviour, which is to notsubstituteentities by -default.

    - -

    Here is the DOM tree built by libxml2 for the previous document -inthedefault case:

    -
    /gnome/src/gnome-xml -> ./xmllint --debug test/ent1
    -DOCUMENT
    -version=1.0
    -   ELEMENT EXAMPLE
    -     TEXT
    -     content=
    -     ENTITY_REF
    -       INTERNAL_GENERAL_ENTITY xml
    -       content=Extensible Markup Language
    -     TEXT
    -     content=
    - -

    And here is the result when substituting entities:

    -
    /gnome/src/gnome-xml -> ./tester --debug --noent test/ent1
    -DOCUMENT
    -version=1.0
    -   ELEMENT EXAMPLE
    -     TEXT
    -     content=     Extensible Markup Language
    - -

    So, entities or no entities? Basically, it depends on your use -case.Isuggest that you keep the non-substituting default behaviour and -avoidusingentities in your XML document or data if you are not willing to -handletheentity references elements in the DOM tree.

    - -

    Note that at save time libxml2 enforces the conversion of -thepredefinedentities where necessary to prevent well-formedness problems, -andwill alsotransparently replace those with chars (i.e. it will not -generateentityreference elements in the DOM tree or call the reference() SAX -callbackwhenfinding them in the input).

    - -

    WARNING: handlingentitieson -top of the libxml2 SAX interface is difficult!!! If you plan -tousenon-predefined entities in your documents, then the learning curve -tohandlethen using the SAX API may be long. If you plan to use -complexdocuments, Istrongly suggest you consider using the DOM interface -instead andlet libxmldeal with the complexity rather than trying to do it -yourself.

    - -

    Namespaces

    - -

    The libxml2 library implements XML -namespacessupportbyrecognizing namespace constructs in the input, and -does namespacelookupautomatically when building the DOM tree. A namespace -declarationisassociated with an in-memory structure and all elements or -attributeswithinthat namespace point to it. Hence testing the namespace is a -simple andfastequality operation at the user level.

    - -

    I suggest that people using libxml2 use a namespace, and declare it -intheroot element of their document as the default namespace. Then they -don'tneedto use the prefix in the content but we will have a basis for -futuresemanticrefinement and merging of data from different sources. This -doesn'tincreasethe size of the XML output significantly, but significantly -increasesitsvalue in the long-term. Example:

    -
    <mydoc xmlns="http://mydoc.example.org/schemas/">
    -   <elem1>...</elem1>
    -   <elem2>...</elem2>
    -</mydoc>
    - -

    The namespace value has to be an absolute URL, but the URL doesn't -havetopoint to any existing resource on the Web. It will bind all the -elementandattributes with that URL. I suggest to use an URL within a -domainyoucontrol, and that the URL should contain some kind of version -informationifpossible. For example, -"http://www.gnome.org/gnumeric/1.0/"isagood namespace scheme.

    - -

    Then when you load a file, make sure that a namespace -carryingtheversion-independent prefix is installed on the root element of -yourdocument,and if the version information don't match something you know, -warnthe userand be liberal in what you accept as the input. Also do *not* try -tobasenamespace checking on the prefix value. <foo:text> may be -exactlythesame as <bar:text> in another document. What really matters -is theURIassociated with the element or the attribute, not the prefix string -(whichisjust a shortcut for the full URI). In libxml, element and attributes -haveannsfield pointing to an xmlNs structure detailing -thenamespaceprefix and its URI.

    - -

    @@Interfaces@@

    -
    xmlNodePtr node;
    -if(!strncmp(node->name,"mytag",5)
    -  && node->ns
    -  && !strcmp(node->ns->href,"http://www.mysite.com/myns/1.0")) {
    -  ...
    -}
    - -

    Usually people object to using namespaces together with validitychecking.I -will try to make sure that using namespaces won't break validitychecking,so -even if you plan to use or currently are using validation Istronglysuggest -adding namespaces to your document. A default -namespaceschemexmlns="http://...."should not break validity even -onlessflexible parsers. Using namespaces to mix and differentiate -contentcomingfrom multiple DTDs will certainly break current validation -schemes. Tochecksuch documents one needs to use schema-validation, which is -supportedinlibxml2 as well. See relagx-ngand w3c-schema.

    - -

    Upgrading 1.x code

    - -

    Incompatible changes:

    - -

    Version 2 of libxml2 is the first version introducing -seriousbackwardincompatible changes. The main goals were:

    -
      -
    • a general cleanup. A number of mistakes inherited from the - veryearlyversions couldn't be changed due to compatibility - constraints.Examplethe "childs" element in the nodes.
    • -
    • Uniformization of the various nodes, at least for their header - andlinkparts (doc, parent, children, prev, next), the goal is - asimplerprogramming model and simplifying the task of the - DOMimplementors.
    • -
    • better conformances to the XML specification, for example version1.xhad - an heuristic to try to detect ignorable white spaces. As a resulttheSAX - event generated were ignorableWhitespace() while the - specrequirescharacter() in that case. This also mean that a number of - DOMnodecontaining blank text may populate the DOM tree which were - notpresentbefore.
    • -
    - -

    How to fix libxml-1.x code:

    - -

    So client code of libxml designed to run with version 1.x may have -tobechanged to compile against version 2.x of libxml. Here is a list -ofchangesthat I have collected, they may not be sufficient, so in case you -findotherchange which are required, dropme amail:

    -
      -
    1. The package name have changed from libxml to libxml2, the librarynameis - now -lxml2 . There is a new xml2-config script which should beused - toselect the right parameters libxml2
    2. -
    3. Node childsfield has - beenrenamedchildrenso s/childs/children/g should - beapplied(probability of having "childs" anywhere else is close to 0+
    4. -
    5. The document don't have anymore a rootelement - ithasbeen replaced by childrenand usually you will - getalist of element here. For example a Dtd element for the - internalsubsetand it's declaration may be found in that list, as well - asprocessinginstructions or comments found before or after the - documentroot element.Use xmlDocGetRootElement(doc)to get - theroot element ofa document. Alternatively if you are sure to not - referenceDTDs nor havePIs or comments before or after the - rootelements/->root/->children/g will probably do it.
    6. -
    7. The white space issue, this one is more complex, unless special - caseofvalidating parsing, the line breaks and spaces usually used - forindentingand formatting the document content becomes significant. So - theyarereported by SAX and if your using the DOM tree, corresponding - nodesaregenerated. Too approach can be taken: -
        -
      1. lazy one, use the - compatibilitycallxmlKeepBlanksDefault(0)but be aware - that youarerelying on a special (and possibly broken) set of - heuristicsoflibxml to detect ignorable blanks. Don't complain if it - breaksormake your application not 100% clean w.r.t. to it's - input.
      2. -
      3. the Right Way: change you code to accept - possiblyinsignificantblanks characters, or have your tree populated - withweird blank textnodes. You can spot them using the - commodityfunctionxmlIsBlankNode(node)returning 1 for - suchblanknodes.
      4. -
      -

      Note also that with the new default the output functions don't - addanyextra indentation when saving a tree in order to be able to - roundtrip(read and save) without inflating the document with - extraformattingchars.

      -
    8. -
    9. The include path has changed to $prefix/libxml/ and - theincludesthemselves uses this new prefix in includes instructions... - Ifyou areusing (as expected) the -
      xml2-config --cflags
      -

      output to generate you compile commands this will probably work - outofthe box

      -
    10. -
    11. xmlDetectCharEncoding takes an extra argument indicating the - lengthinbyte of the head of the document available for character - detection.
    12. -
    - -

    Ensuring both libxml-1.x and libxml-2.x compatibility

    - -

    Two new version of libxml (1.8.11) and libxml2 (2.3.4) have beenreleasedto -allow smooth upgrade of existing libxml v1code whileretainingcompatibility. -They offers the following:

    -
      -
    1. similar include naming, one - shoulduse#include<libxml/...>in both cases.
    2. -
    3. similar identifiers defined via macros for the child and - rootfields:respectivelyxmlChildrenNodeandxmlRootNode
    4. -
    5. a new macro LIBXML_TEST_VERSIONwhich should - beinsertedonce in the client code
    6. -
    - -

    So the roadmap to upgrade your existing libxml applications -isthefollowing:

    -
      -
    1. install the libxml-1.8.8 (and libxml-devel-1.8.8) packages
    2. -
    3. find all occurrences where the xmlDoc rootfield - isusedand change it to xmlRootNode
    4. -
    5. similarly find all occurrences where - thexmlNodechildsfield is used and change - ittoxmlChildrenNode
    6. -
    7. add a LIBXML_TEST_VERSIONmacro somewhere - inyourmain()or in the library init entry point
    8. -
    9. Recompile, check compatibility, it should still work
    10. -
    11. Change your configure script to look first for xml2-config and - fallbackusing xml-config . Use the --cflags and --libs output of the - commandasthe Include and Linking parameters needed to use libxml.
    12. -
    13. install libxml2-2.3.x and libxml2-devel-2.3.x - (libxml-1.8.yandlibxml-devel-1.8.y can be kept simultaneously)
    14. -
    15. remove your config.cache, relaunch your configuration - mechanism,andrecompile, if steps 2 and 3 were done right it should - compileas-is
    16. -
    17. Test that your application is still running correctly, if not thismaybe - due to extra empty nodes due to formating spaces being kept - inlibxml2contrary to libxml1, in that case insert - xmlKeepBlanksDefault(1)in yourcode before calling the parser - (nexttoLIBXML_TEST_VERSIONis a fine place).
    18. -
    - -

    Following those steps should work. It worked for some of my own code.

    - -

    Let me put some emphasis on the fact that there is far more -changesfromlibxml 1.x to 2.x than the ones you may have to patch for. The -overallcodehas been considerably cleaned up and the conformance to the -XMLspecificationhas been drastically improved too. Don't take those changes -asan excuse tonot upgrade, it may cost a lot on the long term ...

    - -

    Thread safety

    - -

    Starting with 2.4.7, libxml2 makes provisions to ensure -thatconcurrentthreads can safely work in parallel parsing different -documents.There ishowever a couple of things to do to ensure it:

    -
      -
    • configure the library accordingly using the --with-threads options
    • -
    • call xmlInitParser() in the "main" thread before using any ofthelibxml2 - API (except possibly selecting a different memoryallocator)
    • -
    - -

    Note that the thread safety cannot be ensured for multiple -threadssharingthe same document, the locking must be done at the application -level,libxmlexports a basic mutex and reentrant mutexes API -in<libxml/threads.h>.The parts of the library checked for thread -safetyare:

    -
      -
    • concurrent loading
    • -
    • file access resolution
    • -
    • catalog access
    • -
    • catalog building
    • -
    • entities lookup/accesses
    • -
    • validation
    • -
    • global variables per-thread override
    • -
    • memory handling
    • -
    - -

    XPath is supposed to be thread safe now, but this -wasn'ttestedseriously.

    - -

    DOM Principles

    - -

    DOMstands for the -DocumentObjectModel; this is an API for accessing XML or HTML -structureddocuments.Native support for DOM in Gnome is on the way (module -gnome-dom),and will bebased on gnome-xml. This will be a far cleaner -interface tomanipulate XMLfiles within Gnome since it won't expose the -internalstructure.

    - -

    The current DOM implementation on top of libxml2 is the gdome2 Gnome module,thisis -a full DOM interface, thanks to Paolo Casarini, check the Gdome2 -homepageformoreinformations.

    - -

    A real example

    - -

    Here is a real size example, where the actual content of -theapplicationdata is not kept in the DOM tree but uses internal structures. -Itis based ona proposal to keep a database of jobs related to Gnome, with -anXML basedstorage structure. Here is an XML -encodedjobsbase:

    -
    <?xml version="1.0"?>
    -<gjob:Helping xmlns:gjob="http://www.gnome.org/some-location">
    -  <gjob:Jobs>
    -
    -    <gjob:Job>
    -      <gjob:Project ID="3"/>
    -      <gjob:Application>GBackup</gjob:Application>
    -      <gjob:Category>Development</gjob:Category>
    -
    -      <gjob:Update>
    -        <gjob:Status>Open</gjob:Status>
    -        <gjob:Modified>Mon, 07 Jun 1999 20:27:45 -0400 MET DST</gjob:Modified>
    -        <gjob:Salary>USD 0.00</gjob:Salary>
    -      </gjob:Update>
    -
    -      <gjob:Developers>
    -        <gjob:Developer>
    -        </gjob:Developer>
    -      </gjob:Developers>
    -
    -      <gjob:Contact>
    -        <gjob:Person>Nathan Clemons</gjob:Person>
    -        <gjob:Email>nathan@windsofstorm.net</gjob:Email>
    -        <gjob:Company>
    -        </gjob:Company>
    -        <gjob:Organisation>
    -        </gjob:Organisation>
    -        <gjob:Webpage>
    -        </gjob:Webpage>
    -        <gjob:Snailmail>
    -        </gjob:Snailmail>
    -        <gjob:Phone>
    -        </gjob:Phone>
    -      </gjob:Contact>
    -
    -      <gjob:Requirements>
    -      The program should be released as free software, under the GPL.
    -      </gjob:Requirements>
    -
    -      <gjob:Skills>
    -      </gjob:Skills>
    -
    -      <gjob:Details>
    -      A GNOME based system that will allow a superuser to configure 
    -      compressed and uncompressed files and/or file systems to be backed 
    -      up with a supported media in the system.  This should be able to 
    -      perform via find commands generating a list of files that are passed 
    -      to tar, dd, cpio, cp, gzip, etc., to be directed to the tape machine 
    -      or via operations performed on the filesystem itself. Email 
    -      notification and GUI status display very important.
    -      </gjob:Details>
    -
    -    </gjob:Job>
    -
    -  </gjob:Jobs>
    -</gjob:Helping>
    - -

    While loading the XML file into an internal DOM tree is a matter -ofcallingonly a couple of functions, browsing the tree to gather the data -andgeneratethe internal structures is harder, and more error prone.

    - -

    The suggested principle is to be tolerant with respect to -theinputstructure. For example, the ordering of the attributes is -notsignificant,the XML specification is clear about it. It's also usually a -goodidea not todepend on the order of the children of a given node, unless -itreally makesthings harder. Here is some code to parse the information for -aperson:

    -
    /*
    - * A person record
    - */
    -typedef struct person {
    -    char *name;
    -    char *email;
    -    char *company;
    -    char *organisation;
    -    char *smail;
    -    char *webPage;
    -    char *phone;
    -} person, *personPtr;
    -
    -/*
    - * And the code needed to parse it
    - */
    -personPtr parsePerson(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur) {
    -    personPtr ret = NULL;
    -
    -DEBUG("parsePerson\n");
    -    /*
    -     * allocate the struct
    -     */
    -    ret = (personPtr) malloc(sizeof(person));
    -    if (ret == NULL) {
    -        fprintf(stderr,"out of memory\n");
    -        return(NULL);
    -    }
    -    memset(ret, 0, sizeof(person));
    -
    -    /* We don't care what the top level element name is */
    -    cur = cur->xmlChildrenNode;
    -    while (cur != NULL) {
    -        if ((!strcmp(cur->name, "Person")) && (cur->ns == ns))
    -            ret->name = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
    -        if ((!strcmp(cur->name, "Email")) && (cur->ns == ns))
    -            ret->email = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
    -        cur = cur->next;
    -    }
    -
    -    return(ret);
    -}
    - -

    Here are a couple of things to notice:

    -
      -
    • Usually a recursive parsing style is the more convenient one: XMLdatais - by nature subject to repetitive constructs and usually - exhibitshighlystructured patterns.
    • -
    • The two arguments of type xmlDocPtrand - xmlNsPtr,i.e.the pointer to the global XML document and the - namespace reserved totheapplication. Document wide information are needed - for example todecodeentities and it's a good coding practice to define a - namespace foryourapplication set of data and test that the element and - attributesyou'reanalyzing actually pertains to your application space. - This isdone by asimple equality test (cur->ns == ns).
    • -
    • To retrieve text and attributes value, you can use - thefunctionxmlNodeListGetStringto gather all the text and - entityreferencenodes generated by the DOM output and produce an single - textstring.
    • -
    - -

    Here is another piece of code used to parse another level -ofthestructure:

    -
    #include <libxml/tree.h>
    -/*
    - * a Description for a Job
    - */
    -typedef struct job {
    -    char *projectID;
    -    char *application;
    -    char *category;
    -    personPtr contact;
    -    int nbDevelopers;
    -    personPtr developers[100]; /* using dynamic alloc is left as an exercise */
    -} job, *jobPtr;
    -
    -/*
    - * And the code needed to parse it
    - */
    -jobPtr parseJob(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur) {
    -    jobPtr ret = NULL;
    -
    -DEBUG("parseJob\n");
    -    /*
    -     * allocate the struct
    -     */
    -    ret = (jobPtr) malloc(sizeof(job));
    -    if (ret == NULL) {
    -        fprintf(stderr,"out of memory\n");
    -        return(NULL);
    -    }
    -    memset(ret, 0, sizeof(job));
    -
    -    /* We don't care what the top level element name is */
    -    cur = cur->xmlChildrenNode;
    -    while (cur != NULL) {
    -        
    -        if ((!strcmp(cur->name, "Project")) && (cur->ns == ns)) {
    -            ret->projectID = xmlGetProp(cur, "ID");
    -            if (ret->projectID == NULL) {
    -                fprintf(stderr, "Project has no ID\n");
    -            }
    -        }
    -        if ((!strcmp(cur->name, "Application")) && (cur->ns == ns))
    -            ret->application = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
    -        if ((!strcmp(cur->name, "Category")) && (cur->ns == ns))
    -            ret->category = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
    -        if ((!strcmp(cur->name, "Contact")) && (cur->ns == ns))
    -            ret->contact = parsePerson(doc, ns, cur);
    -        cur = cur->next;
    -    }
    -
    -    return(ret);
    -}
    - -

    Once you are used to it, writing this kind of code is quite -simple,butboring. Ultimately, it could be possible to write stubbers taking -eitherCdata structure definitions, a set of XML examples or an XML DTD -andproducethe code needed to import and export the content between C data -andXMLstorage. This is left as an exercise to the reader :-)

    - -

    Feel free to use the code for the -fullCparsing exampleas a template, it is also available with Makefile -intheGnome CVS base under gnome-xml/example

    - -

    Contributions

    - - -

    - - diff --git a/src/tools/docbook/libxml2/doc/xmlcatalog.1 b/src/tools/docbook/libxml2/doc/xmlcatalog.1 deleted file mode 100644 index 103d7f074e..0000000000 --- a/src/tools/docbook/libxml2/doc/xmlcatalog.1 +++ /dev/null @@ -1,227 +0,0 @@ -.\" ** You probably do not want to edit this file directly ** -.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). -.\" Instead of manually editing it, you probably should edit the DocBook XML -.\" source for it and then use the DocBook XSL Stylesheets to regenerate it. -.TH "XMLCATALOG" "1" "2006\-03\-05" "libxml2" "" -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.SH "NAME" -xmlcatalog \- Command line tool to parse and manipulate XML or SGML catalog files. -.SH "SYNOPSIS" -.HP 11 -\fBxmlcatalog\fR [\fB\-\-sgml\fR \fB\-\-shell\fR \fB\-\-create\fR \fB\-\-del\ \fR\fB\fIVALUE(S)\fR\fR [\ \fB\-\-add\ \fR\fB\fITYPE\fR\fR\fB\ \fR\fB\fIORIG\fR\fR\fB\ \fR\fB\fIREPLACE\fR\fR\fB\ \fR\ \fB\-\-add\ \fR\fB\fIFILENAME\fR\fR] \fB\-\-noout\fR \fB\-\-no\-super\-update\fR [\fB\-v\fR\ \fB\-\-verbose\fR]] {\fICATALOGFILE\fR} {\fIENTITIES\fR...} -.SH "DESCRIPTION" -.PP -\fBxmlcatalog\fR -is a command line application allowing users to monitor and manipulate -XML -and -SGML -catalogs. It is included in -\fBlibxml\fR(3). -.PP -Its functions can be invoked from a single command from the command line, or it can perform multiple functions in interactive mode. It can operate on both -XML -and -SGML -files. -.PP -More information can be found at -.TP 3 -\(bu -\fBlibxml\fR(3) -web page -\fI\%http://www.xmlsoft.org/\fR -.TP -\(bu -\fBlibxml\fR(3) -catalog support web page at -\fI\%http://www.xmlsoft.org/catalog.html\fR -.TP -\(bu -James Clark's -SGML -catalog page -\fI\%http://www.jclark.com/sp/catalog.htm\fR -.TP -\(bu -OASISXML -catalog specification -\fI\%http://www.oasis\-open.org/committees/entity/spec.html\fR -.SH "OPTIONS" -.PP -\fBxmlcatalog\fR -accepts the following options (in alphabetical order): -.TP -\fB\-\-add \fR\fB\fITYPE\fR\fR\fB \fR\fB\fIORIG\fR\fR\fB \fR\fB\fIREPLACE\fR\fR\fB \fR -Add an entry to -\fICATALOGFILE\fR. -\fITYPE\fR -indicates the type of entry. Possible types are: -\fIpublic\fR, \fIsystem\fR, \fIrewriteSystem\fR, \fIrewriteURI\fR, \fIdelegatePublic\fR, \fIdelegateSystem\fR, \fInextCatalog\fR. -\fIORIG\fR -is the original reference to be replaced, and -\fIREPLACE\fR -is the -URI -of the replacement entity to be used. The -\fB\-\-add\fR -option will not overwrite -\fICATALOGFILE\fR, outputting to -\fIstdout\fR, unless -\fB\-\-noout\fR -is used. The -\fB\-\-add\fR -will always take three parameters even if some of the -XML -catalog constructs will have only a single argument. -.TP -\fB\-\-add \fR\fB\fIFILENAME\fR\fR -If the -\fB\-\-add\fR -option is used following the -\fB\-\-sgml\fR -option, only a single argument, a -\fIFILENAME\fR, is used. This is used to add the name of a catalog file to an -SGML -supercatalog, a file that contains references to other included -SGML -catalog files. -.TP -\fB\-\-create\fR -Create a new -XML -catalog. Outputs to -\fIstdout\fR, ignoring -\fIfilename\fR -unless -\fB\-\-noout\fR -is used, in which case it creates a new catalog file -\fIfilename\fR. -.TP -\fB\-\-del \fR\fB\fIVALUE(S)\fR\fR -Remove entries from -\fICATALOGFILE\fR -matching -\fIVALUE(S)\fR. The -\fB\-\-del\fR -option will not overwrite -\fICATALOGFILE\fR, outputting to -\fIstdout\fR, unless -\fB\-\-noout\fR -is used. -.TP -\fB\-\-noout\fR -Save output to the named file rather than outputting to -\fIstdout\fR. -.TP -\fB\-\-no\-super\-update\fR -Do not update the -SGML -super catalog. -.TP -\fB\-\-shell\fR -Run a shell allowing interactive queries on catalog file -\fICATALOGFILE\fR. For the set of available commands see -the section called \(lqSHELL COMMANDS\(rq. -.TP -\fB\-\-sgml\fR -Uses -SGML -super catalogs for -\fB\-\-add\fR -and -\fB\-\-del\fR -options. -.TP -\fB\-v\fR, \fB\-\-verbose\fR -Output debugging information. -.SH "SHELL COMMANDS" -.PP -Invoking -\fBxmlcatalog\fR -with the -\fB\-\-shell \fR\fB\fICATALOGFILE\fR\fR -option opens a command line shell allowing interactive access to the catalog file identified by -\fICATALOGFILE\fR. Invoking the shell provides a command line prompt after which the following commands (described in alphabetical order) can be entered. -.TP -\fBadd \fR\fB\fITYPE\fR\fR\fB \fR\fB\fIORIG\fR\fR\fB \fR\fB\fIREPLACE\fR\fR\fB \fR -Add an entry to the catalog file. -\fITYPE\fR -indicates the type of entry. Possible types are: -\fIpublic\fR, \fIsystem\fR, \fIrewriteSystem\fR, \fIrewriteURI\fR, \fIdelegatePublic\fR, \fIdelegateSystem\fR, \fInextCatalog\fR. -\fIORIG\fR -is the original reference to be replaced, and -\fIREPLACE\fR -is the -URI -of the replacement entity to be used. The -\fB\-\-add\fR -option will not overwrite -\fICATALOGFILE\fR, outputting to -\fIstdout\fR, unless -\fB\-\-noout\fR -is used. The -\fB\-\-add\fR -will always take three parameters even if some of the -XML -catalog constructs will have only a single argument. -.TP -\fBdebug\fR -Print debugging statements showing the steps -\fBxmlcatalog\fR -is executing. -.TP -\fBdel \fR\fB\fIVALUE(S)\fR\fR -Remove the catalog entry corresponding to -\fIVALUE(S)\fR. -.TP -\fBdump\fR -Print the current catalog. -.TP -\fBexit\fR -Quit the shell. -.TP -\fBpublic \fR\fB\fIPUBLIC\-ID\fR\fR -Execute a public identifier lookup of the catalog entry for -\fIPUBLIC\-ID\fR. The corresponding entry will be output to the command line. -.TP -\fBquiet\fR -Stop printing debugging statements. -.TP -\fBsystem \fR\fB\fISYSTEM\-ID\fR\fR -Execute a public identifier lookup of the catalog entry for -\fISYSTEM\-ID\fR. The corresponding entry will be output to the command line. -.SH "ENVIRONMENT" -.TP -\fBXML_CATALOG_FILES\fR -Catalog behavior can be changed by redirecting queries to the user's own set of catalogs. This can be done by setting the -\fBXML_CATALOG_FILES\fR -environment variable to a list of catalogs. An empty one should deactivate loading the default -\fI/etc/xml/catalog\fR -default catalog. -.SH "DIAGNOSTICS" -.PP -\fBxmlcatalog\fR's return codes provide information that can be used when calling it from scripts. -.TP -\fB0\fR -No error -.TP -\fB1\fR -Failed to remove an entry from the catalog -.TP -\fB2\fR -Failed to save to the catalog, check file permissions -.TP -\fB3\fR -Failed to add an entry to the catalog -.TP -\fB4\fR -Failed to lookup an entry in the catalog -.SH "SEE ALSO" -.PP -\fBlibxml\fR(3) -.SH "AUTHOR" -John Fleck . diff --git a/src/tools/docbook/libxml2/doc/xmlcatalog_man.html b/src/tools/docbook/libxml2/doc/xmlcatalog_man.html deleted file mode 100644 index c27c1ef06c..0000000000 --- a/src/tools/docbook/libxml2/doc/xmlcatalog_man.html +++ /dev/null @@ -1,101 +0,0 @@ -xmlcatalog

    Name

    xmlcatalog — Command line tool to parse and manipulate XML or - SGML catalog files.

    Synopsis

    xmlcatalog [[--shell] | [--create] | [--add type - orig replace] | [--del values] | [--noout] | [--verbose]] [catalogfile] [entities]

    Introduction

    - xmlcatalog is a command line application - allowing users to monitor and manipulate XML and - SGML catalogs. It is included in - libxml2. -

    - Its functions can be invoked from a single command from the command line, - or it can perform multiple functions in interactive mode. It can operate - on both XML and SGML files. -

    Command Line Options

    --shell filename
    - Run a shell - allowing interactive queries on catalog file - filename. -
    --create filename
    - Create a new - XML catalog. Outputs to stdout, ignoring - filename unless --noout is - used, in which case it creates a new catalog file - filename. -
    --add 'type' 'orig' 'replace' filename

    - Add an entry to catalog file - filename. type - indicates the type of entry. Possible types are 'public', 'system', - 'rewriteSystem', 'delegatePublic', 'delegateSystem'amd - 'rewriteURI'. 'orig' is the original - reference to be replaced, and 'replace' - is the URI of the replacement entity to be - used. The --add option will not overwrite - filename, outputing to stdout, unless - --noout is used. The --add will - always take three parameters even if some of the - XML catalog constructs will have only a single - argument. - -

    - If the --add option is used following the - --sgml option, only a single argument, a - filename, is used. This is used to add - the name of a catalog file to an SGML - supercatalog, a file that contains references to other included - SGML catalog files. -

    --del 'values' filename
    - Remove entries from the catalog file - filename matching - 'values'. The --del option - will not overwrite filename, outputing to - stdout, unless --noout is used. -
    --noout
    - Save output to the named file rather than - outputing to stdout. -
    --sgml
    - Uses SGML Super catalogs for --add and --del options -
    -v or --verbose
    - output debugging - information. -

    Shell Commands

    Invoking xmlcatalog with the - --shell filename option opens - a command line shell allowing interactive access to the catalog file - identified by filename. Invoking the shell - provides a command line prompt after which commands can be entered. -

    public 'PublicID'
    - Execute a - public identifier lookup of the catalog entry for - 'PublicID'. The corresponding entry will be - output to the command line. -
    system 'SystemID'
    - Execute a - public identifier lookup of the catalog entry for - 'SystemID'. The corresponding entry will be - output to the command line. -
    add 'type' 'orig' 'replace'
    - Add an entry to the catalog - file. type indicates the type of - entry. Possible types are 'public', 'system', 'rewriteSystem', - 'delegatePublic' and 'delegateSystem'. 'orig' - is the original reference to be replaced, and - 'replace' is the URI of the - replacement entity to be used. -
    del 'values'
    - Remove the - catalog entry corresponding to 'values'. -
    dump
    - Print the current catalog. -
    debug
    - Print debugging statements showing the steps - xmlcatalog is executing. -
    quiet
    - Stop printing debugging statements. -
    exit
    - Quit the shell. -

    Return values

    xmlcatalog's return codes provide - information that can be used when calling it from scripts.

    0: normal

    1: Failed to remove an entry from the catalog

    2: Failed to save to the catalog, check file permissions

    3: Failed to add an entry to the catalog

    4: Failed to lookup and entry in the catalog

    Catalogs

    Catalog behavior can be changed by redirecting - queries to the user's own set of catalogs. This can be done by setting the - XML_CATALOG_FILES environment variable to a list of - catalogs. An empty one should deactivate loading the default - /etc/xml/catalog default catalog.

    diff --git a/src/tools/docbook/libxml2/doc/xmlcatalog_man.xml b/src/tools/docbook/libxml2/doc/xmlcatalog_man.xml deleted file mode 100644 index 088cc23390..0000000000 --- a/src/tools/docbook/libxml2/doc/xmlcatalog_man.xml +++ /dev/null @@ -1,447 +0,0 @@ - - -xmlcatalog"> -]> - - - - - xmlcatalog Manual - libxml2 - - 2001 - 2004 - - - John - Fleck - -
    - jfleck@inkstain.net -
    -
    -
    - - 2006-03-05 - - - -
    - - - xmlcatalog - 1 - - - - xmlcatalog - - Command line tool to parse and manipulate XML - or SGML catalog files. - - - - - - xmlcatalog - - - - - - - - - - - - - - - - - - - - - - - CATALOGFILE - ENTITIES - - - - - DESCRIPTION - - &xmlcatalog; is a command line application allowing users to monitor and - manipulate XML and SGML catalogs. It - is included in - libxml - 3 - . - - - Its functions can be invoked from a single command from the command line, - or it can perform multiple functions in interactive mode. It can operate - on both XML and SGML files. - - More information can be found at - - - - libxml - 3 - web page - - - - - libxml - 3 - catalog support web page - at - - - - James Clark's SGML catalog - page - - - - OASIS XML catalog specification - - - - - - - - - OPTIONS - - &xmlcatalog; accepts the following options (in alphabetical order): - - - - - - - - - - - Add an entry to CATALOGFILE. TYPE - indicates the type of entry. Possible types are: - public - system - rewriteSystem - rewriteURI - delegatePublic - delegateSystem - nextCatalog - . ORIG is the original - reference to be replaced, and REPLACE - is the URI of the replacement entity to be - used. The option will not overwrite - CATALOGFILE, outputting - to stdout, unless - is used. The will - always take three parameters even if some of the XML - catalog constructs will have only a single argument. - - - - - - - - - - If the option is used following - the option, only a single argument, - a FILENAME, is used. This is used to add - the name of a catalog file to an SGML supercatalog, - a file that contains references to other included SGML - catalog files. - - - - - - - - - Create a new XML catalog. Outputs - to stdout, - ignoring filename unless is - used, in which case it creates a new catalog - file filename. - - - - - - - - - Remove entries from CATALOGFILE - matching VALUE(S). The - option will not overwrite CATALOGFILE, - outputting to stdout, - unless is used. - - - - - - - - - Save output to the named file rather than outputting - to stdout. - - - - - - - - - Do not update the SGML super catalog. - - - - - - - - - Run a shell allowing interactive queries on catalog - file CATALOGFILE. For the set of available - commands see . - - - - - - - - - Uses SGML super catalogs for - and options. - - - - - - - - - Output debugging information. - - - - - - - - SHELL COMMANDS - - Invoking &xmlcatalog; with - the option opens - a command line shell allowing interactive access to the catalog file - identified by CATALOGFILE. Invoking the shell - provides a command line prompt after which the following commands (described in - alphabetical order) can be entered. - - - - - - - - - - - Add an entry to the catalog file. TYPE - indicates the type of entry. Possible types are: - public - system - rewriteSystem - rewriteURI - delegatePublic - delegateSystem - nextCatalog - . ORIG is the original - reference to be replaced, and REPLACE - is the URI of the replacement entity to be - used. The option will not overwrite - CATALOGFILE, outputting - to stdout, unless - is used. The will - always take three parameters even if some of the XML - catalog constructs will have only a single argument. - - - - - - - - - Print debugging statements showing the steps &xmlcatalog; is executing. - - - - - - - - - Remove the catalog entry corresponding to VALUE(S). - - - - - - - - Print the current catalog. - - - - - - - Quit the shell. - - - - - - - - Execute a public identifier lookup of the catalog entry - for PUBLIC-ID. The corresponding entry will be - output to the command line. - - - - - - - - Stop printing debugging statements. - - - - - - - - Execute a public identifier lookup of the catalog entry - for SYSTEM-ID. The corresponding entry will be - output to the command line. - - - - - - - - - ENVIRONMENT - - - - XML_CATALOG_FILES - - - Catalog behavior can be changed by redirecting queries to the user's - own set of catalogs. This can be done by setting - the XML_CATALOG_FILES environment variable to a list - of catalogs. An empty one should deactivate loading the - default /etc/xml/catalog default catalog. - - - - - - - - - DIAGNOSTICS - - &xmlcatalog;'s return codes provide information that can be used when - calling it from scripts. - - - - - 0 - - No error - - - - - 1 - - Failed to remove an entry from the catalog - - - - - 2 - - Failed to save to the catalog, check file permissions - - - - - 3 - - Failed to add an entry to the catalog - - - - - 4 - - Failed to lookup an entry in the catalog - - - - - - - - SEE ALSO - - - libxml - 3 - - - - -
    diff --git a/src/tools/docbook/libxml2/doc/xmldtd.html b/src/tools/docbook/libxml2/doc/xmldtd.html deleted file mode 100644 index 3f5a79786c..0000000000 --- a/src/tools/docbook/libxml2/doc/xmldtd.html +++ /dev/null @@ -1,100 +0,0 @@ - - -Validation & DTDs
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    Validation & DTDs

    Main Menu
    Related links

    Table of Content:

    1. General overview
    2. -
    3. The definition
    4. -
    5. Simple rules -
      1. How to reference a DTD from a document
      2. -
      3. Declaring elements
      4. -
      5. Declaring attributes
      6. -
    6. -
    7. Some examples
    8. -
    9. How to validate
    10. -
    11. Other resources
    12. -

    General overview

    Well what is validation and what is a DTD ?

    DTD is the acronym for Document Type Definition. This is a -descriptionofthe content for a family of XML files. This is part of the -XML1.0specification, and allows one to describe and verify that a -givendocumentinstance conforms to the set of rules detailing its structure -andcontent.

    Validation is the process of checking a document against a -DTD(moregenerally against a set of construction rules).

    The validation process and building DTDs are the two most difficultpartsof -the XML life cycle. Briefly a DTD defines all the possible elementsto befound -within your document, what is the formal shape of your documenttree(by -defining the allowed content of an element; either text, aregularexpression -for the allowed list of children, or mixed content i.e.both textand -children). The DTD also defines the valid attributes for allelements andthe -types of those attributes.

    The definition

    The W3C XML Recommendation(Tim Bray's annotated -versionofRev1):

    (unfortunately) all this is inherited from the SGML world, the -syntaxisancient...

    Simple rules

    Writing DTDs can be done in many ways. The rules to build them if -youneedsomething permanent or something which can evolve over time can -beradicallydifferent. Really complex DTDs like DocBook ones are flexible -butquiteharder to design. I will just focus on DTDs for a formats with a -fixedsimplestructure. It is just a set of basic rules, and definitely -notexhaustive norusable for complex DTD design.

    How to reference a DTD from a document:

    Assuming the top element of the document is specand the -dtdisplaced in the file mydtdin the -subdirectorydtdsofthe directory from where the document were -loaded:

    <!DOCTYPE spec SYSTEM "dtds/mydtd">

    Notes:

    • The system string is actually an URI-Reference (as defined in RFC 2396) so you can - useafull URL string indicating the location of your DTD on the Web. This - isareally good thing to do if you want others to validate - yourdocument.
    • -
    • It is also possible to associate a PUBLICidentifier(amagic - string) so that the DTD is looked up in catalogs on the clientsidewithout - having to locate it on the web.
    • -
    • A DTD contains a set of element and attribute declarations, - buttheydon't define what the root of the document should be. This - isexplicitlytold to the parser/validator as the first element - oftheDOCTYPEdeclaration.
    • -

    Declaring elements:

    The following declares an element spec:

    <!ELEMENT spec (front, body, back?)>

    It also expresses that the spec element contains onefront,one -bodyand one optionalbackchildren elements inthis -order. The declaration of oneelement of the structure and its contentare done -in a single declaration.Similarly the following -declaresdiv1elements:

    <!ELEMENT div1 (head, (p | list | note)*, div2?)>

    which means div1 contains one headthen a series -ofoptionalp, lists and notes and -thenanoptional div2. And last but not least an element -cancontaintext:

    <!ELEMENT b (#PCDATA)>

    bcontains text or being of mixed content (text and -elementsinno particular order):

    <!ELEMENT p (#PCDATA|a|ul|b|i|em)*>

    p can contain text or -a,ul,b, i or -emelements inno particularorder.

    Declaring attributes:

    Again the attributes declaration includes their content definition:

    <!ATTLIST termdef name CDATA #IMPLIED>

    means that the element termdefcan have -anameattribute containing text (CDATA) and which -isoptional(#IMPLIED). The attribute value can also be -definedwithin aset:

    <!ATTLIST list -type(bullets|ordered|glossary)"ordered">

    means listelement have a typeattribute -with3allowed values "bullets", "ordered" or "glossary" and which -defaultto"ordered" if the attribute is not explicitly specified.

    The content type of an attribute can be -text(CDATA),anchor/reference/references(ID/IDREF/IDREFS),entity(ies)(ENTITY/ENTITIES) -orname(s)(NMTOKEN/NMTOKENS). The following -definesthat achapterelement can have an -optionalidattributeof type ID, usable for reference -fromattribute of typeIDREF:

    <!ATTLIST chapter id ID #IMPLIED>

    The last value of an attribute definition can -be#REQUIREDmeaning that the attribute has to be -given,#IMPLIEDmeaning that it is optional, or the default -value(possibly prefixed by#FIXEDif it is the only allowed).

    Notes:

    • Usually the attributes pertaining to a given element are declared - inasingle expression, but it is just a convention adopted by a lot - ofDTDwriters: -
      <!ATTLIST termdef
      -          id      ID      #REQUIRED
      -          name    CDATA   #IMPLIED>
      -

      The previous construct defines - bothidandnameattributes for the - elementtermdef.

      -
    • -

    Some examples

    The directory test/valid/dtds/in the -libxml2distributioncontains some complex DTD examples. The example in -thefiletest/valid/dia.xmlshows an XML file where the simple -DTDisdirectly included within the document.

    How to validate

    The simplest way is to use the xmllint program included with -libxml.The--validoption turns-on validation of the files given -asinput.For example the following validates a copy of the first revision of -theXML1.0 specification:

    xmllint --valid --noout test/valid/REC-xml-19980210.xml

    the -- noout is used to disable output of the resulting tree.

    The --dtdvalid dtdallows validation of the -document(s)againsta given DTD.

    Libxml2 exports an API to handle DTDs and validation, check the associateddescription.

    Other resources

    DTDs are as old as SGML. So there may be a number of examples -on-line,Iwill just list one for now, others pointers welcome:

    I suggest looking at the examples found under test/valid/dtd and any -ofthelarge number of books available on XML. The dia example in -test/validshouldbe both simple and complete enough to allow you to build your -own.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/xmlio.html b/src/tools/docbook/libxml2/doc/xmlio.html deleted file mode 100644 index ae71ba1ae2..0000000000 --- a/src/tools/docbook/libxml2/doc/xmlio.html +++ /dev/null @@ -1,136 +0,0 @@ - - -I/O Interfaces
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    I/O Interfaces

    Developer Menu
    API Indexes
    Related links

    Table of Content:

    1. General overview
    2. -
    3. The basic buffer type
    4. -
    5. Input I/O handlers
    6. -
    7. Output I/O handlers
    8. -
    9. The entities loader
    10. -
    11. Example of customized I/O
    12. -

    General overview

    The module xmlIO.hprovidestheinterfaces -to the libxml2 I/O system. This consists of 4 main parts:

    • Entities loader, this is a routine which tries to fetch - theentities(files) based on their PUBLIC and SYSTEM identifiers. The - defaultloaderdon't look at the public identifier since libxml2 do not - maintainacatalog. You can redefine you own entity loader - byusingxmlGetExternalEntityLoader()andxmlSetExternalEntityLoader().Check theexample.
    • -
    • Input I/O buffers which are a commodity structure used by - theparser(s)input layer to handle fetching the informations to feed - theparser. Thisprovides buffering and is also a placeholder where - theencodingconverters to UTF8 are piggy-backed.
    • -
    • Output I/O buffers are similar to the Input ones and fulfillsimilartask - but when generating a serialization from a tree.
    • -
    • A mechanism to register sets of I/O callbacks and associate - themwithspecific naming schemes like the protocol part of the URIs. -

      This affect the default I/O operations and allows to use - specificI/Ohandlers for certain names.

      -
    • -

    The general mechanism used when loading -http://rpmfind.net/xml.htmlforexample in the HTML parser is the following:

    1. The default entity loader - callsxmlNewInputFromFile()withthe parsing context and the - URIstring.
    2. -
    3. the URI string is checked against the existing registered - handlersusingtheir match() callback function, if the HTTP module was - compiledin, it isregistered and its match() function will succeeds
    4. -
    5. the open() function of the handler is called and if - successfulwillreturn an I/O Input buffer
    6. -
    7. the parser will the start reading from this buffer - andprogressivelyfetch information from the resource, calling the - read()function of thehandler until the resource is exhausted
    8. -
    9. if an encoding change is detected it will be installed on - theinputbuffer, providing buffering and efficient use of - theconversionroutines
    10. -
    11. once the parser has finished, the close() function of the - handleriscalled once and the Input buffer and associated - resourcesaredeallocated.
    12. -

    The user defined callbacks are checked first to allow overriding -ofthedefault libxml2 I/O routines.

    The basic buffer type

    All the buffer manipulation handling is done -usingthexmlBuffertype define in tree.hwhich -isaresizable memory buffer. The buffer allocation strategy can be selected -tobeeither best-fit or use an exponential doubling one (CPU vs. -memoryusetrade-off). The values -areXML_BUFFER_ALLOC_EXACTandXML_BUFFER_ALLOC_DOUBLEIT,and -can be set individually or on asystem wide basis -usingxmlBufferSetAllocationScheme(). A numberof functions allows -tomanipulate buffers with names starting -withthexmlBuffer...prefix.

    Input I/O handlers

    An Input I/O handler is a -simplestructurexmlParserInputBuffercontaining a context -associated totheresource (file descriptor, or pointer to a protocol handler), -the read()andclose() callbacks to use and an xmlBuffer. And extra xmlBuffer -and acharsetencoding handler are also present to support charset -conversionwhenneeded.

    Output I/O handlers

    An Output handler xmlOutputBufferis completely similar -toanInput one except the callbacks are write() and close().

    The entities loader

    The entity loader resolves requests for new entities and create -inputsforthe parser. Creating an input from a filename or an URI string -isdonethrough the xmlNewInputFromFile() routine. The default entity loader -donothandle the PUBLIC identifier associated with an entity (if any). So -itjustcalls xmlNewInputFromFile() with the SYSTEM identifier (which -ismandatory inXML).

    If you want to hook up a catalog mechanism then you simply need -tooverridethe default entity loader, here is an example:

    #include <libxml/xmlIO.h>
    -
    -xmlExternalEntityLoader defaultLoader = NULL;
    -
    -xmlParserInputPtr
    -xmlMyExternalEntityLoader(const char *URL, const char *ID,
    -                               xmlParserCtxtPtr ctxt) {
    -    xmlParserInputPtr ret;
    -    const char *fileID = NULL;
    -    /* lookup for the fileID depending on ID */
    -
    -    ret = xmlNewInputFromFile(ctxt, fileID);
    -    if (ret != NULL)
    -        return(ret);
    -    if (defaultLoader != NULL)
    -        ret = defaultLoader(URL, ID, ctxt);
    -    return(ret);
    -}
    -
    -int main(..) {
    -    ...
    -
    -    /*
    -     * Install our own entity loader
    -     */
    -    defaultLoader = xmlGetExternalEntityLoader();
    -    xmlSetExternalEntityLoader(xmlMyExternalEntityLoader);
    -
    -    ...
    -}

    Example of customized I/O

    This example come from areal use case,xmlDocDump() -closes the FILE * passed by the applicationand this was aproblem. The solutionwasto redefine anew -output handler with the closing call deactivated:

    1. First define a new I/O output allocator where the output don't - closethefile: -
      xmlOutputBufferPtr
      -xmlOutputBufferCreateOwn(FILE *file, xmlCharEncodingHandlerPtr encoder) {
      -    xmlOutputBufferPtr ret;
      -    
      -    if (xmlOutputCallbackInitialized == 0)
      -        xmlRegisterDefaultOutputCallbacks();
      -
      -    if (file == NULL) return(NULL);
      -    ret = xmlAllocOutputBuffer(encoder);
      -    if (ret != NULL) {
      -        ret->context = file;
      -        ret->writecallback = xmlFileWrite;
      -        ret->closecallback = NULL;  /* No close callback */
      -    }
      -    return(ret);
      -} 
      -
    2. -
    3. And then use it to save the document: -
      FILE *f;
      -xmlOutputBufferPtr output;
      -xmlDocPtr doc;
      -int res;
      -
      -f = ...
      -doc = ....
      -
      -output = xmlOutputBufferCreateOwn(f, NULL);
      -res = xmlSaveFileTo(output, doc, NULL);
      -    
      -
    4. -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/xmllint.1 b/src/tools/docbook/libxml2/doc/xmllint.1 deleted file mode 100644 index 13e38f53ec..0000000000 --- a/src/tools/docbook/libxml2/doc/xmllint.1 +++ /dev/null @@ -1,406 +0,0 @@ -.\" ** You probably do not want to edit this file directly ** -.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). -.\" Instead of manually editing it, you probably should edit the DocBook XML -.\" source for it and then use the DocBook XSL Stylesheets to regenerate it. -.TH "XMLLINT" "1" "2006\-03\-05" "libxml2" "" -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.SH "NAME" -xmllint \- command line XML tool -.SH "SYNOPSIS" -.HP 8 -\fBxmllint\fR [\fB\-\-version\fR \fB\-\-debug\fR \fB\-\-shell\fR \fB\-\-debugent\fR \fB\-\-copy\fR \fB\-\-recover\fR \fB\-\-noent\fR \fB\-\-noout\fR \fB\-\-nonet\fR \fB\-\-path\ "\fR\fB\fIPATH(S)\fR\fR\fB"\fR \fB\-\-load\-trace\fR \fB\-\-htmlout\fR \fB\-\-nowrap\fR \fB\-\-valid\fR \fB\-\-postvalid\fR \fB\-\-dtdvalid\ \fR\fB\fIURL\fR\fR \fB\-\-dtdvalidfpi\ \fR\fB\fIFPI\fR\fR \fB\-\-timing\fR \fB\-\-output\ \fR\fB\fIFILE\fR\fR \fB\-\-repeat\fR \fB\-\-insert\fR \fB\-\-compress\fR \fB\-\-html\fR \fB\-\-xmlout\fR \fB\-\-push\fR \fB\-\-memory\fR \fB\-\-maxmem\ \fR\fB\fINBBYTES\fR\fR \fB\-\-nowarning\fR \fB\-\-noblanks\fR \fB\-\-nocdata\fR \fB\-\-format\fR \fB\-\-encode\ \fR\fB\fIENCODING\fR\fR \fB\-\-dropdtd\fR \fB\-\-nsclean\fR \fB\-\-testIO\fR \fB\-\-catalogs\fR \fB\-\-nocatalogs\fR \fB\-\-auto\fR \fB\-\-xinclude\fR \fB\-\-noxincludenode\fR \fB\-\-loaddtd\fR \fB\-\-dtdattr\fR \fB\-\-stream\fR \fB\-\-walker\fR \fB\-\-pattern\ \fR\fB\fIPATTERNVALUE\fR\fR \fB\-\-chkregister\fR \fB\-\-relaxng\ \fR\fB\fISCHEMA\fR\fR \fB\-\-schema\ \fR\fB\fISCHEMA\fR\fR \fB\-\-c14n\fR] {\fIXML\-FILE(S)\fR... \-} -.HP 8 -\fBxmllint\fR \fB\-\-help\fR -.SH "DESCRIPTION" -.PP -The -\fBxmllint\fR -program parses one or more XML files, specified on the command line as -\fIXML\-FILE\fR -(or the standard input if the filename provided is -\fB\-\fR -). It prints various types of output, depending upon the options selected. It is useful for detecting errors both in -XML -code and in the -XML -parser itself. -.PP -\fBxmllint\fR -is included in -\fBlibxml\fR(3). -.PP -More information can be found at -.TP 3 -\(bu -\fBlibxml\fR(3) -web page -\fI\%http://www.xmlsoft.org/\fR -.TP -\(bu -W3C -XSLT -page -\fI\%http://www.w3.org/TR/xslt\fR -.SH "OPTIONS" -.PP -\fBxmllint\fR -accepts the following options (in alphabetical order): -.TP -\fB\-\-auto\fR -Generate a small document for testing purposes. -.TP -\fB\-\-catalogs\fR -Use the catalogs from -\fBSGML_CATALOG_FILES\fR. Otherwise -\fI/etc/xml/catalog\fR -is used by default. -.TP -\fB\-\-chkregister\fR -Turn on node registration. Useful for developers testing -\fBlibxml\fR(3) -node tracking code. -.TP -\fB\-\-compress\fR -Turn on -gzip -compression of output. -.TP -\fB\-\-copy\fR -Test the internal copy implementation. -.TP -\fB\-\-c14n\fR -Use the W3C XML Canonicalisation (C14N) to serialize the result of parsing to -\fIstdout\fR. It keeps comments in the result. -.TP -\fB\-\-dtdvalid \fR\fB\fIURL\fR\fR -Use the -DTD -specified by an -\fIURL\fR -for validation. -.TP -\fB\-\-dtdvalidfpi \fR\fB\fIFPI\fR\fR -Use the -DTD -specified by a Public Identifier -\fIFPI\fR -for validation, note that this will require a Catalog exporting that Public Identifier to work. -.TP -\fB\-\-debug\fR -Parse a file and output an annotated tree of the in\-memory version of the document. -.TP -\fB\-\-debugent\fR -Debug the entities defined in the document. -.TP -\fB\-\-dropdtd\fR -Remove -DTD -from output. -.TP -\fB\-\-dtdattr\fR -Fetch external -DTD -and populate the tree with inherited attributes. -.TP -\fB\-\-encode \fR\fB\fIENCODING\fR\fR -Output in the given encoding. -.TP -\fB\-\-format\fR -Reformat and reindent the output. The -\fBXMLLINT_INDENT\fR -environment variable controls the indentation (default value is two spaces " "). -.TP -\fB\-\-help\fR -Print out a short usage summary for -\fBxmllint\fR. -.TP -\fB\-\-html\fR -Use the -HTML -parser. -.TP -\fB\-\-htmlout\fR -Output results as an -HTML -file. This causes -\fBxmllint\fR -to output the necessary -HTML -tags surrounding the result tree output so the results can be displayed/viewed in a browser. -.TP -\fB\-\-insert\fR -Test for valid insertions. -.TP -\fB\-\-loaddtd\fR -Fetch external -DTD. -.TP -\fB\-\-load\-trace\fR -Display all the documents loaded during the processing to -\fIstderr\fR. -.TP -\fB\-\-maxmem \fR\fB\fINNBYTES\fR\fR -Test the parser memory support. -\fINNBYTES\fR -is the maximum number of bytes the library is allowed to allocate. This can also be used to make sure batch processing of -XML -files will not exhaust the virtual memory of the server running them. -.TP -\fB\-\-memory\fR -Parse from memory. -.TP -\fB\-\-noblanks\fR -Drop ignorable blank spaces. -.TP -\fB\-\-nocatalogs\fR -Do not use any catalogs. -.TP -\fB\-\-nocdata\fR -Substitute CDATA section by equivalent text nodes. -.TP -\fB\-\-noent\fR -Substitute entity values for entity references. By default, -\fBxmllint\fR -leaves entity references in place. -.TP -\fB\-\-nonet\fR -Do not use the Internet to fetch -DTDs or entities. -.TP -\fB\-\-noout\fR -Suppress output. By default, -\fBxmllint\fR -outputs the result tree. -.TP -\fB\-\-nowarning\fR -Do not emit warnings from the parser and/or validator. -.TP -\fB\-\-nowrap\fR -Do not output -HTML -doc wrapper. -.TP -\fB\-\-noxincludenode\fR -Do XInclude processing but do not generate XInclude start and end nodes. -.TP -\fB\-\-nsclean\fR -Remove redundant namespace declarations. -.TP -\fB\-\-output \fR\fB\fIFILE\fR\fR -Define a file path where -\fBxmllint\fR -will save the result of parsing. Usually the programs build a tree and save it on -\fIstdout\fR, with this option the result -XML -instance will be saved onto a file. -.TP -\fB\-\-path "\fR\fB\fIPATH(S)\fR\fR\fB"\fR -Use the (space\- or colon\-separated) list of filesystem paths specified by -\fIPATHS\fR -to load -DTDs or entities. Enclose space\-separated lists by quotation marks. -.TP -\fB\-\-pattern \fR\fB\fIPATTERNVALUE\fR\fR -Used to exercise the pattern recognition engine, which can be used with the reader interface to the parser. It allows to select some nodes in the document based on an XPath (subset) expression. Used for debugging. -.TP -\fB\-\-postvalid\fR -Validate after parsing is completed. -.TP -\fB\-\-push\fR -Use the push mode of the parser. -.TP -\fB\-\-recover\fR -Output any parsable portions of an invalid document. -.TP -\fB\-\-relaxng \fR\fB\fISCHEMA\fR\fR -Use RelaxNG file named -\fISCHEMA\fR -for validation. -.TP -\fB\-\-repeat\fR -Repeat 100 times, for timing or profiling. -.TP -\fB\-\-schema \fR\fB\fISCHEMA\fR\fR -Use a W3C XML Schema file named -\fISCHEMA\fR -for validation. -.TP -\fB\-\-shell\fR -Run a navigating shell. Details on available commands in shell mode are below (see -the section called \(lqSHELL COMMANDS\(rq). -.TP -\fB\-\-stream\fR -Use streaming API \- useful when used in combination with -\fB\-\-relaxng\fR -or -\fB\-\-valid\fR -options for validation of files that are too large to be held in memory. -.TP -\fB\-\-testIO\fR -Test user input/output support. -.TP -\fB\-\-timing\fR -Output information about the time it takes -\fBxmllint\fR -to perform the various steps. -.TP -\fB\-\-valid\fR -Determine if the document is a valid instance of the included Document Type Definition (DTD). A -DTD -to be validated against also can be specified at the command line using the -\fB\-\-dtdvalid\fR -option. By default, -\fBxmllint\fR -also checks to determine if the document is well\-formed. -.TP -\fB\-\-version\fR -Display the version of -\fBlibxml\fR(3) -used. -.TP -\fB\-\-walker\fR -Test the walker module, which is a reader interface but for a document tree, instead of using the reader -API -on an unparsed document it works on a existing in\-memory tree. Used in debugging. -.TP -\fB\-\-xinclude\fR -Do XInclude processing. -.TP -\fB\-\-xmlout\fR -Used in conjunction with -\fB\-\-html\fR. Usually when -HTML -is parsed the document is saved with the -HTML -serializer, but with this option the resulting document is saved with the -XML -serializer. This is primarily used to generate -XHTML -from -HTML -input. -.SH "SHELL COMMANDS" -.PP -\fBxmllint\fR -offers an interactive shell mode invoked with the -\fB\-\-shell\fR -command. Available commands in shell mode include (in alphabetical order): -.TP -\fBbase\fR -Display -XML -base of the node. -.TP -\fBbye\fR -Leave the shell. -.TP -\fBcat \fR\fB\fINODE\fR\fR -Display the given node or the current one. -.TP -\fBcd \fR\fB\fIPATH\fR\fR -Change the current node to the given path (if unique) or root if no argument is given. -.TP -\fBdir \fR\fB\fIPATH\fR\fR -Dumps information about the node (namespace, attributes, content). -.TP -\fBdu \fR\fB\fIPATH\fR\fR -Show the structure of the subtree under the given path or the current node. -.TP -\fBexit\fR -Leave the shell. -.TP -\fBhelp\fR -Show this help. -.TP -\fBfree\fR -Display memory usage. -.TP -\fBload \fR\fB\fIFILENAME\fR\fR -Load a new document with the given filename. -.TP -\fBls \fR\fB\fIPATH\fR\fR -List contents of the given path or the current directory. -.TP -\fBpwd\fR -Display the path to the current node. -.TP -\fBquit\fR -Leave the shell. -.TP -\fBsave \fR\fB\fIFILENAME\fR\fR -Save the current document to the given filename or to the original name. -.TP -\fBvalidate\fR -Check the document for errors. -.TP -\fBwrite \fR\fB\fIFILENAME\fR\fR -Write the current node to the given filename. -.SH "ENVIRONMENT" -.TP -\fBSGML_CATALOG_FILES\fR -to be written ... -.TP -\fBXML_CATALOG_FILES\fR -Catalog behavior can be changed by redirecting queries to the user's own set of catalogs. This can be done by setting the -\fBXML_CATALOG_FILES\fR -environment variable to a list of catalogs. An empty one should deactivate loading the default -\fI/etc/xml/catalog\fR -default catalog. -.TP -\fBXML_DEBUG_CATALOG\fR -Setting the environment variable -\fBXML_DEBUG_CATALOG\fR -using the -\fBexport\fR -command outputs debugging information related to catalog operations. -.TP -\fBXMLLINT_INDENT\fR -to be written ... -.SH "DIAGNOSTICS" -.PP -On the completion of execution, -\fBxmllint\fR -returns the following error codes: -.TP -\fB0\fR -No error -.TP -\fB1\fR -Unclassified -.TP -\fB2\fR -Error in -DTD -.TP -\fB3\fR -Validation error -.TP -\fB4\fR -Validation error -.TP -\fB5\fR -Error in schema compilation -.TP -\fB6\fR -Error writing output -.TP -\fB7\fR -Error in pattern (generated when -\fB\-\-pattern\fR -option is used) -.TP -\fB8\fR -Error in Reader registration (generated when -\fB\-\-chkregister\fR -option is used) -.TP -\fB9\fR -Out of memory error -.SH "SEE ALSO" -.PP -\fBlibxml\fR(3) -.SH "AUTHOR" -John Fleck , Ziying Sherwin , Heiko Rupp . diff --git a/src/tools/docbook/libxml2/doc/xmllint.html b/src/tools/docbook/libxml2/doc/xmllint.html deleted file mode 100644 index 0a55877c07..0000000000 --- a/src/tools/docbook/libxml2/doc/xmllint.html +++ /dev/null @@ -1,175 +0,0 @@ -xmllint

    Name

    xmllint — command line XML tool

    Synopsis

    xmllint [[--version] | [--debug] | [--shell] | [--debugent] | [--copy] | [--recover] | [--noent] | [--noout] | [--nonet] | [--htmlout] | [--nowrap] | [--valid] | [--postvalid] | [--dtdvalid URL] | [--dtdvalidfpi FPI] | [--timing] | [--output file] | [--repeat] | [--insert] | [--compress] | [--html] | [--xmlout] | [--push] | [--memory] | [--maxmem nbbytes] | [--nowarning] | [--noblanks] | [--nocdata] | [--format] | [--encode encoding] | [--dropdtd] | [--nsclean] | [--testIO] | [--catalogs] | [--nocatalogs] | [--auto] | [--xinclude] | [--noxincludenode] | [--loaddtd] | [--dtdattr] | [--stream] | [--walker] | [--pattern patternvalue] | [--chkregister] | [--relaxng] | [--schema] | [--c14n]] [xmlfile]

    Introduction

    - The xmllint program parses one or more XML files, specified on the - command line as xmlfile. It prints various - types of output, depending upon the options selected. It is useful for - detecting errors both in XML code and in the - XML parser itself. -

    - It is included in libxml2. -

    Options

    --version
    - Display the version of - libxml2 used. -
    --debug
    - Parse a file and output an annotated tree of the - in-memory version of the document. -
    --shell
    - Run a navigating shell. Details on available commands in shell mode - are below. -
    --debugent
    - Debug the entities defined in the document. -
    --copy
    - Test the internal copy implementation. -
    --recover
    - Output any parsable portions of an invalid - document. -
    --noent
    - Substitute entity values for entity - references. By default, xmllint leaves entity - references in place. -
    --nocdata
    - Substitute CDATA section by equivalent text nodes. -
    --nsclean
    - Remove redundant namespace declarations. -
    --noout
    - Suppress output. By default, - xmllint outputs the result tree. -
    --htmlout
    - Output results as an HTML - file. This causes xmllint to output - the necessary HTML tags surrounding the result tree - output so the results can be displayed in a browser. -
    --nowrap
    - Do not output HTML doc wrapper. -
    --valid
    - Determine if the document is a valid instance - of the included Document Type Definition (DTD). A - DTD to be validated against also can be specified at - the command line using the --dtdvalid option. By default, - xmllint also checks to determine if the - document is well-formed. -
    --postvalid
    - Validate after parsing is completed. -
    --dtdvalid URL
    - Use the - DTD specified by URL for - validation. -
    --dtdvalidfpi FPI
    - Use the - DTD specified by the Public Identifier - FPI for validation, note that this - will require a Catalog exporting that Public Identifier to work. -
    --timing
    - Output information about the time it takes - xmllint to perform the various steps. -
    --output file
    Define a file path where xmllint will save the result of - parsing. Usually the programs build a tree and save it on stdout, with - this option the result XML instance will be saved onto a file.
    --repeat
    - Repeat 100 times, for timing or profiling. -
    --insert
    - Test for valid insertions. -
    --compress
    - Turn on gzip compression of output. -
    --html
    - Use the HTML parser. -
    --xmlout
    Used in conjunction with --html. Usually - when HTML is parsed the document is saved with the HTML serializer, but with - this option the resulting document is saved with the XML serializer. This is - primarily used to generate XHTML from HTML input.
    --push
    - Use the push mode of the parser. -
    --memory
    - Parse from memory. -
    --maxmem nnbytes
    Test the parser memory - support. nnbytes is the maximum number of bytes the - library is allowed to allocate. This can also be used to make sure batch - processing of XML files will not exhaust the virtual memory of the server - running them.
    --nowarning
    - Do not emit warnings from the parser and/or validator. -
    --noblanks
    - Drop ignorable blank spaces. -
    --format
    - Reformat and reindent the output. The $XMLLINT_INDENT - environment variable controls the indentation (default - value is two spaces " "). -
    --testIO
    - Test user input/output support. -
    --encode encoding
    - Output in the given encoding. -
    --catalogs
    - Use the catalogs from $SGML_CATALOG_FILES. Otherwise /etc/xml/catalog - is used by default. -
    --nocatalogs
    - Do not use any catalogs. -
    --auto
    - Generate a small document for testing purposes. -
    --xinclude
    - Do XInclude processing. -
    --noxincludenode
    - Do XInclude processing but do not generate XInclude start and end - nodes. -
    --loaddtd
    - Fetch external DTD. -
    --dtdattr
    - Fetch external DTD and populate the tree with inherited attributes. -
    --dropdtd
    - Remove DTD from output. -
    --stream
    Use streaming API - useful when used in combination with - --relaxng or --valid options for validation of files that are - too large to be held in memory.
    --walker
    Test the walker module, which is a reader interface but for a - document tree, instead of using the reader API on an unparsed document it - works on a existing in-memory tree. Used in debugging.
    --chkregister
    Turn on node registration. Useful for developers testing - libxml2 node tracking code.
    --pattern patternvalue
    Used to exercise the pattern recognition engine, which can be - used with the reader interface to the parser. It allows to select some - nodes in the document based on an XPath (subset) expression. Used for - debugging.
    --relaxng schema
    Use RelaxNG file named schema for - validation.
    --schema schema
    Use a W3C XML Schema file named schema for validation.
    - --c14n
    Use the W3C XML Canonicalisation (C14N) to -serialize the result of parsing to stdout. It keeps comments in -the result.

    Shell

    - xmllint offers an interactive shell mode - invoked with the --shell command. Available commands in - shell mode include: -

    base
    - display XML base of the node -
    bye
    - leave shell -
    cat node
    - Display node if given or current node. -
    cd path
    - Change the current node to path (if given - and unique) or root if no argument given. -
    dir path
    - Dumps information about the node (namespace, attributes, content). -
    du path
    - Show the structure of the subtree under path or the current node. -
    exit
    - Leave the shell. -
    help
    - Show this help. -
    free
    - Display memory usage. -
    load name
    - Load a new document with the given name. -
    ls path
    - List contents of path (if given) or the - current directory. -
    pwd
    - Display the path to the current node. -
    quit
    - Leave the shell. -
    save name
    - Saves the current document to name if - given or to the original name. -
    validate
    - Check the document for error. -
    write name
    - Write the current node to the given filename. -

    Catalogs

    Catalog behavior can be changed by redirecting - queries to the user's own set of catalogs. This can be done by setting the - XML_CATALOG_FILES environment variable to a list of - catalogs. An empty one should deactivate loading the default - /etc/xml/catalog default catalog.

    Debugging Catalogs

    Setting the environment variable XML_DEBUG_CATALOG - using the command "export XML_DEBUG_CATALOG=" - outputs debugging information related to catalog operations.

    Error Return Codes

    On the completion of execution, Xmllint - returns the following error codes:

    0
    No error
    1
    Unclassified
    2
    Error in DTD
    3
    Validation error
    4
    Validation error
    5
    Error in schema compilation
    6
    Error writing output
    7
    Error in pattern (generated when - [--pattern] option is used)
    8
    Error in Reader registration (generated when - [--chkregister] option is used)
    9
    Out of memory error
    diff --git a/src/tools/docbook/libxml2/doc/xmllint.xml b/src/tools/docbook/libxml2/doc/xmllint.xml deleted file mode 100644 index 904e706a86..0000000000 --- a/src/tools/docbook/libxml2/doc/xmllint.xml +++ /dev/null @@ -1,908 +0,0 @@ - - -xmllint"> -]> - - - - - xmllint Manual - libxml2 - - 2001 - 2004 - - - - John - Fleck - -
    - jfleck@inkstain.net -
    -
    -
    - - Ziying - Sherwin - -
    - sherwin@nlm.nih.gov -
    -
    -
    - - Heiko - Rupp - -
    - hwr@pilhuhn.de -
    -
    -
    -
    - - 2006-03-05 - - - -
    - - - xmllint - 1 - - - - xmllint - command line XML tool - - - - - xmllint - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - XML-FILE(S) - - - - - - xmllint - - - - - - DESCRIPTION - - The &xmllint; program parses one or more XML files, specified on the - command line as XML-FILE (or the standard - input if the filename provided is - ). - It prints various types of output, depending upon the options selected. - It is useful for detecting errors both - in XML code and in the XML parser - itself. - - &xmllint; is included in - libxml - 3 - . - More information can be found at - - - - libxml - 3 - web page - - - - - W3C XSLT page - - - - - - - - OPTIONS - - &xmllint; accepts the following options (in alphabetical order): - - - - - - - - Generate a small document for testing purposes. - - - - - - - - Use the catalogs from SGML_CATALOG_FILES. - Otherwise /etc/xml/catalog is used by default. - - - - - - - - - Turn on node registration. Useful for developers testing - libxml - 3 - node tracking code. - - - - - - - - - Turn on gzip compression of output. - - - - - - - - Test the internal copy implementation. - - - - - - - - Use the W3C XML Canonicalisation (C14N) to serialize - the result of parsing to stdout. - It keeps comments in the result. - - - - - - - - - Use the DTD specified by - an URL for validation. - - - - - - - - - Use the DTD specified by a Public - Identifier FPI for validation, note that this - will require a Catalog exporting that Public Identifier to work. - - - - - - - - - Parse a file and output an annotated tree of the - in-memory version of the document. - - - - - - - - Debug the entities defined in the document. - - - - - - - Remove DTD from output. - - - - - - - - Fetch external DTD and populate the tree with - inherited attributes. - - - - - - - - Output in the given encoding. - - - - - - - - Reformat and reindent the output. The XMLLINT_INDENT - environment variable controls the indentation (default value is two - spaces " "). - - - - - - - - Print out a short usage summary for &xmllint;. - - - - - - - Use the HTML parser. - - - - - - - - Output results as an HTML file. This - causes &xmllint; to output the necessary HTML - tags surrounding the result tree output so the results can be - displayed/viewed in a browser. - - - - - - - - Test for valid insertions. - - - - - - - Fetch external DTD. - - - - - - - - Display all the documents loaded during the processing - to stderr. - - - - - - - - - Test the parser memory support. NNBYTES - is the maximum number of bytes the library is allowed to allocate. - This can also be used to make sure batch processing - of XML files will not exhaust the virtual memory - of the server running them. - - - - - - - - Parse from memory. - - - - - - - Drop ignorable blank spaces. - - - - - - - Do not use any catalogs. - - - - - - - Substitute CDATA section by equivalent text nodes. - - - - - - - - Substitute entity values for entity references. By default, &xmllint; - leaves entity references in place. - - - - - - - - - Do not use the Internet to fetch DTDs or entities. - - - - - - - - - Suppress output. By default, &xmllint; outputs the result tree. - - - - - - - - Do not emit warnings from the parser and/or validator. - - - - - - - Do not output HTML doc wrapper. - - - - - - - - Do XInclude processing but do not generate XInclude start and end nodes. - - - - - - - - Remove redundant namespace declarations. - - - - - - - - Define a file path where &xmllint; will save the result of parsing. - Usually the programs build a tree and save it - on stdout, with this option - the result XML instance will be saved onto a file. - - - - - - - - - Use the (space- or colon-separated) list of filesystem paths specified - by PATHS to load DTDs or - entities. Enclose space-separated lists by quotation marks. - - - - - - - - - Used to exercise the pattern recognition engine, which can be used - with the reader interface to the parser. It allows to select some - nodes in the document based on an XPath (subset) expression. Used - for debugging. - - - - - - - - Validate after parsing is completed. - - - - - - - Use the push mode of the parser. - - - - - - - Output any parsable portions of an invalid document. - - - - - - - - Use RelaxNG file named SCHEMA - for validation. - - - - - - - - Repeat 100 times, for timing or profiling. - - - - - - - - Use a W3C XML Schema file named SCHEMA - for validation. - - - - - - - - - Run a navigating shell. Details on available commands in shell mode - are below (see ). - - - - - - - - - Use streaming API - useful when used in combination - with or options - for validation of files that are too large to be held in memory. - - - - - - - - Test user input/output support. - - - - - - - - Output information about the time it takes &xmllint; to perform the - various steps. - - - - - - - - - Determine if the document is a valid instance of the included - Document Type Definition (DTD). - A DTD to be validated against also can be - specified at the command line using the - option. By default, &xmllint; also checks to determine if the - document is well-formed. - - - - - - - - - Display the version of - libxml - 3 - used. - - - - - - - - - Test the walker module, which is a reader interface but for a - document tree, instead of using the reader API on - an unparsed document it works on a existing in-memory tree. Used in - debugging. - - - - - - - - Do XInclude processing. - - - - - - - - Used in conjunction with . Usually - when HTML is parsed the document is saved with - the HTML serializer, but with this option the - resulting document is saved with the XML - serializer. This is primarily used to - generate XHTML - from HTML input. - - - - - - - - - SHELL COMMANDS - - &xmllint; offers an interactive shell mode invoked with - the command. Available commands in shell mode - include (in alphabetical order): - - - - - base - - Display XML base of the node. - - - - - bye - - Leave the shell. - - - - - cat NODE - - Display the given node or the current one. - - - - - cd PATH - - - Change the current node to the given path (if unique) or root if no - argument is given. - - - - - - dir PATH - - - Dumps information about the node (namespace, attributes, content). - - - - - - du PATH - - - Show the structure of the subtree under the given path or the current node. - - - - - - exit - - Leave the shell. - - - - - help - - Show this help. - - - - - free - - Display memory usage. - - - - - load FILENAME - - Load a new document with the given filename. - - - - - ls PATH - - List contents of the given path or the current directory. - - - - - pwd - - Display the path to the current node. - - - - - quit - - Leave the shell. - - - - - save FILENAME - - - Save the current document to the given filename or to the original name. - - - - - - - - Check the document for errors. - - - - - write FILENAME - - Write the current node to the given filename. - - - - - - - - ENVIRONMENT - - - - SGML_CATALOG_FILES - - to be written ... - - - - - XML_CATALOG_FILES - - - Catalog behavior can be changed by redirecting queries to the user's - own set of catalogs. This can be done by setting - the XML_CATALOG_FILES environment variable to a list - of catalogs. An empty one should deactivate loading the - default /etc/xml/catalog default catalog. - - - - - - XML_DEBUG_CATALOG - - - Setting the environment variable XML_DEBUG_CATALOG - using the export command outputs debugging information - related to catalog operations. - - - - - - XMLLINT_INDENT - - to be written ... - - - - - - - - DIAGNOSTICS - - On the completion of execution, &xmllint; returns the following error codes: - - - - - - 0 - - No error - - - - - 1 - - Unclassified - - - - - 2 - - Error in DTD - - - - - 3 - - Validation error - - - - - 4 - - Validation error - - - - - 5 - - Error in schema compilation - - - - - 6 - - Error writing output - - - - - 7 - - - Error in pattern (generated when option is used) - - - - - - 8 - - - Error in Reader registration (generated - when option is used) - - - - - - 9 - - Out of memory error - - - - - - - - SEE ALSO - - - libxml - 3 - - - - -
    diff --git a/src/tools/docbook/libxml2/doc/xmlmem.html b/src/tools/docbook/libxml2/doc/xmlmem.html deleted file mode 100644 index 40dc4cb5bd..0000000000 --- a/src/tools/docbook/libxml2/doc/xmlmem.html +++ /dev/null @@ -1,102 +0,0 @@ - - -Memory Management
    Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
    Made with Libxml2 Logo

    The XML C parser and toolkit of Gnome

    Memory Management

    Developer Menu
    API Indexes
    Related links

    Table of Content:

    1. General overview
    2. -
    3. Setting libxml2 set of memory routines
    4. -
    5. Cleaning up after parsing
    6. -
    7. Debugging routines
    8. -
    9. General memory requirements
    10. -

    General overview

    The module xmlmemory.hprovidesthe -interfaces to the libxml2 memory system:

    • libxml2 does not use the libc memory allocator directly - butxmlFree(),xmlMalloc() and xmlRealloc()
    • -
    • those routines can be reallocated to a specific set of - routine,bydefault the libc ones i.e. free(), malloc() and realloc()
    • -
    • the xmlmemory.c module includes a set of debugging routine
    • -

    Setting libxml2 set of memory routines

    It is sometimes useful to not use the default memory allocator, -eitherfordebugging, analysis or to implement a specific behaviour on -memorymanagement(like on embedded systems). Two function calls are available -to doso:

    • xmlMemGet()whichreturn - the current set of functions in use by the parser
    • -
    • xmlMemSetup()whichallow - to set up a new set of memory allocation functions
    • -

    Of course a call to xmlMemSetup() should probably be done beforecallingany -other libxml2 routines (unless you are sure your allocationsroutines -arecompatibles).

    Cleaning up after parsing

    Libxml2 is not stateless, there is a few set of memory -structuresneedingallocation before the parser is fully functional (some -encodingstructuresfor example). This also mean that once parsing is finished -there isa tinyamount of memory (a few hundred bytes) which can be recollected -if youdon'treuse the parser immediately:

    • xmlCleanupParser()isa - centralized routine to free the parsing states. Note that - itwon'tdeallocate any produced tree if any (use the xmlFreeDoc() - andrelatedroutines for this).
    • -
    • xmlInitParser()isthe - dual routine allowing to preallocate the parsing statewhich can beuseful - for example to avoid initialization reentrancyproblems when usinglibxml2 - in multithreaded applications
    • -

    Generally xmlCleanupParser() is safe, if needed the state will berebuildat -the next invocation of parser routines, but be careful of theconsequencesin -multithreaded applications.

    Debugging routines

    When configured using --with-mem-debug flag (off by default), libxml2usesa -set of memory allocation debugging routines keeping track of -allallocatedblocks and the location in the code where the routine was called. -Acouple ofother debugging routines allow to dump the memory allocated infos -toa fileor call a specific routine when a given block number is allocated:

    When developing libxml2 memory debug is enabled, the tests -programscallxmlMemoryDump () and the "make test" regression tests will check -foranymemory leak during the full regression test sequence, this helps -alotensuring that libxml2 does not leak memory and bullet -proofmemoryallocations use (some libc implementations are known to be far -toopermissiveresulting in major portability problems!).

    If the .memdump reports a leak, it displays the allocation functionandalso -tries to give some informations about the content and structure -oftheallocated blocks left. This is sufficient in most cases to find -theculprit,but not always. Assuming the allocation problem is reproducible, -itispossible to find more easily:

    1. write down the block number xxxx not allocated
    2. -
    3. export the environment variable XML_MEM_BREAKPOINT=xxxx , - theeasiestwhen using GDB is to simply give the command -

      set environment XML_MEM_BREAKPOINT xxxx

      -

      before running the program.

      -
    4. -
    5. run the program under a debugger and set a - breakpointonxmlMallocBreakpoint() a specific function called when this - preciseblockis allocated
    6. -
    7. when the breakpoint is reached you can then do a fine analysis - oftheallocation an step to see the condition resulting in - themissingdeallocation.
    8. -

    I used to use a commercial tool to debug libxml2 memory problems -butafternoticing that it was not detecting memory leaks that simple -mechanismwasused and proved extremely efficient until now. Lately I have also -used valgrindwith quite -somesuccess,it is tied to the i386 architecture since it works by emulating -theprocessorand instruction set, it is slow but extremely efficient, i.e. -itspot memoryusage errors in a very precise way.

    General memory requirements

    How much libxml2 memory require ? It's hard to tell in average itdependsof -a number of things:

    • the parser itself should work in a fixed amount of memory, - exceptforinformation maintained about the stacks of names and - entitieslocations.The I/O and encoding handlers will probably account for - a fewKBytes.This is true for both the XML and HTML parser (though the - HTMLparserneed more state).
    • -
    • If you are generating the DOM tree then memory requirements - willgrownearly linear with the size of the data. In general for - abalancedtextual document the internal memory requirement is about 4 - timesthesize of the UTF8 serialization of this document (example - theXML-1.0recommendation is a bit more of 150KBytes and takes 650KBytes - ofmainmemory when parsed). Validation will add a amount of memory - requiredformaintaining the external Dtd state which should be linear - withthecomplexity of the content model defined by the Dtd
    • -
    • If you need to work with fixed memory requirements or don't needthefull - DOM tree then using the xmlReaderinterfaceis - probably the best way toproceed, it still allows tovalidate or operate on - subset of the tree ifneeded.
    • -
    • If you don't care about the advanced features of libxml2likevalidation, - DOM, XPath or XPointer, don't use entities, need to workwithfixed memory - requirements, and try to get the fastest parsingpossiblethen the SAX - interface should be used, but it has knownrestrictions.
    • -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxml2/doc/xmlreader.html b/src/tools/docbook/libxml2/doc/xmlreader.html deleted file mode 100644 index b8382a8bc4..0000000000 --- a/src/tools/docbook/libxml2/doc/xmlreader.html +++ /dev/null @@ -1,475 +0,0 @@ - - - - - - - Libxml2 XmlTextReader Interface tutorial - - - -

    Libxml2 XmlTextReader Interface tutorial

    - -

    - -

    This document describes the use of the XmlTextReader streaming API added -to libxml2 in version 2.5.0 . This API is closely modeled after the XmlTextReader -and XmlReader -classes of the C# language.

    - -

    This tutorial will present the key points of this API, and working -examples using both C and the Python bindings:

    - -

    Table of content:

    - - -

    - -

    Introduction: why a new API

    - -

    Libxml2 main API is -tree based, where the parsing operation results in a document loaded -completely in memory, and expose it as a tree of nodes all availble at the -same time. This is very simple and quite powerful, but has the major -limitation that the size of the document that can be hamdled is limited by -the size of the memory available. Libxml2 also provide a SAX based API, but that version was -designed upon one of the early expat version of SAX, SAX is -also not formally defined for C. SAX basically work by registering callbacks -which are called directly by the parser as it progresses through the document -streams. The problem is that this programming model is relatively complex, -not well standardized, cannot provide validation directly, makes entity, -namespace and base processing relatively hard.

    - -

    The XmlTextReader -API from C# provides a far simpler programming model. The API acts as a -cursor going forward on the document stream and stopping at each node in the -way. The user's code keeps control of the progress and simply calls a -Read() function repeatedly to progress to each node in sequence in document -order. There is direct support for namespaces, xml:base, entity handling and -adding DTD validation on top of it was relatively simple. This API is really -close to the DOM Core -specification This provides a far more standard, easy to use and powerful -API than the existing SAX. Moreover integrating extension features based on -the tree seems relatively easy.

    - -

    In a nutshell the XmlTextReader API provides a simpler, more standard and -more extensible interface to handle large documents than the existing SAX -version.

    - -

    Walking a simple tree

    - -

    Basically the XmlTextReader API is a forward only tree walking interface. -The basic steps are:

    -
      -
    1. prepare a reader context operating on some input
    2. -
    3. run a loop iterating over all nodes in the document
    4. -
    5. free up the reader context
    6. -
    - -

    Here is a basic C sample doing this:

    -
    #include <libxml/xmlreader.h>
    -
    -void processNode(xmlTextReaderPtr reader) {
    -    /* handling of a node in the tree */
    -}
    -
    -int streamFile(char *filename) {
    -    xmlTextReaderPtr reader;
    -    int ret;
    -
    -    reader = xmlNewTextReaderFilename(filename);
    -    if (reader != NULL) {
    -        ret = xmlTextReaderRead(reader);
    -        while (ret == 1) {
    -            processNode(reader);
    -            ret = xmlTextReaderRead(reader);
    -        }
    -        xmlFreeTextReader(reader);
    -        if (ret != 0) {
    -            printf("%s : failed to parse\n", filename);
    -        }
    -    } else {
    -        printf("Unable to open %s\n", filename);
    -    }
    -}
    - -

    A few things to notice:

    -
      -
    • the include file needed : libxml/xmlreader.h
    • -
    • the creation of the reader using a filename
    • -
    • the repeated call to xmlTextReaderRead() and how any return value - different from 1 should stop the loop
    • -
    • that a negative return means a parsing error
    • -
    • how xmlFreeTextReader() should be used to free up the resources used by - the reader.
    • -
    - -

    Here is similar code in python for exactly the same processing:

    -
    import libxml2
    -
    -def processNode(reader):
    -    pass
    -
    -def streamFile(filename):
    -    try:
    -        reader = libxml2.newTextReaderFilename(filename)
    -    except:
    -        print "unable to open %s" % (filename)
    -        return
    -
    -    ret = reader.Read()
    -    while ret == 1:
    -        processNode(reader)
    -        ret = reader.Read()
    -
    -    if ret != 0:
    -        print "%s : failed to parse" % (filename)
    - -

    The only things worth adding are that the xmlTextReader -is abstracted as a class like in C# with the same method names (but the -properties are currently accessed with methods) and that one doesn't need to -free the reader at the end of the processing. It will get garbage collected -once all references have disapeared.

    - -

    Extracting information for the current node

    - -

    So far the example code did not indicate how information was extracted -from the reader. It was abstrated as a call to the processNode() routine, -with the reader as the argument. At each invocation, the parser is stopped on -a given node and the reader can be used to query those node properties. Each -Property is available at the C level as a function taking a single -xmlTextReaderPtr argument whose name is -xmlTextReaderProperty , if the return type is an -xmlChar * string then it must be deallocated with -xmlFree() to avoid leaks. For the Python interface, there is a -Property method to the reader class that can be called on the -instance. The list of the properties is based on the C# -XmlTextReader class set of properties and methods:

    -
      -
    • NodeType: The node type, 1 for start element, 15 for end of - element, 2 for attributes, 3 for text nodes, 4 for CData sections, 5 for - entity references, 6 for entity declarations, 7 for PIs, 8 for comments, - 9 for the document nodes, 10 for DTD/Doctype nodes, 11 for document - fragment and 12 for notation nodes.
    • -
    • Name: the qualified - name of the node, equal to (Prefix:)LocalName.
    • -
    • LocalName: the local name of - the node.
    • -
    • Prefix: a shorthand reference to the namespace associated with - the node.
    • -
    • NamespaceUri: the URI defining the namespace associated with - the node.
    • -
    • BaseUri: the base URI of the node. See the XML Base W3C specification.
    • -
    • Depth: the depth of the node in the tree, starts at 0 for the - root node.
    • -
    • HasAttributes: whether the node has attributes.
    • -
    • HasValue: whether the node can have a text value.
    • -
    • Value: provides the text value of the node if present.
    • -
    • IsDefault: whether an Attribute node was generated from the - default value defined in the DTD or schema (unsupported - yet).
    • -
    • XmlLang: the xml:lang scope - within which the node resides.
    • -
    • IsEmptyElement: check if the current node is empty, this is a - bit bizarre in the sense that <a/> will be considered - empty while <a></a> will not.
    • -
    • AttributeCount: provides the number of attributes of the - current node.
    • -
    - -

    Let's look first at a small example to get this in practice by redefining -the processNode() function in the Python example:

    -
    def processNode(reader):
    -    print "%d %d %s %d" % (reader.Depth(), reader.NodeType(),
    -                           reader.Name(), reader.IsEmptyElement())
    - -

    and look at the result of calling streamFile("tst.xml") for various -content of the XML test file.

    - -

    For the minimal document "<doc/>" we get:

    -
    0 1 doc 1
    - -

    Only one node is found, its depth is 0, type 1 indicate an element start, -of name "doc" and it is empty. Trying now with -"<doc></doc>" instead leads to:

    -
    0 1 doc 0
    -0 15 doc 0
    - -

    The document root node is not flagged as empty anymore and both a start -and an end of element are detected. The following document shows how -character data are reported:

    -
    <doc><a/><b>some text</b>
    -<c/></doc>
    - -

    We modifying the processNode() function to also report the node Value:

    -
    def processNode(reader):
    -    print "%d %d %s %d %s" % (reader.Depth(), reader.NodeType(),
    -                              reader.Name(), reader.IsEmptyElement(),
    -                              reader.Value())
    - -

    The result of the test is:

    -
    0 1 doc 0 None
    -1 1 a 1 None
    -1 1 b 0 None
    -2 3 #text 0 some text
    -1 15 b 0 None
    -1 3 #text 0
    -
    -1 1 c 1 None
    -0 15 doc 0 None
    - -

    There are a few things to note:

    -
      -
    • the increase of the depth value (first row) as children nodes are - explored
    • -
    • the text node child of the b element, of type 3 and its content
    • -
    • the text node containing the line return between elements b and c
    • -
    • that elements have the Value None (or NULL in C)
    • -
    - -

    The equivalent routine for processNode() as used by -xmllint --stream --debug is the following and can be found in -the xmllint.c module in the source distribution:

    -
    static void processNode(xmlTextReaderPtr reader) {
    -    xmlChar *name, *value;
    -
    -    name = xmlTextReaderName(reader);
    -    if (name == NULL)
    -        name = xmlStrdup(BAD_CAST "--");
    -    value = xmlTextReaderValue(reader);
    -
    -    printf("%d %d %s %d",
    -            xmlTextReaderDepth(reader),
    -            xmlTextReaderNodeType(reader),
    -            name,
    -            xmlTextReaderIsEmptyElement(reader));
    -    xmlFree(name);
    -    if (value == NULL)
    -        printf("\n");
    -    else {
    -        printf(" %s\n", value);
    -        xmlFree(value);
    -    }
    -}
    - -

    Extracting information for the attributes

    - -

    The previous examples don't indicate how attributes are processed. The -simple test "<doc a="b"/>" provides the following -result:

    -
    0 1 doc 1 None
    - -

    This proves that attribute nodes are not traversed by default. The -HasAttributes property allow to detect their presence. To check -their content the API has special instructions. Basically two kinds of operations -are possible:

    -
      -
    1. to move the reader to the attribute nodes of the current element, in - that case the cursor is positionned on the attribute node
    2. -
    3. to directly query the element node for the attribute value
    4. -
    - -

    In both case the attribute can be designed either by its position in the -list of attribute (MoveToAttributeNo or GetAttributeNo) or -by their name (and namespace):

    -
      -
    • GetAttributeNo(no): provides the value of the attribute with - the specified index no relative to the containing element.
    • -
    • GetAttribute(name): provides the value of the attribute with - the specified qualified name.
    • -
    • GetAttributeNs(localName, namespaceURI): provides the value of the - attribute with the specified local name and namespace URI.
    • -
    • MoveToAttributeNo(no): moves the position of the current - instance to the attribute with the specified index relative to the - containing element.
    • -
    • MoveToAttribute(name): moves the position of the current - instance to the attribute with the specified qualified name.
    • -
    • MoveToAttributeNs(localName, namespaceURI): moves the position - of the current instance to the attribute with the specified local name - and namespace URI.
    • -
    • MoveToFirstAttribute: moves the position of the current - instance to the first attribute associated with the current node.
    • -
    • MoveToNextAttribute: moves the position of the current - instance to the next attribute associated with the current node.
    • -
    • MoveToElement: moves the position of the current instance to - the node that contains the current Attribute node.
    • -
    - -

    After modifying the processNode() function to show attributes:

    -
    def processNode(reader):
    -    print "%d %d %s %d %s" % (reader.Depth(), reader.NodeType(),
    -                              reader.Name(), reader.IsEmptyElement(),
    -                              reader.Value())
    -    if reader.NodeType() == 1: # Element
    -        while reader.MoveToNextAttribute():
    -            print "-- %d %d (%s) [%s]" % (reader.Depth(), reader.NodeType(),
    -                                          reader.Name(),reader.Value())
    - -

    The output for the same input document reflects the attribute:

    -
    0 1 doc 1 None
    --- 1 2 (a) [b]
    - -

    There are a couple of things to note on the attribute processing:

    -
      -
    • Their depth is the one of the carrying element plus one.
    • -
    • Namespace declarations are seen as attributes, as in DOM.
    • -
    - -

    Validating a document

    - -

    Libxml2 implementation adds some extra features on top of the XmlTextReader -API. The main one is the ability to DTD validate the parsed document -progressively. This is simply the activation of the associated feature of the -parser used by the reader structure. There are a few options available -defined as the enum xmlParserProperties in the libxml/xmlreader.h header -file:

    -
      -
    • XML_PARSER_LOADDTD: force loading the DTD (without validating)
    • -
    • XML_PARSER_DEFAULTATTRS: force attribute defaulting (this also imply - loading the DTD)
    • -
    • XML_PARSER_VALIDATE: activate DTD validation (this also imply loading - the DTD)
    • -
    • XML_PARSER_SUBST_ENTITIES: substitute entities on the fly, entity - reference nodes are not generated and are replaced by their expanded - content.
    • -
    • more settings might be added, those were the one available at the 2.5.0 - release...
    • -
    - -

    The GetParserProp() and SetParserProp() methods can then be used to get -and set the values of those parser properties of the reader. For example

    -
    def parseAndValidate(file):
    -    reader = libxml2.newTextReaderFilename(file)
    -    reader.SetParserProp(libxml2.PARSER_VALIDATE, 1)
    -    ret = reader.Read()
    -    while ret == 1:
    -        ret = reader.Read()
    -    if ret != 0:
    -        print "Error parsing and validating %s" % (file)
    - -

    This routine will parse and validate the file. Error messages can be -captured by registering an error handler. See python/tests/reader2.py for -more complete Python examples. At the C level the equivalent call to cativate -the validation feature is just:

    -
    ret = xmlTextReaderSetParserProp(reader, XML_PARSER_VALIDATE, 1)
    - -

    and a return value of 0 indicates success.

    - -

    Entities substitution

    - -

    By default the xmlReader will report entities as such and not replace them -with their content. This default behaviour can however be overriden using:

    - -

    reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES,1)

    - -

    Relax-NG Validation

    - -

    Introduced in version 2.5.7

    - -

    Libxml2 can now validate the document being read using the xmlReader using -Relax-NG schemas. While the Relax NG validator can't always work in a -streamable mode, only subsets which cannot be reduced to regular expressions -need to have their subtree expanded for validation. In practice it means -that, unless the schemas for the top level element content is not expressable -as a regexp, only chunk of the document needs to be parsed while -validating.

    - -

    The steps to do so are:

    -
      -
    • create a reader working on a document as usual
    • -
    • before any call to read associate it to a Relax NG schemas, either the - preparsed schemas or the URL to the schemas to use
    • -
    • errors will be reported the usual way, and the validity status can be - obtained using the IsValid() interface of the reader like for DTDs.
    • -
    - -

    Example, assuming the reader has already being created and that the schema -string contains the Relax-NG schemas:

    -
    rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema))
    -rngs = rngp.relaxNGParse()
    -reader.RelaxNGSetSchema(rngs)
    -ret = reader.Read()
    -while ret == 1:
    - ret = reader.Read()
    -if ret != 0:
    - print "Error parsing the document"
    -if reader.IsValid() != 1:
    - print "Document failed to validate"

    -
    - -

    See reader6.py in the sources or documentation for a complete -example.

    - -

    Mixing the reader and tree or XPath operations

    - -

    Introduced in version 2.5.7

    - -

    While the reader is a streaming interface, its underlying implementation -is based on the DOM builder of libxml2. As a result it is relatively simple -to mix operations based on both models under some constraints. To do so the -reader has an Expand() operation allowing to grow the subtree under the -current node. It returns a pointer to a standard node which can be -manipulated in the usual ways. The node will get all its ancestors and the -full subtree available. Usual operations like XPath queries can be used on -that reduced view of the document. Here is an example extracted from -reader5.py in the sources which extract and prints the bibliography for the -"Dragon" compiler book from the XML 1.0 recommendation:

    -
    f = open('../../test/valid/REC-xml-19980210.xml')
    -input = libxml2.inputBuffer(f)
    -reader = input.newTextReader("REC")
    -res=""
    -while reader.Read():
    -    while reader.Name() == 'bibl':
    -        node = reader.Expand()            # expand the subtree
    -        if node.xpathEval("@id = 'Aho'"): # use XPath on it
    -            res = res + node.serialize()
    -        if reader.Next() != 1:            # skip the subtree
    -            break;
    - -

    Note, however that the node instance returned by the Expand() call is only -valid until the next Read() operation. The Expand() operation does not -affects the Read() ones, however usually once processed the full subtree is -not useful anymore, and the Next() operation allows to skip it completely and -process to the successor or return 0 if the document end is reached.

    - -

    Daniel Veillard

    - -

    $Id: xmlreader.html,v 1.9 2005/10/18 19:11:54 veillard Exp $

    - -

    - - diff --git a/src/tools/docbook/libxml2/doc/xsa.xsl b/src/tools/docbook/libxml2/doc/xsa.xsl deleted file mode 100644 index 30151d46c1..0000000000 --- a/src/tools/docbook/libxml2/doc/xsa.xsl +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - Daniel Veillard - daniel@veillard.com - http://veillard.com/ - - - libxml2 - - - http://xmlsoft.org/ - - - - - - - - - - - - - - - - - - - - - - - at - - - - - - - diff --git a/src/tools/docbook/libxml2/example/Makefile.am b/src/tools/docbook/libxml2/example/Makefile.am deleted file mode 100644 index 9eb6a76d1f..0000000000 --- a/src/tools/docbook/libxml2/example/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ -noinst_PROGRAMS = gjobread - -INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@ -DEPS = $(top_builddir)/libxml2.la -LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm @WIN32_EXTRA_LIBADD@ - -gjobread_SOURCES=gjobread.c -gjobread_LDFLAGS= -gjobread_DEPENDENCIES= $(DEPS) -gjobread_LDADD= @RDL_LIBS@ $(LDADDS) diff --git a/src/tools/docbook/libxml2/example/Makefile.in b/src/tools/docbook/libxml2/example/Makefile.in deleted file mode 100644 index d1ac9ef01e..0000000000 --- a/src/tools/docbook/libxml2/example/Makefile.in +++ /dev/null @@ -1,539 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -noinst_PROGRAMS = gjobread$(EXEEXT) -subdir = example -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -PROGRAMS = $(noinst_PROGRAMS) -am_gjobread_OBJECTS = gjobread.$(OBJEXT) -gjobread_OBJECTS = $(am_gjobread_OBJECTS) -am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = $(top_builddir)/libxml2.la $(am__DEPENDENCIES_1) -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(gjobread_SOURCES) -DIST_SOURCES = $(gjobread_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -BASE_THREAD_LIBS = @BASE_THREAD_LIBS@ -C14N_OBJ = @C14N_OBJ@ -CATALOG_OBJ = @CATALOG_OBJ@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ -CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@ -DEBUG_OBJ = @DEBUG_OBJ@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOCB_OBJ = @DOCB_OBJ@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -FTP_OBJ = @FTP_OBJ@ -HAVE_ISINF = @HAVE_ISINF@ -HAVE_ISNAN = @HAVE_ISNAN@ -HTML_DIR = @HTML_DIR@ -HTML_OBJ = @HTML_OBJ@ -HTTP_OBJ = @HTTP_OBJ@ -ICONV_LIBS = @ICONV_LIBS@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBXML_MAJOR_VERSION = @LIBXML_MAJOR_VERSION@ -LIBXML_MICRO_VERSION = @LIBXML_MICRO_VERSION@ -LIBXML_MINOR_VERSION = @LIBXML_MINOR_VERSION@ -LIBXML_VERSION = @LIBXML_VERSION@ -LIBXML_VERSION_EXTRA = @LIBXML_VERSION_EXTRA@ -LIBXML_VERSION_INFO = @LIBXML_VERSION_INFO@ -LIBXML_VERSION_NUMBER = @LIBXML_VERSION_NUMBER@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MODULE_EXTENSION = @MODULE_EXTENSION@ -MODULE_PLATFORM_LIBS = @MODULE_PLATFORM_LIBS@ -MV = @MV@ -M_LIBS = @M_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -PYTHON = @PYTHON@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@ -PYTHON_SUBDIR = @PYTHON_SUBDIR@ -PYTHON_TESTS = @PYTHON_TESTS@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -RDL_LIBS = @RDL_LIBS@ -READER_TEST = @READER_TEST@ -RELDATE = @RELDATE@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STATIC_BINARIES = @STATIC_BINARIES@ -STRIP = @STRIP@ -TAR = @TAR@ -TEST_C14N = @TEST_C14N@ -TEST_CATALOG = @TEST_CATALOG@ -TEST_DEBUG = @TEST_DEBUG@ -TEST_HTML = @TEST_HTML@ -TEST_MODULES = @TEST_MODULES@ -TEST_PATTERN = @TEST_PATTERN@ -TEST_PHTML = @TEST_PHTML@ -TEST_PUSH = @TEST_PUSH@ -TEST_REGEXPS = @TEST_REGEXPS@ -TEST_SAX = @TEST_SAX@ -TEST_SCHEMAS = @TEST_SCHEMAS@ -TEST_SCHEMATRON = @TEST_SCHEMATRON@ -TEST_THREADS = @TEST_THREADS@ -TEST_VALID = @TEST_VALID@ -TEST_VTIME = @TEST_VTIME@ -TEST_XINCLUDE = @TEST_XINCLUDE@ -TEST_XPATH = @TEST_XPATH@ -TEST_XPTR = @TEST_XPTR@ -THREADS_W32 = @THREADS_W32@ -THREAD_CFLAGS = @THREAD_CFLAGS@ -THREAD_LIBS = @THREAD_LIBS@ -U = @U@ -VERSION = @VERSION@ -WIN32_EXTRA_LDFLAGS = @WIN32_EXTRA_LDFLAGS@ -WIN32_EXTRA_LIBADD = @WIN32_EXTRA_LIBADD@ -WITH_C14N = @WITH_C14N@ -WITH_CATALOG = @WITH_CATALOG@ -WITH_DEBUG = @WITH_DEBUG@ -WITH_DOCB = @WITH_DOCB@ -WITH_FTP = @WITH_FTP@ -WITH_HTML = @WITH_HTML@ -WITH_HTTP = @WITH_HTTP@ -WITH_ICONV = @WITH_ICONV@ -WITH_ISO8859X = @WITH_ISO8859X@ -WITH_LEGACY = @WITH_LEGACY@ -WITH_MEM_DEBUG = @WITH_MEM_DEBUG@ -WITH_MODULES = @WITH_MODULES@ -WITH_OUTPUT = @WITH_OUTPUT@ -WITH_PATTERN = @WITH_PATTERN@ -WITH_PUSH = @WITH_PUSH@ -WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@ -WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@ -WITH_READER = @WITH_READER@ -WITH_REGEXPS = @WITH_REGEXPS@ -WITH_RUN_DEBUG = @WITH_RUN_DEBUG@ -WITH_SAX1 = @WITH_SAX1@ -WITH_SCHEMAS = @WITH_SCHEMAS@ -WITH_SCHEMATRON = @WITH_SCHEMATRON@ -WITH_THREADS = @WITH_THREADS@ -WITH_TREE = @WITH_TREE@ -WITH_TRIO = @WITH_TRIO@ -WITH_TRIO_SOURCES_FALSE = @WITH_TRIO_SOURCES_FALSE@ -WITH_TRIO_SOURCES_TRUE = @WITH_TRIO_SOURCES_TRUE@ -WITH_VALID = @WITH_VALID@ -WITH_WRITER = @WITH_WRITER@ -WITH_XINCLUDE = @WITH_XINCLUDE@ -WITH_XPATH = @WITH_XPATH@ -WITH_XPTR = @WITH_XPTR@ -XINCLUDE_OBJ = @XINCLUDE_OBJ@ -XMLLINT = @XMLLINT@ -XML_CFLAGS = @XML_CFLAGS@ -XML_INCLUDEDIR = @XML_INCLUDEDIR@ -XML_LIBDIR = @XML_LIBDIR@ -XML_LIBS = @XML_LIBS@ -XML_LIBTOOLLIBS = @XML_LIBTOOLLIBS@ -XPATH_OBJ = @XPATH_OBJ@ -XPTR_OBJ = @XPTR_OBJ@ -XSLTPROC = @XSLTPROC@ -Z_CFLAGS = @Z_CFLAGS@ -Z_LIBS = @Z_LIBS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_AS = @ac_ct_AS@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@ -DEPS = $(top_builddir)/libxml2.la -LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm @WIN32_EXTRA_LIBADD@ -gjobread_SOURCES = gjobread.c -gjobread_LDFLAGS = -gjobread_DEPENDENCIES = $(DEPS) -gjobread_LDADD = @RDL_LIBS@ $(LDADDS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu example/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu example/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; for p in $$list; do \ - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f $$p $$f"; \ - rm -f $$p $$f ; \ - done -gjobread$(EXEEXT): $(gjobread_OBJECTS) $(gjobread_DEPENDENCIES) - @rm -f gjobread$(EXEEXT) - $(LINK) $(gjobread_LDFLAGS) $(gjobread_OBJECTS) $(gjobread_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gjobread.Po@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-libtool distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-noinstPROGRAMS ctags distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-exec \ - install-exec-am install-info install-info-am install-man \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ - pdf pdf-am ps ps-am tags uninstall uninstall-am \ - uninstall-info-am - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/tools/docbook/libxml2/example/gjobread.c b/src/tools/docbook/libxml2/example/gjobread.c deleted file mode 100644 index d3f6d57d66..0000000000 --- a/src/tools/docbook/libxml2/example/gjobread.c +++ /dev/null @@ -1,309 +0,0 @@ -/* - * gjobread.c : a small test program for gnome jobs XML format - * - * See Copyright for the status of this software. - * - * Daniel.Veillard@w3.org - */ - -#include -#include -#include - -/* - * This example should compile and run indifferently with libxml-1.8.8 + - * and libxml2-2.1.0 + - * Check the COMPAT comments below - */ - -/* - * COMPAT using xml-config --cflags to get the include path this will - * work with both - */ -#include -#include - -#define DEBUG(x) printf(x) - -/* - * A person record - * an xmlChar * is really an UTF8 encoded char string (0 terminated) - */ -typedef struct person { - xmlChar *name; - xmlChar *email; - xmlChar *company; - xmlChar *organisation; - xmlChar *smail; - xmlChar *webPage; - xmlChar *phone; -} person, *personPtr; - -/* - * And the code needed to parse it - */ -static personPtr -parsePerson(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur) { - personPtr ret = NULL; - -DEBUG("parsePerson\n"); - /* - * allocate the struct - */ - ret = (personPtr) malloc(sizeof(person)); - if (ret == NULL) { - fprintf(stderr,"out of memory\n"); - return(NULL); - } - memset(ret, 0, sizeof(person)); - - /* We don't care what the top level element name is */ - /* COMPAT xmlChildrenNode is a macro unifying libxml1 and libxml2 names */ - cur = cur->xmlChildrenNode; - while (cur != NULL) { - if ((!xmlStrcmp(cur->name, (const xmlChar *)"Person")) && - (cur->ns == ns)) - ret->name = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); - if ((!xmlStrcmp(cur->name, (const xmlChar *)"Email")) && - (cur->ns == ns)) - ret->email = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); - cur = cur->next; - } - - return(ret); -} - -/* - * and to print it - */ -static void -printPerson(personPtr cur) { - if (cur == NULL) return; - printf("------ Person\n"); - if (cur->name) printf(" name: %s\n", cur->name); - if (cur->email) printf(" email: %s\n", cur->email); - if (cur->company) printf(" company: %s\n", cur->company); - if (cur->organisation) printf(" organisation: %s\n", cur->organisation); - if (cur->smail) printf(" smail: %s\n", cur->smail); - if (cur->webPage) printf(" Web: %s\n", cur->webPage); - if (cur->phone) printf(" phone: %s\n", cur->phone); - printf("------\n"); -} - -/* - * a Description for a Job - */ -typedef struct job { - xmlChar *projectID; - xmlChar *application; - xmlChar *category; - personPtr contact; - int nbDevelopers; - personPtr developers[100]; /* using dynamic alloc is left as an exercise */ -} job, *jobPtr; - -/* - * And the code needed to parse it - */ -static jobPtr -parseJob(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur) { - jobPtr ret = NULL; - -DEBUG("parseJob\n"); - /* - * allocate the struct - */ - ret = (jobPtr) malloc(sizeof(job)); - if (ret == NULL) { - fprintf(stderr,"out of memory\n"); - return(NULL); - } - memset(ret, 0, sizeof(job)); - - /* We don't care what the top level element name is */ - cur = cur->xmlChildrenNode; - while (cur != NULL) { - - if ((!xmlStrcmp(cur->name, (const xmlChar *) "Project")) && - (cur->ns == ns)) { - ret->projectID = xmlGetProp(cur, (const xmlChar *) "ID"); - if (ret->projectID == NULL) { - fprintf(stderr, "Project has no ID\n"); - } - } - if ((!xmlStrcmp(cur->name, (const xmlChar *) "Application")) && - (cur->ns == ns)) - ret->application = - xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); - if ((!xmlStrcmp(cur->name, (const xmlChar *) "Category")) && - (cur->ns == ns)) - ret->category = - xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); - if ((!xmlStrcmp(cur->name, (const xmlChar *) "Contact")) && - (cur->ns == ns)) - ret->contact = parsePerson(doc, ns, cur); - cur = cur->next; - } - - return(ret); -} - -/* - * and to print it - */ -static void -printJob(jobPtr cur) { - int i; - - if (cur == NULL) return; - printf("======= Job\n"); - if (cur->projectID != NULL) printf("projectID: %s\n", cur->projectID); - if (cur->application != NULL) printf("application: %s\n", cur->application); - if (cur->category != NULL) printf("category: %s\n", cur->category); - if (cur->contact != NULL) printPerson(cur->contact); - printf("%d developers\n", cur->nbDevelopers); - - for (i = 0;i < cur->nbDevelopers;i++) printPerson(cur->developers[i]); - printf("======= \n"); -} - -/* - * A pool of Gnome Jobs - */ -typedef struct gjob { - int nbJobs; - jobPtr jobs[500]; /* using dynamic alloc is left as an exercise */ -} gJob, *gJobPtr; - - -static gJobPtr -parseGjobFile(char *filename) { - xmlDocPtr doc; - gJobPtr ret; - jobPtr curjob; - xmlNsPtr ns; - xmlNodePtr cur; - -#ifdef LIBXML_SAX1_ENABLED - /* - * build an XML tree from a the file; - */ - doc = xmlParseFile(filename); - if (doc == NULL) return(NULL); -#else - /* - * the library has been compiled without some of the old interfaces - */ - return(NULL); -#endif /* LIBXML_SAX1_ENABLED */ - - /* - * Check the document is of the right kind - */ - - cur = xmlDocGetRootElement(doc); - if (cur == NULL) { - fprintf(stderr,"empty document\n"); - xmlFreeDoc(doc); - return(NULL); - } - ns = xmlSearchNsByHref(doc, cur, - (const xmlChar *) "http://www.gnome.org/some-location"); - if (ns == NULL) { - fprintf(stderr, - "document of the wrong type, GJob Namespace not found\n"); - xmlFreeDoc(doc); - return(NULL); - } - if (xmlStrcmp(cur->name, (const xmlChar *) "Helping")) { - fprintf(stderr,"document of the wrong type, root node != Helping"); - xmlFreeDoc(doc); - return(NULL); - } - - /* - * Allocate the structure to be returned. - */ - ret = (gJobPtr) malloc(sizeof(gJob)); - if (ret == NULL) { - fprintf(stderr,"out of memory\n"); - xmlFreeDoc(doc); - return(NULL); - } - memset(ret, 0, sizeof(gJob)); - - /* - * Now, walk the tree. - */ - /* First level we expect just Jobs */ - cur = cur->xmlChildrenNode; - while ( cur && xmlIsBlankNode ( cur ) ) { - cur = cur -> next; - } - if ( cur == 0 ) { - xmlFreeDoc(doc); - free(ret); - return ( NULL ); - } - if ((xmlStrcmp(cur->name, (const xmlChar *) "Jobs")) || (cur->ns != ns)) { - fprintf(stderr,"document of the wrong type, was '%s', Jobs expected", - cur->name); - fprintf(stderr,"xmlDocDump follows\n"); -#ifdef LIBXML_OUTPUT_ENABLED - xmlDocDump ( stderr, doc ); - fprintf(stderr,"xmlDocDump finished\n"); -#endif /* LIBXML_OUTPUT_ENABLED */ - xmlFreeDoc(doc); - free(ret); - return(NULL); - } - - /* Second level is a list of Job, but be laxist */ - cur = cur->xmlChildrenNode; - while (cur != NULL) { - if ((!xmlStrcmp(cur->name, (const xmlChar *) "Job")) && - (cur->ns == ns)) { - curjob = parseJob(doc, ns, cur); - if (curjob != NULL) - ret->jobs[ret->nbJobs++] = curjob; - if (ret->nbJobs >= 500) break; - } - cur = cur->next; - } - - return(ret); -} - -static void -handleGjob(gJobPtr cur) { - int i; - - /* - * Do whatever you want and free the structure. - */ - printf("%d Jobs registered\n", cur->nbJobs); - for (i = 0; i < cur->nbJobs; i++) printJob(cur->jobs[i]); -} - -int main(int argc, char **argv) { - int i; - gJobPtr cur; - - /* COMPAT: Do not genrate nodes for formatting spaces */ - LIBXML_TEST_VERSION - xmlKeepBlanksDefault(0); - - for (i = 1; i < argc ; i++) { - cur = parseGjobFile(argv[i]); - if ( cur ) - handleGjob(cur); - else - fprintf( stderr, "Error parsing file '%s'\n", argv[i]); - - } - - /* Clean up everything else before quitting. */ - xmlCleanupParser(); - - return(0); -} diff --git a/src/tools/docbook/libxml2/example/gjobs.xml b/src/tools/docbook/libxml2/example/gjobs.xml deleted file mode 100644 index 8372976327..0000000000 --- a/src/tools/docbook/libxml2/example/gjobs.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - GBackup - Development - - - Open - Mon, 07 Jun 1999 20:27:45 -0400 MET DST - USD 0.00 - - - - - - - - - Nathan Clemons - nathan@windsofstorm.net - - - - - - - - - - - - - - The program should be released as free software, under the GPL. - - - - - - - A GNOME based system that will allow a superuser to configure - compressed and uncompressed files and/or file systems to be backed - up with a supported media in the system. This should be able to - perform via find commands generating a list of files that are passed - to tar, dd, cpio, cp, gzip, etc., to be directed to the tape machine - or via operations performed on the filesystem itself. Email - notification and GUI status display very important. - - - - - - - diff --git a/src/tools/docbook/libxml2/genUnicode.py b/src/tools/docbook/libxml2/genUnicode.py deleted file mode 100755 index 56e4e9ba2a..0000000000 --- a/src/tools/docbook/libxml2/genUnicode.py +++ /dev/null @@ -1,478 +0,0 @@ -#!/usr/bin/python -u -# -# Original script modified in November 2003 to take advantage of -# the character-validation range routines, and updated to the -# current Unicode information (Version 4.0.1) -# -# NOTE: there is an 'alias' facility for blocks which are not present in -# the current release, but are needed for ABI compatibility. This -# must be accomplished MANUALLY! Please see the comments below under -# 'blockAliases' -# -import sys -import string -import time - -webpage = "http://www.unicode.org/Public/4.0-Update1/UCD-4.0.1.html" -sources = "Blocks-4.0.1.txt UnicodeData-4.0.1.txt" - -# -# blockAliases is a small hack - it is used for mapping block names which -# were were used in the 3.1 release, but are missing or changed in the current -# release. The format is "OldBlockName:NewBlockName1[,NewBlockName2[,...]]" -blockAliases = [] -blockAliases.append("CombiningMarksforSymbols:CombiningDiacriticalMarksforSymbols") -blockAliases.append("Greek:GreekandCoptic") -blockAliases.append("PrivateUse:PrivateUseArea,SupplementaryPrivateUseArea-A," + - "SupplementaryPrivateUseArea-B") - -# minTableSize gives the minimum number of ranges which must be present -# before a range table is produced. If there are less than this -# number, inline comparisons are generated -minTableSize = 8 - -(blockfile, catfile) = string.split(sources) - - -# -# Now process the "blocks" file, reducing it to a dictionary -# indexed by blockname, containing a tuple with the applicable -# block range -# -BlockNames = {} -try: - blocks = open(blockfile, "r") -except: - print "Missing %s, aborting ..." % blockfile - sys.exit(1) - -for line in blocks.readlines(): - if line[0] == '#': - continue - line = string.strip(line) - if line == '': - continue - try: - fields = string.split(line, ';') - range = string.strip(fields[0]) - (start, end) = string.split(range, "..") - name = string.strip(fields[1]) - name = string.replace(name, ' ', '') - except: - print "Failed to process line: %s" % (line) - continue - start = "0x" + start - end = "0x" + end - try: - BlockNames[name].append((start, end)) - except: - BlockNames[name] = [(start, end)] -blocks.close() -print "Parsed %d blocks descriptions" % (len(BlockNames.keys())) - -for block in blockAliases: - alias = string.split(block,':') - alist = string.split(alias[1],',') - for comp in alist: - if BlockNames.has_key(comp): - if alias[0] not in BlockNames: - BlockNames[alias[0]] = [] - for r in BlockNames[comp]: - BlockNames[alias[0]].append(r) - else: - print "Alias %s: %s not in Blocks" % (alias[0], comp) - continue - -# -# Next process the Categories file. This is more complex, since -# the file is in code sequence, and we need to invert it. We use -# a dictionary with index category-name, with each entry containing -# all the ranges (codepoints) of that category. Note that category -# names comprise two parts - the general category, and the "subclass" -# within that category. Therefore, both "general category" (which is -# the first character of the 2-character category-name) and the full -# (2-character) name are entered into this dictionary. -# -try: - data = open(catfile, "r") -except: - print "Missing %s, aborting ..." % catfile - sys.exit(1) - -nbchar = 0; -Categories = {} -for line in data.readlines(): - if line[0] == '#': - continue - line = string.strip(line) - if line == '': - continue - try: - fields = string.split(line, ';') - point = string.strip(fields[0]) - value = 0 - while point != '': - value = value * 16 - if point[0] >= '0' and point[0] <= '9': - value = value + ord(point[0]) - ord('0') - elif point[0] >= 'A' and point[0] <= 'F': - value = value + 10 + ord(point[0]) - ord('A') - elif point[0] >= 'a' and point[0] <= 'f': - value = value + 10 + ord(point[0]) - ord('a') - point = point[1:] - name = fields[2] - except: - print "Failed to process line: %s" % (line) - continue - - nbchar = nbchar + 1 - # update entry for "full name" - try: - Categories[name].append(value) - except: - try: - Categories[name] = [value] - except: - print "Failed to process line: %s" % (line) - # update "general category" name - try: - Categories[name[0]].append(value) - except: - try: - Categories[name[0]] = [value] - except: - print "Failed to process line: %s" % (line) - -blocks.close() -print "Parsed %d char generating %d categories" % (nbchar, len(Categories.keys())) - -# -# The data is now all read. Time to process it into a more useful form. -# -# reduce the number list into ranges -for cat in Categories.keys(): - list = Categories[cat] - start = -1 - prev = -1 - end = -1 - ranges = [] - for val in list: - if start == -1: - start = val - prev = val - continue - elif val == prev + 1: - prev = val - continue - elif prev == start: - ranges.append((prev, prev)) - start = val - prev = val - continue - else: - ranges.append((start, prev)) - start = val - prev = val - continue - if prev == start: - ranges.append((prev, prev)) - else: - ranges.append((start, prev)) - Categories[cat] = ranges - -# -# Assure all data is in alphabetic order, since we will be doing binary -# searches on the tables. -# -bkeys = BlockNames.keys() -bkeys.sort() - -ckeys = Categories.keys() -ckeys.sort() - -# -# Generate the resulting files -# -try: - header = open("include/libxml/xmlunicode.h", "w") -except: - print "Failed to open include/libxml/xmlunicode.h" - sys.exit(1) - -try: - output = open("xmlunicode.c", "w") -except: - print "Failed to open xmlunicode.c" - sys.exit(1) - -date = time.asctime(time.localtime(time.time())) - -header.write( -"""/* - * Summary: Unicode character APIs - * Description: API for the Unicode character APIs - * - * This file is automatically generated from the - * UCS description files of the Unicode Character Database - * %s - * using the genUnicode.py Python script. - * - * Generation date: %s - * Sources: %s - * Author: Daniel Veillard - */ - -#ifndef __XML_UNICODE_H__ -#define __XML_UNICODE_H__ - -#include - -#ifdef LIBXML_UNICODE_ENABLED - -#ifdef __cplusplus -extern "C" { -#endif - -""" % (webpage, date, sources)); - -output.write( -"""/* - * xmlunicode.c: this module implements the Unicode character APIs - * - * This file is automatically generated from the - * UCS description files of the Unicode Character Database - * %s - * using the genUnicode.py Python script. - * - * Generation date: %s - * Sources: %s - * Daniel Veillard - */ - -#define IN_LIBXML -#include "libxml.h" - -#ifdef LIBXML_UNICODE_ENABLED - -#include -#include -#include -#include - -typedef int (xmlIntFunc)(int); /* just to keep one's mind untwisted */ - -typedef struct { - const char *rangename; - xmlIntFunc *func; -} xmlUnicodeRange; - -typedef struct { - xmlUnicodeRange *table; - int numentries; -} xmlUnicodeNameTable; - - -static xmlIntFunc *xmlUnicodeLookup(xmlUnicodeNameTable *tptr, const char *tname); - -static xmlUnicodeRange xmlUnicodeBlocks[] = { -""" % (webpage, date, sources)); - -flag = 0 -for block in bkeys: - name = string.replace(block, '-', '') - if flag: - output.write(',\n') - else: - flag = 1 - output.write(' {"%s", xmlUCSIs%s}' % (block, name)) -output.write('};\n\n') - -output.write('static xmlUnicodeRange xmlUnicodeCats[] = {\n') -flag = 0; -for name in ckeys: - if flag: - output.write(',\n') - else: - flag = 1 - output.write(' {"%s", xmlUCSIsCat%s}' % (name, name)) -output.write('};\n\n') - -# -# For any categories with more than minTableSize ranges we generate -# a range table suitable for xmlCharInRange -# -for name in ckeys: - if len(Categories[name]) > minTableSize: - numshort = 0 - numlong = 0 - ranges = Categories[name] - sptr = "NULL" - lptr = "NULL" - for range in ranges: - (low, high) = range - if high < 0x10000: - if numshort == 0: - pline = "static const xmlChSRange xml%sS[] = {" % name - sptr = "xml%sS" % name - else: - pline += ", " - numshort += 1 - else: - if numlong == 0: - if numshort > 0: - output.write(pline + " };\n") - pline = "static const xmlChLRange xml%sL[] = {" % name - lptr = "xml%sL" % name - else: - pline += ", " - numlong += 1 - if len(pline) > 60: - output.write(pline + "\n") - pline = " " - pline += "{%s, %s}" % (hex(low), hex(high)) - output.write(pline + " };\nstatic xmlChRangeGroup xml%sG = {%s,%s,%s,%s};\n\n" - % (name, numshort, numlong, sptr, lptr)) - - -output.write( -"""static xmlUnicodeNameTable xmlUnicodeBlockTbl = {xmlUnicodeBlocks, %s}; -static xmlUnicodeNameTable xmlUnicodeCatTbl = {xmlUnicodeCats, %s}; - -/** - * xmlUnicodeLookup: - * @tptr: pointer to the name table - * @name: name to be found - * - * binary table lookup for user-supplied name - * - * Returns pointer to range function if found, otherwise NULL - */ -static xmlIntFunc -*xmlUnicodeLookup(xmlUnicodeNameTable *tptr, const char *tname) { - int low, high, mid, cmp; - xmlUnicodeRange *sptr; - - if ((tptr == NULL) || (tname == NULL)) return(NULL); - - low = 0; - high = tptr->numentries - 1; - sptr = tptr->table; - while (low <= high) { - mid = (low + high) / 2; - if ((cmp=strcmp(tname, sptr[mid].rangename)) == 0) - return (sptr[mid].func); - if (cmp < 0) - high = mid - 1; - else - low = mid + 1; - } - return (NULL); -} - -""" % (len(BlockNames), len(Categories)) ) - -for block in bkeys: - name = string.replace(block, '-', '') - header.write("XMLPUBFUN int XMLCALL xmlUCSIs%s\t(int code);\n" % name) - output.write("/**\n * xmlUCSIs%s:\n * @code: UCS code point\n" % (name)) - output.write(" *\n * Check whether the character is part of %s UCS Block\n"% - (block)) - output.write(" *\n * Returns 1 if true 0 otherwise\n */\n"); - output.write("int\nxmlUCSIs%s(int code) {\n return(" % name) - flag = 0 - for (start, end) in BlockNames[block]: - if flag: - output.write(" ||\n ") - else: - flag = 1 - output.write("((code >= %s) && (code <= %s))" % (start, end)) - output.write(");\n}\n\n") - -header.write("\nXMLPUBFUN int XMLCALL xmlUCSIsBlock\t(int code, const char *block);\n\n") -output.write( -"""/** - * xmlUCSIsBlock: - * @code: UCS code point - * @block: UCS block name - * - * Check whether the character is part of the UCS Block - * - * Returns 1 if true, 0 if false and -1 on unknown block - */ -int -xmlUCSIsBlock(int code, const char *block) { - xmlIntFunc *func; - - func = xmlUnicodeLookup(&xmlUnicodeBlockTbl, block); - if (func == NULL) - return (-1); - return (func(code)); -} - -""") - -for name in ckeys: - ranges = Categories[name] - header.write("XMLPUBFUN int XMLCALL xmlUCSIsCat%s\t(int code);\n" % name) - output.write("/**\n * xmlUCSIsCat%s:\n * @code: UCS code point\n" % (name)) - output.write(" *\n * Check whether the character is part of %s UCS Category\n"% - (name)) - output.write(" *\n * Returns 1 if true 0 otherwise\n */\n"); - output.write("int\nxmlUCSIsCat%s(int code) {\n" % name) - if len(Categories[name]) > minTableSize: - output.write(" return(xmlCharInRange((unsigned int)code, &xml%sG)" - % name) - else: - start = 1 - for range in ranges: - (begin, end) = range; - if start: - output.write(" return("); - start = 0 - else: - output.write(" ||\n "); - if (begin == end): - output.write("(code == %s)" % (hex(begin))) - else: - output.write("((code >= %s) && (code <= %s))" % ( - hex(begin), hex(end))) - output.write(");\n}\n\n") - -header.write("\nXMLPUBFUN int XMLCALL xmlUCSIsCat\t(int code, const char *cat);\n") -output.write( -"""/** - * xmlUCSIsCat: - * @code: UCS code point - * @cat: UCS Category name - * - * Check whether the character is part of the UCS Category - * - * Returns 1 if true, 0 if false and -1 on unknown category - */ -int -xmlUCSIsCat(int code, const char *cat) { - xmlIntFunc *func; - - func = xmlUnicodeLookup(&xmlUnicodeCatTbl, cat); - if (func == NULL) - return (-1); - return (func(code)); -} - -#define bottom_xmlunicode -#include "elfgcchack.h" -#endif /* LIBXML_UNICODE_ENABLED */ -""") - -header.write(""" -#ifdef __cplusplus -} -#endif - -#endif /* LIBXML_UNICODE_ENABLED */ - -#endif /* __XML_UNICODE_H__ */ -"""); - -header.close() -output.close() diff --git a/src/tools/docbook/libxml2/gentest.py b/src/tools/docbook/libxml2/gentest.py deleted file mode 100755 index 8c143afd69..0000000000 --- a/src/tools/docbook/libxml2/gentest.py +++ /dev/null @@ -1,956 +0,0 @@ -#!/usr/bin/python -u -# -# generate a tester program for the API -# -import sys -import os -import string -try: - import libxml2 -except: - print "libxml2 python bindings not available, skipping testapi.c generation" - sys.exit(0) - -if len(sys.argv) > 1: - srcPref = sys.argv[1] + '/' -else: - srcPref = '' - -# -# Modules we want to skip in API test -# -skipped_modules = [ "SAX", "xlink", "threads", "globals", - "xmlmemory", "xmlversion", "xmlexports", - #deprecated - "DOCBparser", -] - -# -# defines for each module -# -modules_defines = { - "HTMLparser": "LIBXML_HTML_ENABLED", - "catalog": "LIBXML_CATALOG_ENABLED", - "xmlreader": "LIBXML_READER_ENABLED", - "relaxng": "LIBXML_SCHEMAS_ENABLED", - "schemasInternals": "LIBXML_SCHEMAS_ENABLED", - "xmlschemas": "LIBXML_SCHEMAS_ENABLED", - "xmlschemastypes": "LIBXML_SCHEMAS_ENABLED", - "xpath": "LIBXML_XPATH_ENABLED", - "xpathInternals": "LIBXML_XPATH_ENABLED", - "xinclude": "LIBXML_XINCLUDE_ENABLED", - "xpointer": "LIBXML_XPTR_ENABLED", - "xmlregexp" : "LIBXML_REGEXP_ENABLED", - "xmlautomata" : "LIBXML_AUTOMATA_ENABLED", - "xmlsave" : "LIBXML_OUTPUT_ENABLED", - "DOCBparser" : "LIBXML_DOCB_ENABLED", - "xmlmodule" : "LIBXML_MODULES_ENABLED", - "pattern" : "LIBXML_PATTERN_ENABLED", - "schematron" : "LIBXML_SCHEMATRON_ENABLED", -} - -# -# defines for specific functions -# -function_defines = { - "htmlDefaultSAXHandlerInit": "LIBXML_HTML_ENABLED", - "xmlSAX2EndElement" : "LIBXML_SAX1_ENABLED", - "xmlSAX2StartElement" : "LIBXML_SAX1_ENABLED", - "xmlSAXDefaultVersion" : "LIBXML_SAX1_ENABLED", - "UTF8Toisolat1" : "LIBXML_OUTPUT_ENABLED", - "xmlCleanupPredefinedEntities": "LIBXML_LEGACY_ENABLED", - "xmlInitializePredefinedEntities": "LIBXML_LEGACY_ENABLED", - "xmlSetFeature": "LIBXML_LEGACY_ENABLED", - "xmlGetFeature": "LIBXML_LEGACY_ENABLED", - "xmlGetFeaturesList": "LIBXML_LEGACY_ENABLED", - "xmlIOParseDTD": "LIBXML_VALID_ENABLED", - "xmlParseDTD": "LIBXML_VALID_ENABLED", - "xmlParseDoc": "LIBXML_SAX1_ENABLED", - "xmlParseMemory": "LIBXML_SAX1_ENABLED", - "xmlRecoverDoc": "LIBXML_SAX1_ENABLED", - "xmlParseFile": "LIBXML_SAX1_ENABLED", - "xmlRecoverFile": "LIBXML_SAX1_ENABLED", - "xmlRecoverMemory": "LIBXML_SAX1_ENABLED", - "xmlSAXParseFileWithData": "LIBXML_SAX1_ENABLED", - "xmlSAXParseMemory": "LIBXML_SAX1_ENABLED", - "xmlSAXUserParseMemory": "LIBXML_SAX1_ENABLED", - "xmlSAXParseDoc": "LIBXML_SAX1_ENABLED", - "xmlSAXParseDTD": "LIBXML_SAX1_ENABLED", - "xmlSAXUserParseFile": "LIBXML_SAX1_ENABLED", - "xmlParseEntity": "LIBXML_SAX1_ENABLED", - "xmlParseExternalEntity": "LIBXML_SAX1_ENABLED", - "xmlSAXParseMemoryWithData": "LIBXML_SAX1_ENABLED", - "xmlParseBalancedChunkMemory": "LIBXML_SAX1_ENABLED", - "xmlParseBalancedChunkMemoryRecover": "LIBXML_SAX1_ENABLED", - "xmlSetupParserForBuffer": "LIBXML_SAX1_ENABLED", - "xmlStopParser": "LIBXML_PUSH_ENABLED", - "xmlAttrSerializeTxtContent": "LIBXML_OUTPUT_ENABLED", - "xmlSAXParseFile": "LIBXML_SAX1_ENABLED", - "xmlSAXParseEntity": "LIBXML_SAX1_ENABLED", - "xmlNewTextChild": "LIBXML_TREE_ENABLED", - "xmlNewDocRawNode": "LIBXML_TREE_ENABLED", - "xmlNewProp": "LIBXML_TREE_ENABLED", - "xmlReconciliateNs": "LIBXML_TREE_ENABLED", - "xmlValidateNCName": "LIBXML_TREE_ENABLED", - "xmlValidateNMToken": "LIBXML_TREE_ENABLED", - "xmlValidateName": "LIBXML_TREE_ENABLED", - "xmlNewChild": "LIBXML_TREE_ENABLED", - "xmlValidateQName": "LIBXML_TREE_ENABLED", - "xmlSprintfElementContent": "LIBXML_OUTPUT_ENABLED", - "xmlValidGetPotentialChildren" : "LIBXML_VALID_ENABLED", - "xmlValidGetValidElements" : "LIBXML_VALID_ENABLED", - "docbDefaultSAXHandlerInit" : "LIBXML_DOCB_ENABLED", - "xmlTextReaderPreservePattern" : "LIBXML_PATTERN_ENABLED", -} - -# -# Some functions really need to be skipped for the tests. -# -skipped_functions = [ -# block on I/O -"xmlFdRead", "xmlReadFd", "xmlCtxtReadFd", -"htmlFdRead", "htmlReadFd", "htmlCtxtReadFd", -"xmlReaderNewFd", "xmlReaderForFd", -"xmlIORead", "xmlReadIO", "xmlCtxtReadIO", -"htmlIORead", "htmlReadIO", "htmlCtxtReadIO", -"xmlReaderNewIO", "xmlBufferDump", "xmlNanoFTPConnect", -"xmlNanoFTPConnectTo", "xmlNanoHTTPMethod", "xmlNanoHTTPMethodRedir", -# Complex I/O APIs -"xmlCreateIOParserCtxt", "xmlParserInputBufferCreateIO", -"xmlRegisterInputCallbacks", "xmlReaderForIO", -"xmlOutputBufferCreateIO", "xmlRegisterOutputCallbacks", -"xmlSaveToIO", "xmlIOHTTPOpenW", -# library state cleanup, generate false leak informations and other -# troubles, heavillyb tested otherwise. -"xmlCleanupParser", "xmlRelaxNGCleanupTypes", "xmlSetListDoc", -"xmlSetTreeDoc", "xmlUnlinkNode", -# hard to avoid leaks in the tests -"xmlStrcat", "xmlStrncat", "xmlCatalogAddLocal", "xmlNewTextWriterDoc", -"xmlXPathNewValueTree", "xmlXPathWrapString", -# unimplemented -"xmlTextReaderReadInnerXml", "xmlTextReaderReadOuterXml", -"xmlTextReaderReadString", -# destructor -"xmlListDelete", "xmlOutputBufferClose", "xmlNanoFTPClose", "xmlNanoHTTPClose", -# deprecated -"xmlCatalogGetPublic", "xmlCatalogGetSystem", "xmlEncodeEntities", -"xmlNewGlobalNs", "xmlHandleEntity", "xmlNamespaceParseNCName", -"xmlNamespaceParseNSDef", "xmlNamespaceParseQName", -"xmlParseNamespace", "xmlParseQuotedString", "xmlParserHandleReference", -"xmlScanName", -"xmlDecodeEntities", -# allocators -"xmlMemFree", -# verbosity -"xmlCatalogSetDebug", "xmlShellPrintXPathError", "xmlShellPrintNode", -# Internal functions, no user space should really call them -"xmlParseAttribute", "xmlParseAttributeListDecl", "xmlParseName", -"xmlParseNmtoken", "xmlParseEntityValue", "xmlParseAttValue", -"xmlParseSystemLiteral", "xmlParsePubidLiteral", "xmlParseCharData", -"xmlParseExternalID", "xmlParseComment", "xmlParsePITarget", "xmlParsePI", -"xmlParseNotationDecl", "xmlParseEntityDecl", "xmlParseDefaultDecl", -"xmlParseNotationType", "xmlParseEnumerationType", "xmlParseEnumeratedType", -"xmlParseAttributeType", "xmlParseAttributeListDecl", -"xmlParseElementMixedContentDecl", "xmlParseElementChildrenContentDecl", -"xmlParseElementContentDecl", "xmlParseElementDecl", "xmlParseMarkupDecl", -"xmlParseCharRef", "xmlParseEntityRef", "xmlParseReference", -"xmlParsePEReference", "xmlParseDocTypeDecl", "xmlParseAttribute", -"xmlParseStartTag", "xmlParseEndTag", "xmlParseCDSect", "xmlParseContent", -"xmlParseElement", "xmlParseVersionNum", "xmlParseVersionInfo", -"xmlParseEncName", "xmlParseEncodingDecl", "xmlParseSDDecl", -"xmlParseXMLDecl", "xmlParseTextDecl", "xmlParseMisc", -"xmlParseExternalSubset", "xmlParserHandlePEReference", -"xmlSkipBlankChars", -] - -# -# These functions have side effects on the global state -# and hence generate errors on memory allocation tests -# -skipped_memcheck = [ "xmlLoadCatalog", "xmlAddEncodingAlias", - "xmlSchemaInitTypes", "xmlNanoFTPProxy", "xmlNanoFTPScanProxy", - "xmlNanoHTTPScanProxy", "xmlResetLastError", "xmlCatalogConvert", - "xmlCatalogRemove", "xmlLoadCatalogs", "xmlCleanupCharEncodingHandlers", - "xmlInitCharEncodingHandlers", "xmlCatalogCleanup", - "xmlSchemaGetBuiltInType", - "htmlParseFile", "htmlCtxtReadFile", # loads the catalogs - "xmlTextReaderSchemaValidate", "xmlSchemaCleanupTypes" # initialize the schemas type system -] - -# -# Extra code needed for some test cases -# -extra_pre_call = { - "xmlSAXUserParseFile": """ -#ifdef LIBXML_SAX1_ENABLED - if (sax == (xmlSAXHandlerPtr)&xmlDefaultSAXHandler) user_data = NULL; -#endif -""", - "xmlSAXUserParseMemory": """ -#ifdef LIBXML_SAX1_ENABLED - if (sax == (xmlSAXHandlerPtr)&xmlDefaultSAXHandler) user_data = NULL; -#endif -""", - "xmlParseBalancedChunkMemory": """ -#ifdef LIBXML_SAX1_ENABLED - if (sax == (xmlSAXHandlerPtr)&xmlDefaultSAXHandler) user_data = NULL; -#endif -""", - "xmlParseBalancedChunkMemoryRecover": """ -#ifdef LIBXML_SAX1_ENABLED - if (sax == (xmlSAXHandlerPtr)&xmlDefaultSAXHandler) user_data = NULL; -#endif -""", - "xmlParserInputBufferCreateFd": - "if (fd >= 0) fd = -1;", -} -extra_post_call = { - "xmlAddChild": - "if (ret_val == NULL) { xmlFreeNode(cur) ; cur = NULL ; }", - "xmlAddChildList": - "if (ret_val == NULL) { xmlFreeNodeList(cur) ; cur = NULL ; }", - "xmlAddSibling": - "if (ret_val == NULL) { xmlFreeNode(elem) ; elem = NULL ; }", - "xmlAddNextSibling": - "if (ret_val == NULL) { xmlFreeNode(elem) ; elem = NULL ; }", - "xmlAddPrevSibling": - "if (ret_val == NULL) { xmlFreeNode(elem) ; elem = NULL ; }", - "xmlDocSetRootElement": - "if (doc == NULL) { xmlFreeNode(root) ; root = NULL ; }", - "xmlReplaceNode": - """if (cur != NULL) { - xmlUnlinkNode(cur); - xmlFreeNode(cur) ; cur = NULL ; } - if (old != NULL) { - xmlUnlinkNode(old); - xmlFreeNode(old) ; old = NULL ; } - ret_val = NULL;""", - "xmlTextMerge": - """if ((first != NULL) && (first->type != XML_TEXT_NODE)) { - xmlUnlinkNode(second); - xmlFreeNode(second) ; second = NULL ; }""", - "xmlBuildQName": - """if ((ret_val != NULL) && (ret_val != ncname) && - (ret_val != prefix) && (ret_val != memory)) - xmlFree(ret_val); - ret_val = NULL;""", - "xmlNewDocElementContent": - """xmlFreeDocElementContent(doc, ret_val); ret_val = NULL;""", - "xmlDictReference": "xmlDictFree(dict);", - # Functions which deallocates one of their parameters - "xmlXPathConvertBoolean": """val = NULL;""", - "xmlXPathConvertNumber": """val = NULL;""", - "xmlXPathConvertString": """val = NULL;""", - "xmlSaveFileTo": """buf = NULL;""", - "xmlSaveFormatFileTo": """buf = NULL;""", - "xmlIOParseDTD": "input = NULL;", - "xmlRemoveProp": "cur = NULL;", - "xmlNewNs": "if ((node == NULL) && (ret_val != NULL)) xmlFreeNs(ret_val);", - "xmlCopyNamespace": "if (ret_val != NULL) xmlFreeNs(ret_val);", - "xmlCopyNamespaceList": "if (ret_val != NULL) xmlFreeNsList(ret_val);", - "xmlNewTextWriter": "if (ret_val != NULL) out = NULL;", - "xmlNewTextWriterPushParser": "if (ctxt != NULL) {xmlFreeDoc(ctxt->myDoc); ctxt->myDoc = NULL;} if (ret_val != NULL) ctxt = NULL;", - "xmlNewIOInputStream": "if (ret_val != NULL) input = NULL;", - "htmlParseChunk": "if (ctxt != NULL) {xmlFreeDoc(ctxt->myDoc); ctxt->myDoc = NULL;}", - "htmlParseDocument": "if (ctxt != NULL) {xmlFreeDoc(ctxt->myDoc); ctxt->myDoc = NULL;}", - "xmlParseDocument": "if (ctxt != NULL) {xmlFreeDoc(ctxt->myDoc); ctxt->myDoc = NULL;}", - "xmlParseChunk": "if (ctxt != NULL) {xmlFreeDoc(ctxt->myDoc); ctxt->myDoc = NULL;}", - "xmlParseExtParsedEnt": "if (ctxt != NULL) {xmlFreeDoc(ctxt->myDoc); ctxt->myDoc = NULL;}", - "xmlDOMWrapAdoptNode": "if ((node != NULL) && (node->parent == NULL)) {xmlUnlinkNode(node);xmlFreeNode(node);node = NULL;}", -} - -modules = [] - -def is_skipped_module(name): - for mod in skipped_modules: - if mod == name: - return 1 - return 0 - -def is_skipped_function(name): - for fun in skipped_functions: - if fun == name: - return 1 - # Do not test destructors - if string.find(name, 'Free') != -1: - return 1 - return 0 - -def is_skipped_memcheck(name): - for fun in skipped_memcheck: - if fun == name: - return 1 - return 0 - -missing_types = {} -def add_missing_type(name, func): - try: - list = missing_types[name] - list.append(func) - except: - missing_types[name] = [func] - -generated_param_types = [] -def add_generated_param_type(name): - generated_param_types.append(name) - -generated_return_types = [] -def add_generated_return_type(name): - generated_return_types.append(name) - -missing_functions = {} -missing_functions_nr = 0 -def add_missing_functions(name, module): - global missing_functions_nr - - missing_functions_nr = missing_functions_nr + 1 - try: - list = missing_functions[module] - list.append(name) - except: - missing_functions[module] = [name] - -# -# Provide the type generators and destructors for the parameters -# - -def type_convert(str, name, info, module, function, pos): -# res = string.replace(str, " ", " ") -# res = string.replace(str, " ", " ") -# res = string.replace(str, " ", " ") - res = string.replace(str, " *", "_ptr") -# res = string.replace(str, "*", "_ptr") - res = string.replace(res, " ", "_") - if res == 'const_char_ptr': - if string.find(name, "file") != -1 or \ - string.find(name, "uri") != -1 or \ - string.find(name, "URI") != -1 or \ - string.find(info, "filename") != -1 or \ - string.find(info, "URI") != -1 or \ - string.find(info, "URL") != -1: - if string.find(function, "Save") != -1 or \ - string.find(function, "Create") != -1 or \ - string.find(function, "Write") != -1 or \ - string.find(function, "Fetch") != -1: - return('fileoutput') - return('filepath') - if res == 'void_ptr': - if module == 'nanoftp' and name == 'ctx': - return('xmlNanoFTPCtxtPtr') - if function == 'xmlNanoFTPNewCtxt' or \ - function == 'xmlNanoFTPConnectTo' or \ - function == 'xmlNanoFTPOpen': - return('xmlNanoFTPCtxtPtr') - if module == 'nanohttp' and name == 'ctx': - return('xmlNanoHTTPCtxtPtr') - if function == 'xmlNanoHTTPMethod' or \ - function == 'xmlNanoHTTPMethodRedir' or \ - function == 'xmlNanoHTTPOpen' or \ - function == 'xmlNanoHTTPOpenRedir': - return('xmlNanoHTTPCtxtPtr'); - if function == 'xmlIOHTTPOpen': - return('xmlNanoHTTPCtxtPtr') - if string.find(name, "data") != -1: - return('userdata') - if string.find(name, "user") != -1: - return('userdata') - if res == 'xmlDoc_ptr': - res = 'xmlDocPtr' - if res == 'xmlNode_ptr': - res = 'xmlNodePtr' - if res == 'xmlDict_ptr': - res = 'xmlDictPtr' - if res == 'xmlNodePtr' and pos != 0: - if (function == 'xmlAddChild' and pos == 2) or \ - (function == 'xmlAddChildList' and pos == 2) or \ - (function == 'xmlAddNextSibling' and pos == 2) or \ - (function == 'xmlAddSibling' and pos == 2) or \ - (function == 'xmlDocSetRootElement' and pos == 2) or \ - (function == 'xmlReplaceNode' and pos == 2) or \ - (function == 'xmlTextMerge') or \ - (function == 'xmlAddPrevSibling' and pos == 2): - return('xmlNodePtr_in'); - if res == 'const xmlBufferPtr': - res = 'xmlBufferPtr' - if res == 'xmlChar_ptr' and name == 'name' and \ - string.find(function, "EatName") != -1: - return('eaten_name') - if res == 'void_ptr*': - res = 'void_ptr_ptr' - if res == 'char_ptr*': - res = 'char_ptr_ptr' - if res == 'xmlChar_ptr*': - res = 'xmlChar_ptr_ptr' - if res == 'const_xmlChar_ptr*': - res = 'const_xmlChar_ptr_ptr' - if res == 'const_char_ptr*': - res = 'const_char_ptr_ptr' - if res == 'FILE_ptr' and module == 'debugXML': - res = 'debug_FILE_ptr'; - if res == 'int' and name == 'options': - if module == 'parser' or module == 'xmlreader': - res = 'parseroptions' - - return res - -known_param_types = [] - -def is_known_param_type(name, rtype): - global test - for type in known_param_types: - if type == name: - return 1 - for type in generated_param_types: - if type == name: - return 1 - - if name[-3:] == 'Ptr' or name[-4:] == '_ptr': - if rtype[0:6] == 'const ': - crtype = rtype[6:] - else: - crtype = rtype - - define = 0 - if modules_defines.has_key(module): - test.write("#ifdef %s\n" % (modules_defines[module])) - define = 1 - test.write(""" -#define gen_nb_%s 1 -static %s gen_%s(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_%s(int no ATTRIBUTE_UNUSED, %s val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -""" % (name, crtype, name, name, rtype)) - if define == 1: - test.write("#endif\n\n") - add_generated_param_type(name) - return 1 - - return 0 - -# -# Provide the type destructors for the return values -# - -known_return_types = [] - -def is_known_return_type(name): - for type in known_return_types: - if type == name: - return 1 - return 0 - -# -# Copy the beginning of the C test program result -# - -try: - input = open("testapi.c", "r") -except: - input = open(srcPref + "testapi.c", "r") -test = open('testapi.c.new', 'w') - -def compare_and_save(): - global test - - test.close() - try: - input = open("testapi.c", "r").read() - except: - input = '' - test = open('testapi.c.new', "r").read() - if input != test: - try: - os.system("rm testapi.c; mv testapi.c.new testapi.c") - except: - os.system("mv testapi.c.new testapi.c") - print("Updated testapi.c") - else: - print("Generated testapi.c is identical") - -line = input.readline() -while line != "": - if line == "/* CUT HERE: everything below that line is generated */\n": - break; - if line[0:15] == "#define gen_nb_": - type = string.split(line[15:])[0] - known_param_types.append(type) - if line[0:19] == "static void desret_": - type = string.split(line[19:], '(')[0] - known_return_types.append(type) - test.write(line) - line = input.readline() -input.close() - -if line == "": - print "Could not find the CUT marker in testapi.c skipping generation" - test.close() - sys.exit(0) - -print("Scanned testapi.c: found %d parameters types and %d return types\n" % ( - len(known_param_types), len(known_return_types))) -test.write("/* CUT HERE: everything below that line is generated */\n") - - -# -# Open the input API description -# -doc = libxml2.readFile(srcPref + 'doc/libxml2-api.xml', None, 0) -if doc == None: - print "Failed to load doc/libxml2-api.xml" - sys.exit(1) -ctxt = doc.xpathNewContext() - -# -# Generate a list of all function parameters and select only -# those used in the api tests -# -argtypes = {} -args = ctxt.xpathEval("/api/symbols/function/arg") -for arg in args: - mod = arg.xpathEval('string(../@file)') - func = arg.xpathEval('string(../@name)') - if (mod not in skipped_modules) and (func not in skipped_functions): - type = arg.xpathEval('string(@type)') - if not argtypes.has_key(type): - argtypes[type] = func - -# similarly for return types -rettypes = {} -rets = ctxt.xpathEval("/api/symbols/function/return") -for ret in rets: - mod = ret.xpathEval('string(../@file)') - func = ret.xpathEval('string(../@name)') - if (mod not in skipped_modules) and (func not in skipped_functions): - type = ret.xpathEval('string(@type)') - if not rettypes.has_key(type): - rettypes[type] = func - -# -# Generate constructors and return type handling for all enums -# which are used as function parameters -# -enums = ctxt.xpathEval("/api/symbols/typedef[@type='enum']") -for enum in enums: - module = enum.xpathEval('string(@file)') - name = enum.xpathEval('string(@name)') - # - # Skip any enums which are not in our filtered lists - # - if (name == None) or ((name not in argtypes) and (name not in rettypes)): - continue; - define = 0 - - if argtypes.has_key(name) and is_known_param_type(name, name) == 0: - values = ctxt.xpathEval("/api/symbols/enum[@type='%s']" % name) - i = 0 - vals = [] - for value in values: - vname = value.xpathEval('string(@name)') - if vname == None: - continue; - i = i + 1 - if i >= 5: - break; - vals.append(vname) - if vals == []: - print "Didn't find any value for enum %s" % (name) - continue - if modules_defines.has_key(module): - test.write("#ifdef %s\n" % (modules_defines[module])) - define = 1 - test.write("#define gen_nb_%s %d\n" % (name, len(vals))) - test.write("""static %s gen_%s(int no, int nr ATTRIBUTE_UNUSED) {\n""" % - (name, name)) - i = 1 - for value in vals: - test.write(" if (no == %d) return(%s);\n" % (i, value)) - i = i + 1 - test.write(""" return(0); -} - -static void des_%s(int no ATTRIBUTE_UNUSED, %s val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -""" % (name, name)); - known_param_types.append(name) - - if (is_known_return_type(name) == 0) and (name in rettypes): - if define == 0 and modules_defines.has_key(module): - test.write("#ifdef %s\n" % (modules_defines[module])) - define = 1 - test.write("""static void desret_%s(%s val ATTRIBUTE_UNUSED) { -} - -""" % (name, name)) - known_return_types.append(name) - if define == 1: - test.write("#endif\n\n") - -# -# Load the interfaces -# -headers = ctxt.xpathEval("/api/files/file") -for file in headers: - name = file.xpathEval('string(@name)') - if (name == None) or (name == ''): - continue - - # - # Some module may be skipped because they don't really consists - # of user callable APIs - # - if is_skipped_module(name): - continue - - # - # do not test deprecated APIs - # - desc = file.xpathEval('string(description)') - if string.find(desc, 'DEPRECATED') != -1: - print "Skipping deprecated interface %s" % name - continue; - - test.write("#include \n" % name) - modules.append(name) - -# -# Generate the callers signatures -# -for module in modules: - test.write("static int test_%s(void);\n" % module); - -# -# Generate the top caller -# - -test.write(""" -/** - * testlibxml2: - * - * Main entry point of the tester for the full libxml2 module, - * it calls all the tester entry point for each module. - * - * Returns the number of error found - */ -static int -testlibxml2(void) -{ - int test_ret = 0; - -""") - -for module in modules: - test.write(" test_ret += test_%s();\n" % module) - -test.write(""" - printf("Total: %d functions, %d tests, %d errors\\n", - function_tests, call_tests, test_ret); - return(test_ret); -} - -""") - -# -# How to handle a function -# -nb_tests = 0 - -def generate_test(module, node): - global test - global nb_tests - nb_cond = 0 - no_gen = 0 - - name = node.xpathEval('string(@name)') - if is_skipped_function(name): - return - - # - # check we know how to handle the args and return values - # and store the informations for the generation - # - try: - args = node.xpathEval("arg") - except: - args = [] - t_args = [] - n = 0 - for arg in args: - n = n + 1 - rtype = arg.xpathEval("string(@type)") - if rtype == 'void': - break; - info = arg.xpathEval("string(@info)") - nam = arg.xpathEval("string(@name)") - type = type_convert(rtype, nam, info, module, name, n) - if is_known_param_type(type, rtype) == 0: - add_missing_type(type, name); - no_gen = 1 - if (type[-3:] == 'Ptr' or type[-4:] == '_ptr') and \ - rtype[0:6] == 'const ': - crtype = rtype[6:] - else: - crtype = rtype - t_args.append((nam, type, rtype, crtype, info)) - - try: - rets = node.xpathEval("return") - except: - rets = [] - t_ret = None - for ret in rets: - rtype = ret.xpathEval("string(@type)") - info = ret.xpathEval("string(@info)") - type = type_convert(rtype, 'return', info, module, name, 0) - if rtype == 'void': - break - if is_known_return_type(type) == 0: - add_missing_type(type, name); - no_gen = 1 - t_ret = (type, rtype, info) - break - - test.write(""" -static int -test_%s(void) { - int test_ret = 0; - -""" % (name)) - - if no_gen == 1: - add_missing_functions(name, module) - test.write(""" - /* missing type support */ - return(test_ret); -} - -""") - return - - try: - conds = node.xpathEval("cond") - for cond in conds: - test.write("#if %s\n" % (cond.get_content())) - nb_cond = nb_cond + 1 - except: - pass - - define = 0 - if function_defines.has_key(name): - test.write("#ifdef %s\n" % (function_defines[name])) - define = 1 - - # Declare the memory usage counter - no_mem = is_skipped_memcheck(name) - if no_mem == 0: - test.write(" int mem_base;\n"); - - # Declare the return value - if t_ret != None: - test.write(" %s ret_val;\n" % (t_ret[1])) - - # Declare the arguments - for arg in t_args: - (nam, type, rtype, crtype, info) = arg; - # add declaration - test.write(" %s %s; /* %s */\n" % (crtype, nam, info)) - test.write(" int n_%s;\n" % (nam)) - test.write("\n") - - # Cascade loop on of each argument list of values - for arg in t_args: - (nam, type, rtype, crtype, info) = arg; - # - test.write(" for (n_%s = 0;n_%s < gen_nb_%s;n_%s++) {\n" % ( - nam, nam, type, nam)) - - # log the memory usage - if no_mem == 0: - test.write(" mem_base = xmlMemBlocks();\n"); - - # prepare the call - i = 0; - for arg in t_args: - (nam, type, rtype, crtype, info) = arg; - # - test.write(" %s = gen_%s(n_%s, %d);\n" % (nam, type, nam, i)) - i = i + 1; - - # do the call, and clanup the result - if extra_pre_call.has_key(name): - test.write(" %s\n"% (extra_pre_call[name])) - if t_ret != None: - test.write("\n ret_val = %s(" % (name)) - need = 0 - for arg in t_args: - (nam, type, rtype, crtype, info) = arg - if need: - test.write(", ") - else: - need = 1 - if rtype != crtype: - test.write("(%s)" % rtype) - test.write("%s" % nam); - test.write(");\n") - if extra_post_call.has_key(name): - test.write(" %s\n"% (extra_post_call[name])) - test.write(" desret_%s(ret_val);\n" % t_ret[0]) - else: - test.write("\n %s(" % (name)); - need = 0; - for arg in t_args: - (nam, type, rtype, crtype, info) = arg; - if need: - test.write(", ") - else: - need = 1 - if rtype != crtype: - test.write("(%s)" % rtype) - test.write("%s" % nam) - test.write(");\n") - if extra_post_call.has_key(name): - test.write(" %s\n"% (extra_post_call[name])) - - test.write(" call_tests++;\n"); - - # Free the arguments - i = 0; - for arg in t_args: - (nam, type, rtype, crtype, info) = arg; - # - test.write(" des_%s(n_%s, " % (type, nam)) - if rtype != crtype: - test.write("(%s)" % rtype) - test.write("%s, %d);\n" % (nam, i)) - i = i + 1; - - test.write(" xmlResetLastError();\n"); - # Check the memory usage - if no_mem == 0: - test.write(""" if (mem_base != xmlMemBlocks()) { - printf("Leak of %%d blocks found in %s", - xmlMemBlocks() - mem_base); - test_ret++; -""" % (name)); - for arg in t_args: - (nam, type, rtype, crtype, info) = arg; - test.write(""" printf(" %%d", n_%s);\n""" % (nam)) - test.write(""" printf("\\n");\n""") - test.write(" }\n") - - for arg in t_args: - test.write(" }\n") - - test.write(" function_tests++;\n") - # - # end of conditional - # - while nb_cond > 0: - test.write("#endif\n") - nb_cond = nb_cond -1 - if define == 1: - test.write("#endif\n") - - nb_tests = nb_tests + 1; - - test.write(""" - return(test_ret); -} - -""") - -# -# Generate all module callers -# -for module in modules: - # gather all the functions exported by that module - try: - functions = ctxt.xpathEval("/api/symbols/function[@file='%s']" % (module)) - except: - print "Failed to gather functions from module %s" % (module) - continue; - - # iterate over all functions in the module generating the test - i = 0 - nb_tests_old = nb_tests - for function in functions: - i = i + 1 - generate_test(module, function); - - # header - test.write("""static int -test_%s(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing %s : %d of %d functions ...\\n"); -""" % (module, module, nb_tests - nb_tests_old, i)) - - # iterate over all functions in the module generating the call - for function in functions: - name = function.xpathEval('string(@name)') - if is_skipped_function(name): - continue - test.write(" test_ret += test_%s();\n" % (name)) - - # footer - test.write(""" - if (test_ret != 0) - printf("Module %s: %%d errors\\n", test_ret); - return(test_ret); -} -""" % (module)) - -# -# Generate direct module caller -# -test.write("""static int -test_module(const char *module) { -"""); -for module in modules: - test.write(""" if (!strcmp(module, "%s")) return(test_%s());\n""" % ( - module, module)) -test.write(""" return(0); -} -"""); - -print "Generated test for %d modules and %d functions" %(len(modules), nb_tests) - -compare_and_save() - -missing_list = [] -for missing in missing_types.keys(): - if missing == 'va_list' or missing == '...': - continue; - - n = len(missing_types[missing]) - missing_list.append((n, missing)) - -def compare_missing(a, b): - return b[0] - a[0] - -missing_list.sort(compare_missing) -print "Missing support for %d functions and %d types see missing.lst" % (missing_functions_nr, len(missing_list)) -lst = open("missing.lst", "w") -lst.write("Missing support for %d types" % (len(missing_list))) -lst.write("\n") -for miss in missing_list: - lst.write("%s: %d :" % (miss[1], miss[0])) - i = 0 - for n in missing_types[miss[1]]: - i = i + 1 - if i > 5: - lst.write(" ...") - break - lst.write(" %s" % (n)) - lst.write("\n") -lst.write("\n") -lst.write("\n") -lst.write("Missing support per module"); -for module in missing_functions.keys(): - lst.write("module %s:\n %s\n" % (module, missing_functions[module])) - -lst.close() - - diff --git a/src/tools/docbook/libxml2/install-sh b/src/tools/docbook/libxml2/install-sh deleted file mode 100755 index ebc66913e9..0000000000 --- a/src/tools/docbook/libxml2/install-sh +++ /dev/null @@ -1,250 +0,0 @@ -#! /bin/sh -# -# install - install a program, script, or datafile -# This comes from X11R5 (mit/util/scripts/install.sh). -# -# Copyright 1991 by the Massachusetts Institute of Technology -# -# Permission to use, copy, modify, distribute, and sell this software and its -# documentation for any purpose is hereby granted without fee, provided that -# the above copyright notice appear in all copies and that both that -# copyright notice and this permission notice appear in supporting -# documentation, and that the name of M.I.T. not be used in advertising or -# publicity pertaining to distribution of the software without specific, -# written prior permission. M.I.T. makes no representations about the -# suitability of this software for any purpose. It is provided "as is" -# without express or implied warranty. -# -# Calling this script install-sh is preferred over install.sh, to prevent -# `make' implicit rules from creating a file called install from it -# when there is no Makefile. -# -# This script is compatible with the BSD install script, but was written -# from scratch. It can only install one file at a time, a restriction -# shared with many OS's install programs. - - -# set DOITPROG to echo to test this script - -# Don't use :- since 4.3BSD and earlier shells don't like it. -doit="${DOITPROG-}" - - -# put in absolute paths if you don't have them in your path; or use env. vars. - -mvprog="${MVPROG-mv}" -cpprog="${CPPROG-cp}" -chmodprog="${CHMODPROG-chmod}" -chownprog="${CHOWNPROG-chown}" -chgrpprog="${CHGRPPROG-chgrp}" -stripprog="${STRIPPROG-strip}" -rmprog="${RMPROG-rm}" -mkdirprog="${MKDIRPROG-mkdir}" - -transformbasename="" -transform_arg="" -instcmd="$mvprog" -chmodcmd="$chmodprog 0755" -chowncmd="" -chgrpcmd="" -stripcmd="" -rmcmd="$rmprog -f" -mvcmd="$mvprog" -src="" -dst="" -dir_arg="" - -while [ x"$1" != x ]; do - case $1 in - -c) instcmd="$cpprog" - shift - continue;; - - -d) dir_arg=true - shift - continue;; - - -m) chmodcmd="$chmodprog $2" - shift - shift - continue;; - - -o) chowncmd="$chownprog $2" - shift - shift - continue;; - - -g) chgrpcmd="$chgrpprog $2" - shift - shift - continue;; - - -s) stripcmd="$stripprog" - shift - continue;; - - -t=*) transformarg=`echo $1 | sed 's/-t=//'` - shift - continue;; - - -b=*) transformbasename=`echo $1 | sed 's/-b=//'` - shift - continue;; - - *) if [ x"$src" = x ] - then - src=$1 - else - # this colon is to work around a 386BSD /bin/sh bug - : - dst=$1 - fi - shift - continue;; - esac -done - -if [ x"$src" = x ] -then - echo "install: no input file specified" - exit 1 -else - true -fi - -if [ x"$dir_arg" != x ]; then - dst=$src - src="" - - if [ -d $dst ]; then - instcmd=: - else - instcmd=mkdir - fi -else - -# Waiting for this to be detected by the "$instcmd $src $dsttmp" command -# might cause directories to be created, which would be especially bad -# if $src (and thus $dsttmp) contains '*'. - - if [ -f $src -o -d $src ] - then - true - else - echo "install: $src does not exist" - exit 1 - fi - - if [ x"$dst" = x ] - then - echo "install: no destination specified" - exit 1 - else - true - fi - -# If destination is a directory, append the input filename; if your system -# does not like double slashes in filenames, you may need to add some logic - - if [ -d $dst ] - then - dst="$dst"/`basename $src` - else - true - fi -fi - -## this sed command emulates the dirname command -dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` - -# Make sure that the destination directory exists. -# this part is taken from Noah Friedman's mkinstalldirs script - -# Skip lots of stat calls in the usual case. -if [ ! -d "$dstdir" ]; then -defaultIFS=' -' -IFS="${IFS-${defaultIFS}}" - -oIFS="${IFS}" -# Some sh's can't handle IFS=/ for some reason. -IFS='%' -set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` -IFS="${oIFS}" - -pathcomp='' - -while [ $# -ne 0 ] ; do - pathcomp="${pathcomp}${1}" - shift - - if [ ! -d "${pathcomp}" ] ; - then - $mkdirprog "${pathcomp}" - else - true - fi - - pathcomp="${pathcomp}/" -done -fi - -if [ x"$dir_arg" != x ] -then - $doit $instcmd $dst && - - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi -else - -# If we're going to rename the final executable, determine the name now. - - if [ x"$transformarg" = x ] - then - dstfile=`basename $dst` - else - dstfile=`basename $dst $transformbasename | - sed $transformarg`$transformbasename - fi - -# don't allow the sed command to completely eliminate the filename - - if [ x"$dstfile" = x ] - then - dstfile=`basename $dst` - else - true - fi - -# Make a temp file name in the proper directory. - - dsttmp=$dstdir/#inst.$$# - -# Move or copy the file name to the temp name - - $doit $instcmd $src $dsttmp && - - trap "rm -f ${dsttmp}" 0 && - -# and set any options; do chmod last to preserve setuid bits - -# If any of these fail, we abort the whole thing. If we want to -# ignore errors from any of these, just make sure not to ignore -# errors from the above "$doit $instcmd $src $dsttmp" command. - - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && - -# Now rename the file to the real destination. - - $doit $rmcmd -f $dstdir/$dstfile && - $doit $mvcmd $dsttmp $dstdir/$dstfile - -fi && - - -exit 0 diff --git a/src/tools/docbook/libxml2/libxml-2.0-uninstalled.pc.in b/src/tools/docbook/libxml2/libxml-2.0-uninstalled.pc.in deleted file mode 100644 index 0a4c8338e4..0000000000 --- a/src/tools/docbook/libxml2/libxml-2.0-uninstalled.pc.in +++ /dev/null @@ -1,12 +0,0 @@ -prefix= -exec_prefix= -libdir=${pcfiledir} -includedir=${pcfiledir}/include - - -Name: libXML -Version: @VERSION@ -Description: libXML library version2. -Requires: -Libs: -L${libdir} -lxml2 @THREAD_LIBS@ @Z_LIBS@ @ICONV_LIBS@ @M_LIBS@ @LIBS@ -Cflags: -I${includedir} @XML_INCLUDEDIR@ @XML_CFLAGS@ diff --git a/src/tools/docbook/libxml2/libxml-2.0.pc.in b/src/tools/docbook/libxml2/libxml-2.0.pc.in deleted file mode 100644 index c66f82bca7..0000000000 --- a/src/tools/docbook/libxml2/libxml-2.0.pc.in +++ /dev/null @@ -1,12 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ -modules=@WITH_MODULES@ - -Name: libXML -Version: @VERSION@ -Description: libXML library version2. -Requires: -Libs: -L${libdir} -lxml2 @THREAD_LIBS@ @Z_LIBS@ @ICONV_LIBS@ @M_LIBS@ @LIBS@ -Cflags: @XML_INCLUDEDIR@ @XML_CFLAGS@ diff --git a/src/tools/docbook/libxml2/libxml.3 b/src/tools/docbook/libxml2/libxml.3 deleted file mode 100644 index 88d3eee286..0000000000 --- a/src/tools/docbook/libxml2/libxml.3 +++ /dev/null @@ -1,71 +0,0 @@ -.TH libxml 3 "12 April 2000" -.SH NAME -libxml \- library used to parse XML files -.SH DESCRIPTION -The -.I libxml -library is used to parse XML files. -Its internal document repesentation is as close as possible to the -.I DOM -(Document Object Model) interface, -an API for accessing XML or HTML structured documents. -.LP -The -.I libxml -library also has a -.IR SAX -like -interface, -which is designed to be compatible with -.IR expat (1). -NOTE: -.IR SAX , -the Simple API for XML, -is a standard interface for event-based XML parsing, -developed collaboratively by the members of the XML-DEV mailing list, -currently hosted by OASIS. -The -.I expat -library is a XML 1.0 parser written in C, -which aims to be fully conforming. -It is currently not a validating XML processor. -.LP -The -.I libxml -library now includes a nearly complete -.I XPath -implementation. -The -.I XPath -(XML Path Language) is a language for addressing parts of an -XML document, -designed to be used by both -.I XSLT -and -.IR XPointer . -.LP -The -.I libxml -library exports Push and Pull type parser interfaces for both XML and -.IR html . -.SH FILES -.TP 2.2i -.B /depot/lib/libxml_2.0.0/libxml.a -static library -.TP -.B /depot/lib/libxml_2.0.0/libxml.so -shared library -.TP -.B /depot/package/libxml_2.0.0/bin/xmllint -binary application for parsing XML files -.SH AUTHORS -Daniel Veillard (daniel@veillard.com). -Red Hat Inc. -Manual page by Ziying Sherwin (sherwin@nlm.nih.gov), -Lister Hill National Center for Biomedical Communications, -U.S. National Library of Medicine. -.SH SEE ALSO -.IR xmllint (1), -.IR libxslt (3), -.IR libexslt (3), -.IR xsltproc (1) -.\" end of manual page diff --git a/src/tools/docbook/libxml2/libxml.m4 b/src/tools/docbook/libxml2/libxml.m4 deleted file mode 100644 index 68cd8242fb..0000000000 --- a/src/tools/docbook/libxml2/libxml.m4 +++ /dev/null @@ -1,188 +0,0 @@ -# Configure paths for LIBXML2 -# Mike Hommey 2004-06-19 -# use CPPFLAGS instead of CFLAGS -# Toshio Kuratomi 2001-04-21 -# Adapted from: -# Configure paths for GLIB -# Owen Taylor 97-11-3 - -dnl AM_PATH_XML2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) -dnl Test for XML, and define XML_CPPFLAGS and XML_LIBS -dnl -AC_DEFUN([AM_PATH_XML2],[ -AC_ARG_WITH(xml-prefix, - [ --with-xml-prefix=PFX Prefix where libxml is installed (optional)], - xml_config_prefix="$withval", xml_config_prefix="") -AC_ARG_WITH(xml-exec-prefix, - [ --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)], - xml_config_exec_prefix="$withval", xml_config_exec_prefix="") -AC_ARG_ENABLE(xmltest, - [ --disable-xmltest Do not try to compile and run a test LIBXML program],, - enable_xmltest=yes) - - if test x$xml_config_exec_prefix != x ; then - xml_config_args="$xml_config_args" - if test x${XML2_CONFIG+set} != xset ; then - XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config - fi - fi - if test x$xml_config_prefix != x ; then - xml_config_args="$xml_config_args --prefix=$xml_config_prefix" - if test x${XML2_CONFIG+set} != xset ; then - XML2_CONFIG=$xml_config_prefix/bin/xml2-config - fi - fi - - AC_PATH_PROG(XML2_CONFIG, xml2-config, no) - min_xml_version=ifelse([$1], ,2.0.0,[$1]) - AC_MSG_CHECKING(for libxml - version >= $min_xml_version) - no_xml="" - if test "$XML2_CONFIG" = "no" ; then - no_xml=yes - else - XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags` - XML_LIBS=`$XML2_CONFIG $xml_config_args --libs` - xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \ - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` - xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \ - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` - xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \ - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` - if test "x$enable_xmltest" = "xyes" ; then - ac_save_CPPFLAGS="$CPPFLAGS" - ac_save_LIBS="$LIBS" - CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS" - LIBS="$XML_LIBS $LIBS" -dnl -dnl Now check if the installed libxml is sufficiently new. -dnl (Also sanity checks the results of xml2-config to some extent) -dnl - rm -f conf.xmltest - AC_TRY_RUN([ -#include -#include -#include -#include - -int -main() -{ - int xml_major_version, xml_minor_version, xml_micro_version; - int major, minor, micro; - char *tmp_version; - - system("touch conf.xmltest"); - - /* Capture xml2-config output via autoconf/configure variables */ - /* HP/UX 9 (%@#!) writes to sscanf strings */ - tmp_version = (char *)strdup("$min_xml_version"); - if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { - printf("%s, bad version string from xml2-config\n", "$min_xml_version"); - exit(1); - } - free(tmp_version); - - /* Capture the version information from the header files */ - tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION); - if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) { - printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION"); - exit(1); - } - free(tmp_version); - - /* Compare xml2-config output to the libxml headers */ - if ((xml_major_version != $xml_config_major_version) || - (xml_minor_version != $xml_config_minor_version) || - (xml_micro_version != $xml_config_micro_version)) - { - printf("*** libxml header files (version %d.%d.%d) do not match\n", - xml_major_version, xml_minor_version, xml_micro_version); - printf("*** xml2-config (version %d.%d.%d)\n", - $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version); - return 1; - } -/* Compare the headers to the library to make sure we match */ - /* Less than ideal -- doesn't provide us with return value feedback, - * only exits if there's a serious mismatch between header and library. - */ - LIBXML_TEST_VERSION; - - /* Test that the library is greater than our minimum version */ - if ((xml_major_version > major) || - ((xml_major_version == major) && (xml_minor_version > minor)) || - ((xml_major_version == major) && (xml_minor_version == minor) && - (xml_micro_version >= micro))) - { - return 0; - } - else - { - printf("\n*** An old version of libxml (%d.%d.%d) was found.\n", - xml_major_version, xml_minor_version, xml_micro_version); - printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n", - major, minor, micro); - printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n"); - printf("***\n"); - printf("*** If you have already installed a sufficiently new version, this error\n"); - printf("*** probably means that the wrong copy of the xml2-config shell script is\n"); - printf("*** being found. The easiest way to fix this is to remove the old version\n"); - printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n"); - printf("*** correct copy of xml2-config. (In this case, you will have to\n"); - printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); - printf("*** so that the correct libraries are found at run-time))\n"); - } - return 1; -} -],, no_xml=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) - CPPFLAGS="$ac_save_CPPFLAGS" - LIBS="$ac_save_LIBS" - fi - fi - - if test "x$no_xml" = x ; then - AC_MSG_RESULT(yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)) - ifelse([$2], , :, [$2]) - else - AC_MSG_RESULT(no) - if test "$XML2_CONFIG" = "no" ; then - echo "*** The xml2-config script installed by LIBXML could not be found" - echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in" - echo "*** your path, or set the XML2_CONFIG environment variable to the" - echo "*** full path to xml2-config." - else - if test -f conf.xmltest ; then - : - else - echo "*** Could not run libxml test program, checking why..." - CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS" - LIBS="$LIBS $XML_LIBS" - AC_TRY_LINK([ -#include -#include -], [ LIBXML_TEST_VERSION; return 0;], - [ echo "*** The test program compiled, but did not run. This usually means" - echo "*** that the run-time linker is not finding LIBXML or finding the wrong" - echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your" - echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" - echo "*** to the installed location Also, make sure you have run ldconfig if that" - echo "*** is required on your system" - echo "***" - echo "*** If you have an old version installed, it is best to remove it, although" - echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], - [ echo "*** The test program failed to compile or link. See the file config.log for the" - echo "*** exact error that occured. This usually means LIBXML was incorrectly installed" - echo "*** or that you have moved LIBXML since it was installed. In the latter case, you" - echo "*** may want to edit the xml2-config script: $XML2_CONFIG" ]) - CPPFLAGS="$ac_save_CPPFLAGS" - LIBS="$ac_save_LIBS" - fi - fi - - XML_CPPFLAGS="" - XML_LIBS="" - ifelse([$3], , :, [$3]) - fi - AC_SUBST(XML_CPPFLAGS) - AC_SUBST(XML_LIBS) - rm -f conf.xmltest -]) diff --git a/src/tools/docbook/libxml2/libxml.spec.in b/src/tools/docbook/libxml2/libxml.spec.in deleted file mode 100644 index 2345f3a7ce..0000000000 --- a/src/tools/docbook/libxml2/libxml.spec.in +++ /dev/null @@ -1,133 +0,0 @@ -Summary: Library providing XML and HTML support -Name: libxml2 -Version: @VERSION@ -Release: 1 -License: MIT -Group: Development/Libraries -Source: ftp://xmlsoft.org/libxml2-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-root -BuildRequires: python python-devel zlib-devel -URL: http://xmlsoft.org/ -Prefix: %{_prefix} -Docdir: %{_docdir} - -%description -This library allows to manipulate XML files. It includes support -to read, modify and write XML and HTML files. There is DTDs support -this includes parsing and validation even with complex DtDs, either -at parse time or later once the document has been modified. The output -can be a simple SAX stream or and in-memory DOM like representations. -In this case one can use the built-in XPath and XPointer implementation -to select subnodes or ranges. A flexible Input/Output mechanism is -available, with existing HTTP and FTP modules and combined to an -URI library. - -%package devel -Summary: Libraries, includes, etc. to develop XML and HTML applications -Group: Development/Libraries -Requires: libxml2 = %{version} -Requires: zlib-devel -Requires: pkgconfig - -%description devel -Libraries, include files, etc you can use to develop XML applications. -This library allows to manipulate XML files. It includes support -to read, modify and write XML and HTML files. There is DTDs support -this includes parsing and validation even with complex DtDs, either -at parse time or later once the document has been modified. The output -can be a simple SAX stream or and in-memory DOM like representations. -In this case one can use the built-in XPath and XPointer implementation -to select subnodes or ranges. A flexible Input/Output mechanism is -available, with existing HTTP and FTP modules and combined to an -URI library. - -%package python -Summary: Python bindings for the libxml2 library -Group: Development/Libraries -Requires: libxml2 = %{version} -Requires: %{_libdir}/python%(echo `python -c "import sys; print sys.version[0:3]"`) - -%description python -The libxml2-python package contains a module that permits applications -written in the Python programming language to use the interface -supplied by the libxml2 library to manipulate XML files. - -This library allows to manipulate XML files. It includes support -to read, modify and write XML and HTML files. There is DTDs support -this includes parsing and validation even with complex DTDs, either -at parse time or later once the document has been modified. - -%prep -%setup -q - -%build -%configure -make -gzip -9 ChangeLog - -%install -rm -fr %{buildroot} - -%makeinstall -(cd doc/examples ; make clean ; rm -rf .deps) -gzip -9 doc/libxml2-api.xml -rm -f $RPM_BUILD_ROOT%{_libdir}/*.la - -%clean -rm -fr %{buildroot} - -%post -/sbin/ldconfig - -%postun -/sbin/ldconfig - -%files -%defattr(-, root, root) - -%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO -%doc %{_mandir}/man1/xmllint.1* -%doc %{_mandir}/man1/xmlcatalog.1* -%doc %{_mandir}/man3/libxml.3* - -%{_libdir}/lib*.so.* -%{prefix}/bin/xmllint -%{prefix}/bin/xmlcatalog - -%files devel -%defattr(-, root, root) - -%doc %{_mandir}/man1/xml2-config.1* -%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO -%doc doc/*.html doc/html doc/*.gif doc/*.png -%doc doc/tutorial doc/libxml2-api.xml.gz -%doc doc/examples -%doc %{_datadir}/gtk-doc/html/libxml2/*.devhelp -%doc %{_datadir}/gtk-doc/html/libxml2/*.html -%doc %{_datadir}/gtk-doc/html/libxml2/*.png -%doc %{_datadir}/gtk-doc/html/libxml2/*.css - -%{_libdir}/lib*.so -%{_libdir}/*a -%{_libdir}/*.sh -%{prefix}/include/* -%{prefix}/bin/xml2-config -%{prefix}/share/aclocal/libxml.m4 -%{_libdir}/pkgconfig/libxml-2.0.pc -%files python -%defattr(-, root, root) - -%doc AUTHORS ChangeLog.gz NEWS README Copyright -%{_libdir}/python*/site-packages/libxml2.py* -%{_libdir}/python*/site-packages/drv_libxml2.py* -%{_libdir}/python*/site-packages/libxml2mod* -%doc python/TODO -%doc python/libxml2class.txt -%doc python/tests/*.py -%doc doc/*.py -%doc doc/python.html - -%changelog -* @RELDATE@ Daniel Veillard -- upstream release @VERSION@ see http://xmlsoft.org/news.html - diff --git a/src/tools/docbook/libxml2/libxml2.spec b/src/tools/docbook/libxml2/libxml2.spec deleted file mode 100644 index 5604bb94a6..0000000000 --- a/src/tools/docbook/libxml2/libxml2.spec +++ /dev/null @@ -1,133 +0,0 @@ -Summary: Library providing XML and HTML support -Name: libxml2 -Version: 2.6.26 -Release: 1 -License: MIT -Group: Development/Libraries -Source: ftp://xmlsoft.org/libxml2-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-root -BuildRequires: python python-devel zlib-devel -URL: http://xmlsoft.org/ -Prefix: %{_prefix} -Docdir: %{_docdir} - -%description -This library allows to manipulate XML files. It includes support -to read, modify and write XML and HTML files. There is DTDs support -this includes parsing and validation even with complex DtDs, either -at parse time or later once the document has been modified. The output -can be a simple SAX stream or and in-memory DOM like representations. -In this case one can use the built-in XPath and XPointer implementation -to select subnodes or ranges. A flexible Input/Output mechanism is -available, with existing HTTP and FTP modules and combined to an -URI library. - -%package devel -Summary: Libraries, includes, etc. to develop XML and HTML applications -Group: Development/Libraries -Requires: libxml2 = %{version} -Requires: zlib-devel -Requires: pkgconfig - -%description devel -Libraries, include files, etc you can use to develop XML applications. -This library allows to manipulate XML files. It includes support -to read, modify and write XML and HTML files. There is DTDs support -this includes parsing and validation even with complex DtDs, either -at parse time or later once the document has been modified. The output -can be a simple SAX stream or and in-memory DOM like representations. -In this case one can use the built-in XPath and XPointer implementation -to select subnodes or ranges. A flexible Input/Output mechanism is -available, with existing HTTP and FTP modules and combined to an -URI library. - -%package python -Summary: Python bindings for the libxml2 library -Group: Development/Libraries -Requires: libxml2 = %{version} -Requires: %{_libdir}/python%(echo `python -c "import sys; print sys.version[0:3]"`) - -%description python -The libxml2-python package contains a module that permits applications -written in the Python programming language to use the interface -supplied by the libxml2 library to manipulate XML files. - -This library allows to manipulate XML files. It includes support -to read, modify and write XML and HTML files. There is DTDs support -this includes parsing and validation even with complex DTDs, either -at parse time or later once the document has been modified. - -%prep -%setup -q - -%build -%configure -make -gzip -9 ChangeLog - -%install -rm -fr %{buildroot} - -%makeinstall -(cd doc/examples ; make clean ; rm -rf .deps) -gzip -9 doc/libxml2-api.xml -rm -f $RPM_BUILD_ROOT%{_libdir}/*.la - -%clean -rm -fr %{buildroot} - -%post -/sbin/ldconfig - -%postun -/sbin/ldconfig - -%files -%defattr(-, root, root) - -%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO -%doc %{_mandir}/man1/xmllint.1* -%doc %{_mandir}/man1/xmlcatalog.1* -%doc %{_mandir}/man3/libxml.3* - -%{_libdir}/lib*.so.* -%{prefix}/bin/xmllint -%{prefix}/bin/xmlcatalog - -%files devel -%defattr(-, root, root) - -%doc %{_mandir}/man1/xml2-config.1* -%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO -%doc doc/*.html doc/html doc/*.gif doc/*.png -%doc doc/tutorial doc/libxml2-api.xml.gz -%doc doc/examples -%doc %{_datadir}/gtk-doc/html/libxml2/*.devhelp -%doc %{_datadir}/gtk-doc/html/libxml2/*.html -%doc %{_datadir}/gtk-doc/html/libxml2/*.png -%doc %{_datadir}/gtk-doc/html/libxml2/*.css - -%{_libdir}/lib*.so -%{_libdir}/*a -%{_libdir}/*.sh -%{prefix}/include/* -%{prefix}/bin/xml2-config -%{prefix}/share/aclocal/libxml.m4 -%{_libdir}/pkgconfig/libxml-2.0.pc -%files python -%defattr(-, root, root) - -%doc AUTHORS ChangeLog.gz NEWS README Copyright -%{_libdir}/python*/site-packages/libxml2.py* -%{_libdir}/python*/site-packages/drv_libxml2.py* -%{_libdir}/python*/site-packages/libxml2mod* -%doc python/TODO -%doc python/libxml2class.txt -%doc python/tests/*.py -%doc doc/*.py -%doc doc/python.html - -%changelog -* Tue Jun 6 2006 Daniel Veillard -- upstream release 2.6.26 see http://xmlsoft.org/news.html - diff --git a/src/tools/docbook/libxml2/ltmain.sh b/src/tools/docbook/libxml2/ltmain.sh deleted file mode 100644 index 06823e057a..0000000000 --- a/src/tools/docbook/libxml2/ltmain.sh +++ /dev/null @@ -1,6863 +0,0 @@ -# ltmain.sh - Provide generalized library-building support services. -# NOTE: Changing this file will not affect anything until you rerun configure. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -basename="s,^.*/,,g" - -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh -# is ksh but when the shell is invoked as "sh" and the current value of -# the _XPG environment variable is not equal to 1 (one), the special -# positional parameter $0, within a function call, is the name of the -# function. -progpath="$0" - -# The name of this program: -progname=`echo "$progpath" | $SED $basename` -modename="$progname" - -# Global variables: -EXIT_SUCCESS=0 -EXIT_FAILURE=1 - -PROGRAM=ltmain.sh -PACKAGE=libtool -VERSION=1.5.22 -TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)" - -# See if we are running on zsh, and set the options which allow our -# commands through without removal of \ escapes. -if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST -fi - -# Check that we have a working $echo. -if test "X$1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X$1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then - # Yippee, $echo works! - : -else - # Restart under the correct shell, and then maybe $echo will work. - exec $SHELL "$progpath" --no-reexec ${1+"$@"} -fi - -if test "X$1" = X--fallback-echo; then - # used as fallback echo - shift - cat <&2 - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 - exit $EXIT_FAILURE -fi - -# Global variables. -mode=$default_mode -nonopt= -prev= -prevopt= -run= -show="$echo" -show_help= -execute_dlfiles= -duplicate_deps=no -preserve_args= -lo2o="s/\\.lo\$/.${objext}/" -o2lo="s/\\.${objext}\$/.lo/" - -##################################### -# Shell function definitions: -# This seems to be the best place for them - -# func_mktempdir [string] -# Make a temporary directory that won't clash with other running -# libtool processes, and avoids race conditions if possible. If -# given, STRING is the basename for that directory. -func_mktempdir () -{ - my_template="${TMPDIR-/tmp}/${1-$progname}" - - if test "$run" = ":"; then - # Return a directory name, but don't create it in dry-run mode - my_tmpdir="${my_template}-$$" - else - - # If mktemp works, use that first and foremost - my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` - - if test ! -d "$my_tmpdir"; then - # Failing that, at least try and use $RANDOM to avoid a race - my_tmpdir="${my_template}-${RANDOM-0}$$" - - save_mktempdir_umask=`umask` - umask 0077 - $mkdir "$my_tmpdir" - umask $save_mktempdir_umask - fi - - # If we're not in dry-run mode, bomb out on failure - test -d "$my_tmpdir" || { - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 - exit $EXIT_FAILURE - } - fi - - $echo "X$my_tmpdir" | $Xsed -} - - -# func_win32_libid arg -# return the library type of file 'arg' -# -# Need a lot of goo to handle *both* DLLs and import libs -# Has to be a shell function in order to 'eat' the argument -# that is supplied when $file_magic_command is called. -func_win32_libid () -{ - win32_libid_type="unknown" - win32_fileres=`file -L $1 2>/dev/null` - case $win32_fileres in - *ar\ archive\ import\ library*) # definitely import - win32_libid_type="x86 archive import" - ;; - *ar\ archive*) # could be an import, or static - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then - win32_nmres=`eval $NM -f posix -A $1 | \ - $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'` - case $win32_nmres in - import*) win32_libid_type="x86 archive import";; - *) win32_libid_type="x86 archive static";; - esac - fi - ;; - *DLL*) - win32_libid_type="x86 DLL" - ;; - *executable*) # but shell scripts are "executable" too... - case $win32_fileres in - *MS\ Windows\ PE\ Intel*) - win32_libid_type="x86 DLL" - ;; - esac - ;; - esac - $echo $win32_libid_type -} - - -# func_infer_tag arg -# Infer tagged configuration to use if any are available and -# if one wasn't chosen via the "--tag" command line option. -# Only attempt this if the compiler in the base compile -# command doesn't match the default compiler. -# arg is usually of the form 'gcc ...' -func_infer_tag () -{ - if test -n "$available_tags" && test -z "$tagname"; then - CC_quoted= - for arg in $CC; do - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - CC_quoted="$CC_quoted $arg" - done - case $@ in - # Blanks in the command may have been stripped by the calling shell, - # but not from the CC environment variable when configure was run. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; - # Blanks at the start of $base_compile will cause this to fail - # if we don't check for them as well. - *) - for z in $available_tags; do - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then - # Evaluate the configuration. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" - CC_quoted= - for arg in $CC; do - # Double-quote args containing other shell metacharacters. - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - CC_quoted="$CC_quoted $arg" - done - case "$@ " in - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) - # The compiler in the base compile command matches - # the one in the tagged configuration. - # Assume this is the tagged configuration we want. - tagname=$z - break - ;; - esac - fi - done - # If $tagname still isn't set, then no tagged configuration - # was found and let the user know that the "--tag" command - # line option must be used. - if test -z "$tagname"; then - $echo "$modename: unable to infer tagged configuration" - $echo "$modename: specify a tag with \`--tag'" 1>&2 - exit $EXIT_FAILURE -# else -# $echo "$modename: using $tagname tagged configuration" - fi - ;; - esac - fi -} - - -# func_extract_an_archive dir oldlib -func_extract_an_archive () -{ - f_ex_an_ar_dir="$1"; shift - f_ex_an_ar_oldlib="$1" - - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then - : - else - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 - exit $EXIT_FAILURE - fi -} - -# func_extract_archives gentop oldlib ... -func_extract_archives () -{ - my_gentop="$1"; shift - my_oldlibs=${1+"$@"} - my_oldobjs="" - my_xlib="" - my_xabs="" - my_xdir="" - my_status="" - - $show "${rm}r $my_gentop" - $run ${rm}r "$my_gentop" - $show "$mkdir $my_gentop" - $run $mkdir "$my_gentop" - my_status=$? - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then - exit $my_status - fi - - for my_xlib in $my_oldlibs; do - # Extract the objects. - case $my_xlib in - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; - *) my_xabs=`pwd`"/$my_xlib" ;; - esac - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` - my_xdir="$my_gentop/$my_xlib" - - $show "${rm}r $my_xdir" - $run ${rm}r "$my_xdir" - $show "$mkdir $my_xdir" - $run $mkdir "$my_xdir" - exit_status=$? - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then - exit $exit_status - fi - case $host in - *-darwin*) - $show "Extracting $my_xabs" - # Do not bother doing anything if just a dry run - if test -z "$run"; then - darwin_orig_dir=`pwd` - cd $my_xdir || exit $? - darwin_archive=$my_xabs - darwin_curdir=`pwd` - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` - if test -n "$darwin_arches"; then - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` - darwin_arch= - $show "$darwin_base_archive has multiple architectures $darwin_arches" - for darwin_arch in $darwin_arches ; do - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" - func_extract_an_archive "`pwd`" "${darwin_base_archive}" - cd "$darwin_curdir" - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" - done # $darwin_arches - ## Okay now we have a bunch of thin objects, gotta fatten them up :) - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` - darwin_file= - darwin_files= - for darwin_file in $darwin_filelist; do - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` - lipo -create -output "$darwin_file" $darwin_files - done # $darwin_filelist - ${rm}r unfat-$$ - cd "$darwin_orig_dir" - else - cd "$darwin_orig_dir" - func_extract_an_archive "$my_xdir" "$my_xabs" - fi # $darwin_arches - fi # $run - ;; - *) - func_extract_an_archive "$my_xdir" "$my_xabs" - ;; - esac - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` - done - func_extract_archives_result="$my_oldobjs" -} -# End of Shell function definitions -##################################### - -# Darwin sucks -eval std_shrext=\"$shrext_cmds\" - -disable_libs=no - -# Parse our command line options once, thoroughly. -while test "$#" -gt 0 -do - arg="$1" - shift - - case $arg in - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; - *) optarg= ;; - esac - - # If the previous option needs an argument, assign it. - if test -n "$prev"; then - case $prev in - execute_dlfiles) - execute_dlfiles="$execute_dlfiles $arg" - ;; - tag) - tagname="$arg" - preserve_args="${preserve_args}=$arg" - - # Check whether tagname contains only valid characters - case $tagname in - *[!-_A-Za-z0-9,/]*) - $echo "$progname: invalid tag name: $tagname" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - case $tagname in - CC) - # Don't test for the "default" C tag, as we know, it's there, but - # not specially marked. - ;; - *) - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then - taglist="$taglist $tagname" - # Evaluate the configuration. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" - else - $echo "$progname: ignoring unknown tag $tagname" 1>&2 - fi - ;; - esac - ;; - *) - eval "$prev=\$arg" - ;; - esac - - prev= - prevopt= - continue - fi - - # Have we seen a non-optional argument yet? - case $arg in - --help) - show_help=yes - ;; - - --version) - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" - $echo - $echo "Copyright (C) 2005 Free Software Foundation, Inc." - $echo "This is free software; see the source for copying conditions. There is NO" - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - exit $? - ;; - - --config) - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath - # Now print the configurations for the tags. - for tagname in $taglist; do - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" - done - exit $? - ;; - - --debug) - $echo "$progname: enabling shell trace mode" - set -x - preserve_args="$preserve_args $arg" - ;; - - --dry-run | -n) - run=: - ;; - - --features) - $echo "host: $host" - if test "$build_libtool_libs" = yes; then - $echo "enable shared libraries" - else - $echo "disable shared libraries" - fi - if test "$build_old_libs" = yes; then - $echo "enable static libraries" - else - $echo "disable static libraries" - fi - exit $? - ;; - - --finish) mode="finish" ;; - - --mode) prevopt="--mode" prev=mode ;; - --mode=*) mode="$optarg" ;; - - --preserve-dup-deps) duplicate_deps="yes" ;; - - --quiet | --silent) - show=: - preserve_args="$preserve_args $arg" - ;; - - --tag) - prevopt="--tag" - prev=tag - preserve_args="$preserve_args --tag" - ;; - --tag=*) - set tag "$optarg" ${1+"$@"} - shift - prev=tag - preserve_args="$preserve_args --tag" - ;; - - -dlopen) - prevopt="-dlopen" - prev=execute_dlfiles - ;; - - -*) - $echo "$modename: unrecognized option \`$arg'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - ;; - - *) - nonopt="$arg" - break - ;; - esac -done - -if test -n "$prevopt"; then - $echo "$modename: option \`$prevopt' requires an argument" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE -fi - -case $disable_libs in -no) - ;; -shared) - build_libtool_libs=no - build_old_libs=yes - ;; -static) - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` - ;; -esac - -# If this variable is set in any of the actions, the command in it -# will be execed at the end. This prevents here-documents from being -# left over by shells. -exec_cmd= - -if test -z "$show_help"; then - - # Infer the operation mode. - if test -z "$mode"; then - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 - case $nonopt in - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) - mode=link - for arg - do - case $arg in - -c) - mode=compile - break - ;; - esac - done - ;; - *db | *dbx | *strace | *truss) - mode=execute - ;; - *install*|cp|mv) - mode=install - ;; - *rm) - mode=uninstall - ;; - *) - # If we have no mode, but dlfiles were specified, then do execute mode. - test -n "$execute_dlfiles" && mode=execute - - # Just use the default operation mode. - if test -z "$mode"; then - if test -n "$nonopt"; then - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 - else - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 - fi - fi - ;; - esac - fi - - # Only execute mode is allowed to have -dlopen flags. - if test -n "$execute_dlfiles" && test "$mode" != execute; then - $echo "$modename: unrecognized option \`-dlopen'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # Change the help message to a mode-specific one. - generic_help="$help" - help="Try \`$modename --help --mode=$mode' for more information." - - # These modes are in order of execution frequency so that they run quickly. - case $mode in - # libtool compile mode - compile) - modename="$modename: compile" - # Get the compilation command and the source file. - base_compile= - srcfile="$nonopt" # always keep a non-empty value in "srcfile" - suppress_opt=yes - suppress_output= - arg_mode=normal - libobj= - later= - - for arg - do - case $arg_mode in - arg ) - # do not "continue". Instead, add this to base_compile - lastarg="$arg" - arg_mode=normal - ;; - - target ) - libobj="$arg" - arg_mode=normal - continue - ;; - - normal ) - # Accept any command-line options. - case $arg in - -o) - if test -n "$libobj" ; then - $echo "$modename: you cannot specify \`-o' more than once" 1>&2 - exit $EXIT_FAILURE - fi - arg_mode=target - continue - ;; - - -static | -prefer-pic | -prefer-non-pic) - later="$later $arg" - continue - ;; - - -no-suppress) - suppress_opt=no - continue - ;; - - -Xcompiler) - arg_mode=arg # the next one goes into the "base_compile" arg list - continue # The current "srcfile" will either be retained or - ;; # replaced later. I would guess that would be a bug. - - -Wc,*) - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` - lastarg= - save_ifs="$IFS"; IFS=',' - for arg in $args; do - IFS="$save_ifs" - - # Double-quote args containing other shell metacharacters. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - lastarg="$lastarg $arg" - done - IFS="$save_ifs" - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` - - # Add the arguments to base_compile. - base_compile="$base_compile $lastarg" - continue - ;; - - * ) - # Accept the current argument as the source file. - # The previous "srcfile" becomes the current argument. - # - lastarg="$srcfile" - srcfile="$arg" - ;; - esac # case $arg - ;; - esac # case $arg_mode - - # Aesthetically quote the previous argument. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` - - case $lastarg in - # Double-quote args containing other shell metacharacters. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, and some SunOS ksh mistreat backslash-escaping - # in scan sets (worked around with variable expansion), - # and furthermore cannot handle '|' '&' '(' ')' in scan sets - # at all, so we specify them separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - lastarg="\"$lastarg\"" - ;; - esac - - base_compile="$base_compile $lastarg" - done # for arg - - case $arg_mode in - arg) - $echo "$modename: you must specify an argument for -Xcompile" - exit $EXIT_FAILURE - ;; - target) - $echo "$modename: you must specify a target with \`-o'" 1>&2 - exit $EXIT_FAILURE - ;; - *) - # Get the name of the library object. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` - ;; - esac - - # Recognize several different file suffixes. - # If the user specifies -o file.o, it is replaced with file.lo - xform='[cCFSifmso]' - case $libobj in - *.ada) xform=ada ;; - *.adb) xform=adb ;; - *.ads) xform=ads ;; - *.asm) xform=asm ;; - *.c++) xform=c++ ;; - *.cc) xform=cc ;; - *.ii) xform=ii ;; - *.class) xform=class ;; - *.cpp) xform=cpp ;; - *.cxx) xform=cxx ;; - *.f90) xform=f90 ;; - *.for) xform=for ;; - *.java) xform=java ;; - esac - - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` - - case $libobj in - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; - *) - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - func_infer_tag $base_compile - - for arg in $later; do - case $arg in - -static) - build_old_libs=yes - continue - ;; - - -prefer-pic) - pic_mode=yes - continue - ;; - - -prefer-non-pic) - pic_mode=no - continue - ;; - esac - done - - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` - case $qlibobj in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - qlibobj="\"$qlibobj\"" ;; - esac - test "X$libobj" != "X$qlibobj" \ - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$obj"; then - xdir= - else - xdir=$xdir/ - fi - lobj=${xdir}$objdir/$objname - - if test -z "$base_compile"; then - $echo "$modename: you must specify a compilation command" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # Delete any leftover library objects. - if test "$build_old_libs" = yes; then - removelist="$obj $lobj $libobj ${libobj}T" - else - removelist="$lobj $libobj ${libobj}T" - fi - - $run $rm $removelist - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 - - # On Cygwin there's no "real" PIC flag so we must build both object types - case $host_os in - cygwin* | mingw* | pw32* | os2*) - pic_mode=default - ;; - esac - if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then - # non-PIC code in shared libraries is not supported - pic_mode=default - fi - - # Calculate the filename of the output object if compiler does - # not support -o with -c - if test "$compiler_c_o" = no; then - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} - lockfile="$output_obj.lock" - removelist="$removelist $output_obj $lockfile" - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 - else - output_obj= - need_locks=no - lockfile= - fi - - # Lock this critical section if it is needed - # We use this script file to make the link, it avoids creating a new file - if test "$need_locks" = yes; then - until $run ln "$progpath" "$lockfile" 2>/dev/null; do - $show "Waiting for $lockfile to be removed" - sleep 2 - done - elif test "$need_locks" = warn; then - if test -f "$lockfile"; then - $echo "\ -*** ERROR, $lockfile exists and contains: -`cat $lockfile 2>/dev/null` - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $run $rm $removelist - exit $EXIT_FAILURE - fi - $echo "$srcfile" > "$lockfile" - fi - - if test -n "$fix_srcfile_path"; then - eval srcfile=\"$fix_srcfile_path\" - fi - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` - case $qsrcfile in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - qsrcfile="\"$qsrcfile\"" ;; - esac - - $run $rm "$libobj" "${libobj}T" - - # Create a libtool object file (analogous to a ".la" file), - # but don't create it if we're doing a dry run. - test -z "$run" && cat > ${libobj}T </dev/null`" != "X$srcfile"; then - $echo "\ -*** ERROR, $lockfile contains: -`cat $lockfile 2>/dev/null` - -but it should contain: -$srcfile - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $run $rm $removelist - exit $EXIT_FAILURE - fi - - # Just move the object if needed, then go on to compile the next one - if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then - $show "$mv $output_obj $lobj" - if $run $mv $output_obj $lobj; then : - else - error=$? - $run $rm $removelist - exit $error - fi - fi - - # Append the name of the PIC object to the libtool object file. - test -z "$run" && cat >> ${libobj}T <> ${libobj}T </dev/null`" != "X$srcfile"; then - $echo "\ -*** ERROR, $lockfile contains: -`cat $lockfile 2>/dev/null` - -but it should contain: -$srcfile - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $run $rm $removelist - exit $EXIT_FAILURE - fi - - # Just move the object if needed - if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then - $show "$mv $output_obj $obj" - if $run $mv $output_obj $obj; then : - else - error=$? - $run $rm $removelist - exit $error - fi - fi - - # Append the name of the non-PIC object the libtool object file. - # Only append if the libtool object file exists. - test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 - fi - if test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - else - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=built - fi - build_libtool_libs=no - build_old_libs=yes - break - ;; - esac - done - - # See if our shared archives depend on static archives. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes - - # Go through the arguments, transforming them on the way. - while test "$#" -gt 0; do - arg="$1" - shift - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test - ;; - *) qarg=$arg ;; - esac - libtool_args="$libtool_args $qarg" - - # If the previous option needs an argument, assign it. - if test -n "$prev"; then - case $prev in - output) - compile_command="$compile_command @OUTPUT@" - finalize_command="$finalize_command @OUTPUT@" - ;; - esac - - case $prev in - dlfiles|dlprefiles) - if test "$preload" = no; then - # Add the symbol object into the linking commands. - compile_command="$compile_command @SYMFILE@" - finalize_command="$finalize_command @SYMFILE@" - preload=yes - fi - case $arg in - *.la | *.lo) ;; # We handle these cases below. - force) - if test "$dlself" = no; then - dlself=needless - export_dynamic=yes - fi - prev= - continue - ;; - self) - if test "$prev" = dlprefiles; then - dlself=yes - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then - dlself=yes - else - dlself=needless - export_dynamic=yes - fi - prev= - continue - ;; - *) - if test "$prev" = dlfiles; then - dlfiles="$dlfiles $arg" - else - dlprefiles="$dlprefiles $arg" - fi - prev= - continue - ;; - esac - ;; - expsyms) - export_symbols="$arg" - if test ! -f "$arg"; then - $echo "$modename: symbol file \`$arg' does not exist" - exit $EXIT_FAILURE - fi - prev= - continue - ;; - expsyms_regex) - export_symbols_regex="$arg" - prev= - continue - ;; - inst_prefix) - inst_prefix_dir="$arg" - prev= - continue - ;; - precious_regex) - precious_files_regex="$arg" - prev= - continue - ;; - release) - release="-$arg" - prev= - continue - ;; - objectlist) - if test -f "$arg"; then - save_arg=$arg - moreargs= - for fil in `cat $save_arg` - do -# moreargs="$moreargs $fil" - arg=$fil - # A libtool-controlled object. - - # Check to see that this really is a libtool object. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - pic_object= - non_pic_object= - - # Read the .lo file - # If there is no directory component, then add one. - case $arg in - */* | *\\*) . $arg ;; - *) . ./$arg ;; - esac - - if test -z "$pic_object" || \ - test -z "$non_pic_object" || - test "$pic_object" = none && \ - test "$non_pic_object" = none; then - $echo "$modename: cannot find name of object for \`$arg'" 1>&2 - exit $EXIT_FAILURE - fi - - # Extract subdirectory from the argument. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$arg"; then - xdir= - else - xdir="$xdir/" - fi - - if test "$pic_object" != none; then - # Prepend the subdirectory the object is found in. - pic_object="$xdir$pic_object" - - if test "$prev" = dlfiles; then - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then - dlfiles="$dlfiles $pic_object" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi - - # CHECK ME: I think I busted this. -Ossama - if test "$prev" = dlprefiles; then - # Preload the old-style object. - dlprefiles="$dlprefiles $pic_object" - prev= - fi - - # A PIC object. - libobjs="$libobjs $pic_object" - arg="$pic_object" - fi - - # Non-PIC object. - if test "$non_pic_object" != none; then - # Prepend the subdirectory the object is found in. - non_pic_object="$xdir$non_pic_object" - - # A standard non-PIC object - non_pic_objects="$non_pic_objects $non_pic_object" - if test -z "$pic_object" || test "$pic_object" = none ; then - arg="$non_pic_object" - fi - else - # If the PIC object exists, use it instead. - # $xdir was prepended to $pic_object above. - non_pic_object="$pic_object" - non_pic_objects="$non_pic_objects $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if test -z "$run"; then - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 - exit $EXIT_FAILURE - else - # Dry-run case. - - # Extract subdirectory from the argument. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$arg"; then - xdir= - else - xdir="$xdir/" - fi - - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` - libobjs="$libobjs $pic_object" - non_pic_objects="$non_pic_objects $non_pic_object" - fi - fi - done - else - $echo "$modename: link input file \`$save_arg' does not exist" - exit $EXIT_FAILURE - fi - arg=$save_arg - prev= - continue - ;; - rpath | xrpath) - # We need an absolute path. - case $arg in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - $echo "$modename: only absolute run-paths are allowed" 1>&2 - exit $EXIT_FAILURE - ;; - esac - if test "$prev" = rpath; then - case "$rpath " in - *" $arg "*) ;; - *) rpath="$rpath $arg" ;; - esac - else - case "$xrpath " in - *" $arg "*) ;; - *) xrpath="$xrpath $arg" ;; - esac - fi - prev= - continue - ;; - xcompiler) - compiler_flags="$compiler_flags $qarg" - prev= - compile_command="$compile_command $qarg" - finalize_command="$finalize_command $qarg" - continue - ;; - xlinker) - linker_flags="$linker_flags $qarg" - compiler_flags="$compiler_flags $wl$qarg" - prev= - compile_command="$compile_command $wl$qarg" - finalize_command="$finalize_command $wl$qarg" - continue - ;; - xcclinker) - linker_flags="$linker_flags $qarg" - compiler_flags="$compiler_flags $qarg" - prev= - compile_command="$compile_command $qarg" - finalize_command="$finalize_command $qarg" - continue - ;; - shrext) - shrext_cmds="$arg" - prev= - continue - ;; - darwin_framework|darwin_framework_skip) - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - prev= - continue - ;; - *) - eval "$prev=\"\$arg\"" - prev= - continue - ;; - esac - fi # test -n "$prev" - - prevarg="$arg" - - case $arg in - -all-static) - if test -n "$link_static_flag"; then - compile_command="$compile_command $link_static_flag" - finalize_command="$finalize_command $link_static_flag" - fi - continue - ;; - - -allow-undefined) - # FIXME: remove this flag sometime in the future. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 - continue - ;; - - -avoid-version) - avoid_version=yes - continue - ;; - - -dlopen) - prev=dlfiles - continue - ;; - - -dlpreopen) - prev=dlprefiles - continue - ;; - - -export-dynamic) - export_dynamic=yes - continue - ;; - - -export-symbols | -export-symbols-regex) - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then - $echo "$modename: more than one -exported-symbols argument is not allowed" - exit $EXIT_FAILURE - fi - if test "X$arg" = "X-export-symbols"; then - prev=expsyms - else - prev=expsyms_regex - fi - continue - ;; - - -framework|-arch|-isysroot) - case " $CC " in - *" ${arg} ${1} "* | *" ${arg} ${1} "*) - prev=darwin_framework_skip ;; - *) compiler_flags="$compiler_flags $arg" - prev=darwin_framework ;; - esac - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - continue - ;; - - -inst-prefix-dir) - prev=inst_prefix - continue - ;; - - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* - # so, if we see these flags be careful not to treat them like -L - -L[A-Z][A-Z]*:*) - case $with_gcc/$host in - no/*-*-irix* | /*-*-irix*) - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - ;; - esac - continue - ;; - - -L*) - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - absdir=`cd "$dir" && pwd` - if test -z "$absdir"; then - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 - absdir="$dir" - notinst_path="$notinst_path $dir" - fi - dir="$absdir" - ;; - esac - case "$deplibs " in - *" -L$dir "*) ;; - *) - deplibs="$deplibs -L$dir" - lib_search_path="$lib_search_path $dir" - ;; - esac - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$dir:"*) ;; - *) dllsearchpath="$dllsearchpath:$dir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - *) dllsearchpath="$dllsearchpath:$testbindir";; - esac - ;; - esac - continue - ;; - - -l*) - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) - # These systems don't actually have a C or math library (as such) - continue - ;; - *-*-os2*) - # These systems don't actually have a C library (as such) - test "X$arg" = "X-lc" && continue - ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc due to us having libc/libc_r. - test "X$arg" = "X-lc" && continue - ;; - *-*-rhapsody* | *-*-darwin1.[012]) - # Rhapsody C and math libraries are in the System framework - deplibs="$deplibs -framework System" - continue - ;; - *-*-sco3.2v5* | *-*-sco5v6*) - # Causes problems with __ctype - test "X$arg" = "X-lc" && continue - ;; - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) - # Compiler inserts libc in the correct place for threads to work - test "X$arg" = "X-lc" && continue - ;; - esac - elif test "X$arg" = "X-lc_r"; then - case $host in - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc_r directly, use -pthread flag. - continue - ;; - esac - fi - deplibs="$deplibs $arg" - continue - ;; - - # Tru64 UNIX uses -model [arg] to determine the layout of C++ - # classes, name mangling, and exception handling. - -model) - compile_command="$compile_command $arg" - compiler_flags="$compiler_flags $arg" - finalize_command="$finalize_command $arg" - prev=xcompiler - continue - ;; - - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) - compiler_flags="$compiler_flags $arg" - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - continue - ;; - - -module) - module=yes - continue - ;; - - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler - # -r[0-9][0-9]* specifies the processor on the SGI compiler - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler - # +DA*, +DD* enable 64-bit mode on the HP compiler - # -q* pass through compiler args for the IBM compiler - # -m* pass through architecture-specific compiler args for GCC - # -m*, -t[45]*, -txscale* pass through architecture-specific - # compiler args for GCC - # -pg pass through profiling flag for GCC - # @file GCC response files - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \ - -t[45]*|-txscale*|@*) - - # Unknown arguments in both finalize_command and compile_command need - # to be aesthetically quoted because they are evaled later. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - compiler_flags="$compiler_flags $arg" - continue - ;; - - -shrext) - prev=shrext - continue - ;; - - -no-fast-install) - fast_install=no - continue - ;; - - -no-install) - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) - # The PATH hackery in wrapper scripts is required on Windows - # in order for the loader to find any dlls it needs. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 - fast_install=no - ;; - *) no_install=yes ;; - esac - continue - ;; - - -no-undefined) - allow_undefined=no - continue - ;; - - -objectlist) - prev=objectlist - continue - ;; - - -o) prev=output ;; - - -precious-files-regex) - prev=precious_regex - continue - ;; - - -release) - prev=release - continue - ;; - - -rpath) - prev=rpath - continue - ;; - - -R) - prev=xrpath - continue - ;; - - -R*) - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - $echo "$modename: only absolute run-paths are allowed" 1>&2 - exit $EXIT_FAILURE - ;; - esac - case "$xrpath " in - *" $dir "*) ;; - *) xrpath="$xrpath $dir" ;; - esac - continue - ;; - - -static) - # The effects of -static are defined in a previous loop. - # We used to do the same as -all-static on platforms that - # didn't have a PIC flag, but the assumption that the effects - # would be equivalent was wrong. It would break on at least - # Digital Unix and AIX. - continue - ;; - - -thread-safe) - thread_safe=yes - continue - ;; - - -version-info) - prev=vinfo - continue - ;; - -version-number) - prev=vinfo - vinfo_number=yes - continue - ;; - - -Wc,*) - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` - arg= - save_ifs="$IFS"; IFS=',' - for flag in $args; do - IFS="$save_ifs" - case $flag in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - flag="\"$flag\"" - ;; - esac - arg="$arg $wl$flag" - compiler_flags="$compiler_flags $flag" - done - IFS="$save_ifs" - arg=`$echo "X$arg" | $Xsed -e "s/^ //"` - ;; - - -Wl,*) - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` - arg= - save_ifs="$IFS"; IFS=',' - for flag in $args; do - IFS="$save_ifs" - case $flag in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - flag="\"$flag\"" - ;; - esac - arg="$arg $wl$flag" - compiler_flags="$compiler_flags $wl$flag" - linker_flags="$linker_flags $flag" - done - IFS="$save_ifs" - arg=`$echo "X$arg" | $Xsed -e "s/^ //"` - ;; - - -Xcompiler) - prev=xcompiler - continue - ;; - - -Xlinker) - prev=xlinker - continue - ;; - - -XCClinker) - prev=xcclinker - continue - ;; - - # Some other compiler flag. - -* | +*) - # Unknown arguments in both finalize_command and compile_command need - # to be aesthetically quoted because they are evaled later. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - ;; - - *.$objext) - # A standard object. - objs="$objs $arg" - ;; - - *.lo) - # A libtool-controlled object. - - # Check to see that this really is a libtool object. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - pic_object= - non_pic_object= - - # Read the .lo file - # If there is no directory component, then add one. - case $arg in - */* | *\\*) . $arg ;; - *) . ./$arg ;; - esac - - if test -z "$pic_object" || \ - test -z "$non_pic_object" || - test "$pic_object" = none && \ - test "$non_pic_object" = none; then - $echo "$modename: cannot find name of object for \`$arg'" 1>&2 - exit $EXIT_FAILURE - fi - - # Extract subdirectory from the argument. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$arg"; then - xdir= - else - xdir="$xdir/" - fi - - if test "$pic_object" != none; then - # Prepend the subdirectory the object is found in. - pic_object="$xdir$pic_object" - - if test "$prev" = dlfiles; then - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then - dlfiles="$dlfiles $pic_object" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi - - # CHECK ME: I think I busted this. -Ossama - if test "$prev" = dlprefiles; then - # Preload the old-style object. - dlprefiles="$dlprefiles $pic_object" - prev= - fi - - # A PIC object. - libobjs="$libobjs $pic_object" - arg="$pic_object" - fi - - # Non-PIC object. - if test "$non_pic_object" != none; then - # Prepend the subdirectory the object is found in. - non_pic_object="$xdir$non_pic_object" - - # A standard non-PIC object - non_pic_objects="$non_pic_objects $non_pic_object" - if test -z "$pic_object" || test "$pic_object" = none ; then - arg="$non_pic_object" - fi - else - # If the PIC object exists, use it instead. - # $xdir was prepended to $pic_object above. - non_pic_object="$pic_object" - non_pic_objects="$non_pic_objects $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if test -z "$run"; then - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 - exit $EXIT_FAILURE - else - # Dry-run case. - - # Extract subdirectory from the argument. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$arg"; then - xdir= - else - xdir="$xdir/" - fi - - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` - libobjs="$libobjs $pic_object" - non_pic_objects="$non_pic_objects $non_pic_object" - fi - fi - ;; - - *.$libext) - # An archive. - deplibs="$deplibs $arg" - old_deplibs="$old_deplibs $arg" - continue - ;; - - *.la) - # A libtool-controlled library. - - if test "$prev" = dlfiles; then - # This library was specified with -dlopen. - dlfiles="$dlfiles $arg" - prev= - elif test "$prev" = dlprefiles; then - # The library was specified with -dlpreopen. - dlprefiles="$dlprefiles $arg" - prev= - else - deplibs="$deplibs $arg" - fi - continue - ;; - - # Some other compiler argument. - *) - # Unknown arguments in both finalize_command and compile_command need - # to be aesthetically quoted because they are evaled later. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - ;; - esac # arg - - # Now actually substitute the argument into the commands. - if test -n "$arg"; then - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - fi - done # argument parsing loop - - if test -n "$prev"; then - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then - eval arg=\"$export_dynamic_flag_spec\" - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - fi - - oldlibs= - # calculate the name of the file, without its directory - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` - libobjs_save="$libobjs" - - if test -n "$shlibpath_var"; then - # get the directories listed in $shlibpath_var - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` - else - shlib_search_path= - fi - eval sys_lib_search_path=\"$sys_lib_search_path_spec\" - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" - - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` - if test "X$output_objdir" = "X$output"; then - output_objdir="$objdir" - else - output_objdir="$output_objdir/$objdir" - fi - # Create the object directory. - if test ! -d "$output_objdir"; then - $show "$mkdir $output_objdir" - $run $mkdir $output_objdir - exit_status=$? - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then - exit $exit_status - fi - fi - - # Determine the type of output - case $output in - "") - $echo "$modename: you must specify an output file" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - ;; - *.$libext) linkmode=oldlib ;; - *.lo | *.$objext) linkmode=obj ;; - *.la) linkmode=lib ;; - *) linkmode=prog ;; # Anything else should be a program. - esac - - case $host in - *cygwin* | *mingw* | *pw32*) - # don't eliminate duplications in $postdeps and $predeps - duplicate_compiler_generated_deps=yes - ;; - *) - duplicate_compiler_generated_deps=$duplicate_deps - ;; - esac - specialdeplibs= - - libs= - # Find all interdependent deplibs by searching for libraries - # that are linked more than once (e.g. -la -lb -la) - for deplib in $deplibs; do - if test "X$duplicate_deps" = "Xyes" ; then - case "$libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - libs="$libs $deplib" - done - - if test "$linkmode" = lib; then - libs="$predeps $libs $compiler_lib_search_path $postdeps" - - # Compute libraries that are listed more than once in $predeps - # $postdeps and mark them as special (i.e., whose duplicates are - # not to be eliminated). - pre_post_deps= - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then - for pre_post_dep in $predeps $postdeps; do - case "$pre_post_deps " in - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; - esac - pre_post_deps="$pre_post_deps $pre_post_dep" - done - fi - pre_post_deps= - fi - - deplibs= - newdependency_libs= - newlib_search_path= - need_relink=no # whether we're linking any uninstalled libtool libraries - notinst_deplibs= # not-installed libtool libraries - case $linkmode in - lib) - passes="conv link" - for file in $dlfiles $dlprefiles; do - case $file in - *.la) ;; - *) - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 - exit $EXIT_FAILURE - ;; - esac - done - ;; - prog) - compile_deplibs= - finalize_deplibs= - alldeplibs=no - newdlfiles= - newdlprefiles= - passes="conv scan dlopen dlpreopen link" - ;; - *) passes="conv" - ;; - esac - for pass in $passes; do - if test "$linkmode,$pass" = "lib,link" || - test "$linkmode,$pass" = "prog,scan"; then - libs="$deplibs" - deplibs= - fi - if test "$linkmode" = prog; then - case $pass in - dlopen) libs="$dlfiles" ;; - dlpreopen) libs="$dlprefiles" ;; - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; - esac - fi - if test "$pass" = dlopen; then - # Collect dlpreopened libraries - save_deplibs="$deplibs" - deplibs= - fi - for deplib in $libs; do - lib= - found=no - case $deplib in - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - compiler_flags="$compiler_flags $deplib" - fi - continue - ;; - -l*) - if test "$linkmode" != lib && test "$linkmode" != prog; then - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 - continue - fi - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do - for search_ext in .la $std_shrext .so .a; do - # Search the libtool library - lib="$searchdir/lib${name}${search_ext}" - if test -f "$lib"; then - if test "$search_ext" = ".la"; then - found=yes - else - found=no - fi - break 2 - fi - done - done - if test "$found" != yes; then - # deplib doesn't seem to be a libtool library - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" - fi - continue - else # deplib is a libtool library - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, - # We need to do some special things here, and not later. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - case " $predeps $postdeps " in - *" $deplib "*) - if (${SED} -e '2q' $lib | - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - library_names= - old_library= - case $lib in - */* | *\\*) . $lib ;; - *) . ./$lib ;; - esac - for l in $old_library $library_names; do - ll="$l" - done - if test "X$ll" = "X$old_library" ; then # only static version available - found=no - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` - test "X$ladir" = "X$lib" && ladir="." - lib=$ladir/$old_library - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" - fi - continue - fi - fi - ;; - *) ;; - esac - fi - fi - ;; # -l - -L*) - case $linkmode in - lib) - deplibs="$deplib $deplibs" - test "$pass" = conv && continue - newdependency_libs="$deplib $newdependency_libs" - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` - ;; - prog) - if test "$pass" = conv; then - deplibs="$deplib $deplibs" - continue - fi - if test "$pass" = scan; then - deplibs="$deplib $deplibs" - else - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - fi - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` - ;; - *) - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 - ;; - esac # linkmode - continue - ;; # -L - -R*) - if test "$pass" = link; then - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` - # Make sure the xrpath contains only unique directories. - case "$xrpath " in - *" $dir "*) ;; - *) xrpath="$xrpath $dir" ;; - esac - fi - deplibs="$deplib $deplibs" - continue - ;; - *.la) lib="$deplib" ;; - *.$libext) - if test "$pass" = conv; then - deplibs="$deplib $deplibs" - continue - fi - case $linkmode in - lib) - valid_a_lib=no - case $deplibs_check_method in - match_pattern*) - set dummy $deplibs_check_method - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` - if eval $echo \"$deplib\" 2>/dev/null \ - | $SED 10q \ - | $EGREP "$match_pattern_regex" > /dev/null; then - valid_a_lib=yes - fi - ;; - pass_all) - valid_a_lib=yes - ;; - esac - if test "$valid_a_lib" != yes; then - $echo - $echo "*** Warning: Trying to link with static lib archive $deplib." - $echo "*** I have the capability to make that library automatically link in when" - $echo "*** you link to this library. But I can only do this if you have a" - $echo "*** shared version of the library, which you do not appear to have" - $echo "*** because the file extensions .$libext of this argument makes me believe" - $echo "*** that it is just a static archive that I should not used here." - else - $echo - $echo "*** Warning: Linking the shared library $output against the" - $echo "*** static library $deplib is not portable!" - deplibs="$deplib $deplibs" - fi - continue - ;; - prog) - if test "$pass" != link; then - deplibs="$deplib $deplibs" - else - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - fi - continue - ;; - esac # linkmode - ;; # *.$libext - *.lo | *.$objext) - if test "$pass" = conv; then - deplibs="$deplib $deplibs" - elif test "$linkmode" = prog; then - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then - # If there is no dlopen support or we're linking statically, - # we need to preload. - newdlprefiles="$newdlprefiles $deplib" - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - newdlfiles="$newdlfiles $deplib" - fi - fi - continue - ;; - %DEPLIBS%) - alldeplibs=yes - continue - ;; - esac # case $deplib - if test "$found" = yes || test -f "$lib"; then : - else - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2 - exit $EXIT_FAILURE - fi - - # Check to see that this really is a libtool archive. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : - else - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 - exit $EXIT_FAILURE - fi - - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` - test "X$ladir" = "X$lib" && ladir="." - - dlname= - dlopen= - dlpreopen= - libdir= - library_names= - old_library= - # If the library was installed with an old release of libtool, - # it will not redefine variables installed, or shouldnotlink - installed=yes - shouldnotlink=no - avoidtemprpath= - - - # Read the .la file - case $lib in - */* | *\\*) . $lib ;; - *) . ./$lib ;; - esac - - if test "$linkmode,$pass" = "lib,link" || - test "$linkmode,$pass" = "prog,scan" || - { test "$linkmode" != prog && test "$linkmode" != lib; }; then - test -n "$dlopen" && dlfiles="$dlfiles $dlopen" - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" - fi - - if test "$pass" = conv; then - # Only check for convenience libraries - deplibs="$lib $deplibs" - if test -z "$libdir"; then - if test -z "$old_library"; then - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 - exit $EXIT_FAILURE - fi - # It is a libtool convenience library, so add in its objects. - convenience="$convenience $ladir/$objdir/$old_library" - old_convenience="$old_convenience $ladir/$objdir/$old_library" - tmp_libs= - for deplib in $dependency_libs; do - deplibs="$deplib $deplibs" - if test "X$duplicate_deps" = "Xyes" ; then - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - tmp_libs="$tmp_libs $deplib" - done - elif test "$linkmode" != prog && test "$linkmode" != lib; then - $echo "$modename: \`$lib' is not a convenience library" 1>&2 - exit $EXIT_FAILURE - fi - continue - fi # $pass = conv - - - # Get the name of the library we link against. - linklib= - for l in $old_library $library_names; do - linklib="$l" - done - if test -z "$linklib"; then - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 - exit $EXIT_FAILURE - fi - - # This library was specified with -dlopen. - if test "$pass" = dlopen; then - if test -z "$libdir"; then - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 - exit $EXIT_FAILURE - fi - if test -z "$dlname" || - test "$dlopen_support" != yes || - test "$build_libtool_libs" = no; then - # If there is no dlname, no dlopen support or we're linking - # statically, we need to preload. We also need to preload any - # dependent libraries so libltdl's deplib preloader doesn't - # bomb out in the load deplibs phase. - dlprefiles="$dlprefiles $lib $dependency_libs" - else - newdlfiles="$newdlfiles $lib" - fi - continue - fi # $pass = dlopen - - # We need an absolute path. - case $ladir in - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; - *) - abs_ladir=`cd "$ladir" && pwd` - if test -z "$abs_ladir"; then - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 - abs_ladir="$ladir" - fi - ;; - esac - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` - - # Find the relevant object directory and library name. - if test "X$installed" = Xyes; then - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then - $echo "$modename: warning: library \`$lib' was moved." 1>&2 - dir="$ladir" - absdir="$abs_ladir" - libdir="$abs_ladir" - else - dir="$libdir" - absdir="$libdir" - fi - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes - else - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then - dir="$ladir" - absdir="$abs_ladir" - # Remove this search path later - notinst_path="$notinst_path $abs_ladir" - else - dir="$ladir/$objdir" - absdir="$abs_ladir/$objdir" - # Remove this search path later - notinst_path="$notinst_path $abs_ladir" - fi - fi # $installed = yes - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` - - # This library was specified with -dlpreopen. - if test "$pass" = dlpreopen; then - if test -z "$libdir"; then - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 - exit $EXIT_FAILURE - fi - # Prefer using a static library (so that no silly _DYNAMIC symbols - # are required to link). - if test -n "$old_library"; then - newdlprefiles="$newdlprefiles $dir/$old_library" - # Otherwise, use the dlname, so that lt_dlopen finds it. - elif test -n "$dlname"; then - newdlprefiles="$newdlprefiles $dir/$dlname" - else - newdlprefiles="$newdlprefiles $dir/$linklib" - fi - fi # $pass = dlpreopen - - if test -z "$libdir"; then - # Link the convenience library - if test "$linkmode" = lib; then - deplibs="$dir/$old_library $deplibs" - elif test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$dir/$old_library $compile_deplibs" - finalize_deplibs="$dir/$old_library $finalize_deplibs" - else - deplibs="$lib $deplibs" # used for prog,scan pass - fi - continue - fi - - - if test "$linkmode" = prog && test "$pass" != link; then - newlib_search_path="$newlib_search_path $ladir" - deplibs="$lib $deplibs" - - linkalldeplibs=no - if test "$link_all_deplibs" != no || test -z "$library_names" || - test "$build_libtool_libs" = no; then - linkalldeplibs=yes - fi - - tmp_libs= - for deplib in $dependency_libs; do - case $deplib in - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test - esac - # Need to link against all dependency_libs? - if test "$linkalldeplibs" = yes; then - deplibs="$deplib $deplibs" - else - # Need to hardcode shared library paths - # or/and link against static libraries - newdependency_libs="$deplib $newdependency_libs" - fi - if test "X$duplicate_deps" = "Xyes" ; then - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - tmp_libs="$tmp_libs $deplib" - done # for deplib - continue - fi # $linkmode = prog... - - if test "$linkmode,$pass" = "prog,link"; then - if test -n "$library_names" && - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then - # We need to hardcode the library path - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then - # Make sure the rpath contains only unique directories. - case "$temp_rpath " in - *" $dir "*) ;; - *" $absdir "*) ;; - *) temp_rpath="$temp_rpath $absdir" ;; - esac - fi - - # Hardcode the library path. - # Skip directories that are in the system default run-time - # search path. - case " $sys_lib_dlsearch_path " in - *" $absdir "*) ;; - *) - case "$compile_rpath " in - *" $absdir "*) ;; - *) compile_rpath="$compile_rpath $absdir" - esac - ;; - esac - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" - esac - ;; - esac - fi # $linkmode,$pass = prog,link... - - if test "$alldeplibs" = yes && - { test "$deplibs_check_method" = pass_all || - { test "$build_libtool_libs" = yes && - test -n "$library_names"; }; }; then - # We only need to search for static libraries - continue - fi - fi - - link_static=no # Whether the deplib will be linked statically - use_static_libs=$prefer_static_libs - if test "$use_static_libs" = built && test "$installed" = yes ; then - use_static_libs=no - fi - if test -n "$library_names" && - { test "$use_static_libs" = no || test -z "$old_library"; }; then - if test "$installed" = no; then - notinst_deplibs="$notinst_deplibs $lib" - need_relink=yes - fi - # This is a shared library - - # Warn about portability, can't link against -module's on - # some systems (darwin) - if test "$shouldnotlink" = yes && test "$pass" = link ; then - $echo - if test "$linkmode" = prog; then - $echo "*** Warning: Linking the executable $output against the loadable module" - else - $echo "*** Warning: Linking the shared library $output against the loadable module" - fi - $echo "*** $linklib is not portable!" - fi - if test "$linkmode" = lib && - test "$hardcode_into_libs" = yes; then - # Hardcode the library path. - # Skip directories that are in the system default run-time - # search path. - case " $sys_lib_dlsearch_path " in - *" $absdir "*) ;; - *) - case "$compile_rpath " in - *" $absdir "*) ;; - *) compile_rpath="$compile_rpath $absdir" - esac - ;; - esac - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" - esac - ;; - esac - fi - - if test -n "$old_archive_from_expsyms_cmds"; then - # figure out the soname - set dummy $library_names - realname="$2" - shift; shift - libname=`eval \\$echo \"$libname_spec\"` - # use dlname if we got it. it's perfectly good, no? - if test -n "$dlname"; then - soname="$dlname" - elif test -n "$soname_spec"; then - # bleh windows - case $host in - *cygwin* | mingw*) - major=`expr $current - $age` - versuffix="-$major" - ;; - esac - eval soname=\"$soname_spec\" - else - soname="$realname" - fi - - # Make a new name for the extract_expsyms_cmds to use - soroot="$soname" - soname=`$echo $soroot | ${SED} -e 's/^.*\///'` - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" - - # If the library has no export list, then create one now - if test -f "$output_objdir/$soname-def"; then : - else - $show "extracting exported symbol list from \`$soname'" - save_ifs="$IFS"; IFS='~' - cmds=$extract_expsyms_cmds - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - fi - - # Create $newlib - if test -f "$output_objdir/$newlib"; then :; else - $show "generating import library for \`$soname'" - save_ifs="$IFS"; IFS='~' - cmds=$old_archive_from_expsyms_cmds - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - fi - # make sure the library variables are pointing to the new library - dir=$output_objdir - linklib=$newlib - fi # test -n "$old_archive_from_expsyms_cmds" - - if test "$linkmode" = prog || test "$mode" != relink; then - add_shlibpath= - add_dir= - add= - lib_linked=yes - case $hardcode_action in - immediate | unsupported) - if test "$hardcode_direct" = no; then - add="$dir/$linklib" - case $host in - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; - *-*-sysv4*uw2*) add_dir="-L$dir" ;; - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ - *-*-unixware7*) add_dir="-L$dir" ;; - *-*-darwin* ) - # if the lib is a module then we can not link against - # it, someone is ignoring the new warnings I added - if /usr/bin/file -L $add 2> /dev/null | - $EGREP ": [^:]* bundle" >/dev/null ; then - $echo "** Warning, lib $linklib is a module, not a shared library" - if test -z "$old_library" ; then - $echo - $echo "** And there doesn't seem to be a static archive available" - $echo "** The link will probably fail, sorry" - else - add="$dir/$old_library" - fi - fi - esac - elif test "$hardcode_minus_L" = no; then - case $host in - *-*-sunos*) add_shlibpath="$dir" ;; - esac - add_dir="-L$dir" - add="-l$name" - elif test "$hardcode_shlibpath_var" = no; then - add_shlibpath="$dir" - add="-l$name" - else - lib_linked=no - fi - ;; - relink) - if test "$hardcode_direct" = yes; then - add="$dir/$linklib" - elif test "$hardcode_minus_L" = yes; then - add_dir="-L$dir" - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case $libdir in - [\\/]*) - add_dir="$add_dir -L$inst_prefix_dir$libdir" - ;; - esac - fi - add="-l$name" - elif test "$hardcode_shlibpath_var" = yes; then - add_shlibpath="$dir" - add="-l$name" - else - lib_linked=no - fi - ;; - *) lib_linked=no ;; - esac - - if test "$lib_linked" != yes; then - $echo "$modename: configuration error: unsupported hardcode properties" - exit $EXIT_FAILURE - fi - - if test -n "$add_shlibpath"; then - case :$compile_shlibpath: in - *":$add_shlibpath:"*) ;; - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; - esac - fi - if test "$linkmode" = prog; then - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" - test -n "$add" && compile_deplibs="$add $compile_deplibs" - else - test -n "$add_dir" && deplibs="$add_dir $deplibs" - test -n "$add" && deplibs="$add $deplibs" - if test "$hardcode_direct" != yes && \ - test "$hardcode_minus_L" != yes && \ - test "$hardcode_shlibpath_var" = yes; then - case :$finalize_shlibpath: in - *":$libdir:"*) ;; - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; - esac - fi - fi - fi - - if test "$linkmode" = prog || test "$mode" = relink; then - add_shlibpath= - add_dir= - add= - # Finalize command for both is simple: just hardcode it. - if test "$hardcode_direct" = yes; then - add="$libdir/$linklib" - elif test "$hardcode_minus_L" = yes; then - add_dir="-L$libdir" - add="-l$name" - elif test "$hardcode_shlibpath_var" = yes; then - case :$finalize_shlibpath: in - *":$libdir:"*) ;; - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; - esac - add="-l$name" - elif test "$hardcode_automatic" = yes; then - if test -n "$inst_prefix_dir" && - test -f "$inst_prefix_dir$libdir/$linklib" ; then - add="$inst_prefix_dir$libdir/$linklib" - else - add="$libdir/$linklib" - fi - else - # We cannot seem to hardcode it, guess we'll fake it. - add_dir="-L$libdir" - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case $libdir in - [\\/]*) - add_dir="$add_dir -L$inst_prefix_dir$libdir" - ;; - esac - fi - add="-l$name" - fi - - if test "$linkmode" = prog; then - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" - test -n "$add" && finalize_deplibs="$add $finalize_deplibs" - else - test -n "$add_dir" && deplibs="$add_dir $deplibs" - test -n "$add" && deplibs="$add $deplibs" - fi - fi - elif test "$linkmode" = prog; then - # Here we assume that one of hardcode_direct or hardcode_minus_L - # is not unsupported. This is valid on all known static and - # shared platforms. - if test "$hardcode_direct" != unsupported; then - test -n "$old_library" && linklib="$old_library" - compile_deplibs="$dir/$linklib $compile_deplibs" - finalize_deplibs="$dir/$linklib $finalize_deplibs" - else - compile_deplibs="-l$name -L$dir $compile_deplibs" - finalize_deplibs="-l$name -L$dir $finalize_deplibs" - fi - elif test "$build_libtool_libs" = yes; then - # Not a shared library - if test "$deplibs_check_method" != pass_all; then - # We're trying link a shared library against a static one - # but the system doesn't support it. - - # Just print a warning and add the library to dependency_libs so - # that the program can be linked against the static library. - $echo - $echo "*** Warning: This system can not link to static lib archive $lib." - $echo "*** I have the capability to make that library automatically link in when" - $echo "*** you link to this library. But I can only do this if you have a" - $echo "*** shared version of the library, which you do not appear to have." - if test "$module" = yes; then - $echo "*** But as you try to build a module library, libtool will still create " - $echo "*** a static module, that should work as long as the dlopening application" - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." - if test -z "$global_symbol_pipe"; then - $echo - $echo "*** However, this would only work if libtool was able to extract symbol" - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" - $echo "*** not find such a program. So, this module is probably useless." - $echo "*** \`nm' from GNU binutils and a full rebuild may help." - fi - if test "$build_old_libs" = no; then - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - fi - else - deplibs="$dir/$old_library $deplibs" - link_static=yes - fi - fi # link shared/static library? - - if test "$linkmode" = lib; then - if test -n "$dependency_libs" && - { test "$hardcode_into_libs" != yes || - test "$build_old_libs" = yes || - test "$link_static" = yes; }; then - # Extract -R from dependency_libs - temp_deplibs= - for libdir in $dependency_libs; do - case $libdir in - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` - case " $xrpath " in - *" $temp_xrpath "*) ;; - *) xrpath="$xrpath $temp_xrpath";; - esac;; - *) temp_deplibs="$temp_deplibs $libdir";; - esac - done - dependency_libs="$temp_deplibs" - fi - - newlib_search_path="$newlib_search_path $absdir" - # Link against this library - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" - # ... and its dependency_libs - tmp_libs= - for deplib in $dependency_libs; do - newdependency_libs="$deplib $newdependency_libs" - if test "X$duplicate_deps" = "Xyes" ; then - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - tmp_libs="$tmp_libs $deplib" - done - - if test "$link_all_deplibs" != no; then - # Add the search paths of all dependency libraries - for deplib in $dependency_libs; do - case $deplib in - -L*) path="$deplib" ;; - *.la) - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` - test "X$dir" = "X$deplib" && dir="." - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; - *) - absdir=`cd "$dir" && pwd` - if test -z "$absdir"; then - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 - absdir="$dir" - fi - ;; - esac - if grep "^installed=no" $deplib > /dev/null; then - path="$absdir/$objdir" - else - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` - if test -z "$libdir"; then - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 - exit $EXIT_FAILURE - fi - if test "$absdir" != "$libdir"; then - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 - fi - path="$absdir" - fi - depdepl= - case $host in - *-*-darwin*) - # we do not want to link against static libs, - # but need to link against shared - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` - if test -n "$deplibrary_names" ; then - for tmp in $deplibrary_names ; do - depdepl=$tmp - done - if test -f "$path/$depdepl" ; then - depdepl="$path/$depdepl" - fi - # do not add paths which are already there - case " $newlib_search_path " in - *" $path "*) ;; - *) newlib_search_path="$newlib_search_path $path";; - esac - fi - path="" - ;; - *) - path="-L$path" - ;; - esac - ;; - -l*) - case $host in - *-*-darwin*) - # Again, we only want to link against shared libraries - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` - for tmp in $newlib_search_path ; do - if test -f "$tmp/lib$tmp_libs.dylib" ; then - eval depdepl="$tmp/lib$tmp_libs.dylib" - break - fi - done - path="" - ;; - *) continue ;; - esac - ;; - *) continue ;; - esac - case " $deplibs " in - *" $path "*) ;; - *) deplibs="$path $deplibs" ;; - esac - case " $deplibs " in - *" $depdepl "*) ;; - *) deplibs="$depdepl $deplibs" ;; - esac - done - fi # link_all_deplibs != no - fi # linkmode = lib - done # for deplib in $libs - dependency_libs="$newdependency_libs" - if test "$pass" = dlpreopen; then - # Link the dlpreopened libraries before other libraries - for deplib in $save_deplibs; do - deplibs="$deplib $deplibs" - done - fi - if test "$pass" != dlopen; then - if test "$pass" != conv; then - # Make sure lib_search_path contains only unique directories. - lib_search_path= - for dir in $newlib_search_path; do - case "$lib_search_path " in - *" $dir "*) ;; - *) lib_search_path="$lib_search_path $dir" ;; - esac - done - newlib_search_path= - fi - - if test "$linkmode,$pass" != "prog,link"; then - vars="deplibs" - else - vars="compile_deplibs finalize_deplibs" - fi - for var in $vars dependency_libs; do - # Add libraries to $var in reverse order - eval tmp_libs=\"\$$var\" - new_libs= - for deplib in $tmp_libs; do - # FIXME: Pedantically, this is the right thing to do, so - # that some nasty dependency loop isn't accidentally - # broken: - #new_libs="$deplib $new_libs" - # Pragmatically, this seems to cause very few problems in - # practice: - case $deplib in - -L*) new_libs="$deplib $new_libs" ;; - -R*) ;; - *) - # And here is the reason: when a library appears more - # than once as an explicit dependence of a library, or - # is implicitly linked in more than once by the - # compiler, it is considered special, and multiple - # occurrences thereof are not removed. Compare this - # with having the same library being listed as a - # dependency of multiple other libraries: in this case, - # we know (pedantically, we assume) the library does not - # need to be listed more than once, so we keep only the - # last copy. This is not always right, but it is rare - # enough that we require users that really mean to play - # such unportable linking tricks to link the library - # using -Wl,-lname, so that libtool does not consider it - # for duplicate removal. - case " $specialdeplibs " in - *" $deplib "*) new_libs="$deplib $new_libs" ;; - *) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$deplib $new_libs" ;; - esac - ;; - esac - ;; - esac - done - tmp_libs= - for deplib in $new_libs; do - case $deplib in - -L*) - case " $tmp_libs " in - *" $deplib "*) ;; - *) tmp_libs="$tmp_libs $deplib" ;; - esac - ;; - *) tmp_libs="$tmp_libs $deplib" ;; - esac - done - eval $var=\"$tmp_libs\" - done # for var - fi - # Last step: remove runtime libs from dependency_libs - # (they stay in deplibs) - tmp_libs= - for i in $dependency_libs ; do - case " $predeps $postdeps $compiler_lib_search_path " in - *" $i "*) - i="" - ;; - esac - if test -n "$i" ; then - tmp_libs="$tmp_libs $i" - fi - done - dependency_libs=$tmp_libs - done # for pass - if test "$linkmode" = prog; then - dlfiles="$newdlfiles" - dlprefiles="$newdlprefiles" - fi - - case $linkmode in - oldlib) - if test -n "$deplibs"; then - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 - fi - - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 - fi - - if test -n "$rpath"; then - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 - fi - - if test -n "$xrpath"; then - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 - fi - - if test -n "$vinfo"; then - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 - fi - - if test -n "$release"; then - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 - fi - - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 - fi - - # Now set the variables for building old libraries. - build_libtool_libs=no - oldlibs="$output" - objs="$objs$old_deplibs" - ;; - - lib) - # Make sure we only generate libraries of the form `libNAME.la'. - case $outputname in - lib*) - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` - eval shared_ext=\"$shrext_cmds\" - eval libname=\"$libname_spec\" - ;; - *) - if test "$module" = no; then - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - if test "$need_lib_prefix" != no; then - # Add the "lib" prefix for modules if required - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` - eval shared_ext=\"$shrext_cmds\" - eval libname=\"$libname_spec\" - else - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` - fi - ;; - esac - - if test -n "$objs"; then - if test "$deplibs_check_method" != pass_all; then - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 - exit $EXIT_FAILURE - else - $echo - $echo "*** Warning: Linking the shared library $output against the non-libtool" - $echo "*** objects $objs is not portable!" - libobjs="$libobjs $objs" - fi - fi - - if test "$dlself" != no; then - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 - fi - - set dummy $rpath - if test "$#" -gt 2; then - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 - fi - install_libdir="$2" - - oldlibs= - if test -z "$rpath"; then - if test "$build_libtool_libs" = yes; then - # Building a libtool convenience library. - # Some compilers have problems with a `.al' extension so - # convenience libraries should have the same extension an - # archive normally would. - oldlibs="$output_objdir/$libname.$libext $oldlibs" - build_libtool_libs=convenience - build_old_libs=yes - fi - - if test -n "$vinfo"; then - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 - fi - - if test -n "$release"; then - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 - fi - else - - # Parse the version information argument. - save_ifs="$IFS"; IFS=':' - set dummy $vinfo 0 0 0 - IFS="$save_ifs" - - if test -n "$8"; then - $echo "$modename: too many parameters to \`-version-info'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # convert absolute version numbers to libtool ages - # this retains compatibility with .la files and attempts - # to make the code below a bit more comprehensible - - case $vinfo_number in - yes) - number_major="$2" - number_minor="$3" - number_revision="$4" - # - # There are really only two kinds -- those that - # use the current revision as the major version - # and those that subtract age and use age as - # a minor version. But, then there is irix - # which has an extra 1 added just for fun - # - case $version_type in - darwin|linux|osf|windows) - current=`expr $number_major + $number_minor` - age="$number_minor" - revision="$number_revision" - ;; - freebsd-aout|freebsd-elf|sunos) - current="$number_major" - revision="$number_minor" - age="0" - ;; - irix|nonstopux) - current=`expr $number_major + $number_minor - 1` - age="$number_minor" - revision="$number_minor" - ;; - esac - ;; - no) - current="$2" - revision="$3" - age="$4" - ;; - esac - - # Check that each of the things are valid numbers. - case $current in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - case $revision in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - case $age in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - if test "$age" -gt "$current"; then - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2 - exit $EXIT_FAILURE - fi - - # Calculate the version variables. - major= - versuffix= - verstring= - case $version_type in - none) ;; - - darwin) - # Like Linux, but with the current version available in - # verstring for coding it into the library header - major=.`expr $current - $age` - versuffix="$major.$age.$revision" - # Darwin ld doesn't like 0 for these options... - minor_current=`expr $current + 1` - verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" - ;; - - freebsd-aout) - major=".$current" - versuffix=".$current.$revision"; - ;; - - freebsd-elf) - major=".$current" - versuffix=".$current"; - ;; - - irix | nonstopux) - major=`expr $current - $age + 1` - - case $version_type in - nonstopux) verstring_prefix=nonstopux ;; - *) verstring_prefix=sgi ;; - esac - verstring="$verstring_prefix$major.$revision" - - # Add in all the interfaces that we are compatible with. - loop=$revision - while test "$loop" -ne 0; do - iface=`expr $revision - $loop` - loop=`expr $loop - 1` - verstring="$verstring_prefix$major.$iface:$verstring" - done - - # Before this point, $major must not contain `.'. - major=.$major - versuffix="$major.$revision" - ;; - - linux) - major=.`expr $current - $age` - versuffix="$major.$age.$revision" - ;; - - osf) - major=.`expr $current - $age` - versuffix=".$current.$age.$revision" - verstring="$current.$age.$revision" - - # Add in all the interfaces that we are compatible with. - loop=$age - while test "$loop" -ne 0; do - iface=`expr $current - $loop` - loop=`expr $loop - 1` - verstring="$verstring:${iface}.0" - done - - # Make executables depend on our current version. - verstring="$verstring:${current}.0" - ;; - - sunos) - major=".$current" - versuffix=".$current.$revision" - ;; - - windows) - # Use '-' rather than '.', since we only want one - # extension on DOS 8.3 filesystems. - major=`expr $current - $age` - versuffix="-$major" - ;; - - *) - $echo "$modename: unknown library version type \`$version_type'" 1>&2 - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 - exit $EXIT_FAILURE - ;; - esac - - # Clear the version info if we defaulted, and they specified a release. - if test -z "$vinfo" && test -n "$release"; then - major= - case $version_type in - darwin) - # we can't check for "0.0" in archive_cmds due to quoting - # problems, so we reset it completely - verstring= - ;; - *) - verstring="0.0" - ;; - esac - if test "$need_version" = no; then - versuffix= - else - versuffix=".0.0" - fi - fi - - # Remove version info from name if versioning should be avoided - if test "$avoid_version" = yes && test "$need_version" = no; then - major= - versuffix= - verstring="" - fi - - # Check to see if the archive will have undefined symbols. - if test "$allow_undefined" = yes; then - if test "$allow_undefined_flag" = unsupported; then - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 - build_libtool_libs=no - build_old_libs=yes - fi - else - # Don't allow undefined symbols. - allow_undefined_flag="$no_undefined_flag" - fi - fi - - if test "$mode" != relink; then - # Remove our outputs, but don't remove object files since they - # may have been created when compiling PIC objects. - removelist= - tempremovelist=`$echo "$output_objdir/*"` - for p in $tempremovelist; do - case $p in - *.$objext) - ;; - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) - if test "X$precious_files_regex" != "X"; then - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 - then - continue - fi - fi - removelist="$removelist $p" - ;; - *) ;; - esac - done - if test -n "$removelist"; then - $show "${rm}r $removelist" - $run ${rm}r $removelist - fi - fi - - # Now set the variables for building old libraries. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then - oldlibs="$oldlibs $output_objdir/$libname.$libext" - - # Transform .lo files to .o files. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` - fi - - # Eliminate all temporary directories. - for path in $notinst_path; do - lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` - deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` - dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"` - done - - if test -n "$xrpath"; then - # If the user specified any rpath flags, then add them. - temp_xrpath= - for libdir in $xrpath; do - temp_xrpath="$temp_xrpath -R$libdir" - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" ;; - esac - done - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then - dependency_libs="$temp_xrpath $dependency_libs" - fi - fi - - # Make sure dlfiles contains only unique files that won't be dlpreopened - old_dlfiles="$dlfiles" - dlfiles= - for lib in $old_dlfiles; do - case " $dlprefiles $dlfiles " in - *" $lib "*) ;; - *) dlfiles="$dlfiles $lib" ;; - esac - done - - # Make sure dlprefiles contains only unique files - old_dlprefiles="$dlprefiles" - dlprefiles= - for lib in $old_dlprefiles; do - case "$dlprefiles " in - *" $lib "*) ;; - *) dlprefiles="$dlprefiles $lib" ;; - esac - done - - if test "$build_libtool_libs" = yes; then - if test -n "$rpath"; then - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) - # these systems don't actually have a c library (as such)! - ;; - *-*-rhapsody* | *-*-darwin1.[012]) - # Rhapsody C library is in the System framework - deplibs="$deplibs -framework System" - ;; - *-*-netbsd*) - # Don't link with libc until the a.out ld.so is fixed. - ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc due to us having libc/libc_r. - ;; - *-*-sco3.2v5* | *-*-sco5v6*) - # Causes problems with __ctype - ;; - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) - # Compiler inserts libc in the correct place for threads to work - ;; - *) - # Add libc to deplibs on all other systems if necessary. - if test "$build_libtool_need_lc" = "yes"; then - deplibs="$deplibs -lc" - fi - ;; - esac - fi - - # Transform deplibs into only deplibs that can be linked in shared. - name_save=$name - libname_save=$libname - release_save=$release - versuffix_save=$versuffix - major_save=$major - # I'm not sure if I'm treating the release correctly. I think - # release should show up in the -l (ie -lgmp5) so we don't want to - # add it in twice. Is that correct? - release="" - versuffix="" - major="" - newdeplibs= - droppeddeps=no - case $deplibs_check_method in - pass_all) - # Don't check for shared/static. Everything works. - # This might be a little naive. We might want to check - # whether the library exists or not. But this is on - # osf3 & osf4 and I'm not really sure... Just - # implementing what was already the behavior. - newdeplibs=$deplibs - ;; - test_compile) - # This code stresses the "libraries are programs" paradigm to its - # limits. Maybe even breaks it. We compile a program, linking it - # against the deplibs as a proxy for the library. Then we can check - # whether they linked in statically or dynamically with ldd. - $rm conftest.c - cat > conftest.c </dev/null` - for potent_lib in $potential_libs; do - # Follow soft links. - if ls -lLd "$potent_lib" 2>/dev/null \ - | grep " -> " >/dev/null; then - continue - fi - # The statement above tries to avoid entering an - # endless loop below, in case of cyclic links. - # We might still enter an endless loop, since a link - # loop can be closed while we follow links, - # but so what? - potlib="$potent_lib" - while test -h "$potlib" 2>/dev/null; do - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` - case $potliblink in - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; - esac - done - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ - | ${SED} 10q \ - | $EGREP "$file_magic_regex" > /dev/null; then - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - break 2 - fi - done - done - fi - if test -n "$a_deplib" ; then - droppeddeps=yes - $echo - $echo "*** Warning: linker path does not have real file for library $a_deplib." - $echo "*** I have the capability to make that library automatically link in when" - $echo "*** you link to this library. But I can only do this if you have a" - $echo "*** shared version of the library, which you do not appear to have" - $echo "*** because I did check the linker path looking for a file starting" - if test -z "$potlib" ; then - $echo "*** with $libname but no candidates were found. (...for file magic test)" - else - $echo "*** with $libname and none of the candidates passed a file format test" - $echo "*** using a file magic. Last file checked: $potlib" - fi - fi - else - # Add a -L argument. - newdeplibs="$newdeplibs $a_deplib" - fi - done # Gone through all deplibs. - ;; - match_pattern*) - set dummy $deplibs_check_method - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` - for a_deplib in $deplibs; do - name=`expr $a_deplib : '-l\(.*\)'` - # If $name is empty we are operating on a -L argument. - if test -n "$name" && test "$name" != "0"; then - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - case " $predeps $postdeps " in - *" $a_deplib "*) - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - ;; - esac - fi - if test -n "$a_deplib" ; then - libname=`eval \\$echo \"$libname_spec\"` - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do - potential_libs=`ls $i/$libname[.-]* 2>/dev/null` - for potent_lib in $potential_libs; do - potlib="$potent_lib" # see symlink-check above in file_magic test - if eval $echo \"$potent_lib\" 2>/dev/null \ - | ${SED} 10q \ - | $EGREP "$match_pattern_regex" > /dev/null; then - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - break 2 - fi - done - done - fi - if test -n "$a_deplib" ; then - droppeddeps=yes - $echo - $echo "*** Warning: linker path does not have real file for library $a_deplib." - $echo "*** I have the capability to make that library automatically link in when" - $echo "*** you link to this library. But I can only do this if you have a" - $echo "*** shared version of the library, which you do not appear to have" - $echo "*** because I did check the linker path looking for a file starting" - if test -z "$potlib" ; then - $echo "*** with $libname but no candidates were found. (...for regex pattern test)" - else - $echo "*** with $libname and none of the candidates passed a file format test" - $echo "*** using a regex pattern. Last file checked: $potlib" - fi - fi - else - # Add a -L argument. - newdeplibs="$newdeplibs $a_deplib" - fi - done # Gone through all deplibs. - ;; - none | unknown | *) - newdeplibs="" - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ - -e 's/ -[LR][^ ]*//g'` - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - for i in $predeps $postdeps ; do - # can't use Xsed below, because $i might contain '/' - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` - done - fi - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ - | grep . >/dev/null; then - $echo - if test "X$deplibs_check_method" = "Xnone"; then - $echo "*** Warning: inter-library dependencies are not supported in this platform." - else - $echo "*** Warning: inter-library dependencies are not known to be supported." - fi - $echo "*** All declared inter-library dependencies are being dropped." - droppeddeps=yes - fi - ;; - esac - versuffix=$versuffix_save - major=$major_save - release=$release_save - libname=$libname_save - name=$name_save - - case $host in - *-*-rhapsody* | *-*-darwin1.[012]) - # On Rhapsody replace the C library is the System framework - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` - ;; - esac - - if test "$droppeddeps" = yes; then - if test "$module" = yes; then - $echo - $echo "*** Warning: libtool could not satisfy all declared inter-library" - $echo "*** dependencies of module $libname. Therefore, libtool will create" - $echo "*** a static module, that should work as long as the dlopening" - $echo "*** application is linked with the -dlopen flag." - if test -z "$global_symbol_pipe"; then - $echo - $echo "*** However, this would only work if libtool was able to extract symbol" - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" - $echo "*** not find such a program. So, this module is probably useless." - $echo "*** \`nm' from GNU binutils and a full rebuild may help." - fi - if test "$build_old_libs" = no; then - oldlibs="$output_objdir/$libname.$libext" - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - else - $echo "*** The inter-library dependencies that have been dropped here will be" - $echo "*** automatically added whenever a program is linked with this library" - $echo "*** or is declared to -dlopen it." - - if test "$allow_undefined" = no; then - $echo - $echo "*** Since this library must not contain undefined symbols," - $echo "*** because either the platform does not support them or" - $echo "*** it was explicitly requested with -no-undefined," - $echo "*** libtool will only create a static version of it." - if test "$build_old_libs" = no; then - oldlibs="$output_objdir/$libname.$libext" - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - fi - fi - fi - # Done checking deplibs! - deplibs=$newdeplibs - fi - - - # move library search paths that coincide with paths to not yet - # installed libraries to the beginning of the library search list - new_libs= - for path in $notinst_path; do - case " $new_libs " in - *" -L$path/$objdir "*) ;; - *) - case " $deplibs " in - *" -L$path/$objdir "*) - new_libs="$new_libs -L$path/$objdir" ;; - esac - ;; - esac - done - for deplib in $deplibs; do - case $deplib in - -L*) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$new_libs $deplib" ;; - esac - ;; - *) new_libs="$new_libs $deplib" ;; - esac - done - deplibs="$new_libs" - - - # All the library-specific variables (install_libdir is set above). - library_names= - old_library= - dlname= - - # Test again, we may have decided not to build it any more - if test "$build_libtool_libs" = yes; then - if test "$hardcode_into_libs" = yes; then - # Hardcode the library paths - hardcode_libdirs= - dep_rpath= - rpath="$finalize_rpath" - test "$mode" != relink && rpath="$compile_rpath$rpath" - for libdir in $rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - dep_rpath="$dep_rpath $flag" - fi - elif test -n "$runpath_var"; then - case "$perm_rpath " in - *" $libdir "*) ;; - *) perm_rpath="$perm_rpath $libdir" ;; - esac - fi - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - if test -n "$hardcode_libdir_flag_spec_ld"; then - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" - else - eval dep_rpath=\"$hardcode_libdir_flag_spec\" - fi - fi - if test -n "$runpath_var" && test -n "$perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $perm_rpath; do - rpath="$rpath$dir:" - done - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" - fi - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" - fi - - shlibpath="$finalize_shlibpath" - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" - if test -n "$shlibpath"; then - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" - fi - - # Get the real and link names of the library. - eval shared_ext=\"$shrext_cmds\" - eval library_names=\"$library_names_spec\" - set dummy $library_names - realname="$2" - shift; shift - - if test -n "$soname_spec"; then - eval soname=\"$soname_spec\" - else - soname="$realname" - fi - if test -z "$dlname"; then - dlname=$soname - fi - - lib="$output_objdir/$realname" - linknames= - for link - do - linknames="$linknames $link" - done - - # Use standard objects if they are pic - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - - # Prepare the list of exported symbols - if test -z "$export_symbols"; then - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then - $show "generating symbol list for \`$libname.la'" - export_symbols="$output_objdir/$libname.exp" - $run $rm $export_symbols - cmds=$export_symbols_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - if len=`expr "X$cmd" : ".*"` && - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then - $show "$cmd" - $run eval "$cmd" || exit $? - skipped_export=false - else - # The command line is too long to execute in one step. - $show "using reloadable object file for export list..." - skipped_export=: - # Break out early, otherwise skipped_export may be - # set to false by a later but shorter cmd. - break - fi - done - IFS="$save_ifs" - if test -n "$export_symbols_regex"; then - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' - $show "$mv \"${export_symbols}T\" \"$export_symbols\"" - $run eval '$mv "${export_symbols}T" "$export_symbols"' - fi - fi - fi - - if test -n "$export_symbols" && test -n "$include_expsyms"; then - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' - fi - - tmp_deplibs= - for test_deplib in $deplibs; do - case " $convenience " in - *" $test_deplib "*) ;; - *) - tmp_deplibs="$tmp_deplibs $test_deplib" - ;; - esac - done - deplibs="$tmp_deplibs" - - if test -n "$convenience"; then - if test -n "$whole_archive_flag_spec"; then - save_libobjs=$libobjs - eval libobjs=\"\$libobjs $whole_archive_flag_spec\" - else - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" - - func_extract_archives $gentop $convenience - libobjs="$libobjs $func_extract_archives_result" - fi - fi - - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then - eval flag=\"$thread_safe_flag_spec\" - linker_flags="$linker_flags $flag" - fi - - # Make a backup of the uninstalled library when relinking - if test "$mode" = relink; then - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? - fi - - # Do each of the archive commands. - if test "$module" = yes && test -n "$module_cmds" ; then - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then - eval test_cmds=\"$module_expsym_cmds\" - cmds=$module_expsym_cmds - else - eval test_cmds=\"$module_cmds\" - cmds=$module_cmds - fi - else - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then - eval test_cmds=\"$archive_expsym_cmds\" - cmds=$archive_expsym_cmds - else - eval test_cmds=\"$archive_cmds\" - cmds=$archive_cmds - fi - fi - - if test "X$skipped_export" != "X:" && - len=`expr "X$test_cmds" : ".*" 2>/dev/null` && - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then - : - else - # The command line is too long to link in one step, link piecewise. - $echo "creating reloadable object files..." - - # Save the value of $output and $libobjs because we want to - # use them later. If we have whole_archive_flag_spec, we - # want to use save_libobjs as it was before - # whole_archive_flag_spec was expanded, because we can't - # assume the linker understands whole_archive_flag_spec. - # This may have to be revisited, in case too many - # convenience libraries get linked in and end up exceeding - # the spec. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then - save_libobjs=$libobjs - fi - save_output=$output - output_la=`$echo "X$output" | $Xsed -e "$basename"` - - # Clear the reloadable object creation command queue and - # initialize k to one. - test_cmds= - concat_cmds= - objlist= - delfiles= - last_robj= - k=1 - output=$output_objdir/$output_la-${k}.$objext - # Loop over the list of objects to be linked. - for obj in $save_libobjs - do - eval test_cmds=\"$reload_cmds $objlist $last_robj\" - if test "X$objlist" = X || - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` && - test "$len" -le "$max_cmd_len"; }; then - objlist="$objlist $obj" - else - # The command $test_cmds is almost too long, add a - # command to the queue. - if test "$k" -eq 1 ; then - # The first file doesn't have a previous command to add. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\" - else - # All subsequent reloadable object files will link in - # the last one created. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" - fi - last_robj=$output_objdir/$output_la-${k}.$objext - k=`expr $k + 1` - output=$output_objdir/$output_la-${k}.$objext - objlist=$obj - len=1 - fi - done - # Handle the remaining objects by creating one last - # reloadable object file. All subsequent reloadable object - # files will link in the last one created. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" - - if ${skipped_export-false}; then - $show "generating symbol list for \`$libname.la'" - export_symbols="$output_objdir/$libname.exp" - $run $rm $export_symbols - libobjs=$output - # Append the command to create the export file. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" - fi - - # Set up a command to remove the reloadable object files - # after they are used. - i=0 - while test "$i" -lt "$k" - do - i=`expr $i + 1` - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" - done - - $echo "creating a temporary reloadable object file: $output" - - # Loop through the commands generated above and execute them. - save_ifs="$IFS"; IFS='~' - for cmd in $concat_cmds; do - IFS="$save_ifs" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - - libobjs=$output - # Restore the value of output. - output=$save_output - - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then - eval libobjs=\"\$libobjs $whole_archive_flag_spec\" - fi - # Expand the library linking commands again to reset the - # value of $libobjs for piecewise linking. - - # Do each of the archive commands. - if test "$module" = yes && test -n "$module_cmds" ; then - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then - cmds=$module_expsym_cmds - else - cmds=$module_cmds - fi - else - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then - cmds=$archive_expsym_cmds - else - cmds=$archive_cmds - fi - fi - - # Append the command to remove the reloadable object files - # to the just-reset $cmds. - eval cmds=\"\$cmds~\$rm $delfiles\" - fi - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || { - lt_exit=$? - - # Restore the uninstalled library and exit - if test "$mode" = relink; then - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' - fi - - exit $lt_exit - } - done - IFS="$save_ifs" - - # Restore the uninstalled library and exit - if test "$mode" = relink; then - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? - - if test -n "$convenience"; then - if test -z "$whole_archive_flag_spec"; then - $show "${rm}r $gentop" - $run ${rm}r "$gentop" - fi - fi - - exit $EXIT_SUCCESS - fi - - # Create links to the real library. - for linkname in $linknames; do - if test "$realname" != "$linkname"; then - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? - fi - done - - # If -module or -export-dynamic was specified, set the dlname. - if test "$module" = yes || test "$export_dynamic" = yes; then - # On all known operating systems, these are identical. - dlname="$soname" - fi - fi - ;; - - obj) - if test -n "$deplibs"; then - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 - fi - - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 - fi - - if test -n "$rpath"; then - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 - fi - - if test -n "$xrpath"; then - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 - fi - - if test -n "$vinfo"; then - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 - fi - - if test -n "$release"; then - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 - fi - - case $output in - *.lo) - if test -n "$objs$old_deplibs"; then - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 - exit $EXIT_FAILURE - fi - libobj="$output" - obj=`$echo "X$output" | $Xsed -e "$lo2o"` - ;; - *) - libobj= - obj="$output" - ;; - esac - - # Delete the old objects. - $run $rm $obj $libobj - - # Objects from convenience libraries. This assumes - # single-version convenience libraries. Whenever we create - # different ones for PIC/non-PIC, this we'll have to duplicate - # the extraction. - reload_conv_objs= - gentop= - # reload_cmds runs $LD directly, so let us get rid of - # -Wl from whole_archive_flag_spec - wl= - - if test -n "$convenience"; then - if test -n "$whole_archive_flag_spec"; then - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" - else - gentop="$output_objdir/${obj}x" - generated="$generated $gentop" - - func_extract_archives $gentop $convenience - reload_conv_objs="$reload_objs $func_extract_archives_result" - fi - fi - - # Create the old-style object. - reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test - - output="$obj" - cmds=$reload_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - - # Exit if we aren't doing a library object file. - if test -z "$libobj"; then - if test -n "$gentop"; then - $show "${rm}r $gentop" - $run ${rm}r $gentop - fi - - exit $EXIT_SUCCESS - fi - - if test "$build_libtool_libs" != yes; then - if test -n "$gentop"; then - $show "${rm}r $gentop" - $run ${rm}r $gentop - fi - - # Create an invalid libtool object if no PIC, so that we don't - # accidentally link it into a program. - # $show "echo timestamp > $libobj" - # $run eval "echo timestamp > $libobj" || exit $? - exit $EXIT_SUCCESS - fi - - if test -n "$pic_flag" || test "$pic_mode" != default; then - # Only do commands if we really have different PIC objects. - reload_objs="$libobjs $reload_conv_objs" - output="$libobj" - cmds=$reload_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - fi - - if test -n "$gentop"; then - $show "${rm}r $gentop" - $run ${rm}r $gentop - fi - - exit $EXIT_SUCCESS - ;; - - prog) - case $host in - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; - esac - if test -n "$vinfo"; then - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 - fi - - if test -n "$release"; then - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 - fi - - if test "$preload" = yes; then - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && - test "$dlopen_self_static" = unknown; then - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." - fi - fi - - case $host in - *-*-rhapsody* | *-*-darwin1.[012]) - # On Rhapsody replace the C library is the System framework - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` - ;; - esac - - case $host in - *darwin*) - # Don't allow lazy linking, it breaks C++ global constructors - if test "$tagname" = CXX ; then - compile_command="$compile_command ${wl}-bind_at_load" - finalize_command="$finalize_command ${wl}-bind_at_load" - fi - ;; - esac - - - # move library search paths that coincide with paths to not yet - # installed libraries to the beginning of the library search list - new_libs= - for path in $notinst_path; do - case " $new_libs " in - *" -L$path/$objdir "*) ;; - *) - case " $compile_deplibs " in - *" -L$path/$objdir "*) - new_libs="$new_libs -L$path/$objdir" ;; - esac - ;; - esac - done - for deplib in $compile_deplibs; do - case $deplib in - -L*) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$new_libs $deplib" ;; - esac - ;; - *) new_libs="$new_libs $deplib" ;; - esac - done - compile_deplibs="$new_libs" - - - compile_command="$compile_command $compile_deplibs" - finalize_command="$finalize_command $finalize_deplibs" - - if test -n "$rpath$xrpath"; then - # If the user specified any rpath flags, then add them. - for libdir in $rpath $xrpath; do - # This is the magic to use -rpath. - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" ;; - esac - done - fi - - # Now hardcode the library paths - rpath= - hardcode_libdirs= - for libdir in $compile_rpath $finalize_rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - rpath="$rpath $flag" - fi - elif test -n "$runpath_var"; then - case "$perm_rpath " in - *" $libdir "*) ;; - *) perm_rpath="$perm_rpath $libdir" ;; - esac - fi - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$libdir:"*) ;; - *) dllsearchpath="$dllsearchpath:$libdir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - *) dllsearchpath="$dllsearchpath:$testbindir";; - esac - ;; - esac - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - eval rpath=\" $hardcode_libdir_flag_spec\" - fi - compile_rpath="$rpath" - - rpath= - hardcode_libdirs= - for libdir in $finalize_rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - rpath="$rpath $flag" - fi - elif test -n "$runpath_var"; then - case "$finalize_perm_rpath " in - *" $libdir "*) ;; - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; - esac - fi - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - eval rpath=\" $hardcode_libdir_flag_spec\" - fi - finalize_rpath="$rpath" - - if test -n "$libobjs" && test "$build_old_libs" = yes; then - # Transform all the library objects into standard objects. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - fi - - dlsyms= - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - if test -n "$NM" && test -n "$global_symbol_pipe"; then - dlsyms="${outputname}S.c" - else - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 - fi - fi - - if test -n "$dlsyms"; then - case $dlsyms in - "") ;; - *.c) - # Discover the nlist of each of the dlfiles. - nlist="$output_objdir/${outputname}.nm" - - $show "$rm $nlist ${nlist}S ${nlist}T" - $run $rm "$nlist" "${nlist}S" "${nlist}T" - - # Parse the name list into a source file. - $show "creating $output_objdir/$dlsyms" - - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ - -#ifdef __cplusplus -extern \"C\" { -#endif - -/* Prevent the only kind of declaration conflicts we can make. */ -#define lt_preloaded_symbols some_other_symbol - -/* External symbol declarations for the compiler. */\ -" - - if test "$dlself" = yes; then - $show "generating symbol list for \`$output'" - - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" - - # Add our own program objects to the symbol list. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - for arg in $progfiles; do - $show "extracting global C symbols from \`$arg'" - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" - done - - if test -n "$exclude_expsyms"; then - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' - $run eval '$mv "$nlist"T "$nlist"' - fi - - if test -n "$export_symbols_regex"; then - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' - $run eval '$mv "$nlist"T "$nlist"' - fi - - # Prepare the list of exported symbols - if test -z "$export_symbols"; then - export_symbols="$output_objdir/$outputname.exp" - $run $rm $export_symbols - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' - case $host in - *cygwin* | *mingw* ) - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' - ;; - esac - else - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' - $run eval 'mv "$nlist"T "$nlist"' - case $host in - *cygwin* | *mingw* ) - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' - ;; - esac - fi - fi - - for arg in $dlprefiles; do - $show "extracting global C symbols from \`$arg'" - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` - $run eval '$echo ": $name " >> "$nlist"' - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" - done - - if test -z "$run"; then - # Make sure we have at least an empty file. - test -f "$nlist" || : > "$nlist" - - if test -n "$exclude_expsyms"; then - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T - $mv "$nlist"T "$nlist" - fi - - # Try sorting and uniquifying the output. - if grep -v "^: " < "$nlist" | - if sort -k 3 /dev/null 2>&1; then - sort -k 3 - else - sort +2 - fi | - uniq > "$nlist"S; then - : - else - grep -v "^: " < "$nlist" > "$nlist"S - fi - - if test -f "$nlist"S; then - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' - else - $echo '/* NONE */' >> "$output_objdir/$dlsyms" - fi - - $echo >> "$output_objdir/$dlsyms" "\ - -#undef lt_preloaded_symbols - -#if defined (__STDC__) && __STDC__ -# define lt_ptr void * -#else -# define lt_ptr char * -# define const -#endif - -/* The mapping between symbol names and symbols. */ -" - - case $host in - *cygwin* | *mingw* ) - $echo >> "$output_objdir/$dlsyms" "\ -/* DATA imports from DLLs on WIN32 can't be const, because - runtime relocations are performed -- see ld's documentation - on pseudo-relocs */ -struct { -" - ;; - * ) - $echo >> "$output_objdir/$dlsyms" "\ -const struct { -" - ;; - esac - - - $echo >> "$output_objdir/$dlsyms" "\ - const char *name; - lt_ptr address; -} -lt_preloaded_symbols[] = -{\ -" - - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" - - $echo >> "$output_objdir/$dlsyms" "\ - {0, (lt_ptr) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif\ -" - fi - - pic_flag_for_symtable= - case $host in - # compiling the symbol table file with pic_flag works around - # a FreeBSD bug that causes programs to crash when -lm is - # linked before any other PIC object. But we must not use - # pic_flag when linking with -static. The problem exists in - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) - case "$compile_command " in - *" -static "*) ;; - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; - esac;; - *-*-hpux*) - case "$compile_command " in - *" -static "*) ;; - *) pic_flag_for_symtable=" $pic_flag";; - esac - esac - - # Now compile the dynamic symbol file. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? - - # Clean up the generated files. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" - - # Transform the symbol file into the correct name. - case $host in - *cygwin* | *mingw* ) - if test -f "$output_objdir/${outputname}.def" ; then - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` - else - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` - fi - ;; - * ) - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` - ;; - esac - ;; - *) - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 - exit $EXIT_FAILURE - ;; - esac - else - # We keep going just in case the user didn't refer to - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe - # really was required. - - # Nullify the symbol file. - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` - fi - - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then - # Replace the output file specification. - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` - link_command="$compile_command$compile_rpath" - - # We have no uninstalled library dependencies, so finalize right now. - $show "$link_command" - $run eval "$link_command" - exit_status=$? - - # Delete the generated files. - if test -n "$dlsyms"; then - $show "$rm $output_objdir/${outputname}S.${objext}" - $run $rm "$output_objdir/${outputname}S.${objext}" - fi - - exit $exit_status - fi - - if test -n "$shlibpath_var"; then - # We should set the shlibpath_var - rpath= - for dir in $temp_rpath; do - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) - # Absolute path. - rpath="$rpath$dir:" - ;; - *) - # Relative path: add a thisdir entry. - rpath="$rpath\$thisdir/$dir:" - ;; - esac - done - temp_rpath="$rpath" - fi - - if test -n "$compile_shlibpath$finalize_shlibpath"; then - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" - fi - if test -n "$finalize_shlibpath"; then - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" - fi - - compile_var= - finalize_var= - if test -n "$runpath_var"; then - if test -n "$perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $perm_rpath; do - rpath="$rpath$dir:" - done - compile_var="$runpath_var=\"$rpath\$$runpath_var\" " - fi - if test -n "$finalize_perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $finalize_perm_rpath; do - rpath="$rpath$dir:" - done - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " - fi - fi - - if test "$no_install" = yes; then - # We don't need to create a wrapper script. - link_command="$compile_var$compile_command$compile_rpath" - # Replace the output file specification. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` - # Delete the old output file. - $run $rm $output - # Link the executable and exit - $show "$link_command" - $run eval "$link_command" || exit $? - exit $EXIT_SUCCESS - fi - - if test "$hardcode_action" = relink; then - # Fast installation is not supported - link_command="$compile_var$compile_command$compile_rpath" - relink_command="$finalize_var$finalize_command$finalize_rpath" - - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 - $echo "$modename: \`$output' will be relinked during installation" 1>&2 - else - if test "$fast_install" != no; then - link_command="$finalize_var$compile_command$finalize_rpath" - if test "$fast_install" = yes; then - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` - else - # fast_install is set to needless - relink_command= - fi - else - link_command="$compile_var$compile_command$compile_rpath" - relink_command="$finalize_var$finalize_command$finalize_rpath" - fi - fi - - # Replace the output file specification. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` - - # Delete the old output files. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname - - $show "$link_command" - $run eval "$link_command" || exit $? - - # Now create the wrapper script. - $show "creating $output" - - # Quote the relink command for shipping. - if test -n "$relink_command"; then - # Preserve any variables that may affect compiler behavior - for var in $variables_saved_for_relink; do - if eval test -z \"\${$var+set}\"; then - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" - elif eval var_value=\$$var; test -z "$var_value"; then - relink_command="$var=; export $var; $relink_command" - else - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` - relink_command="$var=\"$var_value\"; export $var; $relink_command" - fi - done - relink_command="(cd `pwd`; $relink_command)" - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` - fi - - # Quote $echo for shipping. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then - case $progpath in - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; - esac - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` - else - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` - fi - - # Only actually do things if our run command is non-null. - if test -z "$run"; then - # win32 will think the script is a binary if it has - # a .exe suffix, so we strip it off here. - case $output in - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; - esac - # test for cygwin because mv fails w/o .exe extensions - case $host in - *cygwin*) - exeext=.exe - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; - *) exeext= ;; - esac - case $host in - *cygwin* | *mingw* ) - output_name=`basename $output` - output_path=`dirname $output` - cwrappersource="$output_path/$objdir/lt-$output_name.c" - cwrapper="$output_path/$output_name.exe" - $rm $cwrappersource $cwrapper - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 - - cat > $cwrappersource <> $cwrappersource<<"EOF" -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#if defined(PATH_MAX) -# define LT_PATHMAX PATH_MAX -#elif defined(MAXPATHLEN) -# define LT_PATHMAX MAXPATHLEN -#else -# define LT_PATHMAX 1024 -#endif - -#ifndef DIR_SEPARATOR -# define DIR_SEPARATOR '/' -# define PATH_SEPARATOR ':' -#endif - -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ - defined (__OS2__) -# define HAVE_DOS_BASED_FILE_SYSTEM -# ifndef DIR_SEPARATOR_2 -# define DIR_SEPARATOR_2 '\\' -# endif -# ifndef PATH_SEPARATOR_2 -# define PATH_SEPARATOR_2 ';' -# endif -#endif - -#ifndef DIR_SEPARATOR_2 -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) -#else /* DIR_SEPARATOR_2 */ -# define IS_DIR_SEPARATOR(ch) \ - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) -#endif /* DIR_SEPARATOR_2 */ - -#ifndef PATH_SEPARATOR_2 -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) -#else /* PATH_SEPARATOR_2 */ -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) -#endif /* PATH_SEPARATOR_2 */ - -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) -#define XFREE(stale) do { \ - if (stale) { free ((void *) stale); stale = 0; } \ -} while (0) - -/* -DDEBUG is fairly common in CFLAGS. */ -#undef DEBUG -#if defined DEBUGWRAPPER -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) -#else -# define DEBUG(format, ...) -#endif - -const char *program_name = NULL; - -void * xmalloc (size_t num); -char * xstrdup (const char *string); -const char * base_name (const char *name); -char * find_executable(const char *wrapper); -int check_executable(const char *path); -char * strendzap(char *str, const char *pat); -void lt_fatal (const char *message, ...); - -int -main (int argc, char *argv[]) -{ - char **newargz; - int i; - - program_name = (char *) xstrdup (base_name (argv[0])); - DEBUG("(main) argv[0] : %s\n",argv[0]); - DEBUG("(main) program_name : %s\n",program_name); - newargz = XMALLOC(char *, argc+2); -EOF - - cat >> $cwrappersource <> $cwrappersource <<"EOF" - newargz[1] = find_executable(argv[0]); - if (newargz[1] == NULL) - lt_fatal("Couldn't find %s", argv[0]); - DEBUG("(main) found exe at : %s\n",newargz[1]); - /* we know the script has the same name, without the .exe */ - /* so make sure newargz[1] doesn't end in .exe */ - strendzap(newargz[1],".exe"); - for (i = 1; i < argc; i++) - newargz[i+1] = xstrdup(argv[i]); - newargz[argc+1] = NULL; - - for (i=0; i> $cwrappersource <> $cwrappersource <> $cwrappersource <<"EOF" - return 127; -} - -void * -xmalloc (size_t num) -{ - void * p = (void *) malloc (num); - if (!p) - lt_fatal ("Memory exhausted"); - - return p; -} - -char * -xstrdup (const char *string) -{ - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL -; -} - -const char * -base_name (const char *name) -{ - const char *base; - -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - /* Skip over the disk name in MSDOS pathnames. */ - if (isalpha ((unsigned char)name[0]) && name[1] == ':') - name += 2; -#endif - - for (base = name; *name; name++) - if (IS_DIR_SEPARATOR (*name)) - base = name + 1; - return base; -} - -int -check_executable(const char * path) -{ - struct stat st; - - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!"); - if ((!path) || (!*path)) - return 0; - - if ((stat (path, &st) >= 0) && - ( - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ -#if defined (S_IXOTH) - ((st.st_mode & S_IXOTH) == S_IXOTH) || -#endif -#if defined (S_IXGRP) - ((st.st_mode & S_IXGRP) == S_IXGRP) || -#endif - ((st.st_mode & S_IXUSR) == S_IXUSR)) - ) - return 1; - else - return 0; -} - -/* Searches for the full path of the wrapper. Returns - newly allocated full path name if found, NULL otherwise */ -char * -find_executable (const char* wrapper) -{ - int has_slash = 0; - const char* p; - const char* p_next; - /* static buffer for getcwd */ - char tmp[LT_PATHMAX + 1]; - int tmp_len; - char* concat_name; - - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"); - - if ((wrapper == NULL) || (*wrapper == '\0')) - return NULL; - - /* Absolute path? */ -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':') - { - concat_name = xstrdup (wrapper); - if (check_executable(concat_name)) - return concat_name; - XFREE(concat_name); - } - else - { -#endif - if (IS_DIR_SEPARATOR (wrapper[0])) - { - concat_name = xstrdup (wrapper); - if (check_executable(concat_name)) - return concat_name; - XFREE(concat_name); - } -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - } -#endif - - for (p = wrapper; *p; p++) - if (*p == '/') - { - has_slash = 1; - break; - } - if (!has_slash) - { - /* no slashes; search PATH */ - const char* path = getenv ("PATH"); - if (path != NULL) - { - for (p = path; *p; p = p_next) - { - const char* q; - size_t p_len; - for (q = p; *q; q++) - if (IS_PATH_SEPARATOR(*q)) - break; - p_len = q - p; - p_next = (*q == '\0' ? q : q + 1); - if (p_len == 0) - { - /* empty path: current directory */ - if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal ("getcwd failed"); - tmp_len = strlen(tmp); - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); - memcpy (concat_name, tmp, tmp_len); - concat_name[tmp_len] = '/'; - strcpy (concat_name + tmp_len + 1, wrapper); - } - else - { - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1); - memcpy (concat_name, p, p_len); - concat_name[p_len] = '/'; - strcpy (concat_name + p_len + 1, wrapper); - } - if (check_executable(concat_name)) - return concat_name; - XFREE(concat_name); - } - } - /* not found in PATH; assume curdir */ - } - /* Relative path | not found in path: prepend cwd */ - if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal ("getcwd failed"); - tmp_len = strlen(tmp); - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); - memcpy (concat_name, tmp, tmp_len); - concat_name[tmp_len] = '/'; - strcpy (concat_name + tmp_len + 1, wrapper); - - if (check_executable(concat_name)) - return concat_name; - XFREE(concat_name); - return NULL; -} - -char * -strendzap(char *str, const char *pat) -{ - size_t len, patlen; - - assert(str != NULL); - assert(pat != NULL); - - len = strlen(str); - patlen = strlen(pat); - - if (patlen <= len) - { - str += len - patlen; - if (strcmp(str, pat) == 0) - *str = '\0'; - } - return str; -} - -static void -lt_error_core (int exit_status, const char * mode, - const char * message, va_list ap) -{ - fprintf (stderr, "%s: %s: ", program_name, mode); - vfprintf (stderr, message, ap); - fprintf (stderr, ".\n"); - - if (exit_status >= 0) - exit (exit_status); -} - -void -lt_fatal (const char *message, ...) -{ - va_list ap; - va_start (ap, message); - lt_error_core (EXIT_FAILURE, "FATAL", message, ap); - va_end (ap); -} -EOF - # we should really use a build-platform specific compiler - # here, but OTOH, the wrappers (shell script and this C one) - # are only useful if you want to execute the "real" binary. - # Since the "real" binary is built for $host, then this - # wrapper might as well be built for $host, too. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource - ;; - esac - $rm $output - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 - - $echo > $output "\ -#! $SHELL - -# $output - temporary wrapper script for $objdir/$outputname -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP -# -# The $output program cannot be directly executed until all the libtool -# libraries that it depends on are installed. -# -# This wrapper script should never be moved out of the build directory. -# If it is, it will not operate correctly. - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='${SED} -e 1s/^X//' -sed_quote_subst='$sed_quote_subst' - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -relink_command=\"$relink_command\" - -# This environment variable determines our operation mode. -if test \"\$libtool_install_magic\" = \"$magic\"; then - # install mode needs the following variable: - notinst_deplibs='$notinst_deplibs' -else - # When we are sourced in execute mode, \$file and \$echo are already set. - if test \"\$libtool_execute_magic\" != \"$magic\"; then - echo=\"$qecho\" - file=\"\$0\" - # Make sure echo works. - if test \"X\$1\" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then - # Yippee, \$echo works! - : - else - # Restart under the correct shell, and then maybe \$echo will work. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} - fi - fi\ -" - $echo >> $output "\ - - # Find the directory that this script lives in. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` - test \"x\$thisdir\" = \"x\$file\" && thisdir=. - - # Follow symbolic links until we get to the real thisdir. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` - while test -n \"\$file\"; do - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` - - # If there was a directory component, then change thisdir. - if test \"x\$destdir\" != \"x\$file\"; then - case \"\$destdir\" in - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; - *) thisdir=\"\$thisdir/\$destdir\" ;; - esac - fi - - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` - done - - # Try to get the absolute directory name. - absdir=\`cd \"\$thisdir\" && pwd\` - test -n \"\$absdir\" && thisdir=\"\$absdir\" -" - - if test "$fast_install" = yes; then - $echo >> $output "\ - program=lt-'$outputname'$exeext - progdir=\"\$thisdir/$objdir\" - - if test ! -f \"\$progdir/\$program\" || \\ - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ - test \"X\$file\" != \"X\$progdir/\$program\"; }; then - - file=\"\$\$-\$program\" - - if test ! -d \"\$progdir\"; then - $mkdir \"\$progdir\" - else - $rm \"\$progdir/\$file\" - fi" - - $echo >> $output "\ - - # relink executable if necessary - if test -n \"\$relink_command\"; then - if relink_command_output=\`eval \$relink_command 2>&1\`; then : - else - $echo \"\$relink_command_output\" >&2 - $rm \"\$progdir/\$file\" - exit $EXIT_FAILURE - fi - fi - - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || - { $rm \"\$progdir/\$program\"; - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } - $rm \"\$progdir/\$file\" - fi" - else - $echo >> $output "\ - program='$outputname' - progdir=\"\$thisdir/$objdir\" -" - fi - - $echo >> $output "\ - - if test -f \"\$progdir/\$program\"; then" - - # Export our shlibpath_var if we have one. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then - $echo >> $output "\ - # Add our own library path to $shlibpath_var - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" - - # Some systems cannot cope with colon-terminated $shlibpath_var - # The second colon is a workaround for a bug in BeOS R4 sed - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` - - export $shlibpath_var -" - fi - - # fixup the dll searchpath if we need to. - if test -n "$dllsearchpath"; then - $echo >> $output "\ - # Add the dll search path components to the executable PATH - PATH=$dllsearchpath:\$PATH -" - fi - - $echo >> $output "\ - if test \"\$libtool_execute_magic\" != \"$magic\"; then - # Run the actual program with our arguments. -" - case $host in - # Backslashes separate directories on plain windows - *-*-mingw | *-*-os2*) - $echo >> $output "\ - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} -" - ;; - - *) - $echo >> $output "\ - exec \"\$progdir/\$program\" \${1+\"\$@\"} -" - ;; - esac - $echo >> $output "\ - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" - exit $EXIT_FAILURE - fi - else - # The program doesn't exist. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 - \$echo \"This script is just a wrapper for \$program.\" 1>&2 - $echo \"See the $PACKAGE documentation for more information.\" 1>&2 - exit $EXIT_FAILURE - fi -fi\ -" - chmod +x $output - fi - exit $EXIT_SUCCESS - ;; - esac - - # See if we need to build an old-fashioned archive. - for oldlib in $oldlibs; do - - if test "$build_libtool_libs" = convenience; then - oldobjs="$libobjs_save" - addlibs="$convenience" - build_libtool_libs=no - else - if test "$build_libtool_libs" = module; then - oldobjs="$libobjs_save" - build_libtool_libs=no - else - oldobjs="$old_deplibs $non_pic_objects" - fi - addlibs="$old_convenience" - fi - - if test -n "$addlibs"; then - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" - - func_extract_archives $gentop $addlibs - oldobjs="$oldobjs $func_extract_archives_result" - fi - - # Do each command in the archive commands. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then - cmds=$old_archive_from_new_cmds - else - # POSIX demands no paths to be encoded in archives. We have - # to avoid creating archives with duplicate basenames if we - # might have to extract them afterwards, e.g., when creating a - # static archive out of a convenience library, or when linking - # the entirety of a libtool archive into another (currently - # not supported by libtool). - if (for obj in $oldobjs - do - $echo "X$obj" | $Xsed -e 's%^.*/%%' - done | sort | sort -uc >/dev/null 2>&1); then - : - else - $echo "copying selected object files to avoid basename conflicts..." - - if test -z "$gentop"; then - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" - - $show "${rm}r $gentop" - $run ${rm}r "$gentop" - $show "$mkdir $gentop" - $run $mkdir "$gentop" - exit_status=$? - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then - exit $exit_status - fi - fi - - save_oldobjs=$oldobjs - oldobjs= - counter=1 - for obj in $save_oldobjs - do - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` - case " $oldobjs " in - " ") oldobjs=$obj ;; - *[\ /]"$objbase "*) - while :; do - # Make sure we don't pick an alternate name that also - # overlaps. - newobj=lt$counter-$objbase - counter=`expr $counter + 1` - case " $oldobjs " in - *[\ /]"$newobj "*) ;; - *) if test ! -f "$gentop/$newobj"; then break; fi ;; - esac - done - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" - $run ln "$obj" "$gentop/$newobj" || - $run cp "$obj" "$gentop/$newobj" - oldobjs="$oldobjs $gentop/$newobj" - ;; - *) oldobjs="$oldobjs $obj" ;; - esac - done - fi - - eval cmds=\"$old_archive_cmds\" - - if len=`expr "X$cmds" : ".*"` && - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then - cmds=$old_archive_cmds - else - # the command line is too long to link in one step, link in parts - $echo "using piecewise archive linking..." - save_RANLIB=$RANLIB - RANLIB=: - objlist= - concat_cmds= - save_oldobjs=$oldobjs - - # Is there a better way of finding the last object in the list? - for obj in $save_oldobjs - do - last_oldobj=$obj - done - for obj in $save_oldobjs - do - oldobjs="$objlist $obj" - objlist="$objlist $obj" - eval test_cmds=\"$old_archive_cmds\" - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` && - test "$len" -le "$max_cmd_len"; then - : - else - # the above command should be used before it gets too long - oldobjs=$objlist - if test "$obj" = "$last_oldobj" ; then - RANLIB=$save_RANLIB - fi - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" - objlist= - fi - done - RANLIB=$save_RANLIB - oldobjs=$objlist - if test "X$oldobjs" = "X" ; then - eval cmds=\"\$concat_cmds\" - else - eval cmds=\"\$concat_cmds~\$old_archive_cmds\" - fi - fi - fi - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - eval cmd=\"$cmd\" - IFS="$save_ifs" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - done - - if test -n "$generated"; then - $show "${rm}r$generated" - $run ${rm}r$generated - fi - - # Now create the libtool archive. - case $output in - *.la) - old_library= - test "$build_old_libs" = yes && old_library="$libname.$libext" - $show "creating $output" - - # Preserve any variables that may affect compiler behavior - for var in $variables_saved_for_relink; do - if eval test -z \"\${$var+set}\"; then - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" - elif eval var_value=\$$var; test -z "$var_value"; then - relink_command="$var=; export $var; $relink_command" - else - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` - relink_command="$var=\"$var_value\"; export $var; $relink_command" - fi - done - # Quote the link command for shipping. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` - if test "$hardcode_automatic" = yes ; then - relink_command= - fi - - - # Only create the output if not a dry run. - if test -z "$run"; then - for installed in no yes; do - if test "$installed" = yes; then - if test -z "$install_libdir"; then - break - fi - output="$output_objdir/$outputname"i - # Replace all uninstalled libtool libraries with the installed ones - newdependency_libs= - for deplib in $dependency_libs; do - case $deplib in - *.la) - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` - if test -z "$libdir"; then - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 - exit $EXIT_FAILURE - fi - newdependency_libs="$newdependency_libs $libdir/$name" - ;; - *) newdependency_libs="$newdependency_libs $deplib" ;; - esac - done - dependency_libs="$newdependency_libs" - newdlfiles= - for lib in $dlfiles; do - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` - if test -z "$libdir"; then - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 - exit $EXIT_FAILURE - fi - newdlfiles="$newdlfiles $libdir/$name" - done - dlfiles="$newdlfiles" - newdlprefiles= - for lib in $dlprefiles; do - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` - if test -z "$libdir"; then - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 - exit $EXIT_FAILURE - fi - newdlprefiles="$newdlprefiles $libdir/$name" - done - dlprefiles="$newdlprefiles" - else - newdlfiles= - for lib in $dlfiles; do - case $lib in - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; - *) abs=`pwd`"/$lib" ;; - esac - newdlfiles="$newdlfiles $abs" - done - dlfiles="$newdlfiles" - newdlprefiles= - for lib in $dlprefiles; do - case $lib in - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; - *) abs=`pwd`"/$lib" ;; - esac - newdlprefiles="$newdlprefiles $abs" - done - dlprefiles="$newdlprefiles" - fi - $rm $output - # place dlname in correct position for cygwin - tdlname=$dlname - case $host,$output,$installed,$module,$dlname in - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; - esac - $echo > $output "\ -# $outputname - a libtool library file -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='$tdlname' - -# Names of this library. -library_names='$library_names' - -# The name of the static archive. -old_library='$old_library' - -# Libraries that this one depends upon. -dependency_libs='$dependency_libs' - -# Version information for $libname. -current=$current -age=$age -revision=$revision - -# Is this an already installed library? -installed=$installed - -# Should we warn about portability when linking against -modules? -shouldnotlink=$module - -# Files to dlopen/dlpreopen -dlopen='$dlfiles' -dlpreopen='$dlprefiles' - -# Directory that this library needs to be installed in: -libdir='$install_libdir'" - if test "$installed" = no && test "$need_relink" = yes; then - $echo >> $output "\ -relink_command=\"$relink_command\"" - fi - done - fi - - # Do a symbolic link so that the libtool archive can be found in - # LD_LIBRARY_PATH before the program is installed. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? - ;; - esac - exit $EXIT_SUCCESS - ;; - - # libtool install mode - install) - modename="$modename: install" - - # There may be an optional sh(1) argument at the beginning of - # install_prog (especially on Windows NT). - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || - # Allow the use of GNU shtool's install command. - $echo "X$nonopt" | grep shtool > /dev/null; then - # Aesthetically quote it. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - install_prog="$arg " - arg="$1" - shift - else - install_prog= - arg=$nonopt - fi - - # The real first argument should be the name of the installation program. - # Aesthetically quote it. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - install_prog="$install_prog$arg" - - # We need to accept at least all the BSD install flags. - dest= - files= - opts= - prev= - install_type= - isdir=no - stripme= - for arg - do - if test -n "$dest"; then - files="$files $dest" - dest=$arg - continue - fi - - case $arg in - -d) isdir=yes ;; - -f) - case " $install_prog " in - *[\\\ /]cp\ *) ;; - *) prev=$arg ;; - esac - ;; - -g | -m | -o) prev=$arg ;; - -s) - stripme=" -s" - continue - ;; - -*) - ;; - *) - # If the previous option needed an argument, then skip it. - if test -n "$prev"; then - prev= - else - dest=$arg - continue - fi - ;; - esac - - # Aesthetically quote the argument. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - install_prog="$install_prog $arg" - done - - if test -z "$install_prog"; then - $echo "$modename: you must specify an install program" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - if test -n "$prev"; then - $echo "$modename: the \`$prev' option requires an argument" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - if test -z "$files"; then - if test -z "$dest"; then - $echo "$modename: no file or destination specified" 1>&2 - else - $echo "$modename: you must specify a destination" 1>&2 - fi - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # Strip any trailing slash from the destination. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` - - # Check to see that the destination is a directory. - test -d "$dest" && isdir=yes - if test "$isdir" = yes; then - destdir="$dest" - destname= - else - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` - test "X$destdir" = "X$dest" && destdir=. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` - - # Not a directory, so check to see that there is only one file specified. - set dummy $files - if test "$#" -gt 2; then - $echo "$modename: \`$dest' is not a directory" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - fi - case $destdir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - for file in $files; do - case $file in - *.lo) ;; - *) - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - ;; - esac - done - ;; - esac - - # This variable tells wrapper scripts just to set variables rather - # than running their programs. - libtool_install_magic="$magic" - - staticlibs= - future_libdirs= - current_libdirs= - for file in $files; do - - # Do each installation. - case $file in - *.$libext) - # Do the static libraries later. - staticlibs="$staticlibs $file" - ;; - - *.la) - # Check to see that this really is a libtool archive. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : - else - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - library_names= - old_library= - relink_command= - # If there is no directory component, then add one. - case $file in - */* | *\\*) . $file ;; - *) . ./$file ;; - esac - - # Add the libdir to current_libdirs if it is the destination. - if test "X$destdir" = "X$libdir"; then - case "$current_libdirs " in - *" $libdir "*) ;; - *) current_libdirs="$current_libdirs $libdir" ;; - esac - else - # Note the libdir as a future libdir. - case "$future_libdirs " in - *" $libdir "*) ;; - *) future_libdirs="$future_libdirs $libdir" ;; - esac - fi - - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ - test "X$dir" = "X$file/" && dir= - dir="$dir$objdir" - - if test -n "$relink_command"; then - # Determine the prefix the user has applied to our future dir. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` - - # Don't allow the user to place us outside of our expected - # location b/c this prevents finding dependent libraries that - # are installed to the same prefix. - # At present, this check doesn't affect windows .dll's that - # are installed into $libdir/../bin (currently, that works fine) - # but it's something to keep an eye on. - if test "$inst_prefix_dir" = "$destdir"; then - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 - exit $EXIT_FAILURE - fi - - if test -n "$inst_prefix_dir"; then - # Stick the inst_prefix_dir data into the link command. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` - else - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"` - fi - - $echo "$modename: warning: relinking \`$file'" 1>&2 - $show "$relink_command" - if $run eval "$relink_command"; then : - else - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 - exit $EXIT_FAILURE - fi - fi - - # See the names of the shared library. - set dummy $library_names - if test -n "$2"; then - realname="$2" - shift - shift - - srcname="$realname" - test -n "$relink_command" && srcname="$realname"T - - # Install the shared library and build the symlinks. - $show "$install_prog $dir/$srcname $destdir/$realname" - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? - if test -n "$stripme" && test -n "$striplib"; then - $show "$striplib $destdir/$realname" - $run eval "$striplib $destdir/$realname" || exit $? - fi - - if test "$#" -gt 0; then - # Delete the old symlinks, and create new ones. - # Try `ln -sf' first, because the `ln' binary might depend on - # the symlink we replace! Solaris /bin/ln does not understand -f, - # so we also need to try rm && ln -s. - for linkname - do - if test "$linkname" != "$realname"; then - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" - fi - done - fi - - # Do each command in the postinstall commands. - lib="$destdir/$realname" - cmds=$postinstall_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || { - lt_exit=$? - - # Restore the uninstalled library and exit - if test "$mode" = relink; then - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' - fi - - exit $lt_exit - } - done - IFS="$save_ifs" - fi - - # Install the pseudo-library for information purposes. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` - instname="$dir/$name"i - $show "$install_prog $instname $destdir/$name" - $run eval "$install_prog $instname $destdir/$name" || exit $? - - # Maybe install the static library, too. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" - ;; - - *.lo) - # Install (i.e. copy) a libtool object. - - # Figure out destination file name, if it wasn't already specified. - if test -n "$destname"; then - destfile="$destdir/$destname" - else - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` - destfile="$destdir/$destfile" - fi - - # Deduce the name of the destination old-style object file. - case $destfile in - *.lo) - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` - ;; - *.$objext) - staticdest="$destfile" - destfile= - ;; - *) - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - # Install the libtool object if requested. - if test -n "$destfile"; then - $show "$install_prog $file $destfile" - $run eval "$install_prog $file $destfile" || exit $? - fi - - # Install the old object if enabled. - if test "$build_old_libs" = yes; then - # Deduce the name of the old-style object file. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` - - $show "$install_prog $staticobj $staticdest" - $run eval "$install_prog \$staticobj \$staticdest" || exit $? - fi - exit $EXIT_SUCCESS - ;; - - *) - # Figure out destination file name, if it wasn't already specified. - if test -n "$destname"; then - destfile="$destdir/$destname" - else - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` - destfile="$destdir/$destfile" - fi - - # If the file is missing, and there is a .exe on the end, strip it - # because it is most likely a libtool script we actually want to - # install - stripped_ext="" - case $file in - *.exe) - if test ! -f "$file"; then - file=`$echo $file|${SED} 's,.exe$,,'` - stripped_ext=".exe" - fi - ;; - esac - - # Do a test to see if this is really a libtool program. - case $host in - *cygwin*|*mingw*) - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` - ;; - *) - wrapper=$file - ;; - esac - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then - notinst_deplibs= - relink_command= - - # Note that it is not necessary on cygwin/mingw to append a dot to - # foo even if both foo and FILE.exe exist: automatic-append-.exe - # behavior happens only for exec(3), not for open(2)! Also, sourcing - # `FILE.' does not work on cygwin managed mounts. - # - # If there is no directory component, then add one. - case $wrapper in - */* | *\\*) . ${wrapper} ;; - *) . ./${wrapper} ;; - esac - - # Check the variables that should have been set. - if test -z "$notinst_deplibs"; then - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 - exit $EXIT_FAILURE - fi - - finalize=yes - for lib in $notinst_deplibs; do - # Check to see that each library is installed. - libdir= - if test -f "$lib"; then - # If there is no directory component, then add one. - case $lib in - */* | *\\*) . $lib ;; - *) . ./$lib ;; - esac - fi - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test - if test -n "$libdir" && test ! -f "$libfile"; then - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 - finalize=no - fi - done - - relink_command= - # Note that it is not necessary on cygwin/mingw to append a dot to - # foo even if both foo and FILE.exe exist: automatic-append-.exe - # behavior happens only for exec(3), not for open(2)! Also, sourcing - # `FILE.' does not work on cygwin managed mounts. - # - # If there is no directory component, then add one. - case $wrapper in - */* | *\\*) . ${wrapper} ;; - *) . ./${wrapper} ;; - esac - - outputname= - if test "$fast_install" = no && test -n "$relink_command"; then - if test "$finalize" = yes && test -z "$run"; then - tmpdir=`func_mktempdir` - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` - outputname="$tmpdir/$file" - # Replace the output file specification. - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` - - $show "$relink_command" - if $run eval "$relink_command"; then : - else - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 - ${rm}r "$tmpdir" - continue - fi - file="$outputname" - else - $echo "$modename: warning: cannot relink \`$file'" 1>&2 - fi - else - # Install the binary that we compiled earlier. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` - fi - fi - - # remove .exe since cygwin /usr/bin/install will append another - # one anyway - case $install_prog,$host in - */usr/bin/install*,*cygwin*) - case $file:$destfile in - *.exe:*.exe) - # this is ok - ;; - *.exe:*) - destfile=$destfile.exe - ;; - *:*.exe) - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` - ;; - esac - ;; - esac - $show "$install_prog$stripme $file $destfile" - $run eval "$install_prog\$stripme \$file \$destfile" || exit $? - test -n "$outputname" && ${rm}r "$tmpdir" - ;; - esac - done - - for file in $staticlibs; do - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` - - # Set up the ranlib parameters. - oldlib="$destdir/$name" - - $show "$install_prog $file $oldlib" - $run eval "$install_prog \$file \$oldlib" || exit $? - - if test -n "$stripme" && test -n "$old_striplib"; then - $show "$old_striplib $oldlib" - $run eval "$old_striplib $oldlib" || exit $? - fi - - # Do each command in the postinstall commands. - cmds=$old_postinstall_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - done - - if test -n "$future_libdirs"; then - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 - fi - - if test -n "$current_libdirs"; then - # Maybe just do a dry run. - test -n "$run" && current_libdirs=" -n$current_libdirs" - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' - else - exit $EXIT_SUCCESS - fi - ;; - - # libtool finish mode - finish) - modename="$modename: finish" - libdirs="$nonopt" - admincmds= - - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then - for dir - do - libdirs="$libdirs $dir" - done - - for libdir in $libdirs; do - if test -n "$finish_cmds"; then - # Do each command in the finish commands. - cmds=$finish_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || admincmds="$admincmds - $cmd" - done - IFS="$save_ifs" - fi - if test -n "$finish_eval"; then - # Do the single finish_eval. - eval cmds=\"$finish_eval\" - $run eval "$cmds" || admincmds="$admincmds - $cmds" - fi - done - fi - - # Exit here if they wanted silent mode. - test "$show" = : && exit $EXIT_SUCCESS - - $echo "X----------------------------------------------------------------------" | $Xsed - $echo "Libraries have been installed in:" - for libdir in $libdirs; do - $echo " $libdir" - done - $echo - $echo "If you ever happen to want to link against installed libraries" - $echo "in a given directory, LIBDIR, you must either use libtool, and" - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" - $echo "flag during linking and do at least one of the following:" - if test -n "$shlibpath_var"; then - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" - $echo " during execution" - fi - if test -n "$runpath_var"; then - $echo " - add LIBDIR to the \`$runpath_var' environment variable" - $echo " during linking" - fi - if test -n "$hardcode_libdir_flag_spec"; then - libdir=LIBDIR - eval flag=\"$hardcode_libdir_flag_spec\" - - $echo " - use the \`$flag' linker flag" - fi - if test -n "$admincmds"; then - $echo " - have your system administrator run these commands:$admincmds" - fi - if test -f /etc/ld.so.conf; then - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" - fi - $echo - $echo "See any operating system documentation about shared libraries for" - $echo "more information, such as the ld(1) and ld.so(8) manual pages." - $echo "X----------------------------------------------------------------------" | $Xsed - exit $EXIT_SUCCESS - ;; - - # libtool execute mode - execute) - modename="$modename: execute" - - # The first argument is the command name. - cmd="$nonopt" - if test -z "$cmd"; then - $echo "$modename: you must specify a COMMAND" 1>&2 - $echo "$help" - exit $EXIT_FAILURE - fi - - # Handle -dlopen flags immediately. - for file in $execute_dlfiles; do - if test ! -f "$file"; then - $echo "$modename: \`$file' is not a file" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - dir= - case $file in - *.la) - # Check to see that this really is a libtool archive. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : - else - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # Read the libtool library. - dlname= - library_names= - - # If there is no directory component, then add one. - case $file in - */* | *\\*) . $file ;; - *) . ./$file ;; - esac - - # Skip this library if it cannot be dlopened. - if test -z "$dlname"; then - # Warn if it was a shared library. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" - continue - fi - - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` - test "X$dir" = "X$file" && dir=. - - if test -f "$dir/$objdir/$dlname"; then - dir="$dir/$objdir" - else - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 - exit $EXIT_FAILURE - fi - ;; - - *.lo) - # Just add the directory containing the .lo file. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` - test "X$dir" = "X$file" && dir=. - ;; - - *) - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 - continue - ;; - esac - - # Get the absolute pathname. - absdir=`cd "$dir" && pwd` - test -n "$absdir" && dir="$absdir" - - # Now add the directory to shlibpath_var. - if eval "test -z \"\$$shlibpath_var\""; then - eval "$shlibpath_var=\"\$dir\"" - else - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" - fi - done - - # This variable tells wrapper scripts just to set shlibpath_var - # rather than running their programs. - libtool_execute_magic="$magic" - - # Check if any of the arguments is a wrapper script. - args= - for file - do - case $file in - -*) ;; - *) - # Do a test to see if this is really a libtool program. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - # If there is no directory component, then add one. - case $file in - */* | *\\*) . $file ;; - *) . ./$file ;; - esac - - # Transform arg to wrapped name. - file="$progdir/$program" - fi - ;; - esac - # Quote arguments (to preserve shell metacharacters). - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` - args="$args \"$file\"" - done - - if test -z "$run"; then - if test -n "$shlibpath_var"; then - # Export the shlibpath_var. - eval "export $shlibpath_var" - fi - - # Restore saved environment variables - if test "${save_LC_ALL+set}" = set; then - LC_ALL="$save_LC_ALL"; export LC_ALL - fi - if test "${save_LANG+set}" = set; then - LANG="$save_LANG"; export LANG - fi - - # Now prepare to actually exec the command. - exec_cmd="\$cmd$args" - else - # Display what would be done. - if test -n "$shlibpath_var"; then - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" - $echo "export $shlibpath_var" - fi - $echo "$cmd$args" - exit $EXIT_SUCCESS - fi - ;; - - # libtool clean and uninstall mode - clean | uninstall) - modename="$modename: $mode" - rm="$nonopt" - files= - rmforce= - exit_status=0 - - # This variable tells wrapper scripts just to set variables rather - # than running their programs. - libtool_install_magic="$magic" - - for arg - do - case $arg in - -f) rm="$rm $arg"; rmforce=yes ;; - -*) rm="$rm $arg" ;; - *) files="$files $arg" ;; - esac - done - - if test -z "$rm"; then - $echo "$modename: you must specify an RM program" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - rmdirs= - - origobjdir="$objdir" - for file in $files; do - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` - if test "X$dir" = "X$file"; then - dir=. - objdir="$origobjdir" - else - objdir="$dir/$origobjdir" - fi - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` - test "$mode" = uninstall && objdir="$dir" - - # Remember objdir for removal later, being careful to avoid duplicates - if test "$mode" = clean; then - case " $rmdirs " in - *" $objdir "*) ;; - *) rmdirs="$rmdirs $objdir" ;; - esac - fi - - # Don't error if the file doesn't exist and rm -f was used. - if (test -L "$file") >/dev/null 2>&1 \ - || (test -h "$file") >/dev/null 2>&1 \ - || test -f "$file"; then - : - elif test -d "$file"; then - exit_status=1 - continue - elif test "$rmforce" = yes; then - continue - fi - - rmfiles="$file" - - case $name in - *.la) - # Possibly a libtool archive, so verify it. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - . $dir/$name - - # Delete the libtool libraries and symlinks. - for n in $library_names; do - rmfiles="$rmfiles $objdir/$n" - done - test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" - - case "$mode" in - clean) - case " $library_names " in - # " " in the beginning catches empty $dlname - *" $dlname "*) ;; - *) rmfiles="$rmfiles $objdir/$dlname" ;; - esac - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" - ;; - uninstall) - if test -n "$library_names"; then - # Do each command in the postuninstall commands. - cmds=$postuninstall_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" - if test "$?" -ne 0 && test "$rmforce" != yes; then - exit_status=1 - fi - done - IFS="$save_ifs" - fi - - if test -n "$old_library"; then - # Do each command in the old_postuninstall commands. - cmds=$old_postuninstall_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" - if test "$?" -ne 0 && test "$rmforce" != yes; then - exit_status=1 - fi - done - IFS="$save_ifs" - fi - # FIXME: should reinstall the best remaining shared library. - ;; - esac - fi - ;; - - *.lo) - # Possibly a libtool object, so verify it. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - - # Read the .lo file - . $dir/$name - - # Add PIC object to the list of files to remove. - if test -n "$pic_object" \ - && test "$pic_object" != none; then - rmfiles="$rmfiles $dir/$pic_object" - fi - - # Add non-PIC object to the list of files to remove. - if test -n "$non_pic_object" \ - && test "$non_pic_object" != none; then - rmfiles="$rmfiles $dir/$non_pic_object" - fi - fi - ;; - - *) - if test "$mode" = clean ; then - noexename=$name - case $file in - *.exe) - file=`$echo $file|${SED} 's,.exe$,,'` - noexename=`$echo $name|${SED} 's,.exe$,,'` - # $file with .exe has already been added to rmfiles, - # add $file without .exe - rmfiles="$rmfiles $file" - ;; - esac - # Do a test to see if this is a libtool program. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - relink_command= - . $dir/$noexename - - # note $name still contains .exe if it was in $file originally - # as does the version of $file that was added into $rmfiles - rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" - if test "$fast_install" = yes && test -n "$relink_command"; then - rmfiles="$rmfiles $objdir/lt-$name" - fi - if test "X$noexename" != "X$name" ; then - rmfiles="$rmfiles $objdir/lt-${noexename}.c" - fi - fi - fi - ;; - esac - $show "$rm $rmfiles" - $run $rm $rmfiles || exit_status=1 - done - objdir="$origobjdir" - - # Try to remove the ${objdir}s in the directories where we deleted files - for dir in $rmdirs; do - if test -d "$dir"; then - $show "rmdir $dir" - $run rmdir $dir >/dev/null 2>&1 - fi - done - - exit $exit_status - ;; - - "") - $echo "$modename: you must specify a MODE" 1>&2 - $echo "$generic_help" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - if test -z "$exec_cmd"; then - $echo "$modename: invalid operation mode \`$mode'" 1>&2 - $echo "$generic_help" 1>&2 - exit $EXIT_FAILURE - fi -fi # test -z "$show_help" - -if test -n "$exec_cmd"; then - eval exec $exec_cmd - exit $EXIT_FAILURE -fi - -# We need to display help for each of the modes. -case $mode in -"") $echo \ -"Usage: $modename [OPTION]... [MODE-ARG]... - -Provide generalized library-building support services. - - --config show all configuration variables - --debug enable verbose shell tracing --n, --dry-run display commands without modifying any files - --features display basic configuration information and exit - --finish same as \`--mode=finish' - --help display this help message and exit - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] - --quiet same as \`--silent' - --silent don't print informational messages - --tag=TAG use configuration variables from tag TAG - --version print version information - -MODE must be one of the following: - - clean remove files from the build directory - compile compile a source file into a libtool object - execute automatically set library path, then run a program - finish complete the installation of libtool libraries - install install libraries or executables - link create a library or an executable - uninstall remove libraries from an installed directory - -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for -a more detailed description of MODE. - -Report bugs to ." - exit $EXIT_SUCCESS - ;; - -clean) - $echo \ -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... - -Remove files from the build directory. - -RM is the name of the program to use to delete files associated with each FILE -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed -to RM. - -If FILE is a libtool library, object or program, all the files associated -with it are deleted. Otherwise, only FILE itself is deleted using RM." - ;; - -compile) - $echo \ -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE - -Compile a source file into a libtool library object. - -This mode accepts the following additional options: - - -o OUTPUT-FILE set the output file name to OUTPUT-FILE - -prefer-pic try to building PIC objects only - -prefer-non-pic try to building non-PIC objects only - -static always build a \`.o' file suitable for static linking - -COMPILE-COMMAND is a command to be used in creating a \`standard' object file -from the given SOURCEFILE. - -The output file name is determined by removing the directory component from -SOURCEFILE, then substituting the C source code suffix \`.c' with the -library object suffix, \`.lo'." - ;; - -execute) - $echo \ -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... - -Automatically set library path, then run a program. - -This mode accepts the following additional options: - - -dlopen FILE add the directory containing FILE to the library path - -This mode sets the library path environment variable according to \`-dlopen' -flags. - -If any of the ARGS are libtool executable wrappers, then they are translated -into their corresponding uninstalled binary, and any of their required library -directories are added to the library path. - -Then, COMMAND is executed, with ARGS as arguments." - ;; - -finish) - $echo \ -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]... - -Complete the installation of libtool libraries. - -Each LIBDIR is a directory that contains libtool libraries. - -The commands that this mode executes may require superuser privileges. Use -the \`--dry-run' option if you just want to see what would be executed." - ;; - -install) - $echo \ -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... - -Install executables or libraries. - -INSTALL-COMMAND is the installation command. The first component should be -either the \`install' or \`cp' program. - -The rest of the components are interpreted as arguments to that command (only -BSD-compatible install options are recognized)." - ;; - -link) - $echo \ -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND... - -Link object files or libraries together to form another library, or to -create an executable program. - -LINK-COMMAND is a command using the C compiler that you would use to create -a program from several object files. - -The following components of LINK-COMMAND are treated specially: - - -all-static do not do any dynamic linking at all - -avoid-version do not add a version suffix if possible - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) - -export-symbols SYMFILE - try to export only the symbols listed in SYMFILE - -export-symbols-regex REGEX - try to export only the symbols matching REGEX - -LLIBDIR search LIBDIR for required installed libraries - -lNAME OUTPUT-FILE requires the installed library libNAME - -module build a library that can dlopened - -no-fast-install disable the fast-install mode - -no-install link a not-installable executable - -no-undefined declare that a library does not refer to external symbols - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects - -objectlist FILE Use a list of object files found in FILE to specify objects - -precious-files-regex REGEX - don't remove output files matching REGEX - -release RELEASE specify package release information - -rpath LIBDIR the created library will eventually be installed in LIBDIR - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries - -static do not do any dynamic linking of libtool libraries - -version-info CURRENT[:REVISION[:AGE]] - specify library version info [each variable defaults to 0] - -All other options (arguments beginning with \`-') are ignored. - -Every other argument is treated as a filename. Files ending in \`.la' are -treated as uninstalled libtool libraries, other files are standard or library -object files. - -If the OUTPUT-FILE ends in \`.la', then a libtool library is created, -only library objects (\`.lo' files) may be specified, and \`-rpath' is -required, except when creating a convenience library. - -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created -using \`ar' and \`ranlib', or on Windows using \`lib'. - -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file -is created, otherwise an executable program is created." - ;; - -uninstall) - $echo \ -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... - -Remove libraries from an installation directory. - -RM is the name of the program to use to delete files associated with each FILE -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed -to RM. - -If FILE is a libtool library, all the files associated with it are deleted. -Otherwise, only FILE itself is deleted using RM." - ;; - -*) - $echo "$modename: invalid operation mode \`$mode'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - ;; -esac - -$echo -$echo "Try \`$modename --help' for more information about other modes." - -exit $? - -# The TAGs below are defined such that we never get into a situation -# in which we disable both kinds of libraries. Given conflicting -# choices, we go for a static library, that is the most portable, -# since we can't tell whether shared libraries were disabled because -# the user asked for that or because the platform doesn't support -# them. This is particularly important on AIX, because we don't -# support having both static and shared libraries enabled at the same -# time on that platform, so we default to a shared-only configuration. -# If a disable-shared tag is given, we'll fallback to a static-only -# configuration. But we'll never go from static-only to shared-only. - -# ### BEGIN LIBTOOL TAG CONFIG: disable-shared -disable_libs=shared -# ### END LIBTOOL TAG CONFIG: disable-shared - -# ### BEGIN LIBTOOL TAG CONFIG: disable-static -disable_libs=static -# ### END LIBTOOL TAG CONFIG: disable-static - -# Local Variables: -# mode:shell-script -# sh-indentation:2 -# End: diff --git a/src/tools/docbook/libxml2/macos/README b/src/tools/docbook/libxml2/macos/README deleted file mode 100644 index 434aece685..0000000000 --- a/src/tools/docbook/libxml2/macos/README +++ /dev/null @@ -1,8 +0,0 @@ -This is a MacOS port contribution (not to be used for MacOS-X) -for the CodeWarrior environment. -Please contact the author directly in case of problems: - Eric - - thanks, - -Daniel diff --git a/src/tools/docbook/libxml2/macos/libxml2.mcp.xml.sit.hqx b/src/tools/docbook/libxml2/macos/libxml2.mcp.xml.sit.hqx deleted file mode 100644 index 758554de2d..0000000000 --- a/src/tools/docbook/libxml2/macos/libxml2.mcp.xml.sit.hqx +++ /dev/null @@ -1 +0,0 @@ -(This file must be converted with BinHex 4.0) :%faTBRKYE$)ZE@0`,RKYE#jcDA3!8dP8090*9#%!N!3aG3#3"!p[8h4eCQC*G#! SBbNa16Nh,6)`-$%J3@aKC'4TEL"6HA0dC@ec,#"*EQ-Z,#"SG(4`1Lm[Gj!$,Q& XB@4ND@jcHA-ZBfpY,e0dG@CQ5A3[$3SD!!83!!!aG3#3!h)!!3#3!h+,E`fPT9* PFf9bGQ9NTD8!TC!%!3!!2`!3Z$,!1,Jb`$J!N!d2*kd!#kD6!!!`S!#3"!m!E'P LH'eX-LjYBh!ZH'eX!!#Ec&4&@&4$9dP&!3!"J!!"!*!+J!#3"d,"e5%1mE,3PTT e%qciJM!83K&J"3$c)Ci-RLl*Jj&KYk6LMHPcX8k"VfYVbpc+6J"MIMCMT8+`(1i 58pfYfaf$DRNpGF+I2Uqri(%MYPj*RHkh`84'!1b-(0aakcC-j6S3IbdRP[K!N!! Liq5aS+@E&STcZ'NAH!p%'FU(UeiGbT[LIha$)jh2$NMlf2[[ah9a-IlElkZ$PNe V4iS[!jVf@LKE9h3B+[8)Qk#MlZ$k+DpGa,5eMaXSC2%EC*FhFlaJYNTakfZJpF* f#Sm53bfNiMV@RKXN4)`K%+6k`C!!ZKeM9'-J6C0HG!!qG1#fH0@mSZeZG0$IBSV %iP%Nmkpb#T8%YRU9"ilEN!!HjfD"iMpY'AD20KerK6rD28Vja6Z)X,lJ2T`KSU1 H9d5aXqEDfLe2abB[!bQdYH03K5MPm6YP,#"p9@(3iT[,0A!M-LHV&V0RSkAdBCS Y+r-2[FK6$BVPQ(82mEHmlI(fXpVHR,AKe!K)AHN(hKdrr$1LqkTR`X#Cd*MUBje T`JL@D(NDaKedj!DVqVK2H)40b20B86$%`f5)E"Id`#5,1YK#)fl3@'D5!-S5"(X d`K2J(&*8GP6FfUqS@5kY"DrqT5jXN9Ep'U6h(eRrAP@fF+qqQ4SBP&hi1["!U`e CL9`1Gq!X0RLRlE0rBHN,`hmJV2ZMJhCFHFMEj1IV(55eh[M#F"C)i,-*jH-*%$) kmPpSXLS1AA9KH)Y9MRUYaJ6m2f'AURTca'-409*)aQ''XIpFV[2Tb&0A!U9`CDD aM(19P!G`[1L[NmTPEm0C+&['U-a6TkJMjN0Lf+#C'M4F#+H[mf"TN`i5&p%Gq4' 2Gq+P&PG$$8AF3Hcr`+a`+UAi!GI'P+Vj1&3@e+hkaK*CHd6ll1ZXGaN5I1Hip@L frl+%HQd#Y%*I0[b*YbeUClA$90Nq1bq+9BcE'JJhJ,(ELMQj45#D0@la%&(DiT@ 0J-$8Dh!PD6d@1UB'a(Ra)a'3!)6JX*U+h5rS#YP%I4!Y$$kf+FTJV8X@+b5+D,# MIR9Ha3erq+fpl&kp[BQ4M-RSNDeC%280dXPZ9@JAA1mQ`YKCNI4cNrjZm121rm( 0hFQdJ0%hEe&L8P"8Pd$!Tqi4ElJa+akC*Mrfdfk"GeJ`*1hP#Ne1E,Db[hGcq*% XD4QeT"p5SX*EYZNA81#,HR)+*J`A*S-C&eB&%eVjFcG"F"6DPQl0V4D$`9k!Je, -"j*-EXIERUe&@lAFCfl!&APmZYINP'2+'RHYS1mehXCEUAGYbKe%DGJPB9i-H!i HPPe1'#18`-UaSjNFMmi$r5V901iYN!#i1(rY[S5#@M+ZQYV)U)3-MPDcDX"hNpG KaNXjbTZP18(Sd9kLM@"i@"[3JQ+T8Pk1VYYYrB"3KTqQMFG"918VEN80GP-CEq6 82'-3GhThLj%Z,jNb+lHEA-Uc@lLrrLq,9phe'8kpPKfCY*&TjMLU2[I$HF6qZ2R XFZM2bfkjr,il23`S+3#IrMTUjLDFi"JdqD'[QSFh!5ar3Kdh(,*HPELp(bc*PZb 90Jh'iT2!PIJ)D&+RqMH8ZIJSLXakp@q6Xh4b%bBf%QJG`U%Fa6kiCE*Pad(&dLp 1fP33pMiFc*-KMk+RQNBAf3d2-A'5k'HIrM0k*Le0e1A@![39*ICcm23M$!85JlX Vr-+BrIE$L!8"bQ"pXcIlKVBY2EhdNlSN4*mhp@+Jm#i"c1@e5*,j8J)b%QB%fU" 0&ZNqAeQc%L&AZZ0lpp6UjCXXj[%m'qS8+4Dra&+E!JQF6c21$h,0mZYF3D[NiGr #2d!aZID(m!hc2!)AMV(bKPEe9lf%*qK+T2V3RDe`)+YRr[QmNriTXaIIM@-BTI+ pH1pY+%AM0HR*$%C9#Ghr(,Imk[#([a)RFVZ#B%`r53(GZmRSG8`L!pJQ-&(d(U& CD&UL@cYdZ&j0HEV'rFja@c`IPQ*GbZ6MKIMEFEPF)+YY[+KK9k9JDp4-$MKm0rr RfQQ6T&%!V#BS2Ukq2Sq*28`)`fI$TRBph'X%)SfQ0V*8-ia5Y20rTAI-8"f,X[+ 9BVIMdj&c5"jM6GfI'P$0b5"2V-*#QI5M8RlIY$U&bSe'[V%&J63`Y-C-SQPI@NK KKLD`qaEFU'#RI$ZCE,pB+F@$+GD8L#JDjG2H1ALUJ23+'J&DB-fEiAEmI)-H%ME C!21@cP1+rPPfEN+Mi@AkN89a4jC6S38,Y-+!82'L",+(89rIVQLqD)&56ZiI!BM dEKR[NTPASR@R)S3D8lNrjX3$c[h%jlVrVkU5C(ebrk(d@Xj-KQ,XPQl0j&G#4X3 e-Z3Lkl+Y,E1GB,DkQ1IK(ibLB%k-KpTUEm[kBhZ9h1HFmC&$H(AB,`Mkl8H"Dq, DmAI0cI$iUG8&cMHR#Gb`@r,`'NM0SYH'NB6qbpYp[q0$e`I[SJi[5F[iHrKAY8p XTe%##-l)kQL4V!@[r`UI8pb,2MT0PL3jUX2ZJ#Qp9e9+Cjp`S0$cT,5ZB@Zl80D HFQeDT8HRD*!!9+Kk(9[,h9$DNa'(5l5p#9*lP8i)hS'lPaBQV4lXkFP60Zi-fi, 44'S@mHA9q@V-(`Br`,j2R,4GaKPMDhF%#Z1NLfJr@'f`9F+dk,dq1%KTYN,`9dD 2'&#UjmDIIK3VZ4*&ld5YraQS)!0`2BjN6pU8CJ(JCT)m'kTh)(9"Aiq"pHkV*mb E$&Y6FdXGqA9dF46dEEd'emEhcGT%q@AP+H"PfE8aq4B6p3K3Vf`mPB+&hh1kNrr Y)aY"IEC9PA)Z'kBjp3Q6Flqr@Gk2M2*pY@ViVlea*R5E%$S@BqC#q9m)hj08`ki q-!22J4GALA2Gf-r8NJpMV10V9AVG"3Ji(mbAf!4hB*[U"Z!k`i#JHp(Vd+!)[6i &Mch&2ph54+DTXqlRr#8r'Q%3cXh%aNiiEf14l,M'8J'f(L4MA,4a&%d2j@*m1,j V'8%ZdI$$(NJY#ZUUhFp`9MBd2S4Bkc[8X`HdBCEYlTC9&lXD%DqK5QIE%C8,E5U rD$3hjp`ZM#Lc4iRf!3q3!&f@Jl'DF6-3jiM15-l@@@Z0*1c-B)PfNL$BqZ,XYTV PA0`C+db3!#C9!j0`5MplSdBhU1kE1EG-h@Kja&kr#*(BcrV'l5B6TCZ#NK8rpC% "(RD0TCl,5p8D5iT5QFpmf!$)-6XQ3deZC6A,LB6MJ2,5m&e+2YF,C4RaL2-"+59 YS14-rVrF#2j!P!RaqRbRqJ0Y-dh@D5)"qpe")lVT4A5G4bA,VXcHp88p)eGB#&D Zpm1ZAr+5@r+Q80@Ad4%FHFPr-HPFhPMhFA%K*Vc$)S&4bqP%2a8R9(P45+Ff#9f Q%KTj`&S'Rf@UN@S&Ga%&dUaA8LMXSX%%)-br8E3LB5*Fq2BMbe-8eEGcLc'kM4J 4UQDX$DDAGJ0(ZH&G5PV&5+#cXDU4JAT+rQ"8'[e$GhklGBN'VdeB62A*rr9X9fL QYGqf-!%II"MXa)kFD%afKXieB#)ZbqB9MXA(lm1'YBEc5JNKd6"JNa'fX[J+Gi+ l6Ue*EXGq4#*-3i+dij0i"qV%@b+`U(rF(Gm2!`QMl08FeY[LMdhU,@-kaLa!NUL Gd(-,Z96mRc4'miNaf!"FjKl)-E5U#*UXBR)HVI(Y"#qR!M[N,Jk%@Y-UYqmFihK 9Gh"0'%HFr%*A0iq3!+JGHhlia$%BqDjVaiSAk@0#R9F3UbkXM2Bi-j,2IY[GCmd Db#BE9QUTNGG&-9VaR`kc[aDi"MfZ3QRIQiK&!1QQU(bMa!&iLY228pZrqI[1Zm5 !TGRZ#4QPD*PbBC,C&ZILe%68Dj8,2ebjd#H'ZUbeY!miLR)[U-K-TZRQ)&h'IdJ HC*NP#3qV+jiL`[4"e+Eka%EM4ZGik@UfL5a+DqI[eXJji`"SK!mdNkYFCbaL-$e i@$[MB)#(f5)f#a%%BS#TTLQkhX95Lb2'YJpDHCce#QB*[hhN5N,a1#dYQ%YE@m( SV'hKeM`U8Hcq-'+Gm,eaIC`8`T`)Qmh3R"EhFlX2m`2Sf9!Y299Jr%[cj'a,&@l aq(DNk&&a+ZRh#JR(@(EdmACB5Q"XZmXX@ECVDGj%JD$Cca5r-!&!0D`2R)jqL1[ qF95MLX@N"ShEM2Vd'iN6fU@P',LfcARZ`2!2R*Z"er[MBLchA)0B%`SJjV)&-"D pS4(X[VDdU5[Hh!rfr9a5Gp*2L4b5lX+ML(%@`ZlL`$ZK*6liZh$L!r9j$2P21G9 j#qJ`2e+K2(qQ5&P!m5kACR[60`P80eU!)0pLk*X@5VrJN9INKI4cIl3V,QXFIi0 lRp5UQl@qiLR8l3d`C2J+dLTB*KrVf#C)Jh$-bmFXjB(H+4aBbK&!+VJf"MpHPIm ap,JI1m(H)q[K#A2HK2S4Q5J'Y9VF(8H@@5)h&r@$r(FiPpSMAL1SBJm"2m3!R"C [+JFMkK0e$GSPMZe0`l"qdHET4`%plD0Lq$-J0bdB&bZH+P)6Zr-Z2-S2F)%R!f3 N9Z`@2GIU+1I2YA6AUf-)"!U,B[L!DT+%9AG'hCN)&AIr*8p2c"bMA2#rMJb-85N #"B6F+b-rSp'GfD[2"$PLe-9*5!qAR1*VFeiC1ZcSq`CrrMNU-#56h55Mh%1*XUD h,1iP42BABKR"efD6%$BD`5a))&jdieSj02V!'4YcU#ahYFMhRkrNcLlcS+'a%(P l`),$rh"cqCj*k3'AAK-+q%V-"5M51JSC@M'KQA[)d[ja*-Lb8VmLJ-&MdB+AJq! VLQjFBTHNG8CYUVbJlN*$Vp5,Q(4ie&3QYVe8UJ9Qh%T+e,Q(IAU8YKfSp8QA6Y+ Bf69`3pER5R[#[M5Xmq1@SPaqp5$(rfmK!5j2LE1T@hJDV94f,I,[0MbAqP5Hh"K -)G-q`dVrj@-c@#BPKb+r#&FQr#dK'h(@,B6"LaqAhhGA'+j,Xh$raYdDlk%CbC1 +KDaRqPDYJFIaBCbH,-bk56Se0VXF2Q[P%9GXa!4imM@5h93HhdidM#*M5Pp5mTS &I&*1J[BK1R*kP-+f)DAbh9Zaki8+P-Q'$i)XB568d`Mp1FUflbbV`LF#CXPDikb $Ve3rdC2R*YImeT!!H03R+9`Z*XJf@0@C&Fc@Kd%ZdU[kELrqHi2+R#2$LE1F*Ec dfZJlieqTAHVa"Kq)U((5N9@)fh#ERTT!Pc5-$-$4r!T8$+2X9kKL2i['Shd!EiM )4i3H2d8q5[Bj#q%aR[RZ$[`"5%4+SCX+@ZPIL``qiLU@T%B2JMa$J0`%[l,c)jY a'+FrEDI14dMD)M1cf3JDUScE05PD"5PKmhm9bp9#9Z9'9E)8ir+@8Ec+FV"`GRc 1qpmDG,Y$VdN0UCNebp*'r2)CllpIa%1`$'eN+4#UCib4#CVKGMqm8!CTYQR'RBS 4T&JQUIVld64'Z,fQ(aN*B84m'ERb+`$`ec)a'&p&(j%Q3m%'5ppVQEF%H%ZT!F% DTam+apNGm@ij$-`[9+XR8F)kBm[,%k$AV!Ar1lIKiP8*p0P*BU62-SJ,(lATG-M &VaKj*FqH+Y$5MKSH!3!q0+RqC8aZNMf%!AVi,[M,[N8H'Gi4XG@K`AdGIbX`h@X `!f(DTZ(X6XmF$T19-CC8a'Zk8,K`&bpkR,4,1965R(E52!qbXA!cjG`X0$qD9Bd Jql)[&+&S9Fmrf)P$PGa-Ld#h'EAR(2a+ALC&9CPNbkTEJLZRiij`KrBZ9X3FrBp 1NI'k8kH'j*LRr3LCT@F#"A0*[DT-pXpj@aB[#qhL'cYPP8E8,#BXVRYV0ca20N4 49j9e%"8%9[@[Lbp$qLSiQ6,Hq$VCQcN2[5Sqe6,kbiThV335N!#eIf#*d6pmcc1 "FCJ9jlVkTBEbIdDSVdG#NBG"jBTMk*!!KLVS5XCY#!b)&PAVrDC"14THIl*0dMb iX,MM'VG`Am&&f*&TEE8%$JZVVF%A$*`lCjm!ki"EfLHAr(5mH3M#i+hU(Hm!fc0 G3h1MLJ,-2bYFE!!'e58MMiHS#'kXdSDLa`qmLI[qkHUfM4mZLNIEaj&`TU3B#Lh 8p3lD-j`@943Am`E"Y&LF[DpP`&F20UU'4Sa,&@$!dXRbU[E0)h)UKKG#0+*3lFK *-`UGrdCkL$*93-"I96'Db@rDNed5)3h(4H,@d6`5VjZV@84!fc(4NNNe'h"BfpT cU(5'#X',[p0[+`c`C!`Y%V6@e`hTLb0T18GE`BSpR!AE-5QbeTdYrV@6R12C9pJ !I6U5QqRBTf2(JiSb*!&BGQ4Zr4"#`PMV2DQGMq#%JqI`GbJEfem0e8iUr,YR6rP 1fZ9iTAcV%M0[53rN5J+V$!m#HbIGQpDM#(XI"`e0Rm+LeK!'m$Jb[PT!D"2kaTQ PD41V,6FqQV6@1)K"f#iS#mP8R4,1e%I'+HJ-TXZK2%X3iipeYIGc(89aU`I@DIG [Nd*i4dRYrDHCpQ-MA3@(pPh&QUXTJam9crlBpYcle9b51Y%Kh4LY1@*NbVr"@Be A5r1*ZQ9AD#FYPS!40QVa`j4RZlB2Vrb3!-)RV4"M5iRQAMqb&41`XV1l)1%CQIP DGkD-$)dDLi"aKGp)ZeqimRbl2#$[DaG&5$TReaa,T'S-$R(+q)$%iJQ#G1@ZTkc 3aTj9hi,55L0Xk`4pF4FEMX2i"9KXr,LPekQ)MFIM`22D$*+1R-$0+'VU1CQd3$M #F$DhBUb8mA#pdM`0'AZC`[mTl+'6LXA+XdfRf34G1[LDipik`D3`M$iMaXfcA(q 99[@03r[28S&&pC30RB@ZTHbkcC1P$Z4DRfAeb2c&1fQK*GrEH$ePaiBrRL(c*55 Uq&V0@QP(B2afNiQS[&q)e+[22Iq&2KlG(0p(F"#DjF#Jf*b*Qm%#V,DYbN2"kaK ML90PE4@5C[p"KNMKE,mqcfEQD9V2@qb1"dHBC&KdGlEba&*4@U,rC9DfrdRj6K, ldb`ZCSQ+XNNEANeD0N@%r6NhNL1mm'9F+hP6J)RBiHT%-fc4eck,(21H,FL0Qp4 4&r5VV&(NS6U"9#%'[pPCDN3J%YfPp,NdmSHMS$iP9q,CkBRrdcQ9)92bkR@+(8+ 2Yd1F1@HJ&+iED,d!K8qdNRr+%Bd[!@8YN!"@'R(pm#GQE%C,Z2mKj$mNUjKUf4' Teq#1"dB$',jhRET3j*&b'*XN0pNbXSTG[`CEJjiH!3U5(Sp21C0*SEJrF3l2KZP f`h11DA&Qif9)$-$mjB59qcBU4QNXr1"keDI@GLTkpUc'Cfrh-qP$Tb8h46[1'%` `l!ZrjIL!)RNVP93+(h)r8f1!14(+,`08Pl6p,42dl,0HIVa&EVIPVc+ff+9(pK" %'$$!iJ2N9r+P!Gh#6kBX*64pp0&4%'L@YJGMqp(D%&10MLkk'E(1&YMEX9kG(kj fFMfEdMI3+)!3*XD$@$4ep81ljV!9Z)X#j'CL1QbNi[#k-mGSH#`@P-Y8Gf3J"ER mVKd+28pjVK&H6ZPHQGlIC&)[hR+V4RZEPUk`rdhhhq4+e@Q#Zja(HQqq1'kZ*[+ r[VlqA3YpEQMHL6d)+r%i4@A@SI*Y[c20(KHk)$)NlU0!Lj5KEM#V#Qqhb)39T)m %If#X8'aG0VFNREEY9[B"LqM-"D,F*Y--VM2EjY'0#+%`V&@'0aVV)8rF8+*3l5Y KKd!3h@lrBaTCpjEi1&KSD`A+Q$-KX2rLr8(,"`4FjiT2+K5G09ZDZ[1-eA!B)G1 N03#`H568SX$iUK@e'2iRT!+l8,jibK)c58qcFIVSZ'mlX5$Uqmk8U3Sf`R$K9!Z M81R%r)Zb*TPjZP$D4Ga2(d"pp8'&U563((EF*CS5`H!'h-qhG,6-cfURU#JGfDr LfEEGV)&1M"Q3!+1ZMpZ+E6U*`Uj[2#b@`3hP)ZCqh((-e4FKA)Jm'+[SAG(14[) 9b6(eG(GiDNbK$ThUDbmK,RJHPe82a@MY6&jj&[bK!3'X5f'9JD1I2D$23%*f,'S pNdN&UkaaCUCIF`ZHBLBC5bYq!,A-(3Yi5-pe&H"lV@4VEj0`L$h3U'kqp(rL%aq h*hjN*ZFd*lpcA`1CUN80lJN03f9)5HM@HjV[bP2P!JBMl"RS1rPMY"U)XmibF)R I5A(hFa,+TQ5kmF&`&-rS!r%-jJMBLM#ICV6lC9RhkaTh$3jkML1[DqY`&8b&q#1 %+K,lpe3TH[6i+(hdhlN2ZX*3E30V+C)[1R2Jkk%$)$amb1@BdehidBEG!MAi3h! 3B1Gd'IrTqY60bD*4l1U2bafI*I)48c68prXT5fmRJ4CqhaC)0CKfHTJUKGp)E+J QX&)!VmAk3!T(rrDRAFIj8#DKF#FmNRM8L8r6GJqS@6lc9d@KQNK)Kmd'ILRI#m$ 3e5+KTf8AriK0%6B065QEb2apXF9(E5[$c68k%r3R'U0biTSG+1A9U-YJUL*@ffM !Kl,pQ`JEiVK0&M!@AbfdX&R$Ce*"rch"Ea4fm8CmPFkSM5b&L6BNeCDFT28F+cR j(J&X"f*UU6!B!C5caJl`qT4%A*UTN!!BRh2BUl0Q[Bjeldik2A-U&H)N#$+BfAY +HD5HI@BFS@lI',mkFU%)hTXZK#8`5b'LD'-5ULKi*X,30-q`BGq1@UZ"U$+lia' cb3CK'UG-kfD9d@+fKUU*VQkEk@#ZL1k!qq9m(%#dhpF@%I'N$$iN!k"ALFrE1+' $$Q6rJFHPMk&S+H2$lrC@,IAQ6)PAHiU8@dmQlRZ&*mYKD*40&-LZRcQDbAbM-j4 lp$d35aGj2q1F1)43TUpSHca@r0#P,9G4+Q6,[dPL)3q6UARe[FY-*Eiq08N!KKd b'I5a)D6jdZ4BIEiK&6fX433Kam*S@ceYd4#qL!-91*c&%RY4mIj#ELKf-c$+j5l 3P*m#Ii5a0LKSXrLEYVEpcJ0([&`(6RN(&q&frRNB[hB[TZSjZFTY(!5aP+k,#BV !8jaSX`qirr&TSa2a*-rb#ERNIC@bU)@i-I*"TYEeQAVD-Nir+X2Kl$'#Be44+d* N$$QJKBXmN5UXB5m@@%T@pPrKacq$'3LP$('80+YjYdf"j$K4r&0lGELAM#pf4D) 14SUH4hb$Kl)'r%N3l`N5c5+[B*3XZC!!2G+'rQ-rU#&kL(bbbjX[a#a$D6bmKaU K)E)@KB668cG"M5"+lZ@DYB9&Q3pqckb6,8Hr[BN%)YMZ-DS8IfS9cfli3dJ)#5U 3!,Dl3U(9eQaEc'`3ZB1lrSHYK`&+E"GT)qS"jG`-"8'1NYDAeqbEENcmZEI9JG@ FJ-K"%Z2RZrLL&CY'P8KQ"#Z(LS'1HbP'SmbB!hj%Y3-M2lKY#XD1l`NPr2YpL[G p6YF8BqH0`PT1D884$-Dpp`XN,F3%&Dqbr%QRBTE@AINe5D("mkY+UpP(NH,1YXc )ie221a'3!(@10a&DY+18d-e3F+,eKCA*(V3RSp&eR)",f8E2Me"j)HU4H)bT4ST p(HE"hbe&CaEDSJ&d9p(2JX+2)8%T-,jAQQAG)l&FaIp@U&L&-IGZCLe[jDjh[%h "mNC529(I"HE&Z[L*09QhYXFPd+aG6UKf,hIhbF`bNXDpV8Q,8YP,A!rlfDm1qaF pcaSh'kTk5LjJL(dh,AlifN3CCd&9kPTk,X&B@MN0c0kmrUhci#*(cj%q0184%P@ +62ELf@0HC4D'`l!m`,2VeGFPmAkN98fF&p(fN!!H'i*GmKe4C3#+N`Vq3a[DA)L #b#kjf9V6Emk2iIKCBMc$dj@qTm2-hq4pfdSqjPM[E(5eTeZ'1-+MELGTQj!!!A* rQ0V%'jGp3"4FcCVAN!#BHZ,5UAh+LI[+aU'DPLcAhhE3lGI0r[ff$6+YSIE#ir" 98L@%YZXV&R0JaZb8rKPkY9VJ-rKI)jChGP,DpG!DVj!!Ch5CE#[A%40%PdJ`ER+ U0PjXF%LADA`bKm9@*MTA(fm4E3DILCaeB"1CRZrh(MX1N!#FBpIfPh1RQQBqMjp hIh&MAUjRI#1hXE)!X9l-P(2hKqKfiChFkE8[2JPQ%i3Hi18([a)JhfB9)%@NaAb 4C'k@F$MGp2)leMbkdYGa%eH!"R`KFEc3KHBA,ENbkGekhYhUUH&GQ4A*i3YSlYT !9V[2VM'-%H5l8c0Ml63[ffljh9VDrD*HeICH2qkl&lLepPB(LL-QC61dQUbXipK VfZ$qP%hE&bm-NT)`NU'-6Q1PSYEV@ciV!Fl3rL,jXe)5f---"K'lP#jKT5@6U49 dBRpSTU+2LS1iB44TJ,c0C@fqPcUN&lR8D-MHAjblAPMF,T!!f$$J[H%2b[(`a2V !j&ZGNbSpGH")"3D1-d&R[&ScPCK35-`KhZMm`H%hKU(Z"BD[Kq2X-X'I+!9cUHq c[Ed6T0LRdU4pBXYA#SZkaKK*`+22Hd$S!(p8A6MMq6[HNRrH'84hi,06GcS6)M+ EN!$dVrC*[r@Mh8d%,eZdjYJMANpL2ak+b4Tj3f3++-DNYAEe@jl(Z%A5kc*"l!J A,eP"Ihd#lkhED'V[j9'BZa#i2(#BZ`KSGi5p$eMP)qRT'-Y-qd5T*AYJC4FfmJp p!6RJ`MCR24'(QledJDVENlD,alX8QXcP6XR,-f!Np8kI)YhBqa)J@KYjHUqQFT! !Q*m4j0C"Ke0H1#`+'Z)DdC!!P$qmXU1eRU%qXN"K%i$S8@6fJ8%'9%0N)&Z@M$c C9[c!hp0i4e9)qXNTIemr(N"AFB3$@Bfe861h1h""#e8RF06BHGGep3DDD@+C+IC j6dHD"M9plFIVBa8%-U,EU5VUjPA("8[8&X3F*PHM'PUQ3PKX@3N"&ZdjhmlRcr5 `m3fF3348Vc95&NK`X+61RGdfZ"RBM,'*"aQ1&He(91[2hha'VB9F5dc5RTS-YlN @J1XMS68pb6QDIfA-kL*lr,#@[6[R-4SI--iD9&B,K3%m1cYHBkHcFI`DAJ9cN!! 5%pN%NYM2(PM#6c*Zqj1lTreCT-C%-mcmd"HkZLX(@iiqE2D1(lqNKGN-bmZS1UP D6$'RAN'8Gm3P8"km2lQD!3KBhN-b!m(X5iq0RNqh`IDP3f"SiSpZM[b0l`L#PE@ GaKjJr12$YL'()jmIU,L`MD1XY&M!`qDQ&p'pL#-#[0+$dCYTN!#*kb-i#1`PGUr 820-ENP%JRTVP3'`XVZ@c,$T-a34dB-+KS9)bSTMK8dY&Z"-*d,a$VXPA$E(icT6 fI[EN"T*hJ1ZHd281K1#,$j[YRL3FXca'mF8khR,ZkKa6YYeJa#D3!,ra36"cHJJ Ki+'3!'XL"9HQ*jU@UjQI8#'+dd8r'hIRDpd"[eUKC%I+VFIUrM$J!lQbGYdK,V* R'f!RFqMYNBZTN!!R(M%Bm9D,eqNC2(d&hf*DrfY0UC)`h3m)jC+d@+PhZmCf[(L i%"2+@iRD!kB1`FK4(lbjP$aKRGLi6eRA!!KJ6dBX3drdH@V',NR(82GfS*2Ah%b QKc+IJm,)F5m(!Q9S#jdX0mCCUZH0j@dReFCm@rE`lI@)Cp8e,0&U$FS$)i1F8BA 06(%cC(-9k)r-C60ZE(%Z9icHl1q#R@V1!$D1MrRjL6J`Tf&#eb`P!&Z*2+CMKa[ e+3G80!Nh!1E%dTrb[H'3!)Fbmq03UYUQfKeqTPkAc+HNIrkb9PP(14eNIe2b)k3 65Q"qqq*rZ`'0S)3eG,,`AX+04NPYp3p"BGCL)I,Ta2mhC%5",Ub!S6K8,mq`YYP 1dj5Xmb+eA-kbKX[DPZ!M*TeN@A6$A*c2CI!d)9#P%c6&-3T6V!Qq`9@U*FB#fY0 f*)MD1LGaihP0S"r6X54GI*8j962*GMPI4"fpdhkDC4KJSXjAp5p6'c")LP+X821 -@jA'6VU[68+$b+5J0fP6@9!Y++,2*K66q&a#E,qRbD@qS(&mXJLp3'-L1@AAkL4 K@#(mFl8F68JN8Yh'L6--qL0#403RL2@Fl*J6kQXr8U-R*lLGP9'6ZITYJA32UFN Fm2$2e%S,qP+Qcq3e@M9l3BSk4,LNZqRb0D++"E2"f5Q`"QrE&!8rI@`*eH"`IV3 X3c*)BC%khQX[NjMlliHcm$Pq!rflL-,'"2F3m[`jT+f8mZp`-$1SYdMLBSLYY1G m"pU[M2cJ4*Q[)M!#lGfeI2eS$EeE9&38q)*'ehPbmY2pSi0iX%%!(2HGFG-Lb(I MA$T'55UIMHfp)[qZVA`iHF)A"c&E*Z,TrZp,M5B#&I3A(VmYG54!%iI"`LeVQ(Y 6RGdTr6U#!k'VLrkkJpPjmQX66Yl1[4SSf*B+BjpVfpBa9&)KZphfFhTre8D,#`q her!mfD5+rVPr8c$(qMh!R,k4b@lm2MpRZC[Q2RTp2M!M1**2J'-br2Br[`r-h[r 1IG2dk!V&YN)4lIaEZdKHMkBPHam*MVVNSZV8hNiVlQa9E8L$H8D6'[qK6rarr"6 Il0VAJ9&Gr&RhM'P+1E@X5TkGK4[14"i+EKP6m`ib6mKcm'Ym$-e3+VqkY)mFYEI U#YVQ+r6%90+r&B5T"(RGS[VBq@DD*l@)4LmNY53-kkFp'LbhfSZ&5$j63%[5ilG $JNd+HiLi*SkKKB0PAi"Y5495GF48lcVmHkL1UB1[[INqP8kPB`ai#q-(-,Z8YI2 'bml`q@eU#H66D)LHGHh8dmQe+PQc4*`,bqa9Me0ddq0'h%GPcU'5(,52kr80!%r 8p6H%DGGHjGjdflF)qYCk5BYZ91l@&S'6U0VJ9@em6'#H5CH#%*5CG6p[pJJ0a[- 6pq+R'heN6!)[bD(Ch'E*NbaZA@m'h@5rdMr1R5+TlA4C4AEp55cm4Q%P!h*le2, '4[4J1R#Q%q13!![-lrI+Q5aQcd(R"&pcJ%RJ9dBP4VCQ`r*JlCceY0I2DlFB6[0 !VhITUJ#(,69+d3`98pkKC9!Np,Yr(9b$8QVSaY3BIl3,BJbJX9[LjU1c&PKMFDG 4VhUKME$Y"bXYr[dRhAH0*LJ0G9+r&VlRaHKDF@!TX2&+6I"*iMdm@!CUde@C"AD i,,h)pNpDmGrR!Pf@d6d+m,*L4NA1Q6CKReAQY",Q,43reH`SXA$&@2K0A`$#5aU f(dSd6S9kK['l6Jj0qhel8BYa[PqK0V9BBX@rQCXr6lEL,5lhiA9p0Ye%1q11fMb MNecMU3aH@dRe&lA[XMUrCcaL#)%0EaQ##-0TCBT*I6,d3e+#aGkqpai3X[l5#dD SIYlc'6"(J3-P*)X"ehiL8d3Dr#jJh`V(G`[[JYmFDLD%(j6@b%Pc4UU,arF)#Sh &"G``)M[)BD$"D3J5KNTdJd63$1SH'd%3PXBFhICG[VH)m'I4r-#)EmLZ!b4DECe +c2kKfEYU(8bLYIR(`ULj2[%PmMpbi+rG*!HCG[h(S02efTp"h&la(E(MYSE2Dkj [JeBI-Nj"j14JUBe39hla'6rCHU9Y91bm`T-'`qpZbUNEp!$9mA,XT,QcZ)XFJr# 3!*DR9hr14YS,9NrN&k[(@`6!Q9kCreGQK#DQIX3#4ZjFrhY2f93E%K6DckX14dR 9LbG##jijr9,!XY9r"2iZGM#EU@3KqcpZNa14KAZqPkBAB`"`jA&emSrZ2qcU5'J cB-h3TKGhA+)aY(!Zq)akeKPPqpGlIRciHXBZG`5CImR4d)'lFdbZ)%MrY,-%b5[ LZjN@b8!#fQCV&q4192U1GcfdYU!NU0!NMaRFEr`a[-$0Vr@@rQk!VAfJBH+NGeQ M11pI,6HCaG[He9cG"p8L!([cAE4AI4dIh%D)T6YQm&A(r1F9*+Far&TIaJ(pN!$ [rj!!h+Hhr*ZYbr5KG-k-'edr-kRC0b*N*aK$%[0$rGE$KTm[b8[aP'VJ3pH(Xiq rj8hTmi8`YFHH'%0EeP!Cr!8C`%hIXMSPMlATrD[X(#%Q@k[(b!-FE[FH13$pJ-C RRXk+$D`MAT&'iU1"Vq6"G8cQYi6V)6I0CNr2l@mVrQ5kH6Uaj$VJ*I22q2iTqFl SEGGD+b8M$H3RU5Br2ph-DC!!#[Q$bVkEH+Z[K#HK$A#03AEbI+Hf-U@jc(D8$2X NbX#ER+%4&1KCQEPb+K(Ud#@6+hG@qd4"96#3!1LM36ZM'5AK$5m0A+5F)bQQC[G &[#eQYhM0992'P02j6Ii)j62#(TT3NQU'Y4FN!*R!0L&!m#J)DekGqh#b8KR8qdf GRP2GAP-KiU!L"B%*Sk5d5)6EaH#)[PIDY%S1@r*6qYD5UVY)!6#+`rCT90@@9Pe f2`GT'%#NQ#rGViDr-TX*c4h*ZF&UDGhd8#EVl2LPpXTG,1UBF+D[#,LFFA'M6hk aJlBC8ddU!5Jbm*cPYFM`F6U4T3P"cP5M4EI0#+a8Q&2*TZfZ$l3IHC-,JBb`J%Z M`R!22V-D@MMYTEq0m*B$""L&-$@R%596"[Y'"qFra9-Ll2Z-cHJL[EXIP'YaGET P'3DN&iTMTYek#5*m+A@ETbN-G05Sc1+XHL(!DZY!%dkdDD6R-hV,'3Ikh+&mSN& -$+H4C`,MB)CXi!6q#APCi06hY-'MNZSFYk)HqJTBrM*2fl@e2TE3,dRPR3l'SjS G+-r!A3fY2ah6+jU&d+ri0$T43"64%'$1#d6LUFZ92*J)LB*L!Qk[(fX1er@U!4% Llp(48ifPZ"mbC[CZfd+SP`!`D9p(TPP,TXVfC4Xm8Dj@CqdY&8jm(+Y4&LfUEL& P)G!9k1%F5EXQAZZkZcKeG"+M(VS9++C3`L(1*0B$Q9P`1[I00-iHaEaJ!$*#K*! !9I$I8E4Y&N93S$IC+3YfR"!"rR+SU0YPEL+0FM`*IpkDSHLXH4$#SVXmC6[%'bf 3!#I5Af,bTHD$ik9fPDU"*TL8I#!9$8r9bK'KX@R21k6B#Q+#8d+(SHA-G$0p%Fb Y+*IGiF,D"rkEcVBL,Tq*PhSSM''Y65ddf,lBF-6FQVaEV6BZBqZVIi,VCa2`N9J ldk3`Tf0jM0@3!2fZqZ80lVFI!k`AD2LAf`AV$pie&$'BpGPE,2&q)&mpa01GL"i I,aVddjPG4NUYPi"QlZN[N!$D0Q0`$q6@5-Zi)d[%6%26i2M8K(,#@hLj#-EA6!J pKr$AaV*JP@S"IMX)VFiPjm@N[Y&"bXdQ,A+YYih0"P`dH5VrG$Ij"aT#N!!b,3q HVfA3*UBE`AMTjm[f,b$bB3c"NC!!-RIDMC%$8k,emVqD@Nb(qjMPS$iF@LSm)r` lE#GT$83$1MriQh8q`dC'm1`E(k86FZ@a@T'JXQXT(f-!VbbiQ(bG+qKIdf4Ik@j AX6mhU1l[#@e,M-r%66H2Ecm+FX2FDX"IpEBpL(,SGMTb$lD0SmTe(X0&qLaA,ji VR!lL`lU1aERrM1d%bPK1'KqK%LV8XZD%U4cMK#3ik%bi&Ccc!m(maEM)c%#[l4h kBhF(8Pf-Y(9V9b6mi,&XRMmpY4-XeQS9cl&U,liFY-L@**E)$rGS&Ej9("ddMEF kpV9"led`(i5pIXPjjCKL(C`8qFpbj"&6V8A6c*F5G@EMACK6'N$alR2-0(`$FPB la`e#rPpr`"MIBA"V,VV$)`M@Mal5S)c5l5HQB+ZK8AVAR'Qi(`k+T('9+)95H0K @9Z4lE'-,T3fV0,CIUm#i%ReI*aGc01!)k1+IkjrhcM"eZ$DD&RrXGH86d'P4I`' Ib4#'LU"mH`+!d&q''ilmFe!cl+"'aak)[&'NBEFeUMI'`l3+%ircfca0iYef#1j *c2,QihC"$T!!jTT#c,fl,c4HcK[-&0aER!$%Zm@k1`2UfL`8+KH(2b3Jbh&-TAf %Xk!d@RqR+c`)%D',mBMNb1$9iI'`%SY0-Z"!Z63*%Q&-hRKKL$-,84KUQ`raX#' RJRpA4,@-*iM2MaAH*`[apdZ`QK$5rdAd+d2H$&10b`RKB!"A61'$!f9(HX[2pSp j)R#*3Z5aT6p+"T!!1`lrFHp2TPchN!!9aHdQeYLBr(DbIP%%hd0(N!!YUZkEQ5Z +6#P"dQ5pbYpS%BTRb4PUB58'@fSCjfBSF#V*5MNiRdihbSGSYdU5*9NPiT6i4XB Ge[1'E#V`AEpDcD((Y"b3!*f6S!F(ilCmBh)$Y@(cNE5hDpJqj[qH8QVXQ!'C"k- &Jf!H0a5"h6@"0UXcCPNSQa@2$1B(1bM'6TMZ51ATGpTfN!!M6[l[QJI"%l((dX) TlV0E-qd[KFI46`9!1YJj`SY`"VBaC#jCDj*iEjhN3dLFN5@'e0k5"Ck'@pdBXaD ,#ElN(2A4[pJ-PJPA"*[V['1DSBqKGG,ahhJCqffGdUT$4q"ddpLQBm9NbeRkA'` eDqB!k2qVPc-b%D$PPCBkjU&2G*-#Z6L#E6qKI`l5ZCr&"6Vd+FBiNNFdLi&h5G+ dQPQ'm$@5Uj[S6ZSJ6G*8GMc6Zr*Dkkb"i)3NrD&4rVpJZXkH*kq8G2IhLacGU,% h!-(A5hc8TV1&M!XRD,5-cEc%6[pB&CFJl0(mEq-!DcQi5D%%B3jqT-&!-kl[edk Pl-E0cVFIA"'&H8'K9hS5eZEr`VTD%&NV&%&iGE%I%&FiX"YSa$KpRmGeB&AcT0i Iad9M6U(d9mR#$Lq@iZa'*iKN`XLdh68@-"*LN!$64'++F,d`dHA$CSPm2*D"R6H BTI1#V$r5949LiNdJ*"HZ0a,M9IA8!2!"fL&(2kiH,!YYUP1)3!bFKq#F2)Gd62r dG)S[eX,fCrm4ipd-QrJH-#"b6-6[jd0I0bL"JHb$fQ!q!%F8R80cVjMJ$RFrUkT LKU2BML-FEDhN`'8D!!!: \ No newline at end of file diff --git a/src/tools/docbook/libxml2/macos/src/XMLTestPrefix.h b/src/tools/docbook/libxml2/macos/src/XMLTestPrefix.h deleted file mode 100644 index 3e84255cb6..0000000000 --- a/src/tools/docbook/libxml2/macos/src/XMLTestPrefix.h +++ /dev/null @@ -1 +0,0 @@ -int test_main(int argc, char **argv); #define main(X,Y) test_main(X,Y) \ No newline at end of file diff --git a/src/tools/docbook/libxml2/macos/src/XMLTestPrefix2.h b/src/tools/docbook/libxml2/macos/src/XMLTestPrefix2.h deleted file mode 100644 index 55df51eabb..0000000000 --- a/src/tools/docbook/libxml2/macos/src/XMLTestPrefix2.h +++ /dev/null @@ -1 +0,0 @@ -int test_main(int argc, char* argv[]); #define main() test_main(int argc, char* argv[]) \ No newline at end of file diff --git a/src/tools/docbook/libxml2/macos/src/config-mac.h b/src/tools/docbook/libxml2/macos/src/config-mac.h deleted file mode 100644 index e9a8f9d928..0000000000 --- a/src/tools/docbook/libxml2/macos/src/config-mac.h +++ /dev/null @@ -1,192 +0,0 @@ -/* config.h generated manually for macos. */ - -/* Define if you have the strftime function. */ -#define HAVE_STRFTIME - -/* Define if you have the ANSI C header files. */ -#define STDC_HEADERS - -#define PACKAGE -#define VERSION - -#undef HAVE_LIBZ -#undef HAVE_LIBM -#undef HAVE_ISINF -#undef HAVE_ISNAN -#undef HAVE_LIBHISTORY -#undef HAVE_LIBREADLINE - -#define XML_SOCKLEN_T socklen_t -#define HAVE_LIBPTHREAD -#define HAVE_PTHREAD_H -#define LIBXML_THREAD_ENABLED - -/* Define if you have the _stat function. */ -#define HAVE__STAT - -/* Define if you have the class function. */ -#undef HAVE_CLASS - -/* Define if you have the finite function. */ -#undef HAVE_FINITE - -/* Define if you have the fp_class function. */ -#undef HAVE_FP_CLASS - -/* Define if you have the fpclass function. */ -#undef HAVE_FPCLASS - -/* Define if you have the fprintf function. */ -#define HAVE_FPRINTF - -/* Define if you have the isnand function. */ -#undef HAVE_ISNAND - -/* Define if you have the localtime function. */ -#define HAVE_LOCALTIME - -/* Define if you have the printf function. */ -#define HAVE_PRINTF - -/* Define if you have the signal function. */ -#define HAVE_SIGNAL - -/* Define if you have the snprintf function. */ -#define HAVE_SNPRINTF - -/* Define if you have the sprintf function. */ -#define HAVE_SPRINTF - -/* Define if you have the sscanf function. */ -#define HAVE_SSCANF - -/* Define if you have the stat function. */ -#define HAVE_STAT - -/* Define if you have the strdup function. */ -#define HAVE_STRDUP - -/* Define if you have the strerror function. */ -#define HAVE_STRERROR - -/* Define if you have the strftime function. */ -#define HAVE_STRFTIME - -/* Define if you have the strndup function. */ -#define HAVE_STRNDUP - -/* Define if you have the vfprintf function. */ -#define HAVE_VFPRINTF - -/* Define if you have the vsnprintf function. */ -#define HAVE_VSNPRINTF - -/* Define if you have the vsprintf function. */ -#define HAVE_VSPRINTF - -/* Define if you have the header file. */ -#define HAVE_ANSIDECL_H - -/* Define if you have the header file. */ -#define HAVE_ARPA_INET_H - -/* Define if you have the header file. */ -#define HAVE_CTYPE_H - -/* Define if you have the header file. */ -#define HAVE_DIRENT_H - -/* Define if you have the header file. */ -#define HAVE_DLFCN_H - -/* Define if you have the header file. */ -#define HAVE_ERRNO_H - -/* Define if you have the header file. */ -#define HAVE_FCNTL_H - -/* Define if you have the header file. */ -#define HAVE_FLOAT_H - -/* Define if you have the header file. */ -#define HAVE_FP_CLASS_H - -/* Define if you have the header file. */ -#define HAVE_IEEEFP_H - -/* Define if you have the header file. */ -#undef HAVE_MALLOC_H - -/* Define if you have the header file. */ -#define HAVE_MATH_H - -/* Define if you have the header file. */ -#define HAVE_NAN_H - -/* Define if you have the header file. */ -#define HAVE_NDIR_H - -/* Define if you have the header file. */ -#define HAVE_NETDB_H - -/* Define if you have the header file. */ -#define HAVE_NETINET_IN_H - -/* Define if you have the header file. */ -#define HAVE_SIGNAL_H - -/* Define if you have the header file. */ -#define HAVE_STDARG_H - -/* Define if you have the header file. */ -#define HAVE_STDLIB_H - -/* Define if you have the header file. */ -#define HAVE_STRING_H - -/* Define if you have the header file. */ -#define HAVE_SYS_DIR_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_MMAN_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_NDIR_H - -/* Define if you have the header file. */ -#define HAVE_SYS_SELECT_H - -/* Define if you have the header file. */ -#define HAVE_SYS_SOCKET_H - -/* Define if you have the header file. */ -#define HAVE_SYS_STAT_H - -/* Define if you have the header file. */ -#define HAVE_SYS_TIME_H - -/* Define if you have the header file. */ -#define HAVE_SYS_TYPES_H - -/* Define if you have the header file. */ -#define HAVE_TIME_H - -/* Define if you have the header file. */ -#define HAVE_UNISTD_H - -/* Define if you have the header file. */ -#undef HAVE_ZLIB_H - -/* Name of package */ -#define PACKAGE - -/* Version number of package */ -#define VERSION - -/* Define if compiler has function prototypes */ -#define PROTOTYPES - -#include -#include -#include -#include diff --git a/src/tools/docbook/libxml2/macos/src/libxml2_GUSIConfig.cp b/src/tools/docbook/libxml2/macos/src/libxml2_GUSIConfig.cp deleted file mode 100644 index 77d0c93a64..0000000000 --- a/src/tools/docbook/libxml2/macos/src/libxml2_GUSIConfig.cp +++ /dev/null @@ -1 +0,0 @@ -/**************** BEGIN GUSI CONFIGURATION **************************** * * GUSI Configuration section generated by GUSI Configurator * last modified: Wed Oct 31 17:07:45 2001 * * This section will be overwritten by the next run of Configurator. */ #define GUSI_SOURCE #include #include /* Declarations of Socket Factories */ __BEGIN_DECLS void GUSIwithInetSockets(); void GUSIwithLocalSockets(); void GUSIwithMTInetSockets(); void GUSIwithMTTcpSockets(); void GUSIwithMTUdpSockets(); void GUSIwithOTInetSockets(); void GUSIwithOTTcpSockets(); void GUSIwithOTUdpSockets(); void GUSIwithPPCSockets(); void GUSISetupFactories(); __END_DECLS /* Configure Socket Factories */ void GUSISetupFactories() { #ifdef GUSISetupFactories_BeginHook GUSISetupFactories_BeginHook #endif GUSIwithInetSockets(); #ifdef GUSISetupFactories_EndHook GUSISetupFactories_EndHook #endif } /* Declarations of File Devices */ __BEGIN_DECLS void GUSIwithNullSockets(); void GUSISetupDevices(); __END_DECLS /* Configure File Devices */ void GUSISetupDevices() { #ifdef GUSISetupDevices_BeginHook GUSISetupDevices_BeginHook #endif GUSIwithNullSockets(); #ifdef GUSISetupDevices_EndHook GUSISetupDevices_EndHook #endif } #ifndef __cplusplus #error GUSISetupConfig() needs to be written in C++ #endif GUSIConfiguration::FileSuffix sSuffices[] = { "", '????', '????' }; extern "C" void GUSISetupConfig() { GUSIConfiguration * config = GUSIConfiguration::CreateInstance(GUSIConfiguration::kNoResource); config->ConfigureDefaultTypeCreator('TEXT', 'CWIE'); config->ConfigureSuffices( sizeof(sSuffices)/sizeof(GUSIConfiguration::FileSuffix)-1, sSuffices); } /**************** END GUSI CONFIGURATION *************************/ \ No newline at end of file diff --git a/src/tools/docbook/libxml2/macos/src/macos_main.c b/src/tools/docbook/libxml2/macos/src/macos_main.c deleted file mode 100644 index 262500038f..0000000000 --- a/src/tools/docbook/libxml2/macos/src/macos_main.c +++ /dev/null @@ -1 +0,0 @@ -#include #include #undef main DECLARE_MAIN(test) REGISTER_MAIN_START REGISTER_MAIN(test) REGISTER_MAIN_END int main() { (void) exec_commands(); return 0; } \ No newline at end of file diff --git a/src/tools/docbook/libxml2/missing b/src/tools/docbook/libxml2/missing deleted file mode 100755 index 6a37006e8f..0000000000 --- a/src/tools/docbook/libxml2/missing +++ /dev/null @@ -1,336 +0,0 @@ -#! /bin/sh -# Common stub for a few missing GNU programs while installing. -# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc. -# Originally by Fran,cois Pinard , 1996. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -if test $# -eq 0; then - echo 1>&2 "Try \`$0 --help' for more information" - exit 1 -fi - -run=: - -# In the cases where this matters, `missing' is being run in the -# srcdir already. -if test -f configure.ac; then - configure_ac=configure.ac -else - configure_ac=configure.in -fi - -case "$1" in ---run) - # Try to run requested program, and just exit if it succeeds. - run= - shift - "$@" && exit 0 - ;; -esac - -# If it does not exist, or fails to run (possibly an outdated version), -# try to emulate it. -case "$1" in - - -h|--h|--he|--hel|--help) - echo "\ -$0 [OPTION]... PROGRAM [ARGUMENT]... - -Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an -error status if there is no known handling for PROGRAM. - -Options: - -h, --help display this help and exit - -v, --version output version information and exit - --run try to run the given command, and emulate it if it fails - -Supported PROGRAM values: - aclocal touch file \`aclocal.m4' - autoconf touch file \`configure' - autoheader touch file \`config.h.in' - automake touch all \`Makefile.in' files - bison create \`y.tab.[ch]', if possible, from existing .[ch] - flex create \`lex.yy.c', if possible, from existing .c - help2man touch the output file - lex create \`lex.yy.c', if possible, from existing .c - makeinfo touch the output file - tar try tar, gnutar, gtar, then tar without non-portable flags - yacc create \`y.tab.[ch]', if possible, from existing .[ch]" - ;; - - -v|--v|--ve|--ver|--vers|--versi|--versio|--version) - echo "missing 0.4 - GNU automake" - ;; - - -*) - echo 1>&2 "$0: Unknown \`$1' option" - echo 1>&2 "Try \`$0 --help' for more information" - exit 1 - ;; - - aclocal*) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is missing on your system. You should only need it if - you modified \`acinclude.m4' or \`${configure_ac}'. You might want - to install the \`Automake' and \`Perl' packages. Grab them from - any GNU archive site." - touch aclocal.m4 - ;; - - autoconf) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is missing on your system. You should only need it if - you modified \`${configure_ac}'. You might want to install the - \`Autoconf' and \`GNU m4' packages. Grab them from any GNU - archive site." - touch configure - ;; - - autoheader) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is missing on your system. You should only need it if - you modified \`acconfig.h' or \`${configure_ac}'. You might want - to install the \`Autoconf' and \`GNU m4' packages. Grab them - from any GNU archive site." - files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` - test -z "$files" && files="config.h" - touch_files= - for f in $files; do - case "$f" in - *:*) touch_files="$touch_files "`echo "$f" | - sed -e 's/^[^:]*://' -e 's/:.*//'`;; - *) touch_files="$touch_files $f.in";; - esac - done - touch $touch_files - ;; - - automake*) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is missing on your system. You should only need it if - you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. - You might want to install the \`Automake' and \`Perl' packages. - Grab them from any GNU archive site." - find . -type f -name Makefile.am -print | - sed 's/\.am$/.in/' | - while read f; do touch "$f"; done - ;; - - autom4te) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is needed, and you do not seem to have it handy on your - system. You might have modified some files without having the - proper tools for further handling them. - You can get \`$1Help2man' as part of \`Autoconf' from any GNU - archive site." - - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` - if test -f "$file"; then - touch $file - else - test -z "$file" || exec >$file - echo "#! /bin/sh" - echo "# Created by GNU Automake missing as a replacement of" - echo "# $ $@" - echo "exit 0" - chmod +x $file - exit 1 - fi - ;; - - bison|yacc) - echo 1>&2 "\ -WARNING: \`$1' is missing on your system. You should only need it if - you modified a \`.y' file. You may need the \`Bison' package - in order for those modifications to take effect. You can get - \`Bison' from any GNU archive site." - rm -f y.tab.c y.tab.h - if [ $# -ne 1 ]; then - eval LASTARG="\${$#}" - case "$LASTARG" in - *.y) - SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" y.tab.c - fi - SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" y.tab.h - fi - ;; - esac - fi - if [ ! -f y.tab.h ]; then - echo >y.tab.h - fi - if [ ! -f y.tab.c ]; then - echo 'main() { return 0; }' >y.tab.c - fi - ;; - - lex|flex) - echo 1>&2 "\ -WARNING: \`$1' is missing on your system. You should only need it if - you modified a \`.l' file. You may need the \`Flex' package - in order for those modifications to take effect. You can get - \`Flex' from any GNU archive site." - rm -f lex.yy.c - if [ $# -ne 1 ]; then - eval LASTARG="\${$#}" - case "$LASTARG" in - *.l) - SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" lex.yy.c - fi - ;; - esac - fi - if [ ! -f lex.yy.c ]; then - echo 'main() { return 0; }' >lex.yy.c - fi - ;; - - help2man) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is missing on your system. You should only need it if - you modified a dependency of a manual page. You may need the - \`Help2man' package in order for those modifications to take - effect. You can get \`Help2man' from any GNU archive site." - - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` - if test -z "$file"; then - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` - fi - if [ -f "$file" ]; then - touch $file - else - test -z "$file" || exec >$file - echo ".ab help2man is required to generate this page" - exit 1 - fi - ;; - - makeinfo) - if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then - # We have makeinfo, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is missing on your system. You should only need it if - you modified a \`.texi' or \`.texinfo' file, or any other file - indirectly affecting the aspect of the manual. The spurious - call might also be the consequence of using a buggy \`make' (AIX, - DU, IRIX). You might want to install the \`Texinfo' package or - the \`GNU make' package. Grab either from any GNU archive site." - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` - if test -z "$file"; then - file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` - fi - touch $file - ;; - - tar) - shift - if test -n "$run"; then - echo 1>&2 "ERROR: \`tar' requires --run" - exit 1 - fi - - # We have already tried tar in the generic part. - # Look for gnutar/gtar before invocation to avoid ugly error - # messages. - if (gnutar --version > /dev/null 2>&1); then - gnutar "$@" && exit 0 - fi - if (gtar --version > /dev/null 2>&1); then - gtar "$@" && exit 0 - fi - firstarg="$1" - if shift; then - case "$firstarg" in - *o*) - firstarg=`echo "$firstarg" | sed s/o//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - case "$firstarg" in - *h*) - firstarg=`echo "$firstarg" | sed s/h//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - fi - - echo 1>&2 "\ -WARNING: I can't seem to be able to run \`tar' with the given arguments. - You may want to install GNU tar or Free paxutils, or check the - command line arguments." - exit 1 - ;; - - *) - echo 1>&2 "\ -WARNING: \`$1' is needed, and you do not seem to have it handy on your - system. You might have modified some files without having the - proper tools for further handling them. Check the \`README' file, - it often tells you about the needed prerequirements for installing - this package. You may also peek at any GNU archive site, in case - some other package would contain this missing \`$1' program." - exit 1 - ;; -esac - -exit 0 diff --git a/src/tools/docbook/libxml2/mkinstalldirs b/src/tools/docbook/libxml2/mkinstalldirs deleted file mode 100755 index 8ab885ec92..0000000000 --- a/src/tools/docbook/libxml2/mkinstalldirs +++ /dev/null @@ -1,99 +0,0 @@ -#! /bin/sh -# mkinstalldirs --- make directory hierarchy -# Author: Noah Friedman -# Created: 1993-05-16 -# Public domain - -errstatus=0 -dirmode="" - -usage="\ -Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." - -# process command line arguments -while test $# -gt 0 ; do - case "${1}" in - -h | --help | --h* ) # -h for help - echo "${usage}" 1>&2; exit 0 ;; - -m ) # -m PERM arg - shift - test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; } - dirmode="${1}" - shift ;; - -- ) shift; break ;; # stop option processing - -* ) echo "${usage}" 1>&2; exit 1 ;; # unknown option - * ) break ;; # first non-opt arg - esac -done - -for file -do - if test -d "$file"; then - shift - else - break - fi -done - -case $# in -0) exit 0 ;; -esac - -case $dirmode in -'') - if mkdir -p -- . 2>/dev/null; then - echo "mkdir -p -- $*" - exec mkdir -p -- "$@" - fi ;; -*) - if mkdir -m "$dirmode" -p -- . 2>/dev/null; then - echo "mkdir -m $dirmode -p -- $*" - exec mkdir -m "$dirmode" -p -- "$@" - fi ;; -esac - -for file -do - set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` - shift - - pathcomp= - for d - do - pathcomp="$pathcomp$d" - case "$pathcomp" in - -* ) pathcomp=./$pathcomp ;; - esac - - if test ! -d "$pathcomp"; then - echo "mkdir $pathcomp" - - mkdir "$pathcomp" || lasterr=$? - - if test ! -d "$pathcomp"; then - errstatus=$lasterr - else - if test ! -z "$dirmode"; then - echo "chmod $dirmode $pathcomp" - - lasterr="" - chmod "$dirmode" "$pathcomp" || lasterr=$? - - if test ! -z "$lasterr"; then - errstatus=$lasterr - fi - fi - fi - fi - - pathcomp="$pathcomp/" - done -done - -exit $errstatus - -# Local Variables: -# mode: shell-script -# sh-indentation: 3 -# End: -# mkinstalldirs ends here diff --git a/src/tools/docbook/libxml2/python/Makefile.am b/src/tools/docbook/libxml2/python/Makefile.am deleted file mode 100644 index c37c0c2993..0000000000 --- a/src/tools/docbook/libxml2/python/Makefile.am +++ /dev/null @@ -1,75 +0,0 @@ -# Makefile for libxml2 python library -AUTOMAKE_OPTIONS = 1.4 foreign - -SUBDIRS= . tests - -INCLUDES = \ - -I$(PYTHON_INCLUDES) \ - -I$(top_srcdir)/include \ - -I$(top_builddir)/include \ - -I$(top_builddir)/$(subdir) - -DOCS_DIR = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION) -# libxml2class.txt is generated -DOCS = ${srcdir}/TODO - -EXTRA_DIST = \ - libxml.c \ - types.c \ - setup.py \ - setup.py.in \ - generator.py \ - libxml_wrap.h \ - libxml.py \ - drv_libxml2.py \ - libxml2-python-api.xml \ - $(DOCS) - -libxml2mod_la_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ @WIN32_EXTRA_LDFLAGS@ -module -avoid-version -L$(top_builddir)/.libs - -if WITH_PYTHON -mylibs = \ - $(top_builddir)/libxml2.la - -all-local: libxml2.py - -python_LTLIBRARIES = libxml2mod.la - -libxml2mod_la_SOURCES = libxml.c types.c libxml2-py.c -libxml2mod_la_LIBADD = $(mylibs) @CYGWIN_EXTRA_PYTHON_LIBADD@ - -libxml2.py: $(srcdir)/libxml.py libxml2class.py - cat $(srcdir)/libxml.py libxml2class.py > libxml2.py - -install-data-local: - $(mkinstalldirs) $(DESTDIR)$(pythondir) - @INSTALL@ -m 0644 libxml2.py $(DESTDIR)$(pythondir) - @INSTALL@ -m 0644 $(srcdir)/drv_libxml2.py $(DESTDIR)$(pythondir) - $(mkinstalldirs) $(DESTDIR)$(DOCS_DIR) - @(for doc in $(DOCS) ; \ - do @INSTALL@ -m 0644 $$doc $(DESTDIR)$(DOCS_DIR) ; done) - -GENERATE = generator.py -API_DESC = $(top_srcdir)/doc/libxml2-api.xml $(srcdir)/libxml2-python-api.xml -GENERATED= libxml2class.py \ - libxml2-export.c \ - libxml2class.txt \ - libxml2-py.c \ - libxml2-py.h - -CLEANFILES= $(GENERATED) gen_prog libxml2.py - -$(GENERATED): gen_prog - -gen_prog: $(srcdir)/$(GENERATE) $(API_DESC) - $(PYTHON) $(srcdir)/$(GENERATE) $(srcdir) - touch gen_prog - -$(libxml2mod_la_OBJECTS): $(GENERATED) - -else -all: -endif -tests test: all - cd tests && $(MAKE) MAKEFLAGS+=--silent tests - diff --git a/src/tools/docbook/libxml2/python/Makefile.in b/src/tools/docbook/libxml2/python/Makefile.in deleted file mode 100644 index 9451aafe1a..0000000000 --- a/src/tools/docbook/libxml2/python/Makefile.in +++ /dev/null @@ -1,752 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = python -DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(srcdir)/setup.py.in TODO -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = setup.py -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -am__installdirs = "$(DESTDIR)$(pythondir)" -pythonLTLIBRARIES_INSTALL = $(INSTALL) -LTLIBRARIES = $(python_LTLIBRARIES) -@WITH_PYTHON_TRUE@am__DEPENDENCIES_1 = $(top_builddir)/libxml2.la -@WITH_PYTHON_TRUE@libxml2mod_la_DEPENDENCIES = $(am__DEPENDENCIES_1) -am__libxml2mod_la_SOURCES_DIST = libxml.c types.c libxml2-py.c -@WITH_PYTHON_TRUE@am_libxml2mod_la_OBJECTS = libxml.lo types.lo \ -@WITH_PYTHON_TRUE@ libxml2-py.lo -libxml2mod_la_OBJECTS = $(am_libxml2mod_la_OBJECTS) -@WITH_PYTHON_TRUE@am_libxml2mod_la_rpath = -rpath $(pythondir) -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(libxml2mod_la_SOURCES) -DIST_SOURCES = $(am__libxml2mod_la_SOURCES_DIST) -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-exec-recursive install-info-recursive \ - install-recursive installcheck-recursive installdirs-recursive \ - pdf-recursive ps-recursive uninstall-info-recursive \ - uninstall-recursive -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -BASE_THREAD_LIBS = @BASE_THREAD_LIBS@ -C14N_OBJ = @C14N_OBJ@ -CATALOG_OBJ = @CATALOG_OBJ@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ -CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@ -DEBUG_OBJ = @DEBUG_OBJ@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOCB_OBJ = @DOCB_OBJ@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -FTP_OBJ = @FTP_OBJ@ -HAVE_ISINF = @HAVE_ISINF@ -HAVE_ISNAN = @HAVE_ISNAN@ -HTML_DIR = @HTML_DIR@ -HTML_OBJ = @HTML_OBJ@ -HTTP_OBJ = @HTTP_OBJ@ -ICONV_LIBS = @ICONV_LIBS@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBXML_MAJOR_VERSION = @LIBXML_MAJOR_VERSION@ -LIBXML_MICRO_VERSION = @LIBXML_MICRO_VERSION@ -LIBXML_MINOR_VERSION = @LIBXML_MINOR_VERSION@ -LIBXML_VERSION = @LIBXML_VERSION@ -LIBXML_VERSION_EXTRA = @LIBXML_VERSION_EXTRA@ -LIBXML_VERSION_INFO = @LIBXML_VERSION_INFO@ -LIBXML_VERSION_NUMBER = @LIBXML_VERSION_NUMBER@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MODULE_EXTENSION = @MODULE_EXTENSION@ -MODULE_PLATFORM_LIBS = @MODULE_PLATFORM_LIBS@ -MV = @MV@ -M_LIBS = @M_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -PYTHON = @PYTHON@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@ -PYTHON_SUBDIR = @PYTHON_SUBDIR@ -PYTHON_TESTS = @PYTHON_TESTS@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -RDL_LIBS = @RDL_LIBS@ -READER_TEST = @READER_TEST@ -RELDATE = @RELDATE@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STATIC_BINARIES = @STATIC_BINARIES@ -STRIP = @STRIP@ -TAR = @TAR@ -TEST_C14N = @TEST_C14N@ -TEST_CATALOG = @TEST_CATALOG@ -TEST_DEBUG = @TEST_DEBUG@ -TEST_HTML = @TEST_HTML@ -TEST_MODULES = @TEST_MODULES@ -TEST_PATTERN = @TEST_PATTERN@ -TEST_PHTML = @TEST_PHTML@ -TEST_PUSH = @TEST_PUSH@ -TEST_REGEXPS = @TEST_REGEXPS@ -TEST_SAX = @TEST_SAX@ -TEST_SCHEMAS = @TEST_SCHEMAS@ -TEST_SCHEMATRON = @TEST_SCHEMATRON@ -TEST_THREADS = @TEST_THREADS@ -TEST_VALID = @TEST_VALID@ -TEST_VTIME = @TEST_VTIME@ -TEST_XINCLUDE = @TEST_XINCLUDE@ -TEST_XPATH = @TEST_XPATH@ -TEST_XPTR = @TEST_XPTR@ -THREADS_W32 = @THREADS_W32@ -THREAD_CFLAGS = @THREAD_CFLAGS@ -THREAD_LIBS = @THREAD_LIBS@ -U = @U@ -VERSION = @VERSION@ -WIN32_EXTRA_LDFLAGS = @WIN32_EXTRA_LDFLAGS@ -WIN32_EXTRA_LIBADD = @WIN32_EXTRA_LIBADD@ -WITH_C14N = @WITH_C14N@ -WITH_CATALOG = @WITH_CATALOG@ -WITH_DEBUG = @WITH_DEBUG@ -WITH_DOCB = @WITH_DOCB@ -WITH_FTP = @WITH_FTP@ -WITH_HTML = @WITH_HTML@ -WITH_HTTP = @WITH_HTTP@ -WITH_ICONV = @WITH_ICONV@ -WITH_ISO8859X = @WITH_ISO8859X@ -WITH_LEGACY = @WITH_LEGACY@ -WITH_MEM_DEBUG = @WITH_MEM_DEBUG@ -WITH_MODULES = @WITH_MODULES@ -WITH_OUTPUT = @WITH_OUTPUT@ -WITH_PATTERN = @WITH_PATTERN@ -WITH_PUSH = @WITH_PUSH@ -WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@ -WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@ -WITH_READER = @WITH_READER@ -WITH_REGEXPS = @WITH_REGEXPS@ -WITH_RUN_DEBUG = @WITH_RUN_DEBUG@ -WITH_SAX1 = @WITH_SAX1@ -WITH_SCHEMAS = @WITH_SCHEMAS@ -WITH_SCHEMATRON = @WITH_SCHEMATRON@ -WITH_THREADS = @WITH_THREADS@ -WITH_TREE = @WITH_TREE@ -WITH_TRIO = @WITH_TRIO@ -WITH_TRIO_SOURCES_FALSE = @WITH_TRIO_SOURCES_FALSE@ -WITH_TRIO_SOURCES_TRUE = @WITH_TRIO_SOURCES_TRUE@ -WITH_VALID = @WITH_VALID@ -WITH_WRITER = @WITH_WRITER@ -WITH_XINCLUDE = @WITH_XINCLUDE@ -WITH_XPATH = @WITH_XPATH@ -WITH_XPTR = @WITH_XPTR@ -XINCLUDE_OBJ = @XINCLUDE_OBJ@ -XMLLINT = @XMLLINT@ -XML_CFLAGS = @XML_CFLAGS@ -XML_INCLUDEDIR = @XML_INCLUDEDIR@ -XML_LIBDIR = @XML_LIBDIR@ -XML_LIBS = @XML_LIBS@ -XML_LIBTOOLLIBS = @XML_LIBTOOLLIBS@ -XPATH_OBJ = @XPATH_OBJ@ -XPTR_OBJ = @XPTR_OBJ@ -XSLTPROC = @XSLTPROC@ -Z_CFLAGS = @Z_CFLAGS@ -Z_LIBS = @Z_LIBS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_AS = @ac_ct_AS@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ - -# Makefile for libxml2 python library -AUTOMAKE_OPTIONS = 1.4 foreign -SUBDIRS = . tests -INCLUDES = \ - -I$(PYTHON_INCLUDES) \ - -I$(top_srcdir)/include \ - -I$(top_builddir)/include \ - -I$(top_builddir)/$(subdir) - -DOCS_DIR = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION) -# libxml2class.txt is generated -DOCS = ${srcdir}/TODO -EXTRA_DIST = \ - libxml.c \ - types.c \ - setup.py \ - setup.py.in \ - generator.py \ - libxml_wrap.h \ - libxml.py \ - drv_libxml2.py \ - libxml2-python-api.xml \ - $(DOCS) - -libxml2mod_la_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ @WIN32_EXTRA_LDFLAGS@ -module -avoid-version -L$(top_builddir)/.libs -@WITH_PYTHON_TRUE@mylibs = \ -@WITH_PYTHON_TRUE@ $(top_builddir)/libxml2.la - -@WITH_PYTHON_TRUE@python_LTLIBRARIES = libxml2mod.la -@WITH_PYTHON_TRUE@libxml2mod_la_SOURCES = libxml.c types.c libxml2-py.c -@WITH_PYTHON_TRUE@libxml2mod_la_LIBADD = $(mylibs) @CYGWIN_EXTRA_PYTHON_LIBADD@ -@WITH_PYTHON_TRUE@GENERATE = generator.py -@WITH_PYTHON_TRUE@API_DESC = $(top_srcdir)/doc/libxml2-api.xml $(srcdir)/libxml2-python-api.xml -@WITH_PYTHON_TRUE@GENERATED = libxml2class.py \ -@WITH_PYTHON_TRUE@ libxml2-export.c \ -@WITH_PYTHON_TRUE@ libxml2class.txt \ -@WITH_PYTHON_TRUE@ libxml2-py.c \ -@WITH_PYTHON_TRUE@ libxml2-py.h - -@WITH_PYTHON_TRUE@CLEANFILES = $(GENERATED) gen_prog libxml2.py -all: all-recursive - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign python/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign python/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -setup.py: $(top_builddir)/config.status $(srcdir)/setup.py.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -install-pythonLTLIBRARIES: $(python_LTLIBRARIES) - @$(NORMAL_INSTALL) - test -z "$(pythondir)" || $(mkdir_p) "$(DESTDIR)$(pythondir)" - @list='$(python_LTLIBRARIES)'; for p in $$list; do \ - if test -f $$p; then \ - f=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=install $(pythonLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pythondir)/$$f'"; \ - $(LIBTOOL) --mode=install $(pythonLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pythondir)/$$f"; \ - else :; fi; \ - done - -uninstall-pythonLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @set -x; list='$(python_LTLIBRARIES)'; for p in $$list; do \ - p=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(pythondir)/$$p'"; \ - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(pythondir)/$$p"; \ - done - -clean-pythonLTLIBRARIES: - -test -z "$(python_LTLIBRARIES)" || rm -f $(python_LTLIBRARIES) - @list='$(python_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -libxml2mod.la: $(libxml2mod_la_OBJECTS) $(libxml2mod_la_DEPENDENCIES) - $(LINK) $(am_libxml2mod_la_rpath) $(libxml2mod_la_LDFLAGS) $(libxml2mod_la_OBJECTS) $(libxml2mod_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libxml.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libxml2-py.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/types.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -mostlyclean-recursive clean-recursive distclean-recursive \ -maintainer-clean-recursive: - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(mkdir_p) $(distdir)/${srcdir} - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(mkdir_p) "$(distdir)/$$subdir" \ - || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ - distdir) \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-recursive -@WITH_PYTHON_FALSE@all-local: -all-am: Makefile $(LTLIBRARIES) all-local -installdirs: installdirs-recursive -installdirs-am: - for dir in "$(DESTDIR)$(pythondir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -@WITH_PYTHON_FALSE@install-data-local: -clean: clean-recursive - -clean-am: clean-generic clean-libtool clean-pythonLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-recursive - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-libtool distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -info: info-recursive - -info-am: - -install-data-am: install-data-local install-pythonLTLIBRARIES - -install-exec-am: - -install-info: install-info-recursive - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-info-am uninstall-pythonLTLIBRARIES - -uninstall-info: uninstall-info-recursive - -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am all-local check \ - check-am clean clean-generic clean-libtool \ - clean-pythonLTLIBRARIES clean-recursive ctags ctags-recursive \ - distclean distclean-compile distclean-generic \ - distclean-libtool distclean-recursive distclean-tags distdir \ - dvi dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-data-local install-exec \ - install-exec-am install-info install-info-am install-man \ - install-pythonLTLIBRARIES install-strip installcheck \ - installcheck-am installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic maintainer-clean-recursive \ - mostlyclean mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ - tags tags-recursive uninstall uninstall-am uninstall-info-am \ - uninstall-pythonLTLIBRARIES - - -@WITH_PYTHON_TRUE@all-local: libxml2.py - -@WITH_PYTHON_TRUE@libxml2.py: $(srcdir)/libxml.py libxml2class.py -@WITH_PYTHON_TRUE@ cat $(srcdir)/libxml.py libxml2class.py > libxml2.py - -@WITH_PYTHON_TRUE@install-data-local: -@WITH_PYTHON_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pythondir) -@WITH_PYTHON_TRUE@ @INSTALL@ -m 0644 libxml2.py $(DESTDIR)$(pythondir) -@WITH_PYTHON_TRUE@ @INSTALL@ -m 0644 $(srcdir)/drv_libxml2.py $(DESTDIR)$(pythondir) -@WITH_PYTHON_TRUE@ $(mkinstalldirs) $(DESTDIR)$(DOCS_DIR) -@WITH_PYTHON_TRUE@ @(for doc in $(DOCS) ; \ -@WITH_PYTHON_TRUE@ do @INSTALL@ -m 0644 $$doc $(DESTDIR)$(DOCS_DIR) ; done) - -@WITH_PYTHON_TRUE@$(GENERATED): gen_prog - -@WITH_PYTHON_TRUE@gen_prog: $(srcdir)/$(GENERATE) $(API_DESC) -@WITH_PYTHON_TRUE@ $(PYTHON) $(srcdir)/$(GENERATE) $(srcdir) -@WITH_PYTHON_TRUE@ touch gen_prog - -@WITH_PYTHON_TRUE@$(libxml2mod_la_OBJECTS): $(GENERATED) - -@WITH_PYTHON_FALSE@all: -tests test: all - cd tests && $(MAKE) MAKEFLAGS+=--silent tests -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/tools/docbook/libxml2/python/README b/src/tools/docbook/libxml2/python/README deleted file mode 100644 index b46eee4008..0000000000 --- a/src/tools/docbook/libxml2/python/README +++ /dev/null @@ -1,34 +0,0 @@ - Module libxml2-python - ===================== - -This is the libxml2 python module, providing access to the -libxml2 and libxslt (if available) libraries. For general -informationss on those XML and XSLT libraries check their -web pages at : - http://xmlsoft.org/ - and - http://xmlsoft.org/XSLT/ - -The latest version of the sources for this module and the -associated libraries can be found at: - ftp://xmlsoft.org/ - -Binaries packages of the libxml2 and libxslt libraries can -be found either on the FTP site for Linux, from external -sources linked from the web pages, or as part of your set of -packages provided with your operating system. - -NOTE: -this module distribution is not the primary distribution -of the libxml2 and libxslt Python binding code, but as -the Python way of packaging those for non-Linux systems. -The main sources are the libxml2 and libxslt tar.gz found on -the site. One side effect is that the official RPM packages for -those modules are not generated from the libxml2-python -distributions but as part of the normal RPM packaging of -those two libraries. -The RPM packages can be found at: - http://rpmfind.net/linux/rpm2html/search.php?query=libxml2-python - http://rpmfind.net/linux/rpm2html/search.php?query=libxslt-python - -Daniel Veillard diff --git a/src/tools/docbook/libxml2/python/TODO b/src/tools/docbook/libxml2/python/TODO deleted file mode 100644 index ae3e74dbd3..0000000000 --- a/src/tools/docbook/libxml2/python/TODO +++ /dev/null @@ -1,57 +0,0 @@ - TODO for the libxml2 Python wrappers - - $Id: TODO,v 1.8 2002/02/06 16:06:57 veillard Exp $ - -Things to do: -------------- - -- SAX interfaces - - push is done but no generic interface - - elementDecl need some work - - need more testing and check full callbacks for xmllib/sgmlop replacement -- enums -> libxml.py -- access to XPath variables -- xmlBuffer exposure -- xpathContext, being able to set/get info and clean it up -- more work needed on context handling for function lookup - and use of an hash table. -- add regression tests - - SAX flow -- DTD element and attributes content accesses - - attribute handled in SAX - - element needed in both - - -Done: ------ -- class hierarchy: - + make specific node type inherit from xmlNode - done, had to sort the classes in the output - + get the generator to output a classes.txt description - done libxml2class.txt -- add regression tests - - tests/Makefile.am: export the Python class path - - xpath queries - - xpath extension - - check memory - - build tree - - saving -- extensions based on a python.xml description of the new specific - interfaces - file libxml2-python-api.xml , first entry is xmlRegisterXPathFunction -- spec file: automatically generate for pythonX.Y if found - Done, a bit ugly by running new makes in %install for each level - found. -- error redirections and preformat -- handling of node.content -- access to xmlParserCtxt and push mode - - needed for SAX too - - entry points - - wrappers - - decent interface for setting/getting behaviour -- memory debug interfaces -- SAX interfaces - - basic stuff with push is available - - basic xmllib replacement - -Daniel Veillard diff --git a/src/tools/docbook/libxml2/python/drv_libxml2.py b/src/tools/docbook/libxml2/python/drv_libxml2.py deleted file mode 100644 index e43fb1d7ea..0000000000 --- a/src/tools/docbook/libxml2/python/drv_libxml2.py +++ /dev/null @@ -1,371 +0,0 @@ -# -*- coding: iso-8859-1 -*- -""" A SAX2 driver for libxml2, on top of it's XmlReader API - -USAGE - # put this file (drv_libxml2.py) in PYTHONPATH - import xml.sax - reader = xml.sax.make_parser(["drv_libxml2"]) - # ...and the rest is standard python sax. - -CAVEATS - - Lexical handlers are supported, except for start/endEntity - (waiting for XmlReader.ResolveEntity) and start/endDTD - - Error callbacks are not exactly synchronous, they tend - to be invoked before the corresponding content callback, - because the underlying reader interface parses - data by chunks of 512 bytes - -TODO - - search for TODO - - some ErrorHandler events (warning) - - some ContentHandler events (setDocumentLocator, skippedEntity) - - EntityResolver (using libxml2.?) - - DTDHandler (if/when libxml2 exposes such node types) - - DeclHandler (if/when libxml2 exposes such node types) - - property_xml_string? - - feature_string_interning? - - Incremental parser - - additional performance tuning: - - one might cache callbacks to avoid some name lookups - - one might implement a smarter way to pass attributes to startElement - (some kind of lazy evaluation?) - - there might be room for improvement in start/endPrefixMapping - - other? - -""" - -__author__ = u"Stéphane Bidoul " -__version__ = "0.3" - -import codecs -from types import StringType, UnicodeType -StringTypes = (StringType,UnicodeType) - -from xml.sax._exceptions import * -from xml.sax import xmlreader, saxutils -from xml.sax.handler import \ - feature_namespaces, \ - feature_namespace_prefixes, \ - feature_string_interning, \ - feature_validation, \ - feature_external_ges, \ - feature_external_pes, \ - property_lexical_handler, \ - property_declaration_handler, \ - property_dom_node, \ - property_xml_string - -# libxml2 returns strings as UTF8 -_decoder = codecs.lookup("utf8")[1] -def _d(s): - if s is None: - return s - else: - return _decoder(s)[0] - -try: - import libxml2 -except ImportError, e: - raise SAXReaderNotAvailable("libxml2 not available: " \ - "import error was: %s" % e) - -class Locator(xmlreader.Locator): - """SAX Locator adapter for libxml2.xmlTextReaderLocator""" - - def __init__(self,locator): - self.__locator = locator - - def getColumnNumber(self): - "Return the column number where the current event ends." - return -1 - - def getLineNumber(self): - "Return the line number where the current event ends." - return self.__locator.LineNumber() - - def getPublicId(self): - "Return the public identifier for the current event." - return None - - def getSystemId(self): - "Return the system identifier for the current event." - return self.__locator.BaseURI() - -class LibXml2Reader(xmlreader.XMLReader): - - def __init__(self): - xmlreader.XMLReader.__init__(self) - # features - self.__ns = 0 - self.__nspfx = 0 - self.__validate = 0 - self.__extparams = 1 - # parsing flag - self.__parsing = 0 - # additional handlers - self.__lex_handler = None - self.__decl_handler = None - # error messages accumulator - self.__errors = None - - def _errorHandler(self,arg,msg,severity,locator): - if self.__errors is None: - self.__errors = [] - self.__errors.append((severity, - SAXParseException(msg,None, - Locator(locator)))) - - def _reportErrors(self,fatal): - for severity,exception in self.__errors: - if severity in (libxml2.PARSER_SEVERITY_VALIDITY_WARNING, - libxml2.PARSER_SEVERITY_WARNING): - self._err_handler.warning(exception) - else: - # when fatal is set, the parse will stop; - # we consider that the last error reported - # is the fatal one. - if fatal and exception is self.__errors[-1][1]: - self._err_handler.fatalError(exception) - else: - self._err_handler.error(exception) - self.__errors = None - - def parse(self, source): - self.__parsing = 1 - try: - # prepare source and create reader - if type(source) in StringTypes: - reader = libxml2.newTextReaderFilename(source) - else: - source = saxutils.prepare_input_source(source) - input = libxml2.inputBuffer(source.getByteStream()) - reader = input.newTextReader(source.getSystemId()) - reader.SetErrorHandler(self._errorHandler,None) - # configure reader - if self.__extparams: - reader.SetParserProp(libxml2.PARSER_LOADDTD,1) - reader.SetParserProp(libxml2.PARSER_DEFAULTATTRS,1) - reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES,1) - reader.SetParserProp(libxml2.PARSER_VALIDATE,self.__validate) - else: - reader.SetParserProp(libxml2.PARSER_LOADDTD, 0) - # we reuse attribute maps (for a slight performance gain) - if self.__ns: - attributesNSImpl = xmlreader.AttributesNSImpl({},{}) - else: - attributesImpl = xmlreader.AttributesImpl({}) - # prefixes to pop (for endPrefixMapping) - prefixes = [] - # start loop - self._cont_handler.startDocument() - while 1: - r = reader.Read() - # check for errors - if r == 1: - if not self.__errors is None: - self._reportErrors(0) - elif r == 0: - if not self.__errors is None: - self._reportErrors(0) - break # end of parse - else: - if not self.__errors is None: - self._reportErrors(1) - else: - self._err_handler.fatalError(\ - SAXException("Read failed (no details available)")) - break # fatal parse error - # get node type - nodeType = reader.NodeType() - # Element - if nodeType == 1: - if self.__ns: - eltName = (_d(reader.NamespaceUri()),\ - _d(reader.LocalName())) - eltQName = _d(reader.Name()) - attributesNSImpl._attrs = attrs = {} - attributesNSImpl._qnames = qnames = {} - newPrefixes = [] - while reader.MoveToNextAttribute(): - qname = _d(reader.Name()) - value = _d(reader.Value()) - if qname.startswith("xmlns"): - if len(qname) > 5: - newPrefix = qname[6:] - else: - newPrefix = None - newPrefixes.append(newPrefix) - self._cont_handler.startPrefixMapping(\ - newPrefix,value) - if not self.__nspfx: - continue # don't report xmlns attribute - attName = (_d(reader.NamespaceUri()), - _d(reader.LocalName())) - qnames[attName] = qname - attrs[attName] = value - reader.MoveToElement() - self._cont_handler.startElementNS( \ - eltName,eltQName,attributesNSImpl) - if reader.IsEmptyElement(): - self._cont_handler.endElementNS(eltName,eltQName) - for newPrefix in newPrefixes: - self._cont_handler.endPrefixMapping(newPrefix) - else: - prefixes.append(newPrefixes) - else: - eltName = _d(reader.Name()) - attributesImpl._attrs = attrs = {} - while reader.MoveToNextAttribute(): - attName = _d(reader.Name()) - attrs[attName] = _d(reader.Value()) - reader.MoveToElement() - self._cont_handler.startElement( \ - eltName,attributesImpl) - if reader.IsEmptyElement(): - self._cont_handler.endElement(eltName) - # EndElement - elif nodeType == 15: - if self.__ns: - self._cont_handler.endElementNS( \ - (_d(reader.NamespaceUri()),_d(reader.LocalName())), - _d(reader.Name())) - for prefix in prefixes.pop(): - self._cont_handler.endPrefixMapping(prefix) - else: - self._cont_handler.endElement(_d(reader.Name())) - # Text - elif nodeType == 3: - self._cont_handler.characters(_d(reader.Value())) - # Whitespace - elif nodeType == 13: - self._cont_handler.ignorableWhitespace(_d(reader.Value())) - # SignificantWhitespace - elif nodeType == 14: - self._cont_handler.characters(_d(reader.Value())) - # CDATA - elif nodeType == 4: - if not self.__lex_handler is None: - self.__lex_handler.startCDATA() - self._cont_handler.characters(_d(reader.Value())) - if not self.__lex_handler is None: - self.__lex_handler.endCDATA() - # EntityReference - elif nodeType == 5: - if not self.__lex_handler is None: - self.startEntity(_d(reader.Name())) - reader.ResolveEntity() - # EndEntity - elif nodeType == 16: - if not self.__lex_handler is None: - self.endEntity(_d(reader.Name())) - # ProcessingInstruction - elif nodeType == 7: - self._cont_handler.processingInstruction( \ - _d(reader.Name()),_d(reader.Value())) - # Comment - elif nodeType == 8: - if not self.__lex_handler is None: - self.__lex_handler.comment(_d(reader.Value())) - # DocumentType - elif nodeType == 10: - #if not self.__lex_handler is None: - # self.__lex_handler.startDTD() - pass # TODO (how to detect endDTD? on first non-dtd event?) - # XmlDeclaration - elif nodeType == 17: - pass # TODO - # Entity - elif nodeType == 6: - pass # TODO (entity decl) - # Notation (decl) - elif nodeType == 12: - pass # TODO - # Attribute (never in this loop) - #elif nodeType == 2: - # pass - # Document (not exposed) - #elif nodeType == 9: - # pass - # DocumentFragment (never returned by XmlReader) - #elif nodeType == 11: - # pass - # None - #elif nodeType == 0: - # pass - # - - else: - raise SAXException("Unexpected node type %d" % nodeType) - if r == 0: - self._cont_handler.endDocument() - reader.Close() - finally: - self.__parsing = 0 - - def setDTDHandler(self, handler): - # TODO (when supported, the inherited method works just fine) - raise SAXNotSupportedException("DTDHandler not supported") - - def setEntityResolver(self, resolver): - # TODO (when supported, the inherited method works just fine) - raise SAXNotSupportedException("EntityResolver not supported") - - def getFeature(self, name): - if name == feature_namespaces: - return self.__ns - elif name == feature_namespace_prefixes: - return self.__nspfx - elif name == feature_validation: - return self.__validate - elif name == feature_external_ges: - return 1 # TODO (does that relate to PARSER_LOADDTD)? - elif name == feature_external_pes: - return self.__extparams - else: - raise SAXNotRecognizedException("Feature '%s' not recognized" % \ - name) - - def setFeature(self, name, state): - if self.__parsing: - raise SAXNotSupportedException("Cannot set feature %s " \ - "while parsing" % name) - if name == feature_namespaces: - self.__ns = state - elif name == feature_namespace_prefixes: - self.__nspfx = state - elif name == feature_validation: - self.__validate = state - elif name == feature_external_ges: - if state == 0: - # TODO (does that relate to PARSER_LOADDTD)? - raise SAXNotSupportedException("Feature '%s' not supported" % \ - name) - elif name == feature_external_pes: - self.__extparams = state - else: - raise SAXNotRecognizedException("Feature '%s' not recognized" % \ - name) - - def getProperty(self, name): - if name == property_lexical_handler: - return self.__lex_handler - elif name == property_declaration_handler: - return self.__decl_handler - else: - raise SAXNotRecognizedException("Property '%s' not recognized" % \ - name) - - def setProperty(self, name, value): - if name == property_lexical_handler: - self.__lex_handler = value - elif name == property_declaration_handler: - # TODO: remove if/when libxml2 supports dtd events - raise SAXNotSupportedException("Property '%s' not supported" % \ - name) - self.__decl_handler = value - else: - raise SAXNotRecognizedException("Property '%s' not recognized" % \ - name) - -def create_parser(): - return LibXml2Reader() - diff --git a/src/tools/docbook/libxml2/python/generator.py b/src/tools/docbook/libxml2/python/generator.py deleted file mode 100755 index 642b8d1896..0000000000 --- a/src/tools/docbook/libxml2/python/generator.py +++ /dev/null @@ -1,1230 +0,0 @@ -#!/usr/bin/python -u -# -# generate python wrappers from the XML API description -# - -functions = {} -enums = {} # { enumType: { enumConstant: enumValue } } - -import os -import sys -import string - -if __name__ == "__main__": - # launched as a script - srcPref = os.path.dirname(sys.argv[0]) -else: - # imported - srcPref = os.path.dirname(__file__) - -####################################################################### -# -# That part if purely the API acquisition phase from the -# XML API description -# -####################################################################### -import os -import xmllib -try: - import sgmlop -except ImportError: - sgmlop = None # accelerator not available - -debug = 0 - -if sgmlop: - class FastParser: - """sgmlop based XML parser. this is typically 15x faster - than SlowParser...""" - - def __init__(self, target): - - # setup callbacks - self.finish_starttag = target.start - self.finish_endtag = target.end - self.handle_data = target.data - - # activate parser - self.parser = sgmlop.XMLParser() - self.parser.register(self) - self.feed = self.parser.feed - self.entity = { - "amp": "&", "gt": ">", "lt": "<", - "apos": "'", "quot": '"' - } - - def close(self): - try: - self.parser.close() - finally: - self.parser = self.feed = None # nuke circular reference - - def handle_entityref(self, entity): - # entity - try: - self.handle_data(self.entity[entity]) - except KeyError: - self.handle_data("&%s;" % entity) - -else: - FastParser = None - - -class SlowParser(xmllib.XMLParser): - """slow but safe standard parser, based on the XML parser in - Python's standard library.""" - - def __init__(self, target): - self.unknown_starttag = target.start - self.handle_data = target.data - self.unknown_endtag = target.end - xmllib.XMLParser.__init__(self) - -def getparser(target = None): - # get the fastest available parser, and attach it to an - # unmarshalling object. return both objects. - if target is None: - target = docParser() - if FastParser: - return FastParser(target), target - return SlowParser(target), target - -class docParser: - def __init__(self): - self._methodname = None - self._data = [] - self.in_function = 0 - - def close(self): - if debug: - print "close" - - def getmethodname(self): - return self._methodname - - def data(self, text): - if debug: - print "data %s" % text - self._data.append(text) - - def start(self, tag, attrs): - if debug: - print "start %s, %s" % (tag, attrs) - if tag == 'function': - self._data = [] - self.in_function = 1 - self.function = None - self.function_cond = None - self.function_args = [] - self.function_descr = None - self.function_return = None - self.function_file = None - if attrs.has_key('name'): - self.function = attrs['name'] - if attrs.has_key('file'): - self.function_file = attrs['file'] - elif tag == 'cond': - self._data = [] - elif tag == 'info': - self._data = [] - elif tag == 'arg': - if self.in_function == 1: - self.function_arg_name = None - self.function_arg_type = None - self.function_arg_info = None - if attrs.has_key('name'): - self.function_arg_name = attrs['name'] - if attrs.has_key('type'): - self.function_arg_type = attrs['type'] - if attrs.has_key('info'): - self.function_arg_info = attrs['info'] - elif tag == 'return': - if self.in_function == 1: - self.function_return_type = None - self.function_return_info = None - self.function_return_field = None - if attrs.has_key('type'): - self.function_return_type = attrs['type'] - if attrs.has_key('info'): - self.function_return_info = attrs['info'] - if attrs.has_key('field'): - self.function_return_field = attrs['field'] - elif tag == 'enum': - enum(attrs['type'],attrs['name'],attrs['value']) - - def end(self, tag): - if debug: - print "end %s" % tag - if tag == 'function': - if self.function != None: - function(self.function, self.function_descr, - self.function_return, self.function_args, - self.function_file, self.function_cond) - self.in_function = 0 - elif tag == 'arg': - if self.in_function == 1: - self.function_args.append([self.function_arg_name, - self.function_arg_type, - self.function_arg_info]) - elif tag == 'return': - if self.in_function == 1: - self.function_return = [self.function_return_type, - self.function_return_info, - self.function_return_field] - elif tag == 'info': - str = '' - for c in self._data: - str = str + c - if self.in_function == 1: - self.function_descr = str - elif tag == 'cond': - str = '' - for c in self._data: - str = str + c - if self.in_function == 1: - self.function_cond = str - - -def function(name, desc, ret, args, file, cond): - functions[name] = (desc, ret, args, file, cond) - -def enum(type, name, value): - if not enums.has_key(type): - enums[type] = {} - enums[type][name] = value - -####################################################################### -# -# Some filtering rukes to drop functions/types which should not -# be exposed as-is on the Python interface -# -####################################################################### - -skipped_modules = { - 'xmlmemory': None, - 'DOCBparser': None, - 'SAX': None, - 'hash': None, - 'list': None, - 'threads': None, -# 'xpointer': None, -} -skipped_types = { - 'int *': "usually a return type", - 'xmlSAXHandlerPtr': "not the proper interface for SAX", - 'htmlSAXHandlerPtr': "not the proper interface for SAX", - 'xmlRMutexPtr': "thread specific, skipped", - 'xmlMutexPtr': "thread specific, skipped", - 'xmlGlobalStatePtr': "thread specific, skipped", - 'xmlListPtr': "internal representation not suitable for python", - 'xmlBufferPtr': "internal representation not suitable for python", - 'FILE *': None, -} - -####################################################################### -# -# Table of remapping to/from the python type or class to the C -# counterpart. -# -####################################################################### - -py_types = { - 'void': (None, None, None, None), - 'int': ('i', None, "int", "int"), - 'long': ('i', None, "int", "int"), - 'double': ('d', None, "double", "double"), - 'unsigned int': ('i', None, "int", "int"), - 'xmlChar': ('c', None, "int", "int"), - 'unsigned char *': ('z', None, "charPtr", "char *"), - 'char *': ('z', None, "charPtr", "char *"), - 'const char *': ('z', None, "charPtrConst", "const char *"), - 'xmlChar *': ('z', None, "xmlCharPtr", "xmlChar *"), - 'const xmlChar *': ('z', None, "xmlCharPtrConst", "const xmlChar *"), - 'xmlNodePtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'const xmlNodePtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'xmlNode *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'const xmlNode *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'xmlDtdPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'const xmlDtdPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'xmlDtd *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'const xmlDtd *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'xmlAttrPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'const xmlAttrPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'xmlAttr *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'const xmlAttr *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'xmlEntityPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'const xmlEntityPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'xmlEntity *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'const xmlEntity *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'xmlElementPtr': ('O', "xmlElement", "xmlElementPtr", "xmlElementPtr"), - 'const xmlElementPtr': ('O', "xmlElement", "xmlElementPtr", "xmlElementPtr"), - 'xmlElement *': ('O', "xmlElement", "xmlElementPtr", "xmlElementPtr"), - 'const xmlElement *': ('O', "xmlElement", "xmlElementPtr", "xmlElementPtr"), - 'xmlAttributePtr': ('O', "xmlAttribute", "xmlAttributePtr", "xmlAttributePtr"), - 'const xmlAttributePtr': ('O', "xmlAttribute", "xmlAttributePtr", "xmlAttributePtr"), - 'xmlAttribute *': ('O', "xmlAttribute", "xmlAttributePtr", "xmlAttributePtr"), - 'const xmlAttribute *': ('O', "xmlAttribute", "xmlAttributePtr", "xmlAttributePtr"), - 'xmlNsPtr': ('O', "xmlNode", "xmlNsPtr", "xmlNsPtr"), - 'const xmlNsPtr': ('O', "xmlNode", "xmlNsPtr", "xmlNsPtr"), - 'xmlNs *': ('O', "xmlNode", "xmlNsPtr", "xmlNsPtr"), - 'const xmlNs *': ('O', "xmlNode", "xmlNsPtr", "xmlNsPtr"), - 'xmlDocPtr': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr"), - 'const xmlDocPtr': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr"), - 'xmlDoc *': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr"), - 'const xmlDoc *': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr"), - 'htmlDocPtr': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr"), - 'const htmlDocPtr': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr"), - 'htmlDoc *': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr"), - 'const htmlDoc *': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr"), - 'htmlNodePtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'const htmlNodePtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'htmlNode *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'const htmlNode *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"), - 'xmlXPathContextPtr': ('O', "xmlXPathContext", "xmlXPathContextPtr", "xmlXPathContextPtr"), - 'xmlXPathContext *': ('O', "xpathContext", "xmlXPathContextPtr", "xmlXPathContextPtr"), - 'xmlXPathParserContextPtr': ('O', "xmlXPathParserContext", "xmlXPathParserContextPtr", "xmlXPathParserContextPtr"), - 'xmlParserCtxtPtr': ('O', "parserCtxt", "xmlParserCtxtPtr", "xmlParserCtxtPtr"), - 'xmlParserCtxt *': ('O', "parserCtxt", "xmlParserCtxtPtr", "xmlParserCtxtPtr"), - 'htmlParserCtxtPtr': ('O', "parserCtxt", "xmlParserCtxtPtr", "xmlParserCtxtPtr"), - 'htmlParserCtxt *': ('O', "parserCtxt", "xmlParserCtxtPtr", "xmlParserCtxtPtr"), - 'xmlValidCtxtPtr': ('O', "ValidCtxt", "xmlValidCtxtPtr", "xmlValidCtxtPtr"), - 'xmlCatalogPtr': ('O', "catalog", "xmlCatalogPtr", "xmlCatalogPtr"), - 'FILE *': ('O', "File", "FILEPtr", "FILE *"), - 'xmlURIPtr': ('O', "URI", "xmlURIPtr", "xmlURIPtr"), - 'xmlErrorPtr': ('O', "Error", "xmlErrorPtr", "xmlErrorPtr"), - 'xmlOutputBufferPtr': ('O', "outputBuffer", "xmlOutputBufferPtr", "xmlOutputBufferPtr"), - 'xmlParserInputBufferPtr': ('O', "inputBuffer", "xmlParserInputBufferPtr", "xmlParserInputBufferPtr"), - 'xmlRegexpPtr': ('O', "xmlReg", "xmlRegexpPtr", "xmlRegexpPtr"), - 'xmlTextReaderLocatorPtr': ('O', "xmlTextReaderLocator", "xmlTextReaderLocatorPtr", "xmlTextReaderLocatorPtr"), - 'xmlTextReaderPtr': ('O', "xmlTextReader", "xmlTextReaderPtr", "xmlTextReaderPtr"), - 'xmlRelaxNGPtr': ('O', "relaxNgSchema", "xmlRelaxNGPtr", "xmlRelaxNGPtr"), - 'xmlRelaxNGParserCtxtPtr': ('O', "relaxNgParserCtxt", "xmlRelaxNGParserCtxtPtr", "xmlRelaxNGParserCtxtPtr"), - 'xmlRelaxNGValidCtxtPtr': ('O', "relaxNgValidCtxt", "xmlRelaxNGValidCtxtPtr", "xmlRelaxNGValidCtxtPtr"), - 'xmlSchemaPtr': ('O', "Schema", "xmlSchemaPtr", "xmlSchemaPtr"), - 'xmlSchemaParserCtxtPtr': ('O', "SchemaParserCtxt", "xmlSchemaParserCtxtPtr", "xmlSchemaParserCtxtPtr"), - 'xmlSchemaValidCtxtPtr': ('O', "SchemaValidCtxt", "xmlSchemaValidCtxtPtr", "xmlSchemaValidCtxtPtr"), -} - -py_return_types = { - 'xmlXPathObjectPtr': ('O', "foo", "xmlXPathObjectPtr", "xmlXPathObjectPtr"), -} - -unknown_types = {} - -foreign_encoding_args = ( - 'htmlCreateMemoryParserCtxt', - 'htmlCtxtReadMemory', - 'htmlParseChunk', - 'htmlReadMemory', - 'xmlCreateMemoryParserCtxt', - 'xmlCtxtReadMemory', - 'xmlCtxtResetPush', - 'xmlParseChunk', - 'xmlParseMemory', - 'xmlReadMemory', - 'xmlRecoverMemory', -) - -####################################################################### -# -# This part writes the C <-> Python stubs libxml2-py.[ch] and -# the table libxml2-export.c to add when registrering the Python module -# -####################################################################### - -# Class methods which are written by hand in libxml.c but the Python-level -# code is still automatically generated (so they are not in skip_function()). -skip_impl = ( - 'xmlSaveFileTo', - 'xmlSaveFormatFileTo', -) - -def skip_function(name): - if name[0:12] == "xmlXPathWrap": - return 1 - if name == "xmlFreeParserCtxt": - return 1 - if name == "xmlCleanupParser": - return 1 - if name == "xmlFreeTextReader": - return 1 -# if name[0:11] == "xmlXPathNew": -# return 1 - # the next function is defined in libxml.c - if name == "xmlRelaxNGFreeValidCtxt": - return 1 - if name == "xmlFreeValidCtxt": - return 1 - if name == "xmlSchemaFreeValidCtxt": - return 1 - -# -# Those are skipped because the Const version is used of the bindings -# instead. -# - if name == "xmlTextReaderBaseUri": - return 1 - if name == "xmlTextReaderLocalName": - return 1 - if name == "xmlTextReaderName": - return 1 - if name == "xmlTextReaderNamespaceUri": - return 1 - if name == "xmlTextReaderPrefix": - return 1 - if name == "xmlTextReaderXmlLang": - return 1 - if name == "xmlTextReaderValue": - return 1 - if name == "xmlOutputBufferClose": # handled by by the superclass - return 1 - if name == "xmlOutputBufferFlush": # handled by by the superclass - return 1 - if name == "xmlErrMemory": - return 1 - - if name == "xmlValidBuildContentModel": - return 1 - if name == "xmlValidateElementDecl": - return 1 - if name == "xmlValidateAttributeDecl": - return 1 - - return 0 - -def print_function_wrapper(name, output, export, include): - global py_types - global unknown_types - global functions - global skipped_modules - - try: - (desc, ret, args, file, cond) = functions[name] - except: - print "failed to get function %s infos" - return - - if skipped_modules.has_key(file): - return 0 - if skip_function(name) == 1: - return 0 - if name in skip_impl: - # Don't delete the function entry in the caller. - return 1 - - c_call = ""; - format="" - format_args="" - c_args="" - c_return="" - c_convert="" - num_bufs=0 - for arg in args: - # This should be correct - if arg[1][0:6] == "const ": - arg[1] = arg[1][6:] - c_args = c_args + " %s %s;\n" % (arg[1], arg[0]) - if py_types.has_key(arg[1]): - (f, t, n, c) = py_types[arg[1]] - if (f == 'z') and (name in foreign_encoding_args) and (num_bufs == 0): - f = 't#' - if f != None: - format = format + f - if t != None: - format_args = format_args + ", &pyobj_%s" % (arg[0]) - c_args = c_args + " PyObject *pyobj_%s;\n" % (arg[0]) - c_convert = c_convert + \ - " %s = (%s) Py%s_Get(pyobj_%s);\n" % (arg[0], - arg[1], t, arg[0]); - else: - format_args = format_args + ", &%s" % (arg[0]) - if f == 't#': - format_args = format_args + ", &py_buffsize%d" % num_bufs - c_args = c_args + " int py_buffsize%d;\n" % num_bufs - num_bufs = num_bufs + 1 - if c_call != "": - c_call = c_call + ", "; - c_call = c_call + "%s" % (arg[0]) - else: - if skipped_types.has_key(arg[1]): - return 0 - if unknown_types.has_key(arg[1]): - lst = unknown_types[arg[1]] - lst.append(name) - else: - unknown_types[arg[1]] = [name] - return -1 - if format != "": - format = format + ":%s" % (name) - - if ret[0] == 'void': - if file == "python_accessor": - if args[1][1] == "char *" or args[1][1] == "xmlChar *": - c_call = "\n if (%s->%s != NULL) xmlFree(%s->%s);\n" % ( - args[0][0], args[1][0], args[0][0], args[1][0]) - c_call = c_call + " %s->%s = (%s)xmlStrdup((const xmlChar *)%s);\n" % (args[0][0], - args[1][0], args[1][1], args[1][0]) - else: - c_call = "\n %s->%s = %s;\n" % (args[0][0], args[1][0], - args[1][0]) - else: - c_call = "\n %s(%s);\n" % (name, c_call); - ret_convert = " Py_INCREF(Py_None);\n return(Py_None);\n" - elif py_types.has_key(ret[0]): - (f, t, n, c) = py_types[ret[0]] - c_return = " %s c_retval;\n" % (ret[0]) - if file == "python_accessor" and ret[2] != None: - c_call = "\n c_retval = %s->%s;\n" % (args[0][0], ret[2]) - else: - c_call = "\n c_retval = %s(%s);\n" % (name, c_call); - ret_convert = " py_retval = libxml_%sWrap((%s) c_retval);\n" % (n,c) - ret_convert = ret_convert + " return(py_retval);\n" - elif py_return_types.has_key(ret[0]): - (f, t, n, c) = py_return_types[ret[0]] - c_return = " %s c_retval;\n" % (ret[0]) - c_call = "\n c_retval = %s(%s);\n" % (name, c_call); - ret_convert = " py_retval = libxml_%sWrap((%s) c_retval);\n" % (n,c) - ret_convert = ret_convert + " return(py_retval);\n" - else: - if skipped_types.has_key(ret[0]): - return 0 - if unknown_types.has_key(ret[0]): - lst = unknown_types[ret[0]] - lst.append(name) - else: - unknown_types[ret[0]] = [name] - return -1 - - if cond != None and cond != "": - include.write("#if %s\n" % cond) - export.write("#if %s\n" % cond) - output.write("#if %s\n" % cond) - - include.write("PyObject * ") - include.write("libxml_%s(PyObject *self, PyObject *args);\n" % (name)); - - export.write(" { (char *)\"%s\", libxml_%s, METH_VARARGS, NULL },\n" % - (name, name)) - - if file == "python": - # Those have been manually generated - if cond != None and cond != "": - include.write("#endif\n"); - export.write("#endif\n"); - output.write("#endif\n"); - return 1 - if file == "python_accessor" and ret[0] != "void" and ret[2] is None: - # Those have been manually generated - if cond != None and cond != "": - include.write("#endif\n"); - export.write("#endif\n"); - output.write("#endif\n"); - return 1 - - output.write("PyObject *\n") - output.write("libxml_%s(PyObject *self ATTRIBUTE_UNUSED," % (name)) - output.write(" PyObject *args") - if format == "": - output.write(" ATTRIBUTE_UNUSED") - output.write(") {\n") - if ret[0] != 'void': - output.write(" PyObject *py_retval;\n") - if c_return != "": - output.write(c_return) - if c_args != "": - output.write(c_args) - if format != "": - output.write("\n if (!PyArg_ParseTuple(args, (char *)\"%s\"%s))\n" % - (format, format_args)) - output.write(" return(NULL);\n") - if c_convert != "": - output.write(c_convert) - - output.write(c_call) - output.write(ret_convert) - output.write("}\n\n") - if cond != None and cond != "": - include.write("#endif /* %s */\n" % cond) - export.write("#endif /* %s */\n" % cond) - output.write("#endif /* %s */\n" % cond) - return 1 - -def buildStubs(): - global py_types - global py_return_types - global unknown_types - - try: - f = open(os.path.join(srcPref,"libxml2-api.xml")) - data = f.read() - (parser, target) = getparser() - parser.feed(data) - parser.close() - except IOError, msg: - try: - f = open(os.path.join(srcPref,"..","doc","libxml2-api.xml")) - data = f.read() - (parser, target) = getparser() - parser.feed(data) - parser.close() - except IOError, msg: - print file, ":", msg - sys.exit(1) - - n = len(functions.keys()) - print "Found %d functions in libxml2-api.xml" % (n) - - py_types['pythonObject'] = ('O', "pythonObject", "pythonObject", "pythonObject") - try: - f = open(os.path.join(srcPref,"libxml2-python-api.xml")) - data = f.read() - (parser, target) = getparser() - parser.feed(data) - parser.close() - except IOError, msg: - print file, ":", msg - - - print "Found %d functions in libxml2-python-api.xml" % ( - len(functions.keys()) - n) - nb_wrap = 0 - failed = 0 - skipped = 0 - - include = open("libxml2-py.h", "w") - include.write("/* Generated */\n\n") - export = open("libxml2-export.c", "w") - export.write("/* Generated */\n\n") - wrapper = open("libxml2-py.c", "w") - wrapper.write("/* Generated */\n\n") - wrapper.write("#include \n") - wrapper.write("#include \n") - wrapper.write("#include \n") - wrapper.write("#include \n") - wrapper.write("#include \"libxml_wrap.h\"\n") - wrapper.write("#include \"libxml2-py.h\"\n\n") - for function in functions.keys(): - ret = print_function_wrapper(function, wrapper, export, include) - if ret < 0: - failed = failed + 1 - del functions[function] - if ret == 0: - skipped = skipped + 1 - del functions[function] - if ret == 1: - nb_wrap = nb_wrap + 1 - include.close() - export.close() - wrapper.close() - - print "Generated %d wrapper functions, %d failed, %d skipped\n" % (nb_wrap, - failed, skipped); - print "Missing type converters: " - for type in unknown_types.keys(): - print "%s:%d " % (type, len(unknown_types[type])), - print - -####################################################################### -# -# This part writes part of the Python front-end classes based on -# mapping rules between types and classes and also based on function -# renaming to get consistent function names at the Python level -# -####################################################################### - -# -# The type automatically remapped to generated classes -# -classes_type = { - "xmlNodePtr": ("._o", "xmlNode(_obj=%s)", "xmlNode"), - "xmlNode *": ("._o", "xmlNode(_obj=%s)", "xmlNode"), - "xmlDocPtr": ("._o", "xmlDoc(_obj=%s)", "xmlDoc"), - "xmlDocPtr *": ("._o", "xmlDoc(_obj=%s)", "xmlDoc"), - "htmlDocPtr": ("._o", "xmlDoc(_obj=%s)", "xmlDoc"), - "htmlxmlDocPtr *": ("._o", "xmlDoc(_obj=%s)", "xmlDoc"), - "xmlAttrPtr": ("._o", "xmlAttr(_obj=%s)", "xmlAttr"), - "xmlAttr *": ("._o", "xmlAttr(_obj=%s)", "xmlAttr"), - "xmlNsPtr": ("._o", "xmlNs(_obj=%s)", "xmlNs"), - "xmlNs *": ("._o", "xmlNs(_obj=%s)", "xmlNs"), - "xmlDtdPtr": ("._o", "xmlDtd(_obj=%s)", "xmlDtd"), - "xmlDtd *": ("._o", "xmlDtd(_obj=%s)", "xmlDtd"), - "xmlEntityPtr": ("._o", "xmlEntity(_obj=%s)", "xmlEntity"), - "xmlEntity *": ("._o", "xmlEntity(_obj=%s)", "xmlEntity"), - "xmlElementPtr": ("._o", "xmlElement(_obj=%s)", "xmlElement"), - "xmlElement *": ("._o", "xmlElement(_obj=%s)", "xmlElement"), - "xmlAttributePtr": ("._o", "xmlAttribute(_obj=%s)", "xmlAttribute"), - "xmlAttribute *": ("._o", "xmlAttribute(_obj=%s)", "xmlAttribute"), - "xmlXPathContextPtr": ("._o", "xpathContext(_obj=%s)", "xpathContext"), - "xmlXPathContext *": ("._o", "xpathContext(_obj=%s)", "xpathContext"), - "xmlXPathParserContext *": ("._o", "xpathParserContext(_obj=%s)", "xpathParserContext"), - "xmlXPathParserContextPtr": ("._o", "xpathParserContext(_obj=%s)", "xpathParserContext"), - "xmlParserCtxtPtr": ("._o", "parserCtxt(_obj=%s)", "parserCtxt"), - "xmlParserCtxt *": ("._o", "parserCtxt(_obj=%s)", "parserCtxt"), - "htmlParserCtxtPtr": ("._o", "parserCtxt(_obj=%s)", "parserCtxt"), - "htmlParserCtxt *": ("._o", "parserCtxt(_obj=%s)", "parserCtxt"), - "xmlValidCtxtPtr": ("._o", "ValidCtxt(_obj=%s)", "ValidCtxt"), - "xmlCatalogPtr": ("._o", "catalog(_obj=%s)", "catalog"), - "xmlURIPtr": ("._o", "URI(_obj=%s)", "URI"), - "xmlErrorPtr": ("._o", "Error(_obj=%s)", "Error"), - "xmlOutputBufferPtr": ("._o", "outputBuffer(_obj=%s)", "outputBuffer"), - "xmlParserInputBufferPtr": ("._o", "inputBuffer(_obj=%s)", "inputBuffer"), - "xmlRegexpPtr": ("._o", "xmlReg(_obj=%s)", "xmlReg"), - "xmlTextReaderLocatorPtr": ("._o", "xmlTextReaderLocator(_obj=%s)", "xmlTextReaderLocator"), - "xmlTextReaderPtr": ("._o", "xmlTextReader(_obj=%s)", "xmlTextReader"), - 'xmlRelaxNGPtr': ('._o', "relaxNgSchema(_obj=%s)", "relaxNgSchema"), - 'xmlRelaxNGParserCtxtPtr': ('._o', "relaxNgParserCtxt(_obj=%s)", "relaxNgParserCtxt"), - 'xmlRelaxNGValidCtxtPtr': ('._o', "relaxNgValidCtxt(_obj=%s)", "relaxNgValidCtxt"), - 'xmlSchemaPtr': ("._o", "Schema(_obj=%s)", "Schema"), - 'xmlSchemaParserCtxtPtr': ("._o", "SchemaParserCtxt(_obj=%s)", "SchemaParserCtxt"), - 'xmlSchemaValidCtxtPtr': ("._o", "SchemaValidCtxt(_obj=%s)", "SchemaValidCtxt"), -} - -converter_type = { - "xmlXPathObjectPtr": "xpathObjectRet(%s)", -} - -primary_classes = ["xmlNode", "xmlDoc"] - -classes_ancestor = { - "xmlNode" : "xmlCore", - "xmlDtd" : "xmlNode", - "xmlDoc" : "xmlNode", - "xmlAttr" : "xmlNode", - "xmlNs" : "xmlNode", - "xmlEntity" : "xmlNode", - "xmlElement" : "xmlNode", - "xmlAttribute" : "xmlNode", - "outputBuffer": "ioWriteWrapper", - "inputBuffer": "ioReadWrapper", - "parserCtxt": "parserCtxtCore", - "xmlTextReader": "xmlTextReaderCore", - "ValidCtxt": "ValidCtxtCore", - "SchemaValidCtxt": "SchemaValidCtxtCore", - "relaxNgValidCtxt": "relaxNgValidCtxtCore", -} -classes_destructors = { - "parserCtxt": "xmlFreeParserCtxt", - "catalog": "xmlFreeCatalog", - "URI": "xmlFreeURI", -# "outputBuffer": "xmlOutputBufferClose", - "inputBuffer": "xmlFreeParserInputBuffer", - "xmlReg": "xmlRegFreeRegexp", - "xmlTextReader": "xmlFreeTextReader", - "relaxNgSchema": "xmlRelaxNGFree", - "relaxNgParserCtxt": "xmlRelaxNGFreeParserCtxt", - "relaxNgValidCtxt": "xmlRelaxNGFreeValidCtxt", - "Schema": "xmlSchemaFree", - "SchemaParserCtxt": "xmlSchemaFreeParserCtxt", - "SchemaValidCtxt": "xmlSchemaFreeValidCtxt", - "ValidCtxt": "xmlFreeValidCtxt", -} - -functions_noexcept = { - "xmlHasProp": 1, - "xmlHasNsProp": 1, - "xmlDocSetRootElement": 1, - "xmlNodeGetNs": 1, - "xmlNodeGetNsDefs": 1, -} - -reference_keepers = { - "xmlTextReader": [('inputBuffer', 'input')], - "relaxNgValidCtxt": [('relaxNgSchema', 'schema')], - "SchemaValidCtxt": [('Schema', 'schema')], -} - -function_classes = {} - -function_classes["None"] = [] - -def nameFixup(name, classe, type, file): - listname = classe + "List" - ll = len(listname) - l = len(classe) - if name[0:l] == listname: - func = name[l:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:12] == "xmlParserGet" and file == "python_accessor": - func = name[12:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:12] == "xmlParserSet" and file == "python_accessor": - func = name[12:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:10] == "xmlNodeGet" and file == "python_accessor": - func = name[10:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:9] == "xmlURIGet" and file == "python_accessor": - func = name[9:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:9] == "xmlURISet" and file == "python_accessor": - func = name[6:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:11] == "xmlErrorGet" and file == "python_accessor": - func = name[11:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:17] == "xmlXPathParserGet" and file == "python_accessor": - func = name[17:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:11] == "xmlXPathGet" and file == "python_accessor": - func = name[11:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:11] == "xmlXPathSet" and file == "python_accessor": - func = name[8:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:15] == "xmlOutputBuffer" and file != "python": - func = name[15:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:20] == "xmlParserInputBuffer" and file != "python": - func = name[20:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:9] == "xmlRegexp" and file == "xmlregexp": - func = "regexp" + name[9:] - elif name[0:6] == "xmlReg" and file == "xmlregexp": - func = "regexp" + name[6:] - elif name[0:20] == "xmlTextReaderLocator" and file == "xmlreader": - func = name[20:] - elif name[0:18] == "xmlTextReaderConst" and file == "xmlreader": - func = name[18:] - elif name[0:13] == "xmlTextReader" and file == "xmlreader": - func = name[13:] - elif name[0:12] == "xmlReaderNew" and file == "xmlreader": - func = name[9:] - elif name[0:11] == "xmlACatalog": - func = name[11:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:l] == classe: - func = name[l:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:7] == "libxml_": - func = name[7:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:6] == "xmlGet": - func = name[6:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:3] == "xml": - func = name[3:] - func = string.lower(func[0:1]) + func[1:] - else: - func = name - if func[0:5] == "xPath": - func = "xpath" + func[5:] - elif func[0:4] == "xPtr": - func = "xpointer" + func[4:] - elif func[0:8] == "xInclude": - func = "xinclude" + func[8:] - elif func[0:2] == "iD": - func = "ID" + func[2:] - elif func[0:3] == "uRI": - func = "URI" + func[3:] - elif func[0:4] == "uTF8": - func = "UTF8" + func[4:] - elif func[0:3] == 'sAX': - func = "SAX" + func[3:] - return func - - -def functionCompare(info1, info2): - (index1, func1, name1, ret1, args1, file1) = info1 - (index2, func2, name2, ret2, args2, file2) = info2 - if file1 == file2: - if func1 < func2: - return -1 - if func1 > func2: - return 1 - if file1 == "python_accessor": - return -1 - if file2 == "python_accessor": - return 1 - if file1 < file2: - return -1 - if file1 > file2: - return 1 - return 0 - -def writeDoc(name, args, indent, output): - if functions[name][0] is None or functions[name][0] == "": - return - val = functions[name][0] - val = string.replace(val, "NULL", "None"); - output.write(indent) - output.write('"""') - while len(val) > 60: - str = val[0:60] - i = string.rfind(str, " "); - if i < 0: - i = 60 - str = val[0:i] - val = val[i:] - output.write(str) - output.write('\n '); - output.write(indent) - output.write(val); - output.write(' """\n') - -def buildWrappers(): - global ctypes - global py_types - global py_return_types - global unknown_types - global functions - global function_classes - global classes_type - global classes_list - global converter_type - global primary_classes - global converter_type - global classes_ancestor - global converter_type - global primary_classes - global classes_ancestor - global classes_destructors - global functions_noexcept - - for type in classes_type.keys(): - function_classes[classes_type[type][2]] = [] - - # - # Build the list of C types to look for ordered to start - # with primary classes - # - ctypes = [] - classes_list = [] - ctypes_processed = {} - classes_processed = {} - for classe in primary_classes: - classes_list.append(classe) - classes_processed[classe] = () - for type in classes_type.keys(): - tinfo = classes_type[type] - if tinfo[2] == classe: - ctypes.append(type) - ctypes_processed[type] = () - for type in classes_type.keys(): - if ctypes_processed.has_key(type): - continue - tinfo = classes_type[type] - if not classes_processed.has_key(tinfo[2]): - classes_list.append(tinfo[2]) - classes_processed[tinfo[2]] = () - - ctypes.append(type) - ctypes_processed[type] = () - - for name in functions.keys(): - found = 0; - (desc, ret, args, file, cond) = functions[name] - for type in ctypes: - classe = classes_type[type][2] - - if name[0:3] == "xml" and len(args) >= 1 and args[0][1] == type: - found = 1 - func = nameFixup(name, classe, type, file) - info = (0, func, name, ret, args, file) - function_classes[classe].append(info) - elif name[0:3] == "xml" and len(args) >= 2 and args[1][1] == type \ - and file != "python_accessor": - found = 1 - func = nameFixup(name, classe, type, file) - info = (1, func, name, ret, args, file) - function_classes[classe].append(info) - elif name[0:4] == "html" and len(args) >= 1 and args[0][1] == type: - found = 1 - func = nameFixup(name, classe, type, file) - info = (0, func, name, ret, args, file) - function_classes[classe].append(info) - elif name[0:4] == "html" and len(args) >= 2 and args[1][1] == type \ - and file != "python_accessor": - found = 1 - func = nameFixup(name, classe, type, file) - info = (1, func, name, ret, args, file) - function_classes[classe].append(info) - if found == 1: - continue - if name[0:8] == "xmlXPath": - continue - if name[0:6] == "xmlStr": - continue - if name[0:10] == "xmlCharStr": - continue - func = nameFixup(name, "None", file, file) - info = (0, func, name, ret, args, file) - function_classes['None'].append(info) - - classes = open("libxml2class.py", "w") - txt = open("libxml2class.txt", "w") - txt.write(" Generated Classes for libxml2-python\n\n") - - txt.write("#\n# Global functions of the module\n#\n\n") - if function_classes.has_key("None"): - flist = function_classes["None"] - flist.sort(functionCompare) - oldfile = "" - for info in flist: - (index, func, name, ret, args, file) = info - if file != oldfile: - classes.write("#\n# Functions from module %s\n#\n\n" % file) - txt.write("\n# functions from module %s\n" % file) - oldfile = file - classes.write("def %s(" % func) - txt.write("%s()\n" % func); - n = 0 - for arg in args: - if n != 0: - classes.write(", ") - classes.write("%s" % arg[0]) - n = n + 1 - classes.write("):\n") - writeDoc(name, args, ' ', classes); - - for arg in args: - if classes_type.has_key(arg[1]): - classes.write(" if %s is None: %s__o = None\n" % - (arg[0], arg[0])) - classes.write(" else: %s__o = %s%s\n" % - (arg[0], arg[0], classes_type[arg[1]][0])) - if ret[0] != "void": - classes.write(" ret = "); - else: - classes.write(" "); - classes.write("libxml2mod.%s(" % name) - n = 0 - for arg in args: - if n != 0: - classes.write(", "); - classes.write("%s" % arg[0]) - if classes_type.has_key(arg[1]): - classes.write("__o"); - n = n + 1 - classes.write(")\n"); - if ret[0] != "void": - if classes_type.has_key(ret[0]): - # - # Raise an exception - # - if functions_noexcept.has_key(name): - classes.write(" if ret is None:return None\n"); - elif string.find(name, "URI") >= 0: - classes.write( - " if ret is None:raise uriError('%s() failed')\n" - % (name)) - elif string.find(name, "XPath") >= 0: - classes.write( - " if ret is None:raise xpathError('%s() failed')\n" - % (name)) - elif string.find(name, "Parse") >= 0: - classes.write( - " if ret is None:raise parserError('%s() failed')\n" - % (name)) - else: - classes.write( - " if ret is None:raise treeError('%s() failed')\n" - % (name)) - classes.write(" return "); - classes.write(classes_type[ret[0]][1] % ("ret")); - classes.write("\n"); - else: - classes.write(" return ret\n"); - classes.write("\n"); - - txt.write("\n\n#\n# Set of classes of the module\n#\n\n") - for classname in classes_list: - if classname == "None": - pass - else: - if classes_ancestor.has_key(classname): - txt.write("\n\nClass %s(%s)\n" % (classname, - classes_ancestor[classname])) - classes.write("class %s(%s):\n" % (classname, - classes_ancestor[classname])) - classes.write(" def __init__(self, _obj=None):\n") - if classes_ancestor[classname] == "xmlCore" or \ - classes_ancestor[classname] == "xmlNode": - classes.write(" if type(_obj).__name__ != ") - classes.write("'PyCObject':\n") - classes.write(" raise TypeError, ") - classes.write("'%s needs a PyCObject argument'\n" % \ - classname) - if reference_keepers.has_key(classname): - rlist = reference_keepers[classname] - for ref in rlist: - classes.write(" self.%s = None\n" % ref[1]) - classes.write(" self._o = _obj\n") - classes.write(" %s.__init__(self, _obj=_obj)\n\n" % ( - classes_ancestor[classname])) - if classes_ancestor[classname] == "xmlCore" or \ - classes_ancestor[classname] == "xmlNode": - classes.write(" def __repr__(self):\n") - format = "<%s (%%s) object at 0x%%x>" % (classname) - classes.write(" return \"%s\" %% (self.name, long(id (self)))\n\n" % ( - format)) - else: - txt.write("Class %s()\n" % (classname)) - classes.write("class %s:\n" % (classname)) - classes.write(" def __init__(self, _obj=None):\n") - if reference_keepers.has_key(classname): - list = reference_keepers[classname] - for ref in list: - classes.write(" self.%s = None\n" % ref[1]) - classes.write(" if _obj != None:self._o = _obj;return\n") - classes.write(" self._o = None\n\n"); - destruct=None - if classes_destructors.has_key(classname): - classes.write(" def __del__(self):\n") - classes.write(" if self._o != None:\n") - classes.write(" libxml2mod.%s(self._o)\n" % - classes_destructors[classname]); - classes.write(" self._o = None\n\n"); - destruct=classes_destructors[classname] - flist = function_classes[classname] - flist.sort(functionCompare) - oldfile = "" - for info in flist: - (index, func, name, ret, args, file) = info - # - # Do not provide as method the destructors for the class - # to avoid double free - # - if name == destruct: - continue; - if file != oldfile: - if file == "python_accessor": - classes.write(" # accessors for %s\n" % (classname)) - txt.write(" # accessors\n") - else: - classes.write(" #\n") - classes.write(" # %s functions from module %s\n" % ( - classname, file)) - txt.write("\n # functions from module %s\n" % file) - classes.write(" #\n\n") - oldfile = file - classes.write(" def %s(self" % func) - txt.write(" %s()\n" % func); - n = 0 - for arg in args: - if n != index: - classes.write(", %s" % arg[0]) - n = n + 1 - classes.write("):\n") - writeDoc(name, args, ' ', classes); - n = 0 - for arg in args: - if classes_type.has_key(arg[1]): - if n != index: - classes.write(" if %s is None: %s__o = None\n" % - (arg[0], arg[0])) - classes.write(" else: %s__o = %s%s\n" % - (arg[0], arg[0], classes_type[arg[1]][0])) - n = n + 1 - if ret[0] != "void": - classes.write(" ret = "); - else: - classes.write(" "); - classes.write("libxml2mod.%s(" % name) - n = 0 - for arg in args: - if n != 0: - classes.write(", "); - if n != index: - classes.write("%s" % arg[0]) - if classes_type.has_key(arg[1]): - classes.write("__o"); - else: - classes.write("self"); - if classes_type.has_key(arg[1]): - classes.write(classes_type[arg[1]][0]) - n = n + 1 - classes.write(")\n"); - if ret[0] != "void": - if classes_type.has_key(ret[0]): - # - # Raise an exception - # - if functions_noexcept.has_key(name): - classes.write( - " if ret is None:return None\n"); - elif string.find(name, "URI") >= 0: - classes.write( - " if ret is None:raise uriError('%s() failed')\n" - % (name)) - elif string.find(name, "XPath") >= 0: - classes.write( - " if ret is None:raise xpathError('%s() failed')\n" - % (name)) - elif string.find(name, "Parse") >= 0: - classes.write( - " if ret is None:raise parserError('%s() failed')\n" - % (name)) - else: - classes.write( - " if ret is None:raise treeError('%s() failed')\n" - % (name)) - - # - # generate the returned class wrapper for the object - # - classes.write(" __tmp = "); - classes.write(classes_type[ret[0]][1] % ("ret")); - classes.write("\n"); - - # - # Sometime one need to keep references of the source - # class in the returned class object. - # See reference_keepers for the list - # - tclass = classes_type[ret[0]][2] - if reference_keepers.has_key(tclass): - list = reference_keepers[tclass] - for pref in list: - if pref[0] == classname: - classes.write(" __tmp.%s = self\n" % - pref[1]) - # - # return the class - # - classes.write(" return __tmp\n"); - elif converter_type.has_key(ret[0]): - # - # Raise an exception - # - if functions_noexcept.has_key(name): - classes.write( - " if ret is None:return None"); - elif string.find(name, "URI") >= 0: - classes.write( - " if ret is None:raise uriError('%s() failed')\n" - % (name)) - elif string.find(name, "XPath") >= 0: - classes.write( - " if ret is None:raise xpathError('%s() failed')\n" - % (name)) - elif string.find(name, "Parse") >= 0: - classes.write( - " if ret is None:raise parserError('%s() failed')\n" - % (name)) - else: - classes.write( - " if ret is None:raise treeError('%s() failed')\n" - % (name)) - classes.write(" return "); - classes.write(converter_type[ret[0]] % ("ret")); - classes.write("\n"); - else: - classes.write(" return ret\n"); - classes.write("\n"); - - # - # Generate enum constants - # - for type,enum in enums.items(): - classes.write("# %s\n" % type) - items = enum.items() - items.sort(lambda i1,i2: cmp(long(i1[1]),long(i2[1]))) - for name,value in items: - classes.write("%s = %s\n" % (name,value)) - classes.write("\n"); - - txt.close() - classes.close() - -buildStubs() -buildWrappers() diff --git a/src/tools/docbook/libxml2/python/libxml.c b/src/tools/docbook/libxml2/python/libxml.c deleted file mode 100644 index 88b29cf0a7..0000000000 --- a/src/tools/docbook/libxml2/python/libxml.c +++ /dev/null @@ -1,3760 +0,0 @@ -/* - * libxml.c: this modules implements the main part of the glue of the - * libxml2 library and the Python interpreter. It provides the - * entry points where an automatically generated stub is either - * unpractical or would not match cleanly the Python model. - * - * If compiled with MERGED_MODULES, the entry point will be used to - * initialize both the libxml2 and the libxslt wrappers - * - * See Copyright for the status of this software. - * - * daniel@veillard.com - */ -#include -#include -/* #include "config.h" */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "libxml_wrap.h" -#include "libxml2-py.h" - -#if (defined(_MSC_VER) || defined(__MINGW32__)) && !defined(vsnprintf) -#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a) -#elif defined(WITH_TRIO) -#include "trio.h" -#define vsnprintf trio_vsnprintf -#endif - -/* #define DEBUG */ -/* #define DEBUG_SAX */ -/* #define DEBUG_XPATH */ -/* #define DEBUG_ERROR */ -/* #define DEBUG_MEMORY */ -/* #define DEBUG_FILES */ -/* #define DEBUG_LOADER */ - -void initlibxml2mod(void); - -/** - * TODO: - * - * macro to flag unimplemented blocks - */ -#define TODO \ - xmlGenericError(xmlGenericErrorContext, \ - "Unimplemented block at %s:%d\n", \ - __FILE__, __LINE__); -/* - * the following vars are used for XPath extensions, but - * are also referenced within the parser cleanup routine. - */ -static int libxml_xpathCallbacksInitialized = 0; - -typedef struct libxml_xpathCallback { - xmlXPathContextPtr ctx; - xmlChar *name; - xmlChar *ns_uri; - PyObject *function; -} libxml_xpathCallback, *libxml_xpathCallbackPtr; -typedef libxml_xpathCallback libxml_xpathCallbackArray[]; -static int libxml_xpathCallbacksAllocd = 10; -static libxml_xpathCallbackArray *libxml_xpathCallbacks = NULL; -static int libxml_xpathCallbacksNb = 0; - -/************************************************************************ - * * - * Memory debug interface * - * * - ************************************************************************/ - -#if 0 -extern void xmlMemFree(void *ptr); -extern void *xmlMemMalloc(size_t size); -extern void *xmlMemRealloc(void *ptr, size_t size); -extern char *xmlMemoryStrdup(const char *str); -#endif - -static int libxmlMemoryDebugActivated = 0; -static long libxmlMemoryAllocatedBase = 0; - -static int libxmlMemoryDebug = 0; -static xmlFreeFunc freeFunc = NULL; -static xmlMallocFunc mallocFunc = NULL; -static xmlReallocFunc reallocFunc = NULL; -static xmlStrdupFunc strdupFunc = NULL; - -static void -libxml_xmlErrorInitialize(void); /* forward declare */ - -PyObject * -libxml_xmlMemoryUsed(PyObject * self ATTRIBUTE_UNUSED, - PyObject * args ATTRIBUTE_UNUSED) -{ - long ret; - PyObject *py_retval; - - ret = xmlMemUsed(); - - py_retval = libxml_longWrap(ret); - return (py_retval); -} - -PyObject * -libxml_xmlDebugMemory(PyObject * self ATTRIBUTE_UNUSED, PyObject * args) -{ - int activate; - PyObject *py_retval; - long ret; - - if (!PyArg_ParseTuple(args, (char *) "i:xmlDebugMemory", &activate)) - return (NULL); - -#ifdef DEBUG_MEMORY - printf("libxml_xmlDebugMemory(%d) called\n", activate); -#endif - - if (activate != 0) { - if (libxmlMemoryDebug == 0) { - /* - * First initialize the library and grab the old memory handlers - * and switch the library to memory debugging - */ - xmlMemGet((xmlFreeFunc *) & freeFunc, - (xmlMallocFunc *) & mallocFunc, - (xmlReallocFunc *) & reallocFunc, - (xmlStrdupFunc *) & strdupFunc); - if ((freeFunc == xmlMemFree) && (mallocFunc == xmlMemMalloc) && - (reallocFunc == xmlMemRealloc) && - (strdupFunc == xmlMemoryStrdup)) { - libxmlMemoryAllocatedBase = xmlMemUsed(); - } else { - /* - * cleanup first, because some memory has been - * allocated with the non-debug malloc in xmlInitParser - * when the python module was imported - */ - xmlCleanupParser(); - ret = (long) xmlMemSetup(xmlMemFree, xmlMemMalloc, - xmlMemRealloc, xmlMemoryStrdup); - if (ret < 0) - goto error; - libxmlMemoryAllocatedBase = xmlMemUsed(); - /* reinitialize */ - xmlInitParser(); - libxml_xmlErrorInitialize(); - } - ret = 0; - } else if (libxmlMemoryDebugActivated == 0) { - libxmlMemoryAllocatedBase = xmlMemUsed(); - ret = 0; - } else { - ret = xmlMemUsed() - libxmlMemoryAllocatedBase; - } - libxmlMemoryDebug = 1; - libxmlMemoryDebugActivated = 1; - } else { - if (libxmlMemoryDebugActivated == 1) - ret = xmlMemUsed() - libxmlMemoryAllocatedBase; - else - ret = 0; - libxmlMemoryDebugActivated = 0; - } - error: - py_retval = libxml_longWrap(ret); - return (py_retval); -} - -PyObject * -libxml_xmlPythonCleanupParser(PyObject *self ATTRIBUTE_UNUSED, - PyObject *args ATTRIBUTE_UNUSED) { - - int ix; - long freed = -1; - - if (libxmlMemoryDebug) { - freed = xmlMemUsed(); - } - - xmlCleanupParser(); - /* - * Need to confirm whether we really want to do this (required for - * memcheck) in all cases... - */ - - if (libxml_xpathCallbacks != NULL) { /* if ext funcs declared */ - for (ix=0; ix len) - memcpy(buffer, data, len); - else - memcpy(buffer, data, lenread); - Py_DECREF(ret); - } else { - printf("xmlPythonFileReadRaw: result is not a String\n"); - Py_DECREF(ret); - } - return(lenread); -} - -/** - * xmlPythonFileRead: - * @context: the I/O context - * @buffer: where to drop data - * @len: number of bytes to write - * - * Read @len bytes to @buffer from the I/O channel. - * - * Returns the number of bytes read - */ -static int -xmlPythonFileRead (void * context, char * buffer, int len) { - PyObject *file; - PyObject *ret; - int lenread = -1; - char *data; - -#ifdef DEBUG_FILES - printf("xmlPythonFileRead: %d\n", len); -#endif - file = (PyObject *) context; - if (file == NULL) return(-1); - ret = PyEval_CallMethod(file, (char *) "io_read", (char *) "(i)", len); - if (ret == NULL) { - printf("xmlPythonFileRead: result is NULL\n"); - return(-1); - } else if (PyString_Check(ret)) { - lenread = PyString_Size(ret); - data = PyString_AsString(ret); - if (lenread > len) - memcpy(buffer, data, len); - else - memcpy(buffer, data, lenread); - Py_DECREF(ret); - } else { - printf("xmlPythonFileRead: result is not a String\n"); - Py_DECREF(ret); - } - return(lenread); -} - -/** - * xmlFileWrite: - * @context: the I/O context - * @buffer: where to drop data - * @len: number of bytes to write - * - * Write @len bytes from @buffer to the I/O channel. - * - * Returns the number of bytes written - */ -static int -xmlPythonFileWrite (void * context, const char * buffer, int len) { - PyObject *file; - PyObject *string; - PyObject *ret = NULL; - int written = -1; - -#ifdef DEBUG_FILES - printf("xmlPythonFileWrite: %d\n", len); -#endif - file = (PyObject *) context; - if (file == NULL) return(-1); - string = PyString_FromStringAndSize(buffer, len); - if (string == NULL) return(-1); - if (PyObject_HasAttrString(file, (char *) "io_write")) { - ret = PyEval_CallMethod(file, (char *) "io_write", (char *) "(O)", - string); - } else if (PyObject_HasAttrString(file, (char *) "write")) { - ret = PyEval_CallMethod(file, (char *) "write", (char *) "(O)", - string); - } - Py_DECREF(string); - if (ret == NULL) { - printf("xmlPythonFileWrite: result is NULL\n"); - return(-1); - } else if (PyInt_Check(ret)) { - written = (int) PyInt_AsLong(ret); - Py_DECREF(ret); - } else if (ret == Py_None) { - written = len; - Py_DECREF(ret); - } else { - printf("xmlPythonFileWrite: result is not an Int nor None\n"); - Py_DECREF(ret); - } - return(written); -} - -/** - * xmlPythonFileClose: - * @context: the I/O context - * - * Close an I/O channel - */ -static int -xmlPythonFileClose (void * context) { - PyObject *file, *ret = NULL; - -#ifdef DEBUG_FILES - printf("xmlPythonFileClose\n"); -#endif - file = (PyObject *) context; - if (file == NULL) return(-1); - if (PyObject_HasAttrString(file, (char *) "io_close")) { - ret = PyEval_CallMethod(file, (char *) "io_close", (char *) "()"); - } else if (PyObject_HasAttrString(file, (char *) "flush")) { - ret = PyEval_CallMethod(file, (char *) "flush", (char *) "()"); - } - if (ret != NULL) { - Py_DECREF(ret); - } - return(0); -} - -#ifdef LIBXML_OUTPUT_ENABLED -/** - * xmlOutputBufferCreatePythonFile: - * @file: a PyFile_Type - * @encoder: the encoding converter or NULL - * - * Create a buffered output for the progressive saving to a PyFile_Type - * buffered C I/O - * - * Returns the new parser output or NULL - */ -static xmlOutputBufferPtr -xmlOutputBufferCreatePythonFile(PyObject *file, - xmlCharEncodingHandlerPtr encoder) { - xmlOutputBufferPtr ret; - - if (file == NULL) return(NULL); - - ret = xmlAllocOutputBuffer(encoder); - if (ret != NULL) { - ret->context = file; - /* Py_INCREF(file); */ - ret->writecallback = xmlPythonFileWrite; - ret->closecallback = xmlPythonFileClose; - } - - return(ret); -} - -PyObject * -libxml_xmlCreateOutputBuffer(ATTRIBUTE_UNUSED PyObject *self, PyObject *args) { - PyObject *py_retval; - PyObject *file; - xmlChar *encoding; - xmlCharEncodingHandlerPtr handler = NULL; - xmlOutputBufferPtr buffer; - - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlOutputBufferCreate", - &file, &encoding)) - return(NULL); - if ((encoding != NULL) && (encoding[0] != 0)) { - handler = xmlFindCharEncodingHandler((const char *) encoding); - } - buffer = xmlOutputBufferCreatePythonFile(file, handler); - if (buffer == NULL) - printf("libxml_xmlCreateOutputBuffer: buffer == NULL\n"); - py_retval = libxml_xmlOutputBufferPtrWrap(buffer); - return(py_retval); -} - -/** - * libxml_outputBufferGetPythonFile: - * @buffer: the I/O buffer - * - * read the Python I/O from the CObject - * - * Returns the new parser output or NULL - */ -static PyObject * -libxml_outputBufferGetPythonFile(ATTRIBUTE_UNUSED PyObject *self, - PyObject *args) { - PyObject *buffer; - PyObject *file; - xmlOutputBufferPtr obj; - - if (!PyArg_ParseTuple(args, (char *)"O:outputBufferGetPythonFile", - &buffer)) - return(NULL); - - obj = PyoutputBuffer_Get(buffer); - if (obj == NULL) { - fprintf(stderr, - "outputBufferGetPythonFile: obj == NULL\n"); - Py_INCREF(Py_None); - return(Py_None); - } - if (obj->closecallback != xmlPythonFileClose) { - fprintf(stderr, - "outputBufferGetPythonFile: not a python file wrapper\n"); - Py_INCREF(Py_None); - return(Py_None); - } - file = (PyObject *) obj->context; - if (file == NULL) { - Py_INCREF(Py_None); - return(Py_None); - } - Py_INCREF(file); - return(file); -} - -static PyObject * -libxml_xmlOutputBufferClose(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlOutputBufferPtr out; - PyObject *pyobj_out; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlOutputBufferClose", &pyobj_out)) - return(NULL); - out = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_out); - /* Buffer may already have been destroyed elsewhere. This is harmless. */ - if (out == NULL) { - Py_INCREF(Py_None); - return(Py_None); - } - - c_retval = xmlOutputBufferClose(out); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -static PyObject * -libxml_xmlOutputBufferFlush(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlOutputBufferPtr out; - PyObject *pyobj_out; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlOutputBufferFlush", &pyobj_out)) - return(NULL); - out = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_out); - - c_retval = xmlOutputBufferFlush(out); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -static PyObject * -libxml_xmlSaveFileTo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlOutputBufferPtr buf; - PyObject *pyobj_buf; - xmlDocPtr cur; - PyObject *pyobj_cur; - char * encoding; - - if (!PyArg_ParseTuple(args, (char *)"OOz:xmlSaveFileTo", &pyobj_buf, &pyobj_cur, &encoding)) - return(NULL); - buf = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_buf); - cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlSaveFileTo(buf, cur, encoding); - /* xmlSaveTo() freed the memory pointed to by buf, so record that in the - * Python object. */ - ((PyoutputBuffer_Object *)(pyobj_buf))->obj = NULL; - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -static PyObject * -libxml_xmlSaveFormatFileTo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlOutputBufferPtr buf; - PyObject *pyobj_buf; - xmlDocPtr cur; - PyObject *pyobj_cur; - char * encoding; - int format; - - if (!PyArg_ParseTuple(args, (char *)"OOzi:xmlSaveFormatFileTo", &pyobj_buf, &pyobj_cur, &encoding, &format)) - return(NULL); - buf = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_buf); - cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlSaveFormatFileTo(buf, cur, encoding, format); - /* xmlSaveFormatFileTo() freed the memory pointed to by buf, so record that - * in the Python object */ - ((PyoutputBuffer_Object *)(pyobj_buf))->obj = NULL; - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} -#endif /* LIBXML_OUTPUT_ENABLED */ - - -/** - * xmlParserInputBufferCreatePythonFile: - * @file: a PyFile_Type - * @encoder: the encoding converter or NULL - * - * Create a buffered output for the progressive saving to a PyFile_Type - * buffered C I/O - * - * Returns the new parser output or NULL - */ -static xmlParserInputBufferPtr -xmlParserInputBufferCreatePythonFile(PyObject *file, - xmlCharEncoding encoding) { - xmlParserInputBufferPtr ret; - - if (file == NULL) return(NULL); - - ret = xmlAllocParserInputBuffer(encoding); - if (ret != NULL) { - ret->context = file; - /* Py_INCREF(file); */ - ret->readcallback = xmlPythonFileRead; - ret->closecallback = xmlPythonFileClose; - } - - return(ret); -} - -PyObject * -libxml_xmlCreateInputBuffer(ATTRIBUTE_UNUSED PyObject *self, PyObject *args) { - PyObject *py_retval; - PyObject *file; - xmlChar *encoding; - xmlCharEncoding enc = XML_CHAR_ENCODING_NONE; - xmlParserInputBufferPtr buffer; - - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlParserInputBufferCreate", - &file, &encoding)) - return(NULL); - if ((encoding != NULL) && (encoding[0] != 0)) { - enc = xmlParseCharEncoding((const char *) encoding); - } - buffer = xmlParserInputBufferCreatePythonFile(file, enc); - if (buffer == NULL) - printf("libxml_xmlParserInputBufferCreate: buffer == NULL\n"); - py_retval = libxml_xmlParserInputBufferPtrWrap(buffer); - return(py_retval); -} - -/************************************************************************ - * * - * Providing the resolver at the Python level * - * * - ************************************************************************/ - -static xmlExternalEntityLoader defaultExternalEntityLoader = NULL; -static PyObject *pythonExternalEntityLoaderObjext; - -static xmlParserInputPtr -pythonExternalEntityLoader(const char *URL, const char *ID, - xmlParserCtxtPtr ctxt) { - xmlParserInputPtr result = NULL; - if (pythonExternalEntityLoaderObjext != NULL) { - PyObject *ret; - PyObject *ctxtobj; - - ctxtobj = libxml_xmlParserCtxtPtrWrap(ctxt); -#ifdef DEBUG_LOADER - printf("pythonExternalEntityLoader: ready to call\n"); -#endif - - ret = PyObject_CallFunction(pythonExternalEntityLoaderObjext, - (char *) "(ssO)", URL, ID, ctxtobj); - Py_XDECREF(ctxtobj); -#ifdef DEBUG_LOADER - printf("pythonExternalEntityLoader: result "); - PyObject_Print(ret, stderr, 0); - printf("\n"); -#endif - - if (ret != NULL) { - if (PyObject_HasAttrString(ret, (char *) "read")) { - xmlParserInputBufferPtr buf; - - buf = xmlAllocParserInputBuffer(XML_CHAR_ENCODING_NONE); - if (buf != NULL) { - buf->context = ret; - buf->readcallback = xmlPythonFileReadRaw; - buf->closecallback = xmlPythonFileCloseRaw; - result = xmlNewIOInputStream(ctxt, buf, - XML_CHAR_ENCODING_NONE); - } -#if 0 - } else { - if (URL != NULL) - printf("pythonExternalEntityLoader: can't read %s\n", - URL); -#endif - } - if (result == NULL) { - Py_DECREF(ret); - } else if (URL != NULL) { - result->filename = (char *) xmlStrdup((const xmlChar *)URL); - result->directory = xmlParserGetDirectory((const char *) URL); - } - } - } - if ((result == NULL) && (defaultExternalEntityLoader != NULL)) { - result = defaultExternalEntityLoader(URL, ID, ctxt); - } - return(result); -} - -PyObject * -libxml_xmlSetEntityLoader(ATTRIBUTE_UNUSED PyObject *self, PyObject *args) { - PyObject *py_retval; - PyObject *loader; - - if (!PyArg_ParseTuple(args, (char *)"O:libxml_xmlSetEntityLoader", - &loader)) - return(NULL); - -#ifdef DEBUG_LOADER - printf("libxml_xmlSetEntityLoader\n"); -#endif - if (defaultExternalEntityLoader == NULL) - defaultExternalEntityLoader = xmlGetExternalEntityLoader(); - - pythonExternalEntityLoaderObjext = loader; - xmlSetExternalEntityLoader(pythonExternalEntityLoader); - - py_retval = PyInt_FromLong(0); - return(py_retval); -} - - -/************************************************************************ - * * - * Handling SAX/xmllib/sgmlop callback interfaces * - * * - ************************************************************************/ - -static void -pythonStartElement(void *user_data, const xmlChar * name, - const xmlChar ** attrs) -{ - int i; - PyObject *handler; - PyObject *dict; - PyObject *attrname; - PyObject *attrvalue; - PyObject *result = NULL; - int type = 0; - -#ifdef DEBUG_SAX - printf("pythonStartElement(%s) called\n", name); -#endif - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "startElement")) - type = 1; - else if (PyObject_HasAttrString(handler, (char *) "start")) - type = 2; - if (type != 0) { - /* - * the xmllib interface always generate a dictionnary, - * possibly empty - */ - if ((attrs == NULL) && (type == 1)) { - Py_XINCREF(Py_None); - dict = Py_None; - } else if (attrs == NULL) { - dict = PyDict_New(); - } else { - dict = PyDict_New(); - for (i = 0; attrs[i] != NULL; i++) { - attrname = PyString_FromString((char *) attrs[i]); - i++; - if (attrs[i] != NULL) { - attrvalue = PyString_FromString((char *) attrs[i]); - } else { - Py_XINCREF(Py_None); - attrvalue = Py_None; - } - PyDict_SetItem(dict, attrname, attrvalue); - } - } - - if (type == 1) - result = PyObject_CallMethod(handler, (char *) "startElement", - (char *) "sO", name, dict); - else if (type == 2) - result = PyObject_CallMethod(handler, (char *) "start", - (char *) "sO", name, dict); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(dict); - Py_XDECREF(result); - } -} - -static void -pythonStartDocument(void *user_data) -{ - PyObject *handler; - PyObject *result; - -#ifdef DEBUG_SAX - printf("pythonStartDocument() called\n"); -#endif - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "startDocument")) { - result = - PyObject_CallMethod(handler, (char *) "startDocument", NULL); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(result); - } -} - -static void -pythonEndDocument(void *user_data) -{ - PyObject *handler; - PyObject *result; - -#ifdef DEBUG_SAX - printf("pythonEndDocument() called\n"); -#endif - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "endDocument")) { - result = - PyObject_CallMethod(handler, (char *) "endDocument", NULL); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(result); - } - /* - * The reference to the handler is released there - */ - Py_XDECREF(handler); -} - -static void -pythonEndElement(void *user_data, const xmlChar * name) -{ - PyObject *handler; - PyObject *result; - -#ifdef DEBUG_SAX - printf("pythonEndElement(%s) called\n", name); -#endif - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "endElement")) { - result = PyObject_CallMethod(handler, (char *) "endElement", - (char *) "s", name); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(result); - } else if (PyObject_HasAttrString(handler, (char *) "end")) { - result = PyObject_CallMethod(handler, (char *) "end", - (char *) "s", name); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(result); - } -} - -static void -pythonReference(void *user_data, const xmlChar * name) -{ - PyObject *handler; - PyObject *result; - -#ifdef DEBUG_SAX - printf("pythonReference(%s) called\n", name); -#endif - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "reference")) { - result = PyObject_CallMethod(handler, (char *) "reference", - (char *) "s", name); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(result); - } -} - -static void -pythonCharacters(void *user_data, const xmlChar * ch, int len) -{ - PyObject *handler; - PyObject *result = NULL; - int type = 0; - -#ifdef DEBUG_SAX - printf("pythonCharacters(%s, %d) called\n", ch, len); -#endif - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "characters")) - type = 1; - else if (PyObject_HasAttrString(handler, (char *) "data")) - type = 2; - if (type != 0) { - if (type == 1) - result = PyObject_CallMethod(handler, (char *) "characters", - (char *) "s#", ch, len); - else if (type == 2) - result = PyObject_CallMethod(handler, (char *) "data", - (char *) "s#", ch, len); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(result); - } -} - -static void -pythonIgnorableWhitespace(void *user_data, const xmlChar * ch, int len) -{ - PyObject *handler; - PyObject *result = NULL; - int type = 0; - -#ifdef DEBUG_SAX - printf("pythonIgnorableWhitespace(%s, %d) called\n", ch, len); -#endif - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "ignorableWhitespace")) - type = 1; - else if (PyObject_HasAttrString(handler, (char *) "data")) - type = 2; - if (type != 0) { - if (type == 1) - result = - PyObject_CallMethod(handler, - (char *) "ignorableWhitespace", - (char *) "s#", ch, len); - else if (type == 2) - result = - PyObject_CallMethod(handler, (char *) "data", - (char *) "s#", ch, len); - Py_XDECREF(result); - } -} - -static void -pythonProcessingInstruction(void *user_data, - const xmlChar * target, const xmlChar * data) -{ - PyObject *handler; - PyObject *result; - -#ifdef DEBUG_SAX - printf("pythonProcessingInstruction(%s, %s) called\n", target, data); -#endif - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "processingInstruction")) { - result = PyObject_CallMethod(handler, (char *) - "processingInstruction", - (char *) "ss", target, data); - Py_XDECREF(result); - } -} - -static void -pythonComment(void *user_data, const xmlChar * value) -{ - PyObject *handler; - PyObject *result; - -#ifdef DEBUG_SAX - printf("pythonComment(%s) called\n", value); -#endif - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "comment")) { - result = - PyObject_CallMethod(handler, (char *) "comment", (char *) "s", - value); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(result); - } -} - -static void -pythonWarning(void *user_data, const char *msg, ...) -{ - PyObject *handler; - PyObject *result; - va_list args; - char buf[1024]; - -#ifdef DEBUG_SAX - printf("pythonWarning(%s) called\n", msg); -#endif - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "warning")) { - va_start(args, msg); - vsnprintf(buf, 1023, msg, args); - va_end(args); - buf[1023] = 0; - result = - PyObject_CallMethod(handler, (char *) "warning", (char *) "s", - buf); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(result); - } -} - -static void -pythonError(void *user_data, const char *msg, ...) -{ - PyObject *handler; - PyObject *result; - va_list args; - char buf[1024]; - -#ifdef DEBUG_SAX - printf("pythonError(%s) called\n", msg); -#endif - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "error")) { - va_start(args, msg); - vsnprintf(buf, 1023, msg, args); - va_end(args); - buf[1023] = 0; - result = - PyObject_CallMethod(handler, (char *) "error", (char *) "s", - buf); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(result); - } -} - -static void -pythonFatalError(void *user_data, const char *msg, ...) -{ - PyObject *handler; - PyObject *result; - va_list args; - char buf[1024]; - -#ifdef DEBUG_SAX - printf("pythonFatalError(%s) called\n", msg); -#endif - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "fatalError")) { - va_start(args, msg); - vsnprintf(buf, 1023, msg, args); - va_end(args); - buf[1023] = 0; - result = - PyObject_CallMethod(handler, (char *) "fatalError", - (char *) "s", buf); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(result); - } -} - -static void -pythonCdataBlock(void *user_data, const xmlChar * ch, int len) -{ - PyObject *handler; - PyObject *result = NULL; - int type = 0; - -#ifdef DEBUG_SAX - printf("pythonCdataBlock(%s, %d) called\n", ch, len); -#endif - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "cdataBlock")) - type = 1; - else if (PyObject_HasAttrString(handler, (char *) "cdata")) - type = 2; - if (type != 0) { - if (type == 1) - result = - PyObject_CallMethod(handler, (char *) "cdataBlock", - (char *) "s#", ch, len); - else if (type == 2) - result = - PyObject_CallMethod(handler, (char *) "cdata", - (char *) "s#", ch, len); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(result); - } -} - -static void -pythonExternalSubset(void *user_data, - const xmlChar * name, - const xmlChar * externalID, const xmlChar * systemID) -{ - PyObject *handler; - PyObject *result; - -#ifdef DEBUG_SAX - printf("pythonExternalSubset(%s, %s, %s) called\n", - name, externalID, systemID); -#endif - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "externalSubset")) { - result = - PyObject_CallMethod(handler, (char *) "externalSubset", - (char *) "sss", name, externalID, - systemID); - Py_XDECREF(result); - } -} - -static void -pythonEntityDecl(void *user_data, - const xmlChar * name, - int type, - const xmlChar * publicId, - const xmlChar * systemId, xmlChar * content) -{ - PyObject *handler; - PyObject *result; - - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "entityDecl")) { - result = PyObject_CallMethod(handler, (char *) "entityDecl", - (char *) "sisss", name, type, - publicId, systemId, content); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(result); - } -} - - - -static void - -pythonNotationDecl(void *user_data, - const xmlChar * name, - const xmlChar * publicId, const xmlChar * systemId) -{ - PyObject *handler; - PyObject *result; - - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "notationDecl")) { - result = PyObject_CallMethod(handler, (char *) "notationDecl", - (char *) "sss", name, publicId, - systemId); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(result); - } -} - -static void -pythonAttributeDecl(void *user_data, - const xmlChar * elem, - const xmlChar * name, - int type, - int def, - const xmlChar * defaultValue, xmlEnumerationPtr tree) -{ - PyObject *handler; - PyObject *nameList; - PyObject *newName; - xmlEnumerationPtr node; - PyObject *result; - int count; - - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "attributeDecl")) { - count = 0; - for (node = tree; node != NULL; node = node->next) { - count++; - } - nameList = PyList_New(count); - count = 0; - for (node = tree; node != NULL; node = node->next) { - newName = PyString_FromString((char *) node->name); - PyList_SetItem(nameList, count, newName); - count++; - } - result = PyObject_CallMethod(handler, (char *) "attributeDecl", - (char *) "ssiisO", elem, name, type, - def, defaultValue, nameList); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(nameList); - Py_XDECREF(result); - } -} - -static void -pythonElementDecl(void *user_data, - const xmlChar * name, - int type, ATTRIBUTE_UNUSED xmlElementContentPtr content) -{ - PyObject *handler; - PyObject *obj; - PyObject *result; - - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "elementDecl")) { - /* TODO: wrap in an elementContent object */ - printf - ("pythonElementDecl: xmlElementContentPtr wrapper missing !\n"); - obj = Py_None; - /* Py_XINCREF(Py_None); isn't the reference just borrowed ??? */ - result = PyObject_CallMethod(handler, (char *) "elementDecl", - (char *) "siO", name, type, obj); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(result); - } -} - -static void -pythonUnparsedEntityDecl(void *user_data, - const xmlChar * name, - const xmlChar * publicId, - const xmlChar * systemId, - const xmlChar * notationName) -{ - PyObject *handler; - PyObject *result; - - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "unparsedEntityDecl")) { - result = - PyObject_CallMethod(handler, (char *) "unparsedEntityDecl", - (char *) "ssss", name, publicId, systemId, - notationName); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(result); - } -} - -static void -pythonInternalSubset(void *user_data, const xmlChar * name, - const xmlChar * ExternalID, const xmlChar * SystemID) -{ - PyObject *handler; - PyObject *result; - -#ifdef DEBUG_SAX - printf("pythonInternalSubset(%s, %s, %s) called\n", - name, ExternalID, SystemID); -#endif - handler = (PyObject *) user_data; - if (PyObject_HasAttrString(handler, (char *) "internalSubset")) { - result = PyObject_CallMethod(handler, (char *) "internalSubset", - (char *) "sss", name, ExternalID, - SystemID); - if (PyErr_Occurred()) - PyErr_Print(); - Py_XDECREF(result); - } -} - -static xmlSAXHandler pythonSaxHandler = { - pythonInternalSubset, - NULL, /* TODO pythonIsStandalone, */ - NULL, /* TODO pythonHasInternalSubset, */ - NULL, /* TODO pythonHasExternalSubset, */ - NULL, /* TODO pythonResolveEntity, */ - NULL, /* TODO pythonGetEntity, */ - pythonEntityDecl, - pythonNotationDecl, - pythonAttributeDecl, - pythonElementDecl, - pythonUnparsedEntityDecl, - NULL, /* OBSOLETED pythonSetDocumentLocator, */ - pythonStartDocument, - pythonEndDocument, - pythonStartElement, - pythonEndElement, - pythonReference, - pythonCharacters, - pythonIgnorableWhitespace, - pythonProcessingInstruction, - pythonComment, - pythonWarning, - pythonError, - pythonFatalError, - NULL, /* TODO pythonGetParameterEntity, */ - pythonCdataBlock, - pythonExternalSubset, - 1, - NULL, /* TODO mograte to SAX2 */ - NULL, - NULL, - NULL -}; - -/************************************************************************ - * * - * Handling of specific parser context * - * * - ************************************************************************/ - -PyObject * -libxml_xmlCreatePushParser(ATTRIBUTE_UNUSED PyObject * self, - PyObject * args) -{ - const char *chunk; - int size; - const char *URI; - PyObject *pyobj_SAX = NULL; - xmlSAXHandlerPtr SAX = NULL; - xmlParserCtxtPtr ret; - PyObject *pyret; - - if (!PyArg_ParseTuple - (args, (char *) "Oziz:xmlCreatePushParser", &pyobj_SAX, &chunk, - &size, &URI)) - return (NULL); - -#ifdef DEBUG - printf("libxml_xmlCreatePushParser(%p, %s, %d, %s) called\n", - pyobj_SAX, chunk, size, URI); -#endif - if (pyobj_SAX != Py_None) { - SAX = &pythonSaxHandler; - Py_INCREF(pyobj_SAX); - /* The reference is released in pythonEndDocument() */ - } - ret = xmlCreatePushParserCtxt(SAX, pyobj_SAX, chunk, size, URI); - pyret = libxml_xmlParserCtxtPtrWrap(ret); - return (pyret); -} - -PyObject * -libxml_htmlCreatePushParser(ATTRIBUTE_UNUSED PyObject * self, - PyObject * args) -{ -#ifdef LIBXML_HTML_ENABLED - const char *chunk; - int size; - const char *URI; - PyObject *pyobj_SAX = NULL; - xmlSAXHandlerPtr SAX = NULL; - xmlParserCtxtPtr ret; - PyObject *pyret; - - if (!PyArg_ParseTuple - (args, (char *) "Oziz:htmlCreatePushParser", &pyobj_SAX, &chunk, - &size, &URI)) - return (NULL); - -#ifdef DEBUG - printf("libxml_htmlCreatePushParser(%p, %s, %d, %s) called\n", - pyobj_SAX, chunk, size, URI); -#endif - if (pyobj_SAX != Py_None) { - SAX = &pythonSaxHandler; - Py_INCREF(pyobj_SAX); - /* The reference is released in pythonEndDocument() */ - } - ret = htmlCreatePushParserCtxt(SAX, pyobj_SAX, chunk, size, URI, - XML_CHAR_ENCODING_NONE); - pyret = libxml_xmlParserCtxtPtrWrap(ret); - return (pyret); -#else - Py_INCREF(Py_None); - return (Py_None); -#endif /* LIBXML_HTML_ENABLED */ -} - -PyObject * -libxml_xmlSAXParseFile(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - int recover; - const char *URI; - PyObject *pyobj_SAX = NULL; - xmlSAXHandlerPtr SAX = NULL; - - if (!PyArg_ParseTuple(args, (char *) "Osi:xmlSAXParseFile", &pyobj_SAX, - &URI, &recover)) - return (NULL); - -#ifdef DEBUG - printf("libxml_xmlSAXParseFile(%p, %s, %d) called\n", - pyobj_SAX, URI, recover); -#endif - if (pyobj_SAX == Py_None) { - Py_INCREF(Py_None); - return (Py_None); - } - SAX = &pythonSaxHandler; - Py_INCREF(pyobj_SAX); - /* The reference is released in pythonEndDocument() */ - xmlSAXUserParseFile(SAX, pyobj_SAX, URI); - Py_INCREF(Py_None); - return (Py_None); -} - -PyObject * -libxml_htmlSAXParseFile(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ -#ifdef LIBXML_HTML_ENABLED - const char *URI; - const char *encoding; - PyObject *pyobj_SAX = NULL; - xmlSAXHandlerPtr SAX = NULL; - - if (!PyArg_ParseTuple - (args, (char *) "Osz:htmlSAXParseFile", &pyobj_SAX, &URI, - &encoding)) - return (NULL); - -#ifdef DEBUG - printf("libxml_htmlSAXParseFile(%p, %s, %s) called\n", - pyobj_SAX, URI, encoding); -#endif - if (pyobj_SAX == Py_None) { - Py_INCREF(Py_None); - return (Py_None); - } - SAX = &pythonSaxHandler; - Py_INCREF(pyobj_SAX); - /* The reference is released in pythonEndDocument() */ - htmlSAXParseFile(URI, encoding, SAX, pyobj_SAX); - Py_INCREF(Py_None); - return (Py_None); -#else - Py_INCREF(Py_None); - return (Py_None); -#endif /* LIBXML_HTML_ENABLED */ -} - -/************************************************************************ - * * - * Error message callback * - * * - ************************************************************************/ - -static PyObject *libxml_xmlPythonErrorFuncHandler = NULL; -static PyObject *libxml_xmlPythonErrorFuncCtxt = NULL; - -/* helper to build a xmlMalloc'ed string from a format and va_list */ -/* - * disabled the loop, the repeated call to vsnprintf without reset of ap - * in case the initial buffer was too small segfaulted on x86_64 - * we now directly vsnprintf on a large buffer. - */ -static char * -libxml_buildMessage(const char *msg, va_list ap) -{ - int chars; - char *str; - - str = (char *) xmlMalloc(1000); - if (str == NULL) - return NULL; - - chars = vsnprintf(str, 999, msg, ap); - if (chars >= 998) - str[999] = 0; - - return str; -} - -static void -libxml_xmlErrorFuncHandler(ATTRIBUTE_UNUSED void *ctx, const char *msg, - ...) -{ - va_list ap; - PyObject *list; - PyObject *message; - PyObject *result; - char str[1000]; - -#ifdef DEBUG_ERROR - printf("libxml_xmlErrorFuncHandler(%p, %s, ...) called\n", ctx, msg); -#endif - - - if (libxml_xmlPythonErrorFuncHandler == NULL) { - va_start(ap, msg); - vfprintf(stderr, msg, ap); - va_end(ap); - } else { - va_start(ap, msg); - if (vsnprintf(str, 999, msg, ap) >= 998) - str[999] = 0; - va_end(ap); - - list = PyTuple_New(2); - PyTuple_SetItem(list, 0, libxml_xmlPythonErrorFuncCtxt); - Py_XINCREF(libxml_xmlPythonErrorFuncCtxt); - message = libxml_charPtrConstWrap(str); - PyTuple_SetItem(list, 1, message); - result = PyEval_CallObject(libxml_xmlPythonErrorFuncHandler, list); - Py_XDECREF(list); - Py_XDECREF(result); - } -} - -static void -libxml_xmlErrorInitialize(void) -{ -#ifdef DEBUG_ERROR - printf("libxml_xmlErrorInitialize() called\n"); -#endif - xmlSetGenericErrorFunc(NULL, libxml_xmlErrorFuncHandler); - xmlThrDefSetGenericErrorFunc(NULL, libxml_xmlErrorFuncHandler); -} - -static PyObject * -libxml_xmlRegisterErrorHandler(ATTRIBUTE_UNUSED PyObject * self, - PyObject * args) -{ - PyObject *py_retval; - PyObject *pyobj_f; - PyObject *pyobj_ctx; - - if (!PyArg_ParseTuple - (args, (char *) "OO:xmlRegisterErrorHandler", &pyobj_f, - &pyobj_ctx)) - return (NULL); - -#ifdef DEBUG_ERROR - printf("libxml_xmlRegisterErrorHandler(%p, %p) called\n", pyobj_ctx, - pyobj_f); -#endif - - if (libxml_xmlPythonErrorFuncHandler != NULL) { - Py_XDECREF(libxml_xmlPythonErrorFuncHandler); - } - if (libxml_xmlPythonErrorFuncCtxt != NULL) { - Py_XDECREF(libxml_xmlPythonErrorFuncCtxt); - } - - Py_XINCREF(pyobj_ctx); - Py_XINCREF(pyobj_f); - - /* TODO: check f is a function ! */ - libxml_xmlPythonErrorFuncHandler = pyobj_f; - libxml_xmlPythonErrorFuncCtxt = pyobj_ctx; - - py_retval = libxml_intWrap(1); - return (py_retval); -} - - -/************************************************************************ - * * - * Per parserCtxt error handler * - * * - ************************************************************************/ - -typedef struct -{ - PyObject *f; - PyObject *arg; -} xmlParserCtxtPyCtxt; -typedef xmlParserCtxtPyCtxt *xmlParserCtxtPyCtxtPtr; - -static void -libxml_xmlParserCtxtGenericErrorFuncHandler(void *ctx, int severity, char *str) -{ - PyObject *list; - PyObject *result; - xmlParserCtxtPtr ctxt; - xmlParserCtxtPyCtxtPtr pyCtxt; - -#ifdef DEBUG_ERROR - printf("libxml_xmlParserCtxtGenericErrorFuncHandler(%p, %s, ...) called\n", ctx, str); -#endif - - ctxt = (xmlParserCtxtPtr)ctx; - pyCtxt = (xmlParserCtxtPyCtxtPtr)ctxt->_private; - - list = PyTuple_New(4); - PyTuple_SetItem(list, 0, pyCtxt->arg); - Py_XINCREF(pyCtxt->arg); - PyTuple_SetItem(list, 1, libxml_charPtrWrap(str)); - PyTuple_SetItem(list, 2, libxml_intWrap(severity)); - PyTuple_SetItem(list, 3, Py_None); - Py_INCREF(Py_None); - result = PyEval_CallObject(pyCtxt->f, list); - if (result == NULL) - { - /* TODO: manage for the exception to be propagated... */ - PyErr_Print(); - } - Py_XDECREF(list); - Py_XDECREF(result); -} - -static void -libxml_xmlParserCtxtErrorFuncHandler(void *ctx, const char *msg, ...) -{ - va_list ap; - - va_start(ap, msg); - libxml_xmlParserCtxtGenericErrorFuncHandler(ctx,XML_PARSER_SEVERITY_ERROR,libxml_buildMessage(msg,ap)); - va_end(ap); -} - -static void -libxml_xmlParserCtxtWarningFuncHandler(void *ctx, const char *msg, ...) -{ - va_list ap; - - va_start(ap, msg); - libxml_xmlParserCtxtGenericErrorFuncHandler(ctx,XML_PARSER_SEVERITY_WARNING,libxml_buildMessage(msg,ap)); - va_end(ap); -} - -static void -libxml_xmlParserCtxtValidityErrorFuncHandler(void *ctx, const char *msg, ...) -{ - va_list ap; - - va_start(ap, msg); - libxml_xmlParserCtxtGenericErrorFuncHandler(ctx,XML_PARSER_SEVERITY_VALIDITY_ERROR,libxml_buildMessage(msg,ap)); - va_end(ap); -} - -static void -libxml_xmlParserCtxtValidityWarningFuncHandler(void *ctx, const char *msg, ...) -{ - va_list ap; - - va_start(ap, msg); - libxml_xmlParserCtxtGenericErrorFuncHandler(ctx,XML_PARSER_SEVERITY_VALIDITY_WARNING,libxml_buildMessage(msg,ap)); - va_end(ap); -} - -static PyObject * -libxml_xmlParserCtxtSetErrorHandler(ATTRIBUTE_UNUSED PyObject *self, PyObject *args) -{ - PyObject *py_retval; - xmlParserCtxtPtr ctxt; - xmlParserCtxtPyCtxtPtr pyCtxt; - PyObject *pyobj_ctxt; - PyObject *pyobj_f; - PyObject *pyobj_arg; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xmlParserCtxtSetErrorHandler", - &pyobj_ctxt, &pyobj_f, &pyobj_arg)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - if (ctxt->_private == NULL) { - pyCtxt = xmlMalloc(sizeof(xmlParserCtxtPyCtxt)); - if (pyCtxt == NULL) { - py_retval = libxml_intWrap(-1); - return(py_retval); - } - memset(pyCtxt,0,sizeof(xmlParserCtxtPyCtxt)); - ctxt->_private = pyCtxt; - } - else { - pyCtxt = (xmlParserCtxtPyCtxtPtr)ctxt->_private; - } - /* TODO: check f is a function ! */ - Py_XDECREF(pyCtxt->f); - Py_XINCREF(pyobj_f); - pyCtxt->f = pyobj_f; - Py_XDECREF(pyCtxt->arg); - Py_XINCREF(pyobj_arg); - pyCtxt->arg = pyobj_arg; - - if (pyobj_f != Py_None) { - ctxt->sax->error = libxml_xmlParserCtxtErrorFuncHandler; - ctxt->sax->warning = libxml_xmlParserCtxtWarningFuncHandler; - ctxt->vctxt.error = libxml_xmlParserCtxtValidityErrorFuncHandler; - ctxt->vctxt.warning = libxml_xmlParserCtxtValidityWarningFuncHandler; - } - else { - ctxt->sax->error = xmlParserError; - ctxt->vctxt.error = xmlParserValidityError; - ctxt->sax->warning = xmlParserWarning; - ctxt->vctxt.warning = xmlParserValidityWarning; - } - - py_retval = libxml_intWrap(1); - return(py_retval); -} - -static PyObject * -libxml_xmlParserCtxtGetErrorHandler(ATTRIBUTE_UNUSED PyObject *self, PyObject *args) -{ - PyObject *py_retval; - xmlParserCtxtPtr ctxt; - xmlParserCtxtPyCtxtPtr pyCtxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParserCtxtGetErrorHandler", - &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - py_retval = PyTuple_New(2); - if (ctxt->_private != NULL) { - pyCtxt = (xmlParserCtxtPyCtxtPtr)ctxt->_private; - - PyTuple_SetItem(py_retval, 0, pyCtxt->f); - Py_XINCREF(pyCtxt->f); - PyTuple_SetItem(py_retval, 1, pyCtxt->arg); - Py_XINCREF(pyCtxt->arg); - } - else { - /* no python error handler registered */ - PyTuple_SetItem(py_retval, 0, Py_None); - Py_XINCREF(Py_None); - PyTuple_SetItem(py_retval, 1, Py_None); - Py_XINCREF(Py_None); - } - return(py_retval); -} - -static PyObject * -libxml_xmlFreeParserCtxt(ATTRIBUTE_UNUSED PyObject *self, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlParserCtxtPyCtxtPtr pyCtxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeParserCtxt", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - if (ctxt != NULL) { - pyCtxt = (xmlParserCtxtPyCtxtPtr)((xmlParserCtxtPtr)ctxt)->_private; - if (pyCtxt) { - Py_XDECREF(pyCtxt->f); - Py_XDECREF(pyCtxt->arg); - xmlFree(pyCtxt); - } - xmlFreeParserCtxt(ctxt); - } - - Py_INCREF(Py_None); - return(Py_None); -} - -/*** - * xmlValidCtxt stuff - */ - -typedef struct -{ - PyObject *warn; - PyObject *error; - PyObject *arg; -} xmlValidCtxtPyCtxt; -typedef xmlValidCtxtPyCtxt *xmlValidCtxtPyCtxtPtr; - -static void -libxml_xmlValidCtxtGenericErrorFuncHandler(void *ctx, int severity, char *str) -{ - PyObject *list; - PyObject *result; - xmlValidCtxtPyCtxtPtr pyCtxt; - -#ifdef DEBUG_ERROR - printf("libxml_xmlValidCtxtGenericErrorFuncHandler(%p, %d, %s, ...) called\n", ctx, severity, str); -#endif - - pyCtxt = (xmlValidCtxtPyCtxtPtr)ctx; - - list = PyTuple_New(2); - PyTuple_SetItem(list, 0, libxml_charPtrWrap(str)); - PyTuple_SetItem(list, 1, pyCtxt->arg); - Py_XINCREF(pyCtxt->arg); - result = PyEval_CallObject(pyCtxt->error, list); - if (result == NULL) - { - /* TODO: manage for the exception to be propagated... */ - PyErr_Print(); - } - Py_XDECREF(list); - Py_XDECREF(result); -} - -static void -libxml_xmlValidCtxtGenericWarningFuncHandler(void *ctx, int severity, char *str) -{ - PyObject *list; - PyObject *result; - xmlValidCtxtPyCtxtPtr pyCtxt; - -#ifdef DEBUG_ERROR - printf("libxml_xmlValidCtxtGenericWarningFuncHandler(%p, %d, %s, ...) called\n", ctx, severity, str); -#endif - - pyCtxt = (xmlValidCtxtPyCtxtPtr)ctx; - - list = PyTuple_New(2); - PyTuple_SetItem(list, 0, libxml_charPtrWrap(str)); - PyTuple_SetItem(list, 1, pyCtxt->arg); - Py_XINCREF(pyCtxt->arg); - result = PyEval_CallObject(pyCtxt->warn, list); - if (result == NULL) - { - /* TODO: manage for the exception to be propagated... */ - PyErr_Print(); - } - Py_XDECREF(list); - Py_XDECREF(result); -} - -static void -libxml_xmlValidCtxtErrorFuncHandler(void *ctx, const char *msg, ...) -{ - va_list ap; - - va_start(ap, msg); - libxml_xmlValidCtxtGenericErrorFuncHandler(ctx,XML_PARSER_SEVERITY_VALIDITY_ERROR,libxml_buildMessage(msg,ap)); - va_end(ap); -} - -static void -libxml_xmlValidCtxtWarningFuncHandler(void *ctx, const char *msg, ...) -{ - va_list ap; - - va_start(ap, msg); - libxml_xmlValidCtxtGenericWarningFuncHandler(ctx,XML_PARSER_SEVERITY_VALIDITY_WARNING,libxml_buildMessage(msg,ap)); - va_end(ap); -} - -static PyObject * -libxml_xmlSetValidErrors(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *py_retval; - PyObject *pyobj_error; - PyObject *pyobj_warn; - PyObject *pyobj_ctx; - PyObject *pyobj_arg = Py_None; - xmlValidCtxtPtr ctxt; - xmlValidCtxtPyCtxtPtr pyCtxt; - - if (!PyArg_ParseTuple - (args, (char *) "OOO|O:xmlSetValidErrors", &pyobj_ctx, &pyobj_error, &pyobj_warn, &pyobj_arg)) - return (NULL); - -#ifdef DEBUG_ERROR - printf("libxml_xmlSetValidErrors(%p, %p, %p) called\n", pyobj_ctx, pyobj_error, pyobj_warn); -#endif - - ctxt = PyValidCtxt_Get(pyobj_ctx); - pyCtxt = xmlMalloc(sizeof(xmlValidCtxtPyCtxt)); - if (pyCtxt == NULL) { - py_retval = libxml_intWrap(-1); - return(py_retval); - } - memset(pyCtxt, 0, sizeof(xmlValidCtxtPyCtxt)); - - - /* TODO: check warn and error is a function ! */ - Py_XDECREF(pyCtxt->error); - Py_XINCREF(pyobj_error); - pyCtxt->error = pyobj_error; - - Py_XDECREF(pyCtxt->warn); - Py_XINCREF(pyobj_warn); - pyCtxt->warn = pyobj_warn; - - Py_XDECREF(pyCtxt->arg); - Py_XINCREF(pyobj_arg); - pyCtxt->arg = pyobj_arg; - - ctxt->error = libxml_xmlValidCtxtErrorFuncHandler; - ctxt->warning = libxml_xmlValidCtxtWarningFuncHandler; - ctxt->userData = pyCtxt; - - py_retval = libxml_intWrap(1); - return (py_retval); -} - - -static PyObject * -libxml_xmlFreeValidCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlValidCtxtPtr cur; - xmlValidCtxtPyCtxtPtr pyCtxt; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeValidCtxt", &pyobj_cur)) - return(NULL); - cur = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_cur); - - pyCtxt = (xmlValidCtxtPyCtxtPtr)(cur->userData); - if (pyCtxt != NULL) - { - Py_XDECREF(pyCtxt->error); - Py_XDECREF(pyCtxt->warn); - Py_XDECREF(pyCtxt->arg); - xmlFree(pyCtxt); - } - - xmlFreeValidCtxt(cur); - Py_INCREF(Py_None); - return(Py_None); -} - -/************************************************************************ - * * - * Per xmlTextReader error handler * - * * - ************************************************************************/ - -typedef struct -{ - PyObject *f; - PyObject *arg; -} xmlTextReaderPyCtxt; -typedef xmlTextReaderPyCtxt *xmlTextReaderPyCtxtPtr; - -static void -libxml_xmlTextReaderErrorCallback(void *arg, - const char *msg, - int severity, - xmlTextReaderLocatorPtr locator) -{ - xmlTextReaderPyCtxt *pyCtxt = (xmlTextReaderPyCtxt *)arg; - PyObject *list; - PyObject *result; - - list = PyTuple_New(4); - PyTuple_SetItem(list, 0, pyCtxt->arg); - Py_XINCREF(pyCtxt->arg); - PyTuple_SetItem(list, 1, libxml_charPtrConstWrap(msg)); - PyTuple_SetItem(list, 2, libxml_intWrap(severity)); - PyTuple_SetItem(list, 3, libxml_xmlTextReaderLocatorPtrWrap(locator)); - result = PyEval_CallObject(pyCtxt->f, list); - if (result == NULL) - { - /* TODO: manage for the exception to be propagated... */ - PyErr_Print(); - } - Py_XDECREF(list); - Py_XDECREF(result); -} - -static PyObject * -libxml_xmlTextReaderSetErrorHandler(ATTRIBUTE_UNUSED PyObject *self, PyObject *args) -{ - xmlTextReaderPtr reader; - xmlTextReaderPyCtxtPtr pyCtxt; - xmlTextReaderErrorFunc f; - void *arg; - PyObject *pyobj_reader; - PyObject *pyobj_f; - PyObject *pyobj_arg; - PyObject *py_retval; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xmlTextReaderSetErrorHandler", &pyobj_reader, &pyobj_f, &pyobj_arg)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - /* clear previous error handler */ - xmlTextReaderGetErrorHandler(reader,&f,&arg); - if (arg != NULL) { - if (f == (xmlTextReaderErrorFunc) libxml_xmlTextReaderErrorCallback) { - /* ok, it's our error handler! */ - pyCtxt = (xmlTextReaderPyCtxtPtr)arg; - Py_XDECREF(pyCtxt->f); - Py_XDECREF(pyCtxt->arg); - xmlFree(pyCtxt); - } - else { - /* - * there already an arg, and it's not ours, - * there is definitely something wrong going on here... - * we don't know how to free it, so we bail out... - */ - py_retval = libxml_intWrap(-1); - return(py_retval); - } - } - xmlTextReaderSetErrorHandler(reader,NULL,NULL); - /* set new error handler */ - if (pyobj_f != Py_None) - { - pyCtxt = (xmlTextReaderPyCtxtPtr)xmlMalloc(sizeof(xmlTextReaderPyCtxt)); - if (pyCtxt == NULL) { - py_retval = libxml_intWrap(-1); - return(py_retval); - } - Py_XINCREF(pyobj_f); - pyCtxt->f = pyobj_f; - Py_XINCREF(pyobj_arg); - pyCtxt->arg = pyobj_arg; - xmlTextReaderSetErrorHandler(reader, - (xmlTextReaderErrorFunc) libxml_xmlTextReaderErrorCallback, - pyCtxt); - } - - py_retval = libxml_intWrap(1); - return(py_retval); -} - -static PyObject * -libxml_xmlTextReaderGetErrorHandler(ATTRIBUTE_UNUSED PyObject *self, PyObject *args) -{ - xmlTextReaderPtr reader; - xmlTextReaderPyCtxtPtr pyCtxt; - xmlTextReaderErrorFunc f; - void *arg; - PyObject *pyobj_reader; - PyObject *py_retval; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderSetErrorHandler", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - xmlTextReaderGetErrorHandler(reader,&f,&arg); - py_retval = PyTuple_New(2); - if (f == (xmlTextReaderErrorFunc)libxml_xmlTextReaderErrorCallback) { - /* ok, it's our error handler! */ - pyCtxt = (xmlTextReaderPyCtxtPtr)arg; - PyTuple_SetItem(py_retval, 0, pyCtxt->f); - Py_XINCREF(pyCtxt->f); - PyTuple_SetItem(py_retval, 1, pyCtxt->arg); - Py_XINCREF(pyCtxt->arg); - } - else - { - /* f is null or it's not our error handler */ - PyTuple_SetItem(py_retval, 0, Py_None); - Py_XINCREF(Py_None); - PyTuple_SetItem(py_retval, 1, Py_None); - Py_XINCREF(Py_None); - } - return(py_retval); -} - -static PyObject * -libxml_xmlFreeTextReader(ATTRIBUTE_UNUSED PyObject *self, PyObject *args) { - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - xmlTextReaderPyCtxtPtr pyCtxt; - xmlTextReaderErrorFunc f; - void *arg; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeTextReader", &pyobj_reader)) - return(NULL); - if (!PyCObject_Check(pyobj_reader)) { - Py_INCREF(Py_None); - return(Py_None); - } - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - if (reader == NULL) { - Py_INCREF(Py_None); - return(Py_None); - } - - xmlTextReaderGetErrorHandler(reader,&f,&arg); - if (arg != NULL) { - if (f == (xmlTextReaderErrorFunc) libxml_xmlTextReaderErrorCallback) { - /* ok, it's our error handler! */ - pyCtxt = (xmlTextReaderPyCtxtPtr)arg; - Py_XDECREF(pyCtxt->f); - Py_XDECREF(pyCtxt->arg); - xmlFree(pyCtxt); - } - /* - * else, something wrong happened, because the error handler is - * not owned by the python bindings... - */ - } - - xmlFreeTextReader(reader); - Py_INCREF(Py_None); - return(Py_None); -} - -/************************************************************************ - * * - * XPath extensions * - * * - ************************************************************************/ - -static void -libxml_xmlXPathFuncCallback(xmlXPathParserContextPtr ctxt, int nargs) -{ - PyObject *list, *cur, *result; - xmlXPathObjectPtr obj; - xmlXPathContextPtr rctxt; - PyObject *current_function = NULL; - const xmlChar *name; - const xmlChar *ns_uri; - int i; - - if (ctxt == NULL) - return; - rctxt = ctxt->context; - if (rctxt == NULL) - return; - name = rctxt->function; - ns_uri = rctxt->functionURI; -#ifdef DEBUG_XPATH - printf("libxml_xmlXPathFuncCallback called name %s URI %s\n", name, - ns_uri); -#endif - - /* - * Find the function, it should be there it was there at lookup - */ - for (i = 0; i < libxml_xpathCallbacksNb; i++) { - if ( /* TODO (ctxt == libxml_xpathCallbacks[i].ctx) && */ - (xmlStrEqual(name, (*libxml_xpathCallbacks)[i].name)) && - (xmlStrEqual(ns_uri, (*libxml_xpathCallbacks)[i].ns_uri))) { - current_function = (*libxml_xpathCallbacks)[i].function; - } - } - if (current_function == NULL) { - printf - ("libxml_xmlXPathFuncCallback: internal error %s not found !\n", - name); - return; - } - - list = PyTuple_New(nargs + 1); - PyTuple_SetItem(list, 0, libxml_xmlXPathParserContextPtrWrap(ctxt)); - for (i = nargs - 1; i >= 0; i--) { - obj = valuePop(ctxt); - cur = libxml_xmlXPathObjectPtrWrap(obj); - PyTuple_SetItem(list, i + 1, cur); - } - result = PyEval_CallObject(current_function, list); - Py_DECREF(list); - - obj = libxml_xmlXPathObjectPtrConvert(result); - valuePush(ctxt, obj); -} - -static xmlXPathFunction -libxml_xmlXPathFuncLookupFunc(void *ctxt, const xmlChar * name, - const xmlChar * ns_uri) -{ - int i; - -#ifdef DEBUG_XPATH - printf("libxml_xmlXPathFuncLookupFunc(%p, %s, %s) called\n", - ctxt, name, ns_uri); -#endif - /* - * This is called once only. The address is then stored in the - * XPath expression evaluation, the proper object to call can - * then still be found using the execution context function - * and functionURI fields. - */ - for (i = 0; i < libxml_xpathCallbacksNb; i++) { - if ((ctxt == (*libxml_xpathCallbacks)[i].ctx) && - (xmlStrEqual(name, (*libxml_xpathCallbacks)[i].name)) && - (xmlStrEqual(ns_uri, (*libxml_xpathCallbacks)[i].ns_uri))) { - return (libxml_xmlXPathFuncCallback); - } - } - return (NULL); -} - -static void -libxml_xpathCallbacksInitialize(void) -{ - int i; - - if (libxml_xpathCallbacksInitialized != 0) - return; - -#ifdef DEBUG_XPATH - printf("libxml_xpathCallbacksInitialized called\n"); -#endif - libxml_xpathCallbacks = (libxml_xpathCallbackArray*)xmlMalloc( - libxml_xpathCallbacksAllocd*sizeof(libxml_xpathCallback)); - - for (i = 0; i < libxml_xpathCallbacksAllocd; i++) { - (*libxml_xpathCallbacks)[i].ctx = NULL; - (*libxml_xpathCallbacks)[i].name = NULL; - (*libxml_xpathCallbacks)[i].ns_uri = NULL; - (*libxml_xpathCallbacks)[i].function = NULL; - } - libxml_xpathCallbacksInitialized = 1; -} - -PyObject * -libxml_xmlRegisterXPathFunction(ATTRIBUTE_UNUSED PyObject * self, - PyObject * args) -{ - PyObject *py_retval; - int c_retval = 0; - xmlChar *name; - xmlChar *ns_uri; - xmlXPathContextPtr ctx; - PyObject *pyobj_ctx; - PyObject *pyobj_f; - int i; - - if (!PyArg_ParseTuple - (args, (char *) "OszO:registerXPathFunction", &pyobj_ctx, &name, - &ns_uri, &pyobj_f)) - return (NULL); - - ctx = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctx); - if (libxml_xpathCallbacksInitialized == 0) - libxml_xpathCallbacksInitialize(); - xmlXPathRegisterFuncLookup(ctx, libxml_xmlXPathFuncLookupFunc, ctx); - - if ((pyobj_ctx == NULL) || (name == NULL) || (pyobj_f == NULL)) { - py_retval = libxml_intWrap(-1); - return (py_retval); - } -#ifdef DEBUG_XPATH - printf("libxml_registerXPathFunction(%p, %s, %s) called\n", - ctx, name, ns_uri); -#endif - for (i = 0; i < libxml_xpathCallbacksNb; i++) { - if ((ctx == (*libxml_xpathCallbacks)[i].ctx) && - (xmlStrEqual(name, (*libxml_xpathCallbacks)[i].name)) && - (xmlStrEqual(ns_uri, (*libxml_xpathCallbacks)[i].ns_uri))) { - Py_XINCREF(pyobj_f); - Py_XDECREF((*libxml_xpathCallbacks)[i].function); - (*libxml_xpathCallbacks)[i].function = pyobj_f; - c_retval = 1; - goto done; - } - } - if (libxml_xpathCallbacksNb >= libxml_xpathCallbacksAllocd) { - libxml_xpathCallbacksAllocd+=10; - libxml_xpathCallbacks = (libxml_xpathCallbackArray*)xmlRealloc( - libxml_xpathCallbacks, - libxml_xpathCallbacksAllocd*sizeof(libxml_xpathCallback)); - } - i = libxml_xpathCallbacksNb++; - Py_XINCREF(pyobj_f); - (*libxml_xpathCallbacks)[i].ctx = ctx; - (*libxml_xpathCallbacks)[i].name = xmlStrdup(name); - (*libxml_xpathCallbacks)[i].ns_uri = xmlStrdup(ns_uri); - (*libxml_xpathCallbacks)[i].function = pyobj_f; - c_retval = 1; - - done: - py_retval = libxml_intWrap((int) c_retval); - return (py_retval); -} - -/************************************************************************ - * * - * Global properties access * - * * - ************************************************************************/ -static PyObject * -libxml_name(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *resultobj, *obj; - xmlNodePtr cur; - const xmlChar *res; - - if (!PyArg_ParseTuple(args, (char *) "O:name", &obj)) - return NULL; - cur = PyxmlNode_Get(obj); - -#ifdef DEBUG - printf("libxml_name: cur = %p type %d\n", cur, cur->type); -#endif - - switch (cur->type) { - case XML_DOCUMENT_NODE: -#ifdef LIBXML_DOCB_ENABLED - case XML_DOCB_DOCUMENT_NODE: -#endif - case XML_HTML_DOCUMENT_NODE:{ - xmlDocPtr doc = (xmlDocPtr) cur; - - res = doc->URL; - break; - } - case XML_ATTRIBUTE_NODE:{ - xmlAttrPtr attr = (xmlAttrPtr) cur; - - res = attr->name; - break; - } - case XML_NAMESPACE_DECL:{ - xmlNsPtr ns = (xmlNsPtr) cur; - - res = ns->prefix; - break; - } - default: - res = cur->name; - break; - } - resultobj = libxml_constxmlCharPtrWrap(res); - - return resultobj; -} - -static PyObject * -libxml_doc(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *resultobj, *obj; - xmlNodePtr cur; - xmlDocPtr res; - - if (!PyArg_ParseTuple(args, (char *) "O:doc", &obj)) - return NULL; - cur = PyxmlNode_Get(obj); - -#ifdef DEBUG - printf("libxml_doc: cur = %p\n", cur); -#endif - - switch (cur->type) { - case XML_DOCUMENT_NODE: -#ifdef LIBXML_DOCB_ENABLED - case XML_DOCB_DOCUMENT_NODE: -#endif - case XML_HTML_DOCUMENT_NODE: - res = NULL; - break; - case XML_ATTRIBUTE_NODE:{ - xmlAttrPtr attr = (xmlAttrPtr) cur; - - res = attr->doc; - break; - } - case XML_NAMESPACE_DECL: - res = NULL; - break; - default: - res = cur->doc; - break; - } - resultobj = libxml_xmlDocPtrWrap(res); - return resultobj; -} - -static PyObject * -libxml_properties(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *resultobj, *obj; - xmlNodePtr cur; - xmlAttrPtr res; - - if (!PyArg_ParseTuple(args, (char *) "O:properties", &obj)) - return NULL; - cur = PyxmlNode_Get(obj); - if ((cur != NULL) && (cur->type == XML_ELEMENT_NODE)) - res = cur->properties; - else - res = NULL; - resultobj = libxml_xmlAttrPtrWrap(res); - return resultobj; -} - -static PyObject * -libxml_next(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *resultobj, *obj; - xmlNodePtr cur; - xmlNodePtr res; - - if (!PyArg_ParseTuple(args, (char *) "O:next", &obj)) - return NULL; - cur = PyxmlNode_Get(obj); - -#ifdef DEBUG - printf("libxml_next: cur = %p\n", cur); -#endif - - switch (cur->type) { - case XML_DOCUMENT_NODE: -#ifdef LIBXML_DOCB_ENABLED - case XML_DOCB_DOCUMENT_NODE: -#endif - case XML_HTML_DOCUMENT_NODE: - res = NULL; - break; - case XML_ATTRIBUTE_NODE:{ - xmlAttrPtr attr = (xmlAttrPtr) cur; - - res = (xmlNodePtr) attr->next; - break; - } - case XML_NAMESPACE_DECL:{ - xmlNsPtr ns = (xmlNsPtr) cur; - - res = (xmlNodePtr) ns->next; - break; - } - default: - res = cur->next; - break; - - } - resultobj = libxml_xmlNodePtrWrap(res); - return resultobj; -} - -static PyObject * -libxml_prev(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *resultobj, *obj; - xmlNodePtr cur; - xmlNodePtr res; - - if (!PyArg_ParseTuple(args, (char *) "O:prev", &obj)) - return NULL; - cur = PyxmlNode_Get(obj); - -#ifdef DEBUG - printf("libxml_prev: cur = %p\n", cur); -#endif - - switch (cur->type) { - case XML_DOCUMENT_NODE: -#ifdef LIBXML_DOCB_ENABLED - case XML_DOCB_DOCUMENT_NODE: -#endif - case XML_HTML_DOCUMENT_NODE: - res = NULL; - break; - case XML_ATTRIBUTE_NODE:{ - xmlAttrPtr attr = (xmlAttrPtr) cur; - - res = (xmlNodePtr) attr->prev; - } - case XML_NAMESPACE_DECL: - res = NULL; - break; - default: - res = cur->prev; - break; - } - resultobj = libxml_xmlNodePtrWrap(res); - return resultobj; -} - -static PyObject * -libxml_children(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *resultobj, *obj; - xmlNodePtr cur; - xmlNodePtr res; - - if (!PyArg_ParseTuple(args, (char *) "O:children", &obj)) - return NULL; - cur = PyxmlNode_Get(obj); - -#ifdef DEBUG - printf("libxml_children: cur = %p\n", cur); -#endif - - switch (cur->type) { - case XML_ELEMENT_NODE: - case XML_ENTITY_REF_NODE: - case XML_ENTITY_NODE: - case XML_PI_NODE: - case XML_COMMENT_NODE: - case XML_DOCUMENT_NODE: -#ifdef LIBXML_DOCB_ENABLED - case XML_DOCB_DOCUMENT_NODE: -#endif - case XML_HTML_DOCUMENT_NODE: - case XML_DTD_NODE: - res = cur->children; - break; - case XML_ATTRIBUTE_NODE:{ - xmlAttrPtr attr = (xmlAttrPtr) cur; - - res = attr->children; - break; - } - default: - res = NULL; - break; - } - resultobj = libxml_xmlNodePtrWrap(res); - return resultobj; -} - -static PyObject * -libxml_last(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *resultobj, *obj; - xmlNodePtr cur; - xmlNodePtr res; - - if (!PyArg_ParseTuple(args, (char *) "O:last", &obj)) - return NULL; - cur = PyxmlNode_Get(obj); - -#ifdef DEBUG - printf("libxml_last: cur = %p\n", cur); -#endif - - switch (cur->type) { - case XML_ELEMENT_NODE: - case XML_ENTITY_REF_NODE: - case XML_ENTITY_NODE: - case XML_PI_NODE: - case XML_COMMENT_NODE: - case XML_DOCUMENT_NODE: -#ifdef LIBXML_DOCB_ENABLED - case XML_DOCB_DOCUMENT_NODE: -#endif - case XML_HTML_DOCUMENT_NODE: - case XML_DTD_NODE: - res = cur->last; - break; - case XML_ATTRIBUTE_NODE:{ - xmlAttrPtr attr = (xmlAttrPtr) cur; - - res = attr->last; - } - default: - res = NULL; - break; - } - resultobj = libxml_xmlNodePtrWrap(res); - return resultobj; -} - -static PyObject * -libxml_parent(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *resultobj, *obj; - xmlNodePtr cur; - xmlNodePtr res; - - if (!PyArg_ParseTuple(args, (char *) "O:parent", &obj)) - return NULL; - cur = PyxmlNode_Get(obj); - -#ifdef DEBUG - printf("libxml_parent: cur = %p\n", cur); -#endif - - switch (cur->type) { - case XML_DOCUMENT_NODE: - case XML_HTML_DOCUMENT_NODE: -#ifdef LIBXML_DOCB_ENABLED - case XML_DOCB_DOCUMENT_NODE: -#endif - res = NULL; - break; - case XML_ATTRIBUTE_NODE:{ - xmlAttrPtr attr = (xmlAttrPtr) cur; - - res = attr->parent; - } - break; - case XML_ENTITY_DECL: - case XML_NAMESPACE_DECL: - case XML_XINCLUDE_START: - case XML_XINCLUDE_END: - res = NULL; - break; - default: - res = cur->parent; - break; - } - resultobj = libxml_xmlNodePtrWrap(res); - return resultobj; -} - -static PyObject * -libxml_type(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *resultobj, *obj; - xmlNodePtr cur; - const xmlChar *res = NULL; - - if (!PyArg_ParseTuple(args, (char *) "O:last", &obj)) - return NULL; - cur = PyxmlNode_Get(obj); - -#ifdef DEBUG - printf("libxml_type: cur = %p\n", cur); -#endif - - switch (cur->type) { - case XML_ELEMENT_NODE: - res = (const xmlChar *) "element"; - break; - case XML_ATTRIBUTE_NODE: - res = (const xmlChar *) "attribute"; - break; - case XML_TEXT_NODE: - res = (const xmlChar *) "text"; - break; - case XML_CDATA_SECTION_NODE: - res = (const xmlChar *) "cdata"; - break; - case XML_ENTITY_REF_NODE: - res = (const xmlChar *) "entity_ref"; - break; - case XML_ENTITY_NODE: - res = (const xmlChar *) "entity"; - break; - case XML_PI_NODE: - res = (const xmlChar *) "pi"; - break; - case XML_COMMENT_NODE: - res = (const xmlChar *) "comment"; - break; - case XML_DOCUMENT_NODE: - res = (const xmlChar *) "document_xml"; - break; - case XML_DOCUMENT_TYPE_NODE: - res = (const xmlChar *) "doctype"; - break; - case XML_DOCUMENT_FRAG_NODE: - res = (const xmlChar *) "fragment"; - break; - case XML_NOTATION_NODE: - res = (const xmlChar *) "notation"; - break; - case XML_HTML_DOCUMENT_NODE: - res = (const xmlChar *) "document_html"; - break; - case XML_DTD_NODE: - res = (const xmlChar *) "dtd"; - break; - case XML_ELEMENT_DECL: - res = (const xmlChar *) "elem_decl"; - break; - case XML_ATTRIBUTE_DECL: - res = (const xmlChar *) "attribute_decl"; - break; - case XML_ENTITY_DECL: - res = (const xmlChar *) "entity_decl"; - break; - case XML_NAMESPACE_DECL: - res = (const xmlChar *) "namespace"; - break; - case XML_XINCLUDE_START: - res = (const xmlChar *) "xinclude_start"; - break; - case XML_XINCLUDE_END: - res = (const xmlChar *) "xinclude_end"; - break; -#ifdef LIBXML_DOCB_ENABLED - case XML_DOCB_DOCUMENT_NODE: - res = (const xmlChar *) "document_docbook"; - break; -#endif - } -#ifdef DEBUG - printf("libxml_type: cur = %p: %s\n", cur, res); -#endif - - resultobj = libxml_constxmlCharPtrWrap(res); - return resultobj; -} - -/************************************************************************ - * * - * Specific accessor functions * - * * - ************************************************************************/ -PyObject * -libxml_xmlNodeGetNsDefs(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *py_retval; - xmlNsPtr c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple - (args, (char *) "O:xmlNodeGetNsDefs", &pyobj_node)) - return (NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - if ((node == NULL) || (node->type != XML_ELEMENT_NODE)) { - Py_INCREF(Py_None); - return (Py_None); - } - c_retval = node->nsDef; - py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval); - return (py_retval); -} - -PyObject * -libxml_xmlNodeRemoveNsDef(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *py_retval; - xmlNsPtr ns, prev; - xmlNodePtr node; - PyObject *pyobj_node; - xmlChar *href; - xmlNsPtr c_retval; - - if (!PyArg_ParseTuple - (args, (char *) "Oz:xmlNodeRemoveNsDef", &pyobj_node, &href)) - return (NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - ns = NULL; - - if ((node == NULL) || (node->type != XML_ELEMENT_NODE)) { - Py_INCREF(Py_None); - return (Py_None); - } - - if (href == NULL) { - ns = node->nsDef; - node->nsDef = NULL; - c_retval = 0; - } - else { - prev = NULL; - ns = node->nsDef; - while (ns != NULL) { - if (xmlStrEqual(ns->href, href)) { - if (prev != NULL) - prev->next = ns->next; - else - node->nsDef = ns->next; - ns->next = NULL; - c_retval = 0; - break; - } - prev = ns; - ns = ns->next; - } - } - - c_retval = ns; - py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval); - return (py_retval); -} - -PyObject * -libxml_xmlNodeGetNs(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *py_retval; - xmlNsPtr c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *) "O:xmlNodeGetNs", &pyobj_node)) - return (NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - if ((node == NULL) || - ((node->type != XML_ELEMENT_NODE) && - (node->type != XML_ATTRIBUTE_NODE))) { - Py_INCREF(Py_None); - return (Py_None); - } - c_retval = node->ns; - py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval); - return (py_retval); -} - -#ifdef LIBXML_OUTPUT_ENABLED -/************************************************************************ - * * - * Serialization front-end * - * * - ************************************************************************/ - -static PyObject * -libxml_serializeNode(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *py_retval = NULL; - xmlChar *c_retval; - PyObject *pyobj_node; - xmlNodePtr node; - xmlDocPtr doc; - const char *encoding; - int format; - int len; - - if (!PyArg_ParseTuple(args, (char *) "Ozi:serializeNode", &pyobj_node, - &encoding, &format)) - return (NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - if (node == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - if (node->type == XML_DOCUMENT_NODE) { - doc = (xmlDocPtr) node; - xmlDocDumpFormatMemoryEnc(doc, &c_retval, &len, - (const char *) encoding, format); - py_retval = libxml_charPtrWrap((char *) c_retval); -#ifdef LIBXML_HTML_ENABLED - } else if (node->type == XML_HTML_DOCUMENT_NODE) { - xmlOutputBufferPtr buf; - xmlCharEncodingHandlerPtr handler = NULL; - - doc = (xmlDocPtr) node; - if (encoding != NULL) - htmlSetMetaEncoding(doc, (const xmlChar *) encoding); - encoding = (const char *) htmlGetMetaEncoding(doc); - - if (encoding != NULL) { - handler = xmlFindCharEncodingHandler(encoding); - if (handler == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - } - - /* - * Fallback to HTML or ASCII when the encoding is unspecified - */ - if (handler == NULL) - handler = xmlFindCharEncodingHandler("HTML"); - if (handler == NULL) - handler = xmlFindCharEncodingHandler("ascii"); - - buf = xmlAllocOutputBuffer(handler); - if (buf == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - htmlDocContentDumpFormatOutput(buf, doc, encoding, format); - xmlOutputBufferFlush(buf); - if (buf->conv != NULL) { - len = buf->conv->use; - c_retval = buf->conv->content; - buf->conv->content = NULL; - } else { - len = buf->buffer->use; - c_retval = buf->buffer->content; - buf->buffer->content = NULL; - } - (void) xmlOutputBufferClose(buf); - py_retval = libxml_charPtrWrap((char *) c_retval); -#endif /* LIBXML_HTML_ENABLED */ - } else { - if (node->type == XML_NAMESPACE_DECL) - doc = NULL; - else - doc = node->doc; - if ((doc == NULL) || (doc->type == XML_DOCUMENT_NODE)) { - xmlOutputBufferPtr buf; - xmlCharEncodingHandlerPtr handler = NULL; - - if (encoding != NULL) { - handler = xmlFindCharEncodingHandler(encoding); - if (handler == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - } - - buf = xmlAllocOutputBuffer(handler); - if (buf == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - xmlNodeDumpOutput(buf, doc, node, 0, format, encoding); - xmlOutputBufferFlush(buf); - if (buf->conv != NULL) { - len = buf->conv->use; - c_retval = buf->conv->content; - buf->conv->content = NULL; - } else { - len = buf->buffer->use; - c_retval = buf->buffer->content; - buf->buffer->content = NULL; - } - (void) xmlOutputBufferClose(buf); - py_retval = libxml_charPtrWrap((char *) c_retval); -#ifdef LIBXML_HTML_ENABLED - } else if (doc->type == XML_HTML_DOCUMENT_NODE) { - xmlOutputBufferPtr buf; - xmlCharEncodingHandlerPtr handler = NULL; - - if (encoding != NULL) - htmlSetMetaEncoding(doc, (const xmlChar *) encoding); - encoding = (const char *) htmlGetMetaEncoding(doc); - if (encoding != NULL) { - handler = xmlFindCharEncodingHandler(encoding); - if (handler == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - } - - /* - * Fallback to HTML or ASCII when the encoding is unspecified - */ - if (handler == NULL) - handler = xmlFindCharEncodingHandler("HTML"); - if (handler == NULL) - handler = xmlFindCharEncodingHandler("ascii"); - - buf = xmlAllocOutputBuffer(handler); - if (buf == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - htmlNodeDumpFormatOutput(buf, doc, node, encoding, format); - xmlOutputBufferFlush(buf); - if (buf->conv != NULL) { - len = buf->conv->use; - c_retval = buf->conv->content; - buf->conv->content = NULL; - } else { - len = buf->buffer->use; - c_retval = buf->buffer->content; - buf->buffer->content = NULL; - } - (void) xmlOutputBufferClose(buf); - py_retval = libxml_charPtrWrap((char *) c_retval); -#endif /* LIBXML_HTML_ENABLED */ - } else { - Py_INCREF(Py_None); - return (Py_None); - } - } - return (py_retval); -} - -static PyObject * -libxml_saveNodeTo(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *py_file = NULL; - FILE *output; - PyObject *pyobj_node; - xmlNodePtr node; - xmlDocPtr doc; - const char *encoding; - int format; - int len; - xmlOutputBufferPtr buf; - xmlCharEncodingHandlerPtr handler = NULL; - - if (!PyArg_ParseTuple(args, (char *) "OOzi:serializeNode", &pyobj_node, - &py_file, &encoding, &format)) - return (NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - if (node == NULL) { - return (PyInt_FromLong((long) -1)); - } - if ((py_file == NULL) || (!(PyFile_Check(py_file)))) { - return (PyInt_FromLong((long) -1)); - } - output = PyFile_AsFile(py_file); - if (output == NULL) { - return (PyInt_FromLong((long) -1)); - } - - if (node->type == XML_DOCUMENT_NODE) { - doc = (xmlDocPtr) node; - } else if (node->type == XML_HTML_DOCUMENT_NODE) { - doc = (xmlDocPtr) node; - } else { - doc = node->doc; - } -#ifdef LIBXML_HTML_ENABLED - if (doc->type == XML_HTML_DOCUMENT_NODE) { - if (encoding == NULL) - encoding = (const char *) htmlGetMetaEncoding(doc); - } -#endif /* LIBXML_HTML_ENABLED */ - if (encoding != NULL) { - handler = xmlFindCharEncodingHandler(encoding); - if (handler == NULL) { - return (PyInt_FromLong((long) -1)); - } - } - if (doc->type == XML_HTML_DOCUMENT_NODE) { - if (handler == NULL) - handler = xmlFindCharEncodingHandler("HTML"); - if (handler == NULL) - handler = xmlFindCharEncodingHandler("ascii"); - } - - buf = xmlOutputBufferCreateFile(output, handler); - if (node->type == XML_DOCUMENT_NODE) { - len = xmlSaveFormatFileTo(buf, doc, encoding, format); -#ifdef LIBXML_HTML_ENABLED - } else if (node->type == XML_HTML_DOCUMENT_NODE) { - htmlDocContentDumpFormatOutput(buf, doc, encoding, format); - len = xmlOutputBufferClose(buf); - } else if (doc->type == XML_HTML_DOCUMENT_NODE) { - htmlNodeDumpFormatOutput(buf, doc, node, encoding, format); - len = xmlOutputBufferClose(buf); -#endif /* LIBXML_HTML_ENABLED */ - } else { - xmlNodeDumpOutput(buf, doc, node, 0, format, encoding); - len = xmlOutputBufferClose(buf); - } - return (PyInt_FromLong((long) len)); -} -#endif /* LIBXML_OUTPUT_ENABLED */ - -/************************************************************************ - * * - * Extra stuff * - * * - ************************************************************************/ -PyObject * -libxml_xmlNewNode(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *py_retval; - xmlChar *name; - xmlNodePtr node; - - if (!PyArg_ParseTuple(args, (char *) "s:xmlNewNode", &name)) - return (NULL); - node = (xmlNodePtr) xmlNewNode(NULL, name); -#ifdef DEBUG - printf("NewNode: %s : %p\n", name, (void *) node); -#endif - - if (node == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - py_retval = libxml_xmlNodePtrWrap(node); - return (py_retval); -} - - -/************************************************************************ - * * - * Local Catalog stuff * - * * - ************************************************************************/ -static PyObject * -libxml_addLocalCatalog(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - xmlChar *URL; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"Os:addLocalCatalog", &pyobj_ctxt, &URL)) - return(NULL); - - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - if (URL != NULL) { - ctxt->catalogs = xmlCatalogAddLocal(ctxt->catalogs, URL); - } - -#ifdef DEBUG - printf("LocalCatalog: %s\n", URL); -#endif - - Py_INCREF(Py_None); - return (Py_None); -} - -#ifdef LIBXML_SCHEMAS_ENABLED - -/************************************************************************ - * * - * RelaxNG error handler registration * - * * - ************************************************************************/ - -typedef struct -{ - PyObject *warn; - PyObject *error; - PyObject *arg; -} xmlRelaxNGValidCtxtPyCtxt; -typedef xmlRelaxNGValidCtxtPyCtxt *xmlRelaxNGValidCtxtPyCtxtPtr; - -static void -libxml_xmlRelaxNGValidityGenericErrorFuncHandler(void *ctx, char *str) -{ - PyObject *list; - PyObject *result; - xmlRelaxNGValidCtxtPyCtxtPtr pyCtxt; - -#ifdef DEBUG_ERROR - printf("libxml_xmlRelaxNGValidityGenericErrorFuncHandler(%p, %s, ...) called\n", ctx, str); -#endif - - pyCtxt = (xmlRelaxNGValidCtxtPyCtxtPtr)ctx; - - list = PyTuple_New(2); - PyTuple_SetItem(list, 0, libxml_charPtrWrap(str)); - PyTuple_SetItem(list, 1, pyCtxt->arg); - Py_XINCREF(pyCtxt->arg); - result = PyEval_CallObject(pyCtxt->error, list); - if (result == NULL) - { - /* TODO: manage for the exception to be propagated... */ - PyErr_Print(); - } - Py_XDECREF(list); - Py_XDECREF(result); -} - -static void -libxml_xmlRelaxNGValidityGenericWarningFuncHandler(void *ctx, char *str) -{ - PyObject *list; - PyObject *result; - xmlRelaxNGValidCtxtPyCtxtPtr pyCtxt; - -#ifdef DEBUG_ERROR - printf("libxml_xmlRelaxNGValidityGenericWarningFuncHandler(%p, %s, ...) called\n", ctx, str); -#endif - - pyCtxt = (xmlRelaxNGValidCtxtPyCtxtPtr)ctx; - - list = PyTuple_New(2); - PyTuple_SetItem(list, 0, libxml_charPtrWrap(str)); - PyTuple_SetItem(list, 1, pyCtxt->arg); - Py_XINCREF(pyCtxt->arg); - result = PyEval_CallObject(pyCtxt->warn, list); - if (result == NULL) - { - /* TODO: manage for the exception to be propagated... */ - PyErr_Print(); - } - Py_XDECREF(list); - Py_XDECREF(result); -} - -static void -libxml_xmlRelaxNGValidityErrorFunc(void *ctx, const char *msg, ...) -{ - va_list ap; - - va_start(ap, msg); - libxml_xmlRelaxNGValidityGenericErrorFuncHandler(ctx, libxml_buildMessage(msg, ap)); - va_end(ap); -} - -static void -libxml_xmlRelaxNGValidityWarningFunc(void *ctx, const char *msg, ...) -{ - va_list ap; - - va_start(ap, msg); - libxml_xmlRelaxNGValidityGenericWarningFuncHandler(ctx, libxml_buildMessage(msg, ap)); - va_end(ap); -} - -static PyObject * -libxml_xmlRelaxNGSetValidErrors(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *py_retval; - PyObject *pyobj_error; - PyObject *pyobj_warn; - PyObject *pyobj_ctx; - PyObject *pyobj_arg = Py_None; - xmlRelaxNGValidCtxtPtr ctxt; - xmlRelaxNGValidCtxtPyCtxtPtr pyCtxt; - - if (!PyArg_ParseTuple - (args, (char *) "OOO|O:xmlRelaxNGSetValidErrors", &pyobj_ctx, &pyobj_error, &pyobj_warn, &pyobj_arg)) - return (NULL); - -#ifdef DEBUG_ERROR - printf("libxml_xmlRelaxNGSetValidErrors(%p, %p, %p) called\n", pyobj_ctx, pyobj_error, pyobj_warn); -#endif - - ctxt = PyrelaxNgValidCtxt_Get(pyobj_ctx); - if (xmlRelaxNGGetValidErrors(ctxt, NULL, NULL, (void **) &pyCtxt) == -1) - { - py_retval = libxml_intWrap(-1); - return(py_retval); - } - - if (pyCtxt == NULL) - { - /* first time to set the error handlers */ - pyCtxt = xmlMalloc(sizeof(xmlRelaxNGValidCtxtPyCtxt)); - if (pyCtxt == NULL) { - py_retval = libxml_intWrap(-1); - return(py_retval); - } - memset(pyCtxt, 0, sizeof(xmlRelaxNGValidCtxtPyCtxt)); - } - - /* TODO: check warn and error is a function ! */ - Py_XDECREF(pyCtxt->error); - Py_XINCREF(pyobj_error); - pyCtxt->error = pyobj_error; - - Py_XDECREF(pyCtxt->warn); - Py_XINCREF(pyobj_warn); - pyCtxt->warn = pyobj_warn; - - Py_XDECREF(pyCtxt->arg); - Py_XINCREF(pyobj_arg); - pyCtxt->arg = pyobj_arg; - - xmlRelaxNGSetValidErrors(ctxt, &libxml_xmlRelaxNGValidityErrorFunc, &libxml_xmlRelaxNGValidityWarningFunc, pyCtxt); - - py_retval = libxml_intWrap(1); - return (py_retval); -} - -static PyObject * -libxml_xmlRelaxNGFreeValidCtxt(ATTRIBUTE_UNUSED PyObject *self, PyObject *args) { - xmlRelaxNGValidCtxtPtr ctxt; - xmlRelaxNGValidCtxtPyCtxtPtr pyCtxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlRelaxNGFreeValidCtxt", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlRelaxNGValidCtxtPtr) PyrelaxNgValidCtxt_Get(pyobj_ctxt); - - if (xmlRelaxNGGetValidErrors(ctxt, NULL, NULL, (void **) &pyCtxt) == 0) - { - if (pyCtxt != NULL) - { - Py_XDECREF(pyCtxt->error); - Py_XDECREF(pyCtxt->warn); - Py_XDECREF(pyCtxt->arg); - xmlFree(pyCtxt); - } - } - - xmlRelaxNGFreeValidCtxt(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -typedef struct -{ - PyObject *warn; - PyObject *error; - PyObject *arg; -} xmlSchemaValidCtxtPyCtxt; -typedef xmlSchemaValidCtxtPyCtxt *xmlSchemaValidCtxtPyCtxtPtr; - -static void -libxml_xmlSchemaValidityGenericErrorFuncHandler(void *ctx, char *str) -{ - PyObject *list; - PyObject *result; - xmlSchemaValidCtxtPyCtxtPtr pyCtxt; - -#ifdef DEBUG_ERROR - printf("libxml_xmlSchemaValiditiyGenericErrorFuncHandler(%p, %s, ...) called\n", ctx, str); -#endif - - pyCtxt = (xmlSchemaValidCtxtPyCtxtPtr) ctx; - - list = PyTuple_New(2); - PyTuple_SetItem(list, 0, libxml_charPtrWrap(str)); - PyTuple_SetItem(list, 1, pyCtxt->arg); - Py_XINCREF(pyCtxt->arg); - result = PyEval_CallObject(pyCtxt->error, list); - if (result == NULL) - { - /* TODO: manage for the exception to be propagated... */ - PyErr_Print(); - } - Py_XDECREF(list); - Py_XDECREF(result); -} - -static void -libxml_xmlSchemaValidityGenericWarningFuncHandler(void *ctx, char *str) -{ - PyObject *list; - PyObject *result; - xmlSchemaValidCtxtPyCtxtPtr pyCtxt; - -#ifdef DEBUG_ERROR - printf("libxml_xmlSchemaValidityGenericWarningFuncHandler(%p, %s, ...) called\n", ctx, str); -#endif - - pyCtxt = (xmlSchemaValidCtxtPyCtxtPtr) ctx; - - list = PyTuple_New(2); - PyTuple_SetItem(list, 0, libxml_charPtrWrap(str)); - PyTuple_SetItem(list, 1, pyCtxt->arg); - Py_XINCREF(pyCtxt->arg); - result = PyEval_CallObject(pyCtxt->warn, list); - if (result == NULL) - { - /* TODO: manage for the exception to be propagated... */ - PyErr_Print(); - } - Py_XDECREF(list); - Py_XDECREF(result); -} - -static void -libxml_xmlSchemaValidityErrorFunc(void *ctx, const char *msg, ...) -{ - va_list ap; - - va_start(ap, msg); - libxml_xmlSchemaValidityGenericErrorFuncHandler(ctx, libxml_buildMessage(msg, ap)); - va_end(ap); -} - -static void -libxml_xmlSchemaValidityWarningFunc(void *ctx, const char *msg, ...) -{ - va_list ap; - - va_start(ap, msg); - libxml_xmlSchemaValidityGenericWarningFuncHandler(ctx, libxml_buildMessage(msg, ap)); - va_end(ap); -} - -PyObject * -libxml_xmlSchemaSetValidErrors(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - PyObject *py_retval; - PyObject *pyobj_error; - PyObject *pyobj_warn; - PyObject *pyobj_ctx; - PyObject *pyobj_arg = Py_None; - xmlSchemaValidCtxtPtr ctxt; - xmlSchemaValidCtxtPyCtxtPtr pyCtxt; - - if (!PyArg_ParseTuple - (args, (char *) "OOO|O:xmlSchemaSetValidErrors", &pyobj_ctx, &pyobj_error, &pyobj_warn, &pyobj_arg)) - return (NULL); - -#ifdef DEBUG_ERROR - printf("libxml_xmlSchemaSetValidErrors(%p, %p, %p) called\n", pyobj_ctx, pyobj_error, pyobj_warn); -#endif - - ctxt = PySchemaValidCtxt_Get(pyobj_ctx); - if (xmlSchemaGetValidErrors(ctxt, NULL, NULL, (void **) &pyCtxt) == -1) - { - py_retval = libxml_intWrap(-1); - return(py_retval); - } - - if (pyCtxt == NULL) - { - /* first time to set the error handlers */ - pyCtxt = xmlMalloc(sizeof(xmlSchemaValidCtxtPyCtxt)); - if (pyCtxt == NULL) { - py_retval = libxml_intWrap(-1); - return(py_retval); - } - memset(pyCtxt, 0, sizeof(xmlSchemaValidCtxtPyCtxt)); - } - - /* TODO: check warn and error is a function ! */ - Py_XDECREF(pyCtxt->error); - Py_XINCREF(pyobj_error); - pyCtxt->error = pyobj_error; - - Py_XDECREF(pyCtxt->warn); - Py_XINCREF(pyobj_warn); - pyCtxt->warn = pyobj_warn; - - Py_XDECREF(pyCtxt->arg); - Py_XINCREF(pyobj_arg); - pyCtxt->arg = pyobj_arg; - - xmlSchemaSetValidErrors(ctxt, &libxml_xmlSchemaValidityErrorFunc, &libxml_xmlSchemaValidityWarningFunc, pyCtxt); - - py_retval = libxml_intWrap(1); - return(py_retval); -} - -static PyObject * -libxml_xmlSchemaFreeValidCtxt(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) -{ - xmlSchemaValidCtxtPtr ctxt; - xmlSchemaValidCtxtPyCtxtPtr pyCtxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaFreeValidCtxt", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt); - - if (xmlSchemaGetValidErrors(ctxt, NULL, NULL, (void **) &pyCtxt) == 0) - { - if (pyCtxt != NULL) - { - Py_XDECREF(pyCtxt->error); - Py_XDECREF(pyCtxt->warn); - Py_XDECREF(pyCtxt->arg); - xmlFree(pyCtxt); - } - } - - xmlSchemaFreeValidCtxt(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif - -#ifdef LIBXML_C14N_ENABLED -#ifdef LIBXML_OUTPUT_ENABLED - -/************************************************************************ - * * - * XML Canonicalization c14n * - * * - ************************************************************************/ - -static int -PyxmlNodeSet_Convert(PyObject *py_nodeset, xmlNodeSetPtr *result) -{ - xmlNodeSetPtr nodeSet; - int is_tuple = 0; - - if (PyTuple_Check(py_nodeset)) - is_tuple = 1; - else if (PyList_Check(py_nodeset)) - is_tuple = 0; - else if (py_nodeset == Py_None) { - *result = NULL; - return 0; - } - else { - PyErr_SetString(PyExc_TypeError, - "must be a tuple or list of nodes."); - return -1; - } - - nodeSet = (xmlNodeSetPtr) xmlMalloc(sizeof(xmlNodeSet)); - if (nodeSet == NULL) { - PyErr_SetString(PyExc_MemoryError, ""); - return -1; - } - - nodeSet->nodeNr = 0; - nodeSet->nodeMax = (is_tuple - ? PyTuple_GET_SIZE(py_nodeset) - : PyList_GET_SIZE(py_nodeset)); - nodeSet->nodeTab - = (xmlNodePtr *) xmlMalloc (nodeSet->nodeMax - * sizeof(xmlNodePtr)); - if (nodeSet->nodeTab == NULL) { - xmlFree(nodeSet); - PyErr_SetString(PyExc_MemoryError, ""); - return -1; - } - memset(nodeSet->nodeTab, 0 , - nodeSet->nodeMax * sizeof(xmlNodePtr)); - - { - int idx; - for (idx=0; idx < nodeSet->nodeMax; ++idx) { - xmlNodePtr pynode = - PyxmlNode_Get (is_tuple - ? PyTuple_GET_ITEM(py_nodeset, idx) - : PyList_GET_ITEM(py_nodeset, idx)); - if (pynode) - nodeSet->nodeTab[nodeSet->nodeNr++] = pynode; - } - } - *result = nodeSet; - return 0; -} - -static int -PystringSet_Convert(PyObject *py_strings, xmlChar *** result) -{ - /* NOTE: the array should be freed, but the strings are shared - with the python strings and so must not be freed. */ - - xmlChar ** strings; - int is_tuple = 0; - int count; - int init_index = 0; - - if (PyTuple_Check(py_strings)) - is_tuple = 1; - else if (PyList_Check(py_strings)) - is_tuple = 0; - else if (py_strings == Py_None) { - *result = NULL; - return 0; - } - else { - PyErr_SetString(PyExc_TypeError, - "must be a tuple or list of strings."); - return -1; - } - - count = (is_tuple - ? PyTuple_GET_SIZE(py_strings) - : PyList_GET_SIZE(py_strings)); - - strings = (xmlChar **) xmlMalloc(sizeof(xmlChar *) * count); - - if (strings == NULL) { - PyErr_SetString(PyExc_MemoryError, ""); - return -1; - } - - memset(strings, 0 , sizeof(xmlChar *) * count); - - { - int idx; - for (idx=0; idx < count; ++idx) { - char* s = PyString_AsString - (is_tuple - ? PyTuple_GET_ITEM(py_strings, idx) - : PyList_GET_ITEM(py_strings, idx)); - if (s) - strings[init_index++] = (xmlChar *)s; - else { - xmlFree(strings); - PyErr_SetString(PyExc_TypeError, - "must be a tuple or list of strings."); - return -1; - } - } - } - - *result = strings; - return 0; -} - -static PyObject * -libxml_C14NDocDumpMemory(ATTRIBUTE_UNUSED PyObject * self, - PyObject * args) -{ - PyObject *py_retval = NULL; - - PyObject *pyobj_doc; - PyObject *pyobj_nodes; - int exclusive; - PyObject *pyobj_prefixes; - int with_comments; - - xmlDocPtr doc; - xmlNodeSetPtr nodes; - xmlChar **prefixes = NULL; - xmlChar *doc_txt; - - int result; - - if (!PyArg_ParseTuple(args, (char *) "OOiOi:C14NDocDumpMemory", - &pyobj_doc, - &pyobj_nodes, - &exclusive, - &pyobj_prefixes, - &with_comments)) - return (NULL); - - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - if (!doc) { - PyErr_SetString(PyExc_TypeError, "bad document."); - return NULL; - } - - result = PyxmlNodeSet_Convert(pyobj_nodes, &nodes); - if (result < 0) return NULL; - - if (exclusive) { - result = PystringSet_Convert(pyobj_prefixes, &prefixes); - if (result < 0) { - if (nodes) { - xmlFree(nodes->nodeTab); - xmlFree(nodes); - } - return NULL; - } - } - - result = xmlC14NDocDumpMemory(doc, - nodes, - exclusive, - prefixes, - with_comments, - &doc_txt); - - if (nodes) { - xmlFree(nodes->nodeTab); - xmlFree(nodes); - } - if (prefixes) { - xmlChar ** idx = prefixes; - while (*idx) xmlFree(*(idx++)); - xmlFree(prefixes); - } - - if (result < 0) { - PyErr_SetString(PyExc_Exception, - "libxml2 xmlC14NDocDumpMemory failure."); - return NULL; - } - else { - py_retval = PyString_FromStringAndSize((const char *) doc_txt, - result); - xmlFree(doc_txt); - return py_retval; - } -} - -static PyObject * -libxml_C14NDocSaveTo(ATTRIBUTE_UNUSED PyObject * self, - PyObject * args) -{ - PyObject *pyobj_doc; - PyObject *py_file; - PyObject *pyobj_nodes; - int exclusive; - PyObject *pyobj_prefixes; - int with_comments; - - xmlDocPtr doc; - xmlNodeSetPtr nodes; - xmlChar **prefixes = NULL; - FILE * output; - xmlOutputBufferPtr buf; - - int result; - int len; - - if (!PyArg_ParseTuple(args, (char *) "OOiOiO:C14NDocSaveTo", - &pyobj_doc, - &pyobj_nodes, - &exclusive, - &pyobj_prefixes, - &with_comments, - &py_file)) - return (NULL); - - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - if (!doc) { - PyErr_SetString(PyExc_TypeError, "bad document."); - return NULL; - } - - if ((py_file == NULL) || (!(PyFile_Check(py_file)))) { - PyErr_SetString(PyExc_TypeError, "bad file."); - return NULL; - } - output = PyFile_AsFile(py_file); - if (output == NULL) { - PyErr_SetString(PyExc_TypeError, "bad file."); - return NULL; - } - buf = xmlOutputBufferCreateFile(output, NULL); - - result = PyxmlNodeSet_Convert(pyobj_nodes, &nodes); - if (result < 0) return NULL; - - if (exclusive) { - result = PystringSet_Convert(pyobj_prefixes, &prefixes); - if (result < 0) { - if (nodes) { - xmlFree(nodes->nodeTab); - xmlFree(nodes); - } - return NULL; - } - } - - result = xmlC14NDocSaveTo(doc, - nodes, - exclusive, - prefixes, - with_comments, - buf); - - if (nodes) { - xmlFree(nodes->nodeTab); - xmlFree(nodes); - } - if (prefixes) { - xmlChar ** idx = prefixes; - while (*idx) xmlFree(*(idx++)); - xmlFree(prefixes); - } - - len = xmlOutputBufferClose(buf); - - if (result < 0) { - PyErr_SetString(PyExc_Exception, - "libxml2 xmlC14NDocSaveTo failure."); - return NULL; - } - else - return PyInt_FromLong((long) len); -} - -#endif -#endif - -static PyObject * -libxml_getObjDesc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - - PyObject *obj; - char *str; - - if (!PyArg_ParseTuple(args, (char *)"O:getObjDesc", &obj)) - return NULL; - str = PyCObject_GetDesc(obj); - return Py_BuildValue((char *)"s", str); -} - -/************************************************************************ - * * - * The registration stuff * - * * - ************************************************************************/ -static PyMethodDef libxmlMethods[] = { -#include "libxml2-export.c" - {(char *) "name", libxml_name, METH_VARARGS, NULL}, - {(char *) "children", libxml_children, METH_VARARGS, NULL}, - {(char *) "properties", libxml_properties, METH_VARARGS, NULL}, - {(char *) "last", libxml_last, METH_VARARGS, NULL}, - {(char *) "prev", libxml_prev, METH_VARARGS, NULL}, - {(char *) "next", libxml_next, METH_VARARGS, NULL}, - {(char *) "parent", libxml_parent, METH_VARARGS, NULL}, - {(char *) "type", libxml_type, METH_VARARGS, NULL}, - {(char *) "doc", libxml_doc, METH_VARARGS, NULL}, - {(char *) "xmlNewNode", libxml_xmlNewNode, METH_VARARGS, NULL}, - {(char *) "xmlNodeRemoveNsDef", libxml_xmlNodeRemoveNsDef, METH_VARARGS, NULL}, - {(char *)"xmlSetValidErrors", libxml_xmlSetValidErrors, METH_VARARGS, NULL}, - {(char *)"xmlFreeValidCtxt", libxml_xmlFreeValidCtxt, METH_VARARGS, NULL}, -#ifdef LIBXML_OUTPUT_ENABLED - {(char *) "serializeNode", libxml_serializeNode, METH_VARARGS, NULL}, - {(char *) "saveNodeTo", libxml_saveNodeTo, METH_VARARGS, NULL}, - {(char *) "outputBufferCreate", libxml_xmlCreateOutputBuffer, METH_VARARGS, NULL}, - {(char *) "outputBufferGetPythonFile", libxml_outputBufferGetPythonFile, METH_VARARGS, NULL}, - {(char *) "xmlOutputBufferClose", libxml_xmlOutputBufferClose, METH_VARARGS, NULL}, - { (char *)"xmlOutputBufferFlush", libxml_xmlOutputBufferFlush, METH_VARARGS, NULL }, - { (char *)"xmlSaveFileTo", libxml_xmlSaveFileTo, METH_VARARGS, NULL }, - { (char *)"xmlSaveFormatFileTo", libxml_xmlSaveFormatFileTo, METH_VARARGS, NULL }, -#endif /* LIBXML_OUTPUT_ENABLED */ - {(char *) "inputBufferCreate", libxml_xmlCreateInputBuffer, METH_VARARGS, NULL}, - {(char *) "setEntityLoader", libxml_xmlSetEntityLoader, METH_VARARGS, NULL}, - {(char *)"xmlRegisterErrorHandler", libxml_xmlRegisterErrorHandler, METH_VARARGS, NULL }, - {(char *)"xmlParserCtxtSetErrorHandler", libxml_xmlParserCtxtSetErrorHandler, METH_VARARGS, NULL }, - {(char *)"xmlParserCtxtGetErrorHandler", libxml_xmlParserCtxtGetErrorHandler, METH_VARARGS, NULL }, - {(char *)"xmlFreeParserCtxt", libxml_xmlFreeParserCtxt, METH_VARARGS, NULL }, - {(char *)"xmlTextReaderSetErrorHandler", libxml_xmlTextReaderSetErrorHandler, METH_VARARGS, NULL }, - {(char *)"xmlTextReaderGetErrorHandler", libxml_xmlTextReaderGetErrorHandler, METH_VARARGS, NULL }, - {(char *)"xmlFreeTextReader", libxml_xmlFreeTextReader, METH_VARARGS, NULL }, - {(char *)"addLocalCatalog", libxml_addLocalCatalog, METH_VARARGS, NULL }, -#ifdef LIBXML_SCHEMAS_ENABLED - {(char *)"xmlRelaxNGSetValidErrors", libxml_xmlRelaxNGSetValidErrors, METH_VARARGS, NULL}, - {(char *)"xmlRelaxNGFreeValidCtxt", libxml_xmlRelaxNGFreeValidCtxt, METH_VARARGS, NULL}, - {(char *)"xmlSchemaSetValidErrors", libxml_xmlSchemaSetValidErrors, METH_VARARGS, NULL}, - {(char *)"xmlSchemaFreeValidCtxt", libxml_xmlSchemaFreeValidCtxt, METH_VARARGS, NULL}, -#endif -#ifdef LIBXML_C14N_ENABLED -#ifdef LIBXML_OUTPUT_ENABLED - {(char *)"xmlC14NDocDumpMemory", libxml_C14NDocDumpMemory, METH_VARARGS, NULL}, - {(char *)"xmlC14NDocSaveTo", libxml_C14NDocSaveTo, METH_VARARGS, NULL}, -#endif -#endif - {(char *) "getObjDesc", libxml_getObjDesc, METH_VARARGS, NULL}, - {NULL, NULL, 0, NULL} -}; - -#ifdef MERGED_MODULES -extern void initlibxsltmod(void); -#endif - -void -initlibxml2mod(void) -{ - static int initialized = 0; - - if (initialized != 0) - return; - - /* intialize the python extension module */ - Py_InitModule((char *) "libxml2mod", libxmlMethods); - - /* initialize libxml2 */ - xmlInitParser(); - libxml_xmlErrorInitialize(); - - initialized = 1; - -#ifdef MERGED_MODULES - initlibxsltmod(); -#endif -} diff --git a/src/tools/docbook/libxml2/python/libxml.py b/src/tools/docbook/libxml2/python/libxml.py deleted file mode 100644 index 997e15f432..0000000000 --- a/src/tools/docbook/libxml2/python/libxml.py +++ /dev/null @@ -1,699 +0,0 @@ -import libxml2mod -import types - -# The root of all libxml2 errors. -class libxmlError(Exception): pass - -# -# Errors raised by the wrappers when some tree handling failed. -# -class treeError(libxmlError): - def __init__(self, msg): - self.msg = msg - def __str__(self): - return self.msg - -class parserError(libxmlError): - def __init__(self, msg): - self.msg = msg - def __str__(self): - return self.msg - -class uriError(libxmlError): - def __init__(self, msg): - self.msg = msg - def __str__(self): - return self.msg - -class xpathError(libxmlError): - def __init__(self, msg): - self.msg = msg - def __str__(self): - return self.msg - -class ioWrapper: - def __init__(self, _obj): - self.__io = _obj - self._o = None - - def io_close(self): - if self.__io == None: - return(-1) - self.__io.close() - self.__io = None - return(0) - - def io_flush(self): - if self.__io == None: - return(-1) - self.__io.flush() - return(0) - - def io_read(self, len = -1): - if self.__io == None: - return(-1) - if len < 0: - return(self.__io.read()) - return(self.__io.read(len)) - - def io_write(self, str, len = -1): - if self.__io == None: - return(-1) - if len < 0: - return(self.__io.write(str)) - return(self.__io.write(str, len)) - -class ioReadWrapper(ioWrapper): - def __init__(self, _obj, enc = ""): - ioWrapper.__init__(self, _obj) - self._o = libxml2mod.xmlCreateInputBuffer(self, enc) - - def __del__(self): - print "__del__" - self.io_close() - if self._o != None: - libxml2mod.xmlFreeParserInputBuffer(self._o) - self._o = None - - def close(self): - self.io_close() - if self._o != None: - libxml2mod.xmlFreeParserInputBuffer(self._o) - self._o = None - -class ioWriteWrapper(ioWrapper): - def __init__(self, _obj, enc = ""): -# print "ioWriteWrapper.__init__", _obj - if type(_obj) == type(''): - print "write io from a string" - self.o = None - elif type(_obj) == types.InstanceType: - print "write io from instance of %s" % (_obj.__class__) - ioWrapper.__init__(self, _obj) - self._o = libxml2mod.xmlCreateOutputBuffer(self, enc) - else: - file = libxml2mod.outputBufferGetPythonFile(_obj) - if file != None: - ioWrapper.__init__(self, file) - else: - ioWrapper.__init__(self, _obj) - self._o = _obj - - def __del__(self): -# print "__del__" - self.io_close() - if self._o != None: - libxml2mod.xmlOutputBufferClose(self._o) - self._o = None - - def flush(self): - self.io_flush() - if self._o != None: - libxml2mod.xmlOutputBufferClose(self._o) - self._o = None - - def close(self): - self.io_flush() - if self._o != None: - libxml2mod.xmlOutputBufferClose(self._o) - self._o = None - -# -# Example of a class to handle SAX events -# -class SAXCallback: - """Base class for SAX handlers""" - def startDocument(self): - """called at the start of the document""" - pass - - def endDocument(self): - """called at the end of the document""" - pass - - def startElement(self, tag, attrs): - """called at the start of every element, tag is the name of - the element, attrs is a dictionary of the element's attributes""" - pass - - def endElement(self, tag): - """called at the start of every element, tag is the name of - the element""" - pass - - def characters(self, data): - """called when character data have been read, data is the string - containing the data, multiple consecutive characters() callback - are possible.""" - pass - - def cdataBlock(self, data): - """called when CDATA section have been read, data is the string - containing the data, multiple consecutive cdataBlock() callback - are possible.""" - pass - - def reference(self, name): - """called when an entity reference has been found""" - pass - - def ignorableWhitespace(self, data): - """called when potentially ignorable white spaces have been found""" - pass - - def processingInstruction(self, target, data): - """called when a PI has been found, target contains the PI name and - data is the associated data in the PI""" - pass - - def comment(self, content): - """called when a comment has been found, content contains the comment""" - pass - - def externalSubset(self, name, externalID, systemID): - """called when a DOCTYPE declaration has been found, name is the - DTD name and externalID, systemID are the DTD public and system - identifier for that DTd if available""" - pass - - def internalSubset(self, name, externalID, systemID): - """called when a DOCTYPE declaration has been found, name is the - DTD name and externalID, systemID are the DTD public and system - identifier for that DTD if available""" - pass - - def entityDecl(self, name, type, externalID, systemID, content): - """called when an ENTITY declaration has been found, name is the - entity name and externalID, systemID are the entity public and - system identifier for that entity if available, type indicates - the entity type, and content reports it's string content""" - pass - - def notationDecl(self, name, externalID, systemID): - """called when an NOTATION declaration has been found, name is the - notation name and externalID, systemID are the notation public and - system identifier for that notation if available""" - pass - - def attributeDecl(self, elem, name, type, defi, defaultValue, nameList): - """called when an ATTRIBUTE definition has been found""" - pass - - def elementDecl(self, name, type, content): - """called when an ELEMENT definition has been found""" - pass - - def entityDecl(self, name, publicId, systemID, notationName): - """called when an unparsed ENTITY declaration has been found, - name is the entity name and publicId,, systemID are the entity - public and system identifier for that entity if available, - and notationName indicate the associated NOTATION""" - pass - - def warning(self, msg): - #print msg - pass - - def error(self, msg): - raise parserError(msg) - - def fatalError(self, msg): - raise parserError(msg) - -# -# This class is the ancestor of all the Node classes. It provides -# the basic functionalities shared by all nodes (and handle -# gracefylly the exception), like name, navigation in the tree, -# doc reference, content access and serializing to a string or URI -# -class xmlCore: - def __init__(self, _obj=None): - if _obj != None: - self._o = _obj; - return - self._o = None - def __str__(self): - return self.serialize() - def get_parent(self): - ret = libxml2mod.parent(self._o) - if ret == None: - return None - return xmlNode(_obj=ret) - def get_children(self): - ret = libxml2mod.children(self._o) - if ret == None: - return None - return xmlNode(_obj=ret) - def get_last(self): - ret = libxml2mod.last(self._o) - if ret == None: - return None - return xmlNode(_obj=ret) - def get_next(self): - ret = libxml2mod.next(self._o) - if ret == None: - return None - return xmlNode(_obj=ret) - def get_properties(self): - ret = libxml2mod.properties(self._o) - if ret == None: - return None - return xmlAttr(_obj=ret) - def get_prev(self): - ret = libxml2mod.prev(self._o) - if ret == None: - return None - return xmlNode(_obj=ret) - def get_content(self): - return libxml2mod.xmlNodeGetContent(self._o) - getContent = get_content # why is this duplicate naming needed ? - def get_name(self): - return libxml2mod.name(self._o) - def get_type(self): - return libxml2mod.type(self._o) - def get_doc(self): - ret = libxml2mod.doc(self._o) - if ret == None: - if self.type in ["document_xml", "document_html"]: - return xmlDoc(_obj=self._o) - else: - return None - return xmlDoc(_obj=ret) - # - # Those are common attributes to nearly all type of nodes - # defined as python2 properties - # - import sys - if float(sys.version[0:3]) < 2.2: - def __getattr__(self, attr): - if attr == "parent": - ret = libxml2mod.parent(self._o) - if ret == None: - return None - return xmlNode(_obj=ret) - elif attr == "properties": - ret = libxml2mod.properties(self._o) - if ret == None: - return None - return xmlAttr(_obj=ret) - elif attr == "children": - ret = libxml2mod.children(self._o) - if ret == None: - return None - return xmlNode(_obj=ret) - elif attr == "last": - ret = libxml2mod.last(self._o) - if ret == None: - return None - return xmlNode(_obj=ret) - elif attr == "next": - ret = libxml2mod.next(self._o) - if ret == None: - return None - return xmlNode(_obj=ret) - elif attr == "prev": - ret = libxml2mod.prev(self._o) - if ret == None: - return None - return xmlNode(_obj=ret) - elif attr == "content": - return libxml2mod.xmlNodeGetContent(self._o) - elif attr == "name": - return libxml2mod.name(self._o) - elif attr == "type": - return libxml2mod.type(self._o) - elif attr == "doc": - ret = libxml2mod.doc(self._o) - if ret == None: - if self.type == "document_xml" or self.type == "document_html": - return xmlDoc(_obj=self._o) - else: - return None - return xmlDoc(_obj=ret) - raise AttributeError,attr - else: - parent = property(get_parent, None, None, "Parent node") - children = property(get_children, None, None, "First child node") - last = property(get_last, None, None, "Last sibling node") - next = property(get_next, None, None, "Next sibling node") - prev = property(get_prev, None, None, "Previous sibling node") - properties = property(get_properties, None, None, "List of properies") - content = property(get_content, None, None, "Content of this node") - name = property(get_name, None, None, "Node name") - type = property(get_type, None, None, "Node type") - doc = property(get_doc, None, None, "The document this node belongs to") - - # - # Serialization routines, the optional arguments have the following - # meaning: - # encoding: string to ask saving in a specific encoding - # indent: if 1 the serializer is asked to indent the output - # - def serialize(self, encoding = None, format = 0): - return libxml2mod.serializeNode(self._o, encoding, format) - def saveTo(self, file, encoding = None, format = 0): - return libxml2mod.saveNodeTo(self._o, file, encoding, format) - - # - # Canonicalization routines: - # - # nodes: the node set (tuple or list) to be included in the - # canonized image or None if all document nodes should be - # included. - # exclusive: the exclusive flag (0 - non-exclusive - # canonicalization; otherwise - exclusive canonicalization) - # prefixes: the list of inclusive namespace prefixes (strings), - # or None if there is no inclusive namespaces (only for - # exclusive canonicalization, ignored otherwise) - # with_comments: include comments in the result (!=0) or not - # (==0) - def c14nMemory(self, - nodes=None, - exclusive=0, - prefixes=None, - with_comments=0): - if nodes: - nodes = map(lambda n: n._o, nodes) - return libxml2mod.xmlC14NDocDumpMemory( - self.get_doc()._o, - nodes, - exclusive != 0, - prefixes, - with_comments != 0) - def c14nSaveTo(self, - file, - nodes=None, - exclusive=0, - prefixes=None, - with_comments=0): - if nodes: - nodes = map(lambda n: n._o, nodes) - return libxml2mod.xmlC14NDocSaveTo( - self.get_doc()._o, - nodes, - exclusive != 0, - prefixes, - with_comments != 0, - file) - - # - # Selecting nodes using XPath, a bit slow because the context - # is allocated/freed every time but convenient. - # - def xpathEval(self, expr): - doc = self.doc - if doc == None: - return None - ctxt = doc.xpathNewContext() - ctxt.setContextNode(self) - res = ctxt.xpathEval(expr) - ctxt.xpathFreeContext() - return res - -# # -# # Selecting nodes using XPath, faster because the context -# # is allocated just once per xmlDoc. -# # -# # Removed: DV memleaks c.f. #126735 -# # -# def xpathEval2(self, expr): -# doc = self.doc -# if doc == None: -# return None -# try: -# doc._ctxt.setContextNode(self) -# except: -# doc._ctxt = doc.xpathNewContext() -# doc._ctxt.setContextNode(self) -# res = doc._ctxt.xpathEval(expr) -# return res - def xpathEval2(self, expr): - return self.xpathEval(expr) - - # Remove namespaces - def removeNsDef(self, href): - """ - Remove a namespace definition from a node. If href is None, - remove all of the ns definitions on that node. The removed - namespaces are returned as a linked list. - - Note: If any child nodes referred to the removed namespaces, - they will be left with dangling links. You should call - renciliateNs() to fix those pointers. - - Note: This method does not free memory taken by the ns - definitions. You will need to free it manually with the - freeNsList() method on the returns xmlNs object. - """ - - ret = libxml2mod.xmlNodeRemoveNsDef(self._o, href) - if ret is None:return None - __tmp = xmlNs(_obj=ret) - return __tmp - - # support for python2 iterators - def walk_depth_first(self): - return xmlCoreDepthFirstItertor(self) - def walk_breadth_first(self): - return xmlCoreBreadthFirstItertor(self) - __iter__ = walk_depth_first - - def free(self): - try: - self.doc._ctxt.xpathFreeContext() - except: - pass - libxml2mod.xmlFreeDoc(self._o) - - -# -# implements the depth-first iterator for libxml2 DOM tree -# -class xmlCoreDepthFirstItertor: - def __init__(self, node): - self.node = node - self.parents = [] - def __iter__(self): - return self - def next(self): - while 1: - if self.node: - ret = self.node - self.parents.append(self.node) - self.node = self.node.children - return ret - try: - parent = self.parents.pop() - except IndexError: - raise StopIteration - self.node = parent.next - -# -# implements the breadth-first iterator for libxml2 DOM tree -# -class xmlCoreBreadthFirstItertor: - def __init__(self, node): - self.node = node - self.parents = [] - def __iter__(self): - return self - def next(self): - while 1: - if self.node: - ret = self.node - self.parents.append(self.node) - self.node = self.node.next - return ret - try: - parent = self.parents.pop() - except IndexError: - raise StopIteration - self.node = parent.children - -# -# converters to present a nicer view of the XPath returns -# -def nodeWrap(o): - # TODO try to cast to the most appropriate node class - name = libxml2mod.type(o) - if name == "element" or name == "text": - return xmlNode(_obj=o) - if name == "attribute": - return xmlAttr(_obj=o) - if name[0:8] == "document": - return xmlDoc(_obj=o) - if name == "namespace": - return xmlNs(_obj=o) - if name == "elem_decl": - return xmlElement(_obj=o) - if name == "attribute_decl": - return xmlAttribute(_obj=o) - if name == "entity_decl": - return xmlEntity(_obj=o) - if name == "dtd": - return xmlDtd(_obj=o) - return xmlNode(_obj=o) - -def xpathObjectRet(o): - if type(o) == type([]) or type(o) == type(()): - ret = map(lambda x: nodeWrap(x), o) - return ret - return o - -# -# register an XPath function -# -def registerXPathFunction(ctxt, name, ns_uri, f): - ret = libxml2mod.xmlRegisterXPathFunction(ctxt, name, ns_uri, f) - -# -# For the xmlTextReader parser configuration -# -PARSER_LOADDTD=1 -PARSER_DEFAULTATTRS=2 -PARSER_VALIDATE=3 -PARSER_SUBST_ENTITIES=4 - -# -# For the error callback severities -# -PARSER_SEVERITY_VALIDITY_WARNING=1 -PARSER_SEVERITY_VALIDITY_ERROR=2 -PARSER_SEVERITY_WARNING=3 -PARSER_SEVERITY_ERROR=4 - -# -# register the libxml2 error handler -# -def registerErrorHandler(f, ctx): - """Register a Python written function to for error reporting. - The function is called back as f(ctx, error). """ - import sys - if not sys.modules.has_key('libxslt'): - # normal behaviour when libxslt is not imported - ret = libxml2mod.xmlRegisterErrorHandler(f,ctx) - else: - # when libxslt is already imported, one must - # use libxst's error handler instead - import libxslt - ret = libxslt.registerErrorHandler(f,ctx) - return ret - -class parserCtxtCore: - - def __init__(self, _obj=None): - if _obj != None: - self._o = _obj; - return - self._o = None - - def __del__(self): - if self._o != None: - libxml2mod.xmlFreeParserCtxt(self._o) - self._o = None - - def setErrorHandler(self,f,arg): - """Register an error handler that will be called back as - f(arg,msg,severity,reserved). - - @reserved is currently always None.""" - libxml2mod.xmlParserCtxtSetErrorHandler(self._o,f,arg) - - def getErrorHandler(self): - """Return (f,arg) as previously registered with setErrorHandler - or (None,None).""" - return libxml2mod.xmlParserCtxtGetErrorHandler(self._o) - - def addLocalCatalog(self, uri): - """Register a local catalog with the parser""" - return libxml2mod.addLocalCatalog(self._o, uri) - - -class ValidCtxtCore: - - def __init__(self, *args, **kw): - pass - - def setValidityErrorHandler(self, err_func, warn_func, arg=None): - """ - Register error and warning handlers for DTD validation. - These will be called back as f(msg,arg) - """ - libxml2mod.xmlSetValidErrors(self._o, err_func, warn_func, arg) - - -class SchemaValidCtxtCore: - - def __init__(self, *args, **kw): - pass - - def setValidityErrorHandler(self, err_func, warn_func, arg=None): - """ - Register error and warning handlers for Schema validation. - These will be called back as f(msg,arg) - """ - libxml2mod.xmlSchemaSetValidErrors(self._o, err_func, warn_func, arg) - - -class relaxNgValidCtxtCore: - - def __init__(self, *args, **kw): - pass - - def setValidityErrorHandler(self, err_func, warn_func, arg=None): - """ - Register error and warning handlers for RelaxNG validation. - These will be called back as f(msg,arg) - """ - libxml2mod.xmlRelaxNGSetValidErrors(self._o, err_func, warn_func, arg) - - -def _xmlTextReaderErrorFunc((f,arg),msg,severity,locator): - """Intermediate callback to wrap the locator""" - return f(arg,msg,severity,xmlTextReaderLocator(locator)) - -class xmlTextReaderCore: - - def __init__(self, _obj=None): - self.input = None - if _obj != None:self._o = _obj;return - self._o = None - - def __del__(self): - if self._o != None: - libxml2mod.xmlFreeTextReader(self._o) - self._o = None - - def SetErrorHandler(self,f,arg): - """Register an error handler that will be called back as - f(arg,msg,severity,locator).""" - if f is None: - libxml2mod.xmlTextReaderSetErrorHandler(\ - self._o,None,None) - else: - libxml2mod.xmlTextReaderSetErrorHandler(\ - self._o,_xmlTextReaderErrorFunc,(f,arg)) - - def GetErrorHandler(self): - """Return (f,arg) as previously registered with setErrorHandler - or (None,None).""" - f,arg = libxml2mod.xmlTextReaderGetErrorHandler(self._o) - if f is None: - return None,None - else: - # assert f is _xmlTextReaderErrorFunc - return arg - -# -# The cleanup now goes though a wrappe in libxml.c -# -def cleanupParser(): - libxml2mod.xmlPythonCleanupParser() - -# WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING -# -# Everything before this line comes from libxml.py -# Everything after this line is automatically generated -# -# WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - diff --git a/src/tools/docbook/libxml2/python/libxml2-py.c b/src/tools/docbook/libxml2/python/libxml2-py.c deleted file mode 100644 index e0559a0a45..0000000000 --- a/src/tools/docbook/libxml2/python/libxml2-py.c +++ /dev/null @@ -1,14490 +0,0 @@ -/* Generated */ - -#include -#include -#include -#include -#include "libxml_wrap.h" -#include "libxml2-py.h" - -PyObject * -libxml_xmlGetDocEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlEntityPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlGetDocEntity", &pyobj_doc, &name)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlGetDocEntity(doc, name); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsBopomofo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsBopomofo", &code)) - return(NULL); - - c_retval = xmlUCSIsBopomofo(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNsLookup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * prefix; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlXPathNsLookup", &pyobj_ctxt, &prefix)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - c_retval = xmlXPathNsLookup(ctxt, prefix); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlStrstr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlChar * str; - xmlChar * val; - - if (!PyArg_ParseTuple(args, (char *)"zz:xmlStrstr", &str, &val)) - return(NULL); - - c_retval = xmlStrstr(str, val); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlReaderForFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlTextReaderPtr c_retval; - char * filename; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"zzi:xmlReaderForFile", &filename, &encoding, &options)) - return(NULL); - - c_retval = xmlReaderForFile(filename, encoding, options); - py_retval = libxml_xmlTextReaderPtrWrap((xmlTextReaderPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderExpand(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderExpand", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderExpand(reader); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlFreeParserInputBuffer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserInputBufferPtr in; - PyObject *pyobj_in; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeParserInputBuffer", &pyobj_in)) - return(NULL); - in = (xmlParserInputBufferPtr) PyinputBuffer_Get(pyobj_in); - - xmlFreeParserInputBuffer(in); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsMathematicalAlphanumericSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMathematicalAlphanumericSymbols", &code)) - return(NULL); - - c_retval = xmlUCSIsMathematicalAlphanumericSymbols(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_DEBUG_ENABLED) -PyObject * -libxml_xmlDebugDumpNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * output; - PyObject *pyobj_output; - xmlNodePtr node; - PyObject *pyobj_node; - int depth; - - if (!PyArg_ParseTuple(args, (char *)"OOi:xmlDebugDumpNodeList", &pyobj_output, &pyobj_node, &depth)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - xmlDebugDumpNodeList(output, node, depth); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_DEBUG_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsHangulJamo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHangulJamo", &code)) - return(NULL); - - c_retval = xmlUCSIsHangulJamo(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaWhiteSpaceReplace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlSchemaWhiteSpaceReplace", &value)) - return(NULL); - - c_retval = xmlSchemaWhiteSpaceReplace(value); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_FTP_ENABLED) -PyObject * -libxml_xmlNanoFTPCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlNanoFTPCleanup(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_FTP_ENABLED) */ -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlValidateOneElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr elem; - PyObject *pyobj_elem; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xmlValidateOneElement", &pyobj_ctxt, &pyobj_doc, &pyobj_elem)) - return(NULL); - ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - - c_retval = xmlValidateOneElement(ctxt, doc, elem); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -PyObject * -libxml_xmlGetID(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlAttrPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * ID; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlGetID", &pyobj_doc, &ID)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlGetID(doc, ID); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsMalayalam(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMalayalam", &code)) - return(NULL); - - c_retval = xmlUCSIsMalayalam(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlXPathInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlXPathInit(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlRelaxNGFreeParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlRelaxNGParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlRelaxNGFreeParserCtxt", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlRelaxNGParserCtxtPtr) PyrelaxNgParserCtxt_Get(pyobj_ctxt); - - xmlRelaxNGFreeParserCtxt(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlCheckLanguageID(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * lang; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlCheckLanguageID", &lang)) - return(NULL); - - c_retval = xmlCheckLanguageID(lang); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaSetValidOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlSchemaValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlSchemaSetValidOptions", &pyobj_ctxt, &options)) - return(NULL); - ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt); - - c_retval = xmlSchemaSetValidOptions(ctxt, options); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlValidCtxtNormalizeAttributeValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr elem; - PyObject *pyobj_elem; - xmlChar * name; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"OOOzz:xmlValidCtxtNormalizeAttributeValue", &pyobj_ctxt, &pyobj_doc, &pyobj_elem, &name, &value)) - return(NULL); - ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - - c_retval = xmlValidCtxtNormalizeAttributeValue(ctxt, doc, elem, name, value); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -PyObject * -libxml_xmlFreeNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNsPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeNs", &pyobj_cur)) - return(NULL); - cur = (xmlNsPtr) PyxmlNode_Get(pyobj_cur); - - xmlFreeNs(cur); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNormalizeFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathNormalizeFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathNormalizeFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlGetNoNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlGetNoNsProp", &pyobj_node, &name)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlGetNoNsProp(node, name); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlURIGetPath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const char * c_retval; - xmlURIPtr URI; - PyObject *pyobj_URI; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetPath", &pyobj_URI)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - c_retval = URI->path; - py_retval = libxml_charPtrConstWrap((const char *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlNodeAddContentLen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNodePtr cur; - PyObject *pyobj_cur; - xmlChar * content; - int len; - - if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlNodeAddContentLen", &pyobj_cur, &content, &len)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xmlNodeAddContentLen(cur, content, len); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlRegisterDefaultOutputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlRegisterDefaultOutputCallbacks(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_htmlNodeDumpFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * out; - PyObject *pyobj_out; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OOO:htmlNodeDumpFile", &pyobj_out, &pyobj_doc, &pyobj_cur)) - return(NULL); - out = (FILE *) PyFile_Get(pyobj_out); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - htmlNodeDumpFile(out, doc, cur); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathModValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathModValues", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathModValues(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_XPTR_ENABLED) -PyObject * -libxml_xmlXPtrRangeToFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPtrRangeToFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPtrRangeToFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPTR_ENABLED) */ -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlCatalogIsEmpty(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlCatalogPtr catal; - PyObject *pyobj_catal; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlCatalogIsEmpty", &pyobj_catal)) - return(NULL); - catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal); - - c_retval = xmlCatalogIsEmpty(catal); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderClose(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderClose", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderClose(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlLoadSGMLSuperCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlCatalogPtr c_retval; - char * filename; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlLoadSGMLSuperCatalog", &filename)) - return(NULL); - - c_retval = xmlLoadSGMLSuperCatalog(filename); - py_retval = libxml_xmlCatalogPtrWrap((xmlCatalogPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -PyObject * -libxml_xmlCopyChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int len; - xmlChar * out; - int val; - - if (!PyArg_ParseTuple(args, (char *)"izi:xmlCopyChar", &len, &out, &val)) - return(NULL); - - c_retval = xmlCopyChar(len, out, val); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaNewMemParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlSchemaParserCtxtPtr c_retval; - char * buffer; - int size; - - if (!PyArg_ParseTuple(args, (char *)"zi:xmlSchemaNewMemParserCtxt", &buffer, &size)) - return(NULL); - - c_retval = xmlSchemaNewMemParserCtxt(buffer, size); - py_retval = libxml_xmlSchemaParserCtxtPtrWrap((xmlSchemaParserCtxtPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlGetDtdQElementDesc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlElementPtr c_retval; - xmlDtdPtr dtd; - PyObject *pyobj_dtd; - xmlChar * name; - xmlChar * prefix; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlGetDtdQElementDesc", &pyobj_dtd, &name, &prefix)) - return(NULL); - dtd = (xmlDtdPtr) PyxmlNode_Get(pyobj_dtd); - - c_retval = xmlGetDtdQElementDesc(dtd, name, prefix); - py_retval = libxml_xmlElementPtrWrap((xmlElementPtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) -PyObject * -libxml_xmlValidatePopElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr elem; - PyObject *pyobj_elem; - xmlChar * qname; - - if (!PyArg_ParseTuple(args, (char *)"OOOz:xmlValidatePopElement", &pyobj_ctxt, &pyobj_doc, &pyobj_elem, &qname)) - return(NULL); - ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - - c_retval = xmlValidatePopElement(ctxt, doc, elem, qname); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathLocalNameFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathLocalNameFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathLocalNameFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_LEGACY_ENABLED) -PyObject * -libxml_xmlParserHandleReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParserHandleReference", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParserHandleReference(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_LEGACY_ENABLED) */ -#if defined(LIBXML_HTTP_ENABLED) -PyObject * -libxml_xmlNanoHTTPInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlNanoHTTPInit(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_HTTP_ENABLED) */ -PyObject * -libxml_xmlCopyNamespaceList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNsPtr c_retval; - xmlNsPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlCopyNamespaceList", &pyobj_cur)) - return(NULL); - cur = (xmlNsPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlCopyNamespaceList(cur); - py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsSpecials(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSpecials", &code)) - return(NULL); - - c_retval = xmlUCSIsSpecials(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlParseCDSect(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseCDSect", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseCDSect(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsLatinExtendedB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLatinExtendedB", &code)) - return(NULL); - - c_retval = xmlUCSIsLatinExtendedB(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsLatinExtendedA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLatinExtendedA", &code)) - return(NULL); - - c_retval = xmlUCSIsLatinExtendedA(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) -PyObject * -libxml_xmlCopyDtd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDtdPtr c_retval; - xmlDtdPtr dtd; - PyObject *pyobj_dtd; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlCopyDtd", &pyobj_dtd)) - return(NULL); - dtd = (xmlDtdPtr) PyxmlNode_Get(pyobj_dtd); - - c_retval = xmlCopyDtd(dtd); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) -PyObject * -libxml_xmlNodeListGetRawString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr list; - PyObject *pyobj_list; - int inLine; - - if (!PyArg_ParseTuple(args, (char *)"OOi:xmlNodeListGetRawString", &pyobj_doc, &pyobj_list, &inLine)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - list = (xmlNodePtr) PyxmlNode_Get(pyobj_list); - - c_retval = xmlNodeListGetRawString(doc, list, inLine); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) */ -PyObject * -libxml_xmlErrorGetLine(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlErrorPtr Error; - PyObject *pyobj_Error; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlErrorGetLine", &pyobj_Error)) - return(NULL); - Error = (xmlErrorPtr) PyError_Get(pyobj_Error); - - c_retval = Error->line; - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlNewDocNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNsPtr ns; - PyObject *pyobj_ns; - xmlChar * name; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlNewDocNode", &pyobj_doc, &pyobj_ns, &name, &content)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns); - - c_retval = xmlNewDocNode(doc, ns, name, content); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlParseDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - htmlDocPtr c_retval; - xmlChar * cur; - char * encoding; - - if (!PyArg_ParseTuple(args, (char *)"zz:htmlParseDoc", &cur, &encoding)) - return(NULL); - - c_retval = htmlParseDoc(cur, encoding); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlRelaxNGInitTypes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - PyObject *py_retval; - int c_retval; - - c_retval = xmlRelaxNGInitTypes(); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsMiscellaneousMathematicalSymbolsA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMiscellaneousMathematicalSymbolsA", &code)) - return(NULL); - - c_retval = xmlUCSIsMiscellaneousMathematicalSymbolsA(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathFreeParserContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathFreeParserContext", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathFreeParserContext(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlURIGetAuthority(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const char * c_retval; - xmlURIPtr URI; - PyObject *pyobj_URI; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetAuthority", &pyobj_URI)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - c_retval = URI->authority; - py_retval = libxml_charPtrConstWrap((const char *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlCreateURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - PyObject *py_retval; - xmlURIPtr c_retval; - - c_retval = xmlCreateURI(); - py_retval = libxml_xmlURIPtrWrap((xmlURIPtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlStrcat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * cur; - xmlChar * add; - - if (!PyArg_ParseTuple(args, (char *)"zz:xmlStrcat", &cur, &add)) - return(NULL); - - c_retval = xmlStrcat(cur, add); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaFreeParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlSchemaParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaFreeParserCtxt", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlSchemaParserCtxtPtr) PySchemaParserCtxt_Get(pyobj_ctxt); - - xmlSchemaFreeParserCtxt(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderGetParserLineNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderGetParserLineNumber", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderGetParserLineNumber(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlCheckVersion(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - int version; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlCheckVersion", &version)) - return(NULL); - - xmlCheckVersion(version); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlParseMarkupDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseMarkupDecl", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseMarkupDecl(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlHasNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlAttrPtr c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - xmlChar * name; - xmlChar * nameSpace; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlHasNsProp", &pyobj_node, &name, &nameSpace)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlHasNsProp(node, name, nameSpace); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlAddPrevSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlNodePtr cur; - PyObject *pyobj_cur; - xmlNodePtr elem; - PyObject *pyobj_elem; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlAddPrevSibling", &pyobj_cur, &pyobj_elem)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - - c_retval = xmlAddPrevSibling(cur, elem); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlGetDtdAttrDesc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlAttributePtr c_retval; - xmlDtdPtr dtd; - PyObject *pyobj_dtd; - xmlChar * elem; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlGetDtdAttrDesc", &pyobj_dtd, &elem, &name)) - return(NULL); - dtd = (xmlDtdPtr) PyxmlNode_Get(pyobj_dtd); - - c_retval = xmlGetDtdAttrDesc(dtd, elem, name); - py_retval = libxml_xmlAttributePtrWrap((xmlAttributePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlGetMetaEncoding(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - htmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"O:htmlGetMetaEncoding", &pyobj_doc)) - return(NULL); - doc = (htmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = htmlGetMetaEncoding(doc); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsEnclosedCJKLettersandMonths(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsEnclosedCJKLettersandMonths", &code)) - return(NULL); - - c_retval = xmlUCSIsEnclosedCJKLettersandMonths(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlGetIntSubset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDtdPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlGetIntSubset", &pyobj_doc)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlGetIntSubset(doc); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlCleanupInputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlCleanupInputCallbacks(); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlValidateRoot(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlValidateRoot", &pyobj_ctxt, &pyobj_doc)) - return(NULL); - ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlValidateRoot(ctxt, doc); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -PyObject * -libxml_xmlNormalizeURIPath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - char * path; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlNormalizeURIPath", &path)) - return(NULL); - - c_retval = xmlNormalizeURIPath(path); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderConstXmlVersion(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstXmlVersion", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderConstXmlVersion(reader); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCombiningDiacriticalMarksforSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCombiningDiacriticalMarksforSymbols", &code)) - return(NULL); - - c_retval = xmlUCSIsCombiningDiacriticalMarksforSymbols(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlParserInputBufferRead(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserInputBufferPtr in; - PyObject *pyobj_in; - int len; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlParserInputBufferRead", &pyobj_in, &len)) - return(NULL); - in = (xmlParserInputBufferPtr) PyinputBuffer_Get(pyobj_in); - - c_retval = xmlParserInputBufferRead(in, len); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_HTTP_ENABLED) -PyObject * -libxml_xmlIOHTTPMatch(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - char * filename; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlIOHTTPMatch", &filename)) - return(NULL); - - c_retval = xmlIOHTTPMatch(filename); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTTP_ENABLED) */ -PyObject * -libxml_xmlStringLenDecodeEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * str; - int len; - int what; - xmlChar end; - xmlChar end2; - xmlChar end3; - - if (!PyArg_ParseTuple(args, (char *)"Oziiccc:xmlStringLenDecodeEntities", &pyobj_ctxt, &str, &len, &what, &end, &end2, &end3)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlStringLenDecodeEntities(ctxt, str, len, what, end, end2, end3); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatCc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatCc", &code)) - return(NULL); - - c_retval = xmlUCSIsCatCc(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlURISetServer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlURIPtr URI; - PyObject *pyobj_URI; - char * server; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetServer", &pyobj_URI, &server)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - if (URI->server != NULL) xmlFree(URI->server); - URI->server = (char *)xmlStrdup((const xmlChar *)server); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsSpacingModifierLetters(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSpacingModifierLetters", &code)) - return(NULL); - - c_retval = xmlUCSIsSpacingModifierLetters(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -#endif -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsHighPrivateUseSurrogates(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHighPrivateUseSurrogates", &code)) - return(NULL); - - c_retval = xmlUCSIsHighPrivateUseSurrogates(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlDefaultSAXHandlerInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlDefaultSAXHandlerInit(); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsBraillePatterns(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsBraillePatterns", &code)) - return(NULL); - - c_retval = xmlUCSIsBraillePatterns(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlParseAttValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseAttValue", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseAttValue(ctxt); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlStringGetNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlStringGetNodeList", &pyobj_doc, &value)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlStringGetNodeList(doc, value); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlHandleOmittedElem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int val; - - if (!PyArg_ParseTuple(args, (char *)"i:htmlHandleOmittedElem", &val)) - return(NULL); - - c_retval = htmlHandleOmittedElem(val); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathTrueFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathTrueFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathTrueFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlCatalogAdd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * type; - xmlChar * orig; - xmlChar * replace; - - if (!PyArg_ParseTuple(args, (char *)"zzz:xmlCatalogAdd", &type, &orig, &replace)) - return(NULL); - - c_retval = xmlCatalogAdd(type, orig, replace); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCombiningDiacriticalMarks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCombiningDiacriticalMarks", &code)) - return(NULL); - - c_retval = xmlUCSIsCombiningDiacriticalMarks(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathEqualValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathEqualValues", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - c_retval = xmlXPathEqualValues(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlCtxtUseOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlCtxtUseOptions", &pyobj_ctxt, &options)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlCtxtUseOptions(ctxt, options); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsShavian(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsShavian", &code)) - return(NULL); - - c_retval = xmlUCSIsShavian(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsHebrew(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHebrew", &code)) - return(NULL); - - c_retval = xmlUCSIsHebrew(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathLangFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathLangFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathLangFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaValidateDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlSchemaValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr instance; - PyObject *pyobj_instance; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlSchemaValidateDoc", &pyobj_ctxt, &pyobj_instance)) - return(NULL); - ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt); - instance = (xmlDocPtr) PyxmlNode_Get(pyobj_instance); - - c_retval = xmlSchemaValidateDoc(ctxt, instance); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlCopyError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlErrorPtr from; - PyObject *pyobj_from; - xmlErrorPtr to; - PyObject *pyobj_to; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlCopyError", &pyobj_from, &pyobj_to)) - return(NULL); - from = (xmlErrorPtr) PyError_Get(pyobj_from); - to = (xmlErrorPtr) PyError_Get(pyobj_to); - - c_retval = xmlCopyError(from, to); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlRelaxNGValidateDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlRelaxNGValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlRelaxNGValidateDoc", &pyobj_ctxt, &pyobj_doc)) - return(NULL); - ctxt = (xmlRelaxNGValidCtxtPtr) PyrelaxNgValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlRelaxNGValidateDoc(ctxt, doc); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) -PyObject * -libxml_xmlNodeSetSpacePreserve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNodePtr cur; - PyObject *pyobj_cur; - int val; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlNodeSetSpacePreserve", &pyobj_cur, &val)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xmlNodeSetSpacePreserve(cur, val); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_TREE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsArmenian(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsArmenian", &code)) - return(NULL); - - c_retval = xmlUCSIsArmenian(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathCastNodeToNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - double c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathCastNodeToNumber", &pyobj_node)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlXPathCastNodeToNumber(node); - py_retval = libxml_doubleWrap((double) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlUTF8Size(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * utf; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlUTF8Size", &utf)) - return(NULL); - - c_retval = xmlUTF8Size(utf); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlNewText(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlNewText", &content)) - return(NULL); - - c_retval = xmlNewText(content); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlDocCopyNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlDocCopyNodeList", &pyobj_doc, &pyobj_node)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlDocCopyNodeList(doc, node); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlNewDocText(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNewDocText", &pyobj_doc, &content)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlNewDocText(doc, content); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlNewReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNewReference", &pyobj_doc, &name)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlNewReference(doc, name); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNewValueTree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - xmlNodePtr val; - PyObject *pyobj_val; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathNewValueTree", &pyobj_val)) - return(NULL); - val = (xmlNodePtr) PyxmlNode_Get(pyobj_val); - - c_retval = xmlXPathNewValueTree(val); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsSupplementalMathematicalOperators(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSupplementalMathematicalOperators", &code)) - return(NULL); - - c_retval = xmlUCSIsSupplementalMathematicalOperators(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlOutputBufferWriteString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlOutputBufferPtr out; - PyObject *pyobj_out; - char * str; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlOutputBufferWriteString", &pyobj_out, &str)) - return(NULL); - out = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_out); - - c_retval = xmlOutputBufferWriteString(out, str); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlValidateDtd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlDtdPtr dtd; - PyObject *pyobj_dtd; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xmlValidateDtd", &pyobj_ctxt, &pyobj_doc, &pyobj_dtd)) - return(NULL); - ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - dtd = (xmlDtdPtr) PyxmlNode_Get(pyobj_dtd); - - c_retval = xmlValidateDtd(ctxt, doc, dtd); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -PyObject * -libxml_xmlIsBlank(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - unsigned int ch; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlIsBlank", &ch)) - return(NULL); - - c_retval = xmlIsBlank(ch); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPTR_ENABLED) -PyObject * -libxml_xmlXPtrNewLocationSetNodes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - xmlNodePtr start; - PyObject *pyobj_start; - xmlNodePtr end; - PyObject *pyobj_end; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPtrNewLocationSetNodes", &pyobj_start, &pyobj_end)) - return(NULL); - start = (xmlNodePtr) PyxmlNode_Get(pyobj_start); - end = (xmlNodePtr) PyxmlNode_Get(pyobj_end); - - c_retval = xmlXPtrNewLocationSetNodes(start, end); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPTR_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCombiningMarksforSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCombiningMarksforSymbols", &code)) - return(NULL); - - c_retval = xmlUCSIsCombiningMarksforSymbols(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlValidateElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr elem; - PyObject *pyobj_elem; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xmlValidateElement", &pyobj_ctxt, &pyobj_doc, &pyobj_elem)) - return(NULL); - ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - - c_retval = xmlValidateElement(ctxt, doc, elem); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -PyObject * -libxml_xmlPopInputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - PyObject *py_retval; - int c_retval; - - c_retval = xmlPopInputCallbacks(); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsLao(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLao", &code)) - return(NULL); - - c_retval = xmlUCSIsLao(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) -PyObject * -libxml_xmlNewDocFragment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlNewDocFragment", &pyobj_doc)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlNewDocFragment(doc); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlReadMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - htmlDocPtr c_retval; - char * buffer; - int py_buffsize0; - int size; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"t#izzi:htmlReadMemory", &buffer, &py_buffsize0, &size, &URL, &encoding, &options)) - return(NULL); - - c_retval = htmlReadMemory(buffer, size, URL, encoding, options); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNodeSetFreeNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNsPtr ns; - PyObject *pyobj_ns; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathNodeSetFreeNs", &pyobj_ns)) - return(NULL); - ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns); - - xmlXPathNodeSetFreeNs(ns); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderHasAttributes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderHasAttributes", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderHasAttributes(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsGothic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGothic", &code)) - return(NULL); - - c_retval = xmlUCSIsGothic(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlNodeDumpOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlOutputBufferPtr buf; - PyObject *pyobj_buf; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr cur; - PyObject *pyobj_cur; - int level; - int format; - char * encoding; - - if (!PyArg_ParseTuple(args, (char *)"OOOiiz:xmlNodeDumpOutput", &pyobj_buf, &pyobj_doc, &pyobj_cur, &level, &format, &encoding)) - return(NULL); - buf = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_buf); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xmlNodeDumpOutput(buf, doc, cur, level, format, encoding); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathRegisteredFuncsCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathRegisteredFuncsCleanup", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - xmlXPathRegisteredFuncsCleanup(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsBlock(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - char * block; - - if (!PyArg_ParseTuple(args, (char *)"iz:xmlUCSIsBlock", &code, &block)) - return(NULL); - - c_retval = xmlUCSIsBlock(code, block); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderMoveToNextAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderMoveToNextAttribute", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderMoveToNextAttribute(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatNd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatNd", &code)) - return(NULL); - - c_retval = xmlUCSIsCatNd(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlParseSDDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseSDDecl", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseSDDecl(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlReaderNewWalker(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlReaderNewWalker", &pyobj_reader, &pyobj_doc)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlReaderNewWalker(reader, doc); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatNl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatNl", &code)) - return(NULL); - - c_retval = xmlUCSIsCatNl(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatNo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatNo", &code)) - return(NULL); - - c_retval = xmlUCSIsCatNo(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlSkipBlankChars(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlSkipBlankChars", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlSkipBlankChars(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlValidateNmtokenValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlValidateNmtokenValue", &value)) - return(NULL); - - c_retval = xmlValidateNmtokenValue(value); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_DEBUG_ENABLED) -PyObject * -libxml_xmlGetNodePath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlGetNodePath", &pyobj_node)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlGetNodePath(node); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_DEBUG_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_htmlDocContentDumpOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlOutputBufferPtr buf; - PyObject *pyobj_buf; - xmlDocPtr cur; - PyObject *pyobj_cur; - char * encoding; - - if (!PyArg_ParseTuple(args, (char *)"OOz:htmlDocContentDumpOutput", &pyobj_buf, &pyobj_cur, &encoding)) - return(NULL); - buf = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_buf); - cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); - - htmlDocContentDumpOutput(buf, cur, encoding); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathPopBoolean(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathPopBoolean", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - c_retval = xmlXPathPopBoolean(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlIsIdeographic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - unsigned int ch; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlIsIdeographic", &ch)) - return(NULL); - - c_retval = xmlIsIdeographic(ch); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsLatinExtendedAdditional(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLatinExtendedAdditional", &code)) - return(NULL); - - c_retval = xmlUCSIsLatinExtendedAdditional(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlURISetAuthority(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlURIPtr URI; - PyObject *pyobj_URI; - char * authority; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetAuthority", &pyobj_URI, &authority)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - if (URI->authority != NULL) xmlFree(URI->authority); - URI->authority = (char *)xmlStrdup((const xmlChar *)authority); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlRelaxNGValidatePushCData(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlRelaxNGValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * data; - int len; - - if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlRelaxNGValidatePushCData", &pyobj_ctxt, &data, &len)) - return(NULL); - ctxt = (xmlRelaxNGValidCtxtPtr) PyrelaxNgValidCtxt_Get(pyobj_ctxt); - - c_retval = xmlRelaxNGValidatePushCData(ctxt, data, len); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlGetLastError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - PyObject *py_retval; - xmlErrorPtr c_retval; - - c_retval = xmlGetLastError(); - py_retval = libxml_xmlErrorPtrWrap((xmlErrorPtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlEncodeEntitiesReentrant(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * input; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlEncodeEntitiesReentrant", &pyobj_doc, &input)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlEncodeEntitiesReentrant(doc, input); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlRemoveProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlAttrPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlRemoveProp", &pyobj_cur)) - return(NULL); - cur = (xmlAttrPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlRemoveProp(cur); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlACatalogDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlCatalogPtr catal; - PyObject *pyobj_catal; - FILE * out; - PyObject *pyobj_out; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlACatalogDump", &pyobj_catal, &pyobj_out)) - return(NULL); - catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal); - out = (FILE *) PyFile_Get(pyobj_out); - - xmlACatalogDump(catal, out); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ -PyObject * -libxml_xmlReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - char * filename; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"zzi:xmlReadFile", &filename, &encoding, &options)) - return(NULL); - - c_retval = xmlReadFile(filename, encoding, options); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsNumberForms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsNumberForms", &code)) - return(NULL); - - c_retval = xmlUCSIsNumberForms(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlStrncmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * str1; - xmlChar * str2; - int len; - - if (!PyArg_ParseTuple(args, (char *)"zzi:xmlStrncmp", &str1, &str2, &len)) - return(NULL); - - c_retval = xmlStrncmp(str1, str2, len); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlCatalogGetPublic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlChar * pubID; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlCatalogGetPublic", &pubID)) - return(NULL); - - c_retval = xmlCatalogGetPublic(pubID); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlSaveFormatFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - char * filename; - xmlDocPtr cur; - PyObject *pyobj_cur; - int format; - - if (!PyArg_ParseTuple(args, (char *)"zOi:xmlSaveFormatFile", &filename, &pyobj_cur, &format)) - return(NULL); - cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlSaveFormatFile(filename, cur, format); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_OUTPUT_ENABLED) */ -PyObject * -libxml_xmlParseXMLDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseXMLDecl", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseXMLDecl(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlNewComment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlNewComment", &content)) - return(NULL); - - c_retval = xmlNewComment(content); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlRelaxNGNewValidCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlRelaxNGValidCtxtPtr c_retval; - xmlRelaxNGPtr schema; - PyObject *pyobj_schema; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlRelaxNGNewValidCtxt", &pyobj_schema)) - return(NULL); - schema = (xmlRelaxNGPtr) PyrelaxNgSchema_Get(pyobj_schema); - - c_retval = xmlRelaxNGNewValidCtxt(schema); - py_retval = libxml_xmlRelaxNGValidCtxtPtrWrap((xmlRelaxNGValidCtxtPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsKatakana(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsKatakana", &code)) - return(NULL); - - c_retval = xmlUCSIsKatakana(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsHalfwidthandFullwidthForms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHalfwidthandFullwidthForms", &code)) - return(NULL); - - c_retval = xmlUCSIsHalfwidthandFullwidthForms(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlValidateNamesValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlValidateNamesValue", &value)) - return(NULL); - - c_retval = xmlValidateNamesValue(value); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -PyObject * -libxml_xmlParseURIReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlURIPtr uri; - PyObject *pyobj_uri; - char * str; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlParseURIReference", &pyobj_uri, &str)) - return(NULL); - uri = (xmlURIPtr) PyURI_Get(pyobj_uri); - - c_retval = xmlParseURIReference(uri, str); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathOrderDocElems(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - long c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathOrderDocElems", &pyobj_doc)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlXPathOrderDocElems(doc); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsGurmukhi(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGurmukhi", &code)) - return(NULL); - - c_retval = xmlUCSIsGurmukhi(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_namePush(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"Oz:namePush", &pyobj_ctxt, &value)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = namePush(ctxt, value); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) -PyObject * -libxml_xmlNodeSetBase(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNodePtr cur; - PyObject *pyobj_cur; - xmlChar * uri; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNodeSetBase", &pyobj_cur, &uri)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xmlNodeSetBase(cur, uri); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlTextReaderRelaxNGSetSchema(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - xmlRelaxNGPtr schema; - PyObject *pyobj_schema; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlTextReaderRelaxNGSetSchema", &pyobj_reader, &pyobj_schema)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - schema = (xmlRelaxNGPtr) PyrelaxNgSchema_Get(pyobj_schema); - - c_retval = xmlTextReaderRelaxNGSetSchema(reader, schema); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_DEBUG_ENABLED) -PyObject * -libxml_xmlDebugDumpAttr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * output; - PyObject *pyobj_output; - xmlAttrPtr attr; - PyObject *pyobj_attr; - int depth; - - if (!PyArg_ParseTuple(args, (char *)"OOi:xmlDebugDumpAttr", &pyobj_output, &pyobj_attr, &depth)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr); - - xmlDebugDumpAttr(output, attr, depth); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_DEBUG_ENABLED) */ -#if defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlCleanupOutputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlCleanupOutputCallbacks(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathSetContextNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathSetContextNode", &pyobj_ctxt, &pyobj_node)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - ctxt->node = node; - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlSaveFileEnc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - char * filename; - xmlDocPtr cur; - PyObject *pyobj_cur; - char * encoding; - - if (!PyArg_ParseTuple(args, (char *)"zOz:xmlSaveFileEnc", &filename, &pyobj_cur, &encoding)) - return(NULL); - cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlSaveFileEnc(filename, cur, encoding); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathGetFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathGetFunction", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - c_retval = ctxt->function; - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_DEBUG_ENABLED) -PyObject * -libxml_xmlDebugDumpOneNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * output; - PyObject *pyobj_output; - xmlNodePtr node; - PyObject *pyobj_node; - int depth; - - if (!PyArg_ParseTuple(args, (char *)"OOi:xmlDebugDumpOneNode", &pyobj_output, &pyobj_node, &depth)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - xmlDebugDumpOneNode(output, node, depth); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_DEBUG_ENABLED) */ -PyObject * -libxml_xmlNewNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNsPtr c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - xmlChar * href; - xmlChar * prefix; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlNewNs", &pyobj_node, &href, &prefix)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlNewNs(node, href, prefix); - py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlStrcasestr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlChar * str; - xmlChar * val; - - if (!PyArg_ParseTuple(args, (char *)"zz:xmlStrcasestr", &str, &val)) - return(NULL); - - c_retval = xmlStrcasestr(str, val); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderReadState(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderReadState", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderReadState(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsHangulSyllables(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHangulSyllables", &code)) - return(NULL); - - c_retval = xmlUCSIsHangulSyllables(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlValidateQName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * value; - int space; - - if (!PyArg_ParseTuple(args, (char *)"zi:xmlValidateQName", &value, &space)) - return(NULL); - - c_retval = xmlValidateQName(value, space); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathCompareValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int inf; - int strict; - - if (!PyArg_ParseTuple(args, (char *)"Oii:xmlXPathCompareValues", &pyobj_ctxt, &inf, &strict)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - c_retval = xmlXPathCompareValues(ctxt, inf, strict); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsSyriac(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSyriac", &code)) - return(NULL); - - c_retval = xmlUCSIsSyriac(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlStrQEqual(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * pref; - xmlChar * name; - xmlChar * str; - - if (!PyArg_ParseTuple(args, (char *)"zzz:xmlStrQEqual", &pref, &name, &str)) - return(NULL); - - c_retval = xmlStrQEqual(pref, name, str); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlBuildURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * URI; - xmlChar * base; - - if (!PyArg_ParseTuple(args, (char *)"zz:xmlBuildURI", &URI, &base)) - return(NULL); - - c_retval = xmlBuildURI(URI, base); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderGetParserColumnNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderGetParserColumnNumber", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderGetParserColumnNumber(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_valuePop(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:valuePop", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - c_retval = valuePop(ctxt); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathContainsFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathContainsFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathContainsFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlCtxtUseOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - htmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Oi:htmlCtxtUseOptions", &pyobj_ctxt, &options)) - return(NULL); - ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = htmlCtxtUseOptions(ctxt, options); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlFreeCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlCatalogPtr catal; - PyObject *pyobj_catal; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeCatalog", &pyobj_catal)) - return(NULL); - catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal); - - xmlFreeCatalog(catal); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) -PyObject * -libxml_xmlValidatePushElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr elem; - PyObject *pyobj_elem; - xmlChar * qname; - - if (!PyArg_ParseTuple(args, (char *)"OOOz:xmlValidatePushElement", &pyobj_ctxt, &pyobj_doc, &pyobj_elem, &qname)) - return(NULL); - ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - - c_retval = xmlValidatePushElement(ctxt, doc, elem, qname); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) */ -PyObject * -libxml_xmlResetError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlErrorPtr err; - PyObject *pyobj_err; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlResetError", &pyobj_err)) - return(NULL); - err = (xmlErrorPtr) PyError_Get(pyobj_err); - - xmlResetError(err); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsArrows(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsArrows", &code)) - return(NULL); - - c_retval = xmlUCSIsArrows(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathGetContextSize(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathGetContextSize", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - c_retval = ctxt->contextSize; - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsLimbu(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLimbu", &code)) - return(NULL); - - c_retval = xmlUCSIsLimbu(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlRemoveID(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlAttrPtr attr; - PyObject *pyobj_attr; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlRemoveID", &pyobj_doc, &pyobj_attr)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr); - - c_retval = xmlRemoveID(doc, attr); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlNewDocPI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * name; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlNewDocPI", &pyobj_doc, &name, &content)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlNewDocPI(doc, name, content); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathTranslateFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathTranslateFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathTranslateFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlNodeGetSpacePreserve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlNodeGetSpacePreserve", &pyobj_cur)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlNodeGetSpacePreserve(cur); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlResetLastError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlResetLastError(); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlXPathIsNaN(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - double val; - - if (!PyArg_ParseTuple(args, (char *)"d:xmlXPathIsNaN", &val)) - return(NULL); - - c_retval = xmlXPathIsNaN(val); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlValidateDtdFinal(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlValidateDtdFinal", &pyobj_ctxt, &pyobj_doc)) - return(NULL); - ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlValidateDtdFinal(ctxt, doc); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -PyObject * -libxml_xmlParseEncName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseEncName", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseEncName(ctxt); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNextAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextAttribute", &pyobj_ctxt, &pyobj_cur)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlXPathNextAttribute(ctxt, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_XPTR_ENABLED) -PyObject * -libxml_xmlXPtrEvalRangePredicate(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPtrEvalRangePredicate", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPtrEvalRangePredicate(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPTR_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlAutoCloseTag(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - htmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * name; - htmlNodePtr elem; - PyObject *pyobj_elem; - - if (!PyArg_ParseTuple(args, (char *)"OzO:htmlAutoCloseTag", &pyobj_doc, &name, &pyobj_elem)) - return(NULL); - doc = (htmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (htmlNodePtr) PyxmlNode_Get(pyobj_elem); - - c_retval = htmlAutoCloseTag(doc, name, elem); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -PyObject * -libxml_xmlThrDefLoadExtDtdDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int v; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefLoadExtDtdDefaultValue", &v)) - return(NULL); - - c_retval = xmlThrDefLoadExtDtdDefaultValue(v); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlThrDefTreeIndentString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const char * c_retval; - char * v; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlThrDefTreeIndentString", &v)) - return(NULL); - - c_retval = xmlThrDefTreeIndentString(v); - py_retval = libxml_charPtrConstWrap((const char *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlGetDocCompressMode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlGetDocCompressMode", &pyobj_doc)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlGetDocCompressMode(doc); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_DEBUG_ENABLED) -PyObject * -libxml_xmlDebugDumpDocumentHead(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * output; - PyObject *pyobj_output; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlDebugDumpDocumentHead", &pyobj_output, &pyobj_doc)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - xmlDebugDumpDocumentHead(output, doc); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_DEBUG_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_htmlNodeDumpOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlOutputBufferPtr buf; - PyObject *pyobj_buf; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr cur; - PyObject *pyobj_cur; - char * encoding; - - if (!PyArg_ParseTuple(args, (char *)"OOOz:htmlNodeDumpOutput", &pyobj_buf, &pyobj_doc, &pyobj_cur, &encoding)) - return(NULL); - buf = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_buf); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - htmlNodeDumpOutput(buf, doc, cur, encoding); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlParseElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - htmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:htmlParseElement", &pyobj_ctxt)) - return(NULL); - ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - htmlParseElement(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsGreek(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGreek", &code)) - return(NULL); - - c_retval = xmlUCSIsGreek(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_LEGACY_ENABLED) -PyObject * -libxml_xmlDecodeEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - int len; - int what; - xmlChar end; - xmlChar end2; - xmlChar end3; - - if (!PyArg_ParseTuple(args, (char *)"Oiiccc:xmlDecodeEntities", &pyobj_ctxt, &len, &what, &end, &end2, &end3)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlDecodeEntities(ctxt, len, what, end, end2, end3); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_LEGACY_ENABLED) */ -#if defined(LIBXML_LEGACY_ENABLED) -PyObject * -libxml_xmlNamespaceParseNSDef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlNamespaceParseNSDef", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlNamespaceParseNSDef(ctxt); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_LEGACY_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathCastNumberToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - double val; - - if (!PyArg_ParseTuple(args, (char *)"d:xmlXPathCastNumberToString", &val)) - return(NULL); - - c_retval = xmlXPathCastNumberToString(val); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlCatalogRemove(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlCatalogRemove", &value)) - return(NULL); - - c_retval = xmlCatalogRemove(value); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlOutputBufferWrite(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlOutputBufferPtr out; - PyObject *pyobj_out; - int len; - char * buf; - - if (!PyArg_ParseTuple(args, (char *)"Oiz:xmlOutputBufferWrite", &pyobj_out, &len, &buf)) - return(NULL); - out = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_out); - - c_retval = xmlOutputBufferWrite(out, len, buf); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_FTP_ENABLED) -PyObject * -libxml_xmlIOFTPMatch(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - char * filename; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlIOFTPMatch", &filename)) - return(NULL); - - c_retval = xmlIOFTPMatch(filename); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_FTP_ENABLED) */ -PyObject * -libxml_xmlParseReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseReference", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseReference(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_HTTP_ENABLED) -PyObject * -libxml_xmlNanoHTTPScanProxy(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - char * URL; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlNanoHTTPScanProxy", &URL)) - return(NULL); - - xmlNanoHTTPScanProxy(URL); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_HTTP_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlRelaxNGCleanupTypes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlRelaxNGCleanupTypes(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlStringLenGetNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * value; - int len; - - if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlStringLenGetNodeList", &pyobj_doc, &value, &len)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlStringLenGetNodeList(doc, value, len); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderLocatorBaseURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlTextReaderLocatorPtr locator; - PyObject *pyobj_locator; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderLocatorBaseURI", &pyobj_locator)) - return(NULL); - locator = (xmlTextReaderLocatorPtr) PyxmlTextReaderLocator_Get(pyobj_locator); - - c_retval = xmlTextReaderLocatorBaseURI(locator); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_xmlSetNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlAttrPtr c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - xmlNsPtr ns; - PyObject *pyobj_ns; - xmlChar * name; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlSetNsProp", &pyobj_node, &pyobj_ns, &name, &value)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns); - - c_retval = xmlSetNsProp(node, ns, name, value); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_SAX1_ENABLED) -PyObject * -libxml_xmlSAXDefaultVersion(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int version; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlSAXDefaultVersion", &version)) - return(NULL); - - c_retval = xmlSAXDefaultVersion(version); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SAX1_ENABLED) */ -#if defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlValidateNotationUse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * notationName; - - if (!PyArg_ParseTuple(args, (char *)"OOz:xmlValidateNotationUse", &pyobj_ctxt, &pyobj_doc, ¬ationName)) - return(NULL); - ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlValidateNotationUse(ctxt, doc, notationName); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlGetCompressMode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - PyObject *py_retval; - int c_retval; - - c_retval = xmlGetCompressMode(); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlNewDocNoDtD(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - htmlDocPtr c_retval; - xmlChar * URI; - xmlChar * ExternalID; - - if (!PyArg_ParseTuple(args, (char *)"zz:htmlNewDocNoDtD", &URI, &ExternalID)) - return(NULL); - - c_retval = htmlNewDocNoDtD(URI, ExternalID); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -PyObject * -libxml_xmlURIEscape(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * str; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlURIEscape", &str)) - return(NULL); - - c_retval = xmlURIEscape(str); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_htmlDocContentDumpFormatOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlOutputBufferPtr buf; - PyObject *pyobj_buf; - xmlDocPtr cur; - PyObject *pyobj_cur; - char * encoding; - int format; - - if (!PyArg_ParseTuple(args, (char *)"OOzi:htmlDocContentDumpFormatOutput", &pyobj_buf, &pyobj_cur, &encoding, &format)) - return(NULL); - buf = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_buf); - cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); - - htmlDocContentDumpFormatOutput(buf, cur, encoding, format); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ -PyObject * -libxml_xmlURISetQuery(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlURIPtr URI; - PyObject *pyobj_URI; - char * query; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetQuery", &pyobj_URI, &query)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - if (URI->query != NULL) xmlFree(URI->query); - URI->query = (char *)xmlStrdup((const xmlChar *)query); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlTextReaderSchemaValidate(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - char * xsd; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlTextReaderSchemaValidate", &pyobj_reader, &xsd)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderSchemaValidate(reader, xsd); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsGreekandCoptic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGreekandCoptic", &code)) - return(NULL); - - c_retval = xmlUCSIsGreekandCoptic(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlUTF8Strlen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * utf; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlUTF8Strlen", &utf)) - return(NULL); - - c_retval = xmlUTF8Strlen(utf); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathAddValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathAddValues", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathAddValues(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlStrchr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlChar * str; - xmlChar val; - - if (!PyArg_ParseTuple(args, (char *)"zc:xmlStrchr", &str, &val)) - return(NULL); - - c_retval = xmlStrchr(str, val); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlNewTextLen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlChar * content; - int len; - - if (!PyArg_ParseTuple(args, (char *)"zi:xmlNewTextLen", &content, &len)) - return(NULL); - - c_retval = xmlNewTextLen(content, len); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlXPathIsInf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - double val; - - if (!PyArg_ParseTuple(args, (char *)"d:xmlXPathIsInf", &val)) - return(NULL); - - c_retval = xmlXPathIsInf(val); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCJKUnifiedIdeographs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKUnifiedIdeographs", &code)) - return(NULL); - - c_retval = xmlUCSIsCJKUnifiedIdeographs(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlValidateName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * value; - int space; - - if (!PyArg_ParseTuple(args, (char *)"zi:xmlValidateName", &value, &space)) - return(NULL); - - c_retval = xmlValidateName(value, space); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderConstString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - xmlChar * str; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlTextReaderConstString", &pyobj_reader, &str)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderConstString(reader, str); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaValidateFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlSchemaValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - char * filename; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlSchemaValidateFile", &pyobj_ctxt, &filename, &options)) - return(NULL); - ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt); - - c_retval = xmlSchemaValidateFile(ctxt, filename, options); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlAddNextSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlNodePtr cur; - PyObject *pyobj_cur; - xmlNodePtr elem; - PyObject *pyobj_elem; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlAddNextSibling", &pyobj_cur, &pyobj_elem)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - - c_retval = xmlAddNextSibling(cur, elem); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsSupplementalArrowsA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSupplementalArrowsA", &code)) - return(NULL); - - c_retval = xmlUCSIsSupplementalArrowsA(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsSupplementalArrowsB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSupplementalArrowsB", &code)) - return(NULL); - - c_retval = xmlUCSIsSupplementalArrowsB(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlErrorGetMessage(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const char * c_retval; - xmlErrorPtr Error; - PyObject *pyobj_Error; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlErrorGetMessage", &pyobj_Error)) - return(NULL); - Error = (xmlErrorPtr) PyError_Get(pyobj_Error); - - c_retval = Error->message; - py_retval = libxml_charPtrConstWrap((const char *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_HTML_ENABLED) -#endif -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathFalseFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathFalseFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathFalseFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderHasValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderHasValue", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderHasValue(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlRelaxNGDumpTree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * output; - PyObject *pyobj_output; - xmlRelaxNGPtr schema; - PyObject *pyobj_schema; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlRelaxNGDumpTree", &pyobj_output, &pyobj_schema)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - schema = (xmlRelaxNGPtr) PyrelaxNgSchema_Get(pyobj_schema); - - xmlRelaxNGDumpTree(output, schema); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_REGEXP_ENABLED) -PyObject * -libxml_xmlRegexpPrint(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * output; - PyObject *pyobj_output; - xmlRegexpPtr regexp; - PyObject *pyobj_regexp; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlRegexpPrint", &pyobj_output, &pyobj_regexp)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - regexp = (xmlRegexpPtr) PyxmlReg_Get(pyobj_regexp); - - xmlRegexpPrint(output, regexp); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_REGEXP_ENABLED) */ -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlNewValidCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - PyObject *py_retval; - xmlValidCtxtPtr c_retval; - - c_retval = xmlNewValidCtxt(); - py_retval = libxml_xmlValidCtxtPtrWrap((xmlValidCtxtPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -PyObject * -libxml_xmlURIEscapeStr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * str; - xmlChar * list; - - if (!PyArg_ParseTuple(args, (char *)"zz:xmlURIEscapeStr", &str, &list)) - return(NULL); - - c_retval = xmlURIEscapeStr(str, list); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathCountFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathCountFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathCountFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderNext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderNext", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderNext(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlParserSetPedantic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - int pedantic; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlParserSetPedantic", &pyobj_ctxt, &pedantic)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - ctxt->pedantic = pedantic; - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatLu(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatLu", &code)) - return(NULL); - - c_retval = xmlUCSIsCatLu(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatLt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatLt", &code)) - return(NULL); - - c_retval = xmlUCSIsCatLt(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatLo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatLo", &code)) - return(NULL); - - c_retval = xmlUCSIsCatLo(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlIsPubidChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - unsigned int ch; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlIsPubidChar", &ch)) - return(NULL); - - c_retval = xmlIsPubidChar(ch); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatLm(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatLm", &code)) - return(NULL); - - c_retval = xmlUCSIsCatLm(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatLl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatLl", &code)) - return(NULL); - - c_retval = xmlUCSIsCatLl(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlNewDocProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlAttrPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * name; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlNewDocProp", &pyobj_doc, &name, &value)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlNewDocProp(doc, name, value); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlLoadACatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlCatalogPtr c_retval; - char * filename; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlLoadACatalog", &filename)) - return(NULL); - - c_retval = xmlLoadACatalog(filename); - py_retval = libxml_xmlCatalogPtrWrap((xmlCatalogPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_REGEXP_ENABLED) -PyObject * -libxml_xmlRegexpExec(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlRegexpPtr comp; - PyObject *pyobj_comp; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlRegexpExec", &pyobj_comp, &content)) - return(NULL); - comp = (xmlRegexpPtr) PyxmlReg_Get(pyobj_comp); - - c_retval = xmlRegexpExec(comp, content); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_REGEXP_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatPe(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatPe", &code)) - return(NULL); - - c_retval = xmlUCSIsCatPe(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlByteConsumed(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - long c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlByteConsumed", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlByteConsumed(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlHasProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlAttrPtr c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlHasProp", &pyobj_node, &name)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlHasProp(node, name); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNamespaceURIFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathNamespaceURIFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathNamespaceURIFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlURISetScheme(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlURIPtr URI; - PyObject *pyobj_URI; - char * scheme; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetScheme", &pyobj_URI, &scheme)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - if (URI->scheme != NULL) xmlFree(URI->scheme); - URI->scheme = (char *)xmlStrdup((const xmlChar *)scheme); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsMiscellaneousSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMiscellaneousSymbols", &code)) - return(NULL); - - c_retval = xmlUCSIsMiscellaneousSymbols(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlGetDtdQAttrDesc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlAttributePtr c_retval; - xmlDtdPtr dtd; - PyObject *pyobj_dtd; - xmlChar * elem; - xmlChar * name; - xmlChar * prefix; - - if (!PyArg_ParseTuple(args, (char *)"Ozzz:xmlGetDtdQAttrDesc", &pyobj_dtd, &elem, &name, &prefix)) - return(NULL); - dtd = (xmlDtdPtr) PyxmlNode_Get(pyobj_dtd); - - c_retval = xmlGetDtdQAttrDesc(dtd, elem, name, prefix); - py_retval = libxml_xmlAttributePtrWrap((xmlAttributePtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlSetNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNodePtr node; - PyObject *pyobj_node; - xmlNsPtr ns; - PyObject *pyobj_ns; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlSetNs", &pyobj_node, &pyobj_ns)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns); - - xmlSetNs(node, ns); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlGetDtdEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlEntityPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlGetDtdEntity", &pyobj_doc, &name)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlGetDtdEntity(doc, name); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlIsXHTML(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * systemID; - xmlChar * publicID; - - if (!PyArg_ParseTuple(args, (char *)"zz:xmlIsXHTML", &systemID, &publicID)) - return(NULL); - - c_retval = xmlIsXHTML(systemID, publicID); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlURIUnescapeString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - char * c_retval; - char * str; - int len; - char * target; - - if (!PyArg_ParseTuple(args, (char *)"ziz:xmlURIUnescapeString", &str, &len, &target)) - return(NULL); - - c_retval = xmlURIUnescapeString(str, len, target); - py_retval = libxml_charPtrWrap((char *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsRunic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsRunic", &code)) - return(NULL); - - c_retval = xmlUCSIsRunic(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlGetParameterEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlEntityPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlGetParameterEntity", &pyobj_doc, &name)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlGetParameterEntity(doc, name); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlNewDocTextLen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * content; - int len; - - if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlNewDocTextLen", &pyobj_doc, &content, &len)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlNewDocTextLen(doc, content, len); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathParseName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathParseName", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - c_retval = xmlXPathParseName(ctxt); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlURISetPath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlURIPtr URI; - PyObject *pyobj_URI; - char * path; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetPath", &pyobj_URI, &path)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - if (URI->path != NULL) xmlFree(URI->path); - URI->path = (char *)xmlStrdup((const xmlChar *)path); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlErrorGetFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const char * c_retval; - xmlErrorPtr Error; - PyObject *pyobj_Error; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlErrorGetFile", &pyobj_Error)) - return(NULL); - Error = (xmlErrorPtr) PyError_Get(pyobj_Error); - - c_retval = Error->file; - py_retval = libxml_charPtrConstWrap((const char *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlGetProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlGetProp", &pyobj_node, &name)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlGetProp(node, name); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlACatalogResolveURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlCatalogPtr catal; - PyObject *pyobj_catal; - xmlChar * URI; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlACatalogResolveURI", &pyobj_catal, &URI)) - return(NULL); - catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal); - - c_retval = xmlACatalogResolveURI(catal, URI); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsVariationSelectors(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsVariationSelectors", &code)) - return(NULL); - - c_retval = xmlUCSIsVariationSelectors(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlLoadCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - char * filename; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlLoadCatalog", &filename)) - return(NULL); - - c_retval = xmlLoadCatalog(filename); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathEval(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - xmlChar * str; - xmlXPathContextPtr ctx; - PyObject *pyobj_ctx; - - if (!PyArg_ParseTuple(args, (char *)"zO:xmlXPathEval", &str, &pyobj_ctx)) - return(NULL); - ctx = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctx); - - c_retval = xmlXPathEval(str, ctx); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsTags(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsTags", &code)) - return(NULL); - - c_retval = xmlUCSIsTags(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlNewPI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlChar * name; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"zz:xmlNewPI", &name, &content)) - return(NULL); - - c_retval = xmlNewPI(name, content); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsLowSurrogates(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLowSurrogates", &code)) - return(NULL); - - c_retval = xmlUCSIsLowSurrogates(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsOsmanya(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsOsmanya", &code)) - return(NULL); - - c_retval = xmlUCSIsOsmanya(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlThrDefDoValidityCheckingDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int v; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefDoValidityCheckingDefaultValue", &v)) - return(NULL); - - c_retval = xmlThrDefDoValidityCheckingDefaultValue(v); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsBoxDrawing(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsBoxDrawing", &code)) - return(NULL); - - c_retval = xmlUCSIsBoxDrawing(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlStrndup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * cur; - int len; - - if (!PyArg_ParseTuple(args, (char *)"zi:xmlStrndup", &cur, &len)) - return(NULL); - - c_retval = xmlStrndup(cur, len); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderIsValid(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderIsValid", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderIsValid(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsByzantineMusicalSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsByzantineMusicalSymbols", &code)) - return(NULL); - - c_retval = xmlUCSIsByzantineMusicalSymbols(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlDefaultSAXHandlerInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - htmlDefaultSAXHandlerInit(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlShellPrintXPathError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - int errorType; - char * arg; - - if (!PyArg_ParseTuple(args, (char *)"iz:xmlShellPrintXPathError", &errorType, &arg)) - return(NULL); - - xmlShellPrintXPathError(errorType, arg); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlCatalogResolve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * pubID; - xmlChar * sysID; - - if (!PyArg_ParseTuple(args, (char *)"zz:xmlCatalogResolve", &pubID, &sysID)) - return(NULL); - - c_retval = xmlCatalogResolve(pubID, sysID); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderConstName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstName", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderConstName(reader); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaNewValidCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlSchemaValidCtxtPtr c_retval; - xmlSchemaPtr schema; - PyObject *pyobj_schema; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaNewValidCtxt", &pyobj_schema)) - return(NULL); - schema = (xmlSchemaPtr) PySchema_Get(pyobj_schema); - - c_retval = xmlSchemaNewValidCtxt(schema); - py_retval = libxml_xmlSchemaValidCtxtPtrWrap((xmlSchemaValidCtxtPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsKhmer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsKhmer", &code)) - return(NULL); - - c_retval = xmlUCSIsKhmer(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlParseCharRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseCharRef", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseCharRef(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlCopyCharMultiByte(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * out; - int val; - - if (!PyArg_ParseTuple(args, (char *)"zi:xmlCopyCharMultiByte", &out, &val)) - return(NULL); - - c_retval = xmlCopyCharMultiByte(out, val); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlParseVersionNum(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseVersionNum", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseVersionNum(ctxt); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlReaderWalker(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlTextReaderPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlReaderWalker", &pyobj_doc)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlReaderWalker(doc); - py_retval = libxml_xmlTextReaderPtrWrap((xmlTextReaderPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderNodeType(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderNodeType", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderNodeType(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlIsBlankNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlIsBlankNode", &pyobj_node)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlIsBlankNode(node); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlRelaxNGFree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlRelaxNGPtr schema; - PyObject *pyobj_schema; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlRelaxNGFree", &pyobj_schema)) - return(NULL); - schema = (xmlRelaxNGPtr) PyrelaxNgSchema_Get(pyobj_schema); - - xmlRelaxNGFree(schema); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlFreeProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlAttrPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeProp", &pyobj_cur)) - return(NULL); - cur = (xmlAttrPtr) PyxmlNode_Get(pyobj_cur); - - xmlFreeProp(cur); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlStrcmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * str1; - xmlChar * str2; - - if (!PyArg_ParseTuple(args, (char *)"zz:xmlStrcmp", &str1, &str2)) - return(NULL); - - c_retval = xmlStrcmp(str1, str2); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) -PyObject * -libxml_xmlDocSetRootElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr root; - PyObject *pyobj_root; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlDocSetRootElement", &pyobj_doc, &pyobj_root)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - root = (xmlNodePtr) PyxmlNode_Get(pyobj_root); - - c_retval = xmlDocSetRootElement(doc, root); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsKhmerSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsKhmerSymbols", &code)) - return(NULL); - - c_retval = xmlUCSIsKhmerSymbols(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_REGEXP_ENABLED) -PyObject * -libxml_xmlRegFreeRegexp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlRegexpPtr regexp; - PyObject *pyobj_regexp; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlRegFreeRegexp", &pyobj_regexp)) - return(NULL); - regexp = (xmlRegexpPtr) PyxmlReg_Get(pyobj_regexp); - - xmlRegFreeRegexp(regexp); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_REGEXP_ENABLED) */ -PyObject * -libxml_xmlSearchNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNsPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr node; - PyObject *pyobj_node; - xmlChar * nameSpace; - - if (!PyArg_ParseTuple(args, (char *)"OOz:xmlSearchNs", &pyobj_doc, &pyobj_node, &nameSpace)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlSearchNs(doc, node, nameSpace); - py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathParserGetContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathContextPtr c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathParserGetContext", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - c_retval = ctxt->context; - py_retval = libxml_xmlXPathContextPtrWrap((xmlXPathContextPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderReadAttributeValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderReadAttributeValue", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderReadAttributeValue(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_XINCLUDE_ENABLED) -PyObject * -libxml_xmlXIncludeProcessTreeFlags(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlNodePtr tree; - PyObject *pyobj_tree; - int flags; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXIncludeProcessTreeFlags", &pyobj_tree, &flags)) - return(NULL); - tree = (xmlNodePtr) PyxmlNode_Get(pyobj_tree); - - c_retval = xmlXIncludeProcessTreeFlags(tree, flags); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XINCLUDE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsGeorgian(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGeorgian", &code)) - return(NULL); - - c_retval = xmlUCSIsGeorgian(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlParserSetValidate(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - int validate; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlParserSetValidate", &pyobj_ctxt, &validate)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - ctxt->validate = validate; - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlValidNormalizeAttributeValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr elem; - PyObject *pyobj_elem; - xmlChar * name; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlValidNormalizeAttributeValue", &pyobj_doc, &pyobj_elem, &name, &value)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - - c_retval = xmlValidNormalizeAttributeValue(doc, elem, name, value); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -PyObject * -libxml_xmlParsePubidLiteral(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParsePubidLiteral", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParsePubidLiteral(ctxt); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlNewCharRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNewCharRef", &pyobj_doc, &name)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlNewCharRef(doc, name); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsArabic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsArabic", &code)) - return(NULL); - - c_retval = xmlUCSIsArabic(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsMiscellaneousMathematicalSymbolsB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMiscellaneousMathematicalSymbolsB", &code)) - return(NULL); - - c_retval = xmlUCSIsMiscellaneousMathematicalSymbolsB(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_HTTP_ENABLED) -PyObject * -libxml_xmlNanoHTTPCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlNanoHTTPCleanup(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_HTTP_ENABLED) */ -#if defined(LIBXML_LEGACY_ENABLED) -PyObject * -libxml_xmlParseQuotedString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseQuotedString", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseQuotedString(ctxt); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_LEGACY_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathCastStringToNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - double c_retval; - xmlChar * val; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlXPathCastStringToNumber", &val)) - return(NULL); - - c_retval = xmlXPathCastStringToNumber(val); - py_retval = libxml_doubleWrap((double) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNewCString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - char * val; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlXPathNewCString", &val)) - return(NULL); - - c_retval = xmlXPathNewCString(val); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderIsNamespaceDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderIsNamespaceDecl", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderIsNamespaceDecl(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlStopParser(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlStopParser", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlStopParser(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlReadFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - int fd; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"izzi:xmlReadFd", &fd, &URL, &encoding, &options)) - return(NULL); - - c_retval = xmlReadFd(fd, URL, encoding, options); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlACatalogResolveSystem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlCatalogPtr catal; - PyObject *pyobj_catal; - xmlChar * sysID; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlACatalogResolveSystem", &pyobj_catal, &sysID)) - return(NULL); - catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal); - - c_retval = xmlACatalogResolveSystem(catal, sysID); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -PyObject * -libxml_xmlCreateDocParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlParserCtxtPtr c_retval; - xmlChar * cur; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlCreateDocParserCtxt", &cur)) - return(NULL); - - c_retval = xmlCreateDocParserCtxt(cur); - py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsTaiXuanJingSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsTaiXuanJingSymbols", &code)) - return(NULL); - - c_retval = xmlUCSIsTaiXuanJingSymbols(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_htmlDocDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - FILE * f; - PyObject *pyobj_f; - xmlDocPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:htmlDocDump", &pyobj_f, &pyobj_cur)) - return(NULL); - f = (FILE *) PyFile_Get(pyobj_f); - cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = htmlDocDump(f, cur); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ -PyObject * -libxml_xmlCheckFilename(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - char * path; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlCheckFilename", &path)) - return(NULL); - - c_retval = xmlCheckFilename(path); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlTextReaderRelaxNGValidate(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - char * rng; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlTextReaderRelaxNGValidate", &pyobj_reader, &rng)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderRelaxNGValidate(reader, rng); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlFreeNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeNodeList", &pyobj_cur)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xmlFreeNodeList(cur); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathDivValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathDivValues", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathDivValues(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathPositionFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathPositionFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathPositionFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsTelugu(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsTelugu", &code)) - return(NULL); - - c_retval = xmlUCSIsTelugu(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_DEBUG_ENABLED) -PyObject * -libxml_xmlLsCountNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlLsCountNode", &pyobj_node)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlLsCountNode(node); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_DEBUG_ENABLED) */ -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlParseCatalogFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - char * filename; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlParseCatalogFile", &filename)) - return(NULL); - - c_retval = xmlParseCatalogFile(filename); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathGetFunctionURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathGetFunctionURI", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - c_retval = ctxt->functionURI; - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatMn(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatMn", &code)) - return(NULL); - - c_retval = xmlUCSIsCatMn(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatMc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatMc", &code)) - return(NULL); - - c_retval = xmlUCSIsCatMc(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatMe(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatMe", &code)) - return(NULL); - - c_retval = xmlUCSIsCatMe(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlGetEncodingAlias(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const char * c_retval; - char * alias; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlGetEncodingAlias", &alias)) - return(NULL); - - c_retval = xmlGetEncodingAlias(alias); - py_retval = libxml_charPtrConstWrap((const char *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlACatalogAdd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlCatalogPtr catal; - PyObject *pyobj_catal; - xmlChar * type; - xmlChar * orig; - xmlChar * replace; - - if (!PyArg_ParseTuple(args, (char *)"Ozzz:xmlACatalogAdd", &pyobj_catal, &type, &orig, &replace)) - return(NULL); - catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal); - - c_retval = xmlACatalogAdd(catal, type, orig, replace); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -PyObject * -libxml_xmlNewNsPropEatName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlAttrPtr c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - xmlNsPtr ns; - PyObject *pyobj_ns; - xmlChar * name; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlNewNsPropEatName", &pyobj_node, &pyobj_ns, &name, &value)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns); - - c_retval = xmlNewNsPropEatName(node, ns, name, value); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlStrdup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * cur; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlStrdup", &cur)) - return(NULL); - - c_retval = xmlStrdup(cur); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlCtxtReadDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * cur; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Ozzzi:xmlCtxtReadDoc", &pyobj_ctxt, &cur, &URL, &encoding, &options)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlCtxtReadDoc(ctxt, cur, URL, encoding, options); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlSubstituteEntitiesDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int val; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlSubstituteEntitiesDefault", &val)) - return(NULL); - - c_retval = xmlSubstituteEntitiesDefault(val); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderQuoteChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderQuoteChar", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderQuoteChar(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlInitCharEncodingHandlers(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlInitCharEncodingHandlers(); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_REGEXP_ENABLED) -PyObject * -libxml_xmlRegexpCompile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlRegexpPtr c_retval; - xmlChar * regexp; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlRegexpCompile", ®exp)) - return(NULL); - - c_retval = xmlRegexpCompile(regexp); - py_retval = libxml_xmlRegexpPtrWrap((xmlRegexpPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_REGEXP_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathRegisteredNsCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathRegisteredNsCleanup", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - xmlXPathRegisteredNsCleanup(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsKannada(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsKannada", &code)) - return(NULL); - - c_retval = xmlUCSIsKannada(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderConstValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstValue", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderConstValue(reader); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_DOCB_ENABLED) -PyObject * -libxml_docbDefaultSAXHandlerInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - docbDefaultSAXHandlerInit(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_DOCB_ENABLED) */ -#if defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) -PyObject * -libxml_xmlValidatePushCData(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * data; - int len; - - if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlValidatePushCData", &pyobj_ctxt, &data, &len)) - return(NULL); - ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt); - - c_retval = xmlValidatePushCData(ctxt, data, len); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) */ -PyObject * -libxml_xmlErrorGetDomain(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlErrorPtr Error; - PyObject *pyobj_Error; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlErrorGetDomain", &pyobj_Error)) - return(NULL); - Error = (xmlErrorPtr) PyError_Get(pyobj_Error); - - c_retval = Error->domain; - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathFloorFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathFloorFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathFloorFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsTibetan(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsTibetan", &code)) - return(NULL); - - c_retval = xmlUCSIsTibetan(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlUTF8Strndup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * utf; - int len; - - if (!PyArg_ParseTuple(args, (char *)"zi:xmlUTF8Strndup", &utf, &len)) - return(NULL); - - c_retval = xmlUTF8Strndup(utf, len); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_LEGACY_ENABLED) -PyObject * -libxml_xmlNewGlobalNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNsPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * href; - xmlChar * prefix; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlNewGlobalNs", &pyobj_doc, &href, &prefix)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlNewGlobalNs(doc, href, prefix); - py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_LEGACY_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathStringLengthFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathStringLengthFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathStringLengthFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlDocDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - FILE * f; - PyObject *pyobj_f; - xmlDocPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlDocDump", &pyobj_f, &pyobj_cur)) - return(NULL); - f = (FILE *) PyFile_Get(pyobj_f); - cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlDocDump(f, cur); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNextSelf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextSelf", &pyobj_ctxt, &pyobj_cur)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlXPathNextSelf(ctxt, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCyrillicSupplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCyrillicSupplement", &code)) - return(NULL); - - c_retval = xmlUCSIsCyrillicSupplement(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlParseURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlURIPtr c_retval; - char * str; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlParseURI", &str)) - return(NULL); - - c_retval = xmlParseURI(str); - py_retval = libxml_xmlURIPtrWrap((xmlURIPtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlCopyProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlAttrPtr c_retval; - xmlNodePtr target; - PyObject *pyobj_target; - xmlAttrPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlCopyProp", &pyobj_target, &pyobj_cur)) - return(NULL); - target = (xmlNodePtr) PyxmlNode_Get(pyobj_target); - cur = (xmlAttrPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlCopyProp(target, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlURIGetPort(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlURIPtr URI; - PyObject *pyobj_URI; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetPort", &pyobj_URI)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - c_retval = URI->port; - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_htmlSaveFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - char * filename; - xmlDocPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"zO:htmlSaveFile", &filename, &pyobj_cur)) - return(NULL); - cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = htmlSaveFile(filename, cur); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderCurrentDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderCurrentDoc", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderCurrentDoc(reader); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlParsePITarget(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParsePITarget", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParsePITarget(ctxt); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlURISetOpaque(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlURIPtr URI; - PyObject *pyobj_URI; - char * opaque; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetOpaque", &pyobj_URI, &opaque)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - if (URI->opaque != NULL) xmlFree(URI->opaque); - URI->opaque = (char *)xmlStrdup((const xmlChar *)opaque); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlNewNodeEatName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlNsPtr ns; - PyObject *pyobj_ns; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNewNodeEatName", &pyobj_ns, &name)) - return(NULL); - ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns); - - c_retval = xmlNewNodeEatName(ns, name); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlIsCombining(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - unsigned int ch; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlIsCombining", &ch)) - return(NULL); - - c_retval = xmlIsCombining(ch); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlReadFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - htmlDocPtr c_retval; - int fd; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"izzi:htmlReadFd", &fd, &URL, &encoding, &options)) - return(NULL); - - c_retval = htmlReadFd(fd, URL, encoding, options); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderNormalization(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderNormalization", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderNormalization(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathEvalExpression(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - xmlChar * str; - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"zO:xmlXPathEvalExpression", &str, &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - c_retval = xmlXPathEvalExpression(str, ctxt); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlStrncatNew(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * str1; - xmlChar * str2; - int len; - - if (!PyArg_ParseTuple(args, (char *)"zzi:xmlStrncatNew", &str1, &str2, &len)) - return(NULL); - - c_retval = xmlStrncatNew(str1, str2, len); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlCatalogResolvePublic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * pubID; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlCatalogResolvePublic", &pubID)) - return(NULL); - - c_retval = xmlCatalogResolvePublic(pubID); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -PyObject * -libxml_xmlNewCDataBlock(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * content; - int len; - - if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlNewCDataBlock", &pyobj_doc, &content, &len)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlNewCDataBlock(doc, content, len); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlURIGetServer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const char * c_retval; - xmlURIPtr URI; - PyObject *pyobj_URI; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetServer", &pyobj_URI)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - c_retval = URI->server; - py_retval = libxml_charPtrConstWrap((const char *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_htmlSaveFileFormat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - char * filename; - xmlDocPtr cur; - PyObject *pyobj_cur; - char * encoding; - int format; - - if (!PyArg_ParseTuple(args, (char *)"zOzi:htmlSaveFileFormat", &filename, &pyobj_cur, &encoding, &format)) - return(NULL); - cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = htmlSaveFileFormat(filename, cur, encoding, format); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ -PyObject * -libxml_xmlNodeIsText(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlNodeIsText", &pyobj_node)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlNodeIsText(node); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlParserSetReplaceEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - int replaceEntities; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlParserSetReplaceEntities", &pyobj_ctxt, &replaceEntities)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - ctxt->replaceEntities = replaceEntities; - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathStringEvalNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - double c_retval; - xmlChar * str; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlXPathStringEvalNumber", &str)) - return(NULL); - - c_retval = xmlXPathStringEvalNumber(str); - py_retval = libxml_doubleWrap((double) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlUTF8Strsize(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * utf; - int len; - - if (!PyArg_ParseTuple(args, (char *)"zi:xmlUTF8Strsize", &utf, &len)) - return(NULL); - - c_retval = xmlUTF8Strsize(utf, len); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderStandalone(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderStandalone", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderStandalone(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_SAX1_ENABLED) -PyObject * -libxml_xmlParseStartTag(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseStartTag", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseStartTag(ctxt); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SAX1_ENABLED) */ -#if defined(LIBXML_SAX1_ENABLED) -PyObject * -libxml_xmlSetupParserForBuffer(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * buffer; - char * filename; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlSetupParserForBuffer", &pyobj_ctxt, &buffer, &filename)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlSetupParserForBuffer(ctxt, buffer, filename); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_SAX1_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlNewTextReaderFilename(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlTextReaderPtr c_retval; - char * URI; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlNewTextReaderFilename", &URI)) - return(NULL); - - c_retval = xmlNewTextReaderFilename(URI); - py_retval = libxml_xmlTextReaderPtrWrap((xmlTextReaderPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNumberFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathNumberFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathNumberFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_DEBUG_ENABLED) -PyObject * -libxml_xmlLsOneNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * output; - PyObject *pyobj_output; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlLsOneNode", &pyobj_output, &pyobj_node)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - xmlLsOneNode(output, node); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_DEBUG_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsGreekExtended(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGreekExtended", &code)) - return(NULL); - - c_retval = xmlUCSIsGreekExtended(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlNewDocNodeEatName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNsPtr ns; - PyObject *pyobj_ns; - xmlChar * name; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlNewDocNodeEatName", &pyobj_doc, &pyobj_ns, &name, &content)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns); - - c_retval = xmlNewDocNodeEatName(doc, ns, name, content); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlReaderForDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlTextReaderPtr c_retval; - xmlChar * cur; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"zzzi:xmlReaderForDoc", &cur, &URL, &encoding, &options)) - return(NULL); - - c_retval = xmlReaderForDoc(cur, URL, encoding, options); - py_retval = libxml_xmlTextReaderPtrWrap((xmlTextReaderPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlRelaxNGParse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlRelaxNGPtr c_retval; - xmlRelaxNGParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlRelaxNGParse", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlRelaxNGParserCtxtPtr) PyrelaxNgParserCtxt_Get(pyobj_ctxt); - - c_retval = xmlRelaxNGParse(ctxt); - py_retval = libxml_xmlRelaxNGPtrWrap((xmlRelaxNGPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlAddDocEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlEntityPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * name; - int type; - xmlChar * ExternalID; - xmlChar * SystemID; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"Ozizzz:xmlAddDocEntity", &pyobj_doc, &name, &type, &ExternalID, &SystemID, &content)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlAddDocEntity(doc, name, type, ExternalID, SystemID, content); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsMyanmar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMyanmar", &code)) - return(NULL); - - c_retval = xmlUCSIsMyanmar(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathIsNodeType(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlXPathIsNodeType", &name)) - return(NULL); - - c_retval = xmlXPathIsNodeType(name); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathRoot(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathRoot", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathRoot(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathVariableLookup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlXPathVariableLookup", &pyobj_ctxt, &name)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - c_retval = xmlXPathVariableLookup(ctxt, name); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNextFollowing(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextFollowing", &pyobj_ctxt, &pyobj_cur)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlXPathNextFollowing(ctxt, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsHangulCompatibilityJamo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHangulCompatibilityJamo", &code)) - return(NULL); - - c_retval = xmlUCSIsHangulCompatibilityJamo(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) -PyObject * -libxml_xmlNewTextChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlNodePtr parent; - PyObject *pyobj_parent; - xmlNsPtr ns; - PyObject *pyobj_ns; - xmlChar * name; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlNewTextChild", &pyobj_parent, &pyobj_ns, &name, &content)) - return(NULL); - parent = (xmlNodePtr) PyxmlNode_Get(pyobj_parent); - ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns); - - c_retval = xmlNewTextChild(parent, ns, name, content); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) */ -PyObject * -libxml_xmlAddChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlNodePtr parent; - PyObject *pyobj_parent; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlAddChild", &pyobj_parent, &pyobj_cur)) - return(NULL); - parent = (xmlNodePtr) PyxmlNode_Get(pyobj_parent); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlAddChild(parent, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathErr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int error; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathErr", &pyobj_ctxt, &error)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathErr(ctxt, error); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderDepth(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderDepth", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderDepth(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsHiragana(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHiragana", &code)) - return(NULL); - - c_retval = xmlUCSIsHiragana(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlRelaxNGDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * output; - PyObject *pyobj_output; - xmlRelaxNGPtr schema; - PyObject *pyobj_schema; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlRelaxNGDump", &pyobj_output, &pyobj_schema)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - schema = (xmlRelaxNGPtr) PyrelaxNgSchema_Get(pyobj_schema); - - xmlRelaxNGDump(output, schema); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ -PyObject * -libxml_xmlFreeURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlURIPtr uri; - PyObject *pyobj_uri; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeURI", &pyobj_uri)) - return(NULL); - uri = (xmlURIPtr) PyURI_Get(pyobj_uri); - - xmlFreeURI(uri); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNextParent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextParent", &pyobj_ctxt, &pyobj_cur)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlXPathNextParent(ctxt, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsDevanagari(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsDevanagari", &code)) - return(NULL); - - c_retval = xmlUCSIsDevanagari(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlNodeGetContent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlNodeGetContent", &pyobj_cur)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlNodeGetContent(cur); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderIsEmptyElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderIsEmptyElement", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderIsEmptyElement(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsIPAExtensions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsIPAExtensions", &code)) - return(NULL); - - c_retval = xmlUCSIsIPAExtensions(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPTR_ENABLED) -PyObject * -libxml_xmlXPtrNewContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathContextPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr here; - PyObject *pyobj_here; - xmlNodePtr origin; - PyObject *pyobj_origin; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xmlXPtrNewContext", &pyobj_doc, &pyobj_here, &pyobj_origin)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - here = (xmlNodePtr) PyxmlNode_Get(pyobj_here); - origin = (xmlNodePtr) PyxmlNode_Get(pyobj_origin); - - c_retval = xmlXPtrNewContext(doc, here, origin); - py_retval = libxml_xmlXPathContextPtrWrap((xmlXPathContextPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPTR_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsYiSyllables(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsYiSyllables", &code)) - return(NULL); - - c_retval = xmlUCSIsYiSyllables(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderLookupNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - xmlChar * prefix; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlTextReaderLookupNamespace", &pyobj_reader, &prefix)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderLookupNamespace(reader, prefix); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlNodeGetLang(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlNodeGetLang", &pyobj_cur)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlNodeGetLang(cur); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlNewParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - PyObject *py_retval; - xmlParserCtxtPtr c_retval; - - c_retval = xmlNewParserCtxt(); - py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_FTP_ENABLED) -PyObject * -libxml_xmlNanoFTPScanProxy(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - char * URL; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlNanoFTPScanProxy", &URL)) - return(NULL); - - xmlNanoFTPScanProxy(URL); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_FTP_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaFree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlSchemaPtr schema; - PyObject *pyobj_schema; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaFree", &pyobj_schema)) - return(NULL); - schema = (xmlSchemaPtr) PySchema_Get(pyobj_schema); - - xmlSchemaFree(schema); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderNextSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderNextSibling", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderNextSibling(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlClearParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlClearParserCtxt", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlClearParserCtxt(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_DEBUG_ENABLED) || defined (LIBXML_HTML_ENABLED) -PyObject * -libxml_xmlValidateNCName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * value; - int space; - - if (!PyArg_ParseTuple(args, (char *)"zi:xmlValidateNCName", &value, &space)) - return(NULL); - - c_retval = xmlValidateNCName(value, space); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_DEBUG_ENABLED) || defined (LIBXML_HTML_ENABLED) */ -PyObject * -libxml_xmlStrlen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * str; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlStrlen", &str)) - return(NULL); - - c_retval = xmlStrlen(str); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_DEBUG_ENABLED) -PyObject * -libxml_xmlDebugDumpDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * output; - PyObject *pyobj_output; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlDebugDumpDocument", &pyobj_output, &pyobj_doc)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - xmlDebugDumpDocument(output, doc); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_DEBUG_ENABLED) */ -#if defined(LIBXML_XPTR_ENABLED) -PyObject * -libxml_xmlXPtrEval(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - xmlChar * str; - xmlXPathContextPtr ctx; - PyObject *pyobj_ctx; - - if (!PyArg_ParseTuple(args, (char *)"zO:xmlXPtrEval", &str, &pyobj_ctx)) - return(NULL); - ctx = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctx); - - c_retval = xmlXPtrEval(str, ctx); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPTR_ENABLED) */ -PyObject * -libxml_xmlPopInput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlPopInput", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlPopInput(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathBooleanFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathBooleanFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathBooleanFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderSetParserProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - int prop; - int value; - - if (!PyArg_ParseTuple(args, (char *)"Oii:xmlTextReaderSetParserProp", &pyobj_reader, &prop, &value)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderSetParserProp(reader, prop, value); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderGetRemainder(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlParserInputBufferPtr c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderGetRemainder", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderGetRemainder(reader); - py_retval = libxml_xmlParserInputBufferPtrWrap((xmlParserInputBufferPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsGujarati(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGujarati", &code)) - return(NULL); - - c_retval = xmlUCSIsGujarati(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlSetMetaEncoding(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - htmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * encoding; - - if (!PyArg_ParseTuple(args, (char *)"Oz:htmlSetMetaEncoding", &pyobj_doc, &encoding)) - return(NULL); - doc = (htmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = htmlSetMetaEncoding(doc, encoding); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlReaderNewDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - xmlChar * cur; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Ozzzi:xmlReaderNewDoc", &pyobj_reader, &cur, &URL, &encoding, &options)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlReaderNewDoc(reader, cur, URL, encoding, options); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderConstPrefix(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstPrefix", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderConstPrefix(reader); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_SAX1_ENABLED) -PyObject * -libxml_xmlRecoverDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xmlChar * cur; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlRecoverDoc", &cur)) - return(NULL); - - c_retval = xmlRecoverDoc(cur); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SAX1_ENABLED) */ -PyObject * -libxml_xmlNormalizeWindowsPath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * path; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlNormalizeWindowsPath", &path)) - return(NULL); - - c_retval = xmlNormalizeWindowsPath(path); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XINCLUDE_ENABLED) -PyObject * -libxml_xmlXIncludeProcessTree(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlNodePtr tree; - PyObject *pyobj_tree; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXIncludeProcessTree", &pyobj_tree)) - return(NULL); - tree = (xmlNodePtr) PyxmlNode_Get(pyobj_tree); - - c_retval = xmlXIncludeProcessTree(tree); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XINCLUDE_ENABLED) */ -#if defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlCatalogDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * out; - PyObject *pyobj_out; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlCatalogDump", &pyobj_out)) - return(NULL); - out = (FILE *) PyFile_Get(pyobj_out); - - xmlCatalogDump(out); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNextDescendantOrSelf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextDescendantOrSelf", &pyobj_ctxt, &pyobj_cur)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlXPathNextDescendantOrSelf(ctxt, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_LEGACY_ENABLED) -PyObject * -libxml_xmlParseNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseNamespace", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseNamespace(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_LEGACY_ENABLED) */ -PyObject * -libxml_xmlStrcasecmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * str1; - xmlChar * str2; - - if (!PyArg_ParseTuple(args, (char *)"zz:xmlStrcasecmp", &str1, &str2)) - return(NULL); - - c_retval = xmlStrcasecmp(str1, str2); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlReaderForMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlTextReaderPtr c_retval; - char * buffer; - int size; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"zizzi:xmlReaderForMemory", &buffer, &size, &URL, &encoding, &options)) - return(NULL); - - c_retval = xmlReaderForMemory(buffer, size, URL, encoding, options); - py_retval = libxml_xmlTextReaderPtrWrap((xmlTextReaderPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderByteConsumed(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - long c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderByteConsumed", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderByteConsumed(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlNewDtd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDtdPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * name; - xmlChar * ExternalID; - xmlChar * SystemID; - - if (!PyArg_ParseTuple(args, (char *)"Ozzz:xmlNewDtd", &pyobj_doc, &name, &ExternalID, &SystemID)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlNewDtd(doc, name, ExternalID, SystemID); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsBlockElements(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsBlockElements", &code)) - return(NULL); - - c_retval = xmlUCSIsBlockElements(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlNodeGetBase(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlNodeGetBase", &pyobj_doc, &pyobj_cur)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlNodeGetBase(doc, cur); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNextAncestorOrSelf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextAncestorOrSelf", &pyobj_ctxt, &pyobj_cur)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlXPathNextAncestorOrSelf(ctxt, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNewFloat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - double val; - - if (!PyArg_ParseTuple(args, (char *)"d:xmlXPathNewFloat", &val)) - return(NULL); - - c_retval = xmlXPathNewFloat(val); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNewString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - xmlChar * val; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlXPathNewString", &val)) - return(NULL); - - c_retval = xmlXPathNewString(val); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlAddSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlNodePtr cur; - PyObject *pyobj_cur; - xmlNodePtr elem; - PyObject *pyobj_elem; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlAddSibling", &pyobj_cur, &pyobj_elem)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - - c_retval = xmlAddSibling(cur, elem); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_LEGACY_ENABLED) -PyObject * -libxml_xmlScanName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlScanName", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlScanName(ctxt); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_LEGACY_ENABLED) */ -PyObject * -libxml_xmlRegisterDefaultInputCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlRegisterDefaultInputCallbacks(); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_DEBUG_ENABLED) -PyObject * -libxml_xmlDebugDumpEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * output; - PyObject *pyobj_output; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlDebugDumpEntities", &pyobj_output, &pyobj_doc)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - xmlDebugDumpEntities(output, doc); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_DEBUG_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNextAncestor(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextAncestor", &pyobj_ctxt, &pyobj_cur)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlXPathNextAncestor(ctxt, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathCastNumberToBoolean(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - double val; - - if (!PyArg_ParseTuple(args, (char *)"d:xmlXPathCastNumberToBoolean", &val)) - return(NULL); - - c_retval = xmlXPathCastNumberToBoolean(val); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatCs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatCs", &code)) - return(NULL); - - c_retval = xmlUCSIsCatCs(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatCf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatCf", &code)) - return(NULL); - - c_retval = xmlUCSIsCatCf(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatCo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatCo", &code)) - return(NULL); - - c_retval = xmlUCSIsCatCo(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_SAX1_ENABLED) -PyObject * -libxml_xmlRecoverMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - char * buffer; - int py_buffsize0; - int size; - - if (!PyArg_ParseTuple(args, (char *)"t#i:xmlRecoverMemory", &buffer, &py_buffsize0, &size)) - return(NULL); - - c_retval = xmlRecoverMemory(buffer, size); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SAX1_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderIsDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderIsDefault", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderIsDefault(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlParserGetWellFormed(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParserGetWellFormed", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = ctxt->wellFormed; - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlRemoveRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlAttrPtr attr; - PyObject *pyobj_attr; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlRemoveRef", &pyobj_doc, &pyobj_attr)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr); - - c_retval = xmlRemoveRef(doc, attr); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlReaderNewMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - char * buffer; - int size; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Ozizzi:xmlReaderNewMemory", &pyobj_reader, &buffer, &size, &URL, &encoding, &options)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlReaderNewMemory(reader, buffer, size, URL, encoding, options); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlTextReaderSchemaValidateCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - xmlSchemaValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - int options; - - if (!PyArg_ParseTuple(args, (char *)"OOi:xmlTextReaderSchemaValidateCtxt", &pyobj_reader, &pyobj_ctxt, &options)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt); - - c_retval = xmlTextReaderSchemaValidateCtxt(reader, ctxt, options); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlNewProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlAttrPtr c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - xmlChar * name; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlNewProp", &pyobj_node, &name, &value)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlNewProp(node, name, value); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlParserGetDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParserGetDoc", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = ctxt->myDoc; - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlCleanupCharEncodingHandlers(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlCleanupCharEncodingHandlers(); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlRelaxNGValidatePopElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlRelaxNGValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr elem; - PyObject *pyobj_elem; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xmlRelaxNGValidatePopElement", &pyobj_ctxt, &pyobj_doc, &pyobj_elem)) - return(NULL); - ctxt = (xmlRelaxNGValidCtxtPtr) PyrelaxNgValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - - c_retval = xmlRelaxNGValidatePopElement(ctxt, doc, elem); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlParseEntityRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlEntityPtr c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseEntityRef", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseEntityRef(ctxt); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlInitAutoClose(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - htmlInitAutoClose(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_WRITER_ENABLED) -PyObject * -libxml_xmlTextReaderReadOuterXml(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderReadOuterXml", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderReadOuterXml(reader); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_WRITER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsTamil(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsTamil", &code)) - return(NULL); - - c_retval = xmlUCSIsTamil(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_DEBUG_ENABLED) -PyObject * -libxml_xmlDebugDumpString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * output; - PyObject *pyobj_output; - xmlChar * str; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlDebugDumpString", &pyobj_output, &str)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - - xmlDebugDumpString(output, str); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_DEBUG_ENABLED) */ -PyObject * -libxml_xmlCleanupGlobals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlCleanupGlobals(); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_LEGACY_ENABLED) -PyObject * -libxml_xmlEncodeEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * input; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlEncodeEntities", &pyobj_doc, &input)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlEncodeEntities(doc, input); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_LEGACY_ENABLED) */ -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlNewCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlCatalogPtr c_retval; - int sgml; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlNewCatalog", &sgml)) - return(NULL); - - c_retval = xmlNewCatalog(sgml); - py_retval = libxml_xmlCatalogPtrWrap((xmlCatalogPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -PyObject * -libxml_xmlStrncasecmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * str1; - xmlChar * str2; - int len; - - if (!PyArg_ParseTuple(args, (char *)"zzi:xmlStrncasecmp", &str1, &str2, &len)) - return(NULL); - - c_retval = xmlStrncasecmp(str1, str2, len); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlCanonicPath(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * path; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlCanonicPath", &path)) - return(NULL); - - c_retval = xmlCanonicPath(path); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNextPrecedingSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextPrecedingSibling", &pyobj_ctxt, &pyobj_cur)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlXPathNextPrecedingSibling(ctxt, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlCatalogCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlCatalogCleanup(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -PyObject * -libxml_xmlNextChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlNextChar", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlNextChar(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlIsID(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr elem; - PyObject *pyobj_elem; - xmlAttrPtr attr; - PyObject *pyobj_attr; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xmlIsID", &pyobj_doc, &pyobj_elem, &pyobj_attr)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr); - - c_retval = xmlIsID(doc, elem, attr); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlParseExtParsedEnt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseExtParsedEnt", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseExtParsedEnt(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_FTP_ENABLED) -PyObject * -libxml_xmlNanoFTPProxy(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - char * host; - int port; - char * user; - char * passwd; - int type; - - if (!PyArg_ParseTuple(args, (char *)"zizzi:xmlNanoFTPProxy", &host, &port, &user, &passwd, &type)) - return(NULL); - - xmlNanoFTPProxy(host, port, user, passwd, type); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_FTP_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCJKUnifiedIdeographsExtensionA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKUnifiedIdeographsExtensionA", &code)) - return(NULL); - - c_retval = xmlUCSIsCJKUnifiedIdeographsExtensionA(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCJKUnifiedIdeographsExtensionB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKUnifiedIdeographsExtensionB", &code)) - return(NULL); - - c_retval = xmlUCSIsCJKUnifiedIdeographsExtensionB(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlCreateMemoryParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - htmlParserCtxtPtr c_retval; - char * buffer; - int py_buffsize0; - int size; - - if (!PyArg_ParseTuple(args, (char *)"t#i:htmlCreateMemoryParserCtxt", &buffer, &py_buffsize0, &size)) - return(NULL); - - c_retval = htmlCreateMemoryParserCtxt(buffer, size); - py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -PyObject * -libxml_xmlIsDigit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - unsigned int ch; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlIsDigit", &ch)) - return(NULL); - - c_retval = xmlIsDigit(ch); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlCatalogSetDebug(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int level; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlCatalogSetDebug", &level)) - return(NULL); - - c_retval = xmlCatalogSetDebug(level); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -PyObject * -libxml_xmlParserGetDirectory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - char * c_retval; - char * filename; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlParserGetDirectory", &filename)) - return(NULL); - - c_retval = xmlParserGetDirectory(filename); - py_retval = libxml_charPtrWrap((char *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaCleanupTypes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlSchemaCleanupTypes(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlFreeNsList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNsPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeNsList", &pyobj_cur)) - return(NULL); - cur = (xmlNsPtr) PyxmlNode_Get(pyobj_cur); - - xmlFreeNsList(cur); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlParseEntityDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseEntityDecl", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseEntityDecl(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlDocCopyNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - xmlDocPtr doc; - PyObject *pyobj_doc; - int extended; - - if (!PyArg_ParseTuple(args, (char *)"OOi:xmlDocCopyNode", &pyobj_node, &pyobj_doc, &extended)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlDocCopyNode(node, doc, extended); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_nodePop(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:nodePop", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = nodePop(ctxt); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNextDescendant(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextDescendant", &pyobj_ctxt, &pyobj_cur)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlXPathNextDescendant(ctxt, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNewNodeSet(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - xmlNodePtr val; - PyObject *pyobj_val; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathNewNodeSet", &pyobj_val)) - return(NULL); - val = (xmlNodePtr) PyxmlNode_Get(pyobj_val); - - c_retval = xmlXPathNewNodeSet(val); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaNewParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlSchemaParserCtxtPtr c_retval; - char * URL; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlSchemaNewParserCtxt", &URL)) - return(NULL); - - c_retval = xmlSchemaNewParserCtxt(URL); - py_retval = libxml_xmlSchemaParserCtxtPtrWrap((xmlSchemaParserCtxtPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlInitializeCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlInitializeCatalog(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_SAX1_ENABLED) -PyObject * -libxml_xmlParseEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - char * filename; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlParseEntity", &filename)) - return(NULL); - - c_retval = xmlParseEntity(filename); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SAX1_ENABLED) */ -PyObject * -libxml_xmlDocGetRootElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlDocGetRootElement", &pyobj_doc)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlDocGetRootElement(doc); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathPopString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathPopString", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - c_retval = xmlXPathPopString(ctxt); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlCreateFileParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - htmlParserCtxtPtr c_retval; - char * filename; - char * encoding; - - if (!PyArg_ParseTuple(args, (char *)"zz:htmlCreateFileParserCtxt", &filename, &encoding)) - return(NULL); - - c_retval = htmlCreateFileParserCtxt(filename, encoding); - py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderConstEncoding(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstEncoding", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderConstEncoding(reader); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlValidateOneAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr elem; - PyObject *pyobj_elem; - xmlAttrPtr attr; - PyObject *pyobj_attr; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"OOOOz:xmlValidateOneAttribute", &pyobj_ctxt, &pyobj_doc, &pyobj_elem, &pyobj_attr, &value)) - return(NULL); - ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr); - - c_retval = xmlValidateOneAttribute(ctxt, doc, elem, attr, value); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -PyObject * -libxml_xmlAddEncodingAlias(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - char * name; - char * alias; - - if (!PyArg_ParseTuple(args, (char *)"zz:xmlAddEncodingAlias", &name, &alias)) - return(NULL); - - c_retval = xmlAddEncodingAlias(name, alias); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderMoveToAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlTextReaderMoveToAttribute", &pyobj_reader, &name)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderMoveToAttribute(reader, name); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCJKCompatibilityForms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKCompatibilityForms", &code)) - return(NULL); - - c_retval = xmlUCSIsCJKCompatibilityForms(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlTextReaderSetSchema(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - xmlSchemaPtr schema; - PyObject *pyobj_schema; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlTextReaderSetSchema", &pyobj_reader, &pyobj_schema)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - schema = (xmlSchemaPtr) PySchema_Get(pyobj_schema); - - c_retval = xmlTextReaderSetSchema(reader, schema); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlUnsetNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - xmlNsPtr ns; - PyObject *pyobj_ns; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"OOz:xmlUnsetNsProp", &pyobj_node, &pyobj_ns, &name)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns); - - c_retval = xmlUnsetNsProp(node, ns, name); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlElemDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * f; - PyObject *pyobj_f; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xmlElemDump", &pyobj_f, &pyobj_doc, &pyobj_cur)) - return(NULL); - f = (FILE *) PyFile_Get(pyobj_f); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xmlElemDump(f, doc, cur); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathConcatFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathConcatFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathConcatFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_DEBUG_ENABLED) -PyObject * -libxml_xmlDebugDumpAttrList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * output; - PyObject *pyobj_output; - xmlAttrPtr attr; - PyObject *pyobj_attr; - int depth; - - if (!PyArg_ParseTuple(args, (char *)"OOi:xmlDebugDumpAttrList", &pyobj_output, &pyobj_attr, &depth)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr); - - xmlDebugDumpAttrList(output, attr, depth); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_DEBUG_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderReadString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderReadString", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderReadString(reader); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsLinearBIdeograms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLinearBIdeograms", &code)) - return(NULL); - - c_retval = xmlUCSIsLinearBIdeograms(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlParseCharData(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - int cdata; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlParseCharData", &pyobj_ctxt, &cdata)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseCharData(ctxt, cdata); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsThai(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsThai", &code)) - return(NULL); - - c_retval = xmlUCSIsThai(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlCtxtReset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - htmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:htmlCtxtReset", &pyobj_ctxt)) - return(NULL); - ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - htmlCtxtReset(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -PyObject * -libxml_xmlCtxtReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - char * filename; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Ozzi:xmlCtxtReadFile", &pyobj_ctxt, &filename, &encoding, &options)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlCtxtReadFile(ctxt, filename, encoding, options); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlCatalogResolveSystem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * sysID; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlCatalogResolveSystem", &sysID)) - return(NULL); - - c_retval = xmlCatalogResolveSystem(sysID); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderConstLocalName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstLocalName", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderConstLocalName(reader); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathLastFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathLastFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathLastFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsOpticalCharacterRecognition(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsOpticalCharacterRecognition", &code)) - return(NULL); - - c_retval = xmlUCSIsOpticalCharacterRecognition(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlThrDefSubstituteEntitiesDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int v; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefSubstituteEntitiesDefaultValue", &v)) - return(NULL); - - c_retval = xmlThrDefSubstituteEntitiesDefaultValue(v); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlNewNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlAttrPtr c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - xmlNsPtr ns; - PyObject *pyobj_ns; - xmlChar * name; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlNewNsProp", &pyobj_node, &pyobj_ns, &name, &value)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns); - - c_retval = xmlNewNsProp(node, ns, name, value); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlThrDefIndentTreeOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int v; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefIndentTreeOutput", &v)) - return(NULL); - - c_retval = xmlThrDefIndentTreeOutput(v); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsYijingHexagramSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsYijingHexagramSymbols", &code)) - return(NULL); - - c_retval = xmlUCSIsYijingHexagramSymbols(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlReaderNewFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - int fd; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Oizzi:xmlReaderNewFd", &pyobj_reader, &fd, &URL, &encoding, &options)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlReaderNewFd(reader, fd, URL, encoding, options); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlCreateMemoryParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlParserCtxtPtr c_retval; - char * buffer; - int py_buffsize0; - int size; - - if (!PyArg_ParseTuple(args, (char *)"t#i:xmlCreateMemoryParserCtxt", &buffer, &py_buffsize0, &size)) - return(NULL); - - c_retval = xmlCreateMemoryParserCtxt(buffer, size); - py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlParseName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseName", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseName(ctxt); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlCopyNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - int extended; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlCopyNode", &pyobj_node, &extended)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlCopyNode(node, extended); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathCastStringToBoolean(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * val; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlXPathCastStringToBoolean", &val)) - return(NULL); - - c_retval = xmlXPathCastStringToBoolean(val); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderMoveToElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderMoveToElement", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderMoveToElement(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlIsAutoClosed(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - htmlDocPtr doc; - PyObject *pyobj_doc; - htmlNodePtr elem; - PyObject *pyobj_elem; - - if (!PyArg_ParseTuple(args, (char *)"OO:htmlIsAutoClosed", &pyobj_doc, &pyobj_elem)) - return(NULL); - doc = (htmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (htmlNodePtr) PyxmlNode_Get(pyobj_elem); - - c_retval = htmlIsAutoClosed(doc, elem); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsUgaritic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsUgaritic", &code)) - return(NULL); - - c_retval = xmlUCSIsUgaritic(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCJKCompatibilityIdeographsSupplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKCompatibilityIdeographsSupplement", &code)) - return(NULL); - - c_retval = xmlUCSIsCJKCompatibilityIdeographsSupplement(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) -PyObject * -libxml_xmlReconciliateNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr tree; - PyObject *pyobj_tree; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlReconciliateNs", &pyobj_doc, &pyobj_tree)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - tree = (xmlNodePtr) PyxmlNode_Get(pyobj_tree); - - c_retval = xmlReconciliateNs(doc, tree); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlNewChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlNodePtr parent; - PyObject *pyobj_parent; - xmlNsPtr ns; - PyObject *pyobj_ns; - xmlChar * name; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlNewChild", &pyobj_parent, &pyobj_ns, &name, &content)) - return(NULL); - parent = (xmlNodePtr) PyxmlNode_Get(pyobj_parent); - ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns); - - c_retval = xmlNewChild(parent, ns, name, content); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsKangxiRadicals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsKangxiRadicals", &code)) - return(NULL); - - c_retval = xmlUCSIsKangxiRadicals(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlCreateIntSubset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDtdPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * name; - xmlChar * ExternalID; - xmlChar * SystemID; - - if (!PyArg_ParseTuple(args, (char *)"Ozzz:xmlCreateIntSubset", &pyobj_doc, &name, &ExternalID, &SystemID)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlCreateIntSubset(doc, name, ExternalID, SystemID); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathSubValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathSubValues", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathSubValues(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsArabicPresentationFormsA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsArabicPresentationFormsA", &code)) - return(NULL); - - c_retval = xmlUCSIsArabicPresentationFormsA(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsArabicPresentationFormsB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsArabicPresentationFormsB", &code)) - return(NULL); - - c_retval = xmlUCSIsArabicPresentationFormsB(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsGeometricShapes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGeometricShapes", &code)) - return(NULL); - - c_retval = xmlUCSIsGeometricShapes(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlGetPredefinedEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlEntityPtr c_retval; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlGetPredefinedEntity", &name)) - return(NULL); - - c_retval = xmlGetPredefinedEntity(name); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlSaveFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - char * filename; - xmlDocPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"zO:xmlSaveFile", &filename, &pyobj_cur)) - return(NULL); - cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlSaveFile(filename, cur); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNextNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextNamespace", &pyobj_ctxt, &pyobj_cur)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlXPathNextNamespace(ctxt, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsBuhid(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsBuhid", &code)) - return(NULL); - - c_retval = xmlUCSIsBuhid(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaValidateOneElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlSchemaValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr elem; - PyObject *pyobj_elem; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlSchemaValidateOneElement", &pyobj_ctxt, &pyobj_elem)) - return(NULL); - ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - - c_retval = xmlSchemaValidateOneElement(ctxt, elem); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlReadDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xmlChar * cur; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"zzzi:xmlReadDoc", &cur, &URL, &encoding, &options)) - return(NULL); - - c_retval = xmlReadDoc(cur, URL, encoding, options); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlReaderNewFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - char * filename; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Ozzi:xmlReaderNewFile", &pyobj_reader, &filename, &encoding, &options)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlReaderNewFile(reader, filename, encoding, options); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlFreeDtd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlDtdPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeDtd", &pyobj_cur)) - return(NULL); - cur = (xmlDtdPtr) PyxmlNode_Get(pyobj_cur); - - xmlFreeDtd(cur); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlSetListDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNodePtr list; - PyObject *pyobj_list; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlSetListDoc", &pyobj_list, &pyobj_doc)) - return(NULL); - list = (xmlNodePtr) PyxmlNode_Get(pyobj_list); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - xmlSetListDoc(list, doc); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlCtxtReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - htmlDocPtr c_retval; - htmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - char * filename; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Ozzi:htmlCtxtReadFile", &pyobj_ctxt, &filename, &encoding, &options)) - return(NULL); - ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = htmlCtxtReadFile(ctxt, filename, encoding, options); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -PyObject * -libxml_xmlThrDefLineNumbersDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int v; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefLineNumbersDefaultValue", &v)) - return(NULL); - - c_retval = xmlThrDefLineNumbersDefaultValue(v); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCombiningHalfMarks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCombiningHalfMarks", &code)) - return(NULL); - - c_retval = xmlUCSIsCombiningHalfMarks(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatSc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatSc", &code)) - return(NULL); - - c_retval = xmlUCSIsCatSc(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatSo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatSo", &code)) - return(NULL); - - c_retval = xmlUCSIsCatSo(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatSk(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatSk", &code)) - return(NULL); - - c_retval = xmlUCSIsCatSk(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathFreeContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathFreeContext", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - xmlXPathFreeContext(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlEncodeSpecialChars(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * input; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlEncodeSpecialChars", &pyobj_doc, &input)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlEncodeSpecialChars(doc, input); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsEthiopic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsEthiopic", &code)) - return(NULL); - - c_retval = xmlUCSIsEthiopic(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlParseContent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseContent", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseContent(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlReadMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - char * buffer; - int py_buffsize0; - int size; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"t#izzi:xmlReadMemory", &buffer, &py_buffsize0, &size, &URL, &encoding, &options)) - return(NULL); - - c_retval = xmlReadMemory(buffer, size, URL, encoding, options); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlThrDefGetWarningsDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int v; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefGetWarningsDefaultValue", &v)) - return(NULL); - - c_retval = xmlThrDefGetWarningsDefaultValue(v); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsMongolian(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMongolian", &code)) - return(NULL); - - c_retval = xmlUCSIsMongolian(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlURIGetFragment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const char * c_retval; - xmlURIPtr URI; - PyObject *pyobj_URI; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetFragment", &pyobj_URI)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - c_retval = URI->fragment; - py_retval = libxml_charPtrConstWrap((const char *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCJKRadicalsSupplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKRadicalsSupplement", &code)) - return(NULL); - - c_retval = xmlUCSIsCJKRadicalsSupplement(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathSumFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathSumFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathSumFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlCopyNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNsPtr c_retval; - xmlNsPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlCopyNamespace", &pyobj_cur)) - return(NULL); - cur = (xmlNsPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlCopyNamespace(cur); - py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCyrillic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCyrillic", &code)) - return(NULL); - - c_retval = xmlUCSIsCyrillic(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlURISetFragment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlURIPtr URI; - PyObject *pyobj_URI; - char * fragment; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetFragment", &pyobj_URI, &fragment)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - if (URI->fragment != NULL) xmlFree(URI->fragment); - URI->fragment = (char *)xmlStrdup((const xmlChar *)fragment); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlAddChildList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlNodePtr parent; - PyObject *pyobj_parent; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlAddChildList", &pyobj_parent, &pyobj_cur)) - return(NULL); - parent = (xmlNodePtr) PyxmlNode_Get(pyobj_parent); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlAddChildList(parent, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_PUSH_ENABLED) -PyObject * -libxml_htmlParseChunk(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - htmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - char * chunk; - int py_buffsize0; - int size; - int terminate; - - if (!PyArg_ParseTuple(args, (char *)"Ot#ii:htmlParseChunk", &pyobj_ctxt, &chunk, &py_buffsize0, &size, &terminate)) - return(NULL); - ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = htmlParseChunk(ctxt, chunk, size, terminate); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_PUSH_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathIdFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathIdFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathIdFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlCreateURLParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlParserCtxtPtr c_retval; - char * filename; - int options; - - if (!PyArg_ParseTuple(args, (char *)"zi:xmlCreateURLParserCtxt", &filename, &options)) - return(NULL); - - c_retval = xmlCreateURLParserCtxt(filename, options); - py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderRead(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderRead", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderRead(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlSaveUri(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlURIPtr uri; - PyObject *pyobj_uri; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlSaveUri", &pyobj_uri)) - return(NULL); - uri = (xmlURIPtr) PyURI_Get(pyobj_uri); - - c_retval = xmlSaveUri(uri); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlIsChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - unsigned int ch; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlIsChar", &ch)) - return(NULL); - - c_retval = xmlIsChar(ch); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlCtxtReadFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - htmlDocPtr c_retval; - htmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - int fd; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Oizzi:htmlCtxtReadFd", &pyobj_ctxt, &fd, &URL, &encoding, &options)) - return(NULL); - ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = htmlCtxtReadFd(ctxt, fd, URL, encoding, options); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -PyObject * -libxml_xmlPedanticParserDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int val; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlPedanticParserDefault", &val)) - return(NULL); - - c_retval = xmlPedanticParserDefault(val); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_SAX1_ENABLED) -PyObject * -libxml_xmlParseDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xmlChar * cur; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlParseDoc", &cur)) - return(NULL); - - c_retval = xmlParseDoc(cur); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SAX1_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathParseNCName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathParseNCName", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - c_retval = xmlXPathParseNCName(ctxt); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlLineNumbersDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int val; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlLineNumbersDefault", &val)) - return(NULL); - - c_retval = xmlLineNumbersDefault(val); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlConvertSGMLCatalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlCatalogPtr catal; - PyObject *pyobj_catal; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlConvertSGMLCatalog", &pyobj_catal)) - return(NULL); - catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal); - - c_retval = xmlConvertSGMLCatalog(catal); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -PyObject * -libxml_xmlNodeAddContent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNodePtr cur; - PyObject *pyobj_cur; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNodeAddContent", &pyobj_cur, &content)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xmlNodeAddContent(cur, content); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNewParserContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathParserContextPtr c_retval; - xmlChar * str; - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"zO:xmlXPathNewParserContext", &str, &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - c_retval = xmlXPathNewParserContext(str, ctxt); - py_retval = libxml_xmlXPathParserContextPtrWrap((xmlXPathParserContextPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlParseDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseDocument", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseDocument(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlFreeNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeNode", &pyobj_cur)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xmlFreeNode(cur); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlRelaxNGValidatePushElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlRelaxNGValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr elem; - PyObject *pyobj_elem; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xmlRelaxNGValidatePushElement", &pyobj_ctxt, &pyobj_doc, &pyobj_elem)) - return(NULL); - ctxt = (xmlRelaxNGValidCtxtPtr) PyrelaxNgValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - - c_retval = xmlRelaxNGValidatePushElement(ctxt, doc, elem); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsSinhala(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSinhala", &code)) - return(NULL); - - c_retval = xmlUCSIsSinhala(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlParserInputBufferPush(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserInputBufferPtr in; - PyObject *pyobj_in; - int len; - char * buf; - - if (!PyArg_ParseTuple(args, (char *)"Oiz:xmlParserInputBufferPush", &pyobj_in, &len, &buf)) - return(NULL); - in = (xmlParserInputBufferPtr) PyinputBuffer_Get(pyobj_in); - - c_retval = xmlParserInputBufferPush(in, len, buf); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlFileMatch(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - char * filename; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlFileMatch", &filename)) - return(NULL); - - c_retval = xmlFileMatch(filename); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlStrEqual(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * str1; - xmlChar * str2; - - if (!PyArg_ParseTuple(args, (char *)"zz:xmlStrEqual", &str1, &str2)) - return(NULL); - - c_retval = xmlStrEqual(str1, str2); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderPreserve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderPreserve", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderPreserve(reader); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsKatakanaPhoneticExtensions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsKatakanaPhoneticExtensions", &code)) - return(NULL); - - c_retval = xmlUCSIsKatakanaPhoneticExtensions(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlRelaxNGNewParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlRelaxNGParserCtxtPtr c_retval; - char * URL; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlRelaxNGNewParserCtxt", &URL)) - return(NULL); - - c_retval = xmlRelaxNGNewParserCtxt(URL); - py_retval = libxml_xmlRelaxNGParserCtxtPtrWrap((xmlRelaxNGParserCtxtPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathSetContextDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathSetContextDoc", &pyobj_ctxt, &pyobj_doc)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - ctxt->doc = doc; - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaIsValid(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlSchemaValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaIsValid", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt); - - c_retval = xmlSchemaIsValid(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsKanbun(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsKanbun", &code)) - return(NULL); - - c_retval = xmlUCSIsKanbun(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsLatin1Supplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLatin1Supplement", &code)) - return(NULL); - - c_retval = xmlUCSIsLatin1Supplement(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) -PyObject * -libxml_xmlNodeSetName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNodePtr cur; - PyObject *pyobj_cur; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNodeSetName", &pyobj_cur, &name)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xmlNodeSetName(cur, name); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_TREE_ENABLED) */ -PyObject * -libxml_xmlUTF8Strloc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * utf; - xmlChar * utfchar; - - if (!PyArg_ParseTuple(args, (char *)"zz:xmlUTF8Strloc", &utf, &utfchar)) - return(NULL); - - c_retval = xmlUTF8Strloc(utf, utfchar); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - htmlDocPtr c_retval; - char * filename; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"zzi:htmlReadFile", &filename, &encoding, &options)) - return(NULL); - - c_retval = htmlReadFile(filename, encoding, options); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathContextSetCache(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - int active; - int value; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Oiii:xmlXPathContextSetCache", &pyobj_ctxt, &active, &value, &options)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - c_retval = xmlXPathContextSetCache(ctxt, active, value, options); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsDingbats(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsDingbats", &code)) - return(NULL); - - c_retval = xmlUCSIsDingbats(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaParse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlSchemaPtr c_retval; - xmlSchemaParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaParse", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlSchemaParserCtxtPtr) PySchemaParserCtxt_Get(pyobj_ctxt); - - c_retval = xmlSchemaParse(ctxt); - py_retval = libxml_xmlSchemaPtrWrap((xmlSchemaPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlThrDefDefaultBufferSize(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int v; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefDefaultBufferSize", &v)) - return(NULL); - - c_retval = xmlThrDefDefaultBufferSize(v); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsPrivateUse(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsPrivateUse", &code)) - return(NULL); - - c_retval = xmlUCSIsPrivateUse(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_SAX1_ENABLED) -PyObject * -libxml_xmlRecoverFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - char * filename; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlRecoverFile", &filename)) - return(NULL); - - c_retval = xmlRecoverFile(filename); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SAX1_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNextFollowingSibling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextFollowingSibling", &pyobj_ctxt, &pyobj_cur)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlXPathNextFollowingSibling(ctxt, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlIsExtender(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - unsigned int ch; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlIsExtender", &ch)) - return(NULL); - - c_retval = xmlIsExtender(ch); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathCastBooleanToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - int val; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlXPathCastBooleanToString", &val)) - return(NULL); - - c_retval = xmlXPathCastBooleanToString(val); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlUTF8Charcmp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * utf1; - xmlChar * utf2; - - if (!PyArg_ParseTuple(args, (char *)"zz:xmlUTF8Charcmp", &utf1, &utf2)) - return(NULL); - - c_retval = xmlUTF8Charcmp(utf1, utf2); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPTR_ENABLED) -PyObject * -libxml_xmlXPtrNewRangeNodes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - xmlNodePtr start; - PyObject *pyobj_start; - xmlNodePtr end; - PyObject *pyobj_end; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPtrNewRangeNodes", &pyobj_start, &pyobj_end)) - return(NULL); - start = (xmlNodePtr) PyxmlNode_Get(pyobj_start); - end = (xmlNodePtr) PyxmlNode_Get(pyobj_end); - - c_retval = xmlXPtrNewRangeNodes(start, end); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPTR_ENABLED) */ -PyObject * -libxml_xmlStringDecodeEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * str; - int what; - xmlChar end; - xmlChar end2; - xmlChar end3; - - if (!PyArg_ParseTuple(args, (char *)"Oziccc:xmlStringDecodeEntities", &pyobj_ctxt, &str, &what, &end, &end2, &end3)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlStringDecodeEntities(ctxt, str, what, end, end2, end3); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNotEqualValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathNotEqualValues", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - c_retval = xmlXPathNotEqualValues(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderMoveToAttributeNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - xmlChar * localName; - xmlChar * namespaceURI; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlTextReaderMoveToAttributeNs", &pyobj_reader, &localName, &namespaceURI)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderMoveToAttributeNs(reader, localName, namespaceURI); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsOgham(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsOgham", &code)) - return(NULL); - - c_retval = xmlUCSIsOgham(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlNewDocComment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNewDocComment", &pyobj_doc, &content)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlNewDocComment(doc, content); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsBopomofoExtended(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsBopomofoExtended", &code)) - return(NULL); - - c_retval = xmlUCSIsBopomofoExtended(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCJKCompatibility(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKCompatibility", &code)) - return(NULL); - - c_retval = xmlUCSIsCJKCompatibility(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlRelaxNGValidateFullElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlRelaxNGValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr elem; - PyObject *pyobj_elem; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xmlRelaxNGValidateFullElement", &pyobj_ctxt, &pyobj_doc, &pyobj_elem)) - return(NULL); - ctxt = (xmlRelaxNGValidCtxtPtr) PyrelaxNgValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - - c_retval = xmlRelaxNGValidateFullElement(ctxt, doc, elem); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlValidateDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlValidateDocument", &pyobj_ctxt, &pyobj_doc)) - return(NULL); - ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlValidateDocument(ctxt, doc); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatPc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatPc", &code)) - return(NULL); - - c_retval = xmlUCSIsCatPc(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatPf(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatPf", &code)) - return(NULL); - - c_retval = xmlUCSIsCatPf(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatPd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatPd", &code)) - return(NULL); - - c_retval = xmlUCSIsCatPd(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlCtxtReadMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - htmlDocPtr c_retval; - htmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - char * buffer; - int py_buffsize0; - int size; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Ot#izzi:htmlCtxtReadMemory", &pyobj_ctxt, &buffer, &py_buffsize0, &size, &URL, &encoding, &options)) - return(NULL); - ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = htmlCtxtReadMemory(ctxt, buffer, size, URL, encoding, options); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatPi(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatPi", &code)) - return(NULL); - - c_retval = xmlUCSIsCatPi(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathGetContextNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathGetContextNode", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - c_retval = ctxt->node; - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatPo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatPo", &code)) - return(NULL); - - c_retval = xmlUCSIsCatPo(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatPs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatPs", &code)) - return(NULL); - - c_retval = xmlUCSIsCatPs(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsHighSurrogates(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHighSurrogates", &code)) - return(NULL); - - c_retval = xmlUCSIsHighSurrogates(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlCatalogResolveURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * URI; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlCatalogResolveURI", &URI)) - return(NULL); - - c_retval = xmlCatalogResolveURI(URI); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -PyObject * -libxml_xmlURIGetScheme(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const char * c_retval; - xmlURIPtr URI; - PyObject *pyobj_URI; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetScheme", &pyobj_URI)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - c_retval = URI->scheme; - py_retval = libxml_charPtrConstWrap((const char *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderLocatorLineNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderLocatorPtr locator; - PyObject *pyobj_locator; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderLocatorLineNumber", &pyobj_locator)) - return(NULL); - locator = (xmlTextReaderLocatorPtr) PyxmlTextReaderLocator_Get(pyobj_locator); - - c_retval = xmlTextReaderLocatorLineNumber(locator); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlRelaxNGNewMemParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlRelaxNGParserCtxtPtr c_retval; - char * buffer; - int size; - - if (!PyArg_ParseTuple(args, (char *)"zi:xmlRelaxNGNewMemParserCtxt", &buffer, &size)) - return(NULL); - - c_retval = xmlRelaxNGNewMemParserCtxt(buffer, size); - py_retval = libxml_xmlRelaxNGParserCtxtPtrWrap((xmlRelaxNGParserCtxtPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderAttributeCount(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderAttributeCount", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderAttributeCount(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlCharStrndup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - char * cur; - int len; - - if (!PyArg_ParseTuple(args, (char *)"zi:xmlCharStrndup", &cur, &len)) - return(NULL); - - c_retval = xmlCharStrndup(cur, len); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlParseEncodingDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseEncodingDecl", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseEncodingDecl(ctxt); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsUnifiedCanadianAboriginalSyllabics(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsUnifiedCanadianAboriginalSyllabics", &code)) - return(NULL); - - c_retval = xmlUCSIsUnifiedCanadianAboriginalSyllabics(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlCopyPropList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlAttrPtr c_retval; - xmlNodePtr target; - PyObject *pyobj_target; - xmlAttrPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlCopyPropList", &pyobj_target, &pyobj_cur)) - return(NULL); - target = (xmlNodePtr) PyxmlNode_Get(pyobj_target); - cur = (xmlAttrPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlCopyPropList(target, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlDocFormatDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - FILE * f; - PyObject *pyobj_f; - xmlDocPtr cur; - PyObject *pyobj_cur; - int format; - - if (!PyArg_ParseTuple(args, (char *)"OOi:xmlDocFormatDump", &pyobj_f, &pyobj_cur, &format)) - return(NULL); - f = (FILE *) PyFile_Get(pyobj_f); - cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlDocFormatDump(f, cur, format); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_OUTPUT_ENABLED) */ -PyObject * -libxml_xmlCtxtReset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlCtxtReset", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlCtxtReset(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlIsRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr elem; - PyObject *pyobj_elem; - xmlAttrPtr attr; - PyObject *pyobj_attr; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xmlIsRef", &pyobj_doc, &pyobj_elem, &pyobj_attr)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr); - - c_retval = xmlIsRef(doc, elem, attr); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathGetContextDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathGetContextDoc", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - c_retval = ctxt->doc; - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsTaiLe(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsTaiLe", &code)) - return(NULL); - - c_retval = xmlUCSIsTaiLe(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlParseComment(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseComment", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseComment(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathSubstringAfterFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathSubstringAfterFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathSubstringAfterFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlSaveFormatFileEnc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - char * filename; - xmlDocPtr cur; - PyObject *pyobj_cur; - char * encoding; - int format; - - if (!PyArg_ParseTuple(args, (char *)"zOzi:xmlSaveFormatFileEnc", &filename, &pyobj_cur, &encoding, &format)) - return(NULL); - cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlSaveFormatFileEnc(filename, cur, encoding, format); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_OUTPUT_ENABLED) */ -PyObject * -libxml_xmlParseNmtoken(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseNmtoken", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseNmtoken(ctxt); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlParserGetIsValid(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParserGetIsValid", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = ctxt->valid; - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsMathematicalOperators(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMathematicalOperators", &code)) - return(NULL); - - c_retval = xmlUCSIsMathematicalOperators(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_DEBUG_ENABLED) -PyObject * -libxml_xmlDebugDumpDTD(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * output; - PyObject *pyobj_output; - xmlDtdPtr dtd; - PyObject *pyobj_dtd; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlDebugDumpDTD", &pyobj_output, &pyobj_dtd)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - dtd = (xmlDtdPtr) PyxmlNode_Get(pyobj_dtd); - - xmlDebugDumpDTD(output, dtd); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_DEBUG_ENABLED) */ -#if defined(LIBXML_XPTR_ENABLED) -PyObject * -libxml_xmlXPtrNewCollapsedRange(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - xmlNodePtr start; - PyObject *pyobj_start; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPtrNewCollapsedRange", &pyobj_start)) - return(NULL); - start = (xmlNodePtr) PyxmlNode_Get(pyobj_start); - - c_retval = xmlXPtrNewCollapsedRange(start); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPTR_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNotFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathNotFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathNotFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlTextConcat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - xmlChar * content; - int len; - - if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlTextConcat", &pyobj_node, &content, &len)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlTextConcat(node, content, len); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlParsePI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParsePI", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParsePI(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlLoadCatalogs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - char * pathss; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlLoadCatalogs", &pathss)) - return(NULL); - - xmlLoadCatalogs(pathss); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlCtxtReadDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - htmlDocPtr c_retval; - htmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * cur; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Ozzzi:htmlCtxtReadDoc", &pyobj_ctxt, &cur, &URL, &encoding, &options)) - return(NULL); - ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = htmlCtxtReadDoc(ctxt, cur, URL, encoding, options); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_PUSH_ENABLED) -PyObject * -libxml_xmlParseChunk(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - char * chunk; - int py_buffsize0; - int size; - int terminate; - - if (!PyArg_ParseTuple(args, (char *)"Ot#ii:xmlParseChunk", &pyobj_ctxt, &chunk, &py_buffsize0, &size, &terminate)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseChunk(ctxt, chunk, size, terminate); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_PUSH_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_htmlSaveFileEnc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - char * filename; - xmlDocPtr cur; - PyObject *pyobj_cur; - char * encoding; - - if (!PyArg_ParseTuple(args, (char *)"zOz:htmlSaveFileEnc", &filename, &pyobj_cur, &encoding)) - return(NULL); - cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = htmlSaveFileEnc(filename, cur, encoding); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ -PyObject * -libxml_xmlParseElementDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseElementDecl", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseElementDecl(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlReaderForFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlTextReaderPtr c_retval; - int fd; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"izzi:xmlReaderForFd", &fd, &URL, &encoding, &options)) - return(NULL); - - c_retval = xmlReaderForFd(fd, URL, encoding, options); - py_retval = libxml_xmlTextReaderPtrWrap((xmlTextReaderPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCJKCompatibilityIdeographs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKCompatibilityIdeographs", &code)) - return(NULL); - - c_retval = xmlUCSIsCJKCompatibilityIdeographs(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderMoveToFirstAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderMoveToFirstAttribute", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderMoveToFirstAttribute(reader); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlNewTextReader(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlTextReaderPtr c_retval; - xmlParserInputBufferPtr input; - PyObject *pyobj_input; - char * URI; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNewTextReader", &pyobj_input, &URI)) - return(NULL); - input = (xmlParserInputBufferPtr) PyinputBuffer_Get(pyobj_input); - - c_retval = xmlNewTextReader(input, URI); - py_retval = libxml_xmlTextReaderPtrWrap((xmlTextReaderPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderGetAttributeNo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - int no; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlTextReaderGetAttributeNo", &pyobj_reader, &no)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderGetAttributeNo(reader, no); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderGetAttributeNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - xmlChar * localName; - xmlChar * namespaceURI; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlTextReaderGetAttributeNs", &pyobj_reader, &localName, &namespaceURI)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderGetAttributeNs(reader, localName, namespaceURI); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlURIGetQuery(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const char * c_retval; - xmlURIPtr URI; - PyObject *pyobj_URI; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetQuery", &pyobj_URI)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - c_retval = URI->query; - py_retval = libxml_charPtrConstWrap((const char *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsGeneralPunctuation(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsGeneralPunctuation", &code)) - return(NULL); - - c_retval = xmlUCSIsGeneralPunctuation(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsControlPictures(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsControlPictures", &code)) - return(NULL); - - c_retval = xmlUCSIsControlPictures(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlIsBooleanAttr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"z:htmlIsBooleanAttr", &name)) - return(NULL); - - c_retval = htmlIsBooleanAttr(name); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -PyObject * -libxml_xmlNodeListGetString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr list; - PyObject *pyobj_list; - int inLine; - - if (!PyArg_ParseTuple(args, (char *)"OOi:xmlNodeListGetString", &pyobj_doc, &pyobj_list, &inLine)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - list = (xmlNodePtr) PyxmlNode_Get(pyobj_list); - - c_retval = xmlNodeListGetString(doc, list, inLine); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsBengali(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsBengali", &code)) - return(NULL); - - c_retval = xmlUCSIsBengali(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlBuildQName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * ncname; - xmlChar * prefix; - xmlChar * memory; - int len; - - if (!PyArg_ParseTuple(args, (char *)"zzzi:xmlBuildQName", &ncname, &prefix, &memory, &len)) - return(NULL); - - c_retval = xmlBuildQName(ncname, prefix, memory, len); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlFreePropList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlAttrPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlFreePropList", &pyobj_cur)) - return(NULL); - cur = (xmlAttrPtr) PyxmlNode_Get(pyobj_cur); - - xmlFreePropList(cur); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathStringFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathStringFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathStringFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlInitParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlInitParserCtxt", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlInitParserCtxt(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsTagbanwa(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsTagbanwa", &code)) - return(NULL); - - c_retval = xmlUCSIsTagbanwa(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderConstBaseUri(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstBaseUri", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderConstBaseUri(reader); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsDeseret(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsDeseret", &code)) - return(NULL); - - c_retval = xmlUCSIsDeseret(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathRoundFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathRoundFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathRoundFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatSm(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatSm", &code)) - return(NULL); - - c_retval = xmlUCSIsCatSm(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderMoveToAttributeNo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - int no; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlTextReaderMoveToAttributeNo", &pyobj_reader, &no)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderMoveToAttributeNo(reader, no); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlParserHandlePEReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParserHandlePEReference", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParserHandlePEReference(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNewBoolean(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - int val; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlXPathNewBoolean", &val)) - return(NULL); - - c_retval = xmlXPathNewBoolean(val); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsPrivateUseArea(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsPrivateUseArea", &code)) - return(NULL); - - c_retval = xmlUCSIsPrivateUseArea(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlCtxtReadFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - int fd; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Oizzi:xmlCtxtReadFd", &pyobj_ctxt, &fd, &URL, &encoding, &options)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlCtxtReadFd(ctxt, fd, URL, encoding, options); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsAlphabeticPresentationForms(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsAlphabeticPresentationForms", &code)) - return(NULL); - - c_retval = xmlUCSIsAlphabeticPresentationForms(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCypriotSyllabary(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCypriotSyllabary", &code)) - return(NULL); - - c_retval = xmlUCSIsCypriotSyllabary(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlGetNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - xmlChar * name; - xmlChar * nameSpace; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlGetNsProp", &pyobj_node, &name, &nameSpace)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlGetNsProp(node, name, nameSpace); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatC(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatC", &code)) - return(NULL); - - c_retval = xmlUCSIsCatC(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatN(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatN", &code)) - return(NULL); - - c_retval = xmlUCSIsCatN(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatL(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatL", &code)) - return(NULL); - - c_retval = xmlUCSIsCatL(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatM(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatM", &code)) - return(NULL); - - c_retval = xmlUCSIsCatM(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlCtxtResetPush(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - char * chunk; - int py_buffsize0; - int size; - char * filename; - char * encoding; - - if (!PyArg_ParseTuple(args, (char *)"Ot#izz:xmlCtxtResetPush", &pyobj_ctxt, &chunk, &py_buffsize0, &size, &filename, &encoding)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlCtxtResetPush(ctxt, chunk, size, filename, encoding); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatS(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatS", &code)) - return(NULL); - - c_retval = xmlUCSIsCatS(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatP(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatP", &code)) - return(NULL); - - c_retval = xmlUCSIsCatP(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlCatalogGetSystem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlChar * sysID; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlCatalogGetSystem", &sysID)) - return(NULL); - - c_retval = xmlCatalogGetSystem(sysID); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatZ(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatZ", &code)) - return(NULL); - - c_retval = xmlUCSIsCatZ(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsSuperscriptsandSubscripts(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSuperscriptsandSubscripts", &code)) - return(NULL); - - c_retval = xmlUCSIsSuperscriptsandSubscripts(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsTagalog(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsTagalog", &code)) - return(NULL); - - c_retval = xmlUCSIsTagalog(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlGetDtdElementDesc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlElementPtr c_retval; - xmlDtdPtr dtd; - PyObject *pyobj_dtd; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlGetDtdElementDesc", &pyobj_dtd, &name)) - return(NULL); - dtd = (xmlDtdPtr) PyxmlNode_Get(pyobj_dtd); - - c_retval = xmlGetDtdElementDesc(dtd, name); - py_retval = libxml_xmlElementPtrWrap((xmlElementPtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsPhoneticExtensions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsPhoneticExtensions", &code)) - return(NULL); - - c_retval = xmlUCSIsPhoneticExtensions(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathCastNodeToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathCastNodeToString", &pyobj_node)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlXPathCastNodeToString(node); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlURISetPort(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlURIPtr URI; - PyObject *pyobj_URI; - int port; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlURISetPort", &pyobj_URI, &port)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - URI->port = port; - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_LEGACY_ENABLED) -PyObject * -libxml_xmlNamespaceParseNCName(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlNamespaceParseNCName", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlNamespaceParseNCName(ctxt); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_LEGACY_ENABLED) */ -PyObject * -libxml_xmlInitGlobals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlInitGlobals(); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_namePop(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:namePop", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = namePop(ctxt); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlParseFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - htmlDocPtr c_retval; - char * filename; - char * encoding; - - if (!PyArg_ParseTuple(args, (char *)"zz:htmlParseFile", &filename, &encoding)) - return(NULL); - - c_retval = htmlParseFile(filename, encoding); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_DEBUG_ENABLED) -PyObject * -libxml_xmlDebugCheckDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - FILE * output; - PyObject *pyobj_output; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlDebugCheckDocument", &pyobj_output, &pyobj_doc)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlDebugCheckDocument(output, doc); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_DEBUG_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlReadDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - htmlDocPtr c_retval; - xmlChar * cur; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"zzzi:htmlReadDoc", &cur, &URL, &encoding, &options)) - return(NULL); - - c_retval = htmlReadDoc(cur, URL, encoding, options); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathGetContextPosition(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathGetContextPosition", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - c_retval = ctxt->proximityPosition; - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_htmlNodeDumpFileFormat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - FILE * out; - PyObject *pyobj_out; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr cur; - PyObject *pyobj_cur; - char * encoding; - int format; - - if (!PyArg_ParseTuple(args, (char *)"OOOzi:htmlNodeDumpFileFormat", &pyobj_out, &pyobj_doc, &pyobj_cur, &encoding, &format)) - return(NULL); - out = (FILE *) PyFile_Get(pyobj_out); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = htmlNodeDumpFileFormat(out, doc, cur, encoding, format); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderConstXmlLang(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstXmlLang", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderConstXmlLang(reader); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCherokee(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCherokee", &code)) - return(NULL); - - c_retval = xmlUCSIsCherokee(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlNodeSetContent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNodePtr cur; - PyObject *pyobj_cur; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNodeSetContent", &pyobj_cur, &content)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xmlNodeSetContent(cur, content); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_DEBUG_ENABLED) -PyObject * -libxml_xmlBoolToText(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const char * c_retval; - int boolval; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlBoolToText", &boolval)) - return(NULL); - - c_retval = xmlBoolToText(boolval); - py_retval = libxml_charPtrConstWrap((const char *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_DEBUG_ENABLED) */ -PyObject * -libxml_xmlSetCompressMode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - int mode; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlSetCompressMode", &mode)) - return(NULL); - - xmlSetCompressMode(mode); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlParseDocument(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - htmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:htmlParseDocument", &pyobj_ctxt)) - return(NULL); - ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = htmlParseDocument(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathSubstringFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathSubstringFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathSubstringFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_DEBUG_ENABLED) -PyObject * -libxml_xmlDebugDumpNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * output; - PyObject *pyobj_output; - xmlNodePtr node; - PyObject *pyobj_node; - int depth; - - if (!PyArg_ParseTuple(args, (char *)"OOi:xmlDebugDumpNode", &pyobj_output, &pyobj_node, &depth)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - xmlDebugDumpNode(output, node, depth); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_DEBUG_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlCopyDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - int recursive; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlCopyDoc", &pyobj_doc, &recursive)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlCopyDoc(doc, recursive); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlCtxtReadMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - char * buffer; - int py_buffsize0; - int size; - char * URL; - char * encoding; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Ot#izzi:xmlCtxtReadMemory", &pyobj_ctxt, &buffer, &py_buffsize0, &size, &URL, &encoding, &options)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlCtxtReadMemory(ctxt, buffer, size, URL, encoding, options); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlCreateFileParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlParserCtxtPtr c_retval; - char * filename; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlCreateFileParserCtxt", &filename)) - return(NULL); - - c_retval = xmlCreateFileParserCtxt(filename); - py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlParseSystemLiteral(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseSystemLiteral", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseSystemLiteral(ctxt); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlParseAttributeListDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseAttributeListDecl", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseAttributeListDecl(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaNewDocParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlSchemaParserCtxtPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaNewDocParserCtxt", &pyobj_doc)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlSchemaNewDocParserCtxt(doc); - py_retval = libxml_xmlSchemaParserCtxtPtrWrap((xmlSchemaParserCtxtPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_nodePush(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr value; - PyObject *pyobj_value; - - if (!PyArg_ParseTuple(args, (char *)"OO:nodePush", &pyobj_ctxt, &pyobj_value)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - value = (xmlNodePtr) PyxmlNode_Get(pyobj_value); - - c_retval = nodePush(ctxt, value); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XINCLUDE_ENABLED) -PyObject * -libxml_xmlXIncludeProcess(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXIncludeProcess", &pyobj_doc)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlXIncludeProcess(doc); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XINCLUDE_ENABLED) */ -#if defined(LIBXML_REGEXP_ENABLED) -PyObject * -libxml_xmlRegexpIsDeterminist(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlRegexpPtr comp; - PyObject *pyobj_comp; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlRegexpIsDeterminist", &pyobj_comp)) - return(NULL); - comp = (xmlRegexpPtr) PyxmlReg_Get(pyobj_comp); - - c_retval = xmlRegexpIsDeterminist(comp); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_REGEXP_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlNewDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - htmlDocPtr c_retval; - xmlChar * URI; - xmlChar * ExternalID; - - if (!PyArg_ParseTuple(args, (char *)"zz:htmlNewDoc", &URI, &ExternalID)) - return(NULL); - - c_retval = htmlNewDoc(URI, ExternalID); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - char * cat; - - if (!PyArg_ParseTuple(args, (char *)"iz:xmlUCSIsCat", &code, &cat)) - return(NULL); - - c_retval = xmlUCSIsCat(code, cat); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlIsScriptAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"z:htmlIsScriptAttribute", &name)) - return(NULL); - - c_retval = htmlIsScriptAttribute(name); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_LEGACY_ENABLED) -PyObject * -libxml_xmlInitializePredefinedEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlInitializePredefinedEntities(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_LEGACY_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsMiscellaneousTechnical(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMiscellaneousTechnical", &code)) - return(NULL); - - c_retval = xmlUCSIsMiscellaneousTechnical(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlShellPrintNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlShellPrintNode", &pyobj_node)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - xmlShellPrintNode(node); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlValidateNMToken(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * value; - int space; - - if (!PyArg_ParseTuple(args, (char *)"zi:xmlValidateNMToken", &value, &space)) - return(NULL); - - c_retval = xmlValidateNMToken(value, space); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlErrorGetCode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlErrorPtr Error; - PyObject *pyobj_Error; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlErrorGetCode", &pyobj_Error)) - return(NULL); - Error = (xmlErrorPtr) PyError_Get(pyobj_Error); - - c_retval = Error->code; - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlValidateNameValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlValidateNameValue", &value)) - return(NULL); - - c_retval = xmlValidateNameValue(value); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNewContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathContextPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathNewContext", &pyobj_doc)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlXPathNewContext(doc); - py_retval = libxml_xmlXPathContextPtrWrap((xmlXPathContextPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlRelaxNGNewDocParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlRelaxNGParserCtxtPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlRelaxNGNewDocParserCtxt", &pyobj_doc)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlRelaxNGNewDocParserCtxt(doc); - py_retval = libxml_xmlRelaxNGParserCtxtPtrWrap((xmlRelaxNGParserCtxtPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlBuildRelativeURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * URI; - xmlChar * base; - - if (!PyArg_ParseTuple(args, (char *)"zz:xmlBuildRelativeURI", &URI, &base)) - return(NULL); - - c_retval = xmlBuildRelativeURI(URI, base); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlParseURIRaw(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlURIPtr c_retval; - char * str; - int raw; - - if (!PyArg_ParseTuple(args, (char *)"zi:xmlParseURIRaw", &str, &raw)) - return(NULL); - - c_retval = xmlParseURIRaw(str, raw); - py_retval = libxml_xmlURIPtrWrap((xmlURIPtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlACatalogResolvePublic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlCatalogPtr catal; - PyObject *pyobj_catal; - xmlChar * pubID; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlACatalogResolvePublic", &pyobj_catal, &pubID)) - return(NULL); - catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal); - - c_retval = xmlACatalogResolvePublic(catal, pubID); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -PyObject * -libxml_xmlThrDefParserDebugEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int v; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefParserDebugEntities", &v)) - return(NULL); - - c_retval = xmlThrDefParserDebugEntities(v); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlCatalogConvert(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - PyObject *py_retval; - int c_retval; - - c_retval = xmlCatalogConvert(); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCJKSymbolsandPunctuation(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCJKSymbolsandPunctuation", &code)) - return(NULL); - - c_retval = xmlUCSIsCJKSymbolsandPunctuation(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsMusicalSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMusicalSymbols", &code)) - return(NULL); - - c_retval = xmlUCSIsMusicalSymbols(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_FTP_ENABLED) -PyObject * -libxml_xmlNanoFTPInit(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlNanoFTPInit(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_FTP_ENABLED) */ -PyObject * -libxml_xmlURIGetUser(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const char * c_retval; - xmlURIPtr URI; - PyObject *pyobj_URI; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetUser", &pyobj_URI)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - c_retval = URI->user; - py_retval = libxml_charPtrConstWrap((const char *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlGetLastChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlNodePtr parent; - PyObject *pyobj_parent; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlGetLastChild", &pyobj_parent)) - return(NULL); - parent = (xmlNodePtr) PyxmlNode_Get(pyobj_parent); - - c_retval = xmlGetLastChild(parent); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlAddDtdEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlEntityPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * name; - int type; - xmlChar * ExternalID; - xmlChar * SystemID; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"Ozizzz:xmlAddDtdEntity", &pyobj_doc, &name, &type, &ExternalID, &SystemID, &content)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlAddDtdEntity(doc, name, type, ExternalID, SystemID, content); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlParseNotationDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseNotationDecl", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseNotationDecl(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_TREE_ENABLED) -PyObject * -libxml_xmlNewDocRawNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNsPtr ns; - PyObject *pyobj_ns; - xmlChar * name; - xmlChar * content; - - if (!PyArg_ParseTuple(args, (char *)"OOzz:xmlNewDocRawNode", &pyobj_doc, &pyobj_ns, &name, &content)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns); - - c_retval = xmlNewDocRawNode(doc, ns, name, content); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaCollapseString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlSchemaCollapseString", &value)) - return(NULL); - - c_retval = xmlSchemaCollapseString(value); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderConstNamespaceUri(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderConstNamespaceUri", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderConstNamespaceUri(reader); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsBasicLatin(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsBasicLatin", &code)) - return(NULL); - - c_retval = xmlUCSIsBasicLatin(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlParseMisc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseMisc", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseMisc(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlParserInputBufferGrow(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlParserInputBufferPtr in; - PyObject *pyobj_in; - int len; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlParserInputBufferGrow", &pyobj_in, &len)) - return(NULL); - in = (xmlParserInputBufferPtr) PyinputBuffer_Get(pyobj_in); - - c_retval = xmlParserInputBufferGrow(in, len); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNextChild(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextChild", &pyobj_ctxt, &pyobj_cur)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlXPathNextChild(ctxt, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderGetParserProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - int prop; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlTextReaderGetParserProp", &pyobj_reader, &prop)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderGetParserProp(reader, prop); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlStrncat(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * cur; - xmlChar * add; - int len; - - if (!PyArg_ParseTuple(args, (char *)"zzi:xmlStrncat", &cur, &add, &len)) - return(NULL); - - c_retval = xmlStrncat(cur, add, len); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -#endif -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPatherror(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - char * file; - int line; - int no; - - if (!PyArg_ParseTuple(args, (char *)"Ozii:xmlXPatherror", &pyobj_ctxt, &file, &line, &no)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPatherror(ctxt, file, line, no); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_SAX1_ENABLED) -PyObject * -libxml_xmlParseMemory(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - char * buffer; - int py_buffsize0; - int size; - - if (!PyArg_ParseTuple(args, (char *)"t#i:xmlParseMemory", &buffer, &py_buffsize0, &size)) - return(NULL); - - c_retval = xmlParseMemory(buffer, size); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SAX1_ENABLED) */ -PyObject * -libxml_xmlCleanupEncodingAliases(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlCleanupEncodingAliases(); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathCeilingFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathCeilingFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathCeilingFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsSmallFormVariants(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSmallFormVariants", &code)) - return(NULL); - - c_retval = xmlUCSIsSmallFormVariants(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlInitParser(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlInitParser(); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathStartsWithFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathStartsWithFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathStartsWithFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -PyObject * -libxml_xmlSearchNsByHref(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNsPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr node; - PyObject *pyobj_node; - xmlChar * href; - - if (!PyArg_ParseTuple(args, (char *)"OOz:xmlSearchNsByHref", &pyobj_doc, &pyobj_node, &href)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlSearchNsByHref(doc, node, href); - py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlParseTextDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseTextDecl", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseTextDecl(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathNextPreceding(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathNextPreceding", &pyobj_ctxt, &pyobj_cur)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlXPathNextPreceding(ctxt, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathRegisterAllFunctions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathRegisterAllFunctions", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - xmlXPathRegisterAllFunctions(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathRegisteredVariablesCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathRegisteredVariablesCleanup", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - xmlXPathRegisteredVariablesCleanup(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_LEGACY_ENABLED) -PyObject * -libxml_xmlHandleEntity(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlEntityPtr entity; - PyObject *pyobj_entity; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlHandleEntity", &pyobj_ctxt, &pyobj_entity)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - entity = (xmlEntityPtr) PyxmlNode_Get(pyobj_entity); - - xmlHandleEntity(ctxt, entity); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_LEGACY_ENABLED) */ -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlACatalogResolve(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlCatalogPtr catal; - PyObject *pyobj_catal; - xmlChar * pubID; - xmlChar * sysID; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlACatalogResolve", &pyobj_catal, &pubID, &sysID)) - return(NULL); - catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal); - - c_retval = xmlACatalogResolve(catal, pubID, sysID); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaValidCtxtGetOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlSchemaValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlSchemaValidCtxtGetOptions", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlSchemaValidCtxtPtr) PySchemaValidCtxt_Get(pyobj_ctxt); - - c_retval = xmlSchemaValidCtxtGetOptions(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlParseDTD(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDtdPtr c_retval; - xmlChar * ExternalID; - xmlChar * SystemID; - - if (!PyArg_ParseTuple(args, (char *)"zz:xmlParseDTD", &ExternalID, &SystemID)) - return(NULL); - - c_retval = xmlParseDTD(ExternalID, SystemID); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlValidateDocumentFinal(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlValidateDocumentFinal", &pyobj_ctxt, &pyobj_doc)) - return(NULL); - ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlValidateDocumentFinal(ctxt, doc); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -PyObject * -libxml_xmlIsLetter(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int c; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlIsLetter", &c)) - return(NULL); - - c_retval = xmlIsLetter(c); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlTextMerge(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlNodePtr first; - PyObject *pyobj_first; - xmlNodePtr second; - PyObject *pyobj_second; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlTextMerge", &pyobj_first, &pyobj_second)) - return(NULL); - first = (xmlNodePtr) PyxmlNode_Get(pyobj_first); - second = (xmlNodePtr) PyxmlNode_Get(pyobj_second); - - c_retval = xmlTextMerge(first, second); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlPrintURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * stream; - PyObject *pyobj_stream; - xmlURIPtr uri; - PyObject *pyobj_uri; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlPrintURI", &pyobj_stream, &pyobj_uri)) - return(NULL); - stream = (FILE *) PyFile_Get(pyobj_stream); - uri = (xmlURIPtr) PyURI_Get(pyobj_uri); - - xmlPrintURI(stream, uri); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathValueFlipSign(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathValueFlipSign", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathValueFlipSign(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlRelaxParserSetFlag(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlRelaxNGParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - int flags; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlRelaxParserSetFlag", &pyobj_ctxt, &flags)) - return(NULL); - ctxt = (xmlRelaxNGParserCtxtPtr) PyrelaxNgParserCtxt_Get(pyobj_ctxt); - - c_retval = xmlRelaxParserSetFlag(ctxt, flags); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlParserSetLoadSubset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - int loadsubset; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlParserSetLoadSubset", &pyobj_ctxt, &loadsubset)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - ctxt->loadsubset = loadsubset; - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlValidateOneNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlValidCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr elem; - PyObject *pyobj_elem; - xmlChar * prefix; - xmlNsPtr ns; - PyObject *pyobj_ns; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"OOOzOz:xmlValidateOneNamespace", &pyobj_ctxt, &pyobj_doc, &pyobj_elem, &prefix, &pyobj_ns, &value)) - return(NULL); - ctxt = (xmlValidCtxtPtr) PyValidCtxt_Get(pyobj_ctxt); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - elem = (xmlNodePtr) PyxmlNode_Get(pyobj_elem); - ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns); - - c_retval = xmlValidateOneNamespace(ctxt, doc, elem, prefix, ns, value); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) -PyObject * -libxml_xmlReplaceNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlNodePtr old; - PyObject *pyobj_old; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlReplaceNode", &pyobj_old, &pyobj_cur)) - return(NULL); - old = (xmlNodePtr) PyxmlNode_Get(pyobj_old); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xmlReplaceNode(old, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) */ -PyObject * -libxml_xmlSetDocCompressMode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlDocPtr doc; - PyObject *pyobj_doc; - int mode; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlSetDocCompressMode", &pyobj_doc, &mode)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - xmlSetDocCompressMode(doc, mode); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_XPTR_ENABLED) -PyObject * -libxml_xmlXPtrNewRange(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - xmlNodePtr start; - PyObject *pyobj_start; - int startindex; - xmlNodePtr end; - PyObject *pyobj_end; - int endindex; - - if (!PyArg_ParseTuple(args, (char *)"OiOi:xmlXPtrNewRange", &pyobj_start, &startindex, &pyobj_end, &endindex)) - return(NULL); - start = (xmlNodePtr) PyxmlNode_Get(pyobj_start); - end = (xmlNodePtr) PyxmlNode_Get(pyobj_end); - - c_retval = xmlXPtrNewRange(start, startindex, end, endindex); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPTR_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathMultValues(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathMultValues", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathMultValues(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_xmlSchemaDump(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * output; - PyObject *pyobj_output; - xmlSchemaPtr schema; - PyObject *pyobj_schema; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlSchemaDump", &pyobj_output, &pyobj_schema)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - schema = (xmlSchemaPtr) PySchema_Get(pyobj_schema); - - xmlSchemaDump(output, schema); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ -#if defined(LIBXML_SAX1_ENABLED) -PyObject * -libxml_xmlParseFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - char * filename; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlParseFile", &filename)) - return(NULL); - - c_retval = xmlParseFile(filename); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_SAX1_ENABLED) */ -#if defined(LIBXML_SAX1_ENABLED) -PyObject * -libxml_xmlParseEndTag(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseEndTag", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseEndTag(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_SAX1_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsHanunoo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsHanunoo", &code)) - return(NULL); - - c_retval = xmlUCSIsHanunoo(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlParserSetLineNumbers(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - int linenumbers; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlParserSetLineNumbers", &pyobj_ctxt, &linenumbers)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - ctxt->linenumbers = linenumbers; - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlParsePEReference(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParsePEReference", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParsePEReference(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlDelEncodingAlias(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - char * alias; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlDelEncodingAlias", &alias)) - return(NULL); - - c_retval = xmlDelEncodingAlias(alias); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_TREE_ENABLED) -PyObject * -libxml_xmlNodeSetContentLen(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNodePtr cur; - PyObject *pyobj_cur; - xmlChar * content; - int len; - - if (!PyArg_ParseTuple(args, (char *)"Ozi:xmlNodeSetContentLen", &pyobj_cur, &content, &len)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xmlNodeSetContentLen(cur, content, len); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_TREE_ENABLED) */ -PyObject * -libxml_xmlThrDefPedanticParserDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int v; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefPedanticParserDefaultValue", &v)) - return(NULL); - - c_retval = xmlThrDefPedanticParserDefaultValue(v); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlUTF8Strpos(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xmlChar * utf; - int pos; - - if (!PyArg_ParseTuple(args, (char *)"zi:xmlUTF8Strpos", &utf, &pos)) - return(NULL); - - c_retval = xmlUTF8Strpos(utf, pos); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlCharStrdup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - char * cur; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlCharStrdup", &cur)) - return(NULL); - - c_retval = xmlCharStrdup(cur); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathRegisterNs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * prefix; - xmlChar * ns_uri; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlXPathRegisterNs", &pyobj_ctxt, &prefix, &ns_uri)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - c_retval = xmlXPathRegisterNs(ctxt, prefix, ns_uri); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCurrencySymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCurrencySymbols", &code)) - return(NULL); - - c_retval = xmlUCSIsCurrencySymbols(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathCmpNodes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlNodePtr node1; - PyObject *pyobj_node1; - xmlNodePtr node2; - PyObject *pyobj_node2; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlXPathCmpNodes", &pyobj_node1, &pyobj_node2)) - return(NULL); - node1 = (xmlNodePtr) PyxmlNode_Get(pyobj_node1); - node2 = (xmlNodePtr) PyxmlNode_Get(pyobj_node2); - - c_retval = xmlXPathCmpNodes(node1, node2); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathVariableLookupNS(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * name; - xmlChar * ns_uri; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlXPathVariableLookupNS", &pyobj_ctxt, &name, &ns_uri)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - c_retval = xmlXPathVariableLookupNS(ctxt, name, ns_uri); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_XINCLUDE_ENABLED) -PyObject * -libxml_xmlXIncludeProcessFlags(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - int flags; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXIncludeProcessFlags", &pyobj_doc, &flags)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlXIncludeProcessFlags(doc, flags); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XINCLUDE_ENABLED) */ -PyObject * -libxml_xmlUTF8Strsub(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * utf; - int start; - int len; - - if (!PyArg_ParseTuple(args, (char *)"zii:xmlUTF8Strsub", &utf, &start, &len)) - return(NULL); - - c_retval = xmlUTF8Strsub(utf, start, len); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlIsMixedElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlIsMixedElement", &pyobj_doc, &name)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xmlIsMixedElement(doc, name); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsMiscellaneousSymbolsandArrows(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsMiscellaneousSymbolsandArrows", &code)) - return(NULL); - - c_retval = xmlUCSIsMiscellaneousSymbolsandArrows(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) -PyObject * -libxml_htmlNodeDumpFormatOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlOutputBufferPtr buf; - PyObject *pyobj_buf; - xmlDocPtr doc; - PyObject *pyobj_doc; - xmlNodePtr cur; - PyObject *pyobj_cur; - char * encoding; - int format; - - if (!PyArg_ParseTuple(args, (char *)"OOOzi:htmlNodeDumpFormatOutput", &pyobj_buf, &pyobj_doc, &pyobj_cur, &encoding, &format)) - return(NULL); - buf = (xmlOutputBufferPtr) PyoutputBuffer_Get(pyobj_buf); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - htmlNodeDumpFormatOutput(buf, doc, cur, encoding, format); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) */ -PyObject * -libxml_xmlParseExternalSubset(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * ExternalID; - xmlChar * SystemID; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlParseExternalSubset", &pyobj_ctxt, &ExternalID, &SystemID)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseExternalSubset(ctxt, ExternalID, SystemID); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlURIGetOpaque(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const char * c_retval; - xmlURIPtr URI; - PyObject *pyobj_URI; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlURIGetOpaque", &pyobj_URI)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - c_retval = URI->opaque; - py_retval = libxml_charPtrConstWrap((const char *) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlDictCleanup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlDictCleanup(); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_WRITER_ENABLED) -PyObject * -libxml_xmlTextReaderReadInnerXml(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderReadInnerXml", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderReadInnerXml(reader); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) && defined(LIBXML_WRITER_ENABLED) */ -PyObject * -libxml_xmlThrDefKeepBlanksDefaultValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int v; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefKeepBlanksDefaultValue", &v)) - return(NULL); - - c_retval = xmlThrDefKeepBlanksDefaultValue(v); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_VALID_ENABLED) -PyObject * -libxml_xmlValidateNmtokensValue(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlValidateNmtokensValue", &value)) - return(NULL); - - c_retval = xmlValidateNmtokensValue(value); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_VALID_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsThaana(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsThaana", &code)) - return(NULL); - - c_retval = xmlUCSIsThaana(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlStrsub(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlChar * str; - int start; - int len; - - if (!PyArg_ParseTuple(args, (char *)"zii:xmlStrsub", &str, &start, &len)) - return(NULL); - - c_retval = xmlStrsub(str, start, len); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsYiRadicals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsYiRadicals", &code)) - return(NULL); - - c_retval = xmlUCSIsYiRadicals(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_LEGACY_ENABLED) -PyObject * -libxml_xmlCleanupPredefinedEntities(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlCleanupPredefinedEntities(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_LEGACY_ENABLED) */ -#if defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlSchemaInitTypes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlSchemaInitTypes(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_SCHEMAS_ENABLED) */ -PyObject * -libxml_xmlParseElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseElement", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseElement(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsOriya(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsOriya", &code)) - return(NULL); - - c_retval = xmlUCSIsOriya(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlParseVersionInfo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseVersionInfo", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = xmlParseVersionInfo(ctxt); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathSubstringBeforeFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xmlXPathSubstringBeforeFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathSubstringBeforeFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_OUTPUT_ENABLED) && defined(LIBXML_HTTP_ENABLED) -PyObject * -libxml_xmlRegisterHTTPPostCallbacks(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xmlRegisterHTTPPostCallbacks(); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_OUTPUT_ENABLED) && defined(LIBXML_HTTP_ENABLED) */ -PyObject * -libxml_xmlSetTreeDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNodePtr tree; - PyObject *pyobj_tree; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"OO:xmlSetTreeDoc", &pyobj_tree, &pyobj_doc)) - return(NULL); - tree = (xmlNodePtr) PyxmlNode_Get(pyobj_tree); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - xmlSetTreeDoc(tree, doc); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlCopyNodeList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlCopyNodeList", &pyobj_node)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlCopyNodeList(node); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlParseCharRef(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - htmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:htmlParseCharRef", &pyobj_ctxt)) - return(NULL); - ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - c_retval = htmlParseCharRef(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsAegeanNumbers(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsAegeanNumbers", &code)) - return(NULL); - - c_retval = xmlUCSIsAegeanNumbers(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlErrorGetLevel(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlErrorPtr Error; - PyObject *pyobj_Error; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlErrorGetLevel", &pyobj_Error)) - return(NULL); - Error = (xmlErrorPtr) PyError_Get(pyobj_Error); - - c_retval = Error->level; - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlCheckUTF8(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - unsigned char * utf; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlCheckUTF8", &utf)) - return(NULL); - - c_retval = xmlCheckUTF8(utf); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsOldItalic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsOldItalic", &code)) - return(NULL); - - c_retval = xmlUCSIsOldItalic(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathPopNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - double c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathPopNumber", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - c_retval = xmlXPathPopNumber(ctxt); - py_retval = libxml_doubleWrap((double) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsEnclosedAlphanumerics(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsEnclosedAlphanumerics", &code)) - return(NULL); - - c_retval = xmlUCSIsEnclosedAlphanumerics(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathCastBooleanToNumber(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - double c_retval; - int val; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlXPathCastBooleanToNumber", &val)) - return(NULL); - - c_retval = xmlXPathCastBooleanToNumber(val); - py_retval = libxml_doubleWrap((double) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsIdeographicDescriptionCharacters(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsIdeographicDescriptionCharacters", &code)) - return(NULL); - - c_retval = xmlUCSIsIdeographicDescriptionCharacters(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlGetLineNo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - long c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlGetLineNo", &pyobj_node)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlGetLineNo(node); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlURISetUser(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlURIPtr URI; - PyObject *pyobj_URI; - char * user; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlURISetUser", &pyobj_URI, &user)) - return(NULL); - URI = (xmlURIPtr) PyURI_Get(pyobj_URI); - - if (URI->user != NULL) xmlFree(URI->user); - URI->user = (char *)xmlStrdup((const xmlChar *)user); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlUnlinkNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlUnlinkNode", &pyobj_cur)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xmlUnlinkNode(cur); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlCreateEntityParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlParserCtxtPtr c_retval; - xmlChar * URL; - xmlChar * ID; - xmlChar * base; - - if (!PyArg_ParseTuple(args, (char *)"zzz:xmlCreateEntityParserCtxt", &URL, &ID, &base)) - return(NULL); - - c_retval = xmlCreateEntityParserCtxt(URL, ID, base); - py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval); - return(py_retval); -} - -PyObject * -libxml_xmlThrDefSaveNoEmptyTags(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int v; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlThrDefSaveNoEmptyTags", &v)) - return(NULL); - - c_retval = xmlThrDefSaveNoEmptyTags(v); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderGetAttribute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlTextReaderGetAttribute", &pyobj_reader, &name)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderGetAttribute(reader, name); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlKeepBlanksDefault(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int val; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlKeepBlanksDefault", &val)) - return(NULL); - - c_retval = xmlKeepBlanksDefault(val); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsSupplementaryPrivateUseAreaB(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSupplementaryPrivateUseAreaB", &code)) - return(NULL); - - c_retval = xmlUCSIsSupplementaryPrivateUseAreaB(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsSupplementaryPrivateUseAreaA(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsSupplementaryPrivateUseAreaA", &code)) - return(NULL); - - c_retval = xmlUCSIsSupplementaryPrivateUseAreaA(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_READER_ENABLED) -PyObject * -libxml_xmlTextReaderCurrentNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xmlTextReaderPtr reader; - PyObject *pyobj_reader; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlTextReaderCurrentNode", &pyobj_reader)) - return(NULL); - reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); - - c_retval = xmlTextReaderCurrentNode(reader); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_READER_ENABLED) */ -PyObject * -libxml_xmlNewDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xmlChar * version; - - if (!PyArg_ParseTuple(args, (char *)"z:xmlNewDoc", &version)) - return(NULL); - - c_retval = xmlNewDoc(version); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsLetterlikeSymbols(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLetterlikeSymbols", &code)) - return(NULL); - - c_retval = xmlUCSIsLetterlikeSymbols(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatZp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatZp", &code)) - return(NULL); - - c_retval = xmlUCSIsCatZp(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatZs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatZs", &code)) - return(NULL); - - c_retval = xmlUCSIsCatZs(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsCatZl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsCatZl", &code)) - return(NULL); - - c_retval = xmlUCSIsCatZl(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_CATALOG_ENABLED) -PyObject * -libxml_xmlACatalogRemove(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlCatalogPtr catal; - PyObject *pyobj_catal; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlACatalogRemove", &pyobj_catal, &value)) - return(NULL); - catal = (xmlCatalogPtr) Pycatalog_Get(pyobj_catal); - - c_retval = xmlACatalogRemove(catal, value); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_CATALOG_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -PyObject * -libxml_xmlUnsetProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - xmlChar * name; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlUnsetProp", &pyobj_node, &name)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlUnsetProp(node, name); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */ -#if defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_htmlFreeParserCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - htmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:htmlFreeParserCtxt", &pyobj_ctxt)) - return(NULL); - ctxt = (htmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - htmlFreeParserCtxt(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsVariationSelectorsSupplement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsVariationSelectorsSupplement", &code)) - return(NULL); - - c_retval = xmlUCSIsVariationSelectorsSupplement(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) -PyObject * -libxml_xmlSetProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlAttrPtr c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - xmlChar * name; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xmlSetProp", &pyobj_node, &name, &value)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xmlSetProp(node, name, value); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) */ -#if defined(LIBXML_TREE_ENABLED) -PyObject * -libxml_xmlNodeSetLang(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlNodePtr cur; - PyObject *pyobj_cur; - xmlChar * lang; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xmlNodeSetLang", &pyobj_cur, &lang)) - return(NULL); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xmlNodeSetLang(cur, lang); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_TREE_ENABLED) */ -PyObject * -libxml_xmlFreeDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlDocPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeDoc", &pyobj_cur)) - return(NULL); - cur = (xmlDocPtr) PyxmlNode_Get(pyobj_cur); - - xmlFreeDoc(cur); - Py_INCREF(Py_None); - return(Py_None); -} - -#if defined(LIBXML_XPATH_ENABLED) -PyObject * -libxml_xmlXPathEvalExpr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlXPathEvalExpr", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xmlXPathEvalExpr(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -#endif /* defined(LIBXML_XPATH_ENABLED) */ -#if defined(LIBXML_UNICODE_ENABLED) -PyObject * -libxml_xmlUCSIsLinearBSyllabary(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int code; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlUCSIsLinearBSyllabary", &code)) - return(NULL); - - c_retval = xmlUCSIsLinearBSyllabary(code); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -#endif /* defined(LIBXML_UNICODE_ENABLED) */ -PyObject * -libxml_xmlParseDocTypeDecl(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlParserCtxtPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xmlParseDocTypeDecl", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt); - - xmlParseDocTypeDecl(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxml_xmlIsBaseChar(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - unsigned int ch; - - if (!PyArg_ParseTuple(args, (char *)"i:xmlIsBaseChar", &ch)) - return(NULL); - - c_retval = xmlIsBaseChar(ch); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - diff --git a/src/tools/docbook/libxml2/python/libxml2-python-api.xml b/src/tools/docbook/libxml2/python/libxml2-python-api.xml deleted file mode 100644 index f77a237182..0000000000 --- a/src/tools/docbook/libxml2/python/libxml2-python-api.xml +++ /dev/null @@ -1,330 +0,0 @@ - - - - - defined(LIBXML_XPATH_ENABLED) - Register a Python written function to the XPath interpreter - - - - - - - - Create a new Node - - - - - Create a progressive XML parser context to build either an event flow if the SAX object is not None, or a DOM tree otherwise. - - - - - - - - defined(LIBXML_HTML_ENABLED) - Create a progressive HTML parser context to build either an event flow if the SAX object is not None, or a DOM tree otherwise. - - - - - - - - Interface to parse an XML file or resource pointed by an URI to build an event flow to the SAX object - - - - - - - defined(LIBXML_HTML_ENABLED) - Interface to parse an HTML file or resource pointed by an URI to build an event flow to the SAX object - - - - - - - Create a libxml2 output buffer from a Python file - - - - - - Create a libxml2 input buffer from a Python file - - - - - - Set the entity resolver as a python function - - - - - - Get the document tree from a parser context. - - - - - Get the well formed information from a parser context. - - - - - Get the validity information from a parser context. - - - - - Switch the parser to validation mode. - - - - - - Switch the parser to replace entities. - - - - - - Switch the parser to be pedantic. - - - - - - Switch the parser to load the DTD without validating. - - - - - - Switch on the generation of line number for elements nodes. - - - - - - Switch on the generation of line number for elements nodes. Also returns the number of bytes allocated and not freed by libxml2 since memory debugging was switched on. - - - - - dump the memory allocated in the file .memdump - - - - - Get the namespace of a node - - - - - Get the namespace of a node - - - - - - defined(LIBXML_XPATH_ENABLED) - Get the xpathContext from an xpathParserContext - - - - - defined(LIBXML_XPATH_ENABLED) - Get the doc from an xpathContext - - - - - defined(LIBXML_XPATH_ENABLED) - Get the current node from an xpathContext - - - - - defined(LIBXML_XPATH_ENABLED) - Set the doc of an xpathContext - - - - - - defined(LIBXML_XPATH_ENABLED) - Set the current node of an xpathContext - - - - - - defined(LIBXML_XPATH_ENABLED) - Get the current node from an xpathContext - - - - - defined(LIBXML_XPATH_ENABLED) - Get the current node from an xpathContext - - - - - defined(LIBXML_XPATH_ENABLED) - Get the current function name xpathContext - - - - - defined(LIBXML_XPATH_ENABLED) - Get the current function name URI xpathContext - - - - - - Get the scheme part from an URI - - - - - Set the scheme part of an URI. - - - - - - Get the opaque part from an URI - - - - - Set the opaque part of an URI. - - - - - - Get the authority part from an URI - - - - - Set the authority part of an URI. - - - - - - Get the server part from an URI - - - - - Set the server part of an URI. - - - - - - Get the user part from an URI - - - - - Set the user part of an URI. - - - - - - Get the path part from an URI - - - - - Set the path part of an URI. - - - - - - Get the query part from an URI - - - - - Set the query part of an URI. - - - - - - Get the fragment part from an URI - - - - - Set the fragment part of an URI. - - - - - - Get the port part from an URI - - - - - Set the port part of an URI. - - - - - - - What part of the library raised this error - - - - - The error code, e.g. an xmlParserError - - - - - human-readable informative error message - - - - - how consequent is the error - - - - - the filename - - - - - the line number if available - - - - - Cleanup function for the XML library. It tries to reclaim all parsing related global memory allocated for the library processing. It doesn't deallocate any document related memory. Calling this function should not prevent reusing the library but one should call xmlCleanupParser() only when the process has finished using the library or XML document built with it. - - - - Returns the total amount of memory allocated by libxml2 - - - - diff --git a/src/tools/docbook/libxml2/python/libxml_wrap.h b/src/tools/docbook/libxml2/python/libxml_wrap.h deleted file mode 100644 index 2758e99318..0000000000 --- a/src/tools/docbook/libxml2/python/libxml_wrap.h +++ /dev/null @@ -1,245 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#ifdef LIBXML_SCHEMAS_ENABLED -#include -#include -#endif - -/** - * ATTRIBUTE_UNUSED: - * - * Macro used to signal to GCC unused function parameters - * Repeated here since the definition is not available when - * compiled outside the libxml2 build tree. - */ -#ifdef __GNUC__ -#ifdef ATTRIBUTE_UNUSED -#undef ATTRIBUTE_UNUSED -#endif -#ifndef ATTRIBUTE_UNUSED -#define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) -#endif /* ATTRIBUTE_UNUSED */ -#else -#define ATTRIBUTE_UNUSED -#endif - -#define PyxmlNode_Get(v) (((v) == Py_None) ? NULL : \ - (((PyxmlNode_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlNodePtr obj; -} PyxmlNode_Object; - -#define PyxmlXPathContext_Get(v) (((v) == Py_None) ? NULL : \ - (((PyxmlXPathContext_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlXPathContextPtr obj; -} PyxmlXPathContext_Object; - -#define PyxmlXPathParserContext_Get(v) (((v) == Py_None) ? NULL : \ - (((PyxmlXPathParserContext_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlXPathParserContextPtr obj; -} PyxmlXPathParserContext_Object; - -#define PyparserCtxt_Get(v) (((v) == Py_None) ? NULL : \ - (((PyparserCtxt_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlParserCtxtPtr obj; -} PyparserCtxt_Object; - -#define PyValidCtxt_Get(v) (((v) == Py_None) ? NULL : \ - (((PyValidCtxt_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlValidCtxtPtr obj; -} PyValidCtxt_Object; - -#define Pycatalog_Get(v) (((v) == Py_None) ? NULL : \ - (((Pycatalog_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlCatalogPtr obj; -} Pycatalog_Object; - -#ifdef LIBXML_REGEXP_ENABLED -#define PyxmlReg_Get(v) (((v) == Py_None) ? NULL : \ - (((PyxmlReg_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlRegexpPtr obj; -} PyxmlReg_Object; -#endif /* LIBXML_REGEXP_ENABLED */ - -#define PyxmlTextReader_Get(v) (((v) == Py_None) ? NULL : \ - (((PyxmlTextReader_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlTextReaderPtr obj; -} PyxmlTextReader_Object; - -#define PyxmlTextReaderLocator_Get(v) (((v) == Py_None) ? NULL : \ - (((PyxmlTextReaderLocator_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlTextReaderLocatorPtr obj; -} PyxmlTextReaderLocator_Object; - -#define PyURI_Get(v) (((v) == Py_None) ? NULL : \ - (((PyURI_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlErrorPtr obj; -} PyError_Object; - -#define PyError_Get(v) (((v) == Py_None) ? NULL : \ - (((PyError_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlOutputBufferPtr obj; -} PyoutputBuffer_Object; - -#define PyoutputBuffer_Get(v) (((v) == Py_None) ? NULL : \ - (((PyoutputBuffer_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlParserInputBufferPtr obj; -} PyinputBuffer_Object; - -#define PyinputBuffer_Get(v) (((v) == Py_None) ? NULL : \ - (((PyinputBuffer_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlURIPtr obj; -} PyURI_Object; - -/* FILE * have their own internal representation */ -#define PyFile_Get(v) (((v) == Py_None) ? NULL : \ - (PyFile_Check(v) ? (PyFile_AsFile(v)) : stdout)) - -#ifdef LIBXML_SCHEMAS_ENABLED -typedef struct { - PyObject_HEAD - xmlRelaxNGPtr obj; -} PyrelaxNgSchema_Object; - -#define PyrelaxNgSchema_Get(v) (((v) == Py_None) ? NULL : \ - (((PyrelaxNgSchema_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlRelaxNGParserCtxtPtr obj; -} PyrelaxNgParserCtxt_Object; - -#define PyrelaxNgParserCtxt_Get(v) (((v) == Py_None) ? NULL : \ - (((PyrelaxNgParserCtxt_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlRelaxNGValidCtxtPtr obj; -} PyrelaxNgValidCtxt_Object; - -#define PyrelaxNgValidCtxt_Get(v) (((v) == Py_None) ? NULL : \ - (((PyrelaxNgValidCtxt_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlSchemaPtr obj; -} PySchema_Object; - -#define PySchema_Get(v) (((v) == Py_None) ? NULL : \ - (((PySchema_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlSchemaParserCtxtPtr obj; -} PySchemaParserCtxt_Object; - -#define PySchemaParserCtxt_Get(v) (((v) == Py_None) ? NULL : \ - (((PySchemaParserCtxt_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlSchemaValidCtxtPtr obj; -} PySchemaValidCtxt_Object; - -#define PySchemaValidCtxt_Get(v) (((v) == Py_None) ? NULL : \ - (((PySchemaValidCtxt_Object *)(v))->obj)) - -#endif /* LIBXML_SCHEMAS_ENABLED */ - -PyObject * libxml_intWrap(int val); -PyObject * libxml_longWrap(long val); -PyObject * libxml_xmlCharPtrWrap(xmlChar *str); -PyObject * libxml_constxmlCharPtrWrap(const xmlChar *str); -PyObject * libxml_charPtrWrap(char *str); -PyObject * libxml_constcharPtrWrap(const char *str); -PyObject * libxml_charPtrConstWrap(const char *str); -PyObject * libxml_xmlCharPtrConstWrap(const xmlChar *str); -PyObject * libxml_xmlDocPtrWrap(xmlDocPtr doc); -PyObject * libxml_xmlNodePtrWrap(xmlNodePtr node); -PyObject * libxml_xmlAttrPtrWrap(xmlAttrPtr attr); -PyObject * libxml_xmlNsPtrWrap(xmlNsPtr ns); -PyObject * libxml_xmlAttributePtrWrap(xmlAttributePtr ns); -PyObject * libxml_xmlElementPtrWrap(xmlElementPtr ns); -PyObject * libxml_doubleWrap(double val); -PyObject * libxml_xmlXPathContextPtrWrap(xmlXPathContextPtr ctxt); -PyObject * libxml_xmlParserCtxtPtrWrap(xmlParserCtxtPtr ctxt); -PyObject * libxml_xmlXPathParserContextPtrWrap(xmlXPathParserContextPtr ctxt); -PyObject * libxml_xmlXPathObjectPtrWrap(xmlXPathObjectPtr obj); -PyObject * libxml_xmlValidCtxtPtrWrap(xmlValidCtxtPtr valid); -PyObject * libxml_xmlCatalogPtrWrap(xmlCatalogPtr obj); -PyObject * libxml_xmlURIPtrWrap(xmlURIPtr uri); -PyObject * libxml_xmlOutputBufferPtrWrap(xmlOutputBufferPtr buffer); -PyObject * libxml_xmlParserInputBufferPtrWrap(xmlParserInputBufferPtr buffer); -#ifdef LIBXML_REGEXP_ENABLED -PyObject * libxml_xmlRegexpPtrWrap(xmlRegexpPtr regexp); -#endif /* LIBXML_REGEXP_ENABLED */ -PyObject * libxml_xmlTextReaderPtrWrap(xmlTextReaderPtr reader); -PyObject * libxml_xmlTextReaderLocatorPtrWrap(xmlTextReaderLocatorPtr locator); - -xmlXPathObjectPtr libxml_xmlXPathObjectPtrConvert(PyObject * obj); -#ifdef LIBXML_SCHEMAS_ENABLED -PyObject * libxml_xmlRelaxNGPtrWrap(xmlRelaxNGPtr ctxt); -PyObject * libxml_xmlRelaxNGParserCtxtPtrWrap(xmlRelaxNGParserCtxtPtr ctxt); -PyObject * libxml_xmlRelaxNGValidCtxtPtrWrap(xmlRelaxNGValidCtxtPtr valid); -PyObject * libxml_xmlSchemaPtrWrap(xmlSchemaPtr ctxt); -PyObject * libxml_xmlSchemaParserCtxtPtrWrap(xmlSchemaParserCtxtPtr ctxt); -PyObject * libxml_xmlSchemaValidCtxtPtrWrap(xmlSchemaValidCtxtPtr valid); -#endif /* LIBXML_SCHEMAS_ENABLED */ -PyObject * libxml_xmlErrorPtrWrap(xmlErrorPtr error); -PyObject * libxml_xmlSchemaSetValidErrors(PyObject * self, PyObject * args); diff --git a/src/tools/docbook/libxml2/python/setup.py b/src/tools/docbook/libxml2/python/setup.py deleted file mode 100755 index 99def88a8a..0000000000 --- a/src/tools/docbook/libxml2/python/setup.py +++ /dev/null @@ -1,242 +0,0 @@ -#!/usr/bin/python -u -# -# Setup script for libxml2 and libxslt if found -# -import sys, os -from distutils.core import setup, Extension - -# Below ROOT, we expect to find include, include/libxml2, lib and bin. -# On *nix, it is not needed (but should not harm), -# on Windows, it is set by configure.js. -ROOT = r'/usr' - -# Thread-enabled libxml2 -with_threads = 1 - -# If this flag is set (windows only), -# a private copy of the dlls are included in the package. -# If this flag is not set, the libxml2 and libxslt -# dlls must be found somewhere in the PATH at runtime. -WITHDLLS = 1 and sys.platform.startswith('win') - -def missing(file): - if os.access(file, os.R_OK) == 0: - return 1 - return 0 - -try: - HOME = os.environ['HOME'] -except: - HOME="C:" - -if WITHDLLS: - # libxml dlls (expected in ROOT/bin) - dlls = [ 'iconv.dll','libxml2.dll','libxslt.dll','libexslt.dll' ] - dlls = map(lambda dll: os.path.join(ROOT,'bin',dll),dlls) - - # create __init__.py for the libxmlmods package - if not os.path.exists("libxmlmods"): - os.mkdir("libxmlmods") - open("libxmlmods/__init__.py","w").close() - - def altImport(s): - s = s.replace("import libxml2mod","from libxmlmods import libxml2mod") - s = s.replace("import libxsltmod","from libxmlmods import libxsltmod") - return s - -if sys.platform.startswith('win'): - libraryPrefix = 'lib' - platformLibs = [] -else: - libraryPrefix = '' - platformLibs = ["m","z"] - -# those are examined to find -# - libxml2/libxml/tree.h -# - iconv.h -# - libxslt/xsltconfig.h -includes_dir = [ -"/usr/include", -"/usr/local/include", -"/opt/include", -os.path.join(ROOT,'include'), -HOME -]; - -xml_includes="" -for dir in includes_dir: - if not missing(dir + "/libxml2/libxml/tree.h"): - xml_includes=dir + "/libxml2" - break; - -if xml_includes == "": - print "failed to find headers for libxml2: update includes_dir" - sys.exit(1) - -iconv_includes="" -for dir in includes_dir: - if not missing(dir + "/iconv.h"): - iconv_includes=dir - break; - -if iconv_includes == "": - print "failed to find headers for libiconv: update includes_dir" - sys.exit(1) - -# those are added in the linker search path for libraries -libdirs = [ -os.path.join(ROOT,'lib'), -] - -xml_files = ["libxml2-api.xml", "libxml2-python-api.xml", - "libxml.c", "libxml.py", "libxml_wrap.h", "types.c", - "xmlgenerator.py", "README", "TODO", "drv_libxml2.py"] - -xslt_files = ["libxslt-api.xml", "libxslt-python-api.xml", - "libxslt.c", "libxsl.py", "libxslt_wrap.h", - "xsltgenerator.py"] - -if missing("libxml2-py.c") or missing("libxml2.py"): - try: - try: - import xmlgenerator - except: - import generator - except: - print "failed to find and generate stubs for libxml2, aborting ..." - print sys.exc_type, sys.exc_value - sys.exit(1) - - head = open("libxml.py", "r") - generated = open("libxml2class.py", "r") - result = open("libxml2.py", "w") - for line in head.readlines(): - if WITHDLLS: - result.write(altImport(line)) - else: - result.write(line) - for line in generated.readlines(): - result.write(line) - head.close() - generated.close() - result.close() - -with_xslt=0 -if missing("libxslt-py.c") or missing("libxslt.py"): - if missing("xsltgenerator.py") or missing("libxslt-api.xml"): - print "libxslt stub generator not found, libxslt not built" - else: - try: - import xsltgenerator - except: - print "failed to generate stubs for libxslt, aborting ..." - print sys.exc_type, sys.exc_value - else: - head = open("libxsl.py", "r") - generated = open("libxsltclass.py", "r") - result = open("libxslt.py", "w") - for line in head.readlines(): - if WITHDLLS: - result.write(altImport(line)) - else: - result.write(line) - for line in generated.readlines(): - result.write(line) - head.close() - generated.close() - result.close() - with_xslt=1 -else: - with_xslt=1 - -if with_xslt == 1: - xslt_includes="" - for dir in includes_dir: - if not missing(dir + "/libxslt/xsltconfig.h"): - xslt_includes=dir + "/libxslt" - break; - - if xslt_includes == "": - print "failed to find headers for libxslt: update includes_dir" - with_xslt = 0 - - -descr = "libxml2 package" -modules = [ 'libxml2', 'drv_libxml2' ] -if WITHDLLS: - modules.append('libxmlmods.__init__') -c_files = ['libxml2-py.c', 'libxml.c', 'types.c' ] -includes= [xml_includes, iconv_includes] -libs = [libraryPrefix + "xml2"] + platformLibs -macros = [] -if with_threads: - macros.append(('_REENTRANT','1')) -if with_xslt == 1: - descr = "libxml2 and libxslt package" - if not sys.platform.startswith('win'): - # - # We are gonna build 2 identical shared libs with merge initializing - # both libxml2mod and libxsltmod - # - c_files = c_files + ['libxslt-py.c', 'libxslt.c'] - xslt_c_files = c_files - macros.append(('MERGED_MODULES', '1')) - else: - # - # On windows the MERGED_MODULE option is not needed - # (and does not work) - # - xslt_c_files = ['libxslt-py.c', 'libxslt.c', 'types.c'] - libs.insert(0, libraryPrefix + 'exslt') - libs.insert(0, libraryPrefix + 'xslt') - includes.append(xslt_includes) - modules.append('libxslt') - - -extens=[Extension('libxml2mod', c_files, include_dirs=includes, - library_dirs=libdirs, - libraries=libs, define_macros=macros)] -if with_xslt == 1: - extens.append(Extension('libxsltmod', xslt_c_files, include_dirs=includes, - library_dirs=libdirs, - libraries=libs, define_macros=macros)) - -if missing("MANIFEST"): - - manifest = open("MANIFEST", "w") - manifest.write("setup.py\n") - for file in xml_files: - manifest.write(file + "\n") - if with_xslt == 1: - for file in xslt_files: - manifest.write(file + "\n") - manifest.close() - -if WITHDLLS: - ext_package = "libxmlmods" - if sys.version >= "2.2": - base = "lib/site-packages/" - else: - base = "" - data_files = [(base+"libxmlmods",dlls)] -else: - ext_package = None - data_files = [] - -setup (name = "libxml2-python", - # On *nix, the version number is created from setup.py.in - # On windows, it is set by configure.js - version = "2.6.26", - description = descr, - author = "Daniel Veillard", - author_email = "veillard@redhat.com", - url = "http://xmlsoft.org/python.html", - licence="MIT Licence", - py_modules=modules, - ext_modules=extens, - ext_package=ext_package, - data_files=data_files, - ) - -sys.exit(0) - diff --git a/src/tools/docbook/libxml2/python/setup.py.in b/src/tools/docbook/libxml2/python/setup.py.in deleted file mode 100755 index 7eaf5306f8..0000000000 --- a/src/tools/docbook/libxml2/python/setup.py.in +++ /dev/null @@ -1,242 +0,0 @@ -#!/usr/bin/python -u -# -# Setup script for libxml2 and libxslt if found -# -import sys, os -from distutils.core import setup, Extension - -# Below ROOT, we expect to find include, include/libxml2, lib and bin. -# On *nix, it is not needed (but should not harm), -# on Windows, it is set by configure.js. -ROOT = r'@prefix@' - -# Thread-enabled libxml2 -with_threads = @WITH_THREADS@ - -# If this flag is set (windows only), -# a private copy of the dlls are included in the package. -# If this flag is not set, the libxml2 and libxslt -# dlls must be found somewhere in the PATH at runtime. -WITHDLLS = 1 and sys.platform.startswith('win') - -def missing(file): - if os.access(file, os.R_OK) == 0: - return 1 - return 0 - -try: - HOME = os.environ['HOME'] -except: - HOME="C:" - -if WITHDLLS: - # libxml dlls (expected in ROOT/bin) - dlls = [ 'iconv.dll','libxml2.dll','libxslt.dll','libexslt.dll' ] - dlls = map(lambda dll: os.path.join(ROOT,'bin',dll),dlls) - - # create __init__.py for the libxmlmods package - if not os.path.exists("libxmlmods"): - os.mkdir("libxmlmods") - open("libxmlmods/__init__.py","w").close() - - def altImport(s): - s = s.replace("import libxml2mod","from libxmlmods import libxml2mod") - s = s.replace("import libxsltmod","from libxmlmods import libxsltmod") - return s - -if sys.platform.startswith('win'): - libraryPrefix = 'lib' - platformLibs = [] -else: - libraryPrefix = '' - platformLibs = ["m","z"] - -# those are examined to find -# - libxml2/libxml/tree.h -# - iconv.h -# - libxslt/xsltconfig.h -includes_dir = [ -"/usr/include", -"/usr/local/include", -"/opt/include", -os.path.join(ROOT,'include'), -HOME -]; - -xml_includes="" -for dir in includes_dir: - if not missing(dir + "/libxml2/libxml/tree.h"): - xml_includes=dir + "/libxml2" - break; - -if xml_includes == "": - print "failed to find headers for libxml2: update includes_dir" - sys.exit(1) - -iconv_includes="" -for dir in includes_dir: - if not missing(dir + "/iconv.h"): - iconv_includes=dir - break; - -if iconv_includes == "": - print "failed to find headers for libiconv: update includes_dir" - sys.exit(1) - -# those are added in the linker search path for libraries -libdirs = [ -os.path.join(ROOT,'lib'), -] - -xml_files = ["libxml2-api.xml", "libxml2-python-api.xml", - "libxml.c", "libxml.py", "libxml_wrap.h", "types.c", - "xmlgenerator.py", "README", "TODO", "drv_libxml2.py"] - -xslt_files = ["libxslt-api.xml", "libxslt-python-api.xml", - "libxslt.c", "libxsl.py", "libxslt_wrap.h", - "xsltgenerator.py"] - -if missing("libxml2-py.c") or missing("libxml2.py"): - try: - try: - import xmlgenerator - except: - import generator - except: - print "failed to find and generate stubs for libxml2, aborting ..." - print sys.exc_type, sys.exc_value - sys.exit(1) - - head = open("libxml.py", "r") - generated = open("libxml2class.py", "r") - result = open("libxml2.py", "w") - for line in head.readlines(): - if WITHDLLS: - result.write(altImport(line)) - else: - result.write(line) - for line in generated.readlines(): - result.write(line) - head.close() - generated.close() - result.close() - -with_xslt=0 -if missing("libxslt-py.c") or missing("libxslt.py"): - if missing("xsltgenerator.py") or missing("libxslt-api.xml"): - print "libxslt stub generator not found, libxslt not built" - else: - try: - import xsltgenerator - except: - print "failed to generate stubs for libxslt, aborting ..." - print sys.exc_type, sys.exc_value - else: - head = open("libxsl.py", "r") - generated = open("libxsltclass.py", "r") - result = open("libxslt.py", "w") - for line in head.readlines(): - if WITHDLLS: - result.write(altImport(line)) - else: - result.write(line) - for line in generated.readlines(): - result.write(line) - head.close() - generated.close() - result.close() - with_xslt=1 -else: - with_xslt=1 - -if with_xslt == 1: - xslt_includes="" - for dir in includes_dir: - if not missing(dir + "/libxslt/xsltconfig.h"): - xslt_includes=dir + "/libxslt" - break; - - if xslt_includes == "": - print "failed to find headers for libxslt: update includes_dir" - with_xslt = 0 - - -descr = "libxml2 package" -modules = [ 'libxml2', 'drv_libxml2' ] -if WITHDLLS: - modules.append('libxmlmods.__init__') -c_files = ['libxml2-py.c', 'libxml.c', 'types.c' ] -includes= [xml_includes, iconv_includes] -libs = [libraryPrefix + "xml2"] + platformLibs -macros = [] -if with_threads: - macros.append(('_REENTRANT','1')) -if with_xslt == 1: - descr = "libxml2 and libxslt package" - if not sys.platform.startswith('win'): - # - # We are gonna build 2 identical shared libs with merge initializing - # both libxml2mod and libxsltmod - # - c_files = c_files + ['libxslt-py.c', 'libxslt.c'] - xslt_c_files = c_files - macros.append(('MERGED_MODULES', '1')) - else: - # - # On windows the MERGED_MODULE option is not needed - # (and does not work) - # - xslt_c_files = ['libxslt-py.c', 'libxslt.c', 'types.c'] - libs.insert(0, libraryPrefix + 'exslt') - libs.insert(0, libraryPrefix + 'xslt') - includes.append(xslt_includes) - modules.append('libxslt') - - -extens=[Extension('libxml2mod', c_files, include_dirs=includes, - library_dirs=libdirs, - libraries=libs, define_macros=macros)] -if with_xslt == 1: - extens.append(Extension('libxsltmod', xslt_c_files, include_dirs=includes, - library_dirs=libdirs, - libraries=libs, define_macros=macros)) - -if missing("MANIFEST"): - - manifest = open("MANIFEST", "w") - manifest.write("setup.py\n") - for file in xml_files: - manifest.write(file + "\n") - if with_xslt == 1: - for file in xslt_files: - manifest.write(file + "\n") - manifest.close() - -if WITHDLLS: - ext_package = "libxmlmods" - if sys.version >= "2.2": - base = "lib/site-packages/" - else: - base = "" - data_files = [(base+"libxmlmods",dlls)] -else: - ext_package = None - data_files = [] - -setup (name = "libxml2-python", - # On *nix, the version number is created from setup.py.in - # On windows, it is set by configure.js - version = "@LIBXML_VERSION@", - description = descr, - author = "Daniel Veillard", - author_email = "veillard@redhat.com", - url = "http://xmlsoft.org/python.html", - licence="MIT Licence", - py_modules=modules, - ext_modules=extens, - ext_package=ext_package, - data_files=data_files, - ) - -sys.exit(0) - diff --git a/src/tools/docbook/libxml2/python/tests/Makefile.am b/src/tools/docbook/libxml2/python/tests/Makefile.am deleted file mode 100644 index 3571abfad6..0000000000 --- a/src/tools/docbook/libxml2/python/tests/Makefile.am +++ /dev/null @@ -1,78 +0,0 @@ -EXAMPLE_DIR = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION)/examples - -PYTESTS= \ - build.py \ - attribs.py \ - tst.py \ - tstxpath.py \ - xpathext.py \ - push.py \ - pushSAX.py \ - pushSAXhtml.py \ - error.py \ - serialize.py\ - validate.py \ - tstURI.py \ - cutnpaste.py\ - xpathret.py \ - xpath.py \ - outbuf.py \ - inbuf.py \ - resolver.py \ - regexp.py \ - reader.py \ - reader2.py \ - reader3.py \ - reader4.py \ - reader5.py \ - reader6.py \ - reader7.py \ - reader8.py \ - readernext.py \ - walker.py \ - nsdel.py \ - ctxterror.py\ - readererr.py\ - relaxng.py \ - schema.py \ - thread2.py \ - sync.py \ - tstLastError.py \ - indexes.py \ - dtdvalid.py \ - tstmem.py \ - validDTD.py \ - validSchemas.py \ - validRNG.py - -XMLS= \ - tst.xml \ - valid.xml \ - invalid.xml \ - test.dtd - -EXTRA_DIST = $(PYTESTS) $(XMLS) - -if WITH_PYTHON -tests: $(PYTESTS) - @echo "## running Python regression tests" - -@(PYTHONPATH="..:../.libs:$(srcdir)/..:$$PYTHONPATH" ; \ - export PYTHONPATH; \ - LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \ - export LD_LIBRARY_PATH; \ - for test in $(PYTESTS) ; \ - do log=`$(PYTHON) $(srcdir)/$$test` ; \ - if [ "`echo $$log | grep OK`" = "" ] ; then \ - echo "-- $$test" ; echo "$$log" ; fi ; done) -else -tests: -endif - -clean: - rm -f *.pyc core - -install-data-local: - $(mkinstalldirs) $(DESTDIR)$(EXAMPLE_DIR) - -(for test in $(PYTESTS) $(XMLS); \ - do @INSTALL@ -m 0644 $(srcdir)/$$test $(DESTDIR)$(EXAMPLE_DIR) ; done) - diff --git a/src/tools/docbook/libxml2/python/tests/Makefile.in b/src/tools/docbook/libxml2/python/tests/Makefile.in deleted file mode 100644 index 5b84cc2613..0000000000 --- a/src/tools/docbook/libxml2/python/tests/Makefile.in +++ /dev/null @@ -1,494 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = ../.. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = python/tests -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -BASE_THREAD_LIBS = @BASE_THREAD_LIBS@ -C14N_OBJ = @C14N_OBJ@ -CATALOG_OBJ = @CATALOG_OBJ@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ -CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@ -DEBUG_OBJ = @DEBUG_OBJ@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOCB_OBJ = @DOCB_OBJ@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -FTP_OBJ = @FTP_OBJ@ -HAVE_ISINF = @HAVE_ISINF@ -HAVE_ISNAN = @HAVE_ISNAN@ -HTML_DIR = @HTML_DIR@ -HTML_OBJ = @HTML_OBJ@ -HTTP_OBJ = @HTTP_OBJ@ -ICONV_LIBS = @ICONV_LIBS@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBXML_MAJOR_VERSION = @LIBXML_MAJOR_VERSION@ -LIBXML_MICRO_VERSION = @LIBXML_MICRO_VERSION@ -LIBXML_MINOR_VERSION = @LIBXML_MINOR_VERSION@ -LIBXML_VERSION = @LIBXML_VERSION@ -LIBXML_VERSION_EXTRA = @LIBXML_VERSION_EXTRA@ -LIBXML_VERSION_INFO = @LIBXML_VERSION_INFO@ -LIBXML_VERSION_NUMBER = @LIBXML_VERSION_NUMBER@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MODULE_EXTENSION = @MODULE_EXTENSION@ -MODULE_PLATFORM_LIBS = @MODULE_PLATFORM_LIBS@ -MV = @MV@ -M_LIBS = @M_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -PYTHON = @PYTHON@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@ -PYTHON_SUBDIR = @PYTHON_SUBDIR@ -PYTHON_TESTS = @PYTHON_TESTS@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -RDL_LIBS = @RDL_LIBS@ -READER_TEST = @READER_TEST@ -RELDATE = @RELDATE@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STATIC_BINARIES = @STATIC_BINARIES@ -STRIP = @STRIP@ -TAR = @TAR@ -TEST_C14N = @TEST_C14N@ -TEST_CATALOG = @TEST_CATALOG@ -TEST_DEBUG = @TEST_DEBUG@ -TEST_HTML = @TEST_HTML@ -TEST_MODULES = @TEST_MODULES@ -TEST_PATTERN = @TEST_PATTERN@ -TEST_PHTML = @TEST_PHTML@ -TEST_PUSH = @TEST_PUSH@ -TEST_REGEXPS = @TEST_REGEXPS@ -TEST_SAX = @TEST_SAX@ -TEST_SCHEMAS = @TEST_SCHEMAS@ -TEST_SCHEMATRON = @TEST_SCHEMATRON@ -TEST_THREADS = @TEST_THREADS@ -TEST_VALID = @TEST_VALID@ -TEST_VTIME = @TEST_VTIME@ -TEST_XINCLUDE = @TEST_XINCLUDE@ -TEST_XPATH = @TEST_XPATH@ -TEST_XPTR = @TEST_XPTR@ -THREADS_W32 = @THREADS_W32@ -THREAD_CFLAGS = @THREAD_CFLAGS@ -THREAD_LIBS = @THREAD_LIBS@ -U = @U@ -VERSION = @VERSION@ -WIN32_EXTRA_LDFLAGS = @WIN32_EXTRA_LDFLAGS@ -WIN32_EXTRA_LIBADD = @WIN32_EXTRA_LIBADD@ -WITH_C14N = @WITH_C14N@ -WITH_CATALOG = @WITH_CATALOG@ -WITH_DEBUG = @WITH_DEBUG@ -WITH_DOCB = @WITH_DOCB@ -WITH_FTP = @WITH_FTP@ -WITH_HTML = @WITH_HTML@ -WITH_HTTP = @WITH_HTTP@ -WITH_ICONV = @WITH_ICONV@ -WITH_ISO8859X = @WITH_ISO8859X@ -WITH_LEGACY = @WITH_LEGACY@ -WITH_MEM_DEBUG = @WITH_MEM_DEBUG@ -WITH_MODULES = @WITH_MODULES@ -WITH_OUTPUT = @WITH_OUTPUT@ -WITH_PATTERN = @WITH_PATTERN@ -WITH_PUSH = @WITH_PUSH@ -WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@ -WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@ -WITH_READER = @WITH_READER@ -WITH_REGEXPS = @WITH_REGEXPS@ -WITH_RUN_DEBUG = @WITH_RUN_DEBUG@ -WITH_SAX1 = @WITH_SAX1@ -WITH_SCHEMAS = @WITH_SCHEMAS@ -WITH_SCHEMATRON = @WITH_SCHEMATRON@ -WITH_THREADS = @WITH_THREADS@ -WITH_TREE = @WITH_TREE@ -WITH_TRIO = @WITH_TRIO@ -WITH_TRIO_SOURCES_FALSE = @WITH_TRIO_SOURCES_FALSE@ -WITH_TRIO_SOURCES_TRUE = @WITH_TRIO_SOURCES_TRUE@ -WITH_VALID = @WITH_VALID@ -WITH_WRITER = @WITH_WRITER@ -WITH_XINCLUDE = @WITH_XINCLUDE@ -WITH_XPATH = @WITH_XPATH@ -WITH_XPTR = @WITH_XPTR@ -XINCLUDE_OBJ = @XINCLUDE_OBJ@ -XMLLINT = @XMLLINT@ -XML_CFLAGS = @XML_CFLAGS@ -XML_INCLUDEDIR = @XML_INCLUDEDIR@ -XML_LIBDIR = @XML_LIBDIR@ -XML_LIBS = @XML_LIBS@ -XML_LIBTOOLLIBS = @XML_LIBTOOLLIBS@ -XPATH_OBJ = @XPATH_OBJ@ -XPTR_OBJ = @XPTR_OBJ@ -XSLTPROC = @XSLTPROC@ -Z_CFLAGS = @Z_CFLAGS@ -Z_LIBS = @Z_LIBS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_AS = @ac_ct_AS@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -EXAMPLE_DIR = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION)/examples -PYTESTS = \ - build.py \ - attribs.py \ - tst.py \ - tstxpath.py \ - xpathext.py \ - push.py \ - pushSAX.py \ - pushSAXhtml.py \ - error.py \ - serialize.py\ - validate.py \ - tstURI.py \ - cutnpaste.py\ - xpathret.py \ - xpath.py \ - outbuf.py \ - inbuf.py \ - resolver.py \ - regexp.py \ - reader.py \ - reader2.py \ - reader3.py \ - reader4.py \ - reader5.py \ - reader6.py \ - reader7.py \ - reader8.py \ - readernext.py \ - walker.py \ - nsdel.py \ - ctxterror.py\ - readererr.py\ - relaxng.py \ - schema.py \ - thread2.py \ - sync.py \ - tstLastError.py \ - indexes.py \ - dtdvalid.py \ - tstmem.py \ - validDTD.py \ - validSchemas.py \ - validRNG.py - -XMLS = \ - tst.xml \ - valid.xml \ - invalid.xml \ - test.dtd - -EXTRA_DIST = $(PYTESTS) $(XMLS) -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu python/tests/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu python/tests/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-libtool - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: install-data-local - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - distclean distclean-generic distclean-libtool distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-data-local install-exec \ - install-exec-am install-info install-info-am install-man \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - uninstall uninstall-am uninstall-info-am - - -@WITH_PYTHON_TRUE@tests: $(PYTESTS) -@WITH_PYTHON_TRUE@ @echo "## running Python regression tests" -@WITH_PYTHON_TRUE@ -@(PYTHONPATH="..:../.libs:$(srcdir)/..:$$PYTHONPATH" ; \ -@WITH_PYTHON_TRUE@ export PYTHONPATH; \ -@WITH_PYTHON_TRUE@ LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \ -@WITH_PYTHON_TRUE@ export LD_LIBRARY_PATH; \ -@WITH_PYTHON_TRUE@ for test in $(PYTESTS) ; \ -@WITH_PYTHON_TRUE@ do log=`$(PYTHON) $(srcdir)/$$test` ; \ -@WITH_PYTHON_TRUE@ if [ "`echo $$log | grep OK`" = "" ] ; then \ -@WITH_PYTHON_TRUE@ echo "-- $$test" ; echo "$$log" ; fi ; done) -@WITH_PYTHON_FALSE@tests: - -clean: - rm -f *.pyc core - -install-data-local: - $(mkinstalldirs) $(DESTDIR)$(EXAMPLE_DIR) - -(for test in $(PYTESTS) $(XMLS); \ - do @INSTALL@ -m 0644 $(srcdir)/$$test $(DESTDIR)$(EXAMPLE_DIR) ; done) -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/tools/docbook/libxml2/python/tests/attribs.py b/src/tools/docbook/libxml2/python/tests/attribs.py deleted file mode 100755 index 9331a272b3..0000000000 --- a/src/tools/docbook/libxml2/python/tests/attribs.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -# -# Testing XML document serialization -# -doc = libxml2.parseDoc( -""" - - - -]> - -""") -elem = doc.getRootElement() -attr = elem.hasNsProp('attr', 'http://abc.org') -if attr == None or attr.serialize()[:-1] != """""": - print "Failed to find defaulted attribute abc:attr" - sys.exit(1) - -doc.freeDoc() - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/build.py b/src/tools/docbook/libxml2/python/tests/build.py deleted file mode 100755 index bfc776caa6..0000000000 --- a/src/tools/docbook/libxml2/python/tests/build.py +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/python -u -import libxml2 -import sys - -# Memory debug specific -libxml2.debugMemory(1) - -doc = libxml2.newDoc("1.0") -comment = doc.newDocComment("This is a generated document") -doc.addChild(comment) -pi = libxml2.newPI("test", "PI content") -doc.addChild(pi) -root = doc.newChild(None, "doc", None) -ns = root.newNs("http://example.com/doc", "my") -root.setNs(ns) -elem = root.newChild(None, "foo", "bar") -elem.setBase("http://example.com/imgs") -elem.setProp("img", "image.gif") -doc.saveFile("tmp.xml") -doc.freeDoc() - -doc = libxml2.parseFile("tmp.xml") -comment = doc.children -if comment.type != "comment" or \ - comment.content != "This is a generated document": - print "error rereading comment" - sys.exit(1) -pi = comment.next -if pi.type != "pi" or pi.name != "test" or pi.content != "PI content": - print "error rereading PI" - sys.exit(1) -root = pi.next -if root.name != "doc": - print "error rereading root" - sys.exit(1) -ns = root.ns() -if ns.name != "my" or ns.content != "http://example.com/doc": - print "error rereading namespace" - sys.exit(1) -elem = root.children -if elem.name != "foo": - print "error rereading elem" - sys.exit(1) -if elem.getBase(None) != "http://example.com/imgs": - print "error rereading base" - sys.exit(1) -if elem.prop("img") != "image.gif": - print "error rereading property" - sys.exit(1) - -doc.freeDoc() - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/ctxterror.py b/src/tools/docbook/libxml2/python/tests/ctxterror.py deleted file mode 100755 index f2a897a160..0000000000 --- a/src/tools/docbook/libxml2/python/tests/ctxterror.py +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/python -u -# -# This test exercise the redirection of error messages with a -# functions defined in Python. -# -import sys -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -expect="""--> (3) xmlns: URI foo is not absolute ---> (4) Opening and ending tag mismatch: x line 0 and y -""" - -err="" -def callback(arg,msg,severity,reserved): - global err - err = err + "%s (%d) %s" % (arg,severity,msg) - -s = """""" - -parserCtxt = libxml2.createPushParser(None,"",0,"test.xml") -parserCtxt.setErrorHandler(callback, "-->") -if parserCtxt.getErrorHandler() != (callback,"-->"): - print "getErrorHandler failed" - sys.exit(1) -parserCtxt.parseChunk(s,len(s),1) -doc = parserCtxt.doc() -doc.freeDoc() -parserCtxt = None - -if err != expect: - print "error" - print "received %s" %(err) - print "expected %s" %(expect) - sys.exit(1) - -i = 10000 -while i > 0: - parserCtxt = libxml2.createPushParser(None,"",0,"test.xml") - parserCtxt.setErrorHandler(callback, "-->") - parserCtxt.parseChunk(s,len(s),1) - doc = parserCtxt.doc() - doc.freeDoc() - parserCtxt = None - err = "" - i = i - 1 - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/cutnpaste.py b/src/tools/docbook/libxml2/python/tests/cutnpaste.py deleted file mode 100755 index 0f9665a92c..0000000000 --- a/src/tools/docbook/libxml2/python/tests/cutnpaste.py +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -# -# Testing XML document serialization -# -source = libxml2.parseDoc(""" - - - - - -""") - -target = libxml2.parseDoc(""" -""") - -fragment = source.xpathEval("//*[name()='fragment']")[0] -dest = target.getRootElement() - -# do a cut and paste operation -fragment.unlinkNode() -dest.addChild(fragment) -# do the namespace fixup -dest.reconciliateNs(target) - -# The source tree can be freed at that point -source.freeDoc() - -# check the resulting tree -str = dest.serialize() -if str != """""": - print "reconciliateNs() failed" - sys.exit(1) -target.freeDoc() - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/dtdvalid.py b/src/tools/docbook/libxml2/python/tests/dtdvalid.py deleted file mode 100755 index 2011f2c679..0000000000 --- a/src/tools/docbook/libxml2/python/tests/dtdvalid.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/python -u -import libxml2 -import sys - -# Memory debug specific -libxml2.debugMemory(1) - -dtd="""""" -instance=""" -""" - -dtd = libxml2.parseDTD(None, 'test.dtd') -ctxt = libxml2.newValidCtxt() -doc = libxml2.parseDoc(instance) -ret = doc.validateDtd(ctxt, dtd) -if ret != 1: - print "error doing DTD validation" - sys.exit(1) - -doc.freeDoc() -dtd.freeDtd() -del dtd -del ctxt - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() - diff --git a/src/tools/docbook/libxml2/python/tests/error.py b/src/tools/docbook/libxml2/python/tests/error.py deleted file mode 100755 index da6d0c1fa0..0000000000 --- a/src/tools/docbook/libxml2/python/tests/error.py +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/python -u -# -# This test exercise the redirection of error messages with a -# functions defined in Python. -# -import sys -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -expect='--> I/O --> warning : --> failed to load external entity "missing.xml"\n' -err="" -def callback(ctx, str): - global err - - err = err + "%s %s" % (ctx, str) - -got_exc = 0 -libxml2.registerErrorHandler(callback, "-->") -try: - doc = libxml2.parseFile("missing.xml") -except libxml2.parserError: - got_exc = 1 - -if got_exc == 0: - print "Failed to get a parser exception" - sys.exit(1) - -if err != expect: - print "error" - print "received %s" %(err) - print "expected %s" %(expect) - sys.exit(1) - -i = 10000 -while i > 0: - try: - doc = libxml2.parseFile("missing.xml") - except libxml2.parserError: - got_exc = 1 - err = "" - i = i - 1 - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/inbuf.py b/src/tools/docbook/libxml2/python/tests/inbuf.py deleted file mode 100755 index a7cc7a6176..0000000000 --- a/src/tools/docbook/libxml2/python/tests/inbuf.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 -import StringIO - -# Memory debug specific -libxml2.debugMemory(1) - -i = 0 -while i < 5000: - f = StringIO.StringIO("foobar") - buf = libxml2.inputBuffer(f) - i = i + 1 - -del f -del buf - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() - diff --git a/src/tools/docbook/libxml2/python/tests/indexes.py b/src/tools/docbook/libxml2/python/tests/indexes.py deleted file mode 100755 index 8d7a7fc870..0000000000 --- a/src/tools/docbook/libxml2/python/tests/indexes.py +++ /dev/null @@ -1,113 +0,0 @@ -#!/usr/bin/python -u -# -*- coding: ISO-8859-1 -*- -import sys -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -ctxt = None - -class callback: - def __init__(self, startd, starte, ende, delta, endd): - self.startd = startd - self.starte = starte - self.ende = ende - self.endd = endd - self.delta = delta - self.count = 0 - - def startDocument(self): - global ctxt - if ctxt.byteConsumed() != self.startd: - print "document start at wrong index: %d expecting %d\n" % ( - ctxt.byteConsumed(), self.startd) - sys.exit(1) - - def endDocument(self): - global ctxt - expect = self.ende + self.delta * (self.count - 1) + self.endd - if ctxt.byteConsumed() != expect: - print "document end at wrong index: %d expecting %d\n" % ( - ctxt.byteConsumed(), expect) - sys.exit(1) - - def startElement(self, tag, attrs): - global ctxt - if tag == "bar1": - expect = self.starte + self.delta * self.count - if ctxt.byteConsumed() != expect: - print "element start at wrong index: %d expecting %d\n" % ( - ctxt.byteConsumed(), expect) - sys.exit(1) - - - def endElement(self, tag): - global ctxt - if tag == "bar1": - expect = self.ende + self.delta * self.count - if ctxt.byteConsumed() != expect: - print "element end at wrong index: %d expecting %d\n" % ( - ctxt.byteConsumed(), expect) - sys.exit(1) - self.count = self.count + 1 - - def characters(self, data): - pass - -# -# First run a pure UTF-8 test -# -handler = callback(0, 13, 27, 198, 183) -ctxt = libxml2.createPushParser(handler, "\n", 6, "test.xml") -chunk = """ chars1 - chars2 - chars3 - chars4 - chars5 - <s6 - chars7 - &8 - chars9 -""" -i = 0 -while i < 10000: - ctxt.parseChunk(chunk, len(chunk), 0) - i = i + 1 -chunk = "" -ctxt.parseChunk(chunk, len(chunk), 1) -ctxt=None - -# -# Then run a test relying on ISO-Latin-1 -# -handler = callback(43, 57, 71, 198, 183) -chunk=""" - -""" -ctxt = libxml2.createPushParser(handler, chunk, len(chunk), "test.xml") -chunk = """ chars1 - chars2 - chars3 - chàrs4 - chars5 - <s6 - chars7 - &8 - très 9 -""" -i = 0 -while i < 10000: - ctxt.parseChunk(chunk, len(chunk), 0) - i = i + 1 -chunk = "" -ctxt.parseChunk(chunk, len(chunk), 1) -ctxt=None - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/invalid.xml b/src/tools/docbook/libxml2/python/tests/invalid.xml deleted file mode 100644 index 7c9b27e442..0000000000 --- a/src/tools/docbook/libxml2/python/tests/invalid.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - -]> - diff --git a/src/tools/docbook/libxml2/python/tests/nsdel.py b/src/tools/docbook/libxml2/python/tests/nsdel.py deleted file mode 100755 index c06ded3534..0000000000 --- a/src/tools/docbook/libxml2/python/tests/nsdel.py +++ /dev/null @@ -1,62 +0,0 @@ -#!/usr/bin/python -u -# -# this test exercise the XPath basic engine, parser, etc, and -# allows to detect memory leaks -# -import sys -import libxml2 - -instance=""" -""" - -def namespaceDefs(node): - n = node.nsDefs() - while n: - yield n - n = n.next - -def checkNamespaceDefs(node, count): - nsList = list(namespaceDefs(node)) - #print nsList - if len(nsList) != count : - raise Exception, "Error: saw %d namespace declarations. Expected %d" % (len(nsList), count) - -# Memory debug specific -libxml2.debugMemory(1) - -# Remove single namespace -doc = libxml2.parseDoc(instance) -node = doc.getRootElement() -checkNamespaceDefs(node, 3) -ns = node.removeNsDef('urn:bar') -checkNamespaceDefs(node, 2) -ns.freeNsList() -doc.freeDoc() - -# Remove all namespaces -doc = libxml2.parseDoc(instance) -node = doc.getRootElement() -checkNamespaceDefs(node, 3) -ns = node.removeNsDef(None) -checkNamespaceDefs(node, 0) -ns.freeNsList() -doc.freeDoc() - -# Remove a namespace refered to by a child -doc = libxml2.newDoc("1.0") -root = doc.newChild(None, "root", None) -namespace = root.newNs("http://example.com/sample", "s") -child = root.newChild(namespace, "child", None) -root.removeNsDef("http://example.com/sample") -doc.reconciliateNs(root) -namespace.freeNsList() -doc.serialize() # This should not segfault -doc.freeDoc() - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/outbuf.py b/src/tools/docbook/libxml2/python/tests/outbuf.py deleted file mode 100755 index 09cd9b5e57..0000000000 --- a/src/tools/docbook/libxml2/python/tests/outbuf.py +++ /dev/null @@ -1,105 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 -import StringIO - -def testSimpleBufferWrites(): - f = StringIO.StringIO() - buf = libxml2.createOutputBuffer(f, "ISO-8859-1") - buf.write(3, "foo") - buf.writeString("bar") - buf.close() - - if f.getvalue() != "foobar": - print "Failed to save to StringIO" - sys.exit(1) - -def testSaveDocToBuffer(): - """ - Regression test for bug #154294. - """ - input = 'Hello' - expected = '''\ - -Hello -''' - f = StringIO.StringIO() - buf = libxml2.createOutputBuffer(f, 'UTF-8') - doc = libxml2.parseDoc(input) - doc.saveFileTo(buf, 'UTF-8') - doc.freeDoc() - if f.getvalue() != expected: - print 'xmlDoc.saveFileTo() call failed.' - print ' got: %s' % repr(f.getvalue()) - print 'expected: %s' % repr(expected) - sys.exit(1) - -def testSaveFormattedDocToBuffer(): - input = 'Some text' - # The formatted and non-formatted versions of the output. - expected = ('''\ - -Some text -''', '''\ - - - Some text - - -''') - doc = libxml2.parseDoc(input) - for i in (0, 1): - f = StringIO.StringIO() - buf = libxml2.createOutputBuffer(f, 'UTF-8') - doc.saveFormatFileTo(buf, 'UTF-8', i) - if f.getvalue() != expected[i]: - print 'xmlDoc.saveFormatFileTo() call failed.' - print ' got: %s' % repr(f.getvalue()) - print 'expected: %s' % repr(expected[i]) - sys.exit(1) - doc.freeDoc() - -def testSaveIntoOutputBuffer(): - """ - Similar to the previous two tests, except this time we invoke the save - methods on the output buffer object and pass in an XML node object. - """ - input = 'Hello' - expected = '''\ - -Hello -''' - f = StringIO.StringIO() - doc = libxml2.parseDoc(input) - buf = libxml2.createOutputBuffer(f, 'UTF-8') - buf.saveFileTo(doc, 'UTF-8') - if f.getvalue() != expected: - print 'outputBuffer.saveFileTo() call failed.' - print ' got: %s' % repr(f.getvalue()) - print 'expected: %s' % repr(expected) - sys.exit(1) - f = StringIO.StringIO() - buf = libxml2.createOutputBuffer(f, 'UTF-8') - buf.saveFormatFileTo(doc, 'UTF-8', 1) - if f.getvalue() != expected: - print 'outputBuffer.saveFormatFileTo() call failed.' - print ' got: %s' % repr(f.getvalue()) - print 'expected: %s' % repr(expected) - sys.exit(1) - doc.freeDoc() - -if __name__ == '__main__': - # Memory debug specific - libxml2.debugMemory(1) - - testSimpleBufferWrites() - testSaveDocToBuffer() - testSaveFormattedDocToBuffer() - testSaveIntoOutputBuffer() - - libxml2.cleanupParser() - if libxml2.debugMemory(1) == 0: - print "OK" - else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/push.py b/src/tools/docbook/libxml2/python/tests/push.py deleted file mode 100755 index 5b60a1649d..0000000000 --- a/src/tools/docbook/libxml2/python/tests/push.py +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -ctxt = libxml2.createPushParser(None, "", 2, 1) -doc = ctxt.doc() -ctxt=None -if doc.name != "test.xml": - print "document name error" - sys.exit(1) -root = doc.children -if root.name != "foo": - print "root element name error" - sys.exit(1) -doc.freeDoc() -i = 10000 -while i > 0: - ctxt = libxml2.createPushParser(None, "", 2, 1) - doc = ctxt.doc() - doc.freeDoc() - i = i -1 -ctxt=None - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/pushSAX.py b/src/tools/docbook/libxml2/python/tests/pushSAX.py deleted file mode 100755 index 1c1e786617..0000000000 --- a/src/tools/docbook/libxml2/python/tests/pushSAX.py +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -log = "" - -class callback: - def startDocument(self): - global log - log = log + "startDocument:" - - def endDocument(self): - global log - log = log + "endDocument:" - - def startElement(self, tag, attrs): - global log - log = log + "startElement %s %s:" % (tag, attrs) - - def endElement(self, tag): - global log - log = log + "endElement %s:" % (tag) - - def characters(self, data): - global log - log = log + "characters: %s:" % (data) - - def warning(self, msg): - global log - log = log + "warning: %s:" % (msg) - - def error(self, msg): - global log - log = log + "error: %s:" % (msg) - - def fatalError(self, msg): - global log - log = log + "fatalError: %s:" % (msg) - -handler = callback() - -ctxt = libxml2.createPushParser(handler, "content of c""") -input = libxml2.inputBuffer(f) -reader = input.newTextReader("test1") -ret = reader.Read() -if ret != 1: - print "test1: Error reading to first element" - sys.exit(1) -if reader.Name() != "a" or reader.IsEmptyElement() != 0 or \ - reader.NodeType() != 1 or reader.HasAttributes() != 0: - print "test1: Error reading the first element" - sys.exit(1) -ret = reader.Read() -if ret != 1: - print "test1: Error reading to second element" - sys.exit(1) -if reader.Name() != "b" or reader.IsEmptyElement() != 1 or \ - reader.NodeType() != 1 or reader.HasAttributes() != 1: - print "test1: Error reading the second element" - sys.exit(1) -ret = reader.Read() -if ret != 1: - print "test1: Error reading to third element" - sys.exit(1) -if reader.Name() != "c" or reader.IsEmptyElement() != 0 or \ - reader.NodeType() != 1 or reader.HasAttributes() != 0: - print "test1: Error reading the third element" - sys.exit(1) -ret = reader.Read() -if ret != 1: - print "test1: Error reading to text node" - sys.exit(1) -if reader.Name() != "#text" or reader.IsEmptyElement() != 0 or \ - reader.NodeType() != 3 or reader.HasAttributes() != 0 or \ - reader.Value() != "content of c": - print "test1: Error reading the text node" - sys.exit(1) -ret = reader.Read() -if ret != 1: - print "test1: Error reading to end of third element" - sys.exit(1) -if reader.Name() != "c" or reader.IsEmptyElement() != 0 or \ - reader.NodeType() != 15 or reader.HasAttributes() != 0: - print "test1: Error reading the end of third element" - sys.exit(1) -ret = reader.Read() -if ret != 1: - print "test1: Error reading to end of first element" - sys.exit(1) -if reader.Name() != "a" or reader.IsEmptyElement() != 0 or \ - reader.NodeType() != 15 or reader.HasAttributes() != 0: - print "test1: Error reading the end of first element" - sys.exit(1) -ret = reader.Read() -if ret != 0: - print "test1: Error reading to end of document" - sys.exit(1) - -# -# example from the XmlTextReader docs -# -f = StringIO.StringIO("""""") -input = libxml2.inputBuffer(f) -reader = input.newTextReader("test2") - -ret = reader.Read() -if ret != 1: - print "Error reading test element" - sys.exit(1) -if reader.GetAttributeNo(0) != "urn:datatypes" or \ - reader.GetAttributeNo(1) != "int" or \ - reader.GetAttributeNs("type", "urn:datatypes") != "int" or \ - reader.GetAttribute("dt:type") != "int": - print "error reading test attributes" - sys.exit(1) - -# -# example from the XmlTextReader docs -# -f = StringIO.StringIO(""" - - - -""") -input = libxml2.inputBuffer(f) -reader = input.newTextReader("test3") - -ret = reader.Read() -while ret == 1: - if reader.Name() == "ref": - if reader.LookupNamespace("a") != "urn:456": - print "error resolving namespace prefix" - sys.exit(1) - break - ret = reader.Read() -if ret != 1: - print "Error finding the ref element" - sys.exit(1) - -# -# Home made example for the various attribute access functions -# -f = StringIO.StringIO("""""") -input = libxml2.inputBuffer(f) -reader = input.newTextReader("test4") -ret = reader.Read() -if ret != 1: - print "Error reading the testattr element" - sys.exit(1) -# -# Attribute exploration by index -# -if reader.MoveToAttributeNo(0) != 1: - print "Failed moveToAttribute(0)" - sys.exit(1) -if reader.Value() != "urn:1": - print "Failed to read attribute(0)" - sys.exit(1) -if reader.Name() != "xmlns": - print "Failed to read attribute(0) name" - sys.exit(1) -if reader.MoveToAttributeNo(1) != 1: - print "Failed moveToAttribute(1)" - sys.exit(1) -if reader.Value() != "urn:2": - print "Failed to read attribute(1)" - sys.exit(1) -if reader.Name() != "xmlns:a": - print "Failed to read attribute(1) name" - sys.exit(1) -if reader.MoveToAttributeNo(2) != 1: - print "Failed moveToAttribute(2)" - sys.exit(1) -if reader.Value() != "b": - print "Failed to read attribute(2)" - sys.exit(1) -if reader.Name() != "b": - print "Failed to read attribute(2) name" - sys.exit(1) -if reader.MoveToAttributeNo(3) != 1: - print "Failed moveToAttribute(3)" - sys.exit(1) -if reader.Value() != "a:b": - print "Failed to read attribute(3)" - sys.exit(1) -if reader.Name() != "a:b": - print "Failed to read attribute(3) name" - sys.exit(1) -# -# Attribute exploration by name -# -if reader.MoveToAttribute("xmlns") != 1: - print "Failed moveToAttribute('xmlns')" - sys.exit(1) -if reader.Value() != "urn:1": - print "Failed to read attribute('xmlns')" - sys.exit(1) -if reader.MoveToAttribute("xmlns:a") != 1: - print "Failed moveToAttribute('xmlns')" - sys.exit(1) -if reader.Value() != "urn:2": - print "Failed to read attribute('xmlns:a')" - sys.exit(1) -if reader.MoveToAttribute("b") != 1: - print "Failed moveToAttribute('b')" - sys.exit(1) -if reader.Value() != "b": - print "Failed to read attribute('b')" - sys.exit(1) -if reader.MoveToAttribute("a:b") != 1: - print "Failed moveToAttribute('a:b')" - sys.exit(1) -if reader.Value() != "a:b": - print "Failed to read attribute('a:b')" - sys.exit(1) -if reader.MoveToAttributeNs("b", "urn:2") != 1: - print "Failed moveToAttribute('b', 'urn:2')" - sys.exit(1) -if reader.Value() != "a:b": - print "Failed to read attribute('b', 'urn:2')" - sys.exit(1) -# -# Go back and read in sequence -# -if reader.MoveToElement() != 1: - print "Failed to move back to element" - sys.exit(1) -if reader.MoveToFirstAttribute() != 1: - print "Failed to move to first attribute" - sys.exit(1) -if reader.Value() != "urn:1": - print "Failed to read attribute(0)" - sys.exit(1) -if reader.Name() != "xmlns": - print "Failed to read attribute(0) name" - sys.exit(1) -if reader.MoveToNextAttribute() != 1: - print "Failed to move to next attribute" - sys.exit(1) -if reader.Value() != "urn:2": - print "Failed to read attribute(1)" - sys.exit(1) -if reader.Name() != "xmlns:a": - print "Failed to read attribute(1) name" - sys.exit(1) -if reader.MoveToNextAttribute() != 1: - print "Failed to move to next attribute" - sys.exit(1) -if reader.Value() != "b": - print "Failed to read attribute(2)" - sys.exit(1) -if reader.Name() != "b": - print "Failed to read attribute(2) name" - sys.exit(1) -if reader.MoveToNextAttribute() != 1: - print "Failed to move to next attribute" - sys.exit(1) -if reader.Value() != "a:b": - print "Failed to read attribute(3)" - sys.exit(1) -if reader.Name() != "a:b": - print "Failed to read attribute(3) name" - sys.exit(1) -if reader.MoveToNextAttribute() != 0: - print "Failed to detect last attribute" - sys.exit(1) - - -# -# a couple of tests for namespace nodes -# -f = StringIO.StringIO("""""") -input = libxml2.inputBuffer(f) -reader = input.newTextReader("test6") -ret = reader.Read() -if ret != 1: - print "test6: failed to Read()" - sys.exit(1) -ret = reader.MoveToFirstAttribute() -if ret != 1: - print "test6: failed to MoveToFirstAttribute()" - sys.exit(1) -if reader.NamespaceUri() != "http://www.w3.org/2000/xmlns/" or \ - reader.LocalName() != "xmlns" or reader.Name() != "xmlns" or \ - reader.Value() != "http://example.com/foo" or reader.NodeType() != 2: - print "test6: failed to read the namespace node" - sys.exit(1) - -f = StringIO.StringIO("""""") -input = libxml2.inputBuffer(f) -reader = input.newTextReader("test7") -ret = reader.Read() -if ret != 1: - print "test7: failed to Read()" - sys.exit(1) -ret = reader.MoveToFirstAttribute() -if ret != 1: - print "test7: failed to MoveToFirstAttribute()" - sys.exit(1) -if reader.NamespaceUri() != "http://www.w3.org/2000/xmlns/" or \ - reader.LocalName() != "prefix" or reader.Name() != "xmlns:prefix" or \ - reader.Value() != "http://example.com/foo" or reader.NodeType() != 2: - print "test7: failed to read the namespace node" - sys.exit(1) - -# -# Test for a limit case: -# -f = StringIO.StringIO("""""") -input = libxml2.inputBuffer(f) -reader = input.newTextReader("test8") -ret = reader.Read() -if ret != 1: - print "test8: failed to read the node" - sys.exit(1) -if reader.Name() != "a" or reader.IsEmptyElement() != 1: - print "test8: failed to analyze the node" - sys.exit(1) -ret = reader.Read() -if ret != 0: - print "test8: failed to detect the EOF" - sys.exit(1) - -# -# Another test provided by Stéphane Bidoul and checked with C# -# -def tst_reader(s): - f = StringIO.StringIO(s) - input = libxml2.inputBuffer(f) - reader = input.newTextReader("tst") - res = "" - while reader.Read(): - res=res + "%s (%s) [%s] %d %d\n" % (reader.NodeType(),reader.Name(), - reader.Value(), reader.IsEmptyElement(), - reader.Depth()) - if reader.NodeType() == 1: # Element - while reader.MoveToNextAttribute(): - res = res + "-- %s (%s) [%s] %d %d\n" % (reader.NodeType(), - reader.Name(),reader.Value(), - reader.IsEmptyElement(), reader.Depth()) - return res - -doc="""content of c""" -expect="""1 (a) [None] 0 0 -1 (b) [None] 1 1 --- 2 (b1) [b1] 0 2 -1 (c) [None] 0 1 -3 (#text) [content of c] 0 2 -15 (c) [None] 0 1 -15 (a) [None] 0 0 -""" -res = tst_reader(doc) -if res != expect: - print "test5 failed" - print res - sys.exit(1) - -doc="""""" -expect="""1 (test) [None] 0 0 -1 (b) [None] 1 1 -1 (c) [None] 1 1 -15 (test) [None] 0 0 -""" -res = tst_reader(doc) -if res != expect: - print "test9 failed" - print res - sys.exit(1) - -doc="""bbbccc""" -expect="""1 (a) [None] 0 0 -1 (b) [None] 0 1 -3 (#text) [bbb] 0 2 -15 (b) [None] 0 1 -1 (c) [None] 0 1 -3 (#text) [ccc] 0 2 -15 (c) [None] 0 1 -15 (a) [None] 0 0 -""" -res = tst_reader(doc) -if res != expect: - print "test10 failed" - print res - sys.exit(1) - -doc="""""" -expect="""1 (test) [None] 1 0 --- 2 (a) [a] 0 1 -""" -res = tst_reader(doc) -if res != expect: - print "test11 failed" - print res - sys.exit(1) - -doc="""aaa""" -expect="""1 (test) [None] 0 0 -1 (a) [None] 0 1 -3 (#text) [aaa] 0 2 -15 (a) [None] 0 1 -1 (b) [None] 1 1 -15 (test) [None] 0 0 -""" -res = tst_reader(doc) -if res != expect: - print "test12 failed" - print res - sys.exit(1) - -doc="""

    """ -expect="""1 (test) [None] 0 0 -1 (p) [None] 0 1 -15 (p) [None] 0 1 -15 (test) [None] 0 0 -""" -res = tst_reader(doc) -if res != expect: - print "test13 failed" - print res - sys.exit(1) - -doc="""

    """ -expect="""1 (p) [None] 0 0 -15 (p) [None] 0 0 -""" -res = tst_reader(doc) -if res != expect: - print "test14 failed" - print res - sys.exit(1) - -# -# test from bug #108801 -# -doc=""" - - -
    -xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -
    -""" -expect="""10 (article) [None] 0 0 -1 (article) [None] 0 0 -3 (#text) [ -xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -] 0 1 -15 (article) [None] 0 0 -""" -res = tst_reader(doc) -if res != expect: - print "test15 failed" - print res - sys.exit(1) - -# -# cleanup for memory allocation counting -# -del f -del input -del reader - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/reader2.py b/src/tools/docbook/libxml2/python/tests/reader2.py deleted file mode 100755 index ea890ecd79..0000000000 --- a/src/tools/docbook/libxml2/python/tests/reader2.py +++ /dev/null @@ -1,256 +0,0 @@ -#!/usr/bin/python -u -# -# this tests the DTD validation with the XmlTextReader interface -# -import sys -import glob -import string -import StringIO -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -err="" -expect="""../../test/valid/rss.xml:177: element rss: validity error : Element rss does not carry attribute version - - ^ -../../test/valid/xlink.xml:450: element termdef: validity error : ID dt-arc already defined -

    An - - - -xxx"> -]> - - &x; - bbb - -""" -expect="""10,test -1,test -14,#text -1,x -1,c -3,#text -15,c -15,x -14,#text -1,b -3,#text -15,b -14,#text -15,test -""" -res="" -err="" - -input = libxml2.inputBuffer(StringIO.StringIO(s)) -reader = input.newTextReader("test2") -reader.SetParserProp(libxml2.PARSER_LOADDTD,1) -reader.SetParserProp(libxml2.PARSER_DEFAULTATTRS,1) -reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES,1) -reader.SetParserProp(libxml2.PARSER_VALIDATE,1) -while reader.Read() == 1: - res = res + "%s,%s\n" % (reader.NodeType(),reader.Name()) - -if res != expect: - print "test2 failed: unexpected output" - print res - sys.exit(1) -if err != "": - print "test2 failed: validation error found" - print err - sys.exit(1) - -# -# Another test for external entity parsing and validation -# - -s = """ - - -]> - - &e; - -""" -tst_ent = """hello""" -expect="""10 test -1 test -14 #text -1 x -3 #text -15 x -14 #text -15 test -""" -res="" - -def myResolver(URL, ID, ctxt): - if URL == "tst.ent": - return(StringIO.StringIO(tst_ent)) - return None - -libxml2.setEntityLoader(myResolver) - -input = libxml2.inputBuffer(StringIO.StringIO(s)) -reader = input.newTextReader("test3") -reader.SetParserProp(libxml2.PARSER_LOADDTD,1) -reader.SetParserProp(libxml2.PARSER_DEFAULTATTRS,1) -reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES,1) -reader.SetParserProp(libxml2.PARSER_VALIDATE,1) -while reader.Read() == 1: - res = res + "%s %s\n" % (reader.NodeType(),reader.Name()) - -if res != expect: - print "test3 failed: unexpected output" - print res - sys.exit(1) -if err != "": - print "test3 failed: validation error found" - print err - sys.exit(1) - -# -# Another test for recursive entity parsing, validation, and replacement of -# entities, making sure the entity ref node doesn't show up in that case -# - -s = """ - - -&y;"> -yyy"> -]> - - &x; - &x; -""" -expect="""10 test 0 -1 test 0 -14 #text 1 -1 x 1 -1 y 2 -3 #text 3 -15 y 2 -15 x 1 -14 #text 1 -1 x 1 -1 y 2 -3 #text 3 -15 y 2 -15 x 1 -14 #text 1 -15 test 0 -""" -res="" -err="" - -input = libxml2.inputBuffer(StringIO.StringIO(s)) -reader = input.newTextReader("test4") -reader.SetParserProp(libxml2.PARSER_LOADDTD,1) -reader.SetParserProp(libxml2.PARSER_DEFAULTATTRS,1) -reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES,1) -reader.SetParserProp(libxml2.PARSER_VALIDATE,1) -while reader.Read() == 1: - res = res + "%s %s %d\n" % (reader.NodeType(),reader.Name(),reader.Depth()) - -if res != expect: - print "test4 failed: unexpected output" - print res - sys.exit(1) -if err != "": - print "test4 failed: validation error found" - print err - sys.exit(1) - -# -# The same test but without entity substitution this time -# - -s = """ - - -&y;"> -yyy"> -]> - - &x; - &x; -""" -expect="""10 test 0 -1 test 0 -14 #text 1 -5 x 1 -14 #text 1 -5 x 1 -14 #text 1 -15 test 0 -""" -res="" -err="" - -input = libxml2.inputBuffer(StringIO.StringIO(s)) -reader = input.newTextReader("test5") -reader.SetParserProp(libxml2.PARSER_VALIDATE,1) -while reader.Read() == 1: - res = res + "%s %s %d\n" % (reader.NodeType(),reader.Name(),reader.Depth()) - -if res != expect: - print "test5 failed: unexpected output" - print res -if err != "": - print "test5 failed: validation error found" - print err - -# -# cleanup -# -del input -del reader - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/reader3.py b/src/tools/docbook/libxml2/python/tests/reader3.py deleted file mode 100755 index 2458c89e19..0000000000 --- a/src/tools/docbook/libxml2/python/tests/reader3.py +++ /dev/null @@ -1,155 +0,0 @@ -#!/usr/bin/python -u -# -# this tests the entities substitutions with the XmlTextReader interface -# -import sys -import StringIO -import libxml2 - -docstr=""" -test

    "> -]> -&tst;""" - -# Memory debug specific -libxml2.debugMemory(1) - -# -# First test, normal don't substitute entities. -# -f = StringIO.StringIO(docstr) -input = libxml2.inputBuffer(f) -reader = input.newTextReader("test_noent") -ret = reader.Read() -if ret != 1: - print "Error reading to root" - sys.exit(1) -if reader.Name() == "doc" or reader.NodeType() == 10: - ret = reader.Read() -if ret != 1: - print "Error reading to root" - sys.exit(1) -if reader.Name() != "doc" or reader.NodeType() != 1: - print "test_normal: Error reading the root element" - sys.exit(1) -ret = reader.Read() -if ret != 1: - print "test_normal: Error reading to the entity" - sys.exit(1) -if reader.Name() != "tst" or reader.NodeType() != 5: - print "test_normal: Error reading the entity" - sys.exit(1) -ret = reader.Read() -if ret != 1: - print "test_normal: Error reading to the end of root" - sys.exit(1) -if reader.Name() != "doc" or reader.NodeType() != 15: - print "test_normal: Error reading the end of the root element" - sys.exit(1) -ret = reader.Read() -if ret != 0: - print "test_normal: Error detecting the end" - sys.exit(1) - -# -# Second test, completely substitute the entities. -# -f = StringIO.StringIO(docstr) -input = libxml2.inputBuffer(f) -reader = input.newTextReader("test_noent") -reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES, 1) -ret = reader.Read() -if ret != 1: - print "Error reading to root" - sys.exit(1) -if reader.Name() == "doc" or reader.NodeType() == 10: - ret = reader.Read() -if ret != 1: - print "Error reading to root" - sys.exit(1) -if reader.Name() != "doc" or reader.NodeType() != 1: - print "test_noent: Error reading the root element" - sys.exit(1) -ret = reader.Read() -if ret != 1: - print "test_noent: Error reading to the entity content" - sys.exit(1) -if reader.Name() != "p" or reader.NodeType() != 1: - print "test_noent: Error reading the p element from entity" - sys.exit(1) -ret = reader.Read() -if ret != 1: - print "test_noent: Error reading to the text node" - sys.exit(1) -if reader.NodeType() != 3 or reader.Value() != "test": - print "test_noent: Error reading the text node" - sys.exit(1) -ret = reader.Read() -if ret != 1: - print "test_noent: Error reading to the end of p element" - sys.exit(1) -if reader.Name() != "p" or reader.NodeType() != 15: - print "test_noent: Error reading the end of the p element" - sys.exit(1) -ret = reader.Read() -if ret != 1: - print "test_noent: Error reading to the end of root" - sys.exit(1) -if reader.Name() != "doc" or reader.NodeType() != 15: - print "test_noent: Error reading the end of the root element" - sys.exit(1) -ret = reader.Read() -if ret != 0: - print "test_noent: Error detecting the end" - sys.exit(1) - -# -# third test, crazy stuff about empty element in external parsed entities -# -s = """ -]> -&simplestruct2.ent; -""" -expect="""10 struct 0 0 -1 struct 0 0 -1 descr 1 1 -15 struct 0 0 -""" -res="" -simplestruct2_ent="""""" - -def myResolver(URL, ID, ctxt): - if URL == "simplestruct2.ent": - return(StringIO.StringIO(simplestruct2_ent)) - return None - -libxml2.setEntityLoader(myResolver) - -input = libxml2.inputBuffer(StringIO.StringIO(s)) -reader = input.newTextReader("test3") -reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES,1) -while reader.Read() == 1: - res = res + "%s %s %d %d\n" % (reader.NodeType(),reader.Name(), - reader.Depth(),reader.IsEmptyElement()) - -if res != expect: - print "test3 failed: unexpected output" - print res - sys.exit(1) - -# -# cleanup -# -del f -del input -del reader - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/reader4.py b/src/tools/docbook/libxml2/python/tests/reader4.py deleted file mode 100755 index 0824929b0f..0000000000 --- a/src/tools/docbook/libxml2/python/tests/reader4.py +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/python -u -# -# this tests the basic APIs of the XmlTextReader interface -# -import libxml2 -import StringIO -import sys - -# Memory debug specific -libxml2.debugMemory(1) - -def tst_reader(s): - f = StringIO.StringIO(s) - input = libxml2.inputBuffer(f) - reader = input.newTextReader("tst") - res = "" - while reader.Read(): - res=res + "%s (%s) [%s] %d\n" % (reader.NodeType(),reader.Name(), - reader.Value(), reader.IsEmptyElement()) - if reader.NodeType() == 1: # Element - while reader.MoveToNextAttribute(): - res = res + "-- %s (%s) [%s]\n" % (reader.NodeType(), - reader.Name(),reader.Value()) - return res - -expect="""1 (test) [None] 0 -1 (b) [None] 1 -1 (c) [None] 1 -15 (test) [None] 0 -""" - -res = tst_reader("""""") - -if res != expect: - print "Did not get the expected error message:" - print res - sys.exit(1) - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/reader5.py b/src/tools/docbook/libxml2/python/tests/reader5.py deleted file mode 100755 index fcbad618b8..0000000000 --- a/src/tools/docbook/libxml2/python/tests/reader5.py +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/python -u -# -# this tests the Expand() API of the xmlTextReader interface -# this extract the Dragon bibliography entries from the XML specification -# -import libxml2 -import StringIO -import sys - -# Memory debug specific -libxml2.debugMemory(1) - -expect="""Aho, Alfred V., -Ravi Sethi, and Jeffrey D. Ullman. -Compilers: Principles, Techniques, and Tools. -Reading: Addison-Wesley, 1986, rpt. corr. 1988.""" - -f = open('../../test/valid/REC-xml-19980210.xml') -input = libxml2.inputBuffer(f) -reader = input.newTextReader("REC") -res="" -while reader.Read(): - while reader.Name() == 'bibl': - node = reader.Expand() # expand the subtree - if node.xpathEval("@id = 'Aho'"): # use XPath on it - res = res + node.serialize() - if reader.Next() != 1: # skip the subtree - break; - -if res != expect: - print "Error: didn't get the expected output" - print "got '%s'" % (res) - print "expected '%s'" % (expect) - - -# -# cleanup -# -del input -del reader - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/reader6.py b/src/tools/docbook/libxml2/python/tests/reader6.py deleted file mode 100755 index 7a34601901..0000000000 --- a/src/tools/docbook/libxml2/python/tests/reader6.py +++ /dev/null @@ -1,123 +0,0 @@ -#!/usr/bin/python -u -# -# this tests the entities substitutions with the XmlTextReader interface -# -import sys -import StringIO -import libxml2 - -schema=""" - - - - - - - - - - - - - - -""" -# Memory debug specific -libxml2.debugMemory(1) - -# -# Parse the Relax NG Schemas -# -rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema)) -rngs = rngp.relaxNGParse() -del rngp - -# -# Parse and validate the correct document -# -docstr=""" - -100 -""" - -f = StringIO.StringIO(docstr) -input = libxml2.inputBuffer(f) -reader = input.newTextReader("correct") -reader.RelaxNGSetSchema(rngs) -ret = reader.Read() -while ret == 1: - ret = reader.Read() - -if ret != 0: - print "Error parsing the document" - sys.exit(1) - -if reader.IsValid() != 1: - print "Document failed to validate" - sys.exit(1) - -# -# Parse and validate the incorrect document -# -docstr=""" - -1000 -""" - -err="" -# RNG errors are not as good as before , TODO -#expect="""RNG validity error: file error line 3 element text -#Type byte doesn't allow value '1000' -#RNG validity error: file error line 3 element text -#Error validating datatype byte -#RNG validity error: file error line 3 element text -#Element item failed to validate content -#""" -expect="""Type byte doesn't allow value '1000' -Error validating datatype byte -Element item failed to validate content -""" - -def callback(ctx, str): - global err - err = err + "%s" % (str) -libxml2.registerErrorHandler(callback, "") - -f = StringIO.StringIO(docstr) -input = libxml2.inputBuffer(f) -reader = input.newTextReader("error") -reader.RelaxNGSetSchema(rngs) -ret = reader.Read() -while ret == 1: - ret = reader.Read() - -if ret != 0: - print "Error parsing the document" - sys.exit(1) - -if reader.IsValid() != 0: - print "Document failed to detect the validation error" - sys.exit(1) - -if err != expect: - print "Did not get the expected error message:" - print err - sys.exit(1) - -# -# cleanup -# -del f -del input -del reader -del rngs -libxml2.relaxNGCleanupTypes() - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/reader7.py b/src/tools/docbook/libxml2/python/tests/reader7.py deleted file mode 100755 index 35a426fd70..0000000000 --- a/src/tools/docbook/libxml2/python/tests/reader7.py +++ /dev/null @@ -1,102 +0,0 @@ -#!/usr/bin/python -u -# -# this tests the entities substitutions with the XmlTextReader interface -# -import sys -import StringIO -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -result = "" -def processNode(reader): - global result - - result = result + "%d %d %s %d\n" % (reader.Depth(), reader.NodeType(), - reader.Name(), reader.IsEmptyElement()) - -# -# Parse a document testing the readerForxxx API -# -docstr=""" - -100 -""" -expect="""0 1 foo 0 -1 14 #text 0 -1 1 label 0 -2 3 #text 0 -1 15 label 0 -1 14 #text 0 -1 1 item 0 -2 3 #text 0 -1 15 item 0 -1 14 #text 0 -0 15 foo 0 -""" -result = "" - -reader = libxml2.readerForDoc(docstr, "test1", None, 0) -ret = reader.Read() -while ret == 1: - processNode(reader) - ret = reader.Read() - -if ret != 0: - print "Error parsing the document test1" - sys.exit(1) - -if result != expect: - print "Unexpected result for test1" - print result - sys.exit(1) - -# -# Reuse the reader for another document testing the ReaderNewxxx API -# -docstr=""" - -1000 -""" -expect="""0 1 foo 0 -1 14 #text 0 -1 1 label 0 -2 3 #text 0 -1 15 label 0 -1 14 #text 0 -1 1 item 0 -2 3 #text 0 -1 15 item 0 -1 14 #text 0 -0 15 foo 0 -""" -result = "" - -reader.NewDoc(docstr, "test2", None, 0) -ret = reader.Read() -while ret == 1: - processNode(reader) - ret = reader.Read() - -if ret != 0: - print "Error parsing the document test2" - sys.exit(1) - -if result != expect: - print "Unexpected result for test2" - print result - sys.exit(1) - -# -# cleanup -# -del reader - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/reader8.py b/src/tools/docbook/libxml2/python/tests/reader8.py deleted file mode 100755 index 53b7f275a0..0000000000 --- a/src/tools/docbook/libxml2/python/tests/reader8.py +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/python -u -# -# this tests the entities substitutions with the XmlTextReader interface -# -import sys -import StringIO -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -# -# Parse a document testing the Close() API -# -docstr=""" - -100 -""" - -reader = libxml2.readerForDoc(docstr, "test1", None, 0) -ret = reader.Read() -ret = reader.Read() -ret = reader.Close() - -if ret != 0: - print "Error closing the document test1" - sys.exit(1) - -del reader - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/readererr.py b/src/tools/docbook/libxml2/python/tests/readererr.py deleted file mode 100644 index ab8eb187c2..0000000000 --- a/src/tools/docbook/libxml2/python/tests/readererr.py +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/python -u -# -# this tests the basic APIs of the XmlTextReader interface -# -import libxml2 -import StringIO -import sys - -# Memory debug specific -libxml2.debugMemory(1) - -expect="""--> (3) test1:1:xmlns: URI foo is not absolute ---> (4) test1:1:Opening and ending tag mismatch: c line 0 and a -""" -err="" -def myErrorHandler(arg,msg,severity,locator): - global err - err = err + "%s (%d) %s:%d:%s" % (arg,severity,locator.BaseURI(),locator.LineNumber(),msg) - -f = StringIO.StringIO("""content of c""") -input = libxml2.inputBuffer(f) -reader = input.newTextReader("test1") -reader.SetErrorHandler(myErrorHandler,"-->") -while reader.Read() == 1: - pass - -if err != expect: - print "error" - print "received %s" %(err) - print "expected %s" %(expect) - sys.exit(1) - -reader.SetErrorHandler(None,None) -if reader.GetErrorHandler() != (None,None): - print "GetErrorHandler failed" - sys.exit(1) - -# -# cleanup for memory allocation counting -# -del f -del input -del reader - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/readernext.py b/src/tools/docbook/libxml2/python/tests/readernext.py deleted file mode 100755 index b01a49df76..0000000000 --- a/src/tools/docbook/libxml2/python/tests/readernext.py +++ /dev/null @@ -1,81 +0,0 @@ -#!/usr/bin/python -u -# -*- coding: ISO-8859-1 -*- -# -# this tests the next API of the XmlTextReader interface -# -import libxml2 -import StringIO -import sys - -# Memory debug specific -libxml2.debugMemory(1) - -f = StringIO.StringIO("""content of d""") -input = libxml2.inputBuffer(f) -reader = input.newTextReader("test_next") -ret = reader.Read() -if ret != 1: - print "test_next: Error reading to first element" - sys.exit(1) -if reader.Name() != "a" or reader.IsEmptyElement() != 0 or \ - reader.NodeType() != 1 or reader.HasAttributes() != 0: - print "test_next: Error reading the first element" - sys.exit(1) -ret = reader.Read() -if ret != 1: - print "test_next: Error reading to second element" - sys.exit(1) -if reader.Name() != "b" or reader.IsEmptyElement() != 0 or \ - reader.NodeType() != 1 or reader.HasAttributes() != 0: - print "test_next: Error reading the second element" - sys.exit(1) -ret = reader.Read() -if ret != 1: - print "test_next: Error reading to third element" - sys.exit(1) -if reader.Name() != "c" or reader.NodeType() != 1 or \ - reader.HasAttributes() != 0: - print "test_next: Error reading the third element" - sys.exit(1) -ret = reader.Read() -if ret != 1: - print "test_next: Error reading to end of third element" - sys.exit(1) -if reader.Name() != "b" or reader.NodeType() != 15: - print "test_next: Error reading to end of second element" - sys.exit(1) -ret = reader.Next() -if ret != 1: - print "test_next: Error moving to third element" - sys.exit(1) -if reader.Name() != "d" or reader.IsEmptyElement() != 0 or \ - reader.NodeType() != 1 or reader.HasAttributes() != 0: - print "test_next: Error reading third element" - sys.exit(1) -ret = reader.Next() -if ret != 1: - print "test_next: Error reading to end of first element" - sys.exit(1) -if reader.Name() != "a" or reader.IsEmptyElement() != 0 or \ - reader.NodeType() != 15 or reader.HasAttributes() != 0: - print "test_next: Error reading the end of first element" - sys.exit(1) -ret = reader.Read() -if ret != 0: - print "test_next: Error reading to end of document" - sys.exit(1) - -# -# cleanup for memory allocation counting -# -del f -del input -del reader - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/regexp.py b/src/tools/docbook/libxml2/python/tests/regexp.py deleted file mode 100644 index 4c05502b6e..0000000000 --- a/src/tools/docbook/libxml2/python/tests/regexp.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/python -u -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -re = libxml2.regexpCompile("a|b") -if re.regexpExec("a") != 1: - print "error checking 'a'" - sys.exit(1) -if re.regexpExec("b") != 1: - print "error checking 'b'" - sys.exit(1) -if re.regexpExec("ab") != 0: - print "error checking 'ab'" - sys.exit(1) -if re.regexpExec("") != 0: - print "error checking 'ab'" - sys.exit(1) -if re.regexpIsDeterminist() != 1: - print "error checking determinism" - sys.exit(1) -del re - - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/relaxng.py b/src/tools/docbook/libxml2/python/tests/relaxng.py deleted file mode 100755 index 2c83635546..0000000000 --- a/src/tools/docbook/libxml2/python/tests/relaxng.py +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/python -u -import libxml2 -import sys - -# Memory debug specific -libxml2.debugMemory(1) - -schema=""" - - A foo element. - - - - - - - -""" -instance=""" -""" - -rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema)) -rngs = rngp.relaxNGParse() -ctxt = rngs.relaxNGNewValidCtxt() -doc = libxml2.parseDoc(instance) -ret = doc.relaxNGValidateDoc(ctxt) -if ret != 0: - print "error doing RelaxNG validation" - sys.exit(1) - -doc.freeDoc() -del rngp -del rngs -del ctxt -libxml2.relaxNGCleanupTypes() - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() - diff --git a/src/tools/docbook/libxml2/python/tests/resolver.py b/src/tools/docbook/libxml2/python/tests/resolver.py deleted file mode 100755 index 9f4a4785f4..0000000000 --- a/src/tools/docbook/libxml2/python/tests/resolver.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 -import StringIO - -# Memory debug specific -libxml2.debugMemory(1) - -def myResolver(URL, ID, ctxt): - return(StringIO.StringIO("")) - -libxml2.setEntityLoader(myResolver) - -doc = libxml2.parseFile("doesnotexist.xml") -root = doc.children -if root.name != "foo": - print "root element name error" - sys.exit(1) -doc.freeDoc() - -i = 0 -while i < 5000: - doc = libxml2.parseFile("doesnotexist.xml") - root = doc.children - if root.name != "foo": - print "root element name error" - sys.exit(1) - doc.freeDoc() - i = i + 1 - - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() - diff --git a/src/tools/docbook/libxml2/python/tests/schema.py b/src/tools/docbook/libxml2/python/tests/schema.py deleted file mode 100755 index bfa8423d1e..0000000000 --- a/src/tools/docbook/libxml2/python/tests/schema.py +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/python -u -import libxml2 -import sys - -# Memory debug specific -libxml2.debugMemory(1) - -schema=""" - - - - - - - - - - - -""" - -instance=""" - - Raymond - G - Bayliss - -""" - -ctxt_parser = libxml2.schemaNewMemParserCtxt(schema, len(schema)) -ctxt_schema = ctxt_parser.schemaParse() -ctxt_valid = ctxt_schema.schemaNewValidCtxt() -doc = libxml2.parseDoc(instance) -ret = doc.schemaValidateDoc(ctxt_valid) -if ret != 0: - print "error doing schema validation" - sys.exit(1) - -doc.freeDoc() -del ctxt_parser -del ctxt_schema -del ctxt_valid -libxml2.schemaCleanupTypes() - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() - diff --git a/src/tools/docbook/libxml2/python/tests/serialize.py b/src/tools/docbook/libxml2/python/tests/serialize.py deleted file mode 100755 index 5b969a9e92..0000000000 --- a/src/tools/docbook/libxml2/python/tests/serialize.py +++ /dev/null @@ -1,150 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -# -# Testing XML document serialization -# -doc = libxml2.parseDoc("""hello""") -str = doc.serialize() -if str != """ -hello -""": - print "error serializing XML document 1" - sys.exit(1) -str = doc.serialize("iso-8859-1") -if str != """ -hello -""": - print "error serializing XML document 2" - sys.exit(1) -str = doc.serialize(format=1) -if str != """ - - hello - -""": - print "error serializing XML document 3" - sys.exit(1) -str = doc.serialize("iso-8859-1", 1) -if str != """ - - hello - -""": - print "error serializing XML document 4" - sys.exit(1) - -# -# Test serializing a subnode -# -root = doc.getRootElement() -str = root.serialize() -if str != """hello""": - print "error serializing XML root 1" - sys.exit(1) -str = root.serialize("iso-8859-1") -if str != """hello""": - print "error serializing XML root 2" - sys.exit(1) -str = root.serialize(format=1) -if str != """ - hello -""": - print "error serializing XML root 3" - sys.exit(1) -str = root.serialize("iso-8859-1", 1) -if str != """ - hello -""": - print "error serializing XML root 4" - sys.exit(1) -doc.freeDoc() - -# -# Testing HTML document serialization -# -doc = libxml2.htmlParseDoc("""Hello

    hello""", None) -str = doc.serialize() -if str != """ -Hello

    hello

    -""": - print "error serializing HTML document 1" - sys.exit(1) -str = doc.serialize("ISO-8859-1") -if str != """ -Hello

    hello

    -""": - print "error serializing HTML document 2" - sys.exit(1) -str = doc.serialize(format=1) -if str != """ - - - -Hello - -

    hello

    - -""": - print "error serializing HTML document 3" - sys.exit(1) -str = doc.serialize("iso-8859-1", 1) -if str != """ - - - -Hello - -

    hello

    - -""": - print "error serializing HTML document 4" - sys.exit(1) - -# -# Test serializing a subnode -# -doc.htmlSetMetaEncoding(None) -root = doc.getRootElement() -str = root.serialize() -if str != """Hello

    hello

    """: - print "error serializing HTML root 1" - sys.exit(1) -str = root.serialize("ISO-8859-1") -if str != """Hello

    hello

    """: - print "error serializing HTML root 2" - sys.exit(1) -str = root.serialize(format=1) -if str != """ - - -Hello - -

    hello

    -""": - print "error serializing HTML root 3" - sys.exit(1) -str = root.serialize("iso-8859-1", 1) -if str != """ - - -Hello - -

    hello

    -""": - print "error serializing HTML root 4" - sys.exit(1) - -doc.freeDoc() - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/sync.py b/src/tools/docbook/libxml2/python/tests/sync.py deleted file mode 100755 index 2141875c7d..0000000000 --- a/src/tools/docbook/libxml2/python/tests/sync.py +++ /dev/null @@ -1,135 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -log = "" - -class callback: - def startDocument(self): - global log - log = log + "startDocument:" - - def endDocument(self): - global log - log = log + "endDocument:" - - def startElement(self, tag, attrs): - global log - log = log + "startElement %s %s:" % (tag, attrs) - - def endElement(self, tag): - global log - log = log + "endElement %s:" % (tag) - - def characters(self, data): - global log - log = log + "characters: %s:" % (data) - - def warning(self, msg): - global log - log = log + "warning: %s:" % (msg) - - def error(self, msg): - global log - log = log + "error: %s:" % (msg) - - def fatalError(self, msg): - global log - log = log + "fatalError: %s:" % (msg) - -handler = callback() - -log="" -chunk="""""" -ctxt = libxml2.createPushParser(handler, None, 0, "test.xml") -ctxt.parseChunk(chunk, len(chunk), 0) -ctxt=None - -reference = "startDocument:startElement foo None:startElement bar2 None:endElement bar2:" -if log != reference: - print "Error got: %s" % log - print "Exprected: %s" % reference - sys.exit(1) - -log="" -chunk="""""" -ctxt = libxml2.createPushParser(handler, None, 0, "test.xml") -ctxt.parseChunk(chunk, len(chunk), 0) -ctxt=None - -reference = "startDocument:startElement foo None:startElement bar2 None:endElement bar2:" -if log != reference: - print "Error got: %s" % log - print "Exprected: %s" % reference - sys.exit(1) - -log="" -chunk="""""" -ctxt = libxml2.createPushParser(handler, None, 0, "test.xml") -ctxt.parseChunk(chunk, len(chunk), 0) -ctxt=None - -reference = "startDocument:startElement foo None:startElement bar2 None:" -if log != reference: - print "Error got: %s" % log - print "Exprected: %s" % reference - sys.exit(1) - -log="" -chunk="""""" -ctxt = libxml2.createPushParser(handler, None, 0, "test.xml") -ctxt.parseChunk(chunk, len(chunk), 0) -ctxt=None - -reference = "startDocument:startElement foo None:startElement bar2 {'a': '1', 'b': '2'}:endElement bar2:" -if log != reference: - print "Error got: %s" % log - print "Exprected: %s" % reference - sys.exit(1) - -log="" -chunk="""""" -ctxt = libxml2.createPushParser(handler, None, 0, "test.xml") -ctxt.parseChunk(chunk, len(chunk), 0) -ctxt=None - -reference = "startDocument:startElement foo None:startElement bar2 {'a': '1', 'b': '2'}:" -if log != reference: - print "Error got: %s" % log - print "Exprected: %s" % reference - sys.exit(1) - -log="" -chunk="""""" -ctxt = libxml2.createPushParser(handler, None, 0, "test.xml") -ctxt.parseChunk(chunk, len(chunk), 0) -ctxt=None - -reference = "startDocument:startElement foo None:startElement bar2 {'a': '1', 'b': '2'}:endElement bar2:" -if log != reference: - print "Error got: %s" % log - print "Exprected: %s" % reference - sys.exit(1) - -log="" -chunk=""" diff --git a/src/tools/docbook/libxml2/python/tests/thread2.py b/src/tools/docbook/libxml2/python/tests/thread2.py deleted file mode 100755 index c8ac5ed390..0000000000 --- a/src/tools/docbook/libxml2/python/tests/thread2.py +++ /dev/null @@ -1,96 +0,0 @@ -#!/usr/bin/python -u -import string, sys, time -import thread -from threading import Thread, Lock - -import libxml2 - -THREADS_COUNT = 15 - -failed = 0 - -class ErrorHandler: - - def __init__(self): - self.errors = [] - self.lock = Lock() - - def handler(self,ctx,str): - self.lock.acquire() - self.errors.append(str) - self.lock.release() - -def getLineNumbersDefault(): - old = libxml2.lineNumbersDefault(0) - libxml2.lineNumbersDefault(old) - return old - -def test(expectedLineNumbersDefault): - time.sleep(1) - global failed - # check a per thread-global - if expectedLineNumbersDefault != getLineNumbersDefault(): - failed = 1 - print "FAILED to obtain correct value for " \ - "lineNumbersDefault in thread %d" % thread.get_ident() - # check ther global error handler - # (which is NOT per-thread in the python bindings) - try: - doc = libxml2.parseFile("bad.xml") - except: - pass - else: - assert "failed" - -# global error handler -eh = ErrorHandler() -libxml2.registerErrorHandler(eh.handler,"") - -# set on the main thread only -libxml2.lineNumbersDefault(1) -test(1) -ec = len(eh.errors) -if ec == 0: - print "FAILED: should have obtained errors" - sys.exit(1) - -ts = [] -for i in range(THREADS_COUNT): - # expect 0 for lineNumbersDefault because - # the new value has been set on the main thread only - ts.append(Thread(target=test,args=(0,))) -for t in ts: - t.start() -for t in ts: - t.join() - -if len(eh.errors) != ec+THREADS_COUNT*ec: - print "FAILED: did not obtain the correct number of errors" - sys.exit(1) - -# set lineNumbersDefault for future new threads -libxml2.thrDefLineNumbersDefaultValue(1) -ts = [] -for i in range(THREADS_COUNT): - # expect 1 for lineNumbersDefault - ts.append(Thread(target=test,args=(1,))) -for t in ts: - t.start() -for t in ts: - t.join() - -if len(eh.errors) != ec+THREADS_COUNT*ec*2: - print "FAILED: did not obtain the correct number of errors" - sys.exit(1) - -if failed: - print "FAILED" - sys.exit(1) - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/tst.py b/src/tools/docbook/libxml2/python/tests/tst.py deleted file mode 100755 index 9540cda7b7..0000000000 --- a/src/tools/docbook/libxml2/python/tests/tst.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -doc = libxml2.parseFile("tst.xml") -if doc.name != "tst.xml": - print "doc.name failed" - sys.exit(1) -root = doc.children -if root.name != "doc": - print "root.name failed" - sys.exit(1) -child = root.children -if child.name != "foo": - print "child.name failed" - sys.exit(1) -doc.freeDoc() - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/tst.xml b/src/tools/docbook/libxml2/python/tests/tst.xml deleted file mode 100644 index 751d46d86f..0000000000 --- a/src/tools/docbook/libxml2/python/tests/tst.xml +++ /dev/null @@ -1 +0,0 @@ -bar diff --git a/src/tools/docbook/libxml2/python/tests/tstLastError.py b/src/tools/docbook/libxml2/python/tests/tstLastError.py deleted file mode 100755 index d26e82cac5..0000000000 --- a/src/tools/docbook/libxml2/python/tests/tstLastError.py +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/python -u -import sys, unittest - -import libxml2 - -class TestCase(unittest.TestCase): - - def runTest(self): - self.test1() - self.test2() - - def setUp(self): - libxml2.debugMemory(1) - - def tearDown(self): - libxml2.cleanupParser() - if libxml2.debugMemory(1) != 0: - libxml2.dumpMemory() - self.fail("Memory leak %d bytes" % (libxml2.debugMemory(1),)) - else: - print "OK" - - def failUnlessXmlError(self,f,args,exc,domain,code,message,level,file,line): - """Run function f, with arguments args and expect an exception exc; - when the exception is raised, check the libxml2.lastError for - expected values.""" - # disable the default error handler - libxml2.registerErrorHandler(None,None) - try: - apply(f,args) - except exc: - e = libxml2.lastError() - if e is None: - self.fail("lastError not set") - if 0: - print "domain = ",e.domain() - print "code = ",e.code() - print "message =",repr(e.message()) - print "level =",e.level() - print "file =",e.file() - print "line =",e.line() - print - self.failUnlessEqual(domain,e.domain()) - self.failUnlessEqual(code,e.code()) - self.failUnlessEqual(message,e.message()) - self.failUnlessEqual(level,e.level()) - self.failUnlessEqual(file,e.file()) - self.failUnlessEqual(line,e.line()) - else: - self.fail("exception %s should have been raised" % exc) - - def test1(self): - """Test readFile with a file that does not exist""" - self.failUnlessXmlError(libxml2.readFile, - ("dummy.xml",None,0), - libxml2.treeError, - domain=libxml2.XML_FROM_IO, - code=libxml2.XML_IO_LOAD_ERROR, - message='failed to load external entity "dummy.xml"\n', - level=libxml2.XML_ERR_WARNING, - file=None, - line=0) - - def test2(self): - """Test a well-formedness error: we get the last error only""" - s = "\n\n" - self.failUnlessXmlError(libxml2.readMemory, - (s,len(s),"dummy.xml",None,0), - libxml2.treeError, - domain=libxml2.XML_FROM_PARSER, - code=libxml2.XML_ERR_TAG_NOT_FINISHED, - message='Premature end of data in tag x line 1\n', - level=libxml2.XML_ERR_FATAL, - file='dummy.xml', - line=3) - -if __name__ == "__main__": - test = TestCase() - test.setUp() - test.test1() - test.test2() - test.tearDown() diff --git a/src/tools/docbook/libxml2/python/tests/tstURI.py b/src/tools/docbook/libxml2/python/tests/tstURI.py deleted file mode 100755 index 58b7ad8f91..0000000000 --- a/src/tools/docbook/libxml2/python/tests/tstURI.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -uri = libxml2.parseURI("http://example.org:8088/foo/bar?query=simple#fragid") -if uri.scheme() != 'http': - print "Error parsing URI: wrong scheme" - sys.exit(1) -if uri.server() != 'example.org': - print "Error parsing URI: wrong server" - sys.exit(1) -if uri.port() != 8088: - print "Error parsing URI: wrong port" - sys.exit(1) -if uri.path() != '/foo/bar': - print "Error parsing URI: wrong path" - sys.exit(1) -if uri.query() != 'query=simple': - print "Error parsing URI: wrong query" - sys.exit(1) -if uri.fragment() != 'fragid': - print "Error parsing URI: wrong query" - sys.exit(1) -uri.setScheme("https") -uri.setPort(223) -uri.setFragment(None) -result=uri.saveUri() -if result != "https://example.org:223/foo/bar?query=simple": - print "Error modifying or saving the URI" -uri = None - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/tstmem.py b/src/tools/docbook/libxml2/python/tests/tstmem.py deleted file mode 100755 index 553096d3cf..0000000000 --- a/src/tools/docbook/libxml2/python/tests/tstmem.py +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/python -u -import libxml2 -import libxml2mod -import sys - -def error(msg, data): - pass - -# Memory debug specific -libxml2.debugMemory(1) - -dtd="""""" -instance=""" -""" - -dtd = libxml2.parseDTD(None, 'test.dtd') -ctxt = libxml2.newValidCtxt() -libxml2mod.xmlSetValidErrors(ctxt._o, error, error) -doc = libxml2.parseDoc(instance) -ret = doc.validateDtd(ctxt, dtd) -if ret != 1: - print "error doing DTD validation" - sys.exit(1) - -doc.freeDoc() -dtd.freeDtd() -del dtd -del ctxt - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/tstxpath.py b/src/tools/docbook/libxml2/python/tests/tstxpath.py deleted file mode 100755 index e47c34d4d9..0000000000 --- a/src/tools/docbook/libxml2/python/tests/tstxpath.py +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 - -#memory debug specific -libxml2.debugMemory(1) - -called = "" - -def foo(ctx, x): - global called - - # - # test that access to the XPath evaluation contexts - # - pctxt = libxml2.xpathParserContext(_obj=ctx) - ctxt = pctxt.context() - called = ctxt.function() - return x + 1 - -def bar(ctxt, x): - return "%d" % (x + 2) - -doc = libxml2.parseFile("tst.xml") -ctxt = doc.xpathNewContext() -res = ctxt.xpathEval("//*") -if len(res) != 2: - print "xpath query: wrong node set size" - sys.exit(1) -if res[0].name != "doc" or res[1].name != "foo": - print "xpath query: wrong node set value" - sys.exit(1) -libxml2.registerXPathFunction(ctxt._o, "foo", None, foo) -libxml2.registerXPathFunction(ctxt._o, "bar", None, bar) -i = 10000 -while i > 0: - res = ctxt.xpathEval("foo(1)") - if res != 2: - print "xpath extension failure" - sys.exit(1) - i = i - 1 -i = 10000 -while i > 0: - res = ctxt.xpathEval("bar(1)") - if res != "3": - print "xpath extension failure got %s expecting '3'" - sys.exit(1) - i = i - 1 -doc.freeDoc() -ctxt.xpathFreeContext() - -if called != "foo": - print "xpath function: failed to access the context" - print "xpath function: %s" % (called) - sys.exit(1) - -#memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/valid.xml b/src/tools/docbook/libxml2/python/tests/valid.xml deleted file mode 100644 index 8a7f679fce..0000000000 --- a/src/tools/docbook/libxml2/python/tests/valid.xml +++ /dev/null @@ -1,4 +0,0 @@ - -]> - diff --git a/src/tools/docbook/libxml2/python/tests/validDTD.py b/src/tools/docbook/libxml2/python/tests/validDTD.py deleted file mode 100755 index 1222f9fb09..0000000000 --- a/src/tools/docbook/libxml2/python/tests/validDTD.py +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/python -u -import libxml2 -import sys - -ARG = 'test string' - -class ErrorHandler: - - def __init__(self): - self.errors = [] - - def handler(self, msg, data): - if data != ARG: - raise Exception, "Error handler did not receive correct argument" - self.errors.append(msg) - - -# Memory debug specific -libxml2.debugMemory(1) - -dtd="""""" -valid=""" -""" - -invalid=""" -""" - -dtd = libxml2.parseDTD(None, 'test.dtd') -ctxt = libxml2.newValidCtxt() -e = ErrorHandler() -ctxt.setValidityErrorHandler(e.handler, e.handler, ARG) - -# Test valid document -doc = libxml2.parseDoc(valid) -ret = doc.validateDtd(ctxt, dtd) -if ret != 1 or e.errors: - print "error doing DTD validation" - sys.exit(1) -doc.freeDoc() - -# Test invalid document -doc = libxml2.parseDoc(invalid) -ret = doc.validateDtd(ctxt, dtd) -if ret != 0 or not e.errors: - print "Error: document supposed to be invalid" -doc.freeDoc() - -dtd.freeDtd() -del dtd -del ctxt - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() - diff --git a/src/tools/docbook/libxml2/python/tests/validRNG.py b/src/tools/docbook/libxml2/python/tests/validRNG.py deleted file mode 100755 index 7022efe9fe..0000000000 --- a/src/tools/docbook/libxml2/python/tests/validRNG.py +++ /dev/null @@ -1,76 +0,0 @@ -#!/usr/bin/python -u -import libxml2 -import sys - -ARG = 'test string' - -class ErrorHandler: - - def __init__(self): - self.errors = [] - - def handler(self, msg, data): - if data != ARG: - raise Exception, "Error handler did not receive correct argument" - self.errors.append(msg) - -# Memory debug specific -libxml2.debugMemory(1) - -schema=""" - - A foo element. - - - - - - - -""" - -valid=""" -""" - -invalid=""" -bad""" - -rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema)) -rngs = rngp.relaxNGParse() -ctxt = rngs.relaxNGNewValidCtxt() -e = ErrorHandler() -ctxt.setValidityErrorHandler(e.handler, e.handler, ARG) - -# Test valid document -doc = libxml2.parseDoc(valid) -ret = doc.relaxNGValidateDoc(ctxt) -if ret != 0 or e.errors: - print "error doing RelaxNG validation" - sys.exit(1) -doc.freeDoc() - -# Test invalid document -doc = libxml2.parseDoc(invalid) -ret = doc.relaxNGValidateDoc(ctxt) -if ret == 0 or not e.errors: - print "Error: document supposed to be RelaxNG invalid" - sys.exit(1) -doc.freeDoc() - -del rngp -del rngs -del ctxt -libxml2.relaxNGCleanupTypes() - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() - diff --git a/src/tools/docbook/libxml2/python/tests/validSchemas.py b/src/tools/docbook/libxml2/python/tests/validSchemas.py deleted file mode 100755 index d4d62b241a..0000000000 --- a/src/tools/docbook/libxml2/python/tests/validSchemas.py +++ /dev/null @@ -1,83 +0,0 @@ -#!/usr/bin/python -u -import libxml2 -import sys - -ARG = 'test string' - -class ErrorHandler: - - def __init__(self): - self.errors = [] - - def handler(self, msg, data): - if data != ARG: - raise Exception, "Error handler did not receive correct argument" - self.errors.append(msg) - -# Memory debug specific -libxml2.debugMemory(1) - -schema=""" - - - - - - - - - - - -""" - -valid=""" - - Raymond - G - Bayliss - -""" - -invalid=""" - - G - Bayliss - -""" - -e = ErrorHandler() -ctxt_parser = libxml2.schemaNewMemParserCtxt(schema, len(schema)) -ctxt_schema = ctxt_parser.schemaParse() -ctxt_valid = ctxt_schema.schemaNewValidCtxt() -ctxt_valid.setValidityErrorHandler(e.handler, e.handler, ARG) - -# Test valid document -doc = libxml2.parseDoc(valid) -ret = doc.schemaValidateDoc(ctxt_valid) -if ret != 0 or e.errors: - print "error doing schema validation" - sys.exit(1) -doc.freeDoc() - -# Test invalid document -doc = libxml2.parseDoc(invalid) -ret = doc.schemaValidateDoc(ctxt_valid) -if ret == 0 or not e.errors: - print "Error: document supposer to be schema invalid" - sys.exit(1) -doc.freeDoc() - -del ctxt_parser -del ctxt_schema -del ctxt_valid -libxml2.schemaCleanupTypes() - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() - diff --git a/src/tools/docbook/libxml2/python/tests/validate.py b/src/tools/docbook/libxml2/python/tests/validate.py deleted file mode 100755 index 0dc86f4cb1..0000000000 --- a/src/tools/docbook/libxml2/python/tests/validate.py +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -ctxt = libxml2.createFileParserCtxt("valid.xml") -ctxt.validate(1) -ctxt.parseDocument() -doc = ctxt.doc() -valid = ctxt.isValid() - -if doc.name != "valid.xml": - print "doc.name failed" - sys.exit(1) -root = doc.children -if root.name != "doc": - print "root.name failed" - sys.exit(1) -if valid != 1: - print "validity chec failed" - sys.exit(1) -doc.freeDoc() - -i = 1000 -while i > 0: - ctxt = libxml2.createFileParserCtxt("valid.xml") - ctxt.validate(1) - ctxt.parseDocument() - doc = ctxt.doc() - valid = ctxt.isValid() - doc.freeDoc() - if valid != 1: - print "validity check failed" - sys.exit(1) - i = i - 1 - -#desactivate error messages from the validation -def noerr(ctx, str): - pass - -libxml2.registerErrorHandler(noerr, None) - -ctxt = libxml2.createFileParserCtxt("invalid.xml") -ctxt.validate(1) -ctxt.parseDocument() -doc = ctxt.doc() -valid = ctxt.isValid() -if doc.name != "invalid.xml": - print "doc.name failed" - sys.exit(1) -root = doc.children -if root.name != "doc": - print "root.name failed" - sys.exit(1) -if valid != 0: - print "validity chec failed" - sys.exit(1) -doc.freeDoc() - -i = 1000 -while i > 0: - ctxt = libxml2.createFileParserCtxt("invalid.xml") - ctxt.validate(1) - ctxt.parseDocument() - doc = ctxt.doc() - valid = ctxt.isValid() - doc.freeDoc() - if valid != 0: - print "validity check failed" - sys.exit(1) - i = i - 1 -del ctxt - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/walker.py b/src/tools/docbook/libxml2/python/tests/walker.py deleted file mode 100755 index 3b5a62aabb..0000000000 --- a/src/tools/docbook/libxml2/python/tests/walker.py +++ /dev/null @@ -1,145 +0,0 @@ -#!/usr/bin/python -u -# -# this tests the entities substitutions with the XmlTextReader interface -# -import sys -import StringIO -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -result = "" -def processNode(reader): - global result - - result = result + "%d %d %s %d\n" % (reader.Depth(), reader.NodeType(), - reader.Name(), reader.IsEmptyElement()) - -# -# Parse a document testing the readerForxxx API -# -docstr=""" - -100 -""" -expect="""0 1 foo 0 -1 14 #text 0 -1 1 label 0 -2 3 #text 0 -1 15 label 0 -1 14 #text 0 -1 1 item 0 -2 3 #text 0 -1 15 item 0 -1 14 #text 0 -0 15 foo 0 -""" -result = "" - -doc = libxml2.parseDoc(docstr) -reader = doc.readerWalker(); -ret = reader.Read() -while ret == 1: - processNode(reader) - ret = reader.Read() - -if ret != 0: - print "Error parsing the document test1" - sys.exit(1) - -if result != expect: - print "Unexpected result for test1" - print result - sys.exit(1) - -doc.freeDoc() - -# -# Reuse the reader for another document testing the ReaderNewWalker API -# -docstr=""" - -1000 -""" -expect="""0 1 foo 0 -1 14 #text 0 -1 1 label 0 -2 3 #text 0 -1 15 label 0 -1 14 #text 0 -1 1 item 0 -2 3 #text 0 -1 15 item 0 -1 14 #text 0 -0 15 foo 0 -""" -result = "" - -doc = libxml2.parseDoc(docstr) -reader.NewWalker(doc) - -ret = reader.Read() -while ret == 1: - processNode(reader) - ret = reader.Read() - -if ret != 0: - print "Error parsing the document test2" - sys.exit(1) - -if result != expect: - print "Unexpected result for test2" - print result - sys.exit(1) - -doc.freeDoc() - -# -# Reuse the reader for another document testing the ReaderNewxxx API -# -docstr=""" - -1000 -""" -expect="""0 1 foo 0 -1 14 #text 0 -1 1 label 0 -2 3 #text 0 -1 15 label 0 -1 14 #text 0 -1 1 item 0 -2 3 #text 0 -1 15 item 0 -1 14 #text 0 -0 15 foo 0 -""" -result = "" - -reader.NewDoc(docstr, "test3", None, 0) -ret = reader.Read() -while ret == 1: - processNode(reader) - ret = reader.Read() - -if ret != 0: - print "Error parsing the document test3" - sys.exit(1) - -if result != expect: - print "Unexpected result for test3" - print result - sys.exit(1) - -# -# cleanup -# -del reader - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/xpath.py b/src/tools/docbook/libxml2/python/tests/xpath.py deleted file mode 100755 index 2e036e1f4a..0000000000 --- a/src/tools/docbook/libxml2/python/tests/xpath.py +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/python -u -# -# this test exercise the XPath basic engine, parser, etc, and -# allows to detect memory leaks -# -import sys -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -doc = libxml2.parseFile("tst.xml") -if doc.name != "tst.xml": - print "doc.name error" - sys.exit(1); - -ctxt = doc.xpathNewContext() -res = ctxt.xpathEval("//*") -if len(res) != 2: - print "xpath query: wrong node set size" - sys.exit(1) -if res[0].name != "doc" or res[1].name != "foo": - print "xpath query: wrong node set value" - sys.exit(1) -ctxt.setContextNode(res[0]) -res = ctxt.xpathEval("foo") -if len(res) != 1: - print "xpath query: wrong node set size" - sys.exit(1) -if res[0].name != "foo": - print "xpath query: wrong node set value" - sys.exit(1) -doc.freeDoc() -ctxt.xpathFreeContext() -i = 1000 -while i > 0: - doc = libxml2.parseFile("tst.xml") - ctxt = doc.xpathNewContext() - res = ctxt.xpathEval("//*") - doc.freeDoc() - ctxt.xpathFreeContext() - i = i -1 -del ctxt - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/xpathext.py b/src/tools/docbook/libxml2/python/tests/xpathext.py deleted file mode 100755 index 4769626103..0000000000 --- a/src/tools/docbook/libxml2/python/tests/xpathext.py +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 - -# Memory debug specific -libxml2.debugMemory(1) - -def foo(ctx, x): - return x + 1 - -def bar(ctx, x): - return "%d" % (x + 2) - -doc = libxml2.parseFile("tst.xml") -ctxt = doc.xpathNewContext() -res = ctxt.xpathEval("//*") -if len(res) != 2: - print "xpath query: wrong node set size" - sys.exit(1) -if res[0].name != "doc" or res[1].name != "foo": - print "xpath query: wrong node set value" - sys.exit(1) - -libxml2.registerXPathFunction(ctxt._o, "foo", None, foo) -libxml2.registerXPathFunction(ctxt._o, "bar", None, bar) -i = 10000 -while i > 0: - res = ctxt.xpathEval("foo(1)") - if res != 2: - print "xpath extension failure" - sys.exit(1) - i = i - 1 -i = 10000 -while i > 0: - res = ctxt.xpathEval("bar(1)") - if res != "3": - print "xpath extension failure got %s expecting '3'" - sys.exit(1) - i = i - 1 -doc.freeDoc() -ctxt.xpathFreeContext() - -# Memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/tests/xpathret.py b/src/tools/docbook/libxml2/python/tests/xpathret.py deleted file mode 100755 index 2b5576a733..0000000000 --- a/src/tools/docbook/libxml2/python/tests/xpathret.py +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 - -#memory debug specific -libxml2.debugMemory(1) - -# -# A document hosting the nodes returned from the extension function -# -mydoc = libxml2.newDoc("1.0") - -def foo(ctx, str): - global mydoc - - # - # test returning a node set works as expected - # - parent = mydoc.newDocNode(None, 'p', None) - mydoc.addChild(parent) - node = mydoc.newDocText(str) - parent.addChild(node) - return [parent] - -doc = libxml2.parseFile("tst.xml") -ctxt = doc.xpathNewContext() -libxml2.registerXPathFunction(ctxt._o, "foo", None, foo) -res = ctxt.xpathEval("foo('hello')") -if type(res) != type([]): - print "Failed to return a nodeset" - sys.exit(1) -if len(res) != 1: - print "Unexpected nodeset size" - sys.exit(1) -node = res[0] -if node.name != 'p': - print "Unexpected nodeset element result" - sys.exit(1) -node = node.children -if node.type != 'text': - print "Unexpected nodeset element children type" - sys.exit(1) -if node.content != 'hello': - print "Unexpected nodeset element children content" - sys.exit(1) - -doc.freeDoc() -mydoc.freeDoc() -ctxt.xpathFreeContext() - -#memory debug specific -libxml2.cleanupParser() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxml2/python/types.c b/src/tools/docbook/libxml2/python/types.c deleted file mode 100644 index 8a6a9a0e3f..0000000000 --- a/src/tools/docbook/libxml2/python/types.c +++ /dev/null @@ -1,746 +0,0 @@ -/* - * types.c: converter functions between the internal representation - * and the Python objects - * - * See Copyright for the status of this software. - * - * daniel@veillard.com - */ -#include "libxml_wrap.h" - -PyObject * -libxml_intWrap(int val) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_intWrap: val = %d\n", val); -#endif - ret = PyInt_FromLong((long) val); - return (ret); -} - -PyObject * -libxml_longWrap(long val) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_longWrap: val = %ld\n", val); -#endif - ret = PyInt_FromLong(val); - return (ret); -} - -PyObject * -libxml_doubleWrap(double val) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_doubleWrap: val = %f\n", val); -#endif - ret = PyFloat_FromDouble((double) val); - return (ret); -} - -PyObject * -libxml_charPtrWrap(char *str) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlcharPtrWrap: str = %s\n", str); -#endif - if (str == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - /* TODO: look at deallocation */ - ret = PyString_FromString(str); - xmlFree(str); - return (ret); -} - -PyObject * -libxml_charPtrConstWrap(const char *str) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlcharPtrWrap: str = %s\n", str); -#endif - if (str == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - /* TODO: look at deallocation */ - ret = PyString_FromString(str); - return (ret); -} - -PyObject * -libxml_xmlCharPtrWrap(xmlChar * str) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlCharPtrWrap: str = %s\n", str); -#endif - if (str == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - /* TODO: look at deallocation */ - ret = PyString_FromString((char *) str); - xmlFree(str); - return (ret); -} - -PyObject * -libxml_xmlCharPtrConstWrap(const xmlChar * str) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlCharPtrWrap: str = %s\n", str); -#endif - if (str == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - /* TODO: look at deallocation */ - ret = PyString_FromString((char *) str); - return (ret); -} - -PyObject * -libxml_constcharPtrWrap(const char *str) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlcharPtrWrap: str = %s\n", str); -#endif - if (str == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - /* TODO: look at deallocation */ - ret = PyString_FromString(str); - return (ret); -} - -PyObject * -libxml_constxmlCharPtrWrap(const xmlChar * str) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlCharPtrWrap: str = %s\n", str); -#endif - if (str == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - /* TODO: look at deallocation */ - ret = PyString_FromString((char *) str); - return (ret); -} - -PyObject * -libxml_xmlDocPtrWrap(xmlDocPtr doc) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlDocPtrWrap: doc = %p\n", doc); -#endif - if (doc == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - /* TODO: look at deallocation */ - ret = - PyCObject_FromVoidPtrAndDesc((void *) doc, (char *) "xmlDocPtr", - NULL); - return (ret); -} - -PyObject * -libxml_xmlNodePtrWrap(xmlNodePtr node) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlNodePtrWrap: node = %p\n", node); -#endif - if (node == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) node, (char *) "xmlNodePtr", - NULL); - return (ret); -} - -PyObject * -libxml_xmlURIPtrWrap(xmlURIPtr uri) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlURIPtrWrap: uri = %p\n", uri); -#endif - if (uri == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) uri, (char *) "xmlURIPtr", - NULL); - return (ret); -} - -PyObject * -libxml_xmlNsPtrWrap(xmlNsPtr ns) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlNsPtrWrap: node = %p\n", ns); -#endif - if (ns == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) ns, (char *) "xmlNsPtr", - NULL); - return (ret); -} - -PyObject * -libxml_xmlAttrPtrWrap(xmlAttrPtr attr) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlAttrNodePtrWrap: attr = %p\n", attr); -#endif - if (attr == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) attr, (char *) "xmlAttrPtr", - NULL); - return (ret); -} - -PyObject * -libxml_xmlAttributePtrWrap(xmlAttributePtr attr) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlAttributePtrWrap: attr = %p\n", attr); -#endif - if (attr == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) attr, - (char *) "xmlAttributePtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlElementPtrWrap(xmlElementPtr elem) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlElementNodePtrWrap: elem = %p\n", elem); -#endif - if (elem == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) elem, - (char *) "xmlElementPtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlXPathContextPtrWrap(xmlXPathContextPtr ctxt) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlXPathContextPtrWrap: ctxt = %p\n", ctxt); -#endif - if (ctxt == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) ctxt, - (char *) "xmlXPathContextPtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlXPathParserContextPtrWrap(xmlXPathParserContextPtr ctxt) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlXPathParserContextPtrWrap: ctxt = %p\n", ctxt); -#endif - if (ctxt == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = PyCObject_FromVoidPtrAndDesc((void *) ctxt, - (char *) "xmlXPathParserContextPtr", - NULL); - return (ret); -} - -PyObject * -libxml_xmlParserCtxtPtrWrap(xmlParserCtxtPtr ctxt) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlParserCtxtPtrWrap: ctxt = %p\n", ctxt); -#endif - if (ctxt == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - - ret = - PyCObject_FromVoidPtrAndDesc((void *) ctxt, - (char *) "xmlParserCtxtPtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlXPathObjectPtrWrap(xmlXPathObjectPtr obj) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlXPathObjectPtrWrap: ctxt = %p\n", obj); -#endif - if (obj == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - switch (obj->type) { - case XPATH_XSLT_TREE: { - if ((obj->nodesetval == NULL) || - (obj->nodesetval->nodeNr == 0) || - (obj->nodesetval->nodeTab == NULL)) { - ret = PyList_New(0); - } else { - int i, len = 0; - xmlNodePtr node; - - node = obj->nodesetval->nodeTab[0]->children; - while (node != NULL) { - len++; - node = node->next; - } - ret = PyList_New(len); - node = obj->nodesetval->nodeTab[0]->children; - for (i = 0;i < len;i++) { - PyList_SetItem(ret, i, libxml_xmlNodePtrWrap(node)); - node = node->next; - } - } - /* - * Return now, do not free the object passed down - */ - return (ret); - } - case XPATH_NODESET: - if ((obj->nodesetval == NULL) - || (obj->nodesetval->nodeNr == 0)) { - ret = PyList_New(0); - } else { - int i; - xmlNodePtr node; - - ret = PyList_New(obj->nodesetval->nodeNr); - for (i = 0; i < obj->nodesetval->nodeNr; i++) { - node = obj->nodesetval->nodeTab[i]; - /* TODO: try to cast directly to the proper node type */ - PyList_SetItem(ret, i, libxml_xmlNodePtrWrap(node)); - } - } - break; - case XPATH_BOOLEAN: - ret = PyInt_FromLong((long) obj->boolval); - break; - case XPATH_NUMBER: - ret = PyFloat_FromDouble(obj->floatval); - break; - case XPATH_STRING: - ret = PyString_FromString((char *) obj->stringval); - break; - case XPATH_POINT: - case XPATH_RANGE: - case XPATH_LOCATIONSET: - default: -#ifdef DEBUG - printf("Unable to convert XPath object type %d\n", obj->type); -#endif - Py_INCREF(Py_None); - ret = Py_None; - } - xmlXPathFreeObject(obj); - return (ret); -} - -xmlXPathObjectPtr -libxml_xmlXPathObjectPtrConvert(PyObject * obj) -{ - xmlXPathObjectPtr ret = NULL; - -#ifdef DEBUG - printf("libxml_xmlXPathObjectPtrConvert: obj = %p\n", obj); -#endif - if (obj == NULL) { - return (NULL); - } - if PyFloat_Check - (obj) { - ret = xmlXPathNewFloat((double) PyFloat_AS_DOUBLE(obj)); - } else if PyString_Check - (obj) { - xmlChar *str; - - str = xmlStrndup((const xmlChar *) PyString_AS_STRING(obj), - PyString_GET_SIZE(obj)); - ret = xmlXPathWrapString(str); - } else if PyList_Check - (obj) { - int i; - PyObject *node; - xmlNodePtr cur; - xmlNodeSetPtr set; - - set = xmlXPathNodeSetCreate(NULL); - - for (i = 0; i < PyList_Size(obj); i++) { - node = PyList_GetItem(obj, i); - if ((node == NULL) || (node->ob_type == NULL)) - continue; - - cur = NULL; - if (PyCObject_Check(node)) { -#ifdef DEBUG - printf("Got a CObject\n"); -#endif - cur = PyxmlNode_Get(node); - } else if (PyInstance_Check(node)) { - PyInstanceObject *inst = (PyInstanceObject *) node; - PyObject *name = inst->in_class->cl_name; - - if PyString_Check - (name) { - char *type = PyString_AS_STRING(name); - PyObject *wrapper; - - if (!strcmp(type, "xmlNode")) { - wrapper = - PyObject_GetAttrString(node, (char *) "_o"); - if (wrapper != NULL) { - cur = PyxmlNode_Get(wrapper); - } - } - } - } else { -#ifdef DEBUG - printf("Unknown object in Python return list\n"); -#endif - } - if (cur != NULL) { - xmlXPathNodeSetAdd(set, cur); - } - } - ret = xmlXPathWrapNodeSet(set); - } else { -#ifdef DEBUG - printf("Unable to convert Python Object to XPath"); -#endif - } - Py_DECREF(obj); - return (ret); -} - -PyObject * -libxml_xmlValidCtxtPtrWrap(xmlValidCtxtPtr valid) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlValidCtxtPtrWrap: valid = %p\n", valid); -#endif - if (valid == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - - ret = - PyCObject_FromVoidPtrAndDesc((void *) valid, - (char *) "xmlValidCtxtPtr", NULL); - - return (ret); -} - -PyObject * -libxml_xmlCatalogPtrWrap(xmlCatalogPtr catal) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlNodePtrWrap: catal = %p\n", catal); -#endif - if (catal == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) catal, - (char *) "xmlCatalogPtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlOutputBufferPtrWrap(xmlOutputBufferPtr buffer) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlOutputBufferPtrWrap: buffer = %p\n", buffer); -#endif - if (buffer == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) buffer, - (char *) "xmlOutputBufferPtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlParserInputBufferPtrWrap(xmlParserInputBufferPtr buffer) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlParserInputBufferPtrWrap: buffer = %p\n", buffer); -#endif - if (buffer == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) buffer, - (char *) "xmlParserInputBufferPtr", NULL); - return (ret); -} - -#ifdef LIBXML_REGEXP_ENABLED -PyObject * -libxml_xmlRegexpPtrWrap(xmlRegexpPtr regexp) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlRegexpPtrWrap: regexp = %p\n", regexp); -#endif - if (regexp == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) regexp, - (char *) "xmlRegexpPtr", NULL); - return (ret); -} -#endif /* LIBXML_REGEXP_ENABLED */ - -PyObject * -libxml_xmlTextReaderPtrWrap(xmlTextReaderPtr reader) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlTextReaderPtrWrap: reader = %p\n", reader); -#endif - if (reader == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) reader, - (char *) "xmlTextReaderPtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlTextReaderLocatorPtrWrap(xmlTextReaderLocatorPtr locator) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlTextReaderLocatorPtrWrap: locator = %p\n", locator); -#endif - if (locator == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) locator, - (char *) "xmlTextReaderLocatorPtr", NULL); - return (ret); -} - -#ifdef LIBXML_SCHEMAS_ENABLED -PyObject * -libxml_xmlRelaxNGPtrWrap(xmlRelaxNGPtr ctxt) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlRelaxNGPtrWrap: ctxt = %p\n", ctxt); -#endif - if (ctxt == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) ctxt, - (char *) "xmlRelaxNGPtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlRelaxNGParserCtxtPtrWrap(xmlRelaxNGParserCtxtPtr ctxt) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlRelaxNGParserCtxtPtrWrap: ctxt = %p\n", ctxt); -#endif - if (ctxt == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) ctxt, - (char *) "xmlRelaxNGParserCtxtPtr", NULL); - return (ret); -} -PyObject * -libxml_xmlRelaxNGValidCtxtPtrWrap(xmlRelaxNGValidCtxtPtr valid) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlRelaxNGValidCtxtPtrWrap: valid = %p\n", valid); -#endif - if (valid == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) valid, - (char *) "xmlRelaxNGValidCtxtPtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlSchemaPtrWrap(xmlSchemaPtr ctxt) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlSchemaPtrWrap: ctxt = %p\n", ctxt); -#endif - if (ctxt == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) ctxt, - (char *) "xmlSchemaPtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlSchemaParserCtxtPtrWrap(xmlSchemaParserCtxtPtr ctxt) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlSchemaParserCtxtPtrWrap: ctxt = %p\n", ctxt); -#endif - if (ctxt == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) ctxt, - (char *) "xmlSchemaParserCtxtPtr", NULL); - - return (ret); -} - -PyObject * -libxml_xmlSchemaValidCtxtPtrWrap(xmlSchemaValidCtxtPtr valid) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlSchemaValidCtxtPtrWrap: valid = %p\n", valid); -#endif - if (valid == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - - ret = - PyCObject_FromVoidPtrAndDesc((void *) valid, - (char *) "xmlSchemaValidCtxtPtr", NULL); - - return (ret); -} -#endif /* LIBXML_SCHEMAS_ENABLED */ - -PyObject * -libxml_xmlErrorPtrWrap(xmlErrorPtr error) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlErrorPtrWrap: error = %p\n", error); -#endif - if (error == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) error, - (char *) "xmlErrorPtr", NULL); - return (ret); -} diff --git a/src/tools/docbook/libxml2/regressions.py b/src/tools/docbook/libxml2/regressions.py deleted file mode 100755 index 0e813c2ea3..0000000000 --- a/src/tools/docbook/libxml2/regressions.py +++ /dev/null @@ -1,350 +0,0 @@ -#!/usr/bin/python -u -import glob, os, string, sys, thread, time -# import difflib -import libxml2 - -### -# -# This is a "Work in Progress" attempt at a python script to run the -# various regression tests. The rationale for this is that it should be -# possible to run this on most major platforms, including those (such as -# Windows) which don't support gnu Make. -# -# The script is driven by a parameter file which defines the various tests -# to be run, together with the unique settings for each of these tests. A -# script for Linux is included (regressions.xml), with comments indicating -# the significance of the various parameters. To run the tests under Windows, -# edit regressions.xml and remove the comment around the default parameter -# "" (i.e. make it point to the location of the binary executables). -# -# Note that this current version requires the Python bindings for libxml2 to -# have been previously installed and accessible -# -# See Copyright for the status of this software. -# William Brack (wbrack@mmm.com.hk) -# -### -defaultParams = {} # will be used as a dictionary to hold the parsed params - -# This routine is used for comparing the expected stdout / stdin with the results. -# The expected data has already been read in; the result is a file descriptor. -# Within the two sets of data, lines may begin with a path string. If so, the -# code "relativises" it by removing the path component. The first argument is a -# list already read in by a separate thread; the second is a file descriptor. -# The two 'base' arguments are to let me "relativise" the results files, allowing -# the script to be run from any directory. -def compFiles(res, expected, base1, base2): - l1 = len(base1) - exp = expected.readlines() - expected.close() - # the "relativisation" is done here - for i in range(len(res)): - j = string.find(res[i],base1) - if (j == 0) or ((j == 2) and (res[i][0:2] == './')): - col = string.find(res[i],':') - if col > 0: - start = string.rfind(res[i][:col], '/') - if start > 0: - res[i] = res[i][start+1:] - - for i in range(len(exp)): - j = string.find(exp[i],base2) - if (j == 0) or ((j == 2) and (exp[i][0:2] == './')): - col = string.find(exp[i],':') - if col > 0: - start = string.rfind(exp[i][:col], '/') - if start > 0: - exp[i] = exp[i][start+1:] - - ret = 0 - # ideally we would like to use difflib functions here to do a - # nice comparison of the two sets. Unfortunately, during testing - # (using python 2.3.3 and 2.3.4) the following code went into - # a dead loop under windows. I'll pursue this later. -# diff = difflib.ndiff(res, exp) -# diff = list(diff) -# for line in diff: -# if line[:2] != ' ': -# print string.strip(line) -# ret = -1 - - # the following simple compare is fine for when the two data sets - # (actual result vs. expected result) are equal, which should be true for - # us. Unfortunately, if the test fails it's not nice at all. - rl = len(res) - el = len(exp) - if el != rl: - print 'Length of expected is %d, result is %d' % (el, rl) - ret = -1 - for i in range(min(el, rl)): - if string.strip(res[i]) != string.strip(exp[i]): - print '+:%s-:%s' % (res[i], exp[i]) - ret = -1 - if el > rl: - for i in range(rl, el): - print '-:%s' % exp[i] - ret = -1 - elif rl > el: - for i in range (el, rl): - print '+:%s' % res[i] - ret = -1 - return ret - -# Separate threads to handle stdout and stderr are created to run this function -def readPfile(file, list, flag): - data = file.readlines() # no call by reference, so I cheat - for l in data: - list.append(l) - file.close() - flag.append('ok') - -# This routine runs the test program (e.g. xmllint) -def runOneTest(testDescription, filename, inbase, errbase): - if 'execpath' in testDescription: - dir = testDescription['execpath'] + '/' - else: - dir = '' - cmd = os.path.abspath(dir + testDescription['testprog']) - if 'flag' in testDescription: - for f in string.split(testDescription['flag']): - cmd += ' ' + f - if 'stdin' not in testDescription: - cmd += ' ' + inbase + filename - if 'extarg' in testDescription: - cmd += ' ' + testDescription['extarg'] - - noResult = 0 - expout = None - if 'resext' in testDescription: - if testDescription['resext'] == 'None': - noResult = 1 - else: - ext = '.' + testDescription['resext'] - else: - ext = '' - if not noResult: - try: - fname = errbase + filename + ext - expout = open(fname, 'rt') - except: - print "Can't open result file %s - bypassing test" % fname - return - - noErrors = 0 - if 'reserrext' in testDescription: - if testDescription['reserrext'] == 'None': - noErrors = 1 - else: - if len(testDescription['reserrext'])>0: - ext = '.' + testDescription['reserrext'] - else: - ext = '' - else: - ext = '' - if not noErrors: - try: - fname = errbase + filename + ext - experr = open(fname, 'rt') - except: - experr = None - else: - experr = None - - pin, pout, perr = os.popen3(cmd) - if 'stdin' in testDescription: - infile = open(inbase + filename, 'rt') - pin.writelines(infile.readlines()) - infile.close() - pin.close() - - # popen is great fun, but can lead to the old "deadly embrace", because - # synchronizing the writing (by the task being run) of stdout and stderr - # with respect to the reading (by this task) is basically impossible. I - # tried several ways to cheat, but the only way I have found which works - # is to do a *very* elementary multi-threading approach. We can only hope - # that Python threads are implemented on the target system (it's okay for - # Linux and Windows) - - th1Flag = [] # flags to show when threads finish - th2Flag = [] - outfile = [] # lists to contain the pipe data - errfile = [] - th1 = thread.start_new_thread(readPfile, (pout, outfile, th1Flag)) - th2 = thread.start_new_thread(readPfile, (perr, errfile, th2Flag)) - while (len(th1Flag)==0) or (len(th2Flag)==0): - time.sleep(0.001) - if not noResult: - ret = compFiles(outfile, expout, inbase, 'test/') - if ret != 0: - print 'trouble with %s' % cmd - else: - if len(outfile) != 0: - for l in outfile: - print l - print 'trouble with %s' % cmd - if experr != None: - ret = compFiles(errfile, experr, inbase, 'test/') - if ret != 0: - print 'trouble with %s' % cmd - else: - if not noErrors: - if len(errfile) != 0: - for l in errfile: - print l - print 'trouble with %s' % cmd - - if 'stdin' not in testDescription: - pin.close() - -# This routine is called by the parameter decoding routine whenever the end of a -# 'test' section is encountered. Depending upon file globbing, a large number of -# individual tests may be run. -def runTest(description): - testDescription = defaultParams.copy() # set defaults - testDescription.update(description) # override with current ent - if 'testname' in testDescription: - print "## %s" % testDescription['testname'] - if not 'file' in testDescription: - print "No file specified - can't run this test!" - return - # Set up the source and results directory paths from the decoded params - dir = '' - if 'srcdir' in testDescription: - dir += testDescription['srcdir'] + '/' - if 'srcsub' in testDescription: - dir += testDescription['srcsub'] + '/' - - rdir = '' - if 'resdir' in testDescription: - rdir += testDescription['resdir'] + '/' - if 'ressub' in testDescription: - rdir += testDescription['ressub'] + '/' - - testFiles = glob.glob(os.path.abspath(dir + testDescription['file'])) - if testFiles == []: - print "No files result from '%s'" % testDescription['file'] - return - - # Some test programs just don't work (yet). For now we exclude them. - count = 0 - excl = [] - if 'exclfile' in testDescription: - for f in string.split(testDescription['exclfile']): - glb = glob.glob(dir + f) - for g in glb: - excl.append(os.path.abspath(g)) - - # Run the specified test program - for f in testFiles: - if not os.path.isdir(f): - if f not in excl: - count = count + 1 - runOneTest(testDescription, os.path.basename(f), dir, rdir) - -# -# The following classes are used with the xmlreader interface to interpret the -# parameter file. Once a test section has been identified, runTest is called -# with a dictionary containing the parsed results of the interpretation. -# - -class testDefaults: - curText = '' # accumulates text content of parameter - - def addToDict(self, key): - txt = string.strip(self.curText) -# if txt == '': -# return - if key not in defaultParams: - defaultParams[key] = txt - else: - defaultParams[key] += ' ' + txt - - def processNode(self, reader, curClass): - if reader.Depth() == 2: - if reader.NodeType() == 1: - self.curText = '' # clear the working variable - elif reader.NodeType() == 15: - if (reader.Name() != '#text') and (reader.Name() != '#comment'): - self.addToDict(reader.Name()) - elif reader.Depth() == 3: - if reader.Name() == '#text': - self.curText += reader.Value() - - elif reader.NodeType() == 15: # end of element - print "Defaults have been set to:" - for k in defaultParams.keys(): - print " %s : '%s'" % (k, defaultParams[k]) - curClass = rootClass() - return curClass - - -class testClass: - def __init__(self): - self.testParams = {} # start with an empty set of params - self.curText = '' # and empty text - - def addToDict(self, key): - data = string.strip(self.curText) - if key not in self.testParams: - self.testParams[key] = data - else: - if self.testParams[key] != '': - data = ' ' + data - self.testParams[key] += data - - def processNode(self, reader, curClass): - if reader.Depth() == 2: - if reader.NodeType() == 1: - self.curText = '' # clear the working variable - if reader.Name() not in self.testParams: - self.testParams[reader.Name()] = '' - elif reader.NodeType() == 15: - if (reader.Name() != '#text') and (reader.Name() != '#comment'): - self.addToDict(reader.Name()) - elif reader.Depth() == 3: - if reader.Name() == '#text': - self.curText += reader.Value() - - elif reader.NodeType() == 15: # end of element - runTest(self.testParams) - curClass = rootClass() - return curClass - - -class rootClass: - def processNode(self, reader, curClass): - if reader.Depth() == 0: - return curClass - if reader.Depth() != 1: - print "Unexpected junk: Level %d, type %d, name %s" % ( - reader.Depth(), reader.NodeType(), reader.Name()) - return curClass - if reader.Name() == 'test': - curClass = testClass() - curClass.testParams = {} - elif reader.Name() == 'defaults': - curClass = testDefaults() - return curClass - -def streamFile(filename): - try: - reader = libxml2.newTextReaderFilename(filename) - except: - print "unable to open %s" % (filename) - return - - curClass = rootClass() - ret = reader.Read() - while ret == 1: - curClass = curClass.processNode(reader, curClass) - ret = reader.Read() - - if ret != 0: - print "%s : failed to parse" % (filename) - -# OK, we're finished with all the routines. Now for the main program:- -if len(sys.argv) != 2: - print "Usage: maketest {filename}" - sys.exit(-1) - -streamFile(sys.argv[1]) diff --git a/src/tools/docbook/libxml2/regressions.xml b/src/tools/docbook/libxml2/regressions.xml deleted file mode 100644 index c78838ac51..0000000000 --- a/src/tools/docbook/libxml2/regressions.xml +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - noname - - . - xmllint - test - result - *.xml - err - - - - - XML Regression Tests - failed to load external entity - - - XML Entity Subst Regression Tests - noent - --noent - - - XML Namespaces Regression Tests - namespaces - namespaces - - - xml:id Regression Tests - testXPath - xmlid - xmlid - -i - id_*.xml - "id('bar')" - - - Error Cases Regression Tests - errors - errors - - - Error Cases Stream Regression Tests - errors - errors - str - --stream - - - Reader Regression Tests - rdr - --nonet - --debug - --stream - * - None - - - Walker Regression Tests - rdr - --nonet - --debug - --walker - * - None - - - Reader Entities Substitution Regression Tests - rde - --nonet - --debug - --stream - --noent - * - None - - - SAX Callbacks Regression Tests - testSAX - sax - * - utf16*.xml - None - - - XML Push Regression Tests - --push - failed to load external entity - - - HTML Regression Tests - testHTML - HTML - HTML - * - wired.html - - - Push HTML Regression Tests - testHTML - --push - HTML - HTML - * - - - HTML SAX Regression Tests - testHTML - --sax - HTML - HTML - sax - None - * - - - Push HTML SAX Regression Tests - testHTML - --sax - --push - HTML - HTML - sax - None - * - - - Valid Documents Regression Tests - VCM - VCM - None - None - * - --valid - --noout - --nowarning - - - Validity Checking Regression Tests - VC - VC - None - - * - --valid - --noout - - - General Documents Valid Regression Tests - valid - valid - * - --valid - - - URI Module Regression Tests (1) - testURI - URI - - URI - None - *.data - - -base "http://foo.com/path/to/index.html?orig#help" - - - URI Module Regression Tests (2) - testURI - URI - - URI - None - *.uri - - - XPath Regression Tests (1) - testXPath - XPath/expr - XPath/expr - * - -f - --expr - - - XInclude Regression Tests - XInclude/docs - XInclude - * - --nowarning - --xinclude - - - XInclude xmlReader Regression Tests - XInclude/docs - XInclude - rdr - * - --nowarning - --xinclude - --stream - --debug - - diff --git a/src/tools/docbook/libxml2/testAutomata.c b/src/tools/docbook/libxml2/testAutomata.c deleted file mode 100644 index a3969b141b..0000000000 --- a/src/tools/docbook/libxml2/testAutomata.c +++ /dev/null @@ -1,309 +0,0 @@ -/* - * testRegexp.c: simple module for testing regular expressions - * - * See Copyright for the status of this software. - * - * Daniel Veillard - */ - -#include -#include "libxml.h" -#ifdef LIBXML_AUTOMATA_ENABLED - -#include -#include - -static int scanNumber(char **ptr) { - int ret = 0; - char *cur; - - cur = *ptr; - while ((*cur >= '0') && (*cur <= '9')) { - ret = ret * 10 + (*cur - '0'); - cur++; - } - *ptr = cur; - return(ret); -} - -static void -testRegexpFile(const char *filename) { - FILE *input; - char expr[5000]; - int len; - int ret; - int i; - xmlAutomataPtr am; - xmlAutomataStatePtr states[1000]; - xmlRegexpPtr regexp = NULL; - xmlRegExecCtxtPtr exec = NULL; - - for (i = 0;i<1000;i++) - states[i] = NULL; - - input = fopen(filename, "r"); - if (input == NULL) { - xmlGenericError(xmlGenericErrorContext, - "Cannot open %s for reading\n", filename); - return; - } - - am = xmlNewAutomata(); - if (am == NULL) { - xmlGenericError(xmlGenericErrorContext, - "Cannot create automata\n"); - fclose(input); - return; - } - states[0] = xmlAutomataGetInitState(am); - if (states[0] == NULL) { - xmlGenericError(xmlGenericErrorContext, - "Cannot get start state\n"); - xmlFreeAutomata(am); - fclose(input); - return; - } - ret = 0; - - while (fgets(expr, 4500, input) != NULL) { - if (expr[0] == '#') - continue; - len = strlen(expr); - len--; - while ((len >= 0) && - ((expr[len] == '\n') || (expr[len] == '\t') || - (expr[len] == '\r') || (expr[len] == ' '))) len--; - expr[len + 1] = 0; - if (len >= 0) { - if ((am != NULL) && (expr[0] == 't') && (expr[1] == ' ')) { - char *ptr = &expr[2]; - int from, to; - - from = scanNumber(&ptr); - if (*ptr != ' ') { - xmlGenericError(xmlGenericErrorContext, - "Bad line %s\n", expr); - break; - } - if (states[from] == NULL) - states[from] = xmlAutomataNewState(am); - ptr++; - to = scanNumber(&ptr); - if (*ptr != ' ') { - xmlGenericError(xmlGenericErrorContext, - "Bad line %s\n", expr); - break; - } - if (states[to] == NULL) - states[to] = xmlAutomataNewState(am); - ptr++; - xmlAutomataNewTransition(am, states[from], states[to], - BAD_CAST ptr, NULL); - } else if ((am != NULL) && (expr[0] == 'e') && (expr[1] == ' ')) { - char *ptr = &expr[2]; - int from, to; - - from = scanNumber(&ptr); - if (*ptr != ' ') { - xmlGenericError(xmlGenericErrorContext, - "Bad line %s\n", expr); - break; - } - if (states[from] == NULL) - states[from] = xmlAutomataNewState(am); - ptr++; - to = scanNumber(&ptr); - if (states[to] == NULL) - states[to] = xmlAutomataNewState(am); - xmlAutomataNewEpsilon(am, states[from], states[to]); - } else if ((am != NULL) && (expr[0] == 'f') && (expr[1] == ' ')) { - char *ptr = &expr[2]; - int state; - - state = scanNumber(&ptr); - if (states[state] == NULL) { - xmlGenericError(xmlGenericErrorContext, - "Bad state %d : %s\n", state, expr); - break; - } - xmlAutomataSetFinalState(am, states[state]); - } else if ((am != NULL) && (expr[0] == 'c') && (expr[1] == ' ')) { - char *ptr = &expr[2]; - int from, to; - int min, max; - - from = scanNumber(&ptr); - if (*ptr != ' ') { - xmlGenericError(xmlGenericErrorContext, - "Bad line %s\n", expr); - break; - } - if (states[from] == NULL) - states[from] = xmlAutomataNewState(am); - ptr++; - to = scanNumber(&ptr); - if (*ptr != ' ') { - xmlGenericError(xmlGenericErrorContext, - "Bad line %s\n", expr); - break; - } - if (states[to] == NULL) - states[to] = xmlAutomataNewState(am); - ptr++; - min = scanNumber(&ptr); - if (*ptr != ' ') { - xmlGenericError(xmlGenericErrorContext, - "Bad line %s\n", expr); - break; - } - ptr++; - max = scanNumber(&ptr); - if (*ptr != ' ') { - xmlGenericError(xmlGenericErrorContext, - "Bad line %s\n", expr); - break; - } - ptr++; - xmlAutomataNewCountTrans(am, states[from], states[to], - BAD_CAST ptr, min, max, NULL); - } else if ((am != NULL) && (expr[0] == '-') && (expr[1] == '-')) { - /* end of the automata */ - regexp = xmlAutomataCompile(am); - xmlFreeAutomata(am); - am = NULL; - if (regexp == NULL) { - xmlGenericError(xmlGenericErrorContext, - "Failed to compile the automata"); - break; - } - } else if ((expr[0] == '=') && (expr[1] == '>')) { - if (regexp == NULL) { - printf("=> failed not compiled\n"); - } else { - if (exec == NULL) - exec = xmlRegNewExecCtxt(regexp, NULL, NULL); - if (ret == 0) { - ret = xmlRegExecPushString(exec, NULL, NULL); - } - if (ret == 1) - printf("=> Passed\n"); - else if ((ret == 0) || (ret == -1)) - printf("=> Failed\n"); - else if (ret < 0) - printf("=> Error\n"); - xmlRegFreeExecCtxt(exec); - exec = NULL; - } - ret = 0; - } else if (regexp != NULL) { - if (exec == NULL) - exec = xmlRegNewExecCtxt(regexp, NULL, NULL); - ret = xmlRegExecPushString(exec, BAD_CAST expr, NULL); - } else { - xmlGenericError(xmlGenericErrorContext, - "Unexpected line %s\n", expr); - } - } - } - fclose(input); - if (regexp != NULL) - xmlRegFreeRegexp(regexp); - if (exec != NULL) - xmlRegFreeExecCtxt(exec); - if (am != NULL) - xmlFreeAutomata(am); -} - -int main(int argc, char **argv) { - - xmlInitMemory(); - - if (argc == 1) { - int ret; - xmlAutomataPtr am; - xmlAutomataStatePtr start, cur; - xmlRegexpPtr regexp; - xmlRegExecCtxtPtr exec; - - am = xmlNewAutomata(); - start = xmlAutomataGetInitState(am); - - /* generate a[ba]*a */ - cur = xmlAutomataNewTransition(am, start, NULL, BAD_CAST"a", NULL); - xmlAutomataNewTransition(am, cur, cur, BAD_CAST"b", NULL); - xmlAutomataNewTransition(am, cur, cur, BAD_CAST"a", NULL); - cur = xmlAutomataNewCountTrans(am, cur, NULL, BAD_CAST"a", 2, 3, NULL); - xmlAutomataSetFinalState(am, cur); - - /* compile it in a regexp and free the automata */ - regexp = xmlAutomataCompile(am); - xmlFreeAutomata(am); - - /* test the regexp */ - xmlRegexpPrint(stdout, regexp); - exec = xmlRegNewExecCtxt(regexp, NULL, NULL); - ret = xmlRegExecPushString(exec, BAD_CAST"a", NULL); - if (ret == 1) - printf("final\n"); - else if (ret < 0) - printf("error\n"); - ret =xmlRegExecPushString(exec, BAD_CAST"a", NULL); - if (ret == 1) - printf("final\n"); - else if (ret < 0) - printf("error\n"); - ret =xmlRegExecPushString(exec, BAD_CAST"b", NULL); - if (ret == 1) - printf("final\n"); - else if (ret < 0) - printf("error\n"); - ret =xmlRegExecPushString(exec, BAD_CAST"a", NULL); - if (ret == 1) - printf("final\n"); - else if (ret < 0) - printf("error\n"); - ret =xmlRegExecPushString(exec, BAD_CAST"a", NULL); - if (ret == 1) - printf("final\n"); - else if (ret < 0) - printf("error\n"); - ret =xmlRegExecPushString(exec, BAD_CAST"a", NULL); - if (ret == 1) - printf("final\n"); - else if (ret < 0) - printf("error\n"); - ret =xmlRegExecPushString(exec, BAD_CAST"a", NULL); - if (ret == 1) - printf("final\n"); - else if (ret < 0) - printf("error\n"); - if (ret == 0) { - ret = xmlRegExecPushString(exec, NULL, NULL); - if (ret == 1) - printf("final\n"); - else if (ret < 0) - printf("error\n"); - } - xmlRegFreeExecCtxt(exec); - - /* free the regexp */ - xmlRegFreeRegexp(regexp); - } else { - int i; - - for (i = 1;i < argc;i++) - testRegexpFile(argv[i]); - } - - xmlCleanupParser(); - xmlMemoryDump(); - return(0); -} - -#else -#include -int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { - printf("%s : Automata support not compiled in\n", argv[0]); - return(0); -} -#endif /* LIBXML_AUTOMATA_ENABLED */ diff --git a/src/tools/docbook/libxml2/testC14N.c b/src/tools/docbook/libxml2/testC14N.c deleted file mode 100644 index 674fc71e43..0000000000 --- a/src/tools/docbook/libxml2/testC14N.c +++ /dev/null @@ -1,357 +0,0 @@ -/* - * Canonical XML implementation test program - * (http://www.w3.org/TR/2001/REC-xml-c14n-20010315) - * - * See Copyright for the status of this software. - * - * Author: Aleksey Sanin - */ -#include "libxml.h" -#if defined(LIBXML_C14N_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - -#include -#include -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_STDLIB_H -#include -#endif - -#include -#include -#include -#include - -#include - - -static void usage(const char *name) { - fprintf(stderr, - "Usage: %s [] []\n", - name); - fprintf(stderr, "where is one of following:\n"); - fprintf(stderr, - "--with-comments \t XML file canonization w comments\n"); - fprintf(stderr, - "--without-comments \t XML file canonization w/o comments\n"); - fprintf(stderr, - "--exc-with-comments \t Exclusive XML file canonization w comments\n"); - fprintf(stderr, - "--exc-without-comments\t Exclusive XML file canonization w/o comments\n"); -} - -static xmlXPathObjectPtr -load_xpath_expr (xmlDocPtr parent_doc, const char* filename); - -static xmlChar **parse_list(xmlChar *str); - -/* static void print_xpath_nodes(xmlNodeSetPtr nodes); */ - -static int -test_c14n(const char* xml_filename, int with_comments, int exclusive, - const char* xpath_filename, xmlChar **inclusive_namespaces) { - xmlDocPtr doc; - xmlXPathObjectPtr xpath = NULL; - xmlChar *result = NULL; - int ret; - - /* - * build an XML tree from a the file; we need to add default - * attributes and resolve all character and entities references - */ - xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS; - xmlSubstituteEntitiesDefault(1); - - doc = xmlReadFile(xml_filename, NULL, XML_PARSE_DTDATTR | XML_PARSE_NOENT); - if (doc == NULL) { - fprintf(stderr, "Error: unable to parse file \"%s\"\n", xml_filename); - return(-1); - } - - /* - * Check the document is of the right kind - */ - if(xmlDocGetRootElement(doc) == NULL) { - fprintf(stderr,"Error: empty document for file \"%s\"\n", xml_filename); - xmlFreeDoc(doc); - return(-1); - } - - /* - * load xpath file if specified - */ - if(xpath_filename) { - xpath = load_xpath_expr(doc, xpath_filename); - if(xpath == NULL) { - fprintf(stderr,"Error: unable to evaluate xpath expression\n"); - xmlFreeDoc(doc); - return(-1); - } - } - - /* - * Canonical form - */ - /* fprintf(stderr,"File \"%s\" loaded: start canonization\n", xml_filename); */ - ret = xmlC14NDocDumpMemory(doc, - (xpath) ? xpath->nodesetval : NULL, - exclusive, inclusive_namespaces, - with_comments, &result); - if(ret >= 0) { - if(result != NULL) { - write(1, result, ret); - xmlFree(result); - } - } else { - fprintf(stderr,"Error: failed to canonicalize XML file \"%s\" (ret=%d)\n", xml_filename, ret); - if(result != NULL) xmlFree(result); - xmlFreeDoc(doc); - return(-1); - } - - /* - * Cleanup - */ - if(xpath != NULL) xmlXPathFreeObject(xpath); - xmlFreeDoc(doc); - - return(ret); -} - -int main(int argc, char **argv) { - int ret = -1; - - /* - * Init libxml - */ - xmlInitParser(); - LIBXML_TEST_VERSION - - /* - * Parse command line and process file - */ - if( argc < 3 ) { - fprintf(stderr, "Error: wrong number of arguments.\n"); - usage(argv[0]); - } else if(strcmp(argv[1], "--with-comments") == 0) { - ret = test_c14n(argv[2], 1, 0, (argc > 3) ? argv[3] : NULL, NULL); - } else if(strcmp(argv[1], "--without-comments") == 0) { - ret = test_c14n(argv[2], 0, 0, (argc > 3) ? argv[3] : NULL, NULL); - } else if(strcmp(argv[1], "--exc-with-comments") == 0) { - xmlChar **list; - - /* load exclusive namespace from command line */ - list = (argc > 4) ? parse_list((xmlChar *)argv[4]) : NULL; - ret = test_c14n(argv[2], 1, 1, (argc > 3) ? argv[3] : NULL, list); - if(list != NULL) xmlFree(list); - } else if(strcmp(argv[1], "--exc-without-comments") == 0) { - xmlChar **list; - - /* load exclusive namespace from command line */ - list = (argc > 4) ? parse_list((xmlChar *)argv[4]) : NULL; - ret = test_c14n(argv[2], 0, 1, (argc > 3) ? argv[3] : NULL, list); - if(list != NULL) xmlFree(list); - } else { - fprintf(stderr, "Error: bad option.\n"); - usage(argv[0]); - } - - /* - * Shutdown libxml - */ - xmlCleanupParser(); - xmlMemoryDump(); - - return((ret >= 0) ? 0 : 1); -} - -/* - * Macro used to grow the current buffer. - */ -#define growBufferReentrant() { \ - buffer_size *= 2; \ - buffer = (xmlChar **) \ - xmlRealloc(buffer, buffer_size * sizeof(xmlChar*)); \ - if (buffer == NULL) { \ - perror("realloc failed"); \ - return(NULL); \ - } \ -} - -static xmlChar ** -parse_list(xmlChar *str) { - xmlChar **buffer; - xmlChar **out = NULL; - int buffer_size = 0; - int len; - - if(str == NULL) { - return(NULL); - } - - len = xmlStrlen(str); - if((str[0] == '\'') && (str[len - 1] == '\'')) { - str[len - 1] = '\0'; - str++; - len -= 2; - } - /* - * allocate an translation buffer. - */ - buffer_size = 1000; - buffer = (xmlChar **) xmlMalloc(buffer_size * sizeof(xmlChar*)); - if (buffer == NULL) { - perror("malloc failed"); - return(NULL); - } - out = buffer; - - while(*str != '\0') { - if (out - buffer > buffer_size - 10) { - int indx = out - buffer; - - growBufferReentrant(); - out = &buffer[indx]; - } - (*out++) = str; - while(*str != ',' && *str != '\0') ++str; - if(*str == ',') *(str++) = '\0'; - } - (*out) = NULL; - return buffer; -} - -static xmlXPathObjectPtr -load_xpath_expr (xmlDocPtr parent_doc, const char* filename) { - xmlXPathObjectPtr xpath; - xmlDocPtr doc; - xmlChar *expr; - xmlXPathContextPtr ctx; - xmlNodePtr node; - xmlNsPtr ns; - - /* - * load XPath expr as a file - */ - xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS; - xmlSubstituteEntitiesDefault(1); - - doc = xmlReadFile(filename, NULL, XML_PARSE_DTDATTR | XML_PARSE_NOENT); - if (doc == NULL) { - fprintf(stderr, "Error: unable to parse file \"%s\"\n", filename); - return(NULL); - } - - /* - * Check the document is of the right kind - */ - if(xmlDocGetRootElement(doc) == NULL) { - fprintf(stderr,"Error: empty document for file \"%s\"\n", filename); - xmlFreeDoc(doc); - return(NULL); - } - - node = doc->children; - while(node != NULL && !xmlStrEqual(node->name, (const xmlChar *)"XPath")) { - node = node->next; - } - - if(node == NULL) { - fprintf(stderr,"Error: XPath element expected in the file \"%s\"\n", filename); - xmlFreeDoc(doc); - return(NULL); - } - - expr = xmlNodeGetContent(node); - if(expr == NULL) { - fprintf(stderr,"Error: XPath content element is NULL \"%s\"\n", filename); - xmlFreeDoc(doc); - return(NULL); - } - - ctx = xmlXPathNewContext(parent_doc); - if(ctx == NULL) { - fprintf(stderr,"Error: unable to create new context\n"); - xmlFree(expr); - xmlFreeDoc(doc); - return(NULL); - } - - /* - * Register namespaces - */ - ns = node->nsDef; - while(ns != NULL) { - if(xmlXPathRegisterNs(ctx, ns->prefix, ns->href) != 0) { - fprintf(stderr,"Error: unable to register NS with prefix=\"%s\" and href=\"%s\"\n", ns->prefix, ns->href); - xmlFree(expr); - xmlXPathFreeContext(ctx); - xmlFreeDoc(doc); - return(NULL); - } - ns = ns->next; - } - - /* - * Evaluate xpath - */ - xpath = xmlXPathEvalExpression(expr, ctx); - if(xpath == NULL) { - fprintf(stderr,"Error: unable to evaluate xpath expression\n"); - xmlFree(expr); - xmlXPathFreeContext(ctx); - xmlFreeDoc(doc); - return(NULL); - } - - /* print_xpath_nodes(xpath->nodesetval); */ - - xmlFree(expr); - xmlXPathFreeContext(ctx); - xmlFreeDoc(doc); - return(xpath); -} - -/* -static void -print_xpath_nodes(xmlNodeSetPtr nodes) { - xmlNodePtr cur; - int i; - - if(nodes == NULL ){ - fprintf(stderr, "Error: no nodes set defined\n"); - return; - } - - fprintf(stderr, "Nodes Set:\n-----\n"); - for(i = 0; i < nodes->nodeNr; ++i) { - if(nodes->nodeTab[i]->type == XML_NAMESPACE_DECL) { - xmlNsPtr ns; - - ns = (xmlNsPtr)nodes->nodeTab[i]; - cur = (xmlNodePtr)ns->next; - fprintf(stderr, "namespace \"%s\"=\"%s\" for node %s:%s\n", - ns->prefix, ns->href, - (cur->ns) ? cur->ns->prefix : BAD_CAST "", cur->name); - } else if(nodes->nodeTab[i]->type == XML_ELEMENT_NODE) { - cur = nodes->nodeTab[i]; - fprintf(stderr, "element node \"%s:%s\"\n", - (cur->ns) ? cur->ns->prefix : BAD_CAST "", cur->name); - } else { - cur = nodes->nodeTab[i]; - fprintf(stderr, "node \"%s\": type %d\n", cur->name, cur->type); - } - } -} -*/ - -#else -#include -int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { - printf("%s : XPath/Canonicalization and output support not compiled in\n", argv[0]); - return(0); -} -#endif /* LIBXML_C14N_ENABLED */ - - diff --git a/src/tools/docbook/libxml2/testHTML.c b/src/tools/docbook/libxml2/testHTML.c deleted file mode 100644 index f350342d02..0000000000 --- a/src/tools/docbook/libxml2/testHTML.c +++ /dev/null @@ -1,880 +0,0 @@ -/* - * testHTML.c : a small tester program for HTML input. - * - * See Copyright for the status of this software. - * - * daniel@veillard.com - */ - -#include "libxml.h" - -#ifdef LIBXML_HTML_ENABLED - -#include -#include - - -#ifdef HAVE_SYS_TYPES_H -#include -#endif -#ifdef HAVE_SYS_STAT_H -#include -#endif -#ifdef HAVE_FCNTL_H -#include -#endif -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_STDLIB_H -#include -#endif - -#include -#include -#include -#include -#include -#include - -#ifdef LIBXML_DEBUG_ENABLED -static int debug = 0; -#endif -static int copy = 0; -static int sax = 0; -static int repeat = 0; -static int noout = 0; -#ifdef LIBXML_PUSH_ENABLED -static int push = 0; -#endif /* LIBXML_PUSH_ENABLED */ -static char *encoding = NULL; -static int options = 0; - -static xmlSAXHandler emptySAXHandlerStruct = { - NULL, /* internalSubset */ - NULL, /* isStandalone */ - NULL, /* hasInternalSubset */ - NULL, /* hasExternalSubset */ - NULL, /* resolveEntity */ - NULL, /* getEntity */ - NULL, /* entityDecl */ - NULL, /* notationDecl */ - NULL, /* attributeDecl */ - NULL, /* elementDecl */ - NULL, /* unparsedEntityDecl */ - NULL, /* setDocumentLocator */ - NULL, /* startDocument */ - NULL, /* endDocument */ - NULL, /* startElement */ - NULL, /* endElement */ - NULL, /* reference */ - NULL, /* characters */ - NULL, /* ignorableWhitespace */ - NULL, /* processingInstruction */ - NULL, /* comment */ - NULL, /* xmlParserWarning */ - NULL, /* xmlParserError */ - NULL, /* xmlParserError */ - NULL, /* getParameterEntity */ - NULL, /* cdataBlock */ - NULL, /* externalSubset */ - 1, /* initialized */ - NULL, /* private */ - NULL, /* startElementNsSAX2Func */ - NULL, /* endElementNsSAX2Func */ - NULL /* xmlStructuredErrorFunc */ -}; - -static xmlSAXHandlerPtr emptySAXHandler = &emptySAXHandlerStruct; -extern xmlSAXHandlerPtr debugSAXHandler; - -/************************************************************************ - * * - * Debug Handlers * - * * - ************************************************************************/ - -/** - * isStandaloneDebug: - * @ctxt: An XML parser context - * - * Is this document tagged standalone ? - * - * Returns 1 if true - */ -static int -isStandaloneDebug(void *ctx ATTRIBUTE_UNUSED) -{ - fprintf(stdout, "SAX.isStandalone()\n"); - return(0); -} - -/** - * hasInternalSubsetDebug: - * @ctxt: An XML parser context - * - * Does this document has an internal subset - * - * Returns 1 if true - */ -static int -hasInternalSubsetDebug(void *ctx ATTRIBUTE_UNUSED) -{ - fprintf(stdout, "SAX.hasInternalSubset()\n"); - return(0); -} - -/** - * hasExternalSubsetDebug: - * @ctxt: An XML parser context - * - * Does this document has an external subset - * - * Returns 1 if true - */ -static int -hasExternalSubsetDebug(void *ctx ATTRIBUTE_UNUSED) -{ - fprintf(stdout, "SAX.hasExternalSubset()\n"); - return(0); -} - -/** - * hasInternalSubsetDebug: - * @ctxt: An XML parser context - * - * Does this document has an internal subset - */ -static void -internalSubsetDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, - const xmlChar *ExternalID, const xmlChar *SystemID) -{ - fprintf(stdout, "SAX.internalSubset(%s,", name); - if (ExternalID == NULL) - fprintf(stdout, " ,"); - else - fprintf(stdout, " %s,", ExternalID); - if (SystemID == NULL) - fprintf(stdout, " )\n"); - else - fprintf(stdout, " %s)\n", SystemID); -} - -/** - * resolveEntityDebug: - * @ctxt: An XML parser context - * @publicId: The public ID of the entity - * @systemId: The system ID of the entity - * - * Special entity resolver, better left to the parser, it has - * more context than the application layer. - * The default behaviour is to NOT resolve the entities, in that case - * the ENTITY_REF nodes are built in the structure (and the parameter - * values). - * - * Returns the xmlParserInputPtr if inlined or NULL for DOM behaviour. - */ -static xmlParserInputPtr -resolveEntityDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *publicId, const xmlChar *systemId) -{ - /* xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; */ - - - fprintf(stdout, "SAX.resolveEntity("); - if (publicId != NULL) - fprintf(stdout, "%s", (char *)publicId); - else - fprintf(stdout, " "); - if (systemId != NULL) - fprintf(stdout, ", %s)\n", (char *)systemId); - else - fprintf(stdout, ", )\n"); -/********* - if (systemId != NULL) { - return(xmlNewInputFromFile(ctxt, (char *) systemId)); - } - *********/ - return(NULL); -} - -/** - * getEntityDebug: - * @ctxt: An XML parser context - * @name: The entity name - * - * Get an entity by name - * - * Returns the xmlParserInputPtr if inlined or NULL for DOM behaviour. - */ -static xmlEntityPtr -getEntityDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name) -{ - fprintf(stdout, "SAX.getEntity(%s)\n", name); - return(NULL); -} - -/** - * getParameterEntityDebug: - * @ctxt: An XML parser context - * @name: The entity name - * - * Get a parameter entity by name - * - * Returns the xmlParserInputPtr - */ -static xmlEntityPtr -getParameterEntityDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name) -{ - fprintf(stdout, "SAX.getParameterEntity(%s)\n", name); - return(NULL); -} - - -/** - * entityDeclDebug: - * @ctxt: An XML parser context - * @name: the entity name - * @type: the entity type - * @publicId: The public ID of the entity - * @systemId: The system ID of the entity - * @content: the entity value (without processing). - * - * An entity definition has been parsed - */ -static void -entityDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, int type, - const xmlChar *publicId, const xmlChar *systemId, xmlChar *content) -{ - fprintf(stdout, "SAX.entityDecl(%s, %d, %s, %s, %s)\n", - name, type, publicId, systemId, content); -} - -/** - * attributeDeclDebug: - * @ctxt: An XML parser context - * @name: the attribute name - * @type: the attribute type - * - * An attribute definition has been parsed - */ -static void -attributeDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *elem, const xmlChar *name, - int type, int def, const xmlChar *defaultValue, - xmlEnumerationPtr tree ATTRIBUTE_UNUSED) -{ - fprintf(stdout, "SAX.attributeDecl(%s, %s, %d, %d, %s, ...)\n", - elem, name, type, def, defaultValue); -} - -/** - * elementDeclDebug: - * @ctxt: An XML parser context - * @name: the element name - * @type: the element type - * @content: the element value (without processing). - * - * An element definition has been parsed - */ -static void -elementDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, int type, - xmlElementContentPtr content ATTRIBUTE_UNUSED) -{ - fprintf(stdout, "SAX.elementDecl(%s, %d, ...)\n", - name, type); -} - -/** - * notationDeclDebug: - * @ctxt: An XML parser context - * @name: The name of the notation - * @publicId: The public ID of the entity - * @systemId: The system ID of the entity - * - * What to do when a notation declaration has been parsed. - */ -static void -notationDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, - const xmlChar *publicId, const xmlChar *systemId) -{ - fprintf(stdout, "SAX.notationDecl(%s, %s, %s)\n", - (char *) name, (char *) publicId, (char *) systemId); -} - -/** - * unparsedEntityDeclDebug: - * @ctxt: An XML parser context - * @name: The name of the entity - * @publicId: The public ID of the entity - * @systemId: The system ID of the entity - * @notationName: the name of the notation - * - * What to do when an unparsed entity declaration is parsed - */ -static void -unparsedEntityDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, - const xmlChar *publicId, const xmlChar *systemId, - const xmlChar *notationName) -{ - fprintf(stdout, "SAX.unparsedEntityDecl(%s, %s, %s, %s)\n", - (char *) name, (char *) publicId, (char *) systemId, - (char *) notationName); -} - -/** - * setDocumentLocatorDebug: - * @ctxt: An XML parser context - * @loc: A SAX Locator - * - * Receive the document locator at startup, actually xmlDefaultSAXLocator - * Everything is available on the context, so this is useless in our case. - */ -static void -setDocumentLocatorDebug(void *ctx ATTRIBUTE_UNUSED, xmlSAXLocatorPtr loc ATTRIBUTE_UNUSED) -{ - fprintf(stdout, "SAX.setDocumentLocator()\n"); -} - -/** - * startDocumentDebug: - * @ctxt: An XML parser context - * - * called when the document start being processed. - */ -static void -startDocumentDebug(void *ctx ATTRIBUTE_UNUSED) -{ - fprintf(stdout, "SAX.startDocument()\n"); -} - -/** - * endDocumentDebug: - * @ctxt: An XML parser context - * - * called when the document end has been detected. - */ -static void -endDocumentDebug(void *ctx ATTRIBUTE_UNUSED) -{ - fprintf(stdout, "SAX.endDocument()\n"); -} - -/** - * startElementDebug: - * @ctxt: An XML parser context - * @name: The element name - * - * called when an opening tag has been processed. - */ -static void -startElementDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, const xmlChar **atts) -{ - int i; - - fprintf(stdout, "SAX.startElement(%s", (char *) name); - if (atts != NULL) { - for (i = 0;(atts[i] != NULL);i++) { - fprintf(stdout, ", %s", atts[i++]); - if (atts[i] != NULL) { - unsigned char output[40]; - const unsigned char *att = atts[i]; - int outlen, attlen; - fprintf(stdout, "='"); - while ((attlen = strlen((char*)att)) > 0) { - outlen = sizeof output - 1; - htmlEncodeEntities(output, &outlen, att, &attlen, '\''); - output[outlen] = 0; - fprintf(stdout, "%s", (char *) output); - att += attlen; - } - fprintf(stdout, "'"); - } - } - } - fprintf(stdout, ")\n"); -} - -/** - * endElementDebug: - * @ctxt: An XML parser context - * @name: The element name - * - * called when the end of an element has been detected. - */ -static void -endElementDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name) -{ - fprintf(stdout, "SAX.endElement(%s)\n", (char *) name); -} - -/** - * charactersDebug: - * @ctxt: An XML parser context - * @ch: a xmlChar string - * @len: the number of xmlChar - * - * receiving some chars from the parser. - * Question: how much at a time ??? - */ -static void -charactersDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch, int len) -{ - unsigned char output[40]; - int inlen = len, outlen = 30; - - htmlEncodeEntities(output, &outlen, ch, &inlen, 0); - output[outlen] = 0; - - fprintf(stdout, "SAX.characters(%s, %d)\n", output, len); -} - -/** - * cdataDebug: - * @ctxt: An XML parser context - * @ch: a xmlChar string - * @len: the number of xmlChar - * - * receiving some cdata chars from the parser. - * Question: how much at a time ??? - */ -static void -cdataDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch, int len) -{ - unsigned char output[40]; - int inlen = len, outlen = 30; - - htmlEncodeEntities(output, &outlen, ch, &inlen, 0); - output[outlen] = 0; - - fprintf(stdout, "SAX.cdata(%s, %d)\n", output, len); -} - -/** - * referenceDebug: - * @ctxt: An XML parser context - * @name: The entity name - * - * called when an entity reference is detected. - */ -static void -referenceDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name) -{ - fprintf(stdout, "SAX.reference(%s)\n", name); -} - -/** - * ignorableWhitespaceDebug: - * @ctxt: An XML parser context - * @ch: a xmlChar string - * @start: the first char in the string - * @len: the number of xmlChar - * - * receiving some ignorable whitespaces from the parser. - * Question: how much at a time ??? - */ -static void -ignorableWhitespaceDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch, int len) -{ - char output[40]; - int i; - - for (i = 0;(i 0) { - ctxt = htmlCreatePushParserCtxt(emptySAXHandler, NULL, - chars, res, filename, XML_CHAR_ENCODING_NONE); - while ((res = fread(chars, 1, size, f)) > 0) { - htmlParseChunk(ctxt, chars, res, 0); - } - htmlParseChunk(ctxt, chars, 0, 1); - doc = ctxt->myDoc; - htmlFreeParserCtxt(ctxt); - } - if (doc != NULL) { - fprintf(stdout, "htmlSAXParseFile returned non-NULL\n"); - xmlFreeDoc(doc); - } - fclose(f); - } - if (!noout) { -#if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__) - f = fopen(filename, "rb"); -#else - f = fopen(filename, "r"); -#endif - if (f != NULL) { - int res, size = 3; - char chars[4096]; - htmlParserCtxtPtr ctxt; - - /* if (repeat) */ - size = 4096; - res = fread(chars, 1, 4, f); - if (res > 0) { - ctxt = htmlCreatePushParserCtxt(debugSAXHandler, NULL, - chars, res, filename, XML_CHAR_ENCODING_NONE); - while ((res = fread(chars, 1, size, f)) > 0) { - htmlParseChunk(ctxt, chars, res, 0); - } - htmlParseChunk(ctxt, chars, 0, 1); - doc = ctxt->myDoc; - htmlFreeParserCtxt(ctxt); - } - if (doc != NULL) { - fprintf(stdout, "htmlSAXParseFile returned non-NULL\n"); - xmlFreeDoc(doc); - } - fclose(f); - } - } - } else { -#endif /* LIBXML_PUSH_ENABLED */ - doc = htmlSAXParseFile(filename, NULL, emptySAXHandler, NULL); - if (doc != NULL) { - fprintf(stdout, "htmlSAXParseFile returned non-NULL\n"); - xmlFreeDoc(doc); - } - - if (!noout) { - /* - * Debug callback - */ - doc = htmlSAXParseFile(filename, NULL, debugSAXHandler, NULL); - if (doc != NULL) { - fprintf(stdout, "htmlSAXParseFile returned non-NULL\n"); - xmlFreeDoc(doc); - } - } -#ifdef LIBXML_PUSH_ENABLED - } -#endif /* LIBXML_PUSH_ENABLED */ -} - -static void -parseAndPrintFile(char *filename) { - htmlDocPtr doc = NULL; - - /* - * build an HTML tree from a string; - */ -#ifdef LIBXML_PUSH_ENABLED - if (push) { - FILE *f; - -#if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__) - f = fopen(filename, "rb"); -#else - f = fopen(filename, "r"); -#endif - if (f != NULL) { - int res, size = 3; - char chars[4096]; - htmlParserCtxtPtr ctxt; - - /* if (repeat) */ - size = 4096; - res = fread(chars, 1, 4, f); - if (res > 0) { - ctxt = htmlCreatePushParserCtxt(NULL, NULL, - chars, res, filename, XML_CHAR_ENCODING_NONE); - while ((res = fread(chars, 1, size, f)) > 0) { - htmlParseChunk(ctxt, chars, res, 0); - } - htmlParseChunk(ctxt, chars, 0, 1); - doc = ctxt->myDoc; - htmlFreeParserCtxt(ctxt); - } - fclose(f); - } - } else { - doc = htmlReadFile(filename, NULL, options); - } -#else - doc = htmlReadFile(filename,NULL,options); -#endif - if (doc == NULL) { - xmlGenericError(xmlGenericErrorContext, - "Could not parse %s\n", filename); - } - -#ifdef LIBXML_TREE_ENABLED - /* - * test intermediate copy if needed. - */ - if (copy) { - htmlDocPtr tmp; - - tmp = doc; - doc = xmlCopyDoc(doc, 1); - xmlFreeDoc(tmp); - } -#endif - -#ifdef LIBXML_OUTPUT_ENABLED - /* - * print it. - */ - if (!noout) { -#ifdef LIBXML_DEBUG_ENABLED - if (!debug) { - if (encoding) - htmlSaveFileEnc("-", doc, encoding); - else - htmlDocDump(stdout, doc); - } else - xmlDebugDumpDocument(stdout, doc); -#else - if (encoding) - htmlSaveFileEnc("-", doc, encoding); - else - htmlDocDump(stdout, doc); -#endif - } -#endif /* LIBXML_OUTPUT_ENABLED */ - - /* - * free it. - */ - xmlFreeDoc(doc); -} - -int main(int argc, char **argv) { - int i, count; - int files = 0; - - for (i = 1; i < argc ; i++) { -#ifdef LIBXML_DEBUG_ENABLED - if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug"))) - debug++; - else -#endif - if ((!strcmp(argv[i], "-copy")) || (!strcmp(argv[i], "--copy"))) - copy++; -#ifdef LIBXML_PUSH_ENABLED - else if ((!strcmp(argv[i], "-push")) || (!strcmp(argv[i], "--push"))) - push++; -#endif /* LIBXML_PUSH_ENABLED */ - else if ((!strcmp(argv[i], "-sax")) || (!strcmp(argv[i], "--sax"))) - sax++; - else if ((!strcmp(argv[i], "-noout")) || (!strcmp(argv[i], "--noout"))) - noout++; - else if ((!strcmp(argv[i], "-repeat")) || - (!strcmp(argv[i], "--repeat"))) - repeat++; - else if ((!strcmp(argv[i], "-encode")) || - (!strcmp(argv[i], "--encode"))) { - i++; - encoding = argv[i]; - } - } - for (i = 1; i < argc ; i++) { - if ((!strcmp(argv[i], "-encode")) || - (!strcmp(argv[i], "--encode"))) { - i++; - continue; - } - if (argv[i][0] != '-') { - if (repeat) { - for (count = 0;count < 100 * repeat;count++) { - if (sax) - parseSAXFile(argv[i]); - else - parseAndPrintFile(argv[i]); - } - } else { - if (sax) - parseSAXFile(argv[i]); - else - parseAndPrintFile(argv[i]); - } - files ++; - } - } - if (files == 0) { - printf("Usage : %s [--debug] [--copy] [--copy] HTMLfiles ...\n", - argv[0]); - printf("\tParse the HTML files and output the result of the parsing\n"); -#ifdef LIBXML_DEBUG_ENABLED - printf("\t--debug : dump a debug tree of the in-memory document\n"); -#endif - printf("\t--copy : used to test the internal copy implementation\n"); - printf("\t--sax : debug the sequence of SAX callbacks\n"); - printf("\t--repeat : parse the file 100 times, for timing\n"); - printf("\t--noout : do not print the result\n"); -#ifdef LIBXML_PUSH_ENABLED - printf("\t--push : use the push mode parser\n"); -#endif /* LIBXML_PUSH_ENABLED */ - printf("\t--encode encoding : output in the given encoding\n"); - } - xmlCleanupParser(); - xmlMemoryDump(); - - return(0); -} -#else /* !LIBXML_HTML_ENABLED */ -#include -int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { - printf("%s : HTML support not compiled in\n", argv[0]); - return(0); -} -#endif diff --git a/src/tools/docbook/libxml2/testModule.c b/src/tools/docbook/libxml2/testModule.c deleted file mode 100644 index fecc852373..0000000000 --- a/src/tools/docbook/libxml2/testModule.c +++ /dev/null @@ -1,73 +0,0 @@ -/* - * testModule.c : a small tester program for xmlModule - * - * See Copyright for the status of this software. - * - * joelwreed@comcast.net - */ - -#include "libxml.h" -#ifdef LIBXML_MODULES_ENABLED -#include - -#include -#include -#include -#include - -#include -#include -#include - -#ifdef _WIN32 -#define MODULE_PATH "." -#include /* for _MAX_PATH */ -#ifndef __MINGW32__ -#define PATH_MAX _MAX_PATH -#endif -#else -#define MODULE_PATH ".libs" -#endif - -typedef int (*hello_world_t)(void); - -int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { - xmlChar filename[PATH_MAX]; - xmlModulePtr module = NULL; - hello_world_t hello_world = NULL; - - /* build the module filename, and confirm the module exists */ - xmlStrPrintf(filename, sizeof(filename), - (const xmlChar*) "%s/testdso%s", - (const xmlChar*)MODULE_PATH, - (const xmlChar*)LIBXML_MODULE_EXTENSION); - - module = xmlModuleOpen((const char*)filename, 0); - if (module) - { - if (xmlModuleSymbol(module, "hello_world", (void **) &hello_world)) { - fprintf(stderr, "Failure to lookup\n"); - return(1); - } - if (hello_world == NULL) { - fprintf(stderr, "Lookup returned NULL\n"); - return(1); - } - - (*hello_world)(); - - xmlModuleClose(module); - } - - xmlMemoryDump(); - - return(0); -} - -#else -#include -int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { - printf("%s : Module support not compiled in\n", argv[0]); - return(0); -} -#endif /* LIBXML_SCHEMAS_ENABLED */ diff --git a/src/tools/docbook/libxml2/testReader.c b/src/tools/docbook/libxml2/testReader.c deleted file mode 100644 index 8f8e26d5b7..0000000000 --- a/src/tools/docbook/libxml2/testReader.c +++ /dev/null @@ -1,145 +0,0 @@ -/* - * testSAX.c : a small tester program for parsing using the SAX API. - * - * See Copyright for the status of this software. - * - * daniel@veillard.com - */ - -#include "libxml.h" - -#ifdef LIBXML_READER_ENABLED -#include -#include - -#ifdef HAVE_SYS_TYPES_H -#include -#endif -#ifdef HAVE_SYS_STAT_H -#include -#endif -#ifdef HAVE_FCNTL_H -#include -#endif -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_STDLIB_H -#include -#endif -#ifdef HAVE_STRING_H -#include -#endif - - -#include - -static int debug = 0; -static int dump = 0; -static int noent = 0; -static int count = 0; -static int valid = 0; -static int consumed = 0; - -static void usage(const char *progname) { - printf("Usage : %s [options] XMLfiles ...\n", progname); - printf("\tParse the XML files using the xmlTextReader API\n"); - printf("\t --count: count the number of attribute and elements\n"); - printf("\t --valid: validate the document\n"); - printf("\t --consumed: count the number of bytes consumed\n"); - exit(1); -} -static int elem, attrs; - -static void processNode(xmlTextReaderPtr reader) { - int type; - - type = xmlTextReaderNodeType(reader); - if (count) { - if (type == 1) { - elem++; - attrs += xmlTextReaderAttributeCount(reader); - } - } -} - -static void handleFile(const char *filename) { - xmlTextReaderPtr reader; - int ret; - - if (count) { - elem = 0; - attrs = 0; - } - - reader = xmlNewTextReaderFilename(filename); - if (reader != NULL) { - if (valid) - xmlTextReaderSetParserProp(reader, XML_PARSER_VALIDATE, 1); - - /* - * Process all nodes in sequence - */ - ret = xmlTextReaderRead(reader); - while (ret == 1) { - processNode(reader); - ret = xmlTextReaderRead(reader); - } - - /* - * Done, cleanup and status - */ - if (consumed) - printf("%ld bytes consumed by parser\n", xmlTextReaderByteConsumed(reader)); - xmlFreeTextReader(reader); - if (ret != 0) { - printf("%s : failed to parse\n", filename); - } else if (count) - printf("%s : %d elements, %d attributes\n", filename, elem, attrs); - } else { - fprintf(stderr, "Unable to open %s\n", filename); - } -} - -int main(int argc, char **argv) { - int i; - int files = 0; - - if (argc <= 1) { - usage(argv[0]); - return(1); - } - LIBXML_TEST_VERSION - for (i = 1; i < argc ; i++) { - if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug"))) - debug++; - else if ((!strcmp(argv[i], "-dump")) || (!strcmp(argv[i], "--dump"))) - dump++; - else if ((!strcmp(argv[i], "-count")) || (!strcmp(argv[i], "--count"))) - count++; - else if ((!strcmp(argv[i], "-consumed")) || (!strcmp(argv[i], "--consumed"))) - consumed++; - else if ((!strcmp(argv[i], "-valid")) || (!strcmp(argv[i], "--valid"))) - valid++; - else if ((!strcmp(argv[i], "-noent")) || - (!strcmp(argv[i], "--noent"))) - noent++; - } - if (noent != 0) xmlSubstituteEntitiesDefault(1); - for (i = 1; i < argc ; i++) { - if (argv[i][0] != '-') { - handleFile(argv[i]); - files ++; - } - } - xmlCleanupParser(); - xmlMemoryDump(); - - return(0); -} -#else -int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { - printf("%s : xmlReader parser support not compiled in\n", argv[0]); - return(0); -} -#endif /* LIBXML_READER_ENABLED */ diff --git a/src/tools/docbook/libxml2/testRegexp.c b/src/tools/docbook/libxml2/testRegexp.c deleted file mode 100644 index ff9c0fc81c..0000000000 --- a/src/tools/docbook/libxml2/testRegexp.c +++ /dev/null @@ -1,388 +0,0 @@ -/* - * testRegexp.c: simple module for testing regular expressions - * - * See Copyright for the status of this software. - * - * Daniel Veillard - */ - -#include -#include "libxml.h" -#ifdef LIBXML_REGEXP_ENABLED -#include -#include - -static int repeat = 0; -static int debug = 0; - -static void testRegexp(xmlRegexpPtr comp, const char *value) { - int ret; - - ret = xmlRegexpExec(comp, (const xmlChar *) value); - if (ret == 1) - printf("%s: Ok\n", value); - else if (ret == 0) - printf("%s: Fail\n", value); - else - printf("%s: Error: %d\n", value, ret); - if (repeat) { - int j; - for (j = 0;j < 999999;j++) - xmlRegexpExec(comp, (const xmlChar *) value); - } -} - -static void -testRegexpFile(const char *filename) { - xmlRegexpPtr comp = NULL; - FILE *input; - char expression[5000]; - int len; - - input = fopen(filename, "r"); - if (input == NULL) { - xmlGenericError(xmlGenericErrorContext, - "Cannot open %s for reading\n", filename); - return; - } - while (fgets(expression, 4500, input) != NULL) { - len = strlen(expression); - len--; - while ((len >= 0) && - ((expression[len] == '\n') || (expression[len] == '\t') || - (expression[len] == '\r') || (expression[len] == ' '))) len--; - expression[len + 1] = 0; - if (len >= 0) { - if (expression[0] == '#') - continue; - if ((expression[0] == '=') && (expression[1] == '>')) { - char *pattern = &expression[2]; - - if (comp != NULL) { - xmlRegFreeRegexp(comp); - comp = NULL; - } - printf("Regexp: %s\n", pattern) ; - comp = xmlRegexpCompile((const xmlChar *) pattern); - if (comp == NULL) { - printf(" failed to compile\n"); - break; - } - } else if (comp == NULL) { - printf("Regexp: %s\n", expression) ; - comp = xmlRegexpCompile((const xmlChar *) expression); - if (comp == NULL) { - printf(" failed to compile\n"); - break; - } - } else if (comp != NULL) { - testRegexp(comp, expression); - } - } - } - fclose(input); - if (comp != NULL) - xmlRegFreeRegexp(comp); -} - -#ifdef LIBXML_EXPR_ENABLED -static void -runFileTest(xmlExpCtxtPtr ctxt, const char *filename) { - xmlExpNodePtr expr = NULL, sub; - FILE *input; - char expression[5000]; - int len; - - input = fopen(filename, "r"); - if (input == NULL) { - xmlGenericError(xmlGenericErrorContext, - "Cannot open %s for reading\n", filename); - return; - } - while (fgets(expression, 4500, input) != NULL) { - len = strlen(expression); - len--; - while ((len >= 0) && - ((expression[len] == '\n') || (expression[len] == '\t') || - (expression[len] == '\r') || (expression[len] == ' '))) len--; - expression[len + 1] = 0; - if (len >= 0) { - if (expression[0] == '#') - continue; - if ((expression[0] == '=') && (expression[1] == '>')) { - char *str = &expression[2]; - - if (expr != NULL) { - xmlExpFree(ctxt, expr); - if (xmlExpCtxtNbNodes(ctxt) != 0) - printf(" Parse/free of Expression leaked %d\n", - xmlExpCtxtNbNodes(ctxt)); - expr = NULL; - } - printf("Expression: %s\n", str) ; - expr = xmlExpParse(ctxt, str); - if (expr == NULL) { - printf(" parsing Failed\n"); - break; - } - } else if (expr != NULL) { - int expect = -1; - int nodes1, nodes2; - - if (expression[0] == '0') - expect = 0; - if (expression[0] == '1') - expect = 1; - printf("Subexp: %s", expression + 2) ; - nodes1 = xmlExpCtxtNbNodes(ctxt); - sub = xmlExpParse(ctxt, expression + 2); - if (sub == NULL) { - printf(" parsing Failed\n"); - break; - } else { - int ret; - - nodes2 = xmlExpCtxtNbNodes(ctxt); - ret = xmlExpSubsume(ctxt, expr, sub); - - if ((expect == 1) && (ret == 1)) { - printf(" => accept, Ok\n"); - } else if ((expect == 0) && (ret == 0)) { - printf(" => reject, Ok\n"); - } else if ((expect == 1) && (ret == 0)) { - printf(" => reject, Failed\n"); - } else if ((expect == 0) && (ret == 1)) { - printf(" => accept, Failed\n"); - } else { - printf(" => fail internally\n"); - } - if (xmlExpCtxtNbNodes(ctxt) > nodes2) { - printf(" Subsume leaked %d\n", - xmlExpCtxtNbNodes(ctxt) - nodes2); - nodes1 += xmlExpCtxtNbNodes(ctxt) - nodes2; - } - xmlExpFree(ctxt, sub); - if (xmlExpCtxtNbNodes(ctxt) > nodes1) { - printf(" Parse/free leaked %d\n", - xmlExpCtxtNbNodes(ctxt) - nodes1); - } - } - - } - } - } - if (expr != NULL) { - xmlExpFree(ctxt, expr); - if (xmlExpCtxtNbNodes(ctxt) != 0) - printf(" Parse/free of Expression leaked %d\n", - xmlExpCtxtNbNodes(ctxt)); - } - fclose(input); -} - -static void -testReduce(xmlExpCtxtPtr ctxt, xmlExpNodePtr expr, const char *tst) { - xmlBufferPtr xmlExpBuf; - xmlExpNodePtr sub, deriv; - xmlExpBuf = xmlBufferCreate(); - - sub = xmlExpParse(ctxt, tst); - if (sub == NULL) { - printf("Subset %s failed to parse\n", tst); - return; - } - xmlExpDump(xmlExpBuf, sub); - printf("Subset parsed as: %s\n", - (const char *) xmlBufferContent(xmlExpBuf)); - deriv = xmlExpExpDerive(ctxt, expr, sub); - if (deriv == NULL) { - printf("Derivation led to an internal error, report this !\n"); - return; - } else { - xmlBufferEmpty(xmlExpBuf); - xmlExpDump(xmlExpBuf, deriv); - if (xmlExpIsNillable(deriv)) - printf("Resulting nillable derivation: %s\n", - (const char *) xmlBufferContent(xmlExpBuf)); - else - printf("Resulting derivation: %s\n", - (const char *) xmlBufferContent(xmlExpBuf)); - xmlExpFree(ctxt, deriv); - } - xmlExpFree(ctxt, sub); -} - -static void -exprDebug(xmlExpCtxtPtr ctxt, xmlExpNodePtr expr) { - xmlBufferPtr xmlExpBuf; - xmlExpNodePtr deriv; - const char *list[40]; - int ret; - - xmlExpBuf = xmlBufferCreate(); - - if (expr == NULL) { - printf("Failed to parse\n"); - return; - } - xmlExpDump(xmlExpBuf, expr); - printf("Parsed as: %s\n", (const char *) xmlBufferContent(xmlExpBuf)); - printf("Max token input = %d\n", xmlExpMaxToken(expr)); - if (xmlExpIsNillable(expr) == 1) - printf("Is nillable\n"); - ret = xmlExpGetLanguage(ctxt, expr, (const xmlChar **) &list[0], 40); - if (ret < 0) - printf("Failed to get list: %d\n", ret); - else { - int i; - - printf("Language has %d strings, testing string derivations\n", ret); - for (i = 0;i < ret;i++) { - deriv = xmlExpStringDerive(ctxt, expr, BAD_CAST list[i], -1); - if (deriv == NULL) { - printf(" %s -> derivation failed\n", list[i]); - } else { - xmlBufferEmpty(xmlExpBuf); - xmlExpDump(xmlExpBuf, deriv); - printf(" %s -> %s\n", list[i], - (const char *) xmlBufferContent(xmlExpBuf)); - } - xmlExpFree(ctxt, deriv); - } - } - xmlBufferFree(xmlExpBuf); -} -#endif - -static void usage(const char *name) { - fprintf(stderr, "Usage: %s [flags]\n", name); - fprintf(stderr, "Testing tool for libxml2 string and pattern regexps\n"); - fprintf(stderr, " --debug: switch on debugging\n"); - fprintf(stderr, " --repeat: loop on the operation\n"); -#ifdef LIBXML_EXPR_ENABLED - fprintf(stderr, " --expr: test xmlExp and not xmlRegexp\n"); -#endif - fprintf(stderr, " --input filename: use the given filename for regexp\n"); - fprintf(stderr, " --input filename: use the given filename for exp\n"); -} - -int main(int argc, char **argv) { - xmlRegexpPtr comp = NULL; -#ifdef LIBXML_EXPR_ENABLED - xmlExpNodePtr expr = NULL; - int use_exp = 0; - xmlExpCtxtPtr ctxt = NULL; -#endif - const char *pattern = NULL; - char *filename = NULL; - int i; - - xmlInitMemory(); - - if (argc <= 1) { - usage(argv[0]); - return(1); - } - for (i = 1; i < argc ; i++) { - if (!strcmp(argv[i], "-")) - break; - - if (argv[i][0] != '-') - continue; - if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug"))) { - debug++; - } else if ((!strcmp(argv[i], "-repeat")) || - (!strcmp(argv[i], "--repeat"))) { - repeat++; -#ifdef LIBXML_EXPR_ENABLED - } else if ((!strcmp(argv[i], "-expr")) || - (!strcmp(argv[i], "--expr"))) { - use_exp++; -#endif - } else if ((!strcmp(argv[i], "-i")) || (!strcmp(argv[i], "-f")) || - (!strcmp(argv[i], "--input"))) - filename = argv[++i]; - else { - fprintf(stderr, "Unknown option %s\n", argv[i]); - usage(argv[0]); - } - } - -#ifdef LIBXML_EXPR_ENABLED - if (use_exp) - ctxt = xmlExpNewCtxt(0, NULL); -#endif - - if (filename != NULL) { -#ifdef LIBXML_EXPR_ENABLED - if (use_exp) - runFileTest(ctxt, filename); - else -#endif - testRegexpFile(filename); - } else { -#ifdef LIBXML_EXPR_ENABLED - if (use_exp) { - for (i = 1; i < argc ; i++) { - if ((argv[i][0] != '-') || (strcmp(argv[i], "-") == 0)) { - if (pattern == NULL) { - pattern = argv[i]; - printf("Testing expr %s:\n", pattern); - expr = xmlExpParse(ctxt, pattern); - if (expr == NULL) { - printf(" failed to compile\n"); - break; - } - if (debug) { - exprDebug(ctxt, expr); - } - } else { - testReduce(ctxt, expr, argv[i]); - } - } - } - if (expr != NULL) - xmlExpFree(ctxt, expr); - } else -#endif - { - for (i = 1; i < argc ; i++) { - if ((argv[i][0] != '-') || (strcmp(argv[i], "-") == 0)) { - if (pattern == NULL) { - pattern = argv[i]; - printf("Testing %s:\n", pattern); - comp = xmlRegexpCompile((const xmlChar *) pattern); - if (comp == NULL) { - printf(" failed to compile\n"); - break; - } - if (debug) - xmlRegexpPrint(stdout, comp); - } else { - testRegexp(comp, argv[i]); - } - } - } - if (comp != NULL) - xmlRegFreeRegexp(comp); - } - } -#ifdef LIBXML_EXPR_ENABLED - if (ctxt != NULL) { - printf("Ops: %d nodes, %d cons\n", - xmlExpCtxtNbNodes(ctxt), xmlExpCtxtNbCons(ctxt)); - xmlExpFreeCtxt(ctxt); - } -#endif - xmlCleanupParser(); - xmlMemoryDump(); - return(0); -} - -#else -#include -int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { - printf("%s : Regexp support not compiled in\n", argv[0]); - return(0); -} -#endif /* LIBXML_REGEXP_ENABLED */ diff --git a/src/tools/docbook/libxml2/testRelax.c b/src/tools/docbook/libxml2/testRelax.c deleted file mode 100644 index e18b3c2f36..0000000000 --- a/src/tools/docbook/libxml2/testRelax.c +++ /dev/null @@ -1,194 +0,0 @@ -/* - * testRelax.c : a small tester program for RelaxNG validation - * - * See Copyright for the status of this software. - * - * Daniel.Veillard@w3.org - */ - -#include "libxml.h" -#ifdef LIBXML_SCHEMAS_ENABLED - -#include -#include - -#include -#include -#include - - -#ifdef HAVE_SYS_TYPES_H -#include -#endif -#ifdef HAVE_SYS_STAT_H -#include -#endif -#ifdef HAVE_FCNTL_H -#include -#endif -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_STDLIB_H -#include -#endif -#ifdef HAVE_SYS_MMAN_H -#include -/* seems needed for Solaris */ -#ifndef MAP_FAILED -#define MAP_FAILED ((void *) -1) -#endif -#endif - -#include -#include -#include - -#ifdef LIBXML_DEBUG_ENABLED -static int debug = 0; -#endif -static int noout = 0; -static int tree = 0; -#ifdef HAVE_SYS_MMAN_H -static int memory = 0; -#endif - - -int main(int argc, char **argv) { - int i; - int files = 0; - xmlRelaxNGPtr schema = NULL; - - for (i = 1; i < argc ; i++) { -#ifdef LIBXML_DEBUG_ENABLED - if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug"))) - debug++; - else -#endif -#ifdef HAVE_SYS_MMAN_H - if ((!strcmp(argv[i], "-memory")) || (!strcmp(argv[i], "--memory"))) { - memory++; - } else -#endif - if ((!strcmp(argv[i], "-noout")) || (!strcmp(argv[i], "--noout"))) { - noout++; - } else - if ((!strcmp(argv[i], "-tree")) || (!strcmp(argv[i], "--tree"))) { - tree++; - } - } - xmlLineNumbersDefault(1); - xmlSubstituteEntitiesDefault(1); - for (i = 1; i < argc ; i++) { - if (argv[i][0] != '-') { - if (schema == NULL) { - xmlRelaxNGParserCtxtPtr ctxt; - -#ifdef HAVE_SYS_MMAN_H - if (memory) { - int fd; - struct stat info; - const char *base; - if (stat(argv[i], &info) < 0) - break; - if ((fd = open(argv[i], O_RDONLY)) < 0) - break; - base = mmap(NULL, info.st_size, PROT_READ, - MAP_SHARED, fd, 0) ; - if (base == (void *) MAP_FAILED) - break; - - ctxt = xmlRelaxNGNewMemParserCtxt((char *)base,info.st_size); - - xmlRelaxNGSetParserErrors(ctxt, - (xmlRelaxNGValidityErrorFunc) fprintf, - (xmlRelaxNGValidityWarningFunc) fprintf, - stderr); - schema = xmlRelaxNGParse(ctxt); - xmlRelaxNGFreeParserCtxt(ctxt); - munmap((char *) base, info.st_size); - } else -#endif - { - ctxt = xmlRelaxNGNewParserCtxt(argv[i]); - xmlRelaxNGSetParserErrors(ctxt, - (xmlRelaxNGValidityErrorFunc) fprintf, - (xmlRelaxNGValidityWarningFunc) fprintf, - stderr); - schema = xmlRelaxNGParse(ctxt); - xmlRelaxNGFreeParserCtxt(ctxt); - } - if (schema == NULL) { - printf("Relax-NG schema %s failed to compile\n", argv[i]); - files = -1; - break; - } -#ifdef LIBXML_OUTPUT_ENABLED -#ifdef LIBXML_DEBUG_ENABLED - if (debug) - xmlRelaxNGDump(stdout, schema); -#endif - if (tree) - xmlRelaxNGDumpTree(stdout, schema); -#endif /* LIBXML_OUTPUT_ENABLED */ - } else { - xmlDocPtr doc; - - doc = xmlReadFile(argv[i],NULL,0); - - if (doc == NULL) { - fprintf(stderr, "Could not parse %s\n", argv[i]); - } else { - xmlRelaxNGValidCtxtPtr ctxt; - int ret; - - ctxt = xmlRelaxNGNewValidCtxt(schema); - xmlRelaxNGSetValidErrors(ctxt, - (xmlRelaxNGValidityErrorFunc) fprintf, - (xmlRelaxNGValidityWarningFunc) fprintf, - stderr); - ret = xmlRelaxNGValidateDoc(ctxt, doc); - if (ret == 0) { - printf("%s validates\n", argv[i]); - } else if (ret > 0) { - printf("%s fails to validate\n", argv[i]); - } else { - printf("%s validation generated an internal error\n", - argv[i]); - } - xmlRelaxNGFreeValidCtxt(ctxt); - xmlFreeDoc(doc); - } - } - files ++; - } - } - if (schema != NULL) - xmlRelaxNGFree(schema); - if (files == 0) { - printf("Usage : %s [--debug] [--noout] schemas XMLfiles ...\n", - argv[0]); - printf("\tParse the HTML files and output the result of the parsing\n"); -#ifdef LIBXML_DEBUG_ENABLED - printf("\t--debug : dump a debug tree of the in-memory document\n"); -#endif - printf("\t--noout : do not print the result\n"); - printf("\t--tree : print the intermediate Relax-NG document tree\n"); -#ifdef HAVE_SYS_MMAN_H - printf("\t--memory : test the schemas in memory parsing\n"); -#endif - } - xmlRelaxNGCleanupTypes(); - xmlCleanupParser(); - xmlMemoryDump(); - - return(0); -} - -#else -#include -int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { - printf("%s : RelaxNG support not compiled in\n", argv[0]); - return(0); -} -#endif /* LIBXML_SCHEMAS_ENABLED */ diff --git a/src/tools/docbook/libxml2/testSAX.c b/src/tools/docbook/libxml2/testSAX.c deleted file mode 100644 index cd16268fd0..0000000000 --- a/src/tools/docbook/libxml2/testSAX.c +++ /dev/null @@ -1,1198 +0,0 @@ -/* - * testSAX.c : a small tester program for parsing using the SAX API. - * - * See Copyright for the status of this software. - * - * daniel@veillard.com - */ - -#include "libxml.h" - -#ifdef HAVE_SYS_TIME_H -#include -#endif -#ifdef HAVE_SYS_TIMEB_H -#include -#endif -#ifdef HAVE_TIME_H -#include -#endif - -#ifdef LIBXML_SAX1_ENABLED -#include -#include - -#ifdef HAVE_SYS_TYPES_H -#include -#endif -#ifdef HAVE_SYS_STAT_H -#include -#endif -#ifdef HAVE_FCNTL_H -#include -#endif -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_STDLIB_H -#include -#endif -#ifdef HAVE_STRING_H -#include -#endif - - -#include -#include -#include -#include /* only for xmlNewInputFromFile() */ -#include -#include -#include - -static int debug = 0; -static int copy = 0; -static int recovery = 0; -static int push = 0; -static int speed = 0; -static int noent = 0; -static int quiet = 0; -static int nonull = 0; -static int sax2 = 0; -static int repeat = 0; -static int callbacks = 0; -static int timing = 0; - -/* - * Timing routines. - */ -/* - * Internal timing routines to remove the necessity to have unix-specific - * function calls - */ - -#ifndef HAVE_GETTIMEOFDAY -#ifdef HAVE_SYS_TIMEB_H -#ifdef HAVE_SYS_TIME_H -#ifdef HAVE_FTIME - -static int -my_gettimeofday(struct timeval *tvp, void *tzp) -{ - struct timeb timebuffer; - - ftime(&timebuffer); - if (tvp) { - tvp->tv_sec = timebuffer.time; - tvp->tv_usec = timebuffer.millitm * 1000L; - } - return (0); -} -#define HAVE_GETTIMEOFDAY 1 -#define gettimeofday my_gettimeofday - -#endif /* HAVE_FTIME */ -#endif /* HAVE_SYS_TIME_H */ -#endif /* HAVE_SYS_TIMEB_H */ -#endif /* !HAVE_GETTIMEOFDAY */ - -#if defined(HAVE_GETTIMEOFDAY) -static struct timeval begin, end; - -/* - * startTimer: call where you want to start timing - */ -static void -startTimer(void) -{ - gettimeofday(&begin, NULL); -} - -/* - * endTimer: call where you want to stop timing and to print out a - * message about the timing performed; format is a printf - * type argument - */ -static void XMLCDECL -endTimer(const char *fmt, ...) -{ - long msec; - va_list ap; - - gettimeofday(&end, NULL); - msec = end.tv_sec - begin.tv_sec; - msec *= 1000; - msec += (end.tv_usec - begin.tv_usec) / 1000; - -#ifndef HAVE_STDARG_H -#error "endTimer required stdarg functions" -#endif - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - va_end(ap); - - fprintf(stderr, " took %ld ms\n", msec); -} -#elif defined(HAVE_TIME_H) -/* - * No gettimeofday function, so we have to make do with calling clock. - * This is obviously less accurate, but there's little we can do about - * that. - */ -#ifndef CLOCKS_PER_SEC -#define CLOCKS_PER_SEC 100 -#endif - -static clock_t begin, end; -static void -startTimer(void) -{ - begin = clock(); -} -static void XMLCDECL -endTimer(const char *fmt, ...) -{ - long msec; - va_list ap; - - end = clock(); - msec = ((end - begin) * 1000) / CLOCKS_PER_SEC; - -#ifndef HAVE_STDARG_H -#error "endTimer required stdarg functions" -#endif - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - va_end(ap); - fprintf(stderr, " took %ld ms\n", msec); -} -#else - -/* - * We don't have a gettimeofday or time.h, so we just don't do timing - */ -static void -startTimer(void) -{ - /* - * Do nothing - */ -} -static void XMLCDECL -endTimer(char *format, ...) -{ - /* - * We cannot do anything because we don't have a timing function - */ -#ifdef HAVE_STDARG_H - va_start(ap, format); - vfprintf(stderr, format, ap); - va_end(ap); - fprintf(stderr, " was not timed\n", msec); -#else - /* We don't have gettimeofday, time or stdarg.h, what crazy world is - * this ?! - */ -#endif -} -#endif - -/* - * empty SAX block - */ -static xmlSAXHandler emptySAXHandlerStruct = { - NULL, /* internalSubset */ - NULL, /* isStandalone */ - NULL, /* hasInternalSubset */ - NULL, /* hasExternalSubset */ - NULL, /* resolveEntity */ - NULL, /* getEntity */ - NULL, /* entityDecl */ - NULL, /* notationDecl */ - NULL, /* attributeDecl */ - NULL, /* elementDecl */ - NULL, /* unparsedEntityDecl */ - NULL, /* setDocumentLocator */ - NULL, /* startDocument */ - NULL, /* endDocument */ - NULL, /* startElement */ - NULL, /* endElement */ - NULL, /* reference */ - NULL, /* characters */ - NULL, /* ignorableWhitespace */ - NULL, /* processingInstruction */ - NULL, /* comment */ - NULL, /* xmlParserWarning */ - NULL, /* xmlParserError */ - NULL, /* xmlParserError */ - NULL, /* getParameterEntity */ - NULL, /* cdataBlock; */ - NULL, /* externalSubset; */ - 1, - NULL, - NULL, /* startElementNs */ - NULL, /* endElementNs */ - NULL /* xmlStructuredErrorFunc */ -}; - -static xmlSAXHandlerPtr emptySAXHandler = &emptySAXHandlerStruct; -extern xmlSAXHandlerPtr debugSAXHandler; - -/************************************************************************ - * * - * Debug Handlers * - * * - ************************************************************************/ - -/** - * isStandaloneDebug: - * @ctxt: An XML parser context - * - * Is this document tagged standalone ? - * - * Returns 1 if true - */ -static int -isStandaloneDebug(void *ctx ATTRIBUTE_UNUSED) -{ - callbacks++; - if (quiet) - return(0); - fprintf(stdout, "SAX.isStandalone()\n"); - return(0); -} - -/** - * hasInternalSubsetDebug: - * @ctxt: An XML parser context - * - * Does this document has an internal subset - * - * Returns 1 if true - */ -static int -hasInternalSubsetDebug(void *ctx ATTRIBUTE_UNUSED) -{ - callbacks++; - if (quiet) - return(0); - fprintf(stdout, "SAX.hasInternalSubset()\n"); - return(0); -} - -/** - * hasExternalSubsetDebug: - * @ctxt: An XML parser context - * - * Does this document has an external subset - * - * Returns 1 if true - */ -static int -hasExternalSubsetDebug(void *ctx ATTRIBUTE_UNUSED) -{ - callbacks++; - if (quiet) - return(0); - fprintf(stdout, "SAX.hasExternalSubset()\n"); - return(0); -} - -/** - * internalSubsetDebug: - * @ctxt: An XML parser context - * - * Does this document has an internal subset - */ -static void -internalSubsetDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, - const xmlChar *ExternalID, const xmlChar *SystemID) -{ - callbacks++; - if (quiet) - return; - fprintf(stdout, "SAX.internalSubset(%s,", name); - if (ExternalID == NULL) - fprintf(stdout, " ,"); - else - fprintf(stdout, " %s,", ExternalID); - if (SystemID == NULL) - fprintf(stdout, " )\n"); - else - fprintf(stdout, " %s)\n", SystemID); -} - -/** - * externalSubsetDebug: - * @ctxt: An XML parser context - * - * Does this document has an external subset - */ -static void -externalSubsetDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, - const xmlChar *ExternalID, const xmlChar *SystemID) -{ - callbacks++; - if (quiet) - return; - fprintf(stdout, "SAX.externalSubset(%s,", name); - if (ExternalID == NULL) - fprintf(stdout, " ,"); - else - fprintf(stdout, " %s,", ExternalID); - if (SystemID == NULL) - fprintf(stdout, " )\n"); - else - fprintf(stdout, " %s)\n", SystemID); -} - -/** - * resolveEntityDebug: - * @ctxt: An XML parser context - * @publicId: The public ID of the entity - * @systemId: The system ID of the entity - * - * Special entity resolver, better left to the parser, it has - * more context than the application layer. - * The default behaviour is to NOT resolve the entities, in that case - * the ENTITY_REF nodes are built in the structure (and the parameter - * values). - * - * Returns the xmlParserInputPtr if inlined or NULL for DOM behaviour. - */ -static xmlParserInputPtr -resolveEntityDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *publicId, const xmlChar *systemId) -{ - callbacks++; - if (quiet) - return(NULL); - /* xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; */ - - - fprintf(stdout, "SAX.resolveEntity("); - if (publicId != NULL) - fprintf(stdout, "%s", (char *)publicId); - else - fprintf(stdout, " "); - if (systemId != NULL) - fprintf(stdout, ", %s)\n", (char *)systemId); - else - fprintf(stdout, ", )\n"); -/********* - if (systemId != NULL) { - return(xmlNewInputFromFile(ctxt, (char *) systemId)); - } - *********/ - return(NULL); -} - -/** - * getEntityDebug: - * @ctxt: An XML parser context - * @name: The entity name - * - * Get an entity by name - * - * Returns the xmlParserInputPtr if inlined or NULL for DOM behaviour. - */ -static xmlEntityPtr -getEntityDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name) -{ - callbacks++; - if (quiet) - return(NULL); - fprintf(stdout, "SAX.getEntity(%s)\n", name); - return(NULL); -} - -/** - * getParameterEntityDebug: - * @ctxt: An XML parser context - * @name: The entity name - * - * Get a parameter entity by name - * - * Returns the xmlParserInputPtr - */ -static xmlEntityPtr -getParameterEntityDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name) -{ - callbacks++; - if (quiet) - return(NULL); - fprintf(stdout, "SAX.getParameterEntity(%s)\n", name); - return(NULL); -} - - -/** - * entityDeclDebug: - * @ctxt: An XML parser context - * @name: the entity name - * @type: the entity type - * @publicId: The public ID of the entity - * @systemId: The system ID of the entity - * @content: the entity value (without processing). - * - * An entity definition has been parsed - */ -static void -entityDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, int type, - const xmlChar *publicId, const xmlChar *systemId, xmlChar *content) -{ -const xmlChar *nullstr = BAD_CAST "(null)"; - /* not all libraries handle printing null pointers nicely */ - if (publicId == NULL) - publicId = nullstr; - if (systemId == NULL) - systemId = nullstr; - if (content == NULL) - content = (xmlChar *)nullstr; - callbacks++; - if (quiet) - return; - fprintf(stdout, "SAX.entityDecl(%s, %d, %s, %s, %s)\n", - name, type, publicId, systemId, content); -} - -/** - * attributeDeclDebug: - * @ctxt: An XML parser context - * @name: the attribute name - * @type: the attribute type - * - * An attribute definition has been parsed - */ -static void -attributeDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar * elem, - const xmlChar * name, int type, int def, - const xmlChar * defaultValue, xmlEnumerationPtr tree) -{ - callbacks++; - if (quiet) - return; - if (defaultValue == NULL) - fprintf(stdout, "SAX.attributeDecl(%s, %s, %d, %d, NULL, ...)\n", - elem, name, type, def); - else - fprintf(stdout, "SAX.attributeDecl(%s, %s, %d, %d, %s, ...)\n", - elem, name, type, def, defaultValue); - xmlFreeEnumeration(tree); -} - -/** - * elementDeclDebug: - * @ctxt: An XML parser context - * @name: the element name - * @type: the element type - * @content: the element value (without processing). - * - * An element definition has been parsed - */ -static void -elementDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, int type, - xmlElementContentPtr content ATTRIBUTE_UNUSED) -{ - callbacks++; - if (quiet) - return; - fprintf(stdout, "SAX.elementDecl(%s, %d, ...)\n", - name, type); -} - -/** - * notationDeclDebug: - * @ctxt: An XML parser context - * @name: The name of the notation - * @publicId: The public ID of the entity - * @systemId: The system ID of the entity - * - * What to do when a notation declaration has been parsed. - */ -static void -notationDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, - const xmlChar *publicId, const xmlChar *systemId) -{ - callbacks++; - if (quiet) - return; - fprintf(stdout, "SAX.notationDecl(%s, %s, %s)\n", - (char *) name, (char *) publicId, (char *) systemId); -} - -/** - * unparsedEntityDeclDebug: - * @ctxt: An XML parser context - * @name: The name of the entity - * @publicId: The public ID of the entity - * @systemId: The system ID of the entity - * @notationName: the name of the notation - * - * What to do when an unparsed entity declaration is parsed - */ -static void -unparsedEntityDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, - const xmlChar *publicId, const xmlChar *systemId, - const xmlChar *notationName) -{ -const xmlChar *nullstr = BAD_CAST "(null)"; - - if (publicId == NULL) - publicId = nullstr; - if (systemId == NULL) - systemId = nullstr; - if (notationName == NULL) - notationName = nullstr; - callbacks++; - if (quiet) - return; - fprintf(stdout, "SAX.unparsedEntityDecl(%s, %s, %s, %s)\n", - (char *) name, (char *) publicId, (char *) systemId, - (char *) notationName); -} - -/** - * setDocumentLocatorDebug: - * @ctxt: An XML parser context - * @loc: A SAX Locator - * - * Receive the document locator at startup, actually xmlDefaultSAXLocator - * Everything is available on the context, so this is useless in our case. - */ -static void -setDocumentLocatorDebug(void *ctx ATTRIBUTE_UNUSED, xmlSAXLocatorPtr loc ATTRIBUTE_UNUSED) -{ - callbacks++; - if (quiet) - return; - fprintf(stdout, "SAX.setDocumentLocator()\n"); -} - -/** - * startDocumentDebug: - * @ctxt: An XML parser context - * - * called when the document start being processed. - */ -static void -startDocumentDebug(void *ctx ATTRIBUTE_UNUSED) -{ - callbacks++; - if (quiet) - return; - fprintf(stdout, "SAX.startDocument()\n"); -} - -/** - * endDocumentDebug: - * @ctxt: An XML parser context - * - * called when the document end has been detected. - */ -static void -endDocumentDebug(void *ctx ATTRIBUTE_UNUSED) -{ - callbacks++; - if (quiet) - return; - fprintf(stdout, "SAX.endDocument()\n"); -} - -/** - * startElementDebug: - * @ctxt: An XML parser context - * @name: The element name - * - * called when an opening tag has been processed. - */ -static void -startElementDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, const xmlChar **atts) -{ - int i; - - callbacks++; - if (quiet) - return; - fprintf(stdout, "SAX.startElement(%s", (char *) name); - if (atts != NULL) { - for (i = 0;(atts[i] != NULL);i++) { - fprintf(stdout, ", %s='", atts[i++]); - if (atts[i] != NULL) - fprintf(stdout, "%s'", atts[i]); - } - } - fprintf(stdout, ")\n"); -} - -/** - * endElementDebug: - * @ctxt: An XML parser context - * @name: The element name - * - * called when the end of an element has been detected. - */ -static void -endElementDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name) -{ - callbacks++; - if (quiet) - return; - fprintf(stdout, "SAX.endElement(%s)\n", (char *) name); -} - -/** - * charactersDebug: - * @ctxt: An XML parser context - * @ch: a xmlChar string - * @len: the number of xmlChar - * - * receiving some chars from the parser. - * Question: how much at a time ??? - */ -static void -charactersDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch, int len) -{ - char output[40]; - int i; - - callbacks++; - if (quiet) - return; - for (i = 0;(i 0) { - ctxt = xmlCreatePushParserCtxt(emptySAXHandler, NULL, - chars, ret, filename); - while ((ret = fread(chars, 1, 3, f)) > 0) { - xmlParseChunk(ctxt, chars, ret, 0); - } - xmlParseChunk(ctxt, chars, 0, 1); - xmlFreeParserCtxt(ctxt); - } - fclose(f); - } else { - xmlGenericError(xmlGenericErrorContext, - "Cannot read file %s\n", filename); - } - } - /* - * Debug callback - */ -#if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__) - f = fopen(filename, "rb"); -#else - f = fopen(filename, "r"); -#endif - if (f != NULL) { - int ret; - char chars[10]; - xmlParserCtxtPtr ctxt; - - ret = fread(chars, 1, 4, f); - if (ret > 0) { - if (sax2) - ctxt = xmlCreatePushParserCtxt(debugSAX2Handler, NULL, - chars, ret, filename); - else - ctxt = xmlCreatePushParserCtxt(debugSAXHandler, NULL, - chars, ret, filename); - while ((ret = fread(chars, 1, 3, f)) > 0) { - xmlParseChunk(ctxt, chars, ret, 0); - } - ret = xmlParseChunk(ctxt, chars, 0, 1); - xmlFreeParserCtxt(ctxt); - if (ret != 0) { - fprintf(stdout, - "xmlSAXUserParseFile returned error %d\n", ret); - } - } - fclose(f); - } - } else { -#endif /* LIBXML_PUSH_ENABLED */ - if (!speed) { - /* - * Empty callbacks for checking - */ - if ((!quiet) && (!nonull)) { - res = xmlSAXUserParseFile(emptySAXHandler, NULL, filename); - if (res != 0) { - fprintf(stdout, "xmlSAXUserParseFile returned error %d\n", res); - } - } - - /* - * Debug callback - */ - callbacks = 0; - if (repeat) { - int i; - for (i = 0;i < 99;i++) { - if (sax2) - res = xmlSAXUserParseFile(debugSAX2Handler, NULL, - filename); - else - res = xmlSAXUserParseFile(debugSAXHandler, NULL, - filename); - } - } - if (sax2) - res = xmlSAXUserParseFile(debugSAX2Handler, NULL, filename); - else - res = xmlSAXUserParseFile(debugSAXHandler, NULL, filename); - if (res != 0) { - fprintf(stdout, "xmlSAXUserParseFile returned error %d\n", res); - } - if (quiet) - fprintf(stdout, "%d callbacks generated\n", callbacks); - } else { - /* - * test 100x the SAX parse - */ - int i; - - for (i = 0; i<100;i++) - res = xmlSAXUserParseFile(emptySAXHandler, NULL, filename); - if (res != 0) { - fprintf(stdout, "xmlSAXUserParseFile returned error %d\n", res); - } - } -#ifdef LIBXML_PUSH_ENABLED - } -#endif -} - - -int main(int argc, char **argv) { - int i; - int files = 0; - - LIBXML_TEST_VERSION /* be safe, plus calls xmlInitParser */ - - for (i = 1; i < argc ; i++) { - if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug"))) - debug++; - else if ((!strcmp(argv[i], "-copy")) || (!strcmp(argv[i], "--copy"))) - copy++; - else if ((!strcmp(argv[i], "-recover")) || - (!strcmp(argv[i], "--recover"))) - recovery++; - else if ((!strcmp(argv[i], "-push")) || - (!strcmp(argv[i], "--push"))) -#ifdef LIBXML_PUSH_ENABLED - push++; -#else - fprintf(stderr,"'push' not enabled in library - ignoring\n"); -#endif /* LIBXML_PUSH_ENABLED */ - else if ((!strcmp(argv[i], "-speed")) || - (!strcmp(argv[i], "--speed"))) - speed++; - else if ((!strcmp(argv[i], "-timing")) || - (!strcmp(argv[i], "--timing"))) { - nonull++; - timing++; - quiet++; - } else if ((!strcmp(argv[i], "-repeat")) || - (!strcmp(argv[i], "--repeat"))) { - repeat++; - quiet++; - } else if ((!strcmp(argv[i], "-noent")) || - (!strcmp(argv[i], "--noent"))) - noent++; - else if ((!strcmp(argv[i], "-quiet")) || - (!strcmp(argv[i], "--quiet"))) - quiet++; - else if ((!strcmp(argv[i], "-sax2")) || - (!strcmp(argv[i], "--sax2"))) - sax2++; - else if ((!strcmp(argv[i], "-nonull")) || - (!strcmp(argv[i], "--nonull"))) - nonull++; - } - if (noent != 0) xmlSubstituteEntitiesDefault(1); - for (i = 1; i < argc ; i++) { - if (argv[i][0] != '-') { - if (timing) { - startTimer(); - } - parseAndPrintFile(argv[i]); - if (timing) { - endTimer("Parsing"); - } - files ++; - } - } - xmlCleanupParser(); - xmlMemoryDump(); - - return(0); -} -#else -int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { - printf("%s : SAX1 parsing support not compiled in\n", argv[0]); - return(0); -} -#endif /* LIBXML_SAX1_ENABLED */ diff --git a/src/tools/docbook/libxml2/testSchemas.c b/src/tools/docbook/libxml2/testSchemas.c deleted file mode 100644 index 47f8b39a6f..0000000000 --- a/src/tools/docbook/libxml2/testSchemas.c +++ /dev/null @@ -1,185 +0,0 @@ -/* - * testSchemas.c : a small tester program for Schema validation - * - * See Copyright for the status of this software. - * - * Daniel.Veillard@w3.org - */ - -#include "libxml.h" -#ifdef LIBXML_SCHEMAS_ENABLED - -#include -#include - -#include -#include -#include - - -#ifdef HAVE_SYS_TYPES_H -#include -#endif -#ifdef HAVE_SYS_STAT_H -#include -#endif -#ifdef HAVE_FCNTL_H -#include -#endif -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_STDLIB_H -#include -#endif -#ifdef HAVE_SYS_MMAN_H -#include -/* seems needed for Solaris */ -#ifndef MAP_FAILED -#define MAP_FAILED ((void *) -1) -#endif -#endif - -#include -#include -#include -#include - -#ifdef LIBXML_DEBUG_ENABLED -static int debug = 0; -#endif -static int noout = 0; -#ifdef HAVE_SYS_MMAN_H -static int memory = 0; -#endif - - -int main(int argc, char **argv) { - int i; - int files = 0; - xmlSchemaPtr schema = NULL; - - for (i = 1; i < argc ; i++) { -#ifdef LIBXML_DEBUG_ENABLED - if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug"))) - debug++; - else -#endif -#ifdef HAVE_SYS_MMAN_H - if ((!strcmp(argv[i], "-memory")) || (!strcmp(argv[i], "--memory"))) { - memory++; - } else -#endif - if ((!strcmp(argv[i], "-noout")) || (!strcmp(argv[i], "--noout"))) { - noout++; - } - } - xmlLineNumbersDefault(1); - for (i = 1; i < argc ; i++) { - if (argv[i][0] != '-') { - if (schema == NULL) { - xmlSchemaParserCtxtPtr ctxt; - -#ifdef HAVE_SYS_MMAN_H - if (memory) { - int fd; - struct stat info; - const char *base; - if (stat(argv[i], &info) < 0) - break; - if ((fd = open(argv[i], O_RDONLY)) < 0) - break; - base = mmap(NULL, info.st_size, PROT_READ, - MAP_SHARED, fd, 0) ; - if (base == (void *) MAP_FAILED) - break; - - ctxt = xmlSchemaNewMemParserCtxt((char *)base,info.st_size); - - xmlSchemaSetParserErrors(ctxt, - (xmlSchemaValidityErrorFunc) fprintf, - (xmlSchemaValidityWarningFunc) fprintf, - stderr); - schema = xmlSchemaParse(ctxt); - xmlSchemaFreeParserCtxt(ctxt); - munmap((char *) base, info.st_size); - } else -#endif - { - ctxt = xmlSchemaNewParserCtxt(argv[i]); - xmlSchemaSetParserErrors(ctxt, - (xmlSchemaValidityErrorFunc) fprintf, - (xmlSchemaValidityWarningFunc) fprintf, - stderr); - schema = xmlSchemaParse(ctxt); - xmlSchemaFreeParserCtxt(ctxt); - } -#ifdef LIBXML_OUTPUT_ENABLED -#ifdef LIBXML_DEBUG_ENABLED - if (debug) - xmlSchemaDump(stdout, schema); -#endif -#endif /* LIBXML_OUTPUT_ENABLED */ - if (schema == NULL) - goto failed_schemas; - } else { - xmlDocPtr doc; - - doc = xmlReadFile(argv[i],NULL,0); - - if (doc == NULL) { - fprintf(stderr, "Could not parse %s\n", argv[i]); - } else { - xmlSchemaValidCtxtPtr ctxt; - int ret; - - ctxt = xmlSchemaNewValidCtxt(schema); - xmlSchemaSetValidErrors(ctxt, - (xmlSchemaValidityErrorFunc) fprintf, - (xmlSchemaValidityWarningFunc) fprintf, - stderr); - ret = xmlSchemaValidateDoc(ctxt, doc); - if (ret == 0) { - printf("%s validates\n", argv[i]); - } else if (ret > 0) { - printf("%s fails to validate\n", argv[i]); - } else { - printf("%s validation generated an internal error\n", - argv[i]); - } - xmlSchemaFreeValidCtxt(ctxt); - xmlFreeDoc(doc); - } - } - files ++; - } - } - if (schema != NULL) - xmlSchemaFree(schema); - if (files == 0) { - printf("Usage : %s [--debug] [--noout] schemas XMLfiles ...\n", - argv[0]); - printf("\tParse the HTML files and output the result of the parsing\n"); -#ifdef LIBXML_DEBUG_ENABLED - printf("\t--debug : dump a debug tree of the in-memory document\n"); -#endif - printf("\t--noout : do not print the result\n"); -#ifdef HAVE_SYS_MMAN_H - printf("\t--memory : test the schemas in memory parsing\n"); -#endif - } -failed_schemas: - xmlSchemaCleanupTypes(); - xmlCleanupParser(); - xmlMemoryDump(); - - return(0); -} - -#else -#include -int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { - printf("%s : Schemas support not compiled in\n", argv[0]); - return(0); -} -#endif /* LIBXML_SCHEMAS_ENABLED */ diff --git a/src/tools/docbook/libxml2/testThreads.c b/src/tools/docbook/libxml2/testThreads.c deleted file mode 100644 index 6405a77fc5..0000000000 --- a/src/tools/docbook/libxml2/testThreads.c +++ /dev/null @@ -1,201 +0,0 @@ -#include -#include -#include "libxml.h" - -#if defined(LIBXML_THREAD_ENABLED) && defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_SAX1_ENABLED) -#include -#include -#include -#include -#ifdef HAVE_PTHREAD_H -#include -#elif defined HAVE_BEOS_THREADS -#include -#endif -#include -#if !defined(_MSC_VER) -#include -#endif -#include - -#define MAX_ARGC 20 -#ifdef HAVE_PTHREAD_H -static pthread_t tid[MAX_ARGC]; -#elif defined HAVE_BEOS_THREADS -static thread_id tid[MAX_ARGC]; -#endif - -static const char *catalog = "test/threads/complex.xml"; -static const char *testfiles[] = { - "test/threads/abc.xml", - "test/threads/acb.xml", - "test/threads/bac.xml", - "test/threads/bca.xml", - "test/threads/cab.xml", - "test/threads/cba.xml", - "test/threads/invalid.xml", -}; - -static const char *Okay = "OK"; -static const char *Failed = "Failed"; - -#ifndef xmlDoValidityCheckingDefaultValue -#error xmlDoValidityCheckingDefaultValue is not a macro -#endif -#ifndef xmlGenericErrorContext -#error xmlGenericErrorContext is not a macro -#endif - -static void * -thread_specific_data(void *private_data) -{ - xmlDocPtr myDoc; - const char *filename = (const char *) private_data; - int okay = 1; - - if (!strcmp(filename, "test/threads/invalid.xml")) { - xmlDoValidityCheckingDefaultValue = 0; - xmlGenericErrorContext = stdout; - } else { - xmlDoValidityCheckingDefaultValue = 1; - xmlGenericErrorContext = stderr; - } - myDoc = xmlParseFile(filename); - if (myDoc) { - xmlFreeDoc(myDoc); - } else { - printf("parse failed\n"); - okay = 0; - } - if (!strcmp(filename, "test/threads/invalid.xml")) { - if (xmlDoValidityCheckingDefaultValue != 0) { - printf("ValidityCheckingDefaultValue override failed\n"); - okay = 0; - } - if (xmlGenericErrorContext != stdout) { - printf("xmlGenericErrorContext override failed\n"); - okay = 0; - } - } else { - if (xmlDoValidityCheckingDefaultValue != 1) { - printf("ValidityCheckingDefaultValue override failed\n"); - okay = 0; - } - if (xmlGenericErrorContext != stderr) { - printf("xmlGenericErrorContext override failed\n"); - okay = 0; - } - } - if (okay == 0) - return((void *) Failed); - return ((void *) Okay); -} - -#ifdef HAVE_PTHREAD_H -int -main(void) -{ - unsigned int i, repeat; - unsigned int num_threads = sizeof(testfiles) / sizeof(testfiles[0]); - void *results[MAX_ARGC]; - int ret; - - xmlInitParser(); - for (repeat = 0;repeat < 500;repeat++) { - xmlLoadCatalog(catalog); - - for (i = 0; i < num_threads; i++) { - results[i] = NULL; - tid[i] = (pthread_t) -1; - } - - for (i = 0; i < num_threads; i++) { - ret = pthread_create(&tid[i], NULL, thread_specific_data, - (void *) testfiles[i]); - if (ret != 0) { - perror("pthread_create"); - exit(1); - } - } - for (i = 0; i < num_threads; i++) { - ret = pthread_join(tid[i], &results[i]); - if (ret != 0) { - perror("pthread_join"); - exit(1); - } - } - - xmlCatalogCleanup(); - for (i = 0; i < num_threads; i++) - if (results[i] != (void *) Okay) - printf("Thread %d handling %s failed\n", i, testfiles[i]); - } - xmlCleanupParser(); - xmlMemoryDump(); - return (0); -} -#elif defined HAVE_BEOS_THREADS -int -main(void) -{ - unsigned int i, repeat; - unsigned int num_threads = sizeof(testfiles) / sizeof(testfiles[0]); - void *results[MAX_ARGC]; - status_t ret; - - xmlInitParser(); - printf("Parser initialized\n"); - for (repeat = 0;repeat < 500;repeat++) { - printf("repeat: %d\n",repeat); - xmlLoadCatalog(catalog); - printf("loaded catalog: %s\n", catalog); - for (i = 0; i < num_threads; i++) { - results[i] = NULL; - tid[i] = (thread_id) -1; - } - printf("cleaned threads\n"); - for (i = 0; i < num_threads; i++) { - tid[i] = spawn_thread(thread_specific_data, "xmlTestThread", B_NORMAL_PRIORITY, (void *) testfiles[i]); - if (tid[i] < B_OK) { - perror("beos_thread_create"); - exit(1); - } - printf("beos_thread_create %d -> %d\n", i, tid[i]); - } - for (i = 0; i < num_threads; i++) { - ret = wait_for_thread(tid[i], &results[i]); - printf("beos_thread_wait %d -> %d\n", i, ret); - if (ret != B_OK) { - perror("beos_thread_wait"); - exit(1); - } - } - - xmlCatalogCleanup(); - ret = B_OK; - for (i = 0; i < num_threads; i++) - if (results[i] != (void *) Okay) { - printf("Thread %d handling %s failed\n", i, testfiles[i]); - ret = B_ERROR; - } - } - xmlCleanupParser(); - xmlMemoryDump(); - - if (ret == B_OK) - printf("testThread : BeOS : SUCCESS!\n"); - else - printf("testThread : BeOS : FAILED!\n"); - - return (0); -} -#endif /* pthreads or BeOS threads */ - -#else /* !LIBXML_THREADS_ENABLED */ -int -main(void) -{ - fprintf(stderr, "libxml was not compiled with thread or catalog support\n"); - return (0); -} -#endif diff --git a/src/tools/docbook/libxml2/testThreadsWin32.c b/src/tools/docbook/libxml2/testThreadsWin32.c deleted file mode 100644 index 24f000644e..0000000000 --- a/src/tools/docbook/libxml2/testThreadsWin32.c +++ /dev/null @@ -1,150 +0,0 @@ -#include -#include -#include "libxml.h" - -#if defined(LIBXML_THREAD_ENABLED) && defined(LIBXML_CATALOG_ENABLED) -#include -#include -#include -#include -#include -#include -#include - -#define MAX_ARGC 20 -#define TEST_REPEAT_COUNT 500 - -static HANDLE tid[MAX_ARGC]; - -static const char *catalog = "test/threads/complex.xml"; -static char *testfiles[] = { - "test/threads/abc.xml", - "test/threads/acb.xml", - "test/threads/bac.xml", - "test/threads/bca.xml", - "test/threads/cab.xml", - "test/threads/cba.xml", - "test/threads/invalid.xml", -}; - -const char *Okay = "OK"; -const char *Failed = "Failed"; - -#ifndef xmlDoValidityCheckingDefaultValue -#error xmlDoValidityCheckingDefaultValue is not a macro -#endif -#ifndef xmlGenericErrorContext -#error xmlGenericErrorContext is not a macro -#endif - -static DWORD WINAPI -thread_specific_data(void *private_data) -{ - xmlDocPtr myDoc; - const char *filename = (const char *) private_data; - int okay = 1; - - if (!strcmp(filename, "test/threads/invalid.xml")) { - xmlDoValidityCheckingDefaultValue = 0; - xmlGenericErrorContext = stdout; - } else { - xmlDoValidityCheckingDefaultValue = 1; - xmlGenericErrorContext = stderr; - } - myDoc = xmlParseFile(filename); - if (myDoc) { - xmlFreeDoc(myDoc); - } else { - printf("parse failed\n"); - okay = 0; - } - if (!strcmp(filename, "test/threads/invalid.xml")) { - if (xmlDoValidityCheckingDefaultValue != 0) { - printf("ValidityCheckingDefaultValue override failed\n"); - okay = 0; - } - if (xmlGenericErrorContext != stdout) { - printf("xmlGenericErrorContext override failed\n"); - okay = 0; - } - } else { - if (xmlDoValidityCheckingDefaultValue != 1) { - printf("ValidityCheckingDefaultValue override failed\n"); - okay = 0; - } - if (xmlGenericErrorContext != stderr) { - printf("xmlGenericErrorContext override failed\n"); - okay = 0; - } - } - if (okay == 0) - return ((DWORD) Failed); - return ((DWORD) Okay); -} - -int -main() -{ - unsigned int i, repeat; - unsigned int num_threads = sizeof(testfiles) / sizeof(testfiles[0]); - DWORD results[MAX_ARGC]; - BOOL ret; - - xmlInitParser(); - for (repeat = 0;repeat < TEST_REPEAT_COUNT;repeat++) - { - xmlLoadCatalog(catalog); - - for (i = 0; i < num_threads; i++) - { - results[i] = 0; - tid[i] = (HANDLE) -1; - } - - for (i = 0; i < num_threads; i++) - { - DWORD useless; - tid[i] = CreateThread(NULL, 0, - thread_specific_data, testfiles[i], 0, &useless); - if (tid[i] == NULL) - { - perror("CreateThread"); - exit(1); - } - } - - if (WaitForMultipleObjects (num_threads, tid, TRUE, INFINITE) == WAIT_FAILED) - perror ("WaitForMultipleObjects failed"); - - for (i = 0; i < num_threads; i++) - { - ret = GetExitCodeThread (tid[i], &results[i]); - if (ret == 0) - { - perror("GetExitCodeThread"); - exit(1); - } - CloseHandle (tid[i]); - } - - xmlCatalogCleanup(); - for (i = 0; i < num_threads; i++) { - if (results[i] != (DWORD) Okay) - printf("Thread %d handling %s failed\n", i, testfiles[i]); - } - } - - xmlCleanupParser(); - xmlMemoryDump(); - - return (0); -} - -#else /* !LIBXML_THREADS_ENABLED */ -int -main() -{ - fprintf(stderr, "libxml was not compiled with thread or catalog support\n"); - return (0); -} -#endif diff --git a/src/tools/docbook/libxml2/testURI.c b/src/tools/docbook/libxml2/testURI.c deleted file mode 100644 index aa0729de23..0000000000 --- a/src/tools/docbook/libxml2/testURI.c +++ /dev/null @@ -1,105 +0,0 @@ -/* - * testURI.c : a small tester program for XML input. - * - * See Copyright for the status of this software. - * - * daniel@veillard.com - */ - -#include "libxml.h" - -#include -#include -#include - -#include -#include -#include - -static const char *base = NULL; -static int escape = 0; - -static void handleURI(const char *str) { - int ret; - xmlURIPtr uri; - xmlChar *res = NULL, *parsed = NULL; - - uri = xmlCreateURI(); - - if (base == NULL) { - ret = xmlParseURIReference(uri, str); - if (ret != 0) - printf("%s : error %d\n", str, ret); - else { - xmlNormalizeURIPath(uri->path); - if (escape != 0) { - parsed = xmlSaveUri(uri); - res = xmlURIEscape(parsed); - printf("%s\n", (char *) res); - - } else { - xmlPrintURI(stdout, uri); - printf("\n"); - } - } - } else { - res = xmlBuildURI((xmlChar *)str, (xmlChar *) base); - if (res != NULL) { - printf("%s\n", (char *) res); - } - else - printf("::ERROR::\n"); - } - if (res != NULL) - xmlFree(res); - if (parsed != NULL) - xmlFree(parsed); - xmlFreeURI(uri); -} - -int main(int argc, char **argv) { - int i, arg = 1; - - if ((argc > arg) && (argv[arg] != NULL) && - ((!strcmp(argv[arg], "-base")) || (!strcmp(argv[arg], "--base")))) { - arg++; - base = argv[arg]; - if (base != NULL) - arg++; - } - if ((argc > arg) && (argv[arg] != NULL) && - ((!strcmp(argv[arg], "-escape")) || (!strcmp(argv[arg], "--escape")))) { - arg++; - escape++; - } - if (argv[arg] == NULL) { - char str[1024]; - - while (1) { - /* - * read one line in string buffer. - */ - if (fgets (&str[0], sizeof (str) - 1, stdin) == NULL) - break; - - /* - * remove the ending spaces - */ - i = strlen(str); - while ((i > 0) && - ((str[i - 1] == '\n') || (str[i - 1] == '\r') || - (str[i - 1] == ' ') || (str[i - 1] == '\t'))) { - i--; - str[i] = 0; - } - handleURI(str); - } - } else { - while (argv[arg] != NULL) { - handleURI(argv[arg]); - arg++; - } - } - xmlMemoryDump(); - return(0); -} diff --git a/src/tools/docbook/libxml2/testXPath.c b/src/tools/docbook/libxml2/testXPath.c deleted file mode 100644 index 677419aade..0000000000 --- a/src/tools/docbook/libxml2/testXPath.c +++ /dev/null @@ -1,227 +0,0 @@ -/* - * testXPath.c : a small tester program for XPath. - * - * See Copyright for the status of this software. - * - * daniel@veillard.com - */ - -#include "libxml.h" -#if defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_DEBUG_ENABLED) - -#include - -#ifdef HAVE_SYS_TYPES_H -#include -#endif -#ifdef HAVE_SYS_STAT_H -#include -#endif -#ifdef HAVE_FCNTL_H -#include -#endif -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_STDLIB_H -#include -#endif - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if defined(LIBXML_XPTR_ENABLED) -#include -static int xptr = 0; -#endif -static int debug = 0; -static int valid = 0; -static int expr = 0; -static int tree = 0; -static int nocdata = 0; -static xmlDocPtr document = NULL; - -/* - * Default document - */ -static xmlChar buffer[] = -"\n\ -\n\ - \n\ - Welcome to Gnome\n\ - \n\ - \n\ - The Linux adventure\n\ -

    bla bla bla ...

    \n\ - \n\ -

    ...

    \n\ -
    \n\ - \n\ - Chapter 2\n\ -

    this is chapter 2 ...

    \n\ -
    \n\ - \n\ - Chapter 3\n\ -

    this is chapter 3 ...

    \n\ -
    \n\ -
    \n\ -"; - - -static void -testXPath(const char *str) { - xmlXPathObjectPtr res; - xmlXPathContextPtr ctxt; - -#if defined(LIBXML_XPTR_ENABLED) - if (xptr) { - ctxt = xmlXPtrNewContext(document, NULL, NULL); - res = xmlXPtrEval(BAD_CAST str, ctxt); - } else { -#endif - ctxt = xmlXPathNewContext(document); - ctxt->node = xmlDocGetRootElement(document); - if (expr) - res = xmlXPathEvalExpression(BAD_CAST str, ctxt); - else { - /* res = xmlXPathEval(BAD_CAST str, ctxt); */ - xmlXPathCompExprPtr comp; - - comp = xmlXPathCompile(BAD_CAST str); - if (comp != NULL) { - if (tree) - xmlXPathDebugDumpCompExpr(stdout, comp, 0); - - res = xmlXPathCompiledEval(comp, ctxt); - xmlXPathFreeCompExpr(comp); - } else - res = NULL; - } -#if defined(LIBXML_XPTR_ENABLED) - } -#endif - xmlXPathDebugDumpObject(stdout, res, 0); - xmlXPathFreeObject(res); - xmlXPathFreeContext(ctxt); -} - -static void -testXPathFile(const char *filename) { - FILE *input; - char expression[5000]; - int len; - - input = fopen(filename, "r"); - if (input == NULL) { - xmlGenericError(xmlGenericErrorContext, - "Cannot open %s for reading\n", filename); - return; - } - while (fgets(expression, 4500, input) != NULL) { - len = strlen(expression); - len--; - while ((len >= 0) && - ((expression[len] == '\n') || (expression[len] == '\t') || - (expression[len] == '\r') || (expression[len] == ' '))) len--; - expression[len + 1] = 0; - if (len >= 0) { - printf("\n========================\nExpression: %s\n", expression) ; - testXPath(expression); - } - } - - fclose(input); -} - -int main(int argc, char **argv) { - int i; - int strings = 0; - int usefile = 0; - char *filename = NULL; - - for (i = 1; i < argc ; i++) { -#if defined(LIBXML_XPTR_ENABLED) - if ((!strcmp(argv[i], "-xptr")) || (!strcmp(argv[i], "--xptr"))) - xptr++; - else -#endif - if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug"))) - debug++; - else if ((!strcmp(argv[i], "-valid")) || (!strcmp(argv[i], "--valid"))) - valid++; - else if ((!strcmp(argv[i], "-expr")) || (!strcmp(argv[i], "--expr"))) - expr++; - else if ((!strcmp(argv[i], "-tree")) || (!strcmp(argv[i], "--tree"))) - tree++; - else if ((!strcmp(argv[i], "-nocdata")) || - (!strcmp(argv[i], "--nocdata"))) - nocdata++; - else if ((!strcmp(argv[i], "-i")) || (!strcmp(argv[i], "--input"))) - filename = argv[++i]; - else if ((!strcmp(argv[i], "-f")) || (!strcmp(argv[i], "--file"))) - usefile++; - } - if (valid != 0) xmlDoValidityCheckingDefaultValue = 1; - xmlLoadExtDtdDefaultValue |= XML_DETECT_IDS; - xmlLoadExtDtdDefaultValue |= XML_COMPLETE_ATTRS; - xmlSubstituteEntitiesDefaultValue = 1; - if (nocdata != 0) { - xmlDefaultSAXHandlerInit(); - xmlDefaultSAXHandler.cdataBlock = NULL; - } - if (document == NULL) { - if (filename == NULL) - document = xmlReadDoc(buffer,NULL,NULL,XML_PARSE_COMPACT); - else - document = xmlReadFile(filename,NULL,XML_PARSE_COMPACT); - } - for (i = 1; i < argc ; i++) { - if ((!strcmp(argv[i], "-i")) || (!strcmp(argv[i], "--input"))) { - i++; continue; - } - if (argv[i][0] != '-') { - if (usefile) - testXPathFile(argv[i]); - else - testXPath(argv[i]); - strings ++; - } - } - if (strings == 0) { - printf("Usage : %s [--debug] [--copy] stringsorfiles ...\n", - argv[0]); - printf("\tParse the XPath strings and output the result of the parsing\n"); - printf("\t--debug : dump a debug version of the result\n"); - printf("\t--valid : switch on DTD support in the parser\n"); -#if defined(LIBXML_XPTR_ENABLED) - printf("\t--xptr : expressions are XPointer expressions\n"); -#endif - printf("\t--expr : debug XPath expressions only\n"); - printf("\t--tree : show the compiled XPath tree\n"); - printf("\t--nocdata : do not generate CDATA nodes\n"); - printf("\t--input filename : or\n"); - printf("\t-i filename : read the document from filename\n"); - printf("\t--file : or\n"); - printf("\t-f : read queries from files, args\n"); - } - if (document != NULL) - xmlFreeDoc(document); - xmlCleanupParser(); - xmlMemoryDump(); - - return(0); -} -#else -#include -int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { - printf("%s : XPath/Debug support not compiled in\n", argv[0]); - return(0); -} -#endif /* LIBXML_XPATH_ENABLED */ diff --git a/src/tools/docbook/libxml2/testapi.c b/src/tools/docbook/libxml2/testapi.c deleted file mode 100644 index 4629bc2616..0000000000 --- a/src/tools/docbook/libxml2/testapi.c +++ /dev/null @@ -1,51156 +0,0 @@ -/* - * testapi.c: libxml2 API tester program. - * - * Automatically generated by gentest.py from libxml2-api.xml - * - * See Copyright for the status of this software. - * - * daniel@veillard.com - */ - -#ifdef HAVE_CONFIG_H -#include "libxml.h" -#else -#include -#endif - -#include -#include -#include - -#if defined(_WIN32) && !defined(__CYGWIN__) -#define snprintf _snprintf -#endif - -static int testlibxml2(void); -static int test_module(const char *module); - -static int generic_errors = 0; -static int call_tests = 0; -static int function_tests = 0; - -static xmlChar chartab[1024]; -static int inttab[1024]; -static unsigned long longtab[1024]; - -static xmlDocPtr api_doc = NULL; -static xmlDtdPtr api_dtd = NULL; -static xmlNodePtr api_root = NULL; -static xmlAttrPtr api_attr = NULL; -static xmlNsPtr api_ns = NULL; - -static void -structured_errors(void *userData ATTRIBUTE_UNUSED, - xmlErrorPtr error ATTRIBUTE_UNUSED) { - generic_errors++; -} - -static void -free_api_doc(void) { - xmlFreeDoc(api_doc); - api_doc = NULL; - api_dtd = NULL; - api_root = NULL; - api_attr = NULL; - api_ns = NULL; -} - -static xmlDocPtr -get_api_doc(void) { - if (api_doc == NULL) { - api_doc = xmlReadMemory("]>", 88, "root_test", NULL, 0); - api_root = NULL; - api_attr = NULL; - } - return(api_doc); -} - -static xmlDtdPtr -get_api_dtd(void) { - if ((api_dtd == NULL) || (api_dtd->type != XML_DTD_NODE)) { - get_api_doc(); - if ((api_doc != NULL) && (api_doc->children != NULL) && - (api_doc->children->type == XML_DTD_NODE)) - api_dtd = (xmlDtdPtr) api_doc->children; - } - return(api_dtd); -} - -static xmlNodePtr -get_api_root(void) { - if ((api_root == NULL) || (api_root->type != XML_ELEMENT_NODE)) { - get_api_doc(); - if ((api_doc != NULL) && (api_doc->children != NULL) && - (api_doc->children->next != NULL) && - (api_doc->children->next->type == XML_ELEMENT_NODE)) - api_root = api_doc->children->next; - } - return(api_root); -} - -static xmlNsPtr -get_api_ns(void) { - get_api_root(); - if (api_root != NULL) - api_ns = api_root->nsDef; - return(api_ns); -} - -static xmlAttrPtr -get_api_attr(void) { -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) - static int nr = 0; - xmlChar name[20]; -#endif - - if ((api_root == NULL) || (api_root->type != XML_ELEMENT_NODE)) { - get_api_root(); - } - if (api_root == NULL) - return(NULL); - if (api_root->properties != NULL) { - api_attr = api_root->properties; - return(api_root->properties); - } - api_attr = NULL; -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) - snprintf((char *) name, 20, "foo%d", nr++); - api_attr = xmlSetProp(api_root, name, (const xmlChar *) "bar"); -#endif - return(api_attr); -} - -static int quiet = 0; - -int main(int argc, char **argv) { - int ret; - int blocks, mem; - - memset(chartab, 0, sizeof(chartab)); - strncpy((char *) chartab, " chartab\n", 20); - memset(inttab, 0, sizeof(inttab)); - memset(longtab, 0, sizeof(longtab)); - - xmlInitParser(); -#ifdef LIBXML_SCHEMAS_ENABLED - xmlRelaxNGInitTypes(); -#endif - - LIBXML_TEST_VERSION - - xmlSetStructuredErrorFunc(NULL, structured_errors); - - if (argc >= 2) { - if (!strcmp(argv[1], "-q")) { - quiet = 1; - if (argc >= 3) - ret = test_module(argv[2]); - else - ret = testlibxml2(); - } else { - ret = test_module(argv[1]); - } - } else - ret = testlibxml2(); - - xmlCleanupParser(); - blocks = xmlMemBlocks(); - mem = xmlMemUsed(); - if ((blocks != 0) || (mem != 0)) { - printf("testapi leaked %d bytes in %d blocks\n", mem, blocks); - } - xmlMemoryDump(); - - return (ret != 0); -} - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/* - We manually define xmlErrMemory because it's normal declaration - is "hidden" by #ifdef IN_LIBXML -*/ -void xmlErrMemory(xmlParserCtxtPtr ctxt, const char *extra); - -/* - We need some "remote" addresses, but want to avoid getting into - name resolution delays, so we use these -*/ -#define REMOTE1GOOD "http://localhost/" -#define REMOTE1BAD "http://missing. example.org/" -#define REMOTE2GOOD "ftp://localhost/foo" - -#define gen_nb_void_ptr 2 - -static void *gen_void_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_void_ptr(int no ATTRIBUTE_UNUSED, void *val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#if 0 -#define gen_nb_const_void_ptr 2 - -static const void *gen_const_void_ptr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return((const void *) "immutable string"); - return(NULL); -} -static void des_const_void_ptr(int no ATTRIBUTE_UNUSED, const void *val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - -#define gen_nb_userdata 3 - -static void *gen_userdata(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return((void *) &call_tests); - if (no == 1) return((void *) -1); - return(NULL); -} -static void des_userdata(int no ATTRIBUTE_UNUSED, void *val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - - -#define gen_nb_int 4 - -static int gen_int(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(0); - if (no == 1) return(1); - if (no == 2) return(-1); - if (no == 3) return(122); - return(-1); -} - -static void des_int(int no ATTRIBUTE_UNUSED, int val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_parseroptions 5 - -static int gen_parseroptions(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(XML_PARSE_NOBLANKS | XML_PARSE_RECOVER); - if (no == 1) return(XML_PARSE_NOENT | XML_PARSE_DTDLOAD | XML_PARSE_DTDATTR | XML_PARSE_DTDVALID | XML_PARSE_NOCDATA); - if (no == 2) return(XML_PARSE_XINCLUDE | XML_PARSE_NOXINCNODE | XML_PARSE_NSCLEAN); - if (no == 3) return(XML_PARSE_XINCLUDE | XML_PARSE_NODICT); - return(XML_PARSE_SAX1); -} - -static void des_parseroptions(int no ATTRIBUTE_UNUSED, int val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#if 0 -#define gen_nb_long 5 - -static long gen_long(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(0); - if (no == 1) return(1); - if (no == 2) return(-1); - if (no == 3) return(122); - return(-1); -} - -static void des_long(int no ATTRIBUTE_UNUSED, long val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - -#define gen_nb_xmlChar 4 - -static xmlChar gen_xmlChar(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return('a'); - if (no == 1) return(' '); - if (no == 2) return((xmlChar) 'ø'); - return(0); -} - -static void des_xmlChar(int no ATTRIBUTE_UNUSED, xmlChar val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_unsigned_int 3 - -static unsigned int gen_unsigned_int(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(0); - if (no == 1) return(1); - if (no == 2) return(122); - return((unsigned int) -1); -} - -static void des_unsigned_int(int no ATTRIBUTE_UNUSED, unsigned int val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_unsigned_long 4 - -static unsigned long gen_unsigned_long(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(0); - if (no == 1) return(1); - if (no == 2) return(122); - return((unsigned long) -1); -} - -static void des_unsigned_long(int no ATTRIBUTE_UNUSED, unsigned long val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_double 4 - -static double gen_double(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(0); - if (no == 1) return(-1.1); -#if defined(LIBXML_XPATH_ENABLED) - if (no == 2) return(xmlXPathNAN); -#endif - return(-1); -} - -static void des_double(int no ATTRIBUTE_UNUSED, double val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_unsigned_long_ptr 2 - -static unsigned long *gen_unsigned_long_ptr(int no, int nr) { - if (no == 0) return(&longtab[nr]); - return(NULL); -} - -static void des_unsigned_long_ptr(int no ATTRIBUTE_UNUSED, unsigned long *val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_int_ptr 2 - -static int *gen_int_ptr(int no, int nr) { - if (no == 0) return(&inttab[nr]); - return(NULL); -} - -static void des_int_ptr(int no ATTRIBUTE_UNUSED, int *val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_const_char_ptr 4 - -static char *gen_const_char_ptr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return((char *) "foo"); - if (no == 1) return((char *) ""); - if (no == 2) return((char *) "test/ent2"); - return(NULL); -} -static void des_const_char_ptr(int no ATTRIBUTE_UNUSED, const char *val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_xmlChar_ptr 2 - -static xmlChar *gen_xmlChar_ptr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(&chartab[0]); - return(NULL); -} -static void des_xmlChar_ptr(int no ATTRIBUTE_UNUSED, xmlChar *val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_FILE_ptr 2 - -static FILE *gen_FILE_ptr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(fopen("test.out", "a+")); - return(NULL); -} -static void des_FILE_ptr(int no ATTRIBUTE_UNUSED, FILE *val, int nr ATTRIBUTE_UNUSED) { - if (val != NULL) fclose(val); -} - -#define gen_nb_debug_FILE_ptr 2 -static FILE *gen_debug_FILE_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(fopen("test.out", "a+")); -} -static void des_debug_FILE_ptr(int no ATTRIBUTE_UNUSED, FILE *val, int nr ATTRIBUTE_UNUSED) { - if (val != NULL) fclose(val); -} - -#define gen_nb_const_xmlChar_ptr 5 - -static xmlChar *gen_const_xmlChar_ptr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return((xmlChar *) "foo"); - if (no == 1) return((xmlChar *) ""); - if (no == 2) return((xmlChar *) "nøne"); - if (no == 3) return((xmlChar *) " 2ab "); - return(NULL); -} -static void des_const_xmlChar_ptr(int no ATTRIBUTE_UNUSED, const xmlChar *val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_filepath 8 - -static const char *gen_filepath(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return("missing.xml"); - if (no == 1) return(""); - if (no == 2) return("test/ent2"); - if (no == 3) return("test/valid/REC-xml-19980210.xml"); - if (no == 4) return("test/valid/dtds/xhtml1-strict.dtd"); - if (no == 5) return(REMOTE1GOOD); - if (no == 6) return(REMOTE1BAD); - return(NULL); -} -static void des_filepath(int no ATTRIBUTE_UNUSED, const char *val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_eaten_name 2 - -static xmlChar *gen_eaten_name(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlStrdup(BAD_CAST "eaten")); - return(NULL); -} -static void des_eaten_name(int no ATTRIBUTE_UNUSED, xmlChar *val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_fileoutput 6 - -static const char *gen_fileoutput(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return("/missing.xml"); - if (no == 1) return(""); - if (no == 2) return(REMOTE2GOOD); - if (no == 3) return(REMOTE1GOOD); - if (no == 4) return(REMOTE1BAD); - return(NULL); -} -static void des_fileoutput(int no ATTRIBUTE_UNUSED, const char *val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_xmlParserCtxtPtr 3 -static xmlParserCtxtPtr gen_xmlParserCtxtPtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlNewParserCtxt()); - if (no == 1) return(xmlCreateMemoryParserCtxt("", 6)); - return(NULL); -} -static void des_xmlParserCtxtPtr(int no ATTRIBUTE_UNUSED, xmlParserCtxtPtr val, int nr ATTRIBUTE_UNUSED) { - if (val != NULL) - xmlFreeParserCtxt(val); -} - -#define gen_nb_xmlSAXHandlerPtr 2 -static xmlSAXHandlerPtr gen_xmlSAXHandlerPtr(int no, int nr ATTRIBUTE_UNUSED) { -#ifdef LIBXML_SAX1_ENABLED - if (no == 0) return((xmlSAXHandlerPtr) &xmlDefaultSAXHandler); -#endif - return(NULL); -} -static void des_xmlSAXHandlerPtr(int no ATTRIBUTE_UNUSED, xmlSAXHandlerPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_xmlValidCtxtPtr 2 -static xmlValidCtxtPtr gen_xmlValidCtxtPtr(int no, int nr ATTRIBUTE_UNUSED) { -#ifdef LIBXML_VALID_ENABLED - if (no == 0) return(xmlNewValidCtxt()); -#endif - return(NULL); -} -static void des_xmlValidCtxtPtr(int no ATTRIBUTE_UNUSED, xmlValidCtxtPtr val, int nr ATTRIBUTE_UNUSED) { -#ifdef LIBXML_VALID_ENABLED - if (val != NULL) - xmlFreeValidCtxt(val); -#endif -} - -#define gen_nb_xmlParserInputBufferPtr 8 - -static xmlParserInputBufferPtr gen_xmlParserInputBufferPtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlParserInputBufferCreateFilename("missing.xml", XML_CHAR_ENCODING_NONE)); - if (no == 1) return(xmlParserInputBufferCreateFilename("", XML_CHAR_ENCODING_NONE)); - if (no == 2) return(xmlParserInputBufferCreateFilename("test/ent2", XML_CHAR_ENCODING_NONE)); - if (no == 3) return(xmlParserInputBufferCreateFilename("test/valid/REC-xml-19980210.xml", XML_CHAR_ENCODING_NONE)); - if (no == 4) return(xmlParserInputBufferCreateFilename("test/valid/dtds/xhtml1-strict.dtd", XML_CHAR_ENCODING_NONE)); - if (no == 5) return(xmlParserInputBufferCreateFilename(REMOTE1GOOD, XML_CHAR_ENCODING_NONE)); - if (no == 6) return(xmlParserInputBufferCreateFilename(REMOTE1BAD, XML_CHAR_ENCODING_NONE)); - return(NULL); -} -static void des_xmlParserInputBufferPtr(int no ATTRIBUTE_UNUSED, xmlParserInputBufferPtr val, int nr ATTRIBUTE_UNUSED) { - xmlFreeParserInputBuffer(val); -} - -#define gen_nb_xmlDocPtr 3 -static xmlDocPtr gen_xmlDocPtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlNewDoc(BAD_CAST "1.0")); - if (no == 1) return(xmlReadMemory("", 6, "test", NULL, 0)); - return(NULL); -} -static void des_xmlDocPtr(int no ATTRIBUTE_UNUSED, xmlDocPtr val, int nr ATTRIBUTE_UNUSED) { - if ((val != NULL) && (val != api_doc) && (val->doc != api_doc)) - xmlFreeDoc(val); -} - -#define gen_nb_xmlAttrPtr 2 -static xmlAttrPtr gen_xmlAttrPtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(get_api_attr()); - return(NULL); -} -static void des_xmlAttrPtr(int no, xmlAttrPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - if (no == 0) free_api_doc(); -} - -#define gen_nb_xmlDictPtr 2 -static xmlDictPtr gen_xmlDictPtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlDictCreate()); - return(NULL); -} -static void des_xmlDictPtr(int no ATTRIBUTE_UNUSED, xmlDictPtr val, int nr ATTRIBUTE_UNUSED) { - if (val != NULL) - xmlDictFree(val); -} - -#define gen_nb_xmlNodePtr 3 -static xmlNodePtr gen_xmlNodePtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlNewPI(BAD_CAST "test", NULL)); - if (no == 1) return(get_api_root()); - return(NULL); -/* if (no == 2) return((xmlNodePtr) get_api_doc()); */ -} -static void des_xmlNodePtr(int no, xmlNodePtr val, int nr ATTRIBUTE_UNUSED) { - if (no == 1) { - free_api_doc(); - } else if (val != NULL) { - xmlUnlinkNode(val); - xmlFreeNode(val); - } -} - -#define gen_nb_xmlDtdPtr 3 -static xmlDtdPtr gen_xmlDtdPtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) - return(xmlNewDtd(NULL, BAD_CAST "dtd", BAD_CAST"foo", BAD_CAST"bar")); - if (no == 1) return(get_api_dtd()); - return(NULL); -} -static void des_xmlDtdPtr(int no, xmlDtdPtr val, int nr ATTRIBUTE_UNUSED) { - if (no == 1) free_api_doc(); - else if (val != NULL) { - xmlUnlinkNode((xmlNodePtr) val); - xmlFreeNode((xmlNodePtr) val); - } -} - -#define gen_nb_xmlNsPtr 2 -static xmlNsPtr gen_xmlNsPtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(get_api_ns()); - return(NULL); -} -static void des_xmlNsPtr(int no, xmlNsPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - if (no == 0) free_api_doc(); -} - -#define gen_nb_xmlNodePtr_in 3 -static xmlNodePtr gen_xmlNodePtr_in(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlNewPI(BAD_CAST "test", NULL)); - if (no == 0) return(xmlNewText(BAD_CAST "text")); - return(NULL); -} -static void des_xmlNodePtr_in(int no ATTRIBUTE_UNUSED, xmlNodePtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#ifdef LIBXML_WRITER_ENABLED -#define gen_nb_xmlTextWriterPtr 2 -static xmlTextWriterPtr gen_xmlTextWriterPtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlNewTextWriterFilename("test.out", 0)); - return(NULL); -} -static void des_xmlTextWriterPtr(int no ATTRIBUTE_UNUSED, xmlTextWriterPtr val, int nr ATTRIBUTE_UNUSED) { - if (val != NULL) xmlFreeTextWriter(val); -} -#endif - -#ifdef LIBXML_READER_ENABLED -#define gen_nb_xmlTextReaderPtr 4 -static xmlTextReaderPtr gen_xmlTextReaderPtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlNewTextReaderFilename("test/ent2")); - if (no == 1) return(xmlNewTextReaderFilename("test/valid/REC-xml-19980210.xml")); - if (no == 2) return(xmlNewTextReaderFilename("test/valid/dtds/xhtml1-strict.dtd")); - return(NULL); -} -static void des_xmlTextReaderPtr(int no ATTRIBUTE_UNUSED, xmlTextReaderPtr val, int nr ATTRIBUTE_UNUSED) { - if (val != NULL) xmlFreeTextReader(val); -} -#endif - -#define gen_nb_xmlBufferPtr 3 -static xmlBufferPtr gen_xmlBufferPtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlBufferCreate()); - if (no == 1) return(xmlBufferCreateStatic((void *)"a static buffer", 13)); - return(NULL); -} -static void des_xmlBufferPtr(int no ATTRIBUTE_UNUSED, xmlBufferPtr val, int nr ATTRIBUTE_UNUSED) { - if (val != NULL) { - xmlBufferFree(val); - } -} - -#define gen_nb_xmlListPtr 2 -static xmlListPtr gen_xmlListPtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlListCreate(NULL, NULL)); - return(NULL); -} -static void des_xmlListPtr(int no ATTRIBUTE_UNUSED, xmlListPtr val, int nr ATTRIBUTE_UNUSED) { - if (val != NULL) { - xmlListDelete(val); - } -} - -#define gen_nb_xmlHashTablePtr 2 -static xmlHashTablePtr gen_xmlHashTablePtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlHashCreate(10)); - return(NULL); -} -static void des_xmlHashTablePtr(int no ATTRIBUTE_UNUSED, xmlHashTablePtr val, int nr ATTRIBUTE_UNUSED) { - if (val != NULL) { - xmlHashFree(val, NULL); - } -} - -#include - -#ifdef LIBXML_XPATH_ENABLED -#define gen_nb_xmlXPathObjectPtr 5 -static xmlXPathObjectPtr gen_xmlXPathObjectPtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlXPathNewString(BAD_CAST "string object")); - if (no == 1) return(xmlXPathNewFloat(1.1)); - if (no == 2) return(xmlXPathNewBoolean(1)); - if (no == 3) return(xmlXPathNewNodeSet(NULL)); - return(NULL); -} -static void des_xmlXPathObjectPtr(int no ATTRIBUTE_UNUSED, xmlXPathObjectPtr val, int nr ATTRIBUTE_UNUSED) { - if (val != NULL) { - xmlXPathFreeObject(val); - } -} -#endif - -#ifdef LIBXML_OUTPUT_ENABLED -#define gen_nb_xmlOutputBufferPtr 2 -static xmlOutputBufferPtr gen_xmlOutputBufferPtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlOutputBufferCreateFilename("test.out", NULL, 0)); - return(NULL); -} -static void des_xmlOutputBufferPtr(int no ATTRIBUTE_UNUSED, xmlOutputBufferPtr val, int nr ATTRIBUTE_UNUSED) { - if (val != NULL) { - xmlOutputBufferClose(val); - } -} -#endif - -#ifdef LIBXML_FTP_ENABLED -#define gen_nb_xmlNanoFTPCtxtPtr 4 -static void *gen_xmlNanoFTPCtxtPtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlNanoFTPNewCtxt(REMOTE2GOOD)); - if (no == 1) return(xmlNanoFTPNewCtxt(REMOTE1GOOD)); - if (no == 2) return(xmlNanoFTPNewCtxt("foo")); - return(NULL); -} -static void des_xmlNanoFTPCtxtPtr(int no ATTRIBUTE_UNUSED, void *val, int nr ATTRIBUTE_UNUSED) { - if (val != NULL) { - xmlNanoFTPFreeCtxt(val); - } -} -#endif - -#ifdef LIBXML_HTTP_ENABLED -#define gen_nb_xmlNanoHTTPCtxtPtr 1 -static void *gen_xmlNanoHTTPCtxtPtr(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlNanoHTTPOpen(REMOTE1GOOD, NULL)); - if (no == 1) return(xmlNanoHTTPOpen(REMOTE2GOOD, NULL)); - if (no == 2) return(xmlNanoHTTPOpen(REMOTE1BAD, NULL)); - return(NULL); -} -static void des_xmlNanoHTTPCtxtPtr(int no ATTRIBUTE_UNUSED, void *val, int nr ATTRIBUTE_UNUSED) { - if (val != NULL) { - xmlNanoHTTPClose(val); - } -} -#endif - -#define gen_nb_xmlCharEncoding 4 -static xmlCharEncoding gen_xmlCharEncoding(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(XML_CHAR_ENCODING_UTF8); - if (no == 1) return(XML_CHAR_ENCODING_NONE); - if (no == 2) return(XML_CHAR_ENCODING_8859_1); - return(XML_CHAR_ENCODING_ERROR); -} -static void des_xmlCharEncoding(int no ATTRIBUTE_UNUSED, xmlCharEncoding val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#if defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - -#define gen_nb_xmlExpCtxtPtr 1 -static xmlExpCtxtPtr gen_xmlExpCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlExpCtxtPtr(int no ATTRIBUTE_UNUSED, xmlExpCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_xmlExpNodePtr 1 -static xmlExpNodePtr gen_xmlExpNodePtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlExpNodePtr(int no ATTRIBUTE_UNUSED, xmlExpNodePtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#endif - -#define gen_nb_xmlHashDeallocator 2 -static void -test_xmlHashDeallocator(void *payload ATTRIBUTE_UNUSED, xmlChar *name ATTRIBUTE_UNUSED) { -} - -static xmlHashDeallocator gen_xmlHashDeallocator(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(test_xmlHashDeallocator); - return(NULL); -} -static void des_xmlHashDeallocator(int no ATTRIBUTE_UNUSED, xmlHashDeallocator val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - - -static void desret_int(int val ATTRIBUTE_UNUSED) { -} -static void desret_xmlChar(xmlChar val ATTRIBUTE_UNUSED) { -} -static void desret_long(long val ATTRIBUTE_UNUSED) { -} -static void desret_unsigned_long(unsigned long val ATTRIBUTE_UNUSED) { -} -static void desret_double(double val ATTRIBUTE_UNUSED) { -} -static void desret_xmlCharEncoding(xmlCharEncoding val ATTRIBUTE_UNUSED) { -} -#if 0 -static void desret_const_void_ptr(void *val ATTRIBUTE_UNUSED) { -} -#endif -static void desret_void_ptr(void *val ATTRIBUTE_UNUSED) { -} -static void desret_const_char_ptr(const char *val ATTRIBUTE_UNUSED) { -} -static void desret_const_xmlChar_ptr(const xmlChar *val ATTRIBUTE_UNUSED) { -} -static void desret_xmlChar_ptr(xmlChar *val) { - if (val != NULL) - xmlFree(val); -} -static void desret_xmlDocPtr(xmlDocPtr val) { - if (val != api_doc) - xmlFreeDoc(val); -} -static void desret_xmlDictPtr(xmlDictPtr val) { - xmlDictFree(val); -} -#ifdef LIBXML_OUTPUT_ENABLED -static void desret_xmlOutputBufferPtr(xmlOutputBufferPtr val) { - xmlOutputBufferClose(val); -} -#endif -#ifdef LIBXML_READER_ENABLED -static void desret_xmlTextReaderPtr(xmlTextReaderPtr val) { - xmlFreeTextReader(val); -} -#endif -static void desret_xmlNodePtr(xmlNodePtr val) { - if ((val != NULL) && (val != api_root) && (val != (xmlNodePtr) api_doc)) { - xmlUnlinkNode(val); - xmlFreeNode(val); - } -} -static void desret_xmlAttrPtr(xmlAttrPtr val) { - if (val != NULL) { - xmlUnlinkNode((xmlNodePtr) val); - xmlFreeNode((xmlNodePtr) val); - } -} -static void desret_xmlEntityPtr(xmlEntityPtr val) { - if (val != NULL) { - xmlUnlinkNode((xmlNodePtr) val); - xmlFreeNode((xmlNodePtr) val); - } -} -static void desret_xmlElementPtr(xmlElementPtr val) { - if (val != NULL) { - xmlUnlinkNode((xmlNodePtr) val); - } -} -static void desret_xmlAttributePtr(xmlAttributePtr val) { - if (val != NULL) { - xmlUnlinkNode((xmlNodePtr) val); - } -} -static void desret_xmlNsPtr(xmlNsPtr val ATTRIBUTE_UNUSED) { -} -static void desret_xmlDtdPtr(xmlDtdPtr val) { - desret_xmlNodePtr((xmlNodePtr)val); -} -#ifdef LIBXML_XPATH_ENABLED -static void desret_xmlXPathObjectPtr(xmlXPathObjectPtr val) { - xmlXPathFreeObject(val); -} -static void desret_xmlNodeSetPtr(xmlNodeSetPtr val) { - xmlXPathFreeNodeSet(val); -} -#endif -static void desret_xmlParserCtxtPtr(xmlParserCtxtPtr val) { - xmlFreeParserCtxt(val); -} -static void desret_xmlParserInputBufferPtr(xmlParserInputBufferPtr val) { - xmlFreeParserInputBuffer(val); -} -static void desret_xmlParserInputPtr(xmlParserInputPtr val) { - xmlFreeInputStream(val); -} -#ifdef LIBXML_WRITER_ENABLED -static void desret_xmlTextWriterPtr(xmlTextWriterPtr val) { - xmlFreeTextWriter(val); -} -#endif -static void desret_xmlBufferPtr(xmlBufferPtr val) { - xmlBufferFree(val); -} -#ifdef LIBXML_SCHEMAS_ENABLED -static void desret_xmlSchemaParserCtxtPtr(xmlSchemaParserCtxtPtr val) { - xmlSchemaFreeParserCtxt(val); -} -static void desret_xmlSchemaTypePtr(xmlSchemaTypePtr val ATTRIBUTE_UNUSED) { -} -static void desret_xmlRelaxNGParserCtxtPtr(xmlRelaxNGParserCtxtPtr val) { - xmlRelaxNGFreeParserCtxt(val); -} -#endif -#ifdef LIBXML_HTML_ENABLED -static void desret_const_htmlEntityDesc_ptr(const htmlEntityDesc * val ATTRIBUTE_UNUSED) { -} -#endif -#ifdef LIBXML_HTTP_ENABLED -static void desret_xmlNanoHTTPCtxtPtr(void *val) { - xmlNanoHTTPClose(val); -} -#endif -#ifdef LIBXML_FTP_ENABLED -static void desret_xmlNanoFTPCtxtPtr(void *val) { - xmlNanoFTPClose(val); -} -#endif -/* cut and pasted from autogenerated to avoid troubles */ -#define gen_nb_const_xmlChar_ptr_ptr 1 -static xmlChar ** gen_const_xmlChar_ptr_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_const_xmlChar_ptr_ptr(int no ATTRIBUTE_UNUSED, const xmlChar ** val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_unsigned_char_ptr 1 -static unsigned char * gen_unsigned_char_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_unsigned_char_ptr(int no ATTRIBUTE_UNUSED, unsigned char * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_const_unsigned_char_ptr 1 -static unsigned char * gen_const_unsigned_char_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_const_unsigned_char_ptr(int no ATTRIBUTE_UNUSED, const unsigned char * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#ifdef LIBXML_HTML_ENABLED -#define gen_nb_const_htmlNodePtr 1 -static htmlNodePtr gen_const_htmlNodePtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_const_htmlNodePtr(int no ATTRIBUTE_UNUSED, const htmlNodePtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - -#ifdef LIBXML_HTML_ENABLED -#define gen_nb_htmlDocPtr 3 -static htmlDocPtr gen_htmlDocPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(htmlNewDoc(NULL, NULL)); - if (no == 1) return(htmlReadMemory("", 7, "test", NULL, 0)); - return(NULL); -} -static void des_htmlDocPtr(int no ATTRIBUTE_UNUSED, htmlDocPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - if ((val != NULL) && (val != api_doc) && (val->doc != api_doc)) - xmlFreeDoc(val); -} -static void desret_htmlDocPtr(htmlDocPtr val) { - if ((val != NULL) && (val != api_doc) && (val->doc != api_doc)) - xmlFreeDoc(val); -} -#define gen_nb_htmlParserCtxtPtr 3 -static htmlParserCtxtPtr gen_htmlParserCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - if (no == 0) return(xmlNewParserCtxt()); - if (no == 1) return(htmlCreateMemoryParserCtxt("", 7)); - return(NULL); -} -static void des_htmlParserCtxtPtr(int no ATTRIBUTE_UNUSED, htmlParserCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - if (val != NULL) - htmlFreeParserCtxt(val); -} -static void desret_htmlParserCtxtPtr(htmlParserCtxtPtr val) { - if (val != NULL) - htmlFreeParserCtxt(val); -} -#endif - -#ifdef LIBXML_XPATH_ENABLED -#define gen_nb_xmlNodeSetPtr 1 -static xmlNodeSetPtr gen_xmlNodeSetPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlNodeSetPtr(int no ATTRIBUTE_UNUSED, xmlNodeSetPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - -#ifdef LIBXML_DEBUG_ENABLED -#ifdef LIBXML_XPATH_ENABLED -#define gen_nb_xmlShellCtxtPtr 1 -static xmlShellCtxtPtr gen_xmlShellCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlShellCtxtPtr(int no ATTRIBUTE_UNUSED, xmlShellCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif -#endif - -#ifdef LIBXML_PATTERN_ENABLED -#define gen_nb_xmlPatternPtr 1 -static xmlPatternPtr gen_xmlPatternPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlPatternPtr(int no ATTRIBUTE_UNUSED, xmlPatternPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - -#define gen_nb_xmlElementContentPtr 1 -static xmlElementContentPtr gen_xmlElementContentPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlElementContentPtr(int no ATTRIBUTE_UNUSED, xmlElementContentPtr val, int nr ATTRIBUTE_UNUSED) { - if (val != NULL) - xmlFreeElementContent(val); -} -static void desret_xmlElementContentPtr(xmlElementContentPtr val) { - if (val != NULL) - xmlFreeElementContent(val); -} - -#define gen_nb_xmlParserNodeInfoSeqPtr 1 -static xmlParserNodeInfoSeqPtr gen_xmlParserNodeInfoSeqPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlParserNodeInfoSeqPtr(int no ATTRIBUTE_UNUSED, xmlParserNodeInfoSeqPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static void desret_const_xmlParserNodeInfo_ptr(const xmlParserNodeInfo *val ATTRIBUTE_UNUSED) { -} - -/************************************************************************ - * * - * WARNING: end of the manually maintained part of the test code * - * do not remove or alter the CUT HERE line * - * * - ************************************************************************/ - -/* CUT HERE: everything below that line is generated */ -#ifdef LIBXML_HTML_ENABLED -static void desret_htmlStatus(htmlStatus val ATTRIBUTE_UNUSED) { -} - -#endif - -#define gen_nb_xmlAttributeDefault 4 -static xmlAttributeDefault gen_xmlAttributeDefault(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 1) return(XML_ATTRIBUTE_FIXED); - if (no == 2) return(XML_ATTRIBUTE_IMPLIED); - if (no == 3) return(XML_ATTRIBUTE_NONE); - if (no == 4) return(XML_ATTRIBUTE_REQUIRED); - return(0); -} - -static void des_xmlAttributeDefault(int no ATTRIBUTE_UNUSED, xmlAttributeDefault val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_xmlAttributeType 4 -static xmlAttributeType gen_xmlAttributeType(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 1) return(XML_ATTRIBUTE_CDATA); - if (no == 2) return(XML_ATTRIBUTE_ENTITIES); - if (no == 3) return(XML_ATTRIBUTE_ENTITY); - if (no == 4) return(XML_ATTRIBUTE_ENUMERATION); - return(0); -} - -static void des_xmlAttributeType(int no ATTRIBUTE_UNUSED, xmlAttributeType val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_xmlBufferAllocationScheme 3 -static xmlBufferAllocationScheme gen_xmlBufferAllocationScheme(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 1) return(XML_BUFFER_ALLOC_DOUBLEIT); - if (no == 2) return(XML_BUFFER_ALLOC_EXACT); - if (no == 3) return(XML_BUFFER_ALLOC_IMMUTABLE); - return(0); -} - -static void des_xmlBufferAllocationScheme(int no ATTRIBUTE_UNUSED, xmlBufferAllocationScheme val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static void desret_xmlBufferAllocationScheme(xmlBufferAllocationScheme val ATTRIBUTE_UNUSED) { -} - -#ifdef LIBXML_CATALOG_ENABLED -#define gen_nb_xmlCatalogAllow 4 -static xmlCatalogAllow gen_xmlCatalogAllow(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 1) return(XML_CATA_ALLOW_ALL); - if (no == 2) return(XML_CATA_ALLOW_DOCUMENT); - if (no == 3) return(XML_CATA_ALLOW_GLOBAL); - if (no == 4) return(XML_CATA_ALLOW_NONE); - return(0); -} - -static void des_xmlCatalogAllow(int no ATTRIBUTE_UNUSED, xmlCatalogAllow val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static void desret_xmlCatalogAllow(xmlCatalogAllow val ATTRIBUTE_UNUSED) { -} - -#endif - -#ifdef LIBXML_CATALOG_ENABLED -#define gen_nb_xmlCatalogPrefer 3 -static xmlCatalogPrefer gen_xmlCatalogPrefer(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 1) return(XML_CATA_PREFER_NONE); - if (no == 2) return(XML_CATA_PREFER_PUBLIC); - if (no == 3) return(XML_CATA_PREFER_SYSTEM); - return(0); -} - -static void des_xmlCatalogPrefer(int no ATTRIBUTE_UNUSED, xmlCatalogPrefer val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static void desret_xmlCatalogPrefer(xmlCatalogPrefer val ATTRIBUTE_UNUSED) { -} - -#endif - -#define gen_nb_xmlElementContentType 4 -static xmlElementContentType gen_xmlElementContentType(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 1) return(XML_ELEMENT_CONTENT_ELEMENT); - if (no == 2) return(XML_ELEMENT_CONTENT_OR); - if (no == 3) return(XML_ELEMENT_CONTENT_PCDATA); - if (no == 4) return(XML_ELEMENT_CONTENT_SEQ); - return(0); -} - -static void des_xmlElementContentType(int no ATTRIBUTE_UNUSED, xmlElementContentType val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_xmlElementTypeVal 4 -static xmlElementTypeVal gen_xmlElementTypeVal(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 1) return(XML_ELEMENT_TYPE_ANY); - if (no == 2) return(XML_ELEMENT_TYPE_ELEMENT); - if (no == 3) return(XML_ELEMENT_TYPE_EMPTY); - if (no == 4) return(XML_ELEMENT_TYPE_MIXED); - return(0); -} - -static void des_xmlElementTypeVal(int no ATTRIBUTE_UNUSED, xmlElementTypeVal val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_xmlFeature 4 -static xmlFeature gen_xmlFeature(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 1) return(XML_WITH_AUTOMATA); - if (no == 2) return(XML_WITH_C14N); - if (no == 3) return(XML_WITH_CATALOG); - if (no == 4) return(XML_WITH_DEBUG); - return(0); -} - -static void des_xmlFeature(int no ATTRIBUTE_UNUSED, xmlFeature val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static void desret_xmlParserErrors(xmlParserErrors val ATTRIBUTE_UNUSED) { -} - -#ifdef LIBXML_SCHEMAS_ENABLED -#define gen_nb_xmlSchemaValType 4 -static xmlSchemaValType gen_xmlSchemaValType(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 1) return(XML_SCHEMAS_ANYSIMPLETYPE); - if (no == 2) return(XML_SCHEMAS_ANYTYPE); - if (no == 3) return(XML_SCHEMAS_ANYURI); - if (no == 4) return(XML_SCHEMAS_BASE64BINARY); - return(0); -} - -static void des_xmlSchemaValType(int no ATTRIBUTE_UNUSED, xmlSchemaValType val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static void desret_xmlSchemaValType(xmlSchemaValType val ATTRIBUTE_UNUSED) { -} - -#endif - -#ifdef LIBXML_SCHEMAS_ENABLED -#define gen_nb_xmlSchemaWhitespaceValueType 4 -static xmlSchemaWhitespaceValueType gen_xmlSchemaWhitespaceValueType(int no, int nr ATTRIBUTE_UNUSED) { - if (no == 1) return(XML_SCHEMA_WHITESPACE_COLLAPSE); - if (no == 2) return(XML_SCHEMA_WHITESPACE_PRESERVE); - if (no == 3) return(XML_SCHEMA_WHITESPACE_REPLACE); - if (no == 4) return(XML_SCHEMA_WHITESPACE_UNKNOWN); - return(0); -} - -static void des_xmlSchemaWhitespaceValueType(int no ATTRIBUTE_UNUSED, xmlSchemaWhitespaceValueType val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -static int test_HTMLparser(void); -static int test_HTMLtree(void); -static int test_SAX2(void); -static int test_c14n(void); -static int test_catalog(void); -static int test_chvalid(void); -static int test_debugXML(void); -static int test_dict(void); -static int test_encoding(void); -static int test_entities(void); -static int test_hash(void); -static int test_list(void); -static int test_nanoftp(void); -static int test_nanohttp(void); -static int test_parser(void); -static int test_parserInternals(void); -static int test_pattern(void); -static int test_relaxng(void); -static int test_schemasInternals(void); -static int test_schematron(void); -static int test_tree(void); -static int test_uri(void); -static int test_valid(void); -static int test_xinclude(void); -static int test_xmlIO(void); -static int test_xmlautomata(void); -static int test_xmlerror(void); -static int test_xmlmodule(void); -static int test_xmlreader(void); -static int test_xmlregexp(void); -static int test_xmlsave(void); -static int test_xmlschemas(void); -static int test_xmlschemastypes(void); -static int test_xmlstring(void); -static int test_xmlunicode(void); -static int test_xmlwriter(void); -static int test_xpath(void); -static int test_xpathInternals(void); -static int test_xpointer(void); - -/** - * testlibxml2: - * - * Main entry point of the tester for the full libxml2 module, - * it calls all the tester entry point for each module. - * - * Returns the number of error found - */ -static int -testlibxml2(void) -{ - int test_ret = 0; - - test_ret += test_HTMLparser(); - test_ret += test_HTMLtree(); - test_ret += test_SAX2(); - test_ret += test_c14n(); - test_ret += test_catalog(); - test_ret += test_chvalid(); - test_ret += test_debugXML(); - test_ret += test_dict(); - test_ret += test_encoding(); - test_ret += test_entities(); - test_ret += test_hash(); - test_ret += test_list(); - test_ret += test_nanoftp(); - test_ret += test_nanohttp(); - test_ret += test_parser(); - test_ret += test_parserInternals(); - test_ret += test_pattern(); - test_ret += test_relaxng(); - test_ret += test_schemasInternals(); - test_ret += test_schematron(); - test_ret += test_tree(); - test_ret += test_uri(); - test_ret += test_valid(); - test_ret += test_xinclude(); - test_ret += test_xmlIO(); - test_ret += test_xmlautomata(); - test_ret += test_xmlerror(); - test_ret += test_xmlmodule(); - test_ret += test_xmlreader(); - test_ret += test_xmlregexp(); - test_ret += test_xmlsave(); - test_ret += test_xmlschemas(); - test_ret += test_xmlschemastypes(); - test_ret += test_xmlstring(); - test_ret += test_xmlunicode(); - test_ret += test_xmlwriter(); - test_ret += test_xpath(); - test_ret += test_xpathInternals(); - test_ret += test_xpointer(); - - printf("Total: %d functions, %d tests, %d errors\n", - function_tests, call_tests, test_ret); - return(test_ret); -} - - -static int -test_UTF8ToHtml(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - int ret_val; - unsigned char * out; /* a pointer to an array of bytes to store the result */ - int n_out; - int * outlen; /* the length of @out */ - int n_outlen; - unsigned char * in; /* a pointer to an array of UTF-8 chars */ - int n_in; - int * inlen; /* the length of @in */ - int n_inlen; - - for (n_out = 0;n_out < gen_nb_unsigned_char_ptr;n_out++) { - for (n_outlen = 0;n_outlen < gen_nb_int_ptr;n_outlen++) { - for (n_in = 0;n_in < gen_nb_const_unsigned_char_ptr;n_in++) { - for (n_inlen = 0;n_inlen < gen_nb_int_ptr;n_inlen++) { - mem_base = xmlMemBlocks(); - out = gen_unsigned_char_ptr(n_out, 0); - outlen = gen_int_ptr(n_outlen, 1); - in = gen_const_unsigned_char_ptr(n_in, 2); - inlen = gen_int_ptr(n_inlen, 3); - - ret_val = UTF8ToHtml(out, outlen, (const unsigned char *)in, inlen); - desret_int(ret_val); - call_tests++; - des_unsigned_char_ptr(n_out, out, 0); - des_int_ptr(n_outlen, outlen, 1); - des_const_unsigned_char_ptr(n_in, (const unsigned char *)in, 2); - des_int_ptr(n_inlen, inlen, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in UTF8ToHtml", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_out); - printf(" %d", n_outlen); - printf(" %d", n_in); - printf(" %d", n_inlen); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -#ifdef LIBXML_HTML_ENABLED - -#define gen_nb_const_htmlElemDesc_ptr 1 -static htmlElemDesc * gen_const_htmlElemDesc_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_const_htmlElemDesc_ptr(int no ATTRIBUTE_UNUSED, const htmlElemDesc * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_htmlAttrAllowed(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlStatus ret_val; - htmlElemDesc * elt; /* HTML element */ - int n_elt; - xmlChar * attr; /* HTML attribute */ - int n_attr; - int legacy; /* whether to allow deprecated attributes */ - int n_legacy; - - for (n_elt = 0;n_elt < gen_nb_const_htmlElemDesc_ptr;n_elt++) { - for (n_attr = 0;n_attr < gen_nb_const_xmlChar_ptr;n_attr++) { - for (n_legacy = 0;n_legacy < gen_nb_int;n_legacy++) { - mem_base = xmlMemBlocks(); - elt = gen_const_htmlElemDesc_ptr(n_elt, 0); - attr = gen_const_xmlChar_ptr(n_attr, 1); - legacy = gen_int(n_legacy, 2); - - ret_val = htmlAttrAllowed((const htmlElemDesc *)elt, (const xmlChar *)attr, legacy); - desret_htmlStatus(ret_val); - call_tests++; - des_const_htmlElemDesc_ptr(n_elt, (const htmlElemDesc *)elt, 0); - des_const_xmlChar_ptr(n_attr, (const xmlChar *)attr, 1); - des_int(n_legacy, legacy, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlAttrAllowed", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_elt); - printf(" %d", n_attr); - printf(" %d", n_legacy); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -#ifdef LIBXML_HTML_ENABLED - -#define gen_nb_htmlNodePtr 1 -static htmlNodePtr gen_htmlNodePtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_htmlNodePtr(int no ATTRIBUTE_UNUSED, htmlNodePtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_htmlAutoCloseTag(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - int ret_val; - htmlDocPtr doc; /* the HTML document */ - int n_doc; - xmlChar * name; /* The tag name */ - int n_name; - htmlNodePtr elem; /* the HTML element */ - int n_elem; - - for (n_doc = 0;n_doc < gen_nb_htmlDocPtr;n_doc++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_elem = 0;n_elem < gen_nb_htmlNodePtr;n_elem++) { - mem_base = xmlMemBlocks(); - doc = gen_htmlDocPtr(n_doc, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - elem = gen_htmlNodePtr(n_elem, 2); - - ret_val = htmlAutoCloseTag(doc, (const xmlChar *)name, elem); - desret_int(ret_val); - call_tests++; - des_htmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_htmlNodePtr(n_elem, elem, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlAutoCloseTag", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_name); - printf(" %d", n_elem); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlCreateMemoryParserCtxt(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlParserCtxtPtr ret_val; - char * buffer; /* a pointer to a char array */ - int n_buffer; - int size; /* the size of the array */ - int n_size; - - for (n_buffer = 0;n_buffer < gen_nb_const_char_ptr;n_buffer++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - mem_base = xmlMemBlocks(); - buffer = gen_const_char_ptr(n_buffer, 0); - size = gen_int(n_size, 1); - - ret_val = htmlCreateMemoryParserCtxt((const char *)buffer, size); - desret_htmlParserCtxtPtr(ret_val); - call_tests++; - des_const_char_ptr(n_buffer, (const char *)buffer, 0); - des_int(n_size, size, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlCreateMemoryParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buffer); - printf(" %d", n_size); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -#ifdef LIBXML_HTML_ENABLED - -#define gen_nb_htmlSAXHandlerPtr 1 -static htmlSAXHandlerPtr gen_htmlSAXHandlerPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_htmlSAXHandlerPtr(int no ATTRIBUTE_UNUSED, htmlSAXHandlerPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_htmlCreatePushParserCtxt(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_PUSH_ENABLED) - int mem_base; - htmlParserCtxtPtr ret_val; - htmlSAXHandlerPtr sax; /* a SAX handler */ - int n_sax; - void * user_data; /* The user data returned on SAX callbacks */ - int n_user_data; - char * chunk; /* a pointer to an array of chars */ - int n_chunk; - int size; /* number of chars in the array */ - int n_size; - const char * filename; /* an optional file name or URI */ - int n_filename; - xmlCharEncoding enc; /* an optional encoding */ - int n_enc; - - for (n_sax = 0;n_sax < gen_nb_htmlSAXHandlerPtr;n_sax++) { - for (n_user_data = 0;n_user_data < gen_nb_userdata;n_user_data++) { - for (n_chunk = 0;n_chunk < gen_nb_const_char_ptr;n_chunk++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - for (n_filename = 0;n_filename < gen_nb_fileoutput;n_filename++) { - for (n_enc = 0;n_enc < gen_nb_xmlCharEncoding;n_enc++) { - mem_base = xmlMemBlocks(); - sax = gen_htmlSAXHandlerPtr(n_sax, 0); - user_data = gen_userdata(n_user_data, 1); - chunk = gen_const_char_ptr(n_chunk, 2); - size = gen_int(n_size, 3); - filename = gen_fileoutput(n_filename, 4); - enc = gen_xmlCharEncoding(n_enc, 5); - - ret_val = htmlCreatePushParserCtxt(sax, user_data, (const char *)chunk, size, filename, enc); - desret_htmlParserCtxtPtr(ret_val); - call_tests++; - des_htmlSAXHandlerPtr(n_sax, sax, 0); - des_userdata(n_user_data, user_data, 1); - des_const_char_ptr(n_chunk, (const char *)chunk, 2); - des_int(n_size, size, 3); - des_fileoutput(n_filename, filename, 4); - des_xmlCharEncoding(n_enc, enc, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlCreatePushParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_sax); - printf(" %d", n_user_data); - printf(" %d", n_chunk); - printf(" %d", n_size); - printf(" %d", n_filename); - printf(" %d", n_enc); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlCtxtReadDoc(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlDocPtr ret_val; - htmlParserCtxtPtr ctxt; /* an HTML parser context */ - int n_ctxt; - xmlChar * cur; /* a pointer to a zero terminated string */ - int n_cur; - const char * URL; /* the base URL to use for the document */ - int n_URL; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of htmlParserOption(s) */ - int n_options; - - for (n_ctxt = 0;n_ctxt < gen_nb_htmlParserCtxtPtr;n_ctxt++) { - for (n_cur = 0;n_cur < gen_nb_const_xmlChar_ptr;n_cur++) { - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_int;n_options++) { - mem_base = xmlMemBlocks(); - ctxt = gen_htmlParserCtxtPtr(n_ctxt, 0); - cur = gen_const_xmlChar_ptr(n_cur, 1); - URL = gen_filepath(n_URL, 2); - encoding = gen_const_char_ptr(n_encoding, 3); - options = gen_int(n_options, 4); - - ret_val = htmlCtxtReadDoc(ctxt, (const xmlChar *)cur, URL, (const char *)encoding, options); - desret_htmlDocPtr(ret_val); - call_tests++; - des_htmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_cur, (const xmlChar *)cur, 1); - des_filepath(n_URL, URL, 2); - des_const_char_ptr(n_encoding, (const char *)encoding, 3); - des_int(n_options, options, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlCtxtReadDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_cur); - printf(" %d", n_URL); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlCtxtReadFile(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - htmlDocPtr ret_val; - htmlParserCtxtPtr ctxt; /* an HTML parser context */ - int n_ctxt; - const char * filename; /* a file or URL */ - int n_filename; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of htmlParserOption(s) */ - int n_options; - - for (n_ctxt = 0;n_ctxt < gen_nb_htmlParserCtxtPtr;n_ctxt++) { - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_int;n_options++) { - ctxt = gen_htmlParserCtxtPtr(n_ctxt, 0); - filename = gen_filepath(n_filename, 1); - encoding = gen_const_char_ptr(n_encoding, 2); - options = gen_int(n_options, 3); - - ret_val = htmlCtxtReadFile(ctxt, filename, (const char *)encoding, options); - desret_htmlDocPtr(ret_val); - call_tests++; - des_htmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_filepath(n_filename, filename, 1); - des_const_char_ptr(n_encoding, (const char *)encoding, 2); - des_int(n_options, options, 3); - xmlResetLastError(); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlCtxtReadMemory(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlDocPtr ret_val; - htmlParserCtxtPtr ctxt; /* an HTML parser context */ - int n_ctxt; - char * buffer; /* a pointer to a char array */ - int n_buffer; - int size; /* the size of the array */ - int n_size; - const char * URL; /* the base URL to use for the document */ - int n_URL; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of htmlParserOption(s) */ - int n_options; - - for (n_ctxt = 0;n_ctxt < gen_nb_htmlParserCtxtPtr;n_ctxt++) { - for (n_buffer = 0;n_buffer < gen_nb_const_char_ptr;n_buffer++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_int;n_options++) { - mem_base = xmlMemBlocks(); - ctxt = gen_htmlParserCtxtPtr(n_ctxt, 0); - buffer = gen_const_char_ptr(n_buffer, 1); - size = gen_int(n_size, 2); - URL = gen_filepath(n_URL, 3); - encoding = gen_const_char_ptr(n_encoding, 4); - options = gen_int(n_options, 5); - - ret_val = htmlCtxtReadMemory(ctxt, (const char *)buffer, size, URL, (const char *)encoding, options); - desret_htmlDocPtr(ret_val); - call_tests++; - des_htmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_char_ptr(n_buffer, (const char *)buffer, 1); - des_int(n_size, size, 2); - des_filepath(n_URL, URL, 3); - des_const_char_ptr(n_encoding, (const char *)encoding, 4); - des_int(n_options, options, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlCtxtReadMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_buffer); - printf(" %d", n_size); - printf(" %d", n_URL); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlCtxtReset(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlParserCtxtPtr ctxt; /* an HTML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_htmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_htmlParserCtxtPtr(n_ctxt, 0); - - htmlCtxtReset(ctxt); - call_tests++; - des_htmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlCtxtReset", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlCtxtUseOptions(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - int ret_val; - htmlParserCtxtPtr ctxt; /* an HTML parser context */ - int n_ctxt; - int options; /* a combination of htmlParserOption(s) */ - int n_options; - - for (n_ctxt = 0;n_ctxt < gen_nb_htmlParserCtxtPtr;n_ctxt++) { - for (n_options = 0;n_options < gen_nb_int;n_options++) { - mem_base = xmlMemBlocks(); - ctxt = gen_htmlParserCtxtPtr(n_ctxt, 0); - options = gen_int(n_options, 1); - - ret_val = htmlCtxtUseOptions(ctxt, options); - desret_int(ret_val); - call_tests++; - des_htmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_int(n_options, options, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlCtxtUseOptions", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_options); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlElementAllowedHere(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - int ret_val; - htmlElemDesc * parent; /* HTML parent element */ - int n_parent; - xmlChar * elt; /* HTML element */ - int n_elt; - - for (n_parent = 0;n_parent < gen_nb_const_htmlElemDesc_ptr;n_parent++) { - for (n_elt = 0;n_elt < gen_nb_const_xmlChar_ptr;n_elt++) { - mem_base = xmlMemBlocks(); - parent = gen_const_htmlElemDesc_ptr(n_parent, 0); - elt = gen_const_xmlChar_ptr(n_elt, 1); - - ret_val = htmlElementAllowedHere((const htmlElemDesc *)parent, (const xmlChar *)elt); - desret_int(ret_val); - call_tests++; - des_const_htmlElemDesc_ptr(n_parent, (const htmlElemDesc *)parent, 0); - des_const_xmlChar_ptr(n_elt, (const xmlChar *)elt, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlElementAllowedHere", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_parent); - printf(" %d", n_elt); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlElementStatusHere(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlStatus ret_val; - htmlElemDesc * parent; /* HTML parent element */ - int n_parent; - htmlElemDesc * elt; /* HTML element */ - int n_elt; - - for (n_parent = 0;n_parent < gen_nb_const_htmlElemDesc_ptr;n_parent++) { - for (n_elt = 0;n_elt < gen_nb_const_htmlElemDesc_ptr;n_elt++) { - mem_base = xmlMemBlocks(); - parent = gen_const_htmlElemDesc_ptr(n_parent, 0); - elt = gen_const_htmlElemDesc_ptr(n_elt, 1); - - ret_val = htmlElementStatusHere((const htmlElemDesc *)parent, (const htmlElemDesc *)elt); - desret_htmlStatus(ret_val); - call_tests++; - des_const_htmlElemDesc_ptr(n_parent, (const htmlElemDesc *)parent, 0); - des_const_htmlElemDesc_ptr(n_elt, (const htmlElemDesc *)elt, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlElementStatusHere", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_parent); - printf(" %d", n_elt); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlEncodeEntities(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - int ret_val; - unsigned char * out; /* a pointer to an array of bytes to store the result */ - int n_out; - int * outlen; /* the length of @out */ - int n_outlen; - unsigned char * in; /* a pointer to an array of UTF-8 chars */ - int n_in; - int * inlen; /* the length of @in */ - int n_inlen; - int quoteChar; /* the quote character to escape (' or ") or zero. */ - int n_quoteChar; - - for (n_out = 0;n_out < gen_nb_unsigned_char_ptr;n_out++) { - for (n_outlen = 0;n_outlen < gen_nb_int_ptr;n_outlen++) { - for (n_in = 0;n_in < gen_nb_const_unsigned_char_ptr;n_in++) { - for (n_inlen = 0;n_inlen < gen_nb_int_ptr;n_inlen++) { - for (n_quoteChar = 0;n_quoteChar < gen_nb_int;n_quoteChar++) { - mem_base = xmlMemBlocks(); - out = gen_unsigned_char_ptr(n_out, 0); - outlen = gen_int_ptr(n_outlen, 1); - in = gen_const_unsigned_char_ptr(n_in, 2); - inlen = gen_int_ptr(n_inlen, 3); - quoteChar = gen_int(n_quoteChar, 4); - - ret_val = htmlEncodeEntities(out, outlen, (const unsigned char *)in, inlen, quoteChar); - desret_int(ret_val); - call_tests++; - des_unsigned_char_ptr(n_out, out, 0); - des_int_ptr(n_outlen, outlen, 1); - des_const_unsigned_char_ptr(n_in, (const unsigned char *)in, 2); - des_int_ptr(n_inlen, inlen, 3); - des_int(n_quoteChar, quoteChar, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlEncodeEntities", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_out); - printf(" %d", n_outlen); - printf(" %d", n_in); - printf(" %d", n_inlen); - printf(" %d", n_quoteChar); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlEntityLookup(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - const htmlEntityDesc * ret_val; - xmlChar * name; /* the entity name */ - int n_name; - - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - name = gen_const_xmlChar_ptr(n_name, 0); - - ret_val = htmlEntityLookup((const xmlChar *)name); - desret_const_htmlEntityDesc_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlEntityLookup", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_name); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlEntityValueLookup(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - const htmlEntityDesc * ret_val; - unsigned int value; /* the entity's unicode value */ - int n_value; - - for (n_value = 0;n_value < gen_nb_unsigned_int;n_value++) { - mem_base = xmlMemBlocks(); - value = gen_unsigned_int(n_value, 0); - - ret_val = htmlEntityValueLookup(value); - desret_const_htmlEntityDesc_ptr(ret_val); - call_tests++; - des_unsigned_int(n_value, value, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlEntityValueLookup", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_value); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlHandleOmittedElem(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - int ret_val; - int val; /* int 0 or 1 */ - int n_val; - - for (n_val = 0;n_val < gen_nb_int;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_int(n_val, 0); - - ret_val = htmlHandleOmittedElem(val); - desret_int(ret_val); - call_tests++; - des_int(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlHandleOmittedElem", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlIsAutoClosed(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - int ret_val; - htmlDocPtr doc; /* the HTML document */ - int n_doc; - htmlNodePtr elem; /* the HTML element */ - int n_elem; - - for (n_doc = 0;n_doc < gen_nb_htmlDocPtr;n_doc++) { - for (n_elem = 0;n_elem < gen_nb_htmlNodePtr;n_elem++) { - mem_base = xmlMemBlocks(); - doc = gen_htmlDocPtr(n_doc, 0); - elem = gen_htmlNodePtr(n_elem, 1); - - ret_val = htmlIsAutoClosed(doc, elem); - desret_int(ret_val); - call_tests++; - des_htmlDocPtr(n_doc, doc, 0); - des_htmlNodePtr(n_elem, elem, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlIsAutoClosed", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_elem); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlIsScriptAttribute(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - int ret_val; - xmlChar * name; /* an attribute name */ - int n_name; - - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - name = gen_const_xmlChar_ptr(n_name, 0); - - ret_val = htmlIsScriptAttribute((const xmlChar *)name); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlIsScriptAttribute", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_name); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlNodeStatus(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlStatus ret_val; - htmlNodePtr node; /* an htmlNodePtr in a tree */ - int n_node; - int legacy; /* whether to allow deprecated elements (YES is faster here for Element nodes) */ - int n_legacy; - - for (n_node = 0;n_node < gen_nb_const_htmlNodePtr;n_node++) { - for (n_legacy = 0;n_legacy < gen_nb_int;n_legacy++) { - mem_base = xmlMemBlocks(); - node = gen_const_htmlNodePtr(n_node, 0); - legacy = gen_int(n_legacy, 1); - - ret_val = htmlNodeStatus((const htmlNodePtr)node, legacy); - desret_htmlStatus(ret_val); - call_tests++; - des_const_htmlNodePtr(n_node, (const htmlNodePtr)node, 0); - des_int(n_legacy, legacy, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlNodeStatus", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_legacy); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlParseCharRef(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - int ret_val; - htmlParserCtxtPtr ctxt; /* an HTML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_htmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_htmlParserCtxtPtr(n_ctxt, 0); - - ret_val = htmlParseCharRef(ctxt); - desret_int(ret_val); - call_tests++; - des_htmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlParseCharRef", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlParseChunk(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_PUSH_ENABLED) - int mem_base; - int ret_val; - htmlParserCtxtPtr ctxt; /* an HTML parser context */ - int n_ctxt; - char * chunk; /* an char array */ - int n_chunk; - int size; /* the size in byte of the chunk */ - int n_size; - int terminate; /* last chunk indicator */ - int n_terminate; - - for (n_ctxt = 0;n_ctxt < gen_nb_htmlParserCtxtPtr;n_ctxt++) { - for (n_chunk = 0;n_chunk < gen_nb_const_char_ptr;n_chunk++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - for (n_terminate = 0;n_terminate < gen_nb_int;n_terminate++) { - mem_base = xmlMemBlocks(); - ctxt = gen_htmlParserCtxtPtr(n_ctxt, 0); - chunk = gen_const_char_ptr(n_chunk, 1); - size = gen_int(n_size, 2); - terminate = gen_int(n_terminate, 3); - - ret_val = htmlParseChunk(ctxt, (const char *)chunk, size, terminate); - if (ctxt != NULL) {xmlFreeDoc(ctxt->myDoc); ctxt->myDoc = NULL;} - desret_int(ret_val); - call_tests++; - des_htmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_char_ptr(n_chunk, (const char *)chunk, 1); - des_int(n_size, size, 2); - des_int(n_terminate, terminate, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlParseChunk", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_chunk); - printf(" %d", n_size); - printf(" %d", n_terminate); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlParseDoc(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlDocPtr ret_val; - xmlChar * cur; /* a pointer to an array of xmlChar */ - int n_cur; - char * encoding; /* a free form C string describing the HTML document encoding, or NULL */ - int n_encoding; - - for (n_cur = 0;n_cur < gen_nb_xmlChar_ptr;n_cur++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlChar_ptr(n_cur, 0); - encoding = gen_const_char_ptr(n_encoding, 1); - - ret_val = htmlParseDoc(cur, (const char *)encoding); - desret_htmlDocPtr(ret_val); - call_tests++; - des_xmlChar_ptr(n_cur, cur, 0); - des_const_char_ptr(n_encoding, (const char *)encoding, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlParseDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_encoding); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlParseDocument(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - int ret_val; - htmlParserCtxtPtr ctxt; /* an HTML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_htmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_htmlParserCtxtPtr(n_ctxt, 0); - - ret_val = htmlParseDocument(ctxt); - if (ctxt != NULL) {xmlFreeDoc(ctxt->myDoc); ctxt->myDoc = NULL;} - desret_int(ret_val); - call_tests++; - des_htmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlParseDocument", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlParseElement(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlParserCtxtPtr ctxt; /* an HTML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_htmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_htmlParserCtxtPtr(n_ctxt, 0); - - htmlParseElement(ctxt); - call_tests++; - des_htmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlParseElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlParseEntityRef(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - const htmlEntityDesc * ret_val; - htmlParserCtxtPtr ctxt; /* an HTML parser context */ - int n_ctxt; - xmlChar ** str; /* location to store the entity name */ - int n_str; - - for (n_ctxt = 0;n_ctxt < gen_nb_htmlParserCtxtPtr;n_ctxt++) { - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr_ptr;n_str++) { - mem_base = xmlMemBlocks(); - ctxt = gen_htmlParserCtxtPtr(n_ctxt, 0); - str = gen_const_xmlChar_ptr_ptr(n_str, 1); - - ret_val = htmlParseEntityRef(ctxt, (const xmlChar **)str); - desret_const_htmlEntityDesc_ptr(ret_val); - call_tests++; - des_htmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr_ptr(n_str, (const xmlChar **)str, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlParseEntityRef", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_str); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlParseFile(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - htmlDocPtr ret_val; - const char * filename; /* the filename */ - int n_filename; - char * encoding; /* a free form C string describing the HTML document encoding, or NULL */ - int n_encoding; - - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - filename = gen_filepath(n_filename, 0); - encoding = gen_const_char_ptr(n_encoding, 1); - - ret_val = htmlParseFile(filename, (const char *)encoding); - desret_htmlDocPtr(ret_val); - call_tests++; - des_filepath(n_filename, filename, 0); - des_const_char_ptr(n_encoding, (const char *)encoding, 1); - xmlResetLastError(); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlReadDoc(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlDocPtr ret_val; - xmlChar * cur; /* a pointer to a zero terminated string */ - int n_cur; - const char * URL; /* the base URL to use for the document */ - int n_URL; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of htmlParserOption(s) */ - int n_options; - - for (n_cur = 0;n_cur < gen_nb_const_xmlChar_ptr;n_cur++) { - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_int;n_options++) { - mem_base = xmlMemBlocks(); - cur = gen_const_xmlChar_ptr(n_cur, 0); - URL = gen_filepath(n_URL, 1); - encoding = gen_const_char_ptr(n_encoding, 2); - options = gen_int(n_options, 3); - - ret_val = htmlReadDoc((const xmlChar *)cur, URL, (const char *)encoding, options); - desret_htmlDocPtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_cur, (const xmlChar *)cur, 0); - des_filepath(n_URL, URL, 1); - des_const_char_ptr(n_encoding, (const char *)encoding, 2); - des_int(n_options, options, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlReadDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_URL); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlReadFile(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlDocPtr ret_val; - const char * filename; /* a file or URL */ - int n_filename; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of htmlParserOption(s) */ - int n_options; - - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_int;n_options++) { - mem_base = xmlMemBlocks(); - filename = gen_filepath(n_filename, 0); - encoding = gen_const_char_ptr(n_encoding, 1); - options = gen_int(n_options, 2); - - ret_val = htmlReadFile(filename, (const char *)encoding, options); - desret_htmlDocPtr(ret_val); - call_tests++; - des_filepath(n_filename, filename, 0); - des_const_char_ptr(n_encoding, (const char *)encoding, 1); - des_int(n_options, options, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlReadFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlReadMemory(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlDocPtr ret_val; - char * buffer; /* a pointer to a char array */ - int n_buffer; - int size; /* the size of the array */ - int n_size; - const char * URL; /* the base URL to use for the document */ - int n_URL; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of htmlParserOption(s) */ - int n_options; - - for (n_buffer = 0;n_buffer < gen_nb_const_char_ptr;n_buffer++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_int;n_options++) { - mem_base = xmlMemBlocks(); - buffer = gen_const_char_ptr(n_buffer, 0); - size = gen_int(n_size, 1); - URL = gen_filepath(n_URL, 2); - encoding = gen_const_char_ptr(n_encoding, 3); - options = gen_int(n_options, 4); - - ret_val = htmlReadMemory((const char *)buffer, size, URL, (const char *)encoding, options); - desret_htmlDocPtr(ret_val); - call_tests++; - des_const_char_ptr(n_buffer, (const char *)buffer, 0); - des_int(n_size, size, 1); - des_filepath(n_URL, URL, 2); - des_const_char_ptr(n_encoding, (const char *)encoding, 3); - des_int(n_options, options, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlReadMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buffer); - printf(" %d", n_size); - printf(" %d", n_URL); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlSAXParseDoc(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlDocPtr ret_val; - xmlChar * cur; /* a pointer to an array of xmlChar */ - int n_cur; - char * encoding; /* a free form C string describing the HTML document encoding, or NULL */ - int n_encoding; - htmlSAXHandlerPtr sax; /* the SAX handler block */ - int n_sax; - void * userData; /* if using SAX, this pointer will be provided on callbacks. */ - int n_userData; - - for (n_cur = 0;n_cur < gen_nb_xmlChar_ptr;n_cur++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_sax = 0;n_sax < gen_nb_htmlSAXHandlerPtr;n_sax++) { - for (n_userData = 0;n_userData < gen_nb_userdata;n_userData++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlChar_ptr(n_cur, 0); - encoding = gen_const_char_ptr(n_encoding, 1); - sax = gen_htmlSAXHandlerPtr(n_sax, 2); - userData = gen_userdata(n_userData, 3); - - ret_val = htmlSAXParseDoc(cur, (const char *)encoding, sax, userData); - desret_htmlDocPtr(ret_val); - call_tests++; - des_xmlChar_ptr(n_cur, cur, 0); - des_const_char_ptr(n_encoding, (const char *)encoding, 1); - des_htmlSAXHandlerPtr(n_sax, sax, 2); - des_userdata(n_userData, userData, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlSAXParseDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_encoding); - printf(" %d", n_sax); - printf(" %d", n_userData); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlSAXParseFile(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlDocPtr ret_val; - const char * filename; /* the filename */ - int n_filename; - char * encoding; /* a free form C string describing the HTML document encoding, or NULL */ - int n_encoding; - htmlSAXHandlerPtr sax; /* the SAX handler block */ - int n_sax; - void * userData; /* if using SAX, this pointer will be provided on callbacks. */ - int n_userData; - - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_sax = 0;n_sax < gen_nb_htmlSAXHandlerPtr;n_sax++) { - for (n_userData = 0;n_userData < gen_nb_userdata;n_userData++) { - mem_base = xmlMemBlocks(); - filename = gen_filepath(n_filename, 0); - encoding = gen_const_char_ptr(n_encoding, 1); - sax = gen_htmlSAXHandlerPtr(n_sax, 2); - userData = gen_userdata(n_userData, 3); - - ret_val = htmlSAXParseFile(filename, (const char *)encoding, sax, userData); - desret_htmlDocPtr(ret_val); - call_tests++; - des_filepath(n_filename, filename, 0); - des_const_char_ptr(n_encoding, (const char *)encoding, 1); - des_htmlSAXHandlerPtr(n_sax, sax, 2); - des_userdata(n_userData, userData, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlSAXParseFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf(" %d", n_encoding); - printf(" %d", n_sax); - printf(" %d", n_userData); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlTagLookup(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - -static int -test_HTMLparser(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing HTMLparser : 31 of 37 functions ...\n"); - test_ret += test_UTF8ToHtml(); - test_ret += test_htmlAttrAllowed(); - test_ret += test_htmlAutoCloseTag(); - test_ret += test_htmlCreateMemoryParserCtxt(); - test_ret += test_htmlCreatePushParserCtxt(); - test_ret += test_htmlCtxtReadDoc(); - test_ret += test_htmlCtxtReadFile(); - test_ret += test_htmlCtxtReadMemory(); - test_ret += test_htmlCtxtReset(); - test_ret += test_htmlCtxtUseOptions(); - test_ret += test_htmlElementAllowedHere(); - test_ret += test_htmlElementStatusHere(); - test_ret += test_htmlEncodeEntities(); - test_ret += test_htmlEntityLookup(); - test_ret += test_htmlEntityValueLookup(); - test_ret += test_htmlHandleOmittedElem(); - test_ret += test_htmlIsAutoClosed(); - test_ret += test_htmlIsScriptAttribute(); - test_ret += test_htmlNodeStatus(); - test_ret += test_htmlParseCharRef(); - test_ret += test_htmlParseChunk(); - test_ret += test_htmlParseDoc(); - test_ret += test_htmlParseDocument(); - test_ret += test_htmlParseElement(); - test_ret += test_htmlParseEntityRef(); - test_ret += test_htmlParseFile(); - test_ret += test_htmlReadDoc(); - test_ret += test_htmlReadFile(); - test_ret += test_htmlReadMemory(); - test_ret += test_htmlSAXParseDoc(); - test_ret += test_htmlSAXParseFile(); - test_ret += test_htmlTagLookup(); - - if (test_ret != 0) - printf("Module HTMLparser: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_htmlDocContentDumpFormatOutput(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlOutputBufferPtr buf; /* the HTML buffer output */ - int n_buf; - xmlDocPtr cur; /* the document */ - int n_cur; - char * encoding; /* the encoding string */ - int n_encoding; - int format; /* should formatting spaces been added */ - int n_format; - - for (n_buf = 0;n_buf < gen_nb_xmlOutputBufferPtr;n_buf++) { - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_format = 0;n_format < gen_nb_int;n_format++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlOutputBufferPtr(n_buf, 0); - cur = gen_xmlDocPtr(n_cur, 1); - encoding = gen_const_char_ptr(n_encoding, 2); - format = gen_int(n_format, 3); - - htmlDocContentDumpFormatOutput(buf, cur, (const char *)encoding, format); - call_tests++; - des_xmlOutputBufferPtr(n_buf, buf, 0); - des_xmlDocPtr(n_cur, cur, 1); - des_const_char_ptr(n_encoding, (const char *)encoding, 2); - des_int(n_format, format, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlDocContentDumpFormatOutput", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_cur); - printf(" %d", n_encoding); - printf(" %d", n_format); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlDocContentDumpOutput(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlOutputBufferPtr buf; /* the HTML buffer output */ - int n_buf; - xmlDocPtr cur; /* the document */ - int n_cur; - char * encoding; /* the encoding string */ - int n_encoding; - - for (n_buf = 0;n_buf < gen_nb_xmlOutputBufferPtr;n_buf++) { - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlOutputBufferPtr(n_buf, 0); - cur = gen_xmlDocPtr(n_cur, 1); - encoding = gen_const_char_ptr(n_encoding, 2); - - htmlDocContentDumpOutput(buf, cur, (const char *)encoding); - call_tests++; - des_xmlOutputBufferPtr(n_buf, buf, 0); - des_xmlDocPtr(n_cur, cur, 1); - des_const_char_ptr(n_encoding, (const char *)encoding, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlDocContentDumpOutput", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_cur); - printf(" %d", n_encoding); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlDocDump(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - FILE * f; /* the FILE* */ - int n_f; - xmlDocPtr cur; /* the document */ - int n_cur; - - for (n_f = 0;n_f < gen_nb_FILE_ptr;n_f++) { - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - mem_base = xmlMemBlocks(); - f = gen_FILE_ptr(n_f, 0); - cur = gen_xmlDocPtr(n_cur, 1); - - ret_val = htmlDocDump(f, cur); - desret_int(ret_val); - call_tests++; - des_FILE_ptr(n_f, f, 0); - des_xmlDocPtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlDocDump", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_f); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -#define gen_nb_xmlChar_ptr_ptr 1 -static xmlChar ** gen_xmlChar_ptr_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlChar_ptr_ptr(int no ATTRIBUTE_UNUSED, xmlChar ** val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_htmlDocDumpMemory(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlDocPtr cur; /* the document */ - int n_cur; - xmlChar ** mem; /* OUT: the memory pointer */ - int n_mem; - int * size; /* OUT: the memory length */ - int n_size; - - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - for (n_mem = 0;n_mem < gen_nb_xmlChar_ptr_ptr;n_mem++) { - for (n_size = 0;n_size < gen_nb_int_ptr;n_size++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlDocPtr(n_cur, 0); - mem = gen_xmlChar_ptr_ptr(n_mem, 1); - size = gen_int_ptr(n_size, 2); - - htmlDocDumpMemory(cur, mem, size); - call_tests++; - des_xmlDocPtr(n_cur, cur, 0); - des_xmlChar_ptr_ptr(n_mem, mem, 1); - des_int_ptr(n_size, size, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlDocDumpMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_mem); - printf(" %d", n_size); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlDocDumpMemoryFormat(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlDocPtr cur; /* the document */ - int n_cur; - xmlChar ** mem; /* OUT: the memory pointer */ - int n_mem; - int * size; /* OUT: the memory length */ - int n_size; - int format; /* should formatting spaces been added */ - int n_format; - - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - for (n_mem = 0;n_mem < gen_nb_xmlChar_ptr_ptr;n_mem++) { - for (n_size = 0;n_size < gen_nb_int_ptr;n_size++) { - for (n_format = 0;n_format < gen_nb_int;n_format++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlDocPtr(n_cur, 0); - mem = gen_xmlChar_ptr_ptr(n_mem, 1); - size = gen_int_ptr(n_size, 2); - format = gen_int(n_format, 3); - - htmlDocDumpMemoryFormat(cur, mem, size, format); - call_tests++; - des_xmlDocPtr(n_cur, cur, 0); - des_xmlChar_ptr_ptr(n_mem, mem, 1); - des_int_ptr(n_size, size, 2); - des_int(n_format, format, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlDocDumpMemoryFormat", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_mem); - printf(" %d", n_size); - printf(" %d", n_format); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlGetMetaEncoding(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - const xmlChar * ret_val; - htmlDocPtr doc; /* the document */ - int n_doc; - - for (n_doc = 0;n_doc < gen_nb_htmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - doc = gen_htmlDocPtr(n_doc, 0); - - ret_val = htmlGetMetaEncoding(doc); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_htmlDocPtr(n_doc, doc, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlGetMetaEncoding", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlIsBooleanAttr(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - int ret_val; - xmlChar * name; /* the name of the attribute to check */ - int n_name; - - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - name = gen_const_xmlChar_ptr(n_name, 0); - - ret_val = htmlIsBooleanAttr((const xmlChar *)name); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlIsBooleanAttr", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_name); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlNewDoc(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlDocPtr ret_val; - xmlChar * URI; /* URI for the dtd, or NULL */ - int n_URI; - xmlChar * ExternalID; /* the external ID of the DTD, or NULL */ - int n_ExternalID; - - for (n_URI = 0;n_URI < gen_nb_const_xmlChar_ptr;n_URI++) { - for (n_ExternalID = 0;n_ExternalID < gen_nb_const_xmlChar_ptr;n_ExternalID++) { - mem_base = xmlMemBlocks(); - URI = gen_const_xmlChar_ptr(n_URI, 0); - ExternalID = gen_const_xmlChar_ptr(n_ExternalID, 1); - - ret_val = htmlNewDoc((const xmlChar *)URI, (const xmlChar *)ExternalID); - desret_htmlDocPtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_URI, (const xmlChar *)URI, 0); - des_const_xmlChar_ptr(n_ExternalID, (const xmlChar *)ExternalID, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlNewDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URI); - printf(" %d", n_ExternalID); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlNewDocNoDtD(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlDocPtr ret_val; - xmlChar * URI; /* URI for the dtd, or NULL */ - int n_URI; - xmlChar * ExternalID; /* the external ID of the DTD, or NULL */ - int n_ExternalID; - - for (n_URI = 0;n_URI < gen_nb_const_xmlChar_ptr;n_URI++) { - for (n_ExternalID = 0;n_ExternalID < gen_nb_const_xmlChar_ptr;n_ExternalID++) { - mem_base = xmlMemBlocks(); - URI = gen_const_xmlChar_ptr(n_URI, 0); - ExternalID = gen_const_xmlChar_ptr(n_ExternalID, 1); - - ret_val = htmlNewDocNoDtD((const xmlChar *)URI, (const xmlChar *)ExternalID); - desret_htmlDocPtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_URI, (const xmlChar *)URI, 0); - des_const_xmlChar_ptr(n_ExternalID, (const xmlChar *)ExternalID, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlNewDocNoDtD", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URI); - printf(" %d", n_ExternalID); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlNodeDump(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - xmlBufferPtr buf; /* the HTML buffer output */ - int n_buf; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr cur; /* the current node */ - int n_cur; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - doc = gen_xmlDocPtr(n_doc, 1); - cur = gen_xmlNodePtr(n_cur, 2); - - ret_val = htmlNodeDump(buf, doc, cur); - desret_int(ret_val); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_cur, cur, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlNodeDump", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_doc); - printf(" %d", n_cur); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlNodeDumpFile(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - FILE * out; /* the FILE pointer */ - int n_out; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr cur; /* the current node */ - int n_cur; - - for (n_out = 0;n_out < gen_nb_FILE_ptr;n_out++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - out = gen_FILE_ptr(n_out, 0); - doc = gen_xmlDocPtr(n_doc, 1); - cur = gen_xmlNodePtr(n_cur, 2); - - htmlNodeDumpFile(out, doc, cur); - call_tests++; - des_FILE_ptr(n_out, out, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_cur, cur, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlNodeDumpFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_out); - printf(" %d", n_doc); - printf(" %d", n_cur); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlNodeDumpFileFormat(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - FILE * out; /* the FILE pointer */ - int n_out; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr cur; /* the current node */ - int n_cur; - char * encoding; /* the document encoding */ - int n_encoding; - int format; /* should formatting spaces been added */ - int n_format; - - for (n_out = 0;n_out < gen_nb_FILE_ptr;n_out++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_format = 0;n_format < gen_nb_int;n_format++) { - mem_base = xmlMemBlocks(); - out = gen_FILE_ptr(n_out, 0); - doc = gen_xmlDocPtr(n_doc, 1); - cur = gen_xmlNodePtr(n_cur, 2); - encoding = gen_const_char_ptr(n_encoding, 3); - format = gen_int(n_format, 4); - - ret_val = htmlNodeDumpFileFormat(out, doc, cur, (const char *)encoding, format); - desret_int(ret_val); - call_tests++; - des_FILE_ptr(n_out, out, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_cur, cur, 2); - des_const_char_ptr(n_encoding, (const char *)encoding, 3); - des_int(n_format, format, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlNodeDumpFileFormat", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_out); - printf(" %d", n_doc); - printf(" %d", n_cur); - printf(" %d", n_encoding); - printf(" %d", n_format); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlNodeDumpFormatOutput(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlOutputBufferPtr buf; /* the HTML buffer output */ - int n_buf; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr cur; /* the current node */ - int n_cur; - char * encoding; /* the encoding string */ - int n_encoding; - int format; /* should formatting spaces been added */ - int n_format; - - for (n_buf = 0;n_buf < gen_nb_xmlOutputBufferPtr;n_buf++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_format = 0;n_format < gen_nb_int;n_format++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlOutputBufferPtr(n_buf, 0); - doc = gen_xmlDocPtr(n_doc, 1); - cur = gen_xmlNodePtr(n_cur, 2); - encoding = gen_const_char_ptr(n_encoding, 3); - format = gen_int(n_format, 4); - - htmlNodeDumpFormatOutput(buf, doc, cur, (const char *)encoding, format); - call_tests++; - des_xmlOutputBufferPtr(n_buf, buf, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_cur, cur, 2); - des_const_char_ptr(n_encoding, (const char *)encoding, 3); - des_int(n_format, format, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlNodeDumpFormatOutput", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_doc); - printf(" %d", n_cur); - printf(" %d", n_encoding); - printf(" %d", n_format); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlNodeDumpOutput(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlOutputBufferPtr buf; /* the HTML buffer output */ - int n_buf; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr cur; /* the current node */ - int n_cur; - char * encoding; /* the encoding string */ - int n_encoding; - - for (n_buf = 0;n_buf < gen_nb_xmlOutputBufferPtr;n_buf++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlOutputBufferPtr(n_buf, 0); - doc = gen_xmlDocPtr(n_doc, 1); - cur = gen_xmlNodePtr(n_cur, 2); - encoding = gen_const_char_ptr(n_encoding, 3); - - htmlNodeDumpOutput(buf, doc, cur, (const char *)encoding); - call_tests++; - des_xmlOutputBufferPtr(n_buf, buf, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_cur, cur, 2); - des_const_char_ptr(n_encoding, (const char *)encoding, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlNodeDumpOutput", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_doc); - printf(" %d", n_cur); - printf(" %d", n_encoding); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlSaveFile(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - const char * filename; /* the filename (or URL) */ - int n_filename; - xmlDocPtr cur; /* the document */ - int n_cur; - - for (n_filename = 0;n_filename < gen_nb_fileoutput;n_filename++) { - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - mem_base = xmlMemBlocks(); - filename = gen_fileoutput(n_filename, 0); - cur = gen_xmlDocPtr(n_cur, 1); - - ret_val = htmlSaveFile(filename, cur); - desret_int(ret_val); - call_tests++; - des_fileoutput(n_filename, filename, 0); - des_xmlDocPtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlSaveFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlSaveFileEnc(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - const char * filename; /* the filename */ - int n_filename; - xmlDocPtr cur; /* the document */ - int n_cur; - char * encoding; /* the document encoding */ - int n_encoding; - - for (n_filename = 0;n_filename < gen_nb_fileoutput;n_filename++) { - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - mem_base = xmlMemBlocks(); - filename = gen_fileoutput(n_filename, 0); - cur = gen_xmlDocPtr(n_cur, 1); - encoding = gen_const_char_ptr(n_encoding, 2); - - ret_val = htmlSaveFileEnc(filename, cur, (const char *)encoding); - desret_int(ret_val); - call_tests++; - des_fileoutput(n_filename, filename, 0); - des_xmlDocPtr(n_cur, cur, 1); - des_const_char_ptr(n_encoding, (const char *)encoding, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlSaveFileEnc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf(" %d", n_cur); - printf(" %d", n_encoding); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlSaveFileFormat(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - const char * filename; /* the filename */ - int n_filename; - xmlDocPtr cur; /* the document */ - int n_cur; - char * encoding; /* the document encoding */ - int n_encoding; - int format; /* should formatting spaces been added */ - int n_format; - - for (n_filename = 0;n_filename < gen_nb_fileoutput;n_filename++) { - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_format = 0;n_format < gen_nb_int;n_format++) { - mem_base = xmlMemBlocks(); - filename = gen_fileoutput(n_filename, 0); - cur = gen_xmlDocPtr(n_cur, 1); - encoding = gen_const_char_ptr(n_encoding, 2); - format = gen_int(n_format, 3); - - ret_val = htmlSaveFileFormat(filename, cur, (const char *)encoding, format); - desret_int(ret_val); - call_tests++; - des_fileoutput(n_filename, filename, 0); - des_xmlDocPtr(n_cur, cur, 1); - des_const_char_ptr(n_encoding, (const char *)encoding, 2); - des_int(n_format, format, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlSaveFileFormat", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf(" %d", n_cur); - printf(" %d", n_encoding); - printf(" %d", n_format); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlSetMetaEncoding(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - int ret_val; - htmlDocPtr doc; /* the document */ - int n_doc; - xmlChar * encoding; /* the encoding string */ - int n_encoding; - - for (n_doc = 0;n_doc < gen_nb_htmlDocPtr;n_doc++) { - for (n_encoding = 0;n_encoding < gen_nb_const_xmlChar_ptr;n_encoding++) { - mem_base = xmlMemBlocks(); - doc = gen_htmlDocPtr(n_doc, 0); - encoding = gen_const_xmlChar_ptr(n_encoding, 1); - - ret_val = htmlSetMetaEncoding(doc, (const xmlChar *)encoding); - desret_int(ret_val); - call_tests++; - des_htmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_encoding, (const xmlChar *)encoding, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlSetMetaEncoding", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_encoding); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_HTMLtree(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing HTMLtree : 18 of 18 functions ...\n"); - test_ret += test_htmlDocContentDumpFormatOutput(); - test_ret += test_htmlDocContentDumpOutput(); - test_ret += test_htmlDocDump(); - test_ret += test_htmlDocDumpMemory(); - test_ret += test_htmlDocDumpMemoryFormat(); - test_ret += test_htmlGetMetaEncoding(); - test_ret += test_htmlIsBooleanAttr(); - test_ret += test_htmlNewDoc(); - test_ret += test_htmlNewDocNoDtD(); - test_ret += test_htmlNodeDump(); - test_ret += test_htmlNodeDumpFile(); - test_ret += test_htmlNodeDumpFileFormat(); - test_ret += test_htmlNodeDumpFormatOutput(); - test_ret += test_htmlNodeDumpOutput(); - test_ret += test_htmlSaveFile(); - test_ret += test_htmlSaveFileEnc(); - test_ret += test_htmlSaveFileFormat(); - test_ret += test_htmlSetMetaEncoding(); - - if (test_ret != 0) - printf("Module HTMLtree: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_docbDefaultSAXHandlerInit(void) { - int test_ret = 0; - -#if defined(LIBXML_DOCB_ENABLED) -#ifdef LIBXML_DOCB_ENABLED - int mem_base; - - mem_base = xmlMemBlocks(); - - docbDefaultSAXHandlerInit(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in docbDefaultSAXHandlerInit", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_htmlDefaultSAXHandlerInit(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) -#ifdef LIBXML_HTML_ENABLED - int mem_base; - - mem_base = xmlMemBlocks(); - - htmlDefaultSAXHandlerInit(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlDefaultSAXHandlerInit", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlDefaultSAXHandlerInit(void) { - int test_ret = 0; - - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlDefaultSAXHandlerInit(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDefaultSAXHandlerInit", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; - - return(test_ret); -} - - -#define gen_nb_xmlEnumerationPtr 1 -static xmlEnumerationPtr gen_xmlEnumerationPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlEnumerationPtr(int no ATTRIBUTE_UNUSED, xmlEnumerationPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlSAX2AttributeDecl(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * elem; /* the name of the element */ - int n_elem; - xmlChar * fullname; /* the attribute name */ - int n_fullname; - int type; /* the attribute type */ - int n_type; - int def; /* the type of default value */ - int n_def; - xmlChar * defaultValue; /* the attribute default value */ - int n_defaultValue; - xmlEnumerationPtr tree; /* the tree of enumerated value set */ - int n_tree; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_elem = 0;n_elem < gen_nb_const_xmlChar_ptr;n_elem++) { - for (n_fullname = 0;n_fullname < gen_nb_const_xmlChar_ptr;n_fullname++) { - for (n_type = 0;n_type < gen_nb_int;n_type++) { - for (n_def = 0;n_def < gen_nb_int;n_def++) { - for (n_defaultValue = 0;n_defaultValue < gen_nb_const_xmlChar_ptr;n_defaultValue++) { - for (n_tree = 0;n_tree < gen_nb_xmlEnumerationPtr;n_tree++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - elem = gen_const_xmlChar_ptr(n_elem, 1); - fullname = gen_const_xmlChar_ptr(n_fullname, 2); - type = gen_int(n_type, 3); - def = gen_int(n_def, 4); - defaultValue = gen_const_xmlChar_ptr(n_defaultValue, 5); - tree = gen_xmlEnumerationPtr(n_tree, 6); - - xmlSAX2AttributeDecl(ctx, (const xmlChar *)elem, (const xmlChar *)fullname, type, def, (const xmlChar *)defaultValue, tree); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_elem, (const xmlChar *)elem, 1); - des_const_xmlChar_ptr(n_fullname, (const xmlChar *)fullname, 2); - des_int(n_type, type, 3); - des_int(n_def, def, 4); - des_const_xmlChar_ptr(n_defaultValue, (const xmlChar *)defaultValue, 5); - des_xmlEnumerationPtr(n_tree, tree, 6); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2AttributeDecl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_elem); - printf(" %d", n_fullname); - printf(" %d", n_type); - printf(" %d", n_def); - printf(" %d", n_defaultValue); - printf(" %d", n_tree); - printf("\n"); - } - } - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2CDataBlock(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * value; /* The pcdata content */ - int n_value; - int len; /* the block length */ - int n_len; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - value = gen_const_xmlChar_ptr(n_value, 1); - len = gen_int(n_len, 2); - - xmlSAX2CDataBlock(ctx, (const xmlChar *)value, len); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2CDataBlock", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_value); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2Characters(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * ch; /* a xmlChar string */ - int n_ch; - int len; /* the number of xmlChar */ - int n_len; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_ch = 0;n_ch < gen_nb_const_xmlChar_ptr;n_ch++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - ch = gen_const_xmlChar_ptr(n_ch, 1); - len = gen_int(n_len, 2); - - xmlSAX2Characters(ctx, (const xmlChar *)ch, len); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_ch, (const xmlChar *)ch, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2Characters", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_ch); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2Comment(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * value; /* the xmlSAX2Comment content */ - int n_value; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - value = gen_const_xmlChar_ptr(n_value, 1); - - xmlSAX2Comment(ctx, (const xmlChar *)value); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2Comment", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_value); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2ElementDecl(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * name; /* the element name */ - int n_name; - int type; /* the element type */ - int n_type; - xmlElementContentPtr content; /* the element value tree */ - int n_content; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_type = 0;n_type < gen_nb_int;n_type++) { - for (n_content = 0;n_content < gen_nb_xmlElementContentPtr;n_content++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - type = gen_int(n_type, 2); - content = gen_xmlElementContentPtr(n_content, 3); - - xmlSAX2ElementDecl(ctx, (const xmlChar *)name, type, content); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_int(n_type, type, 2); - des_xmlElementContentPtr(n_content, content, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2ElementDecl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_name); - printf(" %d", n_type); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2EndDocument(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - - xmlSAX2EndDocument(ctx); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2EndDocument", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2EndElement(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_DOCB_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * name; /* The element name */ - int n_name; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - xmlSAX2EndElement(ctx, (const xmlChar *)name); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2EndElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlSAX2EndElementNs(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * localname; /* the local name of the element */ - int n_localname; - xmlChar * prefix; /* the element namespace prefix if available */ - int n_prefix; - xmlChar * URI; /* the element namespace name if available */ - int n_URI; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_localname = 0;n_localname < gen_nb_const_xmlChar_ptr;n_localname++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - for (n_URI = 0;n_URI < gen_nb_const_xmlChar_ptr;n_URI++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - localname = gen_const_xmlChar_ptr(n_localname, 1); - prefix = gen_const_xmlChar_ptr(n_prefix, 2); - URI = gen_const_xmlChar_ptr(n_URI, 3); - - xmlSAX2EndElementNs(ctx, (const xmlChar *)localname, (const xmlChar *)prefix, (const xmlChar *)URI); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_localname, (const xmlChar *)localname, 1); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 2); - des_const_xmlChar_ptr(n_URI, (const xmlChar *)URI, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2EndElementNs", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_localname); - printf(" %d", n_prefix); - printf(" %d", n_URI); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2EntityDecl(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * name; /* the entity name */ - int n_name; - int type; /* the entity type */ - int n_type; - xmlChar * publicId; /* The public ID of the entity */ - int n_publicId; - xmlChar * systemId; /* The system ID of the entity */ - int n_systemId; - xmlChar * content; /* the entity value (without processing). */ - int n_content; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_type = 0;n_type < gen_nb_int;n_type++) { - for (n_publicId = 0;n_publicId < gen_nb_const_xmlChar_ptr;n_publicId++) { - for (n_systemId = 0;n_systemId < gen_nb_const_xmlChar_ptr;n_systemId++) { - for (n_content = 0;n_content < gen_nb_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - type = gen_int(n_type, 2); - publicId = gen_const_xmlChar_ptr(n_publicId, 3); - systemId = gen_const_xmlChar_ptr(n_systemId, 4); - content = gen_xmlChar_ptr(n_content, 5); - - xmlSAX2EntityDecl(ctx, (const xmlChar *)name, type, (const xmlChar *)publicId, (const xmlChar *)systemId, content); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_int(n_type, type, 2); - des_const_xmlChar_ptr(n_publicId, (const xmlChar *)publicId, 3); - des_const_xmlChar_ptr(n_systemId, (const xmlChar *)systemId, 4); - des_xmlChar_ptr(n_content, content, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2EntityDecl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_name); - printf(" %d", n_type); - printf(" %d", n_publicId); - printf(" %d", n_systemId); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2ExternalSubset(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * name; /* the root element name */ - int n_name; - xmlChar * ExternalID; /* the external ID */ - int n_ExternalID; - xmlChar * SystemID; /* the SYSTEM ID (e.g. filename or URL) */ - int n_SystemID; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_ExternalID = 0;n_ExternalID < gen_nb_const_xmlChar_ptr;n_ExternalID++) { - for (n_SystemID = 0;n_SystemID < gen_nb_const_xmlChar_ptr;n_SystemID++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - ExternalID = gen_const_xmlChar_ptr(n_ExternalID, 2); - SystemID = gen_const_xmlChar_ptr(n_SystemID, 3); - - xmlSAX2ExternalSubset(ctx, (const xmlChar *)name, (const xmlChar *)ExternalID, (const xmlChar *)SystemID); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_ExternalID, (const xmlChar *)ExternalID, 2); - des_const_xmlChar_ptr(n_SystemID, (const xmlChar *)SystemID, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2ExternalSubset", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_name); - printf(" %d", n_ExternalID); - printf(" %d", n_SystemID); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2GetColumnNumber(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - - ret_val = xmlSAX2GetColumnNumber(ctx); - desret_int(ret_val); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2GetColumnNumber", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2GetEntity(void) { - int test_ret = 0; - - int mem_base; - xmlEntityPtr ret_val; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * name; /* The entity name */ - int n_name; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlSAX2GetEntity(ctx, (const xmlChar *)name); - desret_xmlEntityPtr(ret_val); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2GetEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2GetLineNumber(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - - ret_val = xmlSAX2GetLineNumber(ctx); - desret_int(ret_val); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2GetLineNumber", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2GetParameterEntity(void) { - int test_ret = 0; - - int mem_base; - xmlEntityPtr ret_val; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * name; /* The entity name */ - int n_name; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlSAX2GetParameterEntity(ctx, (const xmlChar *)name); - desret_xmlEntityPtr(ret_val); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2GetParameterEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2GetPublicId(void) { - int test_ret = 0; - - int mem_base; - const xmlChar * ret_val; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - - ret_val = xmlSAX2GetPublicId(ctx); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2GetPublicId", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2GetSystemId(void) { - int test_ret = 0; - - int mem_base; - const xmlChar * ret_val; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - - ret_val = xmlSAX2GetSystemId(ctx); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2GetSystemId", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2HasExternalSubset(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - - ret_val = xmlSAX2HasExternalSubset(ctx); - desret_int(ret_val); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2HasExternalSubset", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2HasInternalSubset(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - - ret_val = xmlSAX2HasInternalSubset(ctx); - desret_int(ret_val); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2HasInternalSubset", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2IgnorableWhitespace(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * ch; /* a xmlChar string */ - int n_ch; - int len; /* the number of xmlChar */ - int n_len; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_ch = 0;n_ch < gen_nb_const_xmlChar_ptr;n_ch++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - ch = gen_const_xmlChar_ptr(n_ch, 1); - len = gen_int(n_len, 2); - - xmlSAX2IgnorableWhitespace(ctx, (const xmlChar *)ch, len); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_ch, (const xmlChar *)ch, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2IgnorableWhitespace", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_ch); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -#define gen_nb_xmlSAXHandler_ptr 1 -static xmlSAXHandler * gen_xmlSAXHandler_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSAXHandler_ptr(int no ATTRIBUTE_UNUSED, xmlSAXHandler * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlSAX2InitDefaultSAXHandler(void) { - int test_ret = 0; - - int mem_base; - xmlSAXHandler * hdlr; /* the SAX handler */ - int n_hdlr; - int warning; /* flag if non-zero sets the handler warning procedure */ - int n_warning; - - for (n_hdlr = 0;n_hdlr < gen_nb_xmlSAXHandler_ptr;n_hdlr++) { - for (n_warning = 0;n_warning < gen_nb_int;n_warning++) { - mem_base = xmlMemBlocks(); - hdlr = gen_xmlSAXHandler_ptr(n_hdlr, 0); - warning = gen_int(n_warning, 1); - - xmlSAX2InitDefaultSAXHandler(hdlr, warning); - call_tests++; - des_xmlSAXHandler_ptr(n_hdlr, hdlr, 0); - des_int(n_warning, warning, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2InitDefaultSAXHandler", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_hdlr); - printf(" %d", n_warning); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2InitDocbDefaultSAXHandler(void) { - int test_ret = 0; - -#if defined(LIBXML_DOCB_ENABLED) - int mem_base; - xmlSAXHandler * hdlr; /* the SAX handler */ - int n_hdlr; - - for (n_hdlr = 0;n_hdlr < gen_nb_xmlSAXHandler_ptr;n_hdlr++) { - mem_base = xmlMemBlocks(); - hdlr = gen_xmlSAXHandler_ptr(n_hdlr, 0); - - xmlSAX2InitDocbDefaultSAXHandler(hdlr); - call_tests++; - des_xmlSAXHandler_ptr(n_hdlr, hdlr, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2InitDocbDefaultSAXHandler", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_hdlr); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSAX2InitHtmlDefaultSAXHandler(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - xmlSAXHandler * hdlr; /* the SAX handler */ - int n_hdlr; - - for (n_hdlr = 0;n_hdlr < gen_nb_xmlSAXHandler_ptr;n_hdlr++) { - mem_base = xmlMemBlocks(); - hdlr = gen_xmlSAXHandler_ptr(n_hdlr, 0); - - xmlSAX2InitHtmlDefaultSAXHandler(hdlr); - call_tests++; - des_xmlSAXHandler_ptr(n_hdlr, hdlr, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2InitHtmlDefaultSAXHandler", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_hdlr); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSAX2InternalSubset(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * name; /* the root element name */ - int n_name; - xmlChar * ExternalID; /* the external ID */ - int n_ExternalID; - xmlChar * SystemID; /* the SYSTEM ID (e.g. filename or URL) */ - int n_SystemID; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_ExternalID = 0;n_ExternalID < gen_nb_const_xmlChar_ptr;n_ExternalID++) { - for (n_SystemID = 0;n_SystemID < gen_nb_const_xmlChar_ptr;n_SystemID++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - ExternalID = gen_const_xmlChar_ptr(n_ExternalID, 2); - SystemID = gen_const_xmlChar_ptr(n_SystemID, 3); - - xmlSAX2InternalSubset(ctx, (const xmlChar *)name, (const xmlChar *)ExternalID, (const xmlChar *)SystemID); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_ExternalID, (const xmlChar *)ExternalID, 2); - des_const_xmlChar_ptr(n_SystemID, (const xmlChar *)SystemID, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2InternalSubset", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_name); - printf(" %d", n_ExternalID); - printf(" %d", n_SystemID); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2IsStandalone(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - - ret_val = xmlSAX2IsStandalone(ctx); - desret_int(ret_val); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2IsStandalone", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2NotationDecl(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * name; /* The name of the notation */ - int n_name; - xmlChar * publicId; /* The public ID of the entity */ - int n_publicId; - xmlChar * systemId; /* The system ID of the entity */ - int n_systemId; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_publicId = 0;n_publicId < gen_nb_const_xmlChar_ptr;n_publicId++) { - for (n_systemId = 0;n_systemId < gen_nb_const_xmlChar_ptr;n_systemId++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - publicId = gen_const_xmlChar_ptr(n_publicId, 2); - systemId = gen_const_xmlChar_ptr(n_systemId, 3); - - xmlSAX2NotationDecl(ctx, (const xmlChar *)name, (const xmlChar *)publicId, (const xmlChar *)systemId); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_publicId, (const xmlChar *)publicId, 2); - des_const_xmlChar_ptr(n_systemId, (const xmlChar *)systemId, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2NotationDecl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_name); - printf(" %d", n_publicId); - printf(" %d", n_systemId); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2ProcessingInstruction(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * target; /* the target name */ - int n_target; - xmlChar * data; /* the PI data's */ - int n_data; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_target = 0;n_target < gen_nb_const_xmlChar_ptr;n_target++) { - for (n_data = 0;n_data < gen_nb_const_xmlChar_ptr;n_data++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - target = gen_const_xmlChar_ptr(n_target, 1); - data = gen_const_xmlChar_ptr(n_data, 2); - - xmlSAX2ProcessingInstruction(ctx, (const xmlChar *)target, (const xmlChar *)data); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_target, (const xmlChar *)target, 1); - des_const_xmlChar_ptr(n_data, (const xmlChar *)data, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2ProcessingInstruction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_target); - printf(" %d", n_data); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2Reference(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * name; /* The entity name */ - int n_name; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - xmlSAX2Reference(ctx, (const xmlChar *)name); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2Reference", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2ResolveEntity(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputPtr ret_val; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * publicId; /* The public ID of the entity */ - int n_publicId; - xmlChar * systemId; /* The system ID of the entity */ - int n_systemId; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_publicId = 0;n_publicId < gen_nb_const_xmlChar_ptr;n_publicId++) { - for (n_systemId = 0;n_systemId < gen_nb_const_xmlChar_ptr;n_systemId++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - publicId = gen_const_xmlChar_ptr(n_publicId, 1); - systemId = gen_const_xmlChar_ptr(n_systemId, 2); - - ret_val = xmlSAX2ResolveEntity(ctx, (const xmlChar *)publicId, (const xmlChar *)systemId); - desret_xmlParserInputPtr(ret_val); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_publicId, (const xmlChar *)publicId, 1); - des_const_xmlChar_ptr(n_systemId, (const xmlChar *)systemId, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2ResolveEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_publicId); - printf(" %d", n_systemId); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -#define gen_nb_xmlSAXLocatorPtr 1 -static xmlSAXLocatorPtr gen_xmlSAXLocatorPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSAXLocatorPtr(int no ATTRIBUTE_UNUSED, xmlSAXLocatorPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlSAX2SetDocumentLocator(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlSAXLocatorPtr loc; /* A SAX Locator */ - int n_loc; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_loc = 0;n_loc < gen_nb_xmlSAXLocatorPtr;n_loc++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - loc = gen_xmlSAXLocatorPtr(n_loc, 1); - - xmlSAX2SetDocumentLocator(ctx, loc); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_xmlSAXLocatorPtr(n_loc, loc, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2SetDocumentLocator", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_loc); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2StartDocument(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - - xmlSAX2StartDocument(ctx); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2StartDocument", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2StartElement(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_DOCB_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * fullname; /* The element name, including namespace prefix */ - int n_fullname; - xmlChar ** atts; /* An array of name/value attributes pairs, NULL terminated */ - int n_atts; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_fullname = 0;n_fullname < gen_nb_const_xmlChar_ptr;n_fullname++) { - for (n_atts = 0;n_atts < gen_nb_const_xmlChar_ptr_ptr;n_atts++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - fullname = gen_const_xmlChar_ptr(n_fullname, 1); - atts = gen_const_xmlChar_ptr_ptr(n_atts, 2); - - xmlSAX2StartElement(ctx, (const xmlChar *)fullname, (const xmlChar **)atts); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_fullname, (const xmlChar *)fullname, 1); - des_const_xmlChar_ptr_ptr(n_atts, (const xmlChar **)atts, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2StartElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_fullname); - printf(" %d", n_atts); - printf("\n"); - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlSAX2StartElementNs(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * localname; /* the local name of the element */ - int n_localname; - xmlChar * prefix; /* the element namespace prefix if available */ - int n_prefix; - xmlChar * URI; /* the element namespace name if available */ - int n_URI; - int nb_namespaces; /* number of namespace definitions on that node */ - int n_nb_namespaces; - xmlChar ** namespaces; /* pointer to the array of prefix/URI pairs namespace definitions */ - int n_namespaces; - int nb_attributes; /* the number of attributes on that node */ - int n_nb_attributes; - int nb_defaulted; /* the number of defaulted attributes. */ - int n_nb_defaulted; - xmlChar ** attributes; /* pointer to the array of (localname/prefix/URI/value/end) attribute values. */ - int n_attributes; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_localname = 0;n_localname < gen_nb_const_xmlChar_ptr;n_localname++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - for (n_URI = 0;n_URI < gen_nb_const_xmlChar_ptr;n_URI++) { - for (n_nb_namespaces = 0;n_nb_namespaces < gen_nb_int;n_nb_namespaces++) { - for (n_namespaces = 0;n_namespaces < gen_nb_const_xmlChar_ptr_ptr;n_namespaces++) { - for (n_nb_attributes = 0;n_nb_attributes < gen_nb_int;n_nb_attributes++) { - for (n_nb_defaulted = 0;n_nb_defaulted < gen_nb_int;n_nb_defaulted++) { - for (n_attributes = 0;n_attributes < gen_nb_const_xmlChar_ptr_ptr;n_attributes++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - localname = gen_const_xmlChar_ptr(n_localname, 1); - prefix = gen_const_xmlChar_ptr(n_prefix, 2); - URI = gen_const_xmlChar_ptr(n_URI, 3); - nb_namespaces = gen_int(n_nb_namespaces, 4); - namespaces = gen_const_xmlChar_ptr_ptr(n_namespaces, 5); - nb_attributes = gen_int(n_nb_attributes, 6); - nb_defaulted = gen_int(n_nb_defaulted, 7); - attributes = gen_const_xmlChar_ptr_ptr(n_attributes, 8); - - xmlSAX2StartElementNs(ctx, (const xmlChar *)localname, (const xmlChar *)prefix, (const xmlChar *)URI, nb_namespaces, (const xmlChar **)namespaces, nb_attributes, nb_defaulted, (const xmlChar **)attributes); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_localname, (const xmlChar *)localname, 1); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 2); - des_const_xmlChar_ptr(n_URI, (const xmlChar *)URI, 3); - des_int(n_nb_namespaces, nb_namespaces, 4); - des_const_xmlChar_ptr_ptr(n_namespaces, (const xmlChar **)namespaces, 5); - des_int(n_nb_attributes, nb_attributes, 6); - des_int(n_nb_defaulted, nb_defaulted, 7); - des_const_xmlChar_ptr_ptr(n_attributes, (const xmlChar **)attributes, 8); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2StartElementNs", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_localname); - printf(" %d", n_prefix); - printf(" %d", n_URI); - printf(" %d", n_nb_namespaces); - printf(" %d", n_namespaces); - printf(" %d", n_nb_attributes); - printf(" %d", n_nb_defaulted); - printf(" %d", n_attributes); - printf("\n"); - } - } - } - } - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAX2UnparsedEntityDecl(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* the user data (XML parser context) */ - int n_ctx; - xmlChar * name; /* The name of the entity */ - int n_name; - xmlChar * publicId; /* The public ID of the entity */ - int n_publicId; - xmlChar * systemId; /* The system ID of the entity */ - int n_systemId; - xmlChar * notationName; /* the name of the notation */ - int n_notationName; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_publicId = 0;n_publicId < gen_nb_const_xmlChar_ptr;n_publicId++) { - for (n_systemId = 0;n_systemId < gen_nb_const_xmlChar_ptr;n_systemId++) { - for (n_notationName = 0;n_notationName < gen_nb_const_xmlChar_ptr;n_notationName++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - publicId = gen_const_xmlChar_ptr(n_publicId, 2); - systemId = gen_const_xmlChar_ptr(n_systemId, 3); - notationName = gen_const_xmlChar_ptr(n_notationName, 4); - - xmlSAX2UnparsedEntityDecl(ctx, (const xmlChar *)name, (const xmlChar *)publicId, (const xmlChar *)systemId, (const xmlChar *)notationName); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_publicId, (const xmlChar *)publicId, 2); - des_const_xmlChar_ptr(n_systemId, (const xmlChar *)systemId, 3); - des_const_xmlChar_ptr(n_notationName, (const xmlChar *)notationName, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAX2UnparsedEntityDecl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_name); - printf(" %d", n_publicId); - printf(" %d", n_systemId); - printf(" %d", n_notationName); - printf("\n"); - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSAXDefaultVersion(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - int ret_val; - int version; /* the version, 1 or 2 */ - int n_version; - - for (n_version = 0;n_version < gen_nb_int;n_version++) { - mem_base = xmlMemBlocks(); - version = gen_int(n_version, 0); - - ret_val = xmlSAXDefaultVersion(version); - desret_int(ret_val); - call_tests++; - des_int(n_version, version, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAXDefaultVersion", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_version); - printf("\n"); - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlSAXVersion(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlSAXHandler * hdlr; /* the SAX handler */ - int n_hdlr; - int version; /* the version, 1 or 2 */ - int n_version; - - for (n_hdlr = 0;n_hdlr < gen_nb_xmlSAXHandler_ptr;n_hdlr++) { - for (n_version = 0;n_version < gen_nb_int;n_version++) { - mem_base = xmlMemBlocks(); - hdlr = gen_xmlSAXHandler_ptr(n_hdlr, 0); - version = gen_int(n_version, 1); - - ret_val = xmlSAXVersion(hdlr, version); - desret_int(ret_val); - call_tests++; - des_xmlSAXHandler_ptr(n_hdlr, hdlr, 0); - des_int(n_version, version, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAXVersion", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_hdlr); - printf(" %d", n_version); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - -static int -test_SAX2(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing SAX2 : 38 of 38 functions ...\n"); - test_ret += test_docbDefaultSAXHandlerInit(); - test_ret += test_htmlDefaultSAXHandlerInit(); - test_ret += test_xmlDefaultSAXHandlerInit(); - test_ret += test_xmlSAX2AttributeDecl(); - test_ret += test_xmlSAX2CDataBlock(); - test_ret += test_xmlSAX2Characters(); - test_ret += test_xmlSAX2Comment(); - test_ret += test_xmlSAX2ElementDecl(); - test_ret += test_xmlSAX2EndDocument(); - test_ret += test_xmlSAX2EndElement(); - test_ret += test_xmlSAX2EndElementNs(); - test_ret += test_xmlSAX2EntityDecl(); - test_ret += test_xmlSAX2ExternalSubset(); - test_ret += test_xmlSAX2GetColumnNumber(); - test_ret += test_xmlSAX2GetEntity(); - test_ret += test_xmlSAX2GetLineNumber(); - test_ret += test_xmlSAX2GetParameterEntity(); - test_ret += test_xmlSAX2GetPublicId(); - test_ret += test_xmlSAX2GetSystemId(); - test_ret += test_xmlSAX2HasExternalSubset(); - test_ret += test_xmlSAX2HasInternalSubset(); - test_ret += test_xmlSAX2IgnorableWhitespace(); - test_ret += test_xmlSAX2InitDefaultSAXHandler(); - test_ret += test_xmlSAX2InitDocbDefaultSAXHandler(); - test_ret += test_xmlSAX2InitHtmlDefaultSAXHandler(); - test_ret += test_xmlSAX2InternalSubset(); - test_ret += test_xmlSAX2IsStandalone(); - test_ret += test_xmlSAX2NotationDecl(); - test_ret += test_xmlSAX2ProcessingInstruction(); - test_ret += test_xmlSAX2Reference(); - test_ret += test_xmlSAX2ResolveEntity(); - test_ret += test_xmlSAX2SetDocumentLocator(); - test_ret += test_xmlSAX2StartDocument(); - test_ret += test_xmlSAX2StartElement(); - test_ret += test_xmlSAX2StartElementNs(); - test_ret += test_xmlSAX2UnparsedEntityDecl(); - test_ret += test_xmlSAXDefaultVersion(); - test_ret += test_xmlSAXVersion(); - - if (test_ret != 0) - printf("Module SAX2: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlC14NDocDumpMemory(void) { - int test_ret = 0; - -#if defined(LIBXML_C14N_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - xmlDocPtr doc; /* the XML document for canonization */ - int n_doc; - xmlNodeSetPtr nodes; /* the nodes set to be included in the canonized image or NULL if all document nodes should be included */ - int n_nodes; - int exclusive; /* the exclusive flag (0 - non-exclusive canonicalization; otherwise - exclusive canonicalization) */ - int n_exclusive; - xmlChar ** inclusive_ns_prefixes; /* the list of inclusive namespace prefixes ended with a NULL or NULL if there is no inclusive namespaces (only for exclusive canonicalization, ignored otherwise) */ - int n_inclusive_ns_prefixes; - int with_comments; /* include comments in the result (!=0) or not (==0) */ - int n_with_comments; - xmlChar ** doc_txt_ptr; /* the memory pointer for allocated canonical XML text; the caller of this functions is responsible for calling xmlFree() to free allocated memory */ - int n_doc_txt_ptr; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_nodes = 0;n_nodes < gen_nb_xmlNodeSetPtr;n_nodes++) { - for (n_exclusive = 0;n_exclusive < gen_nb_int;n_exclusive++) { - for (n_inclusive_ns_prefixes = 0;n_inclusive_ns_prefixes < gen_nb_xmlChar_ptr_ptr;n_inclusive_ns_prefixes++) { - for (n_with_comments = 0;n_with_comments < gen_nb_int;n_with_comments++) { - for (n_doc_txt_ptr = 0;n_doc_txt_ptr < gen_nb_xmlChar_ptr_ptr;n_doc_txt_ptr++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - nodes = gen_xmlNodeSetPtr(n_nodes, 1); - exclusive = gen_int(n_exclusive, 2); - inclusive_ns_prefixes = gen_xmlChar_ptr_ptr(n_inclusive_ns_prefixes, 3); - with_comments = gen_int(n_with_comments, 4); - doc_txt_ptr = gen_xmlChar_ptr_ptr(n_doc_txt_ptr, 5); - - ret_val = xmlC14NDocDumpMemory(doc, nodes, exclusive, inclusive_ns_prefixes, with_comments, doc_txt_ptr); - desret_int(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNodeSetPtr(n_nodes, nodes, 1); - des_int(n_exclusive, exclusive, 2); - des_xmlChar_ptr_ptr(n_inclusive_ns_prefixes, inclusive_ns_prefixes, 3); - des_int(n_with_comments, with_comments, 4); - des_xmlChar_ptr_ptr(n_doc_txt_ptr, doc_txt_ptr, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlC14NDocDumpMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_nodes); - printf(" %d", n_exclusive); - printf(" %d", n_inclusive_ns_prefixes); - printf(" %d", n_with_comments); - printf(" %d", n_doc_txt_ptr); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlC14NDocSave(void) { - int test_ret = 0; - -#if defined(LIBXML_C14N_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - xmlDocPtr doc; /* the XML document for canonization */ - int n_doc; - xmlNodeSetPtr nodes; /* the nodes set to be included in the canonized image or NULL if all document nodes should be included */ - int n_nodes; - int exclusive; /* the exclusive flag (0 - non-exclusive canonicalization; otherwise - exclusive canonicalization) */ - int n_exclusive; - xmlChar ** inclusive_ns_prefixes; /* the list of inclusive namespace prefixes ended with a NULL or NULL if there is no inclusive namespaces (only for exclusive canonicalization, ignored otherwise) */ - int n_inclusive_ns_prefixes; - int with_comments; /* include comments in the result (!=0) or not (==0) */ - int n_with_comments; - const char * filename; /* the filename to store canonical XML image */ - int n_filename; - int compression; /* the compression level (zlib requred): -1 - libxml default, 0 - uncompressed, >0 - compression level */ - int n_compression; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_nodes = 0;n_nodes < gen_nb_xmlNodeSetPtr;n_nodes++) { - for (n_exclusive = 0;n_exclusive < gen_nb_int;n_exclusive++) { - for (n_inclusive_ns_prefixes = 0;n_inclusive_ns_prefixes < gen_nb_xmlChar_ptr_ptr;n_inclusive_ns_prefixes++) { - for (n_with_comments = 0;n_with_comments < gen_nb_int;n_with_comments++) { - for (n_filename = 0;n_filename < gen_nb_fileoutput;n_filename++) { - for (n_compression = 0;n_compression < gen_nb_int;n_compression++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - nodes = gen_xmlNodeSetPtr(n_nodes, 1); - exclusive = gen_int(n_exclusive, 2); - inclusive_ns_prefixes = gen_xmlChar_ptr_ptr(n_inclusive_ns_prefixes, 3); - with_comments = gen_int(n_with_comments, 4); - filename = gen_fileoutput(n_filename, 5); - compression = gen_int(n_compression, 6); - - ret_val = xmlC14NDocSave(doc, nodes, exclusive, inclusive_ns_prefixes, with_comments, filename, compression); - desret_int(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNodeSetPtr(n_nodes, nodes, 1); - des_int(n_exclusive, exclusive, 2); - des_xmlChar_ptr_ptr(n_inclusive_ns_prefixes, inclusive_ns_prefixes, 3); - des_int(n_with_comments, with_comments, 4); - des_fileoutput(n_filename, filename, 5); - des_int(n_compression, compression, 6); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlC14NDocSave", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_nodes); - printf(" %d", n_exclusive); - printf(" %d", n_inclusive_ns_prefixes); - printf(" %d", n_with_comments); - printf(" %d", n_filename); - printf(" %d", n_compression); - printf("\n"); - } - } - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlC14NDocSaveTo(void) { - int test_ret = 0; - -#if defined(LIBXML_C14N_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - xmlDocPtr doc; /* the XML document for canonization */ - int n_doc; - xmlNodeSetPtr nodes; /* the nodes set to be included in the canonized image or NULL if all document nodes should be included */ - int n_nodes; - int exclusive; /* the exclusive flag (0 - non-exclusive canonicalization; otherwise - exclusive canonicalization) */ - int n_exclusive; - xmlChar ** inclusive_ns_prefixes; /* the list of inclusive namespace prefixes ended with a NULL or NULL if there is no inclusive namespaces (only for exclusive canonicalization, ignored otherwise) */ - int n_inclusive_ns_prefixes; - int with_comments; /* include comments in the result (!=0) or not (==0) */ - int n_with_comments; - xmlOutputBufferPtr buf; /* the output buffer to store canonical XML; this buffer MUST have encoder==NULL because C14N requires UTF-8 output */ - int n_buf; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_nodes = 0;n_nodes < gen_nb_xmlNodeSetPtr;n_nodes++) { - for (n_exclusive = 0;n_exclusive < gen_nb_int;n_exclusive++) { - for (n_inclusive_ns_prefixes = 0;n_inclusive_ns_prefixes < gen_nb_xmlChar_ptr_ptr;n_inclusive_ns_prefixes++) { - for (n_with_comments = 0;n_with_comments < gen_nb_int;n_with_comments++) { - for (n_buf = 0;n_buf < gen_nb_xmlOutputBufferPtr;n_buf++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - nodes = gen_xmlNodeSetPtr(n_nodes, 1); - exclusive = gen_int(n_exclusive, 2); - inclusive_ns_prefixes = gen_xmlChar_ptr_ptr(n_inclusive_ns_prefixes, 3); - with_comments = gen_int(n_with_comments, 4); - buf = gen_xmlOutputBufferPtr(n_buf, 5); - - ret_val = xmlC14NDocSaveTo(doc, nodes, exclusive, inclusive_ns_prefixes, with_comments, buf); - desret_int(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNodeSetPtr(n_nodes, nodes, 1); - des_int(n_exclusive, exclusive, 2); - des_xmlChar_ptr_ptr(n_inclusive_ns_prefixes, inclusive_ns_prefixes, 3); - des_int(n_with_comments, with_comments, 4); - des_xmlOutputBufferPtr(n_buf, buf, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlC14NDocSaveTo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_nodes); - printf(" %d", n_exclusive); - printf(" %d", n_inclusive_ns_prefixes); - printf(" %d", n_with_comments); - printf(" %d", n_buf); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlC14NExecute(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - -static int -test_c14n(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing c14n : 3 of 4 functions ...\n"); - test_ret += test_xmlC14NDocDumpMemory(); - test_ret += test_xmlC14NDocSave(); - test_ret += test_xmlC14NDocSaveTo(); - test_ret += test_xmlC14NExecute(); - - if (test_ret != 0) - printf("Module c14n: %d errors\n", test_ret); - return(test_ret); -} -#ifdef LIBXML_CATALOG_ENABLED - -#define gen_nb_xmlCatalogPtr 1 -static xmlCatalogPtr gen_xmlCatalogPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlCatalogPtr(int no ATTRIBUTE_UNUSED, xmlCatalogPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlACatalogAdd(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - int ret_val; - xmlCatalogPtr catal; /* a Catalog */ - int n_catal; - xmlChar * type; /* the type of record to add to the catalog */ - int n_type; - xmlChar * orig; /* the system, public or prefix to match */ - int n_orig; - xmlChar * replace; /* the replacement value for the match */ - int n_replace; - - for (n_catal = 0;n_catal < gen_nb_xmlCatalogPtr;n_catal++) { - for (n_type = 0;n_type < gen_nb_const_xmlChar_ptr;n_type++) { - for (n_orig = 0;n_orig < gen_nb_const_xmlChar_ptr;n_orig++) { - for (n_replace = 0;n_replace < gen_nb_const_xmlChar_ptr;n_replace++) { - mem_base = xmlMemBlocks(); - catal = gen_xmlCatalogPtr(n_catal, 0); - type = gen_const_xmlChar_ptr(n_type, 1); - orig = gen_const_xmlChar_ptr(n_orig, 2); - replace = gen_const_xmlChar_ptr(n_replace, 3); - - ret_val = xmlACatalogAdd(catal, (const xmlChar *)type, (const xmlChar *)orig, (const xmlChar *)replace); - desret_int(ret_val); - call_tests++; - des_xmlCatalogPtr(n_catal, catal, 0); - des_const_xmlChar_ptr(n_type, (const xmlChar *)type, 1); - des_const_xmlChar_ptr(n_orig, (const xmlChar *)orig, 2); - des_const_xmlChar_ptr(n_replace, (const xmlChar *)replace, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlACatalogAdd", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_catal); - printf(" %d", n_type); - printf(" %d", n_orig); - printf(" %d", n_replace); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlACatalogDump(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlCatalogPtr catal; /* a Catalog */ - int n_catal; - FILE * out; /* the file. */ - int n_out; - - for (n_catal = 0;n_catal < gen_nb_xmlCatalogPtr;n_catal++) { - for (n_out = 0;n_out < gen_nb_FILE_ptr;n_out++) { - mem_base = xmlMemBlocks(); - catal = gen_xmlCatalogPtr(n_catal, 0); - out = gen_FILE_ptr(n_out, 1); - - xmlACatalogDump(catal, out); - call_tests++; - des_xmlCatalogPtr(n_catal, catal, 0); - des_FILE_ptr(n_out, out, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlACatalogDump", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_catal); - printf(" %d", n_out); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlACatalogRemove(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - int ret_val; - xmlCatalogPtr catal; /* a Catalog */ - int n_catal; - xmlChar * value; /* the value to remove */ - int n_value; - - for (n_catal = 0;n_catal < gen_nb_xmlCatalogPtr;n_catal++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - catal = gen_xmlCatalogPtr(n_catal, 0); - value = gen_const_xmlChar_ptr(n_value, 1); - - ret_val = xmlACatalogRemove(catal, (const xmlChar *)value); - desret_int(ret_val); - call_tests++; - des_xmlCatalogPtr(n_catal, catal, 0); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlACatalogRemove", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_catal); - printf(" %d", n_value); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlACatalogResolve(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlCatalogPtr catal; /* a Catalog */ - int n_catal; - xmlChar * pubID; /* the public ID string */ - int n_pubID; - xmlChar * sysID; /* the system ID string */ - int n_sysID; - - for (n_catal = 0;n_catal < gen_nb_xmlCatalogPtr;n_catal++) { - for (n_pubID = 0;n_pubID < gen_nb_const_xmlChar_ptr;n_pubID++) { - for (n_sysID = 0;n_sysID < gen_nb_const_xmlChar_ptr;n_sysID++) { - mem_base = xmlMemBlocks(); - catal = gen_xmlCatalogPtr(n_catal, 0); - pubID = gen_const_xmlChar_ptr(n_pubID, 1); - sysID = gen_const_xmlChar_ptr(n_sysID, 2); - - ret_val = xmlACatalogResolve(catal, (const xmlChar *)pubID, (const xmlChar *)sysID); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlCatalogPtr(n_catal, catal, 0); - des_const_xmlChar_ptr(n_pubID, (const xmlChar *)pubID, 1); - des_const_xmlChar_ptr(n_sysID, (const xmlChar *)sysID, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlACatalogResolve", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_catal); - printf(" %d", n_pubID); - printf(" %d", n_sysID); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlACatalogResolvePublic(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlCatalogPtr catal; /* a Catalog */ - int n_catal; - xmlChar * pubID; /* the public ID string */ - int n_pubID; - - for (n_catal = 0;n_catal < gen_nb_xmlCatalogPtr;n_catal++) { - for (n_pubID = 0;n_pubID < gen_nb_const_xmlChar_ptr;n_pubID++) { - mem_base = xmlMemBlocks(); - catal = gen_xmlCatalogPtr(n_catal, 0); - pubID = gen_const_xmlChar_ptr(n_pubID, 1); - - ret_val = xmlACatalogResolvePublic(catal, (const xmlChar *)pubID); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlCatalogPtr(n_catal, catal, 0); - des_const_xmlChar_ptr(n_pubID, (const xmlChar *)pubID, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlACatalogResolvePublic", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_catal); - printf(" %d", n_pubID); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlACatalogResolveSystem(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlCatalogPtr catal; /* a Catalog */ - int n_catal; - xmlChar * sysID; /* the system ID string */ - int n_sysID; - - for (n_catal = 0;n_catal < gen_nb_xmlCatalogPtr;n_catal++) { - for (n_sysID = 0;n_sysID < gen_nb_const_xmlChar_ptr;n_sysID++) { - mem_base = xmlMemBlocks(); - catal = gen_xmlCatalogPtr(n_catal, 0); - sysID = gen_const_xmlChar_ptr(n_sysID, 1); - - ret_val = xmlACatalogResolveSystem(catal, (const xmlChar *)sysID); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlCatalogPtr(n_catal, catal, 0); - des_const_xmlChar_ptr(n_sysID, (const xmlChar *)sysID, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlACatalogResolveSystem", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_catal); - printf(" %d", n_sysID); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlACatalogResolveURI(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlCatalogPtr catal; /* a Catalog */ - int n_catal; - xmlChar * URI; /* the URI */ - int n_URI; - - for (n_catal = 0;n_catal < gen_nb_xmlCatalogPtr;n_catal++) { - for (n_URI = 0;n_URI < gen_nb_const_xmlChar_ptr;n_URI++) { - mem_base = xmlMemBlocks(); - catal = gen_xmlCatalogPtr(n_catal, 0); - URI = gen_const_xmlChar_ptr(n_URI, 1); - - ret_val = xmlACatalogResolveURI(catal, (const xmlChar *)URI); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlCatalogPtr(n_catal, catal, 0); - des_const_xmlChar_ptr(n_URI, (const xmlChar *)URI, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlACatalogResolveURI", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_catal); - printf(" %d", n_URI); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCatalogAdd(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - int ret_val; - xmlChar * type; /* the type of record to add to the catalog */ - int n_type; - xmlChar * orig; /* the system, public or prefix to match */ - int n_orig; - xmlChar * replace; /* the replacement value for the match */ - int n_replace; - - for (n_type = 0;n_type < gen_nb_const_xmlChar_ptr;n_type++) { - for (n_orig = 0;n_orig < gen_nb_const_xmlChar_ptr;n_orig++) { - for (n_replace = 0;n_replace < gen_nb_const_xmlChar_ptr;n_replace++) { - mem_base = xmlMemBlocks(); - type = gen_const_xmlChar_ptr(n_type, 0); - orig = gen_const_xmlChar_ptr(n_orig, 1); - replace = gen_const_xmlChar_ptr(n_replace, 2); - - ret_val = xmlCatalogAdd((const xmlChar *)type, (const xmlChar *)orig, (const xmlChar *)replace); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_type, (const xmlChar *)type, 0); - des_const_xmlChar_ptr(n_orig, (const xmlChar *)orig, 1); - des_const_xmlChar_ptr(n_replace, (const xmlChar *)replace, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCatalogAdd", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_type); - printf(" %d", n_orig); - printf(" %d", n_replace); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCatalogCleanup(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - - - xmlCatalogCleanup(); - call_tests++; - xmlResetLastError(); - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCatalogConvert(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int ret_val; - - - ret_val = xmlCatalogConvert(); - desret_int(ret_val); - call_tests++; - xmlResetLastError(); - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCatalogDump(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - FILE * out; /* the file. */ - int n_out; - - for (n_out = 0;n_out < gen_nb_FILE_ptr;n_out++) { - mem_base = xmlMemBlocks(); - out = gen_FILE_ptr(n_out, 0); - - xmlCatalogDump(out); - call_tests++; - des_FILE_ptr(n_out, out, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCatalogDump", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_out); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCatalogGetDefaults(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - xmlCatalogAllow ret_val; - - mem_base = xmlMemBlocks(); - - ret_val = xmlCatalogGetDefaults(); - desret_xmlCatalogAllow(ret_val); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCatalogGetDefaults", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCatalogIsEmpty(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - int ret_val; - xmlCatalogPtr catal; /* should this create an SGML catalog */ - int n_catal; - - for (n_catal = 0;n_catal < gen_nb_xmlCatalogPtr;n_catal++) { - mem_base = xmlMemBlocks(); - catal = gen_xmlCatalogPtr(n_catal, 0); - - ret_val = xmlCatalogIsEmpty(catal); - desret_int(ret_val); - call_tests++; - des_xmlCatalogPtr(n_catal, catal, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCatalogIsEmpty", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_catal); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCatalogLocalResolve(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - xmlChar * ret_val; - void * catalogs; /* a document's list of catalogs */ - int n_catalogs; - xmlChar * pubID; /* the public ID string */ - int n_pubID; - xmlChar * sysID; /* the system ID string */ - int n_sysID; - - for (n_catalogs = 0;n_catalogs < gen_nb_void_ptr;n_catalogs++) { - for (n_pubID = 0;n_pubID < gen_nb_const_xmlChar_ptr;n_pubID++) { - for (n_sysID = 0;n_sysID < gen_nb_const_xmlChar_ptr;n_sysID++) { - mem_base = xmlMemBlocks(); - catalogs = gen_void_ptr(n_catalogs, 0); - pubID = gen_const_xmlChar_ptr(n_pubID, 1); - sysID = gen_const_xmlChar_ptr(n_sysID, 2); - - ret_val = xmlCatalogLocalResolve(catalogs, (const xmlChar *)pubID, (const xmlChar *)sysID); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_void_ptr(n_catalogs, catalogs, 0); - des_const_xmlChar_ptr(n_pubID, (const xmlChar *)pubID, 1); - des_const_xmlChar_ptr(n_sysID, (const xmlChar *)sysID, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCatalogLocalResolve", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_catalogs); - printf(" %d", n_pubID); - printf(" %d", n_sysID); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCatalogLocalResolveURI(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - xmlChar * ret_val; - void * catalogs; /* a document's list of catalogs */ - int n_catalogs; - xmlChar * URI; /* the URI */ - int n_URI; - - for (n_catalogs = 0;n_catalogs < gen_nb_void_ptr;n_catalogs++) { - for (n_URI = 0;n_URI < gen_nb_const_xmlChar_ptr;n_URI++) { - mem_base = xmlMemBlocks(); - catalogs = gen_void_ptr(n_catalogs, 0); - URI = gen_const_xmlChar_ptr(n_URI, 1); - - ret_val = xmlCatalogLocalResolveURI(catalogs, (const xmlChar *)URI); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_void_ptr(n_catalogs, catalogs, 0); - des_const_xmlChar_ptr(n_URI, (const xmlChar *)URI, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCatalogLocalResolveURI", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_catalogs); - printf(" %d", n_URI); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCatalogRemove(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int ret_val; - xmlChar * value; /* the value to remove */ - int n_value; - - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - value = gen_const_xmlChar_ptr(n_value, 0); - - ret_val = xmlCatalogRemove((const xmlChar *)value); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 0); - xmlResetLastError(); - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCatalogResolve(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlChar * pubID; /* the public ID string */ - int n_pubID; - xmlChar * sysID; /* the system ID string */ - int n_sysID; - - for (n_pubID = 0;n_pubID < gen_nb_const_xmlChar_ptr;n_pubID++) { - for (n_sysID = 0;n_sysID < gen_nb_const_xmlChar_ptr;n_sysID++) { - mem_base = xmlMemBlocks(); - pubID = gen_const_xmlChar_ptr(n_pubID, 0); - sysID = gen_const_xmlChar_ptr(n_sysID, 1); - - ret_val = xmlCatalogResolve((const xmlChar *)pubID, (const xmlChar *)sysID); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_pubID, (const xmlChar *)pubID, 0); - des_const_xmlChar_ptr(n_sysID, (const xmlChar *)sysID, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCatalogResolve", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_pubID); - printf(" %d", n_sysID); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCatalogResolvePublic(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlChar * pubID; /* the public ID string */ - int n_pubID; - - for (n_pubID = 0;n_pubID < gen_nb_const_xmlChar_ptr;n_pubID++) { - mem_base = xmlMemBlocks(); - pubID = gen_const_xmlChar_ptr(n_pubID, 0); - - ret_val = xmlCatalogResolvePublic((const xmlChar *)pubID); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_pubID, (const xmlChar *)pubID, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCatalogResolvePublic", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_pubID); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCatalogResolveSystem(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlChar * sysID; /* the system ID string */ - int n_sysID; - - for (n_sysID = 0;n_sysID < gen_nb_const_xmlChar_ptr;n_sysID++) { - mem_base = xmlMemBlocks(); - sysID = gen_const_xmlChar_ptr(n_sysID, 0); - - ret_val = xmlCatalogResolveSystem((const xmlChar *)sysID); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_sysID, (const xmlChar *)sysID, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCatalogResolveSystem", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_sysID); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCatalogResolveURI(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlChar * URI; /* the URI */ - int n_URI; - - for (n_URI = 0;n_URI < gen_nb_const_xmlChar_ptr;n_URI++) { - mem_base = xmlMemBlocks(); - URI = gen_const_xmlChar_ptr(n_URI, 0); - - ret_val = xmlCatalogResolveURI((const xmlChar *)URI); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_URI, (const xmlChar *)URI, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCatalogResolveURI", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URI); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCatalogSetDefaultPrefer(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - xmlCatalogPrefer ret_val; - xmlCatalogPrefer prefer; /* the default preference for delegation */ - int n_prefer; - - for (n_prefer = 0;n_prefer < gen_nb_xmlCatalogPrefer;n_prefer++) { - mem_base = xmlMemBlocks(); - prefer = gen_xmlCatalogPrefer(n_prefer, 0); - - ret_val = xmlCatalogSetDefaultPrefer(prefer); - desret_xmlCatalogPrefer(ret_val); - call_tests++; - des_xmlCatalogPrefer(n_prefer, prefer, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCatalogSetDefaultPrefer", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_prefer); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCatalogSetDefaults(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - xmlCatalogAllow allow; /* what catalogs should be accepted */ - int n_allow; - - for (n_allow = 0;n_allow < gen_nb_xmlCatalogAllow;n_allow++) { - mem_base = xmlMemBlocks(); - allow = gen_xmlCatalogAllow(n_allow, 0); - - xmlCatalogSetDefaults(allow); - call_tests++; - des_xmlCatalogAllow(n_allow, allow, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCatalogSetDefaults", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_allow); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlConvertSGMLCatalog(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - int ret_val; - xmlCatalogPtr catal; /* the catalog */ - int n_catal; - - for (n_catal = 0;n_catal < gen_nb_xmlCatalogPtr;n_catal++) { - mem_base = xmlMemBlocks(); - catal = gen_xmlCatalogPtr(n_catal, 0); - - ret_val = xmlConvertSGMLCatalog(catal); - desret_int(ret_val); - call_tests++; - des_xmlCatalogPtr(n_catal, catal, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlConvertSGMLCatalog", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_catal); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlInitializeCatalog(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlInitializeCatalog(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlInitializeCatalog", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlLoadACatalog(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlLoadCatalog(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int ret_val; - const char * filename; /* a file path */ - int n_filename; - - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - filename = gen_filepath(n_filename, 0); - - ret_val = xmlLoadCatalog(filename); - desret_int(ret_val); - call_tests++; - des_filepath(n_filename, filename, 0); - xmlResetLastError(); - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlLoadCatalogs(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - char * pathss; /* a list of directories separated by a colon or a space. */ - int n_pathss; - - for (n_pathss = 0;n_pathss < gen_nb_const_char_ptr;n_pathss++) { - pathss = gen_const_char_ptr(n_pathss, 0); - - xmlLoadCatalogs((const char *)pathss); - call_tests++; - des_const_char_ptr(n_pathss, (const char *)pathss, 0); - xmlResetLastError(); - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlLoadSGMLSuperCatalog(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlNewCatalog(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlParseCatalogFile(void) { - int test_ret = 0; - -#if defined(LIBXML_CATALOG_ENABLED) - int mem_base; - xmlDocPtr ret_val; - const char * filename; /* the filename */ - int n_filename; - - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - mem_base = xmlMemBlocks(); - filename = gen_filepath(n_filename, 0); - - ret_val = xmlParseCatalogFile(filename); - desret_xmlDocPtr(ret_val); - call_tests++; - des_filepath(n_filename, filename, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParseCatalogFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_catalog(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing catalog : 27 of 36 functions ...\n"); - test_ret += test_xmlACatalogAdd(); - test_ret += test_xmlACatalogDump(); - test_ret += test_xmlACatalogRemove(); - test_ret += test_xmlACatalogResolve(); - test_ret += test_xmlACatalogResolvePublic(); - test_ret += test_xmlACatalogResolveSystem(); - test_ret += test_xmlACatalogResolveURI(); - test_ret += test_xmlCatalogAdd(); - test_ret += test_xmlCatalogCleanup(); - test_ret += test_xmlCatalogConvert(); - test_ret += test_xmlCatalogDump(); - test_ret += test_xmlCatalogGetDefaults(); - test_ret += test_xmlCatalogIsEmpty(); - test_ret += test_xmlCatalogLocalResolve(); - test_ret += test_xmlCatalogLocalResolveURI(); - test_ret += test_xmlCatalogRemove(); - test_ret += test_xmlCatalogResolve(); - test_ret += test_xmlCatalogResolvePublic(); - test_ret += test_xmlCatalogResolveSystem(); - test_ret += test_xmlCatalogResolveURI(); - test_ret += test_xmlCatalogSetDefaultPrefer(); - test_ret += test_xmlCatalogSetDefaults(); - test_ret += test_xmlConvertSGMLCatalog(); - test_ret += test_xmlInitializeCatalog(); - test_ret += test_xmlLoadACatalog(); - test_ret += test_xmlLoadCatalog(); - test_ret += test_xmlLoadCatalogs(); - test_ret += test_xmlLoadSGMLSuperCatalog(); - test_ret += test_xmlNewCatalog(); - test_ret += test_xmlParseCatalogFile(); - - if (test_ret != 0) - printf("Module catalog: %d errors\n", test_ret); - return(test_ret); -} - -#define gen_nb_const_xmlChRangeGroup_ptr 1 -static xmlChRangeGroup * gen_const_xmlChRangeGroup_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_const_xmlChRangeGroup_ptr(int no ATTRIBUTE_UNUSED, const xmlChRangeGroup * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlCharInRange(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - unsigned int val; /* character to be validated */ - int n_val; - xmlChRangeGroup * rptr; /* pointer to range to be used to validate */ - int n_rptr; - - for (n_val = 0;n_val < gen_nb_unsigned_int;n_val++) { - for (n_rptr = 0;n_rptr < gen_nb_const_xmlChRangeGroup_ptr;n_rptr++) { - mem_base = xmlMemBlocks(); - val = gen_unsigned_int(n_val, 0); - rptr = gen_const_xmlChRangeGroup_ptr(n_rptr, 1); - - ret_val = xmlCharInRange(val, (const xmlChRangeGroup *)rptr); - desret_int(ret_val); - call_tests++; - des_unsigned_int(n_val, val, 0); - des_const_xmlChRangeGroup_ptr(n_rptr, (const xmlChRangeGroup *)rptr, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCharInRange", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf(" %d", n_rptr); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlIsBaseChar(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - unsigned int ch; /* character to validate */ - int n_ch; - - for (n_ch = 0;n_ch < gen_nb_unsigned_int;n_ch++) { - mem_base = xmlMemBlocks(); - ch = gen_unsigned_int(n_ch, 0); - - ret_val = xmlIsBaseChar(ch); - desret_int(ret_val); - call_tests++; - des_unsigned_int(n_ch, ch, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIsBaseChar", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ch); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlIsBlank(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - unsigned int ch; /* character to validate */ - int n_ch; - - for (n_ch = 0;n_ch < gen_nb_unsigned_int;n_ch++) { - mem_base = xmlMemBlocks(); - ch = gen_unsigned_int(n_ch, 0); - - ret_val = xmlIsBlank(ch); - desret_int(ret_val); - call_tests++; - des_unsigned_int(n_ch, ch, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIsBlank", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ch); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlIsChar(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - unsigned int ch; /* character to validate */ - int n_ch; - - for (n_ch = 0;n_ch < gen_nb_unsigned_int;n_ch++) { - mem_base = xmlMemBlocks(); - ch = gen_unsigned_int(n_ch, 0); - - ret_val = xmlIsChar(ch); - desret_int(ret_val); - call_tests++; - des_unsigned_int(n_ch, ch, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIsChar", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ch); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlIsCombining(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - unsigned int ch; /* character to validate */ - int n_ch; - - for (n_ch = 0;n_ch < gen_nb_unsigned_int;n_ch++) { - mem_base = xmlMemBlocks(); - ch = gen_unsigned_int(n_ch, 0); - - ret_val = xmlIsCombining(ch); - desret_int(ret_val); - call_tests++; - des_unsigned_int(n_ch, ch, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIsCombining", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ch); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlIsDigit(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - unsigned int ch; /* character to validate */ - int n_ch; - - for (n_ch = 0;n_ch < gen_nb_unsigned_int;n_ch++) { - mem_base = xmlMemBlocks(); - ch = gen_unsigned_int(n_ch, 0); - - ret_val = xmlIsDigit(ch); - desret_int(ret_val); - call_tests++; - des_unsigned_int(n_ch, ch, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIsDigit", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ch); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlIsExtender(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - unsigned int ch; /* character to validate */ - int n_ch; - - for (n_ch = 0;n_ch < gen_nb_unsigned_int;n_ch++) { - mem_base = xmlMemBlocks(); - ch = gen_unsigned_int(n_ch, 0); - - ret_val = xmlIsExtender(ch); - desret_int(ret_val); - call_tests++; - des_unsigned_int(n_ch, ch, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIsExtender", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ch); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlIsIdeographic(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - unsigned int ch; /* character to validate */ - int n_ch; - - for (n_ch = 0;n_ch < gen_nb_unsigned_int;n_ch++) { - mem_base = xmlMemBlocks(); - ch = gen_unsigned_int(n_ch, 0); - - ret_val = xmlIsIdeographic(ch); - desret_int(ret_val); - call_tests++; - des_unsigned_int(n_ch, ch, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIsIdeographic", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ch); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlIsPubidChar(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - unsigned int ch; /* character to validate */ - int n_ch; - - for (n_ch = 0;n_ch < gen_nb_unsigned_int;n_ch++) { - mem_base = xmlMemBlocks(); - ch = gen_unsigned_int(n_ch, 0); - - ret_val = xmlIsPubidChar(ch); - desret_int(ret_val); - call_tests++; - des_unsigned_int(n_ch, ch, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIsPubidChar", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ch); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - -static int -test_chvalid(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing chvalid : 9 of 9 functions ...\n"); - test_ret += test_xmlCharInRange(); - test_ret += test_xmlIsBaseChar(); - test_ret += test_xmlIsBlank(); - test_ret += test_xmlIsChar(); - test_ret += test_xmlIsCombining(); - test_ret += test_xmlIsDigit(); - test_ret += test_xmlIsExtender(); - test_ret += test_xmlIsIdeographic(); - test_ret += test_xmlIsPubidChar(); - - if (test_ret != 0) - printf("Module chvalid: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlBoolToText(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) - int mem_base; - const char * ret_val; - int boolval; /* a bool to turn into text */ - int n_boolval; - - for (n_boolval = 0;n_boolval < gen_nb_int;n_boolval++) { - mem_base = xmlMemBlocks(); - boolval = gen_int(n_boolval, 0); - - ret_val = xmlBoolToText(boolval); - desret_const_char_ptr(ret_val); - call_tests++; - des_int(n_boolval, boolval, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBoolToText", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_boolval); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDebugCheckDocument(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) - int mem_base; - int ret_val; - FILE * output; /* the FILE * for the output */ - int n_output; - xmlDocPtr doc; /* the document */ - int n_doc; - - for (n_output = 0;n_output < gen_nb_debug_FILE_ptr;n_output++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - output = gen_debug_FILE_ptr(n_output, 0); - doc = gen_xmlDocPtr(n_doc, 1); - - ret_val = xmlDebugCheckDocument(output, doc); - desret_int(ret_val); - call_tests++; - des_debug_FILE_ptr(n_output, output, 0); - des_xmlDocPtr(n_doc, doc, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDebugCheckDocument", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_doc); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDebugDumpAttr(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) - int mem_base; - FILE * output; /* the FILE * for the output */ - int n_output; - xmlAttrPtr attr; /* the attribute */ - int n_attr; - int depth; /* the indentation level. */ - int n_depth; - - for (n_output = 0;n_output < gen_nb_debug_FILE_ptr;n_output++) { - for (n_attr = 0;n_attr < gen_nb_xmlAttrPtr;n_attr++) { - for (n_depth = 0;n_depth < gen_nb_int;n_depth++) { - mem_base = xmlMemBlocks(); - output = gen_debug_FILE_ptr(n_output, 0); - attr = gen_xmlAttrPtr(n_attr, 1); - depth = gen_int(n_depth, 2); - - xmlDebugDumpAttr(output, attr, depth); - call_tests++; - des_debug_FILE_ptr(n_output, output, 0); - des_xmlAttrPtr(n_attr, attr, 1); - des_int(n_depth, depth, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDebugDumpAttr", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_attr); - printf(" %d", n_depth); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDebugDumpAttrList(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) - int mem_base; - FILE * output; /* the FILE * for the output */ - int n_output; - xmlAttrPtr attr; /* the attribute list */ - int n_attr; - int depth; /* the indentation level. */ - int n_depth; - - for (n_output = 0;n_output < gen_nb_debug_FILE_ptr;n_output++) { - for (n_attr = 0;n_attr < gen_nb_xmlAttrPtr;n_attr++) { - for (n_depth = 0;n_depth < gen_nb_int;n_depth++) { - mem_base = xmlMemBlocks(); - output = gen_debug_FILE_ptr(n_output, 0); - attr = gen_xmlAttrPtr(n_attr, 1); - depth = gen_int(n_depth, 2); - - xmlDebugDumpAttrList(output, attr, depth); - call_tests++; - des_debug_FILE_ptr(n_output, output, 0); - des_xmlAttrPtr(n_attr, attr, 1); - des_int(n_depth, depth, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDebugDumpAttrList", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_attr); - printf(" %d", n_depth); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDebugDumpDTD(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) - int mem_base; - FILE * output; /* the FILE * for the output */ - int n_output; - xmlDtdPtr dtd; /* the DTD */ - int n_dtd; - - for (n_output = 0;n_output < gen_nb_debug_FILE_ptr;n_output++) { - for (n_dtd = 0;n_dtd < gen_nb_xmlDtdPtr;n_dtd++) { - mem_base = xmlMemBlocks(); - output = gen_debug_FILE_ptr(n_output, 0); - dtd = gen_xmlDtdPtr(n_dtd, 1); - - xmlDebugDumpDTD(output, dtd); - call_tests++; - des_debug_FILE_ptr(n_output, output, 0); - des_xmlDtdPtr(n_dtd, dtd, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDebugDumpDTD", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_dtd); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDebugDumpDocument(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) - int mem_base; - FILE * output; /* the FILE * for the output */ - int n_output; - xmlDocPtr doc; /* the document */ - int n_doc; - - for (n_output = 0;n_output < gen_nb_debug_FILE_ptr;n_output++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - output = gen_debug_FILE_ptr(n_output, 0); - doc = gen_xmlDocPtr(n_doc, 1); - - xmlDebugDumpDocument(output, doc); - call_tests++; - des_debug_FILE_ptr(n_output, output, 0); - des_xmlDocPtr(n_doc, doc, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDebugDumpDocument", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_doc); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDebugDumpDocumentHead(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) - int mem_base; - FILE * output; /* the FILE * for the output */ - int n_output; - xmlDocPtr doc; /* the document */ - int n_doc; - - for (n_output = 0;n_output < gen_nb_debug_FILE_ptr;n_output++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - output = gen_debug_FILE_ptr(n_output, 0); - doc = gen_xmlDocPtr(n_doc, 1); - - xmlDebugDumpDocumentHead(output, doc); - call_tests++; - des_debug_FILE_ptr(n_output, output, 0); - des_xmlDocPtr(n_doc, doc, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDebugDumpDocumentHead", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_doc); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDebugDumpEntities(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) - int mem_base; - FILE * output; /* the FILE * for the output */ - int n_output; - xmlDocPtr doc; /* the document */ - int n_doc; - - for (n_output = 0;n_output < gen_nb_debug_FILE_ptr;n_output++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - output = gen_debug_FILE_ptr(n_output, 0); - doc = gen_xmlDocPtr(n_doc, 1); - - xmlDebugDumpEntities(output, doc); - call_tests++; - des_debug_FILE_ptr(n_output, output, 0); - des_xmlDocPtr(n_doc, doc, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDebugDumpEntities", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_doc); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDebugDumpNode(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) - int mem_base; - FILE * output; /* the FILE * for the output */ - int n_output; - xmlNodePtr node; /* the node */ - int n_node; - int depth; /* the indentation level. */ - int n_depth; - - for (n_output = 0;n_output < gen_nb_debug_FILE_ptr;n_output++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_depth = 0;n_depth < gen_nb_int;n_depth++) { - mem_base = xmlMemBlocks(); - output = gen_debug_FILE_ptr(n_output, 0); - node = gen_xmlNodePtr(n_node, 1); - depth = gen_int(n_depth, 2); - - xmlDebugDumpNode(output, node, depth); - call_tests++; - des_debug_FILE_ptr(n_output, output, 0); - des_xmlNodePtr(n_node, node, 1); - des_int(n_depth, depth, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDebugDumpNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_node); - printf(" %d", n_depth); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDebugDumpNodeList(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) - int mem_base; - FILE * output; /* the FILE * for the output */ - int n_output; - xmlNodePtr node; /* the node list */ - int n_node; - int depth; /* the indentation level. */ - int n_depth; - - for (n_output = 0;n_output < gen_nb_debug_FILE_ptr;n_output++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_depth = 0;n_depth < gen_nb_int;n_depth++) { - mem_base = xmlMemBlocks(); - output = gen_debug_FILE_ptr(n_output, 0); - node = gen_xmlNodePtr(n_node, 1); - depth = gen_int(n_depth, 2); - - xmlDebugDumpNodeList(output, node, depth); - call_tests++; - des_debug_FILE_ptr(n_output, output, 0); - des_xmlNodePtr(n_node, node, 1); - des_int(n_depth, depth, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDebugDumpNodeList", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_node); - printf(" %d", n_depth); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDebugDumpOneNode(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) - int mem_base; - FILE * output; /* the FILE * for the output */ - int n_output; - xmlNodePtr node; /* the node */ - int n_node; - int depth; /* the indentation level. */ - int n_depth; - - for (n_output = 0;n_output < gen_nb_debug_FILE_ptr;n_output++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_depth = 0;n_depth < gen_nb_int;n_depth++) { - mem_base = xmlMemBlocks(); - output = gen_debug_FILE_ptr(n_output, 0); - node = gen_xmlNodePtr(n_node, 1); - depth = gen_int(n_depth, 2); - - xmlDebugDumpOneNode(output, node, depth); - call_tests++; - des_debug_FILE_ptr(n_output, output, 0); - des_xmlNodePtr(n_node, node, 1); - des_int(n_depth, depth, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDebugDumpOneNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_node); - printf(" %d", n_depth); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDebugDumpString(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) - int mem_base; - FILE * output; /* the FILE * for the output */ - int n_output; - xmlChar * str; /* the string */ - int n_str; - - for (n_output = 0;n_output < gen_nb_debug_FILE_ptr;n_output++) { - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - mem_base = xmlMemBlocks(); - output = gen_debug_FILE_ptr(n_output, 0); - str = gen_const_xmlChar_ptr(n_str, 1); - - xmlDebugDumpString(output, (const xmlChar *)str); - call_tests++; - des_debug_FILE_ptr(n_output, output, 0); - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDebugDumpString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_str); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlLsCountNode(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) - int mem_base; - int ret_val; - xmlNodePtr node; /* the node to count */ - int n_node; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - - ret_val = xmlLsCountNode(node); - desret_int(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlLsCountNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlLsOneNode(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) - int mem_base; - FILE * output; /* the FILE * for the output */ - int n_output; - xmlNodePtr node; /* the node to dump */ - int n_node; - - for (n_output = 0;n_output < gen_nb_debug_FILE_ptr;n_output++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - output = gen_debug_FILE_ptr(n_output, 0); - node = gen_xmlNodePtr(n_node, 1); - - xmlLsOneNode(output, node); - call_tests++; - des_debug_FILE_ptr(n_output, output, 0); - des_xmlNodePtr(n_node, node, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlLsOneNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_node); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -#define gen_nb_char_ptr 1 -static char * gen_char_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_char_ptr(int no ATTRIBUTE_UNUSED, char * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlShell(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlShellBase(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlShellCtxtPtr ctxt; /* the shell context */ - int n_ctxt; - char * arg; /* unused */ - int n_arg; - xmlNodePtr node; /* a node */ - int n_node; - xmlNodePtr node2; /* unused */ - int n_node2; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlShellCtxtPtr;n_ctxt++) { - for (n_arg = 0;n_arg < gen_nb_char_ptr;n_arg++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_node2 = 0;n_node2 < gen_nb_xmlNodePtr;n_node2++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlShellCtxtPtr(n_ctxt, 0); - arg = gen_char_ptr(n_arg, 1); - node = gen_xmlNodePtr(n_node, 2); - node2 = gen_xmlNodePtr(n_node2, 3); - - ret_val = xmlShellBase(ctxt, arg, node, node2); - desret_int(ret_val); - call_tests++; - des_xmlShellCtxtPtr(n_ctxt, ctxt, 0); - des_char_ptr(n_arg, arg, 1); - des_xmlNodePtr(n_node, node, 2); - des_xmlNodePtr(n_node2, node2, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlShellBase", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_arg); - printf(" %d", n_node); - printf(" %d", n_node2); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlShellCat(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - xmlShellCtxtPtr ctxt; /* the shell context */ - int n_ctxt; - char * arg; /* unused */ - int n_arg; - xmlNodePtr node; /* a node */ - int n_node; - xmlNodePtr node2; /* unused */ - int n_node2; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlShellCtxtPtr;n_ctxt++) { - for (n_arg = 0;n_arg < gen_nb_char_ptr;n_arg++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_node2 = 0;n_node2 < gen_nb_xmlNodePtr;n_node2++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlShellCtxtPtr(n_ctxt, 0); - arg = gen_char_ptr(n_arg, 1); - node = gen_xmlNodePtr(n_node, 2); - node2 = gen_xmlNodePtr(n_node2, 3); - - ret_val = xmlShellCat(ctxt, arg, node, node2); - desret_int(ret_val); - call_tests++; - des_xmlShellCtxtPtr(n_ctxt, ctxt, 0); - des_char_ptr(n_arg, arg, 1); - des_xmlNodePtr(n_node, node, 2); - des_xmlNodePtr(n_node2, node2, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlShellCat", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_arg); - printf(" %d", n_node); - printf(" %d", n_node2); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlShellDir(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlShellCtxtPtr ctxt; /* the shell context */ - int n_ctxt; - char * arg; /* unused */ - int n_arg; - xmlNodePtr node; /* a node */ - int n_node; - xmlNodePtr node2; /* unused */ - int n_node2; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlShellCtxtPtr;n_ctxt++) { - for (n_arg = 0;n_arg < gen_nb_char_ptr;n_arg++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_node2 = 0;n_node2 < gen_nb_xmlNodePtr;n_node2++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlShellCtxtPtr(n_ctxt, 0); - arg = gen_char_ptr(n_arg, 1); - node = gen_xmlNodePtr(n_node, 2); - node2 = gen_xmlNodePtr(n_node2, 3); - - ret_val = xmlShellDir(ctxt, arg, node, node2); - desret_int(ret_val); - call_tests++; - des_xmlShellCtxtPtr(n_ctxt, ctxt, 0); - des_char_ptr(n_arg, arg, 1); - des_xmlNodePtr(n_node, node, 2); - des_xmlNodePtr(n_node2, node2, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlShellDir", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_arg); - printf(" %d", n_node); - printf(" %d", n_node2); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlShellDu(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlShellCtxtPtr ctxt; /* the shell context */ - int n_ctxt; - char * arg; /* unused */ - int n_arg; - xmlNodePtr tree; /* a node defining a subtree */ - int n_tree; - xmlNodePtr node2; /* unused */ - int n_node2; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlShellCtxtPtr;n_ctxt++) { - for (n_arg = 0;n_arg < gen_nb_char_ptr;n_arg++) { - for (n_tree = 0;n_tree < gen_nb_xmlNodePtr;n_tree++) { - for (n_node2 = 0;n_node2 < gen_nb_xmlNodePtr;n_node2++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlShellCtxtPtr(n_ctxt, 0); - arg = gen_char_ptr(n_arg, 1); - tree = gen_xmlNodePtr(n_tree, 2); - node2 = gen_xmlNodePtr(n_node2, 3); - - ret_val = xmlShellDu(ctxt, arg, tree, node2); - desret_int(ret_val); - call_tests++; - des_xmlShellCtxtPtr(n_ctxt, ctxt, 0); - des_char_ptr(n_arg, arg, 1); - des_xmlNodePtr(n_tree, tree, 2); - des_xmlNodePtr(n_node2, node2, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlShellDu", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_arg); - printf(" %d", n_tree); - printf(" %d", n_node2); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlShellList(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlShellCtxtPtr ctxt; /* the shell context */ - int n_ctxt; - char * arg; /* unused */ - int n_arg; - xmlNodePtr node; /* a node */ - int n_node; - xmlNodePtr node2; /* unused */ - int n_node2; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlShellCtxtPtr;n_ctxt++) { - for (n_arg = 0;n_arg < gen_nb_char_ptr;n_arg++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_node2 = 0;n_node2 < gen_nb_xmlNodePtr;n_node2++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlShellCtxtPtr(n_ctxt, 0); - arg = gen_char_ptr(n_arg, 1); - node = gen_xmlNodePtr(n_node, 2); - node2 = gen_xmlNodePtr(n_node2, 3); - - ret_val = xmlShellList(ctxt, arg, node, node2); - desret_int(ret_val); - call_tests++; - des_xmlShellCtxtPtr(n_ctxt, ctxt, 0); - des_char_ptr(n_arg, arg, 1); - des_xmlNodePtr(n_node, node, 2); - des_xmlNodePtr(n_node2, node2, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlShellList", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_arg); - printf(" %d", n_node); - printf(" %d", n_node2); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlShellLoad(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlShellCtxtPtr ctxt; /* the shell context */ - int n_ctxt; - char * filename; /* the file name */ - int n_filename; - xmlNodePtr node; /* unused */ - int n_node; - xmlNodePtr node2; /* unused */ - int n_node2; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlShellCtxtPtr;n_ctxt++) { - for (n_filename = 0;n_filename < gen_nb_char_ptr;n_filename++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_node2 = 0;n_node2 < gen_nb_xmlNodePtr;n_node2++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlShellCtxtPtr(n_ctxt, 0); - filename = gen_char_ptr(n_filename, 1); - node = gen_xmlNodePtr(n_node, 2); - node2 = gen_xmlNodePtr(n_node2, 3); - - ret_val = xmlShellLoad(ctxt, filename, node, node2); - desret_int(ret_val); - call_tests++; - des_xmlShellCtxtPtr(n_ctxt, ctxt, 0); - des_char_ptr(n_filename, filename, 1); - des_xmlNodePtr(n_node, node, 2); - des_xmlNodePtr(n_node2, node2, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlShellLoad", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_filename); - printf(" %d", n_node); - printf(" %d", n_node2); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlShellPrintXPathResult(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr list; /* a valid result generated by an xpath evaluation */ - int n_list; - - for (n_list = 0;n_list < gen_nb_xmlXPathObjectPtr;n_list++) { - mem_base = xmlMemBlocks(); - list = gen_xmlXPathObjectPtr(n_list, 0); - - xmlShellPrintXPathResult(list); - call_tests++; - des_xmlXPathObjectPtr(n_list, list, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlShellPrintXPathResult", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_list); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlShellPwd(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlShellCtxtPtr ctxt; /* the shell context */ - int n_ctxt; - char * buffer; /* the output buffer */ - int n_buffer; - xmlNodePtr node; /* a node */ - int n_node; - xmlNodePtr node2; /* unused */ - int n_node2; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlShellCtxtPtr;n_ctxt++) { - for (n_buffer = 0;n_buffer < gen_nb_char_ptr;n_buffer++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_node2 = 0;n_node2 < gen_nb_xmlNodePtr;n_node2++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlShellCtxtPtr(n_ctxt, 0); - buffer = gen_char_ptr(n_buffer, 1); - node = gen_xmlNodePtr(n_node, 2); - node2 = gen_xmlNodePtr(n_node2, 3); - - ret_val = xmlShellPwd(ctxt, buffer, node, node2); - desret_int(ret_val); - call_tests++; - des_xmlShellCtxtPtr(n_ctxt, ctxt, 0); - des_char_ptr(n_buffer, buffer, 1); - des_xmlNodePtr(n_node, node, 2); - des_xmlNodePtr(n_node2, node2, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlShellPwd", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_buffer); - printf(" %d", n_node); - printf(" %d", n_node2); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlShellSave(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - xmlShellCtxtPtr ctxt; /* the shell context */ - int n_ctxt; - char * filename; /* the file name (optional) */ - int n_filename; - xmlNodePtr node; /* unused */ - int n_node; - xmlNodePtr node2; /* unused */ - int n_node2; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlShellCtxtPtr;n_ctxt++) { - for (n_filename = 0;n_filename < gen_nb_char_ptr;n_filename++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_node2 = 0;n_node2 < gen_nb_xmlNodePtr;n_node2++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlShellCtxtPtr(n_ctxt, 0); - filename = gen_char_ptr(n_filename, 1); - node = gen_xmlNodePtr(n_node, 2); - node2 = gen_xmlNodePtr(n_node2, 3); - - ret_val = xmlShellSave(ctxt, filename, node, node2); - desret_int(ret_val); - call_tests++; - des_xmlShellCtxtPtr(n_ctxt, ctxt, 0); - des_char_ptr(n_filename, filename, 1); - des_xmlNodePtr(n_node, node, 2); - des_xmlNodePtr(n_node2, node2, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlShellSave", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_filename); - printf(" %d", n_node); - printf(" %d", n_node2); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlShellValidate(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlShellCtxtPtr ctxt; /* the shell context */ - int n_ctxt; - char * dtd; /* the DTD URI (optional) */ - int n_dtd; - xmlNodePtr node; /* unused */ - int n_node; - xmlNodePtr node2; /* unused */ - int n_node2; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlShellCtxtPtr;n_ctxt++) { - for (n_dtd = 0;n_dtd < gen_nb_char_ptr;n_dtd++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_node2 = 0;n_node2 < gen_nb_xmlNodePtr;n_node2++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlShellCtxtPtr(n_ctxt, 0); - dtd = gen_char_ptr(n_dtd, 1); - node = gen_xmlNodePtr(n_node, 2); - node2 = gen_xmlNodePtr(n_node2, 3); - - ret_val = xmlShellValidate(ctxt, dtd, node, node2); - desret_int(ret_val); - call_tests++; - des_xmlShellCtxtPtr(n_ctxt, ctxt, 0); - des_char_ptr(n_dtd, dtd, 1); - des_xmlNodePtr(n_node, node, 2); - des_xmlNodePtr(n_node2, node2, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlShellValidate", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_dtd); - printf(" %d", n_node); - printf(" %d", n_node2); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlShellWrite(void) { - int test_ret = 0; - -#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - xmlShellCtxtPtr ctxt; /* the shell context */ - int n_ctxt; - char * filename; /* the file name */ - int n_filename; - xmlNodePtr node; /* a node in the tree */ - int n_node; - xmlNodePtr node2; /* unused */ - int n_node2; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlShellCtxtPtr;n_ctxt++) { - for (n_filename = 0;n_filename < gen_nb_char_ptr;n_filename++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_node2 = 0;n_node2 < gen_nb_xmlNodePtr;n_node2++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlShellCtxtPtr(n_ctxt, 0); - filename = gen_char_ptr(n_filename, 1); - node = gen_xmlNodePtr(n_node, 2); - node2 = gen_xmlNodePtr(n_node2, 3); - - ret_val = xmlShellWrite(ctxt, filename, node, node2); - desret_int(ret_val); - call_tests++; - des_xmlShellCtxtPtr(n_ctxt, ctxt, 0); - des_char_ptr(n_filename, filename, 1); - des_xmlNodePtr(n_node, node, 2); - des_xmlNodePtr(n_node2, node2, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlShellWrite", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_filename); - printf(" %d", n_node); - printf(" %d", n_node2); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_debugXML(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing debugXML : 25 of 28 functions ...\n"); - test_ret += test_xmlBoolToText(); - test_ret += test_xmlDebugCheckDocument(); - test_ret += test_xmlDebugDumpAttr(); - test_ret += test_xmlDebugDumpAttrList(); - test_ret += test_xmlDebugDumpDTD(); - test_ret += test_xmlDebugDumpDocument(); - test_ret += test_xmlDebugDumpDocumentHead(); - test_ret += test_xmlDebugDumpEntities(); - test_ret += test_xmlDebugDumpNode(); - test_ret += test_xmlDebugDumpNodeList(); - test_ret += test_xmlDebugDumpOneNode(); - test_ret += test_xmlDebugDumpString(); - test_ret += test_xmlLsCountNode(); - test_ret += test_xmlLsOneNode(); - test_ret += test_xmlShell(); - test_ret += test_xmlShellBase(); - test_ret += test_xmlShellCat(); - test_ret += test_xmlShellDir(); - test_ret += test_xmlShellDu(); - test_ret += test_xmlShellList(); - test_ret += test_xmlShellLoad(); - test_ret += test_xmlShellPrintXPathResult(); - test_ret += test_xmlShellPwd(); - test_ret += test_xmlShellSave(); - test_ret += test_xmlShellValidate(); - test_ret += test_xmlShellWrite(); - - if (test_ret != 0) - printf("Module debugXML: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlDictCleanup(void) { - int test_ret = 0; - - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlDictCleanup(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDictCleanup", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDictCreate(void) { - int test_ret = 0; - - int mem_base; - xmlDictPtr ret_val; - - mem_base = xmlMemBlocks(); - - ret_val = xmlDictCreate(); - desret_xmlDictPtr(ret_val); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDictCreate", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDictCreateSub(void) { - int test_ret = 0; - - int mem_base; - xmlDictPtr ret_val; - xmlDictPtr sub; /* an existing dictionnary */ - int n_sub; - - for (n_sub = 0;n_sub < gen_nb_xmlDictPtr;n_sub++) { - mem_base = xmlMemBlocks(); - sub = gen_xmlDictPtr(n_sub, 0); - - ret_val = xmlDictCreateSub(sub); - desret_xmlDictPtr(ret_val); - call_tests++; - des_xmlDictPtr(n_sub, sub, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDictCreateSub", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_sub); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDictExists(void) { - int test_ret = 0; - - int mem_base; - const xmlChar * ret_val; - xmlDictPtr dict; /* the dictionnary */ - int n_dict; - xmlChar * name; /* the name of the userdata */ - int n_name; - int len; /* the length of the name, if -1 it is recomputed */ - int n_len; - - for (n_dict = 0;n_dict < gen_nb_xmlDictPtr;n_dict++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - dict = gen_xmlDictPtr(n_dict, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - len = gen_int(n_len, 2); - - ret_val = xmlDictExists(dict, (const xmlChar *)name, len); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_xmlDictPtr(n_dict, dict, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDictExists", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_dict); - printf(" %d", n_name); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDictLookup(void) { - int test_ret = 0; - - int mem_base; - const xmlChar * ret_val; - xmlDictPtr dict; /* the dictionnary */ - int n_dict; - xmlChar * name; /* the name of the userdata */ - int n_name; - int len; /* the length of the name, if -1 it is recomputed */ - int n_len; - - for (n_dict = 0;n_dict < gen_nb_xmlDictPtr;n_dict++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - dict = gen_xmlDictPtr(n_dict, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - len = gen_int(n_len, 2); - - ret_val = xmlDictLookup(dict, (const xmlChar *)name, len); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_xmlDictPtr(n_dict, dict, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDictLookup", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_dict); - printf(" %d", n_name); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDictOwns(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlDictPtr dict; /* the dictionnary */ - int n_dict; - xmlChar * str; /* the string */ - int n_str; - - for (n_dict = 0;n_dict < gen_nb_xmlDictPtr;n_dict++) { - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - mem_base = xmlMemBlocks(); - dict = gen_xmlDictPtr(n_dict, 0); - str = gen_const_xmlChar_ptr(n_str, 1); - - ret_val = xmlDictOwns(dict, (const xmlChar *)str); - desret_int(ret_val); - call_tests++; - des_xmlDictPtr(n_dict, dict, 0); - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDictOwns", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_dict); - printf(" %d", n_str); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDictQLookup(void) { - int test_ret = 0; - - int mem_base; - const xmlChar * ret_val; - xmlDictPtr dict; /* the dictionnary */ - int n_dict; - xmlChar * prefix; /* the prefix */ - int n_prefix; - xmlChar * name; /* the name */ - int n_name; - - for (n_dict = 0;n_dict < gen_nb_xmlDictPtr;n_dict++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - dict = gen_xmlDictPtr(n_dict, 0); - prefix = gen_const_xmlChar_ptr(n_prefix, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - - ret_val = xmlDictQLookup(dict, (const xmlChar *)prefix, (const xmlChar *)name); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_xmlDictPtr(n_dict, dict, 0); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDictQLookup", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_dict); - printf(" %d", n_prefix); - printf(" %d", n_name); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDictReference(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlDictPtr dict; /* the dictionnary */ - int n_dict; - - for (n_dict = 0;n_dict < gen_nb_xmlDictPtr;n_dict++) { - mem_base = xmlMemBlocks(); - dict = gen_xmlDictPtr(n_dict, 0); - - ret_val = xmlDictReference(dict); - xmlDictFree(dict); - desret_int(ret_val); - call_tests++; - des_xmlDictPtr(n_dict, dict, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDictReference", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_dict); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDictSize(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlDictPtr dict; /* the dictionnary */ - int n_dict; - - for (n_dict = 0;n_dict < gen_nb_xmlDictPtr;n_dict++) { - mem_base = xmlMemBlocks(); - dict = gen_xmlDictPtr(n_dict, 0); - - ret_val = xmlDictSize(dict); - desret_int(ret_val); - call_tests++; - des_xmlDictPtr(n_dict, dict, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDictSize", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_dict); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - -static int -test_dict(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing dict : 9 of 10 functions ...\n"); - test_ret += test_xmlDictCleanup(); - test_ret += test_xmlDictCreate(); - test_ret += test_xmlDictCreateSub(); - test_ret += test_xmlDictExists(); - test_ret += test_xmlDictLookup(); - test_ret += test_xmlDictOwns(); - test_ret += test_xmlDictQLookup(); - test_ret += test_xmlDictReference(); - test_ret += test_xmlDictSize(); - - if (test_ret != 0) - printf("Module dict: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_UTF8Toisolat1(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) -#ifdef LIBXML_OUTPUT_ENABLED - int mem_base; - int ret_val; - unsigned char * out; /* a pointer to an array of bytes to store the result */ - int n_out; - int * outlen; /* the length of @out */ - int n_outlen; - unsigned char * in; /* a pointer to an array of UTF-8 chars */ - int n_in; - int * inlen; /* the length of @in */ - int n_inlen; - - for (n_out = 0;n_out < gen_nb_unsigned_char_ptr;n_out++) { - for (n_outlen = 0;n_outlen < gen_nb_int_ptr;n_outlen++) { - for (n_in = 0;n_in < gen_nb_const_unsigned_char_ptr;n_in++) { - for (n_inlen = 0;n_inlen < gen_nb_int_ptr;n_inlen++) { - mem_base = xmlMemBlocks(); - out = gen_unsigned_char_ptr(n_out, 0); - outlen = gen_int_ptr(n_outlen, 1); - in = gen_const_unsigned_char_ptr(n_in, 2); - inlen = gen_int_ptr(n_inlen, 3); - - ret_val = UTF8Toisolat1(out, outlen, (const unsigned char *)in, inlen); - desret_int(ret_val); - call_tests++; - des_unsigned_char_ptr(n_out, out, 0); - des_int_ptr(n_outlen, outlen, 1); - des_const_unsigned_char_ptr(n_in, (const unsigned char *)in, 2); - des_int_ptr(n_inlen, inlen, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in UTF8Toisolat1", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_out); - printf(" %d", n_outlen); - printf(" %d", n_in); - printf(" %d", n_inlen); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_isolat1ToUTF8(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - unsigned char * out; /* a pointer to an array of bytes to store the result */ - int n_out; - int * outlen; /* the length of @out */ - int n_outlen; - unsigned char * in; /* a pointer to an array of ISO Latin 1 chars */ - int n_in; - int * inlen; /* the length of @in */ - int n_inlen; - - for (n_out = 0;n_out < gen_nb_unsigned_char_ptr;n_out++) { - for (n_outlen = 0;n_outlen < gen_nb_int_ptr;n_outlen++) { - for (n_in = 0;n_in < gen_nb_const_unsigned_char_ptr;n_in++) { - for (n_inlen = 0;n_inlen < gen_nb_int_ptr;n_inlen++) { - mem_base = xmlMemBlocks(); - out = gen_unsigned_char_ptr(n_out, 0); - outlen = gen_int_ptr(n_outlen, 1); - in = gen_const_unsigned_char_ptr(n_in, 2); - inlen = gen_int_ptr(n_inlen, 3); - - ret_val = isolat1ToUTF8(out, outlen, (const unsigned char *)in, inlen); - desret_int(ret_val); - call_tests++; - des_unsigned_char_ptr(n_out, out, 0); - des_int_ptr(n_outlen, outlen, 1); - des_const_unsigned_char_ptr(n_in, (const unsigned char *)in, 2); - des_int_ptr(n_inlen, inlen, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in isolat1ToUTF8", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_out); - printf(" %d", n_outlen); - printf(" %d", n_in); - printf(" %d", n_inlen); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlAddEncodingAlias(void) { - int test_ret = 0; - - int ret_val; - char * name; /* the encoding name as parsed, in UTF-8 format (ASCII actually) */ - int n_name; - char * alias; /* the alias name as parsed, in UTF-8 format (ASCII actually) */ - int n_alias; - - for (n_name = 0;n_name < gen_nb_const_char_ptr;n_name++) { - for (n_alias = 0;n_alias < gen_nb_const_char_ptr;n_alias++) { - name = gen_const_char_ptr(n_name, 0); - alias = gen_const_char_ptr(n_alias, 1); - - ret_val = xmlAddEncodingAlias((const char *)name, (const char *)alias); - desret_int(ret_val); - call_tests++; - des_const_char_ptr(n_name, (const char *)name, 0); - des_const_char_ptr(n_alias, (const char *)alias, 1); - xmlResetLastError(); - } - } - function_tests++; - - return(test_ret); -} - - -#define gen_nb_xmlCharEncodingHandler_ptr 1 -static xmlCharEncodingHandler * gen_xmlCharEncodingHandler_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlCharEncodingHandler_ptr(int no ATTRIBUTE_UNUSED, xmlCharEncodingHandler * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlCharEncCloseFunc(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlCharEncodingHandler * handler; /* char enconding transformation data structure */ - int n_handler; - - for (n_handler = 0;n_handler < gen_nb_xmlCharEncodingHandler_ptr;n_handler++) { - mem_base = xmlMemBlocks(); - handler = gen_xmlCharEncodingHandler_ptr(n_handler, 0); - - ret_val = xmlCharEncCloseFunc(handler); - desret_int(ret_val); - call_tests++; - des_xmlCharEncodingHandler_ptr(n_handler, handler, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCharEncCloseFunc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_handler); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCharEncFirstLine(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlCharEncodingHandler * handler; /* char enconding transformation data structure */ - int n_handler; - xmlBufferPtr out; /* an xmlBuffer for the output. */ - int n_out; - xmlBufferPtr in; /* an xmlBuffer for the input */ - int n_in; - - for (n_handler = 0;n_handler < gen_nb_xmlCharEncodingHandler_ptr;n_handler++) { - for (n_out = 0;n_out < gen_nb_xmlBufferPtr;n_out++) { - for (n_in = 0;n_in < gen_nb_xmlBufferPtr;n_in++) { - mem_base = xmlMemBlocks(); - handler = gen_xmlCharEncodingHandler_ptr(n_handler, 0); - out = gen_xmlBufferPtr(n_out, 1); - in = gen_xmlBufferPtr(n_in, 2); - - ret_val = xmlCharEncFirstLine(handler, out, in); - desret_int(ret_val); - call_tests++; - des_xmlCharEncodingHandler_ptr(n_handler, handler, 0); - des_xmlBufferPtr(n_out, out, 1); - des_xmlBufferPtr(n_in, in, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCharEncFirstLine", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_handler); - printf(" %d", n_out); - printf(" %d", n_in); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCharEncInFunc(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlCharEncodingHandler * handler; /* char encoding transformation data structure */ - int n_handler; - xmlBufferPtr out; /* an xmlBuffer for the output. */ - int n_out; - xmlBufferPtr in; /* an xmlBuffer for the input */ - int n_in; - - for (n_handler = 0;n_handler < gen_nb_xmlCharEncodingHandler_ptr;n_handler++) { - for (n_out = 0;n_out < gen_nb_xmlBufferPtr;n_out++) { - for (n_in = 0;n_in < gen_nb_xmlBufferPtr;n_in++) { - mem_base = xmlMemBlocks(); - handler = gen_xmlCharEncodingHandler_ptr(n_handler, 0); - out = gen_xmlBufferPtr(n_out, 1); - in = gen_xmlBufferPtr(n_in, 2); - - ret_val = xmlCharEncInFunc(handler, out, in); - desret_int(ret_val); - call_tests++; - des_xmlCharEncodingHandler_ptr(n_handler, handler, 0); - des_xmlBufferPtr(n_out, out, 1); - des_xmlBufferPtr(n_in, in, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCharEncInFunc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_handler); - printf(" %d", n_out); - printf(" %d", n_in); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCharEncOutFunc(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlCharEncodingHandler * handler; /* char enconding transformation data structure */ - int n_handler; - xmlBufferPtr out; /* an xmlBuffer for the output. */ - int n_out; - xmlBufferPtr in; /* an xmlBuffer for the input */ - int n_in; - - for (n_handler = 0;n_handler < gen_nb_xmlCharEncodingHandler_ptr;n_handler++) { - for (n_out = 0;n_out < gen_nb_xmlBufferPtr;n_out++) { - for (n_in = 0;n_in < gen_nb_xmlBufferPtr;n_in++) { - mem_base = xmlMemBlocks(); - handler = gen_xmlCharEncodingHandler_ptr(n_handler, 0); - out = gen_xmlBufferPtr(n_out, 1); - in = gen_xmlBufferPtr(n_in, 2); - - ret_val = xmlCharEncOutFunc(handler, out, in); - desret_int(ret_val); - call_tests++; - des_xmlCharEncodingHandler_ptr(n_handler, handler, 0); - des_xmlBufferPtr(n_out, out, 1); - des_xmlBufferPtr(n_in, in, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCharEncOutFunc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_handler); - printf(" %d", n_out); - printf(" %d", n_in); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCleanupCharEncodingHandlers(void) { - int test_ret = 0; - - - - xmlCleanupCharEncodingHandlers(); - call_tests++; - xmlResetLastError(); - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCleanupEncodingAliases(void) { - int test_ret = 0; - - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlCleanupEncodingAliases(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCleanupEncodingAliases", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDelEncodingAlias(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - char * alias; /* the alias name as parsed, in UTF-8 format (ASCII actually) */ - int n_alias; - - for (n_alias = 0;n_alias < gen_nb_const_char_ptr;n_alias++) { - mem_base = xmlMemBlocks(); - alias = gen_const_char_ptr(n_alias, 0); - - ret_val = xmlDelEncodingAlias((const char *)alias); - desret_int(ret_val); - call_tests++; - des_const_char_ptr(n_alias, (const char *)alias, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDelEncodingAlias", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_alias); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDetectCharEncoding(void) { - int test_ret = 0; - - int mem_base; - xmlCharEncoding ret_val; - unsigned char * in; /* a pointer to the first bytes of the XML entity, must be at least 2 bytes long (at least 4 if encoding is UTF4 variant). */ - int n_in; - int len; /* pointer to the length of the buffer */ - int n_len; - - for (n_in = 0;n_in < gen_nb_const_unsigned_char_ptr;n_in++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - in = gen_const_unsigned_char_ptr(n_in, 0); - len = gen_int(n_len, 1); - - ret_val = xmlDetectCharEncoding((const unsigned char *)in, len); - desret_xmlCharEncoding(ret_val); - call_tests++; - des_const_unsigned_char_ptr(n_in, (const unsigned char *)in, 0); - des_int(n_len, len, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDetectCharEncoding", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_in); - printf(" %d", n_len); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlFindCharEncodingHandler(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlGetCharEncodingHandler(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlGetCharEncodingName(void) { - int test_ret = 0; - - int mem_base; - const char * ret_val; - xmlCharEncoding enc; /* the encoding */ - int n_enc; - - for (n_enc = 0;n_enc < gen_nb_xmlCharEncoding;n_enc++) { - mem_base = xmlMemBlocks(); - enc = gen_xmlCharEncoding(n_enc, 0); - - ret_val = xmlGetCharEncodingName(enc); - desret_const_char_ptr(ret_val); - call_tests++; - des_xmlCharEncoding(n_enc, enc, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetCharEncodingName", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_enc); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetEncodingAlias(void) { - int test_ret = 0; - - int mem_base; - const char * ret_val; - char * alias; /* the alias name as parsed, in UTF-8 format (ASCII actually) */ - int n_alias; - - for (n_alias = 0;n_alias < gen_nb_const_char_ptr;n_alias++) { - mem_base = xmlMemBlocks(); - alias = gen_const_char_ptr(n_alias, 0); - - ret_val = xmlGetEncodingAlias((const char *)alias); - desret_const_char_ptr(ret_val); - call_tests++; - des_const_char_ptr(n_alias, (const char *)alias, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetEncodingAlias", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_alias); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlInitCharEncodingHandlers(void) { - int test_ret = 0; - - - - xmlInitCharEncodingHandlers(); - call_tests++; - xmlResetLastError(); - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewCharEncodingHandler(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlParseCharEncoding(void) { - int test_ret = 0; - - int mem_base; - xmlCharEncoding ret_val; - char * name; /* the encoding name as parsed, in UTF-8 format (ASCII actually) */ - int n_name; - - for (n_name = 0;n_name < gen_nb_const_char_ptr;n_name++) { - mem_base = xmlMemBlocks(); - name = gen_const_char_ptr(n_name, 0); - - ret_val = xmlParseCharEncoding((const char *)name); - desret_xmlCharEncoding(ret_val); - call_tests++; - des_const_char_ptr(n_name, (const char *)name, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParseCharEncoding", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_name); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -#define gen_nb_xmlCharEncodingHandlerPtr 1 -static xmlCharEncodingHandlerPtr gen_xmlCharEncodingHandlerPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlCharEncodingHandlerPtr(int no ATTRIBUTE_UNUSED, xmlCharEncodingHandlerPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlRegisterCharEncodingHandler(void) { - int test_ret = 0; - - int mem_base; - xmlCharEncodingHandlerPtr handler; /* the xmlCharEncodingHandlerPtr handler block */ - int n_handler; - - for (n_handler = 0;n_handler < gen_nb_xmlCharEncodingHandlerPtr;n_handler++) { - mem_base = xmlMemBlocks(); - handler = gen_xmlCharEncodingHandlerPtr(n_handler, 0); - - xmlRegisterCharEncodingHandler(handler); - call_tests++; - des_xmlCharEncodingHandlerPtr(n_handler, handler, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRegisterCharEncodingHandler", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_handler); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - -static int -test_encoding(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing encoding : 16 of 19 functions ...\n"); - test_ret += test_UTF8Toisolat1(); - test_ret += test_isolat1ToUTF8(); - test_ret += test_xmlAddEncodingAlias(); - test_ret += test_xmlCharEncCloseFunc(); - test_ret += test_xmlCharEncFirstLine(); - test_ret += test_xmlCharEncInFunc(); - test_ret += test_xmlCharEncOutFunc(); - test_ret += test_xmlCleanupCharEncodingHandlers(); - test_ret += test_xmlCleanupEncodingAliases(); - test_ret += test_xmlDelEncodingAlias(); - test_ret += test_xmlDetectCharEncoding(); - test_ret += test_xmlFindCharEncodingHandler(); - test_ret += test_xmlGetCharEncodingHandler(); - test_ret += test_xmlGetCharEncodingName(); - test_ret += test_xmlGetEncodingAlias(); - test_ret += test_xmlInitCharEncodingHandlers(); - test_ret += test_xmlNewCharEncodingHandler(); - test_ret += test_xmlParseCharEncoding(); - test_ret += test_xmlRegisterCharEncodingHandler(); - - if (test_ret != 0) - printf("Module encoding: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlAddDocEntity(void) { - int test_ret = 0; - - int mem_base; - xmlEntityPtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlChar * name; /* the entity name */ - int n_name; - int type; /* the entity type XML_xxx_yyy_ENTITY */ - int n_type; - xmlChar * ExternalID; /* the entity external ID if available */ - int n_ExternalID; - xmlChar * SystemID; /* the entity system ID if available */ - int n_SystemID; - xmlChar * content; /* the entity content */ - int n_content; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_type = 0;n_type < gen_nb_int;n_type++) { - for (n_ExternalID = 0;n_ExternalID < gen_nb_const_xmlChar_ptr;n_ExternalID++) { - for (n_SystemID = 0;n_SystemID < gen_nb_const_xmlChar_ptr;n_SystemID++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - type = gen_int(n_type, 2); - ExternalID = gen_const_xmlChar_ptr(n_ExternalID, 3); - SystemID = gen_const_xmlChar_ptr(n_SystemID, 4); - content = gen_const_xmlChar_ptr(n_content, 5); - - ret_val = xmlAddDocEntity(doc, (const xmlChar *)name, type, (const xmlChar *)ExternalID, (const xmlChar *)SystemID, (const xmlChar *)content); - desret_xmlEntityPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_int(n_type, type, 2); - des_const_xmlChar_ptr(n_ExternalID, (const xmlChar *)ExternalID, 3); - des_const_xmlChar_ptr(n_SystemID, (const xmlChar *)SystemID, 4); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlAddDocEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_name); - printf(" %d", n_type); - printf(" %d", n_ExternalID); - printf(" %d", n_SystemID); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlAddDtdEntity(void) { - int test_ret = 0; - - int mem_base; - xmlEntityPtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlChar * name; /* the entity name */ - int n_name; - int type; /* the entity type XML_xxx_yyy_ENTITY */ - int n_type; - xmlChar * ExternalID; /* the entity external ID if available */ - int n_ExternalID; - xmlChar * SystemID; /* the entity system ID if available */ - int n_SystemID; - xmlChar * content; /* the entity content */ - int n_content; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_type = 0;n_type < gen_nb_int;n_type++) { - for (n_ExternalID = 0;n_ExternalID < gen_nb_const_xmlChar_ptr;n_ExternalID++) { - for (n_SystemID = 0;n_SystemID < gen_nb_const_xmlChar_ptr;n_SystemID++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - type = gen_int(n_type, 2); - ExternalID = gen_const_xmlChar_ptr(n_ExternalID, 3); - SystemID = gen_const_xmlChar_ptr(n_SystemID, 4); - content = gen_const_xmlChar_ptr(n_content, 5); - - ret_val = xmlAddDtdEntity(doc, (const xmlChar *)name, type, (const xmlChar *)ExternalID, (const xmlChar *)SystemID, (const xmlChar *)content); - desret_xmlEntityPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_int(n_type, type, 2); - des_const_xmlChar_ptr(n_ExternalID, (const xmlChar *)ExternalID, 3); - des_const_xmlChar_ptr(n_SystemID, (const xmlChar *)SystemID, 4); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlAddDtdEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_name); - printf(" %d", n_type); - printf(" %d", n_ExternalID); - printf(" %d", n_SystemID); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCleanupPredefinedEntities(void) { - int test_ret = 0; - -#if defined(LIBXML_LEGACY_ENABLED) -#ifdef LIBXML_LEGACY_ENABLED - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlCleanupPredefinedEntities(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCleanupPredefinedEntities", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -#define gen_nb_xmlEntitiesTablePtr 1 -static xmlEntitiesTablePtr gen_xmlEntitiesTablePtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlEntitiesTablePtr(int no ATTRIBUTE_UNUSED, xmlEntitiesTablePtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlCopyEntitiesTable(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlCreateEntitiesTable(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlDumpEntitiesTable(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlBufferPtr buf; /* An XML buffer. */ - int n_buf; - xmlEntitiesTablePtr table; /* An entity table */ - int n_table; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_table = 0;n_table < gen_nb_xmlEntitiesTablePtr;n_table++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - table = gen_xmlEntitiesTablePtr(n_table, 1); - - xmlDumpEntitiesTable(buf, table); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_xmlEntitiesTablePtr(n_table, table, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDumpEntitiesTable", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_table); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -#define gen_nb_xmlEntityPtr 1 -static xmlEntityPtr gen_xmlEntityPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlEntityPtr(int no ATTRIBUTE_UNUSED, xmlEntityPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlDumpEntityDecl(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlBufferPtr buf; /* An XML buffer. */ - int n_buf; - xmlEntityPtr ent; /* An entity table */ - int n_ent; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_ent = 0;n_ent < gen_nb_xmlEntityPtr;n_ent++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - ent = gen_xmlEntityPtr(n_ent, 1); - - xmlDumpEntityDecl(buf, ent); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_xmlEntityPtr(n_ent, ent, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDumpEntityDecl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_ent); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlEncodeEntitiesReentrant(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlDocPtr doc; /* the document containing the string */ - int n_doc; - xmlChar * input; /* A string to convert to XML. */ - int n_input; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_input = 0;n_input < gen_nb_const_xmlChar_ptr;n_input++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - input = gen_const_xmlChar_ptr(n_input, 1); - - ret_val = xmlEncodeEntitiesReentrant(doc, (const xmlChar *)input); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_input, (const xmlChar *)input, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlEncodeEntitiesReentrant", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_input); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlEncodeSpecialChars(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlDocPtr doc; /* the document containing the string */ - int n_doc; - xmlChar * input; /* A string to convert to XML. */ - int n_input; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_input = 0;n_input < gen_nb_const_xmlChar_ptr;n_input++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - input = gen_const_xmlChar_ptr(n_input, 1); - - ret_val = xmlEncodeSpecialChars(doc, (const xmlChar *)input); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_input, (const xmlChar *)input, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlEncodeSpecialChars", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_input); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetDocEntity(void) { - int test_ret = 0; - - int mem_base; - xmlEntityPtr ret_val; - xmlDocPtr doc; /* the document referencing the entity */ - int n_doc; - xmlChar * name; /* the entity name */ - int n_name; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlGetDocEntity(doc, (const xmlChar *)name); - desret_xmlEntityPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetDocEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetDtdEntity(void) { - int test_ret = 0; - - int mem_base; - xmlEntityPtr ret_val; - xmlDocPtr doc; /* the document referencing the entity */ - int n_doc; - xmlChar * name; /* the entity name */ - int n_name; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlGetDtdEntity(doc, (const xmlChar *)name); - desret_xmlEntityPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetDtdEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetParameterEntity(void) { - int test_ret = 0; - - int mem_base; - xmlEntityPtr ret_val; - xmlDocPtr doc; /* the document referencing the entity */ - int n_doc; - xmlChar * name; /* the entity name */ - int n_name; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlGetParameterEntity(doc, (const xmlChar *)name); - desret_xmlEntityPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetParameterEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetPredefinedEntity(void) { - int test_ret = 0; - - int mem_base; - xmlEntityPtr ret_val; - xmlChar * name; /* the entity name */ - int n_name; - - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - name = gen_const_xmlChar_ptr(n_name, 0); - - ret_val = xmlGetPredefinedEntity((const xmlChar *)name); - desret_xmlEntityPtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetPredefinedEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_name); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlInitializePredefinedEntities(void) { - int test_ret = 0; - -#if defined(LIBXML_LEGACY_ENABLED) -#ifdef LIBXML_LEGACY_ENABLED - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlInitializePredefinedEntities(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlInitializePredefinedEntities", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; -#endif -#endif - - return(test_ret); -} - -static int -test_entities(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing entities : 12 of 16 functions ...\n"); - test_ret += test_xmlAddDocEntity(); - test_ret += test_xmlAddDtdEntity(); - test_ret += test_xmlCleanupPredefinedEntities(); - test_ret += test_xmlCopyEntitiesTable(); - test_ret += test_xmlCreateEntitiesTable(); - test_ret += test_xmlDumpEntitiesTable(); - test_ret += test_xmlDumpEntityDecl(); - test_ret += test_xmlEncodeEntitiesReentrant(); - test_ret += test_xmlEncodeSpecialChars(); - test_ret += test_xmlGetDocEntity(); - test_ret += test_xmlGetDtdEntity(); - test_ret += test_xmlGetParameterEntity(); - test_ret += test_xmlGetPredefinedEntity(); - test_ret += test_xmlInitializePredefinedEntities(); - - if (test_ret != 0) - printf("Module entities: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlHashAddEntry(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlHashTablePtr table; /* the hash table */ - int n_table; - xmlChar * name; /* the name of the userdata */ - int n_name; - void * userdata; /* a pointer to the userdata */ - int n_userdata; - - for (n_table = 0;n_table < gen_nb_xmlHashTablePtr;n_table++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_userdata = 0;n_userdata < gen_nb_userdata;n_userdata++) { - mem_base = xmlMemBlocks(); - table = gen_xmlHashTablePtr(n_table, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - userdata = gen_userdata(n_userdata, 2); - - ret_val = xmlHashAddEntry(table, (const xmlChar *)name, userdata); - desret_int(ret_val); - call_tests++; - des_xmlHashTablePtr(n_table, table, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_userdata(n_userdata, userdata, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHashAddEntry", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_table); - printf(" %d", n_name); - printf(" %d", n_userdata); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHashAddEntry2(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlHashTablePtr table; /* the hash table */ - int n_table; - xmlChar * name; /* the name of the userdata */ - int n_name; - xmlChar * name2; /* a second name of the userdata */ - int n_name2; - void * userdata; /* a pointer to the userdata */ - int n_userdata; - - for (n_table = 0;n_table < gen_nb_xmlHashTablePtr;n_table++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_name2 = 0;n_name2 < gen_nb_const_xmlChar_ptr;n_name2++) { - for (n_userdata = 0;n_userdata < gen_nb_userdata;n_userdata++) { - mem_base = xmlMemBlocks(); - table = gen_xmlHashTablePtr(n_table, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - name2 = gen_const_xmlChar_ptr(n_name2, 2); - userdata = gen_userdata(n_userdata, 3); - - ret_val = xmlHashAddEntry2(table, (const xmlChar *)name, (const xmlChar *)name2, userdata); - desret_int(ret_val); - call_tests++; - des_xmlHashTablePtr(n_table, table, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_name2, (const xmlChar *)name2, 2); - des_userdata(n_userdata, userdata, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHashAddEntry2", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_table); - printf(" %d", n_name); - printf(" %d", n_name2); - printf(" %d", n_userdata); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHashAddEntry3(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlHashTablePtr table; /* the hash table */ - int n_table; - xmlChar * name; /* the name of the userdata */ - int n_name; - xmlChar * name2; /* a second name of the userdata */ - int n_name2; - xmlChar * name3; /* a third name of the userdata */ - int n_name3; - void * userdata; /* a pointer to the userdata */ - int n_userdata; - - for (n_table = 0;n_table < gen_nb_xmlHashTablePtr;n_table++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_name2 = 0;n_name2 < gen_nb_const_xmlChar_ptr;n_name2++) { - for (n_name3 = 0;n_name3 < gen_nb_const_xmlChar_ptr;n_name3++) { - for (n_userdata = 0;n_userdata < gen_nb_userdata;n_userdata++) { - mem_base = xmlMemBlocks(); - table = gen_xmlHashTablePtr(n_table, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - name2 = gen_const_xmlChar_ptr(n_name2, 2); - name3 = gen_const_xmlChar_ptr(n_name3, 3); - userdata = gen_userdata(n_userdata, 4); - - ret_val = xmlHashAddEntry3(table, (const xmlChar *)name, (const xmlChar *)name2, (const xmlChar *)name3, userdata); - desret_int(ret_val); - call_tests++; - des_xmlHashTablePtr(n_table, table, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_name2, (const xmlChar *)name2, 2); - des_const_xmlChar_ptr(n_name3, (const xmlChar *)name3, 3); - des_userdata(n_userdata, userdata, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHashAddEntry3", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_table); - printf(" %d", n_name); - printf(" %d", n_name2); - printf(" %d", n_name3); - printf(" %d", n_userdata); - printf("\n"); - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHashCopy(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlHashCreate(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlHashCreateDict(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlHashLookup(void) { - int test_ret = 0; - - int mem_base; - void * ret_val; - xmlHashTablePtr table; /* the hash table */ - int n_table; - xmlChar * name; /* the name of the userdata */ - int n_name; - - for (n_table = 0;n_table < gen_nb_xmlHashTablePtr;n_table++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - table = gen_xmlHashTablePtr(n_table, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlHashLookup(table, (const xmlChar *)name); - desret_void_ptr(ret_val); - call_tests++; - des_xmlHashTablePtr(n_table, table, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHashLookup", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_table); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHashLookup2(void) { - int test_ret = 0; - - int mem_base; - void * ret_val; - xmlHashTablePtr table; /* the hash table */ - int n_table; - xmlChar * name; /* the name of the userdata */ - int n_name; - xmlChar * name2; /* a second name of the userdata */ - int n_name2; - - for (n_table = 0;n_table < gen_nb_xmlHashTablePtr;n_table++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_name2 = 0;n_name2 < gen_nb_const_xmlChar_ptr;n_name2++) { - mem_base = xmlMemBlocks(); - table = gen_xmlHashTablePtr(n_table, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - name2 = gen_const_xmlChar_ptr(n_name2, 2); - - ret_val = xmlHashLookup2(table, (const xmlChar *)name, (const xmlChar *)name2); - desret_void_ptr(ret_val); - call_tests++; - des_xmlHashTablePtr(n_table, table, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_name2, (const xmlChar *)name2, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHashLookup2", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_table); - printf(" %d", n_name); - printf(" %d", n_name2); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHashLookup3(void) { - int test_ret = 0; - - int mem_base; - void * ret_val; - xmlHashTablePtr table; /* the hash table */ - int n_table; - xmlChar * name; /* the name of the userdata */ - int n_name; - xmlChar * name2; /* a second name of the userdata */ - int n_name2; - xmlChar * name3; /* a third name of the userdata */ - int n_name3; - - for (n_table = 0;n_table < gen_nb_xmlHashTablePtr;n_table++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_name2 = 0;n_name2 < gen_nb_const_xmlChar_ptr;n_name2++) { - for (n_name3 = 0;n_name3 < gen_nb_const_xmlChar_ptr;n_name3++) { - mem_base = xmlMemBlocks(); - table = gen_xmlHashTablePtr(n_table, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - name2 = gen_const_xmlChar_ptr(n_name2, 2); - name3 = gen_const_xmlChar_ptr(n_name3, 3); - - ret_val = xmlHashLookup3(table, (const xmlChar *)name, (const xmlChar *)name2, (const xmlChar *)name3); - desret_void_ptr(ret_val); - call_tests++; - des_xmlHashTablePtr(n_table, table, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_name2, (const xmlChar *)name2, 2); - des_const_xmlChar_ptr(n_name3, (const xmlChar *)name3, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHashLookup3", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_table); - printf(" %d", n_name); - printf(" %d", n_name2); - printf(" %d", n_name3); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHashQLookup(void) { - int test_ret = 0; - - int mem_base; - void * ret_val; - xmlHashTablePtr table; /* the hash table */ - int n_table; - xmlChar * prefix; /* the prefix of the userdata */ - int n_prefix; - xmlChar * name; /* the name of the userdata */ - int n_name; - - for (n_table = 0;n_table < gen_nb_xmlHashTablePtr;n_table++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - table = gen_xmlHashTablePtr(n_table, 0); - prefix = gen_const_xmlChar_ptr(n_prefix, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - - ret_val = xmlHashQLookup(table, (const xmlChar *)prefix, (const xmlChar *)name); - desret_void_ptr(ret_val); - call_tests++; - des_xmlHashTablePtr(n_table, table, 0); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHashQLookup", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_table); - printf(" %d", n_prefix); - printf(" %d", n_name); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHashQLookup2(void) { - int test_ret = 0; - - int mem_base; - void * ret_val; - xmlHashTablePtr table; /* the hash table */ - int n_table; - xmlChar * prefix; /* the prefix of the userdata */ - int n_prefix; - xmlChar * name; /* the name of the userdata */ - int n_name; - xmlChar * prefix2; /* the second prefix of the userdata */ - int n_prefix2; - xmlChar * name2; /* a second name of the userdata */ - int n_name2; - - for (n_table = 0;n_table < gen_nb_xmlHashTablePtr;n_table++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_prefix2 = 0;n_prefix2 < gen_nb_const_xmlChar_ptr;n_prefix2++) { - for (n_name2 = 0;n_name2 < gen_nb_const_xmlChar_ptr;n_name2++) { - mem_base = xmlMemBlocks(); - table = gen_xmlHashTablePtr(n_table, 0); - prefix = gen_const_xmlChar_ptr(n_prefix, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - prefix2 = gen_const_xmlChar_ptr(n_prefix2, 3); - name2 = gen_const_xmlChar_ptr(n_name2, 4); - - ret_val = xmlHashQLookup2(table, (const xmlChar *)prefix, (const xmlChar *)name, (const xmlChar *)prefix2, (const xmlChar *)name2); - desret_void_ptr(ret_val); - call_tests++; - des_xmlHashTablePtr(n_table, table, 0); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_prefix2, (const xmlChar *)prefix2, 3); - des_const_xmlChar_ptr(n_name2, (const xmlChar *)name2, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHashQLookup2", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_table); - printf(" %d", n_prefix); - printf(" %d", n_name); - printf(" %d", n_prefix2); - printf(" %d", n_name2); - printf("\n"); - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHashQLookup3(void) { - int test_ret = 0; - - int mem_base; - void * ret_val; - xmlHashTablePtr table; /* the hash table */ - int n_table; - xmlChar * prefix; /* the prefix of the userdata */ - int n_prefix; - xmlChar * name; /* the name of the userdata */ - int n_name; - xmlChar * prefix2; /* the second prefix of the userdata */ - int n_prefix2; - xmlChar * name2; /* a second name of the userdata */ - int n_name2; - xmlChar * prefix3; /* the third prefix of the userdata */ - int n_prefix3; - xmlChar * name3; /* a third name of the userdata */ - int n_name3; - - for (n_table = 0;n_table < gen_nb_xmlHashTablePtr;n_table++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_prefix2 = 0;n_prefix2 < gen_nb_const_xmlChar_ptr;n_prefix2++) { - for (n_name2 = 0;n_name2 < gen_nb_const_xmlChar_ptr;n_name2++) { - for (n_prefix3 = 0;n_prefix3 < gen_nb_const_xmlChar_ptr;n_prefix3++) { - for (n_name3 = 0;n_name3 < gen_nb_const_xmlChar_ptr;n_name3++) { - mem_base = xmlMemBlocks(); - table = gen_xmlHashTablePtr(n_table, 0); - prefix = gen_const_xmlChar_ptr(n_prefix, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - prefix2 = gen_const_xmlChar_ptr(n_prefix2, 3); - name2 = gen_const_xmlChar_ptr(n_name2, 4); - prefix3 = gen_const_xmlChar_ptr(n_prefix3, 5); - name3 = gen_const_xmlChar_ptr(n_name3, 6); - - ret_val = xmlHashQLookup3(table, (const xmlChar *)prefix, (const xmlChar *)name, (const xmlChar *)prefix2, (const xmlChar *)name2, (const xmlChar *)prefix3, (const xmlChar *)name3); - desret_void_ptr(ret_val); - call_tests++; - des_xmlHashTablePtr(n_table, table, 0); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_prefix2, (const xmlChar *)prefix2, 3); - des_const_xmlChar_ptr(n_name2, (const xmlChar *)name2, 4); - des_const_xmlChar_ptr(n_prefix3, (const xmlChar *)prefix3, 5); - des_const_xmlChar_ptr(n_name3, (const xmlChar *)name3, 6); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHashQLookup3", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_table); - printf(" %d", n_prefix); - printf(" %d", n_name); - printf(" %d", n_prefix2); - printf(" %d", n_name2); - printf(" %d", n_prefix3); - printf(" %d", n_name3); - printf("\n"); - } - } - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHashRemoveEntry(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlHashTablePtr table; /* the hash table */ - int n_table; - xmlChar * name; /* the name of the userdata */ - int n_name; - xmlHashDeallocator f; /* the deallocator function for removed item (if any) */ - int n_f; - - for (n_table = 0;n_table < gen_nb_xmlHashTablePtr;n_table++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_f = 0;n_f < gen_nb_xmlHashDeallocator;n_f++) { - mem_base = xmlMemBlocks(); - table = gen_xmlHashTablePtr(n_table, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - f = gen_xmlHashDeallocator(n_f, 2); - - ret_val = xmlHashRemoveEntry(table, (const xmlChar *)name, f); - desret_int(ret_val); - call_tests++; - des_xmlHashTablePtr(n_table, table, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_xmlHashDeallocator(n_f, f, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHashRemoveEntry", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_table); - printf(" %d", n_name); - printf(" %d", n_f); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHashRemoveEntry2(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlHashTablePtr table; /* the hash table */ - int n_table; - xmlChar * name; /* the name of the userdata */ - int n_name; - xmlChar * name2; /* a second name of the userdata */ - int n_name2; - xmlHashDeallocator f; /* the deallocator function for removed item (if any) */ - int n_f; - - for (n_table = 0;n_table < gen_nb_xmlHashTablePtr;n_table++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_name2 = 0;n_name2 < gen_nb_const_xmlChar_ptr;n_name2++) { - for (n_f = 0;n_f < gen_nb_xmlHashDeallocator;n_f++) { - mem_base = xmlMemBlocks(); - table = gen_xmlHashTablePtr(n_table, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - name2 = gen_const_xmlChar_ptr(n_name2, 2); - f = gen_xmlHashDeallocator(n_f, 3); - - ret_val = xmlHashRemoveEntry2(table, (const xmlChar *)name, (const xmlChar *)name2, f); - desret_int(ret_val); - call_tests++; - des_xmlHashTablePtr(n_table, table, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_name2, (const xmlChar *)name2, 2); - des_xmlHashDeallocator(n_f, f, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHashRemoveEntry2", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_table); - printf(" %d", n_name); - printf(" %d", n_name2); - printf(" %d", n_f); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHashRemoveEntry3(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlHashTablePtr table; /* the hash table */ - int n_table; - xmlChar * name; /* the name of the userdata */ - int n_name; - xmlChar * name2; /* a second name of the userdata */ - int n_name2; - xmlChar * name3; /* a third name of the userdata */ - int n_name3; - xmlHashDeallocator f; /* the deallocator function for removed item (if any) */ - int n_f; - - for (n_table = 0;n_table < gen_nb_xmlHashTablePtr;n_table++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_name2 = 0;n_name2 < gen_nb_const_xmlChar_ptr;n_name2++) { - for (n_name3 = 0;n_name3 < gen_nb_const_xmlChar_ptr;n_name3++) { - for (n_f = 0;n_f < gen_nb_xmlHashDeallocator;n_f++) { - mem_base = xmlMemBlocks(); - table = gen_xmlHashTablePtr(n_table, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - name2 = gen_const_xmlChar_ptr(n_name2, 2); - name3 = gen_const_xmlChar_ptr(n_name3, 3); - f = gen_xmlHashDeallocator(n_f, 4); - - ret_val = xmlHashRemoveEntry3(table, (const xmlChar *)name, (const xmlChar *)name2, (const xmlChar *)name3, f); - desret_int(ret_val); - call_tests++; - des_xmlHashTablePtr(n_table, table, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_name2, (const xmlChar *)name2, 2); - des_const_xmlChar_ptr(n_name3, (const xmlChar *)name3, 3); - des_xmlHashDeallocator(n_f, f, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHashRemoveEntry3", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_table); - printf(" %d", n_name); - printf(" %d", n_name2); - printf(" %d", n_name3); - printf(" %d", n_f); - printf("\n"); - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHashScan(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlHashScan3(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlHashScanFull(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlHashScanFull3(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlHashSize(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlHashTablePtr table; /* the hash table */ - int n_table; - - for (n_table = 0;n_table < gen_nb_xmlHashTablePtr;n_table++) { - mem_base = xmlMemBlocks(); - table = gen_xmlHashTablePtr(n_table, 0); - - ret_val = xmlHashSize(table); - desret_int(ret_val); - call_tests++; - des_xmlHashTablePtr(n_table, table, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHashSize", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_table); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHashUpdateEntry(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlHashTablePtr table; /* the hash table */ - int n_table; - xmlChar * name; /* the name of the userdata */ - int n_name; - void * userdata; /* a pointer to the userdata */ - int n_userdata; - xmlHashDeallocator f; /* the deallocator function for replaced item (if any) */ - int n_f; - - for (n_table = 0;n_table < gen_nb_xmlHashTablePtr;n_table++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_userdata = 0;n_userdata < gen_nb_userdata;n_userdata++) { - for (n_f = 0;n_f < gen_nb_xmlHashDeallocator;n_f++) { - mem_base = xmlMemBlocks(); - table = gen_xmlHashTablePtr(n_table, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - userdata = gen_userdata(n_userdata, 2); - f = gen_xmlHashDeallocator(n_f, 3); - - ret_val = xmlHashUpdateEntry(table, (const xmlChar *)name, userdata, f); - desret_int(ret_val); - call_tests++; - des_xmlHashTablePtr(n_table, table, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_userdata(n_userdata, userdata, 2); - des_xmlHashDeallocator(n_f, f, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHashUpdateEntry", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_table); - printf(" %d", n_name); - printf(" %d", n_userdata); - printf(" %d", n_f); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHashUpdateEntry2(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlHashTablePtr table; /* the hash table */ - int n_table; - xmlChar * name; /* the name of the userdata */ - int n_name; - xmlChar * name2; /* a second name of the userdata */ - int n_name2; - void * userdata; /* a pointer to the userdata */ - int n_userdata; - xmlHashDeallocator f; /* the deallocator function for replaced item (if any) */ - int n_f; - - for (n_table = 0;n_table < gen_nb_xmlHashTablePtr;n_table++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_name2 = 0;n_name2 < gen_nb_const_xmlChar_ptr;n_name2++) { - for (n_userdata = 0;n_userdata < gen_nb_userdata;n_userdata++) { - for (n_f = 0;n_f < gen_nb_xmlHashDeallocator;n_f++) { - mem_base = xmlMemBlocks(); - table = gen_xmlHashTablePtr(n_table, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - name2 = gen_const_xmlChar_ptr(n_name2, 2); - userdata = gen_userdata(n_userdata, 3); - f = gen_xmlHashDeallocator(n_f, 4); - - ret_val = xmlHashUpdateEntry2(table, (const xmlChar *)name, (const xmlChar *)name2, userdata, f); - desret_int(ret_val); - call_tests++; - des_xmlHashTablePtr(n_table, table, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_name2, (const xmlChar *)name2, 2); - des_userdata(n_userdata, userdata, 3); - des_xmlHashDeallocator(n_f, f, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHashUpdateEntry2", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_table); - printf(" %d", n_name); - printf(" %d", n_name2); - printf(" %d", n_userdata); - printf(" %d", n_f); - printf("\n"); - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHashUpdateEntry3(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlHashTablePtr table; /* the hash table */ - int n_table; - xmlChar * name; /* the name of the userdata */ - int n_name; - xmlChar * name2; /* a second name of the userdata */ - int n_name2; - xmlChar * name3; /* a third name of the userdata */ - int n_name3; - void * userdata; /* a pointer to the userdata */ - int n_userdata; - xmlHashDeallocator f; /* the deallocator function for replaced item (if any) */ - int n_f; - - for (n_table = 0;n_table < gen_nb_xmlHashTablePtr;n_table++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_name2 = 0;n_name2 < gen_nb_const_xmlChar_ptr;n_name2++) { - for (n_name3 = 0;n_name3 < gen_nb_const_xmlChar_ptr;n_name3++) { - for (n_userdata = 0;n_userdata < gen_nb_userdata;n_userdata++) { - for (n_f = 0;n_f < gen_nb_xmlHashDeallocator;n_f++) { - mem_base = xmlMemBlocks(); - table = gen_xmlHashTablePtr(n_table, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - name2 = gen_const_xmlChar_ptr(n_name2, 2); - name3 = gen_const_xmlChar_ptr(n_name3, 3); - userdata = gen_userdata(n_userdata, 4); - f = gen_xmlHashDeallocator(n_f, 5); - - ret_val = xmlHashUpdateEntry3(table, (const xmlChar *)name, (const xmlChar *)name2, (const xmlChar *)name3, userdata, f); - desret_int(ret_val); - call_tests++; - des_xmlHashTablePtr(n_table, table, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_name2, (const xmlChar *)name2, 2); - des_const_xmlChar_ptr(n_name3, (const xmlChar *)name3, 3); - des_userdata(n_userdata, userdata, 4); - des_xmlHashDeallocator(n_f, f, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHashUpdateEntry3", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_table); - printf(" %d", n_name); - printf(" %d", n_name2); - printf(" %d", n_name3); - printf(" %d", n_userdata); - printf(" %d", n_f); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - -static int -test_hash(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing hash : 16 of 24 functions ...\n"); - test_ret += test_xmlHashAddEntry(); - test_ret += test_xmlHashAddEntry2(); - test_ret += test_xmlHashAddEntry3(); - test_ret += test_xmlHashCopy(); - test_ret += test_xmlHashCreate(); - test_ret += test_xmlHashCreateDict(); - test_ret += test_xmlHashLookup(); - test_ret += test_xmlHashLookup2(); - test_ret += test_xmlHashLookup3(); - test_ret += test_xmlHashQLookup(); - test_ret += test_xmlHashQLookup2(); - test_ret += test_xmlHashQLookup3(); - test_ret += test_xmlHashRemoveEntry(); - test_ret += test_xmlHashRemoveEntry2(); - test_ret += test_xmlHashRemoveEntry3(); - test_ret += test_xmlHashScan(); - test_ret += test_xmlHashScan3(); - test_ret += test_xmlHashScanFull(); - test_ret += test_xmlHashScanFull3(); - test_ret += test_xmlHashSize(); - test_ret += test_xmlHashUpdateEntry(); - test_ret += test_xmlHashUpdateEntry2(); - test_ret += test_xmlHashUpdateEntry3(); - - if (test_ret != 0) - printf("Module hash: %d errors\n", test_ret); - return(test_ret); -} - -#define gen_nb_xmlLinkPtr 1 -static xmlLinkPtr gen_xmlLinkPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlLinkPtr(int no ATTRIBUTE_UNUSED, xmlLinkPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlLinkGetData(void) { - int test_ret = 0; - - int mem_base; - void * ret_val; - xmlLinkPtr lk; /* a link */ - int n_lk; - - for (n_lk = 0;n_lk < gen_nb_xmlLinkPtr;n_lk++) { - mem_base = xmlMemBlocks(); - lk = gen_xmlLinkPtr(n_lk, 0); - - ret_val = xmlLinkGetData(lk); - desret_void_ptr(ret_val); - call_tests++; - des_xmlLinkPtr(n_lk, lk, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlLinkGetData", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_lk); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListAppend(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlListPtr l; /* a list */ - int n_l; - void * data; /* the data */ - int n_data; - - for (n_l = 0;n_l < gen_nb_xmlListPtr;n_l++) { - for (n_data = 0;n_data < gen_nb_userdata;n_data++) { - mem_base = xmlMemBlocks(); - l = gen_xmlListPtr(n_l, 0); - data = gen_userdata(n_data, 1); - - ret_val = xmlListAppend(l, data); - desret_int(ret_val); - call_tests++; - des_xmlListPtr(n_l, l, 0); - des_userdata(n_data, data, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListAppend", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l); - printf(" %d", n_data); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListClear(void) { - int test_ret = 0; - - int mem_base; - xmlListPtr l; /* a list */ - int n_l; - - for (n_l = 0;n_l < gen_nb_xmlListPtr;n_l++) { - mem_base = xmlMemBlocks(); - l = gen_xmlListPtr(n_l, 0); - - xmlListClear(l); - call_tests++; - des_xmlListPtr(n_l, l, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListClear", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -#define gen_nb_const_xmlListPtr 1 -static xmlListPtr gen_const_xmlListPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_const_xmlListPtr(int no ATTRIBUTE_UNUSED, const xmlListPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlListCopy(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlListPtr cur; /* the new list */ - int n_cur; - xmlListPtr old; /* the old list */ - int n_old; - - for (n_cur = 0;n_cur < gen_nb_xmlListPtr;n_cur++) { - for (n_old = 0;n_old < gen_nb_const_xmlListPtr;n_old++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlListPtr(n_cur, 0); - old = gen_const_xmlListPtr(n_old, 1); - - ret_val = xmlListCopy(cur, (const xmlListPtr)old); - desret_int(ret_val); - call_tests++; - des_xmlListPtr(n_cur, cur, 0); - des_const_xmlListPtr(n_old, (const xmlListPtr)old, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListCopy", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_old); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListCreate(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlListDup(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlListEmpty(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlListPtr l; /* a list */ - int n_l; - - for (n_l = 0;n_l < gen_nb_xmlListPtr;n_l++) { - mem_base = xmlMemBlocks(); - l = gen_xmlListPtr(n_l, 0); - - ret_val = xmlListEmpty(l); - desret_int(ret_val); - call_tests++; - des_xmlListPtr(n_l, l, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListEmpty", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListEnd(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlListFront(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlListInsert(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlListPtr l; /* a list */ - int n_l; - void * data; /* the data */ - int n_data; - - for (n_l = 0;n_l < gen_nb_xmlListPtr;n_l++) { - for (n_data = 0;n_data < gen_nb_userdata;n_data++) { - mem_base = xmlMemBlocks(); - l = gen_xmlListPtr(n_l, 0); - data = gen_userdata(n_data, 1); - - ret_val = xmlListInsert(l, data); - desret_int(ret_val); - call_tests++; - des_xmlListPtr(n_l, l, 0); - des_userdata(n_data, data, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListInsert", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l); - printf(" %d", n_data); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListMerge(void) { - int test_ret = 0; - - int mem_base; - xmlListPtr l1; /* the original list */ - int n_l1; - xmlListPtr l2; /* the new list */ - int n_l2; - - for (n_l1 = 0;n_l1 < gen_nb_xmlListPtr;n_l1++) { - for (n_l2 = 0;n_l2 < gen_nb_xmlListPtr;n_l2++) { - mem_base = xmlMemBlocks(); - l1 = gen_xmlListPtr(n_l1, 0); - l2 = gen_xmlListPtr(n_l2, 1); - - xmlListMerge(l1, l2); - call_tests++; - des_xmlListPtr(n_l1, l1, 0); - des_xmlListPtr(n_l2, l2, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListMerge", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l1); - printf(" %d", n_l2); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListPopBack(void) { - int test_ret = 0; - - int mem_base; - xmlListPtr l; /* a list */ - int n_l; - - for (n_l = 0;n_l < gen_nb_xmlListPtr;n_l++) { - mem_base = xmlMemBlocks(); - l = gen_xmlListPtr(n_l, 0); - - xmlListPopBack(l); - call_tests++; - des_xmlListPtr(n_l, l, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListPopBack", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListPopFront(void) { - int test_ret = 0; - - int mem_base; - xmlListPtr l; /* a list */ - int n_l; - - for (n_l = 0;n_l < gen_nb_xmlListPtr;n_l++) { - mem_base = xmlMemBlocks(); - l = gen_xmlListPtr(n_l, 0); - - xmlListPopFront(l); - call_tests++; - des_xmlListPtr(n_l, l, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListPopFront", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListPushBack(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlListPtr l; /* a list */ - int n_l; - void * data; /* new data */ - int n_data; - - for (n_l = 0;n_l < gen_nb_xmlListPtr;n_l++) { - for (n_data = 0;n_data < gen_nb_userdata;n_data++) { - mem_base = xmlMemBlocks(); - l = gen_xmlListPtr(n_l, 0); - data = gen_userdata(n_data, 1); - - ret_val = xmlListPushBack(l, data); - desret_int(ret_val); - call_tests++; - des_xmlListPtr(n_l, l, 0); - des_userdata(n_data, data, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListPushBack", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l); - printf(" %d", n_data); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListPushFront(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlListPtr l; /* a list */ - int n_l; - void * data; /* new data */ - int n_data; - - for (n_l = 0;n_l < gen_nb_xmlListPtr;n_l++) { - for (n_data = 0;n_data < gen_nb_userdata;n_data++) { - mem_base = xmlMemBlocks(); - l = gen_xmlListPtr(n_l, 0); - data = gen_userdata(n_data, 1); - - ret_val = xmlListPushFront(l, data); - desret_int(ret_val); - call_tests++; - des_xmlListPtr(n_l, l, 0); - des_userdata(n_data, data, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListPushFront", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l); - printf(" %d", n_data); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListRemoveAll(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlListPtr l; /* a list */ - int n_l; - void * data; /* list data */ - int n_data; - - for (n_l = 0;n_l < gen_nb_xmlListPtr;n_l++) { - for (n_data = 0;n_data < gen_nb_userdata;n_data++) { - mem_base = xmlMemBlocks(); - l = gen_xmlListPtr(n_l, 0); - data = gen_userdata(n_data, 1); - - ret_val = xmlListRemoveAll(l, data); - desret_int(ret_val); - call_tests++; - des_xmlListPtr(n_l, l, 0); - des_userdata(n_data, data, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListRemoveAll", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l); - printf(" %d", n_data); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListRemoveFirst(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlListPtr l; /* a list */ - int n_l; - void * data; /* list data */ - int n_data; - - for (n_l = 0;n_l < gen_nb_xmlListPtr;n_l++) { - for (n_data = 0;n_data < gen_nb_userdata;n_data++) { - mem_base = xmlMemBlocks(); - l = gen_xmlListPtr(n_l, 0); - data = gen_userdata(n_data, 1); - - ret_val = xmlListRemoveFirst(l, data); - desret_int(ret_val); - call_tests++; - des_xmlListPtr(n_l, l, 0); - des_userdata(n_data, data, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListRemoveFirst", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l); - printf(" %d", n_data); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListRemoveLast(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlListPtr l; /* a list */ - int n_l; - void * data; /* list data */ - int n_data; - - for (n_l = 0;n_l < gen_nb_xmlListPtr;n_l++) { - for (n_data = 0;n_data < gen_nb_userdata;n_data++) { - mem_base = xmlMemBlocks(); - l = gen_xmlListPtr(n_l, 0); - data = gen_userdata(n_data, 1); - - ret_val = xmlListRemoveLast(l, data); - desret_int(ret_val); - call_tests++; - des_xmlListPtr(n_l, l, 0); - des_userdata(n_data, data, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListRemoveLast", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l); - printf(" %d", n_data); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListReverse(void) { - int test_ret = 0; - - int mem_base; - xmlListPtr l; /* a list */ - int n_l; - - for (n_l = 0;n_l < gen_nb_xmlListPtr;n_l++) { - mem_base = xmlMemBlocks(); - l = gen_xmlListPtr(n_l, 0); - - xmlListReverse(l); - call_tests++; - des_xmlListPtr(n_l, l, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListReverse", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListReverseSearch(void) { - int test_ret = 0; - - int mem_base; - void * ret_val; - xmlListPtr l; /* a list */ - int n_l; - void * data; /* a search value */ - int n_data; - - for (n_l = 0;n_l < gen_nb_xmlListPtr;n_l++) { - for (n_data = 0;n_data < gen_nb_userdata;n_data++) { - mem_base = xmlMemBlocks(); - l = gen_xmlListPtr(n_l, 0); - data = gen_userdata(n_data, 1); - - ret_val = xmlListReverseSearch(l, data); - desret_void_ptr(ret_val); - call_tests++; - des_xmlListPtr(n_l, l, 0); - des_userdata(n_data, data, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListReverseSearch", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l); - printf(" %d", n_data); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListReverseWalk(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlListSearch(void) { - int test_ret = 0; - - int mem_base; - void * ret_val; - xmlListPtr l; /* a list */ - int n_l; - void * data; /* a search value */ - int n_data; - - for (n_l = 0;n_l < gen_nb_xmlListPtr;n_l++) { - for (n_data = 0;n_data < gen_nb_userdata;n_data++) { - mem_base = xmlMemBlocks(); - l = gen_xmlListPtr(n_l, 0); - data = gen_userdata(n_data, 1); - - ret_val = xmlListSearch(l, data); - desret_void_ptr(ret_val); - call_tests++; - des_xmlListPtr(n_l, l, 0); - des_userdata(n_data, data, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListSearch", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l); - printf(" %d", n_data); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListSize(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlListPtr l; /* a list */ - int n_l; - - for (n_l = 0;n_l < gen_nb_xmlListPtr;n_l++) { - mem_base = xmlMemBlocks(); - l = gen_xmlListPtr(n_l, 0); - - ret_val = xmlListSize(l); - desret_int(ret_val); - call_tests++; - des_xmlListPtr(n_l, l, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListSize", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListSort(void) { - int test_ret = 0; - - int mem_base; - xmlListPtr l; /* a list */ - int n_l; - - for (n_l = 0;n_l < gen_nb_xmlListPtr;n_l++) { - mem_base = xmlMemBlocks(); - l = gen_xmlListPtr(n_l, 0); - - xmlListSort(l); - call_tests++; - des_xmlListPtr(n_l, l, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlListSort", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_l); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlListWalk(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - -static int -test_list(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing list : 19 of 26 functions ...\n"); - test_ret += test_xmlLinkGetData(); - test_ret += test_xmlListAppend(); - test_ret += test_xmlListClear(); - test_ret += test_xmlListCopy(); - test_ret += test_xmlListCreate(); - test_ret += test_xmlListDup(); - test_ret += test_xmlListEmpty(); - test_ret += test_xmlListEnd(); - test_ret += test_xmlListFront(); - test_ret += test_xmlListInsert(); - test_ret += test_xmlListMerge(); - test_ret += test_xmlListPopBack(); - test_ret += test_xmlListPopFront(); - test_ret += test_xmlListPushBack(); - test_ret += test_xmlListPushFront(); - test_ret += test_xmlListRemoveAll(); - test_ret += test_xmlListRemoveFirst(); - test_ret += test_xmlListRemoveLast(); - test_ret += test_xmlListReverse(); - test_ret += test_xmlListReverseSearch(); - test_ret += test_xmlListReverseWalk(); - test_ret += test_xmlListSearch(); - test_ret += test_xmlListSize(); - test_ret += test_xmlListSort(); - test_ret += test_xmlListWalk(); - - if (test_ret != 0) - printf("Module list: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlNanoFTPCheckResponse(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - int ret_val; - void * ctx; /* an FTP context */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_xmlNanoFTPCtxtPtr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlNanoFTPCtxtPtr(n_ctx, 0); - - ret_val = xmlNanoFTPCheckResponse(ctx); - desret_int(ret_val); - call_tests++; - des_xmlNanoFTPCtxtPtr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoFTPCheckResponse", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoFTPCleanup(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlNanoFTPCleanup(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoFTPCleanup", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoFTPCloseConnection(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - int ret_val; - void * ctx; /* an FTP context */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_xmlNanoFTPCtxtPtr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlNanoFTPCtxtPtr(n_ctx, 0); - - ret_val = xmlNanoFTPCloseConnection(ctx); - desret_int(ret_val); - call_tests++; - des_xmlNanoFTPCtxtPtr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoFTPCloseConnection", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoFTPCwd(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - int ret_val; - void * ctx; /* an FTP context */ - int n_ctx; - char * directory; /* a directory on the server */ - int n_directory; - - for (n_ctx = 0;n_ctx < gen_nb_xmlNanoFTPCtxtPtr;n_ctx++) { - for (n_directory = 0;n_directory < gen_nb_const_char_ptr;n_directory++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlNanoFTPCtxtPtr(n_ctx, 0); - directory = gen_const_char_ptr(n_directory, 1); - - ret_val = xmlNanoFTPCwd(ctx, (const char *)directory); - desret_int(ret_val); - call_tests++; - des_xmlNanoFTPCtxtPtr(n_ctx, ctx, 0); - des_const_char_ptr(n_directory, (const char *)directory, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoFTPCwd", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_directory); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoFTPDele(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - int ret_val; - void * ctx; /* an FTP context */ - int n_ctx; - const char * file; /* a file or directory on the server */ - int n_file; - - for (n_ctx = 0;n_ctx < gen_nb_xmlNanoFTPCtxtPtr;n_ctx++) { - for (n_file = 0;n_file < gen_nb_filepath;n_file++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlNanoFTPCtxtPtr(n_ctx, 0); - file = gen_filepath(n_file, 1); - - ret_val = xmlNanoFTPDele(ctx, file); - desret_int(ret_val); - call_tests++; - des_xmlNanoFTPCtxtPtr(n_ctx, ctx, 0); - des_filepath(n_file, file, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoFTPDele", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_file); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoFTPGet(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlNanoFTPGetConnection(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - int ret_val; - void * ctx; /* an FTP context */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_xmlNanoFTPCtxtPtr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlNanoFTPCtxtPtr(n_ctx, 0); - - ret_val = xmlNanoFTPGetConnection(ctx); - desret_int(ret_val); - call_tests++; - des_xmlNanoFTPCtxtPtr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoFTPGetConnection", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoFTPGetResponse(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - int ret_val; - void * ctx; /* an FTP context */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_xmlNanoFTPCtxtPtr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlNanoFTPCtxtPtr(n_ctx, 0); - - ret_val = xmlNanoFTPGetResponse(ctx); - desret_int(ret_val); - call_tests++; - des_xmlNanoFTPCtxtPtr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoFTPGetResponse", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoFTPGetSocket(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - int ret_val; - void * ctx; /* an FTP context */ - int n_ctx; - const char * filename; /* the file to retrieve (or NULL if path is in context). */ - int n_filename; - - for (n_ctx = 0;n_ctx < gen_nb_xmlNanoFTPCtxtPtr;n_ctx++) { - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlNanoFTPCtxtPtr(n_ctx, 0); - filename = gen_filepath(n_filename, 1); - - ret_val = xmlNanoFTPGetSocket(ctx, filename); - desret_int(ret_val); - call_tests++; - des_xmlNanoFTPCtxtPtr(n_ctx, ctx, 0); - des_filepath(n_filename, filename, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoFTPGetSocket", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_filename); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoFTPInit(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlNanoFTPInit(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoFTPInit", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoFTPList(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlNanoFTPNewCtxt(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - void * ret_val; - const char * URL; /* The URL used to initialize the context */ - int n_URL; - - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - mem_base = xmlMemBlocks(); - URL = gen_filepath(n_URL, 0); - - ret_val = xmlNanoFTPNewCtxt(URL); - desret_xmlNanoFTPCtxtPtr(ret_val); - call_tests++; - des_filepath(n_URL, URL, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoFTPNewCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URL); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoFTPOpen(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - void * ret_val; - const char * URL; /* the URL to the resource */ - int n_URL; - - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - mem_base = xmlMemBlocks(); - URL = gen_filepath(n_URL, 0); - - ret_val = xmlNanoFTPOpen(URL); - desret_xmlNanoFTPCtxtPtr(ret_val); - call_tests++; - des_filepath(n_URL, URL, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoFTPOpen", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URL); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoFTPProxy(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - char * host; /* the proxy host name */ - int n_host; - int port; /* the proxy port */ - int n_port; - char * user; /* the proxy user name */ - int n_user; - char * passwd; /* the proxy password */ - int n_passwd; - int type; /* the type of proxy 1 for using SITE, 2 for USER a@b */ - int n_type; - - for (n_host = 0;n_host < gen_nb_const_char_ptr;n_host++) { - for (n_port = 0;n_port < gen_nb_int;n_port++) { - for (n_user = 0;n_user < gen_nb_const_char_ptr;n_user++) { - for (n_passwd = 0;n_passwd < gen_nb_const_char_ptr;n_passwd++) { - for (n_type = 0;n_type < gen_nb_int;n_type++) { - host = gen_const_char_ptr(n_host, 0); - port = gen_int(n_port, 1); - user = gen_const_char_ptr(n_user, 2); - passwd = gen_const_char_ptr(n_passwd, 3); - type = gen_int(n_type, 4); - - xmlNanoFTPProxy((const char *)host, port, (const char *)user, (const char *)passwd, type); - call_tests++; - des_const_char_ptr(n_host, (const char *)host, 0); - des_int(n_port, port, 1); - des_const_char_ptr(n_user, (const char *)user, 2); - des_const_char_ptr(n_passwd, (const char *)passwd, 3); - des_int(n_type, type, 4); - xmlResetLastError(); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoFTPQuit(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - int ret_val; - void * ctx; /* an FTP context */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_xmlNanoFTPCtxtPtr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlNanoFTPCtxtPtr(n_ctx, 0); - - ret_val = xmlNanoFTPQuit(ctx); - desret_int(ret_val); - call_tests++; - des_xmlNanoFTPCtxtPtr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoFTPQuit", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoFTPRead(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - int ret_val; - void * ctx; /* the FTP context */ - int n_ctx; - void * dest; /* a buffer */ - int n_dest; - int len; /* the buffer length */ - int n_len; - - for (n_ctx = 0;n_ctx < gen_nb_xmlNanoFTPCtxtPtr;n_ctx++) { - for (n_dest = 0;n_dest < gen_nb_void_ptr;n_dest++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlNanoFTPCtxtPtr(n_ctx, 0); - dest = gen_void_ptr(n_dest, 1); - len = gen_int(n_len, 2); - - ret_val = xmlNanoFTPRead(ctx, dest, len); - desret_int(ret_val); - call_tests++; - des_xmlNanoFTPCtxtPtr(n_ctx, ctx, 0); - des_void_ptr(n_dest, dest, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoFTPRead", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_dest); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoFTPScanProxy(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - const char * URL; /* The proxy URL used to initialize the proxy context */ - int n_URL; - - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - URL = gen_filepath(n_URL, 0); - - xmlNanoFTPScanProxy(URL); - call_tests++; - des_filepath(n_URL, URL, 0); - xmlResetLastError(); - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoFTPUpdateURL(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - int ret_val; - void * ctx; /* an FTP context */ - int n_ctx; - const char * URL; /* The URL used to update the context */ - int n_URL; - - for (n_ctx = 0;n_ctx < gen_nb_xmlNanoFTPCtxtPtr;n_ctx++) { - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlNanoFTPCtxtPtr(n_ctx, 0); - URL = gen_filepath(n_URL, 1); - - ret_val = xmlNanoFTPUpdateURL(ctx, URL); - desret_int(ret_val); - call_tests++; - des_xmlNanoFTPCtxtPtr(n_ctx, ctx, 0); - des_filepath(n_URL, URL, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoFTPUpdateURL", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_URL); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_nanoftp(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing nanoftp : 16 of 22 functions ...\n"); - test_ret += test_xmlNanoFTPCheckResponse(); - test_ret += test_xmlNanoFTPCleanup(); - test_ret += test_xmlNanoFTPCloseConnection(); - test_ret += test_xmlNanoFTPCwd(); - test_ret += test_xmlNanoFTPDele(); - test_ret += test_xmlNanoFTPGet(); - test_ret += test_xmlNanoFTPGetConnection(); - test_ret += test_xmlNanoFTPGetResponse(); - test_ret += test_xmlNanoFTPGetSocket(); - test_ret += test_xmlNanoFTPInit(); - test_ret += test_xmlNanoFTPList(); - test_ret += test_xmlNanoFTPNewCtxt(); - test_ret += test_xmlNanoFTPOpen(); - test_ret += test_xmlNanoFTPProxy(); - test_ret += test_xmlNanoFTPQuit(); - test_ret += test_xmlNanoFTPRead(); - test_ret += test_xmlNanoFTPScanProxy(); - test_ret += test_xmlNanoFTPUpdateURL(); - - if (test_ret != 0) - printf("Module nanoftp: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlNanoHTTPAuthHeader(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) - int mem_base; - const char * ret_val; - void * ctx; /* the HTTP context */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_xmlNanoHTTPCtxtPtr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlNanoHTTPCtxtPtr(n_ctx, 0); - - ret_val = xmlNanoHTTPAuthHeader(ctx); - desret_const_char_ptr(ret_val); - call_tests++; - des_xmlNanoHTTPCtxtPtr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoHTTPAuthHeader", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoHTTPCleanup(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlNanoHTTPCleanup(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoHTTPCleanup", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoHTTPContentLength(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) - int mem_base; - int ret_val; - void * ctx; /* the HTTP context */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_xmlNanoHTTPCtxtPtr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlNanoHTTPCtxtPtr(n_ctx, 0); - - ret_val = xmlNanoHTTPContentLength(ctx); - desret_int(ret_val); - call_tests++; - des_xmlNanoHTTPCtxtPtr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoHTTPContentLength", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoHTTPEncoding(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) - int mem_base; - const char * ret_val; - void * ctx; /* the HTTP context */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_xmlNanoHTTPCtxtPtr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlNanoHTTPCtxtPtr(n_ctx, 0); - - ret_val = xmlNanoHTTPEncoding(ctx); - desret_const_char_ptr(ret_val); - call_tests++; - des_xmlNanoHTTPCtxtPtr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoHTTPEncoding", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -#define gen_nb_char_ptr_ptr 1 -static char ** gen_char_ptr_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_char_ptr_ptr(int no ATTRIBUTE_UNUSED, char ** val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlNanoHTTPFetch(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) - int mem_base; - int ret_val; - const char * URL; /* The URL to load */ - int n_URL; - const char * filename; /* the filename where the content should be saved */ - int n_filename; - char ** contentType; /* if available the Content-Type information will be returned at that location */ - int n_contentType; - - for (n_URL = 0;n_URL < gen_nb_fileoutput;n_URL++) { - for (n_filename = 0;n_filename < gen_nb_fileoutput;n_filename++) { - for (n_contentType = 0;n_contentType < gen_nb_char_ptr_ptr;n_contentType++) { - mem_base = xmlMemBlocks(); - URL = gen_fileoutput(n_URL, 0); - filename = gen_fileoutput(n_filename, 1); - contentType = gen_char_ptr_ptr(n_contentType, 2); - - ret_val = xmlNanoHTTPFetch(URL, filename, contentType); - desret_int(ret_val); - call_tests++; - des_fileoutput(n_URL, URL, 0); - des_fileoutput(n_filename, filename, 1); - des_char_ptr_ptr(n_contentType, contentType, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoHTTPFetch", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URL); - printf(" %d", n_filename); - printf(" %d", n_contentType); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoHTTPInit(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlNanoHTTPInit(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoHTTPInit", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoHTTPMimeType(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) - int mem_base; - const char * ret_val; - void * ctx; /* the HTTP context */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_xmlNanoHTTPCtxtPtr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlNanoHTTPCtxtPtr(n_ctx, 0); - - ret_val = xmlNanoHTTPMimeType(ctx); - desret_const_char_ptr(ret_val); - call_tests++; - des_xmlNanoHTTPCtxtPtr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoHTTPMimeType", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoHTTPOpen(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) - int mem_base; - void * ret_val; - const char * URL; /* The URL to load */ - int n_URL; - char ** contentType; /* if available the Content-Type information will be returned at that location */ - int n_contentType; - - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - for (n_contentType = 0;n_contentType < gen_nb_char_ptr_ptr;n_contentType++) { - mem_base = xmlMemBlocks(); - URL = gen_filepath(n_URL, 0); - contentType = gen_char_ptr_ptr(n_contentType, 1); - - ret_val = xmlNanoHTTPOpen(URL, contentType); - desret_xmlNanoHTTPCtxtPtr(ret_val); - call_tests++; - des_filepath(n_URL, URL, 0); - des_char_ptr_ptr(n_contentType, contentType, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoHTTPOpen", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URL); - printf(" %d", n_contentType); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoHTTPOpenRedir(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) - int mem_base; - void * ret_val; - const char * URL; /* The URL to load */ - int n_URL; - char ** contentType; /* if available the Content-Type information will be returned at that location */ - int n_contentType; - char ** redir; /* if available the redirected URL will be returned */ - int n_redir; - - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - for (n_contentType = 0;n_contentType < gen_nb_char_ptr_ptr;n_contentType++) { - for (n_redir = 0;n_redir < gen_nb_char_ptr_ptr;n_redir++) { - mem_base = xmlMemBlocks(); - URL = gen_filepath(n_URL, 0); - contentType = gen_char_ptr_ptr(n_contentType, 1); - redir = gen_char_ptr_ptr(n_redir, 2); - - ret_val = xmlNanoHTTPOpenRedir(URL, contentType, redir); - desret_xmlNanoHTTPCtxtPtr(ret_val); - call_tests++; - des_filepath(n_URL, URL, 0); - des_char_ptr_ptr(n_contentType, contentType, 1); - des_char_ptr_ptr(n_redir, redir, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoHTTPOpenRedir", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URL); - printf(" %d", n_contentType); - printf(" %d", n_redir); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoHTTPRead(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) - int mem_base; - int ret_val; - void * ctx; /* the HTTP context */ - int n_ctx; - void * dest; /* a buffer */ - int n_dest; - int len; /* the buffer length */ - int n_len; - - for (n_ctx = 0;n_ctx < gen_nb_xmlNanoHTTPCtxtPtr;n_ctx++) { - for (n_dest = 0;n_dest < gen_nb_void_ptr;n_dest++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlNanoHTTPCtxtPtr(n_ctx, 0); - dest = gen_void_ptr(n_dest, 1); - len = gen_int(n_len, 2); - - ret_val = xmlNanoHTTPRead(ctx, dest, len); - desret_int(ret_val); - call_tests++; - des_xmlNanoHTTPCtxtPtr(n_ctx, ctx, 0); - des_void_ptr(n_dest, dest, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoHTTPRead", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_dest); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoHTTPRedir(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlNanoHTTPReturnCode(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) - int mem_base; - int ret_val; - void * ctx; /* the HTTP context */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_xmlNanoHTTPCtxtPtr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlNanoHTTPCtxtPtr(n_ctx, 0); - - ret_val = xmlNanoHTTPReturnCode(ctx); - desret_int(ret_val); - call_tests++; - des_xmlNanoHTTPCtxtPtr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoHTTPReturnCode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoHTTPSave(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - void * ctxt; /* the HTTP context */ - int n_ctxt; - const char * filename; /* the filename where the content should be saved */ - int n_filename; - - for (n_ctxt = 0;n_ctxt < gen_nb_void_ptr;n_ctxt++) { - for (n_filename = 0;n_filename < gen_nb_fileoutput;n_filename++) { - mem_base = xmlMemBlocks(); - ctxt = gen_void_ptr(n_ctxt, 0); - filename = gen_fileoutput(n_filename, 1); - - ret_val = xmlNanoHTTPSave(ctxt, filename); - desret_int(ret_val); - call_tests++; - des_void_ptr(n_ctxt, ctxt, 0); - des_fileoutput(n_filename, filename, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNanoHTTPSave", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_filename); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNanoHTTPScanProxy(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) - const char * URL; /* The proxy URL used to initialize the proxy context */ - int n_URL; - - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - URL = gen_filepath(n_URL, 0); - - xmlNanoHTTPScanProxy(URL); - call_tests++; - des_filepath(n_URL, URL, 0); - xmlResetLastError(); - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_nanohttp(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing nanohttp : 13 of 17 functions ...\n"); - test_ret += test_xmlNanoHTTPAuthHeader(); - test_ret += test_xmlNanoHTTPCleanup(); - test_ret += test_xmlNanoHTTPContentLength(); - test_ret += test_xmlNanoHTTPEncoding(); - test_ret += test_xmlNanoHTTPFetch(); - test_ret += test_xmlNanoHTTPInit(); - test_ret += test_xmlNanoHTTPMimeType(); - test_ret += test_xmlNanoHTTPOpen(); - test_ret += test_xmlNanoHTTPOpenRedir(); - test_ret += test_xmlNanoHTTPRead(); - test_ret += test_xmlNanoHTTPRedir(); - test_ret += test_xmlNanoHTTPReturnCode(); - test_ret += test_xmlNanoHTTPSave(); - test_ret += test_xmlNanoHTTPScanProxy(); - - if (test_ret != 0) - printf("Module nanohttp: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlByteConsumed(void) { - int test_ret = 0; - - int mem_base; - long ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - - ret_val = xmlByteConsumed(ctxt); - desret_long(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlByteConsumed", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlClearNodeInfoSeq(void) { - int test_ret = 0; - - int mem_base; - xmlParserNodeInfoSeqPtr seq; /* a node info sequence pointer */ - int n_seq; - - for (n_seq = 0;n_seq < gen_nb_xmlParserNodeInfoSeqPtr;n_seq++) { - mem_base = xmlMemBlocks(); - seq = gen_xmlParserNodeInfoSeqPtr(n_seq, 0); - - xmlClearNodeInfoSeq(seq); - call_tests++; - des_xmlParserNodeInfoSeqPtr(n_seq, seq, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlClearNodeInfoSeq", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_seq); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlClearParserCtxt(void) { - int test_ret = 0; - - int mem_base; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - - xmlClearParserCtxt(ctxt); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlClearParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCreateDocParserCtxt(void) { - int test_ret = 0; - - int mem_base; - xmlParserCtxtPtr ret_val; - xmlChar * cur; /* a pointer to an array of xmlChar */ - int n_cur; - - for (n_cur = 0;n_cur < gen_nb_const_xmlChar_ptr;n_cur++) { - mem_base = xmlMemBlocks(); - cur = gen_const_xmlChar_ptr(n_cur, 0); - - ret_val = xmlCreateDocParserCtxt((const xmlChar *)cur); - desret_xmlParserCtxtPtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_cur, (const xmlChar *)cur, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCreateDocParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCreatePushParserCtxt(void) { - int test_ret = 0; - -#if defined(LIBXML_PUSH_ENABLED) - int mem_base; - xmlParserCtxtPtr ret_val; - xmlSAXHandlerPtr sax; /* a SAX handler */ - int n_sax; - void * user_data; /* The user data returned on SAX callbacks */ - int n_user_data; - char * chunk; /* a pointer to an array of chars */ - int n_chunk; - int size; /* number of chars in the array */ - int n_size; - const char * filename; /* an optional file name or URI */ - int n_filename; - - for (n_sax = 0;n_sax < gen_nb_xmlSAXHandlerPtr;n_sax++) { - for (n_user_data = 0;n_user_data < gen_nb_userdata;n_user_data++) { - for (n_chunk = 0;n_chunk < gen_nb_const_char_ptr;n_chunk++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - for (n_filename = 0;n_filename < gen_nb_fileoutput;n_filename++) { - mem_base = xmlMemBlocks(); - sax = gen_xmlSAXHandlerPtr(n_sax, 0); - user_data = gen_userdata(n_user_data, 1); - chunk = gen_const_char_ptr(n_chunk, 2); - size = gen_int(n_size, 3); - filename = gen_fileoutput(n_filename, 4); - - ret_val = xmlCreatePushParserCtxt(sax, user_data, (const char *)chunk, size, filename); - desret_xmlParserCtxtPtr(ret_val); - call_tests++; - des_xmlSAXHandlerPtr(n_sax, sax, 0); - des_userdata(n_user_data, user_data, 1); - des_const_char_ptr(n_chunk, (const char *)chunk, 2); - des_int(n_size, size, 3); - des_fileoutput(n_filename, filename, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCreatePushParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_sax); - printf(" %d", n_user_data); - printf(" %d", n_chunk); - printf(" %d", n_size); - printf(" %d", n_filename); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCtxtReadDoc(void) { - int test_ret = 0; - - int mem_base; - xmlDocPtr ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - xmlChar * cur; /* a pointer to a zero terminated string */ - int n_cur; - const char * URL; /* the base URL to use for the document */ - int n_URL; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of xmlParserOption */ - int n_options; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_cur = 0;n_cur < gen_nb_const_xmlChar_ptr;n_cur++) { - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - cur = gen_const_xmlChar_ptr(n_cur, 1); - URL = gen_filepath(n_URL, 2); - encoding = gen_const_char_ptr(n_encoding, 3); - options = gen_parseroptions(n_options, 4); - - ret_val = xmlCtxtReadDoc(ctxt, (const xmlChar *)cur, URL, (const char *)encoding, options); - desret_xmlDocPtr(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_cur, (const xmlChar *)cur, 1); - des_filepath(n_URL, URL, 2); - des_const_char_ptr(n_encoding, (const char *)encoding, 3); - des_parseroptions(n_options, options, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCtxtReadDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_cur); - printf(" %d", n_URL); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCtxtReadFile(void) { - int test_ret = 0; - - int mem_base; - xmlDocPtr ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - const char * filename; /* a file or URL */ - int n_filename; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of xmlParserOption */ - int n_options; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - filename = gen_filepath(n_filename, 1); - encoding = gen_const_char_ptr(n_encoding, 2); - options = gen_parseroptions(n_options, 3); - - ret_val = xmlCtxtReadFile(ctxt, filename, (const char *)encoding, options); - desret_xmlDocPtr(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_filepath(n_filename, filename, 1); - des_const_char_ptr(n_encoding, (const char *)encoding, 2); - des_parseroptions(n_options, options, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCtxtReadFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_filename); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCtxtReadMemory(void) { - int test_ret = 0; - - int mem_base; - xmlDocPtr ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - char * buffer; /* a pointer to a char array */ - int n_buffer; - int size; /* the size of the array */ - int n_size; - const char * URL; /* the base URL to use for the document */ - int n_URL; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of xmlParserOption */ - int n_options; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_buffer = 0;n_buffer < gen_nb_const_char_ptr;n_buffer++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - buffer = gen_const_char_ptr(n_buffer, 1); - size = gen_int(n_size, 2); - URL = gen_filepath(n_URL, 3); - encoding = gen_const_char_ptr(n_encoding, 4); - options = gen_parseroptions(n_options, 5); - - ret_val = xmlCtxtReadMemory(ctxt, (const char *)buffer, size, URL, (const char *)encoding, options); - desret_xmlDocPtr(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_char_ptr(n_buffer, (const char *)buffer, 1); - des_int(n_size, size, 2); - des_filepath(n_URL, URL, 3); - des_const_char_ptr(n_encoding, (const char *)encoding, 4); - des_parseroptions(n_options, options, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCtxtReadMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_buffer); - printf(" %d", n_size); - printf(" %d", n_URL); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCtxtReset(void) { - int test_ret = 0; - - int mem_base; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - - xmlCtxtReset(ctxt); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCtxtReset", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCtxtResetPush(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - char * chunk; /* a pointer to an array of chars */ - int n_chunk; - int size; /* number of chars in the array */ - int n_size; - const char * filename; /* an optional file name or URI */ - int n_filename; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_chunk = 0;n_chunk < gen_nb_const_char_ptr;n_chunk++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - chunk = gen_const_char_ptr(n_chunk, 1); - size = gen_int(n_size, 2); - filename = gen_filepath(n_filename, 3); - encoding = gen_const_char_ptr(n_encoding, 4); - - ret_val = xmlCtxtResetPush(ctxt, (const char *)chunk, size, filename, (const char *)encoding); - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_char_ptr(n_chunk, (const char *)chunk, 1); - des_int(n_size, size, 2); - des_filepath(n_filename, filename, 3); - des_const_char_ptr(n_encoding, (const char *)encoding, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCtxtResetPush", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_chunk); - printf(" %d", n_size); - printf(" %d", n_filename); - printf(" %d", n_encoding); - printf("\n"); - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCtxtUseOptions(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - int options; /* a combination of xmlParserOption */ - int n_options; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - options = gen_parseroptions(n_options, 1); - - ret_val = xmlCtxtUseOptions(ctxt, options); - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_parseroptions(n_options, options, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCtxtUseOptions", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_options); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetExternalEntityLoader(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlGetFeature(void) { - int test_ret = 0; - -#if defined(LIBXML_LEGACY_ENABLED) -#ifdef LIBXML_LEGACY_ENABLED - int mem_base; - int ret_val; - xmlParserCtxtPtr ctxt; /* an XML/HTML parser context */ - int n_ctxt; - char * name; /* the feature name */ - int n_name; - void * result; /* location to store the result */ - int n_result; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_name = 0;n_name < gen_nb_const_char_ptr;n_name++) { - for (n_result = 0;n_result < gen_nb_void_ptr;n_result++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - name = gen_const_char_ptr(n_name, 1); - result = gen_void_ptr(n_result, 2); - - ret_val = xmlGetFeature(ctxt, (const char *)name, result); - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_char_ptr(n_name, (const char *)name, 1); - des_void_ptr(n_result, result, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetFeature", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_name); - printf(" %d", n_result); - printf("\n"); - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -#define gen_nb_const_char_ptr_ptr 1 -static char ** gen_const_char_ptr_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_const_char_ptr_ptr(int no ATTRIBUTE_UNUSED, const char ** val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlGetFeaturesList(void) { - int test_ret = 0; - -#if defined(LIBXML_LEGACY_ENABLED) -#ifdef LIBXML_LEGACY_ENABLED - int mem_base; - int ret_val; - int * len; /* the length of the features name array (input/output) */ - int n_len; - char ** result; /* an array of string to be filled with the features name. */ - int n_result; - - for (n_len = 0;n_len < gen_nb_int_ptr;n_len++) { - for (n_result = 0;n_result < gen_nb_const_char_ptr_ptr;n_result++) { - mem_base = xmlMemBlocks(); - len = gen_int_ptr(n_len, 0); - result = gen_const_char_ptr_ptr(n_result, 1); - - ret_val = xmlGetFeaturesList(len, (const char **)result); - desret_int(ret_val); - call_tests++; - des_int_ptr(n_len, len, 0); - des_const_char_ptr_ptr(n_result, (const char **)result, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetFeaturesList", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_len); - printf(" %d", n_result); - printf("\n"); - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlHasFeature(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlFeature feature; /* the feature to be examined */ - int n_feature; - - for (n_feature = 0;n_feature < gen_nb_xmlFeature;n_feature++) { - mem_base = xmlMemBlocks(); - feature = gen_xmlFeature(n_feature, 0); - - ret_val = xmlHasFeature(feature); - desret_int(ret_val); - call_tests++; - des_xmlFeature(n_feature, feature, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHasFeature", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_feature); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlIOParseDTD(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) -#ifdef LIBXML_VALID_ENABLED - int mem_base; - xmlDtdPtr ret_val; - xmlSAXHandlerPtr sax; /* the SAX handler block or NULL */ - int n_sax; - xmlParserInputBufferPtr input; /* an Input Buffer */ - int n_input; - xmlCharEncoding enc; /* the charset encoding if known */ - int n_enc; - - for (n_sax = 0;n_sax < gen_nb_xmlSAXHandlerPtr;n_sax++) { - for (n_input = 0;n_input < gen_nb_xmlParserInputBufferPtr;n_input++) { - for (n_enc = 0;n_enc < gen_nb_xmlCharEncoding;n_enc++) { - mem_base = xmlMemBlocks(); - sax = gen_xmlSAXHandlerPtr(n_sax, 0); - input = gen_xmlParserInputBufferPtr(n_input, 1); - enc = gen_xmlCharEncoding(n_enc, 2); - - ret_val = xmlIOParseDTD(sax, input, enc); - input = NULL; - desret_xmlDtdPtr(ret_val); - call_tests++; - des_xmlSAXHandlerPtr(n_sax, sax, 0); - des_xmlParserInputBufferPtr(n_input, input, 1); - des_xmlCharEncoding(n_enc, enc, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIOParseDTD", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_sax); - printf(" %d", n_input); - printf(" %d", n_enc); - printf("\n"); - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlInitNodeInfoSeq(void) { - int test_ret = 0; - - int mem_base; - xmlParserNodeInfoSeqPtr seq; /* a node info sequence pointer */ - int n_seq; - - for (n_seq = 0;n_seq < gen_nb_xmlParserNodeInfoSeqPtr;n_seq++) { - mem_base = xmlMemBlocks(); - seq = gen_xmlParserNodeInfoSeqPtr(n_seq, 0); - - xmlInitNodeInfoSeq(seq); - call_tests++; - des_xmlParserNodeInfoSeqPtr(n_seq, seq, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlInitNodeInfoSeq", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_seq); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlInitParser(void) { - int test_ret = 0; - - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlInitParser(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlInitParser", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlInitParserCtxt(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - - ret_val = xmlInitParserCtxt(ctxt); - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlInitParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlKeepBlanksDefault(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - int val; /* int 0 or 1 */ - int n_val; - - for (n_val = 0;n_val < gen_nb_int;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_int(n_val, 0); - - ret_val = xmlKeepBlanksDefault(val); - desret_int(ret_val); - call_tests++; - des_int(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlKeepBlanksDefault", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlLineNumbersDefault(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - int val; /* int 0 or 1 */ - int n_val; - - for (n_val = 0;n_val < gen_nb_int;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_int(n_val, 0); - - ret_val = xmlLineNumbersDefault(val); - desret_int(ret_val); - call_tests++; - des_int(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlLineNumbersDefault", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlLoadExternalEntity(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputPtr ret_val; - const char * URL; /* the URL for the entity to load */ - int n_URL; - char * ID; /* the Public ID for the entity to load */ - int n_ID; - xmlParserCtxtPtr ctxt; /* the context in which the entity is called or NULL */ - int n_ctxt; - - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - for (n_ID = 0;n_ID < gen_nb_const_char_ptr;n_ID++) { - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - URL = gen_filepath(n_URL, 0); - ID = gen_const_char_ptr(n_ID, 1); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 2); - - ret_val = xmlLoadExternalEntity(URL, (const char *)ID, ctxt); - desret_xmlParserInputPtr(ret_val); - call_tests++; - des_filepath(n_URL, URL, 0); - des_const_char_ptr(n_ID, (const char *)ID, 1); - des_xmlParserCtxtPtr(n_ctxt, ctxt, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlLoadExternalEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URL); - printf(" %d", n_ID); - printf(" %d", n_ctxt); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewIOInputStream(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputPtr ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - xmlParserInputBufferPtr input; /* an I/O Input */ - int n_input; - xmlCharEncoding enc; /* the charset encoding if known */ - int n_enc; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_input = 0;n_input < gen_nb_xmlParserInputBufferPtr;n_input++) { - for (n_enc = 0;n_enc < gen_nb_xmlCharEncoding;n_enc++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - input = gen_xmlParserInputBufferPtr(n_input, 1); - enc = gen_xmlCharEncoding(n_enc, 2); - - ret_val = xmlNewIOInputStream(ctxt, input, enc); - if (ret_val != NULL) input = NULL; - desret_xmlParserInputPtr(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_xmlParserInputBufferPtr(n_input, input, 1); - des_xmlCharEncoding(n_enc, enc, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewIOInputStream", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_input); - printf(" %d", n_enc); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewParserCtxt(void) { - int test_ret = 0; - - int mem_base; - xmlParserCtxtPtr ret_val; - - mem_base = xmlMemBlocks(); - - ret_val = xmlNewParserCtxt(); - desret_xmlParserCtxtPtr(ret_val); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; - - return(test_ret); -} - - -#define gen_nb_xmlNodePtr_ptr 1 -static xmlNodePtr * gen_xmlNodePtr_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlNodePtr_ptr(int no ATTRIBUTE_UNUSED, xmlNodePtr * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlParseBalancedChunkMemory(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - int ret_val; - xmlDocPtr doc; /* the document the chunk pertains to */ - int n_doc; - xmlSAXHandlerPtr sax; /* the SAX handler bloc (possibly NULL) */ - int n_sax; - void * user_data; /* The user data returned on SAX callbacks (possibly NULL) */ - int n_user_data; - int depth; /* Used for loop detection, use 0 */ - int n_depth; - xmlChar * string; /* the input string in UTF8 or ISO-Latin (zero terminated) */ - int n_string; - xmlNodePtr * lst; /* the return value for the set of parsed nodes */ - int n_lst; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_sax = 0;n_sax < gen_nb_xmlSAXHandlerPtr;n_sax++) { - for (n_user_data = 0;n_user_data < gen_nb_userdata;n_user_data++) { - for (n_depth = 0;n_depth < gen_nb_int;n_depth++) { - for (n_string = 0;n_string < gen_nb_const_xmlChar_ptr;n_string++) { - for (n_lst = 0;n_lst < gen_nb_xmlNodePtr_ptr;n_lst++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - sax = gen_xmlSAXHandlerPtr(n_sax, 1); - user_data = gen_userdata(n_user_data, 2); - depth = gen_int(n_depth, 3); - string = gen_const_xmlChar_ptr(n_string, 4); - lst = gen_xmlNodePtr_ptr(n_lst, 5); - -#ifdef LIBXML_SAX1_ENABLED - if (sax == (xmlSAXHandlerPtr)&xmlDefaultSAXHandler) user_data = NULL; -#endif - - - ret_val = xmlParseBalancedChunkMemory(doc, sax, user_data, depth, (const xmlChar *)string, lst); - desret_int(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlSAXHandlerPtr(n_sax, sax, 1); - des_userdata(n_user_data, user_data, 2); - des_int(n_depth, depth, 3); - des_const_xmlChar_ptr(n_string, (const xmlChar *)string, 4); - des_xmlNodePtr_ptr(n_lst, lst, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParseBalancedChunkMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_sax); - printf(" %d", n_user_data); - printf(" %d", n_depth); - printf(" %d", n_string); - printf(" %d", n_lst); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlParseBalancedChunkMemoryRecover(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - int ret_val; - xmlDocPtr doc; /* the document the chunk pertains to */ - int n_doc; - xmlSAXHandlerPtr sax; /* the SAX handler bloc (possibly NULL) */ - int n_sax; - void * user_data; /* The user data returned on SAX callbacks (possibly NULL) */ - int n_user_data; - int depth; /* Used for loop detection, use 0 */ - int n_depth; - xmlChar * string; /* the input string in UTF8 or ISO-Latin (zero terminated) */ - int n_string; - xmlNodePtr * lst; /* the return value for the set of parsed nodes */ - int n_lst; - int recover; /* return nodes even if the data is broken (use 0) */ - int n_recover; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_sax = 0;n_sax < gen_nb_xmlSAXHandlerPtr;n_sax++) { - for (n_user_data = 0;n_user_data < gen_nb_userdata;n_user_data++) { - for (n_depth = 0;n_depth < gen_nb_int;n_depth++) { - for (n_string = 0;n_string < gen_nb_const_xmlChar_ptr;n_string++) { - for (n_lst = 0;n_lst < gen_nb_xmlNodePtr_ptr;n_lst++) { - for (n_recover = 0;n_recover < gen_nb_int;n_recover++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - sax = gen_xmlSAXHandlerPtr(n_sax, 1); - user_data = gen_userdata(n_user_data, 2); - depth = gen_int(n_depth, 3); - string = gen_const_xmlChar_ptr(n_string, 4); - lst = gen_xmlNodePtr_ptr(n_lst, 5); - recover = gen_int(n_recover, 6); - -#ifdef LIBXML_SAX1_ENABLED - if (sax == (xmlSAXHandlerPtr)&xmlDefaultSAXHandler) user_data = NULL; -#endif - - - ret_val = xmlParseBalancedChunkMemoryRecover(doc, sax, user_data, depth, (const xmlChar *)string, lst, recover); - desret_int(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlSAXHandlerPtr(n_sax, sax, 1); - des_userdata(n_user_data, user_data, 2); - des_int(n_depth, depth, 3); - des_const_xmlChar_ptr(n_string, (const xmlChar *)string, 4); - des_xmlNodePtr_ptr(n_lst, lst, 5); - des_int(n_recover, recover, 6); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParseBalancedChunkMemoryRecover", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_sax); - printf(" %d", n_user_data); - printf(" %d", n_depth); - printf(" %d", n_string); - printf(" %d", n_lst); - printf(" %d", n_recover); - printf("\n"); - } - } - } - } - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlParseChunk(void) { - int test_ret = 0; - -#if defined(LIBXML_PUSH_ENABLED) - int mem_base; - int ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - char * chunk; /* an char array */ - int n_chunk; - int size; /* the size in byte of the chunk */ - int n_size; - int terminate; /* last chunk indicator */ - int n_terminate; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_chunk = 0;n_chunk < gen_nb_const_char_ptr;n_chunk++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - for (n_terminate = 0;n_terminate < gen_nb_int;n_terminate++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - chunk = gen_const_char_ptr(n_chunk, 1); - size = gen_int(n_size, 2); - terminate = gen_int(n_terminate, 3); - - ret_val = xmlParseChunk(ctxt, (const char *)chunk, size, terminate); - if (ctxt != NULL) {xmlFreeDoc(ctxt->myDoc); ctxt->myDoc = NULL;} - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_char_ptr(n_chunk, (const char *)chunk, 1); - des_int(n_size, size, 2); - des_int(n_terminate, terminate, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParseChunk", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_chunk); - printf(" %d", n_size); - printf(" %d", n_terminate); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlParseCtxtExternalEntity(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserCtxtPtr ctx; /* the existing parsing context */ - int n_ctx; - xmlChar * URL; /* the URL for the entity to load */ - int n_URL; - xmlChar * ID; /* the System ID for the entity to load */ - int n_ID; - xmlNodePtr * lst; /* the return value for the set of parsed nodes */ - int n_lst; - - for (n_ctx = 0;n_ctx < gen_nb_xmlParserCtxtPtr;n_ctx++) { - for (n_URL = 0;n_URL < gen_nb_const_xmlChar_ptr;n_URL++) { - for (n_ID = 0;n_ID < gen_nb_const_xmlChar_ptr;n_ID++) { - for (n_lst = 0;n_lst < gen_nb_xmlNodePtr_ptr;n_lst++) { - mem_base = xmlMemBlocks(); - ctx = gen_xmlParserCtxtPtr(n_ctx, 0); - URL = gen_const_xmlChar_ptr(n_URL, 1); - ID = gen_const_xmlChar_ptr(n_ID, 2); - lst = gen_xmlNodePtr_ptr(n_lst, 3); - - ret_val = xmlParseCtxtExternalEntity(ctx, (const xmlChar *)URL, (const xmlChar *)ID, lst); - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctx, ctx, 0); - des_const_xmlChar_ptr(n_URL, (const xmlChar *)URL, 1); - des_const_xmlChar_ptr(n_ID, (const xmlChar *)ID, 2); - des_xmlNodePtr_ptr(n_lst, lst, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParseCtxtExternalEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_URL); - printf(" %d", n_ID); - printf(" %d", n_lst); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlParseDTD(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) -#ifdef LIBXML_VALID_ENABLED - int mem_base; - xmlDtdPtr ret_val; - xmlChar * ExternalID; /* a NAME* containing the External ID of the DTD */ - int n_ExternalID; - xmlChar * SystemID; /* a NAME* containing the URL to the DTD */ - int n_SystemID; - - for (n_ExternalID = 0;n_ExternalID < gen_nb_const_xmlChar_ptr;n_ExternalID++) { - for (n_SystemID = 0;n_SystemID < gen_nb_const_xmlChar_ptr;n_SystemID++) { - mem_base = xmlMemBlocks(); - ExternalID = gen_const_xmlChar_ptr(n_ExternalID, 0); - SystemID = gen_const_xmlChar_ptr(n_SystemID, 1); - - ret_val = xmlParseDTD((const xmlChar *)ExternalID, (const xmlChar *)SystemID); - desret_xmlDtdPtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_ExternalID, (const xmlChar *)ExternalID, 0); - des_const_xmlChar_ptr(n_SystemID, (const xmlChar *)SystemID, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParseDTD", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ExternalID); - printf(" %d", n_SystemID); - printf("\n"); - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlParseDoc(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - xmlDocPtr ret_val; - xmlChar * cur; /* a pointer to an array of xmlChar */ - int n_cur; - - for (n_cur = 0;n_cur < gen_nb_const_xmlChar_ptr;n_cur++) { - mem_base = xmlMemBlocks(); - cur = gen_const_xmlChar_ptr(n_cur, 0); - - ret_val = xmlParseDoc((const xmlChar *)cur); - desret_xmlDocPtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_cur, (const xmlChar *)cur, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParseDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf("\n"); - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlParseDocument(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - - ret_val = xmlParseDocument(ctxt); - if (ctxt != NULL) {xmlFreeDoc(ctxt->myDoc); ctxt->myDoc = NULL;} - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParseDocument", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlParseEntity(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - xmlDocPtr ret_val; - const char * filename; /* the filename */ - int n_filename; - - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - mem_base = xmlMemBlocks(); - filename = gen_filepath(n_filename, 0); - - ret_val = xmlParseEntity(filename); - desret_xmlDocPtr(ret_val); - call_tests++; - des_filepath(n_filename, filename, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParseEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf("\n"); - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlParseExtParsedEnt(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - - ret_val = xmlParseExtParsedEnt(ctxt); - if (ctxt != NULL) {xmlFreeDoc(ctxt->myDoc); ctxt->myDoc = NULL;} - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParseExtParsedEnt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlParseExternalEntity(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - int ret_val; - xmlDocPtr doc; /* the document the chunk pertains to */ - int n_doc; - xmlSAXHandlerPtr sax; /* the SAX handler bloc (possibly NULL) */ - int n_sax; - void * user_data; /* The user data returned on SAX callbacks (possibly NULL) */ - int n_user_data; - int depth; /* Used for loop detection, use 0 */ - int n_depth; - xmlChar * URL; /* the URL for the entity to load */ - int n_URL; - xmlChar * ID; /* the System ID for the entity to load */ - int n_ID; - xmlNodePtr * lst; /* the return value for the set of parsed nodes */ - int n_lst; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_sax = 0;n_sax < gen_nb_xmlSAXHandlerPtr;n_sax++) { - for (n_user_data = 0;n_user_data < gen_nb_userdata;n_user_data++) { - for (n_depth = 0;n_depth < gen_nb_int;n_depth++) { - for (n_URL = 0;n_URL < gen_nb_const_xmlChar_ptr;n_URL++) { - for (n_ID = 0;n_ID < gen_nb_const_xmlChar_ptr;n_ID++) { - for (n_lst = 0;n_lst < gen_nb_xmlNodePtr_ptr;n_lst++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - sax = gen_xmlSAXHandlerPtr(n_sax, 1); - user_data = gen_userdata(n_user_data, 2); - depth = gen_int(n_depth, 3); - URL = gen_const_xmlChar_ptr(n_URL, 4); - ID = gen_const_xmlChar_ptr(n_ID, 5); - lst = gen_xmlNodePtr_ptr(n_lst, 6); - - ret_val = xmlParseExternalEntity(doc, sax, user_data, depth, (const xmlChar *)URL, (const xmlChar *)ID, lst); - desret_int(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlSAXHandlerPtr(n_sax, sax, 1); - des_userdata(n_user_data, user_data, 2); - des_int(n_depth, depth, 3); - des_const_xmlChar_ptr(n_URL, (const xmlChar *)URL, 4); - des_const_xmlChar_ptr(n_ID, (const xmlChar *)ID, 5); - des_xmlNodePtr_ptr(n_lst, lst, 6); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParseExternalEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_sax); - printf(" %d", n_user_data); - printf(" %d", n_depth); - printf(" %d", n_URL); - printf(" %d", n_ID); - printf(" %d", n_lst); - printf("\n"); - } - } - } - } - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlParseFile(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - xmlDocPtr ret_val; - const char * filename; /* the filename */ - int n_filename; - - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - mem_base = xmlMemBlocks(); - filename = gen_filepath(n_filename, 0); - - ret_val = xmlParseFile(filename); - desret_xmlDocPtr(ret_val); - call_tests++; - des_filepath(n_filename, filename, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParseFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf("\n"); - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlParseInNodeContext(void) { - int test_ret = 0; - - int mem_base; - xmlParserErrors ret_val; - xmlNodePtr node; /* the context node */ - int n_node; - char * data; /* the input string */ - int n_data; - int datalen; /* the input string length in bytes */ - int n_datalen; - int options; /* a combination of xmlParserOption */ - int n_options; - xmlNodePtr * lst; /* the return value for the set of parsed nodes */ - int n_lst; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_data = 0;n_data < gen_nb_const_char_ptr;n_data++) { - for (n_datalen = 0;n_datalen < gen_nb_int;n_datalen++) { - for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) { - for (n_lst = 0;n_lst < gen_nb_xmlNodePtr_ptr;n_lst++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - data = gen_const_char_ptr(n_data, 1); - datalen = gen_int(n_datalen, 2); - options = gen_parseroptions(n_options, 3); - lst = gen_xmlNodePtr_ptr(n_lst, 4); - - ret_val = xmlParseInNodeContext(node, (const char *)data, datalen, options, lst); - desret_xmlParserErrors(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - des_const_char_ptr(n_data, (const char *)data, 1); - des_int(n_datalen, datalen, 2); - des_parseroptions(n_options, options, 3); - des_xmlNodePtr_ptr(n_lst, lst, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParseInNodeContext", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_data); - printf(" %d", n_datalen); - printf(" %d", n_options); - printf(" %d", n_lst); - printf("\n"); - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlParseMemory(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - xmlDocPtr ret_val; - char * buffer; /* an pointer to a char array */ - int n_buffer; - int size; /* the size of the array */ - int n_size; - - for (n_buffer = 0;n_buffer < gen_nb_const_char_ptr;n_buffer++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - mem_base = xmlMemBlocks(); - buffer = gen_const_char_ptr(n_buffer, 0); - size = gen_int(n_size, 1); - - ret_val = xmlParseMemory((const char *)buffer, size); - desret_xmlDocPtr(ret_val); - call_tests++; - des_const_char_ptr(n_buffer, (const char *)buffer, 0); - des_int(n_size, size, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParseMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buffer); - printf(" %d", n_size); - printf("\n"); - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -#define gen_nb_const_xmlParserNodeInfoPtr 1 -static xmlParserNodeInfoPtr gen_const_xmlParserNodeInfoPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_const_xmlParserNodeInfoPtr(int no ATTRIBUTE_UNUSED, const xmlParserNodeInfoPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlParserAddNodeInfo(void) { - int test_ret = 0; - - int mem_base; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - xmlParserNodeInfoPtr info; /* a node info sequence pointer */ - int n_info; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_info = 0;n_info < gen_nb_const_xmlParserNodeInfoPtr;n_info++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - info = gen_const_xmlParserNodeInfoPtr(n_info, 1); - - xmlParserAddNodeInfo(ctxt, (const xmlParserNodeInfoPtr)info); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_xmlParserNodeInfoPtr(n_info, (const xmlParserNodeInfoPtr)info, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParserAddNodeInfo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_info); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -#define gen_nb_const_xmlParserCtxtPtr 1 -static xmlParserCtxtPtr gen_const_xmlParserCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_const_xmlParserCtxtPtr(int no ATTRIBUTE_UNUSED, const xmlParserCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -#define gen_nb_const_xmlNodePtr 1 -static xmlNodePtr gen_const_xmlNodePtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_const_xmlNodePtr(int no ATTRIBUTE_UNUSED, const xmlNodePtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlParserFindNodeInfo(void) { - int test_ret = 0; - - int mem_base; - const xmlParserNodeInfo * ret_val; - xmlParserCtxtPtr ctx; /* an XML parser context */ - int n_ctx; - xmlNodePtr node; /* an XML node within the tree */ - int n_node; - - for (n_ctx = 0;n_ctx < gen_nb_const_xmlParserCtxtPtr;n_ctx++) { - for (n_node = 0;n_node < gen_nb_const_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - ctx = gen_const_xmlParserCtxtPtr(n_ctx, 0); - node = gen_const_xmlNodePtr(n_node, 1); - - ret_val = xmlParserFindNodeInfo((const xmlParserCtxtPtr)ctx, (const xmlNodePtr)node); - desret_const_xmlParserNodeInfo_ptr(ret_val); - call_tests++; - des_const_xmlParserCtxtPtr(n_ctx, (const xmlParserCtxtPtr)ctx, 0); - des_const_xmlNodePtr(n_node, (const xmlNodePtr)node, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParserFindNodeInfo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf(" %d", n_node); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -#define gen_nb_const_xmlParserNodeInfoSeqPtr 1 -static xmlParserNodeInfoSeqPtr gen_const_xmlParserNodeInfoSeqPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_const_xmlParserNodeInfoSeqPtr(int no ATTRIBUTE_UNUSED, const xmlParserNodeInfoSeqPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlParserFindNodeInfoIndex(void) { - int test_ret = 0; - - int mem_base; - unsigned long ret_val; - xmlParserNodeInfoSeqPtr seq; /* a node info sequence pointer */ - int n_seq; - xmlNodePtr node; /* an XML node pointer */ - int n_node; - - for (n_seq = 0;n_seq < gen_nb_const_xmlParserNodeInfoSeqPtr;n_seq++) { - for (n_node = 0;n_node < gen_nb_const_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - seq = gen_const_xmlParserNodeInfoSeqPtr(n_seq, 0); - node = gen_const_xmlNodePtr(n_node, 1); - - ret_val = xmlParserFindNodeInfoIndex((const xmlParserNodeInfoSeqPtr)seq, (const xmlNodePtr)node); - desret_unsigned_long(ret_val); - call_tests++; - des_const_xmlParserNodeInfoSeqPtr(n_seq, (const xmlParserNodeInfoSeqPtr)seq, 0); - des_const_xmlNodePtr(n_node, (const xmlNodePtr)node, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParserFindNodeInfoIndex", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_seq); - printf(" %d", n_node); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -#define gen_nb_xmlParserInputPtr 1 -static xmlParserInputPtr gen_xmlParserInputPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlParserInputPtr(int no ATTRIBUTE_UNUSED, xmlParserInputPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlParserInputGrow(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserInputPtr in; /* an XML parser input */ - int n_in; - int len; /* an indicative size for the lookahead */ - int n_len; - - for (n_in = 0;n_in < gen_nb_xmlParserInputPtr;n_in++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - in = gen_xmlParserInputPtr(n_in, 0); - len = gen_int(n_len, 1); - - ret_val = xmlParserInputGrow(in, len); - desret_int(ret_val); - call_tests++; - des_xmlParserInputPtr(n_in, in, 0); - des_int(n_len, len, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParserInputGrow", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_in); - printf(" %d", n_len); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlParserInputRead(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserInputPtr in; /* an XML parser input */ - int n_in; - int len; /* an indicative size for the lookahead */ - int n_len; - - for (n_in = 0;n_in < gen_nb_xmlParserInputPtr;n_in++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - in = gen_xmlParserInputPtr(n_in, 0); - len = gen_int(n_len, 1); - - ret_val = xmlParserInputRead(in, len); - desret_int(ret_val); - call_tests++; - des_xmlParserInputPtr(n_in, in, 0); - des_int(n_len, len, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParserInputRead", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_in); - printf(" %d", n_len); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlPedanticParserDefault(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - int val; /* int 0 or 1 */ - int n_val; - - for (n_val = 0;n_val < gen_nb_int;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_int(n_val, 0); - - ret_val = xmlPedanticParserDefault(val); - desret_int(ret_val); - call_tests++; - des_int(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlPedanticParserDefault", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlReadDoc(void) { - int test_ret = 0; - - int mem_base; - xmlDocPtr ret_val; - xmlChar * cur; /* a pointer to a zero terminated string */ - int n_cur; - const char * URL; /* the base URL to use for the document */ - int n_URL; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of xmlParserOption */ - int n_options; - - for (n_cur = 0;n_cur < gen_nb_const_xmlChar_ptr;n_cur++) { - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) { - mem_base = xmlMemBlocks(); - cur = gen_const_xmlChar_ptr(n_cur, 0); - URL = gen_filepath(n_URL, 1); - encoding = gen_const_char_ptr(n_encoding, 2); - options = gen_parseroptions(n_options, 3); - - ret_val = xmlReadDoc((const xmlChar *)cur, URL, (const char *)encoding, options); - desret_xmlDocPtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_cur, (const xmlChar *)cur, 0); - des_filepath(n_URL, URL, 1); - des_const_char_ptr(n_encoding, (const char *)encoding, 2); - des_parseroptions(n_options, options, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlReadDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_URL); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlReadFile(void) { - int test_ret = 0; - - int mem_base; - xmlDocPtr ret_val; - const char * filename; /* a file or URL */ - int n_filename; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of xmlParserOption */ - int n_options; - - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) { - mem_base = xmlMemBlocks(); - filename = gen_filepath(n_filename, 0); - encoding = gen_const_char_ptr(n_encoding, 1); - options = gen_parseroptions(n_options, 2); - - ret_val = xmlReadFile(filename, (const char *)encoding, options); - desret_xmlDocPtr(ret_val); - call_tests++; - des_filepath(n_filename, filename, 0); - des_const_char_ptr(n_encoding, (const char *)encoding, 1); - des_parseroptions(n_options, options, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlReadFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlReadMemory(void) { - int test_ret = 0; - - int mem_base; - xmlDocPtr ret_val; - char * buffer; /* a pointer to a char array */ - int n_buffer; - int size; /* the size of the array */ - int n_size; - const char * URL; /* the base URL to use for the document */ - int n_URL; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of xmlParserOption */ - int n_options; - - for (n_buffer = 0;n_buffer < gen_nb_const_char_ptr;n_buffer++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) { - mem_base = xmlMemBlocks(); - buffer = gen_const_char_ptr(n_buffer, 0); - size = gen_int(n_size, 1); - URL = gen_filepath(n_URL, 2); - encoding = gen_const_char_ptr(n_encoding, 3); - options = gen_parseroptions(n_options, 4); - - ret_val = xmlReadMemory((const char *)buffer, size, URL, (const char *)encoding, options); - desret_xmlDocPtr(ret_val); - call_tests++; - des_const_char_ptr(n_buffer, (const char *)buffer, 0); - des_int(n_size, size, 1); - des_filepath(n_URL, URL, 2); - des_const_char_ptr(n_encoding, (const char *)encoding, 3); - des_parseroptions(n_options, options, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlReadMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buffer); - printf(" %d", n_size); - printf(" %d", n_URL); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlRecoverDoc(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - xmlDocPtr ret_val; - xmlChar * cur; /* a pointer to an array of xmlChar */ - int n_cur; - - for (n_cur = 0;n_cur < gen_nb_xmlChar_ptr;n_cur++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlChar_ptr(n_cur, 0); - - ret_val = xmlRecoverDoc(cur); - desret_xmlDocPtr(ret_val); - call_tests++; - des_xmlChar_ptr(n_cur, cur, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRecoverDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf("\n"); - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlRecoverFile(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - xmlDocPtr ret_val; - const char * filename; /* the filename */ - int n_filename; - - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - mem_base = xmlMemBlocks(); - filename = gen_filepath(n_filename, 0); - - ret_val = xmlRecoverFile(filename); - desret_xmlDocPtr(ret_val); - call_tests++; - des_filepath(n_filename, filename, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRecoverFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf("\n"); - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlRecoverMemory(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - xmlDocPtr ret_val; - char * buffer; /* an pointer to a char array */ - int n_buffer; - int size; /* the size of the array */ - int n_size; - - for (n_buffer = 0;n_buffer < gen_nb_const_char_ptr;n_buffer++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - mem_base = xmlMemBlocks(); - buffer = gen_const_char_ptr(n_buffer, 0); - size = gen_int(n_size, 1); - - ret_val = xmlRecoverMemory((const char *)buffer, size); - desret_xmlDocPtr(ret_val); - call_tests++; - des_const_char_ptr(n_buffer, (const char *)buffer, 0); - des_int(n_size, size, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRecoverMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buffer); - printf(" %d", n_size); - printf("\n"); - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlSAXParseDTD(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - xmlDtdPtr ret_val; - xmlSAXHandlerPtr sax; /* the SAX handler block */ - int n_sax; - xmlChar * ExternalID; /* a NAME* containing the External ID of the DTD */ - int n_ExternalID; - xmlChar * SystemID; /* a NAME* containing the URL to the DTD */ - int n_SystemID; - - for (n_sax = 0;n_sax < gen_nb_xmlSAXHandlerPtr;n_sax++) { - for (n_ExternalID = 0;n_ExternalID < gen_nb_const_xmlChar_ptr;n_ExternalID++) { - for (n_SystemID = 0;n_SystemID < gen_nb_const_xmlChar_ptr;n_SystemID++) { - mem_base = xmlMemBlocks(); - sax = gen_xmlSAXHandlerPtr(n_sax, 0); - ExternalID = gen_const_xmlChar_ptr(n_ExternalID, 1); - SystemID = gen_const_xmlChar_ptr(n_SystemID, 2); - - ret_val = xmlSAXParseDTD(sax, (const xmlChar *)ExternalID, (const xmlChar *)SystemID); - desret_xmlDtdPtr(ret_val); - call_tests++; - des_xmlSAXHandlerPtr(n_sax, sax, 0); - des_const_xmlChar_ptr(n_ExternalID, (const xmlChar *)ExternalID, 1); - des_const_xmlChar_ptr(n_SystemID, (const xmlChar *)SystemID, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAXParseDTD", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_sax); - printf(" %d", n_ExternalID); - printf(" %d", n_SystemID); - printf("\n"); - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlSAXParseDoc(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - xmlDocPtr ret_val; - xmlSAXHandlerPtr sax; /* the SAX handler block */ - int n_sax; - xmlChar * cur; /* a pointer to an array of xmlChar */ - int n_cur; - int recovery; /* work in recovery mode, i.e. tries to read no Well Formed documents */ - int n_recovery; - - for (n_sax = 0;n_sax < gen_nb_xmlSAXHandlerPtr;n_sax++) { - for (n_cur = 0;n_cur < gen_nb_const_xmlChar_ptr;n_cur++) { - for (n_recovery = 0;n_recovery < gen_nb_int;n_recovery++) { - mem_base = xmlMemBlocks(); - sax = gen_xmlSAXHandlerPtr(n_sax, 0); - cur = gen_const_xmlChar_ptr(n_cur, 1); - recovery = gen_int(n_recovery, 2); - - ret_val = xmlSAXParseDoc(sax, (const xmlChar *)cur, recovery); - desret_xmlDocPtr(ret_val); - call_tests++; - des_xmlSAXHandlerPtr(n_sax, sax, 0); - des_const_xmlChar_ptr(n_cur, (const xmlChar *)cur, 1); - des_int(n_recovery, recovery, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAXParseDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_sax); - printf(" %d", n_cur); - printf(" %d", n_recovery); - printf("\n"); - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlSAXParseEntity(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - xmlDocPtr ret_val; - xmlSAXHandlerPtr sax; /* the SAX handler block */ - int n_sax; - const char * filename; /* the filename */ - int n_filename; - - for (n_sax = 0;n_sax < gen_nb_xmlSAXHandlerPtr;n_sax++) { - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - mem_base = xmlMemBlocks(); - sax = gen_xmlSAXHandlerPtr(n_sax, 0); - filename = gen_filepath(n_filename, 1); - - ret_val = xmlSAXParseEntity(sax, filename); - desret_xmlDocPtr(ret_val); - call_tests++; - des_xmlSAXHandlerPtr(n_sax, sax, 0); - des_filepath(n_filename, filename, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAXParseEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_sax); - printf(" %d", n_filename); - printf("\n"); - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlSAXParseFile(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - xmlDocPtr ret_val; - xmlSAXHandlerPtr sax; /* the SAX handler block */ - int n_sax; - const char * filename; /* the filename */ - int n_filename; - int recovery; /* work in recovery mode, i.e. tries to read no Well Formed documents */ - int n_recovery; - - for (n_sax = 0;n_sax < gen_nb_xmlSAXHandlerPtr;n_sax++) { - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - for (n_recovery = 0;n_recovery < gen_nb_int;n_recovery++) { - mem_base = xmlMemBlocks(); - sax = gen_xmlSAXHandlerPtr(n_sax, 0); - filename = gen_filepath(n_filename, 1); - recovery = gen_int(n_recovery, 2); - - ret_val = xmlSAXParseFile(sax, filename, recovery); - desret_xmlDocPtr(ret_val); - call_tests++; - des_xmlSAXHandlerPtr(n_sax, sax, 0); - des_filepath(n_filename, filename, 1); - des_int(n_recovery, recovery, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAXParseFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_sax); - printf(" %d", n_filename); - printf(" %d", n_recovery); - printf("\n"); - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlSAXParseFileWithData(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - xmlDocPtr ret_val; - xmlSAXHandlerPtr sax; /* the SAX handler block */ - int n_sax; - const char * filename; /* the filename */ - int n_filename; - int recovery; /* work in recovery mode, i.e. tries to read no Well Formed documents */ - int n_recovery; - void * data; /* the userdata */ - int n_data; - - for (n_sax = 0;n_sax < gen_nb_xmlSAXHandlerPtr;n_sax++) { - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - for (n_recovery = 0;n_recovery < gen_nb_int;n_recovery++) { - for (n_data = 0;n_data < gen_nb_userdata;n_data++) { - mem_base = xmlMemBlocks(); - sax = gen_xmlSAXHandlerPtr(n_sax, 0); - filename = gen_filepath(n_filename, 1); - recovery = gen_int(n_recovery, 2); - data = gen_userdata(n_data, 3); - - ret_val = xmlSAXParseFileWithData(sax, filename, recovery, data); - desret_xmlDocPtr(ret_val); - call_tests++; - des_xmlSAXHandlerPtr(n_sax, sax, 0); - des_filepath(n_filename, filename, 1); - des_int(n_recovery, recovery, 2); - des_userdata(n_data, data, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAXParseFileWithData", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_sax); - printf(" %d", n_filename); - printf(" %d", n_recovery); - printf(" %d", n_data); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlSAXParseMemory(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - xmlDocPtr ret_val; - xmlSAXHandlerPtr sax; /* the SAX handler block */ - int n_sax; - char * buffer; /* an pointer to a char array */ - int n_buffer; - int size; /* the size of the array */ - int n_size; - int recovery; /* work in recovery mode, i.e. tries to read not Well Formed documents */ - int n_recovery; - - for (n_sax = 0;n_sax < gen_nb_xmlSAXHandlerPtr;n_sax++) { - for (n_buffer = 0;n_buffer < gen_nb_const_char_ptr;n_buffer++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - for (n_recovery = 0;n_recovery < gen_nb_int;n_recovery++) { - mem_base = xmlMemBlocks(); - sax = gen_xmlSAXHandlerPtr(n_sax, 0); - buffer = gen_const_char_ptr(n_buffer, 1); - size = gen_int(n_size, 2); - recovery = gen_int(n_recovery, 3); - - ret_val = xmlSAXParseMemory(sax, (const char *)buffer, size, recovery); - desret_xmlDocPtr(ret_val); - call_tests++; - des_xmlSAXHandlerPtr(n_sax, sax, 0); - des_const_char_ptr(n_buffer, (const char *)buffer, 1); - des_int(n_size, size, 2); - des_int(n_recovery, recovery, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAXParseMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_sax); - printf(" %d", n_buffer); - printf(" %d", n_size); - printf(" %d", n_recovery); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlSAXParseMemoryWithData(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - xmlDocPtr ret_val; - xmlSAXHandlerPtr sax; /* the SAX handler block */ - int n_sax; - char * buffer; /* an pointer to a char array */ - int n_buffer; - int size; /* the size of the array */ - int n_size; - int recovery; /* work in recovery mode, i.e. tries to read no Well Formed documents */ - int n_recovery; - void * data; /* the userdata */ - int n_data; - - for (n_sax = 0;n_sax < gen_nb_xmlSAXHandlerPtr;n_sax++) { - for (n_buffer = 0;n_buffer < gen_nb_const_char_ptr;n_buffer++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - for (n_recovery = 0;n_recovery < gen_nb_int;n_recovery++) { - for (n_data = 0;n_data < gen_nb_userdata;n_data++) { - mem_base = xmlMemBlocks(); - sax = gen_xmlSAXHandlerPtr(n_sax, 0); - buffer = gen_const_char_ptr(n_buffer, 1); - size = gen_int(n_size, 2); - recovery = gen_int(n_recovery, 3); - data = gen_userdata(n_data, 4); - - ret_val = xmlSAXParseMemoryWithData(sax, (const char *)buffer, size, recovery, data); - desret_xmlDocPtr(ret_val); - call_tests++; - des_xmlSAXHandlerPtr(n_sax, sax, 0); - des_const_char_ptr(n_buffer, (const char *)buffer, 1); - des_int(n_size, size, 2); - des_int(n_recovery, recovery, 3); - des_userdata(n_data, data, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAXParseMemoryWithData", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_sax); - printf(" %d", n_buffer); - printf(" %d", n_size); - printf(" %d", n_recovery); - printf(" %d", n_data); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlSAXUserParseFile(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - int ret_val; - xmlSAXHandlerPtr sax; /* a SAX handler */ - int n_sax; - void * user_data; /* The user data returned on SAX callbacks */ - int n_user_data; - const char * filename; /* a file name */ - int n_filename; - - for (n_sax = 0;n_sax < gen_nb_xmlSAXHandlerPtr;n_sax++) { - for (n_user_data = 0;n_user_data < gen_nb_userdata;n_user_data++) { - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - mem_base = xmlMemBlocks(); - sax = gen_xmlSAXHandlerPtr(n_sax, 0); - user_data = gen_userdata(n_user_data, 1); - filename = gen_filepath(n_filename, 2); - -#ifdef LIBXML_SAX1_ENABLED - if (sax == (xmlSAXHandlerPtr)&xmlDefaultSAXHandler) user_data = NULL; -#endif - - - ret_val = xmlSAXUserParseFile(sax, user_data, filename); - desret_int(ret_val); - call_tests++; - des_xmlSAXHandlerPtr(n_sax, sax, 0); - des_userdata(n_user_data, user_data, 1); - des_filepath(n_filename, filename, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAXUserParseFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_sax); - printf(" %d", n_user_data); - printf(" %d", n_filename); - printf("\n"); - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlSAXUserParseMemory(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - int ret_val; - xmlSAXHandlerPtr sax; /* a SAX handler */ - int n_sax; - void * user_data; /* The user data returned on SAX callbacks */ - int n_user_data; - char * buffer; /* an in-memory XML document input */ - int n_buffer; - int size; /* the length of the XML document in bytes */ - int n_size; - - for (n_sax = 0;n_sax < gen_nb_xmlSAXHandlerPtr;n_sax++) { - for (n_user_data = 0;n_user_data < gen_nb_userdata;n_user_data++) { - for (n_buffer = 0;n_buffer < gen_nb_const_char_ptr;n_buffer++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - mem_base = xmlMemBlocks(); - sax = gen_xmlSAXHandlerPtr(n_sax, 0); - user_data = gen_userdata(n_user_data, 1); - buffer = gen_const_char_ptr(n_buffer, 2); - size = gen_int(n_size, 3); - -#ifdef LIBXML_SAX1_ENABLED - if (sax == (xmlSAXHandlerPtr)&xmlDefaultSAXHandler) user_data = NULL; -#endif - - - ret_val = xmlSAXUserParseMemory(sax, user_data, (const char *)buffer, size); - desret_int(ret_val); - call_tests++; - des_xmlSAXHandlerPtr(n_sax, sax, 0); - des_userdata(n_user_data, user_data, 1); - des_const_char_ptr(n_buffer, (const char *)buffer, 2); - des_int(n_size, size, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSAXUserParseMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_sax); - printf(" %d", n_user_data); - printf(" %d", n_buffer); - printf(" %d", n_size); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlSetExternalEntityLoader(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSetFeature(void) { - int test_ret = 0; - -#if defined(LIBXML_LEGACY_ENABLED) -#ifdef LIBXML_LEGACY_ENABLED - int mem_base; - int ret_val; - xmlParserCtxtPtr ctxt; /* an XML/HTML parser context */ - int n_ctxt; - char * name; /* the feature name */ - int n_name; - void * value; /* pointer to the location of the new value */ - int n_value; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_name = 0;n_name < gen_nb_const_char_ptr;n_name++) { - for (n_value = 0;n_value < gen_nb_void_ptr;n_value++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - name = gen_const_char_ptr(n_name, 1); - value = gen_void_ptr(n_value, 2); - - ret_val = xmlSetFeature(ctxt, (const char *)name, value); - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_char_ptr(n_name, (const char *)name, 1); - des_void_ptr(n_value, value, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSetFeature", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_name); - printf(" %d", n_value); - printf("\n"); - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlSetupParserForBuffer(void) { - int test_ret = 0; - -#if defined(LIBXML_SAX1_ENABLED) -#ifdef LIBXML_SAX1_ENABLED - int mem_base; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - xmlChar * buffer; /* a xmlChar * buffer */ - int n_buffer; - const char * filename; /* a file name */ - int n_filename; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_buffer = 0;n_buffer < gen_nb_const_xmlChar_ptr;n_buffer++) { - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - buffer = gen_const_xmlChar_ptr(n_buffer, 1); - filename = gen_filepath(n_filename, 2); - - xmlSetupParserForBuffer(ctxt, (const xmlChar *)buffer, filename); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_buffer, (const xmlChar *)buffer, 1); - des_filepath(n_filename, filename, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSetupParserForBuffer", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_buffer); - printf(" %d", n_filename); - printf("\n"); - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlStopParser(void) { - int test_ret = 0; - -#ifdef LIBXML_PUSH_ENABLED - int mem_base; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - - xmlStopParser(ctxt); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStopParser", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSubstituteEntitiesDefault(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - int val; /* int 0 or 1 */ - int n_val; - - for (n_val = 0;n_val < gen_nb_int;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_int(n_val, 0); - - ret_val = xmlSubstituteEntitiesDefault(val); - desret_int(ret_val); - call_tests++; - des_int(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSubstituteEntitiesDefault", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - -static int -test_parser(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing parser : 61 of 70 functions ...\n"); - test_ret += test_xmlByteConsumed(); - test_ret += test_xmlClearNodeInfoSeq(); - test_ret += test_xmlClearParserCtxt(); - test_ret += test_xmlCreateDocParserCtxt(); - test_ret += test_xmlCreatePushParserCtxt(); - test_ret += test_xmlCtxtReadDoc(); - test_ret += test_xmlCtxtReadFile(); - test_ret += test_xmlCtxtReadMemory(); - test_ret += test_xmlCtxtReset(); - test_ret += test_xmlCtxtResetPush(); - test_ret += test_xmlCtxtUseOptions(); - test_ret += test_xmlGetExternalEntityLoader(); - test_ret += test_xmlGetFeature(); - test_ret += test_xmlGetFeaturesList(); - test_ret += test_xmlHasFeature(); - test_ret += test_xmlIOParseDTD(); - test_ret += test_xmlInitNodeInfoSeq(); - test_ret += test_xmlInitParser(); - test_ret += test_xmlInitParserCtxt(); - test_ret += test_xmlKeepBlanksDefault(); - test_ret += test_xmlLineNumbersDefault(); - test_ret += test_xmlLoadExternalEntity(); - test_ret += test_xmlNewIOInputStream(); - test_ret += test_xmlNewParserCtxt(); - test_ret += test_xmlParseBalancedChunkMemory(); - test_ret += test_xmlParseBalancedChunkMemoryRecover(); - test_ret += test_xmlParseChunk(); - test_ret += test_xmlParseCtxtExternalEntity(); - test_ret += test_xmlParseDTD(); - test_ret += test_xmlParseDoc(); - test_ret += test_xmlParseDocument(); - test_ret += test_xmlParseEntity(); - test_ret += test_xmlParseExtParsedEnt(); - test_ret += test_xmlParseExternalEntity(); - test_ret += test_xmlParseFile(); - test_ret += test_xmlParseInNodeContext(); - test_ret += test_xmlParseMemory(); - test_ret += test_xmlParserAddNodeInfo(); - test_ret += test_xmlParserFindNodeInfo(); - test_ret += test_xmlParserFindNodeInfoIndex(); - test_ret += test_xmlParserInputGrow(); - test_ret += test_xmlParserInputRead(); - test_ret += test_xmlPedanticParserDefault(); - test_ret += test_xmlReadDoc(); - test_ret += test_xmlReadFile(); - test_ret += test_xmlReadMemory(); - test_ret += test_xmlRecoverDoc(); - test_ret += test_xmlRecoverFile(); - test_ret += test_xmlRecoverMemory(); - test_ret += test_xmlSAXParseDTD(); - test_ret += test_xmlSAXParseDoc(); - test_ret += test_xmlSAXParseEntity(); - test_ret += test_xmlSAXParseFile(); - test_ret += test_xmlSAXParseFileWithData(); - test_ret += test_xmlSAXParseMemory(); - test_ret += test_xmlSAXParseMemoryWithData(); - test_ret += test_xmlSAXUserParseFile(); - test_ret += test_xmlSAXUserParseMemory(); - test_ret += test_xmlSetExternalEntityLoader(); - test_ret += test_xmlSetFeature(); - test_ret += test_xmlSetupParserForBuffer(); - test_ret += test_xmlStopParser(); - test_ret += test_xmlSubstituteEntitiesDefault(); - - if (test_ret != 0) - printf("Module parser: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_htmlCreateFileParserCtxt(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - htmlParserCtxtPtr ret_val; - const char * filename; /* the filename */ - int n_filename; - char * encoding; /* a free form C string describing the HTML document encoding, or NULL */ - int n_encoding; - - for (n_filename = 0;n_filename < gen_nb_fileoutput;n_filename++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - mem_base = xmlMemBlocks(); - filename = gen_fileoutput(n_filename, 0); - encoding = gen_const_char_ptr(n_encoding, 1); - - ret_val = htmlCreateFileParserCtxt(filename, (const char *)encoding); - desret_htmlParserCtxtPtr(ret_val); - call_tests++; - des_fileoutput(n_filename, filename, 0); - des_const_char_ptr(n_encoding, (const char *)encoding, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlCreateFileParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf(" %d", n_encoding); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_htmlInitAutoClose(void) { - int test_ret = 0; - -#if defined(LIBXML_HTML_ENABLED) - int mem_base; - - mem_base = xmlMemBlocks(); - - htmlInitAutoClose(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in htmlInitAutoClose", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_inputPop(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputPtr ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - - ret_val = inputPop(ctxt); - desret_xmlParserInputPtr(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in inputPop", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_inputPush(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - xmlParserInputPtr value; /* the parser input */ - int n_value; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_value = 0;n_value < gen_nb_xmlParserInputPtr;n_value++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - value = gen_xmlParserInputPtr(n_value, 1); - - ret_val = inputPush(ctxt, value); - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_xmlParserInputPtr(n_value, value, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in inputPush", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_value); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_namePop(void) { - int test_ret = 0; - - int mem_base; - const xmlChar * ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - - ret_val = namePop(ctxt); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in namePop", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_namePush(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - xmlChar * value; /* the element name */ - int n_value; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - value = gen_const_xmlChar_ptr(n_value, 1); - - ret_val = namePush(ctxt, (const xmlChar *)value); - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in namePush", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_value); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_nodePop(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - - ret_val = nodePop(ctxt); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in nodePop", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_nodePush(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - xmlNodePtr value; /* the element node */ - int n_value; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_value = 0;n_value < gen_nb_xmlNodePtr;n_value++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - value = gen_xmlNodePtr(n_value, 1); - - ret_val = nodePush(ctxt, value); - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_value, value, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in nodePush", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_value); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCheckLanguageID(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlChar * lang; /* pointer to the string value */ - int n_lang; - - for (n_lang = 0;n_lang < gen_nb_const_xmlChar_ptr;n_lang++) { - mem_base = xmlMemBlocks(); - lang = gen_const_xmlChar_ptr(n_lang, 0); - - ret_val = xmlCheckLanguageID((const xmlChar *)lang); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_lang, (const xmlChar *)lang, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCheckLanguageID", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_lang); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCopyChar(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - int len; /* Ignored, compatibility */ - int n_len; - xmlChar * out; /* pointer to an array of xmlChar */ - int n_out; - int val; /* the char value */ - int n_val; - - for (n_len = 0;n_len < gen_nb_int;n_len++) { - for (n_out = 0;n_out < gen_nb_xmlChar_ptr;n_out++) { - for (n_val = 0;n_val < gen_nb_int;n_val++) { - mem_base = xmlMemBlocks(); - len = gen_int(n_len, 0); - out = gen_xmlChar_ptr(n_out, 1); - val = gen_int(n_val, 2); - - ret_val = xmlCopyChar(len, out, val); - desret_int(ret_val); - call_tests++; - des_int(n_len, len, 0); - des_xmlChar_ptr(n_out, out, 1); - des_int(n_val, val, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCopyChar", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_len); - printf(" %d", n_out); - printf(" %d", n_val); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCopyCharMultiByte(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlChar * out; /* pointer to an array of xmlChar */ - int n_out; - int val; /* the char value */ - int n_val; - - for (n_out = 0;n_out < gen_nb_xmlChar_ptr;n_out++) { - for (n_val = 0;n_val < gen_nb_int;n_val++) { - mem_base = xmlMemBlocks(); - out = gen_xmlChar_ptr(n_out, 0); - val = gen_int(n_val, 1); - - ret_val = xmlCopyCharMultiByte(out, val); - desret_int(ret_val); - call_tests++; - des_xmlChar_ptr(n_out, out, 0); - des_int(n_val, val, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCopyCharMultiByte", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_out); - printf(" %d", n_val); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCreateEntityParserCtxt(void) { - int test_ret = 0; - - int mem_base; - xmlParserCtxtPtr ret_val; - xmlChar * URL; /* the entity URL */ - int n_URL; - xmlChar * ID; /* the entity PUBLIC ID */ - int n_ID; - xmlChar * base; /* a possible base for the target URI */ - int n_base; - - for (n_URL = 0;n_URL < gen_nb_const_xmlChar_ptr;n_URL++) { - for (n_ID = 0;n_ID < gen_nb_const_xmlChar_ptr;n_ID++) { - for (n_base = 0;n_base < gen_nb_const_xmlChar_ptr;n_base++) { - mem_base = xmlMemBlocks(); - URL = gen_const_xmlChar_ptr(n_URL, 0); - ID = gen_const_xmlChar_ptr(n_ID, 1); - base = gen_const_xmlChar_ptr(n_base, 2); - - ret_val = xmlCreateEntityParserCtxt((const xmlChar *)URL, (const xmlChar *)ID, (const xmlChar *)base); - desret_xmlParserCtxtPtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_URL, (const xmlChar *)URL, 0); - des_const_xmlChar_ptr(n_ID, (const xmlChar *)ID, 1); - des_const_xmlChar_ptr(n_base, (const xmlChar *)base, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCreateEntityParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URL); - printf(" %d", n_ID); - printf(" %d", n_base); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCreateFileParserCtxt(void) { - int test_ret = 0; - - int mem_base; - xmlParserCtxtPtr ret_val; - const char * filename; /* the filename */ - int n_filename; - - for (n_filename = 0;n_filename < gen_nb_fileoutput;n_filename++) { - mem_base = xmlMemBlocks(); - filename = gen_fileoutput(n_filename, 0); - - ret_val = xmlCreateFileParserCtxt(filename); - desret_xmlParserCtxtPtr(ret_val); - call_tests++; - des_fileoutput(n_filename, filename, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCreateFileParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCreateMemoryParserCtxt(void) { - int test_ret = 0; - - int mem_base; - xmlParserCtxtPtr ret_val; - char * buffer; /* a pointer to a char array */ - int n_buffer; - int size; /* the size of the array */ - int n_size; - - for (n_buffer = 0;n_buffer < gen_nb_const_char_ptr;n_buffer++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - mem_base = xmlMemBlocks(); - buffer = gen_const_char_ptr(n_buffer, 0); - size = gen_int(n_size, 1); - - ret_val = xmlCreateMemoryParserCtxt((const char *)buffer, size); - desret_xmlParserCtxtPtr(ret_val); - call_tests++; - des_const_char_ptr(n_buffer, (const char *)buffer, 0); - des_int(n_size, size, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCreateMemoryParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buffer); - printf(" %d", n_size); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCreateURLParserCtxt(void) { - int test_ret = 0; - - int mem_base; - xmlParserCtxtPtr ret_val; - const char * filename; /* the filename or URL */ - int n_filename; - int options; /* a combination of xmlParserOption */ - int n_options; - - for (n_filename = 0;n_filename < gen_nb_fileoutput;n_filename++) { - for (n_options = 0;n_options < gen_nb_int;n_options++) { - mem_base = xmlMemBlocks(); - filename = gen_fileoutput(n_filename, 0); - options = gen_int(n_options, 1); - - ret_val = xmlCreateURLParserCtxt(filename, options); - desret_xmlParserCtxtPtr(ret_val); - call_tests++; - des_fileoutput(n_filename, filename, 0); - des_int(n_options, options, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCreateURLParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf(" %d", n_options); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCurrentChar(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserCtxtPtr ctxt; /* the XML parser context */ - int n_ctxt; - int * len; /* pointer to the length of the char read */ - int n_len; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_len = 0;n_len < gen_nb_int_ptr;n_len++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - len = gen_int_ptr(n_len, 1); - - ret_val = xmlCurrentChar(ctxt, len); - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_int_ptr(n_len, len, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCurrentChar", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_len); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlErrMemory(void) { - int test_ret = 0; - - int mem_base; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - char * extra; /* extra informations */ - int n_extra; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_extra = 0;n_extra < gen_nb_const_char_ptr;n_extra++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - extra = gen_const_char_ptr(n_extra, 1); - - xmlErrMemory(ctxt, (const char *)extra); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_char_ptr(n_extra, (const char *)extra, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlErrMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_extra); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlIsLetter(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - int c; /* an unicode character (int) */ - int n_c; - - for (n_c = 0;n_c < gen_nb_int;n_c++) { - mem_base = xmlMemBlocks(); - c = gen_int(n_c, 0); - - ret_val = xmlIsLetter(c); - desret_int(ret_val); - call_tests++; - des_int(n_c, c, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIsLetter", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_c); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewEntityInputStream(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputPtr ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - xmlEntityPtr entity; /* an Entity pointer */ - int n_entity; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_entity = 0;n_entity < gen_nb_xmlEntityPtr;n_entity++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - entity = gen_xmlEntityPtr(n_entity, 1); - - ret_val = xmlNewEntityInputStream(ctxt, entity); - desret_xmlParserInputPtr(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_xmlEntityPtr(n_entity, entity, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewEntityInputStream", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_entity); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewInputFromFile(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputPtr ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - const char * filename; /* the filename to use as entity */ - int n_filename; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - filename = gen_filepath(n_filename, 1); - - ret_val = xmlNewInputFromFile(ctxt, filename); - desret_xmlParserInputPtr(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_filepath(n_filename, filename, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewInputFromFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_filename); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewInputStream(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputPtr ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - - ret_val = xmlNewInputStream(ctxt); - desret_xmlParserInputPtr(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewInputStream", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewStringInputStream(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputPtr ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - xmlChar * buffer; /* an memory buffer */ - int n_buffer; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_buffer = 0;n_buffer < gen_nb_const_xmlChar_ptr;n_buffer++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - buffer = gen_const_xmlChar_ptr(n_buffer, 1); - - ret_val = xmlNewStringInputStream(ctxt, (const xmlChar *)buffer); - desret_xmlParserInputPtr(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_buffer, (const xmlChar *)buffer, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewStringInputStream", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_buffer); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNextChar(void) { - int test_ret = 0; - - int mem_base; - xmlParserCtxtPtr ctxt; /* the XML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - - xmlNextChar(ctxt); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNextChar", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlParserInputShrink(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputPtr in; /* an XML parser input */ - int n_in; - - for (n_in = 0;n_in < gen_nb_xmlParserInputPtr;n_in++) { - mem_base = xmlMemBlocks(); - in = gen_xmlParserInputPtr(n_in, 0); - - xmlParserInputShrink(in); - call_tests++; - des_xmlParserInputPtr(n_in, in, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParserInputShrink", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_in); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlPopInput(void) { - int test_ret = 0; - - int mem_base; - xmlChar ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - - ret_val = xmlPopInput(ctxt); - desret_xmlChar(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlPopInput", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlPushInput(void) { - int test_ret = 0; - - int mem_base; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - xmlParserInputPtr input; /* an XML parser input fragment (entity, XML fragment ...). */ - int n_input; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_input = 0;n_input < gen_nb_xmlParserInputPtr;n_input++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - input = gen_xmlParserInputPtr(n_input, 1); - - xmlPushInput(ctxt, input); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_xmlParserInputPtr(n_input, input, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlPushInput", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_input); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSetEntityReferenceFunc(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSplitQName(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - xmlChar * name; /* an XML parser context */ - int n_name; - xmlChar ** prefix; /* a xmlChar ** */ - int n_prefix; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_prefix = 0;n_prefix < gen_nb_xmlChar_ptr_ptr;n_prefix++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - prefix = gen_xmlChar_ptr_ptr(n_prefix, 2); - - ret_val = xmlSplitQName(ctxt, (const xmlChar *)name, prefix); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_xmlChar_ptr_ptr(n_prefix, prefix, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSplitQName", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_name); - printf(" %d", n_prefix); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStringCurrentChar(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserCtxtPtr ctxt; /* the XML parser context */ - int n_ctxt; - xmlChar * cur; /* pointer to the beginning of the char */ - int n_cur; - int * len; /* pointer to the length of the char read */ - int n_len; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_cur = 0;n_cur < gen_nb_const_xmlChar_ptr;n_cur++) { - for (n_len = 0;n_len < gen_nb_int_ptr;n_len++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - cur = gen_const_xmlChar_ptr(n_cur, 1); - len = gen_int_ptr(n_len, 2); - - ret_val = xmlStringCurrentChar(ctxt, (const xmlChar *)cur, len); - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_cur, (const xmlChar *)cur, 1); - des_int_ptr(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStringCurrentChar", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_cur); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStringDecodeEntities(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlParserCtxtPtr ctxt; /* the parser context */ - int n_ctxt; - xmlChar * str; /* the input string */ - int n_str; - int what; /* combination of XML_SUBSTITUTE_REF and XML_SUBSTITUTE_PEREF */ - int n_what; - xmlChar end; /* an end marker xmlChar, 0 if none */ - int n_end; - xmlChar end2; /* an end marker xmlChar, 0 if none */ - int n_end2; - xmlChar end3; /* an end marker xmlChar, 0 if none */ - int n_end3; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - for (n_what = 0;n_what < gen_nb_int;n_what++) { - for (n_end = 0;n_end < gen_nb_xmlChar;n_end++) { - for (n_end2 = 0;n_end2 < gen_nb_xmlChar;n_end2++) { - for (n_end3 = 0;n_end3 < gen_nb_xmlChar;n_end3++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - str = gen_const_xmlChar_ptr(n_str, 1); - what = gen_int(n_what, 2); - end = gen_xmlChar(n_end, 3); - end2 = gen_xmlChar(n_end2, 4); - end3 = gen_xmlChar(n_end3, 5); - - ret_val = xmlStringDecodeEntities(ctxt, (const xmlChar *)str, what, end, end2, end3); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 1); - des_int(n_what, what, 2); - des_xmlChar(n_end, end, 3); - des_xmlChar(n_end2, end2, 4); - des_xmlChar(n_end3, end3, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStringDecodeEntities", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_str); - printf(" %d", n_what); - printf(" %d", n_end); - printf(" %d", n_end2); - printf(" %d", n_end3); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStringLenDecodeEntities(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlParserCtxtPtr ctxt; /* the parser context */ - int n_ctxt; - xmlChar * str; /* the input string */ - int n_str; - int len; /* the string length */ - int n_len; - int what; /* combination of XML_SUBSTITUTE_REF and XML_SUBSTITUTE_PEREF */ - int n_what; - xmlChar end; /* an end marker xmlChar, 0 if none */ - int n_end; - xmlChar end2; /* an end marker xmlChar, 0 if none */ - int n_end2; - xmlChar end3; /* an end marker xmlChar, 0 if none */ - int n_end3; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - for (n_what = 0;n_what < gen_nb_int;n_what++) { - for (n_end = 0;n_end < gen_nb_xmlChar;n_end++) { - for (n_end2 = 0;n_end2 < gen_nb_xmlChar;n_end2++) { - for (n_end3 = 0;n_end3 < gen_nb_xmlChar;n_end3++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - str = gen_const_xmlChar_ptr(n_str, 1); - len = gen_int(n_len, 2); - what = gen_int(n_what, 3); - end = gen_xmlChar(n_end, 4); - end2 = gen_xmlChar(n_end2, 5); - end3 = gen_xmlChar(n_end3, 6); - - ret_val = xmlStringLenDecodeEntities(ctxt, (const xmlChar *)str, len, what, end, end2, end3); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 1); - des_int(n_len, len, 2); - des_int(n_what, what, 3); - des_xmlChar(n_end, end, 4); - des_xmlChar(n_end2, end2, 5); - des_xmlChar(n_end3, end3, 6); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStringLenDecodeEntities", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_str); - printf(" %d", n_len); - printf(" %d", n_what); - printf(" %d", n_end); - printf(" %d", n_end2); - printf(" %d", n_end3); - printf("\n"); - } - } - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSwitchEncoding(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserCtxtPtr ctxt; /* the parser context */ - int n_ctxt; - xmlCharEncoding enc; /* the encoding value (number) */ - int n_enc; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_enc = 0;n_enc < gen_nb_xmlCharEncoding;n_enc++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - enc = gen_xmlCharEncoding(n_enc, 1); - - ret_val = xmlSwitchEncoding(ctxt, enc); - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_xmlCharEncoding(n_enc, enc, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSwitchEncoding", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_enc); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSwitchInputEncoding(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserCtxtPtr ctxt; /* the parser context */ - int n_ctxt; - xmlParserInputPtr input; /* the input stream */ - int n_input; - xmlCharEncodingHandlerPtr handler; /* the encoding handler */ - int n_handler; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_input = 0;n_input < gen_nb_xmlParserInputPtr;n_input++) { - for (n_handler = 0;n_handler < gen_nb_xmlCharEncodingHandlerPtr;n_handler++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - input = gen_xmlParserInputPtr(n_input, 1); - handler = gen_xmlCharEncodingHandlerPtr(n_handler, 2); - - ret_val = xmlSwitchInputEncoding(ctxt, input, handler); - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_xmlParserInputPtr(n_input, input, 1); - des_xmlCharEncodingHandlerPtr(n_handler, handler, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSwitchInputEncoding", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_input); - printf(" %d", n_handler); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSwitchToEncoding(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserCtxtPtr ctxt; /* the parser context */ - int n_ctxt; - xmlCharEncodingHandlerPtr handler; /* the encoding handler */ - int n_handler; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_handler = 0;n_handler < gen_nb_xmlCharEncodingHandlerPtr;n_handler++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - handler = gen_xmlCharEncodingHandlerPtr(n_handler, 1); - - ret_val = xmlSwitchToEncoding(ctxt, handler); - desret_int(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_xmlCharEncodingHandlerPtr(n_handler, handler, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSwitchToEncoding", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_handler); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - -static int -test_parserInternals(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing parserInternals : 33 of 90 functions ...\n"); - test_ret += test_htmlCreateFileParserCtxt(); - test_ret += test_htmlInitAutoClose(); - test_ret += test_inputPop(); - test_ret += test_inputPush(); - test_ret += test_namePop(); - test_ret += test_namePush(); - test_ret += test_nodePop(); - test_ret += test_nodePush(); - test_ret += test_xmlCheckLanguageID(); - test_ret += test_xmlCopyChar(); - test_ret += test_xmlCopyCharMultiByte(); - test_ret += test_xmlCreateEntityParserCtxt(); - test_ret += test_xmlCreateFileParserCtxt(); - test_ret += test_xmlCreateMemoryParserCtxt(); - test_ret += test_xmlCreateURLParserCtxt(); - test_ret += test_xmlCurrentChar(); - test_ret += test_xmlErrMemory(); - test_ret += test_xmlIsLetter(); - test_ret += test_xmlNewEntityInputStream(); - test_ret += test_xmlNewInputFromFile(); - test_ret += test_xmlNewInputStream(); - test_ret += test_xmlNewStringInputStream(); - test_ret += test_xmlNextChar(); - test_ret += test_xmlParserInputShrink(); - test_ret += test_xmlPopInput(); - test_ret += test_xmlPushInput(); - test_ret += test_xmlSetEntityReferenceFunc(); - test_ret += test_xmlSplitQName(); - test_ret += test_xmlStringCurrentChar(); - test_ret += test_xmlStringDecodeEntities(); - test_ret += test_xmlStringLenDecodeEntities(); - test_ret += test_xmlSwitchEncoding(); - test_ret += test_xmlSwitchInputEncoding(); - test_ret += test_xmlSwitchToEncoding(); - - if (test_ret != 0) - printf("Module parserInternals: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlPatternFromRoot(void) { - int test_ret = 0; - -#if defined(LIBXML_PATTERN_ENABLED) - int mem_base; - int ret_val; - xmlPatternPtr comp; /* the precompiled pattern */ - int n_comp; - - for (n_comp = 0;n_comp < gen_nb_xmlPatternPtr;n_comp++) { - mem_base = xmlMemBlocks(); - comp = gen_xmlPatternPtr(n_comp, 0); - - ret_val = xmlPatternFromRoot(comp); - desret_int(ret_val); - call_tests++; - des_xmlPatternPtr(n_comp, comp, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlPatternFromRoot", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_comp); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlPatternGetStreamCtxt(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlPatternMatch(void) { - int test_ret = 0; - -#if defined(LIBXML_PATTERN_ENABLED) - int mem_base; - int ret_val; - xmlPatternPtr comp; /* the precompiled pattern */ - int n_comp; - xmlNodePtr node; /* a node */ - int n_node; - - for (n_comp = 0;n_comp < gen_nb_xmlPatternPtr;n_comp++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - comp = gen_xmlPatternPtr(n_comp, 0); - node = gen_xmlNodePtr(n_node, 1); - - ret_val = xmlPatternMatch(comp, node); - desret_int(ret_val); - call_tests++; - des_xmlPatternPtr(n_comp, comp, 0); - des_xmlNodePtr(n_node, node, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlPatternMatch", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_comp); - printf(" %d", n_node); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlPatternMaxDepth(void) { - int test_ret = 0; - -#if defined(LIBXML_PATTERN_ENABLED) - int mem_base; - int ret_val; - xmlPatternPtr comp; /* the precompiled pattern */ - int n_comp; - - for (n_comp = 0;n_comp < gen_nb_xmlPatternPtr;n_comp++) { - mem_base = xmlMemBlocks(); - comp = gen_xmlPatternPtr(n_comp, 0); - - ret_val = xmlPatternMaxDepth(comp); - desret_int(ret_val); - call_tests++; - des_xmlPatternPtr(n_comp, comp, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlPatternMaxDepth", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_comp); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlPatternMinDepth(void) { - int test_ret = 0; - -#if defined(LIBXML_PATTERN_ENABLED) - int mem_base; - int ret_val; - xmlPatternPtr comp; /* the precompiled pattern */ - int n_comp; - - for (n_comp = 0;n_comp < gen_nb_xmlPatternPtr;n_comp++) { - mem_base = xmlMemBlocks(); - comp = gen_xmlPatternPtr(n_comp, 0); - - ret_val = xmlPatternMinDepth(comp); - desret_int(ret_val); - call_tests++; - des_xmlPatternPtr(n_comp, comp, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlPatternMinDepth", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_comp); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlPatternStreamable(void) { - int test_ret = 0; - -#if defined(LIBXML_PATTERN_ENABLED) - int mem_base; - int ret_val; - xmlPatternPtr comp; /* the precompiled pattern */ - int n_comp; - - for (n_comp = 0;n_comp < gen_nb_xmlPatternPtr;n_comp++) { - mem_base = xmlMemBlocks(); - comp = gen_xmlPatternPtr(n_comp, 0); - - ret_val = xmlPatternStreamable(comp); - desret_int(ret_val); - call_tests++; - des_xmlPatternPtr(n_comp, comp, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlPatternStreamable", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_comp); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlPatterncompile(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - -#ifdef LIBXML_PATTERN_ENABLED - -#define gen_nb_xmlStreamCtxtPtr 1 -static xmlStreamCtxtPtr gen_xmlStreamCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlStreamCtxtPtr(int no ATTRIBUTE_UNUSED, xmlStreamCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlStreamPop(void) { - int test_ret = 0; - -#if defined(LIBXML_PATTERN_ENABLED) - int mem_base; - int ret_val; - xmlStreamCtxtPtr stream; /* the stream context */ - int n_stream; - - for (n_stream = 0;n_stream < gen_nb_xmlStreamCtxtPtr;n_stream++) { - mem_base = xmlMemBlocks(); - stream = gen_xmlStreamCtxtPtr(n_stream, 0); - - ret_val = xmlStreamPop(stream); - desret_int(ret_val); - call_tests++; - des_xmlStreamCtxtPtr(n_stream, stream, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStreamPop", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_stream); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlStreamPush(void) { - int test_ret = 0; - -#if defined(LIBXML_PATTERN_ENABLED) - int mem_base; - int ret_val; - xmlStreamCtxtPtr stream; /* the stream context */ - int n_stream; - xmlChar * name; /* the current name */ - int n_name; - xmlChar * ns; /* the namespace name */ - int n_ns; - - for (n_stream = 0;n_stream < gen_nb_xmlStreamCtxtPtr;n_stream++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_ns = 0;n_ns < gen_nb_const_xmlChar_ptr;n_ns++) { - mem_base = xmlMemBlocks(); - stream = gen_xmlStreamCtxtPtr(n_stream, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - ns = gen_const_xmlChar_ptr(n_ns, 2); - - ret_val = xmlStreamPush(stream, (const xmlChar *)name, (const xmlChar *)ns); - desret_int(ret_val); - call_tests++; - des_xmlStreamCtxtPtr(n_stream, stream, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_ns, (const xmlChar *)ns, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStreamPush", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_stream); - printf(" %d", n_name); - printf(" %d", n_ns); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlStreamPushAttr(void) { - int test_ret = 0; - -#if defined(LIBXML_PATTERN_ENABLED) - int mem_base; - int ret_val; - xmlStreamCtxtPtr stream; /* the stream context */ - int n_stream; - xmlChar * name; /* the current name */ - int n_name; - xmlChar * ns; /* the namespace name */ - int n_ns; - - for (n_stream = 0;n_stream < gen_nb_xmlStreamCtxtPtr;n_stream++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_ns = 0;n_ns < gen_nb_const_xmlChar_ptr;n_ns++) { - mem_base = xmlMemBlocks(); - stream = gen_xmlStreamCtxtPtr(n_stream, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - ns = gen_const_xmlChar_ptr(n_ns, 2); - - ret_val = xmlStreamPushAttr(stream, (const xmlChar *)name, (const xmlChar *)ns); - desret_int(ret_val); - call_tests++; - des_xmlStreamCtxtPtr(n_stream, stream, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_ns, (const xmlChar *)ns, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStreamPushAttr", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_stream); - printf(" %d", n_name); - printf(" %d", n_ns); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlStreamPushNode(void) { - int test_ret = 0; - -#if defined(LIBXML_PATTERN_ENABLED) - int mem_base; - int ret_val; - xmlStreamCtxtPtr stream; /* the stream context */ - int n_stream; - xmlChar * name; /* the current name */ - int n_name; - xmlChar * ns; /* the namespace name */ - int n_ns; - int nodeType; /* the type of the node being pushed */ - int n_nodeType; - - for (n_stream = 0;n_stream < gen_nb_xmlStreamCtxtPtr;n_stream++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_ns = 0;n_ns < gen_nb_const_xmlChar_ptr;n_ns++) { - for (n_nodeType = 0;n_nodeType < gen_nb_int;n_nodeType++) { - mem_base = xmlMemBlocks(); - stream = gen_xmlStreamCtxtPtr(n_stream, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - ns = gen_const_xmlChar_ptr(n_ns, 2); - nodeType = gen_int(n_nodeType, 3); - - ret_val = xmlStreamPushNode(stream, (const xmlChar *)name, (const xmlChar *)ns, nodeType); - desret_int(ret_val); - call_tests++; - des_xmlStreamCtxtPtr(n_stream, stream, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_ns, (const xmlChar *)ns, 2); - des_int(n_nodeType, nodeType, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStreamPushNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_stream); - printf(" %d", n_name); - printf(" %d", n_ns); - printf(" %d", n_nodeType); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlStreamWantsAnyNode(void) { - int test_ret = 0; - -#if defined(LIBXML_PATTERN_ENABLED) - int mem_base; - int ret_val; - xmlStreamCtxtPtr streamCtxt; /* the stream context */ - int n_streamCtxt; - - for (n_streamCtxt = 0;n_streamCtxt < gen_nb_xmlStreamCtxtPtr;n_streamCtxt++) { - mem_base = xmlMemBlocks(); - streamCtxt = gen_xmlStreamCtxtPtr(n_streamCtxt, 0); - - ret_val = xmlStreamWantsAnyNode(streamCtxt); - desret_int(ret_val); - call_tests++; - des_xmlStreamCtxtPtr(n_streamCtxt, streamCtxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStreamWantsAnyNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_streamCtxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_pattern(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing pattern : 10 of 15 functions ...\n"); - test_ret += test_xmlPatternFromRoot(); - test_ret += test_xmlPatternGetStreamCtxt(); - test_ret += test_xmlPatternMatch(); - test_ret += test_xmlPatternMaxDepth(); - test_ret += test_xmlPatternMinDepth(); - test_ret += test_xmlPatternStreamable(); - test_ret += test_xmlPatterncompile(); - test_ret += test_xmlStreamPop(); - test_ret += test_xmlStreamPush(); - test_ret += test_xmlStreamPushAttr(); - test_ret += test_xmlStreamPushNode(); - test_ret += test_xmlStreamWantsAnyNode(); - - if (test_ret != 0) - printf("Module pattern: %d errors\n", test_ret); - return(test_ret); -} -#ifdef LIBXML_SCHEMAS_ENABLED - -#define gen_nb_xmlRelaxNGPtr 1 -static xmlRelaxNGPtr gen_xmlRelaxNGPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlRelaxNGPtr(int no ATTRIBUTE_UNUSED, xmlRelaxNGPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlRelaxNGDump(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - FILE * output; /* the file output */ - int n_output; - xmlRelaxNGPtr schema; /* a schema structure */ - int n_schema; - - for (n_output = 0;n_output < gen_nb_FILE_ptr;n_output++) { - for (n_schema = 0;n_schema < gen_nb_xmlRelaxNGPtr;n_schema++) { - mem_base = xmlMemBlocks(); - output = gen_FILE_ptr(n_output, 0); - schema = gen_xmlRelaxNGPtr(n_schema, 1); - - xmlRelaxNGDump(output, schema); - call_tests++; - des_FILE_ptr(n_output, output, 0); - des_xmlRelaxNGPtr(n_schema, schema, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRelaxNGDump", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_schema); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRelaxNGDumpTree(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - FILE * output; /* the file output */ - int n_output; - xmlRelaxNGPtr schema; /* a schema structure */ - int n_schema; - - for (n_output = 0;n_output < gen_nb_FILE_ptr;n_output++) { - for (n_schema = 0;n_schema < gen_nb_xmlRelaxNGPtr;n_schema++) { - mem_base = xmlMemBlocks(); - output = gen_FILE_ptr(n_output, 0); - schema = gen_xmlRelaxNGPtr(n_schema, 1); - - xmlRelaxNGDumpTree(output, schema); - call_tests++; - des_FILE_ptr(n_output, output, 0); - des_xmlRelaxNGPtr(n_schema, schema, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRelaxNGDumpTree", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_schema); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -#ifdef LIBXML_SCHEMAS_ENABLED - -#define gen_nb_xmlRelaxNGParserCtxtPtr 1 -static xmlRelaxNGParserCtxtPtr gen_xmlRelaxNGParserCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlRelaxNGParserCtxtPtr(int no ATTRIBUTE_UNUSED, xmlRelaxNGParserCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - -#ifdef LIBXML_SCHEMAS_ENABLED - -#define gen_nb_xmlRelaxNGValidityErrorFunc_ptr 1 -static xmlRelaxNGValidityErrorFunc * gen_xmlRelaxNGValidityErrorFunc_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlRelaxNGValidityErrorFunc_ptr(int no ATTRIBUTE_UNUSED, xmlRelaxNGValidityErrorFunc * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - -#ifdef LIBXML_SCHEMAS_ENABLED - -#define gen_nb_xmlRelaxNGValidityWarningFunc_ptr 1 -static xmlRelaxNGValidityWarningFunc * gen_xmlRelaxNGValidityWarningFunc_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlRelaxNGValidityWarningFunc_ptr(int no ATTRIBUTE_UNUSED, xmlRelaxNGValidityWarningFunc * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - -#ifdef LIBXML_SCHEMAS_ENABLED - -#define gen_nb_void_ptr_ptr 1 -static void ** gen_void_ptr_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_void_ptr_ptr(int no ATTRIBUTE_UNUSED, void ** val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlRelaxNGGetParserErrors(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlRelaxNGParserCtxtPtr ctxt; /* a Relax-NG validation context */ - int n_ctxt; - xmlRelaxNGValidityErrorFunc * err; /* the error callback result */ - int n_err; - xmlRelaxNGValidityWarningFunc * warn; /* the warning callback result */ - int n_warn; - void ** ctx; /* contextual data for the callbacks result */ - int n_ctx; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlRelaxNGParserCtxtPtr;n_ctxt++) { - for (n_err = 0;n_err < gen_nb_xmlRelaxNGValidityErrorFunc_ptr;n_err++) { - for (n_warn = 0;n_warn < gen_nb_xmlRelaxNGValidityWarningFunc_ptr;n_warn++) { - for (n_ctx = 0;n_ctx < gen_nb_void_ptr_ptr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlRelaxNGParserCtxtPtr(n_ctxt, 0); - err = gen_xmlRelaxNGValidityErrorFunc_ptr(n_err, 1); - warn = gen_xmlRelaxNGValidityWarningFunc_ptr(n_warn, 2); - ctx = gen_void_ptr_ptr(n_ctx, 3); - - ret_val = xmlRelaxNGGetParserErrors(ctxt, err, warn, ctx); - desret_int(ret_val); - call_tests++; - des_xmlRelaxNGParserCtxtPtr(n_ctxt, ctxt, 0); - des_xmlRelaxNGValidityErrorFunc_ptr(n_err, err, 1); - des_xmlRelaxNGValidityWarningFunc_ptr(n_warn, warn, 2); - des_void_ptr_ptr(n_ctx, ctx, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRelaxNGGetParserErrors", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_err); - printf(" %d", n_warn); - printf(" %d", n_ctx); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -#ifdef LIBXML_SCHEMAS_ENABLED - -#define gen_nb_xmlRelaxNGValidCtxtPtr 1 -static xmlRelaxNGValidCtxtPtr gen_xmlRelaxNGValidCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlRelaxNGValidCtxtPtr(int no ATTRIBUTE_UNUSED, xmlRelaxNGValidCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlRelaxNGGetValidErrors(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlRelaxNGValidCtxtPtr ctxt; /* a Relax-NG validation context */ - int n_ctxt; - xmlRelaxNGValidityErrorFunc * err; /* the error function result */ - int n_err; - xmlRelaxNGValidityWarningFunc * warn; /* the warning function result */ - int n_warn; - void ** ctx; /* the functions context result */ - int n_ctx; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlRelaxNGValidCtxtPtr;n_ctxt++) { - for (n_err = 0;n_err < gen_nb_xmlRelaxNGValidityErrorFunc_ptr;n_err++) { - for (n_warn = 0;n_warn < gen_nb_xmlRelaxNGValidityWarningFunc_ptr;n_warn++) { - for (n_ctx = 0;n_ctx < gen_nb_void_ptr_ptr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlRelaxNGValidCtxtPtr(n_ctxt, 0); - err = gen_xmlRelaxNGValidityErrorFunc_ptr(n_err, 1); - warn = gen_xmlRelaxNGValidityWarningFunc_ptr(n_warn, 2); - ctx = gen_void_ptr_ptr(n_ctx, 3); - - ret_val = xmlRelaxNGGetValidErrors(ctxt, err, warn, ctx); - desret_int(ret_val); - call_tests++; - des_xmlRelaxNGValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlRelaxNGValidityErrorFunc_ptr(n_err, err, 1); - des_xmlRelaxNGValidityWarningFunc_ptr(n_warn, warn, 2); - des_void_ptr_ptr(n_ctx, ctx, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRelaxNGGetValidErrors", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_err); - printf(" %d", n_warn); - printf(" %d", n_ctx); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRelaxNGInitTypes(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - - mem_base = xmlMemBlocks(); - - ret_val = xmlRelaxNGInitTypes(); - desret_int(ret_val); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRelaxNGInitTypes", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRelaxNGNewDocParserCtxt(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - xmlRelaxNGParserCtxtPtr ret_val; - xmlDocPtr doc; /* a preparsed document tree */ - int n_doc; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - - ret_val = xmlRelaxNGNewDocParserCtxt(doc); - desret_xmlRelaxNGParserCtxtPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRelaxNGNewDocParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRelaxNGNewMemParserCtxt(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - xmlRelaxNGParserCtxtPtr ret_val; - char * buffer; /* a pointer to a char array containing the schemas */ - int n_buffer; - int size; /* the size of the array */ - int n_size; - - for (n_buffer = 0;n_buffer < gen_nb_const_char_ptr;n_buffer++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - mem_base = xmlMemBlocks(); - buffer = gen_const_char_ptr(n_buffer, 0); - size = gen_int(n_size, 1); - - ret_val = xmlRelaxNGNewMemParserCtxt((const char *)buffer, size); - desret_xmlRelaxNGParserCtxtPtr(ret_val); - call_tests++; - des_const_char_ptr(n_buffer, (const char *)buffer, 0); - des_int(n_size, size, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRelaxNGNewMemParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buffer); - printf(" %d", n_size); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRelaxNGNewParserCtxt(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - xmlRelaxNGParserCtxtPtr ret_val; - char * URL; /* the location of the schema */ - int n_URL; - - for (n_URL = 0;n_URL < gen_nb_const_char_ptr;n_URL++) { - mem_base = xmlMemBlocks(); - URL = gen_const_char_ptr(n_URL, 0); - - ret_val = xmlRelaxNGNewParserCtxt((const char *)URL); - desret_xmlRelaxNGParserCtxtPtr(ret_val); - call_tests++; - des_const_char_ptr(n_URL, (const char *)URL, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRelaxNGNewParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URL); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRelaxNGNewValidCtxt(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlRelaxNGParse(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlRelaxNGSetParserErrors(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlRelaxNGSetParserStructuredErrors(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlRelaxNGSetValidErrors(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlRelaxNGSetValidStructuredErrors(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlRelaxNGValidateDoc(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlRelaxNGValidCtxtPtr ctxt; /* a Relax-NG validation context */ - int n_ctxt; - xmlDocPtr doc; /* a parsed document tree */ - int n_doc; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlRelaxNGValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlRelaxNGValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - - ret_val = xmlRelaxNGValidateDoc(ctxt, doc); - desret_int(ret_val); - call_tests++; - des_xmlRelaxNGValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRelaxNGValidateDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRelaxNGValidateFullElement(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlRelaxNGValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - xmlNodePtr elem; /* an element instance */ - int n_elem; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlRelaxNGValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr;n_elem++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlRelaxNGValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - elem = gen_xmlNodePtr(n_elem, 2); - - ret_val = xmlRelaxNGValidateFullElement(ctxt, doc, elem); - desret_int(ret_val); - call_tests++; - des_xmlRelaxNGValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_elem, elem, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRelaxNGValidateFullElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf(" %d", n_elem); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRelaxNGValidatePopElement(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlRelaxNGValidCtxtPtr ctxt; /* the RelaxNG validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - xmlNodePtr elem; /* an element instance */ - int n_elem; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlRelaxNGValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr;n_elem++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlRelaxNGValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - elem = gen_xmlNodePtr(n_elem, 2); - - ret_val = xmlRelaxNGValidatePopElement(ctxt, doc, elem); - desret_int(ret_val); - call_tests++; - des_xmlRelaxNGValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_elem, elem, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRelaxNGValidatePopElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf(" %d", n_elem); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRelaxNGValidatePushCData(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlRelaxNGValidCtxtPtr ctxt; /* the RelaxNG validation context */ - int n_ctxt; - xmlChar * data; /* some character data read */ - int n_data; - int len; /* the lenght of the data */ - int n_len; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlRelaxNGValidCtxtPtr;n_ctxt++) { - for (n_data = 0;n_data < gen_nb_const_xmlChar_ptr;n_data++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlRelaxNGValidCtxtPtr(n_ctxt, 0); - data = gen_const_xmlChar_ptr(n_data, 1); - len = gen_int(n_len, 2); - - ret_val = xmlRelaxNGValidatePushCData(ctxt, (const xmlChar *)data, len); - desret_int(ret_val); - call_tests++; - des_xmlRelaxNGValidCtxtPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_data, (const xmlChar *)data, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRelaxNGValidatePushCData", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_data); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRelaxNGValidatePushElement(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlRelaxNGValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - xmlNodePtr elem; /* an element instance */ - int n_elem; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlRelaxNGValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr;n_elem++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlRelaxNGValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - elem = gen_xmlNodePtr(n_elem, 2); - - ret_val = xmlRelaxNGValidatePushElement(ctxt, doc, elem); - desret_int(ret_val); - call_tests++; - des_xmlRelaxNGValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_elem, elem, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRelaxNGValidatePushElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf(" %d", n_elem); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRelaxParserSetFlag(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlRelaxNGParserCtxtPtr ctxt; /* a RelaxNG parser context */ - int n_ctxt; - int flags; /* a set of flags values */ - int n_flags; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlRelaxNGParserCtxtPtr;n_ctxt++) { - for (n_flags = 0;n_flags < gen_nb_int;n_flags++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlRelaxNGParserCtxtPtr(n_ctxt, 0); - flags = gen_int(n_flags, 1); - - ret_val = xmlRelaxParserSetFlag(ctxt, flags); - desret_int(ret_val); - call_tests++; - des_xmlRelaxNGParserCtxtPtr(n_ctxt, ctxt, 0); - des_int(n_flags, flags, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRelaxParserSetFlag", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_flags); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_relaxng(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing relaxng : 14 of 24 functions ...\n"); - test_ret += test_xmlRelaxNGDump(); - test_ret += test_xmlRelaxNGDumpTree(); - test_ret += test_xmlRelaxNGGetParserErrors(); - test_ret += test_xmlRelaxNGGetValidErrors(); - test_ret += test_xmlRelaxNGInitTypes(); - test_ret += test_xmlRelaxNGNewDocParserCtxt(); - test_ret += test_xmlRelaxNGNewMemParserCtxt(); - test_ret += test_xmlRelaxNGNewParserCtxt(); - test_ret += test_xmlRelaxNGNewValidCtxt(); - test_ret += test_xmlRelaxNGParse(); - test_ret += test_xmlRelaxNGSetParserErrors(); - test_ret += test_xmlRelaxNGSetParserStructuredErrors(); - test_ret += test_xmlRelaxNGSetValidErrors(); - test_ret += test_xmlRelaxNGSetValidStructuredErrors(); - test_ret += test_xmlRelaxNGValidateDoc(); - test_ret += test_xmlRelaxNGValidateFullElement(); - test_ret += test_xmlRelaxNGValidatePopElement(); - test_ret += test_xmlRelaxNGValidatePushCData(); - test_ret += test_xmlRelaxNGValidatePushElement(); - test_ret += test_xmlRelaxParserSetFlag(); - - if (test_ret != 0) - printf("Module relaxng: %d errors\n", test_ret); - return(test_ret); -} -static int -test_schemasInternals(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing schemasInternals : 0 of 2 functions ...\n"); - - if (test_ret != 0) - printf("Module schemasInternals: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlSchematronNewDocParserCtxt(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSchematronNewMemParserCtxt(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSchematronNewParserCtxt(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - -#ifdef LIBXML_SCHEMATRON_ENABLED - -#define gen_nb_xmlSchematronPtr 1 -static xmlSchematronPtr gen_xmlSchematronPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSchematronPtr(int no ATTRIBUTE_UNUSED, xmlSchematronPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlSchematronNewValidCtxt(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - -#ifdef LIBXML_SCHEMATRON_ENABLED - -#define gen_nb_xmlSchematronParserCtxtPtr 1 -static xmlSchematronParserCtxtPtr gen_xmlSchematronParserCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSchematronParserCtxtPtr(int no ATTRIBUTE_UNUSED, xmlSchematronParserCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlSchematronParse(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - -#ifdef LIBXML_SCHEMATRON_ENABLED - -#define gen_nb_xmlSchematronValidCtxtPtr 1 -static xmlSchematronValidCtxtPtr gen_xmlSchematronValidCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSchematronValidCtxtPtr(int no ATTRIBUTE_UNUSED, xmlSchematronValidCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlSchematronValidateDoc(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMATRON_ENABLED) - int mem_base; - int ret_val; - xmlSchematronValidCtxtPtr ctxt; /* the schema validation context */ - int n_ctxt; - xmlDocPtr instance; /* the document instace tree */ - int n_instance; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlSchematronValidCtxtPtr;n_ctxt++) { - for (n_instance = 0;n_instance < gen_nb_xmlDocPtr;n_instance++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlSchematronValidCtxtPtr(n_ctxt, 0); - instance = gen_xmlDocPtr(n_instance, 1); - - ret_val = xmlSchematronValidateDoc(ctxt, instance); - desret_int(ret_val); - call_tests++; - des_xmlSchematronValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_instance, instance, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchematronValidateDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_instance); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_schematron(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing schematron : 1 of 9 functions ...\n"); - test_ret += test_xmlSchematronNewDocParserCtxt(); - test_ret += test_xmlSchematronNewMemParserCtxt(); - test_ret += test_xmlSchematronNewParserCtxt(); - test_ret += test_xmlSchematronNewValidCtxt(); - test_ret += test_xmlSchematronParse(); - test_ret += test_xmlSchematronValidateDoc(); - - if (test_ret != 0) - printf("Module schematron: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlAddChild(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlNodePtr parent; /* the parent node */ - int n_parent; - xmlNodePtr cur; /* the child node */ - int n_cur; - - for (n_parent = 0;n_parent < gen_nb_xmlNodePtr;n_parent++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr_in;n_cur++) { - mem_base = xmlMemBlocks(); - parent = gen_xmlNodePtr(n_parent, 0); - cur = gen_xmlNodePtr_in(n_cur, 1); - - ret_val = xmlAddChild(parent, cur); - if (ret_val == NULL) { xmlFreeNode(cur) ; cur = NULL ; } - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlNodePtr(n_parent, parent, 0); - des_xmlNodePtr_in(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlAddChild", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_parent); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlAddChildList(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlNodePtr parent; /* the parent node */ - int n_parent; - xmlNodePtr cur; /* the first node in the list */ - int n_cur; - - for (n_parent = 0;n_parent < gen_nb_xmlNodePtr;n_parent++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr_in;n_cur++) { - mem_base = xmlMemBlocks(); - parent = gen_xmlNodePtr(n_parent, 0); - cur = gen_xmlNodePtr_in(n_cur, 1); - - ret_val = xmlAddChildList(parent, cur); - if (ret_val == NULL) { xmlFreeNodeList(cur) ; cur = NULL ; } - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlNodePtr(n_parent, parent, 0); - des_xmlNodePtr_in(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlAddChildList", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_parent); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlAddNextSibling(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlNodePtr cur; /* the child node */ - int n_cur; - xmlNodePtr elem; /* the new node */ - int n_elem; - - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr_in;n_elem++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodePtr(n_cur, 0); - elem = gen_xmlNodePtr_in(n_elem, 1); - - ret_val = xmlAddNextSibling(cur, elem); - if (ret_val == NULL) { xmlFreeNode(elem) ; elem = NULL ; } - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlNodePtr(n_cur, cur, 0); - des_xmlNodePtr_in(n_elem, elem, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlAddNextSibling", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_elem); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlAddPrevSibling(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlNodePtr cur; /* the child node */ - int n_cur; - xmlNodePtr elem; /* the new node */ - int n_elem; - - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr_in;n_elem++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodePtr(n_cur, 0); - elem = gen_xmlNodePtr_in(n_elem, 1); - - ret_val = xmlAddPrevSibling(cur, elem); - if (ret_val == NULL) { xmlFreeNode(elem) ; elem = NULL ; } - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlNodePtr(n_cur, cur, 0); - des_xmlNodePtr_in(n_elem, elem, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlAddPrevSibling", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_elem); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlAddSibling(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlNodePtr cur; /* the child node */ - int n_cur; - xmlNodePtr elem; /* the new node */ - int n_elem; - - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr_in;n_elem++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodePtr(n_cur, 0); - elem = gen_xmlNodePtr_in(n_elem, 1); - - ret_val = xmlAddSibling(cur, elem); - if (ret_val == NULL) { xmlFreeNode(elem) ; elem = NULL ; } - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlNodePtr(n_cur, cur, 0); - des_xmlNodePtr_in(n_elem, elem, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlAddSibling", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_elem); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlAttrSerializeTxtContent(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) -#ifdef LIBXML_OUTPUT_ENABLED - int mem_base; - xmlBufferPtr buf; /* the XML buffer output */ - int n_buf; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlAttrPtr attr; /* the attribute node */ - int n_attr; - xmlChar * string; /* the text content */ - int n_string; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_attr = 0;n_attr < gen_nb_xmlAttrPtr;n_attr++) { - for (n_string = 0;n_string < gen_nb_const_xmlChar_ptr;n_string++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - doc = gen_xmlDocPtr(n_doc, 1); - attr = gen_xmlAttrPtr(n_attr, 2); - string = gen_const_xmlChar_ptr(n_string, 3); - - xmlAttrSerializeTxtContent(buf, doc, attr, (const xmlChar *)string); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlAttrPtr(n_attr, attr, 2); - des_const_xmlChar_ptr(n_string, (const xmlChar *)string, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlAttrSerializeTxtContent", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_doc); - printf(" %d", n_attr); - printf(" %d", n_string); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlBufferAdd(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlBufferPtr buf; /* the buffer to dump */ - int n_buf; - xmlChar * str; /* the #xmlChar string */ - int n_str; - int len; /* the number of #xmlChar to add */ - int n_len; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - str = gen_const_xmlChar_ptr(n_str, 1); - len = gen_int(n_len, 2); - - ret_val = xmlBufferAdd(buf, (const xmlChar *)str, len); - desret_int(ret_val); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBufferAdd", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_str); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlBufferAddHead(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlBufferPtr buf; /* the buffer */ - int n_buf; - xmlChar * str; /* the #xmlChar string */ - int n_str; - int len; /* the number of #xmlChar to add */ - int n_len; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - str = gen_const_xmlChar_ptr(n_str, 1); - len = gen_int(n_len, 2); - - ret_val = xmlBufferAddHead(buf, (const xmlChar *)str, len); - desret_int(ret_val); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBufferAddHead", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_str); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlBufferCCat(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlBufferPtr buf; /* the buffer to dump */ - int n_buf; - char * str; /* the C char string */ - int n_str; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_str = 0;n_str < gen_nb_const_char_ptr;n_str++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - str = gen_const_char_ptr(n_str, 1); - - ret_val = xmlBufferCCat(buf, (const char *)str); - desret_int(ret_val); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_const_char_ptr(n_str, (const char *)str, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBufferCCat", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_str); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlBufferCat(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlBufferPtr buf; /* the buffer to add to */ - int n_buf; - xmlChar * str; /* the #xmlChar string */ - int n_str; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - str = gen_const_xmlChar_ptr(n_str, 1); - - ret_val = xmlBufferCat(buf, (const xmlChar *)str); - desret_int(ret_val); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBufferCat", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_str); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -#define gen_nb_const_xmlBufferPtr 1 -static xmlBufferPtr gen_const_xmlBufferPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_const_xmlBufferPtr(int no ATTRIBUTE_UNUSED, const xmlBufferPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlBufferContent(void) { - int test_ret = 0; - - int mem_base; - const xmlChar * ret_val; - xmlBufferPtr buf; /* the buffer */ - int n_buf; - - for (n_buf = 0;n_buf < gen_nb_const_xmlBufferPtr;n_buf++) { - mem_base = xmlMemBlocks(); - buf = gen_const_xmlBufferPtr(n_buf, 0); - - ret_val = xmlBufferContent((const xmlBufferPtr)buf); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlBufferPtr(n_buf, (const xmlBufferPtr)buf, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBufferContent", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlBufferCreate(void) { - int test_ret = 0; - - int mem_base; - xmlBufferPtr ret_val; - - mem_base = xmlMemBlocks(); - - ret_val = xmlBufferCreate(); - desret_xmlBufferPtr(ret_val); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBufferCreate", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlBufferCreateSize(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlBufferCreateStatic(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlBufferEmpty(void) { - int test_ret = 0; - - int mem_base; - xmlBufferPtr buf; /* the buffer */ - int n_buf; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - - xmlBufferEmpty(buf); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBufferEmpty", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlBufferGrow(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlBufferPtr buf; /* the buffer */ - int n_buf; - unsigned int len; /* the minimum free size to allocate */ - int n_len; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_len = 0;n_len < gen_nb_unsigned_int;n_len++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - len = gen_unsigned_int(n_len, 1); - - ret_val = xmlBufferGrow(buf, len); - desret_int(ret_val); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_unsigned_int(n_len, len, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBufferGrow", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_len); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlBufferLength(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlBufferPtr buf; /* the buffer */ - int n_buf; - - for (n_buf = 0;n_buf < gen_nb_const_xmlBufferPtr;n_buf++) { - mem_base = xmlMemBlocks(); - buf = gen_const_xmlBufferPtr(n_buf, 0); - - ret_val = xmlBufferLength((const xmlBufferPtr)buf); - desret_int(ret_val); - call_tests++; - des_const_xmlBufferPtr(n_buf, (const xmlBufferPtr)buf, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBufferLength", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlBufferResize(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlBufferPtr buf; /* the buffer to resize */ - int n_buf; - unsigned int size; /* the desired size */ - int n_size; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_size = 0;n_size < gen_nb_unsigned_int;n_size++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - size = gen_unsigned_int(n_size, 1); - - ret_val = xmlBufferResize(buf, size); - desret_int(ret_val); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_unsigned_int(n_size, size, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBufferResize", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_size); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlBufferSetAllocationScheme(void) { - int test_ret = 0; - - int mem_base; - xmlBufferPtr buf; /* the buffer to tune */ - int n_buf; - xmlBufferAllocationScheme scheme; /* allocation scheme to use */ - int n_scheme; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_scheme = 0;n_scheme < gen_nb_xmlBufferAllocationScheme;n_scheme++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - scheme = gen_xmlBufferAllocationScheme(n_scheme, 1); - - xmlBufferSetAllocationScheme(buf, scheme); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_xmlBufferAllocationScheme(n_scheme, scheme, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBufferSetAllocationScheme", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_scheme); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlBufferShrink(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlBufferPtr buf; /* the buffer to dump */ - int n_buf; - unsigned int len; /* the number of xmlChar to remove */ - int n_len; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_len = 0;n_len < gen_nb_unsigned_int;n_len++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - len = gen_unsigned_int(n_len, 1); - - ret_val = xmlBufferShrink(buf, len); - desret_int(ret_val); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_unsigned_int(n_len, len, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBufferShrink", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_len); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlBufferWriteCHAR(void) { - int test_ret = 0; - - int mem_base; - xmlBufferPtr buf; /* the XML buffer */ - int n_buf; - xmlChar * string; /* the string to add */ - int n_string; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_string = 0;n_string < gen_nb_const_xmlChar_ptr;n_string++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - string = gen_const_xmlChar_ptr(n_string, 1); - - xmlBufferWriteCHAR(buf, (const xmlChar *)string); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_const_xmlChar_ptr(n_string, (const xmlChar *)string, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBufferWriteCHAR", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_string); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlBufferWriteChar(void) { - int test_ret = 0; - - int mem_base; - xmlBufferPtr buf; /* the XML buffer output */ - int n_buf; - char * string; /* the string to add */ - int n_string; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_string = 0;n_string < gen_nb_const_char_ptr;n_string++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - string = gen_const_char_ptr(n_string, 1); - - xmlBufferWriteChar(buf, (const char *)string); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_const_char_ptr(n_string, (const char *)string, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBufferWriteChar", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_string); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlBufferWriteQuotedString(void) { - int test_ret = 0; - - int mem_base; - xmlBufferPtr buf; /* the XML buffer output */ - int n_buf; - xmlChar * string; /* the string to add */ - int n_string; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_string = 0;n_string < gen_nb_const_xmlChar_ptr;n_string++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - string = gen_const_xmlChar_ptr(n_string, 1); - - xmlBufferWriteQuotedString(buf, (const xmlChar *)string); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_const_xmlChar_ptr(n_string, (const xmlChar *)string, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBufferWriteQuotedString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_string); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlBuildQName(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlChar * ncname; /* the Name */ - int n_ncname; - xmlChar * prefix; /* the prefix */ - int n_prefix; - xmlChar * memory; /* preallocated memory */ - int n_memory; - int len; /* preallocated memory length */ - int n_len; - - for (n_ncname = 0;n_ncname < gen_nb_const_xmlChar_ptr;n_ncname++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - for (n_memory = 0;n_memory < gen_nb_xmlChar_ptr;n_memory++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - ncname = gen_const_xmlChar_ptr(n_ncname, 0); - prefix = gen_const_xmlChar_ptr(n_prefix, 1); - memory = gen_xmlChar_ptr(n_memory, 2); - len = gen_int(n_len, 3); - - ret_val = xmlBuildQName((const xmlChar *)ncname, (const xmlChar *)prefix, memory, len); - if ((ret_val != NULL) && (ret_val != ncname) && - (ret_val != prefix) && (ret_val != memory)) - xmlFree(ret_val); - ret_val = NULL; - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_ncname, (const xmlChar *)ncname, 0); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 1); - des_xmlChar_ptr(n_memory, memory, 2); - des_int(n_len, len, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBuildQName", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ncname); - printf(" %d", n_prefix); - printf(" %d", n_memory); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCopyDoc(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - xmlDocPtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - int recursive; /* if not zero do a recursive copy. */ - int n_recursive; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_recursive = 0;n_recursive < gen_nb_int;n_recursive++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - recursive = gen_int(n_recursive, 1); - - ret_val = xmlCopyDoc(doc, recursive); - desret_xmlDocPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_int(n_recursive, recursive, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCopyDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_recursive); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCopyDtd(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) - int mem_base; - xmlDtdPtr ret_val; - xmlDtdPtr dtd; /* the dtd */ - int n_dtd; - - for (n_dtd = 0;n_dtd < gen_nb_xmlDtdPtr;n_dtd++) { - mem_base = xmlMemBlocks(); - dtd = gen_xmlDtdPtr(n_dtd, 0); - - ret_val = xmlCopyDtd(dtd); - desret_xmlDtdPtr(ret_val); - call_tests++; - des_xmlDtdPtr(n_dtd, dtd, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCopyDtd", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_dtd); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlCopyNamespace(void) { - int test_ret = 0; - - int mem_base; - xmlNsPtr ret_val; - xmlNsPtr cur; /* the namespace */ - int n_cur; - - for (n_cur = 0;n_cur < gen_nb_xmlNsPtr;n_cur++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNsPtr(n_cur, 0); - - ret_val = xmlCopyNamespace(cur); - if (ret_val != NULL) xmlFreeNs(ret_val); - desret_xmlNsPtr(ret_val); - call_tests++; - des_xmlNsPtr(n_cur, cur, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCopyNamespace", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCopyNamespaceList(void) { - int test_ret = 0; - - int mem_base; - xmlNsPtr ret_val; - xmlNsPtr cur; /* the first namespace */ - int n_cur; - - for (n_cur = 0;n_cur < gen_nb_xmlNsPtr;n_cur++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNsPtr(n_cur, 0); - - ret_val = xmlCopyNamespaceList(cur); - if (ret_val != NULL) xmlFreeNsList(ret_val); - desret_xmlNsPtr(ret_val); - call_tests++; - des_xmlNsPtr(n_cur, cur, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCopyNamespaceList", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCopyNode(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlNodePtr node; /* the node */ - int n_node; - int extended; /* if 1 do a recursive copy (properties, namespaces and children when applicable) if 2 copy properties and namespaces (when applicable) */ - int n_extended; - - for (n_node = 0;n_node < gen_nb_const_xmlNodePtr;n_node++) { - for (n_extended = 0;n_extended < gen_nb_int;n_extended++) { - mem_base = xmlMemBlocks(); - node = gen_const_xmlNodePtr(n_node, 0); - extended = gen_int(n_extended, 1); - - ret_val = xmlCopyNode((const xmlNodePtr)node, extended); - desret_xmlNodePtr(ret_val); - call_tests++; - des_const_xmlNodePtr(n_node, (const xmlNodePtr)node, 0); - des_int(n_extended, extended, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCopyNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_extended); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCopyNodeList(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlNodePtr node; /* the first node in the list. */ - int n_node; - - for (n_node = 0;n_node < gen_nb_const_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - node = gen_const_xmlNodePtr(n_node, 0); - - ret_val = xmlCopyNodeList((const xmlNodePtr)node); - desret_xmlNodePtr(ret_val); - call_tests++; - des_const_xmlNodePtr(n_node, (const xmlNodePtr)node, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCopyNodeList", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCopyProp(void) { - int test_ret = 0; - - int mem_base; - xmlAttrPtr ret_val; - xmlNodePtr target; /* the element where the attribute will be grafted */ - int n_target; - xmlAttrPtr cur; /* the attribute */ - int n_cur; - - for (n_target = 0;n_target < gen_nb_xmlNodePtr;n_target++) { - for (n_cur = 0;n_cur < gen_nb_xmlAttrPtr;n_cur++) { - mem_base = xmlMemBlocks(); - target = gen_xmlNodePtr(n_target, 0); - cur = gen_xmlAttrPtr(n_cur, 1); - - ret_val = xmlCopyProp(target, cur); - desret_xmlAttrPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_target, target, 0); - des_xmlAttrPtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCopyProp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_target); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCopyPropList(void) { - int test_ret = 0; - - int mem_base; - xmlAttrPtr ret_val; - xmlNodePtr target; /* the element where the attributes will be grafted */ - int n_target; - xmlAttrPtr cur; /* the first attribute */ - int n_cur; - - for (n_target = 0;n_target < gen_nb_xmlNodePtr;n_target++) { - for (n_cur = 0;n_cur < gen_nb_xmlAttrPtr;n_cur++) { - mem_base = xmlMemBlocks(); - target = gen_xmlNodePtr(n_target, 0); - cur = gen_xmlAttrPtr(n_cur, 1); - - ret_val = xmlCopyPropList(target, cur); - desret_xmlAttrPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_target, target, 0); - des_xmlAttrPtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCopyPropList", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_target); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCreateIntSubset(void) { - int test_ret = 0; - - int mem_base; - xmlDtdPtr ret_val; - xmlDocPtr doc; /* the document pointer */ - int n_doc; - xmlChar * name; /* the DTD name */ - int n_name; - xmlChar * ExternalID; /* the external (PUBLIC) ID */ - int n_ExternalID; - xmlChar * SystemID; /* the system ID */ - int n_SystemID; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_ExternalID = 0;n_ExternalID < gen_nb_const_xmlChar_ptr;n_ExternalID++) { - for (n_SystemID = 0;n_SystemID < gen_nb_const_xmlChar_ptr;n_SystemID++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - ExternalID = gen_const_xmlChar_ptr(n_ExternalID, 2); - SystemID = gen_const_xmlChar_ptr(n_SystemID, 3); - - ret_val = xmlCreateIntSubset(doc, (const xmlChar *)name, (const xmlChar *)ExternalID, (const xmlChar *)SystemID); - desret_xmlDtdPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_ExternalID, (const xmlChar *)ExternalID, 2); - des_const_xmlChar_ptr(n_SystemID, (const xmlChar *)SystemID, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCreateIntSubset", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_name); - printf(" %d", n_ExternalID); - printf(" %d", n_SystemID); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -#define gen_nb_xmlDOMWrapCtxtPtr 1 -static xmlDOMWrapCtxtPtr gen_xmlDOMWrapCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlDOMWrapCtxtPtr(int no ATTRIBUTE_UNUSED, xmlDOMWrapCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlDOMWrapAdoptNode(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlDOMWrapCtxtPtr ctxt; /* the optional context for custom processing */ - int n_ctxt; - xmlDocPtr sourceDoc; /* the optional sourceDoc */ - int n_sourceDoc; - xmlNodePtr node; /* the node to start with */ - int n_node; - xmlDocPtr destDoc; /* the destination doc */ - int n_destDoc; - xmlNodePtr destParent; /* the optional new parent of @node in @destDoc */ - int n_destParent; - int options; /* option flags */ - int n_options; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlDOMWrapCtxtPtr;n_ctxt++) { - for (n_sourceDoc = 0;n_sourceDoc < gen_nb_xmlDocPtr;n_sourceDoc++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_destDoc = 0;n_destDoc < gen_nb_xmlDocPtr;n_destDoc++) { - for (n_destParent = 0;n_destParent < gen_nb_xmlNodePtr;n_destParent++) { - for (n_options = 0;n_options < gen_nb_int;n_options++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlDOMWrapCtxtPtr(n_ctxt, 0); - sourceDoc = gen_xmlDocPtr(n_sourceDoc, 1); - node = gen_xmlNodePtr(n_node, 2); - destDoc = gen_xmlDocPtr(n_destDoc, 3); - destParent = gen_xmlNodePtr(n_destParent, 4); - options = gen_int(n_options, 5); - - ret_val = xmlDOMWrapAdoptNode(ctxt, sourceDoc, node, destDoc, destParent, options); - if ((node != NULL) && (node->parent == NULL)) {xmlUnlinkNode(node);xmlFreeNode(node);node = NULL;} - desret_int(ret_val); - call_tests++; - des_xmlDOMWrapCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_sourceDoc, sourceDoc, 1); - des_xmlNodePtr(n_node, node, 2); - des_xmlDocPtr(n_destDoc, destDoc, 3); - des_xmlNodePtr(n_destParent, destParent, 4); - des_int(n_options, options, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDOMWrapAdoptNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_sourceDoc); - printf(" %d", n_node); - printf(" %d", n_destDoc); - printf(" %d", n_destParent); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDOMWrapCloneNode(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlDOMWrapCtxtPtr ctxt; /* the optional context for custom processing */ - int n_ctxt; - xmlDocPtr sourceDoc; /* the optional sourceDoc */ - int n_sourceDoc; - xmlNodePtr node; /* the node to start with */ - int n_node; - xmlNodePtr * resNode; /* the clone of the given @node */ - int n_resNode; - xmlDocPtr destDoc; /* the destination doc */ - int n_destDoc; - xmlNodePtr destParent; /* the optional new parent of @node in @destDoc */ - int n_destParent; - int deep; /* descend into child if set */ - int n_deep; - int options; /* option flags */ - int n_options; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlDOMWrapCtxtPtr;n_ctxt++) { - for (n_sourceDoc = 0;n_sourceDoc < gen_nb_xmlDocPtr;n_sourceDoc++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_resNode = 0;n_resNode < gen_nb_xmlNodePtr_ptr;n_resNode++) { - for (n_destDoc = 0;n_destDoc < gen_nb_xmlDocPtr;n_destDoc++) { - for (n_destParent = 0;n_destParent < gen_nb_xmlNodePtr;n_destParent++) { - for (n_deep = 0;n_deep < gen_nb_int;n_deep++) { - for (n_options = 0;n_options < gen_nb_int;n_options++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlDOMWrapCtxtPtr(n_ctxt, 0); - sourceDoc = gen_xmlDocPtr(n_sourceDoc, 1); - node = gen_xmlNodePtr(n_node, 2); - resNode = gen_xmlNodePtr_ptr(n_resNode, 3); - destDoc = gen_xmlDocPtr(n_destDoc, 4); - destParent = gen_xmlNodePtr(n_destParent, 5); - deep = gen_int(n_deep, 6); - options = gen_int(n_options, 7); - - ret_val = xmlDOMWrapCloneNode(ctxt, sourceDoc, node, resNode, destDoc, destParent, deep, options); - desret_int(ret_val); - call_tests++; - des_xmlDOMWrapCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_sourceDoc, sourceDoc, 1); - des_xmlNodePtr(n_node, node, 2); - des_xmlNodePtr_ptr(n_resNode, resNode, 3); - des_xmlDocPtr(n_destDoc, destDoc, 4); - des_xmlNodePtr(n_destParent, destParent, 5); - des_int(n_deep, deep, 6); - des_int(n_options, options, 7); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDOMWrapCloneNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_sourceDoc); - printf(" %d", n_node); - printf(" %d", n_resNode); - printf(" %d", n_destDoc); - printf(" %d", n_destParent); - printf(" %d", n_deep); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDOMWrapNewCtxt(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlDOMWrapReconcileNamespaces(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlDOMWrapCtxtPtr ctxt; /* DOM wrapper context, unused at the moment */ - int n_ctxt; - xmlNodePtr elem; /* the element-node */ - int n_elem; - int options; /* option flags */ - int n_options; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlDOMWrapCtxtPtr;n_ctxt++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr;n_elem++) { - for (n_options = 0;n_options < gen_nb_int;n_options++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlDOMWrapCtxtPtr(n_ctxt, 0); - elem = gen_xmlNodePtr(n_elem, 1); - options = gen_int(n_options, 2); - - ret_val = xmlDOMWrapReconcileNamespaces(ctxt, elem, options); - desret_int(ret_val); - call_tests++; - des_xmlDOMWrapCtxtPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_elem, elem, 1); - des_int(n_options, options, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDOMWrapReconcileNamespaces", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_elem); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDOMWrapRemoveNode(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlDOMWrapCtxtPtr ctxt; /* a DOM wrapper context */ - int n_ctxt; - xmlDocPtr doc; /* the doc */ - int n_doc; - xmlNodePtr node; /* the node to be removed. */ - int n_node; - int options; /* set of options, unused at the moment */ - int n_options; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlDOMWrapCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_options = 0;n_options < gen_nb_int;n_options++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlDOMWrapCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - node = gen_xmlNodePtr(n_node, 2); - options = gen_int(n_options, 3); - - ret_val = xmlDOMWrapRemoveNode(ctxt, doc, node, options); - desret_int(ret_val); - call_tests++; - des_xmlDOMWrapCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_node, node, 2); - des_int(n_options, options, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDOMWrapRemoveNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf(" %d", n_node); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDocCopyNode(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlNodePtr node; /* the node */ - int n_node; - xmlDocPtr doc; /* the document */ - int n_doc; - int extended; /* if 1 do a recursive copy (properties, namespaces and children when applicable) if 2 copy properties and namespaces (when applicable) */ - int n_extended; - - for (n_node = 0;n_node < gen_nb_const_xmlNodePtr;n_node++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_extended = 0;n_extended < gen_nb_int;n_extended++) { - mem_base = xmlMemBlocks(); - node = gen_const_xmlNodePtr(n_node, 0); - doc = gen_xmlDocPtr(n_doc, 1); - extended = gen_int(n_extended, 2); - - ret_val = xmlDocCopyNode((const xmlNodePtr)node, doc, extended); - desret_xmlNodePtr(ret_val); - call_tests++; - des_const_xmlNodePtr(n_node, (const xmlNodePtr)node, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_int(n_extended, extended, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDocCopyNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_doc); - printf(" %d", n_extended); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDocCopyNodeList(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlDocPtr doc; /* the target document */ - int n_doc; - xmlNodePtr node; /* the first node in the list. */ - int n_node; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_node = 0;n_node < gen_nb_const_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - node = gen_const_xmlNodePtr(n_node, 1); - - ret_val = xmlDocCopyNodeList(doc, (const xmlNodePtr)node); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlNodePtr(n_node, (const xmlNodePtr)node, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDocCopyNodeList", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_node); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDocDump(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - FILE * f; /* the FILE* */ - int n_f; - xmlDocPtr cur; /* the document */ - int n_cur; - - for (n_f = 0;n_f < gen_nb_FILE_ptr;n_f++) { - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - mem_base = xmlMemBlocks(); - f = gen_FILE_ptr(n_f, 0); - cur = gen_xmlDocPtr(n_cur, 1); - - ret_val = xmlDocDump(f, cur); - desret_int(ret_val); - call_tests++; - des_FILE_ptr(n_f, f, 0); - des_xmlDocPtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDocDump", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_f); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDocDumpFormatMemory(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlDocPtr cur; /* the document */ - int n_cur; - xmlChar ** mem; /* OUT: the memory pointer */ - int n_mem; - int * size; /* OUT: the memory length */ - int n_size; - int format; /* should formatting spaces been added */ - int n_format; - - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - for (n_mem = 0;n_mem < gen_nb_xmlChar_ptr_ptr;n_mem++) { - for (n_size = 0;n_size < gen_nb_int_ptr;n_size++) { - for (n_format = 0;n_format < gen_nb_int;n_format++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlDocPtr(n_cur, 0); - mem = gen_xmlChar_ptr_ptr(n_mem, 1); - size = gen_int_ptr(n_size, 2); - format = gen_int(n_format, 3); - - xmlDocDumpFormatMemory(cur, mem, size, format); - call_tests++; - des_xmlDocPtr(n_cur, cur, 0); - des_xmlChar_ptr_ptr(n_mem, mem, 1); - des_int_ptr(n_size, size, 2); - des_int(n_format, format, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDocDumpFormatMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_mem); - printf(" %d", n_size); - printf(" %d", n_format); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDocDumpFormatMemoryEnc(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlDocPtr out_doc; /* Document to generate XML text from */ - int n_out_doc; - xmlChar ** doc_txt_ptr; /* Memory pointer for allocated XML text */ - int n_doc_txt_ptr; - int * doc_txt_len; /* Length of the generated XML text */ - int n_doc_txt_len; - char * txt_encoding; /* Character encoding to use when generating XML text */ - int n_txt_encoding; - int format; /* should formatting spaces been added */ - int n_format; - - for (n_out_doc = 0;n_out_doc < gen_nb_xmlDocPtr;n_out_doc++) { - for (n_doc_txt_ptr = 0;n_doc_txt_ptr < gen_nb_xmlChar_ptr_ptr;n_doc_txt_ptr++) { - for (n_doc_txt_len = 0;n_doc_txt_len < gen_nb_int_ptr;n_doc_txt_len++) { - for (n_txt_encoding = 0;n_txt_encoding < gen_nb_const_char_ptr;n_txt_encoding++) { - for (n_format = 0;n_format < gen_nb_int;n_format++) { - mem_base = xmlMemBlocks(); - out_doc = gen_xmlDocPtr(n_out_doc, 0); - doc_txt_ptr = gen_xmlChar_ptr_ptr(n_doc_txt_ptr, 1); - doc_txt_len = gen_int_ptr(n_doc_txt_len, 2); - txt_encoding = gen_const_char_ptr(n_txt_encoding, 3); - format = gen_int(n_format, 4); - - xmlDocDumpFormatMemoryEnc(out_doc, doc_txt_ptr, doc_txt_len, (const char *)txt_encoding, format); - call_tests++; - des_xmlDocPtr(n_out_doc, out_doc, 0); - des_xmlChar_ptr_ptr(n_doc_txt_ptr, doc_txt_ptr, 1); - des_int_ptr(n_doc_txt_len, doc_txt_len, 2); - des_const_char_ptr(n_txt_encoding, (const char *)txt_encoding, 3); - des_int(n_format, format, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDocDumpFormatMemoryEnc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_out_doc); - printf(" %d", n_doc_txt_ptr); - printf(" %d", n_doc_txt_len); - printf(" %d", n_txt_encoding); - printf(" %d", n_format); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDocDumpMemory(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlDocPtr cur; /* the document */ - int n_cur; - xmlChar ** mem; /* OUT: the memory pointer */ - int n_mem; - int * size; /* OUT: the memory length */ - int n_size; - - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - for (n_mem = 0;n_mem < gen_nb_xmlChar_ptr_ptr;n_mem++) { - for (n_size = 0;n_size < gen_nb_int_ptr;n_size++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlDocPtr(n_cur, 0); - mem = gen_xmlChar_ptr_ptr(n_mem, 1); - size = gen_int_ptr(n_size, 2); - - xmlDocDumpMemory(cur, mem, size); - call_tests++; - des_xmlDocPtr(n_cur, cur, 0); - des_xmlChar_ptr_ptr(n_mem, mem, 1); - des_int_ptr(n_size, size, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDocDumpMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_mem); - printf(" %d", n_size); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDocDumpMemoryEnc(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlDocPtr out_doc; /* Document to generate XML text from */ - int n_out_doc; - xmlChar ** doc_txt_ptr; /* Memory pointer for allocated XML text */ - int n_doc_txt_ptr; - int * doc_txt_len; /* Length of the generated XML text */ - int n_doc_txt_len; - char * txt_encoding; /* Character encoding to use when generating XML text */ - int n_txt_encoding; - - for (n_out_doc = 0;n_out_doc < gen_nb_xmlDocPtr;n_out_doc++) { - for (n_doc_txt_ptr = 0;n_doc_txt_ptr < gen_nb_xmlChar_ptr_ptr;n_doc_txt_ptr++) { - for (n_doc_txt_len = 0;n_doc_txt_len < gen_nb_int_ptr;n_doc_txt_len++) { - for (n_txt_encoding = 0;n_txt_encoding < gen_nb_const_char_ptr;n_txt_encoding++) { - mem_base = xmlMemBlocks(); - out_doc = gen_xmlDocPtr(n_out_doc, 0); - doc_txt_ptr = gen_xmlChar_ptr_ptr(n_doc_txt_ptr, 1); - doc_txt_len = gen_int_ptr(n_doc_txt_len, 2); - txt_encoding = gen_const_char_ptr(n_txt_encoding, 3); - - xmlDocDumpMemoryEnc(out_doc, doc_txt_ptr, doc_txt_len, (const char *)txt_encoding); - call_tests++; - des_xmlDocPtr(n_out_doc, out_doc, 0); - des_xmlChar_ptr_ptr(n_doc_txt_ptr, doc_txt_ptr, 1); - des_int_ptr(n_doc_txt_len, doc_txt_len, 2); - des_const_char_ptr(n_txt_encoding, (const char *)txt_encoding, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDocDumpMemoryEnc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_out_doc); - printf(" %d", n_doc_txt_ptr); - printf(" %d", n_doc_txt_len); - printf(" %d", n_txt_encoding); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDocFormatDump(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - FILE * f; /* the FILE* */ - int n_f; - xmlDocPtr cur; /* the document */ - int n_cur; - int format; /* should formatting spaces been added */ - int n_format; - - for (n_f = 0;n_f < gen_nb_FILE_ptr;n_f++) { - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - for (n_format = 0;n_format < gen_nb_int;n_format++) { - mem_base = xmlMemBlocks(); - f = gen_FILE_ptr(n_f, 0); - cur = gen_xmlDocPtr(n_cur, 1); - format = gen_int(n_format, 2); - - ret_val = xmlDocFormatDump(f, cur, format); - desret_int(ret_val); - call_tests++; - des_FILE_ptr(n_f, f, 0); - des_xmlDocPtr(n_cur, cur, 1); - des_int(n_format, format, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDocFormatDump", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_f); - printf(" %d", n_cur); - printf(" %d", n_format); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDocGetRootElement(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - - ret_val = xmlDocGetRootElement(doc); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDocGetRootElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlDocSetRootElement(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr root; /* the new document root element */ - int n_root; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_root = 0;n_root < gen_nb_xmlNodePtr_in;n_root++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - root = gen_xmlNodePtr_in(n_root, 1); - - ret_val = xmlDocSetRootElement(doc, root); - if (doc == NULL) { xmlFreeNode(root) ; root = NULL ; } - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNodePtr_in(n_root, root, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDocSetRootElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_root); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlElemDump(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - FILE * f; /* the FILE * for the output */ - int n_f; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr cur; /* the current node */ - int n_cur; - - for (n_f = 0;n_f < gen_nb_FILE_ptr;n_f++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - f = gen_FILE_ptr(n_f, 0); - doc = gen_xmlDocPtr(n_doc, 1); - cur = gen_xmlNodePtr(n_cur, 2); - - xmlElemDump(f, doc, cur); - call_tests++; - des_FILE_ptr(n_f, f, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_cur, cur, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlElemDump", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_f); - printf(" %d", n_doc); - printf(" %d", n_cur); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlGetBufferAllocationScheme(void) { - int test_ret = 0; - - int mem_base; - xmlBufferAllocationScheme ret_val; - - mem_base = xmlMemBlocks(); - - ret_val = xmlGetBufferAllocationScheme(); - desret_xmlBufferAllocationScheme(ret_val); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetBufferAllocationScheme", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetCompressMode(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - - mem_base = xmlMemBlocks(); - - ret_val = xmlGetCompressMode(); - desret_int(ret_val); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetCompressMode", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetDocCompressMode(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - - ret_val = xmlGetDocCompressMode(doc); - desret_int(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetDocCompressMode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetIntSubset(void) { - int test_ret = 0; - - int mem_base; - xmlDtdPtr ret_val; - xmlDocPtr doc; /* the document pointer */ - int n_doc; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - - ret_val = xmlGetIntSubset(doc); - desret_xmlDtdPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetIntSubset", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetLastChild(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlNodePtr parent; /* the parent node */ - int n_parent; - - for (n_parent = 0;n_parent < gen_nb_xmlNodePtr;n_parent++) { - mem_base = xmlMemBlocks(); - parent = gen_xmlNodePtr(n_parent, 0); - - ret_val = xmlGetLastChild(parent); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlNodePtr(n_parent, parent, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetLastChild", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_parent); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetLineNo(void) { - int test_ret = 0; - - int mem_base; - long ret_val; - xmlNodePtr node; /* valid node */ - int n_node; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - - ret_val = xmlGetLineNo(node); - desret_long(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetLineNo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetNoNsProp(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlNodePtr node; /* the node */ - int n_node; - xmlChar * name; /* the attribute name */ - int n_name; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlGetNoNsProp(node, (const xmlChar *)name); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetNoNsProp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetNodePath(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_DEBUG_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlNodePtr node; /* a node */ - int n_node; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - - ret_val = xmlGetNodePath(node); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetNodePath", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlGetNsList(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlGetNsProp(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlNodePtr node; /* the node */ - int n_node; - xmlChar * name; /* the attribute name */ - int n_name; - xmlChar * nameSpace; /* the URI of the namespace */ - int n_nameSpace; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_nameSpace = 0;n_nameSpace < gen_nb_const_xmlChar_ptr;n_nameSpace++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - nameSpace = gen_const_xmlChar_ptr(n_nameSpace, 2); - - ret_val = xmlGetNsProp(node, (const xmlChar *)name, (const xmlChar *)nameSpace); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_nameSpace, (const xmlChar *)nameSpace, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetNsProp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_name); - printf(" %d", n_nameSpace); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetProp(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlNodePtr node; /* the node */ - int n_node; - xmlChar * name; /* the attribute name */ - int n_name; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlGetProp(node, (const xmlChar *)name); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetProp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHasNsProp(void) { - int test_ret = 0; - - int mem_base; - xmlAttrPtr ret_val; - xmlNodePtr node; /* the node */ - int n_node; - xmlChar * name; /* the attribute name */ - int n_name; - xmlChar * nameSpace; /* the URI of the namespace */ - int n_nameSpace; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_nameSpace = 0;n_nameSpace < gen_nb_const_xmlChar_ptr;n_nameSpace++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - nameSpace = gen_const_xmlChar_ptr(n_nameSpace, 2); - - ret_val = xmlHasNsProp(node, (const xmlChar *)name, (const xmlChar *)nameSpace); - desret_xmlAttrPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_nameSpace, (const xmlChar *)nameSpace, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHasNsProp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_name); - printf(" %d", n_nameSpace); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlHasProp(void) { - int test_ret = 0; - - int mem_base; - xmlAttrPtr ret_val; - xmlNodePtr node; /* the node */ - int n_node; - xmlChar * name; /* the attribute name */ - int n_name; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlHasProp(node, (const xmlChar *)name); - desret_xmlAttrPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlHasProp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlIsBlankNode(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlNodePtr node; /* the node */ - int n_node; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - - ret_val = xmlIsBlankNode(node); - desret_int(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIsBlankNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlIsXHTML(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlChar * systemID; /* the system identifier */ - int n_systemID; - xmlChar * publicID; /* the public identifier */ - int n_publicID; - - for (n_systemID = 0;n_systemID < gen_nb_const_xmlChar_ptr;n_systemID++) { - for (n_publicID = 0;n_publicID < gen_nb_const_xmlChar_ptr;n_publicID++) { - mem_base = xmlMemBlocks(); - systemID = gen_const_xmlChar_ptr(n_systemID, 0); - publicID = gen_const_xmlChar_ptr(n_publicID, 1); - - ret_val = xmlIsXHTML((const xmlChar *)systemID, (const xmlChar *)publicID); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_systemID, (const xmlChar *)systemID, 0); - des_const_xmlChar_ptr(n_publicID, (const xmlChar *)publicID, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIsXHTML", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_systemID); - printf(" %d", n_publicID); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewCDataBlock(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlChar * content; /* the CDATA block content content */ - int n_content; - int len; /* the length of the block */ - int n_len; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - content = gen_const_xmlChar_ptr(n_content, 1); - len = gen_int(n_len, 2); - - ret_val = xmlNewCDataBlock(doc, (const xmlChar *)content, len); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewCDataBlock", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_content); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewCharRef(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlChar * name; /* the char ref string, starting with # or "&# ... ;" */ - int n_name; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlNewCharRef(doc, (const xmlChar *)name); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewCharRef", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewChild(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -#ifdef LIBXML_TREE_ENABLED - int mem_base; - xmlNodePtr ret_val; - xmlNodePtr parent; /* the parent node */ - int n_parent; - xmlNsPtr ns; /* a namespace if any */ - int n_ns; - xmlChar * name; /* the name of the child */ - int n_name; - xmlChar * content; /* the XML content of the child if any. */ - int n_content; - - for (n_parent = 0;n_parent < gen_nb_xmlNodePtr;n_parent++) { - for (n_ns = 0;n_ns < gen_nb_xmlNsPtr;n_ns++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - parent = gen_xmlNodePtr(n_parent, 0); - ns = gen_xmlNsPtr(n_ns, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - content = gen_const_xmlChar_ptr(n_content, 3); - - ret_val = xmlNewChild(parent, ns, (const xmlChar *)name, (const xmlChar *)content); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlNodePtr(n_parent, parent, 0); - des_xmlNsPtr(n_ns, ns, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewChild", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_parent); - printf(" %d", n_ns); - printf(" %d", n_name); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlNewComment(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlChar * content; /* the comment content */ - int n_content; - - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - content = gen_const_xmlChar_ptr(n_content, 0); - - ret_val = xmlNewComment((const xmlChar *)content); - desret_xmlNodePtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewComment", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_content); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewDoc(void) { - int test_ret = 0; - - int mem_base; - xmlDocPtr ret_val; - xmlChar * version; /* xmlChar string giving the version of XML "1.0" */ - int n_version; - - for (n_version = 0;n_version < gen_nb_const_xmlChar_ptr;n_version++) { - mem_base = xmlMemBlocks(); - version = gen_const_xmlChar_ptr(n_version, 0); - - ret_val = xmlNewDoc((const xmlChar *)version); - desret_xmlDocPtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_version, (const xmlChar *)version, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_version); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewDocComment(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlChar * content; /* the comment content */ - int n_content; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - content = gen_const_xmlChar_ptr(n_content, 1); - - ret_val = xmlNewDocComment(doc, (const xmlChar *)content); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewDocComment", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_content); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewDocFragment(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlDocPtr doc; /* the document owning the fragment */ - int n_doc; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - - ret_val = xmlNewDocFragment(doc); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewDocFragment", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNewDocNode(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNsPtr ns; /* namespace if any */ - int n_ns; - xmlChar * name; /* the node name */ - int n_name; - xmlChar * content; /* the XML text content if any */ - int n_content; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_ns = 0;n_ns < gen_nb_xmlNsPtr;n_ns++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - ns = gen_xmlNsPtr(n_ns, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - content = gen_const_xmlChar_ptr(n_content, 3); - - ret_val = xmlNewDocNode(doc, ns, (const xmlChar *)name, (const xmlChar *)content); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNsPtr(n_ns, ns, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewDocNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_ns); - printf(" %d", n_name); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewDocNodeEatName(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNsPtr ns; /* namespace if any */ - int n_ns; - xmlChar * name; /* the node name */ - int n_name; - xmlChar * content; /* the XML text content if any */ - int n_content; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_ns = 0;n_ns < gen_nb_xmlNsPtr;n_ns++) { - for (n_name = 0;n_name < gen_nb_eaten_name;n_name++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - ns = gen_xmlNsPtr(n_ns, 1); - name = gen_eaten_name(n_name, 2); - content = gen_const_xmlChar_ptr(n_content, 3); - - ret_val = xmlNewDocNodeEatName(doc, ns, name, (const xmlChar *)content); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNsPtr(n_ns, ns, 1); - des_eaten_name(n_name, name, 2); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewDocNodeEatName", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_ns); - printf(" %d", n_name); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewDocPI(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlDocPtr doc; /* the target document */ - int n_doc; - xmlChar * name; /* the processing instruction name */ - int n_name; - xmlChar * content; /* the PI content */ - int n_content; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - content = gen_const_xmlChar_ptr(n_content, 2); - - ret_val = xmlNewDocPI(doc, (const xmlChar *)name, (const xmlChar *)content); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewDocPI", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_name); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewDocProp(void) { - int test_ret = 0; - - int mem_base; - xmlAttrPtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlChar * name; /* the name of the attribute */ - int n_name; - xmlChar * value; /* the value of the attribute */ - int n_value; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - value = gen_const_xmlChar_ptr(n_value, 2); - - ret_val = xmlNewDocProp(doc, (const xmlChar *)name, (const xmlChar *)value); - desret_xmlAttrPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewDocProp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_name); - printf(" %d", n_value); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewDocRawNode(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) -#ifdef LIBXML_TREE_ENABLED - int mem_base; - xmlNodePtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNsPtr ns; /* namespace if any */ - int n_ns; - xmlChar * name; /* the node name */ - int n_name; - xmlChar * content; /* the text content if any */ - int n_content; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_ns = 0;n_ns < gen_nb_xmlNsPtr;n_ns++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - ns = gen_xmlNsPtr(n_ns, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - content = gen_const_xmlChar_ptr(n_content, 3); - - ret_val = xmlNewDocRawNode(doc, ns, (const xmlChar *)name, (const xmlChar *)content); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNsPtr(n_ns, ns, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewDocRawNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_ns); - printf(" %d", n_name); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlNewDocText(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlChar * content; /* the text content */ - int n_content; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - content = gen_const_xmlChar_ptr(n_content, 1); - - ret_val = xmlNewDocText(doc, (const xmlChar *)content); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewDocText", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_content); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewDocTextLen(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlChar * content; /* the text content */ - int n_content; - int len; /* the text len. */ - int n_len; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - content = gen_const_xmlChar_ptr(n_content, 1); - len = gen_int(n_len, 2); - - ret_val = xmlNewDocTextLen(doc, (const xmlChar *)content, len); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewDocTextLen", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_content); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewDtd(void) { - int test_ret = 0; - - int mem_base; - xmlDtdPtr ret_val; - xmlDocPtr doc; /* the document pointer */ - int n_doc; - xmlChar * name; /* the DTD name */ - int n_name; - xmlChar * ExternalID; /* the external ID */ - int n_ExternalID; - xmlChar * SystemID; /* the system ID */ - int n_SystemID; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_ExternalID = 0;n_ExternalID < gen_nb_const_xmlChar_ptr;n_ExternalID++) { - for (n_SystemID = 0;n_SystemID < gen_nb_const_xmlChar_ptr;n_SystemID++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - ExternalID = gen_const_xmlChar_ptr(n_ExternalID, 2); - SystemID = gen_const_xmlChar_ptr(n_SystemID, 3); - - ret_val = xmlNewDtd(doc, (const xmlChar *)name, (const xmlChar *)ExternalID, (const xmlChar *)SystemID); - desret_xmlDtdPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_ExternalID, (const xmlChar *)ExternalID, 2); - des_const_xmlChar_ptr(n_SystemID, (const xmlChar *)SystemID, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewDtd", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_name); - printf(" %d", n_ExternalID); - printf(" %d", n_SystemID); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewNode(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlNsPtr ns; /* namespace if any */ - int n_ns; - xmlChar * name; /* the node name */ - int n_name; - - for (n_ns = 0;n_ns < gen_nb_xmlNsPtr;n_ns++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - ns = gen_xmlNsPtr(n_ns, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlNewNode(ns, (const xmlChar *)name); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlNsPtr(n_ns, ns, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ns); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewNodeEatName(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlNsPtr ns; /* namespace if any */ - int n_ns; - xmlChar * name; /* the node name */ - int n_name; - - for (n_ns = 0;n_ns < gen_nb_xmlNsPtr;n_ns++) { - for (n_name = 0;n_name < gen_nb_eaten_name;n_name++) { - mem_base = xmlMemBlocks(); - ns = gen_xmlNsPtr(n_ns, 0); - name = gen_eaten_name(n_name, 1); - - ret_val = xmlNewNodeEatName(ns, name); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlNsPtr(n_ns, ns, 0); - des_eaten_name(n_name, name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewNodeEatName", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ns); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewNs(void) { - int test_ret = 0; - - int mem_base; - xmlNsPtr ret_val; - xmlNodePtr node; /* the element carrying the namespace */ - int n_node; - xmlChar * href; /* the URI associated */ - int n_href; - xmlChar * prefix; /* the prefix for the namespace */ - int n_prefix; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_href = 0;n_href < gen_nb_const_xmlChar_ptr;n_href++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - href = gen_const_xmlChar_ptr(n_href, 1); - prefix = gen_const_xmlChar_ptr(n_prefix, 2); - - ret_val = xmlNewNs(node, (const xmlChar *)href, (const xmlChar *)prefix); - if ((node == NULL) && (ret_val != NULL)) xmlFreeNs(ret_val); - desret_xmlNsPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - des_const_xmlChar_ptr(n_href, (const xmlChar *)href, 1); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewNs", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_href); - printf(" %d", n_prefix); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewNsProp(void) { - int test_ret = 0; - - int mem_base; - xmlAttrPtr ret_val; - xmlNodePtr node; /* the holding node */ - int n_node; - xmlNsPtr ns; /* the namespace */ - int n_ns; - xmlChar * name; /* the name of the attribute */ - int n_name; - xmlChar * value; /* the value of the attribute */ - int n_value; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_ns = 0;n_ns < gen_nb_xmlNsPtr;n_ns++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - ns = gen_xmlNsPtr(n_ns, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - value = gen_const_xmlChar_ptr(n_value, 3); - - ret_val = xmlNewNsProp(node, ns, (const xmlChar *)name, (const xmlChar *)value); - desret_xmlAttrPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - des_xmlNsPtr(n_ns, ns, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewNsProp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_ns); - printf(" %d", n_name); - printf(" %d", n_value); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewNsPropEatName(void) { - int test_ret = 0; - - int mem_base; - xmlAttrPtr ret_val; - xmlNodePtr node; /* the holding node */ - int n_node; - xmlNsPtr ns; /* the namespace */ - int n_ns; - xmlChar * name; /* the name of the attribute */ - int n_name; - xmlChar * value; /* the value of the attribute */ - int n_value; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_ns = 0;n_ns < gen_nb_xmlNsPtr;n_ns++) { - for (n_name = 0;n_name < gen_nb_eaten_name;n_name++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - ns = gen_xmlNsPtr(n_ns, 1); - name = gen_eaten_name(n_name, 2); - value = gen_const_xmlChar_ptr(n_value, 3); - - ret_val = xmlNewNsPropEatName(node, ns, name, (const xmlChar *)value); - desret_xmlAttrPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - des_xmlNsPtr(n_ns, ns, 1); - des_eaten_name(n_name, name, 2); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewNsPropEatName", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_ns); - printf(" %d", n_name); - printf(" %d", n_value); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewPI(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlChar * name; /* the processing instruction name */ - int n_name; - xmlChar * content; /* the PI content */ - int n_content; - - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - name = gen_const_xmlChar_ptr(n_name, 0); - content = gen_const_xmlChar_ptr(n_content, 1); - - ret_val = xmlNewPI((const xmlChar *)name, (const xmlChar *)content); - desret_xmlNodePtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 0); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewPI", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_name); - printf(" %d", n_content); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewProp(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -#ifdef LIBXML_TREE_ENABLED - int mem_base; - xmlAttrPtr ret_val; - xmlNodePtr node; /* the holding node */ - int n_node; - xmlChar * name; /* the name of the attribute */ - int n_name; - xmlChar * value; /* the value of the attribute */ - int n_value; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - value = gen_const_xmlChar_ptr(n_value, 2); - - ret_val = xmlNewProp(node, (const xmlChar *)name, (const xmlChar *)value); - desret_xmlAttrPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewProp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_name); - printf(" %d", n_value); - printf("\n"); - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlNewReference(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlChar * name; /* the reference name, or the reference string with & and ; */ - int n_name; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlNewReference(doc, (const xmlChar *)name); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewReference", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewText(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlChar * content; /* the text content */ - int n_content; - - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - content = gen_const_xmlChar_ptr(n_content, 0); - - ret_val = xmlNewText((const xmlChar *)content); - desret_xmlNodePtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewText", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_content); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewTextChild(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) -#ifdef LIBXML_TREE_ENABLED - int mem_base; - xmlNodePtr ret_val; - xmlNodePtr parent; /* the parent node */ - int n_parent; - xmlNsPtr ns; /* a namespace if any */ - int n_ns; - xmlChar * name; /* the name of the child */ - int n_name; - xmlChar * content; /* the text content of the child if any. */ - int n_content; - - for (n_parent = 0;n_parent < gen_nb_xmlNodePtr;n_parent++) { - for (n_ns = 0;n_ns < gen_nb_xmlNsPtr;n_ns++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - parent = gen_xmlNodePtr(n_parent, 0); - ns = gen_xmlNsPtr(n_ns, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - content = gen_const_xmlChar_ptr(n_content, 3); - - ret_val = xmlNewTextChild(parent, ns, (const xmlChar *)name, (const xmlChar *)content); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlNodePtr(n_parent, parent, 0); - des_xmlNsPtr(n_ns, ns, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewTextChild", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_parent); - printf(" %d", n_ns); - printf(" %d", n_name); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlNewTextLen(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlChar * content; /* the text content */ - int n_content; - int len; /* the text len. */ - int n_len; - - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - content = gen_const_xmlChar_ptr(n_content, 0); - len = gen_int(n_len, 1); - - ret_val = xmlNewTextLen((const xmlChar *)content, len); - desret_xmlNodePtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 0); - des_int(n_len, len, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewTextLen", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_content); - printf(" %d", n_len); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNodeAddContent(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr cur; /* the node being modified */ - int n_cur; - xmlChar * content; /* extra content */ - int n_content; - - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodePtr(n_cur, 0); - content = gen_const_xmlChar_ptr(n_content, 1); - - xmlNodeAddContent(cur, (const xmlChar *)content); - call_tests++; - des_xmlNodePtr(n_cur, cur, 0); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeAddContent", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_content); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNodeAddContentLen(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr cur; /* the node being modified */ - int n_cur; - xmlChar * content; /* extra content */ - int n_content; - int len; /* the size of @content */ - int n_len; - - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodePtr(n_cur, 0); - content = gen_const_xmlChar_ptr(n_content, 1); - len = gen_int(n_len, 2); - - xmlNodeAddContentLen(cur, (const xmlChar *)content, len); - call_tests++; - des_xmlNodePtr(n_cur, cur, 0); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeAddContentLen", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_content); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNodeBufGetContent(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlBufferPtr buffer; /* a buffer */ - int n_buffer; - xmlNodePtr cur; /* the node being read */ - int n_cur; - - for (n_buffer = 0;n_buffer < gen_nb_xmlBufferPtr;n_buffer++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - buffer = gen_xmlBufferPtr(n_buffer, 0); - cur = gen_xmlNodePtr(n_cur, 1); - - ret_val = xmlNodeBufGetContent(buffer, cur); - desret_int(ret_val); - call_tests++; - des_xmlBufferPtr(n_buffer, buffer, 0); - des_xmlNodePtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeBufGetContent", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buffer); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNodeDump(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - xmlBufferPtr buf; /* the XML buffer output */ - int n_buf; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr cur; /* the current node */ - int n_cur; - int level; /* the imbrication level for indenting */ - int n_level; - int format; /* is formatting allowed */ - int n_format; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - for (n_level = 0;n_level < gen_nb_int;n_level++) { - for (n_format = 0;n_format < gen_nb_int;n_format++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - doc = gen_xmlDocPtr(n_doc, 1); - cur = gen_xmlNodePtr(n_cur, 2); - level = gen_int(n_level, 3); - format = gen_int(n_format, 4); - - ret_val = xmlNodeDump(buf, doc, cur, level, format); - desret_int(ret_val); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_cur, cur, 2); - des_int(n_level, level, 3); - des_int(n_format, format, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeDump", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_doc); - printf(" %d", n_cur); - printf(" %d", n_level); - printf(" %d", n_format); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNodeDumpOutput(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlOutputBufferPtr buf; /* the XML buffer output */ - int n_buf; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr cur; /* the current node */ - int n_cur; - int level; /* the imbrication level for indenting */ - int n_level; - int format; /* is formatting allowed */ - int n_format; - char * encoding; /* an optional encoding string */ - int n_encoding; - - for (n_buf = 0;n_buf < gen_nb_xmlOutputBufferPtr;n_buf++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - for (n_level = 0;n_level < gen_nb_int;n_level++) { - for (n_format = 0;n_format < gen_nb_int;n_format++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlOutputBufferPtr(n_buf, 0); - doc = gen_xmlDocPtr(n_doc, 1); - cur = gen_xmlNodePtr(n_cur, 2); - level = gen_int(n_level, 3); - format = gen_int(n_format, 4); - encoding = gen_const_char_ptr(n_encoding, 5); - - xmlNodeDumpOutput(buf, doc, cur, level, format, (const char *)encoding); - call_tests++; - des_xmlOutputBufferPtr(n_buf, buf, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_cur, cur, 2); - des_int(n_level, level, 3); - des_int(n_format, format, 4); - des_const_char_ptr(n_encoding, (const char *)encoding, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeDumpOutput", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_doc); - printf(" %d", n_cur); - printf(" %d", n_level); - printf(" %d", n_format); - printf(" %d", n_encoding); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNodeGetBase(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlDocPtr doc; /* the document the node pertains to */ - int n_doc; - xmlNodePtr cur; /* the node being checked */ - int n_cur; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - cur = gen_xmlNodePtr(n_cur, 1); - - ret_val = xmlNodeGetBase(doc, cur); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNodePtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeGetBase", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNodeGetContent(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlNodePtr cur; /* the node being read */ - int n_cur; - - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodePtr(n_cur, 0); - - ret_val = xmlNodeGetContent(cur); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlNodePtr(n_cur, cur, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeGetContent", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNodeGetLang(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlNodePtr cur; /* the node being checked */ - int n_cur; - - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodePtr(n_cur, 0); - - ret_val = xmlNodeGetLang(cur); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlNodePtr(n_cur, cur, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeGetLang", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNodeGetSpacePreserve(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlNodePtr cur; /* the node being checked */ - int n_cur; - - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodePtr(n_cur, 0); - - ret_val = xmlNodeGetSpacePreserve(cur); - desret_int(ret_val); - call_tests++; - des_xmlNodePtr(n_cur, cur, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeGetSpacePreserve", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNodeIsText(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlNodePtr node; /* the node */ - int n_node; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - - ret_val = xmlNodeIsText(node); - desret_int(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeIsText", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNodeListGetRawString(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr list; /* a Node list */ - int n_list; - int inLine; /* should we replace entity contents or show their external form */ - int n_inLine; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_list = 0;n_list < gen_nb_xmlNodePtr;n_list++) { - for (n_inLine = 0;n_inLine < gen_nb_int;n_inLine++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - list = gen_xmlNodePtr(n_list, 1); - inLine = gen_int(n_inLine, 2); - - ret_val = xmlNodeListGetRawString(doc, list, inLine); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNodePtr(n_list, list, 1); - des_int(n_inLine, inLine, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeListGetRawString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_list); - printf(" %d", n_inLine); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNodeListGetString(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr list; /* a Node list */ - int n_list; - int inLine; /* should we replace entity contents or show their external form */ - int n_inLine; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_list = 0;n_list < gen_nb_xmlNodePtr;n_list++) { - for (n_inLine = 0;n_inLine < gen_nb_int;n_inLine++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - list = gen_xmlNodePtr(n_list, 1); - inLine = gen_int(n_inLine, 2); - - ret_val = xmlNodeListGetString(doc, list, inLine); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNodePtr(n_list, list, 1); - des_int(n_inLine, inLine, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeListGetString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_list); - printf(" %d", n_inLine); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNodeSetBase(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) - int mem_base; - xmlNodePtr cur; /* the node being changed */ - int n_cur; - xmlChar * uri; /* the new base URI */ - int n_uri; - - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - for (n_uri = 0;n_uri < gen_nb_const_xmlChar_ptr;n_uri++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodePtr(n_cur, 0); - uri = gen_const_xmlChar_ptr(n_uri, 1); - - xmlNodeSetBase(cur, (const xmlChar *)uri); - call_tests++; - des_xmlNodePtr(n_cur, cur, 0); - des_const_xmlChar_ptr(n_uri, (const xmlChar *)uri, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeSetBase", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_uri); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNodeSetContent(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr cur; /* the node being modified */ - int n_cur; - xmlChar * content; /* the new value of the content */ - int n_content; - - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodePtr(n_cur, 0); - content = gen_const_xmlChar_ptr(n_content, 1); - - xmlNodeSetContent(cur, (const xmlChar *)content); - call_tests++; - des_xmlNodePtr(n_cur, cur, 0); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeSetContent", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_content); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNodeSetContentLen(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) - int mem_base; - xmlNodePtr cur; /* the node being modified */ - int n_cur; - xmlChar * content; /* the new value of the content */ - int n_content; - int len; /* the size of @content */ - int n_len; - - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodePtr(n_cur, 0); - content = gen_const_xmlChar_ptr(n_content, 1); - len = gen_int(n_len, 2); - - xmlNodeSetContentLen(cur, (const xmlChar *)content, len); - call_tests++; - des_xmlNodePtr(n_cur, cur, 0); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeSetContentLen", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_content); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNodeSetLang(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) - int mem_base; - xmlNodePtr cur; /* the node being changed */ - int n_cur; - xmlChar * lang; /* the language description */ - int n_lang; - - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - for (n_lang = 0;n_lang < gen_nb_const_xmlChar_ptr;n_lang++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodePtr(n_cur, 0); - lang = gen_const_xmlChar_ptr(n_lang, 1); - - xmlNodeSetLang(cur, (const xmlChar *)lang); - call_tests++; - des_xmlNodePtr(n_cur, cur, 0); - des_const_xmlChar_ptr(n_lang, (const xmlChar *)lang, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeSetLang", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_lang); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNodeSetName(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) - int mem_base; - xmlNodePtr cur; /* the node being changed */ - int n_cur; - xmlChar * name; /* the new tag name */ - int n_name; - - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodePtr(n_cur, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - xmlNodeSetName(cur, (const xmlChar *)name); - call_tests++; - des_xmlNodePtr(n_cur, cur, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeSetName", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNodeSetSpacePreserve(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) - int mem_base; - xmlNodePtr cur; /* the node being changed */ - int n_cur; - int val; /* the xml:space value ("0": default, 1: "preserve") */ - int n_val; - - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - for (n_val = 0;n_val < gen_nb_int;n_val++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodePtr(n_cur, 0); - val = gen_int(n_val, 1); - - xmlNodeSetSpacePreserve(cur, val); - call_tests++; - des_xmlNodePtr(n_cur, cur, 0); - des_int(n_val, val, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNodeSetSpacePreserve", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_val); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlReconciliateNs(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) -#ifdef LIBXML_TREE_ENABLED - int mem_base; - int ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr tree; /* a node defining the subtree to reconciliate */ - int n_tree; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_tree = 0;n_tree < gen_nb_xmlNodePtr;n_tree++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - tree = gen_xmlNodePtr(n_tree, 1); - - ret_val = xmlReconciliateNs(doc, tree); - desret_int(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNodePtr(n_tree, tree, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlReconciliateNs", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_tree); - printf("\n"); - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlRemoveProp(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlAttrPtr cur; /* an attribute */ - int n_cur; - - for (n_cur = 0;n_cur < gen_nb_xmlAttrPtr;n_cur++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlAttrPtr(n_cur, 0); - - ret_val = xmlRemoveProp(cur); - cur = NULL; - desret_int(ret_val); - call_tests++; - des_xmlAttrPtr(n_cur, cur, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRemoveProp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlReplaceNode(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlNodePtr old; /* the old node */ - int n_old; - xmlNodePtr cur; /* the node */ - int n_cur; - - for (n_old = 0;n_old < gen_nb_xmlNodePtr;n_old++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr_in;n_cur++) { - mem_base = xmlMemBlocks(); - old = gen_xmlNodePtr(n_old, 0); - cur = gen_xmlNodePtr_in(n_cur, 1); - - ret_val = xmlReplaceNode(old, cur); - if (cur != NULL) { - xmlUnlinkNode(cur); - xmlFreeNode(cur) ; cur = NULL ; } - if (old != NULL) { - xmlUnlinkNode(old); - xmlFreeNode(old) ; old = NULL ; } - ret_val = NULL; - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlNodePtr(n_old, old, 0); - des_xmlNodePtr_in(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlReplaceNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_old); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSaveFile(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - const char * filename; /* the filename (or URL) */ - int n_filename; - xmlDocPtr cur; /* the document */ - int n_cur; - - for (n_filename = 0;n_filename < gen_nb_fileoutput;n_filename++) { - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - mem_base = xmlMemBlocks(); - filename = gen_fileoutput(n_filename, 0); - cur = gen_xmlDocPtr(n_cur, 1); - - ret_val = xmlSaveFile(filename, cur); - desret_int(ret_val); - call_tests++; - des_fileoutput(n_filename, filename, 0); - des_xmlDocPtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSaveFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSaveFileEnc(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - const char * filename; /* the filename (or URL) */ - int n_filename; - xmlDocPtr cur; /* the document */ - int n_cur; - char * encoding; /* the name of an encoding (or NULL) */ - int n_encoding; - - for (n_filename = 0;n_filename < gen_nb_fileoutput;n_filename++) { - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - mem_base = xmlMemBlocks(); - filename = gen_fileoutput(n_filename, 0); - cur = gen_xmlDocPtr(n_cur, 1); - encoding = gen_const_char_ptr(n_encoding, 2); - - ret_val = xmlSaveFileEnc(filename, cur, (const char *)encoding); - desret_int(ret_val); - call_tests++; - des_fileoutput(n_filename, filename, 0); - des_xmlDocPtr(n_cur, cur, 1); - des_const_char_ptr(n_encoding, (const char *)encoding, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSaveFileEnc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf(" %d", n_cur); - printf(" %d", n_encoding); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSaveFileTo(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - xmlOutputBufferPtr buf; /* an output I/O buffer */ - int n_buf; - xmlDocPtr cur; /* the document */ - int n_cur; - char * encoding; /* the encoding if any assuming the I/O layer handles the trancoding */ - int n_encoding; - - for (n_buf = 0;n_buf < gen_nb_xmlOutputBufferPtr;n_buf++) { - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlOutputBufferPtr(n_buf, 0); - cur = gen_xmlDocPtr(n_cur, 1); - encoding = gen_const_char_ptr(n_encoding, 2); - - ret_val = xmlSaveFileTo(buf, cur, (const char *)encoding); - buf = NULL; - desret_int(ret_val); - call_tests++; - des_xmlOutputBufferPtr(n_buf, buf, 0); - des_xmlDocPtr(n_cur, cur, 1); - des_const_char_ptr(n_encoding, (const char *)encoding, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSaveFileTo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_cur); - printf(" %d", n_encoding); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSaveFormatFile(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - const char * filename; /* the filename (or URL) */ - int n_filename; - xmlDocPtr cur; /* the document */ - int n_cur; - int format; /* should formatting spaces been added */ - int n_format; - - for (n_filename = 0;n_filename < gen_nb_fileoutput;n_filename++) { - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - for (n_format = 0;n_format < gen_nb_int;n_format++) { - mem_base = xmlMemBlocks(); - filename = gen_fileoutput(n_filename, 0); - cur = gen_xmlDocPtr(n_cur, 1); - format = gen_int(n_format, 2); - - ret_val = xmlSaveFormatFile(filename, cur, format); - desret_int(ret_val); - call_tests++; - des_fileoutput(n_filename, filename, 0); - des_xmlDocPtr(n_cur, cur, 1); - des_int(n_format, format, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSaveFormatFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf(" %d", n_cur); - printf(" %d", n_format); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSaveFormatFileEnc(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - const char * filename; /* the filename or URL to output */ - int n_filename; - xmlDocPtr cur; /* the document being saved */ - int n_cur; - char * encoding; /* the name of the encoding to use or NULL. */ - int n_encoding; - int format; /* should formatting spaces be added. */ - int n_format; - - for (n_filename = 0;n_filename < gen_nb_fileoutput;n_filename++) { - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_format = 0;n_format < gen_nb_int;n_format++) { - mem_base = xmlMemBlocks(); - filename = gen_fileoutput(n_filename, 0); - cur = gen_xmlDocPtr(n_cur, 1); - encoding = gen_const_char_ptr(n_encoding, 2); - format = gen_int(n_format, 3); - - ret_val = xmlSaveFormatFileEnc(filename, cur, (const char *)encoding, format); - desret_int(ret_val); - call_tests++; - des_fileoutput(n_filename, filename, 0); - des_xmlDocPtr(n_cur, cur, 1); - des_const_char_ptr(n_encoding, (const char *)encoding, 2); - des_int(n_format, format, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSaveFormatFileEnc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf(" %d", n_cur); - printf(" %d", n_encoding); - printf(" %d", n_format); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSaveFormatFileTo(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - xmlOutputBufferPtr buf; /* an output I/O buffer */ - int n_buf; - xmlDocPtr cur; /* the document */ - int n_cur; - char * encoding; /* the encoding if any assuming the I/O layer handles the trancoding */ - int n_encoding; - int format; /* should formatting spaces been added */ - int n_format; - - for (n_buf = 0;n_buf < gen_nb_xmlOutputBufferPtr;n_buf++) { - for (n_cur = 0;n_cur < gen_nb_xmlDocPtr;n_cur++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_format = 0;n_format < gen_nb_int;n_format++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlOutputBufferPtr(n_buf, 0); - cur = gen_xmlDocPtr(n_cur, 1); - encoding = gen_const_char_ptr(n_encoding, 2); - format = gen_int(n_format, 3); - - ret_val = xmlSaveFormatFileTo(buf, cur, (const char *)encoding, format); - buf = NULL; - desret_int(ret_val); - call_tests++; - des_xmlOutputBufferPtr(n_buf, buf, 0); - des_xmlDocPtr(n_cur, cur, 1); - des_const_char_ptr(n_encoding, (const char *)encoding, 2); - des_int(n_format, format, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSaveFormatFileTo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_cur); - printf(" %d", n_encoding); - printf(" %d", n_format); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSearchNs(void) { - int test_ret = 0; - - int mem_base; - xmlNsPtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr node; /* the current node */ - int n_node; - xmlChar * nameSpace; /* the namespace prefix */ - int n_nameSpace; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_nameSpace = 0;n_nameSpace < gen_nb_const_xmlChar_ptr;n_nameSpace++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - node = gen_xmlNodePtr(n_node, 1); - nameSpace = gen_const_xmlChar_ptr(n_nameSpace, 2); - - ret_val = xmlSearchNs(doc, node, (const xmlChar *)nameSpace); - desret_xmlNsPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNodePtr(n_node, node, 1); - des_const_xmlChar_ptr(n_nameSpace, (const xmlChar *)nameSpace, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSearchNs", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_node); - printf(" %d", n_nameSpace); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSearchNsByHref(void) { - int test_ret = 0; - - int mem_base; - xmlNsPtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr node; /* the current node */ - int n_node; - xmlChar * href; /* the namespace value */ - int n_href; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_href = 0;n_href < gen_nb_const_xmlChar_ptr;n_href++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - node = gen_xmlNodePtr(n_node, 1); - href = gen_const_xmlChar_ptr(n_href, 2); - - ret_val = xmlSearchNsByHref(doc, node, (const xmlChar *)href); - desret_xmlNsPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNodePtr(n_node, node, 1); - des_const_xmlChar_ptr(n_href, (const xmlChar *)href, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSearchNsByHref", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_node); - printf(" %d", n_href); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSetBufferAllocationScheme(void) { - int test_ret = 0; - - int mem_base; - xmlBufferAllocationScheme scheme; /* allocation method to use */ - int n_scheme; - - for (n_scheme = 0;n_scheme < gen_nb_xmlBufferAllocationScheme;n_scheme++) { - mem_base = xmlMemBlocks(); - scheme = gen_xmlBufferAllocationScheme(n_scheme, 0); - - xmlSetBufferAllocationScheme(scheme); - call_tests++; - des_xmlBufferAllocationScheme(n_scheme, scheme, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSetBufferAllocationScheme", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_scheme); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSetCompressMode(void) { - int test_ret = 0; - - int mem_base; - int mode; /* the compression ratio */ - int n_mode; - - for (n_mode = 0;n_mode < gen_nb_int;n_mode++) { - mem_base = xmlMemBlocks(); - mode = gen_int(n_mode, 0); - - xmlSetCompressMode(mode); - call_tests++; - des_int(n_mode, mode, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSetCompressMode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_mode); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSetDocCompressMode(void) { - int test_ret = 0; - - int mem_base; - xmlDocPtr doc; /* the document */ - int n_doc; - int mode; /* the compression ratio */ - int n_mode; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_mode = 0;n_mode < gen_nb_int;n_mode++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - mode = gen_int(n_mode, 1); - - xmlSetDocCompressMode(doc, mode); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_int(n_mode, mode, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSetDocCompressMode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_mode); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSetNs(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr node; /* a node in the document */ - int n_node; - xmlNsPtr ns; /* a namespace pointer */ - int n_ns; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_ns = 0;n_ns < gen_nb_xmlNsPtr;n_ns++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - ns = gen_xmlNsPtr(n_ns, 1); - - xmlSetNs(node, ns); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - des_xmlNsPtr(n_ns, ns, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSetNs", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_ns); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSetNsProp(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) - int mem_base; - xmlAttrPtr ret_val; - xmlNodePtr node; /* the node */ - int n_node; - xmlNsPtr ns; /* the namespace definition */ - int n_ns; - xmlChar * name; /* the attribute name */ - int n_name; - xmlChar * value; /* the attribute value */ - int n_value; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_ns = 0;n_ns < gen_nb_xmlNsPtr;n_ns++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - ns = gen_xmlNsPtr(n_ns, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - value = gen_const_xmlChar_ptr(n_value, 3); - - ret_val = xmlSetNsProp(node, ns, (const xmlChar *)name, (const xmlChar *)value); - desret_xmlAttrPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - des_xmlNsPtr(n_ns, ns, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSetNsProp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_ns); - printf(" %d", n_name); - printf(" %d", n_value); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSetProp(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) - int mem_base; - xmlAttrPtr ret_val; - xmlNodePtr node; /* the node */ - int n_node; - xmlChar * name; /* the attribute name (a QName) */ - int n_name; - xmlChar * value; /* the attribute value */ - int n_value; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - value = gen_const_xmlChar_ptr(n_value, 2); - - ret_val = xmlSetProp(node, (const xmlChar *)name, (const xmlChar *)value); - desret_xmlAttrPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSetProp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_name); - printf(" %d", n_value); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSplitQName2(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlChar * name; /* the full QName */ - int n_name; - xmlChar ** prefix; /* a xmlChar ** */ - int n_prefix; - - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_prefix = 0;n_prefix < gen_nb_xmlChar_ptr_ptr;n_prefix++) { - mem_base = xmlMemBlocks(); - name = gen_const_xmlChar_ptr(n_name, 0); - prefix = gen_xmlChar_ptr_ptr(n_prefix, 1); - - ret_val = xmlSplitQName2((const xmlChar *)name, prefix); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 0); - des_xmlChar_ptr_ptr(n_prefix, prefix, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSplitQName2", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_name); - printf(" %d", n_prefix); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSplitQName3(void) { - int test_ret = 0; - - int mem_base; - const xmlChar * ret_val; - xmlChar * name; /* the full QName */ - int n_name; - int * len; /* an int * */ - int n_len; - - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_len = 0;n_len < gen_nb_int_ptr;n_len++) { - mem_base = xmlMemBlocks(); - name = gen_const_xmlChar_ptr(n_name, 0); - len = gen_int_ptr(n_len, 1); - - ret_val = xmlSplitQName3((const xmlChar *)name, len); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 0); - des_int_ptr(n_len, len, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSplitQName3", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_name); - printf(" %d", n_len); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStringGetNodeList(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlChar * value; /* the value of the attribute */ - int n_value; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - value = gen_const_xmlChar_ptr(n_value, 1); - - ret_val = xmlStringGetNodeList(doc, (const xmlChar *)value); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStringGetNodeList", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_value); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStringLenGetNodeList(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlChar * value; /* the value of the text */ - int n_value; - int len; /* the length of the string value */ - int n_len; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - value = gen_const_xmlChar_ptr(n_value, 1); - len = gen_int(n_len, 2); - - ret_val = xmlStringLenGetNodeList(doc, (const xmlChar *)value, len); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStringLenGetNodeList", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_value); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlTextConcat(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlNodePtr node; /* the node */ - int n_node; - xmlChar * content; /* the content */ - int n_content; - int len; /* @content length */ - int n_len; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - content = gen_const_xmlChar_ptr(n_content, 1); - len = gen_int(n_len, 2); - - ret_val = xmlTextConcat(node, (const xmlChar *)content, len); - desret_int(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextConcat", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_content); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlTextMerge(void) { - int test_ret = 0; - - int mem_base; - xmlNodePtr ret_val; - xmlNodePtr first; /* the first text node */ - int n_first; - xmlNodePtr second; /* the second text node being merged */ - int n_second; - - for (n_first = 0;n_first < gen_nb_xmlNodePtr_in;n_first++) { - for (n_second = 0;n_second < gen_nb_xmlNodePtr_in;n_second++) { - mem_base = xmlMemBlocks(); - first = gen_xmlNodePtr_in(n_first, 0); - second = gen_xmlNodePtr_in(n_second, 1); - - ret_val = xmlTextMerge(first, second); - if ((first != NULL) && (first->type != XML_TEXT_NODE)) { - xmlUnlinkNode(second); - xmlFreeNode(second) ; second = NULL ; } - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlNodePtr_in(n_first, first, 0); - des_xmlNodePtr_in(n_second, second, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextMerge", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_first); - printf(" %d", n_second); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlUnsetNsProp(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlNodePtr node; /* the node */ - int n_node; - xmlNsPtr ns; /* the namespace definition */ - int n_ns; - xmlChar * name; /* the attribute name */ - int n_name; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_ns = 0;n_ns < gen_nb_xmlNsPtr;n_ns++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - ns = gen_xmlNsPtr(n_ns, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - - ret_val = xmlUnsetNsProp(node, ns, (const xmlChar *)name); - desret_int(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - des_xmlNsPtr(n_ns, ns, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUnsetNsProp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_ns); - printf(" %d", n_name); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUnsetProp(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlNodePtr node; /* the node */ - int n_node; - xmlChar * name; /* the attribute name */ - int n_name; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlUnsetProp(node, (const xmlChar *)name); - desret_int(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUnsetProp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateNCName(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_DEBUG_ENABLED) || defined (LIBXML_HTML_ENABLED) -#ifdef LIBXML_TREE_ENABLED - int mem_base; - int ret_val; - xmlChar * value; /* the value to check */ - int n_value; - int space; /* allow spaces in front and end of the string */ - int n_space; - - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - for (n_space = 0;n_space < gen_nb_int;n_space++) { - mem_base = xmlMemBlocks(); - value = gen_const_xmlChar_ptr(n_value, 0); - space = gen_int(n_space, 1); - - ret_val = xmlValidateNCName((const xmlChar *)value, space); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 0); - des_int(n_space, space, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateNCName", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_value); - printf(" %d", n_space); - printf("\n"); - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlValidateNMToken(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -#ifdef LIBXML_TREE_ENABLED - int mem_base; - int ret_val; - xmlChar * value; /* the value to check */ - int n_value; - int space; /* allow spaces in front and end of the string */ - int n_space; - - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - for (n_space = 0;n_space < gen_nb_int;n_space++) { - mem_base = xmlMemBlocks(); - value = gen_const_xmlChar_ptr(n_value, 0); - space = gen_int(n_space, 1); - - ret_val = xmlValidateNMToken((const xmlChar *)value, space); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 0); - des_int(n_space, space, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateNMToken", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_value); - printf(" %d", n_space); - printf("\n"); - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlValidateName(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -#ifdef LIBXML_TREE_ENABLED - int mem_base; - int ret_val; - xmlChar * value; /* the value to check */ - int n_value; - int space; /* allow spaces in front and end of the string */ - int n_space; - - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - for (n_space = 0;n_space < gen_nb_int;n_space++) { - mem_base = xmlMemBlocks(); - value = gen_const_xmlChar_ptr(n_value, 0); - space = gen_int(n_space, 1); - - ret_val = xmlValidateName((const xmlChar *)value, space); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 0); - des_int(n_space, space, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateName", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_value); - printf(" %d", n_space); - printf("\n"); - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlValidateQName(void) { - int test_ret = 0; - -#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) -#ifdef LIBXML_TREE_ENABLED - int mem_base; - int ret_val; - xmlChar * value; /* the value to check */ - int n_value; - int space; /* allow spaces in front and end of the string */ - int n_space; - - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - for (n_space = 0;n_space < gen_nb_int;n_space++) { - mem_base = xmlMemBlocks(); - value = gen_const_xmlChar_ptr(n_value, 0); - space = gen_int(n_space, 1); - - ret_val = xmlValidateQName((const xmlChar *)value, space); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 0); - des_int(n_space, space, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateQName", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_value); - printf(" %d", n_space); - printf("\n"); - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - -static int -test_tree(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing tree : 133 of 152 functions ...\n"); - test_ret += test_xmlAddChild(); - test_ret += test_xmlAddChildList(); - test_ret += test_xmlAddNextSibling(); - test_ret += test_xmlAddPrevSibling(); - test_ret += test_xmlAddSibling(); - test_ret += test_xmlAttrSerializeTxtContent(); - test_ret += test_xmlBufferAdd(); - test_ret += test_xmlBufferAddHead(); - test_ret += test_xmlBufferCCat(); - test_ret += test_xmlBufferCat(); - test_ret += test_xmlBufferContent(); - test_ret += test_xmlBufferCreate(); - test_ret += test_xmlBufferCreateSize(); - test_ret += test_xmlBufferCreateStatic(); - test_ret += test_xmlBufferEmpty(); - test_ret += test_xmlBufferGrow(); - test_ret += test_xmlBufferLength(); - test_ret += test_xmlBufferResize(); - test_ret += test_xmlBufferSetAllocationScheme(); - test_ret += test_xmlBufferShrink(); - test_ret += test_xmlBufferWriteCHAR(); - test_ret += test_xmlBufferWriteChar(); - test_ret += test_xmlBufferWriteQuotedString(); - test_ret += test_xmlBuildQName(); - test_ret += test_xmlCopyDoc(); - test_ret += test_xmlCopyDtd(); - test_ret += test_xmlCopyNamespace(); - test_ret += test_xmlCopyNamespaceList(); - test_ret += test_xmlCopyNode(); - test_ret += test_xmlCopyNodeList(); - test_ret += test_xmlCopyProp(); - test_ret += test_xmlCopyPropList(); - test_ret += test_xmlCreateIntSubset(); - test_ret += test_xmlDOMWrapAdoptNode(); - test_ret += test_xmlDOMWrapCloneNode(); - test_ret += test_xmlDOMWrapNewCtxt(); - test_ret += test_xmlDOMWrapReconcileNamespaces(); - test_ret += test_xmlDOMWrapRemoveNode(); - test_ret += test_xmlDocCopyNode(); - test_ret += test_xmlDocCopyNodeList(); - test_ret += test_xmlDocDump(); - test_ret += test_xmlDocDumpFormatMemory(); - test_ret += test_xmlDocDumpFormatMemoryEnc(); - test_ret += test_xmlDocDumpMemory(); - test_ret += test_xmlDocDumpMemoryEnc(); - test_ret += test_xmlDocFormatDump(); - test_ret += test_xmlDocGetRootElement(); - test_ret += test_xmlDocSetRootElement(); - test_ret += test_xmlElemDump(); - test_ret += test_xmlGetBufferAllocationScheme(); - test_ret += test_xmlGetCompressMode(); - test_ret += test_xmlGetDocCompressMode(); - test_ret += test_xmlGetIntSubset(); - test_ret += test_xmlGetLastChild(); - test_ret += test_xmlGetLineNo(); - test_ret += test_xmlGetNoNsProp(); - test_ret += test_xmlGetNodePath(); - test_ret += test_xmlGetNsList(); - test_ret += test_xmlGetNsProp(); - test_ret += test_xmlGetProp(); - test_ret += test_xmlHasNsProp(); - test_ret += test_xmlHasProp(); - test_ret += test_xmlIsBlankNode(); - test_ret += test_xmlIsXHTML(); - test_ret += test_xmlNewCDataBlock(); - test_ret += test_xmlNewCharRef(); - test_ret += test_xmlNewChild(); - test_ret += test_xmlNewComment(); - test_ret += test_xmlNewDoc(); - test_ret += test_xmlNewDocComment(); - test_ret += test_xmlNewDocFragment(); - test_ret += test_xmlNewDocNode(); - test_ret += test_xmlNewDocNodeEatName(); - test_ret += test_xmlNewDocPI(); - test_ret += test_xmlNewDocProp(); - test_ret += test_xmlNewDocRawNode(); - test_ret += test_xmlNewDocText(); - test_ret += test_xmlNewDocTextLen(); - test_ret += test_xmlNewDtd(); - test_ret += test_xmlNewNode(); - test_ret += test_xmlNewNodeEatName(); - test_ret += test_xmlNewNs(); - test_ret += test_xmlNewNsProp(); - test_ret += test_xmlNewNsPropEatName(); - test_ret += test_xmlNewPI(); - test_ret += test_xmlNewProp(); - test_ret += test_xmlNewReference(); - test_ret += test_xmlNewText(); - test_ret += test_xmlNewTextChild(); - test_ret += test_xmlNewTextLen(); - test_ret += test_xmlNodeAddContent(); - test_ret += test_xmlNodeAddContentLen(); - test_ret += test_xmlNodeBufGetContent(); - test_ret += test_xmlNodeDump(); - test_ret += test_xmlNodeDumpOutput(); - test_ret += test_xmlNodeGetBase(); - test_ret += test_xmlNodeGetContent(); - test_ret += test_xmlNodeGetLang(); - test_ret += test_xmlNodeGetSpacePreserve(); - test_ret += test_xmlNodeIsText(); - test_ret += test_xmlNodeListGetRawString(); - test_ret += test_xmlNodeListGetString(); - test_ret += test_xmlNodeSetBase(); - test_ret += test_xmlNodeSetContent(); - test_ret += test_xmlNodeSetContentLen(); - test_ret += test_xmlNodeSetLang(); - test_ret += test_xmlNodeSetName(); - test_ret += test_xmlNodeSetSpacePreserve(); - test_ret += test_xmlReconciliateNs(); - test_ret += test_xmlRemoveProp(); - test_ret += test_xmlReplaceNode(); - test_ret += test_xmlSaveFile(); - test_ret += test_xmlSaveFileEnc(); - test_ret += test_xmlSaveFileTo(); - test_ret += test_xmlSaveFormatFile(); - test_ret += test_xmlSaveFormatFileEnc(); - test_ret += test_xmlSaveFormatFileTo(); - test_ret += test_xmlSearchNs(); - test_ret += test_xmlSearchNsByHref(); - test_ret += test_xmlSetBufferAllocationScheme(); - test_ret += test_xmlSetCompressMode(); - test_ret += test_xmlSetDocCompressMode(); - test_ret += test_xmlSetNs(); - test_ret += test_xmlSetNsProp(); - test_ret += test_xmlSetProp(); - test_ret += test_xmlSplitQName2(); - test_ret += test_xmlSplitQName3(); - test_ret += test_xmlStringGetNodeList(); - test_ret += test_xmlStringLenGetNodeList(); - test_ret += test_xmlTextConcat(); - test_ret += test_xmlTextMerge(); - test_ret += test_xmlUnsetNsProp(); - test_ret += test_xmlUnsetProp(); - test_ret += test_xmlValidateNCName(); - test_ret += test_xmlValidateNMToken(); - test_ret += test_xmlValidateName(); - test_ret += test_xmlValidateQName(); - - if (test_ret != 0) - printf("Module tree: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlBuildRelativeURI(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlChar * URI; /* the URI reference under consideration */ - int n_URI; - xmlChar * base; /* the base value */ - int n_base; - - for (n_URI = 0;n_URI < gen_nb_const_xmlChar_ptr;n_URI++) { - for (n_base = 0;n_base < gen_nb_const_xmlChar_ptr;n_base++) { - mem_base = xmlMemBlocks(); - URI = gen_const_xmlChar_ptr(n_URI, 0); - base = gen_const_xmlChar_ptr(n_base, 1); - - ret_val = xmlBuildRelativeURI((const xmlChar *)URI, (const xmlChar *)base); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_URI, (const xmlChar *)URI, 0); - des_const_xmlChar_ptr(n_base, (const xmlChar *)base, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBuildRelativeURI", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URI); - printf(" %d", n_base); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlBuildURI(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlChar * URI; /* the URI instance found in the document */ - int n_URI; - xmlChar * base; /* the base value */ - int n_base; - - for (n_URI = 0;n_URI < gen_nb_const_xmlChar_ptr;n_URI++) { - for (n_base = 0;n_base < gen_nb_const_xmlChar_ptr;n_base++) { - mem_base = xmlMemBlocks(); - URI = gen_const_xmlChar_ptr(n_URI, 0); - base = gen_const_xmlChar_ptr(n_base, 1); - - ret_val = xmlBuildURI((const xmlChar *)URI, (const xmlChar *)base); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_URI, (const xmlChar *)URI, 0); - des_const_xmlChar_ptr(n_base, (const xmlChar *)base, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlBuildURI", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URI); - printf(" %d", n_base); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCanonicPath(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlChar * path; /* the resource locator in a filesystem notation */ - int n_path; - - for (n_path = 0;n_path < gen_nb_const_xmlChar_ptr;n_path++) { - mem_base = xmlMemBlocks(); - path = gen_const_xmlChar_ptr(n_path, 0); - - ret_val = xmlCanonicPath((const xmlChar *)path); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_path, (const xmlChar *)path, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCanonicPath", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_path); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCreateURI(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlNormalizeURIPath(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - char * path; /* pointer to the path string */ - int n_path; - - for (n_path = 0;n_path < gen_nb_char_ptr;n_path++) { - mem_base = xmlMemBlocks(); - path = gen_char_ptr(n_path, 0); - - ret_val = xmlNormalizeURIPath(path); - desret_int(ret_val); - call_tests++; - des_char_ptr(n_path, path, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNormalizeURIPath", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_path); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlParseURI(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlParseURIRaw(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -#define gen_nb_xmlURIPtr 1 -static xmlURIPtr gen_xmlURIPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlURIPtr(int no ATTRIBUTE_UNUSED, xmlURIPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlParseURIReference(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlURIPtr uri; /* pointer to an URI structure */ - int n_uri; - char * str; /* the string to analyze */ - int n_str; - - for (n_uri = 0;n_uri < gen_nb_xmlURIPtr;n_uri++) { - for (n_str = 0;n_str < gen_nb_const_char_ptr;n_str++) { - mem_base = xmlMemBlocks(); - uri = gen_xmlURIPtr(n_uri, 0); - str = gen_const_char_ptr(n_str, 1); - - ret_val = xmlParseURIReference(uri, (const char *)str); - desret_int(ret_val); - call_tests++; - des_xmlURIPtr(n_uri, uri, 0); - des_const_char_ptr(n_str, (const char *)str, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParseURIReference", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_uri); - printf(" %d", n_str); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlPrintURI(void) { - int test_ret = 0; - - int mem_base; - FILE * stream; /* a FILE* for the output */ - int n_stream; - xmlURIPtr uri; /* pointer to an xmlURI */ - int n_uri; - - for (n_stream = 0;n_stream < gen_nb_FILE_ptr;n_stream++) { - for (n_uri = 0;n_uri < gen_nb_xmlURIPtr;n_uri++) { - mem_base = xmlMemBlocks(); - stream = gen_FILE_ptr(n_stream, 0); - uri = gen_xmlURIPtr(n_uri, 1); - - xmlPrintURI(stream, uri); - call_tests++; - des_FILE_ptr(n_stream, stream, 0); - des_xmlURIPtr(n_uri, uri, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlPrintURI", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_stream); - printf(" %d", n_uri); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSaveUri(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlURIPtr uri; /* pointer to an xmlURI */ - int n_uri; - - for (n_uri = 0;n_uri < gen_nb_xmlURIPtr;n_uri++) { - mem_base = xmlMemBlocks(); - uri = gen_xmlURIPtr(n_uri, 0); - - ret_val = xmlSaveUri(uri); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlURIPtr(n_uri, uri, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSaveUri", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_uri); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlURIEscape(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlChar * str; /* the string of the URI to escape */ - int n_str; - - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - mem_base = xmlMemBlocks(); - str = gen_const_xmlChar_ptr(n_str, 0); - - ret_val = xmlURIEscape((const xmlChar *)str); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlURIEscape", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlURIEscapeStr(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlChar * str; /* string to escape */ - int n_str; - xmlChar * list; /* exception list string of chars not to escape */ - int n_list; - - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - for (n_list = 0;n_list < gen_nb_const_xmlChar_ptr;n_list++) { - mem_base = xmlMemBlocks(); - str = gen_const_xmlChar_ptr(n_str, 0); - list = gen_const_xmlChar_ptr(n_list, 1); - - ret_val = xmlURIEscapeStr((const xmlChar *)str, (const xmlChar *)list); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 0); - des_const_xmlChar_ptr(n_list, (const xmlChar *)list, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlURIEscapeStr", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str); - printf(" %d", n_list); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlURIUnescapeString(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - -static int -test_uri(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing uri : 9 of 14 functions ...\n"); - test_ret += test_xmlBuildRelativeURI(); - test_ret += test_xmlBuildURI(); - test_ret += test_xmlCanonicPath(); - test_ret += test_xmlCreateURI(); - test_ret += test_xmlNormalizeURIPath(); - test_ret += test_xmlParseURI(); - test_ret += test_xmlParseURIRaw(); - test_ret += test_xmlParseURIReference(); - test_ret += test_xmlPrintURI(); - test_ret += test_xmlSaveUri(); - test_ret += test_xmlURIEscape(); - test_ret += test_xmlURIEscapeStr(); - test_ret += test_xmlURIUnescapeString(); - - if (test_ret != 0) - printf("Module uri: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlAddAttributeDecl(void) { - int test_ret = 0; - - int mem_base; - xmlAttributePtr ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDtdPtr dtd; /* pointer to the DTD */ - int n_dtd; - xmlChar * elem; /* the element name */ - int n_elem; - xmlChar * name; /* the attribute name */ - int n_name; - xmlChar * ns; /* the attribute namespace prefix */ - int n_ns; - xmlAttributeType type; /* the attribute type */ - int n_type; - xmlAttributeDefault def; /* the attribute default type */ - int n_def; - xmlChar * defaultValue; /* the attribute default value */ - int n_defaultValue; - xmlEnumerationPtr tree; /* if it's an enumeration, the associated list */ - int n_tree; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_dtd = 0;n_dtd < gen_nb_xmlDtdPtr;n_dtd++) { - for (n_elem = 0;n_elem < gen_nb_const_xmlChar_ptr;n_elem++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_ns = 0;n_ns < gen_nb_const_xmlChar_ptr;n_ns++) { - for (n_type = 0;n_type < gen_nb_xmlAttributeType;n_type++) { - for (n_def = 0;n_def < gen_nb_xmlAttributeDefault;n_def++) { - for (n_defaultValue = 0;n_defaultValue < gen_nb_const_xmlChar_ptr;n_defaultValue++) { - for (n_tree = 0;n_tree < gen_nb_xmlEnumerationPtr;n_tree++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - dtd = gen_xmlDtdPtr(n_dtd, 1); - elem = gen_const_xmlChar_ptr(n_elem, 2); - name = gen_const_xmlChar_ptr(n_name, 3); - ns = gen_const_xmlChar_ptr(n_ns, 4); - type = gen_xmlAttributeType(n_type, 5); - def = gen_xmlAttributeDefault(n_def, 6); - defaultValue = gen_const_xmlChar_ptr(n_defaultValue, 7); - tree = gen_xmlEnumerationPtr(n_tree, 8); - - ret_val = xmlAddAttributeDecl(ctxt, dtd, (const xmlChar *)elem, (const xmlChar *)name, (const xmlChar *)ns, type, def, (const xmlChar *)defaultValue, tree); - desret_xmlAttributePtr(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDtdPtr(n_dtd, dtd, 1); - des_const_xmlChar_ptr(n_elem, (const xmlChar *)elem, 2); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 3); - des_const_xmlChar_ptr(n_ns, (const xmlChar *)ns, 4); - des_xmlAttributeType(n_type, type, 5); - des_xmlAttributeDefault(n_def, def, 6); - des_const_xmlChar_ptr(n_defaultValue, (const xmlChar *)defaultValue, 7); - des_xmlEnumerationPtr(n_tree, tree, 8); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlAddAttributeDecl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_dtd); - printf(" %d", n_elem); - printf(" %d", n_name); - printf(" %d", n_ns); - printf(" %d", n_type); - printf(" %d", n_def); - printf(" %d", n_defaultValue); - printf(" %d", n_tree); - printf("\n"); - } - } - } - } - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlAddElementDecl(void) { - int test_ret = 0; - - int mem_base; - xmlElementPtr ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDtdPtr dtd; /* pointer to the DTD */ - int n_dtd; - xmlChar * name; /* the entity name */ - int n_name; - xmlElementTypeVal type; /* the element type */ - int n_type; - xmlElementContentPtr content; /* the element content tree or NULL */ - int n_content; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_dtd = 0;n_dtd < gen_nb_xmlDtdPtr;n_dtd++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_type = 0;n_type < gen_nb_xmlElementTypeVal;n_type++) { - for (n_content = 0;n_content < gen_nb_xmlElementContentPtr;n_content++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - dtd = gen_xmlDtdPtr(n_dtd, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - type = gen_xmlElementTypeVal(n_type, 3); - content = gen_xmlElementContentPtr(n_content, 4); - - ret_val = xmlAddElementDecl(ctxt, dtd, (const xmlChar *)name, type, content); - desret_xmlElementPtr(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDtdPtr(n_dtd, dtd, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_xmlElementTypeVal(n_type, type, 3); - des_xmlElementContentPtr(n_content, content, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlAddElementDecl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_dtd); - printf(" %d", n_name); - printf(" %d", n_type); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlAddID(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlAddNotationDecl(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlAddRef(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -#define gen_nb_xmlAttributeTablePtr 1 -static xmlAttributeTablePtr gen_xmlAttributeTablePtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlAttributeTablePtr(int no ATTRIBUTE_UNUSED, xmlAttributeTablePtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlCopyAttributeTable(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlCopyDocElementContent(void) { - int test_ret = 0; - - int mem_base; - xmlElementContentPtr ret_val; - xmlDocPtr doc; /* the document owning the element declaration */ - int n_doc; - xmlElementContentPtr cur; /* An element content pointer. */ - int n_cur; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_cur = 0;n_cur < gen_nb_xmlElementContentPtr;n_cur++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - cur = gen_xmlElementContentPtr(n_cur, 1); - - ret_val = xmlCopyDocElementContent(doc, cur); - desret_xmlElementContentPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlElementContentPtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCopyDocElementContent", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCopyElementContent(void) { - int test_ret = 0; - - int mem_base; - xmlElementContentPtr ret_val; - xmlElementContentPtr cur; /* An element content pointer. */ - int n_cur; - - for (n_cur = 0;n_cur < gen_nb_xmlElementContentPtr;n_cur++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlElementContentPtr(n_cur, 0); - - ret_val = xmlCopyElementContent(cur); - desret_xmlElementContentPtr(ret_val); - call_tests++; - des_xmlElementContentPtr(n_cur, cur, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCopyElementContent", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -#define gen_nb_xmlElementTablePtr 1 -static xmlElementTablePtr gen_xmlElementTablePtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlElementTablePtr(int no ATTRIBUTE_UNUSED, xmlElementTablePtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlCopyElementTable(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlCopyEnumeration(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -#define gen_nb_xmlNotationTablePtr 1 -static xmlNotationTablePtr gen_xmlNotationTablePtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlNotationTablePtr(int no ATTRIBUTE_UNUSED, xmlNotationTablePtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlCopyNotationTable(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlCreateEnumeration(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -#define gen_nb_xmlAttributePtr 1 -static xmlAttributePtr gen_xmlAttributePtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlAttributePtr(int no ATTRIBUTE_UNUSED, xmlAttributePtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlDumpAttributeDecl(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlBufferPtr buf; /* the XML buffer output */ - int n_buf; - xmlAttributePtr attr; /* An attribute declaration */ - int n_attr; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_attr = 0;n_attr < gen_nb_xmlAttributePtr;n_attr++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - attr = gen_xmlAttributePtr(n_attr, 1); - - xmlDumpAttributeDecl(buf, attr); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_xmlAttributePtr(n_attr, attr, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDumpAttributeDecl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_attr); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDumpAttributeTable(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlBufferPtr buf; /* the XML buffer output */ - int n_buf; - xmlAttributeTablePtr table; /* An attribute table */ - int n_table; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_table = 0;n_table < gen_nb_xmlAttributeTablePtr;n_table++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - table = gen_xmlAttributeTablePtr(n_table, 1); - - xmlDumpAttributeTable(buf, table); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_xmlAttributeTablePtr(n_table, table, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDumpAttributeTable", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_table); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -#define gen_nb_xmlElementPtr 1 -static xmlElementPtr gen_xmlElementPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlElementPtr(int no ATTRIBUTE_UNUSED, xmlElementPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlDumpElementDecl(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlBufferPtr buf; /* the XML buffer output */ - int n_buf; - xmlElementPtr elem; /* An element table */ - int n_elem; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_elem = 0;n_elem < gen_nb_xmlElementPtr;n_elem++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - elem = gen_xmlElementPtr(n_elem, 1); - - xmlDumpElementDecl(buf, elem); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_xmlElementPtr(n_elem, elem, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDumpElementDecl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_elem); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDumpElementTable(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlBufferPtr buf; /* the XML buffer output */ - int n_buf; - xmlElementTablePtr table; /* An element table */ - int n_table; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_table = 0;n_table < gen_nb_xmlElementTablePtr;n_table++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - table = gen_xmlElementTablePtr(n_table, 1); - - xmlDumpElementTable(buf, table); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_xmlElementTablePtr(n_table, table, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDumpElementTable", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_table); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -#define gen_nb_xmlNotationPtr 1 -static xmlNotationPtr gen_xmlNotationPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlNotationPtr(int no ATTRIBUTE_UNUSED, xmlNotationPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlDumpNotationDecl(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlBufferPtr buf; /* the XML buffer output */ - int n_buf; - xmlNotationPtr nota; /* A notation declaration */ - int n_nota; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_nota = 0;n_nota < gen_nb_xmlNotationPtr;n_nota++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - nota = gen_xmlNotationPtr(n_nota, 1); - - xmlDumpNotationDecl(buf, nota); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_xmlNotationPtr(n_nota, nota, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDumpNotationDecl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_nota); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlDumpNotationTable(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlBufferPtr buf; /* the XML buffer output */ - int n_buf; - xmlNotationTablePtr table; /* A notation table */ - int n_table; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_table = 0;n_table < gen_nb_xmlNotationTablePtr;n_table++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - table = gen_xmlNotationTablePtr(n_table, 1); - - xmlDumpNotationTable(buf, table); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_xmlNotationTablePtr(n_table, table, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlDumpNotationTable", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_table); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlGetDtdAttrDesc(void) { - int test_ret = 0; - - int mem_base; - xmlAttributePtr ret_val; - xmlDtdPtr dtd; /* a pointer to the DtD to search */ - int n_dtd; - xmlChar * elem; /* the element name */ - int n_elem; - xmlChar * name; /* the attribute name */ - int n_name; - - for (n_dtd = 0;n_dtd < gen_nb_xmlDtdPtr;n_dtd++) { - for (n_elem = 0;n_elem < gen_nb_const_xmlChar_ptr;n_elem++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - dtd = gen_xmlDtdPtr(n_dtd, 0); - elem = gen_const_xmlChar_ptr(n_elem, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - - ret_val = xmlGetDtdAttrDesc(dtd, (const xmlChar *)elem, (const xmlChar *)name); - desret_xmlAttributePtr(ret_val); - call_tests++; - des_xmlDtdPtr(n_dtd, dtd, 0); - des_const_xmlChar_ptr(n_elem, (const xmlChar *)elem, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetDtdAttrDesc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_dtd); - printf(" %d", n_elem); - printf(" %d", n_name); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetDtdElementDesc(void) { - int test_ret = 0; - - int mem_base; - xmlElementPtr ret_val; - xmlDtdPtr dtd; /* a pointer to the DtD to search */ - int n_dtd; - xmlChar * name; /* the element name */ - int n_name; - - for (n_dtd = 0;n_dtd < gen_nb_xmlDtdPtr;n_dtd++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - dtd = gen_xmlDtdPtr(n_dtd, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlGetDtdElementDesc(dtd, (const xmlChar *)name); - desret_xmlElementPtr(ret_val); - call_tests++; - des_xmlDtdPtr(n_dtd, dtd, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetDtdElementDesc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_dtd); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetDtdNotationDesc(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlGetDtdQAttrDesc(void) { - int test_ret = 0; - - int mem_base; - xmlAttributePtr ret_val; - xmlDtdPtr dtd; /* a pointer to the DtD to search */ - int n_dtd; - xmlChar * elem; /* the element name */ - int n_elem; - xmlChar * name; /* the attribute name */ - int n_name; - xmlChar * prefix; /* the attribute namespace prefix */ - int n_prefix; - - for (n_dtd = 0;n_dtd < gen_nb_xmlDtdPtr;n_dtd++) { - for (n_elem = 0;n_elem < gen_nb_const_xmlChar_ptr;n_elem++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - mem_base = xmlMemBlocks(); - dtd = gen_xmlDtdPtr(n_dtd, 0); - elem = gen_const_xmlChar_ptr(n_elem, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - prefix = gen_const_xmlChar_ptr(n_prefix, 3); - - ret_val = xmlGetDtdQAttrDesc(dtd, (const xmlChar *)elem, (const xmlChar *)name, (const xmlChar *)prefix); - desret_xmlAttributePtr(ret_val); - call_tests++; - des_xmlDtdPtr(n_dtd, dtd, 0); - des_const_xmlChar_ptr(n_elem, (const xmlChar *)elem, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetDtdQAttrDesc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_dtd); - printf(" %d", n_elem); - printf(" %d", n_name); - printf(" %d", n_prefix); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetDtdQElementDesc(void) { - int test_ret = 0; - - int mem_base; - xmlElementPtr ret_val; - xmlDtdPtr dtd; /* a pointer to the DtD to search */ - int n_dtd; - xmlChar * name; /* the element name */ - int n_name; - xmlChar * prefix; /* the element namespace prefix */ - int n_prefix; - - for (n_dtd = 0;n_dtd < gen_nb_xmlDtdPtr;n_dtd++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - mem_base = xmlMemBlocks(); - dtd = gen_xmlDtdPtr(n_dtd, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - prefix = gen_const_xmlChar_ptr(n_prefix, 2); - - ret_val = xmlGetDtdQElementDesc(dtd, (const xmlChar *)name, (const xmlChar *)prefix); - desret_xmlElementPtr(ret_val); - call_tests++; - des_xmlDtdPtr(n_dtd, dtd, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetDtdQElementDesc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_dtd); - printf(" %d", n_name); - printf(" %d", n_prefix); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetID(void) { - int test_ret = 0; - - int mem_base; - xmlAttrPtr ret_val; - xmlDocPtr doc; /* pointer to the document */ - int n_doc; - xmlChar * ID; /* the ID value */ - int n_ID; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_ID = 0;n_ID < gen_nb_const_xmlChar_ptr;n_ID++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - ID = gen_const_xmlChar_ptr(n_ID, 1); - - ret_val = xmlGetID(doc, (const xmlChar *)ID); - desret_xmlAttrPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_ID, (const xmlChar *)ID, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetID", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_ID); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetRefs(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlIsID(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr elem; /* the element carrying the attribute */ - int n_elem; - xmlAttrPtr attr; /* the attribute */ - int n_attr; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr;n_elem++) { - for (n_attr = 0;n_attr < gen_nb_xmlAttrPtr;n_attr++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - elem = gen_xmlNodePtr(n_elem, 1); - attr = gen_xmlAttrPtr(n_attr, 2); - - ret_val = xmlIsID(doc, elem, attr); - desret_int(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNodePtr(n_elem, elem, 1); - des_xmlAttrPtr(n_attr, attr, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIsID", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_elem); - printf(" %d", n_attr); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlIsMixedElement(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlChar * name; /* the element name */ - int n_name; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlIsMixedElement(doc, (const xmlChar *)name); - desret_int(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIsMixedElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlIsRef(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr elem; /* the element carrying the attribute */ - int n_elem; - xmlAttrPtr attr; /* the attribute */ - int n_attr; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr;n_elem++) { - for (n_attr = 0;n_attr < gen_nb_xmlAttrPtr;n_attr++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - elem = gen_xmlNodePtr(n_elem, 1); - attr = gen_xmlAttrPtr(n_attr, 2); - - ret_val = xmlIsRef(doc, elem, attr); - desret_int(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNodePtr(n_elem, elem, 1); - des_xmlAttrPtr(n_attr, attr, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIsRef", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_elem); - printf(" %d", n_attr); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewDocElementContent(void) { - int test_ret = 0; - - int mem_base; - xmlElementContentPtr ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlChar * name; /* the subelement name or NULL */ - int n_name; - xmlElementContentType type; /* the type of element content decl */ - int n_type; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_type = 0;n_type < gen_nb_xmlElementContentType;n_type++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - type = gen_xmlElementContentType(n_type, 2); - - ret_val = xmlNewDocElementContent(doc, (const xmlChar *)name, type); - xmlFreeDocElementContent(doc, ret_val); ret_val = NULL; - desret_xmlElementContentPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_xmlElementContentType(n_type, type, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewDocElementContent", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_name); - printf(" %d", n_type); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewElementContent(void) { - int test_ret = 0; - - int mem_base; - xmlElementContentPtr ret_val; - xmlChar * name; /* the subelement name or NULL */ - int n_name; - xmlElementContentType type; /* the type of element content decl */ - int n_type; - - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_type = 0;n_type < gen_nb_xmlElementContentType;n_type++) { - mem_base = xmlMemBlocks(); - name = gen_const_xmlChar_ptr(n_name, 0); - type = gen_xmlElementContentType(n_type, 1); - - ret_val = xmlNewElementContent((const xmlChar *)name, type); - desret_xmlElementContentPtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 0); - des_xmlElementContentType(n_type, type, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewElementContent", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_name); - printf(" %d", n_type); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNewValidCtxt(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlRemoveID(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlAttrPtr attr; /* the attribute */ - int n_attr; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_attr = 0;n_attr < gen_nb_xmlAttrPtr;n_attr++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - attr = gen_xmlAttrPtr(n_attr, 1); - - ret_val = xmlRemoveID(doc, attr); - desret_int(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlAttrPtr(n_attr, attr, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRemoveID", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_attr); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlRemoveRef(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlAttrPtr attr; /* the attribute */ - int n_attr; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_attr = 0;n_attr < gen_nb_xmlAttrPtr;n_attr++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - attr = gen_xmlAttrPtr(n_attr, 1); - - ret_val = xmlRemoveRef(doc, attr); - desret_int(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlAttrPtr(n_attr, attr, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRemoveRef", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_attr); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSnprintfElementContent(void) { - int test_ret = 0; - - int mem_base; - char * buf; /* an output buffer */ - int n_buf; - int size; /* the buffer size */ - int n_size; - xmlElementContentPtr content; /* An element table */ - int n_content; - int englob; /* 1 if one must print the englobing parenthesis, 0 otherwise */ - int n_englob; - - for (n_buf = 0;n_buf < gen_nb_char_ptr;n_buf++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - for (n_content = 0;n_content < gen_nb_xmlElementContentPtr;n_content++) { - for (n_englob = 0;n_englob < gen_nb_int;n_englob++) { - mem_base = xmlMemBlocks(); - buf = gen_char_ptr(n_buf, 0); - size = gen_int(n_size, 1); - content = gen_xmlElementContentPtr(n_content, 2); - englob = gen_int(n_englob, 3); - - xmlSnprintfElementContent(buf, size, content, englob); - call_tests++; - des_char_ptr(n_buf, buf, 0); - des_int(n_size, size, 1); - des_xmlElementContentPtr(n_content, content, 2); - des_int(n_englob, englob, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSnprintfElementContent", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_size); - printf(" %d", n_content); - printf(" %d", n_englob); - printf("\n"); - } - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSprintfElementContent(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) -#ifdef LIBXML_OUTPUT_ENABLED - int mem_base; - char * buf; /* an output buffer */ - int n_buf; - xmlElementContentPtr content; /* An element table */ - int n_content; - int englob; /* 1 if one must print the englobing parenthesis, 0 otherwise */ - int n_englob; - - for (n_buf = 0;n_buf < gen_nb_char_ptr;n_buf++) { - for (n_content = 0;n_content < gen_nb_xmlElementContentPtr;n_content++) { - for (n_englob = 0;n_englob < gen_nb_int;n_englob++) { - mem_base = xmlMemBlocks(); - buf = gen_char_ptr(n_buf, 0); - content = gen_xmlElementContentPtr(n_content, 1); - englob = gen_int(n_englob, 2); - - xmlSprintfElementContent(buf, content, englob); - call_tests++; - des_char_ptr(n_buf, buf, 0); - des_xmlElementContentPtr(n_content, content, 1); - des_int(n_englob, englob, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSprintfElementContent", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_content); - printf(" %d", n_englob); - printf("\n"); - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlValidBuildContentModel(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* a validation context */ - int n_ctxt; - xmlElementPtr elem; /* an element declaration node */ - int n_elem; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_elem = 0;n_elem < gen_nb_xmlElementPtr;n_elem++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - elem = gen_xmlElementPtr(n_elem, 1); - - ret_val = xmlValidBuildContentModel(ctxt, elem); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlElementPtr(n_elem, elem, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidBuildContentModel", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_elem); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidCtxtNormalizeAttributeValue(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlValidCtxtPtr ctxt; /* the validation context or NULL */ - int n_ctxt; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr elem; /* the parent */ - int n_elem; - xmlChar * name; /* the attribute name */ - int n_name; - xmlChar * value; /* the attribute value */ - int n_value; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr;n_elem++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - elem = gen_xmlNodePtr(n_elem, 2); - name = gen_const_xmlChar_ptr(n_name, 3); - value = gen_const_xmlChar_ptr(n_value, 4); - - ret_val = xmlValidCtxtNormalizeAttributeValue(ctxt, doc, elem, (const xmlChar *)name, (const xmlChar *)value); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_elem, elem, 2); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 3); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidCtxtNormalizeAttributeValue", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf(" %d", n_elem); - printf(" %d", n_name); - printf(" %d", n_value); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -#define gen_nb_xmlElementContent_ptr 1 -static xmlElementContent * gen_xmlElementContent_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlElementContent_ptr(int no ATTRIBUTE_UNUSED, xmlElementContent * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlValidGetPotentialChildren(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) -#ifdef LIBXML_VALID_ENABLED - int mem_base; - int ret_val; - xmlElementContent * ctree; /* an element content tree */ - int n_ctree; - xmlChar ** names; /* an array to store the list of child names */ - int n_names; - int * len; /* a pointer to the number of element in the list */ - int n_len; - int max; /* the size of the array */ - int n_max; - - for (n_ctree = 0;n_ctree < gen_nb_xmlElementContent_ptr;n_ctree++) { - for (n_names = 0;n_names < gen_nb_const_xmlChar_ptr_ptr;n_names++) { - for (n_len = 0;n_len < gen_nb_int_ptr;n_len++) { - for (n_max = 0;n_max < gen_nb_int;n_max++) { - mem_base = xmlMemBlocks(); - ctree = gen_xmlElementContent_ptr(n_ctree, 0); - names = gen_const_xmlChar_ptr_ptr(n_names, 1); - len = gen_int_ptr(n_len, 2); - max = gen_int(n_max, 3); - - ret_val = xmlValidGetPotentialChildren(ctree, (const xmlChar **)names, len, max); - desret_int(ret_val); - call_tests++; - des_xmlElementContent_ptr(n_ctree, ctree, 0); - des_const_xmlChar_ptr_ptr(n_names, (const xmlChar **)names, 1); - des_int_ptr(n_len, len, 2); - des_int(n_max, max, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidGetPotentialChildren", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctree); - printf(" %d", n_names); - printf(" %d", n_len); - printf(" %d", n_max); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlValidGetValidElements(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) -#ifdef LIBXML_VALID_ENABLED - int mem_base; - int ret_val; - xmlNode * prev; /* an element to insert after */ - int n_prev; - xmlNode * next; /* an element to insert next */ - int n_next; - xmlChar ** names; /* an array to store the list of child names */ - int n_names; - int max; /* the size of the array */ - int n_max; - - for (n_prev = 0;n_prev < gen_nb_xmlNodePtr;n_prev++) { - for (n_next = 0;n_next < gen_nb_xmlNodePtr;n_next++) { - for (n_names = 0;n_names < gen_nb_const_xmlChar_ptr_ptr;n_names++) { - for (n_max = 0;n_max < gen_nb_int;n_max++) { - mem_base = xmlMemBlocks(); - prev = gen_xmlNodePtr(n_prev, 0); - next = gen_xmlNodePtr(n_next, 1); - names = gen_const_xmlChar_ptr_ptr(n_names, 2); - max = gen_int(n_max, 3); - - ret_val = xmlValidGetValidElements(prev, next, (const xmlChar **)names, max); - desret_int(ret_val); - call_tests++; - des_xmlNodePtr(n_prev, prev, 0); - des_xmlNodePtr(n_next, next, 1); - des_const_xmlChar_ptr_ptr(n_names, (const xmlChar **)names, 2); - des_int(n_max, max, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidGetValidElements", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_prev); - printf(" %d", n_next); - printf(" %d", n_names); - printf(" %d", n_max); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlValidNormalizeAttributeValue(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlNodePtr elem; /* the parent */ - int n_elem; - xmlChar * name; /* the attribute name */ - int n_name; - xmlChar * value; /* the attribute value */ - int n_value; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr;n_elem++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - elem = gen_xmlNodePtr(n_elem, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - value = gen_const_xmlChar_ptr(n_value, 3); - - ret_val = xmlValidNormalizeAttributeValue(doc, elem, (const xmlChar *)name, (const xmlChar *)value); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNodePtr(n_elem, elem, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidNormalizeAttributeValue", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_elem); - printf(" %d", n_name); - printf(" %d", n_value); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateAttributeDecl(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - xmlAttributePtr attr; /* an attribute definition */ - int n_attr; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_attr = 0;n_attr < gen_nb_xmlAttributePtr;n_attr++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - attr = gen_xmlAttributePtr(n_attr, 2); - - ret_val = xmlValidateAttributeDecl(ctxt, doc, attr); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlAttributePtr(n_attr, attr, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateAttributeDecl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf(" %d", n_attr); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateAttributeValue(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlAttributeType type; /* an attribute type */ - int n_type; - xmlChar * value; /* an attribute value */ - int n_value; - - for (n_type = 0;n_type < gen_nb_xmlAttributeType;n_type++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - type = gen_xmlAttributeType(n_type, 0); - value = gen_const_xmlChar_ptr(n_value, 1); - - ret_val = xmlValidateAttributeValue(type, (const xmlChar *)value); - desret_int(ret_val); - call_tests++; - des_xmlAttributeType(n_type, type, 0); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateAttributeValue", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_type); - printf(" %d", n_value); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateDocument(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - - ret_val = xmlValidateDocument(ctxt, doc); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateDocument", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateDocumentFinal(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - - ret_val = xmlValidateDocumentFinal(ctxt, doc); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateDocumentFinal", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateDtd(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - xmlDtdPtr dtd; /* a dtd instance */ - int n_dtd; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_dtd = 0;n_dtd < gen_nb_xmlDtdPtr;n_dtd++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - dtd = gen_xmlDtdPtr(n_dtd, 2); - - ret_val = xmlValidateDtd(ctxt, doc, dtd); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlDtdPtr(n_dtd, dtd, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateDtd", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf(" %d", n_dtd); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateDtdFinal(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - - ret_val = xmlValidateDtdFinal(ctxt, doc); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateDtdFinal", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateElement(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - xmlNodePtr elem; /* an element instance */ - int n_elem; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr;n_elem++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - elem = gen_xmlNodePtr(n_elem, 2); - - ret_val = xmlValidateElement(ctxt, doc, elem); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_elem, elem, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf(" %d", n_elem); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateElementDecl(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - xmlElementPtr elem; /* an element definition */ - int n_elem; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_elem = 0;n_elem < gen_nb_xmlElementPtr;n_elem++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - elem = gen_xmlElementPtr(n_elem, 2); - - ret_val = xmlValidateElementDecl(ctxt, doc, elem); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlElementPtr(n_elem, elem, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateElementDecl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf(" %d", n_elem); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateNameValue(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlChar * value; /* an Name value */ - int n_value; - - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - value = gen_const_xmlChar_ptr(n_value, 0); - - ret_val = xmlValidateNameValue((const xmlChar *)value); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateNameValue", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_value); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateNamesValue(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlChar * value; /* an Names value */ - int n_value; - - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - value = gen_const_xmlChar_ptr(n_value, 0); - - ret_val = xmlValidateNamesValue((const xmlChar *)value); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateNamesValue", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_value); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateNmtokenValue(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlChar * value; /* an Nmtoken value */ - int n_value; - - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - value = gen_const_xmlChar_ptr(n_value, 0); - - ret_val = xmlValidateNmtokenValue((const xmlChar *)value); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateNmtokenValue", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_value); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateNmtokensValue(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlChar * value; /* an Nmtokens value */ - int n_value; - - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - value = gen_const_xmlChar_ptr(n_value, 0); - - ret_val = xmlValidateNmtokensValue((const xmlChar *)value); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateNmtokensValue", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_value); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateNotationDecl(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - xmlNotationPtr nota; /* a notation definition */ - int n_nota; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_nota = 0;n_nota < gen_nb_xmlNotationPtr;n_nota++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - nota = gen_xmlNotationPtr(n_nota, 2); - - ret_val = xmlValidateNotationDecl(ctxt, doc, nota); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNotationPtr(n_nota, nota, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateNotationDecl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf(" %d", n_nota); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateNotationUse(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* the document */ - int n_doc; - xmlChar * notationName; /* the notation name to check */ - int n_notationName; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_notationName = 0;n_notationName < gen_nb_const_xmlChar_ptr;n_notationName++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - notationName = gen_const_xmlChar_ptr(n_notationName, 2); - - ret_val = xmlValidateNotationUse(ctxt, doc, (const xmlChar *)notationName); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_const_xmlChar_ptr(n_notationName, (const xmlChar *)notationName, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateNotationUse", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf(" %d", n_notationName); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateOneAttribute(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - xmlNodePtr elem; /* an element instance */ - int n_elem; - xmlAttrPtr attr; /* an attribute instance */ - int n_attr; - xmlChar * value; /* the attribute value (without entities processing) */ - int n_value; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr;n_elem++) { - for (n_attr = 0;n_attr < gen_nb_xmlAttrPtr;n_attr++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - elem = gen_xmlNodePtr(n_elem, 2); - attr = gen_xmlAttrPtr(n_attr, 3); - value = gen_const_xmlChar_ptr(n_value, 4); - - ret_val = xmlValidateOneAttribute(ctxt, doc, elem, attr, (const xmlChar *)value); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_elem, elem, 2); - des_xmlAttrPtr(n_attr, attr, 3); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateOneAttribute", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf(" %d", n_elem); - printf(" %d", n_attr); - printf(" %d", n_value); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateOneElement(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - xmlNodePtr elem; /* an element instance */ - int n_elem; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr;n_elem++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - elem = gen_xmlNodePtr(n_elem, 2); - - ret_val = xmlValidateOneElement(ctxt, doc, elem); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_elem, elem, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateOneElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf(" %d", n_elem); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateOneNamespace(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - xmlNodePtr elem; /* an element instance */ - int n_elem; - xmlChar * prefix; /* the namespace prefix */ - int n_prefix; - xmlNsPtr ns; /* an namespace declaration instance */ - int n_ns; - xmlChar * value; /* the attribute value (without entities processing) */ - int n_value; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr;n_elem++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - for (n_ns = 0;n_ns < gen_nb_xmlNsPtr;n_ns++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - elem = gen_xmlNodePtr(n_elem, 2); - prefix = gen_const_xmlChar_ptr(n_prefix, 3); - ns = gen_xmlNsPtr(n_ns, 4); - value = gen_const_xmlChar_ptr(n_value, 5); - - ret_val = xmlValidateOneNamespace(ctxt, doc, elem, (const xmlChar *)prefix, ns, (const xmlChar *)value); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_elem, elem, 2); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 3); - des_xmlNsPtr(n_ns, ns, 4); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateOneNamespace", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf(" %d", n_elem); - printf(" %d", n_prefix); - printf(" %d", n_ns); - printf(" %d", n_value); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidatePopElement(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - xmlNodePtr elem; /* an element instance */ - int n_elem; - xmlChar * qname; /* the qualified name as appearing in the serialization */ - int n_qname; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr;n_elem++) { - for (n_qname = 0;n_qname < gen_nb_const_xmlChar_ptr;n_qname++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - elem = gen_xmlNodePtr(n_elem, 2); - qname = gen_const_xmlChar_ptr(n_qname, 3); - - ret_val = xmlValidatePopElement(ctxt, doc, elem, (const xmlChar *)qname); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_elem, elem, 2); - des_const_xmlChar_ptr(n_qname, (const xmlChar *)qname, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidatePopElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf(" %d", n_elem); - printf(" %d", n_qname); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidatePushCData(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlChar * data; /* some character data read */ - int n_data; - int len; /* the lenght of the data */ - int n_len; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_data = 0;n_data < gen_nb_const_xmlChar_ptr;n_data++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - data = gen_const_xmlChar_ptr(n_data, 1); - len = gen_int(n_len, 2); - - ret_val = xmlValidatePushCData(ctxt, (const xmlChar *)data, len); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_data, (const xmlChar *)data, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidatePushCData", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_data); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidatePushElement(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - xmlNodePtr elem; /* an element instance */ - int n_elem; - xmlChar * qname; /* the qualified name as appearing in the serialization */ - int n_qname; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr;n_elem++) { - for (n_qname = 0;n_qname < gen_nb_const_xmlChar_ptr;n_qname++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - elem = gen_xmlNodePtr(n_elem, 2); - qname = gen_const_xmlChar_ptr(n_qname, 3); - - ret_val = xmlValidatePushElement(ctxt, doc, elem, (const xmlChar *)qname); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - des_xmlNodePtr(n_elem, elem, 2); - des_const_xmlChar_ptr(n_qname, (const xmlChar *)qname, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidatePushElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf(" %d", n_elem); - printf(" %d", n_qname); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlValidateRoot(void) { - int test_ret = 0; - -#if defined(LIBXML_VALID_ENABLED) - int mem_base; - int ret_val; - xmlValidCtxtPtr ctxt; /* the validation context */ - int n_ctxt; - xmlDocPtr doc; /* a document instance */ - int n_doc; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlValidCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlValidCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - - ret_val = xmlValidateRoot(ctxt, doc); - desret_int(ret_val); - call_tests++; - des_xmlValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlValidateRoot", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_valid(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing valid : 50 of 70 functions ...\n"); - test_ret += test_xmlAddAttributeDecl(); - test_ret += test_xmlAddElementDecl(); - test_ret += test_xmlAddID(); - test_ret += test_xmlAddNotationDecl(); - test_ret += test_xmlAddRef(); - test_ret += test_xmlCopyAttributeTable(); - test_ret += test_xmlCopyDocElementContent(); - test_ret += test_xmlCopyElementContent(); - test_ret += test_xmlCopyElementTable(); - test_ret += test_xmlCopyEnumeration(); - test_ret += test_xmlCopyNotationTable(); - test_ret += test_xmlCreateEnumeration(); - test_ret += test_xmlDumpAttributeDecl(); - test_ret += test_xmlDumpAttributeTable(); - test_ret += test_xmlDumpElementDecl(); - test_ret += test_xmlDumpElementTable(); - test_ret += test_xmlDumpNotationDecl(); - test_ret += test_xmlDumpNotationTable(); - test_ret += test_xmlGetDtdAttrDesc(); - test_ret += test_xmlGetDtdElementDesc(); - test_ret += test_xmlGetDtdNotationDesc(); - test_ret += test_xmlGetDtdQAttrDesc(); - test_ret += test_xmlGetDtdQElementDesc(); - test_ret += test_xmlGetID(); - test_ret += test_xmlGetRefs(); - test_ret += test_xmlIsID(); - test_ret += test_xmlIsMixedElement(); - test_ret += test_xmlIsRef(); - test_ret += test_xmlNewDocElementContent(); - test_ret += test_xmlNewElementContent(); - test_ret += test_xmlNewValidCtxt(); - test_ret += test_xmlRemoveID(); - test_ret += test_xmlRemoveRef(); - test_ret += test_xmlSnprintfElementContent(); - test_ret += test_xmlSprintfElementContent(); - test_ret += test_xmlValidBuildContentModel(); - test_ret += test_xmlValidCtxtNormalizeAttributeValue(); - test_ret += test_xmlValidGetPotentialChildren(); - test_ret += test_xmlValidGetValidElements(); - test_ret += test_xmlValidNormalizeAttributeValue(); - test_ret += test_xmlValidateAttributeDecl(); - test_ret += test_xmlValidateAttributeValue(); - test_ret += test_xmlValidateDocument(); - test_ret += test_xmlValidateDocumentFinal(); - test_ret += test_xmlValidateDtd(); - test_ret += test_xmlValidateDtdFinal(); - test_ret += test_xmlValidateElement(); - test_ret += test_xmlValidateElementDecl(); - test_ret += test_xmlValidateNameValue(); - test_ret += test_xmlValidateNamesValue(); - test_ret += test_xmlValidateNmtokenValue(); - test_ret += test_xmlValidateNmtokensValue(); - test_ret += test_xmlValidateNotationDecl(); - test_ret += test_xmlValidateNotationUse(); - test_ret += test_xmlValidateOneAttribute(); - test_ret += test_xmlValidateOneElement(); - test_ret += test_xmlValidateOneNamespace(); - test_ret += test_xmlValidatePopElement(); - test_ret += test_xmlValidatePushCData(); - test_ret += test_xmlValidatePushElement(); - test_ret += test_xmlValidateRoot(); - - if (test_ret != 0) - printf("Module valid: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlXIncludeNewContext(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlXIncludeProcess(void) { - int test_ret = 0; - -#if defined(LIBXML_XINCLUDE_ENABLED) - int mem_base; - int ret_val; - xmlDocPtr doc; /* an XML document */ - int n_doc; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - - ret_val = xmlXIncludeProcess(doc); - desret_int(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXIncludeProcess", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXIncludeProcessFlags(void) { - int test_ret = 0; - -#if defined(LIBXML_XINCLUDE_ENABLED) - int mem_base; - int ret_val; - xmlDocPtr doc; /* an XML document */ - int n_doc; - int flags; /* a set of xmlParserOption used for parsing XML includes */ - int n_flags; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_flags = 0;n_flags < gen_nb_int;n_flags++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - flags = gen_int(n_flags, 1); - - ret_val = xmlXIncludeProcessFlags(doc, flags); - desret_int(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_int(n_flags, flags, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXIncludeProcessFlags", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_flags); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -#ifdef LIBXML_XINCLUDE_ENABLED - -#define gen_nb_xmlXIncludeCtxtPtr 1 -static xmlXIncludeCtxtPtr gen_xmlXIncludeCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlXIncludeCtxtPtr(int no ATTRIBUTE_UNUSED, xmlXIncludeCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlXIncludeProcessNode(void) { - int test_ret = 0; - -#if defined(LIBXML_XINCLUDE_ENABLED) - int mem_base; - int ret_val; - xmlXIncludeCtxtPtr ctxt; /* an existing XInclude context */ - int n_ctxt; - xmlNodePtr node; /* a node in an XML document */ - int n_node; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXIncludeCtxtPtr;n_ctxt++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXIncludeCtxtPtr(n_ctxt, 0); - node = gen_xmlNodePtr(n_node, 1); - - ret_val = xmlXIncludeProcessNode(ctxt, node); - desret_int(ret_val); - call_tests++; - des_xmlXIncludeCtxtPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_node, node, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXIncludeProcessNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_node); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXIncludeProcessTree(void) { - int test_ret = 0; - -#if defined(LIBXML_XINCLUDE_ENABLED) - int mem_base; - int ret_val; - xmlNodePtr tree; /* a node in an XML document */ - int n_tree; - - for (n_tree = 0;n_tree < gen_nb_xmlNodePtr;n_tree++) { - mem_base = xmlMemBlocks(); - tree = gen_xmlNodePtr(n_tree, 0); - - ret_val = xmlXIncludeProcessTree(tree); - desret_int(ret_val); - call_tests++; - des_xmlNodePtr(n_tree, tree, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXIncludeProcessTree", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_tree); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXIncludeProcessTreeFlags(void) { - int test_ret = 0; - -#if defined(LIBXML_XINCLUDE_ENABLED) - int mem_base; - int ret_val; - xmlNodePtr tree; /* a node in an XML document */ - int n_tree; - int flags; /* a set of xmlParserOption used for parsing XML includes */ - int n_flags; - - for (n_tree = 0;n_tree < gen_nb_xmlNodePtr;n_tree++) { - for (n_flags = 0;n_flags < gen_nb_int;n_flags++) { - mem_base = xmlMemBlocks(); - tree = gen_xmlNodePtr(n_tree, 0); - flags = gen_int(n_flags, 1); - - ret_val = xmlXIncludeProcessTreeFlags(tree, flags); - desret_int(ret_val); - call_tests++; - des_xmlNodePtr(n_tree, tree, 0); - des_int(n_flags, flags, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXIncludeProcessTreeFlags", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_tree); - printf(" %d", n_flags); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXIncludeSetFlags(void) { - int test_ret = 0; - -#if defined(LIBXML_XINCLUDE_ENABLED) - int mem_base; - int ret_val; - xmlXIncludeCtxtPtr ctxt; /* an XInclude processing context */ - int n_ctxt; - int flags; /* a set of xmlParserOption used for parsing XML includes */ - int n_flags; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXIncludeCtxtPtr;n_ctxt++) { - for (n_flags = 0;n_flags < gen_nb_int;n_flags++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXIncludeCtxtPtr(n_ctxt, 0); - flags = gen_int(n_flags, 1); - - ret_val = xmlXIncludeSetFlags(ctxt, flags); - desret_int(ret_val); - call_tests++; - des_xmlXIncludeCtxtPtr(n_ctxt, ctxt, 0); - des_int(n_flags, flags, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXIncludeSetFlags", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_flags); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_xinclude(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing xinclude : 6 of 8 functions ...\n"); - test_ret += test_xmlXIncludeNewContext(); - test_ret += test_xmlXIncludeProcess(); - test_ret += test_xmlXIncludeProcessFlags(); - test_ret += test_xmlXIncludeProcessNode(); - test_ret += test_xmlXIncludeProcessTree(); - test_ret += test_xmlXIncludeProcessTreeFlags(); - test_ret += test_xmlXIncludeSetFlags(); - - if (test_ret != 0) - printf("Module xinclude: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlAllocOutputBuffer(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlOutputBufferPtr ret_val; - xmlCharEncodingHandlerPtr encoder; /* the encoding converter or NULL */ - int n_encoder; - - for (n_encoder = 0;n_encoder < gen_nb_xmlCharEncodingHandlerPtr;n_encoder++) { - mem_base = xmlMemBlocks(); - encoder = gen_xmlCharEncodingHandlerPtr(n_encoder, 0); - - ret_val = xmlAllocOutputBuffer(encoder); - desret_xmlOutputBufferPtr(ret_val); - call_tests++; - des_xmlCharEncodingHandlerPtr(n_encoder, encoder, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlAllocOutputBuffer", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_encoder); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlAllocParserInputBuffer(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputBufferPtr ret_val; - xmlCharEncoding enc; /* the charset encoding if known */ - int n_enc; - - for (n_enc = 0;n_enc < gen_nb_xmlCharEncoding;n_enc++) { - mem_base = xmlMemBlocks(); - enc = gen_xmlCharEncoding(n_enc, 0); - - ret_val = xmlAllocParserInputBuffer(enc); - desret_xmlParserInputBufferPtr(ret_val); - call_tests++; - des_xmlCharEncoding(n_enc, enc, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlAllocParserInputBuffer", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_enc); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCheckFilename(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - char * path; /* the path to check */ - int n_path; - - for (n_path = 0;n_path < gen_nb_const_char_ptr;n_path++) { - mem_base = xmlMemBlocks(); - path = gen_const_char_ptr(n_path, 0); - - ret_val = xmlCheckFilename((const char *)path); - desret_int(ret_val); - call_tests++; - des_const_char_ptr(n_path, (const char *)path, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCheckFilename", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_path); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCheckHTTPInput(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputPtr ret_val; - xmlParserCtxtPtr ctxt; /* an XML parser context */ - int n_ctxt; - xmlParserInputPtr ret; /* an XML parser input */ - int n_ret; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_ret = 0;n_ret < gen_nb_xmlParserInputPtr;n_ret++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - ret = gen_xmlParserInputPtr(n_ret, 1); - - ret_val = xmlCheckHTTPInput(ctxt, ret); - desret_xmlParserInputPtr(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_xmlParserInputPtr(n_ret, ret, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCheckHTTPInput", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_ret); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCleanupInputCallbacks(void) { - int test_ret = 0; - - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlCleanupInputCallbacks(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCleanupInputCallbacks", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCleanupOutputCallbacks(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlCleanupOutputCallbacks(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCleanupOutputCallbacks", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlFileClose(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - void * context; /* the I/O context */ - int n_context; - - for (n_context = 0;n_context < gen_nb_void_ptr;n_context++) { - mem_base = xmlMemBlocks(); - context = gen_void_ptr(n_context, 0); - - ret_val = xmlFileClose(context); - desret_int(ret_val); - call_tests++; - des_void_ptr(n_context, context, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlFileClose", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_context); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlFileMatch(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - const char * filename; /* the URI for matching */ - int n_filename; - - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - mem_base = xmlMemBlocks(); - filename = gen_filepath(n_filename, 0); - - ret_val = xmlFileMatch(filename); - desret_int(ret_val); - call_tests++; - des_filepath(n_filename, filename, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlFileMatch", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlFileOpen(void) { - int test_ret = 0; - - int mem_base; - void * ret_val; - const char * filename; /* the URI for matching */ - int n_filename; - - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - mem_base = xmlMemBlocks(); - filename = gen_filepath(n_filename, 0); - - ret_val = xmlFileOpen(filename); - desret_void_ptr(ret_val); - call_tests++; - des_filepath(n_filename, filename, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlFileOpen", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlFileRead(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - void * context; /* the I/O context */ - int n_context; - char * buffer; /* where to drop data */ - int n_buffer; - int len; /* number of bytes to write */ - int n_len; - - for (n_context = 0;n_context < gen_nb_void_ptr;n_context++) { - for (n_buffer = 0;n_buffer < gen_nb_char_ptr;n_buffer++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - context = gen_void_ptr(n_context, 0); - buffer = gen_char_ptr(n_buffer, 1); - len = gen_int(n_len, 2); - - ret_val = xmlFileRead(context, buffer, len); - desret_int(ret_val); - call_tests++; - des_void_ptr(n_context, context, 0); - des_char_ptr(n_buffer, buffer, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlFileRead", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_context); - printf(" %d", n_buffer); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlIOFTPClose(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - int ret_val; - void * context; /* the I/O context */ - int n_context; - - for (n_context = 0;n_context < gen_nb_void_ptr;n_context++) { - mem_base = xmlMemBlocks(); - context = gen_void_ptr(n_context, 0); - - ret_val = xmlIOFTPClose(context); - desret_int(ret_val); - call_tests++; - des_void_ptr(n_context, context, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIOFTPClose", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_context); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlIOFTPMatch(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - int ret_val; - const char * filename; /* the URI for matching */ - int n_filename; - - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - mem_base = xmlMemBlocks(); - filename = gen_filepath(n_filename, 0); - - ret_val = xmlIOFTPMatch(filename); - desret_int(ret_val); - call_tests++; - des_filepath(n_filename, filename, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIOFTPMatch", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlIOFTPOpen(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - void * ret_val; - const char * filename; /* the URI for matching */ - int n_filename; - - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - mem_base = xmlMemBlocks(); - filename = gen_filepath(n_filename, 0); - - ret_val = xmlIOFTPOpen(filename); - desret_void_ptr(ret_val); - call_tests++; - des_filepath(n_filename, filename, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIOFTPOpen", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlIOFTPRead(void) { - int test_ret = 0; - -#if defined(LIBXML_FTP_ENABLED) - int mem_base; - int ret_val; - void * context; /* the I/O context */ - int n_context; - char * buffer; /* where to drop data */ - int n_buffer; - int len; /* number of bytes to write */ - int n_len; - - for (n_context = 0;n_context < gen_nb_void_ptr;n_context++) { - for (n_buffer = 0;n_buffer < gen_nb_char_ptr;n_buffer++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - context = gen_void_ptr(n_context, 0); - buffer = gen_char_ptr(n_buffer, 1); - len = gen_int(n_len, 2); - - ret_val = xmlIOFTPRead(context, buffer, len); - desret_int(ret_val); - call_tests++; - des_void_ptr(n_context, context, 0); - des_char_ptr(n_buffer, buffer, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIOFTPRead", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_context); - printf(" %d", n_buffer); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlIOHTTPClose(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) - int mem_base; - int ret_val; - void * context; /* the I/O context */ - int n_context; - - for (n_context = 0;n_context < gen_nb_void_ptr;n_context++) { - mem_base = xmlMemBlocks(); - context = gen_void_ptr(n_context, 0); - - ret_val = xmlIOHTTPClose(context); - desret_int(ret_val); - call_tests++; - des_void_ptr(n_context, context, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIOHTTPClose", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_context); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlIOHTTPMatch(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) - int mem_base; - int ret_val; - const char * filename; /* the URI for matching */ - int n_filename; - - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - mem_base = xmlMemBlocks(); - filename = gen_filepath(n_filename, 0); - - ret_val = xmlIOHTTPMatch(filename); - desret_int(ret_val); - call_tests++; - des_filepath(n_filename, filename, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIOHTTPMatch", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlIOHTTPOpen(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) - int mem_base; - void * ret_val; - const char * filename; /* the URI for matching */ - int n_filename; - - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - mem_base = xmlMemBlocks(); - filename = gen_filepath(n_filename, 0); - - ret_val = xmlIOHTTPOpen(filename); - desret_xmlNanoHTTPCtxtPtr(ret_val); - call_tests++; - des_filepath(n_filename, filename, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIOHTTPOpen", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlIOHTTPRead(void) { - int test_ret = 0; - -#if defined(LIBXML_HTTP_ENABLED) - int mem_base; - int ret_val; - void * context; /* the I/O context */ - int n_context; - char * buffer; /* where to drop data */ - int n_buffer; - int len; /* number of bytes to write */ - int n_len; - - for (n_context = 0;n_context < gen_nb_void_ptr;n_context++) { - for (n_buffer = 0;n_buffer < gen_nb_char_ptr;n_buffer++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - context = gen_void_ptr(n_context, 0); - buffer = gen_char_ptr(n_buffer, 1); - len = gen_int(n_len, 2); - - ret_val = xmlIOHTTPRead(context, buffer, len); - desret_int(ret_val); - call_tests++; - des_void_ptr(n_context, context, 0); - des_char_ptr(n_buffer, buffer, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlIOHTTPRead", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_context); - printf(" %d", n_buffer); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNoNetExternalEntityLoader(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputPtr ret_val; - const char * URL; /* the URL for the entity to load */ - int n_URL; - char * ID; /* the System ID for the entity to load */ - int n_ID; - xmlParserCtxtPtr ctxt; /* the context in which the entity is called or NULL */ - int n_ctxt; - - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - for (n_ID = 0;n_ID < gen_nb_const_char_ptr;n_ID++) { - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - URL = gen_filepath(n_URL, 0); - ID = gen_const_char_ptr(n_ID, 1); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 2); - - ret_val = xmlNoNetExternalEntityLoader(URL, (const char *)ID, ctxt); - desret_xmlParserInputPtr(ret_val); - call_tests++; - des_filepath(n_URL, URL, 0); - des_const_char_ptr(n_ID, (const char *)ID, 1); - des_xmlParserCtxtPtr(n_ctxt, ctxt, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNoNetExternalEntityLoader", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URL); - printf(" %d", n_ID); - printf(" %d", n_ctxt); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlNormalizeWindowsPath(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlChar * path; /* the input file path */ - int n_path; - - for (n_path = 0;n_path < gen_nb_const_xmlChar_ptr;n_path++) { - mem_base = xmlMemBlocks(); - path = gen_const_xmlChar_ptr(n_path, 0); - - ret_val = xmlNormalizeWindowsPath((const xmlChar *)path); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_path, (const xmlChar *)path, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNormalizeWindowsPath", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_path); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlOutputBufferCreateBuffer(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlOutputBufferPtr ret_val; - xmlBufferPtr buffer; /* a xmlBufferPtr */ - int n_buffer; - xmlCharEncodingHandlerPtr encoder; /* the encoding converter or NULL */ - int n_encoder; - - for (n_buffer = 0;n_buffer < gen_nb_xmlBufferPtr;n_buffer++) { - for (n_encoder = 0;n_encoder < gen_nb_xmlCharEncodingHandlerPtr;n_encoder++) { - mem_base = xmlMemBlocks(); - buffer = gen_xmlBufferPtr(n_buffer, 0); - encoder = gen_xmlCharEncodingHandlerPtr(n_encoder, 1); - - ret_val = xmlOutputBufferCreateBuffer(buffer, encoder); - desret_xmlOutputBufferPtr(ret_val); - call_tests++; - des_xmlBufferPtr(n_buffer, buffer, 0); - des_xmlCharEncodingHandlerPtr(n_encoder, encoder, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlOutputBufferCreateBuffer", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buffer); - printf(" %d", n_encoder); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlOutputBufferCreateFd(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlOutputBufferPtr ret_val; - int fd; /* a file descriptor number */ - int n_fd; - xmlCharEncodingHandlerPtr encoder; /* the encoding converter or NULL */ - int n_encoder; - - for (n_fd = 0;n_fd < gen_nb_int;n_fd++) { - for (n_encoder = 0;n_encoder < gen_nb_xmlCharEncodingHandlerPtr;n_encoder++) { - mem_base = xmlMemBlocks(); - fd = gen_int(n_fd, 0); - encoder = gen_xmlCharEncodingHandlerPtr(n_encoder, 1); - - ret_val = xmlOutputBufferCreateFd(fd, encoder); - desret_xmlOutputBufferPtr(ret_val); - call_tests++; - des_int(n_fd, fd, 0); - des_xmlCharEncodingHandlerPtr(n_encoder, encoder, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlOutputBufferCreateFd", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_fd); - printf(" %d", n_encoder); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlOutputBufferCreateFile(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlOutputBufferPtr ret_val; - FILE * file; /* a FILE* */ - int n_file; - xmlCharEncodingHandlerPtr encoder; /* the encoding converter or NULL */ - int n_encoder; - - for (n_file = 0;n_file < gen_nb_FILE_ptr;n_file++) { - for (n_encoder = 0;n_encoder < gen_nb_xmlCharEncodingHandlerPtr;n_encoder++) { - mem_base = xmlMemBlocks(); - file = gen_FILE_ptr(n_file, 0); - encoder = gen_xmlCharEncodingHandlerPtr(n_encoder, 1); - - ret_val = xmlOutputBufferCreateFile(file, encoder); - desret_xmlOutputBufferPtr(ret_val); - call_tests++; - des_FILE_ptr(n_file, file, 0); - des_xmlCharEncodingHandlerPtr(n_encoder, encoder, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlOutputBufferCreateFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_file); - printf(" %d", n_encoder); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlOutputBufferCreateFilename(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - xmlOutputBufferPtr ret_val; - const char * URI; /* a C string containing the URI or filename */ - int n_URI; - xmlCharEncodingHandlerPtr encoder; /* the encoding converter or NULL */ - int n_encoder; - int compression; /* the compression ration (0 none, 9 max). */ - int n_compression; - - for (n_URI = 0;n_URI < gen_nb_fileoutput;n_URI++) { - for (n_encoder = 0;n_encoder < gen_nb_xmlCharEncodingHandlerPtr;n_encoder++) { - for (n_compression = 0;n_compression < gen_nb_int;n_compression++) { - mem_base = xmlMemBlocks(); - URI = gen_fileoutput(n_URI, 0); - encoder = gen_xmlCharEncodingHandlerPtr(n_encoder, 1); - compression = gen_int(n_compression, 2); - - ret_val = xmlOutputBufferCreateFilename(URI, encoder, compression); - desret_xmlOutputBufferPtr(ret_val); - call_tests++; - des_fileoutput(n_URI, URI, 0); - des_xmlCharEncodingHandlerPtr(n_encoder, encoder, 1); - des_int(n_compression, compression, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlOutputBufferCreateFilename", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URI); - printf(" %d", n_encoder); - printf(" %d", n_compression); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlOutputBufferFlush(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - xmlOutputBufferPtr out; /* a buffered output */ - int n_out; - - for (n_out = 0;n_out < gen_nb_xmlOutputBufferPtr;n_out++) { - mem_base = xmlMemBlocks(); - out = gen_xmlOutputBufferPtr(n_out, 0); - - ret_val = xmlOutputBufferFlush(out); - desret_int(ret_val); - call_tests++; - des_xmlOutputBufferPtr(n_out, out, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlOutputBufferFlush", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_out); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlOutputBufferWrite(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - xmlOutputBufferPtr out; /* a buffered parser output */ - int n_out; - int len; /* the size in bytes of the array. */ - int n_len; - char * buf; /* an char array */ - int n_buf; - - for (n_out = 0;n_out < gen_nb_xmlOutputBufferPtr;n_out++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - for (n_buf = 0;n_buf < gen_nb_const_char_ptr;n_buf++) { - mem_base = xmlMemBlocks(); - out = gen_xmlOutputBufferPtr(n_out, 0); - len = gen_int(n_len, 1); - buf = gen_const_char_ptr(n_buf, 2); - - ret_val = xmlOutputBufferWrite(out, len, (const char *)buf); - desret_int(ret_val); - call_tests++; - des_xmlOutputBufferPtr(n_out, out, 0); - des_int(n_len, len, 1); - des_const_char_ptr(n_buf, (const char *)buf, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlOutputBufferWrite", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_out); - printf(" %d", n_len); - printf(" %d", n_buf); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlOutputBufferWriteEscape(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlOutputBufferWriteString(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - xmlOutputBufferPtr out; /* a buffered parser output */ - int n_out; - char * str; /* a zero terminated C string */ - int n_str; - - for (n_out = 0;n_out < gen_nb_xmlOutputBufferPtr;n_out++) { - for (n_str = 0;n_str < gen_nb_const_char_ptr;n_str++) { - mem_base = xmlMemBlocks(); - out = gen_xmlOutputBufferPtr(n_out, 0); - str = gen_const_char_ptr(n_str, 1); - - ret_val = xmlOutputBufferWriteString(out, (const char *)str); - desret_int(ret_val); - call_tests++; - des_xmlOutputBufferPtr(n_out, out, 0); - des_const_char_ptr(n_str, (const char *)str, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlOutputBufferWriteString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_out); - printf(" %d", n_str); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlParserGetDirectory(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlParserInputBufferCreateFd(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputBufferPtr ret_val; - int fd; /* a file descriptor number */ - int n_fd; - xmlCharEncoding enc; /* the charset encoding if known */ - int n_enc; - - for (n_fd = 0;n_fd < gen_nb_int;n_fd++) { - for (n_enc = 0;n_enc < gen_nb_xmlCharEncoding;n_enc++) { - mem_base = xmlMemBlocks(); - fd = gen_int(n_fd, 0); - enc = gen_xmlCharEncoding(n_enc, 1); - if (fd >= 0) fd = -1; - - ret_val = xmlParserInputBufferCreateFd(fd, enc); - desret_xmlParserInputBufferPtr(ret_val); - call_tests++; - des_int(n_fd, fd, 0); - des_xmlCharEncoding(n_enc, enc, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParserInputBufferCreateFd", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_fd); - printf(" %d", n_enc); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlParserInputBufferCreateFile(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputBufferPtr ret_val; - FILE * file; /* a FILE* */ - int n_file; - xmlCharEncoding enc; /* the charset encoding if known */ - int n_enc; - - for (n_file = 0;n_file < gen_nb_FILE_ptr;n_file++) { - for (n_enc = 0;n_enc < gen_nb_xmlCharEncoding;n_enc++) { - mem_base = xmlMemBlocks(); - file = gen_FILE_ptr(n_file, 0); - enc = gen_xmlCharEncoding(n_enc, 1); - - ret_val = xmlParserInputBufferCreateFile(file, enc); - desret_xmlParserInputBufferPtr(ret_val); - call_tests++; - des_FILE_ptr(n_file, file, 0); - des_xmlCharEncoding(n_enc, enc, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParserInputBufferCreateFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_file); - printf(" %d", n_enc); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlParserInputBufferCreateFilename(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputBufferPtr ret_val; - const char * URI; /* a C string containing the URI or filename */ - int n_URI; - xmlCharEncoding enc; /* the charset encoding if known */ - int n_enc; - - for (n_URI = 0;n_URI < gen_nb_fileoutput;n_URI++) { - for (n_enc = 0;n_enc < gen_nb_xmlCharEncoding;n_enc++) { - mem_base = xmlMemBlocks(); - URI = gen_fileoutput(n_URI, 0); - enc = gen_xmlCharEncoding(n_enc, 1); - - ret_val = xmlParserInputBufferCreateFilename(URI, enc); - desret_xmlParserInputBufferPtr(ret_val); - call_tests++; - des_fileoutput(n_URI, URI, 0); - des_xmlCharEncoding(n_enc, enc, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParserInputBufferCreateFilename", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URI); - printf(" %d", n_enc); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlParserInputBufferCreateMem(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputBufferPtr ret_val; - char * mem; /* the memory input */ - int n_mem; - int size; /* the length of the memory block */ - int n_size; - xmlCharEncoding enc; /* the charset encoding if known */ - int n_enc; - - for (n_mem = 0;n_mem < gen_nb_const_char_ptr;n_mem++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - for (n_enc = 0;n_enc < gen_nb_xmlCharEncoding;n_enc++) { - mem_base = xmlMemBlocks(); - mem = gen_const_char_ptr(n_mem, 0); - size = gen_int(n_size, 1); - enc = gen_xmlCharEncoding(n_enc, 2); - - ret_val = xmlParserInputBufferCreateMem((const char *)mem, size, enc); - desret_xmlParserInputBufferPtr(ret_val); - call_tests++; - des_const_char_ptr(n_mem, (const char *)mem, 0); - des_int(n_size, size, 1); - des_xmlCharEncoding(n_enc, enc, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParserInputBufferCreateMem", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_mem); - printf(" %d", n_size); - printf(" %d", n_enc); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlParserInputBufferCreateStatic(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputBufferPtr ret_val; - char * mem; /* the memory input */ - int n_mem; - int size; /* the length of the memory block */ - int n_size; - xmlCharEncoding enc; /* the charset encoding if known */ - int n_enc; - - for (n_mem = 0;n_mem < gen_nb_const_char_ptr;n_mem++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - for (n_enc = 0;n_enc < gen_nb_xmlCharEncoding;n_enc++) { - mem_base = xmlMemBlocks(); - mem = gen_const_char_ptr(n_mem, 0); - size = gen_int(n_size, 1); - enc = gen_xmlCharEncoding(n_enc, 2); - - ret_val = xmlParserInputBufferCreateStatic((const char *)mem, size, enc); - desret_xmlParserInputBufferPtr(ret_val); - call_tests++; - des_const_char_ptr(n_mem, (const char *)mem, 0); - des_int(n_size, size, 1); - des_xmlCharEncoding(n_enc, enc, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParserInputBufferCreateStatic", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_mem); - printf(" %d", n_size); - printf(" %d", n_enc); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlParserInputBufferGrow(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserInputBufferPtr in; /* a buffered parser input */ - int n_in; - int len; /* indicative value of the amount of chars to read */ - int n_len; - - for (n_in = 0;n_in < gen_nb_xmlParserInputBufferPtr;n_in++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - in = gen_xmlParserInputBufferPtr(n_in, 0); - len = gen_int(n_len, 1); - - ret_val = xmlParserInputBufferGrow(in, len); - desret_int(ret_val); - call_tests++; - des_xmlParserInputBufferPtr(n_in, in, 0); - des_int(n_len, len, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParserInputBufferGrow", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_in); - printf(" %d", n_len); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlParserInputBufferPush(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserInputBufferPtr in; /* a buffered parser input */ - int n_in; - int len; /* the size in bytes of the array. */ - int n_len; - char * buf; /* an char array */ - int n_buf; - - for (n_in = 0;n_in < gen_nb_xmlParserInputBufferPtr;n_in++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - for (n_buf = 0;n_buf < gen_nb_const_char_ptr;n_buf++) { - mem_base = xmlMemBlocks(); - in = gen_xmlParserInputBufferPtr(n_in, 0); - len = gen_int(n_len, 1); - buf = gen_const_char_ptr(n_buf, 2); - - ret_val = xmlParserInputBufferPush(in, len, (const char *)buf); - desret_int(ret_val); - call_tests++; - des_xmlParserInputBufferPtr(n_in, in, 0); - des_int(n_len, len, 1); - des_const_char_ptr(n_buf, (const char *)buf, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParserInputBufferPush", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_in); - printf(" %d", n_len); - printf(" %d", n_buf); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlParserInputBufferRead(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlParserInputBufferPtr in; /* a buffered parser input */ - int n_in; - int len; /* indicative value of the amount of chars to read */ - int n_len; - - for (n_in = 0;n_in < gen_nb_xmlParserInputBufferPtr;n_in++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - in = gen_xmlParserInputBufferPtr(n_in, 0); - len = gen_int(n_len, 1); - - ret_val = xmlParserInputBufferRead(in, len); - desret_int(ret_val); - call_tests++; - des_xmlParserInputBufferPtr(n_in, in, 0); - des_int(n_len, len, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParserInputBufferRead", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_in); - printf(" %d", n_len); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlPopInputCallbacks(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - - mem_base = xmlMemBlocks(); - - ret_val = xmlPopInputCallbacks(); - desret_int(ret_val); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlPopInputCallbacks", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlRegisterDefaultInputCallbacks(void) { - int test_ret = 0; - - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlRegisterDefaultInputCallbacks(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRegisterDefaultInputCallbacks", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlRegisterDefaultOutputCallbacks(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlRegisterDefaultOutputCallbacks(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRegisterDefaultOutputCallbacks", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRegisterHTTPPostCallbacks(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) && defined(LIBXML_HTTP_ENABLED) - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlRegisterHTTPPostCallbacks(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRegisterHTTPPostCallbacks", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_xmlIO(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing xmlIO : 39 of 48 functions ...\n"); - test_ret += test_xmlAllocOutputBuffer(); - test_ret += test_xmlAllocParserInputBuffer(); - test_ret += test_xmlCheckFilename(); - test_ret += test_xmlCheckHTTPInput(); - test_ret += test_xmlCleanupInputCallbacks(); - test_ret += test_xmlCleanupOutputCallbacks(); - test_ret += test_xmlFileClose(); - test_ret += test_xmlFileMatch(); - test_ret += test_xmlFileOpen(); - test_ret += test_xmlFileRead(); - test_ret += test_xmlIOFTPClose(); - test_ret += test_xmlIOFTPMatch(); - test_ret += test_xmlIOFTPOpen(); - test_ret += test_xmlIOFTPRead(); - test_ret += test_xmlIOHTTPClose(); - test_ret += test_xmlIOHTTPMatch(); - test_ret += test_xmlIOHTTPOpen(); - test_ret += test_xmlIOHTTPRead(); - test_ret += test_xmlNoNetExternalEntityLoader(); - test_ret += test_xmlNormalizeWindowsPath(); - test_ret += test_xmlOutputBufferCreateBuffer(); - test_ret += test_xmlOutputBufferCreateFd(); - test_ret += test_xmlOutputBufferCreateFile(); - test_ret += test_xmlOutputBufferCreateFilename(); - test_ret += test_xmlOutputBufferFlush(); - test_ret += test_xmlOutputBufferWrite(); - test_ret += test_xmlOutputBufferWriteEscape(); - test_ret += test_xmlOutputBufferWriteString(); - test_ret += test_xmlParserGetDirectory(); - test_ret += test_xmlParserInputBufferCreateFd(); - test_ret += test_xmlParserInputBufferCreateFile(); - test_ret += test_xmlParserInputBufferCreateFilename(); - test_ret += test_xmlParserInputBufferCreateMem(); - test_ret += test_xmlParserInputBufferCreateStatic(); - test_ret += test_xmlParserInputBufferGrow(); - test_ret += test_xmlParserInputBufferPush(); - test_ret += test_xmlParserInputBufferRead(); - test_ret += test_xmlPopInputCallbacks(); - test_ret += test_xmlRegisterDefaultInputCallbacks(); - test_ret += test_xmlRegisterDefaultOutputCallbacks(); - test_ret += test_xmlRegisterHTTPPostCallbacks(); - - if (test_ret != 0) - printf("Module xmlIO: %d errors\n", test_ret); - return(test_ret); -} -#ifdef LIBXML_AUTOMATA_ENABLED - -#define gen_nb_xmlAutomataPtr 1 -static xmlAutomataPtr gen_xmlAutomataPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlAutomataPtr(int no ATTRIBUTE_UNUSED, xmlAutomataPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlAutomataCompile(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlAutomataGetInitState(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlAutomataIsDeterminist(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - int mem_base; - int ret_val; - xmlAutomataPtr am; /* an automata */ - int n_am; - - for (n_am = 0;n_am < gen_nb_xmlAutomataPtr;n_am++) { - mem_base = xmlMemBlocks(); - am = gen_xmlAutomataPtr(n_am, 0); - - ret_val = xmlAutomataIsDeterminist(am); - desret_int(ret_val); - call_tests++; - des_xmlAutomataPtr(n_am, am, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlAutomataIsDeterminist", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_am); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - -#ifdef LIBXML_AUTOMATA_ENABLED - -#define gen_nb_xmlAutomataStatePtr 1 -static xmlAutomataStatePtr gen_xmlAutomataStatePtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlAutomataStatePtr(int no ATTRIBUTE_UNUSED, xmlAutomataStatePtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlAutomataNewAllTrans(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlAutomataNewCountTrans(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlAutomataNewCountTrans2(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlAutomataNewCountedTrans(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlAutomataNewCounter(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - int mem_base; - int ret_val; - xmlAutomataPtr am; /* an automata */ - int n_am; - int min; /* the minimal value on the counter */ - int n_min; - int max; /* the maximal value on the counter */ - int n_max; - - for (n_am = 0;n_am < gen_nb_xmlAutomataPtr;n_am++) { - for (n_min = 0;n_min < gen_nb_int;n_min++) { - for (n_max = 0;n_max < gen_nb_int;n_max++) { - mem_base = xmlMemBlocks(); - am = gen_xmlAutomataPtr(n_am, 0); - min = gen_int(n_min, 1); - max = gen_int(n_max, 2); - - ret_val = xmlAutomataNewCounter(am, min, max); - desret_int(ret_val); - call_tests++; - des_xmlAutomataPtr(n_am, am, 0); - des_int(n_min, min, 1); - des_int(n_max, max, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlAutomataNewCounter", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_am); - printf(" %d", n_min); - printf(" %d", n_max); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlAutomataNewCounterTrans(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlAutomataNewEpsilon(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlAutomataNewNegTrans(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlAutomataNewOnceTrans(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlAutomataNewOnceTrans2(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlAutomataNewState(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlAutomataNewTransition(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlAutomataNewTransition2(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlAutomataSetFinalState(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) - int mem_base; - int ret_val; - xmlAutomataPtr am; /* an automata */ - int n_am; - xmlAutomataStatePtr state; /* a state in this automata */ - int n_state; - - for (n_am = 0;n_am < gen_nb_xmlAutomataPtr;n_am++) { - for (n_state = 0;n_state < gen_nb_xmlAutomataStatePtr;n_state++) { - mem_base = xmlMemBlocks(); - am = gen_xmlAutomataPtr(n_am, 0); - state = gen_xmlAutomataStatePtr(n_state, 1); - - ret_val = xmlAutomataSetFinalState(am, state); - desret_int(ret_val); - call_tests++; - des_xmlAutomataPtr(n_am, am, 0); - des_xmlAutomataStatePtr(n_state, state, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlAutomataSetFinalState", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_am); - printf(" %d", n_state); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNewAutomata(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - -static int -test_xmlautomata(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing xmlautomata : 3 of 19 functions ...\n"); - test_ret += test_xmlAutomataCompile(); - test_ret += test_xmlAutomataGetInitState(); - test_ret += test_xmlAutomataIsDeterminist(); - test_ret += test_xmlAutomataNewAllTrans(); - test_ret += test_xmlAutomataNewCountTrans(); - test_ret += test_xmlAutomataNewCountTrans2(); - test_ret += test_xmlAutomataNewCountedTrans(); - test_ret += test_xmlAutomataNewCounter(); - test_ret += test_xmlAutomataNewCounterTrans(); - test_ret += test_xmlAutomataNewEpsilon(); - test_ret += test_xmlAutomataNewNegTrans(); - test_ret += test_xmlAutomataNewOnceTrans(); - test_ret += test_xmlAutomataNewOnceTrans2(); - test_ret += test_xmlAutomataNewState(); - test_ret += test_xmlAutomataNewTransition(); - test_ret += test_xmlAutomataNewTransition2(); - test_ret += test_xmlAutomataSetFinalState(); - test_ret += test_xmlNewAutomata(); - - if (test_ret != 0) - printf("Module xmlautomata: %d errors\n", test_ret); - return(test_ret); -} - -#define gen_nb_xmlGenericErrorFunc_ptr 1 -static xmlGenericErrorFunc * gen_xmlGenericErrorFunc_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlGenericErrorFunc_ptr(int no ATTRIBUTE_UNUSED, xmlGenericErrorFunc * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_initGenericErrorDefaultFunc(void) { - int test_ret = 0; - - int mem_base; - xmlGenericErrorFunc * handler; /* the handler */ - int n_handler; - - for (n_handler = 0;n_handler < gen_nb_xmlGenericErrorFunc_ptr;n_handler++) { - mem_base = xmlMemBlocks(); - handler = gen_xmlGenericErrorFunc_ptr(n_handler, 0); - - initGenericErrorDefaultFunc(handler); - call_tests++; - des_xmlGenericErrorFunc_ptr(n_handler, handler, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in initGenericErrorDefaultFunc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_handler); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -#define gen_nb_xmlErrorPtr 1 -static xmlErrorPtr gen_xmlErrorPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlErrorPtr(int no ATTRIBUTE_UNUSED, xmlErrorPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} - -static int -test_xmlCopyError(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlErrorPtr from; /* a source error */ - int n_from; - xmlErrorPtr to; /* a target error */ - int n_to; - - for (n_from = 0;n_from < gen_nb_xmlErrorPtr;n_from++) { - for (n_to = 0;n_to < gen_nb_xmlErrorPtr;n_to++) { - mem_base = xmlMemBlocks(); - from = gen_xmlErrorPtr(n_from, 0); - to = gen_xmlErrorPtr(n_to, 1); - - ret_val = xmlCopyError(from, to); - desret_int(ret_val); - call_tests++; - des_xmlErrorPtr(n_from, from, 0); - des_xmlErrorPtr(n_to, to, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCopyError", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_from); - printf(" %d", n_to); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCtxtGetLastError(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlCtxtResetLastError(void) { - int test_ret = 0; - - int mem_base; - void * ctx; /* an XML parser context */ - int n_ctx; - - for (n_ctx = 0;n_ctx < gen_nb_void_ptr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctx = gen_void_ptr(n_ctx, 0); - - xmlCtxtResetLastError(ctx); - call_tests++; - des_void_ptr(n_ctx, ctx, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCtxtResetLastError", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctx); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetLastError(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlParserError(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlParserPrintFileContext(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputPtr input; /* an xmlParserInputPtr input */ - int n_input; - - for (n_input = 0;n_input < gen_nb_xmlParserInputPtr;n_input++) { - mem_base = xmlMemBlocks(); - input = gen_xmlParserInputPtr(n_input, 0); - - xmlParserPrintFileContext(input); - call_tests++; - des_xmlParserInputPtr(n_input, input, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParserPrintFileContext", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_input); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlParserPrintFileInfo(void) { - int test_ret = 0; - - int mem_base; - xmlParserInputPtr input; /* an xmlParserInputPtr input */ - int n_input; - - for (n_input = 0;n_input < gen_nb_xmlParserInputPtr;n_input++) { - mem_base = xmlMemBlocks(); - input = gen_xmlParserInputPtr(n_input, 0); - - xmlParserPrintFileInfo(input); - call_tests++; - des_xmlParserInputPtr(n_input, input, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlParserPrintFileInfo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_input); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlParserValidityError(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlParserValidityWarning(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlParserWarning(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlResetError(void) { - int test_ret = 0; - - int mem_base; - xmlErrorPtr err; /* pointer to the error. */ - int n_err; - - for (n_err = 0;n_err < gen_nb_xmlErrorPtr;n_err++) { - mem_base = xmlMemBlocks(); - err = gen_xmlErrorPtr(n_err, 0); - - xmlResetError(err); - call_tests++; - des_xmlErrorPtr(n_err, err, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlResetError", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_err); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlResetLastError(void) { - int test_ret = 0; - - - - xmlResetLastError(); - call_tests++; - xmlResetLastError(); - function_tests++; - - return(test_ret); -} - - -static int -test_xmlSetGenericErrorFunc(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSetStructuredErrorFunc(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - -static int -test_xmlerror(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing xmlerror : 7 of 15 functions ...\n"); - test_ret += test_initGenericErrorDefaultFunc(); - test_ret += test_xmlCopyError(); - test_ret += test_xmlCtxtGetLastError(); - test_ret += test_xmlCtxtResetLastError(); - test_ret += test_xmlGetLastError(); - test_ret += test_xmlParserError(); - test_ret += test_xmlParserPrintFileContext(); - test_ret += test_xmlParserPrintFileInfo(); - test_ret += test_xmlParserValidityError(); - test_ret += test_xmlParserValidityWarning(); - test_ret += test_xmlParserWarning(); - test_ret += test_xmlResetError(); - test_ret += test_xmlResetLastError(); - test_ret += test_xmlSetGenericErrorFunc(); - test_ret += test_xmlSetStructuredErrorFunc(); - - if (test_ret != 0) - printf("Module xmlerror: %d errors\n", test_ret); - return(test_ret); -} -#ifdef LIBXML_MODULES_ENABLED - -#define gen_nb_xmlModulePtr 1 -static xmlModulePtr gen_xmlModulePtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlModulePtr(int no ATTRIBUTE_UNUSED, xmlModulePtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlModuleClose(void) { - int test_ret = 0; - -#if defined(LIBXML_MODULES_ENABLED) - int mem_base; - int ret_val; - xmlModulePtr module; /* the module handle */ - int n_module; - - for (n_module = 0;n_module < gen_nb_xmlModulePtr;n_module++) { - mem_base = xmlMemBlocks(); - module = gen_xmlModulePtr(n_module, 0); - - ret_val = xmlModuleClose(module); - desret_int(ret_val); - call_tests++; - des_xmlModulePtr(n_module, module, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlModuleClose", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_module); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlModuleOpen(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlModuleSymbol(void) { - int test_ret = 0; - -#if defined(LIBXML_MODULES_ENABLED) - int mem_base; - int ret_val; - xmlModulePtr module; /* the module */ - int n_module; - char * name; /* the name of the symbol */ - int n_name; - void ** symbol; /* the resulting symbol address */ - int n_symbol; - - for (n_module = 0;n_module < gen_nb_xmlModulePtr;n_module++) { - for (n_name = 0;n_name < gen_nb_const_char_ptr;n_name++) { - for (n_symbol = 0;n_symbol < gen_nb_void_ptr_ptr;n_symbol++) { - mem_base = xmlMemBlocks(); - module = gen_xmlModulePtr(n_module, 0); - name = gen_const_char_ptr(n_name, 1); - symbol = gen_void_ptr_ptr(n_symbol, 2); - - ret_val = xmlModuleSymbol(module, (const char *)name, symbol); - desret_int(ret_val); - call_tests++; - des_xmlModulePtr(n_module, module, 0); - des_const_char_ptr(n_name, (const char *)name, 1); - des_void_ptr_ptr(n_symbol, symbol, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlModuleSymbol", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_module); - printf(" %d", n_name); - printf(" %d", n_symbol); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_xmlmodule(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing xmlmodule : 2 of 4 functions ...\n"); - test_ret += test_xmlModuleClose(); - test_ret += test_xmlModuleOpen(); - test_ret += test_xmlModuleSymbol(); - - if (test_ret != 0) - printf("Module xmlmodule: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlNewTextReader(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlTextReaderPtr ret_val; - xmlParserInputBufferPtr input; /* the xmlParserInputBufferPtr used to read data */ - int n_input; - const char * URI; /* the URI information for the source if available */ - int n_URI; - - for (n_input = 0;n_input < gen_nb_xmlParserInputBufferPtr;n_input++) { - for (n_URI = 0;n_URI < gen_nb_filepath;n_URI++) { - mem_base = xmlMemBlocks(); - input = gen_xmlParserInputBufferPtr(n_input, 0); - URI = gen_filepath(n_URI, 1); - - ret_val = xmlNewTextReader(input, URI); - desret_xmlTextReaderPtr(ret_val); - call_tests++; - des_xmlParserInputBufferPtr(n_input, input, 0); - des_filepath(n_URI, URI, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewTextReader", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_input); - printf(" %d", n_URI); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNewTextReaderFilename(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlTextReaderPtr ret_val; - const char * URI; /* the URI of the resource to process */ - int n_URI; - - for (n_URI = 0;n_URI < gen_nb_filepath;n_URI++) { - mem_base = xmlMemBlocks(); - URI = gen_filepath(n_URI, 0); - - ret_val = xmlNewTextReaderFilename(URI); - desret_xmlTextReaderPtr(ret_val); - call_tests++; - des_filepath(n_URI, URI, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewTextReaderFilename", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URI); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlReaderForDoc(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlTextReaderPtr ret_val; - xmlChar * cur; /* a pointer to a zero terminated string */ - int n_cur; - const char * URL; /* the base URL to use for the document */ - int n_URL; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of xmlParserOption */ - int n_options; - - for (n_cur = 0;n_cur < gen_nb_const_xmlChar_ptr;n_cur++) { - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) { - mem_base = xmlMemBlocks(); - cur = gen_const_xmlChar_ptr(n_cur, 0); - URL = gen_filepath(n_URL, 1); - encoding = gen_const_char_ptr(n_encoding, 2); - options = gen_parseroptions(n_options, 3); - - ret_val = xmlReaderForDoc((const xmlChar *)cur, URL, (const char *)encoding, options); - desret_xmlTextReaderPtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_cur, (const xmlChar *)cur, 0); - des_filepath(n_URL, URL, 1); - des_const_char_ptr(n_encoding, (const char *)encoding, 2); - des_parseroptions(n_options, options, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlReaderForDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_URL); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlReaderForFile(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlTextReaderPtr ret_val; - const char * filename; /* a file or URL */ - int n_filename; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of xmlParserOption */ - int n_options; - - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) { - mem_base = xmlMemBlocks(); - filename = gen_filepath(n_filename, 0); - encoding = gen_const_char_ptr(n_encoding, 1); - options = gen_parseroptions(n_options, 2); - - ret_val = xmlReaderForFile(filename, (const char *)encoding, options); - desret_xmlTextReaderPtr(ret_val); - call_tests++; - des_filepath(n_filename, filename, 0); - des_const_char_ptr(n_encoding, (const char *)encoding, 1); - des_parseroptions(n_options, options, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlReaderForFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_filename); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlReaderForMemory(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlTextReaderPtr ret_val; - char * buffer; /* a pointer to a char array */ - int n_buffer; - int size; /* the size of the array */ - int n_size; - const char * URL; /* the base URL to use for the document */ - int n_URL; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of xmlParserOption */ - int n_options; - - for (n_buffer = 0;n_buffer < gen_nb_const_char_ptr;n_buffer++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) { - mem_base = xmlMemBlocks(); - buffer = gen_const_char_ptr(n_buffer, 0); - size = gen_int(n_size, 1); - URL = gen_filepath(n_URL, 2); - encoding = gen_const_char_ptr(n_encoding, 3); - options = gen_parseroptions(n_options, 4); - - ret_val = xmlReaderForMemory((const char *)buffer, size, URL, (const char *)encoding, options); - desret_xmlTextReaderPtr(ret_val); - call_tests++; - des_const_char_ptr(n_buffer, (const char *)buffer, 0); - des_int(n_size, size, 1); - des_filepath(n_URL, URL, 2); - des_const_char_ptr(n_encoding, (const char *)encoding, 3); - des_parseroptions(n_options, options, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlReaderForMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buffer); - printf(" %d", n_size); - printf(" %d", n_URL); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlReaderNewDoc(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* an XML reader */ - int n_reader; - xmlChar * cur; /* a pointer to a zero terminated string */ - int n_cur; - const char * URL; /* the base URL to use for the document */ - int n_URL; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of xmlParserOption */ - int n_options; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_cur = 0;n_cur < gen_nb_const_xmlChar_ptr;n_cur++) { - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - cur = gen_const_xmlChar_ptr(n_cur, 1); - URL = gen_filepath(n_URL, 2); - encoding = gen_const_char_ptr(n_encoding, 3); - options = gen_parseroptions(n_options, 4); - - ret_val = xmlReaderNewDoc(reader, (const xmlChar *)cur, URL, (const char *)encoding, options); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_const_xmlChar_ptr(n_cur, (const xmlChar *)cur, 1); - des_filepath(n_URL, URL, 2); - des_const_char_ptr(n_encoding, (const char *)encoding, 3); - des_parseroptions(n_options, options, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlReaderNewDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_cur); - printf(" %d", n_URL); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlReaderNewFile(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* an XML reader */ - int n_reader; - const char * filename; /* a file or URL */ - int n_filename; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of xmlParserOption */ - int n_options; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - filename = gen_filepath(n_filename, 1); - encoding = gen_const_char_ptr(n_encoding, 2); - options = gen_parseroptions(n_options, 3); - - ret_val = xmlReaderNewFile(reader, filename, (const char *)encoding, options); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_filepath(n_filename, filename, 1); - des_const_char_ptr(n_encoding, (const char *)encoding, 2); - des_parseroptions(n_options, options, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlReaderNewFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_filename); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlReaderNewMemory(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* an XML reader */ - int n_reader; - char * buffer; /* a pointer to a char array */ - int n_buffer; - int size; /* the size of the array */ - int n_size; - const char * URL; /* the base URL to use for the document */ - int n_URL; - char * encoding; /* the document encoding, or NULL */ - int n_encoding; - int options; /* a combination of xmlParserOption */ - int n_options; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_buffer = 0;n_buffer < gen_nb_const_char_ptr;n_buffer++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - for (n_URL = 0;n_URL < gen_nb_filepath;n_URL++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - buffer = gen_const_char_ptr(n_buffer, 1); - size = gen_int(n_size, 2); - URL = gen_filepath(n_URL, 3); - encoding = gen_const_char_ptr(n_encoding, 4); - options = gen_parseroptions(n_options, 5); - - ret_val = xmlReaderNewMemory(reader, (const char *)buffer, size, URL, (const char *)encoding, options); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_const_char_ptr(n_buffer, (const char *)buffer, 1); - des_int(n_size, size, 2); - des_filepath(n_URL, URL, 3); - des_const_char_ptr(n_encoding, (const char *)encoding, 4); - des_parseroptions(n_options, options, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlReaderNewMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_buffer); - printf(" %d", n_size); - printf(" %d", n_URL); - printf(" %d", n_encoding); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlReaderNewWalker(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* an XML reader */ - int n_reader; - xmlDocPtr doc; /* a preparsed document */ - int n_doc; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - doc = gen_xmlDocPtr(n_doc, 1); - - ret_val = xmlReaderNewWalker(reader, doc); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_xmlDocPtr(n_doc, doc, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlReaderNewWalker", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_doc); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlReaderWalker(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlTextReaderPtr ret_val; - xmlDocPtr doc; /* a preparsed document */ - int n_doc; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - - ret_val = xmlReaderWalker(doc); - desret_xmlTextReaderPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlReaderWalker", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderAttributeCount(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderAttributeCount(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderAttributeCount", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderBaseUri(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderBaseUri(reader); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderBaseUri", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderByteConsumed(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - long ret_val; - xmlTextReaderPtr reader; /* an XML reader */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderByteConsumed(reader); - desret_long(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderByteConsumed", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderClose(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderClose(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderClose", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderConstBaseUri(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - const xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderConstBaseUri(reader); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderConstBaseUri", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderConstEncoding(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - const xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderConstEncoding(reader); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderConstEncoding", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderConstLocalName(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - const xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderConstLocalName(reader); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderConstLocalName", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderConstName(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - const xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderConstName(reader); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderConstName", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderConstNamespaceUri(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - const xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderConstNamespaceUri(reader); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderConstNamespaceUri", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderConstPrefix(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - const xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderConstPrefix(reader); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderConstPrefix", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderConstString(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - const xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - xmlChar * str; /* the string to intern. */ - int n_str; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - str = gen_const_xmlChar_ptr(n_str, 1); - - ret_val = xmlTextReaderConstString(reader, (const xmlChar *)str); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderConstString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_str); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderConstValue(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - const xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderConstValue(reader); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderConstValue", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderConstXmlLang(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - const xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderConstXmlLang(reader); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderConstXmlLang", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderConstXmlVersion(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - const xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderConstXmlVersion(reader); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderConstXmlVersion", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderCurrentDoc(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlDocPtr ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderCurrentDoc(reader); - desret_xmlDocPtr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderCurrentDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderCurrentNode(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderCurrentNode(reader); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderCurrentNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderDepth(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderDepth(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderDepth", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderExpand(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderExpand(reader); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderExpand", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderGetAttribute(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - xmlChar * name; /* the qualified name of the attribute. */ - int n_name; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlTextReaderGetAttribute(reader, (const xmlChar *)name); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderGetAttribute", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderGetAttributeNo(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - int no; /* the zero-based index of the attribute relative to the containing element */ - int n_no; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_no = 0;n_no < gen_nb_int;n_no++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - no = gen_int(n_no, 1); - - ret_val = xmlTextReaderGetAttributeNo(reader, no); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_int(n_no, no, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderGetAttributeNo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_no); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderGetAttributeNs(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - xmlChar * localName; /* the local name of the attribute. */ - int n_localName; - xmlChar * namespaceURI; /* the namespace URI of the attribute. */ - int n_namespaceURI; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_localName = 0;n_localName < gen_nb_const_xmlChar_ptr;n_localName++) { - for (n_namespaceURI = 0;n_namespaceURI < gen_nb_const_xmlChar_ptr;n_namespaceURI++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - localName = gen_const_xmlChar_ptr(n_localName, 1); - namespaceURI = gen_const_xmlChar_ptr(n_namespaceURI, 2); - - ret_val = xmlTextReaderGetAttributeNs(reader, (const xmlChar *)localName, (const xmlChar *)namespaceURI); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_const_xmlChar_ptr(n_localName, (const xmlChar *)localName, 1); - des_const_xmlChar_ptr(n_namespaceURI, (const xmlChar *)namespaceURI, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderGetAttributeNs", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_localName); - printf(" %d", n_namespaceURI); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -#ifdef LIBXML_READER_ENABLED - -#define gen_nb_xmlTextReaderErrorFunc_ptr 1 -static xmlTextReaderErrorFunc * gen_xmlTextReaderErrorFunc_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlTextReaderErrorFunc_ptr(int no ATTRIBUTE_UNUSED, xmlTextReaderErrorFunc * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlTextReaderGetErrorHandler(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - xmlTextReaderErrorFunc * f; /* the callback function or NULL is no callback has been registered */ - int n_f; - void ** arg; /* a user argument */ - int n_arg; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_f = 0;n_f < gen_nb_xmlTextReaderErrorFunc_ptr;n_f++) { - for (n_arg = 0;n_arg < gen_nb_void_ptr_ptr;n_arg++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - f = gen_xmlTextReaderErrorFunc_ptr(n_f, 1); - arg = gen_void_ptr_ptr(n_arg, 2); - - xmlTextReaderGetErrorHandler(reader, f, arg); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_xmlTextReaderErrorFunc_ptr(n_f, f, 1); - des_void_ptr_ptr(n_arg, arg, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderGetErrorHandler", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_f); - printf(" %d", n_arg); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderGetParserColumnNumber(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the user data (XML reader context) */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderGetParserColumnNumber(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderGetParserColumnNumber", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderGetParserLineNumber(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the user data (XML reader context) */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderGetParserLineNumber(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderGetParserLineNumber", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderGetParserProp(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - int prop; /* the xmlParserProperties to get */ - int n_prop; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_prop = 0;n_prop < gen_nb_int;n_prop++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - prop = gen_int(n_prop, 1); - - ret_val = xmlTextReaderGetParserProp(reader, prop); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_int(n_prop, prop, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderGetParserProp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_prop); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderGetRemainder(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlParserInputBufferPtr ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderGetRemainder(reader); - desret_xmlParserInputBufferPtr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderGetRemainder", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderHasAttributes(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderHasAttributes(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderHasAttributes", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderHasValue(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderHasValue(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderHasValue", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderIsDefault(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderIsDefault(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderIsDefault", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderIsEmptyElement(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderIsEmptyElement(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderIsEmptyElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderIsNamespaceDecl(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderIsNamespaceDecl(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderIsNamespaceDecl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderIsValid(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderIsValid(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderIsValid", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderLocalName(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderLocalName(reader); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderLocalName", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - -#ifdef LIBXML_READER_ENABLED - -#define gen_nb_xmlTextReaderLocatorPtr 1 -static xmlTextReaderLocatorPtr gen_xmlTextReaderLocatorPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlTextReaderLocatorPtr(int no ATTRIBUTE_UNUSED, xmlTextReaderLocatorPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlTextReaderLocatorBaseURI(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlTextReaderLocatorPtr locator; /* the xmlTextReaderLocatorPtr used */ - int n_locator; - - for (n_locator = 0;n_locator < gen_nb_xmlTextReaderLocatorPtr;n_locator++) { - mem_base = xmlMemBlocks(); - locator = gen_xmlTextReaderLocatorPtr(n_locator, 0); - - ret_val = xmlTextReaderLocatorBaseURI(locator); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderLocatorPtr(n_locator, locator, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderLocatorBaseURI", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_locator); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderLocatorLineNumber(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderLocatorPtr locator; /* the xmlTextReaderLocatorPtr used */ - int n_locator; - - for (n_locator = 0;n_locator < gen_nb_xmlTextReaderLocatorPtr;n_locator++) { - mem_base = xmlMemBlocks(); - locator = gen_xmlTextReaderLocatorPtr(n_locator, 0); - - ret_val = xmlTextReaderLocatorLineNumber(locator); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderLocatorPtr(n_locator, locator, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderLocatorLineNumber", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_locator); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderLookupNamespace(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - xmlChar * prefix; /* the prefix whose namespace URI is to be resolved. To return the default namespace, specify NULL */ - int n_prefix; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - prefix = gen_const_xmlChar_ptr(n_prefix, 1); - - ret_val = xmlTextReaderLookupNamespace(reader, (const xmlChar *)prefix); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderLookupNamespace", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_prefix); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderMoveToAttribute(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - xmlChar * name; /* the qualified name of the attribute. */ - int n_name; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlTextReaderMoveToAttribute(reader, (const xmlChar *)name); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderMoveToAttribute", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderMoveToAttributeNo(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - int no; /* the zero-based index of the attribute relative to the containing element. */ - int n_no; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_no = 0;n_no < gen_nb_int;n_no++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - no = gen_int(n_no, 1); - - ret_val = xmlTextReaderMoveToAttributeNo(reader, no); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_int(n_no, no, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderMoveToAttributeNo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_no); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderMoveToAttributeNs(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - xmlChar * localName; /* the local name of the attribute. */ - int n_localName; - xmlChar * namespaceURI; /* the namespace URI of the attribute. */ - int n_namespaceURI; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_localName = 0;n_localName < gen_nb_const_xmlChar_ptr;n_localName++) { - for (n_namespaceURI = 0;n_namespaceURI < gen_nb_const_xmlChar_ptr;n_namespaceURI++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - localName = gen_const_xmlChar_ptr(n_localName, 1); - namespaceURI = gen_const_xmlChar_ptr(n_namespaceURI, 2); - - ret_val = xmlTextReaderMoveToAttributeNs(reader, (const xmlChar *)localName, (const xmlChar *)namespaceURI); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_const_xmlChar_ptr(n_localName, (const xmlChar *)localName, 1); - des_const_xmlChar_ptr(n_namespaceURI, (const xmlChar *)namespaceURI, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderMoveToAttributeNs", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_localName); - printf(" %d", n_namespaceURI); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderMoveToElement(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderMoveToElement(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderMoveToElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderMoveToFirstAttribute(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderMoveToFirstAttribute(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderMoveToFirstAttribute", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderMoveToNextAttribute(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderMoveToNextAttribute(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderMoveToNextAttribute", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderName(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderName(reader); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderName", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderNamespaceUri(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderNamespaceUri(reader); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderNamespaceUri", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderNext(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderNext(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderNext", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderNextSibling(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderNextSibling(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderNextSibling", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderNodeType(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderNodeType(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderNodeType", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderNormalization(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderNormalization(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderNormalization", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderPrefix(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderPrefix(reader); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderPrefix", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderPreserve(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderPreserve(reader); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderPreserve", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderPreservePattern(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_PATTERN_ENABLED) -#ifdef LIBXML_PATTERN_ENABLED - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - xmlChar * pattern; /* an XPath subset pattern */ - int n_pattern; - xmlChar ** namespaces; /* the prefix definitions, array of [URI, prefix] or NULL */ - int n_namespaces; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_pattern = 0;n_pattern < gen_nb_const_xmlChar_ptr;n_pattern++) { - for (n_namespaces = 0;n_namespaces < gen_nb_const_xmlChar_ptr_ptr;n_namespaces++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - pattern = gen_const_xmlChar_ptr(n_pattern, 1); - namespaces = gen_const_xmlChar_ptr_ptr(n_namespaces, 2); - - ret_val = xmlTextReaderPreservePattern(reader, (const xmlChar *)pattern, (const xmlChar **)namespaces); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_const_xmlChar_ptr(n_pattern, (const xmlChar *)pattern, 1); - des_const_xmlChar_ptr_ptr(n_namespaces, (const xmlChar **)namespaces, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderPreservePattern", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_pattern); - printf(" %d", n_namespaces); - printf("\n"); - } - } - } - } - function_tests++; -#endif -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderQuoteChar(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderQuoteChar(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderQuoteChar", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderRead(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderRead(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderRead", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderReadAttributeValue(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderReadAttributeValue(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderReadAttributeValue", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderReadState(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderReadState(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderReadState", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderRelaxNGSetSchema(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - xmlRelaxNGPtr schema; /* a precompiled RelaxNG schema */ - int n_schema; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_schema = 0;n_schema < gen_nb_xmlRelaxNGPtr;n_schema++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - schema = gen_xmlRelaxNGPtr(n_schema, 1); - - ret_val = xmlTextReaderRelaxNGSetSchema(reader, schema); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_xmlRelaxNGPtr(n_schema, schema, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderRelaxNGSetSchema", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_schema); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderRelaxNGValidate(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - char * rng; /* the path to a RelaxNG schema or NULL */ - int n_rng; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_rng = 0;n_rng < gen_nb_const_char_ptr;n_rng++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - rng = gen_const_char_ptr(n_rng, 1); - - ret_val = xmlTextReaderRelaxNGValidate(reader, (const char *)rng); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_const_char_ptr(n_rng, (const char *)rng, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderRelaxNGValidate", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_rng); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderSchemaValidate(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - char * xsd; /* the path to a W3C XSD schema or NULL */ - int n_xsd; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_xsd = 0;n_xsd < gen_nb_const_char_ptr;n_xsd++) { - reader = gen_xmlTextReaderPtr(n_reader, 0); - xsd = gen_const_char_ptr(n_xsd, 1); - - ret_val = xmlTextReaderSchemaValidate(reader, (const char *)xsd); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_const_char_ptr(n_xsd, (const char *)xsd, 1); - xmlResetLastError(); - } - } - function_tests++; -#endif - - return(test_ret); -} - -#ifdef LIBXML_READER_ENABLED - -#define gen_nb_xmlSchemaValidCtxtPtr 1 -static xmlSchemaValidCtxtPtr gen_xmlSchemaValidCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSchemaValidCtxtPtr(int no ATTRIBUTE_UNUSED, xmlSchemaValidCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlTextReaderSchemaValidateCtxt(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - xmlSchemaValidCtxtPtr ctxt; /* the XML Schema validation context or NULL */ - int n_ctxt; - int options; /* options (not used yet) */ - int n_options; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_ctxt = 0;n_ctxt < gen_nb_xmlSchemaValidCtxtPtr;n_ctxt++) { - for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - ctxt = gen_xmlSchemaValidCtxtPtr(n_ctxt, 1); - options = gen_parseroptions(n_options, 2); - - ret_val = xmlTextReaderSchemaValidateCtxt(reader, ctxt, options); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_xmlSchemaValidCtxtPtr(n_ctxt, ctxt, 1); - des_parseroptions(n_options, options, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderSchemaValidateCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_ctxt); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderSetErrorHandler(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextReaderSetParserProp(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - int prop; /* the xmlParserProperties to set */ - int n_prop; - int value; /* usually 0 or 1 to (de)activate it */ - int n_value; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_prop = 0;n_prop < gen_nb_int;n_prop++) { - for (n_value = 0;n_value < gen_nb_int;n_value++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - prop = gen_int(n_prop, 1); - value = gen_int(n_value, 2); - - ret_val = xmlTextReaderSetParserProp(reader, prop, value); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_int(n_prop, prop, 1); - des_int(n_value, value, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderSetParserProp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_prop); - printf(" %d", n_value); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -#ifdef LIBXML_READER_ENABLED - -#define gen_nb_xmlSchemaPtr 1 -static xmlSchemaPtr gen_xmlSchemaPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSchemaPtr(int no ATTRIBUTE_UNUSED, xmlSchemaPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlTextReaderSetSchema(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - xmlSchemaPtr schema; /* a precompiled Schema schema */ - int n_schema; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - for (n_schema = 0;n_schema < gen_nb_xmlSchemaPtr;n_schema++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - schema = gen_xmlSchemaPtr(n_schema, 1); - - ret_val = xmlTextReaderSetSchema(reader, schema); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - des_xmlSchemaPtr(n_schema, schema, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderSetSchema", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf(" %d", n_schema); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderSetStructuredErrorHandler(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextReaderStandalone(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - int ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderStandalone(reader); - desret_int(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderStandalone", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderValue(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderValue(reader); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderValue", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextReaderXmlLang(void) { - int test_ret = 0; - -#if defined(LIBXML_READER_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */ - int n_reader; - - for (n_reader = 0;n_reader < gen_nb_xmlTextReaderPtr;n_reader++) { - mem_base = xmlMemBlocks(); - reader = gen_xmlTextReaderPtr(n_reader, 0); - - ret_val = xmlTextReaderXmlLang(reader); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlTextReaderPtr(n_reader, reader, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextReaderXmlLang", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_reader); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_xmlreader(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing xmlreader : 74 of 84 functions ...\n"); - test_ret += test_xmlNewTextReader(); - test_ret += test_xmlNewTextReaderFilename(); - test_ret += test_xmlReaderForDoc(); - test_ret += test_xmlReaderForFile(); - test_ret += test_xmlReaderForMemory(); - test_ret += test_xmlReaderNewDoc(); - test_ret += test_xmlReaderNewFile(); - test_ret += test_xmlReaderNewMemory(); - test_ret += test_xmlReaderNewWalker(); - test_ret += test_xmlReaderWalker(); - test_ret += test_xmlTextReaderAttributeCount(); - test_ret += test_xmlTextReaderBaseUri(); - test_ret += test_xmlTextReaderByteConsumed(); - test_ret += test_xmlTextReaderClose(); - test_ret += test_xmlTextReaderConstBaseUri(); - test_ret += test_xmlTextReaderConstEncoding(); - test_ret += test_xmlTextReaderConstLocalName(); - test_ret += test_xmlTextReaderConstName(); - test_ret += test_xmlTextReaderConstNamespaceUri(); - test_ret += test_xmlTextReaderConstPrefix(); - test_ret += test_xmlTextReaderConstString(); - test_ret += test_xmlTextReaderConstValue(); - test_ret += test_xmlTextReaderConstXmlLang(); - test_ret += test_xmlTextReaderConstXmlVersion(); - test_ret += test_xmlTextReaderCurrentDoc(); - test_ret += test_xmlTextReaderCurrentNode(); - test_ret += test_xmlTextReaderDepth(); - test_ret += test_xmlTextReaderExpand(); - test_ret += test_xmlTextReaderGetAttribute(); - test_ret += test_xmlTextReaderGetAttributeNo(); - test_ret += test_xmlTextReaderGetAttributeNs(); - test_ret += test_xmlTextReaderGetErrorHandler(); - test_ret += test_xmlTextReaderGetParserColumnNumber(); - test_ret += test_xmlTextReaderGetParserLineNumber(); - test_ret += test_xmlTextReaderGetParserProp(); - test_ret += test_xmlTextReaderGetRemainder(); - test_ret += test_xmlTextReaderHasAttributes(); - test_ret += test_xmlTextReaderHasValue(); - test_ret += test_xmlTextReaderIsDefault(); - test_ret += test_xmlTextReaderIsEmptyElement(); - test_ret += test_xmlTextReaderIsNamespaceDecl(); - test_ret += test_xmlTextReaderIsValid(); - test_ret += test_xmlTextReaderLocalName(); - test_ret += test_xmlTextReaderLocatorBaseURI(); - test_ret += test_xmlTextReaderLocatorLineNumber(); - test_ret += test_xmlTextReaderLookupNamespace(); - test_ret += test_xmlTextReaderMoveToAttribute(); - test_ret += test_xmlTextReaderMoveToAttributeNo(); - test_ret += test_xmlTextReaderMoveToAttributeNs(); - test_ret += test_xmlTextReaderMoveToElement(); - test_ret += test_xmlTextReaderMoveToFirstAttribute(); - test_ret += test_xmlTextReaderMoveToNextAttribute(); - test_ret += test_xmlTextReaderName(); - test_ret += test_xmlTextReaderNamespaceUri(); - test_ret += test_xmlTextReaderNext(); - test_ret += test_xmlTextReaderNextSibling(); - test_ret += test_xmlTextReaderNodeType(); - test_ret += test_xmlTextReaderNormalization(); - test_ret += test_xmlTextReaderPrefix(); - test_ret += test_xmlTextReaderPreserve(); - test_ret += test_xmlTextReaderPreservePattern(); - test_ret += test_xmlTextReaderQuoteChar(); - test_ret += test_xmlTextReaderRead(); - test_ret += test_xmlTextReaderReadAttributeValue(); - test_ret += test_xmlTextReaderReadState(); - test_ret += test_xmlTextReaderRelaxNGSetSchema(); - test_ret += test_xmlTextReaderRelaxNGValidate(); - test_ret += test_xmlTextReaderSchemaValidate(); - test_ret += test_xmlTextReaderSchemaValidateCtxt(); - test_ret += test_xmlTextReaderSetErrorHandler(); - test_ret += test_xmlTextReaderSetParserProp(); - test_ret += test_xmlTextReaderSetSchema(); - test_ret += test_xmlTextReaderSetStructuredErrorHandler(); - test_ret += test_xmlTextReaderStandalone(); - test_ret += test_xmlTextReaderValue(); - test_ret += test_xmlTextReaderXmlLang(); - - if (test_ret != 0) - printf("Module xmlreader: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlExpCtxtNbCons(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - int mem_base; - int ret_val; - xmlExpCtxtPtr ctxt; /* an expression context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlExpCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlExpCtxtPtr(n_ctxt, 0); - - ret_val = xmlExpCtxtNbCons(ctxt); - desret_int(ret_val); - call_tests++; - des_xmlExpCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlExpCtxtNbCons", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlExpCtxtNbNodes(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - int mem_base; - int ret_val; - xmlExpCtxtPtr ctxt; /* an expression context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlExpCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlExpCtxtPtr(n_ctxt, 0); - - ret_val = xmlExpCtxtNbNodes(ctxt); - desret_int(ret_val); - call_tests++; - des_xmlExpCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlExpCtxtNbNodes", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlExpDump(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - int mem_base; - xmlBufferPtr buf; /* a buffer to receive the output */ - int n_buf; - xmlExpNodePtr expr; /* the compiled expression */ - int n_expr; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_expr = 0;n_expr < gen_nb_xmlExpNodePtr;n_expr++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - expr = gen_xmlExpNodePtr(n_expr, 1); - - xmlExpDump(buf, expr); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_xmlExpNodePtr(n_expr, expr, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlExpDump", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_expr); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlExpExpDerive(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlExpGetLanguage(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - int mem_base; - int ret_val; - xmlExpCtxtPtr ctxt; /* the expression context */ - int n_ctxt; - xmlExpNodePtr exp; /* the expression */ - int n_exp; - xmlChar ** langList; /* where to store the tokens */ - int n_langList; - int len; /* the allocated lenght of @list */ - int n_len; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlExpCtxtPtr;n_ctxt++) { - for (n_exp = 0;n_exp < gen_nb_xmlExpNodePtr;n_exp++) { - for (n_langList = 0;n_langList < gen_nb_const_xmlChar_ptr_ptr;n_langList++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlExpCtxtPtr(n_ctxt, 0); - exp = gen_xmlExpNodePtr(n_exp, 1); - langList = gen_const_xmlChar_ptr_ptr(n_langList, 2); - len = gen_int(n_len, 3); - - ret_val = xmlExpGetLanguage(ctxt, exp, (const xmlChar **)langList, len); - desret_int(ret_val); - call_tests++; - des_xmlExpCtxtPtr(n_ctxt, ctxt, 0); - des_xmlExpNodePtr(n_exp, exp, 1); - des_const_xmlChar_ptr_ptr(n_langList, (const xmlChar **)langList, 2); - des_int(n_len, len, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlExpGetLanguage", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_exp); - printf(" %d", n_langList); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlExpGetStart(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - int mem_base; - int ret_val; - xmlExpCtxtPtr ctxt; /* the expression context */ - int n_ctxt; - xmlExpNodePtr exp; /* the expression */ - int n_exp; - xmlChar ** tokList; /* where to store the tokens */ - int n_tokList; - int len; /* the allocated lenght of @list */ - int n_len; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlExpCtxtPtr;n_ctxt++) { - for (n_exp = 0;n_exp < gen_nb_xmlExpNodePtr;n_exp++) { - for (n_tokList = 0;n_tokList < gen_nb_const_xmlChar_ptr_ptr;n_tokList++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlExpCtxtPtr(n_ctxt, 0); - exp = gen_xmlExpNodePtr(n_exp, 1); - tokList = gen_const_xmlChar_ptr_ptr(n_tokList, 2); - len = gen_int(n_len, 3); - - ret_val = xmlExpGetStart(ctxt, exp, (const xmlChar **)tokList, len); - desret_int(ret_val); - call_tests++; - des_xmlExpCtxtPtr(n_ctxt, ctxt, 0); - des_xmlExpNodePtr(n_exp, exp, 1); - des_const_xmlChar_ptr_ptr(n_tokList, (const xmlChar **)tokList, 2); - des_int(n_len, len, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlExpGetStart", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_exp); - printf(" %d", n_tokList); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlExpIsNillable(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - int mem_base; - int ret_val; - xmlExpNodePtr exp; /* the expression */ - int n_exp; - - for (n_exp = 0;n_exp < gen_nb_xmlExpNodePtr;n_exp++) { - mem_base = xmlMemBlocks(); - exp = gen_xmlExpNodePtr(n_exp, 0); - - ret_val = xmlExpIsNillable(exp); - desret_int(ret_val); - call_tests++; - des_xmlExpNodePtr(n_exp, exp, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlExpIsNillable", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_exp); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlExpMaxToken(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - int mem_base; - int ret_val; - xmlExpNodePtr expr; /* a compiled expression */ - int n_expr; - - for (n_expr = 0;n_expr < gen_nb_xmlExpNodePtr;n_expr++) { - mem_base = xmlMemBlocks(); - expr = gen_xmlExpNodePtr(n_expr, 0); - - ret_val = xmlExpMaxToken(expr); - desret_int(ret_val); - call_tests++; - des_xmlExpNodePtr(n_expr, expr, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlExpMaxToken", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_expr); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlExpNewAtom(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlExpNewCtxt(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlExpNewOr(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlExpNewRange(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlExpNewSeq(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlExpParse(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlExpRef(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - int mem_base; - xmlExpNodePtr exp; /* the expression */ - int n_exp; - - for (n_exp = 0;n_exp < gen_nb_xmlExpNodePtr;n_exp++) { - mem_base = xmlMemBlocks(); - exp = gen_xmlExpNodePtr(n_exp, 0); - - xmlExpRef(exp); - call_tests++; - des_xmlExpNodePtr(n_exp, exp, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlExpRef", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_exp); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlExpStringDerive(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlExpSubsume(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) - int mem_base; - int ret_val; - xmlExpCtxtPtr ctxt; /* the expressions context */ - int n_ctxt; - xmlExpNodePtr exp; /* the englobing expression */ - int n_exp; - xmlExpNodePtr sub; /* the subexpression */ - int n_sub; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlExpCtxtPtr;n_ctxt++) { - for (n_exp = 0;n_exp < gen_nb_xmlExpNodePtr;n_exp++) { - for (n_sub = 0;n_sub < gen_nb_xmlExpNodePtr;n_sub++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlExpCtxtPtr(n_ctxt, 0); - exp = gen_xmlExpNodePtr(n_exp, 1); - sub = gen_xmlExpNodePtr(n_sub, 2); - - ret_val = xmlExpSubsume(ctxt, exp, sub); - desret_int(ret_val); - call_tests++; - des_xmlExpCtxtPtr(n_ctxt, ctxt, 0); - des_xmlExpNodePtr(n_exp, exp, 1); - des_xmlExpNodePtr(n_sub, sub, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlExpSubsume", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_exp); - printf(" %d", n_sub); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -#ifdef LIBXML_REGEXP_ENABLED - -#define gen_nb_xmlRegExecCtxtPtr 1 -static xmlRegExecCtxtPtr gen_xmlRegExecCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlRegExecCtxtPtr(int no ATTRIBUTE_UNUSED, xmlRegExecCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlRegExecErrInfo(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) - int mem_base; - int ret_val; - xmlRegExecCtxtPtr exec; /* a regexp execution context generating an error */ - int n_exec; - xmlChar ** string; /* return value for the error string */ - int n_string; - int * nbval; /* pointer to the number of accepted values IN/OUT */ - int n_nbval; - int * nbneg; /* return number of negative transitions */ - int n_nbneg; - xmlChar ** values; /* pointer to the array of acceptable values */ - int n_values; - int * terminal; /* return value if this was a terminal state */ - int n_terminal; - - for (n_exec = 0;n_exec < gen_nb_xmlRegExecCtxtPtr;n_exec++) { - for (n_string = 0;n_string < gen_nb_const_xmlChar_ptr_ptr;n_string++) { - for (n_nbval = 0;n_nbval < gen_nb_int_ptr;n_nbval++) { - for (n_nbneg = 0;n_nbneg < gen_nb_int_ptr;n_nbneg++) { - for (n_values = 0;n_values < gen_nb_xmlChar_ptr_ptr;n_values++) { - for (n_terminal = 0;n_terminal < gen_nb_int_ptr;n_terminal++) { - mem_base = xmlMemBlocks(); - exec = gen_xmlRegExecCtxtPtr(n_exec, 0); - string = gen_const_xmlChar_ptr_ptr(n_string, 1); - nbval = gen_int_ptr(n_nbval, 2); - nbneg = gen_int_ptr(n_nbneg, 3); - values = gen_xmlChar_ptr_ptr(n_values, 4); - terminal = gen_int_ptr(n_terminal, 5); - - ret_val = xmlRegExecErrInfo(exec, (const xmlChar **)string, nbval, nbneg, values, terminal); - desret_int(ret_val); - call_tests++; - des_xmlRegExecCtxtPtr(n_exec, exec, 0); - des_const_xmlChar_ptr_ptr(n_string, (const xmlChar **)string, 1); - des_int_ptr(n_nbval, nbval, 2); - des_int_ptr(n_nbneg, nbneg, 3); - des_xmlChar_ptr_ptr(n_values, values, 4); - des_int_ptr(n_terminal, terminal, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRegExecErrInfo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_exec); - printf(" %d", n_string); - printf(" %d", n_nbval); - printf(" %d", n_nbneg); - printf(" %d", n_values); - printf(" %d", n_terminal); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRegExecNextValues(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) - int mem_base; - int ret_val; - xmlRegExecCtxtPtr exec; /* a regexp execution context */ - int n_exec; - int * nbval; /* pointer to the number of accepted values IN/OUT */ - int n_nbval; - int * nbneg; /* return number of negative transitions */ - int n_nbneg; - xmlChar ** values; /* pointer to the array of acceptable values */ - int n_values; - int * terminal; /* return value if this was a terminal state */ - int n_terminal; - - for (n_exec = 0;n_exec < gen_nb_xmlRegExecCtxtPtr;n_exec++) { - for (n_nbval = 0;n_nbval < gen_nb_int_ptr;n_nbval++) { - for (n_nbneg = 0;n_nbneg < gen_nb_int_ptr;n_nbneg++) { - for (n_values = 0;n_values < gen_nb_xmlChar_ptr_ptr;n_values++) { - for (n_terminal = 0;n_terminal < gen_nb_int_ptr;n_terminal++) { - mem_base = xmlMemBlocks(); - exec = gen_xmlRegExecCtxtPtr(n_exec, 0); - nbval = gen_int_ptr(n_nbval, 1); - nbneg = gen_int_ptr(n_nbneg, 2); - values = gen_xmlChar_ptr_ptr(n_values, 3); - terminal = gen_int_ptr(n_terminal, 4); - - ret_val = xmlRegExecNextValues(exec, nbval, nbneg, values, terminal); - desret_int(ret_val); - call_tests++; - des_xmlRegExecCtxtPtr(n_exec, exec, 0); - des_int_ptr(n_nbval, nbval, 1); - des_int_ptr(n_nbneg, nbneg, 2); - des_xmlChar_ptr_ptr(n_values, values, 3); - des_int_ptr(n_terminal, terminal, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRegExecNextValues", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_exec); - printf(" %d", n_nbval); - printf(" %d", n_nbneg); - printf(" %d", n_values); - printf(" %d", n_terminal); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRegExecPushString(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) - int mem_base; - int ret_val; - xmlRegExecCtxtPtr exec; /* a regexp execution context or NULL to indicate the end */ - int n_exec; - xmlChar * value; /* a string token input */ - int n_value; - void * data; /* data associated to the token to reuse in callbacks */ - int n_data; - - for (n_exec = 0;n_exec < gen_nb_xmlRegExecCtxtPtr;n_exec++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - for (n_data = 0;n_data < gen_nb_userdata;n_data++) { - mem_base = xmlMemBlocks(); - exec = gen_xmlRegExecCtxtPtr(n_exec, 0); - value = gen_const_xmlChar_ptr(n_value, 1); - data = gen_userdata(n_data, 2); - - ret_val = xmlRegExecPushString(exec, (const xmlChar *)value, data); - desret_int(ret_val); - call_tests++; - des_xmlRegExecCtxtPtr(n_exec, exec, 0); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 1); - des_userdata(n_data, data, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRegExecPushString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_exec); - printf(" %d", n_value); - printf(" %d", n_data); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRegExecPushString2(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) - int mem_base; - int ret_val; - xmlRegExecCtxtPtr exec; /* a regexp execution context or NULL to indicate the end */ - int n_exec; - xmlChar * value; /* the first string token input */ - int n_value; - xmlChar * value2; /* the second string token input */ - int n_value2; - void * data; /* data associated to the token to reuse in callbacks */ - int n_data; - - for (n_exec = 0;n_exec < gen_nb_xmlRegExecCtxtPtr;n_exec++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - for (n_value2 = 0;n_value2 < gen_nb_const_xmlChar_ptr;n_value2++) { - for (n_data = 0;n_data < gen_nb_userdata;n_data++) { - mem_base = xmlMemBlocks(); - exec = gen_xmlRegExecCtxtPtr(n_exec, 0); - value = gen_const_xmlChar_ptr(n_value, 1); - value2 = gen_const_xmlChar_ptr(n_value2, 2); - data = gen_userdata(n_data, 3); - - ret_val = xmlRegExecPushString2(exec, (const xmlChar *)value, (const xmlChar *)value2, data); - desret_int(ret_val); - call_tests++; - des_xmlRegExecCtxtPtr(n_exec, exec, 0); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 1); - des_const_xmlChar_ptr(n_value2, (const xmlChar *)value2, 2); - des_userdata(n_data, data, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRegExecPushString2", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_exec); - printf(" %d", n_value); - printf(" %d", n_value2); - printf(" %d", n_data); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -#ifdef LIBXML_REGEXP_ENABLED - -#define gen_nb_xmlRegexpPtr 1 -static xmlRegexpPtr gen_xmlRegexpPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlRegexpPtr(int no ATTRIBUTE_UNUSED, xmlRegexpPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlRegNewExecCtxt(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlRegexpCompile(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlRegexpExec(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) - int mem_base; - int ret_val; - xmlRegexpPtr comp; /* the compiled regular expression */ - int n_comp; - xmlChar * content; /* the value to check against the regular expression */ - int n_content; - - for (n_comp = 0;n_comp < gen_nb_xmlRegexpPtr;n_comp++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - comp = gen_xmlRegexpPtr(n_comp, 0); - content = gen_const_xmlChar_ptr(n_content, 1); - - ret_val = xmlRegexpExec(comp, (const xmlChar *)content); - desret_int(ret_val); - call_tests++; - des_xmlRegexpPtr(n_comp, comp, 0); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRegexpExec", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_comp); - printf(" %d", n_content); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRegexpIsDeterminist(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) - int mem_base; - int ret_val; - xmlRegexpPtr comp; /* the compiled regular expression */ - int n_comp; - - for (n_comp = 0;n_comp < gen_nb_xmlRegexpPtr;n_comp++) { - mem_base = xmlMemBlocks(); - comp = gen_xmlRegexpPtr(n_comp, 0); - - ret_val = xmlRegexpIsDeterminist(comp); - desret_int(ret_val); - call_tests++; - des_xmlRegexpPtr(n_comp, comp, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRegexpIsDeterminist", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_comp); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlRegexpPrint(void) { - int test_ret = 0; - -#if defined(LIBXML_REGEXP_ENABLED) - int mem_base; - FILE * output; /* the file for the output debug */ - int n_output; - xmlRegexpPtr regexp; /* the compiled regexp */ - int n_regexp; - - for (n_output = 0;n_output < gen_nb_FILE_ptr;n_output++) { - for (n_regexp = 0;n_regexp < gen_nb_xmlRegexpPtr;n_regexp++) { - mem_base = xmlMemBlocks(); - output = gen_FILE_ptr(n_output, 0); - regexp = gen_xmlRegexpPtr(n_regexp, 1); - - xmlRegexpPrint(output, regexp); - call_tests++; - des_FILE_ptr(n_output, output, 0); - des_xmlRegexpPtr(n_regexp, regexp, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlRegexpPrint", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_regexp); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_xmlregexp(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing xmlregexp : 16 of 30 functions ...\n"); - test_ret += test_xmlExpCtxtNbCons(); - test_ret += test_xmlExpCtxtNbNodes(); - test_ret += test_xmlExpDump(); - test_ret += test_xmlExpExpDerive(); - test_ret += test_xmlExpGetLanguage(); - test_ret += test_xmlExpGetStart(); - test_ret += test_xmlExpIsNillable(); - test_ret += test_xmlExpMaxToken(); - test_ret += test_xmlExpNewAtom(); - test_ret += test_xmlExpNewCtxt(); - test_ret += test_xmlExpNewOr(); - test_ret += test_xmlExpNewRange(); - test_ret += test_xmlExpNewSeq(); - test_ret += test_xmlExpParse(); - test_ret += test_xmlExpRef(); - test_ret += test_xmlExpStringDerive(); - test_ret += test_xmlExpSubsume(); - test_ret += test_xmlRegExecErrInfo(); - test_ret += test_xmlRegExecNextValues(); - test_ret += test_xmlRegExecPushString(); - test_ret += test_xmlRegExecPushString2(); - test_ret += test_xmlRegNewExecCtxt(); - test_ret += test_xmlRegexpCompile(); - test_ret += test_xmlRegexpExec(); - test_ret += test_xmlRegexpIsDeterminist(); - test_ret += test_xmlRegexpPrint(); - - if (test_ret != 0) - printf("Module xmlregexp: %d errors\n", test_ret); - return(test_ret); -} -#ifdef LIBXML_OUTPUT_ENABLED - -#define gen_nb_xmlSaveCtxtPtr 1 -static xmlSaveCtxtPtr gen_xmlSaveCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSaveCtxtPtr(int no ATTRIBUTE_UNUSED, xmlSaveCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlSaveClose(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - xmlSaveCtxtPtr ctxt; /* a document saving context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlSaveCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlSaveCtxtPtr(n_ctxt, 0); - - ret_val = xmlSaveClose(ctxt); - desret_int(ret_val); - call_tests++; - des_xmlSaveCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSaveClose", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSaveDoc(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - long ret_val; - xmlSaveCtxtPtr ctxt; /* a document saving context */ - int n_ctxt; - xmlDocPtr doc; /* a document */ - int n_doc; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlSaveCtxtPtr;n_ctxt++) { - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlSaveCtxtPtr(n_ctxt, 0); - doc = gen_xmlDocPtr(n_doc, 1); - - ret_val = xmlSaveDoc(ctxt, doc); - desret_long(ret_val); - call_tests++; - des_xmlSaveCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_doc, doc, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSaveDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_doc); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSaveFlush(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - int ret_val; - xmlSaveCtxtPtr ctxt; /* a document saving context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlSaveCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlSaveCtxtPtr(n_ctxt, 0); - - ret_val = xmlSaveFlush(ctxt); - desret_int(ret_val); - call_tests++; - des_xmlSaveCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSaveFlush", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSaveSetAttrEscape(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSaveSetEscape(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSaveToBuffer(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSaveToFd(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSaveToFilename(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSaveTree(void) { - int test_ret = 0; - -#if defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - long ret_val; - xmlSaveCtxtPtr ctxt; /* a document saving context */ - int n_ctxt; - xmlNodePtr node; /* a document */ - int n_node; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlSaveCtxtPtr;n_ctxt++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlSaveCtxtPtr(n_ctxt, 0); - node = gen_xmlNodePtr(n_node, 1); - - ret_val = xmlSaveTree(ctxt, node); - desret_long(ret_val); - call_tests++; - des_xmlSaveCtxtPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_node, node, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSaveTree", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_node); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_xmlsave(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing xmlsave : 4 of 10 functions ...\n"); - test_ret += test_xmlSaveClose(); - test_ret += test_xmlSaveDoc(); - test_ret += test_xmlSaveFlush(); - test_ret += test_xmlSaveSetAttrEscape(); - test_ret += test_xmlSaveSetEscape(); - test_ret += test_xmlSaveToBuffer(); - test_ret += test_xmlSaveToFd(); - test_ret += test_xmlSaveToFilename(); - test_ret += test_xmlSaveTree(); - - if (test_ret != 0) - printf("Module xmlsave: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlSchemaDump(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) - int mem_base; - FILE * output; /* the file output */ - int n_output; - xmlSchemaPtr schema; /* a schema structure */ - int n_schema; - - for (n_output = 0;n_output < gen_nb_FILE_ptr;n_output++) { - for (n_schema = 0;n_schema < gen_nb_xmlSchemaPtr;n_schema++) { - mem_base = xmlMemBlocks(); - output = gen_FILE_ptr(n_output, 0); - schema = gen_xmlSchemaPtr(n_schema, 1); - - xmlSchemaDump(output, schema); - call_tests++; - des_FILE_ptr(n_output, output, 0); - des_xmlSchemaPtr(n_schema, schema, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaDump", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_schema); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -#ifdef LIBXML_SCHEMAS_ENABLED - -#define gen_nb_xmlSchemaParserCtxtPtr 1 -static xmlSchemaParserCtxtPtr gen_xmlSchemaParserCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSchemaParserCtxtPtr(int no ATTRIBUTE_UNUSED, xmlSchemaParserCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - -#ifdef LIBXML_SCHEMAS_ENABLED - -#define gen_nb_xmlSchemaValidityErrorFunc_ptr 1 -static xmlSchemaValidityErrorFunc * gen_xmlSchemaValidityErrorFunc_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSchemaValidityErrorFunc_ptr(int no ATTRIBUTE_UNUSED, xmlSchemaValidityErrorFunc * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - -#ifdef LIBXML_SCHEMAS_ENABLED - -#define gen_nb_xmlSchemaValidityWarningFunc_ptr 1 -static xmlSchemaValidityWarningFunc * gen_xmlSchemaValidityWarningFunc_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSchemaValidityWarningFunc_ptr(int no ATTRIBUTE_UNUSED, xmlSchemaValidityWarningFunc * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlSchemaGetParserErrors(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaParserCtxtPtr ctxt; /* a XMl-Schema parser context */ - int n_ctxt; - xmlSchemaValidityErrorFunc * err; /* the error callback result */ - int n_err; - xmlSchemaValidityWarningFunc * warn; /* the warning callback result */ - int n_warn; - void ** ctx; /* contextual data for the callbacks result */ - int n_ctx; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlSchemaParserCtxtPtr;n_ctxt++) { - for (n_err = 0;n_err < gen_nb_xmlSchemaValidityErrorFunc_ptr;n_err++) { - for (n_warn = 0;n_warn < gen_nb_xmlSchemaValidityWarningFunc_ptr;n_warn++) { - for (n_ctx = 0;n_ctx < gen_nb_void_ptr_ptr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlSchemaParserCtxtPtr(n_ctxt, 0); - err = gen_xmlSchemaValidityErrorFunc_ptr(n_err, 1); - warn = gen_xmlSchemaValidityWarningFunc_ptr(n_warn, 2); - ctx = gen_void_ptr_ptr(n_ctx, 3); - - ret_val = xmlSchemaGetParserErrors(ctxt, err, warn, ctx); - desret_int(ret_val); - call_tests++; - des_xmlSchemaParserCtxtPtr(n_ctxt, ctxt, 0); - des_xmlSchemaValidityErrorFunc_ptr(n_err, err, 1); - des_xmlSchemaValidityWarningFunc_ptr(n_warn, warn, 2); - des_void_ptr_ptr(n_ctx, ctx, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaGetParserErrors", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_err); - printf(" %d", n_warn); - printf(" %d", n_ctx); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaGetValidErrors(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaValidCtxtPtr ctxt; /* */ - int n_ctxt; - xmlSchemaValidityErrorFunc * err; /* */ - int n_err; - xmlSchemaValidityWarningFunc * warn; /* */ - int n_warn; - void ** ctx; /* */ - int n_ctx; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlSchemaValidCtxtPtr;n_ctxt++) { - for (n_err = 0;n_err < gen_nb_xmlSchemaValidityErrorFunc_ptr;n_err++) { - for (n_warn = 0;n_warn < gen_nb_xmlSchemaValidityWarningFunc_ptr;n_warn++) { - for (n_ctx = 0;n_ctx < gen_nb_void_ptr_ptr;n_ctx++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlSchemaValidCtxtPtr(n_ctxt, 0); - err = gen_xmlSchemaValidityErrorFunc_ptr(n_err, 1); - warn = gen_xmlSchemaValidityWarningFunc_ptr(n_warn, 2); - ctx = gen_void_ptr_ptr(n_ctx, 3); - - ret_val = xmlSchemaGetValidErrors(ctxt, err, warn, ctx); - desret_int(ret_val); - call_tests++; - des_xmlSchemaValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlSchemaValidityErrorFunc_ptr(n_err, err, 1); - des_xmlSchemaValidityWarningFunc_ptr(n_warn, warn, 2); - des_void_ptr_ptr(n_ctx, ctx, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaGetValidErrors", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_err); - printf(" %d", n_warn); - printf(" %d", n_ctx); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaIsValid(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaValidCtxtPtr ctxt; /* */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlSchemaValidCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlSchemaValidCtxtPtr(n_ctxt, 0); - - ret_val = xmlSchemaIsValid(ctxt); - desret_int(ret_val); - call_tests++; - des_xmlSchemaValidCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaIsValid", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaNewDocParserCtxt(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - xmlSchemaParserCtxtPtr ret_val; - xmlDocPtr doc; /* a preparsed document tree */ - int n_doc; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - - ret_val = xmlSchemaNewDocParserCtxt(doc); - desret_xmlSchemaParserCtxtPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaNewDocParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaNewMemParserCtxt(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - xmlSchemaParserCtxtPtr ret_val; - char * buffer; /* a pointer to a char array containing the schemas */ - int n_buffer; - int size; /* the size of the array */ - int n_size; - - for (n_buffer = 0;n_buffer < gen_nb_const_char_ptr;n_buffer++) { - for (n_size = 0;n_size < gen_nb_int;n_size++) { - mem_base = xmlMemBlocks(); - buffer = gen_const_char_ptr(n_buffer, 0); - size = gen_int(n_size, 1); - - ret_val = xmlSchemaNewMemParserCtxt((const char *)buffer, size); - desret_xmlSchemaParserCtxtPtr(ret_val); - call_tests++; - des_const_char_ptr(n_buffer, (const char *)buffer, 0); - des_int(n_size, size, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaNewMemParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buffer); - printf(" %d", n_size); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaNewParserCtxt(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - xmlSchemaParserCtxtPtr ret_val; - char * URL; /* the location of the schema */ - int n_URL; - - for (n_URL = 0;n_URL < gen_nb_const_char_ptr;n_URL++) { - mem_base = xmlMemBlocks(); - URL = gen_const_char_ptr(n_URL, 0); - - ret_val = xmlSchemaNewParserCtxt((const char *)URL); - desret_xmlSchemaParserCtxtPtr(ret_val); - call_tests++; - des_const_char_ptr(n_URL, (const char *)URL, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaNewParserCtxt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_URL); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaNewValidCtxt(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSchemaParse(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - -#ifdef LIBXML_SCHEMAS_ENABLED - -#define gen_nb_xmlSAXHandlerPtr_ptr 1 -static xmlSAXHandlerPtr * gen_xmlSAXHandlerPtr_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSAXHandlerPtr_ptr(int no ATTRIBUTE_UNUSED, xmlSAXHandlerPtr * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlSchemaSAXPlug(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - -#ifdef LIBXML_SCHEMAS_ENABLED - -#define gen_nb_xmlSchemaSAXPlugPtr 1 -static xmlSchemaSAXPlugPtr gen_xmlSchemaSAXPlugPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSchemaSAXPlugPtr(int no ATTRIBUTE_UNUSED, xmlSchemaSAXPlugPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlSchemaSAXUnplug(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaSAXPlugPtr plug; /* */ - int n_plug; - - for (n_plug = 0;n_plug < gen_nb_xmlSchemaSAXPlugPtr;n_plug++) { - mem_base = xmlMemBlocks(); - plug = gen_xmlSchemaSAXPlugPtr(n_plug, 0); - - ret_val = xmlSchemaSAXUnplug(plug); - desret_int(ret_val); - call_tests++; - des_xmlSchemaSAXPlugPtr(n_plug, plug, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaSAXUnplug", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_plug); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaSetParserErrors(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSchemaSetParserStructuredErrors(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSchemaSetValidErrors(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSchemaSetValidOptions(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaValidCtxtPtr ctxt; /* */ - int n_ctxt; - int options; /* */ - int n_options; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlSchemaValidCtxtPtr;n_ctxt++) { - for (n_options = 0;n_options < gen_nb_int;n_options++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlSchemaValidCtxtPtr(n_ctxt, 0); - options = gen_int(n_options, 1); - - ret_val = xmlSchemaSetValidOptions(ctxt, options); - desret_int(ret_val); - call_tests++; - des_xmlSchemaValidCtxtPtr(n_ctxt, ctxt, 0); - des_int(n_options, options, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaSetValidOptions", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_options); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaSetValidStructuredErrors(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSchemaValidCtxtGetOptions(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaValidCtxtPtr ctxt; /* */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlSchemaValidCtxtPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlSchemaValidCtxtPtr(n_ctxt, 0); - - ret_val = xmlSchemaValidCtxtGetOptions(ctxt); - desret_int(ret_val); - call_tests++; - des_xmlSchemaValidCtxtPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaValidCtxtGetOptions", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaValidateDoc(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaValidCtxtPtr ctxt; /* */ - int n_ctxt; - xmlDocPtr instance; /* */ - int n_instance; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlSchemaValidCtxtPtr;n_ctxt++) { - for (n_instance = 0;n_instance < gen_nb_xmlDocPtr;n_instance++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlSchemaValidCtxtPtr(n_ctxt, 0); - instance = gen_xmlDocPtr(n_instance, 1); - - ret_val = xmlSchemaValidateDoc(ctxt, instance); - desret_int(ret_val); - call_tests++; - des_xmlSchemaValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlDocPtr(n_instance, instance, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaValidateDoc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_instance); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaValidateFile(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaValidCtxtPtr ctxt; /* */ - int n_ctxt; - const char * filename; /* */ - int n_filename; - int options; /* */ - int n_options; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlSchemaValidCtxtPtr;n_ctxt++) { - for (n_filename = 0;n_filename < gen_nb_filepath;n_filename++) { - for (n_options = 0;n_options < gen_nb_int;n_options++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlSchemaValidCtxtPtr(n_ctxt, 0); - filename = gen_filepath(n_filename, 1); - options = gen_int(n_options, 2); - - ret_val = xmlSchemaValidateFile(ctxt, filename, options); - desret_int(ret_val); - call_tests++; - des_xmlSchemaValidCtxtPtr(n_ctxt, ctxt, 0); - des_filepath(n_filename, filename, 1); - des_int(n_options, options, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaValidateFile", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_filename); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaValidateOneElement(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaValidCtxtPtr ctxt; /* */ - int n_ctxt; - xmlNodePtr elem; /* */ - int n_elem; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlSchemaValidCtxtPtr;n_ctxt++) { - for (n_elem = 0;n_elem < gen_nb_xmlNodePtr;n_elem++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlSchemaValidCtxtPtr(n_ctxt, 0); - elem = gen_xmlNodePtr(n_elem, 1); - - ret_val = xmlSchemaValidateOneElement(ctxt, elem); - desret_int(ret_val); - call_tests++; - des_xmlSchemaValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_elem, elem, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaValidateOneElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_elem); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaValidateStream(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaValidCtxtPtr ctxt; /* */ - int n_ctxt; - xmlParserInputBufferPtr input; /* */ - int n_input; - xmlCharEncoding enc; /* */ - int n_enc; - xmlSAXHandlerPtr sax; /* */ - int n_sax; - void * user_data; /* */ - int n_user_data; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlSchemaValidCtxtPtr;n_ctxt++) { - for (n_input = 0;n_input < gen_nb_xmlParserInputBufferPtr;n_input++) { - for (n_enc = 0;n_enc < gen_nb_xmlCharEncoding;n_enc++) { - for (n_sax = 0;n_sax < gen_nb_xmlSAXHandlerPtr;n_sax++) { - for (n_user_data = 0;n_user_data < gen_nb_userdata;n_user_data++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlSchemaValidCtxtPtr(n_ctxt, 0); - input = gen_xmlParserInputBufferPtr(n_input, 1); - enc = gen_xmlCharEncoding(n_enc, 2); - sax = gen_xmlSAXHandlerPtr(n_sax, 3); - user_data = gen_userdata(n_user_data, 4); - - ret_val = xmlSchemaValidateStream(ctxt, input, enc, sax, user_data); - desret_int(ret_val); - call_tests++; - des_xmlSchemaValidCtxtPtr(n_ctxt, ctxt, 0); - des_xmlParserInputBufferPtr(n_input, input, 1); - des_xmlCharEncoding(n_enc, enc, 2); - des_xmlSAXHandlerPtr(n_sax, sax, 3); - des_userdata(n_user_data, user_data, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaValidateStream", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_input); - printf(" %d", n_enc); - printf(" %d", n_sax); - printf(" %d", n_user_data); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_xmlschemas(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing xmlschemas : 14 of 24 functions ...\n"); - test_ret += test_xmlSchemaDump(); - test_ret += test_xmlSchemaGetParserErrors(); - test_ret += test_xmlSchemaGetValidErrors(); - test_ret += test_xmlSchemaIsValid(); - test_ret += test_xmlSchemaNewDocParserCtxt(); - test_ret += test_xmlSchemaNewMemParserCtxt(); - test_ret += test_xmlSchemaNewParserCtxt(); - test_ret += test_xmlSchemaNewValidCtxt(); - test_ret += test_xmlSchemaParse(); - test_ret += test_xmlSchemaSAXPlug(); - test_ret += test_xmlSchemaSAXUnplug(); - test_ret += test_xmlSchemaSetParserErrors(); - test_ret += test_xmlSchemaSetParserStructuredErrors(); - test_ret += test_xmlSchemaSetValidErrors(); - test_ret += test_xmlSchemaSetValidOptions(); - test_ret += test_xmlSchemaSetValidStructuredErrors(); - test_ret += test_xmlSchemaValidCtxtGetOptions(); - test_ret += test_xmlSchemaValidateDoc(); - test_ret += test_xmlSchemaValidateFile(); - test_ret += test_xmlSchemaValidateOneElement(); - test_ret += test_xmlSchemaValidateStream(); - - if (test_ret != 0) - printf("Module xmlschemas: %d errors\n", test_ret); - return(test_ret); -} -#ifdef LIBXML_SCHEMAS_ENABLED - -#define gen_nb_xmlSchemaFacetPtr 1 -static xmlSchemaFacetPtr gen_xmlSchemaFacetPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSchemaFacetPtr(int no ATTRIBUTE_UNUSED, xmlSchemaFacetPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - -#ifdef LIBXML_SCHEMAS_ENABLED - -#define gen_nb_xmlSchemaTypePtr 1 -static xmlSchemaTypePtr gen_xmlSchemaTypePtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSchemaTypePtr(int no ATTRIBUTE_UNUSED, xmlSchemaTypePtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlSchemaCheckFacet(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaFacetPtr facet; /* the facet */ - int n_facet; - xmlSchemaTypePtr typeDecl; /* the schema type definition */ - int n_typeDecl; - xmlSchemaParserCtxtPtr pctxt; /* the schema parser context or NULL */ - int n_pctxt; - xmlChar * name; /* the optional name of the type */ - int n_name; - - for (n_facet = 0;n_facet < gen_nb_xmlSchemaFacetPtr;n_facet++) { - for (n_typeDecl = 0;n_typeDecl < gen_nb_xmlSchemaTypePtr;n_typeDecl++) { - for (n_pctxt = 0;n_pctxt < gen_nb_xmlSchemaParserCtxtPtr;n_pctxt++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - facet = gen_xmlSchemaFacetPtr(n_facet, 0); - typeDecl = gen_xmlSchemaTypePtr(n_typeDecl, 1); - pctxt = gen_xmlSchemaParserCtxtPtr(n_pctxt, 2); - name = gen_const_xmlChar_ptr(n_name, 3); - - ret_val = xmlSchemaCheckFacet(facet, typeDecl, pctxt, (const xmlChar *)name); - desret_int(ret_val); - call_tests++; - des_xmlSchemaFacetPtr(n_facet, facet, 0); - des_xmlSchemaTypePtr(n_typeDecl, typeDecl, 1); - des_xmlSchemaParserCtxtPtr(n_pctxt, pctxt, 2); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaCheckFacet", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_facet); - printf(" %d", n_typeDecl); - printf(" %d", n_pctxt); - printf(" %d", n_name); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaCleanupTypes(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - - - xmlSchemaCleanupTypes(); - call_tests++; - xmlResetLastError(); - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaCollapseString(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlChar * value; /* a value */ - int n_value; - - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - value = gen_const_xmlChar_ptr(n_value, 0); - - ret_val = xmlSchemaCollapseString((const xmlChar *)value); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaCollapseString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_value); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - -#ifdef LIBXML_SCHEMAS_ENABLED - -#define gen_nb_xmlSchemaValPtr 1 -static xmlSchemaValPtr gen_xmlSchemaValPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSchemaValPtr(int no ATTRIBUTE_UNUSED, xmlSchemaValPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlSchemaCompareValues(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaValPtr x; /* a first value */ - int n_x; - xmlSchemaValPtr y; /* a second value */ - int n_y; - - for (n_x = 0;n_x < gen_nb_xmlSchemaValPtr;n_x++) { - for (n_y = 0;n_y < gen_nb_xmlSchemaValPtr;n_y++) { - mem_base = xmlMemBlocks(); - x = gen_xmlSchemaValPtr(n_x, 0); - y = gen_xmlSchemaValPtr(n_y, 1); - - ret_val = xmlSchemaCompareValues(x, y); - desret_int(ret_val); - call_tests++; - des_xmlSchemaValPtr(n_x, x, 0); - des_xmlSchemaValPtr(n_y, y, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaCompareValues", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_x); - printf(" %d", n_y); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaCompareValuesWhtsp(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaValPtr x; /* a first value */ - int n_x; - xmlSchemaWhitespaceValueType xws; /* the whitespace value of x */ - int n_xws; - xmlSchemaValPtr y; /* a second value */ - int n_y; - xmlSchemaWhitespaceValueType yws; /* the whitespace value of y */ - int n_yws; - - for (n_x = 0;n_x < gen_nb_xmlSchemaValPtr;n_x++) { - for (n_xws = 0;n_xws < gen_nb_xmlSchemaWhitespaceValueType;n_xws++) { - for (n_y = 0;n_y < gen_nb_xmlSchemaValPtr;n_y++) { - for (n_yws = 0;n_yws < gen_nb_xmlSchemaWhitespaceValueType;n_yws++) { - mem_base = xmlMemBlocks(); - x = gen_xmlSchemaValPtr(n_x, 0); - xws = gen_xmlSchemaWhitespaceValueType(n_xws, 1); - y = gen_xmlSchemaValPtr(n_y, 2); - yws = gen_xmlSchemaWhitespaceValueType(n_yws, 3); - - ret_val = xmlSchemaCompareValuesWhtsp(x, xws, y, yws); - desret_int(ret_val); - call_tests++; - des_xmlSchemaValPtr(n_x, x, 0); - des_xmlSchemaWhitespaceValueType(n_xws, xws, 1); - des_xmlSchemaValPtr(n_y, y, 2); - des_xmlSchemaWhitespaceValueType(n_yws, yws, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaCompareValuesWhtsp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_x); - printf(" %d", n_xws); - printf(" %d", n_y); - printf(" %d", n_yws); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaCopyValue(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSchemaGetBuiltInListSimpleTypeItemType(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - xmlSchemaTypePtr ret_val; - xmlSchemaTypePtr type; /* the built-in simple type. */ - int n_type; - - for (n_type = 0;n_type < gen_nb_xmlSchemaTypePtr;n_type++) { - mem_base = xmlMemBlocks(); - type = gen_xmlSchemaTypePtr(n_type, 0); - - ret_val = xmlSchemaGetBuiltInListSimpleTypeItemType(type); - desret_xmlSchemaTypePtr(ret_val); - call_tests++; - des_xmlSchemaTypePtr(n_type, type, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaGetBuiltInListSimpleTypeItemType", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_type); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaGetBuiltInType(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - xmlSchemaTypePtr ret_val; - xmlSchemaValType type; /* the type of the built in type */ - int n_type; - - for (n_type = 0;n_type < gen_nb_xmlSchemaValType;n_type++) { - type = gen_xmlSchemaValType(n_type, 0); - - ret_val = xmlSchemaGetBuiltInType(type); - desret_xmlSchemaTypePtr(ret_val); - call_tests++; - des_xmlSchemaValType(n_type, type, 0); - xmlResetLastError(); - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaGetCanonValue(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaValPtr val; /* the precomputed value */ - int n_val; - xmlChar ** retValue; /* the returned value */ - int n_retValue; - - for (n_val = 0;n_val < gen_nb_xmlSchemaValPtr;n_val++) { - for (n_retValue = 0;n_retValue < gen_nb_const_xmlChar_ptr_ptr;n_retValue++) { - mem_base = xmlMemBlocks(); - val = gen_xmlSchemaValPtr(n_val, 0); - retValue = gen_const_xmlChar_ptr_ptr(n_retValue, 1); - - ret_val = xmlSchemaGetCanonValue(val, (const xmlChar **)retValue); - desret_int(ret_val); - call_tests++; - des_xmlSchemaValPtr(n_val, val, 0); - des_const_xmlChar_ptr_ptr(n_retValue, (const xmlChar **)retValue, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaGetCanonValue", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf(" %d", n_retValue); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaGetCanonValueWhtsp(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaValPtr val; /* the precomputed value */ - int n_val; - xmlChar ** retValue; /* the returned value */ - int n_retValue; - xmlSchemaWhitespaceValueType ws; /* the whitespace type of the value */ - int n_ws; - - for (n_val = 0;n_val < gen_nb_xmlSchemaValPtr;n_val++) { - for (n_retValue = 0;n_retValue < gen_nb_const_xmlChar_ptr_ptr;n_retValue++) { - for (n_ws = 0;n_ws < gen_nb_xmlSchemaWhitespaceValueType;n_ws++) { - mem_base = xmlMemBlocks(); - val = gen_xmlSchemaValPtr(n_val, 0); - retValue = gen_const_xmlChar_ptr_ptr(n_retValue, 1); - ws = gen_xmlSchemaWhitespaceValueType(n_ws, 2); - - ret_val = xmlSchemaGetCanonValueWhtsp(val, (const xmlChar **)retValue, ws); - desret_int(ret_val); - call_tests++; - des_xmlSchemaValPtr(n_val, val, 0); - des_const_xmlChar_ptr_ptr(n_retValue, (const xmlChar **)retValue, 1); - des_xmlSchemaWhitespaceValueType(n_ws, ws, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaGetCanonValueWhtsp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf(" %d", n_retValue); - printf(" %d", n_ws); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaGetFacetValueAsULong(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - unsigned long ret_val; - xmlSchemaFacetPtr facet; /* an schemas type facet */ - int n_facet; - - for (n_facet = 0;n_facet < gen_nb_xmlSchemaFacetPtr;n_facet++) { - mem_base = xmlMemBlocks(); - facet = gen_xmlSchemaFacetPtr(n_facet, 0); - - ret_val = xmlSchemaGetFacetValueAsULong(facet); - desret_unsigned_long(ret_val); - call_tests++; - des_xmlSchemaFacetPtr(n_facet, facet, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaGetFacetValueAsULong", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_facet); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaGetPredefinedType(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - xmlSchemaTypePtr ret_val; - xmlChar * name; /* the type name */ - int n_name; - xmlChar * ns; /* the URI of the namespace usually "http://www.w3.org/2001/XMLSchema" */ - int n_ns; - - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_ns = 0;n_ns < gen_nb_const_xmlChar_ptr;n_ns++) { - mem_base = xmlMemBlocks(); - name = gen_const_xmlChar_ptr(n_name, 0); - ns = gen_const_xmlChar_ptr(n_ns, 1); - - ret_val = xmlSchemaGetPredefinedType((const xmlChar *)name, (const xmlChar *)ns); - desret_xmlSchemaTypePtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 0); - des_const_xmlChar_ptr(n_ns, (const xmlChar *)ns, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaGetPredefinedType", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_name); - printf(" %d", n_ns); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaGetValType(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - xmlSchemaValType ret_val; - xmlSchemaValPtr val; /* a schemas value */ - int n_val; - - for (n_val = 0;n_val < gen_nb_xmlSchemaValPtr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_xmlSchemaValPtr(n_val, 0); - - ret_val = xmlSchemaGetValType(val); - desret_xmlSchemaValType(ret_val); - call_tests++; - des_xmlSchemaValPtr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaGetValType", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaInitTypes(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - - - xmlSchemaInitTypes(); - call_tests++; - xmlResetLastError(); - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaIsBuiltInTypeFacet(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaTypePtr type; /* the built-in type */ - int n_type; - int facetType; /* the facet type */ - int n_facetType; - - for (n_type = 0;n_type < gen_nb_xmlSchemaTypePtr;n_type++) { - for (n_facetType = 0;n_facetType < gen_nb_int;n_facetType++) { - mem_base = xmlMemBlocks(); - type = gen_xmlSchemaTypePtr(n_type, 0); - facetType = gen_int(n_facetType, 1); - - ret_val = xmlSchemaIsBuiltInTypeFacet(type, facetType); - desret_int(ret_val); - call_tests++; - des_xmlSchemaTypePtr(n_type, type, 0); - des_int(n_facetType, facetType, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaIsBuiltInTypeFacet", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_type); - printf(" %d", n_facetType); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaNewFacet(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSchemaNewNOTATIONValue(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSchemaNewQNameValue(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSchemaNewStringValue(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - -#ifdef LIBXML_SCHEMAS_ENABLED - -#define gen_nb_xmlSchemaValPtr_ptr 1 -static xmlSchemaValPtr * gen_xmlSchemaValPtr_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlSchemaValPtr_ptr(int no ATTRIBUTE_UNUSED, xmlSchemaValPtr * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlSchemaValPredefTypeNode(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaTypePtr type; /* the predefined type */ - int n_type; - xmlChar * value; /* the value to check */ - int n_value; - xmlSchemaValPtr * val; /* the return computed value */ - int n_val; - xmlNodePtr node; /* the node containing the value */ - int n_node; - - for (n_type = 0;n_type < gen_nb_xmlSchemaTypePtr;n_type++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - for (n_val = 0;n_val < gen_nb_xmlSchemaValPtr_ptr;n_val++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - type = gen_xmlSchemaTypePtr(n_type, 0); - value = gen_const_xmlChar_ptr(n_value, 1); - val = gen_xmlSchemaValPtr_ptr(n_val, 2); - node = gen_xmlNodePtr(n_node, 3); - - ret_val = xmlSchemaValPredefTypeNode(type, (const xmlChar *)value, val, node); - desret_int(ret_val); - call_tests++; - des_xmlSchemaTypePtr(n_type, type, 0); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 1); - des_xmlSchemaValPtr_ptr(n_val, val, 2); - des_xmlNodePtr(n_node, node, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaValPredefTypeNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_type); - printf(" %d", n_value); - printf(" %d", n_val); - printf(" %d", n_node); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaValPredefTypeNodeNoNorm(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaTypePtr type; /* the predefined type */ - int n_type; - xmlChar * value; /* the value to check */ - int n_value; - xmlSchemaValPtr * val; /* the return computed value */ - int n_val; - xmlNodePtr node; /* the node containing the value */ - int n_node; - - for (n_type = 0;n_type < gen_nb_xmlSchemaTypePtr;n_type++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - for (n_val = 0;n_val < gen_nb_xmlSchemaValPtr_ptr;n_val++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - type = gen_xmlSchemaTypePtr(n_type, 0); - value = gen_const_xmlChar_ptr(n_value, 1); - val = gen_xmlSchemaValPtr_ptr(n_val, 2); - node = gen_xmlNodePtr(n_node, 3); - - ret_val = xmlSchemaValPredefTypeNodeNoNorm(type, (const xmlChar *)value, val, node); - desret_int(ret_val); - call_tests++; - des_xmlSchemaTypePtr(n_type, type, 0); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 1); - des_xmlSchemaValPtr_ptr(n_val, val, 2); - des_xmlNodePtr(n_node, node, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaValPredefTypeNodeNoNorm", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_type); - printf(" %d", n_value); - printf(" %d", n_val); - printf(" %d", n_node); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaValidateFacet(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaTypePtr base; /* the base type */ - int n_base; - xmlSchemaFacetPtr facet; /* the facet to check */ - int n_facet; - xmlChar * value; /* the lexical repr of the value to validate */ - int n_value; - xmlSchemaValPtr val; /* the precomputed value */ - int n_val; - - for (n_base = 0;n_base < gen_nb_xmlSchemaTypePtr;n_base++) { - for (n_facet = 0;n_facet < gen_nb_xmlSchemaFacetPtr;n_facet++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - for (n_val = 0;n_val < gen_nb_xmlSchemaValPtr;n_val++) { - mem_base = xmlMemBlocks(); - base = gen_xmlSchemaTypePtr(n_base, 0); - facet = gen_xmlSchemaFacetPtr(n_facet, 1); - value = gen_const_xmlChar_ptr(n_value, 2); - val = gen_xmlSchemaValPtr(n_val, 3); - - ret_val = xmlSchemaValidateFacet(base, facet, (const xmlChar *)value, val); - desret_int(ret_val); - call_tests++; - des_xmlSchemaTypePtr(n_base, base, 0); - des_xmlSchemaFacetPtr(n_facet, facet, 1); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 2); - des_xmlSchemaValPtr(n_val, val, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaValidateFacet", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_base); - printf(" %d", n_facet); - printf(" %d", n_value); - printf(" %d", n_val); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaValidateFacetWhtsp(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaFacetPtr facet; /* the facet to check */ - int n_facet; - xmlSchemaWhitespaceValueType fws; /* the whitespace type of the facet's value */ - int n_fws; - xmlSchemaValType valType; /* the built-in type of the value */ - int n_valType; - xmlChar * value; /* the lexical (or normalized for pattern) repr of the value to validate */ - int n_value; - xmlSchemaValPtr val; /* the precomputed value */ - int n_val; - xmlSchemaWhitespaceValueType ws; /* the whitespace type of the value */ - int n_ws; - - for (n_facet = 0;n_facet < gen_nb_xmlSchemaFacetPtr;n_facet++) { - for (n_fws = 0;n_fws < gen_nb_xmlSchemaWhitespaceValueType;n_fws++) { - for (n_valType = 0;n_valType < gen_nb_xmlSchemaValType;n_valType++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - for (n_val = 0;n_val < gen_nb_xmlSchemaValPtr;n_val++) { - for (n_ws = 0;n_ws < gen_nb_xmlSchemaWhitespaceValueType;n_ws++) { - mem_base = xmlMemBlocks(); - facet = gen_xmlSchemaFacetPtr(n_facet, 0); - fws = gen_xmlSchemaWhitespaceValueType(n_fws, 1); - valType = gen_xmlSchemaValType(n_valType, 2); - value = gen_const_xmlChar_ptr(n_value, 3); - val = gen_xmlSchemaValPtr(n_val, 4); - ws = gen_xmlSchemaWhitespaceValueType(n_ws, 5); - - ret_val = xmlSchemaValidateFacetWhtsp(facet, fws, valType, (const xmlChar *)value, val, ws); - desret_int(ret_val); - call_tests++; - des_xmlSchemaFacetPtr(n_facet, facet, 0); - des_xmlSchemaWhitespaceValueType(n_fws, fws, 1); - des_xmlSchemaValType(n_valType, valType, 2); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 3); - des_xmlSchemaValPtr(n_val, val, 4); - des_xmlSchemaWhitespaceValueType(n_ws, ws, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaValidateFacetWhtsp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_facet); - printf(" %d", n_fws); - printf(" %d", n_valType); - printf(" %d", n_value); - printf(" %d", n_val); - printf(" %d", n_ws); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaValidateLengthFacet(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaTypePtr type; /* the built-in type */ - int n_type; - xmlSchemaFacetPtr facet; /* the facet to check */ - int n_facet; - xmlChar * value; /* the lexical repr. of the value to be validated */ - int n_value; - xmlSchemaValPtr val; /* the precomputed value */ - int n_val; - unsigned long * length; /* the actual length of the value */ - int n_length; - - for (n_type = 0;n_type < gen_nb_xmlSchemaTypePtr;n_type++) { - for (n_facet = 0;n_facet < gen_nb_xmlSchemaFacetPtr;n_facet++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - for (n_val = 0;n_val < gen_nb_xmlSchemaValPtr;n_val++) { - for (n_length = 0;n_length < gen_nb_unsigned_long_ptr;n_length++) { - mem_base = xmlMemBlocks(); - type = gen_xmlSchemaTypePtr(n_type, 0); - facet = gen_xmlSchemaFacetPtr(n_facet, 1); - value = gen_const_xmlChar_ptr(n_value, 2); - val = gen_xmlSchemaValPtr(n_val, 3); - length = gen_unsigned_long_ptr(n_length, 4); - - ret_val = xmlSchemaValidateLengthFacet(type, facet, (const xmlChar *)value, val, length); - desret_int(ret_val); - call_tests++; - des_xmlSchemaTypePtr(n_type, type, 0); - des_xmlSchemaFacetPtr(n_facet, facet, 1); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 2); - des_xmlSchemaValPtr(n_val, val, 3); - des_unsigned_long_ptr(n_length, length, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaValidateLengthFacet", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_type); - printf(" %d", n_facet); - printf(" %d", n_value); - printf(" %d", n_val); - printf(" %d", n_length); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaValidateLengthFacetWhtsp(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaFacetPtr facet; /* the facet to check */ - int n_facet; - xmlSchemaValType valType; /* the built-in type */ - int n_valType; - xmlChar * value; /* the lexical repr. of the value to be validated */ - int n_value; - xmlSchemaValPtr val; /* the precomputed value */ - int n_val; - unsigned long * length; /* the actual length of the value */ - int n_length; - xmlSchemaWhitespaceValueType ws; /* the whitespace type of the value */ - int n_ws; - - for (n_facet = 0;n_facet < gen_nb_xmlSchemaFacetPtr;n_facet++) { - for (n_valType = 0;n_valType < gen_nb_xmlSchemaValType;n_valType++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - for (n_val = 0;n_val < gen_nb_xmlSchemaValPtr;n_val++) { - for (n_length = 0;n_length < gen_nb_unsigned_long_ptr;n_length++) { - for (n_ws = 0;n_ws < gen_nb_xmlSchemaWhitespaceValueType;n_ws++) { - mem_base = xmlMemBlocks(); - facet = gen_xmlSchemaFacetPtr(n_facet, 0); - valType = gen_xmlSchemaValType(n_valType, 1); - value = gen_const_xmlChar_ptr(n_value, 2); - val = gen_xmlSchemaValPtr(n_val, 3); - length = gen_unsigned_long_ptr(n_length, 4); - ws = gen_xmlSchemaWhitespaceValueType(n_ws, 5); - - ret_val = xmlSchemaValidateLengthFacetWhtsp(facet, valType, (const xmlChar *)value, val, length, ws); - desret_int(ret_val); - call_tests++; - des_xmlSchemaFacetPtr(n_facet, facet, 0); - des_xmlSchemaValType(n_valType, valType, 1); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 2); - des_xmlSchemaValPtr(n_val, val, 3); - des_unsigned_long_ptr(n_length, length, 4); - des_xmlSchemaWhitespaceValueType(n_ws, ws, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaValidateLengthFacetWhtsp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_facet); - printf(" %d", n_valType); - printf(" %d", n_value); - printf(" %d", n_val); - printf(" %d", n_length); - printf(" %d", n_ws); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaValidateListSimpleTypeFacet(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaFacetPtr facet; /* the facet to check */ - int n_facet; - xmlChar * value; /* the lexical repr of the value to validate */ - int n_value; - unsigned long actualLen; /* the number of list items */ - int n_actualLen; - unsigned long * expectedLen; /* the resulting expected number of list items */ - int n_expectedLen; - - for (n_facet = 0;n_facet < gen_nb_xmlSchemaFacetPtr;n_facet++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - for (n_actualLen = 0;n_actualLen < gen_nb_unsigned_long;n_actualLen++) { - for (n_expectedLen = 0;n_expectedLen < gen_nb_unsigned_long_ptr;n_expectedLen++) { - mem_base = xmlMemBlocks(); - facet = gen_xmlSchemaFacetPtr(n_facet, 0); - value = gen_const_xmlChar_ptr(n_value, 1); - actualLen = gen_unsigned_long(n_actualLen, 2); - expectedLen = gen_unsigned_long_ptr(n_expectedLen, 3); - - ret_val = xmlSchemaValidateListSimpleTypeFacet(facet, (const xmlChar *)value, actualLen, expectedLen); - desret_int(ret_val); - call_tests++; - des_xmlSchemaFacetPtr(n_facet, facet, 0); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 1); - des_unsigned_long(n_actualLen, actualLen, 2); - des_unsigned_long_ptr(n_expectedLen, expectedLen, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaValidateListSimpleTypeFacet", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_facet); - printf(" %d", n_value); - printf(" %d", n_actualLen); - printf(" %d", n_expectedLen); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaValidatePredefinedType(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaTypePtr type; /* the predefined type */ - int n_type; - xmlChar * value; /* the value to check */ - int n_value; - xmlSchemaValPtr * val; /* the return computed value */ - int n_val; - - for (n_type = 0;n_type < gen_nb_xmlSchemaTypePtr;n_type++) { - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - for (n_val = 0;n_val < gen_nb_xmlSchemaValPtr_ptr;n_val++) { - mem_base = xmlMemBlocks(); - type = gen_xmlSchemaTypePtr(n_type, 0); - value = gen_const_xmlChar_ptr(n_value, 1); - val = gen_xmlSchemaValPtr_ptr(n_val, 2); - - ret_val = xmlSchemaValidatePredefinedType(type, (const xmlChar *)value, val); - desret_int(ret_val); - call_tests++; - des_xmlSchemaTypePtr(n_type, type, 0); - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 1); - des_xmlSchemaValPtr_ptr(n_val, val, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaValidatePredefinedType", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_type); - printf(" %d", n_value); - printf(" %d", n_val); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaValueAppend(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaValPtr prev; /* the value */ - int n_prev; - xmlSchemaValPtr cur; /* the value to be appended */ - int n_cur; - - for (n_prev = 0;n_prev < gen_nb_xmlSchemaValPtr;n_prev++) { - for (n_cur = 0;n_cur < gen_nb_xmlSchemaValPtr;n_cur++) { - mem_base = xmlMemBlocks(); - prev = gen_xmlSchemaValPtr(n_prev, 0); - cur = gen_xmlSchemaValPtr(n_cur, 1); - - ret_val = xmlSchemaValueAppend(prev, cur); - desret_int(ret_val); - call_tests++; - des_xmlSchemaValPtr(n_prev, prev, 0); - des_xmlSchemaValPtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaValueAppend", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_prev); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaValueGetAsBoolean(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - xmlSchemaValPtr val; /* the value */ - int n_val; - - for (n_val = 0;n_val < gen_nb_xmlSchemaValPtr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_xmlSchemaValPtr(n_val, 0); - - ret_val = xmlSchemaValueGetAsBoolean(val); - desret_int(ret_val); - call_tests++; - des_xmlSchemaValPtr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaValueGetAsBoolean", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaValueGetAsString(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - const xmlChar * ret_val; - xmlSchemaValPtr val; /* the value */ - int n_val; - - for (n_val = 0;n_val < gen_nb_xmlSchemaValPtr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_xmlSchemaValPtr(n_val, 0); - - ret_val = xmlSchemaValueGetAsString(val); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_xmlSchemaValPtr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaValueGetAsString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlSchemaValueGetNext(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlSchemaWhiteSpaceReplace(void) { - int test_ret = 0; - -#if defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlChar * value; /* a value */ - int n_value; - - for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { - mem_base = xmlMemBlocks(); - value = gen_const_xmlChar_ptr(n_value, 0); - - ret_val = xmlSchemaWhiteSpaceReplace((const xmlChar *)value); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlSchemaWhiteSpaceReplace", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_value); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_xmlschemastypes(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing xmlschemastypes : 26 of 34 functions ...\n"); - test_ret += test_xmlSchemaCheckFacet(); - test_ret += test_xmlSchemaCleanupTypes(); - test_ret += test_xmlSchemaCollapseString(); - test_ret += test_xmlSchemaCompareValues(); - test_ret += test_xmlSchemaCompareValuesWhtsp(); - test_ret += test_xmlSchemaCopyValue(); - test_ret += test_xmlSchemaGetBuiltInListSimpleTypeItemType(); - test_ret += test_xmlSchemaGetBuiltInType(); - test_ret += test_xmlSchemaGetCanonValue(); - test_ret += test_xmlSchemaGetCanonValueWhtsp(); - test_ret += test_xmlSchemaGetFacetValueAsULong(); - test_ret += test_xmlSchemaGetPredefinedType(); - test_ret += test_xmlSchemaGetValType(); - test_ret += test_xmlSchemaInitTypes(); - test_ret += test_xmlSchemaIsBuiltInTypeFacet(); - test_ret += test_xmlSchemaNewFacet(); - test_ret += test_xmlSchemaNewNOTATIONValue(); - test_ret += test_xmlSchemaNewQNameValue(); - test_ret += test_xmlSchemaNewStringValue(); - test_ret += test_xmlSchemaValPredefTypeNode(); - test_ret += test_xmlSchemaValPredefTypeNodeNoNorm(); - test_ret += test_xmlSchemaValidateFacet(); - test_ret += test_xmlSchemaValidateFacetWhtsp(); - test_ret += test_xmlSchemaValidateLengthFacet(); - test_ret += test_xmlSchemaValidateLengthFacetWhtsp(); - test_ret += test_xmlSchemaValidateListSimpleTypeFacet(); - test_ret += test_xmlSchemaValidatePredefinedType(); - test_ret += test_xmlSchemaValueAppend(); - test_ret += test_xmlSchemaValueGetAsBoolean(); - test_ret += test_xmlSchemaValueGetAsString(); - test_ret += test_xmlSchemaValueGetNext(); - test_ret += test_xmlSchemaWhiteSpaceReplace(); - - if (test_ret != 0) - printf("Module xmlschemastypes: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlCharStrdup(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - char * cur; /* the input char * */ - int n_cur; - - for (n_cur = 0;n_cur < gen_nb_const_char_ptr;n_cur++) { - mem_base = xmlMemBlocks(); - cur = gen_const_char_ptr(n_cur, 0); - - ret_val = xmlCharStrdup((const char *)cur); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_char_ptr(n_cur, (const char *)cur, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCharStrdup", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCharStrndup(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - char * cur; /* the input char * */ - int n_cur; - int len; /* the len of @cur */ - int n_len; - - for (n_cur = 0;n_cur < gen_nb_const_char_ptr;n_cur++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - cur = gen_const_char_ptr(n_cur, 0); - len = gen_int(n_len, 1); - - ret_val = xmlCharStrndup((const char *)cur, len); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_char_ptr(n_cur, (const char *)cur, 0); - des_int(n_len, len, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCharStrndup", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_len); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlCheckUTF8(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - unsigned char * utf; /* Pointer to putative UTF-8 encoded string. */ - int n_utf; - - for (n_utf = 0;n_utf < gen_nb_const_unsigned_char_ptr;n_utf++) { - mem_base = xmlMemBlocks(); - utf = gen_const_unsigned_char_ptr(n_utf, 0); - - ret_val = xmlCheckUTF8((const unsigned char *)utf); - desret_int(ret_val); - call_tests++; - des_const_unsigned_char_ptr(n_utf, (const unsigned char *)utf, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlCheckUTF8", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_utf); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlGetUTF8Char(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - unsigned char * utf; /* a sequence of UTF-8 encoded bytes */ - int n_utf; - int * len; /* a pointer to the minimum number of bytes present in the sequence. This is used to assure the next character is completely contained within the sequence. */ - int n_len; - - for (n_utf = 0;n_utf < gen_nb_const_unsigned_char_ptr;n_utf++) { - for (n_len = 0;n_len < gen_nb_int_ptr;n_len++) { - mem_base = xmlMemBlocks(); - utf = gen_const_unsigned_char_ptr(n_utf, 0); - len = gen_int_ptr(n_len, 1); - - ret_val = xmlGetUTF8Char((const unsigned char *)utf, len); - desret_int(ret_val); - call_tests++; - des_const_unsigned_char_ptr(n_utf, (const unsigned char *)utf, 0); - des_int_ptr(n_len, len, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlGetUTF8Char", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_utf); - printf(" %d", n_len); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStrEqual(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlChar * str1; /* the first xmlChar * */ - int n_str1; - xmlChar * str2; /* the second xmlChar * */ - int n_str2; - - for (n_str1 = 0;n_str1 < gen_nb_const_xmlChar_ptr;n_str1++) { - for (n_str2 = 0;n_str2 < gen_nb_const_xmlChar_ptr;n_str2++) { - mem_base = xmlMemBlocks(); - str1 = gen_const_xmlChar_ptr(n_str1, 0); - str2 = gen_const_xmlChar_ptr(n_str2, 1); - - ret_val = xmlStrEqual((const xmlChar *)str1, (const xmlChar *)str2); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str1, (const xmlChar *)str1, 0); - des_const_xmlChar_ptr(n_str2, (const xmlChar *)str2, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStrEqual", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str1); - printf(" %d", n_str2); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStrPrintf(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlStrQEqual(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlChar * pref; /* the prefix of the QName */ - int n_pref; - xmlChar * name; /* the localname of the QName */ - int n_name; - xmlChar * str; /* the second xmlChar * */ - int n_str; - - for (n_pref = 0;n_pref < gen_nb_const_xmlChar_ptr;n_pref++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - mem_base = xmlMemBlocks(); - pref = gen_const_xmlChar_ptr(n_pref, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - str = gen_const_xmlChar_ptr(n_str, 2); - - ret_val = xmlStrQEqual((const xmlChar *)pref, (const xmlChar *)name, (const xmlChar *)str); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_pref, (const xmlChar *)pref, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStrQEqual", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_pref); - printf(" %d", n_name); - printf(" %d", n_str); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStrVPrintf(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlStrcasecmp(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlChar * str1; /* the first xmlChar * */ - int n_str1; - xmlChar * str2; /* the second xmlChar * */ - int n_str2; - - for (n_str1 = 0;n_str1 < gen_nb_const_xmlChar_ptr;n_str1++) { - for (n_str2 = 0;n_str2 < gen_nb_const_xmlChar_ptr;n_str2++) { - mem_base = xmlMemBlocks(); - str1 = gen_const_xmlChar_ptr(n_str1, 0); - str2 = gen_const_xmlChar_ptr(n_str2, 1); - - ret_val = xmlStrcasecmp((const xmlChar *)str1, (const xmlChar *)str2); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str1, (const xmlChar *)str1, 0); - des_const_xmlChar_ptr(n_str2, (const xmlChar *)str2, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStrcasecmp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str1); - printf(" %d", n_str2); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStrcasestr(void) { - int test_ret = 0; - - int mem_base; - const xmlChar * ret_val; - xmlChar * str; /* the xmlChar * array (haystack) */ - int n_str; - xmlChar * val; /* the xmlChar to search (needle) */ - int n_val; - - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - for (n_val = 0;n_val < gen_nb_xmlChar_ptr;n_val++) { - mem_base = xmlMemBlocks(); - str = gen_const_xmlChar_ptr(n_str, 0); - val = gen_xmlChar_ptr(n_val, 1); - - ret_val = xmlStrcasestr((const xmlChar *)str, val); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 0); - des_xmlChar_ptr(n_val, val, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStrcasestr", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str); - printf(" %d", n_val); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStrchr(void) { - int test_ret = 0; - - int mem_base; - const xmlChar * ret_val; - xmlChar * str; /* the xmlChar * array */ - int n_str; - xmlChar val; /* the xmlChar to search */ - int n_val; - - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - for (n_val = 0;n_val < gen_nb_xmlChar;n_val++) { - mem_base = xmlMemBlocks(); - str = gen_const_xmlChar_ptr(n_str, 0); - val = gen_xmlChar(n_val, 1); - - ret_val = xmlStrchr((const xmlChar *)str, val); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 0); - des_xmlChar(n_val, val, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStrchr", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str); - printf(" %d", n_val); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStrcmp(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlChar * str1; /* the first xmlChar * */ - int n_str1; - xmlChar * str2; /* the second xmlChar * */ - int n_str2; - - for (n_str1 = 0;n_str1 < gen_nb_const_xmlChar_ptr;n_str1++) { - for (n_str2 = 0;n_str2 < gen_nb_const_xmlChar_ptr;n_str2++) { - mem_base = xmlMemBlocks(); - str1 = gen_const_xmlChar_ptr(n_str1, 0); - str2 = gen_const_xmlChar_ptr(n_str2, 1); - - ret_val = xmlStrcmp((const xmlChar *)str1, (const xmlChar *)str2); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str1, (const xmlChar *)str1, 0); - des_const_xmlChar_ptr(n_str2, (const xmlChar *)str2, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStrcmp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str1); - printf(" %d", n_str2); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStrdup(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlChar * cur; /* the input xmlChar * */ - int n_cur; - - for (n_cur = 0;n_cur < gen_nb_const_xmlChar_ptr;n_cur++) { - mem_base = xmlMemBlocks(); - cur = gen_const_xmlChar_ptr(n_cur, 0); - - ret_val = xmlStrdup((const xmlChar *)cur); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_cur, (const xmlChar *)cur, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStrdup", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStrlen(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlChar * str; /* the xmlChar * array */ - int n_str; - - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - mem_base = xmlMemBlocks(); - str = gen_const_xmlChar_ptr(n_str, 0); - - ret_val = xmlStrlen((const xmlChar *)str); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStrlen", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStrncasecmp(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlChar * str1; /* the first xmlChar * */ - int n_str1; - xmlChar * str2; /* the second xmlChar * */ - int n_str2; - int len; /* the max comparison length */ - int n_len; - - for (n_str1 = 0;n_str1 < gen_nb_const_xmlChar_ptr;n_str1++) { - for (n_str2 = 0;n_str2 < gen_nb_const_xmlChar_ptr;n_str2++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - str1 = gen_const_xmlChar_ptr(n_str1, 0); - str2 = gen_const_xmlChar_ptr(n_str2, 1); - len = gen_int(n_len, 2); - - ret_val = xmlStrncasecmp((const xmlChar *)str1, (const xmlChar *)str2, len); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str1, (const xmlChar *)str1, 0); - des_const_xmlChar_ptr(n_str2, (const xmlChar *)str2, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStrncasecmp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str1); - printf(" %d", n_str2); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStrncatNew(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlChar * str1; /* first xmlChar string */ - int n_str1; - xmlChar * str2; /* second xmlChar string */ - int n_str2; - int len; /* the len of @str2 or < 0 */ - int n_len; - - for (n_str1 = 0;n_str1 < gen_nb_const_xmlChar_ptr;n_str1++) { - for (n_str2 = 0;n_str2 < gen_nb_const_xmlChar_ptr;n_str2++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - str1 = gen_const_xmlChar_ptr(n_str1, 0); - str2 = gen_const_xmlChar_ptr(n_str2, 1); - len = gen_int(n_len, 2); - - ret_val = xmlStrncatNew((const xmlChar *)str1, (const xmlChar *)str2, len); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str1, (const xmlChar *)str1, 0); - des_const_xmlChar_ptr(n_str2, (const xmlChar *)str2, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStrncatNew", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str1); - printf(" %d", n_str2); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStrncmp(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlChar * str1; /* the first xmlChar * */ - int n_str1; - xmlChar * str2; /* the second xmlChar * */ - int n_str2; - int len; /* the max comparison length */ - int n_len; - - for (n_str1 = 0;n_str1 < gen_nb_const_xmlChar_ptr;n_str1++) { - for (n_str2 = 0;n_str2 < gen_nb_const_xmlChar_ptr;n_str2++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - str1 = gen_const_xmlChar_ptr(n_str1, 0); - str2 = gen_const_xmlChar_ptr(n_str2, 1); - len = gen_int(n_len, 2); - - ret_val = xmlStrncmp((const xmlChar *)str1, (const xmlChar *)str2, len); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str1, (const xmlChar *)str1, 0); - des_const_xmlChar_ptr(n_str2, (const xmlChar *)str2, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStrncmp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str1); - printf(" %d", n_str2); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStrndup(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlChar * cur; /* the input xmlChar * */ - int n_cur; - int len; /* the len of @cur */ - int n_len; - - for (n_cur = 0;n_cur < gen_nb_const_xmlChar_ptr;n_cur++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - cur = gen_const_xmlChar_ptr(n_cur, 0); - len = gen_int(n_len, 1); - - ret_val = xmlStrndup((const xmlChar *)cur, len); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_cur, (const xmlChar *)cur, 0); - des_int(n_len, len, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStrndup", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_len); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStrstr(void) { - int test_ret = 0; - - int mem_base; - const xmlChar * ret_val; - xmlChar * str; /* the xmlChar * array (haystack) */ - int n_str; - xmlChar * val; /* the xmlChar to search (needle) */ - int n_val; - - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - for (n_val = 0;n_val < gen_nb_const_xmlChar_ptr;n_val++) { - mem_base = xmlMemBlocks(); - str = gen_const_xmlChar_ptr(n_str, 0); - val = gen_const_xmlChar_ptr(n_val, 1); - - ret_val = xmlStrstr((const xmlChar *)str, (const xmlChar *)val); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 0); - des_const_xmlChar_ptr(n_val, (const xmlChar *)val, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStrstr", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str); - printf(" %d", n_val); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlStrsub(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlChar * str; /* the xmlChar * array (haystack) */ - int n_str; - int start; /* the index of the first char (zero based) */ - int n_start; - int len; /* the length of the substring */ - int n_len; - - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - for (n_start = 0;n_start < gen_nb_int;n_start++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - str = gen_const_xmlChar_ptr(n_str, 0); - start = gen_int(n_start, 1); - len = gen_int(n_len, 2); - - ret_val = xmlStrsub((const xmlChar *)str, start, len); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 0); - des_int(n_start, start, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlStrsub", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str); - printf(" %d", n_start); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlUTF8Charcmp(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlChar * utf1; /* pointer to first UTF8 char */ - int n_utf1; - xmlChar * utf2; /* pointer to second UTF8 char */ - int n_utf2; - - for (n_utf1 = 0;n_utf1 < gen_nb_const_xmlChar_ptr;n_utf1++) { - for (n_utf2 = 0;n_utf2 < gen_nb_const_xmlChar_ptr;n_utf2++) { - mem_base = xmlMemBlocks(); - utf1 = gen_const_xmlChar_ptr(n_utf1, 0); - utf2 = gen_const_xmlChar_ptr(n_utf2, 1); - - ret_val = xmlUTF8Charcmp((const xmlChar *)utf1, (const xmlChar *)utf2); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_utf1, (const xmlChar *)utf1, 0); - des_const_xmlChar_ptr(n_utf2, (const xmlChar *)utf2, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUTF8Charcmp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_utf1); - printf(" %d", n_utf2); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlUTF8Size(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlChar * utf; /* pointer to the UTF8 character */ - int n_utf; - - for (n_utf = 0;n_utf < gen_nb_const_xmlChar_ptr;n_utf++) { - mem_base = xmlMemBlocks(); - utf = gen_const_xmlChar_ptr(n_utf, 0); - - ret_val = xmlUTF8Size((const xmlChar *)utf); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_utf, (const xmlChar *)utf, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUTF8Size", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_utf); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlUTF8Strlen(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlChar * utf; /* a sequence of UTF-8 encoded bytes */ - int n_utf; - - for (n_utf = 0;n_utf < gen_nb_const_xmlChar_ptr;n_utf++) { - mem_base = xmlMemBlocks(); - utf = gen_const_xmlChar_ptr(n_utf, 0); - - ret_val = xmlUTF8Strlen((const xmlChar *)utf); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_utf, (const xmlChar *)utf, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUTF8Strlen", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_utf); - printf("\n"); - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlUTF8Strloc(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlChar * utf; /* the input UTF8 * */ - int n_utf; - xmlChar * utfchar; /* the UTF8 character to be found */ - int n_utfchar; - - for (n_utf = 0;n_utf < gen_nb_const_xmlChar_ptr;n_utf++) { - for (n_utfchar = 0;n_utfchar < gen_nb_const_xmlChar_ptr;n_utfchar++) { - mem_base = xmlMemBlocks(); - utf = gen_const_xmlChar_ptr(n_utf, 0); - utfchar = gen_const_xmlChar_ptr(n_utfchar, 1); - - ret_val = xmlUTF8Strloc((const xmlChar *)utf, (const xmlChar *)utfchar); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_utf, (const xmlChar *)utf, 0); - des_const_xmlChar_ptr(n_utfchar, (const xmlChar *)utfchar, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUTF8Strloc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_utf); - printf(" %d", n_utfchar); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlUTF8Strndup(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlChar * utf; /* the input UTF8 * */ - int n_utf; - int len; /* the len of @utf (in chars) */ - int n_len; - - for (n_utf = 0;n_utf < gen_nb_const_xmlChar_ptr;n_utf++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - utf = gen_const_xmlChar_ptr(n_utf, 0); - len = gen_int(n_len, 1); - - ret_val = xmlUTF8Strndup((const xmlChar *)utf, len); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_utf, (const xmlChar *)utf, 0); - des_int(n_len, len, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUTF8Strndup", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_utf); - printf(" %d", n_len); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlUTF8Strpos(void) { - int test_ret = 0; - - int mem_base; - const xmlChar * ret_val; - xmlChar * utf; /* the input UTF8 * */ - int n_utf; - int pos; /* the position of the desired UTF8 char (in chars) */ - int n_pos; - - for (n_utf = 0;n_utf < gen_nb_const_xmlChar_ptr;n_utf++) { - for (n_pos = 0;n_pos < gen_nb_int;n_pos++) { - mem_base = xmlMemBlocks(); - utf = gen_const_xmlChar_ptr(n_utf, 0); - pos = gen_int(n_pos, 1); - - ret_val = xmlUTF8Strpos((const xmlChar *)utf, pos); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_utf, (const xmlChar *)utf, 0); - des_int(n_pos, pos, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUTF8Strpos", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_utf); - printf(" %d", n_pos); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlUTF8Strsize(void) { - int test_ret = 0; - - int mem_base; - int ret_val; - xmlChar * utf; /* a sequence of UTF-8 encoded bytes */ - int n_utf; - int len; /* the number of characters in the array */ - int n_len; - - for (n_utf = 0;n_utf < gen_nb_const_xmlChar_ptr;n_utf++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - utf = gen_const_xmlChar_ptr(n_utf, 0); - len = gen_int(n_len, 1); - - ret_val = xmlUTF8Strsize((const xmlChar *)utf, len); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_utf, (const xmlChar *)utf, 0); - des_int(n_len, len, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUTF8Strsize", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_utf); - printf(" %d", n_len); - printf("\n"); - } - } - } - function_tests++; - - return(test_ret); -} - - -static int -test_xmlUTF8Strsub(void) { - int test_ret = 0; - - int mem_base; - xmlChar * ret_val; - xmlChar * utf; /* a sequence of UTF-8 encoded bytes */ - int n_utf; - int start; /* relative pos of first char */ - int n_start; - int len; /* total number to copy */ - int n_len; - - for (n_utf = 0;n_utf < gen_nb_const_xmlChar_ptr;n_utf++) { - for (n_start = 0;n_start < gen_nb_int;n_start++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - utf = gen_const_xmlChar_ptr(n_utf, 0); - start = gen_int(n_start, 1); - len = gen_int(n_len, 2); - - ret_val = xmlUTF8Strsub((const xmlChar *)utf, start, len); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_utf, (const xmlChar *)utf, 0); - des_int(n_start, start, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUTF8Strsub", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_utf); - printf(" %d", n_start); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; - - return(test_ret); -} - -static int -test_xmlstring(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing xmlstring : 26 of 30 functions ...\n"); - test_ret += test_xmlCharStrdup(); - test_ret += test_xmlCharStrndup(); - test_ret += test_xmlCheckUTF8(); - test_ret += test_xmlGetUTF8Char(); - test_ret += test_xmlStrEqual(); - test_ret += test_xmlStrPrintf(); - test_ret += test_xmlStrQEqual(); - test_ret += test_xmlStrVPrintf(); - test_ret += test_xmlStrcasecmp(); - test_ret += test_xmlStrcasestr(); - test_ret += test_xmlStrchr(); - test_ret += test_xmlStrcmp(); - test_ret += test_xmlStrdup(); - test_ret += test_xmlStrlen(); - test_ret += test_xmlStrncasecmp(); - test_ret += test_xmlStrncatNew(); - test_ret += test_xmlStrncmp(); - test_ret += test_xmlStrndup(); - test_ret += test_xmlStrstr(); - test_ret += test_xmlStrsub(); - test_ret += test_xmlUTF8Charcmp(); - test_ret += test_xmlUTF8Size(); - test_ret += test_xmlUTF8Strlen(); - test_ret += test_xmlUTF8Strloc(); - test_ret += test_xmlUTF8Strndup(); - test_ret += test_xmlUTF8Strpos(); - test_ret += test_xmlUTF8Strsize(); - test_ret += test_xmlUTF8Strsub(); - - if (test_ret != 0) - printf("Module xmlstring: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlUCSIsAegeanNumbers(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsAegeanNumbers(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsAegeanNumbers", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsAlphabeticPresentationForms(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsAlphabeticPresentationForms(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsAlphabeticPresentationForms", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsArabic(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsArabic(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsArabic", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsArabicPresentationFormsA(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsArabicPresentationFormsA(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsArabicPresentationFormsA", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsArabicPresentationFormsB(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsArabicPresentationFormsB(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsArabicPresentationFormsB", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsArmenian(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsArmenian(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsArmenian", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsArrows(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsArrows(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsArrows", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsBasicLatin(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsBasicLatin(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsBasicLatin", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsBengali(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsBengali(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsBengali", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsBlock(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - char * block; /* UCS block name */ - int n_block; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - for (n_block = 0;n_block < gen_nb_const_char_ptr;n_block++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - block = gen_const_char_ptr(n_block, 1); - - ret_val = xmlUCSIsBlock(code, (const char *)block); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - des_const_char_ptr(n_block, (const char *)block, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsBlock", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf(" %d", n_block); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsBlockElements(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsBlockElements(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsBlockElements", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsBopomofo(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsBopomofo(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsBopomofo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsBopomofoExtended(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsBopomofoExtended(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsBopomofoExtended", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsBoxDrawing(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsBoxDrawing(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsBoxDrawing", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsBraillePatterns(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsBraillePatterns(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsBraillePatterns", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsBuhid(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsBuhid(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsBuhid", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsByzantineMusicalSymbols(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsByzantineMusicalSymbols(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsByzantineMusicalSymbols", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCJKCompatibility(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCJKCompatibility(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCJKCompatibility", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCJKCompatibilityForms(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCJKCompatibilityForms(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCJKCompatibilityForms", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCJKCompatibilityIdeographs(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCJKCompatibilityIdeographs(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCJKCompatibilityIdeographs", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCJKCompatibilityIdeographsSupplement(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCJKCompatibilityIdeographsSupplement(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCJKCompatibilityIdeographsSupplement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCJKRadicalsSupplement(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCJKRadicalsSupplement(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCJKRadicalsSupplement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCJKSymbolsandPunctuation(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCJKSymbolsandPunctuation(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCJKSymbolsandPunctuation", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCJKUnifiedIdeographs(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCJKUnifiedIdeographs(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCJKUnifiedIdeographs", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCJKUnifiedIdeographsExtensionA(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCJKUnifiedIdeographsExtensionA(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCJKUnifiedIdeographsExtensionA", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCJKUnifiedIdeographsExtensionB(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCJKUnifiedIdeographsExtensionB(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCJKUnifiedIdeographsExtensionB", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCat(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - char * cat; /* UCS Category name */ - int n_cat; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - for (n_cat = 0;n_cat < gen_nb_const_char_ptr;n_cat++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - cat = gen_const_char_ptr(n_cat, 1); - - ret_val = xmlUCSIsCat(code, (const char *)cat); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - des_const_char_ptr(n_cat, (const char *)cat, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCat", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf(" %d", n_cat); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatC(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatC(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatC", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatCc(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatCc(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatCc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatCf(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatCf(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatCf", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatCo(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatCo(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatCo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatCs(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatCs(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatCs", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatL(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatL(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatL", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatLl(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatLl(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatLl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatLm(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatLm(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatLm", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatLo(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatLo(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatLo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatLt(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatLt(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatLt", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatLu(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatLu(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatLu", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatM(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatM(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatM", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatMc(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatMc(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatMc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatMe(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatMe(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatMe", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatMn(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatMn(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatMn", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatN(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatN(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatN", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatNd(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatNd(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatNd", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatNl(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatNl(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatNl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatNo(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatNo(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatNo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatP(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatP(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatP", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatPc(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatPc(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatPc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatPd(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatPd(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatPd", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatPe(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatPe(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatPe", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatPf(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatPf(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatPf", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatPi(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatPi(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatPi", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatPo(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatPo(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatPo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatPs(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatPs(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatPs", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatS(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatS(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatS", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatSc(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatSc(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatSc", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatSk(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatSk(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatSk", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatSm(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatSm(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatSm", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatSo(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatSo(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatSo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatZ(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatZ(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatZ", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatZl(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatZl(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatZl", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatZp(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatZp(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatZp", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCatZs(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCatZs(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCatZs", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCherokee(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCherokee(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCherokee", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCombiningDiacriticalMarks(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCombiningDiacriticalMarks(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCombiningDiacriticalMarks", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCombiningDiacriticalMarksforSymbols(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCombiningDiacriticalMarksforSymbols(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCombiningDiacriticalMarksforSymbols", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCombiningHalfMarks(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCombiningHalfMarks(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCombiningHalfMarks", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCombiningMarksforSymbols(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCombiningMarksforSymbols(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCombiningMarksforSymbols", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsControlPictures(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsControlPictures(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsControlPictures", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCurrencySymbols(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCurrencySymbols(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCurrencySymbols", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCypriotSyllabary(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCypriotSyllabary(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCypriotSyllabary", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCyrillic(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCyrillic(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCyrillic", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsCyrillicSupplement(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsCyrillicSupplement(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsCyrillicSupplement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsDeseret(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsDeseret(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsDeseret", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsDevanagari(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsDevanagari(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsDevanagari", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsDingbats(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsDingbats(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsDingbats", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsEnclosedAlphanumerics(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsEnclosedAlphanumerics(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsEnclosedAlphanumerics", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsEnclosedCJKLettersandMonths(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsEnclosedCJKLettersandMonths(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsEnclosedCJKLettersandMonths", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsEthiopic(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsEthiopic(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsEthiopic", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsGeneralPunctuation(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsGeneralPunctuation(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsGeneralPunctuation", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsGeometricShapes(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsGeometricShapes(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsGeometricShapes", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsGeorgian(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsGeorgian(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsGeorgian", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsGothic(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsGothic(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsGothic", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsGreek(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsGreek(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsGreek", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsGreekExtended(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsGreekExtended(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsGreekExtended", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsGreekandCoptic(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsGreekandCoptic(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsGreekandCoptic", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsGujarati(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsGujarati(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsGujarati", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsGurmukhi(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsGurmukhi(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsGurmukhi", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsHalfwidthandFullwidthForms(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsHalfwidthandFullwidthForms(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsHalfwidthandFullwidthForms", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsHangulCompatibilityJamo(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsHangulCompatibilityJamo(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsHangulCompatibilityJamo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsHangulJamo(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsHangulJamo(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsHangulJamo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsHangulSyllables(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsHangulSyllables(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsHangulSyllables", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsHanunoo(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsHanunoo(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsHanunoo", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsHebrew(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsHebrew(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsHebrew", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsHighPrivateUseSurrogates(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsHighPrivateUseSurrogates(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsHighPrivateUseSurrogates", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsHighSurrogates(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsHighSurrogates(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsHighSurrogates", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsHiragana(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsHiragana(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsHiragana", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsIPAExtensions(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsIPAExtensions(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsIPAExtensions", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsIdeographicDescriptionCharacters(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsIdeographicDescriptionCharacters(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsIdeographicDescriptionCharacters", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsKanbun(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsKanbun(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsKanbun", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsKangxiRadicals(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsKangxiRadicals(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsKangxiRadicals", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsKannada(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsKannada(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsKannada", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsKatakana(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsKatakana(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsKatakana", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsKatakanaPhoneticExtensions(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsKatakanaPhoneticExtensions(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsKatakanaPhoneticExtensions", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsKhmer(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsKhmer(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsKhmer", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsKhmerSymbols(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsKhmerSymbols(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsKhmerSymbols", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsLao(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsLao(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsLao", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsLatin1Supplement(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsLatin1Supplement(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsLatin1Supplement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsLatinExtendedA(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsLatinExtendedA(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsLatinExtendedA", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsLatinExtendedAdditional(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsLatinExtendedAdditional(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsLatinExtendedAdditional", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsLatinExtendedB(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsLatinExtendedB(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsLatinExtendedB", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsLetterlikeSymbols(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsLetterlikeSymbols(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsLetterlikeSymbols", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsLimbu(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsLimbu(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsLimbu", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsLinearBIdeograms(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsLinearBIdeograms(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsLinearBIdeograms", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsLinearBSyllabary(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsLinearBSyllabary(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsLinearBSyllabary", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsLowSurrogates(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsLowSurrogates(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsLowSurrogates", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsMalayalam(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsMalayalam(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsMalayalam", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsMathematicalAlphanumericSymbols(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsMathematicalAlphanumericSymbols(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsMathematicalAlphanumericSymbols", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsMathematicalOperators(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsMathematicalOperators(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsMathematicalOperators", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsMiscellaneousMathematicalSymbolsA(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsMiscellaneousMathematicalSymbolsA(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsMiscellaneousMathematicalSymbolsA", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsMiscellaneousMathematicalSymbolsB(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsMiscellaneousMathematicalSymbolsB(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsMiscellaneousMathematicalSymbolsB", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsMiscellaneousSymbols(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsMiscellaneousSymbols(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsMiscellaneousSymbols", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsMiscellaneousSymbolsandArrows(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsMiscellaneousSymbolsandArrows(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsMiscellaneousSymbolsandArrows", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsMiscellaneousTechnical(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsMiscellaneousTechnical(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsMiscellaneousTechnical", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsMongolian(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsMongolian(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsMongolian", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsMusicalSymbols(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsMusicalSymbols(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsMusicalSymbols", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsMyanmar(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsMyanmar(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsMyanmar", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsNumberForms(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsNumberForms(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsNumberForms", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsOgham(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsOgham(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsOgham", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsOldItalic(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsOldItalic(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsOldItalic", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsOpticalCharacterRecognition(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsOpticalCharacterRecognition(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsOpticalCharacterRecognition", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsOriya(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsOriya(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsOriya", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsOsmanya(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsOsmanya(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsOsmanya", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsPhoneticExtensions(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsPhoneticExtensions(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsPhoneticExtensions", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsPrivateUse(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsPrivateUse(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsPrivateUse", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsPrivateUseArea(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsPrivateUseArea(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsPrivateUseArea", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsRunic(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsRunic(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsRunic", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsShavian(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsShavian(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsShavian", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsSinhala(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsSinhala(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsSinhala", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsSmallFormVariants(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsSmallFormVariants(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsSmallFormVariants", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsSpacingModifierLetters(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsSpacingModifierLetters(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsSpacingModifierLetters", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsSpecials(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsSpecials(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsSpecials", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsSuperscriptsandSubscripts(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsSuperscriptsandSubscripts(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsSuperscriptsandSubscripts", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsSupplementalArrowsA(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsSupplementalArrowsA(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsSupplementalArrowsA", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsSupplementalArrowsB(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsSupplementalArrowsB(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsSupplementalArrowsB", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsSupplementalMathematicalOperators(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsSupplementalMathematicalOperators(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsSupplementalMathematicalOperators", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsSupplementaryPrivateUseAreaA(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsSupplementaryPrivateUseAreaA(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsSupplementaryPrivateUseAreaA", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsSupplementaryPrivateUseAreaB(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsSupplementaryPrivateUseAreaB(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsSupplementaryPrivateUseAreaB", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsSyriac(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsSyriac(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsSyriac", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsTagalog(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsTagalog(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsTagalog", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsTagbanwa(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsTagbanwa(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsTagbanwa", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsTags(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsTags(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsTags", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsTaiLe(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsTaiLe(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsTaiLe", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsTaiXuanJingSymbols(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsTaiXuanJingSymbols(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsTaiXuanJingSymbols", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsTamil(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsTamil(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsTamil", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsTelugu(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsTelugu(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsTelugu", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsThaana(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsThaana(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsThaana", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsThai(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsThai(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsThai", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsTibetan(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsTibetan(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsTibetan", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsUgaritic(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsUgaritic(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsUgaritic", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsUnifiedCanadianAboriginalSyllabics(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsUnifiedCanadianAboriginalSyllabics(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsUnifiedCanadianAboriginalSyllabics", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsVariationSelectors(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsVariationSelectors(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsVariationSelectors", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsVariationSelectorsSupplement(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsVariationSelectorsSupplement(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsVariationSelectorsSupplement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsYiRadicals(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsYiRadicals(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsYiRadicals", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsYiSyllables(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsYiSyllables(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsYiSyllables", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlUCSIsYijingHexagramSymbols(void) { - int test_ret = 0; - -#if defined(LIBXML_UNICODE_ENABLED) - int mem_base; - int ret_val; - int code; /* UCS code point */ - int n_code; - - for (n_code = 0;n_code < gen_nb_int;n_code++) { - mem_base = xmlMemBlocks(); - code = gen_int(n_code, 0); - - ret_val = xmlUCSIsYijingHexagramSymbols(code); - desret_int(ret_val); - call_tests++; - des_int(n_code, code, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlUCSIsYijingHexagramSymbols", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_code); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_xmlunicode(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing xmlunicode : 166 of 166 functions ...\n"); - test_ret += test_xmlUCSIsAegeanNumbers(); - test_ret += test_xmlUCSIsAlphabeticPresentationForms(); - test_ret += test_xmlUCSIsArabic(); - test_ret += test_xmlUCSIsArabicPresentationFormsA(); - test_ret += test_xmlUCSIsArabicPresentationFormsB(); - test_ret += test_xmlUCSIsArmenian(); - test_ret += test_xmlUCSIsArrows(); - test_ret += test_xmlUCSIsBasicLatin(); - test_ret += test_xmlUCSIsBengali(); - test_ret += test_xmlUCSIsBlock(); - test_ret += test_xmlUCSIsBlockElements(); - test_ret += test_xmlUCSIsBopomofo(); - test_ret += test_xmlUCSIsBopomofoExtended(); - test_ret += test_xmlUCSIsBoxDrawing(); - test_ret += test_xmlUCSIsBraillePatterns(); - test_ret += test_xmlUCSIsBuhid(); - test_ret += test_xmlUCSIsByzantineMusicalSymbols(); - test_ret += test_xmlUCSIsCJKCompatibility(); - test_ret += test_xmlUCSIsCJKCompatibilityForms(); - test_ret += test_xmlUCSIsCJKCompatibilityIdeographs(); - test_ret += test_xmlUCSIsCJKCompatibilityIdeographsSupplement(); - test_ret += test_xmlUCSIsCJKRadicalsSupplement(); - test_ret += test_xmlUCSIsCJKSymbolsandPunctuation(); - test_ret += test_xmlUCSIsCJKUnifiedIdeographs(); - test_ret += test_xmlUCSIsCJKUnifiedIdeographsExtensionA(); - test_ret += test_xmlUCSIsCJKUnifiedIdeographsExtensionB(); - test_ret += test_xmlUCSIsCat(); - test_ret += test_xmlUCSIsCatC(); - test_ret += test_xmlUCSIsCatCc(); - test_ret += test_xmlUCSIsCatCf(); - test_ret += test_xmlUCSIsCatCo(); - test_ret += test_xmlUCSIsCatCs(); - test_ret += test_xmlUCSIsCatL(); - test_ret += test_xmlUCSIsCatLl(); - test_ret += test_xmlUCSIsCatLm(); - test_ret += test_xmlUCSIsCatLo(); - test_ret += test_xmlUCSIsCatLt(); - test_ret += test_xmlUCSIsCatLu(); - test_ret += test_xmlUCSIsCatM(); - test_ret += test_xmlUCSIsCatMc(); - test_ret += test_xmlUCSIsCatMe(); - test_ret += test_xmlUCSIsCatMn(); - test_ret += test_xmlUCSIsCatN(); - test_ret += test_xmlUCSIsCatNd(); - test_ret += test_xmlUCSIsCatNl(); - test_ret += test_xmlUCSIsCatNo(); - test_ret += test_xmlUCSIsCatP(); - test_ret += test_xmlUCSIsCatPc(); - test_ret += test_xmlUCSIsCatPd(); - test_ret += test_xmlUCSIsCatPe(); - test_ret += test_xmlUCSIsCatPf(); - test_ret += test_xmlUCSIsCatPi(); - test_ret += test_xmlUCSIsCatPo(); - test_ret += test_xmlUCSIsCatPs(); - test_ret += test_xmlUCSIsCatS(); - test_ret += test_xmlUCSIsCatSc(); - test_ret += test_xmlUCSIsCatSk(); - test_ret += test_xmlUCSIsCatSm(); - test_ret += test_xmlUCSIsCatSo(); - test_ret += test_xmlUCSIsCatZ(); - test_ret += test_xmlUCSIsCatZl(); - test_ret += test_xmlUCSIsCatZp(); - test_ret += test_xmlUCSIsCatZs(); - test_ret += test_xmlUCSIsCherokee(); - test_ret += test_xmlUCSIsCombiningDiacriticalMarks(); - test_ret += test_xmlUCSIsCombiningDiacriticalMarksforSymbols(); - test_ret += test_xmlUCSIsCombiningHalfMarks(); - test_ret += test_xmlUCSIsCombiningMarksforSymbols(); - test_ret += test_xmlUCSIsControlPictures(); - test_ret += test_xmlUCSIsCurrencySymbols(); - test_ret += test_xmlUCSIsCypriotSyllabary(); - test_ret += test_xmlUCSIsCyrillic(); - test_ret += test_xmlUCSIsCyrillicSupplement(); - test_ret += test_xmlUCSIsDeseret(); - test_ret += test_xmlUCSIsDevanagari(); - test_ret += test_xmlUCSIsDingbats(); - test_ret += test_xmlUCSIsEnclosedAlphanumerics(); - test_ret += test_xmlUCSIsEnclosedCJKLettersandMonths(); - test_ret += test_xmlUCSIsEthiopic(); - test_ret += test_xmlUCSIsGeneralPunctuation(); - test_ret += test_xmlUCSIsGeometricShapes(); - test_ret += test_xmlUCSIsGeorgian(); - test_ret += test_xmlUCSIsGothic(); - test_ret += test_xmlUCSIsGreek(); - test_ret += test_xmlUCSIsGreekExtended(); - test_ret += test_xmlUCSIsGreekandCoptic(); - test_ret += test_xmlUCSIsGujarati(); - test_ret += test_xmlUCSIsGurmukhi(); - test_ret += test_xmlUCSIsHalfwidthandFullwidthForms(); - test_ret += test_xmlUCSIsHangulCompatibilityJamo(); - test_ret += test_xmlUCSIsHangulJamo(); - test_ret += test_xmlUCSIsHangulSyllables(); - test_ret += test_xmlUCSIsHanunoo(); - test_ret += test_xmlUCSIsHebrew(); - test_ret += test_xmlUCSIsHighPrivateUseSurrogates(); - test_ret += test_xmlUCSIsHighSurrogates(); - test_ret += test_xmlUCSIsHiragana(); - test_ret += test_xmlUCSIsIPAExtensions(); - test_ret += test_xmlUCSIsIdeographicDescriptionCharacters(); - test_ret += test_xmlUCSIsKanbun(); - test_ret += test_xmlUCSIsKangxiRadicals(); - test_ret += test_xmlUCSIsKannada(); - test_ret += test_xmlUCSIsKatakana(); - test_ret += test_xmlUCSIsKatakanaPhoneticExtensions(); - test_ret += test_xmlUCSIsKhmer(); - test_ret += test_xmlUCSIsKhmerSymbols(); - test_ret += test_xmlUCSIsLao(); - test_ret += test_xmlUCSIsLatin1Supplement(); - test_ret += test_xmlUCSIsLatinExtendedA(); - test_ret += test_xmlUCSIsLatinExtendedAdditional(); - test_ret += test_xmlUCSIsLatinExtendedB(); - test_ret += test_xmlUCSIsLetterlikeSymbols(); - test_ret += test_xmlUCSIsLimbu(); - test_ret += test_xmlUCSIsLinearBIdeograms(); - test_ret += test_xmlUCSIsLinearBSyllabary(); - test_ret += test_xmlUCSIsLowSurrogates(); - test_ret += test_xmlUCSIsMalayalam(); - test_ret += test_xmlUCSIsMathematicalAlphanumericSymbols(); - test_ret += test_xmlUCSIsMathematicalOperators(); - test_ret += test_xmlUCSIsMiscellaneousMathematicalSymbolsA(); - test_ret += test_xmlUCSIsMiscellaneousMathematicalSymbolsB(); - test_ret += test_xmlUCSIsMiscellaneousSymbols(); - test_ret += test_xmlUCSIsMiscellaneousSymbolsandArrows(); - test_ret += test_xmlUCSIsMiscellaneousTechnical(); - test_ret += test_xmlUCSIsMongolian(); - test_ret += test_xmlUCSIsMusicalSymbols(); - test_ret += test_xmlUCSIsMyanmar(); - test_ret += test_xmlUCSIsNumberForms(); - test_ret += test_xmlUCSIsOgham(); - test_ret += test_xmlUCSIsOldItalic(); - test_ret += test_xmlUCSIsOpticalCharacterRecognition(); - test_ret += test_xmlUCSIsOriya(); - test_ret += test_xmlUCSIsOsmanya(); - test_ret += test_xmlUCSIsPhoneticExtensions(); - test_ret += test_xmlUCSIsPrivateUse(); - test_ret += test_xmlUCSIsPrivateUseArea(); - test_ret += test_xmlUCSIsRunic(); - test_ret += test_xmlUCSIsShavian(); - test_ret += test_xmlUCSIsSinhala(); - test_ret += test_xmlUCSIsSmallFormVariants(); - test_ret += test_xmlUCSIsSpacingModifierLetters(); - test_ret += test_xmlUCSIsSpecials(); - test_ret += test_xmlUCSIsSuperscriptsandSubscripts(); - test_ret += test_xmlUCSIsSupplementalArrowsA(); - test_ret += test_xmlUCSIsSupplementalArrowsB(); - test_ret += test_xmlUCSIsSupplementalMathematicalOperators(); - test_ret += test_xmlUCSIsSupplementaryPrivateUseAreaA(); - test_ret += test_xmlUCSIsSupplementaryPrivateUseAreaB(); - test_ret += test_xmlUCSIsSyriac(); - test_ret += test_xmlUCSIsTagalog(); - test_ret += test_xmlUCSIsTagbanwa(); - test_ret += test_xmlUCSIsTags(); - test_ret += test_xmlUCSIsTaiLe(); - test_ret += test_xmlUCSIsTaiXuanJingSymbols(); - test_ret += test_xmlUCSIsTamil(); - test_ret += test_xmlUCSIsTelugu(); - test_ret += test_xmlUCSIsThaana(); - test_ret += test_xmlUCSIsThai(); - test_ret += test_xmlUCSIsTibetan(); - test_ret += test_xmlUCSIsUgaritic(); - test_ret += test_xmlUCSIsUnifiedCanadianAboriginalSyllabics(); - test_ret += test_xmlUCSIsVariationSelectors(); - test_ret += test_xmlUCSIsVariationSelectorsSupplement(); - test_ret += test_xmlUCSIsYiRadicals(); - test_ret += test_xmlUCSIsYiSyllables(); - test_ret += test_xmlUCSIsYijingHexagramSymbols(); - - if (test_ret != 0) - printf("Module xmlunicode: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlNewTextWriter(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - xmlTextWriterPtr ret_val; - xmlOutputBufferPtr out; /* an xmlOutputBufferPtr */ - int n_out; - - for (n_out = 0;n_out < gen_nb_xmlOutputBufferPtr;n_out++) { - mem_base = xmlMemBlocks(); - out = gen_xmlOutputBufferPtr(n_out, 0); - - ret_val = xmlNewTextWriter(out); - if (ret_val != NULL) out = NULL; - desret_xmlTextWriterPtr(ret_val); - call_tests++; - des_xmlOutputBufferPtr(n_out, out, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewTextWriter", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_out); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNewTextWriterFilename(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - xmlTextWriterPtr ret_val; - const char * uri; /* the URI of the resource for the output */ - int n_uri; - int compression; /* compress the output? */ - int n_compression; - - for (n_uri = 0;n_uri < gen_nb_fileoutput;n_uri++) { - for (n_compression = 0;n_compression < gen_nb_int;n_compression++) { - mem_base = xmlMemBlocks(); - uri = gen_fileoutput(n_uri, 0); - compression = gen_int(n_compression, 1); - - ret_val = xmlNewTextWriterFilename(uri, compression); - desret_xmlTextWriterPtr(ret_val); - call_tests++; - des_fileoutput(n_uri, uri, 0); - des_int(n_compression, compression, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewTextWriterFilename", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_uri); - printf(" %d", n_compression); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNewTextWriterMemory(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - xmlTextWriterPtr ret_val; - xmlBufferPtr buf; /* xmlBufferPtr */ - int n_buf; - int compression; /* compress the output? */ - int n_compression; - - for (n_buf = 0;n_buf < gen_nb_xmlBufferPtr;n_buf++) { - for (n_compression = 0;n_compression < gen_nb_int;n_compression++) { - mem_base = xmlMemBlocks(); - buf = gen_xmlBufferPtr(n_buf, 0); - compression = gen_int(n_compression, 1); - - ret_val = xmlNewTextWriterMemory(buf, compression); - desret_xmlTextWriterPtr(ret_val); - call_tests++; - des_xmlBufferPtr(n_buf, buf, 0); - des_int(n_compression, compression, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewTextWriterMemory", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_buf); - printf(" %d", n_compression); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNewTextWriterPushParser(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - xmlTextWriterPtr ret_val; - xmlParserCtxtPtr ctxt; /* xmlParserCtxtPtr to hold the new XML document tree */ - int n_ctxt; - int compression; /* compress the output? */ - int n_compression; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlParserCtxtPtr;n_ctxt++) { - for (n_compression = 0;n_compression < gen_nb_int;n_compression++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0); - compression = gen_int(n_compression, 1); - - ret_val = xmlNewTextWriterPushParser(ctxt, compression); - if (ctxt != NULL) {xmlFreeDoc(ctxt->myDoc); ctxt->myDoc = NULL;} if (ret_val != NULL) ctxt = NULL; - desret_xmlTextWriterPtr(ret_val); - call_tests++; - des_xmlParserCtxtPtr(n_ctxt, ctxt, 0); - des_int(n_compression, compression, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewTextWriterPushParser", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_compression); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlNewTextWriterTree(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - xmlTextWriterPtr ret_val; - xmlDocPtr doc; /* xmlDocPtr */ - int n_doc; - xmlNodePtr node; /* xmlNodePtr or NULL for doc->children */ - int n_node; - int compression; /* compress the output? */ - int n_compression; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_compression = 0;n_compression < gen_nb_int;n_compression++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - node = gen_xmlNodePtr(n_node, 1); - compression = gen_int(n_compression, 2); - - ret_val = xmlNewTextWriterTree(doc, node, compression); - desret_xmlTextWriterPtr(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - des_xmlNodePtr(n_node, node, 1); - des_int(n_compression, compression, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlNewTextWriterTree", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf(" %d", n_node); - printf(" %d", n_compression); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterEndAttribute(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - - ret_val = xmlTextWriterEndAttribute(writer); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterEndAttribute", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterEndCDATA(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - - ret_val = xmlTextWriterEndCDATA(writer); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterEndCDATA", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterEndComment(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - - ret_val = xmlTextWriterEndComment(writer); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterEndComment", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterEndDTD(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - - ret_val = xmlTextWriterEndDTD(writer); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterEndDTD", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterEndDTDAttlist(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - - ret_val = xmlTextWriterEndDTDAttlist(writer); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterEndDTDAttlist", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterEndDTDElement(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - - ret_val = xmlTextWriterEndDTDElement(writer); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterEndDTDElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterEndDTDEntity(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - - ret_val = xmlTextWriterEndDTDEntity(writer); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterEndDTDEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterEndDocument(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - - ret_val = xmlTextWriterEndDocument(writer); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterEndDocument", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterEndElement(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - - ret_val = xmlTextWriterEndElement(writer); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterEndElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterEndPI(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - - ret_val = xmlTextWriterEndPI(writer); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterEndPI", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterFlush(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - - ret_val = xmlTextWriterFlush(writer); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterFlush", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterFullEndElement(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - - ret_val = xmlTextWriterFullEndElement(writer); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterFullEndElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterSetIndent(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - int indent; /* do indentation? */ - int n_indent; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_indent = 0;n_indent < gen_nb_int;n_indent++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - indent = gen_int(n_indent, 1); - - ret_val = xmlTextWriterSetIndent(writer, indent); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_int(n_indent, indent, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterSetIndent", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_indent); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterSetIndentString(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * str; /* the xmlChar string */ - int n_str; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - str = gen_const_xmlChar_ptr(n_str, 1); - - ret_val = xmlTextWriterSetIndentString(writer, (const xmlChar *)str); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterSetIndentString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_str); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterStartAttribute(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * name; /* element name */ - int n_name; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlTextWriterStartAttribute(writer, (const xmlChar *)name); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterStartAttribute", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterStartAttributeNS(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * prefix; /* namespace prefix or NULL */ - int n_prefix; - xmlChar * name; /* element local name */ - int n_name; - xmlChar * namespaceURI; /* namespace URI or NULL */ - int n_namespaceURI; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_namespaceURI = 0;n_namespaceURI < gen_nb_const_xmlChar_ptr;n_namespaceURI++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - prefix = gen_const_xmlChar_ptr(n_prefix, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - namespaceURI = gen_const_xmlChar_ptr(n_namespaceURI, 3); - - ret_val = xmlTextWriterStartAttributeNS(writer, (const xmlChar *)prefix, (const xmlChar *)name, (const xmlChar *)namespaceURI); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_namespaceURI, (const xmlChar *)namespaceURI, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterStartAttributeNS", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_prefix); - printf(" %d", n_name); - printf(" %d", n_namespaceURI); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterStartCDATA(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - - ret_val = xmlTextWriterStartCDATA(writer); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterStartCDATA", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterStartComment(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - - ret_val = xmlTextWriterStartComment(writer); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterStartComment", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterStartDTD(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * name; /* the name of the DTD */ - int n_name; - xmlChar * pubid; /* the public identifier, which is an alternative to the system identifier */ - int n_pubid; - xmlChar * sysid; /* the system identifier, which is the URI of the DTD */ - int n_sysid; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_pubid = 0;n_pubid < gen_nb_const_xmlChar_ptr;n_pubid++) { - for (n_sysid = 0;n_sysid < gen_nb_const_xmlChar_ptr;n_sysid++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - pubid = gen_const_xmlChar_ptr(n_pubid, 2); - sysid = gen_const_xmlChar_ptr(n_sysid, 3); - - ret_val = xmlTextWriterStartDTD(writer, (const xmlChar *)name, (const xmlChar *)pubid, (const xmlChar *)sysid); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_pubid, (const xmlChar *)pubid, 2); - des_const_xmlChar_ptr(n_sysid, (const xmlChar *)sysid, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterStartDTD", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_name); - printf(" %d", n_pubid); - printf(" %d", n_sysid); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterStartDTDAttlist(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * name; /* the name of the DTD ATTLIST */ - int n_name; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlTextWriterStartDTDAttlist(writer, (const xmlChar *)name); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterStartDTDAttlist", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterStartDTDElement(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * name; /* the name of the DTD element */ - int n_name; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlTextWriterStartDTDElement(writer, (const xmlChar *)name); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterStartDTDElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterStartDTDEntity(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - int pe; /* TRUE if this is a parameter entity, FALSE if not */ - int n_pe; - xmlChar * name; /* the name of the DTD ATTLIST */ - int n_name; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_pe = 0;n_pe < gen_nb_int;n_pe++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - pe = gen_int(n_pe, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - - ret_val = xmlTextWriterStartDTDEntity(writer, pe, (const xmlChar *)name); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_int(n_pe, pe, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterStartDTDEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_pe); - printf(" %d", n_name); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterStartDocument(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - char * version; /* the xml version ("1.0") or NULL for default ("1.0") */ - int n_version; - char * encoding; /* the encoding or NULL for default */ - int n_encoding; - char * standalone; /* "yes" or "no" or NULL for default */ - int n_standalone; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_version = 0;n_version < gen_nb_const_char_ptr;n_version++) { - for (n_encoding = 0;n_encoding < gen_nb_const_char_ptr;n_encoding++) { - for (n_standalone = 0;n_standalone < gen_nb_const_char_ptr;n_standalone++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - version = gen_const_char_ptr(n_version, 1); - encoding = gen_const_char_ptr(n_encoding, 2); - standalone = gen_const_char_ptr(n_standalone, 3); - - ret_val = xmlTextWriterStartDocument(writer, (const char *)version, (const char *)encoding, (const char *)standalone); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_char_ptr(n_version, (const char *)version, 1); - des_const_char_ptr(n_encoding, (const char *)encoding, 2); - des_const_char_ptr(n_standalone, (const char *)standalone, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterStartDocument", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_version); - printf(" %d", n_encoding); - printf(" %d", n_standalone); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterStartElement(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * name; /* element name */ - int n_name; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlTextWriterStartElement(writer, (const xmlChar *)name); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterStartElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterStartElementNS(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * prefix; /* namespace prefix or NULL */ - int n_prefix; - xmlChar * name; /* element local name */ - int n_name; - xmlChar * namespaceURI; /* namespace URI or NULL */ - int n_namespaceURI; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_namespaceURI = 0;n_namespaceURI < gen_nb_const_xmlChar_ptr;n_namespaceURI++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - prefix = gen_const_xmlChar_ptr(n_prefix, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - namespaceURI = gen_const_xmlChar_ptr(n_namespaceURI, 3); - - ret_val = xmlTextWriterStartElementNS(writer, (const xmlChar *)prefix, (const xmlChar *)name, (const xmlChar *)namespaceURI); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_namespaceURI, (const xmlChar *)namespaceURI, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterStartElementNS", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_prefix); - printf(" %d", n_name); - printf(" %d", n_namespaceURI); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterStartPI(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * target; /* PI target */ - int n_target; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_target = 0;n_target < gen_nb_const_xmlChar_ptr;n_target++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - target = gen_const_xmlChar_ptr(n_target, 1); - - ret_val = xmlTextWriterStartPI(writer, (const xmlChar *)target); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_target, (const xmlChar *)target, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterStartPI", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_target); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteAttribute(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * name; /* attribute name */ - int n_name; - xmlChar * content; /* attribute content */ - int n_content; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - content = gen_const_xmlChar_ptr(n_content, 2); - - ret_val = xmlTextWriterWriteAttribute(writer, (const xmlChar *)name, (const xmlChar *)content); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteAttribute", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_name); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteAttributeNS(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * prefix; /* namespace prefix */ - int n_prefix; - xmlChar * name; /* attribute local name */ - int n_name; - xmlChar * namespaceURI; /* namespace URI */ - int n_namespaceURI; - xmlChar * content; /* attribute content */ - int n_content; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_namespaceURI = 0;n_namespaceURI < gen_nb_const_xmlChar_ptr;n_namespaceURI++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - prefix = gen_const_xmlChar_ptr(n_prefix, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - namespaceURI = gen_const_xmlChar_ptr(n_namespaceURI, 3); - content = gen_const_xmlChar_ptr(n_content, 4); - - ret_val = xmlTextWriterWriteAttributeNS(writer, (const xmlChar *)prefix, (const xmlChar *)name, (const xmlChar *)namespaceURI, (const xmlChar *)content); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_namespaceURI, (const xmlChar *)namespaceURI, 3); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteAttributeNS", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_prefix); - printf(" %d", n_name); - printf(" %d", n_namespaceURI); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteBase64(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - char * data; /* binary data */ - int n_data; - int start; /* the position within the data of the first byte to encode */ - int n_start; - int len; /* the number of bytes to encode */ - int n_len; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_data = 0;n_data < gen_nb_const_char_ptr;n_data++) { - for (n_start = 0;n_start < gen_nb_int;n_start++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - data = gen_const_char_ptr(n_data, 1); - start = gen_int(n_start, 2); - len = gen_int(n_len, 3); - - ret_val = xmlTextWriterWriteBase64(writer, (const char *)data, start, len); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_char_ptr(n_data, (const char *)data, 1); - des_int(n_start, start, 2); - des_int(n_len, len, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteBase64", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_data); - printf(" %d", n_start); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteBinHex(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - char * data; /* binary data */ - int n_data; - int start; /* the position within the data of the first byte to encode */ - int n_start; - int len; /* the number of bytes to encode */ - int n_len; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_data = 0;n_data < gen_nb_const_char_ptr;n_data++) { - for (n_start = 0;n_start < gen_nb_int;n_start++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - data = gen_const_char_ptr(n_data, 1); - start = gen_int(n_start, 2); - len = gen_int(n_len, 3); - - ret_val = xmlTextWriterWriteBinHex(writer, (const char *)data, start, len); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_char_ptr(n_data, (const char *)data, 1); - des_int(n_start, start, 2); - des_int(n_len, len, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteBinHex", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_data); - printf(" %d", n_start); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteCDATA(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * content; /* CDATA content */ - int n_content; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - content = gen_const_xmlChar_ptr(n_content, 1); - - ret_val = xmlTextWriterWriteCDATA(writer, (const xmlChar *)content); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteCDATA", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_content); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteComment(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * content; /* comment string */ - int n_content; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - content = gen_const_xmlChar_ptr(n_content, 1); - - ret_val = xmlTextWriterWriteComment(writer, (const xmlChar *)content); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteComment", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_content); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteDTD(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * name; /* the name of the DTD */ - int n_name; - xmlChar * pubid; /* the public identifier, which is an alternative to the system identifier */ - int n_pubid; - xmlChar * sysid; /* the system identifier, which is the URI of the DTD */ - int n_sysid; - xmlChar * subset; /* string content of the DTD */ - int n_subset; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_pubid = 0;n_pubid < gen_nb_const_xmlChar_ptr;n_pubid++) { - for (n_sysid = 0;n_sysid < gen_nb_const_xmlChar_ptr;n_sysid++) { - for (n_subset = 0;n_subset < gen_nb_const_xmlChar_ptr;n_subset++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - pubid = gen_const_xmlChar_ptr(n_pubid, 2); - sysid = gen_const_xmlChar_ptr(n_sysid, 3); - subset = gen_const_xmlChar_ptr(n_subset, 4); - - ret_val = xmlTextWriterWriteDTD(writer, (const xmlChar *)name, (const xmlChar *)pubid, (const xmlChar *)sysid, (const xmlChar *)subset); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_pubid, (const xmlChar *)pubid, 2); - des_const_xmlChar_ptr(n_sysid, (const xmlChar *)sysid, 3); - des_const_xmlChar_ptr(n_subset, (const xmlChar *)subset, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteDTD", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_name); - printf(" %d", n_pubid); - printf(" %d", n_sysid); - printf(" %d", n_subset); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteDTDAttlist(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * name; /* the name of the DTD ATTLIST */ - int n_name; - xmlChar * content; /* content of the ATTLIST */ - int n_content; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - content = gen_const_xmlChar_ptr(n_content, 2); - - ret_val = xmlTextWriterWriteDTDAttlist(writer, (const xmlChar *)name, (const xmlChar *)content); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteDTDAttlist", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_name); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteDTDElement(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * name; /* the name of the DTD element */ - int n_name; - xmlChar * content; /* content of the element */ - int n_content; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - content = gen_const_xmlChar_ptr(n_content, 2); - - ret_val = xmlTextWriterWriteDTDElement(writer, (const xmlChar *)name, (const xmlChar *)content); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteDTDElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_name); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteDTDEntity(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - int pe; /* TRUE if this is a parameter entity, FALSE if not */ - int n_pe; - xmlChar * name; /* the name of the DTD entity */ - int n_name; - xmlChar * pubid; /* the public identifier, which is an alternative to the system identifier */ - int n_pubid; - xmlChar * sysid; /* the system identifier, which is the URI of the DTD */ - int n_sysid; - xmlChar * ndataid; /* the xml notation name. */ - int n_ndataid; - xmlChar * content; /* content of the entity */ - int n_content; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_pe = 0;n_pe < gen_nb_int;n_pe++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_pubid = 0;n_pubid < gen_nb_const_xmlChar_ptr;n_pubid++) { - for (n_sysid = 0;n_sysid < gen_nb_const_xmlChar_ptr;n_sysid++) { - for (n_ndataid = 0;n_ndataid < gen_nb_const_xmlChar_ptr;n_ndataid++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - pe = gen_int(n_pe, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - pubid = gen_const_xmlChar_ptr(n_pubid, 3); - sysid = gen_const_xmlChar_ptr(n_sysid, 4); - ndataid = gen_const_xmlChar_ptr(n_ndataid, 5); - content = gen_const_xmlChar_ptr(n_content, 6); - - ret_val = xmlTextWriterWriteDTDEntity(writer, pe, (const xmlChar *)name, (const xmlChar *)pubid, (const xmlChar *)sysid, (const xmlChar *)ndataid, (const xmlChar *)content); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_int(n_pe, pe, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_pubid, (const xmlChar *)pubid, 3); - des_const_xmlChar_ptr(n_sysid, (const xmlChar *)sysid, 4); - des_const_xmlChar_ptr(n_ndataid, (const xmlChar *)ndataid, 5); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 6); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteDTDEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_pe); - printf(" %d", n_name); - printf(" %d", n_pubid); - printf(" %d", n_sysid); - printf(" %d", n_ndataid); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteDTDExternalEntity(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - int pe; /* TRUE if this is a parameter entity, FALSE if not */ - int n_pe; - xmlChar * name; /* the name of the DTD entity */ - int n_name; - xmlChar * pubid; /* the public identifier, which is an alternative to the system identifier */ - int n_pubid; - xmlChar * sysid; /* the system identifier, which is the URI of the DTD */ - int n_sysid; - xmlChar * ndataid; /* the xml notation name. */ - int n_ndataid; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_pe = 0;n_pe < gen_nb_int;n_pe++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_pubid = 0;n_pubid < gen_nb_const_xmlChar_ptr;n_pubid++) { - for (n_sysid = 0;n_sysid < gen_nb_const_xmlChar_ptr;n_sysid++) { - for (n_ndataid = 0;n_ndataid < gen_nb_const_xmlChar_ptr;n_ndataid++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - pe = gen_int(n_pe, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - pubid = gen_const_xmlChar_ptr(n_pubid, 3); - sysid = gen_const_xmlChar_ptr(n_sysid, 4); - ndataid = gen_const_xmlChar_ptr(n_ndataid, 5); - - ret_val = xmlTextWriterWriteDTDExternalEntity(writer, pe, (const xmlChar *)name, (const xmlChar *)pubid, (const xmlChar *)sysid, (const xmlChar *)ndataid); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_int(n_pe, pe, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_pubid, (const xmlChar *)pubid, 3); - des_const_xmlChar_ptr(n_sysid, (const xmlChar *)sysid, 4); - des_const_xmlChar_ptr(n_ndataid, (const xmlChar *)ndataid, 5); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteDTDExternalEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_pe); - printf(" %d", n_name); - printf(" %d", n_pubid); - printf(" %d", n_sysid); - printf(" %d", n_ndataid); - printf("\n"); - } - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteDTDExternalEntityContents(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * pubid; /* the public identifier, which is an alternative to the system identifier */ - int n_pubid; - xmlChar * sysid; /* the system identifier, which is the URI of the DTD */ - int n_sysid; - xmlChar * ndataid; /* the xml notation name. */ - int n_ndataid; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_pubid = 0;n_pubid < gen_nb_const_xmlChar_ptr;n_pubid++) { - for (n_sysid = 0;n_sysid < gen_nb_const_xmlChar_ptr;n_sysid++) { - for (n_ndataid = 0;n_ndataid < gen_nb_const_xmlChar_ptr;n_ndataid++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - pubid = gen_const_xmlChar_ptr(n_pubid, 1); - sysid = gen_const_xmlChar_ptr(n_sysid, 2); - ndataid = gen_const_xmlChar_ptr(n_ndataid, 3); - - ret_val = xmlTextWriterWriteDTDExternalEntityContents(writer, (const xmlChar *)pubid, (const xmlChar *)sysid, (const xmlChar *)ndataid); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_pubid, (const xmlChar *)pubid, 1); - des_const_xmlChar_ptr(n_sysid, (const xmlChar *)sysid, 2); - des_const_xmlChar_ptr(n_ndataid, (const xmlChar *)ndataid, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteDTDExternalEntityContents", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_pubid); - printf(" %d", n_sysid); - printf(" %d", n_ndataid); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteDTDInternalEntity(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - int pe; /* TRUE if this is a parameter entity, FALSE if not */ - int n_pe; - xmlChar * name; /* the name of the DTD entity */ - int n_name; - xmlChar * content; /* content of the entity */ - int n_content; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_pe = 0;n_pe < gen_nb_int;n_pe++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - pe = gen_int(n_pe, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - content = gen_const_xmlChar_ptr(n_content, 3); - - ret_val = xmlTextWriterWriteDTDInternalEntity(writer, pe, (const xmlChar *)name, (const xmlChar *)content); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_int(n_pe, pe, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteDTDInternalEntity", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_pe); - printf(" %d", n_name); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteDTDNotation(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * name; /* the name of the xml notation */ - int n_name; - xmlChar * pubid; /* the public identifier, which is an alternative to the system identifier */ - int n_pubid; - xmlChar * sysid; /* the system identifier, which is the URI of the DTD */ - int n_sysid; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_pubid = 0;n_pubid < gen_nb_const_xmlChar_ptr;n_pubid++) { - for (n_sysid = 0;n_sysid < gen_nb_const_xmlChar_ptr;n_sysid++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - pubid = gen_const_xmlChar_ptr(n_pubid, 2); - sysid = gen_const_xmlChar_ptr(n_sysid, 3); - - ret_val = xmlTextWriterWriteDTDNotation(writer, (const xmlChar *)name, (const xmlChar *)pubid, (const xmlChar *)sysid); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_pubid, (const xmlChar *)pubid, 2); - des_const_xmlChar_ptr(n_sysid, (const xmlChar *)sysid, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteDTDNotation", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_name); - printf(" %d", n_pubid); - printf(" %d", n_sysid); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteElement(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * name; /* element name */ - int n_name; - xmlChar * content; /* element content */ - int n_content; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - content = gen_const_xmlChar_ptr(n_content, 2); - - ret_val = xmlTextWriterWriteElement(writer, (const xmlChar *)name, (const xmlChar *)content); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteElement", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_name); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteElementNS(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * prefix; /* namespace prefix */ - int n_prefix; - xmlChar * name; /* element local name */ - int n_name; - xmlChar * namespaceURI; /* namespace URI */ - int n_namespaceURI; - xmlChar * content; /* element content */ - int n_content; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_namespaceURI = 0;n_namespaceURI < gen_nb_const_xmlChar_ptr;n_namespaceURI++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - prefix = gen_const_xmlChar_ptr(n_prefix, 1); - name = gen_const_xmlChar_ptr(n_name, 2); - namespaceURI = gen_const_xmlChar_ptr(n_namespaceURI, 3); - content = gen_const_xmlChar_ptr(n_content, 4); - - ret_val = xmlTextWriterWriteElementNS(writer, (const xmlChar *)prefix, (const xmlChar *)name, (const xmlChar *)namespaceURI, (const xmlChar *)content); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 1); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 2); - des_const_xmlChar_ptr(n_namespaceURI, (const xmlChar *)namespaceURI, 3); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 4); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteElementNS", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_prefix); - printf(" %d", n_name); - printf(" %d", n_namespaceURI); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteFormatAttribute(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteFormatAttributeNS(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteFormatCDATA(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteFormatComment(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteFormatDTD(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteFormatDTDAttlist(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteFormatDTDElement(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteFormatDTDInternalEntity(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteFormatElement(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteFormatElementNS(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteFormatPI(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteFormatRaw(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteFormatString(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWritePI(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * target; /* PI target */ - int n_target; - xmlChar * content; /* PI content */ - int n_content; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_target = 0;n_target < gen_nb_const_xmlChar_ptr;n_target++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - target = gen_const_xmlChar_ptr(n_target, 1); - content = gen_const_xmlChar_ptr(n_content, 2); - - ret_val = xmlTextWriterWritePI(writer, (const xmlChar *)target, (const xmlChar *)content); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_target, (const xmlChar *)target, 1); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWritePI", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_target); - printf(" %d", n_content); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteRaw(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * content; /* text string */ - int n_content; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - content = gen_const_xmlChar_ptr(n_content, 1); - - ret_val = xmlTextWriterWriteRaw(writer, (const xmlChar *)content); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteRaw", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_content); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteRawLen(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * content; /* text string */ - int n_content; - int len; /* length of the text string */ - int n_len; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - for (n_len = 0;n_len < gen_nb_int;n_len++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - content = gen_const_xmlChar_ptr(n_content, 1); - len = gen_int(n_len, 2); - - ret_val = xmlTextWriterWriteRawLen(writer, (const xmlChar *)content, len); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 1); - des_int(n_len, len, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteRawLen", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_content); - printf(" %d", n_len); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteString(void) { - int test_ret = 0; - -#if defined(LIBXML_WRITER_ENABLED) - int mem_base; - int ret_val; - xmlTextWriterPtr writer; /* the xmlTextWriterPtr */ - int n_writer; - xmlChar * content; /* text string */ - int n_content; - - for (n_writer = 0;n_writer < gen_nb_xmlTextWriterPtr;n_writer++) { - for (n_content = 0;n_content < gen_nb_const_xmlChar_ptr;n_content++) { - mem_base = xmlMemBlocks(); - writer = gen_xmlTextWriterPtr(n_writer, 0); - content = gen_const_xmlChar_ptr(n_content, 1); - - ret_val = xmlTextWriterWriteString(writer, (const xmlChar *)content); - desret_int(ret_val); - call_tests++; - des_xmlTextWriterPtr(n_writer, writer, 0); - des_const_xmlChar_ptr(n_content, (const xmlChar *)content, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlTextWriterWriteString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_writer); - printf(" %d", n_content); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlTextWriterWriteVFormatAttribute(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteVFormatAttributeNS(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteVFormatCDATA(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteVFormatComment(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteVFormatDTD(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteVFormatDTDAttlist(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteVFormatDTDElement(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteVFormatDTDInternalEntity(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteVFormatElement(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteVFormatElementNS(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteVFormatPI(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteVFormatRaw(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlTextWriterWriteVFormatString(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - -static int -test_xmlwriter(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing xmlwriter : 51 of 79 functions ...\n"); - test_ret += test_xmlNewTextWriter(); - test_ret += test_xmlNewTextWriterFilename(); - test_ret += test_xmlNewTextWriterMemory(); - test_ret += test_xmlNewTextWriterPushParser(); - test_ret += test_xmlNewTextWriterTree(); - test_ret += test_xmlTextWriterEndAttribute(); - test_ret += test_xmlTextWriterEndCDATA(); - test_ret += test_xmlTextWriterEndComment(); - test_ret += test_xmlTextWriterEndDTD(); - test_ret += test_xmlTextWriterEndDTDAttlist(); - test_ret += test_xmlTextWriterEndDTDElement(); - test_ret += test_xmlTextWriterEndDTDEntity(); - test_ret += test_xmlTextWriterEndDocument(); - test_ret += test_xmlTextWriterEndElement(); - test_ret += test_xmlTextWriterEndPI(); - test_ret += test_xmlTextWriterFlush(); - test_ret += test_xmlTextWriterFullEndElement(); - test_ret += test_xmlTextWriterSetIndent(); - test_ret += test_xmlTextWriterSetIndentString(); - test_ret += test_xmlTextWriterStartAttribute(); - test_ret += test_xmlTextWriterStartAttributeNS(); - test_ret += test_xmlTextWriterStartCDATA(); - test_ret += test_xmlTextWriterStartComment(); - test_ret += test_xmlTextWriterStartDTD(); - test_ret += test_xmlTextWriterStartDTDAttlist(); - test_ret += test_xmlTextWriterStartDTDElement(); - test_ret += test_xmlTextWriterStartDTDEntity(); - test_ret += test_xmlTextWriterStartDocument(); - test_ret += test_xmlTextWriterStartElement(); - test_ret += test_xmlTextWriterStartElementNS(); - test_ret += test_xmlTextWriterStartPI(); - test_ret += test_xmlTextWriterWriteAttribute(); - test_ret += test_xmlTextWriterWriteAttributeNS(); - test_ret += test_xmlTextWriterWriteBase64(); - test_ret += test_xmlTextWriterWriteBinHex(); - test_ret += test_xmlTextWriterWriteCDATA(); - test_ret += test_xmlTextWriterWriteComment(); - test_ret += test_xmlTextWriterWriteDTD(); - test_ret += test_xmlTextWriterWriteDTDAttlist(); - test_ret += test_xmlTextWriterWriteDTDElement(); - test_ret += test_xmlTextWriterWriteDTDEntity(); - test_ret += test_xmlTextWriterWriteDTDExternalEntity(); - test_ret += test_xmlTextWriterWriteDTDExternalEntityContents(); - test_ret += test_xmlTextWriterWriteDTDInternalEntity(); - test_ret += test_xmlTextWriterWriteDTDNotation(); - test_ret += test_xmlTextWriterWriteElement(); - test_ret += test_xmlTextWriterWriteElementNS(); - test_ret += test_xmlTextWriterWriteFormatAttribute(); - test_ret += test_xmlTextWriterWriteFormatAttributeNS(); - test_ret += test_xmlTextWriterWriteFormatCDATA(); - test_ret += test_xmlTextWriterWriteFormatComment(); - test_ret += test_xmlTextWriterWriteFormatDTD(); - test_ret += test_xmlTextWriterWriteFormatDTDAttlist(); - test_ret += test_xmlTextWriterWriteFormatDTDElement(); - test_ret += test_xmlTextWriterWriteFormatDTDInternalEntity(); - test_ret += test_xmlTextWriterWriteFormatElement(); - test_ret += test_xmlTextWriterWriteFormatElementNS(); - test_ret += test_xmlTextWriterWriteFormatPI(); - test_ret += test_xmlTextWriterWriteFormatRaw(); - test_ret += test_xmlTextWriterWriteFormatString(); - test_ret += test_xmlTextWriterWritePI(); - test_ret += test_xmlTextWriterWriteRaw(); - test_ret += test_xmlTextWriterWriteRawLen(); - test_ret += test_xmlTextWriterWriteString(); - test_ret += test_xmlTextWriterWriteVFormatAttribute(); - test_ret += test_xmlTextWriterWriteVFormatAttributeNS(); - test_ret += test_xmlTextWriterWriteVFormatCDATA(); - test_ret += test_xmlTextWriterWriteVFormatComment(); - test_ret += test_xmlTextWriterWriteVFormatDTD(); - test_ret += test_xmlTextWriterWriteVFormatDTDAttlist(); - test_ret += test_xmlTextWriterWriteVFormatDTDElement(); - test_ret += test_xmlTextWriterWriteVFormatDTDInternalEntity(); - test_ret += test_xmlTextWriterWriteVFormatElement(); - test_ret += test_xmlTextWriterWriteVFormatElementNS(); - test_ret += test_xmlTextWriterWriteVFormatPI(); - test_ret += test_xmlTextWriterWriteVFormatRaw(); - test_ret += test_xmlTextWriterWriteVFormatString(); - - if (test_ret != 0) - printf("Module xmlwriter: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlXPathCastBooleanToNumber(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - double ret_val; - int val; /* a boolean */ - int n_val; - - for (n_val = 0;n_val < gen_nb_int;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_int(n_val, 0); - - ret_val = xmlXPathCastBooleanToNumber(val); - desret_double(ret_val); - call_tests++; - des_int(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCastBooleanToNumber", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCastBooleanToString(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlChar * ret_val; - int val; /* a boolean */ - int n_val; - - for (n_val = 0;n_val < gen_nb_int;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_int(n_val, 0); - - ret_val = xmlXPathCastBooleanToString(val); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_int(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCastBooleanToString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCastNodeSetToBoolean(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlNodeSetPtr ns; /* a node-set */ - int n_ns; - - for (n_ns = 0;n_ns < gen_nb_xmlNodeSetPtr;n_ns++) { - mem_base = xmlMemBlocks(); - ns = gen_xmlNodeSetPtr(n_ns, 0); - - ret_val = xmlXPathCastNodeSetToBoolean(ns); - desret_int(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_ns, ns, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCastNodeSetToBoolean", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ns); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCastNodeSetToNumber(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - double ret_val; - xmlNodeSetPtr ns; /* a node-set */ - int n_ns; - - for (n_ns = 0;n_ns < gen_nb_xmlNodeSetPtr;n_ns++) { - mem_base = xmlMemBlocks(); - ns = gen_xmlNodeSetPtr(n_ns, 0); - - ret_val = xmlXPathCastNodeSetToNumber(ns); - desret_double(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_ns, ns, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCastNodeSetToNumber", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ns); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCastNodeSetToString(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlNodeSetPtr ns; /* a node-set */ - int n_ns; - - for (n_ns = 0;n_ns < gen_nb_xmlNodeSetPtr;n_ns++) { - mem_base = xmlMemBlocks(); - ns = gen_xmlNodeSetPtr(n_ns, 0); - - ret_val = xmlXPathCastNodeSetToString(ns); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_ns, ns, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCastNodeSetToString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ns); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCastNodeToNumber(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - double ret_val; - xmlNodePtr node; /* a node */ - int n_node; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - - ret_val = xmlXPathCastNodeToNumber(node); - desret_double(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCastNodeToNumber", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCastNodeToString(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlNodePtr node; /* a node */ - int n_node; - - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - node = gen_xmlNodePtr(n_node, 0); - - ret_val = xmlXPathCastNodeToString(node); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlNodePtr(n_node, node, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCastNodeToString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCastNumberToBoolean(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - double val; /* a number */ - int n_val; - - for (n_val = 0;n_val < gen_nb_double;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_double(n_val, 0); - - ret_val = xmlXPathCastNumberToBoolean(val); - desret_int(ret_val); - call_tests++; - des_double(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCastNumberToBoolean", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCastNumberToString(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlChar * ret_val; - double val; /* a number */ - int n_val; - - for (n_val = 0;n_val < gen_nb_double;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_double(n_val, 0); - - ret_val = xmlXPathCastNumberToString(val); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_double(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCastNumberToString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCastStringToBoolean(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlChar * val; /* a string */ - int n_val; - - for (n_val = 0;n_val < gen_nb_const_xmlChar_ptr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_const_xmlChar_ptr(n_val, 0); - - ret_val = xmlXPathCastStringToBoolean((const xmlChar *)val); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_val, (const xmlChar *)val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCastStringToBoolean", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCastStringToNumber(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - double ret_val; - xmlChar * val; /* a string */ - int n_val; - - for (n_val = 0;n_val < gen_nb_const_xmlChar_ptr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_const_xmlChar_ptr(n_val, 0); - - ret_val = xmlXPathCastStringToNumber((const xmlChar *)val); - desret_double(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_val, (const xmlChar *)val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCastStringToNumber", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCastToBoolean(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlXPathObjectPtr val; /* an XPath object */ - int n_val; - - for (n_val = 0;n_val < gen_nb_xmlXPathObjectPtr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_xmlXPathObjectPtr(n_val, 0); - - ret_val = xmlXPathCastToBoolean(val); - desret_int(ret_val); - call_tests++; - des_xmlXPathObjectPtr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCastToBoolean", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCastToNumber(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - double ret_val; - xmlXPathObjectPtr val; /* an XPath object */ - int n_val; - - for (n_val = 0;n_val < gen_nb_xmlXPathObjectPtr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_xmlXPathObjectPtr(n_val, 0); - - ret_val = xmlXPathCastToNumber(val); - desret_double(ret_val); - call_tests++; - des_xmlXPathObjectPtr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCastToNumber", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCastToString(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlXPathObjectPtr val; /* an XPath object */ - int n_val; - - for (n_val = 0;n_val < gen_nb_xmlXPathObjectPtr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_xmlXPathObjectPtr(n_val, 0); - - ret_val = xmlXPathCastToString(val); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlXPathObjectPtr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCastToString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCmpNodes(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlNodePtr node1; /* the first node */ - int n_node1; - xmlNodePtr node2; /* the second node */ - int n_node2; - - for (n_node1 = 0;n_node1 < gen_nb_xmlNodePtr;n_node1++) { - for (n_node2 = 0;n_node2 < gen_nb_xmlNodePtr;n_node2++) { - mem_base = xmlMemBlocks(); - node1 = gen_xmlNodePtr(n_node1, 0); - node2 = gen_xmlNodePtr(n_node2, 1); - - ret_val = xmlXPathCmpNodes(node1, node2); - desret_int(ret_val); - call_tests++; - des_xmlNodePtr(n_node1, node1, 0); - des_xmlNodePtr(n_node2, node2, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCmpNodes", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_node1); - printf(" %d", n_node2); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCompile(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - -#ifdef LIBXML_XPATH_ENABLED - -#define gen_nb_xmlXPathCompExprPtr 1 -static xmlXPathCompExprPtr gen_xmlXPathCompExprPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlXPathCompExprPtr(int no ATTRIBUTE_UNUSED, xmlXPathCompExprPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - -#ifdef LIBXML_XPATH_ENABLED - -#define gen_nb_xmlXPathContextPtr 1 -static xmlXPathContextPtr gen_xmlXPathContextPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlXPathContextPtr(int no ATTRIBUTE_UNUSED, xmlXPathContextPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlXPathCompiledEval(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlXPathCompExprPtr comp; /* the compiled XPath expression */ - int n_comp; - xmlXPathContextPtr ctx; /* the XPath context */ - int n_ctx; - - for (n_comp = 0;n_comp < gen_nb_xmlXPathCompExprPtr;n_comp++) { - for (n_ctx = 0;n_ctx < gen_nb_xmlXPathContextPtr;n_ctx++) { - mem_base = xmlMemBlocks(); - comp = gen_xmlXPathCompExprPtr(n_comp, 0); - ctx = gen_xmlXPathContextPtr(n_ctx, 1); - - ret_val = xmlXPathCompiledEval(comp, ctx); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlXPathCompExprPtr(n_comp, comp, 0); - des_xmlXPathContextPtr(n_ctx, ctx, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCompiledEval", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_comp); - printf(" %d", n_ctx); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathContextSetCache(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlXPathContextPtr ctxt; /* the XPath context */ - int n_ctxt; - int active; /* enables/disables (creates/frees) the cache */ - int n_active; - int value; /* a value with semantics dependant on @options */ - int n_value; - int options; /* options (currently only the value 0 is used) */ - int n_options; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathContextPtr;n_ctxt++) { - for (n_active = 0;n_active < gen_nb_int;n_active++) { - for (n_value = 0;n_value < gen_nb_int;n_value++) { - for (n_options = 0;n_options < gen_nb_int;n_options++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathContextPtr(n_ctxt, 0); - active = gen_int(n_active, 1); - value = gen_int(n_value, 2); - options = gen_int(n_options, 3); - - ret_val = xmlXPathContextSetCache(ctxt, active, value, options); - desret_int(ret_val); - call_tests++; - des_xmlXPathContextPtr(n_ctxt, ctxt, 0); - des_int(n_active, active, 1); - des_int(n_value, value, 2); - des_int(n_options, options, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathContextSetCache", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_active); - printf(" %d", n_value); - printf(" %d", n_options); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathConvertBoolean(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlXPathObjectPtr val; /* an XPath object */ - int n_val; - - for (n_val = 0;n_val < gen_nb_xmlXPathObjectPtr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_xmlXPathObjectPtr(n_val, 0); - - ret_val = xmlXPathConvertBoolean(val); - val = NULL; - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlXPathObjectPtr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathConvertBoolean", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathConvertNumber(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlXPathObjectPtr val; /* an XPath object */ - int n_val; - - for (n_val = 0;n_val < gen_nb_xmlXPathObjectPtr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_xmlXPathObjectPtr(n_val, 0); - - ret_val = xmlXPathConvertNumber(val); - val = NULL; - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlXPathObjectPtr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathConvertNumber", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathConvertString(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlXPathObjectPtr val; /* an XPath object */ - int n_val; - - for (n_val = 0;n_val < gen_nb_xmlXPathObjectPtr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_xmlXPathObjectPtr(n_val, 0); - - ret_val = xmlXPathConvertString(val); - val = NULL; - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlXPathObjectPtr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathConvertString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCtxtCompile(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlXPathEval(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlChar * str; /* the XPath expression */ - int n_str; - xmlXPathContextPtr ctx; /* the XPath context */ - int n_ctx; - - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - for (n_ctx = 0;n_ctx < gen_nb_xmlXPathContextPtr;n_ctx++) { - mem_base = xmlMemBlocks(); - str = gen_const_xmlChar_ptr(n_str, 0); - ctx = gen_xmlXPathContextPtr(n_ctx, 1); - - ret_val = xmlXPathEval((const xmlChar *)str, ctx); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 0); - des_xmlXPathContextPtr(n_ctx, ctx, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathEval", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str); - printf(" %d", n_ctx); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathEvalExpression(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlChar * str; /* the XPath expression */ - int n_str; - xmlXPathContextPtr ctxt; /* the XPath context */ - int n_ctxt; - - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - str = gen_const_xmlChar_ptr(n_str, 0); - ctxt = gen_xmlXPathContextPtr(n_ctxt, 1); - - ret_val = xmlXPathEvalExpression((const xmlChar *)str, ctxt); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 0); - des_xmlXPathContextPtr(n_ctxt, ctxt, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathEvalExpression", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str); - printf(" %d", n_ctxt); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathEvalPredicate(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlXPathContextPtr ctxt; /* the XPath context */ - int n_ctxt; - xmlXPathObjectPtr res; /* the Predicate Expression evaluation result */ - int n_res; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathContextPtr;n_ctxt++) { - for (n_res = 0;n_res < gen_nb_xmlXPathObjectPtr;n_res++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathContextPtr(n_ctxt, 0); - res = gen_xmlXPathObjectPtr(n_res, 1); - - ret_val = xmlXPathEvalPredicate(ctxt, res); - desret_int(ret_val); - call_tests++; - des_xmlXPathContextPtr(n_ctxt, ctxt, 0); - des_xmlXPathObjectPtr(n_res, res, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathEvalPredicate", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_res); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathInit(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - - mem_base = xmlMemBlocks(); - - xmlXPathInit(); - call_tests++; - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathInit", - xmlMemBlocks() - mem_base); - test_ret++; - printf("\n"); - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathIsInf(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - double val; /* a double value */ - int n_val; - - for (n_val = 0;n_val < gen_nb_double;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_double(n_val, 0); - - ret_val = xmlXPathIsInf(val); - desret_int(ret_val); - call_tests++; - des_double(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathIsInf", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathIsNaN(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) - int mem_base; - int ret_val; - double val; /* a double value */ - int n_val; - - for (n_val = 0;n_val < gen_nb_double;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_double(n_val, 0); - - ret_val = xmlXPathIsNaN(val); - desret_int(ret_val); - call_tests++; - des_double(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathIsNaN", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNewContext(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlXPathNodeSetCreate(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr ret_val; - xmlNodePtr val; /* an initial xmlNodePtr, or NULL */ - int n_val; - - for (n_val = 0;n_val < gen_nb_xmlNodePtr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_xmlNodePtr(n_val, 0); - - ret_val = xmlXPathNodeSetCreate(val); - desret_xmlNodeSetPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNodeSetCreate", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathObjectCopy(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlXPathObjectPtr val; /* the original object */ - int n_val; - - for (n_val = 0;n_val < gen_nb_xmlXPathObjectPtr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_xmlXPathObjectPtr(n_val, 0); - - ret_val = xmlXPathObjectCopy(val); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlXPathObjectPtr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathObjectCopy", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathOrderDocElems(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - long ret_val; - xmlDocPtr doc; /* an input document */ - int n_doc; - - for (n_doc = 0;n_doc < gen_nb_xmlDocPtr;n_doc++) { - mem_base = xmlMemBlocks(); - doc = gen_xmlDocPtr(n_doc, 0); - - ret_val = xmlXPathOrderDocElems(doc); - desret_long(ret_val); - call_tests++; - des_xmlDocPtr(n_doc, doc, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathOrderDocElems", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_doc); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_xpath(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing xpath : 29 of 37 functions ...\n"); - test_ret += test_xmlXPathCastBooleanToNumber(); - test_ret += test_xmlXPathCastBooleanToString(); - test_ret += test_xmlXPathCastNodeSetToBoolean(); - test_ret += test_xmlXPathCastNodeSetToNumber(); - test_ret += test_xmlXPathCastNodeSetToString(); - test_ret += test_xmlXPathCastNodeToNumber(); - test_ret += test_xmlXPathCastNodeToString(); - test_ret += test_xmlXPathCastNumberToBoolean(); - test_ret += test_xmlXPathCastNumberToString(); - test_ret += test_xmlXPathCastStringToBoolean(); - test_ret += test_xmlXPathCastStringToNumber(); - test_ret += test_xmlXPathCastToBoolean(); - test_ret += test_xmlXPathCastToNumber(); - test_ret += test_xmlXPathCastToString(); - test_ret += test_xmlXPathCmpNodes(); - test_ret += test_xmlXPathCompile(); - test_ret += test_xmlXPathCompiledEval(); - test_ret += test_xmlXPathContextSetCache(); - test_ret += test_xmlXPathConvertBoolean(); - test_ret += test_xmlXPathConvertNumber(); - test_ret += test_xmlXPathConvertString(); - test_ret += test_xmlXPathCtxtCompile(); - test_ret += test_xmlXPathEval(); - test_ret += test_xmlXPathEvalExpression(); - test_ret += test_xmlXPathEvalPredicate(); - test_ret += test_xmlXPathInit(); - test_ret += test_xmlXPathIsInf(); - test_ret += test_xmlXPathIsNaN(); - test_ret += test_xmlXPathNewContext(); - test_ret += test_xmlXPathNodeSetCreate(); - test_ret += test_xmlXPathObjectCopy(); - test_ret += test_xmlXPathOrderDocElems(); - - if (test_ret != 0) - printf("Module xpath: %d errors\n", test_ret); - return(test_ret); -} -#ifdef LIBXML_XPATH_ENABLED - -#define gen_nb_xmlXPathParserContextPtr 1 -static xmlXPathParserContextPtr gen_xmlXPathParserContextPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlXPathParserContextPtr(int no ATTRIBUTE_UNUSED, xmlXPathParserContextPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_valuePop(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlXPathParserContextPtr ctxt; /* an XPath evaluation context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - ret_val = valuePop(ctxt); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in valuePop", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_valuePush(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlXPathParserContextPtr ctxt; /* an XPath evaluation context */ - int n_ctxt; - xmlXPathObjectPtr value; /* the XPath object */ - int n_value; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_value = 0;n_value < gen_nb_xmlXPathObjectPtr;n_value++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - value = gen_xmlXPathObjectPtr(n_value, 1); - - ret_val = valuePush(ctxt, value); - desret_int(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_xmlXPathObjectPtr(n_value, value, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in valuePush", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_value); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathAddValues(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - xmlXPathAddValues(ctxt); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathAddValues", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathBooleanFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathBooleanFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathBooleanFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCeilingFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathCeilingFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCeilingFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCompareValues(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int inf; /* less than (1) or greater than (0) */ - int n_inf; - int strict; /* is the comparison strict */ - int n_strict; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_inf = 0;n_inf < gen_nb_int;n_inf++) { - for (n_strict = 0;n_strict < gen_nb_int;n_strict++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - inf = gen_int(n_inf, 1); - strict = gen_int(n_strict, 2); - - ret_val = xmlXPathCompareValues(ctxt, inf, strict); - desret_int(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_inf, inf, 1); - des_int(n_strict, strict, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCompareValues", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_inf); - printf(" %d", n_strict); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathConcatFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathConcatFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathConcatFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathContainsFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathContainsFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathContainsFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathCountFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathCountFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathCountFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathDebugDumpCompExpr(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_DEBUG_ENABLED) - int mem_base; - FILE * output; /* the FILE * for the output */ - int n_output; - xmlXPathCompExprPtr comp; /* the precompiled XPath expression */ - int n_comp; - int depth; /* the indentation level. */ - int n_depth; - - for (n_output = 0;n_output < gen_nb_FILE_ptr;n_output++) { - for (n_comp = 0;n_comp < gen_nb_xmlXPathCompExprPtr;n_comp++) { - for (n_depth = 0;n_depth < gen_nb_int;n_depth++) { - mem_base = xmlMemBlocks(); - output = gen_FILE_ptr(n_output, 0); - comp = gen_xmlXPathCompExprPtr(n_comp, 1); - depth = gen_int(n_depth, 2); - - xmlXPathDebugDumpCompExpr(output, comp, depth); - call_tests++; - des_FILE_ptr(n_output, output, 0); - des_xmlXPathCompExprPtr(n_comp, comp, 1); - des_int(n_depth, depth, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathDebugDumpCompExpr", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_comp); - printf(" %d", n_depth); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathDebugDumpObject(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_DEBUG_ENABLED) - int mem_base; - FILE * output; /* the FILE * to dump the output */ - int n_output; - xmlXPathObjectPtr cur; /* the object to inspect */ - int n_cur; - int depth; /* indentation level */ - int n_depth; - - for (n_output = 0;n_output < gen_nb_FILE_ptr;n_output++) { - for (n_cur = 0;n_cur < gen_nb_xmlXPathObjectPtr;n_cur++) { - for (n_depth = 0;n_depth < gen_nb_int;n_depth++) { - mem_base = xmlMemBlocks(); - output = gen_FILE_ptr(n_output, 0); - cur = gen_xmlXPathObjectPtr(n_cur, 1); - depth = gen_int(n_depth, 2); - - xmlXPathDebugDumpObject(output, cur, depth); - call_tests++; - des_FILE_ptr(n_output, output, 0); - des_xmlXPathObjectPtr(n_cur, cur, 1); - des_int(n_depth, depth, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathDebugDumpObject", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_output); - printf(" %d", n_cur); - printf(" %d", n_depth); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathDifference(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr ret_val; - xmlNodeSetPtr nodes1; /* a node-set */ - int n_nodes1; - xmlNodeSetPtr nodes2; /* a node-set */ - int n_nodes2; - - for (n_nodes1 = 0;n_nodes1 < gen_nb_xmlNodeSetPtr;n_nodes1++) { - for (n_nodes2 = 0;n_nodes2 < gen_nb_xmlNodeSetPtr;n_nodes2++) { - mem_base = xmlMemBlocks(); - nodes1 = gen_xmlNodeSetPtr(n_nodes1, 0); - nodes2 = gen_xmlNodeSetPtr(n_nodes2, 1); - - ret_val = xmlXPathDifference(nodes1, nodes2); - desret_xmlNodeSetPtr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_nodes1, nodes1, 0); - des_xmlNodeSetPtr(n_nodes2, nodes2, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathDifference", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_nodes1); - printf(" %d", n_nodes2); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathDistinct(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr ret_val; - xmlNodeSetPtr nodes; /* a node-set */ - int n_nodes; - - for (n_nodes = 0;n_nodes < gen_nb_xmlNodeSetPtr;n_nodes++) { - mem_base = xmlMemBlocks(); - nodes = gen_xmlNodeSetPtr(n_nodes, 0); - - ret_val = xmlXPathDistinct(nodes); - desret_xmlNodeSetPtr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_nodes, nodes, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathDistinct", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_nodes); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathDistinctSorted(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr ret_val; - xmlNodeSetPtr nodes; /* a node-set, sorted by document order */ - int n_nodes; - - for (n_nodes = 0;n_nodes < gen_nb_xmlNodeSetPtr;n_nodes++) { - mem_base = xmlMemBlocks(); - nodes = gen_xmlNodeSetPtr(n_nodes, 0); - - ret_val = xmlXPathDistinctSorted(nodes); - desret_xmlNodeSetPtr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_nodes, nodes, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathDistinctSorted", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_nodes); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathDivValues(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - xmlXPathDivValues(ctxt); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathDivValues", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathEqualValues(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - ret_val = xmlXPathEqualValues(ctxt); - desret_int(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathEqualValues", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathErr(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* a XPath parser context */ - int n_ctxt; - int error; /* the error code */ - int n_error; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_error = 0;n_error < gen_nb_int;n_error++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - error = gen_int(n_error, 1); - - xmlXPathErr(ctxt, error); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_error, error, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathErr", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_error); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathEvalExpr(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - xmlXPathEvalExpr(ctxt); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathEvalExpr", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathEvaluatePredicateResult(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - xmlXPathObjectPtr res; /* the Predicate Expression evaluation result */ - int n_res; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_res = 0;n_res < gen_nb_xmlXPathObjectPtr;n_res++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - res = gen_xmlXPathObjectPtr(n_res, 1); - - ret_val = xmlXPathEvaluatePredicateResult(ctxt, res); - desret_int(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_xmlXPathObjectPtr(n_res, res, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathEvaluatePredicateResult", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_res); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathFalseFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathFalseFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathFalseFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathFloorFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathFloorFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathFloorFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathFunctionLookup(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlXPathFunctionLookupNS(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlXPathHasSameNodes(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlNodeSetPtr nodes1; /* a node-set */ - int n_nodes1; - xmlNodeSetPtr nodes2; /* a node-set */ - int n_nodes2; - - for (n_nodes1 = 0;n_nodes1 < gen_nb_xmlNodeSetPtr;n_nodes1++) { - for (n_nodes2 = 0;n_nodes2 < gen_nb_xmlNodeSetPtr;n_nodes2++) { - mem_base = xmlMemBlocks(); - nodes1 = gen_xmlNodeSetPtr(n_nodes1, 0); - nodes2 = gen_xmlNodeSetPtr(n_nodes2, 1); - - ret_val = xmlXPathHasSameNodes(nodes1, nodes2); - desret_int(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_nodes1, nodes1, 0); - des_xmlNodeSetPtr(n_nodes2, nodes2, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathHasSameNodes", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_nodes1); - printf(" %d", n_nodes2); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathIdFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathIdFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathIdFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathIntersection(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr ret_val; - xmlNodeSetPtr nodes1; /* a node-set */ - int n_nodes1; - xmlNodeSetPtr nodes2; /* a node-set */ - int n_nodes2; - - for (n_nodes1 = 0;n_nodes1 < gen_nb_xmlNodeSetPtr;n_nodes1++) { - for (n_nodes2 = 0;n_nodes2 < gen_nb_xmlNodeSetPtr;n_nodes2++) { - mem_base = xmlMemBlocks(); - nodes1 = gen_xmlNodeSetPtr(n_nodes1, 0); - nodes2 = gen_xmlNodeSetPtr(n_nodes2, 1); - - ret_val = xmlXPathIntersection(nodes1, nodes2); - desret_xmlNodeSetPtr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_nodes1, nodes1, 0); - des_xmlNodeSetPtr(n_nodes2, nodes2, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathIntersection", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_nodes1); - printf(" %d", n_nodes2); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathIsNodeType(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlChar * name; /* a name string */ - int n_name; - - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - name = gen_const_xmlChar_ptr(n_name, 0); - - ret_val = xmlXPathIsNodeType((const xmlChar *)name); - desret_int(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathIsNodeType", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_name); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathLangFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathLangFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathLangFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathLastFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathLastFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathLastFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathLeading(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr ret_val; - xmlNodeSetPtr nodes1; /* a node-set */ - int n_nodes1; - xmlNodeSetPtr nodes2; /* a node-set */ - int n_nodes2; - - for (n_nodes1 = 0;n_nodes1 < gen_nb_xmlNodeSetPtr;n_nodes1++) { - for (n_nodes2 = 0;n_nodes2 < gen_nb_xmlNodeSetPtr;n_nodes2++) { - mem_base = xmlMemBlocks(); - nodes1 = gen_xmlNodeSetPtr(n_nodes1, 0); - nodes2 = gen_xmlNodeSetPtr(n_nodes2, 1); - - ret_val = xmlXPathLeading(nodes1, nodes2); - desret_xmlNodeSetPtr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_nodes1, nodes1, 0); - des_xmlNodeSetPtr(n_nodes2, nodes2, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathLeading", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_nodes1); - printf(" %d", n_nodes2); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathLeadingSorted(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr ret_val; - xmlNodeSetPtr nodes1; /* a node-set, sorted by document order */ - int n_nodes1; - xmlNodeSetPtr nodes2; /* a node-set, sorted by document order */ - int n_nodes2; - - for (n_nodes1 = 0;n_nodes1 < gen_nb_xmlNodeSetPtr;n_nodes1++) { - for (n_nodes2 = 0;n_nodes2 < gen_nb_xmlNodeSetPtr;n_nodes2++) { - mem_base = xmlMemBlocks(); - nodes1 = gen_xmlNodeSetPtr(n_nodes1, 0); - nodes2 = gen_xmlNodeSetPtr(n_nodes2, 1); - - ret_val = xmlXPathLeadingSorted(nodes1, nodes2); - desret_xmlNodeSetPtr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_nodes1, nodes1, 0); - des_xmlNodeSetPtr(n_nodes2, nodes2, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathLeadingSorted", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_nodes1); - printf(" %d", n_nodes2); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathLocalNameFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathLocalNameFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathLocalNameFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathModValues(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - xmlXPathModValues(ctxt); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathModValues", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathMultValues(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - xmlXPathMultValues(ctxt); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathMultValues", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNamespaceURIFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathNamespaceURIFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNamespaceURIFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNewBoolean(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - int val; /* the boolean value */ - int n_val; - - for (n_val = 0;n_val < gen_nb_int;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_int(n_val, 0); - - ret_val = xmlXPathNewBoolean(val); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_int(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNewBoolean", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNewCString(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - char * val; /* the char * value */ - int n_val; - - for (n_val = 0;n_val < gen_nb_const_char_ptr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_const_char_ptr(n_val, 0); - - ret_val = xmlXPathNewCString((const char *)val); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_const_char_ptr(n_val, (const char *)val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNewCString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNewFloat(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - double val; /* the double value */ - int n_val; - - for (n_val = 0;n_val < gen_nb_double;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_double(n_val, 0); - - ret_val = xmlXPathNewFloat(val); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_double(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNewFloat", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNewNodeSet(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlNodePtr val; /* the NodePtr value */ - int n_val; - - for (n_val = 0;n_val < gen_nb_xmlNodePtr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_xmlNodePtr(n_val, 0); - - ret_val = xmlXPathNewNodeSet(val); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNewNodeSet", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNewNodeSetList(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlNodeSetPtr val; /* an existing NodeSet */ - int n_val; - - for (n_val = 0;n_val < gen_nb_xmlNodeSetPtr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_xmlNodeSetPtr(n_val, 0); - - ret_val = xmlXPathNewNodeSetList(val); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNewNodeSetList", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNewParserContext(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlXPathNewString(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlChar * val; /* the xmlChar * value */ - int n_val; - - for (n_val = 0;n_val < gen_nb_const_xmlChar_ptr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_const_xmlChar_ptr(n_val, 0); - - ret_val = xmlXPathNewString((const xmlChar *)val); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_val, (const xmlChar *)val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNewString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNextAncestor(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - xmlNodePtr cur; /* the current node in the traversal */ - int n_cur; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - cur = gen_xmlNodePtr(n_cur, 1); - - ret_val = xmlXPathNextAncestor(ctxt, cur); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNextAncestor", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNextAncestorOrSelf(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - xmlNodePtr cur; /* the current node in the traversal */ - int n_cur; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - cur = gen_xmlNodePtr(n_cur, 1); - - ret_val = xmlXPathNextAncestorOrSelf(ctxt, cur); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNextAncestorOrSelf", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNextAttribute(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - xmlNodePtr cur; /* the current attribute in the traversal */ - int n_cur; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - cur = gen_xmlNodePtr(n_cur, 1); - - ret_val = xmlXPathNextAttribute(ctxt, cur); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNextAttribute", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNextChild(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - xmlNodePtr cur; /* the current node in the traversal */ - int n_cur; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - cur = gen_xmlNodePtr(n_cur, 1); - - ret_val = xmlXPathNextChild(ctxt, cur); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNextChild", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNextDescendant(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - xmlNodePtr cur; /* the current node in the traversal */ - int n_cur; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - cur = gen_xmlNodePtr(n_cur, 1); - - ret_val = xmlXPathNextDescendant(ctxt, cur); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNextDescendant", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNextDescendantOrSelf(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - xmlNodePtr cur; /* the current node in the traversal */ - int n_cur; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - cur = gen_xmlNodePtr(n_cur, 1); - - ret_val = xmlXPathNextDescendantOrSelf(ctxt, cur); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNextDescendantOrSelf", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNextFollowing(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - xmlNodePtr cur; /* the current node in the traversal */ - int n_cur; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - cur = gen_xmlNodePtr(n_cur, 1); - - ret_val = xmlXPathNextFollowing(ctxt, cur); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNextFollowing", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNextFollowingSibling(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - xmlNodePtr cur; /* the current node in the traversal */ - int n_cur; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - cur = gen_xmlNodePtr(n_cur, 1); - - ret_val = xmlXPathNextFollowingSibling(ctxt, cur); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNextFollowingSibling", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNextNamespace(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - xmlNodePtr cur; /* the current attribute in the traversal */ - int n_cur; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - cur = gen_xmlNodePtr(n_cur, 1); - - ret_val = xmlXPathNextNamespace(ctxt, cur); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNextNamespace", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNextParent(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - xmlNodePtr cur; /* the current node in the traversal */ - int n_cur; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - cur = gen_xmlNodePtr(n_cur, 1); - - ret_val = xmlXPathNextParent(ctxt, cur); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNextParent", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNextPreceding(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - xmlNodePtr cur; /* the current node in the traversal */ - int n_cur; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - cur = gen_xmlNodePtr(n_cur, 1); - - ret_val = xmlXPathNextPreceding(ctxt, cur); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNextPreceding", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNextPrecedingSibling(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - xmlNodePtr cur; /* the current node in the traversal */ - int n_cur; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - cur = gen_xmlNodePtr(n_cur, 1); - - ret_val = xmlXPathNextPrecedingSibling(ctxt, cur); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNextPrecedingSibling", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNextSelf(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - xmlNodePtr cur; /* the current node in the traversal */ - int n_cur; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - cur = gen_xmlNodePtr(n_cur, 1); - - ret_val = xmlXPathNextSelf(ctxt, cur); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_cur, cur, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNextSelf", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_cur); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNodeLeading(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr ret_val; - xmlNodeSetPtr nodes; /* a node-set */ - int n_nodes; - xmlNodePtr node; /* a node */ - int n_node; - - for (n_nodes = 0;n_nodes < gen_nb_xmlNodeSetPtr;n_nodes++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - nodes = gen_xmlNodeSetPtr(n_nodes, 0); - node = gen_xmlNodePtr(n_node, 1); - - ret_val = xmlXPathNodeLeading(nodes, node); - desret_xmlNodeSetPtr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_nodes, nodes, 0); - des_xmlNodePtr(n_node, node, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNodeLeading", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_nodes); - printf(" %d", n_node); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNodeLeadingSorted(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr ret_val; - xmlNodeSetPtr nodes; /* a node-set, sorted by document order */ - int n_nodes; - xmlNodePtr node; /* a node */ - int n_node; - - for (n_nodes = 0;n_nodes < gen_nb_xmlNodeSetPtr;n_nodes++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - nodes = gen_xmlNodeSetPtr(n_nodes, 0); - node = gen_xmlNodePtr(n_node, 1); - - ret_val = xmlXPathNodeLeadingSorted(nodes, node); - desret_xmlNodeSetPtr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_nodes, nodes, 0); - des_xmlNodePtr(n_node, node, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNodeLeadingSorted", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_nodes); - printf(" %d", n_node); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNodeSetAdd(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr cur; /* the initial node set */ - int n_cur; - xmlNodePtr val; /* a new xmlNodePtr */ - int n_val; - - for (n_cur = 0;n_cur < gen_nb_xmlNodeSetPtr;n_cur++) { - for (n_val = 0;n_val < gen_nb_xmlNodePtr;n_val++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodeSetPtr(n_cur, 0); - val = gen_xmlNodePtr(n_val, 1); - - xmlXPathNodeSetAdd(cur, val); - call_tests++; - des_xmlNodeSetPtr(n_cur, cur, 0); - des_xmlNodePtr(n_val, val, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNodeSetAdd", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_val); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNodeSetAddNs(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr cur; /* the initial node set */ - int n_cur; - xmlNodePtr node; /* the hosting node */ - int n_node; - xmlNsPtr ns; /* a the namespace node */ - int n_ns; - - for (n_cur = 0;n_cur < gen_nb_xmlNodeSetPtr;n_cur++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - for (n_ns = 0;n_ns < gen_nb_xmlNsPtr;n_ns++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodeSetPtr(n_cur, 0); - node = gen_xmlNodePtr(n_node, 1); - ns = gen_xmlNsPtr(n_ns, 2); - - xmlXPathNodeSetAddNs(cur, node, ns); - call_tests++; - des_xmlNodeSetPtr(n_cur, cur, 0); - des_xmlNodePtr(n_node, node, 1); - des_xmlNsPtr(n_ns, ns, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNodeSetAddNs", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_node); - printf(" %d", n_ns); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNodeSetAddUnique(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr cur; /* the initial node set */ - int n_cur; - xmlNodePtr val; /* a new xmlNodePtr */ - int n_val; - - for (n_cur = 0;n_cur < gen_nb_xmlNodeSetPtr;n_cur++) { - for (n_val = 0;n_val < gen_nb_xmlNodePtr;n_val++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodeSetPtr(n_cur, 0); - val = gen_xmlNodePtr(n_val, 1); - - xmlXPathNodeSetAddUnique(cur, val); - call_tests++; - des_xmlNodeSetPtr(n_cur, cur, 0); - des_xmlNodePtr(n_val, val, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNodeSetAddUnique", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_val); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNodeSetContains(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlNodeSetPtr cur; /* the node-set */ - int n_cur; - xmlNodePtr val; /* the node */ - int n_val; - - for (n_cur = 0;n_cur < gen_nb_xmlNodeSetPtr;n_cur++) { - for (n_val = 0;n_val < gen_nb_xmlNodePtr;n_val++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodeSetPtr(n_cur, 0); - val = gen_xmlNodePtr(n_val, 1); - - ret_val = xmlXPathNodeSetContains(cur, val); - desret_int(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_cur, cur, 0); - des_xmlNodePtr(n_val, val, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNodeSetContains", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_val); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNodeSetDel(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr cur; /* the initial node set */ - int n_cur; - xmlNodePtr val; /* an xmlNodePtr */ - int n_val; - - for (n_cur = 0;n_cur < gen_nb_xmlNodeSetPtr;n_cur++) { - for (n_val = 0;n_val < gen_nb_xmlNodePtr;n_val++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodeSetPtr(n_cur, 0); - val = gen_xmlNodePtr(n_val, 1); - - xmlXPathNodeSetDel(cur, val); - call_tests++; - des_xmlNodeSetPtr(n_cur, cur, 0); - des_xmlNodePtr(n_val, val, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNodeSetDel", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_val); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNodeSetMerge(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr ret_val; - xmlNodeSetPtr val1; /* the first NodeSet or NULL */ - int n_val1; - xmlNodeSetPtr val2; /* the second NodeSet */ - int n_val2; - - for (n_val1 = 0;n_val1 < gen_nb_xmlNodeSetPtr;n_val1++) { - for (n_val2 = 0;n_val2 < gen_nb_xmlNodeSetPtr;n_val2++) { - mem_base = xmlMemBlocks(); - val1 = gen_xmlNodeSetPtr(n_val1, 0); - val2 = gen_xmlNodeSetPtr(n_val2, 1); - - ret_val = xmlXPathNodeSetMerge(val1, val2); - desret_xmlNodeSetPtr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_val1, val1, 0); - des_xmlNodeSetPtr(n_val2, val2, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNodeSetMerge", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val1); - printf(" %d", n_val2); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNodeSetRemove(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr cur; /* the initial node set */ - int n_cur; - int val; /* the index to remove */ - int n_val; - - for (n_cur = 0;n_cur < gen_nb_xmlNodeSetPtr;n_cur++) { - for (n_val = 0;n_val < gen_nb_int;n_val++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlNodeSetPtr(n_cur, 0); - val = gen_int(n_val, 1); - - xmlXPathNodeSetRemove(cur, val); - call_tests++; - des_xmlNodeSetPtr(n_cur, cur, 0); - des_int(n_val, val, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNodeSetRemove", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_val); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNodeSetSort(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr set; /* the node set */ - int n_set; - - for (n_set = 0;n_set < gen_nb_xmlNodeSetPtr;n_set++) { - mem_base = xmlMemBlocks(); - set = gen_xmlNodeSetPtr(n_set, 0); - - xmlXPathNodeSetSort(set); - call_tests++; - des_xmlNodeSetPtr(n_set, set, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNodeSetSort", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_set); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNodeTrailing(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr ret_val; - xmlNodeSetPtr nodes; /* a node-set */ - int n_nodes; - xmlNodePtr node; /* a node */ - int n_node; - - for (n_nodes = 0;n_nodes < gen_nb_xmlNodeSetPtr;n_nodes++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - nodes = gen_xmlNodeSetPtr(n_nodes, 0); - node = gen_xmlNodePtr(n_node, 1); - - ret_val = xmlXPathNodeTrailing(nodes, node); - desret_xmlNodeSetPtr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_nodes, nodes, 0); - des_xmlNodePtr(n_node, node, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNodeTrailing", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_nodes); - printf(" %d", n_node); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNodeTrailingSorted(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr ret_val; - xmlNodeSetPtr nodes; /* a node-set, sorted by document order */ - int n_nodes; - xmlNodePtr node; /* a node */ - int n_node; - - for (n_nodes = 0;n_nodes < gen_nb_xmlNodeSetPtr;n_nodes++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { - mem_base = xmlMemBlocks(); - nodes = gen_xmlNodeSetPtr(n_nodes, 0); - node = gen_xmlNodePtr(n_node, 1); - - ret_val = xmlXPathNodeTrailingSorted(nodes, node); - desret_xmlNodeSetPtr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_nodes, nodes, 0); - des_xmlNodePtr(n_node, node, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNodeTrailingSorted", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_nodes); - printf(" %d", n_node); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNormalizeFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathNormalizeFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNormalizeFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNotEqualValues(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - ret_val = xmlXPathNotEqualValues(ctxt); - desret_int(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNotEqualValues", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNotFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathNotFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNotFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNsLookup(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - const xmlChar * ret_val; - xmlXPathContextPtr ctxt; /* the XPath context */ - int n_ctxt; - xmlChar * prefix; /* the namespace prefix value */ - int n_prefix; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathContextPtr;n_ctxt++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathContextPtr(n_ctxt, 0); - prefix = gen_const_xmlChar_ptr(n_prefix, 1); - - ret_val = xmlXPathNsLookup(ctxt, (const xmlChar *)prefix); - desret_const_xmlChar_ptr(ret_val); - call_tests++; - des_xmlXPathContextPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNsLookup", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_prefix); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathNumberFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathNumberFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathNumberFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathParseNCName(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - ret_val = xmlXPathParseNCName(ctxt); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathParseNCName", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathParseName(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - ret_val = xmlXPathParseName(ctxt); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathParseName", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathPopBoolean(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlXPathParserContextPtr ctxt; /* an XPath parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - ret_val = xmlXPathPopBoolean(ctxt); - desret_int(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathPopBoolean", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathPopExternal(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - void * ret_val; - xmlXPathParserContextPtr ctxt; /* an XPath parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - ret_val = xmlXPathPopExternal(ctxt); - desret_void_ptr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathPopExternal", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathPopNodeSet(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr ret_val; - xmlXPathParserContextPtr ctxt; /* an XPath parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - ret_val = xmlXPathPopNodeSet(ctxt); - desret_xmlNodeSetPtr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathPopNodeSet", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathPopNumber(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - double ret_val; - xmlXPathParserContextPtr ctxt; /* an XPath parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - ret_val = xmlXPathPopNumber(ctxt); - desret_double(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathPopNumber", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathPopString(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlChar * ret_val; - xmlXPathParserContextPtr ctxt; /* an XPath parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - ret_val = xmlXPathPopString(ctxt); - desret_xmlChar_ptr(ret_val); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathPopString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathPositionFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathPositionFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathPositionFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathRegisterAllFunctions(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathContextPtr ctxt; /* the XPath context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathContextPtr(n_ctxt, 0); - - xmlXPathRegisterAllFunctions(ctxt); - call_tests++; - des_xmlXPathContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathRegisterAllFunctions", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathRegisterFunc(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlXPathRegisterFuncLookup(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlXPathRegisterFuncNS(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlXPathRegisterNs(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlXPathContextPtr ctxt; /* the XPath context */ - int n_ctxt; - xmlChar * prefix; /* the namespace prefix */ - int n_prefix; - xmlChar * ns_uri; /* the namespace name */ - int n_ns_uri; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathContextPtr;n_ctxt++) { - for (n_prefix = 0;n_prefix < gen_nb_const_xmlChar_ptr;n_prefix++) { - for (n_ns_uri = 0;n_ns_uri < gen_nb_const_xmlChar_ptr;n_ns_uri++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathContextPtr(n_ctxt, 0); - prefix = gen_const_xmlChar_ptr(n_prefix, 1); - ns_uri = gen_const_xmlChar_ptr(n_ns_uri, 2); - - ret_val = xmlXPathRegisterNs(ctxt, (const xmlChar *)prefix, (const xmlChar *)ns_uri); - desret_int(ret_val); - call_tests++; - des_xmlXPathContextPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_prefix, (const xmlChar *)prefix, 1); - des_const_xmlChar_ptr(n_ns_uri, (const xmlChar *)ns_uri, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathRegisterNs", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_prefix); - printf(" %d", n_ns_uri); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathRegisterVariable(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlXPathContextPtr ctxt; /* the XPath context */ - int n_ctxt; - xmlChar * name; /* the variable name */ - int n_name; - xmlXPathObjectPtr value; /* the variable value or NULL */ - int n_value; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathContextPtr;n_ctxt++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_value = 0;n_value < gen_nb_xmlXPathObjectPtr;n_value++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathContextPtr(n_ctxt, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - value = gen_xmlXPathObjectPtr(n_value, 2); - - ret_val = xmlXPathRegisterVariable(ctxt, (const xmlChar *)name, value); - desret_int(ret_val); - call_tests++; - des_xmlXPathContextPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_xmlXPathObjectPtr(n_value, value, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathRegisterVariable", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_name); - printf(" %d", n_value); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathRegisterVariableLookup(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlXPathRegisterVariableNS(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - int ret_val; - xmlXPathContextPtr ctxt; /* the XPath context */ - int n_ctxt; - xmlChar * name; /* the variable name */ - int n_name; - xmlChar * ns_uri; /* the variable namespace URI */ - int n_ns_uri; - xmlXPathObjectPtr value; /* the variable value or NULL */ - int n_value; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathContextPtr;n_ctxt++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_ns_uri = 0;n_ns_uri < gen_nb_const_xmlChar_ptr;n_ns_uri++) { - for (n_value = 0;n_value < gen_nb_xmlXPathObjectPtr;n_value++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathContextPtr(n_ctxt, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - ns_uri = gen_const_xmlChar_ptr(n_ns_uri, 2); - value = gen_xmlXPathObjectPtr(n_value, 3); - - ret_val = xmlXPathRegisterVariableNS(ctxt, (const xmlChar *)name, (const xmlChar *)ns_uri, value); - desret_int(ret_val); - call_tests++; - des_xmlXPathContextPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_ns_uri, (const xmlChar *)ns_uri, 2); - des_xmlXPathObjectPtr(n_value, value, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathRegisterVariableNS", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_name); - printf(" %d", n_ns_uri); - printf(" %d", n_value); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathRegisteredFuncsCleanup(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathContextPtr ctxt; /* the XPath context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathContextPtr(n_ctxt, 0); - - xmlXPathRegisteredFuncsCleanup(ctxt); - call_tests++; - des_xmlXPathContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathRegisteredFuncsCleanup", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathRegisteredNsCleanup(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathContextPtr ctxt; /* the XPath context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathContextPtr(n_ctxt, 0); - - xmlXPathRegisteredNsCleanup(ctxt); - call_tests++; - des_xmlXPathContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathRegisteredNsCleanup", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathRegisteredVariablesCleanup(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathContextPtr ctxt; /* the XPath context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathContextPtr(n_ctxt, 0); - - xmlXPathRegisteredVariablesCleanup(ctxt); - call_tests++; - des_xmlXPathContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathRegisteredVariablesCleanup", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathRoot(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - xmlXPathRoot(ctxt); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathRoot", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathRoundFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathRoundFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathRoundFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathStartsWithFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathStartsWithFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathStartsWithFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathStringEvalNumber(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - double ret_val; - xmlChar * str; /* A string to scan */ - int n_str; - - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - mem_base = xmlMemBlocks(); - str = gen_const_xmlChar_ptr(n_str, 0); - - ret_val = xmlXPathStringEvalNumber((const xmlChar *)str); - desret_double(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathStringEvalNumber", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathStringFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathStringFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathStringFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathStringLengthFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathStringLengthFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathStringLengthFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathSubValues(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - xmlXPathSubValues(ctxt); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathSubValues", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathSubstringAfterFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathSubstringAfterFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathSubstringAfterFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathSubstringBeforeFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathSubstringBeforeFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathSubstringBeforeFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathSubstringFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathSubstringFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathSubstringFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathSumFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathSumFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathSumFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathTrailing(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr ret_val; - xmlNodeSetPtr nodes1; /* a node-set */ - int n_nodes1; - xmlNodeSetPtr nodes2; /* a node-set */ - int n_nodes2; - - for (n_nodes1 = 0;n_nodes1 < gen_nb_xmlNodeSetPtr;n_nodes1++) { - for (n_nodes2 = 0;n_nodes2 < gen_nb_xmlNodeSetPtr;n_nodes2++) { - mem_base = xmlMemBlocks(); - nodes1 = gen_xmlNodeSetPtr(n_nodes1, 0); - nodes2 = gen_xmlNodeSetPtr(n_nodes2, 1); - - ret_val = xmlXPathTrailing(nodes1, nodes2); - desret_xmlNodeSetPtr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_nodes1, nodes1, 0); - des_xmlNodeSetPtr(n_nodes2, nodes2, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathTrailing", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_nodes1); - printf(" %d", n_nodes2); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathTrailingSorted(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlNodeSetPtr ret_val; - xmlNodeSetPtr nodes1; /* a node-set, sorted by document order */ - int n_nodes1; - xmlNodeSetPtr nodes2; /* a node-set, sorted by document order */ - int n_nodes2; - - for (n_nodes1 = 0;n_nodes1 < gen_nb_xmlNodeSetPtr;n_nodes1++) { - for (n_nodes2 = 0;n_nodes2 < gen_nb_xmlNodeSetPtr;n_nodes2++) { - mem_base = xmlMemBlocks(); - nodes1 = gen_xmlNodeSetPtr(n_nodes1, 0); - nodes2 = gen_xmlNodeSetPtr(n_nodes2, 1); - - ret_val = xmlXPathTrailingSorted(nodes1, nodes2); - desret_xmlNodeSetPtr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_nodes1, nodes1, 0); - des_xmlNodeSetPtr(n_nodes2, nodes2, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathTrailingSorted", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_nodes1); - printf(" %d", n_nodes2); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathTranslateFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathTranslateFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathTranslateFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathTrueFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - int nargs; /* the number of arguments */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPathTrueFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathTrueFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathValueFlipSign(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - xmlXPathValueFlipSign(ctxt); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathValueFlipSign", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathVariableLookup(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlXPathContextPtr ctxt; /* the XPath context */ - int n_ctxt; - xmlChar * name; /* the variable name */ - int n_name; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathContextPtr;n_ctxt++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathContextPtr(n_ctxt, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - - ret_val = xmlXPathVariableLookup(ctxt, (const xmlChar *)name); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlXPathContextPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathVariableLookup", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_name); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathVariableLookupNS(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlXPathContextPtr ctxt; /* the XPath context */ - int n_ctxt; - xmlChar * name; /* the variable name */ - int n_name; - xmlChar * ns_uri; /* the variable namespace URI */ - int n_ns_uri; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathContextPtr;n_ctxt++) { - for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { - for (n_ns_uri = 0;n_ns_uri < gen_nb_const_xmlChar_ptr;n_ns_uri++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathContextPtr(n_ctxt, 0); - name = gen_const_xmlChar_ptr(n_name, 1); - ns_uri = gen_const_xmlChar_ptr(n_ns_uri, 2); - - ret_val = xmlXPathVariableLookupNS(ctxt, (const xmlChar *)name, (const xmlChar *)ns_uri); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlXPathContextPtr(n_ctxt, ctxt, 0); - des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); - des_const_xmlChar_ptr(n_ns_uri, (const xmlChar *)ns_uri, 2); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathVariableLookupNS", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_name); - printf(" %d", n_ns_uri); - printf("\n"); - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathWrapCString(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - char * val; /* the char * value */ - int n_val; - - for (n_val = 0;n_val < gen_nb_char_ptr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_char_ptr(n_val, 0); - - ret_val = xmlXPathWrapCString(val); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_char_ptr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathWrapCString", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathWrapExternal(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - void * val; /* the user data */ - int n_val; - - for (n_val = 0;n_val < gen_nb_void_ptr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_void_ptr(n_val, 0); - - ret_val = xmlXPathWrapExternal(val); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_void_ptr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathWrapExternal", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPathWrapNodeSet(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlNodeSetPtr val; /* the NodePtr value */ - int n_val; - - for (n_val = 0;n_val < gen_nb_xmlNodeSetPtr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_xmlNodeSetPtr(n_val, 0); - - ret_val = xmlXPathWrapNodeSet(val); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPathWrapNodeSet", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPatherror(void) { - int test_ret = 0; - -#if defined(LIBXML_XPATH_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPath Parser context */ - int n_ctxt; - const char * file; /* the file name */ - int n_file; - int line; /* the line number */ - int n_line; - int no; /* the error number */ - int n_no; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_file = 0;n_file < gen_nb_filepath;n_file++) { - for (n_line = 0;n_line < gen_nb_int;n_line++) { - for (n_no = 0;n_no < gen_nb_int;n_no++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - file = gen_filepath(n_file, 1); - line = gen_int(n_line, 2); - no = gen_int(n_no, 3); - - xmlXPatherror(ctxt, file, line, no); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_filepath(n_file, file, 1); - des_int(n_line, line, 2); - des_int(n_no, no, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPatherror", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_file); - printf(" %d", n_line); - printf(" %d", n_no); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_xpathInternals(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing xpathInternals : 106 of 117 functions ...\n"); - test_ret += test_valuePop(); - test_ret += test_valuePush(); - test_ret += test_xmlXPathAddValues(); - test_ret += test_xmlXPathBooleanFunction(); - test_ret += test_xmlXPathCeilingFunction(); - test_ret += test_xmlXPathCompareValues(); - test_ret += test_xmlXPathConcatFunction(); - test_ret += test_xmlXPathContainsFunction(); - test_ret += test_xmlXPathCountFunction(); - test_ret += test_xmlXPathDebugDumpCompExpr(); - test_ret += test_xmlXPathDebugDumpObject(); - test_ret += test_xmlXPathDifference(); - test_ret += test_xmlXPathDistinct(); - test_ret += test_xmlXPathDistinctSorted(); - test_ret += test_xmlXPathDivValues(); - test_ret += test_xmlXPathEqualValues(); - test_ret += test_xmlXPathErr(); - test_ret += test_xmlXPathEvalExpr(); - test_ret += test_xmlXPathEvaluatePredicateResult(); - test_ret += test_xmlXPathFalseFunction(); - test_ret += test_xmlXPathFloorFunction(); - test_ret += test_xmlXPathFunctionLookup(); - test_ret += test_xmlXPathFunctionLookupNS(); - test_ret += test_xmlXPathHasSameNodes(); - test_ret += test_xmlXPathIdFunction(); - test_ret += test_xmlXPathIntersection(); - test_ret += test_xmlXPathIsNodeType(); - test_ret += test_xmlXPathLangFunction(); - test_ret += test_xmlXPathLastFunction(); - test_ret += test_xmlXPathLeading(); - test_ret += test_xmlXPathLeadingSorted(); - test_ret += test_xmlXPathLocalNameFunction(); - test_ret += test_xmlXPathModValues(); - test_ret += test_xmlXPathMultValues(); - test_ret += test_xmlXPathNamespaceURIFunction(); - test_ret += test_xmlXPathNewBoolean(); - test_ret += test_xmlXPathNewCString(); - test_ret += test_xmlXPathNewFloat(); - test_ret += test_xmlXPathNewNodeSet(); - test_ret += test_xmlXPathNewNodeSetList(); - test_ret += test_xmlXPathNewParserContext(); - test_ret += test_xmlXPathNewString(); - test_ret += test_xmlXPathNextAncestor(); - test_ret += test_xmlXPathNextAncestorOrSelf(); - test_ret += test_xmlXPathNextAttribute(); - test_ret += test_xmlXPathNextChild(); - test_ret += test_xmlXPathNextDescendant(); - test_ret += test_xmlXPathNextDescendantOrSelf(); - test_ret += test_xmlXPathNextFollowing(); - test_ret += test_xmlXPathNextFollowingSibling(); - test_ret += test_xmlXPathNextNamespace(); - test_ret += test_xmlXPathNextParent(); - test_ret += test_xmlXPathNextPreceding(); - test_ret += test_xmlXPathNextPrecedingSibling(); - test_ret += test_xmlXPathNextSelf(); - test_ret += test_xmlXPathNodeLeading(); - test_ret += test_xmlXPathNodeLeadingSorted(); - test_ret += test_xmlXPathNodeSetAdd(); - test_ret += test_xmlXPathNodeSetAddNs(); - test_ret += test_xmlXPathNodeSetAddUnique(); - test_ret += test_xmlXPathNodeSetContains(); - test_ret += test_xmlXPathNodeSetDel(); - test_ret += test_xmlXPathNodeSetMerge(); - test_ret += test_xmlXPathNodeSetRemove(); - test_ret += test_xmlXPathNodeSetSort(); - test_ret += test_xmlXPathNodeTrailing(); - test_ret += test_xmlXPathNodeTrailingSorted(); - test_ret += test_xmlXPathNormalizeFunction(); - test_ret += test_xmlXPathNotEqualValues(); - test_ret += test_xmlXPathNotFunction(); - test_ret += test_xmlXPathNsLookup(); - test_ret += test_xmlXPathNumberFunction(); - test_ret += test_xmlXPathParseNCName(); - test_ret += test_xmlXPathParseName(); - test_ret += test_xmlXPathPopBoolean(); - test_ret += test_xmlXPathPopExternal(); - test_ret += test_xmlXPathPopNodeSet(); - test_ret += test_xmlXPathPopNumber(); - test_ret += test_xmlXPathPopString(); - test_ret += test_xmlXPathPositionFunction(); - test_ret += test_xmlXPathRegisterAllFunctions(); - test_ret += test_xmlXPathRegisterFunc(); - test_ret += test_xmlXPathRegisterFuncLookup(); - test_ret += test_xmlXPathRegisterFuncNS(); - test_ret += test_xmlXPathRegisterNs(); - test_ret += test_xmlXPathRegisterVariable(); - test_ret += test_xmlXPathRegisterVariableLookup(); - test_ret += test_xmlXPathRegisterVariableNS(); - test_ret += test_xmlXPathRegisteredFuncsCleanup(); - test_ret += test_xmlXPathRegisteredNsCleanup(); - test_ret += test_xmlXPathRegisteredVariablesCleanup(); - test_ret += test_xmlXPathRoot(); - test_ret += test_xmlXPathRoundFunction(); - test_ret += test_xmlXPathStartsWithFunction(); - test_ret += test_xmlXPathStringEvalNumber(); - test_ret += test_xmlXPathStringFunction(); - test_ret += test_xmlXPathStringLengthFunction(); - test_ret += test_xmlXPathSubValues(); - test_ret += test_xmlXPathSubstringAfterFunction(); - test_ret += test_xmlXPathSubstringBeforeFunction(); - test_ret += test_xmlXPathSubstringFunction(); - test_ret += test_xmlXPathSumFunction(); - test_ret += test_xmlXPathTrailing(); - test_ret += test_xmlXPathTrailingSorted(); - test_ret += test_xmlXPathTranslateFunction(); - test_ret += test_xmlXPathTrueFunction(); - test_ret += test_xmlXPathValueFlipSign(); - test_ret += test_xmlXPathVariableLookup(); - test_ret += test_xmlXPathVariableLookupNS(); - test_ret += test_xmlXPathWrapCString(); - test_ret += test_xmlXPathWrapExternal(); - test_ret += test_xmlXPathWrapNodeSet(); - test_ret += test_xmlXPatherror(); - - if (test_ret != 0) - printf("Module xpathInternals: %d errors\n", test_ret); - return(test_ret); -} - -static int -test_xmlXPtrBuildNodeList(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlNodePtr ret_val; - xmlXPathObjectPtr obj; /* the XPointer result from the evaluation. */ - int n_obj; - - for (n_obj = 0;n_obj < gen_nb_xmlXPathObjectPtr;n_obj++) { - mem_base = xmlMemBlocks(); - obj = gen_xmlXPathObjectPtr(n_obj, 0); - - ret_val = xmlXPtrBuildNodeList(obj); - desret_xmlNodePtr(ret_val); - call_tests++; - des_xmlXPathObjectPtr(n_obj, obj, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrBuildNodeList", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_obj); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPtrEval(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlChar * str; /* the XPointer expression */ - int n_str; - xmlXPathContextPtr ctx; /* the XPointer context */ - int n_ctx; - - for (n_str = 0;n_str < gen_nb_const_xmlChar_ptr;n_str++) { - for (n_ctx = 0;n_ctx < gen_nb_xmlXPathContextPtr;n_ctx++) { - mem_base = xmlMemBlocks(); - str = gen_const_xmlChar_ptr(n_str, 0); - ctx = gen_xmlXPathContextPtr(n_ctx, 1); - - ret_val = xmlXPtrEval((const xmlChar *)str, ctx); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_const_xmlChar_ptr(n_str, (const xmlChar *)str, 0); - des_xmlXPathContextPtr(n_ctx, ctx, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrEval", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_str); - printf(" %d", n_ctx); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPtrEvalRangePredicate(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPointer Parser context */ - int n_ctxt; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - - xmlXPtrEvalRangePredicate(ctxt); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrEvalRangePredicate", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - -#ifdef LIBXML_XPTR_ENABLED - -#define gen_nb_xmlLocationSetPtr 1 -static xmlLocationSetPtr gen_xmlLocationSetPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { - return(NULL); -} -static void des_xmlLocationSetPtr(int no ATTRIBUTE_UNUSED, xmlLocationSetPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) { -} -#endif - - -static int -test_xmlXPtrLocationSetAdd(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlLocationSetPtr cur; /* the initial range set */ - int n_cur; - xmlXPathObjectPtr val; /* a new xmlXPathObjectPtr */ - int n_val; - - for (n_cur = 0;n_cur < gen_nb_xmlLocationSetPtr;n_cur++) { - for (n_val = 0;n_val < gen_nb_xmlXPathObjectPtr;n_val++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlLocationSetPtr(n_cur, 0); - val = gen_xmlXPathObjectPtr(n_val, 1); - - xmlXPtrLocationSetAdd(cur, val); - call_tests++; - des_xmlLocationSetPtr(n_cur, cur, 0); - des_xmlXPathObjectPtr(n_val, val, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrLocationSetAdd", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_val); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPtrLocationSetCreate(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlXPtrLocationSetDel(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlLocationSetPtr cur; /* the initial range set */ - int n_cur; - xmlXPathObjectPtr val; /* an xmlXPathObjectPtr */ - int n_val; - - for (n_cur = 0;n_cur < gen_nb_xmlLocationSetPtr;n_cur++) { - for (n_val = 0;n_val < gen_nb_xmlXPathObjectPtr;n_val++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlLocationSetPtr(n_cur, 0); - val = gen_xmlXPathObjectPtr(n_val, 1); - - xmlXPtrLocationSetDel(cur, val); - call_tests++; - des_xmlLocationSetPtr(n_cur, cur, 0); - des_xmlXPathObjectPtr(n_val, val, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrLocationSetDel", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_val); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPtrLocationSetMerge(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlXPtrLocationSetRemove(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlLocationSetPtr cur; /* the initial range set */ - int n_cur; - int val; /* the index to remove */ - int n_val; - - for (n_cur = 0;n_cur < gen_nb_xmlLocationSetPtr;n_cur++) { - for (n_val = 0;n_val < gen_nb_int;n_val++) { - mem_base = xmlMemBlocks(); - cur = gen_xmlLocationSetPtr(n_cur, 0); - val = gen_int(n_val, 1); - - xmlXPtrLocationSetRemove(cur, val); - call_tests++; - des_xmlLocationSetPtr(n_cur, cur, 0); - des_int(n_val, val, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrLocationSetRemove", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_cur); - printf(" %d", n_val); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPtrNewCollapsedRange(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlNodePtr start; /* the starting and ending node */ - int n_start; - - for (n_start = 0;n_start < gen_nb_xmlNodePtr;n_start++) { - mem_base = xmlMemBlocks(); - start = gen_xmlNodePtr(n_start, 0); - - ret_val = xmlXPtrNewCollapsedRange(start); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_start, start, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrNewCollapsedRange", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_start); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPtrNewContext(void) { - int test_ret = 0; - - - /* missing type support */ - return(test_ret); -} - - -static int -test_xmlXPtrNewLocationSetNodeSet(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlNodeSetPtr set; /* a node set */ - int n_set; - - for (n_set = 0;n_set < gen_nb_xmlNodeSetPtr;n_set++) { - mem_base = xmlMemBlocks(); - set = gen_xmlNodeSetPtr(n_set, 0); - - ret_val = xmlXPtrNewLocationSetNodeSet(set); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlNodeSetPtr(n_set, set, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrNewLocationSetNodeSet", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_set); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPtrNewLocationSetNodes(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlNodePtr start; /* the start NodePtr value */ - int n_start; - xmlNodePtr end; /* the end NodePtr value or NULL */ - int n_end; - - for (n_start = 0;n_start < gen_nb_xmlNodePtr;n_start++) { - for (n_end = 0;n_end < gen_nb_xmlNodePtr;n_end++) { - mem_base = xmlMemBlocks(); - start = gen_xmlNodePtr(n_start, 0); - end = gen_xmlNodePtr(n_end, 1); - - ret_val = xmlXPtrNewLocationSetNodes(start, end); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_start, start, 0); - des_xmlNodePtr(n_end, end, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrNewLocationSetNodes", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_start); - printf(" %d", n_end); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPtrNewRange(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlNodePtr start; /* the starting node */ - int n_start; - int startindex; /* the start index */ - int n_startindex; - xmlNodePtr end; /* the ending point */ - int n_end; - int endindex; /* the ending index */ - int n_endindex; - - for (n_start = 0;n_start < gen_nb_xmlNodePtr;n_start++) { - for (n_startindex = 0;n_startindex < gen_nb_int;n_startindex++) { - for (n_end = 0;n_end < gen_nb_xmlNodePtr;n_end++) { - for (n_endindex = 0;n_endindex < gen_nb_int;n_endindex++) { - mem_base = xmlMemBlocks(); - start = gen_xmlNodePtr(n_start, 0); - startindex = gen_int(n_startindex, 1); - end = gen_xmlNodePtr(n_end, 2); - endindex = gen_int(n_endindex, 3); - - ret_val = xmlXPtrNewRange(start, startindex, end, endindex); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_start, start, 0); - des_int(n_startindex, startindex, 1); - des_xmlNodePtr(n_end, end, 2); - des_int(n_endindex, endindex, 3); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrNewRange", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_start); - printf(" %d", n_startindex); - printf(" %d", n_end); - printf(" %d", n_endindex); - printf("\n"); - } - } - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPtrNewRangeNodeObject(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlNodePtr start; /* the starting node */ - int n_start; - xmlXPathObjectPtr end; /* the ending object */ - int n_end; - - for (n_start = 0;n_start < gen_nb_xmlNodePtr;n_start++) { - for (n_end = 0;n_end < gen_nb_xmlXPathObjectPtr;n_end++) { - mem_base = xmlMemBlocks(); - start = gen_xmlNodePtr(n_start, 0); - end = gen_xmlXPathObjectPtr(n_end, 1); - - ret_val = xmlXPtrNewRangeNodeObject(start, end); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_start, start, 0); - des_xmlXPathObjectPtr(n_end, end, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrNewRangeNodeObject", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_start); - printf(" %d", n_end); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPtrNewRangeNodePoint(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlNodePtr start; /* the starting node */ - int n_start; - xmlXPathObjectPtr end; /* the ending point */ - int n_end; - - for (n_start = 0;n_start < gen_nb_xmlNodePtr;n_start++) { - for (n_end = 0;n_end < gen_nb_xmlXPathObjectPtr;n_end++) { - mem_base = xmlMemBlocks(); - start = gen_xmlNodePtr(n_start, 0); - end = gen_xmlXPathObjectPtr(n_end, 1); - - ret_val = xmlXPtrNewRangeNodePoint(start, end); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_start, start, 0); - des_xmlXPathObjectPtr(n_end, end, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrNewRangeNodePoint", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_start); - printf(" %d", n_end); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPtrNewRangeNodes(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlNodePtr start; /* the starting node */ - int n_start; - xmlNodePtr end; /* the ending node */ - int n_end; - - for (n_start = 0;n_start < gen_nb_xmlNodePtr;n_start++) { - for (n_end = 0;n_end < gen_nb_xmlNodePtr;n_end++) { - mem_base = xmlMemBlocks(); - start = gen_xmlNodePtr(n_start, 0); - end = gen_xmlNodePtr(n_end, 1); - - ret_val = xmlXPtrNewRangeNodes(start, end); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlNodePtr(n_start, start, 0); - des_xmlNodePtr(n_end, end, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrNewRangeNodes", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_start); - printf(" %d", n_end); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPtrNewRangePointNode(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlXPathObjectPtr start; /* the starting point */ - int n_start; - xmlNodePtr end; /* the ending node */ - int n_end; - - for (n_start = 0;n_start < gen_nb_xmlXPathObjectPtr;n_start++) { - for (n_end = 0;n_end < gen_nb_xmlNodePtr;n_end++) { - mem_base = xmlMemBlocks(); - start = gen_xmlXPathObjectPtr(n_start, 0); - end = gen_xmlNodePtr(n_end, 1); - - ret_val = xmlXPtrNewRangePointNode(start, end); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlXPathObjectPtr(n_start, start, 0); - des_xmlNodePtr(n_end, end, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrNewRangePointNode", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_start); - printf(" %d", n_end); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPtrNewRangePoints(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlXPathObjectPtr start; /* the starting point */ - int n_start; - xmlXPathObjectPtr end; /* the ending point */ - int n_end; - - for (n_start = 0;n_start < gen_nb_xmlXPathObjectPtr;n_start++) { - for (n_end = 0;n_end < gen_nb_xmlXPathObjectPtr;n_end++) { - mem_base = xmlMemBlocks(); - start = gen_xmlXPathObjectPtr(n_start, 0); - end = gen_xmlXPathObjectPtr(n_end, 1); - - ret_val = xmlXPtrNewRangePoints(start, end); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlXPathObjectPtr(n_start, start, 0); - des_xmlXPathObjectPtr(n_end, end, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrNewRangePoints", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_start); - printf(" %d", n_end); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPtrRangeToFunction(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlXPathParserContextPtr ctxt; /* the XPointer Parser context */ - int n_ctxt; - int nargs; /* the number of args */ - int n_nargs; - - for (n_ctxt = 0;n_ctxt < gen_nb_xmlXPathParserContextPtr;n_ctxt++) { - for (n_nargs = 0;n_nargs < gen_nb_int;n_nargs++) { - mem_base = xmlMemBlocks(); - ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0); - nargs = gen_int(n_nargs, 1); - - xmlXPtrRangeToFunction(ctxt, nargs); - call_tests++; - des_xmlXPathParserContextPtr(n_ctxt, ctxt, 0); - des_int(n_nargs, nargs, 1); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrRangeToFunction", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_ctxt); - printf(" %d", n_nargs); - printf("\n"); - } - } - } - function_tests++; -#endif - - return(test_ret); -} - - -static int -test_xmlXPtrWrapLocationSet(void) { - int test_ret = 0; - -#if defined(LIBXML_XPTR_ENABLED) - int mem_base; - xmlXPathObjectPtr ret_val; - xmlLocationSetPtr val; /* the LocationSet value */ - int n_val; - - for (n_val = 0;n_val < gen_nb_xmlLocationSetPtr;n_val++) { - mem_base = xmlMemBlocks(); - val = gen_xmlLocationSetPtr(n_val, 0); - - ret_val = xmlXPtrWrapLocationSet(val); - desret_xmlXPathObjectPtr(ret_val); - call_tests++; - des_xmlLocationSetPtr(n_val, val, 0); - xmlResetLastError(); - if (mem_base != xmlMemBlocks()) { - printf("Leak of %d blocks found in xmlXPtrWrapLocationSet", - xmlMemBlocks() - mem_base); - test_ret++; - printf(" %d", n_val); - printf("\n"); - } - } - function_tests++; -#endif - - return(test_ret); -} - -static int -test_xpointer(void) { - int test_ret = 0; - - if (quiet == 0) printf("Testing xpointer : 17 of 21 functions ...\n"); - test_ret += test_xmlXPtrBuildNodeList(); - test_ret += test_xmlXPtrEval(); - test_ret += test_xmlXPtrEvalRangePredicate(); - test_ret += test_xmlXPtrLocationSetAdd(); - test_ret += test_xmlXPtrLocationSetCreate(); - test_ret += test_xmlXPtrLocationSetDel(); - test_ret += test_xmlXPtrLocationSetMerge(); - test_ret += test_xmlXPtrLocationSetRemove(); - test_ret += test_xmlXPtrNewCollapsedRange(); - test_ret += test_xmlXPtrNewContext(); - test_ret += test_xmlXPtrNewLocationSetNodeSet(); - test_ret += test_xmlXPtrNewLocationSetNodes(); - test_ret += test_xmlXPtrNewRange(); - test_ret += test_xmlXPtrNewRangeNodeObject(); - test_ret += test_xmlXPtrNewRangeNodePoint(); - test_ret += test_xmlXPtrNewRangeNodes(); - test_ret += test_xmlXPtrNewRangePointNode(); - test_ret += test_xmlXPtrNewRangePoints(); - test_ret += test_xmlXPtrRangeToFunction(); - test_ret += test_xmlXPtrWrapLocationSet(); - - if (test_ret != 0) - printf("Module xpointer: %d errors\n", test_ret); - return(test_ret); -} -static int -test_module(const char *module) { - if (!strcmp(module, "HTMLparser")) return(test_HTMLparser()); - if (!strcmp(module, "HTMLtree")) return(test_HTMLtree()); - if (!strcmp(module, "SAX2")) return(test_SAX2()); - if (!strcmp(module, "c14n")) return(test_c14n()); - if (!strcmp(module, "catalog")) return(test_catalog()); - if (!strcmp(module, "chvalid")) return(test_chvalid()); - if (!strcmp(module, "debugXML")) return(test_debugXML()); - if (!strcmp(module, "dict")) return(test_dict()); - if (!strcmp(module, "encoding")) return(test_encoding()); - if (!strcmp(module, "entities")) return(test_entities()); - if (!strcmp(module, "hash")) return(test_hash()); - if (!strcmp(module, "list")) return(test_list()); - if (!strcmp(module, "nanoftp")) return(test_nanoftp()); - if (!strcmp(module, "nanohttp")) return(test_nanohttp()); - if (!strcmp(module, "parser")) return(test_parser()); - if (!strcmp(module, "parserInternals")) return(test_parserInternals()); - if (!strcmp(module, "pattern")) return(test_pattern()); - if (!strcmp(module, "relaxng")) return(test_relaxng()); - if (!strcmp(module, "schemasInternals")) return(test_schemasInternals()); - if (!strcmp(module, "schematron")) return(test_schematron()); - if (!strcmp(module, "tree")) return(test_tree()); - if (!strcmp(module, "uri")) return(test_uri()); - if (!strcmp(module, "valid")) return(test_valid()); - if (!strcmp(module, "xinclude")) return(test_xinclude()); - if (!strcmp(module, "xmlIO")) return(test_xmlIO()); - if (!strcmp(module, "xmlautomata")) return(test_xmlautomata()); - if (!strcmp(module, "xmlerror")) return(test_xmlerror()); - if (!strcmp(module, "xmlmodule")) return(test_xmlmodule()); - if (!strcmp(module, "xmlreader")) return(test_xmlreader()); - if (!strcmp(module, "xmlregexp")) return(test_xmlregexp()); - if (!strcmp(module, "xmlsave")) return(test_xmlsave()); - if (!strcmp(module, "xmlschemas")) return(test_xmlschemas()); - if (!strcmp(module, "xmlschemastypes")) return(test_xmlschemastypes()); - if (!strcmp(module, "xmlstring")) return(test_xmlstring()); - if (!strcmp(module, "xmlunicode")) return(test_xmlunicode()); - if (!strcmp(module, "xmlwriter")) return(test_xmlwriter()); - if (!strcmp(module, "xpath")) return(test_xpath()); - if (!strcmp(module, "xpathInternals")) return(test_xpathInternals()); - if (!strcmp(module, "xpointer")) return(test_xpointer()); - return(0); -} diff --git a/src/tools/docbook/libxml2/testdso.c b/src/tools/docbook/libxml2/testdso.c deleted file mode 100644 index bd4ff0865d..0000000000 --- a/src/tools/docbook/libxml2/testdso.c +++ /dev/null @@ -1,12 +0,0 @@ -#include - -#define IN_LIBXML -#include "libxml/xmlexports.h" - -XMLPUBFUN int hello_world(void); - -int hello_world(void) -{ - printf("Success!\n"); - return 0; -} diff --git a/src/tools/docbook/libxml2/vms/build_libxml.com b/src/tools/docbook/libxml2/vms/build_libxml.com deleted file mode 100755 index ed5107b0f6..0000000000 --- a/src/tools/docbook/libxml2/vms/build_libxml.com +++ /dev/null @@ -1,261 +0,0 @@ -$! BUILD_LIBXML.COM -$! -$! Build the LIBXML library -$! -$! Arguments: -$! -$! "DEBUG" - build everything in debug -$! -$! This procedure creates an object library XML_LIBDIR:LIBXML.OLB directory. -$! After the library is built, you can link LIBXML routines into -$! your code with the command -$! -$! $ LINK your_modules,XML_LIBDIR:LIBXML.OLB/LIBRARY -$! -$! Change History -$! -------------- -$! Command file author : John A Fotheringham (jaf@jafsoft.com) -$! Update history : 13 October 2003 Craig Berry (craigberry@mac.com) -$! more new module additions -$! : 25 April 2003 Craig Berry (craigberry@mac.com) -$! added xmlreader.c and relaxng.c to source list -$! : 28 September 2002 Craig Berry (craigberry@mac.com) -$! updated to work with current sources -$! miscellaneous enhancements to build process -$! -$!- configuration ------------------------------------------------------------- -$! -$!- compile command. If p1="nowarn" suppress the expected warning types -$! -$ cc_opts = "/NAMES=(SHORTENED)/FLOAT=IEEE/IEEE_MODE=DENORM_RESULTS" -$! -$ if p1.eqs."DEBUG" .or. p2.eqs."DEBUG" -$ then -$ debug = "Y" -$ cc_command = "CC''cc_opts'/DEBUG/NOOPTIMIZE/LIST/SHOW=ALL" -$ else -$ debug = "N" -$ cc_command = "CC''cc_opts'" -$ endif -$! -$!- list of sources to be built into the LIBXML library. Compare this list -$! to the definition of "libxml2_la_SOURCES" in the file MAKEFILE.IN. -$! Currently this definition includes the list WITH_TRIO_SOURCES_TRUE -$! -$ sources = "SAX.c entities.c encoding.c error.c parserInternals.c" -$ sources = sources + " parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c" -$ sources = sources + " valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c" -$ sources = sources + " xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c" -$ sources = sources + " catalog.c globals.c threads.c c14n.c xmlstring.c" -$ sources = sources + " xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c" -$ sources = sources + " triostr.c trio.c xmlreader.c relaxng.c dict.c SAX2.c" -$ sources = sources + " xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c" -$! -$!- list of main modules to compile and link. Compare this list to the -$! definition of bin_PROGRAMS in MAKEFILE.IN -$! -$ bin_progs = "xmllint xmlcatalog" -$! -$!- list of test modules to compile and link. Compare this list to the -$! definition of noinst_PROGRAMS in MAKEFILE. -$! -$ noinst_PROGRAMS = "testSchemas testRelax testSAX testHTML testXPath testURI " - - + "testThreads testC14N testAutomata testRegexp testReader" -$! -$!- set up build logicals -----------------------------------------------------\ -$! -$! -$!- start from where the procedure is in case it's submitted in batch ----------\ -$! -$ whoami = f$parse(f$environment("PROCEDURE"),,,,"NO_CONCEAL") -$ procdir = f$parse(whoami,,,"DEVICE") + f$parse(whoami,,,"DIRECTORY") -$ set default 'procdir' -$! -$ if f$trnlnm("XML_LIBDIR").eqs."" -$ then -$ if f$search("[-]lib.dir") .eqs. "" -$ then -$ create/directory/log [-.lib] -$ endif -$ xml_libdir = f$parse("[-.lib]",,,"DEVICE") + f$parse("[-.lib]",,,"DIRECTORY") -$ define/process XML_LIBDIR 'xml_libdir' -$ write sys$output "Defining XML_LIBDIR as """ + f$trnlnm("XML_LIBDIR") + """ -$ endif -$! -$ if f$trnlnm("XML_SRCDIR").eqs."" -$ then -$ globfile = f$search("[-...]globals.c") -$ if globfile.eqs."" -$ then -$ write sys$output "Can't locate globals.c. You need to manually define a XML_SRCDIR logical" -$ exit -$ else -$ srcdir = f$parse(globfile,,,"DEVICE") + f$parse(globfile,,,"DIRECTORY") -$ define/process XML_SRCDIR "''srcdir'" -$ write sys$output "Defining XML_SRCDIR as ""''srcdir'""" -$ endif -$ endif -$! -$ copy/log config.vms xml_srcdir:config.h -$! -$ if f$trnlnm("libxml").eqs."" -$ then -$ globfile = f$search("[-...]globals.h") -$ if globfile.eqs."" -$ then -$ write sys$output "Can't locate globals.h. You need to manually define a LIBXML logical" -$ exit -$ else -$ includedir = f$parse(globfile,,,"DEVICE") + f$parse(globfile,,,"DIRECTORY") -$ define/process libxml "''includedir'" -$ write sys$output "Defining libxml as ""''includedir'""" -$ endif -$ endif -$! -$!- set up error handling (such as it is) ------------------------------------- -$! -$ exit_status = 1 -$ saved_default = f$environment("default") -$ on error then goto ERROR_OUT -$ on control_y then goto ERROR_OUT -$! -$!- move to the source directory and create any necessary subdirs and the -$! object library -$! -$ set default xml_srcdir -$ if f$search("DEBUG.DIR").eqs."" then create/dir [.DEBUG] -$ if f$search("XML_LIBDIR:LIBXML.OLB").eqs."" -$ then -$ write sys$output "Creating new object library XML_LIBDIR:LIBXML.OLB" -$ library/create XML_LIBDIR:LIBXML.OLB -$ endif -$! -$ goto start_here -$ start_here: ! move this line to debug/rerun parts of this command file -$! -$!- compile modules into the library ------------------------------------------ -$! -$ lib_command = "LIBRARY/REPLACE/LOG XML_LIBDIR:LIBXML.OLB" -$ link_command = "" -$! -$ write sys$output "" -$ write sys$output "Building modules into the LIBXML object library" -$ write sys$output "" -$! -$ s_no = 0 -$ sources = f$edit(sources,"COMPRESS") -$! -$ source_loop: -$! -$ next_source = f$element (S_no," ",sources) -$ if next_source.nes."" .and. next_source.nes." " -$ then -$! -$ on error then goto ERROR_OUT -$ on control_y then goto ERROR_OUT -$ call build 'next_source' -$ s_no = s_no + 1 -$ goto source_loop -$! -$ endif -$! -$!- now build self-test programs ---------------------------------------------- -$! -$! these programs are built as ordinary modules into XML_LIBDIR:LIBXML.OLB. Here they -$! are built a second time with /DEFINE=(STANDALONE) in which case a main() -$! is also compiled into the module -$ -$ lib_command = "" -$ link_command = "LINK" -$! -$ library/compress XML_LIBDIR:LIBXML.OLB -$ purge XML_LIBDIR:LIBXML.OLB -$! -$ write sys$output "" -$ write sys$output "Building STANDALONE self-test programs" -$ write sys$output "" -$! -$ call build NANOFTP.C /DEFINE=(STANDALONE) -$ call build NANOHTTP.C /DEFINE=(STANDALONE) -$ call build TRIONAN.C /DEFINE=(STANDALONE) -$! -$!- now build main and test programs ------------------------------------------ -$! -$! -$ lib_command = "" -$ link_command = "LINK" -$! -$ write sys$output "" -$ write sys$output "Building main programs and test programs" -$ write sys$output "" -$! -$ p_no = 0 -$ all_progs = bin_progs + " " + noinst_PROGRAMS -$ all_progs = f$edit(all_progs,"COMPRESS") -$! -$ prog_loop: -$! -$ next_prog = f$element (p_no," ",all_progs) -$ if next_prog.nes."" .and. next_prog.nes." " -$ then -$! -$ on error then goto ERROR_OUT -$ on control_y then goto ERROR_OUT -$ call build 'next_prog'.c -$ p_no = p_no + 1 -$ goto prog_loop -$! -$ endif -$! -$!- Th-th-th-th-th-that's all folks! ------------------------------------------ -$! -$ goto exit_here ! move this line to avoid parts of this command file -$ exit_here: -$! -$ exit -$ goto exit_out -$! -$! -$EXIT_OUT: -$! -$ purge/nolog [.debug] -$ set default 'saved_default -$ exit 'exit_status -$! -$ -$ERROR_OUT: -$ exit_status = $status -$ write sys$output "''f$message(exit_status)'" -$ goto EXIT_OUT -$! -$!- the BUILD subroutine. Compile then insert into library or link as required -$! -$BUILD: subroutine -$ on warning then goto EXIT_BUILD -$ source_file = p1 -$ name = f$parse(source_file,,,"NAME") -$ object_file = f$parse("[.debug].OBJ",name,,,"SYNTAX_ONLY") -$! -$!- compile -$! -$ write sys$output "''cc_command'''p2'/object=''object_file' ''source_file'" -$ cc_command'p2' /object='object_file 'source_file' -$! -$!- insert into library if command defined -$! -$ if lib_command.nes."" then lib_command 'object_file' -$! -$!- link module if command defined -$ if link_command.nes."" -$ then -$ opts = "" -$ if debug then opts = "/DEBUG" -$ write sys$output "''link_command'''opts' ''object_file',XML_LIBDIR:libxml.olb/library" -$ link_command'opts' 'object_file',- - XML_LIBDIR:libxml.olb/library -$ endif -$! -$EXIT_BUILD: -$ exit $status -$! -$endsubroutine diff --git a/src/tools/docbook/libxml2/vms/config.vms b/src/tools/docbook/libxml2/vms/config.vms deleted file mode 100755 index 6ecfa4725f..0000000000 --- a/src/tools/docbook/libxml2/vms/config.vms +++ /dev/null @@ -1,209 +0,0 @@ -/* config.h */ - -#define VMS 1 - -/* Define if you have the strftime function. */ -#define HAVE_STRFTIME 1 - -/* Define if you have the ANSI C header files. */ -#define STDC_HEADERS 1 - -#undef PACKAGE -#undef VERSION -#undef HAVE_LIBZ -#undef HAVE_LIBM -#undef HAVE_ISINF -#if defined(_IEEE_FP) && (__CRTL_VER >= 60200000) -# define HAVE_ISNAN 1 -#endif -#undef HAVE_LIBHISTORY -#undef HAVE_LIBREADLINE - -/* Define if you have the class function. */ -#undef HAVE_CLASS - -/* Define if you have the finite function. */ -#undef HAVE_FINITE - -/* Define if you have the fp_class function. */ -#define HAVE_FP_CLASS 1 - -/* Define if you have the fpclass function. */ -#undef HAVE_FPCLASS - -/* Define if you have the isnand function. */ -#undef HAVE_ISNAND - -/* Define if you have the localtime function. */ -#define HAVE_LOCALTIME 1 - -/* Define if you have the snprintf function. */ -#undef HAVE_SNPRINTF - -/* Define if you have the strdup function. */ -#define HAVE_STRDUP 1 - -/* Define if you have the strerror function. */ -#define HAVE_STRERROR 1 - -/* Define if you have the strftime function. */ -#define HAVE_STRFTIME 1 - -/* Define if you have the strndup function. */ -#undef HAVE_STRNDUP - -/* Define if you have the header file. */ -#undef HAVE_ARPA_INET_H - -/* Define if you have the header file. */ -#define HAVE_CTYPE_H 1 - -/* Define if you have the header file. */ -#define HAVE_DIRENT_H 1 - -/* Define if you have the header file. */ -#define HAVE_ERRNO_H 1 - -/* Define if you have the header file. */ -#define HAVE_FCNTL_H 1 - -/* Define if you have the header file. */ -#define HAVE_FLOAT_H 1 - -/* Define if you have the header file. */ -#define HAVE_FP_CLASS_H 1 - -/* Define if you have the header file. */ -#undef HAVE_IEEEFP_H - -/* Define if you have the header file. */ -#undef HAVE_MALLOC_H - -/* Define if you have the header file. */ -#define HAVE_MATH_H 1 - -/* Define if you have the header file. */ -#undef HAVE_NAN_H - -/* Define if you have the header file. */ -#undef HAVE_NDIR_H - -/* Define if you have the header file. */ -#define HAVE_NETDB_H 1 - -/* Define if you have the header file. */ -#undef HAVE_NETINET_IN_H - -/* Define if you have the header file. */ -#define HAVE_STDARG_H 1 - -/* Define if you have the header file. */ -#define HAVE_STDLIB_H 1 - -/* Define to 1 if you have the `strdup' function. */ -#define HAVE_STRDUP 1 - -/* Define to 1 if you have the `strerror' function. */ -#define HAVE_STRERROR 1 - -/* Define to 1 if you have the `strftime' function. */ -#define HAVE_STRFTIME 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STRINGS_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STRING_H 1 - -/* Define to 1 if you have the `strndup' function. */ -#undef HAVE_STRNDUP - -/* Define if you have the header file. */ -#undef HAVE_SYS_DIR_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_MMAN_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_NDIR_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_SELECT_H - -/* Define if you have the header file. */ -#define HAVE_SYS_SOCKET_H 1 - -/* Define if you have the header file. */ -#define HAVE_SYS_STAT_H 1 - -/* Define if you have the header file. */ -#undef HAVE_SYS_TIME_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define if you have the header file. */ -#define HAVE_TIME_H 1 - -/* Define if you have the header file. */ -#define HAVE_UNISTD_H 1 - -/* Define if you have the header file. */ -#undef HAVE_ZLIB_H - -/* Name of package */ -#undef PACKAGE - -/* Version number of package */ -#undef VERSION - -/* Up to this point this is just a hard-wired version of - * config.h. After this will be anything else we need - * that is VMS-specific. - */ - -/* For best results, compile with /NAMES=(SHORTENED), which requires - * DEC C 5.7 or later. For older compilers, the shortened names below - * are the same ones the mangler generates in C 5.7 and later. These may - * work, though there will probably be some conflicts with redefinitions - * in globals.h. - */ - -#if __DECC_VER < 57000000 -/* 0 1 2 3 0 1 2 3 - * 123456789012345678901234567890123456789 1234567890123456789012345678901 - */ -#define __xmlDoValidityCheckingDefaultValue __xmlDoValidityChecking3qad3pq$ -#define __xmlSubstituteEntitiesDefaultValue __xmlSubstituteEntities0pij13u$ -#define trio_locale_set_thousand_separator trio_locale_set_thousan259ikkk$ -#define xmlDoValidityCheckingDefaultValue xmlDoValidityCheckingDe1bcsei4$ -#define xmlParseBalancedChunkMemoryRecover xmlParseBalancedChunkMe1lu1e86$ -#define xmlParseElementChildrenContentDecl xmlParseElementChildren1mp6pcb$ -#define xmlParserInputBufferCreateFilename xmlParserInputBufferCre36lujn2$ -#define xmlRegisterDefaultInputCallbacks xmlRegisterDefaultInput3vin0cp$ -#define xmlRegisterDefaultOutputCallbacks xmlRegisterDefaultOutpu0q443dd$ -#define xmlSubstituteEntitiesDefaultValue xmlSubstituteEntitiesDe28k2c80$ -#define xmlUCSIsAlphabeticPresentationForms xmlUCSIsAlphabeticPrese2qr24s3$ -#define xmlUCSIsArabicPresentationFormsB xmlUCSIsArabicPresentat1gajvg8$ -#define xmlUCSIsArabicPresentationFormsA xmlUCSIsArabicPresentat3sq1bti$ -#define xmlUCSIsCJKCompatibilityIdeographsSupplement xmlUCSIsCJKCompatibilit0or40ki$ -#define xmlUCSIsCJKCompatibilityIdeographs xmlUCSIsCJKCompatibilit2nodmc5$ -#define xmlUCSIsCJKSymbolsandPunctuation xmlUCSIsCJKSymbolsandPu0a3i7ra$ -#define xmlUCSIsCJKUnifiedIdeographsExtensionA xmlUCSIsCJKUnifiedIdeog11ig3fd$ -#define xmlUCSIsCJKUnifiedIdeographsExtensionB xmlUCSIsCJKUnifiedIdeog3d22n2n$ -#define xmlUCSIsCombiningDiacriticalMarks xmlUCSIsCombiningDiacri3tj3nl8$ -#define xmlUCSIsCombiningMarksforSymbols xmlUCSIsCombiningMarksf3ftqd7s$ -#define xmlUCSIsEnclosedCJKLettersandMonths xmlUCSIsEnclosedCJKLett0nq67g4$ -#define xmlUCSIsHalfwidthandFullwidthForms xmlUCSIsHalfwidthandFul047l0a1$ -#define xmlUCSIsHighPrivateUseSurrogates xmlUCSIsHighPrivateUseS071kh83$ -#define xmlUCSIsIdeographicDescriptionCharacters xmlUCSIsIdeographicDesc1rovf8g$ -#define xmlUCSIsMathematicalAlphanumericSymbols xmlUCSIsMathematicalAlp2ag8r44$ -#define xmlUCSIsOpticalCharacterRecognition xmlUCSIsOpticalCharacte1juuh06$ -#define xmlUCSIsSuperscriptsandSubscripts xmlUCSIsSuperscriptsand3fi4eup$ -#define xmlUCSIsUnifiedCanadianAboriginalSyllabics xmlUCSIsUnifiedCanadian0lbvi9b$ -#define xmlValidCtxtNormalizeAttributeValue xmlValidCtxtNormalizeAt0q11n5f$ -#define xmlXPathRegisteredVariablesCleanup xmlXPathRegisteredVaria1uvs4uc$ - -#endif - -#define xmlBufferWriteChar xmlBufferWriteChar2 diff --git a/src/tools/docbook/libxml2/vms/diffs.vms b/src/tools/docbook/libxml2/vms/diffs.vms deleted file mode 100644 index 5402910c6f..0000000000 --- a/src/tools/docbook/libxml2/vms/diffs.vms +++ /dev/null @@ -1,192 +0,0 @@ --------------------------------------------------------------------------- -GLOBALS.C - -105a106 -> int xmlDoValidityCheckingDefaultValue = 0; -111,121c112,113 -< #if defined(VMS) || defined(__VMS) -< #define PLATFORM_VMS -< /* int xmlDoValidityCheckingDefaultVal = 0; -< * int xmlSubstituteEntitiesDefaultVal = 0; -< */ -< #define xmlDoValidityCheckingDefaultValue xmlDoValidityCheckingDefaultVal -< #define xmlSubstituteEntitiesDefaultValue xmlSubstituteEntitiesDefaultVal -< #else -< int xmlDoValidityCheckingDefaultValue = 0; -< int xmlSubstituteEntitiesDefaultValue = 0; -< #endif ---- -> int xmlSubstituteEntitiesDefaultValue = 0; -> -289,291d280 -< #ifdef PLATFORM_VMS -< gs->xmlDoValidityCheckingDefaultVal = 0; -< #else -293,294d281 -< #endif -< -316,318d302 -< #ifdef PLATFORM_VMS -< gs->xmlSubstituteEntitiesDefaultVal = 0; -< #else -320d303 -< #endif -404,419c387,390 -< #ifdef PLATFORM_VMS -< extern int xmlDoValidityCheckingDefaultVal; -< #undef xmlDoValidityCheckingDefaultVal -< int * -< __xmlDoValidityCheckingDefVal(void) { -< if (IS_MAIN_THREAD) -< return (&xmlDoValidityCheckingDefaultVal); -< else -< return (&xmlGetGlobalState()->xmlDoValidityCheckingDefaultVal); -< } -< #define __xmlDoValidityCheckingDefaultValue __xmlDoValidityCheckingDefVal -< #else -< extern int xmlDoValidityCheckingDefaultValue; -< #undef xmlDoValidityCheckingDefaultValue -< int * -< __xmlDoValidityCheckingDefaultValue(void) { ---- -> extern int xmlDoValidityCheckingDefaultValue; -> #undef xmlDoValidityCheckingDefaultValue -> int * -> __xmlDoValidityCheckingDefaultValue(void) { -424,425c395 -< } -< #endif ---- -> } -577,592c547,550 -< #ifdef PLATFORM_VMS -< extern int xmlSubstituteEntitiesDefaultVal; -< #undef xmlSubstituteEntitiesDefaultVal -< int * -< __xmlSubsEntitiesDefaultValue(void) { -< if (IS_MAIN_THREAD) -< return (&xmlSubstituteEntitiesDefaultVal); -< else -< return (&xmlGetGlobalState()->xmlSubstituteEntitiesDefaultVal); -< } -< #define __xmlSubstituteEntitiesDefaultValue __xmlSubsEntitiesDefaultValue -< #else -< extern int xmlSubstituteEntitiesDefaultValue; -< #undef xmlSubstituteEntitiesDefaultValue -< int * -< __xmlSubstituteEntitiesDefaultValue(void) { ---- -> extern int xmlSubstituteEntitiesDefaultValue; -> #undef xmlSubstituteEntitiesDefaultValue -> int * -> __xmlSubstituteEntitiesDefaultValue(void) { -597,598c555 -< } -< #endif ---- -> } - - --------------------------------------------------------------------------- -TRIO.C -113,116d112 -< #if defined(VMS) || defined(__VMS) -< # include -< #endif /* Platform is VMS */ -< -123d118 -< - - --------------------------------------------------------------------------- -GLOBALS.H -78,86c78,79 -< #if defined(VMS) || defined(__VMS) -< int xmlSubstituteEntitiesDefaultVal; /* 31 character name limit */ -< int xmlDoValidityCheckingDefaultVal; -< #define xmlSubstituteEntitiesDefaultValue xmlSubstituteEntitiesDefaultVal -< #define xmlDoValidityCheckingDefaultValue xmlDoValidityCheckingDefaultVal -< #else -< int xmlSubstituteEntitiesDefaultValue; -< int xmlDoValidityCheckingDefaultValue; -< #endif ---- -> int xmlSubstituteEntitiesDefaultValue; -> int xmlDoValidityCheckingDefaultValue; -211,226c204,209 -< #if defined(VMS) || defined(__VMS) -< #ifdef LIBXML_THREAD_ENABLED -< extern int *__xmlDoValidityCheckingDefaultVal(void); -< #define xmlDoValidityCheckingDefaultVal \ -< (*(__xmlDoValidityCheckingDefaultVal())) -< #else -< LIBXML_DLL_IMPORT extern int xmlDoValidityCheckingDefaultVal; -< #endif -< #else -< #ifdef LIBXML_THREAD_ENABLED -< extern int *__xmlDoValidityCheckingDefaultValue(void); -< #define xmlDoValidityCheckingDefaultValue \ -< (*(__xmlDoValidityCheckingDefaultValue())) -< #else -< LIBXML_DLL_IMPORT extern int xmlDoValidityCheckingDefaultValue; -< #endif ---- -> #ifdef LIBXML_THREAD_ENABLED -> extern int *__xmlDoValidityCheckingDefaultValue(void); -> #define xmlDoValidityCheckingDefaultValue \ -> (*(__xmlDoValidityCheckingDefaultValue())) -> #else -> LIBXML_DLL_IMPORT extern int xmlDoValidityCheckingDefaultValue; -317,332c300,305 -< #if defined(VMS) || defined(__VMS) -< #ifdef LIBXML_THREAD_ENABLED -< extern int *__xmlSubsEntitiesDefaultValue(void); -< #define xmlSubsEntitiesDefaultValue \ -< (*(__xmlSubsEntitiesDefaultValue())) -< #else -< LIBXML_DLL_IMPORT extern int xmlSubsEntitiesDefaultValue; -< #endif -< #else -< #ifdef LIBXML_THREAD_ENABLED -< extern int *__xmlSubstituteEntitiesDefaultValue(void); -< #define xmlSubstituteEntitiesDefaultValue \ -< (*(__xmlSubstituteEntitiesDefaultValue())) -< #else -< LIBXML_DLL_IMPORT extern int xmlSubstituteEntitiesDefaultValue; -< #endif ---- -> #ifdef LIBXML_THREAD_ENABLED -> extern int *__xmlSubstituteEntitiesDefaultValue(void); -> #define xmlSubstituteEntitiesDefaultValue \ -> (*(__xmlSubstituteEntitiesDefaultValue())) -> #else -> LIBXML_DLL_IMPORT extern int xmlSubstituteEntitiesDefaultValue; - - --------------------------------------------------------------------------- -XMLIO.H -79,82d78 -< #if defined(VMS) || defined(__VMS) -< void xmlRegisterDefInputCallbacks (void); -< #define xmlRegisterDefaultInputCallbacks xmlRegisterDefInputCallbacks -< #else -84d79 -< #endif -130,133d124 -< #if defined(VMS) || defined(__VMS) -< void xmlRegisterDefOutputCallbacks(void); -< #define xmlRegisterDefaultOutputCallbacks xmlRegisterDefOutputCallbacks -< #else -135,136d125 -< #endif -< - --------------------------------------------------------------------------- -XPATHINTERNALS.H -433,436d432 -< #if defined(VMS) || defined(__VMS) -< void xmlXPathRegisteredVarsCleanup(xmlXPathContextPtr ctxt); -< #define xmlXPathRegisteredVariablesCleanup xmlXPathRegisteredVarsCleanup -< #else -438d433 -< #endif diff --git a/src/tools/docbook/libxml2/vms/readme.vms b/src/tools/docbook/libxml2/vms/readme.vms deleted file mode 100644 index 91dddeb989..0000000000 --- a/src/tools/docbook/libxml2/vms/readme.vms +++ /dev/null @@ -1,143 +0,0 @@ -Issues in porting libxml to VMS -=============================== - -Here's a summary of the issues I encountered when building LIBXML under -VMS. There was some VMS support in the version I got, but it was a little -out of date with the result that some newer files had problems. - -I present this list "as is" to hopefully act as a guide to anyone having -problems in the future. - -That's it. Good luck! - -John A Fotheringham (jaf@jafsoft.com) -October 2001 - -Updated October 2002 by Craig A Berry (craigberry@mac.com) - -Installation kit ----------------- - -- File attributes. Having downloaded essentially a Unix distribution, some - of the file attributes weren't correct... especially those in the [.VMS] - subdirectory. In EDT you could see line feeds and carriage returns as - etc. To correct this use the command - - $ set file /attr=rfm=stm - - This sets the record format to be "stream". Other variants may be used - instead depending on how you got the files onto your system. Files will - look okay in an EDT editor once the attributes are set. Without - this the command file may not run correctly, since it may be interpreted - as a single line. - -- VMS-specific files are in a [.VMS] directory. If you've found this file - then you already know this :-) This directory contains - - BUILD_LIBXML.COM - a build command file, which I've radically re-worked - CONFIG.VMS - a configuration file to replace config.h - -- Don't execute BUILD_LIBXML.COM until you've done all the following - - - read these notes - - reviewed the configuration section of BUILD_LIBXML.COM, and in particular - updated the module lists in line with MAKEFILE - - identified the location of the include files, so that you can manually - set the LIBXML logical if need be. - - re-read these notes :-p - - instructions for all these steps are below. - -- the file [.vms]config.vms is used in lieu of a Configure-generated config.h. - This file contains a number of define statements that identify the software - options required under VMS - -- The include files are in a [.INCLUDE.LIBXML] subdirectory. You need - a logical "libxml" to point to this so that include statements of the - form - - #include - - will work correctly. The source files are mostly two levels above this - directory, although there are some .h files there as well. - -- The command file BUILD_LIBXML.COM will do the following - - - setup some logicals - - set def to the source directory - - compile modules and place them into a LIBXML.OLB library - - compile and link a number of self-test programs - - compile and link a number of utilities and test programs - - set def back to the original directory (i.e. if it fails you might not be - where you started :-) - - before running this command file review the configuration segment at - the top. In particular compare the lists of modules with those in the - most recent version of the Unix MAKEFILE. Instructions are contained - in the command file itself. - - The command file will attempt to set two logicals - - - xml_srcdir. The directory containing the source files - - libxml. The include file directory. - - It attempts this by looking for modules globals.c and globals.h in - nearby directories. If this logic fails, you'll need to manually define - these logicals. - - -The TRIO package ----------------- -- A sub-package TRIO is used to provide some functions not naturally available - under VMS. These include support for infinite and undefined numbers, - and specialised print functions like "snprintf" - - I had to make several changes to trionan.c in discussion with the author - (hopefully these are now included in the distro, so I won't list them here) - - To build this software we need to add - - /IEEE_MODE=UNDERFLOW_TO_ZERO/FLOAT=IEEE - - to the compile command for xpath.c and trio.c, and to any main program - that uses this functionality. BUILD_LIBXML.COM should do this for you. - -- to build in trio support you need the define WITH_TRIO to be set. This - is done by default for VMS in xmlversion.h - - -Compiler and linker errors --------------------------- -- the DEC C compiler may produce a number of warnings when compiling the - C code. These include - - - Implicit function warnings. These indicate functions whose type is - not defined in a .h file. This will probably only happen if your - configuration is not correct (e.g. for "snprintf" if you haven't - edited xmlversion.h to set WITH_TRIO - - - uninitialised variables. Not usually a problem. You can solve this - by editing the code to initialise the variables affected - -Changes made to the codebase ----------------------------- -- I changed all dummy declarations in trio.c to be - - va_list dummy = NULL; - - to prevent compiler whinge in TRIO.C about uninitialised variables - -- I had to add the following to nanoftp.c - - #if defined(VMS) || defined(__VMS) - #define SOCKLEN_T unsigned int - #endif - - This matches similar lines already added to nanohttp.c - -- Several variables and function names exceed the 31 character limit - of the VMS linker. The solution adopted has been to use the - /NAMES=SHORTENED compiler option, which requires DEC/Compaq C 5.7 - or later. For a complete list of the names that needed shortening - and the short names generated by the compiler, see [.vms]config.vms. - diff --git a/src/tools/docbook/libxml2/win32/.cvsignore b/src/tools/docbook/libxml2/win32/.cvsignore deleted file mode 100644 index 1f8e03448d..0000000000 --- a/src/tools/docbook/libxml2/win32/.cvsignore +++ /dev/null @@ -1,7 +0,0 @@ -Makefile -config.* -depends.* -int.* -bin.* -*.win32 -*.win32.zip diff --git a/src/tools/docbook/libxml2/win32/Makefile.bcb b/src/tools/docbook/libxml2/win32/Makefile.bcb deleted file mode 100644 index e706dc8e2e..0000000000 --- a/src/tools/docbook/libxml2/win32/Makefile.bcb +++ /dev/null @@ -1,345 +0,0 @@ -# Makefile for libxml2, specific for Windows, BCB6 and Borland make. -# -# Take a look at the beginning and modify the variables to suit your -# environment. Having done that, you can do a -# -# make [all] to build the libxml and the accompanying utilities. -# make clean to remove all compiler output files and return to a -# clean state. -# make rebuild to rebuild everything from scratch. This basically does -# a 'nmake clean' and then a 'nmake all'. -# make install to install the library and its header files. -# -# August 2003, Eric Zurcher -# based on the MSVC version of -# March 2002, Igor Zlatkovic -# - -# There should never be a need to modify anything below this line. -# ---------------------------------------------------------------- - -AUTOCONF = .\config.bcb -!include $(AUTOCONF) - -!if !$d(BCB) -BCB = $(MAKEDIR)\.. -!endif -.autodepend - -# Names of various input and output components. -XML_NAME = xml2 -XML_BASENAME = lib$(XML_NAME) -XML_SO = $(XML_BASENAME).dll -XML_IMP = $(XML_BASENAME).lib -XML_DEF = $(XML_BASENAME).def -XML_A = $(XML_BASENAME)_a.lib -DUMMY = dir.exists - -# Place where we let the compiler put its intermediate trash. -BINDIR = bin.bcb -XML_INTDIR = int.bcb -XML_INTDIR_A = int.a.bcb -UTILS_INTDIR = int.utils.bcb - -# The preprocessor and its options. -CPP = cpp32.exe -P- -DWIN32 -CPPFLAGS = -I"$(XML_SRCDIR)\include" -!if "$(WITH_THREADS)" != "no" -CPPFLAGS = $(CPPFLAGS) -D_REENTRANT -D__MT__ -!endif - -# The compiler and its options. -CC = bcc32.exe -CFLAGS = -q -DWIN32 -D_NO_VCL -D_WINDOWS -D_MBCS -DEILSEQ=2 -w- -CFLAGS = $(CFLAGS) -I"$(XML_SRCDIR)" -I"$(XML_SRCDIR)\include" -I"$(INCPREFIX)" -I"$(INCLUDE)" -!if "$(WITH_THREADS)" != "no" -CFLAGS = $(CFLAGS) -D_REENTRANT -tWM -!endif -!if "$(DYNRUNTIME)" == "1" -CFLAGS = $(CFLAGS) -tWR -!endif -!if "$(WITH_THREADS)" == "yes" || "$(WITH_THREADS)" == "ctls" -CFLAGS = $(CFLAGS) -DHAVE_WIN32_THREADS -DHAVE_COMPILER_TLS -!else if "$(WITH_THREADS)" == "native" -CFLAGS = $(CFLAGS) -DHAVE_WIN32_THREADS -!else if "$(WITH_THREADS)" == "posix" -CFLAGS = $(CFLAGS) -DHAVE_PTHREAD_H -!endif -!if "$(WITH_ZLIB)" == "1" -CFLAGS = $(CFLAGS) -DHAVE_ZLIB_H -!endif - -# The linker and its options. -LD = ilink32.exe -LDFLAGS = -q -U$(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION) -LDFLAGS = $(LDFLAGS) -L"$(BINDIR);$(LIBPREFIX);$(LIB);$(BCB)\lib\PSdk" -LIBS = import32.lib -!if "$(WITH_THREADS)" != "no" && "$(DYNRUNTIME)" == "1" -LIBS = $(LIBS) cw32mti.lib -!elif "$(WITH_THREADS)" != "no" -LIBS = $(LIBS) cw32mt.lib -!elif "$(DYNRUNTIME)" == "1" -LIBS = $(LIBS) cw32i.lib -!else -LIBS = $(LIBS) cw32.lib -!endif -!if "$(WITH_FTP)" == "1" || "$(WITH_HTTP)" == "1" -LIBS = $(LIBS) wsock32.lib -!endif -!if "$(WITH_ICONV)" == "1" -LIBS = $(LIBS) iconvomf.lib -!endif -!if "$(WITH_ZLIB)" == "1" -LIBS = $(LIBS) zlibomf.lib -!endif -!if "$(WITH_THREADS)" == "posix" -LIBS = $(LIBS) pthreadVC.lib -!endif -!if "$(WITH_MODULES)" == "1" -LIBS = $(LIBS) kernel32.lib -!endif - -# The archiver and its options. -AR = tlib.exe -ARFLAGS = /P64 /0 - -# Optimisation and debug symbols. -!if "$(DEBUG)" == "1" -CFLAGS = $(CFLAGS) -D_DEBUG -Od -v -LDFLAGS = $(LDFLAGS) -v -!else -CFLAGS = $(CFLAGS) -DNDEBUG -O2 -LDFLAGS = $(LDFLAGS) -!endif - -# Libxml object files. -XML_OBJS = $(XML_INTDIR)\c14n.obj\ - $(XML_INTDIR)\catalog.obj\ - $(XML_INTDIR)\chvalid.obj\ - $(XML_INTDIR)\debugXML.obj\ - $(XML_INTDIR)\dict.obj\ - $(XML_INTDIR)\DOCBparser.obj\ - $(XML_INTDIR)\encoding.obj\ - $(XML_INTDIR)\entities.obj\ - $(XML_INTDIR)\error.obj\ - $(XML_INTDIR)\globals.obj\ - $(XML_INTDIR)\hash.obj\ - $(XML_INTDIR)\HTMLparser.obj\ - $(XML_INTDIR)\HTMLtree.obj\ - $(XML_INTDIR)\legacy.obj\ - $(XML_INTDIR)\list.obj\ - $(XML_INTDIR)\nanoftp.obj\ - $(XML_INTDIR)\nanohttp.obj\ - $(XML_INTDIR)\parser.obj\ - $(XML_INTDIR)\parserInternals.obj\ - $(XML_INTDIR)\pattern.obj\ - $(XML_INTDIR)\relaxng.obj\ - $(XML_INTDIR)\SAX.obj\ - $(XML_INTDIR)\SAX2.obj\ - $(XML_INTDIR)\schematron.obj\ - $(XML_INTDIR)\threads.obj\ - $(XML_INTDIR)\tree.obj\ - $(XML_INTDIR)\uri.obj\ - $(XML_INTDIR)\valid.obj\ - $(XML_INTDIR)\xinclude.obj\ - $(XML_INTDIR)\xlink.obj\ - $(XML_INTDIR)\xmlIO.obj\ - $(XML_INTDIR)\xmlmemory.obj\ - $(XML_INTDIR)\xmlreader.obj\ - $(XML_INTDIR)\xmlregexp.obj\ - $(XML_INTDIR)\xmlmodule.obj\ - $(XML_INTDIR)\xmlsave.obj\ - $(XML_INTDIR)\xmlschemas.obj\ - $(XML_INTDIR)\xmlschemastypes.obj\ - $(XML_INTDIR)\xmlunicode.obj\ - $(XML_INTDIR)\xmlwriter.obj\ - $(XML_INTDIR)\xpath.obj\ - $(XML_INTDIR)\xpointer.obj\ - $(XML_INTDIR)\xmlstring.obj - -# Static libxml object files. -XML_OBJS_A = $(XML_INTDIR_A)\c14n.obj\ - $(XML_INTDIR_A)\catalog.obj\ - $(XML_INTDIR_A)\chvalid.obj\ - $(XML_INTDIR_A)\debugXML.obj\ - $(XML_INTDIR_A)\dict.obj\ - $(XML_INTDIR_A)\DOCBparser.obj\ - $(XML_INTDIR_A)\encoding.obj\ - $(XML_INTDIR_A)\entities.obj\ - $(XML_INTDIR_A)\error.obj\ - $(XML_INTDIR_A)\globals.obj\ - $(XML_INTDIR_A)\hash.obj\ - $(XML_INTDIR_A)\HTMLparser.obj\ - $(XML_INTDIR_A)\HTMLtree.obj\ - $(XML_INTDIR_A)\legacy.obj\ - $(XML_INTDIR_A)\list.obj\ - $(XML_INTDIR_A)\nanoftp.obj\ - $(XML_INTDIR_A)\nanohttp.obj\ - $(XML_INTDIR_A)\parser.obj\ - $(XML_INTDIR_A)\parserInternals.obj\ - $(XML_INTDIR_A)\pattern.obj\ - $(XML_INTDIR_A)\relaxng.obj\ - $(XML_INTDIR_A)\SAX.obj\ - $(XML_INTDIR_A)\SAX2.obj\ - $(XML_INTDIR_A)\schematron.obj\ - $(XML_INTDIR_A)\threads.obj\ - $(XML_INTDIR_A)\tree.obj\ - $(XML_INTDIR_A)\uri.obj\ - $(XML_INTDIR_A)\valid.obj\ - $(XML_INTDIR_A)\xinclude.obj\ - $(XML_INTDIR_A)\xlink.obj\ - $(XML_INTDIR_A)\xmlIO.obj\ - $(XML_INTDIR_A)\xmlmemory.obj\ - $(XML_INTDIR_A)\xmlreader.obj\ - $(XML_INTDIR_A)\xmlregexp.obj\ - $(XML_INTDIR_A)\xmlmodule.obj\ - $(XML_INTDIR_A)\xmlsave.obj\ - $(XML_INTDIR_A)\xmlschemas.obj\ - $(XML_INTDIR_A)\xmlschemastypes.obj\ - $(XML_INTDIR_A)\xmlunicode.obj\ - $(XML_INTDIR_A)\xmlwriter.obj\ - $(XML_INTDIR_A)\xpath.obj\ - $(XML_INTDIR_A)\xpointer.obj\ - $(XML_INTDIR_A)\xmlstring.obj - -# Xmllint and friends executables. -UTILS = $(BINDIR)\xmllint.exe\ - $(BINDIR)\xmlcatalog.exe\ - $(BINDIR)\testAutomata.exe\ - $(BINDIR)\testC14N.exe\ - $(BINDIR)\testDocbook.exe\ - $(BINDIR)\testHTML.exe\ - $(BINDIR)\testReader.exe\ - $(BINDIR)\testRelax.exe\ - $(BINDIR)\testRegexp.exe\ - $(BINDIR)\testModule.exe\ - $(BINDIR)\testSAX.exe\ - $(BINDIR)\testSchemas.exe\ - $(BINDIR)\testURI.exe\ - $(BINDIR)\testXPath.exe\ - $(BINDIR)\runtest.exe\ - $(BINDIR)\runsuite.exe\ - $(BINDIR)\testapi.exe - - -!if "$(WITH_THREADS)" == "yes" || "$(WITH_THREADS)" == "ctls" || "$(WITH_THREADS)" == "native" -UTILS = $(UTILS) $(BINDIR)\testThreadsWin32.exe -!else if "$(WITH_THREADS)" == "posix" -UTILS = $(UTILS) $(BINDIR)\testThreads.exe -!endif - - -all : libxml libxmla utils - -libxml : $(BINDIR)\$(XML_SO) - -libxmla : $(BINDIR)\$(XML_A) - -utils : $(UTILS) - -clean : - if exist $(XML_INTDIR) rmdir /S /Q $(XML_INTDIR) - if exist $(XML_INTDIR_A) rmdir /S /Q $(XML_INTDIR_A) - if exist $(UTILS_INTDIR) rmdir /S /Q $(UTILS_INTDIR) - if exist $(BINDIR) rmdir /S /Q $(BINDIR) - -distclean : clean - if exist config.* del config.* - if exist Makefile del Makefile - -rebuild : clean all - -install-libs : all - if not exist "$(INCPREFIX)\libxml" mkdir "$(INCPREFIX)\libxml" - if not exist "$(BINPREFIX)" mkdir "$(BINPREFIX)" - if not exist "$(LIBPREFIX)" mkdir "$(LIBPREFIX)" - copy $(XML_SRCDIR)\include\libxml\*.h "$(INCPREFIX)\libxml" - copy $(BINDIR)\$(XML_SO) "$(SOPREFIX)" - copy $(BINDIR)\$(XML_A) "$(LIBPREFIX)" - copy $(BINDIR)\$(XML_IMP) "$(LIBPREFIX)" - copy $(BINDIR)\*.exe "$(BINPREFIX)" - -install : install-libs - copy $(BINDIR)\*.exe "$(BINPREFIX)" - -install-dist : install-libs - copy $(BINDIR)\xml*.exe "$(BINPREFIX)" - -# This is a target for me, to make a binary distribution. Not for the public use, -# keep your hands off :-) -BDVERSION = $(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION).$(LIBXML_MICRO_VERSION) -BDPREFIX = $(XML_BASENAME)-$(BDVERSION).win32 -bindist : all - $(MAKE) /nologo PREFIX=$(BDPREFIX) SOPREFIX=$(BDPREFIX)\bin install-dist - cscript //NoLogo configure.js genreadme $(XML_BASENAME) $(BDVERSION) $(BDPREFIX)\readme.txt - - -# Makes the output directory. -$(BINDIR)\$(DUMMY) : - if not exist $(BINDIR) mkdir $(BINDIR) - touch $(BINDIR)\$(DUMMY) - -# Makes the libxml intermediate directory. -$(XML_INTDIR)\$(DUMMY) : - if not exist $(XML_INTDIR) mkdir $(XML_INTDIR) - touch $(XML_INTDIR)\$(DUMMY) - -# Makes the static libxml intermediate directory. -$(XML_INTDIR_A)\$(DUMMY) : - if not exist $(XML_INTDIR_A) mkdir $(XML_INTDIR_A) - touch $(XML_INTDIR_A)\$(DUMMY) - -# An implicit rule for libxml compilation. -{$(XML_SRCDIR)}.c{$(XML_INTDIR)}.obj: - $(CC) $(CFLAGS) -n$(XML_INTDIR) -c $< - -# An implicit rule for static libxml compilation. -{$(XML_SRCDIR)}.c{$(XML_INTDIR_A)}.obj: - $(CC) $(CFLAGS) -DLIBXML_STATIC -n$(XML_INTDIR_A)\ -c $< - -# Compiles libxml source. Uses the implicit rule for commands. -$(XML_OBJS) : $(XML_INTDIR)\$(DUMMY) - -# Compiles static libxml source. Uses the implicit rule for commands. -$(XML_OBJS_A) : $(XML_INTDIR_A)\$(DUMMY) - -#def4bcb.exe : def4bcb.c - -# Creates the export definition file (DEF) for libxml. -#$(XML_INTDIR)\$(XML_DEF) : $(XML_INTDIR)\$(DUMMY) $(XML_DEF).src def4bcb.exe -# $(CPP) $(CPPFLAGS) -o $(XML_INTDIR)\$(XML_DEF).tmp $(XML_DEF).src -# def4bcb -msnames < $(XML_INTDIR)\$(XML_DEF).tmp > $(XML_INTDIR)\$(XML_DEF) - -# Creates the libxml shared object. -$(BINDIR)\$(XML_SO) : $(BINDIR)\$(DUMMY) $(XML_OBJS) - $(LD) $(LDFLAGS) -Tpd -Gi c0d32.obj $(XML_OBJS),$(BINDIR)\$(XML_SO),,$(LIBS) - -#$(BINDIR)\$(XML_SO) : $(BINDIR)\$(DUMMY) $(XML_OBJS) $(XML_INTDIR)\$(XML_DEF) -# $(LD) $(LDFLAGS) -Tpd -Gi c0d32.obj $(XML_OBJS),$(BINDIR)\$(XML_SO),,$(LIBS),$(XML_INTDIR)\$(XML_DEF) - -# Creates the libxml archive. -$(BINDIR)\$(XML_A) : $(BINDIR)\$(DUMMY) $(XML_OBJS_A) - $(AR) $(BINDIR)\$(XML_A) $(ARFLAGS) /u $(XML_OBJS_A) - -# Makes the utils intermediate directory. -$(UTILS_INTDIR)\$(DUMMY) : - if not exist $(UTILS_INTDIR) mkdir $(UTILS_INTDIR) - touch $(UTILS_INTDIR)\$(DUMMY) - -# An implicit rule for xmllint and friends. -!if "$(STATIC)" == "1" -{$(UTILS_SRCDIR)}.c{$(BINDIR)}.exe: - $(CC) -DLIBXML_STATIC -w -tWC $(CFLAGS) -o$(UTILS_INTDIR)\$&.obj -c $< - $(LD) $(LDFLAGS) c0x32.obj $(UTILS_INTDIR)\$&.obj,$@,,$(LIBS) $(XML_A) -!else -{$(UTILS_SRCDIR)}.c{$(BINDIR)}.exe: - $(CC) $(CFLAGS) -tWC -o$(UTILS_INTDIR)\$&.obj -c $< - $(LD) $(LDFLAGS) c0x32.obj $(UTILS_INTDIR)\$&.obj $(XML_IMP),$@,,$(LIBS) -!endif - -# Builds xmllint and friends. Uses the implicit rule for commands. -$(UTILS) : $(UTILS_INTDIR)\$(DUMMY) $(BINDIR)\$(DUMMY) $(BINDIR)\$(XML_SO) $(BINDIR)\$(XML_A) - -# Source dependences should be autogenerated somehow here, but how to -# do it? I have no clue. - diff --git a/src/tools/docbook/libxml2/win32/Makefile.mingw b/src/tools/docbook/libxml2/win32/Makefile.mingw deleted file mode 100644 index f41ce6d6f2..0000000000 --- a/src/tools/docbook/libxml2/win32/Makefile.mingw +++ /dev/null @@ -1,340 +0,0 @@ -# Makefile for libxml2, specific for Windows, GCC (mingw) and GNU make. -# -# Take a look at the beginning and modify the variables to suit your -# environment. Having done that, you can do a -# -# nmake [all] to build the libxml and the accompanying utilities. -# nmake clean to remove all compiler output files and return to a -# clean state. -# nmake rebuild to rebuild everything from scratch. This basically does -# a 'nmake clean' and then a 'nmake all'. -# nmake install to install the library and its header files. -# -# November 2002, Igor Zlatkovic - -# There should never be a need to modify anything below this line. -# ---------------------------------------------------------------- - -AUTOCONF = .\config.mingw -include $(AUTOCONF) - -# Names of various input and output components. -XML_NAME = xml2 -XML_BASENAME = lib$(XML_NAME) -XML_SO = $(XML_BASENAME).dll -XML_IMP = $(XML_BASENAME).lib -XML_A = $(XML_BASENAME).a - -# Place where we let the compiler put its output. -BINDIR = bin.mingw -XML_INTDIR = int.mingw -XML_INTDIR_A = int.a.mingw -UTILS_INTDIR = int.utils.mingw - -# The preprocessor and its options. -CPP = gcc.exe -E -CPPFLAGS += -I$(XML_SRCDIR)/include -ifeq ($(WITH_THREADS),1) -CPPFLAGS += -D_REENTRANT -endif - -# The compiler and its options. -CC = gcc.exe -CFLAGS += -DWIN32 -D_WINDOWS -D_MBCS -CFLAGS += -I$(XML_SRCDIR) -I$(XML_SRCDIR)/include -I$(INCPREFIX) -ifneq ($(WITH_THREADS),no) -CFLAGS += -D_REENTRANT -endif -ifeq ($(WITH_THREADS),yes) -CFLAGS += -DHAVE_WIN32_THREADS -DHAVE_COMPILER_TLS -endif -ifeq ($(WITH_THREADS),ctls) -CFLAGS += -DHAVE_WIN32_THREADS -DHAVE_COMPILER_TLS -endif -ifeq ($(WITH_THREADS),native) -CFLAGS += -DHAVE_WIN32_THREADS -endif -ifeq ($(WITH_THREADS),posix) -CFLAGS += -DHAVE_PTHREAD_H -endif -ifeq ($(WITH_ZLIB),1) -CFLAGS += -DHAVE_ZLIB_H -endif - -# The linker and its options. -LD = gcc.exe -LDFLAGS += -Wl,--major-image-version,$(LIBXML_MAJOR_VERSION) -LDFLAGS += -Wl,--minor-image-version,$(LIBXML_MINOR_VERSION) -LDFLAGS += -Wl,-L,$(BINDIR) -Wl,-L,$(LIBPREFIX) -LIBS = -ifeq ($(WITH_FTP),1) -CFLAGS += -D_WINSOCKAPI_ -LIBS += -lwsock32 -endif -ifeq ($(WITH_HTTP),1) -CFLAGS += -D_WINSOCKAPI_ -LIBS += -lwsock32 -endif -ifeq ($(WITH_ICONV),1) -LIBS += -liconv -endif -ifeq ($(WITH_ZLIB),1) -LIBS += -lzdll -endif -ifeq ($(WITH_THREADS),posix) -LIBS += -lpthreadGC -endif -ifeq ($(WITH_MODULES),1) -LIBS += -lkernel32 -endif - -# The archiver and its options. -AR = ar.exe -ARFLAGS = -r - -# Optimisation and debug symbols. -ifeq ($(DEBUG),1) -CFLAGS += -D_DEBUG -g -LDFLAGS += -else -CFLAGS += -DNDEBUG -O2 -LDFLAGS += -endif - - -# Libxml object files. -XML_OBJS = $(XML_INTDIR)/c14n.o\ - $(XML_INTDIR)/catalog.o\ - $(XML_INTDIR)/chvalid.o\ - $(XML_INTDIR)/debugXML.o\ - $(XML_INTDIR)/dict.o\ - $(XML_INTDIR)/DOCBparser.o\ - $(XML_INTDIR)/encoding.o\ - $(XML_INTDIR)/entities.o\ - $(XML_INTDIR)/error.o\ - $(XML_INTDIR)/globals.o\ - $(XML_INTDIR)/hash.o\ - $(XML_INTDIR)/HTMLparser.o\ - $(XML_INTDIR)/HTMLtree.o\ - $(XML_INTDIR)/legacy.o\ - $(XML_INTDIR)/list.o\ - $(XML_INTDIR)/nanoftp.o\ - $(XML_INTDIR)/nanohttp.o\ - $(XML_INTDIR)/parser.o\ - $(XML_INTDIR)/parserInternals.o\ - $(XML_INTDIR)/pattern.o\ - $(XML_INTDIR)/relaxng.o\ - $(XML_INTDIR)/SAX.o\ - $(XML_INTDIR)/SAX2.o\ - $(XML_INTDIR)/schematron.o\ - $(XML_INTDIR)/threads.o\ - $(XML_INTDIR)/tree.o\ - $(XML_INTDIR)/uri.o\ - $(XML_INTDIR)/valid.o\ - $(XML_INTDIR)/xinclude.o\ - $(XML_INTDIR)/xlink.o\ - $(XML_INTDIR)/xmlIO.o\ - $(XML_INTDIR)/xmlmemory.o\ - $(XML_INTDIR)/xmlreader.o\ - $(XML_INTDIR)/xmlregexp.o\ - $(XML_INTDIR)/xmlmodule.o\ - $(XML_INTDIR)/xmlsave.o\ - $(XML_INTDIR)/xmlschemas.o\ - $(XML_INTDIR)/xmlschemastypes.o\ - $(XML_INTDIR)/xmlunicode.o\ - $(XML_INTDIR)/xmlwriter.o\ - $(XML_INTDIR)/xpath.o\ - $(XML_INTDIR)/xpointer.o\ - $(XML_INTDIR)/xmlstring.o - -XML_SRCS = $(subst .o,.c,$(subst $(XML_INTDIR)/,$(XML_SRCDIR)/,$(XML_OBJS))) - -# Static libxml object files. -XML_OBJS_A = $(XML_INTDIR_A)/c14n.o\ - $(XML_INTDIR_A)/catalog.o\ - $(XML_INTDIR_A)/chvalid.o\ - $(XML_INTDIR_A)/debugXML.o\ - $(XML_INTDIR_A)/dict.o\ - $(XML_INTDIR_A)/DOCBparser.o\ - $(XML_INTDIR_A)/encoding.o\ - $(XML_INTDIR_A)/entities.o\ - $(XML_INTDIR_A)/error.o\ - $(XML_INTDIR_A)/globals.o\ - $(XML_INTDIR_A)/hash.o\ - $(XML_INTDIR_A)/HTMLparser.o\ - $(XML_INTDIR_A)/HTMLtree.o\ - $(XML_INTDIR_A)/legacy.o\ - $(XML_INTDIR_A)/list.o\ - $(XML_INTDIR_A)/nanoftp.o\ - $(XML_INTDIR_A)/nanohttp.o\ - $(XML_INTDIR_A)/parser.o\ - $(XML_INTDIR_A)/parserInternals.o\ - $(XML_INTDIR_A)/pattern.o\ - $(XML_INTDIR_A)/relaxng.o\ - $(XML_INTDIR_A)/SAX.o\ - $(XML_INTDIR_A)/SAX2.o\ - $(XML_INTDIR_A)/schematron.o\ - $(XML_INTDIR_A)/threads.o\ - $(XML_INTDIR_A)/tree.o\ - $(XML_INTDIR_A)/uri.o\ - $(XML_INTDIR_A)/valid.o\ - $(XML_INTDIR_A)/xinclude.o\ - $(XML_INTDIR_A)/xlink.o\ - $(XML_INTDIR_A)/xmlIO.o\ - $(XML_INTDIR_A)/xmlmemory.o\ - $(XML_INTDIR_A)/xmlreader.o\ - $(XML_INTDIR_A)/xmlregexp.o\ - $(XML_INTDIR_A)/xmlmodule.o\ - $(XML_INTDIR_A)/xmlsave.o\ - $(XML_INTDIR_A)/xmlschemas.o\ - $(XML_INTDIR_A)/xmlschemastypes.o\ - $(XML_INTDIR_A)/xmlunicode.o\ - $(XML_INTDIR_A)/xmlwriter.o\ - $(XML_INTDIR_A)/xpath.o\ - $(XML_INTDIR_A)/xpointer.o\ - $(XML_INTDIR_A)/xmlstring.o - -XML_SRCS_A = $(subst .o,.c,$(subst $(XML_INTDIR_A)/,$(XML_SRCDIR)/,$(XML_OBJS_A))) - -# Xmllint and friends executables. -UTILS = $(BINDIR)/xmllint.exe\ - $(BINDIR)/xmlcatalog.exe\ - $(BINDIR)/testAutomata.exe\ - $(BINDIR)/testC14N.exe\ - $(BINDIR)/testDocbook.exe\ - $(BINDIR)/testHTML.exe\ - $(BINDIR)/testReader.exe\ - $(BINDIR)/testRegexp.exe\ - $(BINDIR)/testModule.exe\ - $(BINDIR)/testRelax.exe\ - $(BINDIR)/testSAX.exe\ - $(BINDIR)/testSchemas.exe\ - $(BINDIR)/testURI.exe\ - $(BINDIR)/testXPath.exe\ - $(BINDIR)/runtest.exe\ - $(BINDIR)/runsuite.exe\ - $(BINDIR)/testapi.exe - -ifeq ($(WITH_THREADS),yes) -UTILS += $(BINDIR)/testThreadsWin32.exe -endif -ifeq ($(WITH_THREADS),ctls) -UTILS += $(BINDIR)/testThreadsWin32.exe -endif -ifeq ($(WITH_THREADS),native) -UTILS += $(BINDIR)/testThreadsWin32.exe -endif -ifeq ($(WITH_THREADS),posix) -UTILS += $(BINDIR)/testThreads.exe -endif - -all : dep libxml libxmla utils - -libxml : $(BINDIR)/$(XML_SO) - -libxmla : $(BINDIR)/$(XML_A) - -utils : $(UTILS) - -clean : - cmd.exe /C if exist $(XML_INTDIR) rmdir /S /Q $(XML_INTDIR) - cmd.exe /C if exist $(XML_INTDIR_A) rmdir /S /Q $(XML_INTDIR_A) - cmd.exe /C if exist $(UTILS_INTDIR) rmdir /S /Q $(UTILS_INTDIR) - cmd.exe /C if exist $(BINDIR) rmdir /S /Q $(BINDIR) - cmd.exe /C if exist depends.mingw del depends.mingw - -distclean : clean - cmd.exe /C if exist config.* del config.* - cmd.exe /C if exist Makefile del Makefile - -rebuild : clean all - -install-libs : all - cmd.exe /C if not exist $(INCPREFIX)\libxml mkdir $(INCPREFIX)\libxml - cmd.exe /C if not exist $(BINPREFIX) mkdir $(BINPREFIX) - cmd.exe /C if not exist $(LIBPREFIX) mkdir $(LIBPREFIX) - cmd.exe /C copy $(XML_SRCDIR)\include\libxml\*.h $(INCPREFIX)\libxml - cmd.exe /C copy $(BINDIR)\$(XML_SO) $(SOPREFIX) - cmd.exe /C copy $(BINDIR)\$(XML_A) $(LIBPREFIX) - cmd.exe /C copy $(BINDIR)\$(XML_IMP) $(LIBPREFIX) - cmd.exe /C copy $(BINDIR)\xml*.exe $(BINPREFIX) - -install : install-libs - cmd.exe /C copy $(BINDIR)\*.exe $(BINPREFIX) - -install-dist : install-libs - cmd.exe /C copy $(BINDIR)\xml*.exe $(BINPREFIX) - -# This is a target for me, to make a binary distribution. Not for the public use, -# keep your hands off :-) -BDVERSION = $(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION).$(LIBXML_MICRO_VERSION) -BDPREFIX = $(XML_BASENAME)-$(BDVERSION).win32 -bindist : all - $(MAKE) PREFIX=$(BDPREFIX) SOPREFIX=$(BDPREFIX)/bin install-dist - cscript //NoLogo configure.js genreadme $(XML_BASENAME) $(BDVERSION) $(BDPREFIX)\readme.txt - - -# Creates the dependency file -dep : - $(CC) $(CFLAGS) -M $(XML_SRCS) > depends.mingw - - -# Makes the output directory. -$(BINDIR) : - cmd.exe /C if not exist $(BINDIR) mkdir $(BINDIR) - - -# Makes the libxml intermediate directory. -$(XML_INTDIR) : - cmd.exe /C if not exist $(XML_INTDIR) mkdir $(XML_INTDIR) - -# Makes the static libxml intermediate directory. -$(XML_INTDIR_A) : - cmd.exe /C if not exist $(XML_INTDIR_A) mkdir $(XML_INTDIR_A) - -# An implicit rule for libxml compilation. -$(XML_INTDIR)/%.o : $(XML_SRCDIR)/%.c - $(CC) $(CFLAGS) -o $@ -c $< - -# An implicit rule for static libxml compilation. -$(XML_INTDIR_A)/%.o : $(XML_SRCDIR)/%.c - $(CC) $(CFLAGS) -DLIBXML_STATIC -o $@ -c $< - - -# Compiles libxml source. Uses the implicit rule for commands. -$(XML_OBJS) : $(XML_INTDIR) - -# Compiles static libxml source. Uses the implicit rule for commands. -$(XML_OBJS_A) : $(XML_INTDIR_A) - -# Creates the libxml shared object. -XMLSO_LDFLAGS = $(LDFLAGS) -shared -Wl,--dll -Wl,--out-implib,$(BINDIR)/$(XML_IMP) -$(BINDIR)/$(XML_SO) : $(BINDIR) $(XML_OBJS) - $(LD) $(XMLSO_LDFLAGS) -o $(BINDIR)/$(XML_SO) $(XML_OBJS) $(LIBS) - -# Creates the libxml archive. -$(BINDIR)/$(XML_A) : $(BINDIR) $(XML_OBJS_A) - $(AR) $(ARFLAGS) $(BINDIR)\$(XML_A) $(XML_OBJS_A) - - -# Makes the utils intermediate directory. -$(UTILS_INTDIR) : - cmd.exe /C if not exist $(UTILS_INTDIR) mkdir $(UTILS_INTDIR) - -# An implicit rule for xmllint and friends. -ifeq ($(STATIC),1) -$(BINDIR)/%.exe : $(UTILS_SRCDIR)/%.c - $(CC) -DLIBXML_STATIC $(CFLAGS) -o $(subst .c,.o,$(UTILS_INTDIR)/$( - -# There should never be a need to modify anything below this line. -# ---------------------------------------------------------------- - -AUTOCONF = .\config.mingw -include $(AUTOCONF) - -# Names of various input and output components. -XML_NAME = xml2 -XML_BASENAME = lib$(XML_NAME) -XML_SO = $(XML_BASENAME).dll -XML_IMP = $(XML_BASENAME).lib -XML_A = $(XML_BASENAME).a - -# Place where we let the compiler put its output. -BINDIR = bin.mingw -XML_INTDIR = int.mingw -XML_INTDIR_A = int.a.mingw -UTILS_INTDIR = int.utils.mingw - -# The preprocessor and its options. -CPP = gcc.exe -E -CPPFLAGS += -I$(XML_SRCDIR)/include -ifeq ($(WITH_THREADS),1) -CPPFLAGS += -D_REENTRANT -endif - -# The compiler and its options. -CC = gcc.exe -CFLAGS += -DWIN32 -D_WINDOWS -D_MBCS -CFLAGS += -I$(XML_SRCDIR) -I$(XML_SRCDIR)/include -I$(INCPREFIX) -ifneq ($(WITH_THREADS),no) -CFLAGS += -D_REENTRANT -endif -ifeq ($(WITH_THREADS),yes) -CFLAGS += -DHAVE_WIN32_THREADS -DHAVE_COMPILER_TLS -endif -ifeq ($(WITH_THREADS),ctls) -CFLAGS += -DHAVE_WIN32_THREADS -DHAVE_COMPILER_TLS -endif -ifeq ($(WITH_THREADS),native) -CFLAGS += -DHAVE_WIN32_THREADS -endif -ifeq ($(WITH_THREADS),posix) -CFLAGS += -DHAVE_PTHREAD_H -endif -ifeq ($(WITH_ZLIB),1) -CFLAGS += -DHAVE_ZLIB_H -endif - -# The linker and its options. -LD = gcc.exe -LDFLAGS += -Wl,--major-image-version,$(LIBXML_MAJOR_VERSION) -LDFLAGS += -Wl,--minor-image-version,$(LIBXML_MINOR_VERSION) -LDFLAGS += -Wl,-L,$(BINDIR) -Wl,-L,$(LIBPREFIX) -LIBS = -ifeq ($(WITH_FTP),1) -CFLAGS += -D_WINSOCKAPI_ -LIBS += -lwsock32 -endif -ifeq ($(WITH_HTTP),1) -CFLAGS += -D_WINSOCKAPI_ -LIBS += -lwsock32 -endif -ifeq ($(WITH_ICONV),1) -LIBS += -liconv -endif -ifeq ($(WITH_ZLIB),1) -LIBS += -lzdll -endif -ifeq ($(WITH_THREADS),posix) -LIBS += -lpthreadGC -endif -ifeq ($(WITH_MODULES),1) -LIBS += -lkernel32 -endif - -# The archiver and its options. -AR = ar.exe -ARFLAGS = -r - -# Optimisation and debug symbols. -ifeq ($(DEBUG),1) -CFLAGS += -D_DEBUG -g -LDFLAGS += -else -CFLAGS += -DNDEBUG -O2 -LDFLAGS += -endif - - -# Libxml object files. -XML_OBJS = $(XML_INTDIR)/c14n.o\ - $(XML_INTDIR)/catalog.o\ - $(XML_INTDIR)/chvalid.o\ - $(XML_INTDIR)/debugXML.o\ - $(XML_INTDIR)/dict.o\ - $(XML_INTDIR)/DOCBparser.o\ - $(XML_INTDIR)/encoding.o\ - $(XML_INTDIR)/entities.o\ - $(XML_INTDIR)/error.o\ - $(XML_INTDIR)/globals.o\ - $(XML_INTDIR)/hash.o\ - $(XML_INTDIR)/HTMLparser.o\ - $(XML_INTDIR)/HTMLtree.o\ - $(XML_INTDIR)/legacy.o\ - $(XML_INTDIR)/list.o\ - $(XML_INTDIR)/nanoftp.o\ - $(XML_INTDIR)/nanohttp.o\ - $(XML_INTDIR)/parser.o\ - $(XML_INTDIR)/parserInternals.o\ - $(XML_INTDIR)/pattern.o\ - $(XML_INTDIR)/relaxng.o\ - $(XML_INTDIR)/SAX.o\ - $(XML_INTDIR)/SAX2.o\ - $(XML_INTDIR)/threads.o\ - $(XML_INTDIR)/tree.o\ - $(XML_INTDIR)/uri.o\ - $(XML_INTDIR)/valid.o\ - $(XML_INTDIR)/xinclude.o\ - $(XML_INTDIR)/xlink.o\ - $(XML_INTDIR)/xmlIO.o\ - $(XML_INTDIR)/xmlmemory.o\ - $(XML_INTDIR)/xmlreader.o\ - $(XML_INTDIR)/xmlregexp.o\ - $(XML_INTDIR)/xmlmodule.o\ - $(XML_INTDIR)/xmlsave.o\ - $(XML_INTDIR)/xmlschemas.o\ - $(XML_INTDIR)/xmlschemastypes.o\ - $(XML_INTDIR)/xmlunicode.o\ - $(XML_INTDIR)/xmlwriter.o\ - $(XML_INTDIR)/xpath.o\ - $(XML_INTDIR)/xpointer.o\ - $(XML_INTDIR)/xmlstring.o - -XML_SRCS = $(subst .o,.c,$(subst $(XML_INTDIR)/,$(XML_SRCDIR)/,$(XML_OBJS))) - -# Static libxml object files. -XML_OBJS_A = $(XML_INTDIR_A)/c14n.o\ - $(XML_INTDIR_A)/catalog.o\ - $(XML_INTDIR_A)/chvalid.o\ - $(XML_INTDIR_A)/debugXML.o\ - $(XML_INTDIR_A)/dict.o\ - $(XML_INTDIR_A)/DOCBparser.o\ - $(XML_INTDIR_A)/encoding.o\ - $(XML_INTDIR_A)/entities.o\ - $(XML_INTDIR_A)/error.o\ - $(XML_INTDIR_A)/globals.o\ - $(XML_INTDIR_A)/hash.o\ - $(XML_INTDIR_A)/HTMLparser.o\ - $(XML_INTDIR_A)/HTMLtree.o\ - $(XML_INTDIR_A)/legacy.o\ - $(XML_INTDIR_A)/list.o\ - $(XML_INTDIR_A)/nanoftp.o\ - $(XML_INTDIR_A)/nanohttp.o\ - $(XML_INTDIR_A)/parser.o\ - $(XML_INTDIR_A)/parserInternals.o\ - $(XML_INTDIR_A)/pattern.o\ - $(XML_INTDIR_A)/relaxng.o\ - $(XML_INTDIR_A)/SAX.o\ - $(XML_INTDIR_A)/SAX2.o\ - $(XML_INTDIR_A)/threads.o\ - $(XML_INTDIR_A)/tree.o\ - $(XML_INTDIR_A)/uri.o\ - $(XML_INTDIR_A)/valid.o\ - $(XML_INTDIR_A)/xinclude.o\ - $(XML_INTDIR_A)/xlink.o\ - $(XML_INTDIR_A)/xmlIO.o\ - $(XML_INTDIR_A)/xmlmemory.o\ - $(XML_INTDIR_A)/xmlreader.o\ - $(XML_INTDIR_A)/xmlregexp.o\ - $(XML_INTDIR_A)/xmlmodule.o\ - $(XML_INTDIR_A)/xmlsave.o\ - $(XML_INTDIR_A)/xmlschemas.o\ - $(XML_INTDIR_A)/xmlschemastypes.o\ - $(XML_INTDIR_A)/xmlunicode.o\ - $(XML_INTDIR_A)/xmlwriter.o\ - $(XML_INTDIR_A)/xpath.o\ - $(XML_INTDIR_A)/xpointer.o\ - $(XML_INTDIR_A)/xmlstring.o - -XML_SRCS_A = $(subst .o,.c,$(subst $(XML_INTDIR_A)/,$(XML_SRCDIR)/,$(XML_OBJS_A))) - -# Xmllint and friends executables. -UTILS = $(BINDIR)/xmllint.exe\ - $(BINDIR)/xmlcatalog.exe\ - $(BINDIR)/testAutomata.exe\ - $(BINDIR)/testC14N.exe\ - $(BINDIR)/testDocbook.exe\ - $(BINDIR)/testHTML.exe\ - $(BINDIR)/testReader.exe\ - $(BINDIR)/testRegexp.exe\ - $(BINDIR)/testModule.exe\ - $(BINDIR)/testRelax.exe\ - $(BINDIR)/testSAX.exe\ - $(BINDIR)/testSchemas.exe\ - $(BINDIR)/testURI.exe\ - $(BINDIR)/testXPath.exe\ - $(BINDIR)/runtest.exe\ - $(BINDIR)/runsuite.exe -ifeq ($(WITH_THREADS),yes) -UTILS += $(BINDIR)/testThreadsWin32.exe -endif -ifeq ($(WITH_THREADS),ctls) -UTILS += $(BINDIR)/testThreadsWin32.exe -endif -ifeq ($(WITH_THREADS),native) -UTILS += $(BINDIR)/testThreadsWin32.exe -endif -ifeq ($(WITH_THREADS),posix) -UTILS += $(BINDIR)/testThreads.exe -endif - -all : dep libxml libxmla utils - -libxml : $(BINDIR)/$(XML_SO) - -libxmla : $(BINDIR)/$(XML_A) - -utils : $(UTILS) - -clean : - cmd.exe /C if exist $(XML_INTDIR) rmdir /S /Q $(XML_INTDIR) - cmd.exe /C if exist $(XML_INTDIR_A) rmdir /S /Q $(XML_INTDIR_A) - cmd.exe /C if exist $(UTILS_INTDIR) rmdir /S /Q $(UTILS_INTDIR) - cmd.exe /C if exist $(BINDIR) rmdir /S /Q $(BINDIR) - cmd.exe /C if exist depends.mingw del depends.mingw - -distclean : clean - cmd.exe /C if exist config.* del config.* - cmd.exe /C if exist Makefile del Makefile - -rebuild : clean all - -install-libs : all - cmd.exe /C if not exist $(INCPREFIX)\libxml mkdir $(INCPREFIX)\libxml - cmd.exe /C if not exist $(BINPREFIX) mkdir $(BINPREFIX) - cmd.exe /C if not exist $(LIBPREFIX) mkdir $(LIBPREFIX) - cmd.exe /C copy $(XML_SRCDIR)\include\libxml\*.h $(INCPREFIX)\libxml - cmd.exe /C copy $(BINDIR)\$(XML_SO) $(SOPREFIX) - cmd.exe /C copy $(BINDIR)\$(XML_A) $(LIBPREFIX) - cmd.exe /C copy $(BINDIR)\$(XML_IMP) $(LIBPREFIX) - cmd.exe /C copy $(BINDIR)\xml*.exe $(BINPREFIX) - -install : install-libs - cmd.exe /C copy $(BINDIR)\*.exe $(BINPREFIX) - -install-dist : install-libs - cmd.exe /C copy $(BINDIR)\xml*.exe $(BINPREFIX) - -# This is a target for me, to make a binary distribution. Not for the public use, -# keep your hands off :-) -BDVERSION = $(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION).$(LIBXML_MICRO_VERSION) -BDPREFIX = $(XML_BASENAME)-$(BDVERSION).win32 -bindist : all - $(MAKE) PREFIX=$(BDPREFIX) SOPREFIX=$(BDPREFIX)/bin install-dist - cscript //NoLogo configure.js genreadme $(XML_BASENAME) $(BDVERSION) $(BDPREFIX)\readme.txt - - -# Creates the dependency file -dep : - $(CC) $(CFLAGS) -M $(XML_SRCS) > depends.mingw - - -# Makes the output directory. -$(BINDIR) : - cmd.exe /C if not exist $(BINDIR) mkdir $(BINDIR) - - -# Makes the libxml intermediate directory. -$(XML_INTDIR) : - cmd.exe /C if not exist $(XML_INTDIR) mkdir $(XML_INTDIR) - -# Makes the static libxml intermediate directory. -$(XML_INTDIR_A) : - cmd.exe /C if not exist $(XML_INTDIR_A) mkdir $(XML_INTDIR_A) - -# An implicit rule for libxml compilation. -$(XML_INTDIR)/%.o : $(XML_SRCDIR)/%.c - $(CC) $(CFLAGS) -o $@ -c $< - -# An implicit rule for static libxml compilation. -$(XML_INTDIR_A)/%.o : $(XML_SRCDIR)/%.c - $(CC) $(CFLAGS) -DLIBXML_STATIC -o $@ -c $< - - -# Compiles libxml source. Uses the implicit rule for commands. -$(XML_OBJS) : $(XML_INTDIR) - -# Compiles static libxml source. Uses the implicit rule for commands. -$(XML_OBJS_A) : $(XML_INTDIR_A) - -# Creates the libxml shared object. -XMLSO_LDFLAGS = $(LDFLAGS) -shared -Wl,--dll -Wl,--out-implib,$(BINDIR)/$(XML_IMP) -$(BINDIR)/$(XML_SO) : $(BINDIR) $(XML_OBJS) - $(LD) $(XMLSO_LDFLAGS) -o $(BINDIR)/$(XML_SO) $(XML_OBJS) $(LIBS) - -# Creates the libxml archive. -$(BINDIR)/$(XML_A) : $(BINDIR) $(XML_OBJS_A) - $(AR) $(ARFLAGS) $(BINDIR)\$(XML_A) $(XML_OBJS_A) - - -# Makes the utils intermediate directory. -$(UTILS_INTDIR) : - cmd.exe /C if not exist $(UTILS_INTDIR) mkdir $(UTILS_INTDIR) - -# An implicit rule for xmllint and friends. -ifeq ($(STATIC),1) -$(BINDIR)/%.exe : $(UTILS_SRCDIR)/%.c - $(CC) -DLIBXML_STATIC $(CFLAGS) -o $(subst .c,.o,$(UTILS_INTDIR)/$( - -# There should never be a need to modify anything below this line. -# ---------------------------------------------------------------- - -AUTOCONF = .\config.msvc -!include $(AUTOCONF) - -# Names of various input and output components. -XML_NAME = xml2 -XML_BASENAME = lib$(XML_NAME) -XML_SO = $(XML_BASENAME).dll -XML_IMP = $(XML_BASENAME).lib -XML_DEF = $(XML_BASENAME).def -XML_A = $(XML_BASENAME)_a.lib - -# Place where we let the compiler put its output. -BINDIR = bin.msvc -XML_INTDIR = int.msvc -XML_INTDIR_A = int.a.msvc -UTILS_INTDIR = int.utils.msvc - -# The preprocessor and its options. -CPP = cl.exe /EP -CPPFLAGS = /nologo /I$(XML_SRCDIR)\include -!if "$(WITH_THREADS)" != "no" -CPPFLAGS = $(CPPFLAGS) /D "_REENTRANT" -!endif - -# The compiler and its options. -CC = cl.exe -CFLAGS = /nologo /D "WIN32" /D "_WINDOWS" /D "_MBCS" /W1 $(CRUNTIME) -CFLAGS = $(CFLAGS) /I$(XML_SRCDIR) /I$(XML_SRCDIR)\include /I$(INCPREFIX) -!if "$(WITH_THREADS)" != "no" -CFLAGS = $(CFLAGS) /D "_REENTRANT" -!endif -!if "$(WITH_THREADS)" == "yes" || "$(WITH_THREADS)" == "ctls" -CFLAGS = $(CFLAGS) /D "HAVE_WIN32_THREADS" /D "HAVE_COMPILER_TLS" -!else if "$(WITH_THREADS)" == "native" -CFLAGS = $(CFLAGS) /D "HAVE_WIN32_THREADS" -!else if "$(WITH_THREADS)" == "posix" -CFLAGS = $(CFLAGS) /D "HAVE_PTHREAD_H" -!endif -!if "$(WITH_ZLIB)" == "1" -CFLAGS = $(CFLAGS) /D "HAVE_ZLIB_H" -!endif - -# The linker and its options. -LD = link.exe -LDFLAGS = /nologo /VERSION:$(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION) -LDFLAGS = $(LDFLAGS) /LIBPATH:$(BINDIR) /LIBPATH:$(LIBPREFIX) -LIBS = -!if "$(WITH_FTP)" == "1" || "$(WITH_HTTP)" == "1" -LIBS = $(LIBS) wsock32.lib -!endif -!if "$(WITH_ICONV)" == "1" -LIBS = $(LIBS) iconv.lib -!endif -!if "$(WITH_ZLIB)" == "1" -LIBS = $(LIBS) zdll.lib -!endif -!if "$(WITH_THREADS)" == "posix" -LIBS = $(LIBS) pthreadVC.lib -!endif -!if "$(WITH_MODULES)" == "1" -LIBS = $(LIBS) kernel32.lib -!endif - -# The archiver and its options. -AR = lib.exe -ARFLAGS = /nologo - -# Optimisation and debug symbols. -!if "$(DEBUG)" == "1" -CFLAGS = $(CFLAGS) /D "_DEBUG" /Od /Z7 -LDFLAGS = $(LDFLAGS) /DEBUG -!else -CFLAGS = $(CFLAGS) /D "NDEBUG" /O2 -LDFLAGS = $(LDFLAGS) /OPT:NOWIN98 -!endif - -# Libxml object files. -XML_OBJS = $(XML_INTDIR)\c14n.obj\ - $(XML_INTDIR)\catalog.obj\ - $(XML_INTDIR)\chvalid.obj\ - $(XML_INTDIR)\debugXML.obj\ - $(XML_INTDIR)\dict.obj\ - $(XML_INTDIR)\DOCBparser.obj\ - $(XML_INTDIR)\encoding.obj\ - $(XML_INTDIR)\entities.obj\ - $(XML_INTDIR)\error.obj\ - $(XML_INTDIR)\globals.obj\ - $(XML_INTDIR)\hash.obj\ - $(XML_INTDIR)\HTMLparser.obj\ - $(XML_INTDIR)\HTMLtree.obj\ - $(XML_INTDIR)\legacy.obj\ - $(XML_INTDIR)\list.obj\ - $(XML_INTDIR)\nanoftp.obj\ - $(XML_INTDIR)\nanohttp.obj\ - $(XML_INTDIR)\parser.obj\ - $(XML_INTDIR)\parserInternals.obj\ - $(XML_INTDIR)\pattern.obj\ - $(XML_INTDIR)\relaxng.obj\ - $(XML_INTDIR)\SAX2.obj\ - $(XML_INTDIR)\SAX.obj\ - $(XML_INTDIR)\schematron.obj\ - $(XML_INTDIR)\threads.obj\ - $(XML_INTDIR)\tree.obj\ - $(XML_INTDIR)\uri.obj\ - $(XML_INTDIR)\valid.obj\ - $(XML_INTDIR)\xinclude.obj\ - $(XML_INTDIR)\xlink.obj\ - $(XML_INTDIR)\xmlIO.obj\ - $(XML_INTDIR)\xmlmemory.obj\ - $(XML_INTDIR)\xmlreader.obj\ - $(XML_INTDIR)\xmlregexp.obj\ - $(XML_INTDIR)\xmlmodule.obj\ - $(XML_INTDIR)\xmlsave.obj\ - $(XML_INTDIR)\xmlschemas.obj\ - $(XML_INTDIR)\xmlschemastypes.obj\ - $(XML_INTDIR)\xmlunicode.obj\ - $(XML_INTDIR)\xmlwriter.obj\ - $(XML_INTDIR)\xpath.obj\ - $(XML_INTDIR)\xpointer.obj\ - $(XML_INTDIR)\xmlstring.obj - -# Static libxml object files. -XML_OBJS_A = $(XML_INTDIR_A)\c14n.obj\ - $(XML_INTDIR_A)\catalog.obj\ - $(XML_INTDIR_A)\chvalid.obj\ - $(XML_INTDIR_A)\debugXML.obj\ - $(XML_INTDIR_A)\dict.obj\ - $(XML_INTDIR_A)\DOCBparser.obj\ - $(XML_INTDIR_A)\encoding.obj\ - $(XML_INTDIR_A)\entities.obj\ - $(XML_INTDIR_A)\error.obj\ - $(XML_INTDIR_A)\globals.obj\ - $(XML_INTDIR_A)\hash.obj\ - $(XML_INTDIR_A)\HTMLparser.obj\ - $(XML_INTDIR_A)\HTMLtree.obj\ - $(XML_INTDIR_A)\legacy.obj\ - $(XML_INTDIR_A)\list.obj\ - $(XML_INTDIR_A)\nanoftp.obj\ - $(XML_INTDIR_A)\nanohttp.obj\ - $(XML_INTDIR_A)\parser.obj\ - $(XML_INTDIR_A)\parserInternals.obj\ - $(XML_INTDIR_A)\pattern.obj\ - $(XML_INTDIR_A)\relaxng.obj\ - $(XML_INTDIR_A)\SAX2.obj\ - $(XML_INTDIR_A)\SAX.obj\ - $(XML_INTDIR_A)\schematron.obj\ - $(XML_INTDIR_A)\threads.obj\ - $(XML_INTDIR_A)\tree.obj\ - $(XML_INTDIR_A)\uri.obj\ - $(XML_INTDIR_A)\valid.obj\ - $(XML_INTDIR_A)\xinclude.obj\ - $(XML_INTDIR_A)\xlink.obj\ - $(XML_INTDIR_A)\xmlIO.obj\ - $(XML_INTDIR_A)\xmlmemory.obj\ - $(XML_INTDIR_A)\xmlreader.obj\ - $(XML_INTDIR_A)\xmlregexp.obj\ - $(XML_INTDIR_A)\xmlmodule.obj\ - $(XML_INTDIR_A)\xmlsave.obj\ - $(XML_INTDIR_A)\xmlschemas.obj\ - $(XML_INTDIR_A)\xmlschemastypes.obj\ - $(XML_INTDIR_A)\xmlunicode.obj\ - $(XML_INTDIR_A)\xmlwriter.obj\ - $(XML_INTDIR_A)\xpath.obj\ - $(XML_INTDIR_A)\xpointer.obj\ - $(XML_INTDIR_A)\xmlstring.obj - -# Xmllint and friends executables. -UTILS = $(BINDIR)\xmllint.exe\ - $(BINDIR)\xmlcatalog.exe\ - $(BINDIR)\testAutomata.exe\ - $(BINDIR)\testC14N.exe\ - $(BINDIR)\testDocbook.exe\ - $(BINDIR)\testHTML.exe\ - $(BINDIR)\testReader.exe\ - $(BINDIR)\testRelax.exe\ - $(BINDIR)\testRegexp.exe\ - $(BINDIR)\testModule.exe\ - $(BINDIR)\testSAX.exe\ - $(BINDIR)\testSchemas.exe\ - $(BINDIR)\testURI.exe\ - $(BINDIR)\testXPath.exe\ - $(BINDIR)\runtest.exe\ - $(BINDIR)\runsuite.exe\ - $(BINDIR)\testapi.exe - -!if "$(WITH_THREADS)" == "yes" || "$(WITH_THREADS)" == "ctls" || "$(WITH_THREADS)" == "native" -UTILS = $(UTILS) $(BINDIR)\testThreadsWin32.exe -!else if "$(WITH_THREADS)" == "posix" -UTILS = $(UTILS) $(BINDIR)\testThreads.exe -!endif - -all : libxml libxmla utils - -libxml : $(BINDIR)\$(XML_SO) - -libxmla : $(BINDIR)\$(XML_A) - -utils : $(UTILS) - -clean : - if exist $(XML_INTDIR) rmdir /S /Q $(XML_INTDIR) - if exist $(XML_INTDIR_A) rmdir /S /Q $(XML_INTDIR_A) - if exist $(UTILS_INTDIR) rmdir /S /Q $(UTILS_INTDIR) - if exist $(BINDIR) rmdir /S /Q $(BINDIR) - -distclean : clean - if exist config.* del config.* - if exist Makefile del Makefile - -rebuild : clean all - -install-libs : all - if not exist $(INCPREFIX)\libxml mkdir $(INCPREFIX)\libxml - if not exist $(BINPREFIX) mkdir $(BINPREFIX) - if not exist $(LIBPREFIX) mkdir $(LIBPREFIX) - if not exist $(SOPREFIX) mkdir $(SOPREFIX) - copy $(XML_SRCDIR)\include\libxml\*.h $(INCPREFIX)\libxml - copy $(BINDIR)\$(XML_SO) $(SOPREFIX) - copy $(BINDIR)\$(XML_A) $(LIBPREFIX) - copy $(BINDIR)\$(XML_IMP) $(LIBPREFIX) - -install : install-libs - copy $(BINDIR)\*.exe $(BINPREFIX) - -copy $(BINDIR)\*.pdb $(BINPREFIX) - -install-dist : install-libs - copy $(BINDIR)\xml*.exe $(BINPREFIX) - -copy $(BINDIR)\xml*.pdb $(BINPREFIX) - -# This is a target for me, to make a binary distribution. Not for the public use, -# keep your hands off :-) -BDVERSION = $(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION).$(LIBXML_MICRO_VERSION) -BDPREFIX = $(XML_BASENAME)-$(BDVERSION).win32 -bindist : all - $(MAKE) /nologo PREFIX=$(BDPREFIX) SOPREFIX=$(BDPREFIX)\bin install-dist - cscript //NoLogo configure.js genreadme $(XML_BASENAME) $(BDVERSION) $(BDPREFIX)\readme.txt - - -# Makes the output directory. -$(BINDIR) : - if not exist $(BINDIR) mkdir $(BINDIR) - - -# Makes the libxml intermediate directory. -$(XML_INTDIR) : - if not exist $(XML_INTDIR) mkdir $(XML_INTDIR) - -# Makes the static libxml intermediate directory. -$(XML_INTDIR_A) : - if not exist $(XML_INTDIR_A) mkdir $(XML_INTDIR_A) - -# An implicit rule for libxml compilation. -{$(XML_SRCDIR)}.c{$(XML_INTDIR)}.obj:: - $(CC) $(CFLAGS) /Fo$(XML_INTDIR)\ /c $< - -# An implicit rule for static libxml compilation. -{$(XML_SRCDIR)}.c{$(XML_INTDIR_A)}.obj:: - $(CC) $(CFLAGS) /D "LIBXML_STATIC" /Fo$(XML_INTDIR_A)\ /c $< - -# Compiles libxml source. Uses the implicit rule for commands. -$(XML_OBJS) : $(XML_INTDIR) - -# Compiles static libxml source. Uses the implicit rule for commands. -$(XML_OBJS_A) : $(XML_INTDIR_A) - -# Creates the export definition file (DEF) for libxml. -$(XML_INTDIR)\$(XML_DEF) : $(XML_INTDIR) $(XML_DEF).src - $(CPP) $(CPPFLAGS) $(XML_DEF).src > $(XML_INTDIR)\$(XML_DEF) - -# Creates the libxml shared object. -$(BINDIR)\$(XML_SO) : $(BINDIR) $(XML_OBJS) $(XML_INTDIR)\$(XML_DEF) - $(LD) $(LDFLAGS) /DLL \ - /IMPLIB:$(BINDIR)\$(XML_IMP) /OUT:$(BINDIR)\$(XML_SO) $(XML_OBJS) $(LIBS) - -#$(BINDIR)\$(XML_SO) : $(BINDIR) $(XML_OBJS) $(XML_INTDIR)\$(XML_DEF) -# $(LD) $(LDFLAGS) /DLL /DEF:$(XML_INTDIR)\$(XML_DEF) \ -# /IMPLIB:$(BINDIR)\$(XML_IMP) /OUT:$(BINDIR)\$(XML_SO) $(XML_OBJS) $(LIBS) - -# Creates the libxml archive. -$(BINDIR)\$(XML_A) : $(BINDIR) $(XML_OBJS_A) - $(AR) $(ARFLAGS) /OUT:$(BINDIR)\$(XML_A) $(XML_OBJS_A) - - -# Makes the utils intermediate directory. -$(UTILS_INTDIR) : - if not exist $(UTILS_INTDIR) mkdir $(UTILS_INTDIR) - -# An implicit rule for xmllint and friends. -!if "$(STATIC)" == "1" -{$(UTILS_SRCDIR)}.c{$(BINDIR)}.exe: - $(CC) /D "LIBXML_STATIC" $(CFLAGS) /Fo$(UTILS_INTDIR)\ /c $< - $(LD) $(LDFLAGS) /OUT:$@ $(XML_A) $(LIBS) $(UTILS_INTDIR)\$( .memdump - @echo ## XPath regression tests - @-$(BINDIR)\testXPath.exe | find /C "support not compiled in" 1>nul - @if %ERRORLEVEL% NEQ 0 @( \ - echo Skipping debug not compiled in\ - @exit 0 \ - ) - @for %%I in ($(XML_SRCDIR)\test\XPath\expr\*.*) do @( \ - @IF NOT EXIST $(XML_SRCDIR)\result\XPath\expr\%%~nxI ( \ - @echo New test %%~nxI &&\ - @echo %%~nxI &&\ - $(BINDIR)\testXPath.exe -f --expr %%I > $(XML_SRCDIR)/result/XPath/expr/%%~nxI &&\ - findstr /C:"MEMORY ALLOCATED : 0" \ - ) ELSE ( \ - $(BINDIR)\testXPath.exe -f --expr %%I 2>&1 > result.%%~nxI &&\ - fc $(XML_SRCDIR)\result\XPath\expr\%%~nxI result.%%~nxI >nul &\ - iF ERRORLEVEL 1 exit 1 & \ - findstr "MEMORY ALLOCATED" .memdump | findstr /C:"MEMORY ALLOCATED : 0" >nul &&\ - del result.%%~nxI \ - ) \ - ) - @for %%I in ($(XML_SRCDIR)\test\XPath\docs\*.*) do @( \ - for %%J in ($(XML_SRCDIR)\test\XPath\tests\%%~nxI*.*) do @( \ - if not exist $(XML_SRCDIR)\result\XPath\tests\%%~nxJ ( \ - $(BINDIR)\testXPath.exe -f -i %%I %%J > $(XML_SRCDIR)\result\XPath\tests\%%~nxJ &&\ - findstr /C:"MEMORY ALLOCATED" .memdump | findstr /C:"MEMORY ALLOCATED : 0" > nul \ - ) ELSE ( \ - $(BINDIR)\testXPAth.exe -f -i %%I %%J 2>&1 > result.%%~nxJ &&\ - findstr /C:"MEMORY ALLOCATED" .memdump | findstr /C:"MEMORY ALLOCATED : 0">null &&\ - fc $(XML_SRCDIR)\result\XPath\tests\%%~nxJ result.%%~nxJ >null & \ - IF ERRORLEVEL 1 (echo Error: %%I %%J & exit 1) & \ - del result.%%~nxJ \ - )\ - )\ - ) - -XMLtests : $(BINDIR)\xmllint.exe - @echo. 2> .memdump - @echo ## XML regression tests - -@for %%I in ($(XML_SRCDIR)\test\*) do @( \ - if not exist $(XML_SRCDIR)\result\%%~nxI ( \ - echo New test file %%~nxI &\ - $(BINDIR)\xmllint.exe %%I > $(XML_SRCDIR)\result\%%~nxI && \ - findstr /C:"MEMORY ALLOCATED" .memdump | findstr /C:"MEMORY ALLOCATED : 0" > null \ - ) ELSE ( \ - $(BINDIR)\xmllint.exe %%I 2>&1 > result.%%~nxI && \ - findstr /C:"MEMORY ALLOC" .memdump | findstr /C:"MEMORY ALLOCATED : 0" > null && \ - fc $(XML_SRCDIR)\result\%%~nxI result.%%~nxI > null && \ - $(BINDIR)\xmllint.exe result.%%~nxI 2>&1 > result2.%%~nxI | findstr /V /C:"failed to load external entity" && \ - fc result.%%~nxI result2.%%~nxI & \ - del result.%%~nxI result2.%%~nxI\ - ) \ - ) - - - - - - diff --git a/src/tools/docbook/libxml2/win32/Readme.txt b/src/tools/docbook/libxml2/win32/Readme.txt deleted file mode 100644 index 6b3edddbe4..0000000000 --- a/src/tools/docbook/libxml2/win32/Readme.txt +++ /dev/null @@ -1,226 +0,0 @@ - - Windows port - ============ - -This directory contains the files required to build this software on the -native Windows platform. This is not a place to look for help if you are -using a POSIX emulator, such as Cygwin. Check the Unix instructions for -that. - - - -CONTENTS -======== - -1. General - 1.1 Building From the Command-Line - 1.2 Configuring The Source - 1.3 Compiling - 1.4 Installing - -2. Compiler Specifics - 2.1 Microsoft Visual C/C++ - 2.1 GNU C/C++, Mingw Edition - 2.2 Borland C++ Builder - 2.2.1 Building with iconv support - 2.2.2 Compatability problems with MSVC (and probably CYGWIN) - 2.2.3 Other caveats - - - - -1. General -========== - - -1.1 Building From The Command-Line ----------------------------------- - -This is the easiest, preferred and currently supported method. It can -be that a subdirectory of the directory where this file resides -contains project files for some IDE. If you want to use that, please -refer to the readme file within that subdirectory. - -In order to build from the command-line you need to make sure that -your compiler works from the command line. This is not always the -case, often the required environment variables are missing. If you are -not sure, test if this works first. If it doesn't, you will first have -to configure your compiler suite to run from the command-line - please -refer to your compiler's documentation regarding that. - -The first thing you want to do is configure the source. You can have -the configuration script do this automatically for you. The -configuration script is written in JScript, a Microsoft's -implementation of the ECMA scripting language. Almost every Windows -machine can execute this through the Windows Scripting Host. If your -system lacks the ability to execute JScript for some reason, you must -perform the configuration manually and you are on your own with that. - -The second step is compiling the source and, optionally, installing it -to the location of your choosing. - - -1.2 Configuring The Source --------------------------- - -The configuration script accepts numerous options. Some of these -affect features which will be available in the compiled software, -others affect the way the software is built and installed. To see a -full list of options supported by the configuration script, run - - cscript configure.js help - -from the win32 subdirectory. The configuration script will present you -the options it accepts and give a biref explanation of these. In every -case you will have two sets of options. The first set is specific to -the software you are building and the second one is specific to the -Windows port. - -Once you have decided which options suit you, run the script with that -options. Here is an example: - - cscript configure.js compiler=msvc prefix=c:\opt - include=c:\opt\include lib=c:\opt\lib debug=yes - -The previous example will configure the process to use the Microsoft's -compiler, install the library in c:\opt, use c:\opt\include and -c:\opt\lib as additional search paths for the compiler and the linker -and build executables with debug symbols. - -Note: Please do not use path names which contain spaces. This will -fail. Allowing this would require me to put almost everything in the -Makefile in quotas and that looks quite ugly with my -syntax-highlighting engine. If you absolutely must use spaces in paths -send me an email and tell me why. If there are enough of you out there -who need this, or if a single one has a very good reason, I will -modify the Makefile to allow spaces in paths. - - -1.3 Compiling -------------- - -After the configuration stage has been completed, you want to build -the software. You will have to use the make tool which comes with -your compiler. If you, for example, configured the source to build -with Microsoft's MSVC compiler, you would use the NMAKE utility. If -you configured it to build with GNU C compiler, mingw edition, you -would use the GNU make. Assuming you use MSVC, type - - nmake /f Makefile.msvc - -and if you use MinGW, you would type - - make -f Makefile.mingw - -and if you use Borland's compiler, you would type - - bmake -f Makefile.bcb - -in the win32 subdirectory. When the building completes, you will find -the executable files in win32\bin.* directory, where * stands for the -name of the compiler you have used. - - -1.4 Installing --------------- - -You can install the software into the directory you specified to the -configure script during the configure stage by typing (with MSVC in -this example) - - nmake /f Makefile.msvc install - -That would be it, enjoy. - - - - - -2. Compiler Specifics -===================== - - -2.1 Microsoft Visual C/C++ --------------------------- - -If you use the compiler which comes with Visual Studio .NET, note that -it will link to its own C-runtime named msvcr70.dll or msvcr71.dll. This -file is not available on any machine which doesn't have Visual Studio -.NET installed. - - -2.2 GNU C/C++, Mingw edition ----------------------------- - -When specifying paths to configure.js, please use slashes instead of -backslashes for directory separation. Sometimes Mingw needs this. If -this is the case, and you specify backslashes, then the compiler will -complain about not finding necessary header files. - - -2.2 Borland C++ Builder ------------------------ - -To compile libxml2 with the BCB6 compiler and associated tools, just follow -the basic instructions found in this file file. Be sure to specify -the "compiler=bcb" option when running the configure script. To compile the -library and test programs, just type - - make -fMakefile.bcb - -That should be all that's required. But there are a few other things to note: - -2.2.1 Building with iconv support - -If you configure libxml2 to include iconv support, you will obviously need to -obtain the iconv library and include files. To get them, just follow the links -at http://www.gnu.org/software/libiconv/ - there are pre-compiled Win32 -versions available, but note that these where built with MSVC. Hence the -supplied import library is in COFF format rather than OMF format. You can -convert this library by using Borland's COFF2OMF utility, or use IMPLIB to -build a new import library from the DLL. Alternatively, it is possible to -obtain the iconv source, and build the DLL using the Borland compiler. - -There is a minor problem with the header files for iconv - they expect a -macro named "EILSEQ" in errno.h, but this is not defined in the Borland -headers, and its absence can cause problems. To circumvent this problem, I -define EILSEQ=2 in Makefile.bcb. The value "2" is the value for ENOFILE (file -not found). This should not have any disastrous side effects beyond possibly -displaying a misleading error message in certain situations. - -2.2.2 Compatability problems with MSVC (and probably CYGWIN) - -A libxml2 DLL generated by BCB is callable from MSVC programs, but there is a -minor problem with the names of the symbols exported from the library. The -Borland compiler, by default, prepends an underscore character to global -identifiers (functions and global variables) when generating object files. -Hence the function "xmlAddChild" is added to the DLL with the name -"_xmlAddChild". The MSVC compiler does not have this behaviour, and looks for -the unadorned name. I currently circumvent this problem by writing a .def file -which causes BOTH the adorned and unadorned names to be exported from the DLL. -This behaviour may not be supported in the future. - -An even worse problem is that of generating an import library for the DLL. The -Borland-generated DLL is in OMF format. MSVC expects libraries in COFF format, -but they don't provide a "OMF2COFF" utility, or even the equivalent of -Borland's IMPLIB utility. But it is possible to create an import lib from the -.def file, using the command: - LIB /DEF:libxml2.def - -If you don't have the .def file, it's possible to create one manually. Use -DUMPBIN /EXPORTS /OUT:libxml2.tmp libxml2.dll to get a list of the exported -names, and edit this into .def file format. - -A similar problem is likely with Cygwin. - -2.2.3 Other caveats - -We have tested this only with BCB6, Professional Edition, and BCB 5.5 free -command-line tools. - - - -Authors: Igor Zlatkovic - Eric Zurcher - - diff --git a/src/tools/docbook/libxml2/win32/configure.js b/src/tools/docbook/libxml2/win32/configure.js deleted file mode 100644 index 5d73f5a1b1..0000000000 --- a/src/tools/docbook/libxml2/win32/configure.js +++ /dev/null @@ -1,680 +0,0 @@ -/* Configure script for libxml, specific for Windows with Scripting Host. - * - * This script will configure the libxml build process and create necessary files. - * Run it with an 'help', or an invalid option and it will tell you what options - * it accepts. - * - * March 2002, Igor Zlatkovic - */ - -/* The source directory, relative to the one where this file resides. */ -var srcDirXml = ".."; -var srcDirUtils = ".."; -/* Base name of what we are building. */ -var baseName = "libxml2"; -/* Configure file which contains the version and the output file where - we can store our build configuration. */ -var configFile = srcDirXml + "\\configure.in"; -var versionFile = ".\\config.msvc"; -/* Input and output files regarding the libxml features. */ -var optsFileIn = srcDirXml + "\\include\\libxml\\xmlversion.h.in"; -var optsFile = srcDirXml + "\\include\\libxml\\xmlversion.h"; -/* Version strings for the binary distribution. Will be filled later - in the code. */ -var verMajor; -var verMinor; -var verMicro; -var verMicroSuffix; -var verCvs; -var useCvsVer = true; -/* Libxml features. */ -var withTrio = false; -var withThreads = "native"; -var withFtp = true; -var withHttp = true; -var withHtml = true; -var withC14n = true; -var withCatalog = true; -var withDocb = true; -var withXpath = true; -var withXptr = true; -var withXinclude = true; -var withIconv = true; -var withIso8859x = false; -var withZlib = false; -var withDebug = true; -var withMemDebug = false; -var withRunDebug = false; -var withSchemas = true; -var withSchematron = true; -var withRegExps = true; -var withModules = true; -var withTree = true; -var withReader = true; -var withWriter = true; -var withWalker = true; -var withPattern = true; -var withPush = true; -var withValid = true; -var withSax1 = true; -var withLegacy = true; -var withOutput = true; -var withPython = false; -/* Win32 build options. */ -var dirSep = "\\"; -var compiler = "msvc"; -var cruntime = "/MD"; -var dynruntime = true; -var buildDebug = 0; -var buildStatic = 0; -var buildPrefix = "."; -var buildBinPrefix = ""; -var buildIncPrefix = ""; -var buildLibPrefix = ""; -var buildSoPrefix = ""; -var buildInclude = "."; -var buildLib = "."; -/* Local stuff */ -var error = 0; - -/* Helper function, transforms the option variable into the 'Enabled' - or 'Disabled' string. */ -function boolToStr(opt) -{ - if (opt == false) - return "no"; - else if (opt == true) - return "yes"; - error = 1; - return "*** undefined ***"; -} - -/* Helper function, transforms the argument string into a boolean - value. */ -function strToBool(opt) -{ - if (opt == 0 || opt == "no") - return false; - else if (opt == 1 || opt == "yes") - return true; - error = 1; - return false; -} - -/* Displays the details about how to use this script. */ -function usage() -{ - var txt; - txt = "Usage:\n"; - txt += " cscript " + WScript.ScriptName + " \n"; - txt += " cscript " + WScript.ScriptName + " help\n\n"; - txt += "Options can be specified in the form

    - - - - -

    Type :

    -

    - - - - - -

    -
    - - -

    Letter :

    -

    - - - - - -

    -
    - - -

    Module :

    -

    - - - - - -

    -
    - -

    Letter :

    -
    - -
    -
    - - - - - -
    -
    -
    -
    - - - Generating API Constructors - List of constructors for - - - - - - - - - - - - Generating API List of symbols per file - List of Symbols per Module for - - - - - - - - - - - - Generating API Functions by Type - List of function manipulating types in - - - - - - - - - - - - Generating API Alphabetic list - Alphabetic List of Symbols in - - - - - - - - - - - -

    - - - - - - - - - -

    -
    - - - - - - - - API Alphabetic Index for - - - - - - - - - - - - - - Generating API Index - - - - - Generating API Cross References - - - - - - - - - Executing api.xsl - - - Generating search template - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/doc/apibuild.py b/src/tools/docbook/libxslt/doc/apibuild.py deleted file mode 100755 index c04f345c66..0000000000 --- a/src/tools/docbook/libxslt/doc/apibuild.py +++ /dev/null @@ -1,1911 +0,0 @@ -#!/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 os, sys -import string -import glob - -debug=0 - -# -# 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", - "testOOM.c": "out of memory tester", - "testOOMlib.h": "out of memory tester", - "testOOMlib.c": "out of memory tester", -} - -ignored_words = { - "WINAPI": (0, "Windows keyword"), - "LIBXML_DLL_IMPORT": (0, "Special macro to flag external keywords"), - "XMLPUBVAR": (0, "Special macro for extern vars for win32"), - "XSLTPUBVAR": (0, "Special macro for extern vars for win32"), - "EXSLTPUBVAR": (0, "Special macro for extern vars for win32"), - "XMLPUBFUN": (0, "Special macro for extern funcs for win32"), - "XSLTPUBFUN": (0, "Special macro for extern funcs for win32"), - "EXSLTPUBFUN": (0, "Special macro for extern funcs for win32"), - "XMLCALL": (0, "Special macro for win32 calls"), - "XSLTCALL": (0, "Special macro for win32 calls"), - "EXSLTCALL": (0, "Special macro for win32 calls"), - "__declspec": (3, "Windows keyword"), - "ATTRIBUTE_UNUSED": (0, "macro keyword"), - "LIBEXSLT_PUBLIC": (0, "macro keyword"), - "X_IN_Y": (5, "macro function builder"), -} - -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 - -def uniq(items): - d = {} - for item in items: - d[item]=1 - return d.keys() - -class identifier: - def __init__(self, name, module=None, type=None, lineno = 0, - info=None, extra=None): - self.name = name - self.module = module - self.type = type - self.info = info - self.extra = extra - self.lineno = lineno - 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_lineno(self, lineno): - self.lineno = lineno - def set_static(self, static): - self.static = static - - def get_name(self): - return self.name - def get_module(self): - return self.module - def get_type(self): - return self.type - def get_info(self): - return self.info - def get_lineno(self): - return self.lineno - def get_extra(self): - return self.extra - def get_static(self): - return self.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 = {} - self.info = {} - - def add_ref(self, name, module, static, type, lineno, info=None, extra=None): - if name[0:2] == '__': - return None - d = None - try: - d = self.identifiers[name] - d.update(module, type, lineno, info, extra) - except: - d = identifier(name, module, type, lineno, 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: - self.references[name] = d - - def add(self, name, module, static, type, lineno, info=None, extra=None): - if name[0:2] == '__': - return None - d = None - try: - d = self.identifiers[name] - d.update(module, type, lineno, info, extra) - except: - d = identifier(name, module, type, lineno, 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: - # 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 - 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) - -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 - self.collect_ref = 0 - self.no_error = 0 - - def collect_references(self): - self.collect_ref = 1 - - def stop_error(self): - self.no_error = 1 - - def start_error(self): - self.no_error = 0 - - def lineno(self): - return self.lexer.getlineno() - - def index_add(self, name, module, static, type, info=None, extra = None): - self.index.add(name, module, static, type, self.lineno(), - info, extra) - - def index_add_ref(self, name, module, static, type, info=None, - extra = None): - self.index.add_ref(name, module, static, type, self.lineno(), - info, extra) - - def warning(self, msg): - if self.no_error: - return - print msg - - def error(self, msg, token=-1): - if self.no_error: - return - - 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 parseTopComment(self, comment): - res = {} - lines = string.split(comment, "\n") - item = None - for line in lines: - while line != "" and (line[0] == ' ' or line[0] == '\t'): - line = line[1:] - while line != "" and line[0] == '*': - line = line[1:] - while line != "" and (line[0] == ' ' or line[0] == '\t'): - line = line[1:] - try: - (it, line) = string.split(line, ":", 1) - item = it - while line != "" and (line[0] == ' ' or line[0] == '\t'): - line = line[1:] - if res.has_key(item): - res[item] = res[item] + " " + line - else: - res[item] = line - except: - if item != None: - if res.has_key(item): - res[item] = res[item] + " " + line - else: - res[item] = line - self.index.info = res - - 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() - - if string.find(self.comment, "DOC_DISABLE") != -1: - self.stop_error() - - if string.find(self.comment, "DOC_ENABLE") != -1: - self.start_error() - - 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: - self.warning("Missing comment for macro %s" % (name)) - return((args, desc)) - if self.comment[0] != '*': - if not quiet: - self.warning("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: - self.warning("Misformatted macro comment for %s" % (name)) - self.warning(" 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: - self.warning("Misformatted macro comment for %s" % (name)) - self.warning(" 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 == "": - self.warning("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: - self.warning("Missing comment for function %s" % (name)) - return(((ret[0], retdesc), args, desc)) - if self.comment[0] != '*': - if not quiet: - self.warning("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: - self.warning("Misformatted function comment for %s" % (name)) - self.warning(" 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: - self.warning("Misformatted function comment for %s" % (name)) - self.warning(" 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: - self.warning("Unable 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: - self.warning("Function comment for %s lack description of arg %s" % (name, args[i][1])) - i = i + 1 - if retdesc == "" and ret[0] != "void": - self.warning("Function comment for %s lack description of return value" % (name)) - if desc == "": - self.warning("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: - if debug: - 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: - type = string.split(type, '(')[0] - 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: - if self.collect_ref == 1: - oldtok = token - token = self.token() - if oldtok[0] == "name" and oldtok[1][0:3] == "xml": - if token[0] == "sep" and token[1] == "(": - self.index_add_ref(oldtok[1], self.filename, - 0, "function") - token = self.token() - elif token[0] == "name": - token = self.token() - if token[0] == "sep" and (token[1] == ";" or - token[1] == "," or token[1] == "="): - self.index_add_ref(oldtok[1], self.filename, - 0, "type") - elif oldtok[0] == "name" and oldtok[1][0:4] == "XML_": - self.index_add_ref(oldtok[1], self.filename, - 0, "typedef") - elif oldtok[0] == "name" and oldtok[1][0:7] == "LIBXML_": - self.index_add_ref(oldtok[1], self.filename, - 0, "typedef") - - 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 = "0" - 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 = "" - token = self.token() - if token[0] == "op" and token[1][0] == "=": - value = "" - 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() - else: - try: - value = "%d" % (int(value) + 1) - except: - self.warning("Failed to compute value of enum %s" % (name)) - value="" - 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() - elif 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): - self.warning("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 - self.parseTopComment(self.top_comment) - 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() - self.xref = {} - self.index = {} - if name == 'libxml2': - self.basename = 'libxml' - else: - self.basename = name - - def indexString(self, id, str): - if str == None: - return - str = string.replace(str, "'", ' ') - str = string.replace(str, '"', ' ') - str = string.replace(str, "/", ' ') - str = string.replace(str, '*', ' ') - str = string.replace(str, "[", ' ') - str = string.replace(str, "]", ' ') - str = string.replace(str, "(", ' ') - str = string.replace(str, ")", ' ') - str = string.replace(str, "<", ' ') - str = string.replace(str, '>', ' ') - str = string.replace(str, "&", ' ') - str = string.replace(str, '#', ' ') - str = string.replace(str, ",", ' ') - str = string.replace(str, '.', ' ') - str = string.replace(str, ';', ' ') - tokens = string.split(str) - for token in tokens: - try: - c = token[0] - if string.find(string.letters, c) < 0: - pass - elif len(token) < 3: - pass - else: - lower = string.lower(token) - # TODO: generalize this a bit - if lower == 'and' or lower == 'the': - pass - elif self.xref.has_key(token): - self.xref[token].append(id) - else: - self.xref[token] = [id] - except: - pass - - 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 = os.path.basename(file) - if module[-2:] == '.h': - module = module[:-2] - return module - - def serialize_enum(self, output, name): - id = self.idx.enums[name] - output.write(" \n") - - def serialize_macro(self, output, name): - id = self.idx.macros[name] - output.write(" \n" % (name, - self.modulename_file(id.module))) - if id.info != None: - try: - (args, desc) = id.info - if desc != None and desc != "": - output.write(" %s\n" % (escape(desc))) - self.indexString(name, desc) - for arg in args: - (name, desc) = arg - if desc != None and desc != "": - output.write(" \n" % ( - name, escape(desc))) - self.indexString(name, desc) - else: - output.write(" \n" % (name)) - except: - pass - output.write(" \n") - - def serialize_typedef(self, output, name): - id = self.idx.typedefs[name] - if id.info[0:7] == 'struct ': - output.write(" \n"); - try: - for field in self.idx.structs[name].info: - desc = field[2] - self.indexString(name, desc) - if desc == None: - desc = '' - else: - desc = escape(desc) - output.write(" \n" % (field[1] , field[0], desc)) - except: - print "Failed to serialize struct %s" % (name) - output.write(" \n") - else: - output.write("/>\n"); - else : - output.write(" \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(" \n" % ( - name, self.modulename_file(id.module), id.info)) - else: - output.write(" \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, - self.modulename_file(id.module))) - try: - (ret, params, desc) = id.info - output.write(" %s\n" % (escape(desc))) - self.indexString(name, desc) - if ret[0] != None: - if ret[0] == "void": - output.write(" \n") - else: - output.write(" \n" % ( - ret[0], escape(ret[1]))) - self.indexString(name, ret[1]) - for param in params: - if param[0] == 'void': - continue - if param[2] == None: - output.write(" \n" % (param[1], param[0])) - else: - output.write(" \n" % (param[1], param[0], escape(param[2]))) - self.indexString(name, param[2]) - except: - print "Failed to save function %s info: " % name, `id.info` - output.write(" \n" % (id.type)) - - def serialize_exports(self, output, file): - module = self.modulename_file(file) - output.write(" \n" % (module)) - dict = self.headers[file] - if dict.info != None: - for data in ('Summary', 'Description', 'Author'): - try: - output.write(" <%s>%s\n" % ( - string.lower(data), - escape(dict.info[data]), - string.lower(data))) - except: - print "Header %s lacks a %s description" % (module, data) - if dict.info.has_key('Description'): - desc = dict.info['Description'] - if string.find(desc, "DEPRECATED") != -1: - output.write(" \n") - - ids = dict.macros.keys() - ids.sort() - for id in uniq(ids): - # Macros are sometime used to masquerade other types. - if dict.functions.has_key(id): - continue - if dict.variables.has_key(id): - continue - if dict.typedefs.has_key(id): - continue - if dict.structs.has_key(id): - continue - if dict.enums.has_key(id): - continue - output.write(" \n" % (id)) - ids = dict.enums.keys() - ids.sort() - for id in uniq(ids): - output.write(" \n" % (id)) - ids = dict.typedefs.keys() - ids.sort() - for id in uniq(ids): - output.write(" \n" % (id)) - ids = dict.structs.keys() - ids.sort() - for id in uniq(ids): - output.write(" \n" % (id)) - ids = dict.variables.keys() - ids.sort() - for id in uniq(ids): - output.write(" \n" % (id)) - ids = dict.functions.keys() - ids.sort() - for id in uniq(ids): - output.write(" \n" % (id)) - output.write(" \n") - - def serialize_xrefs_files(self, output): - headers = self.headers.keys() - headers.sort() - for file in headers: - module = self.modulename_file(file) - output.write(" \n" % (module)) - dict = self.headers[file] - ids = uniq(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(" \n" % (id)) - output.write(" \n") - pass - - def serialize_xrefs_functions(self, output): - funcs = {} - for name in self.idx.functions.keys(): - id = self.idx.functions[name] - try: - (ret, params, desc) = id.info - for param in params: - if param[0] == 'void': - continue - if funcs.has_key(param[0]): - funcs[param[0]].append(name) - else: - funcs[param[0]] = [name] - except: - pass - typ = funcs.keys() - typ.sort() - for type in typ: - if type == '' or type == 'void' or type == "int" or \ - type == "char *" or type == "const char *" : - continue - output.write(" \n" % (type)) - ids = funcs[type] - ids.sort() - pid = '' # not sure why we have dups, but get rid of them! - for id in ids: - if id != pid: - output.write(" \n" % (id)) - pid = id - output.write(" \n") - - def serialize_xrefs_constructors(self, output): - funcs = {} - for name in self.idx.functions.keys(): - id = self.idx.functions[name] - try: - (ret, params, desc) = id.info - if ret[0] == "void": - continue - if funcs.has_key(ret[0]): - funcs[ret[0]].append(name) - else: - funcs[ret[0]] = [name] - except: - pass - typ = funcs.keys() - typ.sort() - for type in typ: - if type == '' or type == 'void' or type == "int" or \ - type == "char *" or type == "const char *" : - continue - output.write(" \n" % (type)) - ids = funcs[type] - ids.sort() - for id in ids: - output.write(" \n" % (id)) - output.write(" \n") - - def serialize_xrefs_alpha(self, output): - letter = None - ids = self.idx.identifiers.keys() - ids.sort() - for id in ids: - if id[0] != letter: - if letter != None: - output.write(" \n") - letter = id[0] - output.write(" \n" % (letter)) - output.write(" \n" % (id)) - if letter != None: - output.write(" \n") - - def serialize_xrefs_references(self, output): - typ = self.idx.identifiers.keys() - typ.sort() - for id in typ: - idf = self.idx.identifiers[id] - module = idf.module - output.write(" \n" % (id, - 'html/' + self.basename + '-' + - self.modulename_file(module) + '.html#' + - id)) - - def serialize_xrefs_index(self, output): - index = self.xref - typ = index.keys() - typ.sort() - letter = None - count = 0 - chunk = 0 - chunks = [] - for id in typ: - if len(index[id]) > 30: - continue - if id[0] != letter: - if letter == None or count > 200: - if letter != None: - output.write(" \n") - output.write(" \n") - count = 0 - chunks.append(["chunk%s" % (chunk -1), first_letter, letter]) - output.write(" \n" % (chunk)) - first_letter = id[0] - chunk = chunk + 1 - elif letter != None: - output.write(" \n") - letter = id[0] - output.write(" \n" % (letter)) - output.write(" \n" % (id)) - tokens = index[id]; - tokens.sort() - tok = None - for token in tokens: - if tok == token: - continue - tok = token - output.write(" \n" % (token)) - count = count + 1 - output.write(" \n") - if letter != None: - output.write(" \n") - output.write(" \n") - if count != 0: - chunks.append(["chunk%s" % (chunk -1), first_letter, letter]) - output.write(" \n") - for ch in chunks: - output.write(" \n" % ( - ch[0], ch[1], ch[2])) - output.write(" \n") - - def serialize_xrefs(self, output): - output.write(" \n") - self.serialize_xrefs_references(output) - output.write(" \n") - output.write(" \n") - self.serialize_xrefs_alpha(output) - output.write(" \n") - output.write(" \n") - self.serialize_xrefs_constructors(output) - output.write(" \n") - output.write(" \n") - self.serialize_xrefs_functions(output) - output.write(" \n") - output.write(" \n") - self.serialize_xrefs_files(output) - output.write(" \n") - output.write(" \n") - self.serialize_xrefs_index(output) - output.write(" \n") - - def serialize(self, outdir): - filename = outdir + "%s-api.xml" % self.name - print "Saving XML description %s" % (filename) - output = open(filename, "w") - output.write('\n') - output.write("\n" % self.name) - output.write(" \n") - headers = self.headers.keys() - headers.sort() - for file in headers: - self.serialize_exports(output, file) - output.write(" \n") - output.write(" \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) - 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: - self.serialize_function(output, function) - output.write(" \n") - output.write("\n") - output.close() - - filename = outdir + "%s-refs.xml" % self.name - print "Saving XML Cross References %s" % (filename) - output = open(filename, "w") - output.write('\n') - output.write("\n" % self.name) - self.serialize_xrefs(output) - output.write("\n") - output.close() - - -def rebuild(): - builder = None - if glob.glob("parser.c") != [] : - print "Rebuilding API description for libxml2" - builder = docBuilder("libxml2", [".", "."], - ["xmlwin32version.h", "tst.c"]) - elif 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("./") - if glob.glob("../libexslt/exslt.c") != [] : - extra = docBuilder("libexslt", ["../libexslt"], ["libexslt.h"]) - extra.scan() - extra.analyze() - extra.serialize("EXSLT/") - return builder - -# -# for debugging the parser -# -def parse(filename): - parser = CParser(filename) - idx = parser.parse() - return idx - -if __name__ == "__main__": - rebuild() diff --git a/src/tools/docbook/libxslt/doc/bugs.html b/src/tools/docbook/libxslt/doc/bugs.html deleted file mode 100644 index cf377b5277..0000000000 --- a/src/tools/docbook/libxslt/doc/bugs.html +++ /dev/null @@ -1,91 +0,0 @@ - - -Reporting bugs and getting help
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Reporting bugs and getting help

    Main Menu
    Related links
    API Indexes

    If you need help with the XSLT language itself, here are a number ofuseful -resources:

    Well, bugs or missing features are always possible, and I will make apoint -of fixing them in a timely fashion. The best way to report a bug is touse the -Gnome -bugtracking database(make sure to use the "libxslt" module name). -Beforefiling a bug, check the list of -existinglibxslt bugsto make sure it hasn't already been filed. I look at -reportsthere regularly and it's good to have a reminder when a bug is still -open. Besure to specify that the bug is for the package libxslt.

    For small problems you can try to get help on IRC, the #xml channel -onirc.gnome.org (port 6667) usually have a few person subscribed which may -help(but there is no garantee and if a real issue is raised it should go on -themailing-list for archival).

    There is also a mailing-list xslt@gnome.orgfor libxslt, with an on-line archive. To -subscribeto this list, please visit the associated Webpageand -follow the instructions.

    Alternatively, you can just send the bug to the xslt@gnome.orglist, if it's really -libxsltrelated I will approve it.. Please do not send me mail directly -especiallyfor portability problem, it makes things really harder to track and -in somecases I'm not the best person to answer a given question, ask the -listinstead. Do not send code, I won't debug it(but patches -arereally appreciated!).

    Please note that with the current amount of virus and SPAM, sending mailto -the list without being subscribed won't work. There is *far too manybounces* -(in the order of a thousand a day !) I cannot approve them manuallyanymore. -If your mail to the list bounced waiting for administrator approval,it is -LOST ! Repost it and fix the problem triggering the error. Also pleasenote -that emails witha -legal warning asking to not copy or redistribute freely the informationsthey -containare NOTacceptable for the mailing-list,such -mail will as much as possible be discarded automatically, and are lesslikely -to be answered if they made it to the list, DO NOTpost to -the list from an email address where such legal requirements areautomatically -added, get private paying support if you can't shareinformations.

    Check the following too beforeposting:

    • use the search engineto get - informationsrelated to your problem.
    • -
    • make sure you are using a - recentversion, and that the problem still shows up in those
    • -
    • check the listarchivesto see if the - problem was reported already, in this casethere is probably a fix - available, similarly check the registeredopen - bugs
    • -
    • make sure you can reproduce the bug with xsltproc, a very useful - thingto do is run the transformation with -v argument and redirect - thestandard error to a file, then search in this file for the - transformationlogs just preceding the possible problem
    • -
    • Please send the command showing the error as well as the input - andstylesheet (as an attachment)
    • -

    Then send the bug with associated informations to reproduce it to the xslt@gnome.orglist; if it's really -libxsltrelated I will approve it. Please do not send mail to me directly, it -makesthings really hard to track and in some cases I am not the best person -toanswer a given question, ask on the list.

    To be really clear about support:

    • Support or help request MUST be sent tothe - list or on bugzillain case of problems, so that the Questionand - Answers can be shared publicly. Failing to do so carries the - implicitmessage "I want free support but I don't want to share the - benefits withothers" and is not welcome. I will automatically Carbon-Copy - thexslt@gnome.org mailing list for any technical reply made about libxml2 - orlibxslt.
    • -
    • There is no garantee for support,if - your question remains unanswered after a week, repost it, making sureyou - gave all the detail needed and the informations requested.
    • -
    • Failing to provide informations as requested or double checking - firstfor prior feedback also carries the implicit message "the time of - thelibrary maintainers is less valuable than my time" and might not - bewelcome.
    • -

    Of course, bugs reports with a suggested patch for fixing them -willprobably be processed faster.

    If you're looking for help, a quick look at the list archivemay -actuallyprovide the answer, I usually send source samples when answering -libxsltusage questions. The auto-generated -documentationisnot as polished as I would like (I need to learn more -about Docbook), butit's a good starting point.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/contexts.gif b/src/tools/docbook/libxslt/doc/contexts.gif deleted file mode 100644 index 5ca52c69f3..0000000000 Binary files a/src/tools/docbook/libxslt/doc/contexts.gif and /dev/null differ diff --git a/src/tools/docbook/libxslt/doc/contribs.html b/src/tools/docbook/libxslt/doc/contribs.html deleted file mode 100644 index e27da52da5..0000000000 --- a/src/tools/docbook/libxslt/doc/contribs.html +++ /dev/null @@ -1,40 +0,0 @@ - - -Contributions
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Contributions

    Main Menu
    Related links
    API Indexes

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/docbook.html b/src/tools/docbook/libxslt/doc/docbook.html deleted file mode 100644 index 27169b5ebb..0000000000 --- a/src/tools/docbook/libxslt/doc/docbook.html +++ /dev/null @@ -1,60 +0,0 @@ - - -DocBook
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    DocBook

    Main Menu
    Related links
    API Indexes

    The duck picture

    DocBookis -anXML/SGML vocabulary particularly well suited to books and papers -aboutcomputer hardware and software.

    xsltproc and libxslt are not specifically dependant on DocBook, but sincea -lot of people use xsltproc and libxml2 for DocBook formatting, here are afew -pointers and informations which may be helpful:

    Do not use the --docbook option of xsltproc to process XML -DocBookdocuments, this option is only intended to provide some (limited) -support ofthe SGML version of DocBook.

    Points which are not DocBook specific but still worth mentionningagain:

    • if you think DocBook processing time is too slow, make sure you haveXML - Catalogs pointing to a local installation of the DTD of DocBook.Check the - XML Catalog pageto - understand more on this subject.
    • -
    • before processing a new document, use the command -

      xmllint --valid --noout path_to_document

      -

      to make sure that your input is valid DocBook. And fixes the - errorsbefore processing further. Note that XSLT processing may work - correctlywith some forms of validity errors left, but in general it can - givetroubles on output.

      -
    • -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/docs.html b/src/tools/docbook/libxslt/doc/docs.html deleted file mode 100644 index e606bf672a..0000000000 --- a/src/tools/docbook/libxslt/doc/docs.html +++ /dev/null @@ -1,18 +0,0 @@ - - -Documentation
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Documentation

    Main Menu
    Related links
    API Indexes

    There are some on-line resources about using libxslt:

    1. Check the APIdocumentationautomatically - extracted from code comments (using theprogram apibuild.py, developed for - libxml, together with the xsl script'newapi.xsl' and the libxslt xsltproc - program).
    2. -
    3. Look at the mailing-listarchive.
    4. -
    5. Of course since libxslt is based on libxml, it's a good idea to atleast - read libxml description
    6. -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/downloads.html b/src/tools/docbook/libxslt/doc/downloads.html deleted file mode 100644 index 31c055d725..0000000000 --- a/src/tools/docbook/libxslt/doc/downloads.html +++ /dev/null @@ -1,28 +0,0 @@ - - -Downloads
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Downloads

    Main Menu
    Related links
    API Indexes

    The latest versions of libxslt can be found on the xmlsoft.orgserver and on mirrors (France) or on the Gnome FTP serveras asourcearchive, -Antonin Sprinzl also provides a -mirror in Austria. (NOTE thatyou need the libxml2,libxml2-devel,libxsltand libxslt-develpackages -installed to compile applications using libxslt.) Igor Zlatkovicis now the maintainer -ofthe Windows port, he -providesbinaries. Gary -Penningtonprovides Solaris -binaries.Steve -Ballprovides Mac -Os Xbinaries.

    Contribs:

    I do accept external contributions, especially if compiling on -anotherplatform, get in touch with me to upload the package. I will keep them -in thecontrib directory

    Libxslt is also available from CVS:

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/extensions.html b/src/tools/docbook/libxslt/doc/extensions.html deleted file mode 100644 index ac06e7ffc9..0000000000 --- a/src/tools/docbook/libxslt/doc/extensions.html +++ /dev/null @@ -1,280 +0,0 @@ - - -Writing extensions
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Writing extensions

    Main Menu
    Related links
    API Indexes

    Table of content

    Introduction

    This document describes the work needed to write extensions to thestandard -XSLT library for use with libxslt, the -XSLTC library developed for the Gnomeproject.

    Before starting reading this document it is highly recommended to -getfamiliar with the libxslt internals.

    Note: this documentation is by definition incomplete and I am not good -atspelling, grammar, so patches and suggestions are really welcome.

    Basics

    The XSLT specificationprovidestwo -ways to extend an XSLT engine:

    In both cases the extensions need to be associated to a new namespace,i.e. -an URI used as the name for the extension's namespace (there is no needto -have a resource there for this to work).

    libxslt provides a few extensions itself, either in the libxslt -namespace"http://xmlsoft.org/XSLT/namespace" or in namespaces for other well -knownextensions provided by other XSLT processors like Saxon, Xalan or XT.

    Extension modules

    Since extensions are bound to a namespace name, usually sets of -extensionscoming from a given source are using the same namespace name -defining inpractice a group of extensions providing elements, functions or -both. Fromthe libxslt point of view those are considered as an "extension -module", andmost of the APIs work at a module point of view.

    Registration of new functions or elements are bound to the activation -ofthe module. This is currently done by declaring the namespace as an -extensionby using the attribute extension-element-prefixeson -thexsl:stylesheetelement.

    An extension module is defined by 3 objects:

    • the namespace name associated
    • -
    • an initialization function
    • -
    • a shutdown function
    • -

    Registering a module

    Currently a libxslt module has to be compiled within the application -usinglibxslt. There is no code to load dynamically shared libraries -associated toa namespace (this may be added but is likely to become a -portabilitynightmare).

    The current way to register a module is to link the code implementing -itwith the application and to call a registration function:

    int xsltRegisterExtModule(const xmlChar *URI,
    -                          xsltExtInitFunction initFunc,
    -                          xsltExtShutdownFunction shutdownFunc);

    The associated header is read by:

    #include<libxslt/extensions.h>

    which also defines the type for the initialization and -shutdownfunctions

    Loading a module

    Once the module URI has been registered and if the XSLT processor -detectsthat a given stylesheet needs the functionalities of an extended -module, thisone is initialized.

    The xsltExtInitFunction type defines the interface for an -initializationfunction:

    /**
    - * xsltExtInitFunction:
    - * @ctxt:  an XSLT transformation context
    - * @URI:  the namespace URI for the extension
    - *
    - * A function called at initialization time of an XSLT
    - * extension module
    - *
    - * Returns a pointer to the module specific data for this
    - * transformation
    - */
    -typedef void *(*xsltExtInitFunction)(xsltTransformContextPtr ctxt,
    -                                     const xmlChar *URI);

    There are 3 things to notice:

    • The function gets passed the namespace name URI as an argument. - Thisallows a single function to provide the initialization for - multiplelogical modules.
    • -
    • It also gets passed a transformation context. The initialization isdone - at run time before any processing occurs on the stylesheet but itwill be - invoked separately each time for each transformation.
    • -
    • It returns a pointer. This can be used to store module - specificinformation which can be retrieved later when a function or an - elementfrom the extension is used. An obvious example is a connection to - adatabase which should be kept and reused along with the - transformation.NULL is a perfectly valid return; there is no way to - indicate a failureat this level
    • -

    What this function is expected to do is:

    • prepare the context for this module (like opening the - databaseconnection)
    • -
    • register the extensions specific to this module
    • -

    Registering an extension function

    There is a single call to do this registration:

    int xsltRegisterExtFunction(xsltTransformContextPtr ctxt,
    -                            const xmlChar *name,
    -                            const xmlChar *URI,
    -                            xmlXPathEvalFunc function);

    The registration is bound to a single transformation instance referred -byctxt, name is the UTF8 encoded name for the NCName of the function, and -URIis the namespace name for the extension (no checking is done, a module -couldregister functions or elements from a different namespace, but it is -notrecommended).

    Implementing an extension function

    The implementation of the function must have the signature of a -libxmlXPath function:

    /**
    - * xmlXPathEvalFunc:
    - * @ctxt: an XPath parser context
    - * @nargs: the number of arguments passed to the function
    - *
    - * an XPath evaluation function, the parameters are on the
    - * XPath context stack
    - */
    -
    -typedef void (*xmlXPathEvalFunc)(xmlXPathParserContextPtr ctxt,
    -                                 int nargs);

    The context passed to an XPath function is not an XSLT context but an XPath context. However it is possible tofind -one from the other:

    • The function xsltXPathGetTransformContext provides this lookup facility: -
      xsltTransformContextPtr
      -         xsltXPathGetTransformContext
      -                          (xmlXPathParserContextPtr ctxt);
      -
    • -
    • The xmlXPathContextPtrassociated to - anxsltTransformContextis stored in the - xpathCtxtfield.
    • -

    The first thing an extension function may want to do is to check -thearguments passed on the stack, the nargsparameter will tell -howmany of them were provided on the XPath expression. The macro valuePop -willextract them from the XPath stack:

    #include <libxml/xpath.h>
    -#include <libxml/xpathInternals.h>
    -
    -xmlXPathObjectPtr obj = valuePop(ctxt); 

    Note that ctxtis the XPath context not the XSLT one. It -isthen possible to examine the content of the value. Check the description of XPath -objectsifnecessary. The following is a common sequence checking whether -the argumentpassed is a string and converting it using the built-in -XPathstring()function if this is not the case:

    if (obj->type != XPATH_STRING) {
    -    valuePush(ctxt, obj);
    -    xmlXPathStringFunction(ctxt, 1);
    -    obj = valuePop(ctxt);
    -}

    Most common XPath functions are available directly at the C level and -areexported either in <libxml/xpath.h>or -in<libxml/xpathInternals.h>.

    The extension function may also need to retrieve the data associated -tothis module instance (the database connection in the previous example) -thiscan be done using the xsltGetExtData:

    void * xsltGetExtData(xsltTransformContextPtr ctxt,
    -                      const xmlChar *URI);

    Again the URI to be provided is the one which was used when registeringthe -module.

    Once the function finishes, don't forget to:

    • push the return value on the stack using - valuePush(ctxt,obj)
    • -
    • deallocate the parameters passed to the function - usingxmlXPathFreeObject(obj)
    • -

    Examples for extension functions

    The module libxslt/functions.c contains the sources of the XSLT -built-infunctions, including document(), key(), generate-id(), etc. as well -as a fullexample module at the end. Here is the test function implementation -for thelibxslt:test function:

    /**
    - * xsltExtFunctionTest:
    - * @ctxt:  the XPath Parser context
    - * @nargs:  the number of arguments
    - *
    - * function libxslt:test() for testing the extensions support.
    - */
    -static void
    -xsltExtFunctionTest(xmlXPathParserContextPtr ctxt, int nargs)
    -{
    -    xsltTransformContextPtr tctxt;
    -    void *data;
    -
    -    tctxt = xsltXPathGetTransformContext(ctxt);
    -    if (tctxt == NULL) {
    -        xsltGenericError(xsltGenericErrorContext,
    -            "xsltExtFunctionTest: failed to get the transformation context\n");
    -        return;
    -    }
    -    data = xsltGetExtData(tctxt, (const xmlChar *) XSLT_DEFAULT_URL);
    -    if (data == NULL) {
    -        xsltGenericError(xsltGenericErrorContext,
    -            "xsltExtFunctionTest: failed to get module data\n");
    -        return;
    -    }
    -#ifdef WITH_XSLT_DEBUG_FUNCTION
    -    xsltGenericDebug(xsltGenericDebugContext,
    -                     "libxslt:test() called with %d args\n", nargs);
    -#endif
    -}

    Registering an extension element

    There is a single call to do this registration:

    int xsltRegisterExtElement(xsltTransformContextPtr ctxt,
    -                           const xmlChar *name,
    -                           const xmlChar *URI,
    -                           xsltTransformFunction function);

    It is similar to the mechanism used to register an extension -function,except that the signature of an extension element implementation -isdifferent.

    The registration is bound to a single transformation instance referred -toby ctxt, name is the UTF8 encoded name for the NCName of the element, and -URIis the namespace name for the extension (no checking is done, a module -couldregister elements for a different namespace, but it is not -recommended).

    Implementing an extension element

    The implementation of the element must have the signature of an -XSLTtransformation function:

    /** 
    - * xsltTransformFunction: 
    - * @ctxt: the XSLT transformation context
    - * @node: the input node
    - * @inst: the stylesheet node 
    - * @comp: the compiled information from the stylesheet 
    - * 
    - * signature of the function associated to elements part of the
    - * stylesheet language like xsl:if or xsl:apply-templates.
    - */ 
    -typedef void (*xsltTransformFunction)
    -                          (xsltTransformContextPtr ctxt,
    -                           xmlNodePtr node,
    -                           xmlNodePtr inst,
    -                           xsltStylePreCompPtr comp);

    The first argument is the XSLT transformation context. The second andthird -arguments are xmlNodePtr i.e. internal memory representation of XML nodes. They -arerespectively nodefrom the the input document being -transformedby the stylesheet and instthe extension element in -thestylesheet. The last argument is compa pointer to a -precompiledrepresentation of instbut usually for an extension -functionthis value is NULLby default (it could be added and -associatedto the instruction in inst->_private).

    The same functions are available from a function implementing an -extensionelement as in an extension function, -includingxsltGetExtData().

    The goal of an extension element being usually to enrich the -generatedoutput, it is expected that they will grow the currently generated -outputtree. This can be done by grabbing ctxt->insert which is the -currentlibxml node being generated (Note this can also be the intermediate -valuetree being built for example to initialize a variable, the processing -shouldbe similar). The functions for libxml tree manipulation from <libxml/tree.h>canbe -employed to extend or modify the tree, but it is required to preserve -theinsertion node and its ancestors since there are existing pointers to -thoseelements still in use in the XSLT template execution stack.

    Example for extension elements

    The module libxslt/transform.c contains the sources of the XSLT -built-inelements, including xsl:element, xsl:attribute, xsl:if, etc. There is -a smallbut full example in functions.c providing the implementation for -thelibxslt:test element, it will output a comment in the result tree:

    /**
    - * xsltExtElementTest:
    - * @ctxt:  an XSLT processing context
    - * @node:  The current node
    - * @inst:  the instruction in the stylesheet
    - * @comp:  precomputed informations
    - *
    - * Process a libxslt:test node
    - */
    -static void
    -xsltExtElementTest(xsltTransformContextPtr ctxt, xmlNodePtr node,
    -                   xmlNodePtr inst,
    -                   xsltStylePreCompPtr comp)
    -{
    -    xmlNodePtr comment;
    -
    -    if (ctxt == NULL) {
    -        xsltGenericError(xsltGenericErrorContext,
    -                         "xsltExtElementTest: no transformation context\n");
    -        return;
    -    }
    -    if (node == NULL) {
    -        xsltGenericError(xsltGenericErrorContext,
    -                         "xsltExtElementTest: no current node\n");
    -        return;
    -    }
    -    if (inst == NULL) {
    -        xsltGenericError(xsltGenericErrorContext,
    -                         "xsltExtElementTest: no instruction\n");
    -        return;
    -    }
    -    if (ctxt->insert == NULL) {
    -        xsltGenericError(xsltGenericErrorContext,
    -                         "xsltExtElementTest: no insertion point\n");
    -        return;
    -    }
    -    comment =
    -        xmlNewComment((const xmlChar *)
    -                      "libxslt:test element test worked");
    -    xmlAddChild(ctxt->insert, comment);
    -}

    The shutdown of a module

    When the XSLT processor ends a transformation, the shutdown function (ifit -exists) for each of the modules initialized is called. -ThexsltExtShutdownFunction type defines the interface for a -shutdownfunction:

    /**
    - * xsltExtShutdownFunction:
    - * @ctxt:  an XSLT transformation context
    - * @URI:  the namespace URI for the extension
    - * @data:  the data associated to this module
    - *
    - * A function called at shutdown time of an XSLT extension module
    - */
    -typedef void (*xsltExtShutdownFunction) (xsltTransformContextPtr ctxt,
    -                                         const xmlChar *URI,
    -                                         void *data);

    This is really similar to a module initialization function except a -thirdargument is passed, it's the value that was returned by the -initializationfunction. This allows the routine to deallocate resources from -the module forexample close the connection to the database to keep the same -example.

    Future work

    Well, some of the pieces missing:

    • a way to load shared libraries to instantiate new modules
    • -
    • a better detection of extension functions usage and their - registrationwithout having to use the extension prefix which ought to be - reserved toelement extensions.
    • -
    • more examples
    • -
    • implementations of the EXSLTcommonextension libraries, Thomas - Broyer nearly finished implementing them.
    • -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/help.html b/src/tools/docbook/libxslt/doc/help.html deleted file mode 100644 index 9dc9f18958..0000000000 --- a/src/tools/docbook/libxslt/doc/help.html +++ /dev/null @@ -1,25 +0,0 @@ - - -How to help
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    How to help

    Main Menu
    Related links
    API Indexes

    You can help the project in various ways, the best thing to do first is -tosubscribe to the mailing-list as explained before, check the archives and the Gnome -bugdatabase::

    1. provide patches when you find problems
    2. -
    3. provide the diffs when you port libxslt to a new platform. They may - notbe integrated in all cases but help pinpointing portability - problemsand
    4. -
    5. provide documentation fixes (either as patches to the code comments - oras HTML diffs).
    6. -
    7. provide new documentations pieces (translations, examples, etc ...)
    8. -
    9. Check the TODO file and try to close one of the items
    10. -
    11. take one of the points raised in the archive or the bug database - andprovide a fix. Get in touch with - mebefore to avoid synchronization problems and check that the - suggestedfix will fit in nicely :-)
    12. -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/book1.html b/src/tools/docbook/libxslt/doc/html/book1.html deleted file mode 100644 index a93550d41d..0000000000 --- a/src/tools/docbook/libxslt/doc/html/book1.html +++ /dev/null @@ -1,10 +0,0 @@ - - -Reference Manual for libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Reference Manual for libxslt

    API Menu
    Related links
    API Indexes

    Table of Contents

    • attributes: interface for the XSLT attribute handling
    • documents: interface for the document handling
    • extensions: interface for the extension support
    • extra: interface for the non-standard features
    • functions: interface for the XSLT functions not from XPath
    • imports: interface for the XSLT import support
    • keys: interface for the key matching used in key() and template matches.
    • namespaces: interface for the XSLT namespace handling
    • numbersInternals: Implementation of the XSLT number functions
    • pattern: interface for the pattern matching used in template matches.
    • preproc: precomputing stylesheets
    • security: interface for the libxslt security framework
    • templates: interface for the template processing
    • transform: the XSLT engine transformation part.
    • variables: interface for the variable matching and lookup.
    • xslt: Interfaces, constants and types related to the XSLT engine
    • xsltInternals: internal data structures, constants and functions
    • xsltexports: macros for marking symbols as exportable/importable.
    • xsltutils: set of utilities for the XSLT engine

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/home.png b/src/tools/docbook/libxslt/doc/html/home.png deleted file mode 100644 index 17003611d9..0000000000 Binary files a/src/tools/docbook/libxslt/doc/html/home.png and /dev/null differ diff --git a/src/tools/docbook/libxslt/doc/html/index.html b/src/tools/docbook/libxslt/doc/html/index.html deleted file mode 100644 index a93550d41d..0000000000 --- a/src/tools/docbook/libxslt/doc/html/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - -Reference Manual for libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Reference Manual for libxslt

    API Menu
    Related links
    API Indexes

    Table of Contents

    • attributes: interface for the XSLT attribute handling
    • documents: interface for the document handling
    • extensions: interface for the extension support
    • extra: interface for the non-standard features
    • functions: interface for the XSLT functions not from XPath
    • imports: interface for the XSLT import support
    • keys: interface for the key matching used in key() and template matches.
    • namespaces: interface for the XSLT namespace handling
    • numbersInternals: Implementation of the XSLT number functions
    • pattern: interface for the pattern matching used in template matches.
    • preproc: precomputing stylesheets
    • security: interface for the libxslt security framework
    • templates: interface for the template processing
    • transform: the XSLT engine transformation part.
    • variables: interface for the variable matching and lookup.
    • xslt: Interfaces, constants and types related to the XSLT engine
    • xsltInternals: internal data structures, constants and functions
    • xsltexports: macros for marking symbols as exportable/importable.
    • xsltutils: set of utilities for the XSLT engine

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/left.png b/src/tools/docbook/libxslt/doc/html/left.png deleted file mode 100644 index 2d05b3d5b4..0000000000 Binary files a/src/tools/docbook/libxslt/doc/html/left.png and /dev/null differ diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-attributes.html b/src/tools/docbook/libxslt/doc/html/libxslt-attributes.html deleted file mode 100644 index 03be06f733..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-attributes.html +++ /dev/null @@ -1,23 +0,0 @@ - - -Module attributes from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module attributes from libxslt

    API Menu
    Related links
    API Indexes

    this module handles the specificities of attribute and attribute groups processing.

    Table of Contents

    void	xsltApplyAttributeSet		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    const xmlChar * attributes)
    -
    void	xsltFreeAttributeSetsHashes	(xsltStylesheetPtr style)
    -
    void	xsltParseStylesheetAttributeSet	(xsltStylesheetPtr style, 
    xmlNodePtr cur)
    -
    void	xsltResolveStylesheetAttributeSet	(xsltStylesheetPtr style)
    -

    Description

    -

    Function: xsltApplyAttributeSet

    void	xsltApplyAttributeSet		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    const xmlChar * attributes)
    -

    Apply the xsl:use-attribute-sets

    -
    ctxt:the XSLT stylesheet
    node:the node in the source tree.
    inst:the xslt attribute node
    attributes:the set list.

    Function: xsltFreeAttributeSetsHashes

    void	xsltFreeAttributeSetsHashes	(xsltStylesheetPtr style)
    -

    Free up the memory used by attribute sets

    -
    style:an XSLT stylesheet

    Function: xsltParseStylesheetAttributeSet

    void	xsltParseStylesheetAttributeSet	(xsltStylesheetPtr style, 
    xmlNodePtr cur)
    -

    parse an XSLT stylesheet attribute-set element

    -
    style:the XSLT stylesheet
    cur:the "attribute-set" element

    Function: xsltResolveStylesheetAttributeSet

    void	xsltResolveStylesheetAttributeSet	(xsltStylesheetPtr style)
    -

    resolve the references between attribute sets.

    -
    style:the XSLT stylesheet

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-documents.html b/src/tools/docbook/libxslt/doc/html/libxslt-documents.html deleted file mode 100644 index 17139d080a..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-documents.html +++ /dev/null @@ -1,47 +0,0 @@ - - -Module documents from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module documents from libxslt

    API Menu
    Related links
    API Indexes

    implements document loading and cache (multiple document() reference for the same resources must be equal.

    Table of Contents

    Enum xsltLoadType
    -
    Function type: xsltDocLoaderFunc
    -xmlDocPtr	xsltDocLoaderFunc	(const xmlChar * URI, 
    xmlDictPtr dict,
    int options,
    void * ctxt,
    xsltLoadType type) -
    -
    xsltDocumentPtr	xsltFindDocument	(xsltTransformContextPtr ctxt, 
    xmlDocPtr doc)
    -
    void	xsltFreeDocuments		(xsltTransformContextPtr ctxt)
    -
    void	xsltFreeStyleDocuments		(xsltStylesheetPtr style)
    -
    xsltDocumentPtr	xsltLoadDocument	(xsltTransformContextPtr ctxt, 
    const xmlChar * URI)
    -
    xsltDocumentPtr	xsltLoadStyleDocument	(xsltStylesheetPtr style, 
    const xmlChar * URI)
    -
    xsltDocumentPtr	xsltNewDocument		(xsltTransformContextPtr ctxt, 
    xmlDocPtr doc)
    -
    xsltDocumentPtr	xsltNewStyleDocument	(xsltStylesheetPtr style, 
    xmlDocPtr doc)
    -
    void	xsltSetLoaderFunc		(xsltDocLoaderFunc f)
    -

    Description

    -

    Enum xsltLoadType

    Enum xsltLoadType {
    -    XSLT_LOAD_START = 0 : loading for a top stylesheet
    -    XSLT_LOAD_STYLESHEET = 1 : loading for a stylesheet include/import
    -    XSLT_LOAD_DOCUMENT = 2 : loading document at transformation time
    -}
    -

    Function type: xsltDocLoaderFunc

    Function type: xsltDocLoaderFunc
    -xmlDocPtr	xsltDocLoaderFunc	(const xmlChar * URI, 
    xmlDictPtr dict,
    int options,
    void * ctxt,
    xsltLoadType type) -

    An xsltDocLoaderFunc is a signature for a function which can be registered to load document not provided by the compilation or transformation API themselve, for example when an xsl:import, xsl:include is found at compilation time or when a document() call is made at runtime.

    URI:the URI of the document to load
    dict:the dictionnary to use when parsing that document
    options:parsing options, a set of xmlParserOption
    ctxt:the context, either a stylesheet or a transformation context
    type:the xsltLoadType indicating the kind of loading required
    Returns:the pointer to the document (which will be modified and freed by the engine later), or NULL in case of error.

    -

    Function: xsltFindDocument

    xsltDocumentPtr	xsltFindDocument	(xsltTransformContextPtr ctxt, 
    xmlDocPtr doc)
    -

    Try to find a document within the XSLT transformation context

    -
    ctxt:an XSLT transformation context
    doc:a parsed XML document
    Returns:the desired xsltDocumentPtr or NULL in case of error

    Function: xsltFreeDocuments

    void	xsltFreeDocuments		(xsltTransformContextPtr ctxt)
    -

    Free up all the space used by the loaded documents

    -
    ctxt:an XSLT transformation context

    Function: xsltFreeStyleDocuments

    void	xsltFreeStyleDocuments		(xsltStylesheetPtr style)
    -

    Free up all the space used by the loaded documents

    -
    style:an XSLT style sheet

    Function: xsltLoadDocument

    xsltDocumentPtr	xsltLoadDocument	(xsltTransformContextPtr ctxt, 
    const xmlChar * URI)
    -

    Try to load a document (not a stylesheet) within the XSLT transformation context

    -
    ctxt:an XSLT transformation context
    URI:the computed URI of the document
    Returns:the new xsltDocumentPtr or NULL in case of error

    Function: xsltLoadStyleDocument

    xsltDocumentPtr	xsltLoadStyleDocument	(xsltStylesheetPtr style, 
    const xmlChar * URI)
    -

    Try to load a stylesheet document within the XSLT transformation context

    -
    style:an XSLT style sheet
    URI:the computed URI of the document
    Returns:the new xsltDocumentPtr or NULL in case of error

    Function: xsltNewDocument

    xsltDocumentPtr	xsltNewDocument		(xsltTransformContextPtr ctxt, 
    xmlDocPtr doc)
    -

    Register a new document, apply key computations

    -
    ctxt:an XSLT transformation context (or NULL)
    doc:a parsed XML document
    Returns:a handler to the document

    Function: xsltNewStyleDocument

    xsltDocumentPtr	xsltNewStyleDocument	(xsltStylesheetPtr style, 
    xmlDocPtr doc)
    -

    Register a new document, apply key computations

    -
    style:an XSLT style sheet
    doc:a parsed XML document
    Returns:a handler to the document

    Function: xsltSetLoaderFunc

    void	xsltSetLoaderFunc		(xsltDocLoaderFunc f)
    -

    Set the new function to load document, if NULL it resets it to the default function.

    -
    f:the new function to handle document loading.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-extensions.html b/src/tools/docbook/libxslt/doc/html/libxslt-extensions.html deleted file mode 100644 index 42a0375736..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-extensions.html +++ /dev/null @@ -1,146 +0,0 @@ - - -Module extensions from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module extensions from libxslt

    API Menu
    Related links
    API Indexes

    This provide the API needed for simple and module extension support.

    Table of Contents

    int	xsltCheckExtPrefix		(xsltStylesheetPtr style, 
    const xmlChar * prefix)
    -
    void	xsltDebugDumpExtensions		(FILE * output)
    -
    xsltTransformFunction	xsltExtElementLookup	(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * URI)
    -
    xmlXPathFunction	xsltExtFunctionLookup	(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * URI)
    -
    Function type: xsltExtInitFunction
    -void *	xsltExtInitFunction		(xsltTransformContextPtr ctxt, 
    const xmlChar * URI) -
    -
    xsltTransformFunction	xsltExtModuleElementLookup	(const xmlChar * name, 
    const xmlChar * URI)
    -
    xsltPreComputeFunction	xsltExtModuleElementPreComputeLookup	(const xmlChar * name, 
    const xmlChar * URI)
    -
    xmlXPathFunction	xsltExtModuleFunctionLookup	(const xmlChar * name, 
    const xmlChar * URI)
    -
    xsltTopLevelFunction	xsltExtModuleTopLevelLookup	(const xmlChar * name, 
    const xmlChar * URI)
    -
    Function type: xsltExtShutdownFunction
    -void	xsltExtShutdownFunction		(xsltTransformContextPtr ctxt, 
    const xmlChar * URI,
    void * data) -
    -
    void	xsltFreeCtxtExts		(xsltTransformContextPtr ctxt)
    -
    void	xsltFreeExts			(xsltStylesheetPtr style)
    -
    void *	xsltGetExtData			(xsltTransformContextPtr ctxt, 
    const xmlChar * URI)
    -
    xmlHashTablePtr	xsltGetExtInfo		(xsltStylesheetPtr style, 
    const xmlChar * URI)
    -
    int	xsltInitCtxtExts		(xsltTransformContextPtr ctxt)
    -
    void	xsltInitElemPreComp		(xsltElemPreCompPtr comp, 
    xsltStylesheetPtr style,
    xmlNodePtr inst,
    xsltTransformFunction function,
    xsltElemPreCompDeallocator freeFunc)
    -
    xsltElemPreCompPtr	xsltNewElemPreComp	(xsltStylesheetPtr style, 
    xmlNodePtr inst,
    xsltTransformFunction function)
    -
    xsltElemPreCompPtr	xsltPreComputeExtModuleElement	(xsltStylesheetPtr style, 
    xmlNodePtr inst)
    -
    Function type: xsltPreComputeFunction
    -xsltElemPreCompPtr	xsltPreComputeFunction	(xsltStylesheetPtr style, 
    xmlNodePtr inst,
    xsltTransformFunction function) -
    -
    int	xsltRegisterExtElement		(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * URI,
    xsltTransformFunction function)
    -
    int	xsltRegisterExtFunction		(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * URI,
    xmlXPathFunction function)
    -
    int	xsltRegisterExtModule		(const xmlChar * URI, 
    xsltExtInitFunction initFunc,
    xsltExtShutdownFunction shutdownFunc)
    -
    int	xsltRegisterExtModuleElement	(const xmlChar * name, 
    const xmlChar * URI,
    xsltPreComputeFunction precomp,
    xsltTransformFunction transform)
    -
    int	xsltRegisterExtModuleFull	(const xmlChar * URI, 
    xsltExtInitFunction initFunc,
    xsltExtShutdownFunction shutdownFunc,
    xsltStyleExtInitFunction styleInitFunc,
    xsltStyleExtShutdownFunction styleShutdownFunc)
    -
    int	xsltRegisterExtModuleFunction	(const xmlChar * name, 
    const xmlChar * URI,
    xmlXPathFunction function)
    -
    int	xsltRegisterExtModuleTopLevel	(const xmlChar * name, 
    const xmlChar * URI,
    xsltTopLevelFunction function)
    -
    int	xsltRegisterExtPrefix		(xsltStylesheetPtr style, 
    const xmlChar * prefix,
    const xmlChar * URI)
    -
    void	xsltRegisterTestModule		(void)
    -
    void	xsltShutdownCtxtExts		(xsltTransformContextPtr ctxt)
    -
    void	xsltShutdownExts		(xsltStylesheetPtr style)
    -
    Function type: xsltStyleExtInitFunction
    -void *	xsltStyleExtInitFunction	(xsltStylesheetPtr style, 
    const xmlChar * URI) -
    -
    Function type: xsltStyleExtShutdownFunction
    -void	xsltStyleExtShutdownFunction	(xsltStylesheetPtr style, 
    const xmlChar * URI,
    void * data) -
    -
    void *	xsltStyleGetExtData		(xsltStylesheetPtr style, 
    const xmlChar * URI)
    -
    Function type: xsltTopLevelFunction
    -void	xsltTopLevelFunction		(xsltStylesheetPtr style, 
    xmlNodePtr inst) -
    -
    int	xsltUnregisterExtModule		(const xmlChar * URI)
    -
    int	xsltUnregisterExtModuleElement	(const xmlChar * name, 
    const xmlChar * URI)
    -
    int	xsltUnregisterExtModuleFunction	(const xmlChar * name, 
    const xmlChar * URI)
    -
    int	xsltUnregisterExtModuleTopLevel	(const xmlChar * name, 
    const xmlChar * URI)
    -
    xsltTransformContextPtr	xsltXPathGetTransformContext	(xmlXPathParserContextPtr ctxt)
    -

    Description

    -

    Function: xsltCheckExtPrefix

    int	xsltCheckExtPrefix		(xsltStylesheetPtr style, 
    const xmlChar * prefix)
    -

    Check if the given prefix is one of the declared extensions

    -
    style:the stylesheet
    prefix:the namespace prefix (possibly NULL)
    Returns:1 if this is an extension, 0 otherwise

    Function: xsltDebugDumpExtensions

    void	xsltDebugDumpExtensions		(FILE * output)
    -

    Dumps a list of the registered XSLT extension functions and elements

    -
    output:the FILE * for the output, if NULL stdout is used

    Function: xsltExtElementLookup

    xsltTransformFunction	xsltExtElementLookup	(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * URI)
    -

    Looks up an extension element. @ctxt can be NULL to search only in module elements.

    -
    ctxt:an XSLT process context
    name:the element name
    URI:the element namespace URI
    Returns:the element callback or NULL if not found

    Function: xsltExtFunctionLookup

    xmlXPathFunction	xsltExtFunctionLookup	(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * URI)
    -

    -
    ctxt:
    name:
    URI:
    Returns:

    Function type: xsltExtInitFunction

    Function type: xsltExtInitFunction
    -void *	xsltExtInitFunction		(xsltTransformContextPtr ctxt, 
    const xmlChar * URI) -

    A function called at initialization time of an XSLT extension module.

    ctxt:an XSLT transformation context
    URI:the namespace URI for the extension
    Returns:a pointer to the module specific data for this transformation.

    -

    Function: xsltExtModuleElementLookup

    xsltTransformFunction	xsltExtModuleElementLookup	(const xmlChar * name, 
    const xmlChar * URI)
    -

    Looks up an extension module element

    -
    name:the element name
    URI:the element namespace URI
    Returns:the callback function if found, NULL otherwise.

    Function: xsltExtModuleElementPreComputeLookup

    xsltPreComputeFunction	xsltExtModuleElementPreComputeLookup	(const xmlChar * name, 
    const xmlChar * URI)
    -

    Looks up an extension module element pre-computation function

    -
    name:the element name
    URI:the element namespace URI
    Returns:the callback function if found, NULL otherwise.

    Function: xsltExtModuleFunctionLookup

    xmlXPathFunction	xsltExtModuleFunctionLookup	(const xmlChar * name, 
    const xmlChar * URI)
    -

    Looks up an extension module function

    -
    name:the function name
    URI:the function namespace URI
    Returns:the function if found, NULL otherwise.

    Function: xsltExtModuleTopLevelLookup

    xsltTopLevelFunction	xsltExtModuleTopLevelLookup	(const xmlChar * name, 
    const xmlChar * URI)
    -

    Looks up an extension module top-level element

    -
    name:the top-level element name
    URI:the top-level element namespace URI
    Returns:the callback function if found, NULL otherwise.

    Function type: xsltExtShutdownFunction

    Function type: xsltExtShutdownFunction
    -void	xsltExtShutdownFunction		(xsltTransformContextPtr ctxt, 
    const xmlChar * URI,
    void * data) -

    A function called at shutdown time of an XSLT extension module.

    ctxt:an XSLT transformation context
    URI:the namespace URI for the extension
    data:the data associated to this module

    -

    Function: xsltFreeCtxtExts

    void	xsltFreeCtxtExts		(xsltTransformContextPtr ctxt)
    -

    Free the XSLT extension data

    -
    ctxt:an XSLT transformation context

    Function: xsltFreeExts

    void	xsltFreeExts			(xsltStylesheetPtr style)
    -

    Free up the memory used by XSLT extensions in a stylesheet

    -
    style:an XSLT stylesheet

    Function: xsltGetExtData

    void *	xsltGetExtData			(xsltTransformContextPtr ctxt, 
    const xmlChar * URI)
    -

    Retrieve the data associated to the extension module in this given transformation.

    -
    ctxt:an XSLT transformation context
    URI:the URI associated to the exension module
    Returns:the pointer or NULL if not present

    Function: xsltGetExtInfo

    xmlHashTablePtr	xsltGetExtInfo		(xsltStylesheetPtr style, 
    const xmlChar * URI)
    -

    looks up URI in extInfos of the stylesheet

    -
    style:pointer to a stylesheet
    URI:the namespace URI desired
    Returns:a pointer to the hash table if found, else NULL

    Function: xsltInitCtxtExts

    int	xsltInitCtxtExts		(xsltTransformContextPtr ctxt)
    -

    Initialize the set of modules with registered stylesheet data

    -
    ctxt:an XSLT transformation context
    Returns:the number of modules initialized or -1 in case of error

    Function: xsltInitElemPreComp

    void	xsltInitElemPreComp		(xsltElemPreCompPtr comp, 
    xsltStylesheetPtr style,
    xmlNodePtr inst,
    xsltTransformFunction function,
    xsltElemPreCompDeallocator freeFunc)
    -

    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.

    -
    comp:an #xsltElemPreComp (or generally a derived structure)
    style:the XSLT stylesheet
    inst:the element node
    function:the transform function
    freeFunc:the @comp deallocator

    Function: xsltNewElemPreComp

    xsltElemPreCompPtr	xsltNewElemPreComp	(xsltStylesheetPtr style, 
    xmlNodePtr inst,
    xsltTransformFunction function)
    -

    Creates and initializes an #xsltElemPreComp

    -
    style:the XSLT stylesheet
    inst:the element node
    function:the transform function
    Returns:the new and initialized #xsltElemPreComp

    Function: xsltPreComputeExtModuleElement

    xsltElemPreCompPtr	xsltPreComputeExtModuleElement	(xsltStylesheetPtr style, 
    xmlNodePtr inst)
    -

    Precomputes an extension module element

    -
    style:the stylesheet
    inst:the element node
    Returns:the precomputed data

    Function type: xsltPreComputeFunction

    Function type: xsltPreComputeFunction
    -xsltElemPreCompPtr	xsltPreComputeFunction	(xsltStylesheetPtr style, 
    xmlNodePtr inst,
    xsltTransformFunction function) -

    style:
    inst:
    function:
    Returns:

    -

    Function: xsltRegisterExtElement

    int	xsltRegisterExtElement		(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * URI,
    xsltTransformFunction function)
    -

    Registers an extension element

    -
    ctxt:an XSLT transformation context
    name:the name of the element
    URI:the URI associated to the element
    function:the actual implementation which should be called
    Returns:0 in case of success, -1 in case of failure

    Function: xsltRegisterExtFunction

    int	xsltRegisterExtFunction		(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * URI,
    xmlXPathFunction function)
    -

    Registers an extension function

    -
    ctxt:an XSLT transformation context
    name:the name of the element
    URI:the URI associated to the element
    function:the actual implementation which should be called
    Returns:0 in case of success, -1 in case of failure

    Function: xsltRegisterExtModule

    int	xsltRegisterExtModule		(const xmlChar * URI, 
    xsltExtInitFunction initFunc,
    xsltExtShutdownFunction shutdownFunc)
    -

    Register an XSLT extension module to the library.

    -
    URI:URI associated to this module
    initFunc:the module initialization function
    shutdownFunc:the module shutdown function
    Returns:0 if sucessful, -1 in case of error

    Function: xsltRegisterExtModuleElement

    int	xsltRegisterExtModuleElement	(const xmlChar * name, 
    const xmlChar * URI,
    xsltPreComputeFunction precomp,
    xsltTransformFunction transform)
    -

    Registers an extension module element.

    -
    name:the element name
    URI:the element namespace URI
    precomp:the pre-computation callback
    transform:the transformation callback
    Returns:0 if successful, -1 in case of error.

    Function: xsltRegisterExtModuleFull

    int	xsltRegisterExtModuleFull	(const xmlChar * URI, 
    xsltExtInitFunction initFunc,
    xsltExtShutdownFunction shutdownFunc,
    xsltStyleExtInitFunction styleInitFunc,
    xsltStyleExtShutdownFunction styleShutdownFunc)
    -

    Register an XSLT extension module to the library.

    -
    URI:URI associated to this module
    initFunc:the module initialization function
    shutdownFunc:the module shutdown function
    styleInitFunc:the module initialization function
    styleShutdownFunc:the module shutdown function
    Returns:0 if sucessful, -1 in case of error

    Function: xsltRegisterExtModuleFunction

    int	xsltRegisterExtModuleFunction	(const xmlChar * name, 
    const xmlChar * URI,
    xmlXPathFunction function)
    -

    Registers an extension module function.

    -
    name:the function name
    URI:the function namespace URI
    function:the function callback
    Returns:0 if successful, -1 in case of error.

    Function: xsltRegisterExtModuleTopLevel

    int	xsltRegisterExtModuleTopLevel	(const xmlChar * name, 
    const xmlChar * URI,
    xsltTopLevelFunction function)
    -

    Registers an extension module top-level element.

    -
    name:the top-level element name
    URI:the top-level element namespace URI
    function:the top-level element callback
    Returns:0 if successful, -1 in case of error.

    Function: xsltRegisterExtPrefix

    int	xsltRegisterExtPrefix		(xsltStylesheetPtr style, 
    const xmlChar * prefix,
    const xmlChar * URI)
    -

    Registers an extension namespace

    -
    style:an XSLT stylesheet
    prefix:the prefix used
    URI:the URI associated to the extension
    Returns:0 in case of success, -1 in case of failure

    Function: xsltRegisterTestModule

    void	xsltRegisterTestModule		(void)
    -

    Registers the test module

    -

    Function: xsltShutdownCtxtExts

    void	xsltShutdownCtxtExts		(xsltTransformContextPtr ctxt)
    -

    Shutdown the set of modules loaded

    -
    ctxt:an XSLT transformation context

    Function: xsltShutdownExts

    void	xsltShutdownExts		(xsltStylesheetPtr style)
    -

    Shutdown the set of modules loaded

    -
    style:an XSLT stylesheet

    Function type: xsltStyleExtInitFunction

    Function type: xsltStyleExtInitFunction
    -void *	xsltStyleExtInitFunction	(xsltStylesheetPtr style, 
    const xmlChar * URI) -

    A function called at initialization time of an XSLT extension module.

    style:
    URI:the namespace URI for the extension
    Returns:a pointer to the module specific data for this transformation.

    -

    Function type: xsltStyleExtShutdownFunction

    Function type: xsltStyleExtShutdownFunction
    -void	xsltStyleExtShutdownFunction	(xsltStylesheetPtr style, 
    const xmlChar * URI,
    void * data) -

    A function called at shutdown time of an XSLT extension module.

    style:
    URI:the namespace URI for the extension
    data:the data associated to this module

    -

    Function: xsltStyleGetExtData

    void *	xsltStyleGetExtData		(xsltStylesheetPtr style, 
    const xmlChar * URI)
    -

    Retrieve the data associated to the extension module in this given stylesheet.

    -
    style:an XSLT stylesheet
    URI:the URI associated to the exension module
    Returns:the pointer or NULL if not present

    Function type: xsltTopLevelFunction

    Function type: xsltTopLevelFunction
    -void	xsltTopLevelFunction		(xsltStylesheetPtr style, 
    xmlNodePtr inst) -

    style:
    inst:

    -

    Function: xsltUnregisterExtModule

    int	xsltUnregisterExtModule		(const xmlChar * URI)
    -

    Unregister an XSLT extension module from the library.

    -
    URI:URI associated to this module
    Returns:0 if sucessful, -1 in case of error

    Function: xsltUnregisterExtModuleElement

    int	xsltUnregisterExtModuleElement	(const xmlChar * name, 
    const xmlChar * URI)
    -

    Unregisters an extension module element

    -
    name:the element name
    URI:the element namespace URI
    Returns:0 if successful, -1 in case of error.

    Function: xsltUnregisterExtModuleFunction

    int	xsltUnregisterExtModuleFunction	(const xmlChar * name, 
    const xmlChar * URI)
    -

    Unregisters an extension module function

    -
    name:the function name
    URI:the function namespace URI
    Returns:0 if successful, -1 in case of error.

    Function: xsltUnregisterExtModuleTopLevel

    int	xsltUnregisterExtModuleTopLevel	(const xmlChar * name, 
    const xmlChar * URI)
    -

    Unregisters an extension module top-level element

    -
    name:the top-level element name
    URI:the top-level element namespace URI
    Returns:0 if successful, -1 in case of error.

    Function: xsltXPathGetTransformContext

    xsltTransformContextPtr	xsltXPathGetTransformContext	(xmlXPathParserContextPtr ctxt)
    -

    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.

    -
    ctxt:an XPath transformation context
    Returns:the XSLT transformation context or NULL in case of error.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-extra.html b/src/tools/docbook/libxslt/doc/html/libxslt-extra.html deleted file mode 100644 index bf36dd5ea7..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-extra.html +++ /dev/null @@ -1,28 +0,0 @@ - - -Module extra from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module extra from libxslt

    API Menu
    Related links
    API Indexes

    implement some extension outside the XSLT namespace but not EXSLT with is in a different library.

    Table of Contents

    #define XSLT_LIBXSLT_NAMESPACE
    #define XSLT_NORM_SAXON_NAMESPACE
    #define XSLT_SAXON_NAMESPACE
    #define XSLT_XALAN_NAMESPACE
    #define XSLT_XT_NAMESPACE
    void	xsltDebug			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    void	xsltFunctionNodeSet		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xsltRegisterAllExtras		(void)
    -
    void	xsltRegisterExtras		(xsltTransformContextPtr ctxt)
    -

    Description

    -

    Macro: XSLT_LIBXSLT_NAMESPACE

    #define XSLT_LIBXSLT_NAMESPACE

    This is the libxslt namespace for specific extensions.

    -

    Macro: XSLT_NORM_SAXON_NAMESPACE

    #define XSLT_NORM_SAXON_NAMESPACE

    This is Norm's namespace for SAXON extensions.

    -

    Macro: XSLT_SAXON_NAMESPACE

    #define XSLT_SAXON_NAMESPACE

    This is Michael Kay's Saxon processor namespace for extensions.

    -

    Macro: XSLT_XALAN_NAMESPACE

    #define XSLT_XALAN_NAMESPACE

    This is the Apache project XALAN processor namespace for extensions.

    -

    Macro: XSLT_XT_NAMESPACE

    #define XSLT_XT_NAMESPACE

    This is James Clark's XT processor namespace for extensions.

    -

    Function: xsltDebug

    void	xsltDebug			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process an debug node

    -
    ctxt:an XSLT processing context
    node:The current node
    inst:the instruction in the stylesheet
    comp:precomputed informations

    Function: xsltFunctionNodeSet

    void	xsltFunctionNodeSet		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the node-set() XSLT function node-set node-set(result-tree) This function is available in libxslt, saxon or xt namespace.

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xsltRegisterAllExtras

    void	xsltRegisterAllExtras		(void)
    -

    Registers the built-in extensions

    -

    Function: xsltRegisterExtras

    void	xsltRegisterExtras		(xsltTransformContextPtr ctxt)
    -

    Registers the built-in extensions. This function is deprecated, use xsltRegisterAllExtras instead.

    -
    ctxt:a XSLT process context

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-functions.html b/src/tools/docbook/libxslt/doc/html/libxslt-functions.html deleted file mode 100644 index f4b16782d2..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-functions.html +++ /dev/null @@ -1,42 +0,0 @@ - - -Module functions from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module functions from libxslt

    API Menu
    Related links
    API Indexes

    a set of extra functions coming from XSLT but not in XPath

    Table of Contents

    #define XSLT_REGISTER_FUNCTION_LOOKUP
    void	xsltDocumentFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xsltElementAvailableFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xsltFormatNumberFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xsltFunctionAvailableFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xsltGenerateIdFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xsltKeyFunction			(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xsltRegisterAllFunctions	(xmlXPathContextPtr ctxt)
    -
    void	xsltSystemPropertyFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    void	xsltUnparsedEntityURIFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -
    xmlXPathFunction	xsltXPathFunctionLookup	(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri)
    -

    Description

    -

    Macro: XSLT_REGISTER_FUNCTION_LOOKUP

    #define XSLT_REGISTER_FUNCTION_LOOKUP

    Registering macro, not general purpose at all but used in different modules.

    -

    Function: xsltDocumentFunction

    void	xsltDocumentFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the document() XSLT function node-set document(object, node-set?)

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xsltElementAvailableFunction

    void	xsltElementAvailableFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the element-available() XSLT function boolean element-available(string)

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xsltFormatNumberFunction

    void	xsltFormatNumberFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the format-number() XSLT function string format-number(number, string, string?)

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xsltFunctionAvailableFunction

    void	xsltFunctionAvailableFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the function-available() XSLT function boolean function-available(string)

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xsltGenerateIdFunction

    void	xsltGenerateIdFunction		(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the generate-id() XSLT function string generate-id(node-set?)

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xsltKeyFunction

    void	xsltKeyFunction			(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the key() XSLT function node-set key(string, object)

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xsltRegisterAllFunctions

    void	xsltRegisterAllFunctions	(xmlXPathContextPtr ctxt)
    -

    Registers all default XSLT functions in this context

    -
    ctxt:the XPath context

    Function: xsltSystemPropertyFunction

    void	xsltSystemPropertyFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the system-property() XSLT function object system-property(string)

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xsltUnparsedEntityURIFunction

    void	xsltUnparsedEntityURIFunction	(xmlXPathParserContextPtr ctxt, 
    int nargs)
    -

    Implement the unparsed-entity-uri() XSLT function string unparsed-entity-uri(string)

    -
    ctxt:the XPath Parser context
    nargs:the number of arguments

    Function: xsltXPathFunctionLookup

    xmlXPathFunction	xsltXPathFunctionLookup	(xmlXPathContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri)
    -

    This is the entry point when a function is needed by the XPath interpretor.

    -
    ctxt:a void * but the XSLT transformation context actually
    name:the function name
    ns_uri:the function namespace URI
    Returns:the callback function or NULL if not found

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-imports.html b/src/tools/docbook/libxslt/doc/html/libxslt-imports.html deleted file mode 100644 index ee3e0392de..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-imports.html +++ /dev/null @@ -1,31 +0,0 @@ - - -Module imports from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module imports from libxslt

    API Menu
    Related links
    API Indexes

    macros and fuctions needed to implement and access the import tree

    Table of Contents

    #define XSLT_GET_IMPORT_INT
    #define XSLT_GET_IMPORT_PTR
    int	xsltFindElemSpaceHandling	(xsltTransformContextPtr ctxt, 
    xmlNodePtr node)
    -
    xsltTemplatePtr	xsltFindTemplate	(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * nameURI)
    -
    int	xsltNeedElemSpaceHandling	(xsltTransformContextPtr ctxt)
    -
    xsltStylesheetPtr	xsltNextImport	(xsltStylesheetPtr cur)
    -
    int	xsltParseStylesheetImport	(xsltStylesheetPtr style, 
    xmlNodePtr cur)
    -
    int	xsltParseStylesheetInclude	(xsltStylesheetPtr style, 
    xmlNodePtr cur)
    -

    Description

    -

    Macro: XSLT_GET_IMPORT_INT

    #define XSLT_GET_IMPORT_INT

    A macro to import intergers from the stylesheet cascading order.

    -

    Macro: XSLT_GET_IMPORT_PTR

    #define XSLT_GET_IMPORT_PTR

    A macro to import pointers from the stylesheet cascading order.

    -

    Function: xsltFindElemSpaceHandling

    int	xsltFindElemSpaceHandling	(xsltTransformContextPtr ctxt, 
    xmlNodePtr node)
    -

    Find strip-space or preserve-space informations for an element respect the import precedence or the wildcards

    -
    ctxt:an XSLT transformation context
    node:an XML node
    Returns:1 if space should be stripped, 0 if not, and 2 if everything should be CDTATA wrapped.

    Function: xsltFindTemplate

    xsltTemplatePtr	xsltFindTemplate	(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * nameURI)
    -

    Finds the named template, apply import precedence rule.

    -
    ctxt:an XSLT transformation context
    name:the template name
    nameURI:the template name URI
    Returns:the xsltTemplatePtr or NULL if not found

    Function: xsltNeedElemSpaceHandling

    int	xsltNeedElemSpaceHandling	(xsltTransformContextPtr ctxt)
    -

    Checks whether that stylesheet requires white-space stripping

    -
    ctxt:an XSLT transformation context
    Returns:1 if space should be stripped, 0 if not

    Function: xsltNextImport

    xsltStylesheetPtr	xsltNextImport	(xsltStylesheetPtr cur)
    -

    Find the next stylesheet in import precedence.

    -
    cur:the current XSLT stylesheet
    Returns:the next stylesheet or NULL if it was the last one

    Function: xsltParseStylesheetImport

    int	xsltParseStylesheetImport	(xsltStylesheetPtr style, 
    xmlNodePtr cur)
    -

    parse an XSLT stylesheet import element

    -
    style:the XSLT stylesheet
    cur:the import element
    Returns:0 in case of success -1 in case of failure.

    Function: xsltParseStylesheetInclude

    int	xsltParseStylesheetInclude	(xsltStylesheetPtr style, 
    xmlNodePtr cur)
    -

    parse an XSLT stylesheet include element

    -
    style:the XSLT stylesheet
    cur:the include node
    Returns:0 in case of success -1 in case of failure

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-keys.html b/src/tools/docbook/libxslt/doc/html/libxslt-keys.html deleted file mode 100644 index 3c725566b4..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-keys.html +++ /dev/null @@ -1,27 +0,0 @@ - - -Module keys from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module keys from libxslt

    API Menu
    Related links
    API Indexes

    implementation of the key mechanims.

    Table of Contents

    #define NODE_IS_KEYED
    int	xsltAddKey			(xsltStylesheetPtr style, 
    const xmlChar * name,
    const xmlChar * nameURI,
    const xmlChar * match,
    const xmlChar * use,
    xmlNodePtr inst)
    -
    void	xsltFreeDocumentKeys		(xsltDocumentPtr doc)
    -
    void	xsltFreeKeys			(xsltStylesheetPtr style)
    -
    xmlNodeSetPtr	xsltGetKey		(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * nameURI,
    const xmlChar * value)
    -
    void	xsltInitCtxtKeys		(xsltTransformContextPtr ctxt, 
    xsltDocumentPtr doc)
    -

    Description

    -

    Macro: NODE_IS_KEYED

    #define NODE_IS_KEYED

    -

    Function: xsltAddKey

    int	xsltAddKey			(xsltStylesheetPtr style, 
    const xmlChar * name,
    const xmlChar * nameURI,
    const xmlChar * match,
    const xmlChar * use,
    xmlNodePtr inst)
    -

    add a key definition to a stylesheet

    -
    style:an XSLT stylesheet
    name:the key name or NULL
    nameURI:the name URI or NULL
    match:the match value
    use:the use value
    inst:the key instruction
    Returns:0 in case of success, and -1 in case of failure.

    Function: xsltFreeDocumentKeys

    void	xsltFreeDocumentKeys		(xsltDocumentPtr doc)
    -

    Free the keys associated to a document

    -
    doc:a XSLT document

    Function: xsltFreeKeys

    void	xsltFreeKeys			(xsltStylesheetPtr style)
    -

    Free up the memory used by XSLT keys in a stylesheet

    -
    style:an XSLT stylesheet

    Function: xsltGetKey

    xmlNodeSetPtr	xsltGetKey		(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * nameURI,
    const xmlChar * value)
    -

    Lookup a key

    -
    ctxt:an XSLT transformation context
    name:the key name or NULL
    nameURI:the name URI or NULL
    value:the key value to look for
    Returns:the nodeset resulting from the query or NULL

    Function: xsltInitCtxtKeys

    void	xsltInitCtxtKeys		(xsltTransformContextPtr ctxt, 
    xsltDocumentPtr doc)
    -

    Computes all the keys tables for the current input document. Should be done before global varibales are initialized.

    -
    ctxt:an XSLT transformation context
    doc:an XSLT document

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-lib.html b/src/tools/docbook/libxslt/doc/html/libxslt-lib.html deleted file mode 100644 index a93550d41d..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-lib.html +++ /dev/null @@ -1,10 +0,0 @@ - - -Reference Manual for libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Reference Manual for libxslt

    API Menu
    Related links
    API Indexes

    Table of Contents

    • attributes: interface for the XSLT attribute handling
    • documents: interface for the document handling
    • extensions: interface for the extension support
    • extra: interface for the non-standard features
    • functions: interface for the XSLT functions not from XPath
    • imports: interface for the XSLT import support
    • keys: interface for the key matching used in key() and template matches.
    • namespaces: interface for the XSLT namespace handling
    • numbersInternals: Implementation of the XSLT number functions
    • pattern: interface for the pattern matching used in template matches.
    • preproc: precomputing stylesheets
    • security: interface for the libxslt security framework
    • templates: interface for the template processing
    • transform: the XSLT engine transformation part.
    • variables: interface for the variable matching and lookup.
    • xslt: Interfaces, constants and types related to the XSLT engine
    • xsltInternals: internal data structures, constants and functions
    • xsltexports: macros for marking symbols as exportable/importable.
    • xsltutils: set of utilities for the XSLT engine

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-namespaces.html b/src/tools/docbook/libxslt/doc/html/libxslt-namespaces.html deleted file mode 100644 index 3f2269a2c7..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-namespaces.html +++ /dev/null @@ -1,33 +0,0 @@ - - -Module namespaces from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module namespaces from libxslt

    API Menu
    Related links
    API Indexes

    set of function easing the processing and generation of namespace nodes in XSLT.

    Table of Contents

    #define UNDEFINED_DEFAULT_NS
    xmlNsPtr	xsltCopyNamespace	(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNsPtr cur)
    -
    xmlNsPtr	xsltCopyNamespaceList	(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNsPtr cur)
    -
    void	xsltFreeNamespaceAliasHashes	(xsltStylesheetPtr style)
    -
    xmlNsPtr	xsltGetNamespace	(xsltTransformContextPtr ctxt, 
    xmlNodePtr cur,
    xmlNsPtr ns,
    xmlNodePtr out)
    -
    xmlNsPtr	xsltGetPlainNamespace	(xsltTransformContextPtr ctxt, 
    xmlNodePtr cur,
    xmlNsPtr ns,
    xmlNodePtr out)
    -
    xmlNsPtr	xsltGetSpecialNamespace	(xsltTransformContextPtr ctxt, 
    xmlNodePtr cur,
    const xmlChar * URI,
    const xmlChar * prefix,
    xmlNodePtr out)
    -
    void	xsltNamespaceAlias		(xsltStylesheetPtr style, 
    xmlNodePtr node)
    -

    Description

    -

    Macro: UNDEFINED_DEFAULT_NS

    #define UNDEFINED_DEFAULT_NS

    -

    Function: xsltCopyNamespace

    xmlNsPtr	xsltCopyNamespace	(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNsPtr cur)
    -

    Do a copy of an namespace node. If @node is non-NULL the new namespaces are added automatically. This handles namespaces aliases

    -
    ctxt:a transformation context
    node:the target node
    cur:the namespace node
    Returns:a new xmlNsPtr, or NULL in case of error.

    Function: xsltCopyNamespaceList

    xmlNsPtr	xsltCopyNamespaceList	(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNsPtr cur)
    -

    Do a copy of an namespace list. If @node is non-NULL the new namespaces are added automatically. This handles namespaces aliases

    -
    ctxt:a transformation context
    node:the target node
    cur:the first namespace
    Returns:a new xmlNsPtr, or NULL in case of error.

    Function: xsltFreeNamespaceAliasHashes

    void	xsltFreeNamespaceAliasHashes	(xsltStylesheetPtr style)
    -

    Free up the memory used by namespaces aliases

    -
    style:an XSLT stylesheet

    Function: xsltGetNamespace

    xmlNsPtr	xsltGetNamespace	(xsltTransformContextPtr ctxt, 
    xmlNodePtr cur,
    xmlNsPtr ns,
    xmlNodePtr out)
    -

    Find the right namespace value for this prefix, if needed create and add a new namespace decalaration on the node Handle namespace aliases

    -
    ctxt:a transformation context
    cur:the input node
    ns:the namespace
    out:the output node (or its parent)
    Returns:the namespace node to use or NULL

    Function: xsltGetPlainNamespace

    xmlNsPtr	xsltGetPlainNamespace	(xsltTransformContextPtr ctxt, 
    xmlNodePtr cur,
    xmlNsPtr ns,
    xmlNodePtr out)
    -

    Find the right namespace value for this prefix, if needed create and add a new namespace decalaration on the node Handle namespace aliases and make sure the prefix is not NULL, this is needed for attributes.

    -
    ctxt:a transformation context
    cur:the input node
    ns:the namespace
    out:the output node (or its parent)
    Returns:the namespace node to use or NULL

    Function: xsltGetSpecialNamespace

    xmlNsPtr	xsltGetSpecialNamespace	(xsltTransformContextPtr ctxt, 
    xmlNodePtr cur,
    const xmlChar * URI,
    const xmlChar * prefix,
    xmlNodePtr out)
    -

    Find the right namespace value for this URI, if needed create and add a new namespace decalaration on the node

    -
    ctxt:a transformation context
    cur:the input node
    URI:the namespace URI
    prefix:the suggested prefix
    out:the output node (or its parent)
    Returns:the namespace node to use or NULL

    Function: xsltNamespaceAlias

    void	xsltNamespaceAlias		(xsltStylesheetPtr style, 
    xmlNodePtr node)
    -

    Read the stylesheet-prefix and result-prefix attributes, register them as well as the corresponding namespace.

    -
    style:the XSLT stylesheet
    node:the xsl:namespace-alias node

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-numbersInternals.html b/src/tools/docbook/libxslt/doc/html/libxslt-numbersInternals.html deleted file mode 100644 index af9fd2c738..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-numbersInternals.html +++ /dev/null @@ -1,37 +0,0 @@ - - -Module numbersInternals from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module numbersInternals from libxslt

    API Menu
    Related links
    API Indexes

    Implementation of the XSLT number functions

    Table of Contents

    Structure xsltFormatNumberInfo
    struct _xsltFormatNumberInfo -
    Typedef xsltFormatNumberInfo * xsltFormatNumberInfoPtr
    -
    Structure xsltNumberData
    struct _xsltNumberData -
    Typedef xsltNumberData * xsltNumberDataPtr
    -

    Description

    -

    Structure xsltFormatNumberInfo

    Structure xsltFormatNumberInfo
    struct _xsltFormatNumberInfo { - int integer_hash : Number of '#' in integer part - int integer_digits : Number of '0' in integer part - int frac_digits : Number of '0' in fractional part - int frac_hash : Number of '#' in fractional part - int group : Number of chars per display 'group' - int multiplier : Scaling for percent or permille - char add_decimal : Flag for whether decimal point appears - char is_multiplier_set : Flag to catch multiple occurences of pe - char is_negative_pattern : Flag for processing -ve prefix/suffix -}

    Structure xsltNumberData

    Structure xsltNumberData
    struct _xsltNumberData { - const xmlChar * level - const xmlChar * count - const xmlChar * from - const xmlChar * value - const xmlChar * format - int has_format - int digitsPerGroup - int groupingCharacter - int groupingCharacterLen - xmlDocPtr doc - xmlNodePtr node : * accelerators * -}

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-pattern.html b/src/tools/docbook/libxslt/doc/html/libxslt-pattern.html deleted file mode 100644 index 137f2c7245..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-pattern.html +++ /dev/null @@ -1,43 +0,0 @@ - - -Module pattern from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module pattern from libxslt

    API Menu
    Related links
    API Indexes

    the implementation of the lookup of the right template for a given node must be really fast in order to keep decent performances.

    Table of Contents

    Structure xsltCompMatch
    struct _xsltCompMatch -The content of this structure is not made public by the API. -
    Typedef xsltCompMatch * xsltCompMatchPtr
    -
    int	xsltAddTemplate			(xsltStylesheetPtr style, 
    xsltTemplatePtr cur,
    const xmlChar * mode,
    const xmlChar * modeURI)
    -
    void	xsltCleanupTemplates		(xsltStylesheetPtr style)
    -
    xsltCompMatchPtr	xsltCompilePattern	(const xmlChar * pattern, 
    xmlDocPtr doc,
    xmlNodePtr node,
    xsltStylesheetPtr style,
    xsltTransformContextPtr runtime)
    -
    void	xsltFreeCompMatchList		(xsltCompMatchPtr comp)
    -
    void	xsltFreeTemplateHashes		(xsltStylesheetPtr style)
    -
    xsltTemplatePtr	xsltGetTemplate		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xsltStylesheetPtr style)
    -
    int	xsltMatchPattern		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    const xmlChar * pattern,
    xmlDocPtr ctxtdoc,
    xmlNodePtr ctxtnode)
    -
    void	xsltNormalizeCompSteps		(void * payload, 
    void * data,
    const xmlChar * name)
    -
    int	xsltTestCompMatchList		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xsltCompMatchPtr comp)
    -

    Description

    -

    Structure xsltCompMatch

    Structure xsltCompMatch
    struct _xsltCompMatch { -The content of this structure is not made public by the API. -}

    Function: xsltAddTemplate

    int	xsltAddTemplate			(xsltStylesheetPtr style, 
    xsltTemplatePtr cur,
    const xmlChar * mode,
    const xmlChar * modeURI)
    -

    Register the XSLT pattern associated to @cur

    -
    style:an XSLT stylesheet
    cur:an XSLT template
    mode:the mode name or NULL
    modeURI:the mode URI or NULL
    Returns:-1 in case of error, 0 otherwise

    Function: xsltCleanupTemplates

    void	xsltCleanupTemplates		(xsltStylesheetPtr style)
    -

    Cleanup the state of the templates used by the stylesheet and the ones it imports.

    -
    style:an XSLT stylesheet

    Function: xsltCompilePattern

    xsltCompMatchPtr	xsltCompilePattern	(const xmlChar * pattern, 
    xmlDocPtr doc,
    xmlNodePtr node,
    xsltStylesheetPtr style,
    xsltTransformContextPtr runtime)
    -

    Compile the XSLT pattern and generates a list of precompiled form suitable for fast matching. [1] Pattern ::= LocationPathPattern | Pattern '|' LocationPathPattern

    -
    pattern:an XSLT pattern
    doc:the containing document
    node:the containing element
    style:the stylesheet
    runtime:the transformation context, if done at run-time
    Returns:the generated pattern list or NULL in case of failure

    Function: xsltFreeCompMatchList

    void	xsltFreeCompMatchList		(xsltCompMatchPtr comp)
    -

    Free up the memory allocated by all the elements of @comp

    -
    comp:an XSLT comp list

    Function: xsltFreeTemplateHashes

    void	xsltFreeTemplateHashes		(xsltStylesheetPtr style)
    -

    Free up the memory used by xsltAddTemplate/xsltGetTemplate mechanism

    -
    style:an XSLT stylesheet

    Function: xsltGetTemplate

    xsltTemplatePtr	xsltGetTemplate		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xsltStylesheetPtr style)
    -

    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.

    -
    ctxt:a XSLT process context
    node:the node being processed
    style:the current style
    Returns:the xsltTemplatePtr or NULL if not found

    Function: xsltMatchPattern

    int	xsltMatchPattern		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    const xmlChar * pattern,
    xmlDocPtr ctxtdoc,
    xmlNodePtr ctxtnode)
    -

    -
    ctxt:
    node:
    pattern:
    ctxtdoc:
    ctxtnode:
    Returns:

    Function: xsltNormalizeCompSteps

    void	xsltNormalizeCompSteps		(void * payload, 
    void * data,
    const xmlChar * name)
    -

    This is a hashtable scanner function to normalize the compiled steps of an imported stylesheet.

    -
    payload:pointer to template hash table entry
    data:pointer to the stylesheet
    name:template match name

    Function: xsltTestCompMatchList

    int	xsltTestCompMatchList		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xsltCompMatchPtr comp)
    -

    Test whether the node matches one of the patterns in the list

    -
    ctxt:a XSLT process context
    node:a node
    comp:the precompiled pattern list
    Returns:1 if it matches, 0 if it doesn't and -1 in case of failure

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-preproc.html b/src/tools/docbook/libxslt/doc/html/libxslt-preproc.html deleted file mode 100644 index c5287cb6e9..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-preproc.html +++ /dev/null @@ -1,20 +0,0 @@ - - -Module preproc from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module preproc from libxslt

    API Menu
    Related links
    API Indexes

    this is the compilation phase, where most of the stylesheet is "compiled" into faster to use data.

    Table of Contents

    xsltElemPreCompPtr	xsltDocumentComp	(xsltStylesheetPtr style, 
    xmlNodePtr inst,
    xsltTransformFunction function)
    -
    void	xsltFreeStylePreComps		(xsltStylesheetPtr style)
    -
    void	xsltStylePreCompute		(xsltStylesheetPtr style, 
    xmlNodePtr inst)
    -

    Description

    -

    Function: xsltDocumentComp

    xsltElemPreCompPtr	xsltDocumentComp	(xsltStylesheetPtr style, 
    xmlNodePtr inst,
    xsltTransformFunction function)
    -

    Pre process an XSLT-1.1 document element

    -
    style:the XSLT stylesheet
    inst:the instruction in the stylesheet
    function:unused
    Returns:a precompiled data structure for the element

    Function: xsltFreeStylePreComps

    void	xsltFreeStylePreComps		(xsltStylesheetPtr style)
    -

    Free up the memory allocated by all precomputed blocks

    -
    style:an XSLT transformation context

    Function: xsltStylePreCompute

    void	xsltStylePreCompute		(xsltStylesheetPtr style, 
    xmlNodePtr inst)
    -

    Precompute an XSLT stylesheet element

    -
    style:the XSLT stylesheet
    inst:the instruction in the stylesheet

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-security.html b/src/tools/docbook/libxslt/doc/html/libxslt-security.html deleted file mode 100644 index 93e32f4a2f..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-security.html +++ /dev/null @@ -1,63 +0,0 @@ - - -Module security from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module security from libxslt

    API Menu
    Related links
    API Indexes

    the libxslt security framework allow to restrict the access to new resources (file or URL) from the stylesheet at runtime.

    Table of Contents

    Enum xsltSecurityOption
    -
    Structure xsltSecurityPrefs
    struct _xsltSecurityPrefs -The content of this structure is not made public by the API. -
    Typedef xsltSecurityPrefs * xsltSecurityPrefsPtr
    -
    int	xsltCheckRead			(xsltSecurityPrefsPtr sec, 
    xsltTransformContextPtr ctxt,
    const xmlChar * URL)
    -
    int	xsltCheckWrite			(xsltSecurityPrefsPtr sec, 
    xsltTransformContextPtr ctxt,
    const xmlChar * URL)
    -
    void	xsltFreeSecurityPrefs		(xsltSecurityPrefsPtr sec)
    -
    xsltSecurityPrefsPtr	xsltGetDefaultSecurityPrefs	(void)
    -
    xsltSecurityCheck	xsltGetSecurityPrefs	(xsltSecurityPrefsPtr sec, 
    xsltSecurityOption option)
    -
    xsltSecurityPrefsPtr	xsltNewSecurityPrefs	(void)
    -
    int	xsltSecurityAllow		(xsltSecurityPrefsPtr sec, 
    xsltTransformContextPtr ctxt,
    const char * value)
    -
    Function type: xsltSecurityCheck
    -int	xsltSecurityCheck		(xsltSecurityPrefsPtr sec, 
    xsltTransformContextPtr ctxt,
    const char * value) -
    -
    int	xsltSecurityForbid		(xsltSecurityPrefsPtr sec, 
    xsltTransformContextPtr ctxt,
    const char * value)
    -
    int	xsltSetCtxtSecurityPrefs	(xsltSecurityPrefsPtr sec, 
    xsltTransformContextPtr ctxt)
    -
    void	xsltSetDefaultSecurityPrefs	(xsltSecurityPrefsPtr sec)
    -
    int	xsltSetSecurityPrefs		(xsltSecurityPrefsPtr sec, 
    xsltSecurityOption option,
    xsltSecurityCheck func)
    -

    Description

    -

    Enum xsltSecurityOption

    Enum xsltSecurityOption {
    -    XSLT_SECPREF_READ_FILE = 1
    -    XSLT_SECPREF_WRITE_FILE = 2
    -    XSLT_SECPREF_CREATE_DIRECTORY = 3
    -    XSLT_SECPREF_READ_NETWORK = 4
    -    XSLT_SECPREF_WRITE_NETWORK = 5
    -}
    -

    Structure xsltSecurityPrefs

    Structure xsltSecurityPrefs
    struct _xsltSecurityPrefs { -The content of this structure is not made public by the API. -}

    Function: xsltCheckRead

    int	xsltCheckRead			(xsltSecurityPrefsPtr sec, 
    xsltTransformContextPtr ctxt,
    const xmlChar * URL)
    -

    Check if the resource is allowed to be read

    -
    sec:the security options
    ctxt:an XSLT transformation context
    URL:the resource to be read
    Returns:1 if read is allowed, 0 if not and -1 in case or error.

    Function: xsltCheckWrite

    int	xsltCheckWrite			(xsltSecurityPrefsPtr sec, 
    xsltTransformContextPtr ctxt,
    const xmlChar * URL)
    -

    Check if the resource is allowed to be written, if necessary makes some preliminary work like creating directories

    -
    sec:the security options
    ctxt:an XSLT transformation context
    URL:the resource to be written
    Returns:1 if write is allowed, 0 if not and -1 in case or error.

    Function: xsltFreeSecurityPrefs

    void	xsltFreeSecurityPrefs		(xsltSecurityPrefsPtr sec)
    -

    Free up a security preference block

    -
    sec:the security block to free

    Function: xsltGetDefaultSecurityPrefs

    xsltSecurityPrefsPtr	xsltGetDefaultSecurityPrefs	(void)
    -

    Get the default security preference application-wide

    -
    Returns:the current xsltSecurityPrefsPtr in use or NULL if none

    Function: xsltGetSecurityPrefs

    xsltSecurityCheck	xsltGetSecurityPrefs	(xsltSecurityPrefsPtr sec, 
    xsltSecurityOption option)
    -

    Lookup the security option to get the callback checking function

    -
    sec:the security block to update
    option:the option to lookup
    Returns:NULL if not found, the function otherwise

    Function: xsltNewSecurityPrefs

    xsltSecurityPrefsPtr	xsltNewSecurityPrefs	(void)
    -

    Create a new security preference block

    -
    Returns:a pointer to the new block or NULL in case of error

    Function: xsltSecurityAllow

    int	xsltSecurityAllow		(xsltSecurityPrefsPtr sec, 
    xsltTransformContextPtr ctxt,
    const char * value)
    -

    Function used to always allow an operation

    -
    sec:the security block to use
    ctxt:an XSLT transformation context
    value:unused
    Returns:1 always

    Function type: xsltSecurityCheck

    Function type: xsltSecurityCheck
    -int	xsltSecurityCheck		(xsltSecurityPrefsPtr sec, 
    xsltTransformContextPtr ctxt,
    const char * value) -

    User provided function to check the value of a string like a file path or an URL ...

    sec:
    ctxt:
    value:
    Returns:

    -

    Function: xsltSecurityForbid

    int	xsltSecurityForbid		(xsltSecurityPrefsPtr sec, 
    xsltTransformContextPtr ctxt,
    const char * value)
    -

    Function used to always forbid an operation

    -
    sec:the security block to use
    ctxt:an XSLT transformation context
    value:unused
    Returns:0 always

    Function: xsltSetCtxtSecurityPrefs

    int	xsltSetCtxtSecurityPrefs	(xsltSecurityPrefsPtr sec, 
    xsltTransformContextPtr ctxt)
    -

    Set the security preference for a specific transformation

    -
    sec:the security block to use
    ctxt:an XSLT transformation context
    Returns:-1 in case of error, 0 otherwise

    Function: xsltSetDefaultSecurityPrefs

    void	xsltSetDefaultSecurityPrefs	(xsltSecurityPrefsPtr sec)
    -

    Set the default security preference application-wide

    -
    sec:the security block to use

    Function: xsltSetSecurityPrefs

    int	xsltSetSecurityPrefs		(xsltSecurityPrefsPtr sec, 
    xsltSecurityOption option,
    xsltSecurityCheck func)
    -

    Update the security option to use the new callback checking function

    -
    sec:the security block to update
    option:the option to update
    func:the user callback to use for this option
    Returns:-1 in case of error, 0 otherwise

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-templates.html b/src/tools/docbook/libxslt/doc/html/libxslt-templates.html deleted file mode 100644 index cf870e3ae7..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-templates.html +++ /dev/null @@ -1,44 +0,0 @@ - - -Module templates from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module templates from libxslt

    API Menu
    Related links
    API Indexes

    This set of routine encapsulates XPath calls and Attribute Value Templates evaluation.

    Table of Contents

    xmlAttrPtr	xsltAttrListTemplateProcess	(xsltTransformContextPtr ctxt, 
    xmlNodePtr target,
    xmlAttrPtr cur)
    -
    xmlAttrPtr	xsltAttrTemplateProcess	(xsltTransformContextPtr ctxt, 
    xmlNodePtr target,
    xmlAttrPtr cur)
    -
    xmlChar *	xsltAttrTemplateValueProcess	(xsltTransformContextPtr ctxt, 
    const xmlChar * str)
    -
    xmlChar *	xsltAttrTemplateValueProcessNode	(xsltTransformContextPtr ctxt, 
    const xmlChar * str,
    xmlNodePtr node)
    -
    xmlChar *	xsltEvalAttrValueTemplate	(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    const xmlChar * name,
    const xmlChar * ns)
    -
    const xmlChar *	xsltEvalStaticAttrValueTemplate	(xsltStylesheetPtr style, 
    xmlNodePtr node,
    const xmlChar * name,
    const xmlChar * ns,
    int * found)
    -
    xmlChar *	xsltEvalTemplateString	(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr parent)
    -
    int	xsltEvalXPathPredicate		(xsltTransformContextPtr ctxt, 
    xmlXPathCompExprPtr comp,
    xmlNsPtr * nsList,
    int nsNr)
    -
    xmlChar *	xsltEvalXPathString	(xsltTransformContextPtr ctxt, 
    xmlXPathCompExprPtr comp)
    -
    xmlChar *	xsltEvalXPathStringNs	(xsltTransformContextPtr ctxt, 
    xmlXPathCompExprPtr comp,
    int nsNr,
    xmlNsPtr * nsList)
    -
    xmlNodePtr *	xsltTemplateProcess	(xsltTransformContextPtr ctxt, 
    xmlNodePtr node)
    -

    Description

    -

    Function: xsltAttrListTemplateProcess

    xmlAttrPtr	xsltAttrListTemplateProcess	(xsltTransformContextPtr ctxt, 
    xmlNodePtr target,
    xmlAttrPtr cur)
    -

    Do a copy of an attribute list with attribute template processing

    -
    ctxt:the XSLT transformation context
    target:the element where the attributes will be grafted
    cur:the first attribute
    Returns:a new xmlAttrPtr, or NULL in case of error.

    Function: xsltAttrTemplateProcess

    xmlAttrPtr	xsltAttrTemplateProcess	(xsltTransformContextPtr ctxt, 
    xmlNodePtr target,
    xmlAttrPtr cur)
    -

    Process the given attribute and return the new processed copy.

    -
    ctxt:the XSLT transformation context
    target:the result node
    cur:the attribute template node
    Returns:the attribute replacement.

    Function: xsltAttrTemplateValueProcess

    xmlChar *	xsltAttrTemplateValueProcess	(xsltTransformContextPtr ctxt, 
    const xmlChar * str)
    -

    Process the given node and return the new string value.

    -
    ctxt:the XSLT transformation context
    str:the attribute template node value
    Returns:the computed string value or NULL, must be deallocated by the caller.

    Function: xsltAttrTemplateValueProcessNode

    xmlChar *	xsltAttrTemplateValueProcessNode	(xsltTransformContextPtr ctxt, 
    const xmlChar * str,
    xmlNodePtr node)
    -

    Process the given string, allowing to pass a namespace mapping context and return the new string value.

    -
    ctxt:the XSLT transformation context
    str:the attribute template node value
    node:the node hosting the attribute
    Returns:the computed string value or NULL, must be deallocated by the caller.

    Function: xsltEvalAttrValueTemplate

    xmlChar *	xsltEvalAttrValueTemplate	(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    const xmlChar * name,
    const xmlChar * ns)
    -

    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.

    -
    ctxt:the XSLT transformation context
    node:the stylesheet node
    name:the attribute QName
    ns:the attribute namespace URI
    Returns:the computed string value or NULL, must be deallocated by the caller.

    Function: xsltEvalStaticAttrValueTemplate

    const xmlChar *	xsltEvalStaticAttrValueTemplate	(xsltStylesheetPtr style, 
    xmlNodePtr node,
    const xmlChar * name,
    const xmlChar * ns,
    int * found)
    -

    Check if an attribute value template has a static value, i.e. the attribute value does not contain expressions contained in curly braces ({})

    -
    style:the XSLT stylesheet
    node:the stylesheet node
    name:the attribute Name
    ns:the attribute namespace URI
    found:indicator whether the attribute is present
    Returns:the static string value or NULL, must be deallocated by the caller.

    Function: xsltEvalTemplateString

    xmlChar *	xsltEvalTemplateString	(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr parent)
    -

    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

    -
    ctxt:the XSLT transformation context
    node:the stylesheet node
    parent:the content parent
    Returns:the computed string value or NULL, must be deallocated by the caller.

    Function: xsltEvalXPathPredicate

    int	xsltEvalXPathPredicate		(xsltTransformContextPtr ctxt, 
    xmlXPathCompExprPtr comp,
    xmlNsPtr * nsList,
    int nsNr)
    -

    Process the expression using XPath and evaluate the result as an XPath predicate

    -
    ctxt:the XSLT transformation context
    comp:the XPath compiled expression
    nsList:the namespaces in scope
    nsNr:the number of namespaces in scope
    Returns:1 is the predicate was true, 0 otherwise

    Function: xsltEvalXPathString

    xmlChar *	xsltEvalXPathString	(xsltTransformContextPtr ctxt, 
    xmlXPathCompExprPtr comp)
    -

    Process the expression using XPath and get a string

    -
    ctxt:the XSLT transformation context
    comp:the compiled XPath expression
    Returns:the computed string value or NULL, must be deallocated by the caller.

    Function: xsltEvalXPathStringNs

    xmlChar *	xsltEvalXPathStringNs	(xsltTransformContextPtr ctxt, 
    xmlXPathCompExprPtr comp,
    int nsNr,
    xmlNsPtr * nsList)
    -

    Process the expression using XPath, allowing to pass a namespace mapping context and get a string

    -
    ctxt:the XSLT transformation context
    comp:the compiled XPath expression
    nsNr:the number of namespaces in the list
    nsList:the list of in-scope namespaces to use
    Returns:the computed string value or NULL, must be deallocated by the caller.

    Function: xsltTemplateProcess

    xmlNodePtr *	xsltTemplateProcess	(xsltTransformContextPtr ctxt, 
    xmlNodePtr node)
    -

    Process the given node and return the new string value.

    -
    ctxt:the XSLT transformation context
    node:the attribute template node
    Returns:the computed tree replacement

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-transform.html b/src/tools/docbook/libxslt/doc/html/libxslt-transform.html deleted file mode 100644 index 8348fcab22..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-transform.html +++ /dev/null @@ -1,104 +0,0 @@ - - -Module transform from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module transform from libxslt

    API Menu
    Related links
    API Indexes

    This module implements the bulk of the actual

    Table of Contents

    void	xslHandleDebugger		(xmlNodePtr cur, 
    xmlNodePtr node,
    xsltTemplatePtr templ,
    xsltTransformContextPtr ctxt)
    -
    void	xsltApplyImports		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    void	xsltApplyOneTemplate		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr list,
    xsltTemplatePtr templ,
    xsltStackElemPtr params)
    -
    void	xsltApplyStripSpaces		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node)
    -
    xmlDocPtr	xsltApplyStylesheet	(xsltStylesheetPtr style, 
    xmlDocPtr doc,
    const char ** params)
    -
    xmlDocPtr	xsltApplyStylesheetUser	(xsltStylesheetPtr style, 
    xmlDocPtr doc,
    const char ** params,
    const char * output,
    FILE * profile,
    xsltTransformContextPtr userCtxt)
    -
    void	xsltApplyTemplates		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    void	xsltAttribute			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    void	xsltCallTemplate		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    void	xsltChoose			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    void	xsltComment			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    void	xsltCopy			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    void	xsltCopyOf			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    xmlNodePtr	xsltCopyTextString	(xsltTransformContextPtr ctxt, 
    xmlNodePtr target,
    const xmlChar * string,
    int noescape)
    -
    void	xsltDocumentElem		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    void	xsltElement			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    void	xsltForEach			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    void	xsltFreeTransformContext	(xsltTransformContextPtr ctxt)
    -
    int	xsltGetXIncludeDefault		(void)
    -
    void	xsltIf			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    xsltTransformContextPtr	xsltNewTransformContext	(xsltStylesheetPtr style, 
    xmlDocPtr doc)
    -
    void	xsltNumber			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    void	xsltProcessingInstruction	(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    xmlDocPtr	xsltProfileStylesheet	(xsltStylesheetPtr style, 
    xmlDocPtr doc,
    const char ** params,
    FILE * output)
    -
    void	xsltRegisterAllElement		(xsltTransformContextPtr ctxt)
    -
    int	xsltRunStylesheet		(xsltStylesheetPtr style, 
    xmlDocPtr doc,
    const char ** params,
    const char * output,
    xmlSAXHandlerPtr SAX,
    xmlOutputBufferPtr IObuf)
    -
    int	xsltRunStylesheetUser		(xsltStylesheetPtr style, 
    xmlDocPtr doc,
    const char ** params,
    const char * output,
    xmlSAXHandlerPtr SAX,
    xmlOutputBufferPtr IObuf,
    FILE * profile,
    xsltTransformContextPtr userCtxt)
    -
    void	xsltSetXIncludeDefault		(int xinclude)
    -
    void	xsltSort			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    void	xsltText			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -
    void	xsltValueOf			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Description

    -

    Function: xslHandleDebugger

    void	xslHandleDebugger		(xmlNodePtr cur, 
    xmlNodePtr node,
    xsltTemplatePtr templ,
    xsltTransformContextPtr ctxt)
    -

    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

    -
    cur:source node being executed
    node:data node being processed
    templ:temlate that applies to node
    ctxt:the xslt transform context

    Function: xsltApplyImports

    void	xsltApplyImports		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process the xslt apply-imports node on the source node

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    inst:the xslt apply-imports node
    comp:precomputed information

    Function: xsltApplyOneTemplate

    void	xsltApplyOneTemplate		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr list,
    xsltTemplatePtr templ,
    xsltStackElemPtr params)
    -

    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 after return (they may be reused).

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    list:the template replacement nodelist
    templ:if is this a real template processing, the template processed
    params:a set of parameters for the template or NULL

    Function: xsltApplyStripSpaces

    void	xsltApplyStripSpaces		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node)
    -

    Strip the unwanted ignorable spaces from the input tree

    -
    ctxt:a XSLT process context
    node:the root of the XML tree

    Function: xsltApplyStylesheet

    xmlDocPtr	xsltApplyStylesheet	(xsltStylesheetPtr style, 
    xmlDocPtr doc,
    const char ** params)
    -

    Apply the stylesheet to the document NOTE: This may lead to a non-wellformed output XML wise !

    -
    style:a parsed XSLT stylesheet
    doc:a parsed XML document
    params:a NULL terminated arry of parameters names/values tuples
    Returns:the result document or NULL in case of error

    Function: xsltApplyStylesheetUser

    xmlDocPtr	xsltApplyStylesheetUser	(xsltStylesheetPtr style, 
    xmlDocPtr doc,
    const char ** params,
    const char * output,
    FILE * profile,
    xsltTransformContextPtr userCtxt)
    -

    Apply the stylesheet to the document and allow the user to provide its own transformation context.

    -
    style:a parsed XSLT stylesheet
    doc:a parsed XML document
    params:a NULL terminated array of parameters names/values tuples
    output:the targetted output
    profile:profile FILE * output or NULL
    userCtxt:user provided transform context
    Returns:the result document or NULL in case of error

    Function: xsltApplyTemplates

    void	xsltApplyTemplates		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process the apply-templates node on the source node

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    inst:the apply-templates node
    comp:precomputed information

    Function: xsltAttribute

    void	xsltAttribute			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process the xslt attribute node on the source node

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    inst:the xslt attribute node
    comp:precomputed information

    Function: xsltCallTemplate

    void	xsltCallTemplate		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process the xslt call-template node on the source node

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    inst:the xslt call-template node
    comp:precomputed information

    Function: xsltChoose

    void	xsltChoose			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process the xslt choose node on the source node

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    inst:the xslt choose node
    comp:precomputed information

    Function: xsltComment

    void	xsltComment			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process the xslt comment node on the source node

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    inst:the xslt comment node
    comp:precomputed information

    Function: xsltCopy

    void	xsltCopy			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process the xslt copy node on the source node

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    inst:the xslt copy node
    comp:precomputed information

    Function: xsltCopyOf

    void	xsltCopyOf			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process the xslt copy-of node on the source node

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    inst:the xslt copy-of node
    comp:precomputed information

    Function: xsltCopyTextString

    xmlNodePtr	xsltCopyTextString	(xsltTransformContextPtr ctxt, 
    xmlNodePtr target,
    const xmlChar * string,
    int noescape)
    -

    Create a text node

    -
    ctxt:a XSLT process context
    target:the element where the text will be attached
    string:the text string
    noescape:should disable-escaping be activated for this text node.
    Returns:a new xmlNodePtr, or NULL in case of error.

    Function: xsltDocumentElem

    void	xsltDocumentElem		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process an EXSLT/XSLT-1.1 document element

    -
    ctxt:an XSLT processing context
    node:The current node
    inst:the instruction in the stylesheet
    comp:precomputed information

    Function: xsltElement

    void	xsltElement			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process the xslt element node on the source node

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    inst:the xslt element node
    comp:precomputed information

    Function: xsltForEach

    void	xsltForEach			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process the xslt for-each node on the source node

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    inst:the xslt for-each node
    comp:precomputed information

    Function: xsltFreeTransformContext

    void	xsltFreeTransformContext	(xsltTransformContextPtr ctxt)
    -

    Free up the memory allocated by @ctxt

    -
    ctxt:an XSLT parser context

    Function: xsltGetXIncludeDefault

    int	xsltGetXIncludeDefault		(void)
    -

    Provides the default state for XInclude processing

    -
    Returns:0 if there is no processing 1 otherwise

    Function: xsltIf

    void	xsltIf			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process the xslt if node on the source node

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    inst:the xslt if node
    comp:precomputed information

    Function: xsltNewTransformContext

    xsltTransformContextPtr	xsltNewTransformContext	(xsltStylesheetPtr style, 
    xmlDocPtr doc)
    -

    Create a new XSLT TransformContext

    -
    style:a parsed XSLT stylesheet
    doc:the input document
    Returns:the newly allocated xsltTransformContextPtr or NULL in case of error

    Function: xsltNumber

    void	xsltNumber			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process the xslt number node on the source node

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    inst:the xslt number node
    comp:precomputed information

    Function: xsltProcessingInstruction

    void	xsltProcessingInstruction	(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process the xslt processing-instruction node on the source node

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    inst:the xslt processing-instruction node
    comp:precomputed information

    Function: xsltProfileStylesheet

    xmlDocPtr	xsltProfileStylesheet	(xsltStylesheetPtr style, 
    xmlDocPtr doc,
    const char ** params,
    FILE * output)
    -

    Apply the stylesheet to the document and dump the profiling to the given output.

    -
    style:a parsed XSLT stylesheet
    doc:a parsed XML document
    params:a NULL terminated arry of parameters names/values tuples
    output:a FILE * for the profiling output
    Returns:the result document or NULL in case of error

    Function: xsltRegisterAllElement

    void	xsltRegisterAllElement		(xsltTransformContextPtr ctxt)
    -

    Registers all default XSLT elements in this context

    -
    ctxt:the XPath context

    Function: xsltRunStylesheet

    int	xsltRunStylesheet		(xsltStylesheetPtr style, 
    xmlDocPtr doc,
    const char ** params,
    const char * output,
    xmlSAXHandlerPtr SAX,
    xmlOutputBufferPtr IObuf)
    -

    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

    -
    style:a parsed XSLT stylesheet
    doc:a parsed XML document
    params:a NULL terminated array of parameters names/values tuples
    output:the URL/filename ot the generated resource if available
    SAX:a SAX handler for progressive callback output (not implemented yet)
    IObuf:an output buffer for progressive output (not implemented yet)
    Returns:the number of bytes written to the main resource or -1 in case of error.

    Function: xsltRunStylesheetUser

    int	xsltRunStylesheetUser		(xsltStylesheetPtr style, 
    xmlDocPtr doc,
    const char ** params,
    const char * output,
    xmlSAXHandlerPtr SAX,
    xmlOutputBufferPtr IObuf,
    FILE * profile,
    xsltTransformContextPtr userCtxt)
    -

    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

    -
    style:a parsed XSLT stylesheet
    doc:a parsed XML document
    params:a NULL terminated array of parameters names/values tuples
    output:the URL/filename ot the generated resource if available
    SAX:a SAX handler for progressive callback output (not implemented yet)
    IObuf:an output buffer for progressive output (not implemented yet)
    profile:profile FILE * output or NULL
    userCtxt:user provided transform context
    Returns:the number of by written to the main resource or -1 in case of error.

    Function: xsltSetXIncludeDefault

    void	xsltSetXIncludeDefault		(int xinclude)
    -

    Set whether XInclude should be processed on document being loaded by default

    -
    xinclude:whether to do XInclude processing

    Function: xsltSort

    void	xsltSort			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    function attached to xsl:sort nodes, but this should not be called directly

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    inst:the xslt sort node
    comp:precomputed information

    Function: xsltText

    void	xsltText			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process the xslt text node on the source node

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    inst:the xslt text node
    comp:precomputed information

    Function: xsltValueOf

    void	xsltValueOf			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltStylePreCompPtr comp)
    -

    Process the xslt value-of node on the source node

    -
    ctxt:a XSLT process context
    node:the node in the source tree.
    inst:the xslt value-of node
    comp:precomputed information

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-variables.html b/src/tools/docbook/libxslt/doc/html/libxslt-variables.html deleted file mode 100644 index 9fd164a0bb..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-variables.html +++ /dev/null @@ -1,54 +0,0 @@ - - -Module variables from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module variables from libxslt

    API Menu
    Related links
    API Indexes

    interface for the variable matching and lookup.

    Table of Contents

    #define XSLT_REGISTER_VARIABLE_LOOKUP
    int	xsltAddStackElemList		(xsltTransformContextPtr ctxt, 
    xsltStackElemPtr elems)
    -
    int	xsltEvalGlobalVariables		(xsltTransformContextPtr ctxt)
    -
    int	xsltEvalOneUserParam		(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * value)
    -
    int	xsltEvalUserParams		(xsltTransformContextPtr ctxt, 
    const char ** params)
    -
    void	xsltFreeGlobalVariables		(xsltTransformContextPtr ctxt)
    -
    void	xsltParseGlobalParam		(xsltStylesheetPtr style, 
    xmlNodePtr cur)
    -
    void	xsltParseGlobalVariable		(xsltStylesheetPtr style, 
    xmlNodePtr cur)
    -
    xsltStackElemPtr	xsltParseStylesheetCallerParam	(xsltTransformContextPtr ctxt, 
    xmlNodePtr cur)
    -
    void	xsltParseStylesheetParam	(xsltTransformContextPtr ctxt, 
    xmlNodePtr cur)
    -
    void	xsltParseStylesheetVariable	(xsltTransformContextPtr ctxt, 
    xmlNodePtr cur)
    -
    int	xsltQuoteOneUserParam		(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * value)
    -
    int	xsltQuoteUserParams		(xsltTransformContextPtr ctxt, 
    const char ** params)
    -
    xmlXPathObjectPtr	xsltVariableLookup	(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri)
    -
    xmlXPathObjectPtr	xsltXPathVariableLookup	(void * ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri)
    -

    Description

    -

    Macro: XSLT_REGISTER_VARIABLE_LOOKUP

    #define XSLT_REGISTER_VARIABLE_LOOKUP

    Registering macro, not general purpose at all but used in different modules.

    -

    Function: xsltAddStackElemList

    int	xsltAddStackElemList		(xsltTransformContextPtr ctxt, 
    xsltStackElemPtr elems)
    -

    add the new element list at this level of the stack.

    -
    ctxt:xn XSLT transformation context
    elems:a stack element list
    Returns:0 in case of success, -1 in case of failure.

    Function: xsltEvalGlobalVariables

    int	xsltEvalGlobalVariables		(xsltTransformContextPtr ctxt)
    -

    Evaluate the global variables of a stylesheet. This need to be done on parsed stylesheets before starting to apply transformations

    -
    ctxt:the XSLT transformation context
    Returns:0 in case of success, -1 in case of error

    Function: xsltEvalOneUserParam

    int	xsltEvalOneUserParam		(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * value)
    -

    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.

    -
    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
    Returns:0 in case of success, -1 in case of error.

    Function: xsltEvalUserParams

    int	xsltEvalUserParams		(xsltTransformContextPtr ctxt, 
    const char ** params)
    -

    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.

    -
    ctxt:the XSLT transformation context
    params:a NULL terminated array of parameters name/value tuples
    Returns:0 in case of success, -1 in case of error

    Function: xsltFreeGlobalVariables

    void	xsltFreeGlobalVariables		(xsltTransformContextPtr ctxt)
    -

    Free up the data associated to the global variables its value.

    -
    ctxt:the XSLT transformation context

    Function: xsltParseGlobalParam

    void	xsltParseGlobalParam		(xsltStylesheetPtr style, 
    xmlNodePtr cur)
    -

    parse an XSLT transformation param declaration and record its value.

    -
    style:the XSLT stylesheet
    cur:the "param" element

    Function: xsltParseGlobalVariable

    void	xsltParseGlobalVariable		(xsltStylesheetPtr style, 
    xmlNodePtr cur)
    -

    parse an XSLT transformation variable declaration and record its value.

    -
    style:the XSLT stylesheet
    cur:the "variable" element

    Function: xsltParseStylesheetCallerParam

    xsltStackElemPtr	xsltParseStylesheetCallerParam	(xsltTransformContextPtr ctxt, 
    xmlNodePtr cur)
    -

    parse an XSLT transformation param declaration, compute its value but doesn't record it.

    -
    ctxt:the XSLT transformation context
    cur:the "param" element
    Returns:the new xsltStackElemPtr or NULL

    Function: xsltParseStylesheetParam

    void	xsltParseStylesheetParam	(xsltTransformContextPtr ctxt, 
    xmlNodePtr cur)
    -

    parse an XSLT transformation param declaration and record its value.

    -
    ctxt:the XSLT transformation context
    cur:the "param" element

    Function: xsltParseStylesheetVariable

    void	xsltParseStylesheetVariable	(xsltTransformContextPtr ctxt, 
    xmlNodePtr cur)
    -

    parse an XSLT transformation variable declaration and record its value.

    -
    ctxt:the XSLT transformation context
    cur:the "variable" element

    Function: xsltQuoteOneUserParam

    int	xsltQuoteOneUserParam		(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * 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.

    -
    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
    Returns:0 in case of success, -1 in case of error.

    Function: xsltQuoteUserParams

    int	xsltQuoteUserParams		(xsltTransformContextPtr ctxt, 
    const char ** params)
    -

    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.

    -
    ctxt:the XSLT transformation context
    params:a NULL terminated arry of parameters names/values tuples
    Returns:0 in case of success, -1 in case of error.

    Function: xsltVariableLookup

    xmlXPathObjectPtr	xsltVariableLookup	(xsltTransformContextPtr ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri)
    -

    Search in the Variable array of the context for the given variable value.

    -
    ctxt:the XSLT transformation context
    name:the variable name
    ns_uri:the variable namespace URI
    Returns:the value or NULL if not found

    Function: xsltXPathVariableLookup

    xmlXPathObjectPtr	xsltXPathVariableLookup	(void * ctxt, 
    const xmlChar * name,
    const xmlChar * ns_uri)
    -

    This is the entry point when a varibale is needed by the XPath interpretor.

    -
    ctxt:a void * but the the XSLT transformation context actually
    name:the variable name
    ns_uri:the variable namespace URI
    Returns:the value or NULL if not found

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-xslt.html b/src/tools/docbook/libxslt/doc/html/libxslt-xslt.html deleted file mode 100644 index 32632d834b..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-xslt.html +++ /dev/null @@ -1,19 +0,0 @@ - - -Module xslt from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module xslt from libxslt

    API Menu
    Related links
    API Indexes

    Interfaces, constants and types related to the XSLT engine

    Table of Contents

    #define XSLT_DEFAULT_URL
    #define XSLT_DEFAULT_VENDOR
    #define XSLT_DEFAULT_VERSION
    #define XSLT_NAMESPACE
    #define XSLT_PARSE_OPTIONS
    void	xsltCleanupGlobals		(void)
    -

    Description

    -

    Macro: XSLT_DEFAULT_URL

    #define XSLT_DEFAULT_URL

    The XSLT "vendor" URL for this processor.

    -

    Macro: XSLT_DEFAULT_VENDOR

    #define XSLT_DEFAULT_VENDOR

    The XSLT "vendor" string for this processor.

    -

    Macro: XSLT_DEFAULT_VERSION

    #define XSLT_DEFAULT_VERSION

    The default version of XSLT supported.

    -

    Macro: XSLT_NAMESPACE

    #define XSLT_NAMESPACE

    The XSLT specification namespace.

    -

    Macro: XSLT_PARSE_OPTIONS

    #define XSLT_PARSE_OPTIONS

    The set of options to pass to an xmlReadxxx when loading files for XSLT consumption.

    -

    Function: xsltCleanupGlobals

    void	xsltCleanupGlobals		(void)
    -

    Unregister all global variables set up by the XSLT library

    -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-xsltInternals.html b/src/tools/docbook/libxslt/doc/html/libxslt-xsltInternals.html deleted file mode 100644 index c2fc860fb6..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-xsltInternals.html +++ /dev/null @@ -1,357 +0,0 @@ - - -Module xsltInternals from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module xsltInternals from libxslt

    API Menu
    Related links
    API Indexes

    Internal data structures, constants and functions used by the XSLT engine. They are not part of the API or ABI, i.e. they can change without prior notice, use carefully.

    Table of Contents

    #define CHECK_STOPPED
    #define CHECK_STOPPED0
    #define CHECK_STOPPEDE
    #define XML_CAST_FPTR
    #define XSLT_MAX_SORT
    #define XSLT_PAT_NO_PRIORITY
    #define XSLT_RUNTIME_EXTRA
    #define XSLT_RUNTIME_EXTRA_FREE
    #define XSLT_RUNTIME_EXTRA_LST
    Structure xsltDecimalFormat
    struct _xsltDecimalFormat -
    Typedef xsltDecimalFormat * xsltDecimalFormatPtr
    -
    Structure xsltDocument
    struct _xsltDocument -
    Typedef xsltDocument * xsltDocumentPtr
    -
    Structure xsltElemPreComp
    struct _xsltElemPreComp -
    Typedef xsltElemPreComp * xsltElemPreCompPtr
    -
    Enum xsltOutputType
    -
    Structure xsltRuntimeExtra
    struct _xsltRuntimeExtra -
    Typedef xsltRuntimeExtra * xsltRuntimeExtraPtr
    -
    Structure xsltStackElem
    struct _xsltStackElem -
    Typedef xsltStackElem * xsltStackElemPtr
    -
    Structure xsltStylePreComp
    struct _xsltStylePreComp -
    Typedef xsltStylePreComp * xsltStylePreCompPtr
    -
    Enum xsltStyleType
    -
    Structure xsltStylesheet
    struct _xsltStylesheet -
    Typedef xsltStylesheet * xsltStylesheetPtr
    -
    Structure xsltTemplate
    struct _xsltTemplate -
    Typedef xsltTemplate * xsltTemplatePtr
    -
    Structure xsltTransformContext
    struct _xsltTransformContext -
    Typedef xsltTransformContext * xsltTransformContextPtr
    -
    Enum xsltTransformState
    -
    int	xsltAllocateExtra		(xsltStylesheetPtr style)
    -
    int	xsltAllocateExtraCtxt		(xsltTransformContextPtr ctxt)
    -
    void	xsltCompileAttr			(xsltStylesheetPtr style, 
    xmlAttrPtr attr)
    -
    xmlDocPtr	xsltCreateRVT		(xsltTransformContextPtr ctxt)
    -
    xsltDecimalFormatPtr	xsltDecimalFormatGetByName	(xsltStylesheetPtr sheet, 
    xmlChar * name)
    -
    Function type: xsltElemPreCompDeallocator
    -void	xsltElemPreCompDeallocator	(xsltElemPreCompPtr comp)
    -
    -
    xmlChar *	xsltEvalAVT		(xsltTransformContextPtr ctxt, 
    void * avt,
    xmlNodePtr node)
    -
    xmlXPathError	xsltFormatNumberConversion	(xsltDecimalFormatPtr self, 
    xmlChar * format,
    double number,
    xmlChar ** result)
    -
    void	xsltFreeAVTList			(void * avt)
    -
    void	xsltFreeRVTs			(xsltTransformContextPtr ctxt)
    -
    void	xsltFreeStackElemList		(xsltStackElemPtr elem)
    -
    void	xsltFreeStylesheet		(xsltStylesheetPtr sheet)
    -
    int	xsltIsBlank			(xmlChar * str)
    -
    xsltStylesheetPtr	xsltLoadStylesheetPI	(xmlDocPtr doc)
    -
    xsltStylesheetPtr	xsltNewStylesheet	(void)
    -
    void	xsltNumberFormat		(xsltTransformContextPtr ctxt, 
    xsltNumberDataPtr data,
    xmlNodePtr node)
    -
    xsltStylesheetPtr	xsltParseStylesheetDoc	(xmlDocPtr doc)
    -
    xsltStylesheetPtr	xsltParseStylesheetFile	(const xmlChar * filename)
    -
    xsltStylesheetPtr	xsltParseStylesheetImportedDoc	(xmlDocPtr doc, 
    xsltStylesheetPtr style)
    -
    void	xsltParseStylesheetOutput	(xsltStylesheetPtr style, 
    xmlNodePtr cur)
    -
    xsltStylesheetPtr	xsltParseStylesheetProcess	(xsltStylesheetPtr ret, 
    xmlDocPtr doc)
    -
    void	xsltParseTemplateContent	(xsltStylesheetPtr style, 
    xmlNodePtr templ)
    -
    int	xsltRegisterPersistRVT		(xsltTransformContextPtr ctxt, 
    xmlDocPtr RVT)
    -
    int	xsltRegisterTmpRVT		(xsltTransformContextPtr ctxt, 
    xmlDocPtr RVT)
    -
    Function type: xsltSortFunc
    -void	xsltSortFunc			(xsltTransformContextPtr ctxt, 
    xmlNodePtr * sorts,
    int nbsorts) -
    -
    Function type: xsltTransformFunction
    -void	xsltTransformFunction		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltElemPreCompPtr comp) -
    -

    Description

    -

    Macro: CHECK_STOPPED

    #define CHECK_STOPPED

    Macro to check if the XSLT processing should be stopped. Will return from the function.

    -

    Macro: CHECK_STOPPED0

    #define CHECK_STOPPED0

    Macro to check if the XSLT processing should be stopped. Will return from the function with a 0 value.

    -

    Macro: CHECK_STOPPEDE

    #define CHECK_STOPPEDE

    Macro to check if the XSLT processing should be stopped. Will goto the error: label.

    -

    Macro: XML_CAST_FPTR

    #define XML_CAST_FPTR

    Macro to do a casting from an object pointer to a function pointer without encountering a warning from gcc #define XML_CAST_FPTR(fptr) (*(void **)(&fptr)) This macro violated ISO C aliasing rules (gcc4 on s390 broke) so it is disabled now

    -

    Macro: XSLT_MAX_SORT

    #define XSLT_MAX_SORT

    Max number of specified xsl:sort on an element.

    -

    Macro: XSLT_PAT_NO_PRIORITY

    #define XSLT_PAT_NO_PRIORITY

    Specific value for pattern without priority expressed.

    -

    Macro: XSLT_RUNTIME_EXTRA

    #define XSLT_RUNTIME_EXTRA

    Macro used to define extra information stored in the context

    -

    Macro: XSLT_RUNTIME_EXTRA_FREE

    #define XSLT_RUNTIME_EXTRA_FREE

    Macro used to free extra information stored in the context

    -

    Macro: XSLT_RUNTIME_EXTRA_LST

    #define XSLT_RUNTIME_EXTRA_LST

    Macro used to access extra information stored in the context

    -

    Structure xsltDecimalFormat

    Structure xsltDecimalFormat
    struct _xsltDecimalFormat { - struct _xsltDecimalFormat * next : chained list - xmlChar * name : Used for interpretation of pattern - xmlChar * digit - xmlChar * patternSeparator : May appear in result - xmlChar * minusSign - xmlChar * infinity - xmlChar * noNumber : Not-a-number Used for interpretation of - xmlChar * decimalPoint - xmlChar * grouping - xmlChar * percent - xmlChar * permille - xmlChar * zeroDigit -}

    Structure xsltDocument

    Structure xsltDocument
    struct _xsltDocument { - struct _xsltDocument * next : documents are kept in a chained list - int main : is this the main document - xmlDocPtr doc : the parsed document - void * keys : key tables storage - struct _xsltDocument * includes : subsidiary includes - int preproc : pre-processing already done -}

    Structure xsltElemPreComp

    Structure xsltElemPreComp
    struct _xsltElemPreComp { - xsltElemPreCompPtr next : chained list - xsltStyleType type : type of the element - xsltTransformFunction func : handling function - xmlNodePtr inst : the instruction end of common part - xsltElemPreCompDeallocator free : the deallocator -}

    Enum xsltOutputType

    Enum xsltOutputType {
    -    XSLT_OUTPUT_XML = 0
    -    XSLT_OUTPUT_HTML = 1
    -    XSLT_OUTPUT_TEXT = 2
    -}
    -

    Structure xsltRuntimeExtra

    Structure xsltRuntimeExtra
    struct _xsltRuntimeExtra { - void * info : pointer to the extra data - xmlFreeFunc deallocate : pointer to the deallocation routine -}

    Structure xsltStackElem

    Structure xsltStackElem
    struct _xsltStackElem { - struct _xsltStackElem * next : chained list - xsltStylePreCompPtr comp : the compiled form - int computed : was the evaluation done - const xmlChar * name : the local part of the name QName - const xmlChar * nameURI : the URI part of the name QName - const xmlChar * select : the eval string - xmlNodePtr tree : the tree if no eval string or the locat - xmlXPathObjectPtr value : The value if computed -}

    Structure xsltStylePreComp

    Structure xsltStylePreComp
    struct _xsltStylePreComp { - xsltElemPreCompPtr next : chained list - xsltStyleType type : type of the element - xsltTransformFunction func : handling function - xmlNodePtr inst : * Pre computed values. * - const xmlChar * stype : sort - int has_stype : sort - int number : sort - const xmlChar * order : sort - int has_order : sort - int descending : sort - const xmlChar * lang : sort - int has_lang : sort - const xmlChar * case_order : sort - int lower_first : sort - const xmlChar * use : copy, element - int has_use : copy, element - int noescape : text - const xmlChar * name : element, attribute, pi - int has_name : element, attribute, pi - const xmlChar * ns : element - int has_ns : element - const xmlChar * mode : apply-templates - const xmlChar * modeURI : apply-templates - const xmlChar * test : if - xsltTemplatePtr templ : call-template - const xmlChar * select : sort, copy-of, value-of, apply-template - int ver11 : document - const xmlChar * filename : document URL - int has_filename : document - xsltNumberData numdata : number - xmlXPathCompExprPtr comp : a precompiled XPath expression - xmlNsPtr * nsList : the namespaces in scope - int nsNr : the number of namespaces in scope -}

    Enum xsltStyleType

    Enum xsltStyleType {
    -    XSLT_FUNC_COPY = 1
    -    XSLT_FUNC_SORT = 2
    -    XSLT_FUNC_TEXT = 3
    -    XSLT_FUNC_ELEMENT = 4
    -    XSLT_FUNC_ATTRIBUTE = 5
    -    XSLT_FUNC_COMMENT = 6
    -    XSLT_FUNC_PI = 7
    -    XSLT_FUNC_COPYOF = 8
    -    XSLT_FUNC_VALUEOF = 9
    -    XSLT_FUNC_NUMBER = 10
    -    XSLT_FUNC_APPLYIMPORTS = 11
    -    XSLT_FUNC_CALLTEMPLATE = 12
    -    XSLT_FUNC_APPLYTEMPLATES = 13
    -    XSLT_FUNC_CHOOSE = 14
    -    XSLT_FUNC_IF = 15
    -    XSLT_FUNC_FOREACH = 16
    -    XSLT_FUNC_DOCUMENT = 17
    -    XSLT_FUNC_WITHPARAM = 18
    -    XSLT_FUNC_PARAM = 19
    -    XSLT_FUNC_VARIABLE = 20
    -    XSLT_FUNC_WHEN = 21
    -    XSLT_FUNC_EXTENSION = 22
    -}
    -

    Structure xsltStylesheet

    Structure xsltStylesheet
    struct _xsltStylesheet { - struct _xsltStylesheet * parent - struct _xsltStylesheet * next - struct _xsltStylesheet * imports - xsltDocumentPtr docList : * General data on the style sheet docume - xmlDocPtr doc : the parsed XML stylesheet - xmlHashTablePtr stripSpaces : the hash table of the strip-space and p - int stripAll : strip-space * (1) preserve-space * (-1) - xmlHashTablePtr cdataSection : * Global variable or parameters. * - xsltStackElemPtr variables : * Template descriptions. * - xsltTemplatePtr templates : the ordered list of templates - void * templatesHash : hash table or wherever compiled templat - void * rootMatch : template based on / - void * keyMatch : template based on key() - void * elemMatch : template based on * - void * attrMatch : template based on @* - void * parentMatch : template based on .. - void * textMatch : template based on text() - void * piMatch : template based on processing-instructio - void * commentMatch : * Namespace aliases. * - xmlHashTablePtr nsAliases : * Attribute sets. * - xmlHashTablePtr attributeSets : * Namespaces. * - xmlHashTablePtr nsHash : the set of namespaces in use - void * nsDefs : * Key definitions. * - void * keys : * Output related stuff. * - xmlChar * method : the output method - xmlChar * methodURI : associated namespace if any - xmlChar * version : version string - xmlChar * encoding : encoding string - int omitXmlDeclaration : * Number formatting. * - xsltDecimalFormatPtr decimalFormat - int standalone : standalone = "yes" | "no" - xmlChar * doctypePublic : doctype-public string - xmlChar * doctypeSystem : doctype-system string - int indent : should output being indented - xmlChar * mediaType : * Precomputed blocks. * - xsltElemPreCompPtr preComps : list of precomputed blocks - int warnings : number of warnings found at compilation - int errors : number of errors found at compilation - xmlChar * exclPrefix : last excluded prefixes - xmlChar ** exclPrefixTab : array of excluded prefixes - int exclPrefixNr : number of excluded prefixes in scope - int exclPrefixMax : size of the array - void * _private : * Extensions. * - xmlHashTablePtr extInfos : the extension data - int extrasNr : * For keeping track of nested includes * - xsltDocumentPtr includes : * dictionnary: shared between stylesheet - xmlDictPtr dict : * precompiled attribute value templates. - void * attVTs : * if namespace-alias has an alias for th - const xmlChar * defaultAlias : * bypass pre-processing (already done) ( - int nopreproc : * all document text strings were interna - int internalized : * Literal Result Element as Stylesheet c - int literal_result -}

    Structure xsltTemplate

    Structure xsltTemplate
    struct _xsltTemplate { - struct _xsltTemplate * next : chained list sorted by priority - struct _xsltStylesheet * style : the containing stylesheet - xmlChar * match : the matching string - float priority : as given from the stylesheet, not compu - xmlChar * name : the local part of the name QName - xmlChar * nameURI : the URI part of the name QName - const xmlChar * mode : the local part of the mode QName - const xmlChar * modeURI : the URI part of the mode QName - xmlNodePtr content : the template replacement value - xmlNodePtr elem : the source element - int inheritedNsNr : number of inherited namespaces - xmlNsPtr * inheritedNs : inherited non-excluded namespaces Profi - int nbCalls : the number of time the template was cal - unsigned long time : the time spent in this template -}

    Structure xsltTransformContext

    Structure xsltTransformContext
    struct _xsltTransformContext { - xsltStylesheetPtr style : the stylesheet used - xsltOutputType type : the type of output - xsltTemplatePtr templ : the current template - int templNr : Nb of templates in the stack - int templMax : Size of the templtes stack - xsltTemplatePtr * templTab : the template stack - xsltStackElemPtr vars : the current variable list - int varsNr : Nb of variable list in the stack - int varsMax : Size of the variable list stack - xsltStackElemPtr * varsTab : the variable list stack - int varsBase : * Extensions * - xmlHashTablePtr extFunctions : the extension functions - xmlHashTablePtr extElements : the extension elements - xmlHashTablePtr extInfos : the extension data - const xmlChar * mode : the current mode - const xmlChar * modeURI : the current mode URI - xsltDocumentPtr docList : the document list - xsltDocumentPtr document : the current document - xmlNodePtr node : the current node being processed - xmlNodeSetPtr nodeList : the current node list xmlNodePtr curren - xmlDocPtr output : the resulting document - xmlNodePtr insert : the insertion node - xmlXPathContextPtr xpathCtxt : the XPath context - xsltTransformState state : * Global variables * - xmlHashTablePtr globalVars : the global variables and params - xmlNodePtr inst : the instruction in the stylesheet - int xinclude : should XInclude be processed - const char * outputFile : the output URI if known - int profile : is this run profiled - long prof : the current profiled value - int profNr : Nb of templates in the stack - int profMax : Size of the templtaes stack - long * profTab : the profile template stack - void * _private : user defined data - int extrasNr : the number of extras used - int extrasMax : the number of extras allocated - xsltRuntimeExtraPtr extras : extra per runtime informations - xsltDocumentPtr styleList : the stylesheet docs list - void * sec : the security preferences if any - xmlGenericErrorFunc error : a specific error handler - void * errctx : context for the error handler - xsltSortFunc sortfunc : * handling of temporary Result Value Tre - xmlDocPtr tmpRVT : list of RVT without persistance - xmlDocPtr persistRVT : list of persistant RVTs - int ctxtflags : * Speed optimization when coalescing tex - const xmlChar * lasttext : last text node content - unsigned int lasttsize : last text node size - unsigned int lasttuse : * Per Context Debugging * - int debugStatus : the context level debug status - unsigned long * traceCode : pointer to the variable holding the mas - int parserOptions : * dictionnary: shared between stylesheet - xmlDictPtr dict : * temporary storage for doc ptr, current - xmlDocPtr tmpDoc : * all document text strings are internal - int internalized -}

    Enum xsltTransformState

    Enum xsltTransformState {
    -    XSLT_STATE_OK = 0
    -    XSLT_STATE_ERROR = 1
    -    XSLT_STATE_STOPPED = 2
    -}
    -

    Function: xsltAllocateExtra

    int	xsltAllocateExtra		(xsltStylesheetPtr style)
    -

    Allocate an extra runtime information slot statically while compiling the stylesheet and return its number

    -
    style:an XSLT stylesheet
    Returns:the number of the slot

    Function: xsltAllocateExtraCtxt

    int	xsltAllocateExtraCtxt		(xsltTransformContextPtr ctxt)
    -

    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

    -
    ctxt:an XSLT transformation context
    Returns:the number of the slot

    Function: xsltCompileAttr

    void	xsltCompileAttr			(xsltStylesheetPtr style, 
    xmlAttrPtr attr)
    -

    Precompile an attribute in a stylesheet, basically it checks if it is an attrubute value template, and if yes establish some structures needed to process it at transformation time.

    -
    style:a XSLT process context
    attr:the attribute coming from the stylesheet.

    Function: xsltCreateRVT

    xmlDocPtr	xsltCreateRVT		(xsltTransformContextPtr ctxt)
    -

    Create a result value tree

    -
    ctxt:an XSLT transformation context
    Returns:the result value tree or NULL in case of error

    Function: xsltDecimalFormatGetByName

    xsltDecimalFormatPtr	xsltDecimalFormatGetByName	(xsltStylesheetPtr sheet, 
    xmlChar * name)
    -

    Find decimal-format by name

    -
    sheet:the XSLT stylesheet
    name:the decimal-format name to find
    Returns:the xsltDecimalFormatPtr

    Function type: xsltElemPreCompDeallocator

    Function type: xsltElemPreCompDeallocator
    -void	xsltElemPreCompDeallocator	(xsltElemPreCompPtr comp)
    -

    Deallocates an #xsltElemPreComp structure.

    comp:the #xsltElemPreComp to free up

    -

    Function: xsltEvalAVT

    xmlChar *	xsltEvalAVT		(xsltTransformContextPtr ctxt, 
    void * avt,
    xmlNodePtr node)
    -

    Process the given AVT, and return the new string value.

    -
    ctxt:the XSLT transformation context
    avt:the prevompiled attribute value template info
    node:the node hosting the attribute
    Returns:the computed string value or NULL, must be deallocated by the caller.

    Function: xsltFormatNumberConversion

    xmlXPathError	xsltFormatNumberConversion	(xsltDecimalFormatPtr self, 
    xmlChar * format,
    double number,
    xmlChar ** result)
    -

    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.

    -
    self:the decimal format
    format:the format requested
    number:the value to format
    result:the place to ouput the result
    Returns:a possible XPath error

    Function: xsltFreeAVTList

    void	xsltFreeAVTList			(void * avt)
    -

    Free up the memory associated to the attribute value templates

    -
    avt:pointer to an list of AVT structures

    Function: xsltFreeRVTs

    void	xsltFreeRVTs			(xsltTransformContextPtr ctxt)
    -

    Free all the registered result value tree of the transformation

    -
    ctxt:an XSLT transformation context

    Function: xsltFreeStackElemList

    void	xsltFreeStackElemList		(xsltStackElemPtr elem)
    -

    Free up the memory allocated by @elem

    -
    elem:an XSLT stack element

    Function: xsltFreeStylesheet

    void	xsltFreeStylesheet		(xsltStylesheetPtr sheet)
    -

    Free up the memory allocated by @sheet

    -
    sheet:an XSLT stylesheet

    Function: xsltIsBlank

    int	xsltIsBlank			(xmlChar * str)
    -

    Check if a string is ignorable

    -
    str:a string
    Returns:1 if the string is NULL or made of blanks chars, 0 otherwise

    Function: xsltLoadStylesheetPI

    xsltStylesheetPtr	xsltLoadStylesheetPI	(xmlDocPtr doc)
    -

    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.

    -
    doc:a document to process
    Returns:a new XSLT stylesheet structure or NULL if not found.

    Function: xsltNewStylesheet

    xsltStylesheetPtr	xsltNewStylesheet	(void)
    -

    Create a new XSLT Stylesheet

    -
    Returns:the newly allocated xsltStylesheetPtr or NULL in case of error

    Function: xsltNumberFormat

    void	xsltNumberFormat		(xsltTransformContextPtr ctxt, 
    xsltNumberDataPtr data,
    xmlNodePtr node)
    -

    Convert one number.

    -
    ctxt:the XSLT transformation context
    data:the formatting informations
    node:the data to format

    Function: xsltParseStylesheetDoc

    xsltStylesheetPtr	xsltParseStylesheetDoc	(xmlDocPtr doc)
    -

    parse an XSLT stylesheet building the associated structures

    -
    doc:and xmlDoc parsed XML
    Returns:a new XSLT stylesheet structure.

    Function: xsltParseStylesheetFile

    xsltStylesheetPtr	xsltParseStylesheetFile	(const xmlChar * filename)
    -

    Load and parse an XSLT stylesheet

    -
    filename:the filename/URL to the stylesheet
    Returns:a new XSLT stylesheet structure.

    Function: xsltParseStylesheetImportedDoc

    xsltStylesheetPtr	xsltParseStylesheetImportedDoc	(xmlDocPtr doc, 
    xsltStylesheetPtr style)
    -

    parse an XSLT stylesheet building the associated structures except the processing not needed for imported documents.

    -
    doc:an xmlDoc parsed XML
    style:pointer to parent stylesheet
    Returns:a new XSLT stylesheet structure.

    Function: xsltParseStylesheetOutput

    void	xsltParseStylesheetOutput	(xsltStylesheetPtr style, 
    xmlNodePtr cur)
    -

    parse an XSLT stylesheet output element and record information related to the stylesheet output

    -
    style:the XSLT stylesheet
    cur:the "output" element

    Function: xsltParseStylesheetProcess

    xsltStylesheetPtr	xsltParseStylesheetProcess	(xsltStylesheetPtr ret, 
    xmlDocPtr doc)
    -

    parse an XSLT stylesheet adding the associated structures

    -
    ret:the XSLT stylesheet
    doc:and xmlDoc parsed XML
    Returns:the value of the 'ret' parameter if everything went right, NULL if something went amiss.

    Function: xsltParseTemplateContent

    void	xsltParseTemplateContent	(xsltStylesheetPtr style, 
    xmlNodePtr templ)
    -

    parse a template content-model Clean-up the template content from unwanted ignorable blank nodes and process xslt:text

    -
    style:the XSLT stylesheet
    templ:the container node (can be a document for literal results)

    Function: xsltRegisterPersistRVT

    int	xsltRegisterPersistRVT		(xsltTransformContextPtr ctxt, 
    xmlDocPtr RVT)
    -

    Register the result value tree for destruction at the end of the processing

    -
    ctxt:an XSLT transformation context
    RVT:a result value tree
    Returns:0 in case of success and -1 in case of error.

    Function: xsltRegisterTmpRVT

    int	xsltRegisterTmpRVT		(xsltTransformContextPtr ctxt, 
    xmlDocPtr RVT)
    -

    Register the result value tree for destruction at the end of the context

    -
    ctxt:an XSLT transformation context
    RVT:a result value tree
    Returns:0 in case of success and -1 in case of error.

    Function type: xsltSortFunc

    Function type: xsltSortFunc
    -void	xsltSortFunc			(xsltTransformContextPtr ctxt, 
    xmlNodePtr * sorts,
    int nbsorts) -

    Signature of the function to use during sorting

    ctxt:a transformation context
    sorts:the node-set to sort
    nbsorts:the number of sorts

    -

    Function type: xsltTransformFunction

    Function type: xsltTransformFunction
    -void	xsltTransformFunction		(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst,
    xsltElemPreCompPtr comp) -

    Signature of the function associated to elements part of the stylesheet language like xsl:if or xsl:apply-templates.

    ctxt:the XSLT transformation context
    node:the input node
    inst:the stylesheet node
    comp:the compiled information from the stylesheet

    -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-xsltexports.html b/src/tools/docbook/libxslt/doc/html/libxslt-xsltexports.html deleted file mode 100644 index aba0bae5d1..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-xsltexports.html +++ /dev/null @@ -1,16 +0,0 @@ - - -Module xsltexports from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module xsltexports from libxslt

    API Menu
    Related links
    API Indexes

    macros for marking symbols as exportable/importable.

    Table of Contents

    #define LIBXSLT_PUBLIC
    #define XSLTCALL
    #define XSLTPUBFUN
    #define XSLTPUBVAR
    #define _REENTRANT

    Description

    -

    Macro: LIBXSLT_PUBLIC

    #define LIBXSLT_PUBLIC

    -

    Macro: XSLTCALL

    #define XSLTCALL

    -

    Macro: XSLTPUBFUN

    #define XSLTPUBFUN

    -

    Macro: XSLTPUBVAR

    #define XSLTPUBVAR

    -

    Macro: _REENTRANT

    #define _REENTRANT

    -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/libxslt-xsltutils.html b/src/tools/docbook/libxslt/doc/html/libxslt-xsltutils.html deleted file mode 100644 index c322cb9752..0000000000 --- a/src/tools/docbook/libxslt/doc/html/libxslt-xsltutils.html +++ /dev/null @@ -1,179 +0,0 @@ - - -Module xsltutils from libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Module xsltutils from libxslt

    API Menu
    Related links
    API Indexes

    interfaces for the utilities module of the XSLT engine. things like message handling, profiling, and other generally useful routines.

    Table of Contents

    #define IS_XSLT_ELEM
    #define IS_XSLT_NAME
    #define IS_XSLT_REAL_NODE
    #define XSLT_STRANGE
    #define XSLT_TIMESTAMP_TICS_PER_SEC
    #define XSLT_TODO
    #define XSLT_TRACE
    Enum xsltDebugStatusCodes
    -
    Enum xsltDebugTraceCodes
    -
    int	xslAddCall			(xsltTemplatePtr templ, 
    xmlNodePtr source)
    -
    void	xslDropCall			(void)
    -
    Function type: xsltAddCallCallback
    -int	xsltAddCallCallback		(xsltTemplatePtr templ, 
    xmlNodePtr source) -
    -
    void	xsltCalibrateAdjust		(long delta)
    -
    xmlXPathObjectPtr *	xsltComputeSortResult	(xsltTransformContextPtr ctxt, 
    xmlNodePtr sort)
    -
    xsltDebugTraceCodes	xsltDebugGetDefaultTrace	(void)
    -
    void	xsltDebugSetDefaultTrace	(xsltDebugTraceCodes val)
    -
    void	xsltDefaultSortFunction		(xsltTransformContextPtr ctxt, 
    xmlNodePtr * sorts,
    int nbsorts)
    -
    void	xsltDoSortFunction		(xsltTransformContextPtr ctxt, 
    xmlNodePtr * sorts,
    int nbsorts)
    -
    void	xsltDocumentSortFunction	(xmlNodeSetPtr list)
    -
    Function type: xsltDropCallCallback
    -void	xsltDropCallCallback		(void)
    -
    -
    const xmlChar *	xsltGetCNsProp		(xsltStylesheetPtr style, 
    xmlNodePtr node,
    const xmlChar * name,
    const xmlChar * nameSpace)
    -
    int	xsltGetDebuggerStatus		(void)
    -
    xmlChar *	xsltGetNsProp		(xmlNodePtr node, 
    const xmlChar * name,
    const xmlChar * nameSpace)
    -
    xmlDocPtr	xsltGetProfileInformation	(xsltTransformContextPtr ctxt)
    -
    const xmlChar *	xsltGetQNameURI		(xmlNodePtr node, 
    xmlChar ** name)
    -
    const xmlChar *	xsltGetQNameURI2	(xsltStylesheetPtr style, 
    xmlNodePtr node,
    const xmlChar ** name)
    -
    int	xsltGetUTF8Char			(const unsigned char * utf, 
    int * len)
    -
    Function type: xsltHandleDebuggerCallback
    -void	xsltHandleDebuggerCallback	(xmlNodePtr cur, 
    xmlNodePtr node,
    xsltTemplatePtr templ,
    xsltTransformContextPtr ctxt) -
    -
    void	xsltMessage			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst)
    -
    void	xsltPrintErrorContext		(xsltTransformContextPtr ctxt, 
    xsltStylesheetPtr style,
    xmlNodePtr node)
    -
    void	xsltSaveProfiling		(xsltTransformContextPtr ctxt, 
    FILE * output)
    -
    int	xsltSaveResultTo		(xmlOutputBufferPtr buf, 
    xmlDocPtr result,
    xsltStylesheetPtr style)
    -
    int	xsltSaveResultToFd		(int fd, 
    xmlDocPtr result,
    xsltStylesheetPtr style)
    -
    int	xsltSaveResultToFile		(FILE * file, 
    xmlDocPtr result,
    xsltStylesheetPtr style)
    -
    int	xsltSaveResultToFilename	(const char * URL, 
    xmlDocPtr result,
    xsltStylesheetPtr style,
    int compression)
    -
    int	xsltSaveResultToString		(xmlChar ** doc_txt_ptr, 
    int * doc_txt_len,
    xmlDocPtr result,
    xsltStylesheetPtr style)
    -
    int	xsltSetCtxtParseOptions		(xsltTransformContextPtr ctxt, 
    int options)
    -
    void	xsltSetCtxtSortFunc		(xsltTransformContextPtr ctxt, 
    xsltSortFunc handler)
    -
    int	xsltSetDebuggerCallbacks	(int no, 
    void * block)
    -
    void	xsltSetDebuggerStatus		(int value)
    -
    void	xsltSetGenericDebugFunc		(void * ctx, 
    xmlGenericErrorFunc handler)
    -
    void	xsltSetGenericErrorFunc		(void * ctx, 
    xmlGenericErrorFunc handler)
    -
    void	xsltSetSortFunc			(xsltSortFunc handler)
    -
    void	xsltSetTransformErrorFunc	(xsltTransformContextPtr ctxt, 
    void * ctx,
    xmlGenericErrorFunc handler)
    -
    const xmlChar *	xsltSplitQName		(xmlDictPtr dict, 
    const xmlChar * name,
    const xmlChar ** prefix)
    -
    long	xsltTimestamp			(void)
    -
    void	xsltTransformError		(xsltTransformContextPtr ctxt, 
    xsltStylesheetPtr style,
    xmlNodePtr node,
    const char * msg,
    ... ...)
    -
    xmlXPathCompExprPtr	xsltXPathCompile	(xsltStylesheetPtr style, 
    const xmlChar * str)
    -

    Description

    -

    Macro: IS_XSLT_ELEM

    #define IS_XSLT_ELEM

    Checks that the element pertains to XSLT namespace.

    -

    Macro: IS_XSLT_NAME

    #define IS_XSLT_NAME

    Checks the value of an element in XSLT namespace.

    -

    Macro: IS_XSLT_REAL_NODE

    #define IS_XSLT_REAL_NODE

    Check that a node is a 'real' one: document, element, text or attribute.

    -

    Macro: XSLT_STRANGE

    #define XSLT_STRANGE

    Macro to flag that a problem was detected internally.

    -

    Macro: XSLT_TIMESTAMP_TICS_PER_SEC

    #define XSLT_TIMESTAMP_TICS_PER_SEC

    Sampling precision for profiling

    -

    Macro: XSLT_TODO

    #define XSLT_TODO

    Macro to flag unimplemented blocks.

    -

    Macro: XSLT_TRACE

    #define XSLT_TRACE

    Control the type of xsl debugtrace messages emitted.

    -

    Enum xsltDebugStatusCodes

    Enum xsltDebugStatusCodes {
    -    XSLT_DEBUG_NONE = 0 : no debugging allowed
    -    XSLT_DEBUG_INIT = 1
    -    XSLT_DEBUG_STEP = 2
    -    XSLT_DEBUG_STEPOUT = 3
    -    XSLT_DEBUG_NEXT = 4
    -    XSLT_DEBUG_STOP = 5
    -    XSLT_DEBUG_CONT = 6
    -    XSLT_DEBUG_RUN = 7
    -    XSLT_DEBUG_RUN_RESTART = 8
    -    XSLT_DEBUG_QUIT = 9
    -}
    -

    Enum xsltDebugTraceCodes

    Enum xsltDebugTraceCodes {
    -    XSLT_TRACE_ALL = -1
    -    XSLT_TRACE_NONE = 0
    -    XSLT_TRACE_COPY_TEXT = 1
    -    XSLT_TRACE_PROCESS_NODE = 2
    -    XSLT_TRACE_APPLY_TEMPLATE = 4
    -    XSLT_TRACE_COPY = 8
    -    XSLT_TRACE_COMMENT = 16
    -    XSLT_TRACE_PI = 32
    -    XSLT_TRACE_COPY_OF = 64
    -    XSLT_TRACE_VALUE_OF = 128
    -    XSLT_TRACE_CALL_TEMPLATE = 256
    -    XSLT_TRACE_APPLY_TEMPLATES = 512
    -    XSLT_TRACE_CHOOSE = 1024
    -    XSLT_TRACE_IF = 2048
    -    XSLT_TRACE_FOR_EACH = 4096
    -    XSLT_TRACE_STRIP_SPACES = 8192
    -    XSLT_TRACE_TEMPLATES = 16384
    -    XSLT_TRACE_KEYS = 32768
    -    XSLT_TRACE_VARIABLES = 65536
    -}
    -

    Function: xslAddCall

    int	xslAddCall			(xsltTemplatePtr templ, 
    xmlNodePtr source)
    -

    Add template "call" to call stack

    -
    templ:current template being applied
    source:the source node being processed
    Returns:: 1 on sucess 0 otherwise an error may be printed if WITH_XSLT_DEBUG_BREAKPOINTS is defined

    Function: xslDropCall

    void	xslDropCall			(void)
    -

    Drop the topmost item off the call stack

    -

    Function type: xsltAddCallCallback

    Function type: xsltAddCallCallback
    -int	xsltAddCallCallback		(xsltTemplatePtr templ, 
    xmlNodePtr source) -

    templ:
    source:
    Returns:

    -

    Function: xsltCalibrateAdjust

    void	xsltCalibrateAdjust		(long delta)
    -

    Used for to correct the calibration for xsltTimestamp()

    -
    delta:a negative dealy value found

    Function: xsltComputeSortResult

    xmlXPathObjectPtr *	xsltComputeSortResult	(xsltTransformContextPtr ctxt, 
    xmlNodePtr sort)
    -

    reorder the current node list accordingly to the set of sorting requirement provided by the array of nodes.

    -
    ctxt:a XSLT process context
    sort:node list
    Returns:a ordered XPath nodeset or NULL in case of error.

    Function: xsltDebugGetDefaultTrace

    xsltDebugTraceCodes	xsltDebugGetDefaultTrace	(void)
    -

    Get the current default debug tracing level mask

    -
    Returns:the current default debug tracing level mask

    Function: xsltDebugSetDefaultTrace

    void	xsltDebugSetDefaultTrace	(xsltDebugTraceCodes val)
    -

    Set the default debug tracing level mask

    -
    val:tracing level mask

    Function: xsltDefaultSortFunction

    void	xsltDefaultSortFunction		(xsltTransformContextPtr ctxt, 
    xmlNodePtr * sorts,
    int nbsorts)
    -

    reorder the current node list accordingly to the set of sorting requirement provided by the arry of nodes.

    -
    ctxt:a XSLT process context
    sorts:array of sort nodes
    nbsorts:the number of sorts in the array

    Function: xsltDoSortFunction

    void	xsltDoSortFunction		(xsltTransformContextPtr ctxt, 
    xmlNodePtr * sorts,
    int nbsorts)
    -

    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.

    -
    ctxt:a XSLT process context
    sorts:array of sort nodes
    nbsorts:the number of sorts in the array

    Function: xsltDocumentSortFunction

    void	xsltDocumentSortFunction	(xmlNodeSetPtr list)
    -

    reorder the current node list @list accordingly to the document order This function is slow, obsolete and should not be used anymore.

    -
    list:the node set

    Function type: xsltDropCallCallback

    Function type: xsltDropCallCallback
    -void	xsltDropCallCallback		(void)
    -


    -

    Function: xsltGetCNsProp

    const xmlChar *	xsltGetCNsProp		(xsltStylesheetPtr style, 
    xmlNodePtr node,
    const xmlChar * name,
    const xmlChar * nameSpace)
    -

    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.

    -
    style:the stylesheet
    node:the node
    name:the attribute name
    nameSpace:the URI of the namespace
    Returns:the attribute value or NULL if not found. The string is allocated in the stylesheet dictionnary.

    Function: xsltGetDebuggerStatus

    int	xsltGetDebuggerStatus		(void)
    -

    Get xslDebugStatus.

    -
    Returns:the value of xslDebugStatus.

    Function: xsltGetNsProp

    xmlChar *	xsltGetNsProp		(xmlNodePtr node, 
    const xmlChar * name,
    const xmlChar * nameSpace)
    -

    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.

    -
    node:the node
    name:the attribute name
    nameSpace:the URI of the namespace
    Returns:the attribute value or NULL if not found. It's up to the caller to free the memory.

    Function: xsltGetProfileInformation

    xmlDocPtr	xsltGetProfileInformation	(xsltTransformContextPtr ctxt)
    -

    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()

    -
    ctxt:a transformation context
    Returns:the xmlDocPtr corresponding to the result or NULL if not available.

    Function: xsltGetQNameURI

    const xmlChar *	xsltGetQNameURI		(xmlNodePtr node, 
    xmlChar ** name)
    -

    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.

    -
    node:the node holding the QName
    name:pointer to the initial QName value
    Returns:the namespace URI if there is a prefix, or NULL if @name is not prefixed.

    Function: xsltGetQNameURI2

    const xmlChar *	xsltGetQNameURI2	(xsltStylesheetPtr style, 
    xmlNodePtr node,
    const xmlChar ** name)
    -

    This function is similar to xsltGetQNameURI, but is used when @name is a dictionary entry.

    -
    style:stylesheet pointer
    node:the node holding the QName
    name:pointer to the initial QName value
    Returns:the namespace URI if there is a prefix, or NULL if @name is not prefixed.

    Function: xsltGetUTF8Char

    int	xsltGetUTF8Char			(const unsigned char * utf, 
    int * len)
    -

    Read one UTF8 Char from @utf Function copied from libxml2 xmlGetUTF8Char() ... to discard ultimately and use the original API

    -
    utf:a sequence of UTF-8 encoded bytes
    len:a pointer to @bytes len
    Returns:the char value or -1 in case of error and update @len with the number of bytes used

    Function type: xsltHandleDebuggerCallback

    Function type: xsltHandleDebuggerCallback
    -void	xsltHandleDebuggerCallback	(xmlNodePtr cur, 
    xmlNodePtr node,
    xsltTemplatePtr templ,
    xsltTransformContextPtr ctxt) -

    cur:
    node:
    templ:
    ctxt:

    -

    Function: xsltMessage

    void	xsltMessage			(xsltTransformContextPtr ctxt, 
    xmlNodePtr node,
    xmlNodePtr inst)
    -

    Process and xsl:message construct

    -
    ctxt:an XSLT processing context
    node:The current node
    inst:The node containing the message instruction

    Function: xsltPrintErrorContext

    void	xsltPrintErrorContext		(xsltTransformContextPtr ctxt, 
    xsltStylesheetPtr style,
    xmlNodePtr node)
    -

    Display the context of an error.

    -
    ctxt:the transformation context
    style:the stylesheet
    node:the current node being processed

    Function: xsltSaveProfiling

    void	xsltSaveProfiling		(xsltTransformContextPtr ctxt, 
    FILE * output)
    -

    Save the profiling informations on @output

    -
    ctxt:an XSLT context
    output:a FILE * for saving the informations

    Function: xsltSaveResultTo

    int	xsltSaveResultTo		(xmlOutputBufferPtr buf, 
    xmlDocPtr result,
    xsltStylesheetPtr style)
    -

    Save the result @result obtained by applying the @style stylesheet to an I/O output channel @buf

    -
    buf:an output buffer
    result:the result xmlDocPtr
    style:the stylesheet
    Returns:the number of byte written or -1 in case of failure.

    Function: xsltSaveResultToFd

    int	xsltSaveResultToFd		(int fd, 
    xmlDocPtr result,
    xsltStylesheetPtr style)
    -

    Save the result @result obtained by applying the @style stylesheet to an open file descriptor This does not close the descriptor.

    -
    fd:a file descriptor
    result:the result xmlDocPtr
    style:the stylesheet
    Returns:the number of bytes written or -1 in case of failure.

    Function: xsltSaveResultToFile

    int	xsltSaveResultToFile		(FILE * file, 
    xmlDocPtr result,
    xsltStylesheetPtr style)
    -

    Save the result @result obtained by applying the @style stylesheet to an open FILE * I/O. This does not close the FILE @file

    -
    file:a FILE * I/O
    result:the result xmlDocPtr
    style:the stylesheet
    Returns:the number of bytes written or -1 in case of failure.

    Function: xsltSaveResultToFilename

    int	xsltSaveResultToFilename	(const char * URL, 
    xmlDocPtr result,
    xsltStylesheetPtr style,
    int compression)
    -

    Save the result @result obtained by applying the @style stylesheet to a file or @URL

    -
    URL:a filename or URL
    result:the result xmlDocPtr
    style:the stylesheet
    compression:the compression factor (0 - 9 included)
    Returns:the number of byte written or -1 in case of failure.

    Function: xsltSaveResultToString

    int	xsltSaveResultToString		(xmlChar ** doc_txt_ptr, 
    int * doc_txt_len,
    xmlDocPtr result,
    xsltStylesheetPtr style)
    -

    Save the result @result obtained by applying the @style stylesheet to a file or @URL

    -
    doc_txt_ptr:Memory pointer for allocated XML text
    doc_txt_len:Length of the generated XML text
    result:the result xmlDocPtr
    style:the stylesheet
    Returns:the number of byte written or -1 in case of failure.

    Function: xsltSetCtxtParseOptions

    int	xsltSetCtxtParseOptions		(xsltTransformContextPtr ctxt, 
    int options)
    -

    Change the default parser option passed by the XSLT engine to the parser when using document() loading.

    -
    ctxt:a XSLT process context
    options:a combination of libxml2 xmlParserOption
    Returns:the previous options or -1 in case of error

    Function: xsltSetCtxtSortFunc

    void	xsltSetCtxtSortFunc		(xsltTransformContextPtr ctxt, 
    xsltSortFunc handler)
    -

    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

    -
    ctxt:a XSLT process context
    handler:the new handler function

    Function: xsltSetDebuggerCallbacks

    int	xsltSetDebuggerCallbacks	(int no, 
    void * block)
    -

    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.

    -
    no:number of callbacks
    block:the block of callbacks
    Returns:0 in case of success and -1 in case of error

    Function: xsltSetDebuggerStatus

    void	xsltSetDebuggerStatus		(int value)
    -

    This function sets the value of xslDebugStatus.

    -
    value:the value to be set

    Function: xsltSetGenericDebugFunc

    void	xsltSetGenericDebugFunc		(void * ctx, 
    xmlGenericErrorFunc handler)
    -

    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.

    -
    ctx:the new error handling context
    handler:the new handler function

    Function: xsltSetGenericErrorFunc

    void	xsltSetGenericErrorFunc		(void * ctx, 
    xmlGenericErrorFunc handler)
    -

    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.

    -
    ctx:the new error handling context
    handler:the new handler function

    Function: xsltSetSortFunc

    void	xsltSetSortFunc			(xsltSortFunc handler)
    -

    Function to reset the global handler for XSLT sorting. If the handler is NULL, the default sort function will be used.

    -
    handler:the new handler function

    Function: xsltSetTransformErrorFunc

    void	xsltSetTransformErrorFunc	(xsltTransformContextPtr ctxt, 
    void * ctx,
    xmlGenericErrorFunc handler)
    -

    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.

    -
    ctxt:the XSLT transformation context
    ctx:the new error handling context
    handler:the new handler function

    Function: xsltSplitQName

    const xmlChar *	xsltSplitQName		(xmlDictPtr dict, 
    const xmlChar * name,
    const xmlChar ** prefix)
    -

    Split QNames into prefix and local names, both allocated from a dictionnary.

    -
    dict:a dictionnary
    name:the full QName
    prefix:the return value
    Returns:the localname or NULL in case of error.

    Function: xsltTimestamp

    long	xsltTimestamp			(void)
    -

    Used for gathering profiling data

    -
    Returns:the number of tenth of milliseconds since the beginning of the profiling

    Function: xsltTransformError

    void	xsltTransformError		(xsltTransformContextPtr ctxt, 
    xsltStylesheetPtr style,
    xmlNodePtr node,
    const char * msg,
    ... ...)
    -

    Display and format an error messages, gives file, line, position and extra parameters, will use the specific transformation context if available

    -
    ctxt:an XSLT transformation context
    style:the XSLT stylesheet used
    node:the current node in the stylesheet
    msg:the message to display/transmit
    ...:extra parameters for the message display

    Function: xsltXPathCompile

    xmlXPathCompExprPtr	xsltXPathCompile	(xsltStylesheetPtr style, 
    const xmlChar * str)
    -

    Compile an XPath expression

    -
    style:the stylesheet
    str:the XPath expression
    Returns:the xmlXPathCompExprPtr resulting from the compilation or NULL. the caller has to free the object.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/html/right.png b/src/tools/docbook/libxslt/doc/html/right.png deleted file mode 100644 index 92832e3a45..0000000000 Binary files a/src/tools/docbook/libxslt/doc/html/right.png and /dev/null differ diff --git a/src/tools/docbook/libxslt/doc/html/up.png b/src/tools/docbook/libxslt/doc/html/up.png deleted file mode 100644 index 85b3e2a275..0000000000 Binary files a/src/tools/docbook/libxslt/doc/html/up.png and /dev/null differ diff --git a/src/tools/docbook/libxslt/doc/index.html b/src/tools/docbook/libxslt/doc/index.html deleted file mode 100644 index d3109792d5..0000000000 --- a/src/tools/docbook/libxslt/doc/index.html +++ /dev/null @@ -1,22 +0,0 @@ - - -libxslt
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    libxslt

    Main Menu
    Related links
    API Indexes

    Libxslt is the XSLTC -librarydeveloped for the Gnome project. XSLT itself is a an XML language to -definetransformation for XML. Libxslt is based on libxml2the XML C library developed for -theGnome project. It also implements most of the EXSLTset of processor-portable -extensionsfunctions and some of Saxon's evaluate and expressions -extensions.

    People can either embed the library in their application or use -xsltprocthe command line processing tool. This library is free software and -can bereused in commercial applications (see the intro)

    External documents:

    Logo designed by Marc Liyanage.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/internals.html b/src/tools/docbook/libxslt/doc/internals.html deleted file mode 100644 index 525dbc7ae8..0000000000 --- a/src/tools/docbook/libxslt/doc/internals.html +++ /dev/null @@ -1,291 +0,0 @@ - - -Library internals
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Library internals

    Main Menu
    Related links
    API Indexes

    Table of contents

    Introduction

    This document describes the processing of libxslt, the XSLTC library developed for the Gnomeproject.

    Note: this documentation is by definition incomplete and I am not good -atspelling, grammar, so patches and suggestions are really welcome.

    Basics

    XSLT is a transformation language. It takes an input document and -astylesheet document and generates an output document:

    the XSLT processing model

    Libxslt is written in C. It relies on libxml, the XML C library for Gnome, -forthe following operations:

    • parsing files
    • -
    • building the in-memory DOM structure associated with the - documentshandled
    • -
    • the XPath implementation
    • -
    • serializing back the result document to XML and HTML. (Text is - handleddirectly.)
    • -

    Keep it simple stupid

    Libxslt is not very specialized. It is built under the assumption that -allnodes from the source and output document can fit in the virtual memory -ofthe system. There is a big trade-off there. It is fine for reasonably -sizeddocuments but may not be suitable for large sets of data. The gain is -that itcan be used in a relatively versatile way. The input or output may -never beserialized, but the size of documents it can handle are limited by -the sizeof the memory available.

    More specialized memory handling approaches are possible, like buildingthe -input tree from a serialization progressively as it is consumed,factoring -repetitive patterns, or even on-the-fly generation of the output asthe input -is parsed but it is possible only for a limited subset of thestylesheets. In -general the implementation of libxslt follows the followingpattern:

    • KISS (keep it simple stupid)
    • -
    • when there is a clear bottleneck optimize on top of this - simpleframework and refine only as much as is needed to reach the - expectedresult
    • -

    The result is not that bad, clearly one can do a better job but -morespecialized too. Most optimization like building the tree on-demand -wouldneed serious changes to the libxml XPath framework. An easy step would -be toserialize the output directly (or call a set of SAX-like output handler -tokeep this a flexible interface) and hence avoid the memory consumption of -theresult.

    The libxml nodes

    DOM-like trees, as used and generated by libxml and libxslt, arerelatively -complex. Most node types follow the given structure except a fewvariations -depending on the node type:

    description of a libxml node

    Nodes carry a nameand the node -typeindicates the kind of node it represents, the most -common ones are:

    • document nodes
    • -
    • element nodes
    • -
    • text nodes
    • -

    For the XSLT processing, entity nodes should not be generated (i.e. -theyshould be replaced by their content). Most nodes also contains the -following"navigation" informations:

    • the containing document
    • -
    • the parentnode
    • -
    • the first childrennode
    • -
    • the lastchildren node
    • -
    • the previous sibling
    • -
    • the following sibling (next)
    • -

    Elements nodes carries the list of attributes in the properties, -anattribute itself holds the navigation pointers and the children list -(theattribute value is not represented as a simple string to allow usage -ofentities references).

    The nspoints to the namespace declaration for -thenamespace associated to the node, nsDefis the linked -listof namespace declaration present on element nodes.

    Most nodes also carry an _privatepointer which can beused -by the application to hold specific data on this node.

    The XSLT processing steps

    There are a few steps which are clearly decoupled at the -interfacelevel:

    1. parse the stylesheet and generate a DOM tree
    2. -
    3. take the stylesheet tree and build a compiled version of it - (thecompilation phase)
    4. -
    5. take the input and generate a DOM tree
    6. -
    7. process the stylesheet against the input tree and generate an - outputtree
    8. -
    9. serialize the output tree
    10. -

    A few things should be noted here:

    • the steps 1/ 3/ and 5/ are optional
    • -
    • the stylesheet obtained at 2/ can be reused by multiple processing - 4/(and this should also work in threaded programs)
    • -
    • the tree provided in 2/ should never be freed using xmlFreeDoc, but - byfreeing the stylesheet.
    • -
    • the input tree 4/ is not modified except the _private field which maybe - used for labelling keys if used by the stylesheet
    • -

    The XSLT stylesheet compilation

    This is the second step described. It takes a stylesheet tree, -and"compiles" it. This associates to each node a structure stored in -the_private field and containing information computed in the stylesheet:

    a compiled XSLT stylesheet

    One xsltStylesheet structure is generated per document parsed for -thestylesheet. XSLT documents allow includes and imports of other -documents,imports are stored in the importslist (hence -keeping thetree hierarchy of includes which is very important for a proper -XSLTprocessing model) and includes are stored in the -doclistlist. An imported stylesheet has a parent link to -allow browsing of thetree.

    The DOM tree associated to the document is stored in -doc.It is preprocessed to remove ignorable empty nodes and -all the nodes in theXSLT namespace are subject to precomputing. This usually -consist ofextracting all the context information from the context tree -(attributes,namespaces, XPath expressions), and storing them in an -xsltStylePreCompstructure associated to the _privatefield of -the node.

    A couple of notable exceptions to this are XSLT template nodes (more -onthis later) and attribute value templates. If they are actually -templates,the value cannot be computed at compilation time. (Some -preprocessing couldbe done like isolation and preparsing of the XPath -subexpressions but it'snot done, yet.)

    The xsltStylePreComp structure also allows storing of the precompiled -formof an XPath expression that can be associated to an XSLT element (more -onthis later).

    The XSLT template compilation

    A proper handling of templates lookup is one of the keys of fast -XSLTprocessing. (Given a node in the source document this is the process -offinding which templates should be applied to this node.) Libxslt follows -thehint suggested in the 5.2Patternssection of the XSLT -Recommendation, i.e. it doesn't evaluate itas an XPath expression but -tokenizes it and compiles it as a set of rules tobe evaluated on a candidate -node. There usually is an indication of the nodename in the last step of this -evaluation and this is used as a key check forthe match. As a result libxslt -builds a relatively more complex set ofstructures for the templates:

    The templates related structure

    Let's describe a bit more closely what is built. First the -xsltStylesheetstructure holds a pointer to the template hash table. All the -XSLT patternscompiled in this stylesheet are indexed by the value of the the -targetelement (or attribute, pi ...) name, so when a element or an attribute -"foo"needs to be processed the lookup is done using the name as a key.

    Each of the patterns is compiled into an xsltCompMatch structure. It -holdsthe set of rules based on the tokenization of the pattern stored in -reverseorder (matching is easier this way). It also holds some information -about theprevious matches used to speed up the process when one iterates over -a set ofsiblings. (This optimization may be defeated by trashing when -runningthreaded computation, it's unclear that this is a big deal in -practice.)Predicate expressions are not compiled at this stage, they may be -at run-timeif needed, but in this case they are compiled as full XPath -expressions (theuse of some fixed predicate can probably be optimized, they -are not yet).

    The xsltCompMatch are then stored in the hash table, the clash list -isitself sorted by priority of the template to implement "naturally" the -XSLTpriority rules.

    Associated to the compiled pattern is the xsltTemplate itself -containingthe information required for the processing of the pattern -including, ofcourse, a pointer to the list of elements used for building the -patternresult.

    Last but not least a number of patterns do not fit in the hash -tablebecause they are not associated to a name, this is the case for -patternsapplying to the root, any element, any attributes, text nodes, pi -nodes, keysetc. Those are stored independently in the stylesheet structure as -separatelinked lists of xsltCompMatch.

    The processing itself

    The processing is defined by the XSLT specification (the basis of -thealgorithm is explained in the -Introductionsection). Basically it works by taking the root of the input -document andapplying the following algorithm:

    1. Finding the template applying to it. This is a lookup in the - templatehash table, walking the hash list until the node satisfies all - the stepsof the pattern, then checking the appropriate(s) global - templates to seeif there isn't a higher priority rule to apply
    2. -
    3. If there is no template, apply the default rule (recurse on - thechildren)
    4. -
    5. else walk the content list of the selected templates, for each of them: -
      • if the node is in the XSLT namespace then the node has a - _privatefield pointing to the preprocessed values, jump to the - specificcode
      • -
      • if the node is in an extension namespace, look up the - associatedbehavior
      • -
      • otherwise copy the node.
      • -

      The closure is usually done through the - XSLTapply-templatesconstruct recursing by applying - theadequate template on the input node children or on the result of - anassociated XPath selection lookup.

      -
    6. -

    Note that large parts of the input tree may not be processed by a -givenstylesheet and that on the opposite some may be processed multiple -times.(This often is the case when a Table of Contents is built).

    The module transform.cis the one implementing most of -thislogic. xsltApplyStylesheet()is the entry point, -itallocates an xsltTransformContext containing the following:

    • a pointer to the stylesheet being processed
    • -
    • a stack of templates
    • -
    • a stack of variables and parameters
    • -
    • an XPath context
    • -
    • the template mode
    • -
    • current document
    • -
    • current input node
    • -
    • current selected node list
    • -
    • the current insertion points in the output document
    • -
    • a couple of hash tables for extension elements and functions
    • -

    Then a new document gets allocated (HTML or XML depending on the type -ofoutput), the user parameters and global variables and parameters -areevaluated. Then xsltProcessOneNode()which implements -the1-2-3 algorithm is called on the root element of the input. Step 1/ -isimplemented by calling xsltGetTemplate(), step 2/ -isimplemented by xsltDefaultProcessOneNode()and step 3/ -isimplemented by xsltApplyOneTemplate().

    XPath expression compilation

    The XPath support is actually implemented in the libxml module (where itis -reused by the XPointer implementation). XPath is a relatively -classicexpression language. The only uncommon feature is that it is working -on XMLtrees and hence has specific syntax and types to handle them.

    XPath expressions are compiled using xmlXPathCompile().It -will take an expression string in input and generate a structurecontaining -the parsed expression tree, for example the expression:

    /doc/chapter[title='Introduction']

    will be compiled as

    Compiled Expression : 10 elements
    -  SORT
    -    COLLECT  'child' 'name' 'node' chapter
    -      COLLECT  'child' 'name' 'node' doc
    -        ROOT
    -      PREDICATE
    -        SORT
    -          EQUAL =
    -            COLLECT  'child' 'name' 'node' title
    -              NODE
    -            ELEM Object is a string : Introduction
    -              COLLECT  'child' 'name' 'node' title
    -                NODE

    This can be tested using the testXPathcommand (in thelibxml -codebase) using the --treeoption.

    Again, the KISS approach is used. No optimization is done. This could bean -interesting thing to add. MichaelKay -describesa lot of possible and interesting optimizations done inSaxon -which would be possible at this level. I'm unsure they would providemuch gain -since the expressions tends to be relatively simple in general andstylesheets -are still hand generated. Optimizations at the interpretationsounds likely to -be more efficient.

    XPath interpretation

    The interpreter is implemented by -xmlXPathCompiledEval()which is the front-end to -xmlXPathCompOpEval()the functionimplementing the evaluation -of the expression tree. This evaluation followsthe KISS approach again. It's -recursive and callsxmlXPathNodeCollectAndTest()to collect -nodes set whenevaluating a COLLECTnode.

    An evaluation is done within the framework of an XPath context stored inan -xmlXPathContextstructure, in the framework of -atransformation the context is maintained within the XSLT context. Its -contentfollows the requirements from the XPath specification:

    • the current document
    • -
    • the current node
    • -
    • a hash table of defined variables (but not used by XSLT)
    • -
    • a hash table of defined functions
    • -
    • the proximity position (the place of the node in the current - nodelist)
    • -
    • the context size (the size of the current node list)
    • -
    • the array of namespace declarations in scope (there also is a - namespacehash table but it is not used in the XSLT transformation).
    • -

    For the purpose of XSLT an extrapointer has been -addedallowing to retrieve the XSLT transformation context. When an -XPathevaluation is about to be performed, an XPath parser context is -allocatedcontaining and XPath object stack (this is actually an XPath -evaluationcontext, this is a remain of the time where there was no separate -parsing andevaluation phase in the XPath implementation). Here is an overview -of the setof contexts associated to an XPath evaluation within an -XSLTtransformation:

    The set of contexts associated

    Clearly this is a bit too complex and confusing and should be refactoredat -the next set of binary incompatible releases of libxml. For example -thexmlXPathCtxt has a lot of unused parts and should probably be merged -withxmlXPathParserCtxt.

    Description of XPath Objects

    An XPath expression manipulates XPath objects. XPath defines the -defaulttypes boolean, numbers, strings and node sets. XSLT adds the result -treefragment type which is basically an unmodifiable node set.

    Implementation-wise, libxml follows again a KISS approach, -thexmlXPathObject is a structure containing a type description and the -variouspossibilities. (Using an enum could have gained some bytes.) In the -case ofnode sets (or result tree fragments), it points to a separate -xmlNodeSetobject which contains the list of pointers to the document -nodes:

    An Node set object pointing to

    The XPath -API(andits 'internal'part) -includes a number of functions to create, copy, compare, convert orfree XPath -objects.

    XPath functions

    All the XPath functions available to the interpreter are registered in -thefunction hash table linked from the XPath context. They all share the -samesignature:

    void xmlXPathFunc (xmlXPathParserContextPtr ctxt, int nargs);

    The first argument is the XPath interpretation context, holding -theinterpretation stack. The second argument defines the number of -objectspassed on the stack for the function to consume (last argument is on -top ofthe stack).

    Basically an XPath function does the following:

    • check nargsfor proper handling of errors or functionswith - variable numbers of parameters
    • -
    • pop the parameters from the stack using obj - =valuePop(ctxt);
    • -
    • do the function specific computation
    • -
    • push the result parameter on the stack using - valuePush(ctxt,res);
    • -
    • free up the input parameters - withxmlXPathFreeObject(obj);
    • -
    • return
    • -

    Sometime the work can be done directly by modifying in-situ the top -objecton the stack ctxt->value.

    The XSLT variables stack frame

    Not to be confused with XPath object stack, this stack holds the -XSLTvariables and parameters as they are defined through the recursive calls -ofcall-template, apply-templates and default templates. This is used to -definethe scope of variables being called.

    This part seems to be the most urgent attention right now, first it isdone -in a very inefficient way since the location of the variables andparameters -within the stylesheet tree is still done at run time (it reallyshould be done -statically at compile time), and I am still unsure that myunderstanding of -the template variables and parameter scope is actuallyright.

    This part of the documentation is still to be written once this part ofthe -code will be stable. TODO

    Extension support

    There is a separate document explaining how -theextension support works.

    Further reading

    Michael Kay wrote areally -interesting article on Saxon internalsand the work he did onperformance -issues. I wishes I had read it before starting libxslt design (Iwould -probably have avoided a few mistakes and progressed faster). A lot ofthe -ideas in his papers should be implemented or at least tried inlibxslt.

    The libxml documentation, especially the I/O interfacesand the memory management.

    TODOs

    redesign the XSLT stack frame handling. Far too much work is done -atexecution time. Similarly for the attribute value templates handling, -atleast the embedded subexpressions ought to be precompiled.

    Allow output to be saved to a SAX like output (this notion of SAX like -APIfor output should be added directly to libxml).

    Implement and test some of the optimization explained by Michael -Kayespecially:

    • static slot allocation on the stack frame
    • -
    • specific boolean interpretation of an XPath expression
    • -
    • some of the sorting optimization
    • -
    • Lazy evaluation of location path. (this may require more changes - butsounds really interesting. XT does this too.)
    • -
    • Optimization of an expression tree (This could be done as a - completelyindependent module.)
    • -

    Error reporting, there is a lot of case where the XSLT -specificationspecify that a given construct is an error are not checked -adequately bylibxslt. Basically one should do a complete pass on the XSLT -spec again andadd all tests to the stylesheet compilation. Using the DTD -provided in theappendix and making direct checks using the libxml validation -API sounds agood idea too (though one should take care of not raising errors -forelements/attributes in different namespaces).

    Double check all the places where the stylesheet compiled form might -bemodified at run time (extra removal of blanks nodes, hint on -thexsltCompMatch).

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/intro.html b/src/tools/docbook/libxslt/doc/intro.html deleted file mode 100644 index c527cdb86b..0000000000 --- a/src/tools/docbook/libxslt/doc/intro.html +++ /dev/null @@ -1,21 +0,0 @@ - - -Introduction
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Introduction

    Main Menu
    Related links
    API Indexes

    This document describes libxslt,the -XSLTC library developed for theGnomeproject.

    Here are some key points about libxslt:

    • Libxslt is a C implementation
    • -
    • Libxslt is based on libxml for XML parsing, tree manipulation and - XPathsupport
    • -
    • It is written in plain C, making as few assumptions as possible, - andsticking closely to ANSI C/POSIX for easy embedding. Should works - onLinux/Unix/Windows.
    • -
    • This library is released under the MITLicence
    • -
    • Though not designed primarily with performances in mind, libxslt - seemsto be a relatively fast processor.
    • -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/libxslt-api.xml b/src/tools/docbook/libxslt/doc/libxslt-api.xml deleted file mode 100644 index 64b89a3485..0000000000 --- a/src/tools/docbook/libxslt/doc/libxslt-api.xml +++ /dev/null @@ -1,2432 +0,0 @@ - - - - - interface for the XSLT attribute handling - this module handles the specificities of attribute and attribute groups processing. - Daniel Veillard - - - - - - - interface for the document handling - implements document loading and cache (multiple document() reference for the same resources must be equal. - Daniel Veillard - - - - - - - - - - - - - - - - - interface for the extension support - This provide the API needed for simple and module extension support. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - interface for the non-standard features - implement some extension outside the XSLT namespace but not EXSLT with is in a different library. - Daniel Veillard - - - - - - - - - - - - interface for the XSLT functions not from XPath - a set of extra functions coming from XSLT but not in XPath - Daniel Veillard and Bjorn Reese <breese@users.sourceforge.net> - - - - - - - - - - - - - - interface for the XSLT import support - macros and fuctions needed to implement and access the import tree - Daniel Veillard - - - - - - - - - - - interface for the key matching used in key() and template matches. - implementation of the key mechanims. - Daniel Veillard - - - - - - - - - interface for the XSLT namespace handling - set of function easing the processing and generation of namespace nodes in XSLT. - Daniel Veillard - - - - - - - - - - - Implementation of the XSLT number functions - Implementation of the XSLT number functions - Bjorn Reese <breese@users.sourceforge.net> and Daniel Veillard - - - - - - - - - interface for the pattern matching used in template matches. - the implementation of the lookup of the right template for a given node must be really fast in order to keep decent performances. - Daniel Veillard - - - - - - - - - - - - - - precomputing stylesheets - this is the compilation phase, where most of the stylesheet is "compiled" into faster to use data. - Daniel Veillard - - - - - - - interface for the libxslt security framework - the libxslt security framework allow to restrict the access to new resources (file or URL) from the stylesheet at runtime. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - interface for the template processing - This set of routine encapsulates XPath calls and Attribute Value Templates evaluation. - Daniel Veillard - - - - - - - - - - - - - - the XSLT engine transformation part. - This module implements the bulk of the actual - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - interface for the variable matching and lookup. - interface for the variable matching and lookup. - Daniel Veillard - - - - - - - - - - - - - - - - - - Interfaces, constants and types related to the XSLT engine - Interfaces, constants and types related to the XSLT engine - Daniel Veillard - - - - - - - - - - - - - internal data structures, constants and functions - Internal data structures, constants and functions used by the XSLT engine. They are not part of the API or ABI, i.e. they can change without prior notice, use carefully. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - macros for marking symbols as exportable/importable. - macros for marking symbols as exportable/importable. - Igor Zlatkovic <igor@zlatkovic.com> - - - - - - - - set of utilities for the XSLT engine - interfaces for the utilities module of the XSLT engine. things like message handling, profiling, and other generally useful routines. - Daniel Veillard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Macro to check if the XSLT processing should be stopped. Will return from the function. - - - Macro to check if the XSLT processing should be stopped. Will return from the function with a 0 value. - - - Macro to check if the XSLT processing should be stopped. Will goto the error: label. - - - Checks that the element pertains to XSLT namespace. - - - Checks the value of an element in XSLT namespace. - - - Check that a node is a 'real' one: document, element, text or attribute. - - - - - - - - - Macro to do a casting from an object pointer to a function pointer without encountering a warning from gcc #define XML_CAST_FPTR(fptr) (*(void **)(&fptr)) This macro violated ISO C aliasing rules (gcc4 on s390 broke) so it is disabled now - - - - - - - - - - The XSLT "vendor" URL for this processor. - - - The XSLT "vendor" string for this processor. - - - The default version of XSLT supported. - - - A macro to import intergers from the stylesheet cascading order. - - - A macro to import pointers from the stylesheet cascading order. - - - This is the libxslt namespace for specific extensions. - - - Max number of specified xsl:sort on an element. - - - The XSLT specification namespace. - - - This is Norm's namespace for SAXON extensions. - - - The set of options to pass to an xmlReadxxx when loading files for XSLT consumption. - - - Specific value for pattern without priority expressed. - - - Registering macro, not general purpose at all but used in different modules. - - - Registering macro, not general purpose at all but used in different modules. - - - Macro used to define extra information stored in the context - - - - - Macro used to free extra information stored in the context - - - - - Macro used to access extra information stored in the context - - - - - This is Michael Kay's Saxon processor namespace for extensions. - - - Macro to flag that a problem was detected internally. - - - Sampling precision for profiling - - - Macro to flag unimplemented blocks. - - - Control the type of xsl debugtrace messages emitted. - - - This is the Apache project XALAN processor namespace for extensions. - - - This is James Clark's XT processor namespace for extensions. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Add template "call" to call stack - - - - - - Drop the topmost item off the call stack - - - - 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 - - - - - - - - - - - - - - add a key definition to a stylesheet - - - - - - - - - - add the new element list at this level of the stack. - - - - - - Register the XSLT pattern associated to @cur - - - - - - - - Allocate an extra runtime information slot statically while compiling the stylesheet and return its number - - - - - 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 - - - - - Apply the xsl:use-attribute-sets - - - - - - - - Process the xslt apply-imports node on the source node - - - - - - - - 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 after return (they may be reused). - - - - - - - - - Strip the unwanted ignorable spaces from the input tree - - - - - - Apply the stylesheet to the document NOTE: This may lead to a non-wellformed output XML wise ! - - - - - - - Apply the stylesheet to the document and allow the user to provide its own transformation context. - - - - - - - - - - Process the apply-templates node on the source node - - - - - - - - Do a copy of an attribute list with attribute template processing - - - - - - - Process the given attribute and return the new processed copy. - - - - - - - Process the given node and return the new string value. - - - - - - Process the given string, allowing to pass a namespace mapping context and return the new string value. - - - - - - - Process the xslt attribute node on the source node - - - - - - - - Used for to correct the calibration for xsltTimestamp() - - - - - Process the xslt call-template node on the source node - - - - - - - - Check if the given prefix is one of the declared extensions - - - - - - Check if the resource is allowed to be read - - - - - - - Check if the resource is allowed to be written, if necessary makes some preliminary work like creating directories - - - - - - - Process the xslt choose node on the source node - - - - - - - - Unregister all global variables set up by the XSLT library - - - - Cleanup the state of the templates used by the stylesheet and the ones it imports. - - - - - Process the xslt comment node on the source node - - - - - - - - Precompile an attribute in a stylesheet, basically it checks if it is an attrubute value template, and if yes establish some structures needed to process it at transformation time. - - - - - - Compile the XSLT pattern and generates a list of precompiled form suitable for fast matching. [1] Pattern ::= LocationPathPattern | Pattern '|' LocationPathPattern - - - - - - - - - reorder the current node list accordingly to the set of sorting requirement provided by the array of nodes. - - - - - - Process the xslt copy node on the source node - - - - - - - - Do a copy of an namespace node. If @node is non-NULL the new namespaces are added automatically. This handles namespaces aliases - - - - - - - Do a copy of an namespace list. If @node is non-NULL the new namespaces are added automatically. This handles namespaces aliases - - - - - - - Process the xslt copy-of node on the source node - - - - - - - - Create a text node - - - - - - - - Create a result value tree - - - - - Process an debug node - - - - - - - - Dumps a list of the registered XSLT extension functions and elements - - - - - Get the current default debug tracing level mask - - - - Set the default debug tracing level mask - - - - - Find decimal-format by name - - - - - - reorder the current node list accordingly to the set of sorting requirement provided by the arry of nodes. - - - - - - - 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. - - - - - - - An xsltDocLoaderFunc is a signature for a function which can be registered to load document not provided by the compilation or transformation API themselve, for example when an xsl:import, xsl:include is found at compilation time or when a document() call is made at runtime. - - - - - - - - - Pre process an XSLT-1.1 document element - - - - - - - Process an EXSLT/XSLT-1.1 document element - - - - - - - - Implement the document() XSLT function node-set document(object, node-set?) - - - - - - reorder the current node list @list accordingly to the document order This function is slow, obsolete and should not be used anymore. - - - - - - - - - Deallocates an #xsltElemPreComp structure. - - - - - Process the xslt element node on the source node - - - - - - - - Implement the element-available() XSLT function boolean element-available(string) - - - - - - Process the given AVT, and return the new string value. - - - - - - - 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. - - - - - - - - Evaluate the global variables of a stylesheet. This need to be done on parsed stylesheets before starting to apply transformations - - - - - 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. - - - - - - - Check if an attribute value template has a static value, i.e. the attribute value does not contain expressions contained in curly braces ({}) - - - - - - - - - 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 - - - - - - - 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. - - - - - - Process the expression using XPath and evaluate the result as an XPath predicate - - - - - - - - Process the expression using XPath and get a string - - - - - - Process the expression using XPath, allowing to pass a namespace mapping context and get a string - - - - - - - - Looks up an extension element. @ctxt can be NULL to search only in module elements. - - - - - - - - - - - - - - A function called at initialization time of an XSLT extension module. - - - - - - Looks up an extension module element - - - - - - Looks up an extension module element pre-computation function - - - - - - Looks up an extension module function - - - - - - Looks up an extension module top-level element - - - - - - A function called at shutdown time of an XSLT extension module. - - - - - - - Try to find a document within the XSLT transformation context - - - - - - Find strip-space or preserve-space informations for an element respect the import precedence or the wildcards - - - - - - Finds the named template, apply import precedence rule. - - - - - - - Process the xslt for-each node on the source node - - - - - - - - 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. - - - - - - - - Implement the format-number() XSLT function string format-number(number, string, string?) - - - - - - Free up the memory associated to the attribute value templates - - - - - Free up the memory used by attribute sets - - - - - Free up the memory allocated by all the elements of @comp - - - - - Free the XSLT extension data - - - - - Free the keys associated to a document - - - - - Free up all the space used by the loaded documents - - - - - Free up the memory used by XSLT extensions in a stylesheet - - - - - Free up the data associated to the global variables its value. - - - - - Free up the memory used by XSLT keys in a stylesheet - - - - - Free up the memory used by namespaces aliases - - - - - Free all the registered result value tree of the transformation - - - - - Free up a security preference block - - - - - Free up the memory allocated by @elem - - - - - Free up all the space used by the loaded documents - - - - - Free up the memory allocated by all precomputed blocks - - - - - Free up the memory allocated by @sheet - - - - - Free up the memory used by xsltAddTemplate/xsltGetTemplate mechanism - - - - - Free up the memory allocated by @ctxt - - - - - Implement the function-available() XSLT function boolean function-available(string) - - - - - - Implement the node-set() XSLT function node-set node-set(result-tree) This function is available in libxslt, saxon or xt namespace. - - - - - - Implement the generate-id() XSLT function string generate-id(node-set?) - - - - - - 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. - - - - - - - - Get xslDebugStatus. - - - - Get the default security preference application-wide - - - - Retrieve the data associated to the extension module in this given transformation. - - - - - - looks up URI in extInfos of the stylesheet - - - - - - Lookup a key - - - - - - - - Find the right namespace value for this prefix, if needed create and add a new namespace decalaration on the node Handle namespace aliases - - - - - - - - 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. - - - - - - - Find the right namespace value for this prefix, if needed create and add a new namespace decalaration on the node Handle namespace aliases and make sure the prefix is not NULL, this is needed for attributes. - - - - - - - - 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() - - - - - 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. - - - - - - This function is similar to xsltGetQNameURI, but is used when @name is a dictionary entry. - - - - - - - Lookup the security option to get the callback checking function - - - - - - Find the right namespace value for this URI, if needed create and add a new namespace decalaration on the node - - - - - - - - - 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. - - - - - - - Read one UTF8 Char from @utf Function copied from libxml2 xmlGetUTF8Char() ... to discard ultimately and use the original API - - - - - - Provides the default state for XInclude processing - - - - - - - - - - - - Process the xslt if node on the source node - - - - - - - - Initialize the set of modules with registered stylesheet data - - - - - Computes all the keys tables for the current input document. Should be done before global varibales are initialized. - - - - - - 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. - - - - - - - - - Check if a string is ignorable - - - - - Implement the key() XSLT function node-set key(string, object) - - - - - - Try to load a document (not a stylesheet) within the XSLT transformation context - - - - - - Try to load a stylesheet document within the XSLT transformation context - - - - - - 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. - - - - - - - - - - - - - - Process and xsl:message construct - - - - - - - Read the stylesheet-prefix and result-prefix attributes, register them as well as the corresponding namespace. - - - - - - Checks whether that stylesheet requires white-space stripping - - - - - Register a new document, apply key computations - - - - - - Creates and initializes an #xsltElemPreComp - - - - - - - Create a new security preference block - - - - Register a new document, apply key computations - - - - - - Create a new XSLT Stylesheet - - - - Create a new XSLT TransformContext - - - - - - Find the next stylesheet in import precedence. - - - - - This is a hashtable scanner function to normalize the compiled steps of an imported stylesheet. - - - - - - - Process the xslt number node on the source node - - - - - - - - Convert one number. - - - - - - - parse an XSLT transformation param declaration and record its value. - - - - - - parse an XSLT transformation variable declaration and record its value. - - - - - - parse an XSLT stylesheet attribute-set element - - - - - - parse an XSLT transformation param declaration, compute its value but doesn't record it. - - - - - - parse an XSLT stylesheet building the associated structures - - - - - Load and parse an XSLT stylesheet - - - - - parse an XSLT stylesheet import element - - - - - - parse an XSLT stylesheet building the associated structures except the processing not needed for imported documents. - - - - - - parse an XSLT stylesheet include element - - - - - - parse an XSLT stylesheet output element and record information related to the stylesheet output - - - - - - parse an XSLT transformation param declaration and record its value. - - - - - - parse an XSLT stylesheet adding the associated structures - - - - - - parse an XSLT transformation variable declaration and record its value. - - - - - - parse a template content-model Clean-up the template content from unwanted ignorable blank nodes and process xslt:text - - - - - - Precomputes an extension module element - - - - - - - - - - - - - Display the context of an error. - - - - - - - Process the xslt processing-instruction node on the source node - - - - - - - - Apply the stylesheet to the document and dump the profiling to the given output. - - - - - - - - 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. - - - - - - - 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. - - - - - - Registers all default XSLT elements in this context - - - - - Registers the built-in extensions - - - - Registers all default XSLT functions in this context - - - - - Registers an extension element - - - - - - - - Registers an extension function - - - - - - - - Register an XSLT extension module to the library. - - - - - - - Registers an extension module element. - - - - - - - - Register an XSLT extension module to the library. - - - - - - - - - Registers an extension module function. - - - - - - - Registers an extension module top-level element. - - - - - - - Registers an extension namespace - - - - - - - Registers the built-in extensions. This function is deprecated, use xsltRegisterAllExtras instead. - - - - - Register the result value tree for destruction at the end of the processing - - - - - - Registers the test module - - - - Register the result value tree for destruction at the end of the context - - - - - - resolve the references between attribute sets. - - - - - 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 - - - - - - - - - - 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 - - - - - - - - - - - - Save the profiling informations on @output - - - - - - Save the result @result obtained by applying the @style stylesheet to an I/O output channel @buf - - - - - - - Save the result @result obtained by applying the @style stylesheet to an open file descriptor This does not close the descriptor. - - - - - - - Save the result @result obtained by applying the @style stylesheet to an open FILE * I/O. This does not close the FILE @file - - - - - - - Save the result @result obtained by applying the @style stylesheet to a file or @URL - - - - - - - - Save the result @result obtained by applying the @style stylesheet to a file or @URL - - - - - - - - Function used to always allow an operation - - - - - - - User provided function to check the value of a string like a file path or an URL ... - - - - - - - Function used to always forbid an operation - - - - - - - Change the default parser option passed by the XSLT engine to the parser when using document() loading. - - - - - - Set the security preference for a specific transformation - - - - - - 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 - - - - - - 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. - - - - - - This function sets the value of xslDebugStatus. - - - - - Set the default security preference application-wide - - - - - 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. - - - - - - 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. - - - - - - Set the new function to load document, if NULL it resets it to the default function. - - - - - Update the security option to use the new callback checking function - - - - - - - Function to reset the global handler for XSLT sorting. If the handler is NULL, the default sort function will be used. - - - - - 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. - - - - - - - Set whether XInclude should be processed on document being loaded by default - - - - - Shutdown the set of modules loaded - - - - - Shutdown the set of modules loaded - - - - - function attached to xsl:sort nodes, but this should not be called directly - - - - - - - - Signature of the function to use during sorting - - - - - - - Split QNames into prefix and local names, both allocated from a dictionnary. - - - - - - - A function called at initialization time of an XSLT extension module. - - - - - - A function called at shutdown time of an XSLT extension module. - - - - - - - Retrieve the data associated to the extension module in this given stylesheet. - - - - - - Precompute an XSLT stylesheet element - - - - - - Implement the system-property() XSLT function object system-property(string) - - - - - - Process the given node and return the new string value. - - - - - - Test whether the node matches one of the patterns in the list - - - - - - - Process the xslt text node on the source node - - - - - - - - Used for gathering profiling data - - - - - - - - - - Display and format an error messages, gives file, line, position and extra parameters, will use the specific transformation context if available - - - - - - - - - Signature of the function associated to elements part of the stylesheet language like xsl:if or xsl:apply-templates. - - - - - - - - Implement the unparsed-entity-uri() XSLT function string unparsed-entity-uri(string) - - - - - - Unregister an XSLT extension module from the library. - - - - - Unregisters an extension module element - - - - - - Unregisters an extension module function - - - - - - Unregisters an extension module top-level element - - - - - - Process the xslt value-of node on the source node - - - - - - - - Search in the Variable array of the context for the given variable value. - - - - - - - Compile an XPath expression - - - - - - This is the entry point when a function is needed by the XPath interpretor. - - - - - - - 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. - - - - - This is the entry point when a varibale is needed by the XPath interpretor. - - - - - - - diff --git a/src/tools/docbook/libxslt/doc/libxslt-refs.xml b/src/tools/docbook/libxslt/doc/libxslt-refs.xml deleted file mode 100644 index d8e33cebea..0000000000 --- a/src/tools/docbook/libxslt/doc/libxslt-refs.xml +++ /dev/null @@ -1,6538 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/doc/libxslt.xsa b/src/tools/docbook/libxslt/doc/libxslt.xsa deleted file mode 100644 index ff481fe826..0000000000 --- a/src/tools/docbook/libxslt/doc/libxslt.xsa +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Daniel Veillard - daniel@veillard.com - http://veillard.com/ - - - libxslt - 1.1.16 - May 01 2006 - http://xmlsoft.org/XSLT/ - - portability fixes: EXSLT date/time on Solaris and IRIX (Albert - Chin),HP-UX build (Albert Chin), - - build fixes: Python detection(Joseph Sacco), plugin configurei(Joel - Reed) - - bug fixes: pattern compilation fix(William Brack), EXSLT date/timefix - (Thomas Broyer), EXSLT function bug, potential loop on variableeval, - startup race (Christopher Palmer), debug statement left in python(Nic - Ferrier), various cleanup based on Coverity reports), error onOut of - memory condition (Charles Hardin), various namespace prefixesfixes - (Kasimier Buchcik), - - improvement: speed up sortingi, start of internals refactoring - (KasimierBuchcik) - - documentation: man page fixes and updates (Daniel Leidert) - - - - diff --git a/src/tools/docbook/libxslt/doc/newapi.xsl b/src/tools/docbook/libxslt/doc/newapi.xsl deleted file mode 100644 index 9b2e888d03..0000000000 --- a/src/tools/docbook/libxslt/doc/newapi.xsl +++ /dev/null @@ -1,719 +0,0 @@ - - - - - - - - - - - - - - - - libxslt - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - API Menu - -
    - - -
    - -
    - - - - - -
    - - - - - - - -
    -
    - -
    -
    - -
    - - - - - - - -
    -
    - API Indexes -
    -
    - -
    - - - - - - - -
    -
    - Related links -
    -
    - -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -    #define 
    -    
    -
    - - -
    -    Variable 
    -    
    -      
    -    
    -     
    -    
    -    
    -    
    -
    -
    -    
    -
    - - - -
    -    
    -      
    -	Enum 
    -	
    -	
    -
    -      
    -      
    -	Typedef 
    -	
    -	  
    -	
    -	 
    -	
    -	
    -
    -      
    -    
    -    
    -
    - - - -

    Enum

    -
    -      Enum 
    -      
    -       {
    -
    -      
    -        
    -            
    -        
    -         = 
    -        
    -        
    -	   : 
    -	  
    -	    
    -	  
    -        
    -        
    -
    -      
    -      }
    -
    -    
    -
    - - -
    -    Structure 
    - - - - The content of this structure is not made public by the API. - - -
    -
    - - -

    Structure

    -
    -    Structure 
    - { - - - The content of this structure is not made public by the API. - - - - - - - - - - - : - - - - - - - - } -
    -
    - - - -

    Macro:

    -
    #define 
    -

    - - - -

    - -
    - - - - - - -
    -    
    -      
    -    
    -    	
    -    
    -    
    -      	
    -    
    -    
    -      	
    -    
    -    	(
    -    
    -      void
    -    
    -    
    -      
    -        
    -      
    -       
    -      
    -      
    -        , 
    - - - - - - - -
    -
    - ) -
    - -
    - - - - - - -
    -    Function type: 
    -    
    -    
    -
    -    
    -      
    -    
    -    	
    -    
    -    
    -      	
    -    
    -    
    -      	
    -    
    -    	(
    -    
    -      void
    -    
    -    
    -      
    -        
    -      
    -       
    -      
    -      
    -        , 
    - - - - - - - -
    -
    - ) - -
    - - -
    - - - - - - -

    - - Function type: - -

    -
    -    Function type: 
    -    
    -    
    -
    -    
    -      
    -    
    -    	
    -    
    -    
    -      	
    -    
    -    
    -      	
    -    
    -    	(
    -    
    -      void
    -    
    -    
    -      
    -        
    -      
    -       
    -      
    -      
    -        , 
    - - - - - - - -
    -
    - ) - -
    -

    - - - -

    - -
    - - - - - - - - - - - - -
    : - - - -
    Returns: - - - -
    -
    -
    - - -
    - - - - - - -

    Function:

    -
    -    
    -      
    -    
    -    	
    -    
    -    
    -      	
    -    
    -    
    -      	
    -    
    -    	(
    -    
    -      void
    -    
    -    
    -      
    -        
    -      
    -       
    -      
    -      
    -        , 
    - - - - - - - -
    -
    - )
    - - -
    -

    - - - -

    - - -
    - - - - - - - - - - - - -
    : - - - -
    Returns: - - - -
    -
    -
    - - - - - - - - - - - -

    This module is deprecated

    -
    - -

    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - Module from - - - - - -
    -

    Table of Contents

    - -

    Description

    - - - -
    -
    - -

    Table of Contents

    - - - - - - - - - - - - - - - -

    Description

    - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - -
    - - - -
  • - - : - -
  • -
    - - - - Reference Manual for - -

    Table of Contents

    -
      - -
    -
    - - - - - -
    - - - Processing library , output directory is - - - - - - - - - - - - -
    diff --git a/src/tools/docbook/libxslt/doc/news.html b/src/tools/docbook/libxslt/doc/news.html deleted file mode 100644 index e811e45def..0000000000 --- a/src/tools/docbook/libxslt/doc/news.html +++ /dev/null @@ -1,497 +0,0 @@ - - -News
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    News

    Main Menu
    Related links
    API Indexes

    The change logdescribes the recents commitsto -the CVScode base.

    Those are the public releases made:

    1.1.17: Jun 6 2006

    • portability fixes: python detection
    • -
    • bug fixes: some regression tests, attribute/namespaces output (Kasimier - Buchcik), problem in mixed xsl:value-of and xsl:text uses (Kasimier)
    • -
    • improvements: internal refactoring (Kasimier Buchcik), use of the XPath - object cache in libxml2-2.6.25 (Kasimier)
    • -

    1.1.16: May 01 2006

    • portability fixes: EXSLT date/time on Solaris and IRIX (Albert - Chin),HP-UX build (Albert Chin),
    • -
    • build fixes: Python detection(Joseph Sacco), plugin configurei(Joel - Reed)
    • -
    • bug fixes: pattern compilation fix(William Brack), EXSLT date/timefix - (Thomas Broyer), EXSLT function bug, potential loop on variableeval, - startup race (Christopher Palmer), debug statement left in python(Nic - Ferrier), various cleanup based on Coverity reports), error onOut of - memory condition (Charles Hardin), various namespace prefixesfixes - (Kasimier Buchcik),
    • -
    • improvement: speed up sortingi, start of internals refactoring - (KasimierBuchcik)
    • -
    • documentation: man page fixes and updates (Daniel Leidert)
    • -

    1.1.15: Sep 04 2005

    • build fixes: Windows build cleanups and updates (Igor Zlatkovic),remove - jhbuild warnings
    • -
    • bug fixes: negative number formatting (William Brack), numberformatting - per mille definition (William Brack), XInclude default values(William), - text copy bugs (William), bug related to xmlXPathContext size,reuse - libxml2 memory management for text nodes, dictionnary text bug,forbid - variables in match (needs libxml2-2.6.21)
    • -
    • improvements: EXSLT dyn:map (Mark Vakoc),
    • -
    • documentation: EXSLT date and time functions namespace in man - (JonathanWakely)
    • -

    1.1.14: Apr 02 2005

    • bug fixes: text node on stylesheet document without a - dictionary(William Brack), more checking of XSLT syntax, calling - xsltInit()multiple times, mode values interning raised by Mark Vakoc, bug - inpattern matching with ancestors, bug in patterna matching with - cascadingselect, xinclude and document() problem, build outside of source - tree(Mike Castle)
    • -
    • improvement: added a --nodict mode to xsltproc to check problems - fordocuemtns without dictionnaries
    • -

    1.1.13: Mar 13 2005

    • build fixes: 64bits cleanup (William Brack), python 2.4 test - (William),LIBXSLT_VERSION_EXTRA on Windows (William), Windows makefiles - fixes (JoelReed), libgcrypt-devel requires for RPM spec.
    • -
    • bug fixes: exslt day-of-week-in-month (Sal Paradise), - xsl:call-templateshould not change the current template rule (William - Brack), evaluationof global variables (William Brack), RVT's in XPath - predicates (William),namespace URI on template names (Mark Vakoc), stat() - for Windows patch(Aleksey Gurtovoy), pattern expression fixes (William - Brack), out ofmemory detection misses (William), parserOptions - propagation (William),exclude-result-prefixes fix (William), // patten - fix (William).
    • -
    • extensions: module support (Joel Reed), dictionnary based - speedupstrying to get rid of xmlStrEqual as much as possible.
    • -
    • documentation: added Wiki (Joel Reed)
    • -

    1.1.12: Oct 29 2004

    • build fixes: warnings removal (William).
    • -
    • bug fixes: attribute document pointer fix (Mark Vakoc), exslt - datenegative periods (William Brack), generated tree structure - fixes,namespace lookup fix, use reentrant gmtime_r (William - Brack),exslt:funtion namespace fix (William), potential NULL pointer - reference(Dennis Dams, William), force string interning on - generateddocuments.
    • -
    • documentation: update of the second tutorial (Panagiotis Louridas), - addexslt doc in rpm packages, fix the xsltproc man page.
    • -

    1.1.11: Sep 29 2004

    • bug fixes: xsl:include problems (William Brack), UTF8 number - pattern(William), date-time validation (William), namespace fix - (William),various Exslt date fixes (William), error callback fixes, leak - withnamespaced global variable, attempt to fix a weird problem - #153137
    • -
    • improvements: exslt:date-sum tests (Derek Poon)
    • -
    • documentation: second tutorial by Panagiotis Lourida
    • -

    1.1.10: Aug 31 2004

    • build fix: NUL in c file blocking compilation on Solaris, Windows - build(Igor Zlatkovic)
    • -
    • fix: key initialization problem (William Brack)
    • -
    • documentation: fixed missing man page description for --path
    • -

    1.1.9: Aug 22 2004

    • build fixes: missing tests (William Brack), Python dependancies, - Pythonon 64bits boxes, --with-crypto flag (Rob Richards),
    • -
    • fixes: RVT key handling (William), Python binding (William and - SitsofeWheeler), key and XPath troubles (William), template priority on - imports(William), str:tokenize with empty strings (William), #default - namespacealias behaviour (William), doc ordering missing for main - document(William), 64bit bug (Andreas Schwab)
    • -
    • improvements: EXSLT date:sum added (Joel Reed), hook for - documentloading for David Hyatt, xsltproc --nodtdattr to avoid defaulting - DTDattributes, extend xsltproc --version with CVS stamp (William).
    • -
    • Documentation: web page problem reported by Oliver Stoeneberg
    • -

    1.1.8: July 5 2004

    • build fixes: Windows runtime options (Oliver Stoeneberg), Windowsbinary - package layout (Igor Zlatkovic), libgcrypt version test and - link(William)
    • -
    • documentation: fix libxslt namespace name in doc (William)
    • -
    • bug fixes: undefined namespace message (William Brack), search - engine(William), multiple namespace fixups (William), namespace fix for - keyevaluation (William), Python memory debug bindings,
    • -
    • improvements: crypto extensions for exslt (Joel Reed, William)
    • -

    1.1.7: May 17 2004

    • build fix: warning about localtime_r on Solaris
    • -
    • bug fix: UTF8 string tokenize (William Brack), subtle memorycorruption, - linefeed after comment at document level - (William),disable-output-escaping problem (William), pattern compilation - in deepimported stylesheets (William), namespace extension prefix - bug,libxslt.m4 bug (Edward Rudd), namespace lookup for attribute, - namespacedDOCTYPE name
    • -

    1.1.6: Apr 18 2004

    • 2 bug fixes about keys fixed one by Mark Vakoc
    • -

    1.1.5: Mar 23 2004

    • performance: use dictionnary lookup for variables
    • -
    • remove use of _private from source documents
    • -
    • cleanup of "make tests" output
    • -
    • bugfixes: AVT in local variables, use localtime_r to avoid - threadtroubles (William), dictionary handling bug (William), limited - number ofstubstitutions in AVT (William), tokenize fix for UTF-8 - (William),superfluous namespace (William), xsltproc error code - on<xsl:message> halt, OpenVMS fix, dictionnary reference - countingchange.
    • -

    1.1.4: Feb 23 2004

    • bugfixes: attributes without doc (Mariano Suárez-Alvarez), problem - withYelp, extension problem
    • -
    • display extension modules (Steve Little)
    • -
    • Windows compilation patch (Mark Vadoc), Mingw (Mikhail Grushinskiy)
    • -

    1.1.3: Feb 16 2004

    • Rewrote the Attribute Value Template code, new XPath - compilationinterfaces, dictionnary reuses for XSLT with potential for - seriousperformance improvements.
    • -
    • bug fixes: portability (William Brack), key() in node-set() - results(William), comment before doctype (William), math and node-set() - problems(William), cdata element and default namespace (William), - behaviour onunknown XSLT elements (Stefan Kost), priority of "//foo" - patterns(William), xsl:element and xsl:attribute QName check (William), - commentswith -- (William), attribute namespace (William), check for ?> - in PI(William)
    • -
    • Documentations: cleanup (John Fleck and William)
    • -
    • Python: patch for OS-X (Gianni Ceccarelli), enums export - (Stephanebidoul)
    • -

    1.1.2: Dec 24 2003

    • Documentation fixes (John Fleck, William Brack), EXSLT - documentation(William Brack)
    • -
    • Windows compilation fixes for MSVC and Mingw (Igor Zlatkovic)
    • -
    • Bug fixes: exslt:date returning NULL strings (William Brack),namespaces - output (William Brack), key and namespace definition problem,passing - options down to the document() parser, xsl:number fixes - (WilliamBrack)
    • -

    1.1.1: Dec 10 2003

    • code cleanup (William Brack)
    • -
    • Windows: Makefile improvements (Igor Zlatkovic)
    • -
    • documentation improvements: William Brack, libexslt man page - (JonathanWakely)
    • -
    • param in EXSLT functions (Shaun McCance)
    • -
    • XSLT debugging improvements (Mark Vakoc)
    • -
    • bug fixes: number formatting (Bjorn Reese), exslt:tokenize - (WilliamBrack), key selector parsing with | reported by Oleg - Paraschenko,xsl:element with computed namespaces (William Brack), - xslt:import/includerecursion detection (William Brack), exslt:function - used in keys (WilliamBrack), bug when CDATA_SECTION are foun in the tree - (William Brack),entities handling when using XInclude.
    • -

    1.1.0: Nov 4 2003

    • Removed DocBook SGML broken support
    • -
    • fix xsl:key to work with PIs
    • -
    • Makefile and build improvement (Graham Wilson), build cleanup - (WilliamBrack), macro fix (Justin Fletcher), build outside of source tree - (RoumenPetrov)
    • -
    • xsltproc option display fix (Alexey Efimov), --load-trace - (CrutcherDunnavant)
    • -
    • Python: never use stdout for error
    • -
    • extension memory error fix (Karl Eichwalder)
    • -
    • header path fixes (Steve Ball)
    • -
    • added saxon:line-number() to libexslt (Brett Kail)
    • -
    • Fix some tortuous template problems when using predicates - (WilliamBrack)
    • -
    • Debugger status patch (Kasimier Buchcik)
    • -
    • Use new libxml2-2.6.x APIs for faster processing
    • -
    • Make sure xsl:sort is empty
    • -
    • Fixed a bug in default processing of attributes
    • -
    • Removes the deprecated breakpoint library
    • -
    • detect invalid names on templates (William Brack)
    • -
    • fix exslt:document (and similar) base handling problem
    • -

    1.0.33: Sep 12 2003

    This is a bugfix only release

    • error message missing argument (William Brack)
    • -
    • mode not cascaded in template fallbacks (William Brack)
    • -
    • catch redefinition of parameter/variables (William Brack)
    • -
    • multiple keys with same namespace name (William Brack)
    • -
    • patch for compilation using MingW on Windows (Mikhail Grushinskiy)
    • -
    • header export macros for Windows (Igor Zlatkovic)
    • -
    • cdata-section-elements handling of namespaced names
    • -
    • compilation without libxml2 XPointer support (Mark Vadoc)
    • -
    • apply-templates crash (William Brack)
    • -
    • bug with imported templates (William Brack)
    • -
    • imported attribute-sets merging bug (DocBook) (William Brack)
    • -

    1.0.32: Aug 9 2003

    • bugfixes: xsltSaveResultToFile() python binding (Chris Jaeger), - EXSLTfunction (William Brack), RVT for globals (William Brack), EXSLT - date(William Brack), -

      speed of large text output, xsl:copy with attributes, strip-space - andnamespaces prefix, fix for --path xsltproc option, EXST:tokenize - (ShaunMcCance), EXSLT:seconds (William Brack), sort with multiple keys - (WilliamBrack), checking of { and } for attribute value templates - (WilliamBrack)

      -
    • -
    • Python bindings for extension elements (Sean Treadway)
    • -
    • EXSLT:split added (Shaun McCance)
    • -
    • portability fixes for HP-UX/Solaris/IRIX (William Brack)
    • -
    • doc cleanup
    • -

    1.0.31: Jul 6 2003

    • bugfixes: xsl:copy on namespace nodes, AVT for xsl:sort order, fix - forthe debugger (Keith Isdale), output filename limitation, trio.h - andtriodef.h added (Albert Chin), EXSLT node-set (Peter - Breitenlohner),xsltChoose and whitespace (Igor Zlatkovic), -

      stylesheet compilation (Igor Zlatkovic), NaN and sort (William - Brack),RVT bug introduced in 1.0.30

      -
    • -
    • avoid generating &quot; (fix in libxml2-2.5.8)
    • -
    • fix 64bit cleaness problem and compilation troubles introduced - in1.0.30
    • -
    • Windows makefile generation (Igor Zlatkovic)
    • -
    • HP-UX portability fix
    • -

    1.0.30: May 4 2003

    • Fixes and new APIs to handle Result Value Trees and avoid leaks
    • -
    • Fixes for: EXSLT math pow() function (Charles Bozeman), globalparameter - and global variables mismatch, a segfault on patterncompilation errors, - namespace copy in xsl:copy-of, python generatorproblem, OpenVMS trio - update, premature call to xsltFreeStackElem (Igor),current node when - templates applies to attributes
    • -

    1.0.29: Apr 1 2003

    • performance improvements especially for large flat documents
    • -
    • bug fixes: Result Value Tree handling, XML IDs, keys(), extra - namespacedeclarations with xsl:elements.
    • -
    • portability: python and trio fixes (Albert Chin), python on Solaris(Ben - Phillips)
    • -

    1.0.28: Mar 24 2003

    • fixed node() in patterns semantic.
    • -
    • fixed a memory access problem in format-number()
    • -
    • fixed stack overflow in recursive global variable or params
    • -
    • cleaned up Result Value Tree handling, and fixed a couple of old bugsin - the process
    • -

    1.0.27: Feb 24 2003

    • bug fixes: spurious xmlns:nsX="" generation, serialization bug - (inlibxml2), a namespace copy problem, errors in the RPM spec prereqs
    • -
    • Windows path canonicalization and document cache fix (Igor)
    • -

    1.0.26: Feb 10 2003

    • Fixed 3 serious bugs in document() and stylesheet compilation - whichcould lead to a crash
    • -

    1.0.25: Feb 5 2003

    • Bug fix: double-free for standalone stylesheets introduced in 1.0.24, - Csyntax pbm, 3 bugs reported by Eric van der Vlist
    • -
    • Some XPath and XInclude related problems were actually fixed - inlibxml2-2.5.2
    • -
    • Documentation: emphasize taht --docbook is not for XML docs.
    • -

    1.0.24: Jan 14 2003

    • bug fixes: imported global varables, python bindings (Stéphane - Bidoul),EXSLT memory leak (Charles Bozeman), namespace generation - onxsl:attribute, space handling with imports (Daniel - Stodden),extension-element-prefixes (Josh Parsons), comments within - xsl:text (MattSergeant), superfluous xmlns generation, XInclude related - bug fornumbering, EXSLT strings (Alexey Efimov), attribute-sets - computation onimports, extension module init and shutdown callbacks not - called
    • -
    • HP-UX portability (Alexey Efimov), Windows makefiles (Igor and - StephaneBidoul), VMS makefile updates (Craig A. Berry)
    • -
    • adds xsltGetProfileInformation() (Michael Rothwell)
    • -
    • fix the API generation scripts
    • -
    • API to provide the sorting routines (Richard Jinks)
    • -
    • added XML description of the EXSLT API
    • -
    • added ESXLT URI (un)escaping (Jörg Walter)
    • -
    • Some memory leaks have been found and fixed
    • -
    • document() now support fragment identifiers in URIs
    • -

    1.0.23: Nov 17 2002

    • Windows build cleanup (Igor)
    • -
    • Unix build and RPM packaging cleanup
    • -
    • Improvement of the python bindings: extension functions and - activatingEXSLT
    • -
    • various bug fixes: number formatting, portability for bounded - stringfunctions, CData nodes, key(), @*[...] patterns
    • -
    • Documentation improvements (John Fleck)
    • -
    • added libxslt.m4 (Thomas Schraitle)
    • -

    1.0.22: Oct 18 2002

    • Updates on the Windows Makefiles
    • -
    • Added a security module, and a related set of new options - toxsltproc
    • -
    • Allowed per transformation error handler.
    • -
    • Fixed a few bugs: node() semantic, URI escaping, media-type, - attributelists
    • -

    1.0.21: Sep 26 2002

    • Bug fixes: match="node()", date:difference() (Igor and CharlieBozeman), - disable-output-escaping
    • -
    • Python bindings: style.saveResultToString() from Ralf Mattes
    • -
    • Logos from Marc Liyanage
    • -
    • Mem leak fix from Nathan Myers
    • -
    • Makefile: DESTDIR fix from Christophe Merlet, AMD x86_64 - (Mandrake),Windows (Igor), Python detection
    • -
    • Documentation improvements: John Fleck
    • -

    1.0.20: Aug 23 2002

    • Windows makefile updates (Igor) and x86-64 (Frederic Crozat)
    • -
    • fixed HTML meta tag saving for Mac/IE users
    • -
    • possible leak patches from Nathan Myers
    • -
    • try to handle document('') as best as possible depending in - thecases
    • -
    • Fixed the DocBook stylesheets handling problem
    • -
    • Fixed a few XSLT reported errors
    • -

    1.0.19: July 6 2002

    • EXSLT: dynamic functions and date support bug fixes (Mark Vakoc)
    • -
    • xsl:number fix: Richard Jinks
    • -
    • xsl:format-numbers fix: Ken Neighbors
    • -
    • document('') fix: bug pointed by Eric van der Vlist
    • -
    • xsl:message with terminate="yes" fixes: William Brack
    • -
    • xsl:sort order support added: Ken Neighbors
    • -
    • a few other bug fixes, some of them requiring the latest version - oflibxml2
    • -

    1.0.18: May 27 2002

    • a number of bug fixes: attributes, extra namespace - declarations(DocBook), xsl:include crash (Igor), documentation (Christian - Cornelssen,Charles Bozeman and Geert Kloosterman), element-available - (RichardJinks)
    • -
    • xsltproc can now list teh registered extensions thanks to MarkVakoc
    • -
    • there is a new API to save directly to a stringxsltSaveResultToString() - by Morus Walter
    • -
    • specific error registration function for the python API
    • -

    1.0.17: April 29 2002

    • cleanup in code, XSLT debugger support and Makefiles for Windows - byIgor
    • -
    • a C++ portability fix by Mark Vakoc
    • -
    • EXSLT date improvement and regression tests by Charles Bozeman
    • -
    • attempt to fix a bug in xsltProcessUserParamInternal
    • -

    1.0.16: April 15 2002

    • Bug fixes: strip-space, URL in HTML output, error when xsltproc - can'tsave
    • -
    • portability fixes: OSF/1, IEEE on alphas, Windows, Python bindings
    • -

    1.0.15: Mar 25 2002

    • Bugfixes: XPath, python Makefile, recursive attribute sets, - @foo[..]templates
    • -
    • Debug of memory alocation with valgind
    • -
    • serious profiling leading to significant improvement for - DocBookprocessing
    • -
    • revamp of the Windows build
    • -

    1.0.14: Mar 18 2002

    • Improvement in the XPath engine (libxml2-2.4.18)
    • -
    • Nasty bug fix related to exslt:node-set
    • -
    • Fixed the python Makefiles, cleanup of doc comments, Windowsportability - fixes
    • -

    1.0.13: Mar 8 2002

    • a number of bug fixes including "namespace node have no parents"
    • -
    • Improvement of the Python bindings
    • -
    • Charles Bozeman provided fixes and regression tests for exslt - datefunctions.
    • -

    1.0.12: Feb 11 2002

    • Fixed the makefiles especially the python module ones
    • -
    • half a dozen bugs fixes including 2 old ones
    • -

    1.0.11: Feb 8 2002

    • Change of Licence to the MITLicence
    • -
    • Added a beta version of the Python bindings, including support toextend - the engine with functions written in Python
    • -
    • A number of bug fixes
    • -
    • Charlie Bozeman provided more EXSLT functions
    • -
    • Portability fixes
    • -

    1.0.10: Jan 14 2002

    • Windows fixes for Win32 from Igor
    • -
    • Fixed the Solaris compilation trouble (Albert)
    • -
    • Documentation changes and updates: John Fleck
    • -
    • Added a stringparam option to avoid escaping hell at the shelllevel
    • -
    • A few bug fixes
    • -

    1.0.9: Dec 7 2001

    • Makefile patches from Peter Williams
    • -
    • attempt to fix the compilation problem associated to prelinking
    • -
    • obsoleted libxsltbreakpoint now deprecated and frozen to 1.0.8 API
    • -
    • xsltproc return codes are now significant, John Fleck updated - thedocumentation
    • -
    • patch to allow as much as 40 steps in patterns (Marc Tardif), should - bemade dynamic really
    • -
    • fixed a bug raised by Nik Clayton when using doctypes with - HTMLoutput
    • -
    • patches from Keith Isdale to interface with xsltdebugger
    • -

    1.0.8: Nov 26 2001

    • fixed an annoying header problem, removed a few bugs and some - codecleanup
    • -
    • patches for Windows and update of Windows Makefiles by Igor
    • -
    • OpenVMS port instructions from John A Fotheringham
    • -
    • fixed some Makefiles annoyance and libraries prelinkinginformations
    • -

    1.0.7: Nov 10 2001

    • remove a compilation problem with LIBXSLT_PUBLIC
    • -
    • Finishing the integration steps for Keith Isdale debugger
    • -
    • fixes the handling of indent="no" on HTML output
    • -
    • fixes on the configure script and RPM spec file
    • -

    1.0.6: Oct 30 2001

    • bug fixes on number formatting (Thomas), date/time functions - (BruceMiller)
    • -
    • update of the Windows Makefiles (Igor)
    • -
    • fixed DOCTYPE generation rules for HTML output (me)
    • -

    1.0.5: Oct 10 2001

    • some portability fixes, including Windows makefile updates fromIgor
    • -
    • fixed a dozen bugs on XSLT and EXSLT (me and Thomas Broyer)
    • -
    • support for Saxon's evaluate and expressions extensions added - (initialcontribution from Darren Graves)
    • -
    • better handling of XPath evaluation errors
    • -

    1.0.4: Sep 12 2001

    • Documentation updates from John fleck
    • -
    • bug fixes (DocBook FO generation should be fixed) and - portabilityimprovements
    • -
    • Thomas Broyer improved the existing EXSLT support and added String,Time - and Date core functions support
    • -

    1.0.3: Aug 23 2001

    • XML Catalog support see the doc
    • -
    • New NaN/Infinity floating point code
    • -
    • A few bug fixes
    • -

    1.0.2: Aug 15 2001

    • lot of bug fixes, increased the testsuite
    • -
    • a large chunk of EXSLT is implemented
    • -
    • improvements on the extension framework
    • -
    • documentation improvements
    • -
    • Windows MSC projects files should be up-to-date
    • -
    • handle attributes inherited from the DTD by default
    • -

    1.0.1: July 24 2001

    • initial EXSLT framework
    • -
    • better error reporting
    • -
    • fixed the profiler on Windows
    • -
    • bug fixes
    • -

    1.0.0: July 10 2001

    • a lot of cleanup, a lot of regression tests added or fixed
    • -
    • added a documentation for writingextensions
    • -
    • fixed some variable evaluation problems (with William)
    • -
    • added profiling of stylesheet execution accessible as the - xsltproc--profile option
    • -
    • fixed element-available() and the implementation of the variouschunking - methods present, Norm Walsh provided a lot of feedback
    • -
    • exclude-result-prefixes and namespaces output should now work - asexpected
    • -
    • added support of embedded stylesheet as described in section 2.7 of - thespec
    • -

    0.14.0: July 5 2001

    • lot of bug fixes, and code cleanup
    • -
    • completion of the little XSLT-1.0 features left unimplemented
    • -
    • Added and implemented the extension API suggested by Thomas Broyer
    • -
    • the Windows MSC environment should be complete
    • -
    • tested and optimized with a really large document (DocBook - DefinitiveGuide) libxml/libxslt should really be faster on serious - workloads
    • -

    0.13.0: June 26 2001

    • lots of cleanups
    • -
    • fixed a C++ compilation problem
    • -
    • couple of fixes to xsltSaveTo()
    • -
    • try to fix Docbook-xslt-1.4 and chunking, updated the regression - testwith them
    • -
    • fixed pattern compilation and priorities problems
    • -
    • Patches for Windows and MSC project mostly contributed by Yon Derek
    • -
    • update to the Tutorial by John Fleck
    • -
    • William fixed bugs in templates and for-each functions
    • -
    • added a new interface xsltRunStylesheet() for a more flexible - output(incomplete), added -o option to xsltproc
    • -

    0.12.0: June 18 2001

    • fixed a dozen of bugs reported
    • -
    • HTML generation should be quite better (requires libxml-2.3.11 - upgradetoo)
    • -
    • William fixed some problems with document()
    • -
    • Fix namespace nodes selection and copy (requires libxml-2.3.11 - upgradetoo)
    • -
    • John Fleck added atutorial
    • -
    • Fixes for namespace handling when evaluating variables
    • -
    • XInclude global flag added to process XInclude on document() - ifrequested
    • -
    • made xsltproc --version more detailed
    • -

    0.11.0: June 1 2001

    Mostly a bug fix release.

    • integration of catalogs from xsltproc
    • -
    • added --version to xsltproc for bug reporting
    • -
    • fixed errors when handling ID in external parsed entities
    • -
    • document() should hopefully work correctly but ...
    • -
    • fixed bug with PI and comments processing
    • -
    • William fixed the XPath string functions when using unicode
    • -

    0.10.0: May 19 2001

    • cleanups to make stylesheet read-only (not 100% complete)
    • -
    • fixed URI resolution in document()
    • -
    • force all XPath expression to be compiled at stylesheet parsing - time,even if unused ...
    • -
    • Fixed HTML default output detection
    • -
    • Fixed double attribute generation #54446
    • -
    • Fixed {{ handling in attributes #54451
    • -
    • More tests and speedups for DocBook document transformations
    • -
    • Fixed a really bad race like bug in xsltCopyTreeList()
    • -
    • added a documentation on the libxslt internals
    • -
    • William Brack and Bjorn Reese improved format-number()
    • -
    • Fixed multiple sort, it should really work now
    • -
    • added a --docbook option for SGML DocBook input (hackish)
    • -
    • a number of other bug fixes and regression test added as people - weresubmitting them
    • -

    0.9.0: May 3 2001

    • lot of various bugfixes, extended the regression suite
    • -
    • xsltproc should work with multiple params
    • -
    • added an option to use xsltproc with HTML input
    • -
    • improved the stylesheet compilation, processing of complex - stylesheetsshould be faster
    • -
    • using the same stylesheet for concurrent processing on - multithreadedprograms should work now
    • -
    • fixed another batch of namespace handling problems
    • -
    • Implemented multiple level of sorting
    • -

    0.8.0: Apr 22 2001

    • fixed ansidecl.h problem
    • -
    • fixed unparsed-entity-uri() and generate-id()
    • -
    • sort semantic fixes and priority prob from William M. Brack
    • -
    • fixed namespace handling problems in XPath expression - computations(requires libxml-2.3.7)
    • -
    • fixes to current() and key()
    • -
    • other, smaller fixes, lots of testing with N Walsh DocBook - HTMLstylesheets
    • -

    0.7.0: Apr 10 2001

    • cleanup using stricter compiler flags
    • -
    • command line parameter passing
    • -
    • fix to xsltApplyTemplates from William M. Brack
    • -
    • added the XSLTMark in the regression tests as well as document()
    • -

    0.6.0: Mar 22 2001

    • another beta
    • -
    • requires 2.3.5, which provide XPath expression compilation support
    • -
    • document() extension should function properly
    • -
    • fixed a number or reported bugs
    • -

    0.5.0: Mar 10 2001

    • fifth beta
    • -
    • some optimization work, for the moment 2 XSLT transform cannot use - thesame stylesheet at the same time (to be fixed)
    • -
    • fixed problems with handling of tree results
    • -
    • fixed a reported strip-spaces problem
    • -
    • added more reported/fixed bugs to the test suite
    • -
    • incorporated William M. Brack fix for imports and global variables - aswell as patch for with-param support in apply-templates
    • -
    • a bug fix on for-each
    • -

    0.4.0: Mar 1 2001

    • fourth beta test, released at the same time of libxml2-2.3.3
    • -
    • bug fixes
    • -
    • some optimization
    • -
    • started implement extension support, not finished
    • -
    • implemented but not tested multiple file output
    • -

    0.3.0: Feb 24 2001

    • third beta test, released at the same time of libxml2-2.3.2
    • -
    • lot of bug fixes
    • -
    • some optimization
    • -
    • added DocBook XSL based testsuite
    • -

    0.2.0: Feb 15 2001

    • second beta version, released at the same time as libxml2-2.3.1
    • -
    • getting close to feature completion, lot of bug fixes, some in the - HTMLand XPath support of libxml
    • -
    • start becoming usable for real work. This version can now regeneratethe - XML 2e HTML from the original XML sources and the associatedstylesheets - (in section I of the - XMLREC)
    • -
    • Still misses extension element/function/prefixes support. Support - ofkey() and document() is not complete
    • -

    0.1.0: Feb 8 2001

    • first beta version, released at the same time as libxml2-2.3.0
    • -
    • lots of bug fixes, first "testing" version, but incomplete
    • -

    0.0.1: Jan 25 2001

    • first alpha version released at the same time as libxml2-2.2.12
    • -
    • Framework in place, should work on simple examples, but far from - beingfeature complete
    • -

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/news.xsl b/src/tools/docbook/libxslt/doc/news.xsl deleted file mode 100644 index 4ec2bc5211..0000000000 --- a/src/tools/docbook/libxslt/doc/news.xsl +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - NEWS file for libxslt - - Note that this is automatically generated from the news webpage at: - http://xmlsoft.org/XSLT/news.html - - - - - - - - - : - - - - - - - - - - - - - - - - - at - - - - - - - diff --git a/src/tools/docbook/libxslt/doc/node.gif b/src/tools/docbook/libxslt/doc/node.gif deleted file mode 100644 index 158e9215c7..0000000000 Binary files a/src/tools/docbook/libxslt/doc/node.gif and /dev/null differ diff --git a/src/tools/docbook/libxslt/doc/object.gif b/src/tools/docbook/libxslt/doc/object.gif deleted file mode 100644 index f8cc29502d..0000000000 Binary files a/src/tools/docbook/libxslt/doc/object.gif and /dev/null differ diff --git a/src/tools/docbook/libxslt/doc/processing.gif b/src/tools/docbook/libxslt/doc/processing.gif deleted file mode 100644 index 5533f893a0..0000000000 Binary files a/src/tools/docbook/libxslt/doc/processing.gif and /dev/null differ diff --git a/src/tools/docbook/libxslt/doc/python.html b/src/tools/docbook/libxslt/doc/python.html deleted file mode 100644 index b48387fb16..0000000000 --- a/src/tools/docbook/libxslt/doc/python.html +++ /dev/null @@ -1,167 +0,0 @@ - - -Python and bindings
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    Python and bindings

    Main Menu
    Related links
    API Indexes

    There is a number of language bindings and wrappers available for -libxml2,the list below is not exhaustive. Please contact the xml-bindings@gnome.org(archives) inorder to -get updates to this list or to discuss the specific topic of libxml2or -libxslt wrappers or bindings:

    The libxslt Python module depends on the libxml2 Pythonmodule.

    The distribution includes a set of Python bindings, which are garanteed -tobe maintained as part of the library in the future, though the -Pythoninterface have not yet reached the completeness of the C API.

    Stéphane -Bidoulmaintains a -Windows portof the Python bindings.

    Note to people interested in building bindings, the API is formalized asan XML API description filewhich allows toautomate -a large part of the Python bindings, this includes functiondescriptions, -enums, structures, typedefs, etc... The Python script used tobuild the -bindings is python/generator.py in the source distribution.

    To install the Python bindings there are 2 options:

    • If you use an RPM based distribution, simply install the libxml2-pythonRPMand - the libxslt-pythonRPM.
    • -
    • Otherwise use the libxml2-pythonmodule - distributioncorresponding to your installed version oflibxml2 and - libxslt. Note that to install it you will need both libxml2and libxslt - installed and run "python setup.py build install" in themodule tree.
    • -

    The distribution includes a set of examples and regression tests for -thepython bindings in the python/testsdirectory. Here are -someexcepts from those tests:

    basic.py:

    This is a basic test of XSLT interfaces: loading a stylesheet and -adocument, transforming the document and saving the result.

    import libxml2
    -import libxslt
    -
    -styledoc = libxml2.parseFile("test.xsl")
    -style = libxslt.parseStylesheetDoc(styledoc)
    -doc = libxml2.parseFile("test.xml")
    -result = style.applyStylesheet(doc, None)
    -style.saveResultToFilename("foo", result, 0)
    -style.freeStylesheet()
    -doc.freeDoc()
    -result.freeDoc()

    The Python module is called libxslt, you will also need the libxml2 -modulefor the operations on XML trees. Let's have a look at the objects -manipulatedin that example and how is the processing done:

    • styledoc: is a libxml2 document tree. It is obtained - byparsing the XML file "test.xsl" containing the stylesheet.
    • -
    • style: this is a precompiled stylesheet ready to be usedby - the following transformations (note the plural form, - multipletransformations can resuse the same stylesheet).
    • -
    • doc: this is the document to apply the transformation - to.In this case it is simply generated by parsing it from a file but - anyother processing is possible as long as one get a libxml2 Doc. Note - thatHTML tree are suitable for XSLT processing in libxslt. This is - actuallyhow this page is generated !
    • -
    • result: this is a document generated by applying - thestylesheet to the document. Note that some of the stylesheet - informationsmay be related to the serialization of that document and as - in thisexample a specific saveResultToFilename() method of the stylesheet - shouldbe used to save it to a file (in that case to "foo").
    • -

    Also note the need to explicitely deallocate documents with -freeDoc()except for the stylesheet document which is freed when its compiled -form isgarbage collected.

    extfunc.py:

    This one is a far more complex test. It shows how to modify the -behaviourof an XSLT transformation by passing parameters and how to extend -the XSLTengine with functions defined in python:

    import libxml2
    -import libxslt
    -import string
    -
    -nodeName = None
    -def f(ctx, str):
    -    global nodeName
    -
    -    #
    -    # Small check to verify the context is correcly accessed
    -    #
    -    try:
    -        pctxt = libxslt.xpathParserContext(_obj=ctx)
    -        ctxt = pctxt.context()
    -        tctxt = ctxt.transformContext()
    -        nodeName = tctxt.insertNode().name
    -    except:
    -        pass
    -
    -    return string.upper(str)
    -
    -libxslt.registerExtModuleFunction("foo", "http://example.com/foo", f)

    This code defines and register an extension function. Note that -thefunction can be bound to any name (foo) and how the binding is -alsoassociated to a namespace name "http://example.com/foo". From an XSLT -pointof view the function just returns an upper case version of the string -passedas a parameter. But the first part of the function also read some -contextualinformation from the current XSLT processing environement, in that -case itlooks for the current insertion node in the resulting output (either -theresulting document or the Result Value Tree being generated), and saves it -toa global variable for checking that the access actually worked.

    For more informations on the xpathParserContext and -transformContextobjects check the libray internals -description.The pctxt is actually an object from a class derived from -thelibxml2.xpathParserContext() with just a couple more properties including -thepossibility to look up the XSLT transformation context from the -XPathcontext.

    styledoc = libxml2.parseDoc("""
    -<xsl:stylesheet version='1.0'
    -  xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
    -  xmlns:foo='http://example.com/foo'
    -  xsl:exclude-result-prefixes='foo'>
    -
    -  <xsl:param name='bar'>failure</xsl:param>
    -  <xsl:template match='/'>
    -    <article><xsl:value-of select='foo:foo($bar)'/></article>
    -  </xsl:template>
    -</xsl:stylesheet>
    -""")

    Here is a simple example of how to read an XML document from a -pythonstring with libxml2. Note how this stylesheet:

    • Uses a global parameter bar
    • -
    • Reference the extension function f
    • -
    • how the Namespace name "http://example.com/foo" has to be bound to - aprefix
    • -
    • how that prefix is excluded from the output
    • -
    • how the function is called from the select
    • -
    style = libxslt.parseStylesheetDoc(styledoc)
    -doc = libxml2.parseDoc("<doc/>")
    -result = style.applyStylesheet(doc, { "bar": "'success'" })
    -style.freeStylesheet()
    -doc.freeDoc()

    that part is identical, to the basic example except that thetransformation -is passed a dictionnary of parameters. Note that the stringpassed "success" -had to be quoted, otherwise it is interpreted as an XPathquery for the childs -of root named "success".

    root = result.children
    -if root.name != "article":
    -    print "Unexpected root node name"
    -    sys.exit(1)
    -if root.content != "SUCCESS":
    -    print "Unexpected root node content, extension function failed"
    -    sys.exit(1)
    -if nodeName != 'article':
    -    print "The function callback failed to access its context"
    -    sys.exit(1)
    -
    -result.freeDoc()

    That part just verifies that the transformation worked, that the -parametergot properly passed to the engine, that the function f() got called -and thatit properly accessed the context to find the name of the insertion -node.

    pyxsltproc.py:

    this module is a bit too long to be described there but it is basically -arewrite of the xsltproc command line interface of libxslt in Python. -Itprovides nearly all the functionalities of xsltproc and can be used as a -basemodule to write Python customized XSLT processors. One of the thing to -noticeare:

    libxml2.lineNumbersDefault(1)
    -libxml2.substituteEntitiesDefault(1)

    those two calls in the main() function are needed to force the -libxml2processor to generate DOM trees compliant with the XPath data -model.

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/doc/redhat.gif b/src/tools/docbook/libxslt/doc/redhat.gif deleted file mode 100644 index eff3d73069..0000000000 Binary files a/src/tools/docbook/libxslt/doc/redhat.gif and /dev/null differ diff --git a/src/tools/docbook/libxslt/doc/search.xml b/src/tools/docbook/libxslt/doc/search.xml deleted file mode 100644 index 1d499f3e07..0000000000 --- a/src/tools/docbook/libxslt/doc/search.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/doc/site.xsl b/src/tools/docbook/libxslt/doc/site.xsl deleted file mode 100644 index 50fc7a1cf4..0000000000 --- a/src/tools/docbook/libxslt/doc/site.xsl +++ /dev/null @@ -1,463 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - intro.html - - - docs.html - - - bugs.html - - - help.html - - - help.html - - - downloads.html - - - news.html - - - contribs.html - - - xsltproc2.html - - - API.html - - - extensions.html - - - internals.html - - - docbook.html - - - FAQ.html - - - python.html - - - unknown.html - - - - - - - - - -
    - - -
    - -
    - - - - - - - - - - - - - - -
    - - - - - - - -
    -
    - -
    -
    - -
    - - - - - - - -
    -
    - Related links -
    -
    - -
    - - - - - - - -
    -
    - API Indexes -
    -
    - -
    -
    -
    - - - - <xsl:apply-templates/> - - - - - - - - - - - - - - - - - - - - - -
    - Action against software patents - - Gnome2 Logo - W3C logo - Red Hat Logo -
    - Made with Libxslt Logo -
    -
    - - - - -
    - - - - -
    - - - - - - -
    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - -
    - - - - - - -
    - - - - -
    - - - - -
    - -

    Daniel Veillard

    -
    -
    -
    -
    -
    - - -
    -
    diff --git a/src/tools/docbook/libxslt/doc/smallfootonly.gif b/src/tools/docbook/libxslt/doc/smallfootonly.gif deleted file mode 100644 index ddbb9eee12..0000000000 Binary files a/src/tools/docbook/libxslt/doc/smallfootonly.gif and /dev/null differ diff --git a/src/tools/docbook/libxslt/doc/stylesheet.gif b/src/tools/docbook/libxslt/doc/stylesheet.gif deleted file mode 100644 index 5250d66cc5..0000000000 Binary files a/src/tools/docbook/libxslt/doc/stylesheet.gif and /dev/null differ diff --git a/src/tools/docbook/libxslt/doc/templates.gif b/src/tools/docbook/libxslt/doc/templates.gif deleted file mode 100644 index 39b3c49637..0000000000 Binary files a/src/tools/docbook/libxslt/doc/templates.gif and /dev/null differ diff --git a/src/tools/docbook/libxslt/doc/tutorial/libxslt_tutorial.c b/src/tools/docbook/libxslt/doc/tutorial/libxslt_tutorial.c deleted file mode 100644 index 93563698a2..0000000000 --- a/src/tools/docbook/libxslt/doc/tutorial/libxslt_tutorial.c +++ /dev/null @@ -1,98 +0,0 @@ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -extern int xmlLoadExtDtdDefaultValue; - -static void usage(const char *name) { - printf("Usage: %s [options] stylesheet file [file ...]\n", name); - printf(" --param name value : pass a (parameter,value) pair\n"); - -} - -int -main(int argc, char **argv) { - int i; - const char *params[16 + 1]; - int nbparams = 0; - xsltStylesheetPtr cur = NULL; - xmlDocPtr doc, res; - - if (argc <= 1) { - usage(argv[0]); - return(1); - } - - - for (i = 1; i < argc; i++) { - if (argv[i][0] != '-') - break; - if ((!strcmp(argv[i], "-param")) || - (!strcmp(argv[i], "--param"))) { - i++; - params[nbparams++] = argv[i++]; - params[nbparams++] = argv[i]; - if (nbparams >= 16) { - fprintf(stderr, "too many params\n"); - return (1); - } - } else { - fprintf(stderr, "Unknown option %s\n", argv[i]); - usage(argv[0]); - return (1); - } - } - - params[nbparams] = NULL; - xmlSubstituteEntitiesDefault(1); - xmlLoadExtDtdDefaultValue = 1; - cur = xsltParseStylesheetFile((const xmlChar *)argv[i]); - i++; - doc = xmlParseFile(argv[i]); - res = xsltApplyStylesheet(cur, doc, params); - xsltSaveResultToFile(stdout, res, cur); - - xsltFreeStylesheet(cur); - xmlFreeDoc(res); - xmlFreeDoc(doc); - - xsltCleanupGlobals(); - xmlCleanupParser(); - return(0); - -} -]]> diff --git a/src/tools/docbook/libxslt/doc/tutorial/libxslttutorial.html b/src/tools/docbook/libxslt/doc/tutorial/libxslttutorial.html deleted file mode 100644 index 56647a5cd9..0000000000 --- a/src/tools/docbook/libxslt/doc/tutorial/libxslttutorial.html +++ /dev/null @@ -1,437 +0,0 @@ - - - - -libxslt Tutorial - - -
    -
    -

    -libxslt Tutorial

    -

    John Fleck

    -

    - This is version 0.4 of the libxslt Tutorial -

    -
    -

    Permission is granted to copy, distribute and/or modify this - document under the terms of the GNU Free Documentation - License, Version 1.1 or any later version - published by the Free Software Foundation with no Invariant - Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of - the license can be found here.

    -
    -
    - -
    -

    -Abstract -

    -

    A tutorial on building a simple application using the - libxslt library to perform - XSLT transformations to convert an - XML file into HTML.

    -
    -
    -

    -Introduction

    -

    The Extensible Markup Language (XML) is a World - Wide Web Consortium standard for the exchange of structured data in text - form. Its popularity stems from its universality. Any computer can - read a text file. With the proper tools, any computer can read any other - computer's XML files. -

    -

    One of the most important of those tools is XSLT: - Extensible Stylesheet Language Transformations. XSLT - is a declarative language that allows you to - translate your XML into arbitrary text output - using a stylesheet. libxslt provides the - functions to perform the transformation. -

    -

    libxslt is a free C language library - written by Daniel Veillard for the GNOME project - allowing you to write programs that perform XSLT - transformations. - -

    -

    -Note

    -

    - While libxslt was written - under the auspices of the GNOME project, it does not - depend on any GNOME libraries. None are used in the - example in this tutorial. -

    -
    - -

    -

    This tutorial illustrates a simple program that reads an - XML file, applies a stylesheet and saves the resulting - output. This is not a program you would want to create - yourself. xsltproc, which is included with the - libxslt package, does the same thing and is - more robust and full-featured. The program written for this tutorial is a - stripped-down version of xsltproc designed to - illustrate the functionality of libxslt. -

    -

    The full code for xsltproc is in - xsltproc.c in the libxslt - distribution. It also is available on the - web. -

    -

    References: -

    - -

    -
    -
    -

    -Primary Functions

    - -

    To transform an XML file, you must perform three - functions: -

      -
    1. -parse the input file

    2. -
    3. -parse the stylesheet

    4. -
    5. -apply the stylesheet

    6. -
    -

    -
    -

    -Preparing to Parse

    -

    Before you can begin parsing input files or stylesheets, there are - several steps you need to take to set up entity handling. These steps are - not unique to libxslt. Any - libxml2 program that parses - XML files would need to take similar steps. -

    -

    First, you need set up some libxml - housekeeping. Pass the integer value 1 to the - xmlSubstituteEntitiesDefault function, which tells - the libxml2 parser to substitute entities as - it parses your file. (Passing 0 causes - libxml2 to not perform entity substitution.) -

    -

    Second, set xmlLoadExtDtdDefaultValue equal to - 1. This tells libxml - to load external entity subsets. If you do not do this and your - input file includes entities through external subsets, you will get - errors.

    -
    -
    -

    -Parse the Stylesheet

    -

    Parsing the stylesheet takes a single function call, which takes a - variable of type xmlChar: -

    -	  cur = xsltParseStylesheetFile((const xmlChar *)argv[i]);
    -	
    - In this case, I cast the stylesheet file name, passed in as a - command line argument, to xmlChar. The return value - is of type xsltStylesheetPtr, a struct in memory - that contains the stylesheet tree and other information about the - stylesheet. It can be manipulated directly, but for this example you - will not need to. -

    -
    -
    -

    -Parse the Input File

    -

    Parsing the input file takes a single function call: -

    -doc = xmlParseFile(argv[i]);
    -	
    - It returns an xmlDocPtr, a struct in memory that - contains the document tree. It can be manipulated directly, but for this - example you will not need to. -

    -
    -
    -

    -Applying the Stylesheet

    -

    Now that you have trees representing the document and the stylesheet - in memory, apply the stylesheet to the document. The - function that does this is xsltApplyStylesheet: -

    -res = xsltApplyStylesheet(cur, doc, params);
    -	
    - The function takes an xsltStylesheetPtr and an - xmlDocPtr, the values returned by the previous two functions. The third - variable, params can be used to pass - XSLT parameters to the stylesheet. It is a - NULL-terminated array of name/value pairs of const char's. -

    -
    -
    -

    -Saving the result

    -

    libxslt includes a family of functions to use in - saving the resulting output. For this example, - xsltSaveResultToFile is used, and the results are - saved to stdout: - -

    -xsltSaveResultToFile(stdout, res, cur);
    -	
    - -
    -

    -Note

    -

    libxml also contains output - functions, such as xmlSaveFile, which can be - used here. However, output-related information contained in the - stylesheet, such as a declaration of the encoding to be used, will - be lost if one of the libxslt save - functions is not used.

    -
    -

    -
    -
    -

    -Parameters

    -

    - In XSLT, parameters may be used as a way to pass - additional information to a - stylesheet. libxslt accepts - XSLT parameters as one of the values passed to - xsltApplyStylesheet. -

    -

    - In the tutorial example and in xsltproc, - on which the tutorial example is based, parameters to be passed take the - form of key-value pairs. The program collects them from command line - arguments, inserting them in the array params, then - passes them to the function. The final element in the array is set to - NULL. - -

    -

    -Note

    -

    - If a parameter being passed is a string rather than an - XSLT node, it must be escaped. For the tutorial - program, that would be done as follows: - tutorial]$ ./libxslt_tutorial --param rootid "'asect1'" - stylesheet.xsl filename.xml -

    -
    -

    -
    -
    -

    -Cleanup

    -

    After you are finished, libxslt and - libxml provide functions for deallocating - memory. -

    -

    - -

    -	  xsltFreeStylesheet(cur);1
    -	  xmlFreeDoc(res);2
    -	  xmlFreeDoc(doc);3
    -	  xsltCleanupGlobals();4
    -	  xmlCleanupParser();5
    -
    -	  
    - -
    - - - - - - - - - - - - - - - - - - - - - -
    -1

    Free the memory used by your stylesheet.

    -2

    Free the memory used by the results document.

    -3

    Free the memory used by your original document.

    -4

    Free memory used by libxslt global - variables

    -5

    Free memory used by the XML parser

    -
    -

    -
    -
    -
    -

    -A. The Code

    -

    -libxslt_tutorial.c -

    -/*
    - * libxslt_tutorial.c: demo program for the XSL Transformation 1.0 engine
    - *
    - * based on xsltproc.c, by Daniel.Veillard@imag.fr
    - * by John Fleck 
    - *
    - * This program is free software; you can redistribute it and/or modify
    - * it under the terms of the GNU General Public License as published by
    - * the Free Software Foundation; either version 2 of the License, or
    - * (at your option) any later version.
    - *
    - * This program is distributed in the hope that it will be useful,
    - * but WITHOUT ANY WARRANTY; without even the implied warranty of
    - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    - * GNU General Public License for more details.
    - *
    - * You should have received a copy of the GNU General Public License
    - * along with this program; if not, write to the Free Software
    - * Foundation, Inc.,  59 Temple Place - Suite 330, Cambridge, MA 02139, USA.
    - *
    - */ 
    -
    -#include <string.h>
    -#include <libxml/xmlmemory.h>
    -#include <libxml/debugXML.h>
    -#include <libxml/HTMLtree.h>
    -#include <libxml/xmlIO.h>
    -#include <libxml/DOCBparser.h>
    -#include <libxml/xinclude.h>
    -#include <libxml/catalog.h>
    -#include <libxslt/xslt.h>
    -#include <libxslt/xsltInternals.h>
    -#include <libxslt/transform.h>
    -#include <libxslt/xsltutils.h>
    -
    -
    -
    -extern int xmlLoadExtDtdDefaultValue;
    -
    -static void usage(const char *name) {
    -    printf("Usage: %s [options] stylesheet file [file ...]\n", name);
    -    printf("      --param name value : pass a (parameter,value) pair\n");
    -
    -}
    -
    -int
    -main(int argc, char **argv) {
    -	int i;
    -	const char *params[16 + 1];
    -	int nbparams = 0;
    -	xsltStylesheetPtr cur = NULL;
    -	xmlDocPtr doc, res;
    -
    -	if (argc <= 1) {
    -		usage(argv[0]);
    -		return(1);
    -	}
    -	
    -
    - for (i = 1; i < argc; i++) {
    -        if (argv[i][0] != '-')
    -            break;
    -	if ((!strcmp(argv[i], "-param")) ||
    -                   (!strcmp(argv[i], "--param"))) {
    -		i++;
    -		params[nbparams++] = argv[i++];
    -		params[nbparams++] = argv[i];
    -		if (nbparams >= 16) {
    -			fprintf(stderr, "too many params\n");
    -			return (1);
    -		}
    -        }  else {
    -            fprintf(stderr, "Unknown option %s\n", argv[i]);
    -            usage(argv[0]);
    -            return (1);
    -        }
    -    }
    -
    -	params[nbparams] = NULL;
    -	xmlSubstituteEntitiesDefault(1);
    -	xmlLoadExtDtdDefaultValue = 1;
    -	cur = xsltParseStylesheetFile((const xmlChar *)argv[i]);
    -	i++;
    -	doc = xmlParseFile(argv[i]);
    -	res = xsltApplyStylesheet(cur, doc, params);
    -	xsltSaveResultToFile(stdout, res, cur);
    -
    -	xsltFreeStylesheet(cur);
    -	xmlFreeDoc(res);
    -	xmlFreeDoc(doc);
    -
    -        xsltCleanupGlobals();
    -        xmlCleanupParser();
    -	return(0);
    -
    -}
    -
    -
    - -

    -
    -
    - diff --git a/src/tools/docbook/libxslt/doc/tutorial/libxslttutorial.xml b/src/tools/docbook/libxslt/doc/tutorial/libxslttutorial.xml deleted file mode 100644 index 9ef3a4d404..0000000000 --- a/src/tools/docbook/libxslt/doc/tutorial/libxslttutorial.xml +++ /dev/null @@ -1,288 +0,0 @@ - - -]> -
    - - libxslt Tutorial - - 2001 - John Fleck - - - - Permission is granted to copy, distribute and/or modify this - document under the terms of the GNU Free Documentation - License, Version 1.1 or any later version - published by the Free Software Foundation with no Invariant - Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of - the license can be found here. - - - - John - Fleck - - - This is version 0.4 of the libxslt Tutorial - - - - A tutorial on building a simple application using the - libxslt library to perform - XSLT transformations to convert an - XML file into HTML. - - - Introduction - - The Extensible Markup Language (XML) is a World - Wide Web Consortium standard for the exchange of structured data in text - form. Its popularity stems from its universality. Any computer can - read a text file. With the proper tools, any computer can read any other - computer's XML files. - - - One of the most important of those tools is XSLT: - Extensible Stylesheet Language Transformations. XSLT - is a declarative language that allows you to - translate your XML into arbitrary text output - using a stylesheet. libxslt provides the - functions to perform the transformation. - - - libxslt is a free C language library - written by Daniel Veillard for the GNOME project - allowing you to write programs that perform XSLT - transformations. - - - - While libxslt was written - under the auspices of the GNOME project, it does not - depend on any GNOME libraries. None are used in the - example in this tutorial. - - - - - - This tutorial illustrates a simple program that reads an - XML file, applies a stylesheet and saves the resulting - output. This is not a program you would want to create - yourself. xsltproc, which is included with the - libxslt package, does the same thing and is - more robust and full-featured. The program written for this tutorial is a - stripped-down version of xsltproc designed to - illustrate the functionality of libxslt. - - The full code for xsltproc is in - xsltproc.c in the libxslt - distribution. It also is available on the - web. - - - References: - - - W3C XML page - - - W3C - XSL page. - - - libxslt - - - - - - - - Primary Functions - To transform an XML file, you must perform three - functions: - - - parse the input file - - - parse the stylesheet - - - apply the stylesheet - - - - - Preparing to Parse - Before you can begin parsing input files or stylesheets, there are - several steps you need to take to set up entity handling. These steps are - not unique to libxslt. Any - libxml2 program that parses - XML files would need to take similar steps. - - First, you need set up some libxml - housekeeping. Pass the integer value 1 to the - xmlSubstituteEntitiesDefault function, which tells - the libxml2 parser to substitute entities as - it parses your file. (Passing 0 causes - libxml2 to not perform entity substitution.) - - - Second, set xmlLoadExtDtdDefaultValue equal to - 1. This tells libxml - to load external entity subsets. If you do not do this and your - input file includes entities through external subsets, you will get - errors. - - - Parse the Stylesheet - Parsing the stylesheet takes a single function call, which takes a - variable of type xmlChar: - - cur = xsltParseStylesheetFile((const xmlChar *)argv[i]); - - In this case, I cast the stylesheet file name, passed in as a - command line argument, to xmlChar. The return value - is of type xsltStylesheetPtr, a struct in memory - that contains the stylesheet tree and other information about the - stylesheet. It can be manipulated directly, but for this example you - will not need to. - - - - - Parse the Input File - Parsing the input file takes a single function call: - -doc = xmlParseFile(argv[i]); - - It returns an xmlDocPtr, a struct in memory that - contains the document tree. It can be manipulated directly, but for this - example you will not need to. - - - - - Applying the Stylesheet - Now that you have trees representing the document and the stylesheet - in memory, apply the stylesheet to the document. The - function that does this is xsltApplyStylesheet: - -res = xsltApplyStylesheet(cur, doc, params); - - The function takes an xsltStylesheetPtr and an - xmlDocPtr, the values returned by the previous two functions. The third - variable, params can be used to pass - XSLT parameters to the stylesheet. It is a - NULL-terminated array of name/value pairs of const char's. - - - - - Saving the result - libxslt includes a family of functions to use in - saving the resulting output. For this example, - xsltSaveResultToFile is used, and the results are - saved to stdout: - - -xsltSaveResultToFile(stdout, res, cur); - - - - libxml also contains output - functions, such as xmlSaveFile, which can be - used here. However, output-related information contained in the - stylesheet, such as a declaration of the encoding to be used, will - be lost if one of the libxslt save - functions is not used. - - - - - - Parameters - - In XSLT, parameters may be used as a way to pass - additional information to a - stylesheet. libxslt accepts - XSLT parameters as one of the values passed to - xsltApplyStylesheet. - - - - In the tutorial example and in xsltproc, - on which the tutorial example is based, parameters to be passed take the - form of key-value pairs. The program collects them from command line - arguments, inserting them in the array params, then - passes them to the function. The final element in the array is set to - NULL. - - - - If a parameter being passed is a string rather than an - XSLT node, it must be escaped. For the tutorial - program, that would be done as follows: - tutorial]$ ./libxslt_tutorial --param rootid "'asect1'" - stylesheet.xsl filename.xml - - - - - - - - Cleanup - After you are finished, libxslt and - libxml provide functions for deallocating - memory. - - - - - - xsltFreeStylesheet(cur); - xmlFreeDoc(res); - xmlFreeDoc(doc); - xsltCleanupGlobals(); - xmlCleanupParser(); - - - - - - Free the memory used by your stylesheet. - - - Free the memory used by the results document. - - - Free the memory used by your original document. - - - Free memory used by libxslt global - variables - - - Free memory used by the XML parser - - - - - - - - - The Code - libxslt_tutorial.c - &CODE; - - - -
    diff --git a/src/tools/docbook/libxslt/doc/tutorial2/libxslt_pipes.c b/src/tools/docbook/libxslt/doc/tutorial2/libxslt_pipes.c deleted file mode 100644 index 43d751faeb..0000000000 --- a/src/tools/docbook/libxslt/doc/tutorial2/libxslt_pipes.c +++ /dev/null @@ -1,139 +0,0 @@ -/* - * libxslt_pipes.c: a program for performing a series of XSLT - * transformations - * - * Writen by Panos Louridas, based on libxslt_tutorial.c by John Fleck. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Cambridge, MA 02139, USA. - * - */ - -#include -#include -#include - -#include -#include - -extern int xmlLoadExtDtdDefaultValue; - -static void usage(const char *name) { - printf("Usage: %s [options] stylesheet [stylesheet ...] file [file ...]\n", - name); - printf(" --out file: send output to file\n"); - printf(" --param name value: pass a (parameter,value) pair\n"); -} - -int main(int argc, char **argv) { - int arg_indx; - const char *params[16 + 1]; - int params_indx = 0; - int stylesheet_indx = 0; - int file_indx = 0; - int i, j, k; - FILE *output_file = stdout; - xsltStylesheetPtr *stylesheets = - (xsltStylesheetPtr *) calloc(argc, sizeof(xsltStylesheetPtr)); - xmlDocPtr *files = (xmlDocPtr *) calloc(argc, sizeof(xmlDocPtr)); - xmlDocPtr doc, res; - int return_value = 0; - - if (argc <= 1) { - usage(argv[0]); - return_value = 1; - goto finish; - } - - /* Collect arguments */ - for (arg_indx = 1; arg_indx < argc; arg_indx++) { - if (argv[arg_indx][0] != '-') - break; - if ((!strcmp(argv[arg_indx], "-param")) - || (!strcmp(argv[arg_indx], "--param"))) { - arg_indx++; - params[params_indx++] = argv[arg_indx++]; - params[params_indx++] = argv[arg_indx]; - if (params_indx >= 16) { - fprintf(stderr, "too many params\n"); - return_value = 1; - goto finish; - } - } else if ((!strcmp(argv[arg_indx], "-o")) - || (!strcmp(argv[arg_indx], "--out"))) { - arg_indx++; - output_file = fopen(argv[arg_indx], "w"); - } else { - fprintf(stderr, "Unknown option %s\n", argv[arg_indx]); - usage(argv[0]); - return_value = 1; - goto finish; - } - } - params[params_indx] = 0; - - /* Collect and parse stylesheets and files to be transformed */ - for (; arg_indx < argc; arg_indx++) { - char *argument = - (char *) malloc(sizeof(char) * (strlen(argv[arg_indx]) + 1)); - strcpy(argument, argv[arg_indx]); - if (strtok(argument, ".")) { - char *suffix = strtok(0, "."); - if (suffix && !strcmp(suffix, "xsl")) { - stylesheets[stylesheet_indx++] = - xsltParseStylesheetFile((const xmlChar *)argv[arg_indx]);; - } else { - files[file_indx++] = xmlParseFile(argv[arg_indx]); - } - } else { - files[file_indx++] = xmlParseFile(argv[arg_indx]); - } - free(argument); - } - - xmlSubstituteEntitiesDefault(1); - xmlLoadExtDtdDefaultValue = 1; - - /* Process files */ - for (i = 0; files[i]; i++) { - doc = files[i]; - res = doc; - for (j = 0; stylesheets[j]; j++) { - res = xsltApplyStylesheet(stylesheets[j], doc, params); - xmlFreeDoc(doc); - doc = res; - } - - if (stylesheets[0]) { - xsltSaveResultToFile(output_file, res, stylesheets[j-1]); - } else { - xmlDocDump(output_file, res); - } - xmlFreeDoc(res); - } - - fclose(output_file); - - for (k = 0; stylesheets[k]; k++) { - xsltFreeStylesheet(stylesheets[k]); - } - - xsltCleanupGlobals(); - xmlCleanupParser(); - - finish: - free(stylesheets); - free(files); - return(return_value); -} diff --git a/src/tools/docbook/libxslt/doc/tutorial2/libxslt_pipes.html b/src/tools/docbook/libxslt/doc/tutorial2/libxslt_pipes.html deleted file mode 100644 index 49bdd09332..0000000000 --- a/src/tools/docbook/libxslt/doc/tutorial2/libxslt_pipes.html +++ /dev/null @@ -1,624 +0,0 @@ -libxslt: An Extended Tutorial

    libxslt: An Extended Tutorial

    Panos Louridas

    Permission is hereby granted, free of charge, to - any person obtaining a copy of this software and associated - documentation files (the "Software"), to deal in the Software - without restriction, including without limitation the rights to use, - copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software - is furnished to do so, subject to the following conditions: -

    The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. -

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


    Introduction

    The Extensible Stylesheet Language Transformations (XSLT) -specification defines an XML template language for transforming XML -documents. An XSLT engine reads an XSLT file and an XML document and -transforms the document accordingly.

    We want to perform a series of XSLT transformations to a series -of documents. An obvious solution is to use the operating system's -pipe mechanism and start a series of transformation processes, each -one taking as input the output of the previous transformation. It -would be interesting, though, and perhaps more efficient if we could -do our job within a single process.

    libxslt is a library for doing XSLT transformations. It is built -on libxml, which is a library for handling XML documents. libxml and -libxslt are used by the GNOME project. Although developed in the -*NIX world, both libxml and libxslt have been -ported to the MS-Windows platform. In principle an application using -libxslt should be easily portable between the two systems. In -practice, however, there arise various wrinkles. These do not have -anything to do with libxml or libxslt per se, but rather with the -different compilation and linking procedures of each system.

    The presented solution is an extension of John -Fleck's libxslt tutorial, but the present tutorial tries to be -self-contained. It develops a minimal libxslt application -(libxslt_pipes) that can perform a series of transformations to a -series of files in a pipe-like manner. An invocation might be:

    - - libxslt_pipes --out results.xml foo.xsl bar.xsl doc1.xml doc2.xml - -

    The foo.xsl stylesheet will be applied to - doc1.xml and the bar.xsl -stylesheet will be applied to the resulting document; then the two -stylesheets will be applied in the same sequence to -bar.xsl. The results are sent to -results.xml (if no output is specified they are -sent to standard output).

    The application is compiled in both *NIX -systems and MS-Windows, where by *NIX systems we -mean Linux, BSD, and other members of the -family. The gcc suite is used in the *NIX platform -and the Microsoft compiler and linker are used in the -MS-Windows platform.

    Setting the Scene

    -We need to include the necessary libraries: - -

    -  
    -  #include <stdio.h>
    -  #include <string.h>
    -  #include <stdlib.h>
    -  
    -  #include <libxslt/transform.h>
    -  #include <libxslt/xsltutils.h>
    -  
    -

    -

    The first group of include directives includes general C -libraries. The libraries we need to make libxslt work are in the -second group. The transform.h header file -declares the API that does the bulk of the actual processing. The -xsltutils.h header file declares the API for some -generic utility functions of the XSLT engine; among other things, -saving to a file, which is what we need it for.

    -If our input files contain entities through external subsets, we need -to tell libxslt to load them. The global variable -xmlLoadExtDtdDefaultValue, defined in -libxml/globals.h, is responsible for that. As the -variable is defined outside our program we must specify external -linkage: -

    -    extern int xmlLoadExtDtdDefaultValue;
    -  

    -

    -The program is called from the command line. We anticipate that the -user may not call it the right way, so we define a function for -describing its usage: -

    -  static void usage(const char *name) {
    -      printf("Usage: %s [options] stylesheet [stylesheet ...] file [file ...]\n",
    -          name);
    -      printf("      --out file: send output to file\n");
    -      printf("      --param name value: pass a (parameter,value) pair\n");
    -  }
    -

    -

    Program Start

    We need to define a few variables that are used throughout the -program: -

    -    int main(int argc, char **argv) {
    -        int arg_indx;
    -	const char *params[16 + 1];
    -	int params_indx = 0;
    -	int stylesheet_indx = 0;
    -	int file_indx = 0;
    -	int i, j, k;
    -	FILE *output_file = stdout;
    -	xsltStylesheetPtr *stylesheets = 
    -	    (xsltStylesheetPtr *) calloc(argc, sizeof(xsltStylesheetPtr));
    -	    xmlDocPtr *files = (xmlDocPtr *) calloc(argc, sizeof(xmlDocPtr));
    -	int return_value = 0;
    -

    -

    The arg_indx integer is an index used to -iterate over the program arguments. The params -string array is used to collect the XSLT parameters. In XSLT, -additional information may be passed to the processor via -parameters. The user of the program specifies these in key-value pairs -in the command line following the --param -command line argument. We accept up to 8 such key-value pairs, which -we track with the params_indx integer. libxslt -expects the parameters array to be null-terminated, so we have to -allocate one extra place (16 + 1) for it. The -file_indx is an index to iterate over the files to -be processed. The i, j, -k integers are additional indices for iteration -purposes, and return_value is the value the program -returns to the operating system. We expect the result of the -transformation to be the standard output in most cases, but the user -may wish otherwise via the --out command line -option, so we need to keep track of the situation with the -output_file file pointer.

    In libxslt, XSLT stylesheets are internally stored in -xsltStylesheet structures; similarly, in -libxml XML documents are stored in xmlDoc -structures. xsltStylesheetPtr and xmlDocPtr -are simply typedefs of pointers to them. The user may specify any -number of stylesheets that will be applied to the documents one after -the other. To save time we parse the stylesheets and the documents as -we read them from the command line and keep the parsed representation -of them. The parsed results are kept in arrays. These are dynamically -allocated and sized to the number of arguments; this wastes some -space, but not much (the size of xmlStyleSheetPtr and -xmlDocPtr is the size of a pointer) and simplifies code -later on. The array memory is allocated with -calloc to ensure contents are initialised to -zero. -

    Arguments Collection

    If the program gets no arguments at all, we print the usage -description, set the program return value to 1 and exit. Instead of -returning directly we go to (literally) to the end of the program text -where some housekeeping takes place.

    -

    -  
    -    if (argc <= 1) {
    -        usage(argv[0]);
    -        return_value = 1;
    -        goto finish;
    -    }
    -        
    -    /* Collect arguments */
    -    for (arg_indx = 1; arg_indx < argc; arg_indx++) {
    -        if (argv[arg_indx][0] != '-')
    -            break;
    -        if ((!strcmp(argv[arg_indx], "-param"))
    -                || (!strcmp(argv[arg_indx], "--param"))) {
    -            arg_indx++;
    -            params[params_indx++] = argv[arg_indx++];
    -            params[params_indx++] = argv[arg_indx];
    -            if (params_indx >= 16) {
    -                fprintf(stderr, "too many params\n");
    -                return_value = 1;
    -                goto finish;
    -            }
    -        }  else if ((!strcmp(argv[arg_indx], "-o"))
    -                || (!strcmp(argv[arg_indx], "--out"))) {
    -            arg_indx++;
    -            output_file = fopen(argv[arg_indx], "w");
    -        } else {
    -            fprintf(stderr, "Unknown option %s\n", argv[arg_indx]);
    -            usage(argv[0]);
    -            return_value = 1;
    -            goto finish;
    -        }
    -    }
    -    params[params_indx] = 0;
    -    
    -

    -

    If the user passes arguments we have to collect them. This is a -matter of iterating over the program argument list while we encounter -arguments starting with a dash. The XSLT parameters are put into the -params array and the output_file -is set to the user request, if any. After processing all the parameter -key-value pairs we set the last element of the params -array to null. -

    Parsing

    The rest of the argument list is taken to be stylesheets and -files to be transformed. Stylesheets are identified by their suffix, -which is expected to be xsl (case sensitive). All other files are -assumed to be XML documents, regardless of suffix.

    -

    -  
    -    /* Collect and parse stylesheets and files to be transformed */
    -    for (; arg_indx < argc; arg_indx++) {
    -        char *argument =
    -            (char *) malloc(sizeof(char) * (strlen(argv[arg_indx]) + 1));
    -        strcpy(argument, argv[arg_indx]);
    -        if (strtok(argument, ".")) {
    -            char *suffix = strtok(0, ".");
    -            if (suffix && !strcmp(suffix, "xsl")) {
    -                stylesheets[stylesheet_indx++] =
    -                    xsltParseStylesheetFile((const xmlChar *)argv[arg_indx]);;
    -            } else {
    -                files[file_indx++] = xmlParseFile(argv[arg_indx]);
    -            }
    -        } else {
    -            files[file_indx++] = xmlParseFile(argv[arg_indx]);
    -        }
    -        free(argument);
    -    }
    -  
    -

    -

    Stylesheets are parsed using the -xsltParseStylesheetFile -function. xsltParseStylesheetFile takes as -argument a pointer to an xmlChar, a typedef of an -unsigned char; in effect, the filename of the stylesheet. The -resulting xsltStylesheetPtr is placed in the -stylesheets array. In the same vein, XML files are -parsed using the xmlParseFile function that takes -as argument the file's name; the resulting xmlDocPtr is -placed in the files array. -

    File Processing

    All stylesheets are applied to each file one after the -other. Stylesheets are applied with the -xsltApplyStylesheet function that takes as -argument the stylesheet to be applied, the file to be transformed and -any parameters we have collected. The in-memory representation of an -XML document takes space, which we free using the -xmlFreeDoc function. The file is then saved to the -specified output.

    -

    -  
    -    /* Process files */
    -    for (i = 0; files[i]; i++) {
    -        doc = files[i];
    -        res = doc;
    -        for (j = 0; stylesheets[j]; j++) {
    -            res = xsltApplyStylesheet(stylesheets[j], doc, params);
    -            xmlFreeDoc(doc);
    -            doc = res;
    -        }
    -
    -        if (stylesheets[0]) {
    -            xsltSaveResultToFile(output_file, res, stylesheets[j-1]);
    -        } else {
    -            xmlDocDump(output_file, res);
    -        }
    -        xmlFreeDoc(res);
    -    }
    -
    -    fclose(output_file);
    -
    -    for (k = 0; stylesheets[k]; k++) {
    -        xsltFreeStylesheet(stylesheets[k]);
    -    }
    -
    -    xsltCleanupGlobals();
    -    xmlCleanupParser();
    -
    - finish:
    -    free(stylesheets);
    -    free(files);
    -    return(return_value);
    -    
    -

    -

    To output an XML document we have in memory we use the -xlstSaveResultToFile function, where we specify -the destination, the document and the stylesheet that has been applied -to it. The stylesheet is required so that output-related information -contained in the stylesheet, such as the encoding to be used, is used -in output. If no transformation has taken place, which will happen -when the user specifies no stylesheets at all in the command line, we -use the xmlDocDump libxml function that saves the -source document to the file without further ado.

    As parsed stylesheets take up space in memory, we take care to -free that memory after use with a call to -xmlFreeStyleSheet. When all work is done, we -clean up all global variables used by the XSLT library using -xsltCleanupGlobals. Likewise, all global memory -allocated for the XML parser is reclaimed by a call to -xmlCleanupParser. Before returning we deallocate -the memory allocated for the holding the pointers to the XML documents -and stylesheets.

    *NIX Compiling and Linking

    Compiling and linking in a *NIX environment -is easy, as the required libraries are almost certain to be already in -place (remember that libxml and libxslt are used by the GNOME project, -so they are present in most installations). The program can be -dynamically linked so that its footprint is minimized, or statically -linked, so that it stands by itself, carrying all required code.

    For dynamic linking the following one liner will do:

    -gcc -o libxslt_pipes -Wall -I/usr/include/libxml2 -lxslt --lxml2 -L/usr/lib libxslt_pipes.c -

    We assume that the necessary header files are in /usr/include/libxml2 and that the -required libraries (libxslt.so, -libxml2.so) are in /usr/lib.

    In general, a program may need to link to additional libraries, -depending on the processing it actually performs. A good way to start -is to use the xslt-config script. The ---help option displays usage -information. Running

    - - xslt-config --cflags - -

    we get compile flags, while running

    - - xslt-config --libs - -

    we get the library settings for the linker.

    For static linking we must list more libraries than we did for -dynamic linking, as the libraries on which the libxsl and libxslt -libraries depend are also needed. Using xslt-config -on a particular installation we create the following one-liner:

    - -gcc -o libxslt_pipes -Wall -I/usr/include/libxml2 libxslt_pipes.c --static -L/usr/lib -lxslt -lxml2 -lz -lpthread -lm - -

    If we get warnings to the effect that some function in -statically linked applications requires at runtime the shared -libraries used from the glibc version used for linking, that means -that the binary is not completely static. Although we statically -linked against the GNU C runtime library glibc, glibc uses external -libraries to perform some of its functions. Same version libraries -must be present on the system we want the application to run. One way -to avoid this it to use an alternative C runtime, for example uClibc, which requires obtaining -and building a uClibc toolchain first (if the reason for trying to get -a statically linked version of the program is to embed it somewhere, -using uClibc might be a good idea anyway). -

    MS-Windows Compiling and -Linking

    Compiling and linking in MS-Windows requires -some attention. First, the MS-Windows ports must be -downloaded and installed in the programming workstation. The ports are -available in Igor -Zlatković's site. We need the ports for iconv, zlib, libxml, -and libxslt. In contrast to *NIX environments, we -cannot assume that the libraries needed will be present in other -computers where the program will be used. One solution is to -distribute the program along with the necessary dynamic -libraries. Another solution is to statically link the program so that -only a single executable file will have to be distributed.

    We assume that we have decompressed the downloaded ports and -have placed the required contents of their include directories in an include directory in our file system. The -required contents include everything apart from the libexslt directory of the libxslt port, -as we are not using EXLST (an initiative to provide extensions to -XSLT) in this project. In order to compile the program we have to make -sure that all necessary header files are included. When using the -Microsoft compiler this translates to adding the required -/I switches in the command line. If using a Visual -Studio product the same effect is attained by specifying additional -include directories in the compilation options. In the end, if the -headers have been copied in C:\include the command line must contain -/I"C:\include" /I"C:\include\libslt" -/I"C:\include\libxml".

    This being a C program, it needs to be compiled against an -implementation of the C libraries. Microsoft provides various -implementations. The ports, however, have been compiled against the -msvcrt.dll implementation, so it is wise to use -the same runtime in our project, lest we wish to come against -unexpected runtime crashes. The msvcrt.dll is a -multi-threaded implementation and is specified by giving -/MD as a compiler option. Unfortunately, the -correspondence between the /MD switch and -msvcrt.dll breaks after version 6 of the -Microsoft compiler. In version 7 and later (i.e., Visual Studio .NET), -/MD links against a different DLL; in version 7.1 -this is msvcrt71.dll. The end result of this bit -of esoterica is that if you try to dynamically link your application -with a compiler whose version is greater than 6, your program is -likely to crash unexpectedly. Alternatively, you may wish to compile -all iconv, zlib, libxml and libxslt yourself, using the new runtime -library. This is not a tall order, and some details are given -below.

    There are three kinds of libraries in MS-Windows. Dynamically -Linked Libraries (DLLs), like msvcrt.dll we met -above, are used for dynamic linking; an application links to them at -runtime, so the application does not include the code contained in -them. Static libraries are used for static linking; an application -adds the libraries' code to its own code at link time. Import -libraries are used when building an application that uses DLLs. For -the application to be built, the linker must somehow find the -definitions of the functions that will be provided in runtime by the -DLLs, otherwise it will complain about unresolved references. Import -libraries contain function stubs that, for each DLL function we want -to call, know where to look for it in the DLL. In essence, in order to -use a DLL we must link against its corresponding import library. DLLs -have a .dll suffix; static and import libraries -both have a .lib suffix. In the MS-Windows ports -of libxml and libxslt static libraries are distinguished by their name -ending in _a.lib, while in the zlib port the -import library is zdll.lib and the static library -is zlib.lib. In what follows we assume we have a -lib directory in our filesystem -where we place the libraries we need for linking.

    If we want to link dynamically we must make sure the lib directory contains -iconv.lib, libxslt.lib, -libxml2.lib, and -zdll.lib. When using the Microsoft linker this -translates to adding the required /LIBPATH -switch and the necessary libraries in the command line. In Visual -Studio we must specify an additional library directory for lib and put the necessary libraries in -the additional dependencies. In the end, the command line must include -/LIBPATH:"C:\lib" "lib\iconv.lib" "lib\libxslt.lib" -"lib\libxml2.lib" "lib\zdll.lib", provided the libraries' -directory is C:\lib. In order -for the resulting executable to run, the ports DLLs must be present; -one way is to place all DLLs contained in the ports in the home -directory of our application, and make sure they are distributed -together.

    If we want to link statically we must make sure the lib directory contains -iconv_a.lib, libxslt_a.lib, -libxml2_a.lib, and -zlib.lib. Adding lib as a library directory and putting -the necessary libraries in the additional dependencies, we get a -command line that should include /LIBPATH:"C:\lib" -"lib\iconv_a.lib" "lib\libxslt_a.lib" "lib\libxml2_a.lib" -"lib\zlib.lib". The resulting executable is much bigger -than if we linked dynamically; it is, however, self-contained and can -be distributed more easily, in theory at least. In practice, however, -the executable is not completely static. We saw that the ports are -compiled against msvcrt.dll, so the program does -require that DLL at runtime. Moreover, since when using a version of -Microsoft developer tools with a version number greater than 6, we are -no longer using msvcrt.dll, but another runtime -like msvcrt71.dll, and we then need that DLL. In -contrast to msvcrt.dll it may not be present on -the target computer, so we may have to copy it along.

    Building the Ports in -MS-Windows

    The source code of the ports is readily available on the web, -one has to check the ports sites. Each port can be built without -problems in an MS-Windows environment using Microsoft development -tools. The necessary command line tools (compiler, linker, -nmake) must be available. This means running a -batch file called vcvars32.bat that comes with -Visual Studio (its exact location in the directory tree may vary -depending on the version of Visual Studio, but a file search will find -it anyway). Makefiles for the Microsoft tools are found in all -ports. They are distinguished by their suffix, e.g., -Makefile.msvc or -Makefile.msc. To build zlib it suffices to run -nmake against Makefile.msc -(i.e., with the /F option); similarly, to build -iconv it suffices to run nmake -against Makefile.msvc. Building libxml and -libxslt requires an extra configuration step; we must run the -configure.js configuration script with the -cscript command. configure.js -is found in the win32 directory -in the distributions. It is written in JScript, Microsoft's -implementation of the ECMA 262 language specification (ECMAScript -Edition 3), a JavaScript offspring. The configuration string takes a -number of parameters detailing our environment and needs; -cscript configure.js help documents -them.

    It is wise to read all documentation files in the source -distributions before starting; moreover, pay attention to the -dependencies between the ports. If we configure libxml and libxslt to -use iconv and zlib we must build these two first and make sure their -headers and libraries can be found by the compiler and the -linker when building libxml and libxslt.

    zlib, iconv and All That

    We saw that libxml and libxslt depend on various other -libraries, for instance zlib, iconv, and so forth. Taking a look into -them gives us clues on the capabilities of libxml and libxslt.

    zlib is a free general -purpose lossless data compression library. It is a venerable -workhorse; more than 500 applications -(both commercial and open source) seem to use the library. libxml uses -zlib so that it can read from or write to compressed files -directly. The xmlParseFile function can -transparently parse a compressed document to produce an -xmlDoc. If we want to create a compressed -document with libxml we can use an -xmlTextWriterPtr (obtained through -xmlNewTextWriterDoc), or another related -structure from libxml/xmlwriter.h, with -compression enabled.

    XML allows documents to use a variety of different character -encodings. iconv is a free -library for converting between different character encodings. libxml -provides a set of default converters for some encodings: UTF-8, UTF-16 -(little endian and big endian), ISO-8859-1, ASCII, and HTML (a -specific handler for the conversion of UTF-8 to ASCII with HTML -predefined entities like &copy; for the copyright sign). However, -when compiled with iconv support, libxml and libxslt can handle the -full range of encodings provided by iconv; these should cover most -needs.

    libxml and libxslt can be used in multi-threaded -applications. In MS-Windows they are linked against -MSVCRT.DLL (or one of its descendants, as we saw -above). In *NIX the pthreads -(POSIX threads) library is used.

    The Complete Program

    -The complete program listing is given below. The program is also -available online. -

    -

    -/*
    - * libxslt_pipes.c: a program for performing a series of XSLT
    - * transformations
    - *
    - * Writen by Panos Louridas, based on libxslt_tutorial.c by John Fleck.
    - *
    - * This program is free software; you can redistribute it and/or modify
    - * it under the terms of the GNU General Public License as published by
    - * the Free Software Foundation; either version 2 of the License, or
    - * (at your option) any later version.
    - *
    - * This program is distributed in the hope that it will be useful,
    - * but WITHOUT ANY WARRANTY; without even the implied warranty of
    - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    - * GNU General Public License for more details.
    - *
    - * You should have received a copy of the GNU General Public License
    - * along with this program; if not, write to the Free Software
    - * Foundation, Inc.,  59 Temple Place - Suite 330, Cambridge, MA 02139, USA.
    - *
    - */ 
    -
    -#include <stdio.h>
    -#include <string.h>
    -#include <stdlib.h>
    -
    -#include <libxslt/transform.h>
    -#include <libxslt/xsltutils.h>
    -
    -extern int xmlLoadExtDtdDefaultValue;
    -
    -static void usage(const char *name) {
    -    printf("Usage: %s [options] stylesheet [stylesheet ...] file [file ...]\n",
    -            name);
    -    printf("      --out file: send output to file\n");
    -    printf("      --param name value: pass a (parameter,value) pair\n");
    -}
    -
    -int main(int argc, char **argv) {
    -    int arg_indx;
    -    const char *params[16 + 1];
    -    int params_indx = 0;
    -    int stylesheet_indx = 0;
    -    int file_indx = 0;
    -    int i, j, k;
    -    FILE *output_file = stdout;
    -    xsltStylesheetPtr *stylesheets = 
    -        (xsltStylesheetPtr *) calloc(argc, sizeof(xsltStylesheetPtr));
    -    xmlDocPtr *files = (xmlDocPtr *) calloc(argc, sizeof(xmlDocPtr));
    -    xmlDocPtr doc, res;
    -    int return_value = 0;
    -        
    -    if (argc <= 1) {
    -        usage(argv[0]);
    -        return_value = 1;
    -        goto finish;
    -    }
    -        
    -    /* Collect arguments */
    -    for (arg_indx = 1; arg_indx < argc; arg_indx++) {
    -        if (argv[arg_indx][0] != '-')
    -            break;
    -        if ((!strcmp(argv[arg_indx], "-param"))
    -                || (!strcmp(argv[arg_indx], "--param"))) {
    -            arg_indx++;
    -            params[params_indx++] = argv[arg_indx++];
    -            params[params_indx++] = argv[arg_indx];
    -            if (params_indx >= 16) {
    -                fprintf(stderr, "too many params\n");
    -                return_value = 1;
    -                goto finish;
    -            }
    -        }  else if ((!strcmp(argv[arg_indx], "-o"))
    -                || (!strcmp(argv[arg_indx], "--out"))) {
    -            arg_indx++;
    -            output_file = fopen(argv[arg_indx], "w");
    -        } else {
    -            fprintf(stderr, "Unknown option %s\n", argv[arg_indx]);
    -            usage(argv[0]);
    -            return_value = 1;
    -            goto finish;
    -        }
    -    }
    -    params[params_indx] = 0;
    -
    -    /* Collect and parse stylesheets and files to be transformed */
    -    for (; arg_indx < argc; arg_indx++) {
    -        char *argument =
    -            (char *) malloc(sizeof(char) * (strlen(argv[arg_indx]) + 1));
    -        strcpy(argument, argv[arg_indx]);
    -        if (strtok(argument, ".")) {
    -            char *suffix = strtok(0, ".");
    -            if (suffix && !strcmp(suffix, "xsl")) {
    -                stylesheets[stylesheet_indx++] =
    -                    xsltParseStylesheetFile((const xmlChar *)argv[arg_indx]);;
    -            } else {
    -                files[file_indx++] = xmlParseFile(argv[arg_indx]);
    -            }
    -        } else {
    -            files[file_indx++] = xmlParseFile(argv[arg_indx]);
    -        }
    -        free(argument);
    -    }
    -
    -    xmlSubstituteEntitiesDefault(1);
    -    xmlLoadExtDtdDefaultValue = 1;
    -
    -    /* Process files */
    -    for (i = 0; files[i]; i++) {
    -        doc = files[i];
    -        res = doc;
    -        for (j = 0; stylesheets[j]; j++) {
    -            res = xsltApplyStylesheet(stylesheets[j], doc, params);
    -            xmlFreeDoc(doc);
    -            doc = res;
    -        }
    -
    -        if (stylesheets[0]) {
    -            xsltSaveResultToFile(output_file, res, stylesheets[j-1]);
    -        } else {
    -            xmlDocDump(output_file, res);
    -        }
    -        xmlFreeDoc(res);
    -    }
    -
    -    fclose(output_file);
    -
    -    for (k = 0; stylesheets[k]; k++) {
    -        xsltFreeStylesheet(stylesheets[k]);
    -    }
    -
    -    xsltCleanupGlobals();
    -    xmlCleanupParser();
    -
    - finish:
    -    free(stylesheets);
    -    free(files);
    -    return(return_value);
    -}
    -
    -

    -

    diff --git a/src/tools/docbook/libxslt/doc/tutorial2/libxslt_pipes.xml b/src/tools/docbook/libxslt/doc/tutorial2/libxslt_pipes.xml deleted file mode 100644 index 9a672a9b8e..0000000000 --- a/src/tools/docbook/libxslt/doc/tutorial2/libxslt_pipes.xml +++ /dev/null @@ -1,661 +0,0 @@ - - - -
    - - PanosLouridas - - 2004 - Panagiotis Louridas - - - Permission is hereby granted, free of charge, to - any person obtaining a copy of this software and associated - documentation files (the "Software"), to deal in the Software - without restriction, including without limitation the rights to use, - copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software - is furnished to do so, subject to the following conditions: - - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - - - -libxslt: An Extended Tutorial - -Introduction - -The Extensible Stylesheet Language Transformations (XSLT) -specification defines an XML template language for transforming XML -documents. An XSLT engine reads an XSLT file and an XML document and -transforms the document accordingly. - -We want to perform a series of XSLT transformations to a series -of documents. An obvious solution is to use the operating system's -pipe mechanism and start a series of transformation processes, each -one taking as input the output of the previous transformation. It -would be interesting, though, and perhaps more efficient if we could -do our job within a single process. - -libxslt is a library for doing XSLT transformations. It is built -on libxml, which is a library for handling XML documents. libxml and -libxslt are used by the GNOME project. Although developed in the -*NIX world, both libxml and libxslt have been -ported to the MS-Windows platform. In principle an application using -libxslt should be easily portable between the two systems. In -practice, however, there arise various wrinkles. These do not have -anything to do with libxml or libxslt per se, but rather with the -different compilation and linking procedures of each system. - -The presented solution is an extension of John -Fleck's libxslt tutorial, but the present tutorial tries to be -self-contained. It develops a minimal libxslt application -(libxslt_pipes) that can perform a series of transformations to a -series of files in a pipe-like manner. An invocation might be: - - - - libxslt_pipes --out results.xml foo.xsl bar.xsl doc1.xml doc2.xml - - - -The foo.xsl stylesheet will be applied to - doc1.xml and the bar.xsl -stylesheet will be applied to the resulting document; then the two -stylesheets will be applied in the same sequence to -bar.xsl. The results are sent to -results.xml (if no output is specified they are -sent to standard output). - -The application is compiled in both *NIX -systems and MS-Windows, where by *NIX systems we -mean Linux, BSD, and other members of the -family. The gcc suite is used in the *NIX platform -and the Microsoft compiler and linker are used in the -MS-Windows platform. - - - -Setting the Scene - - -We need to include the necessary libraries: - - - - #include - #include - - #include - #include - ]]> - - - -The first group of include directives includes general C -libraries. The libraries we need to make libxslt work are in the -second group. The transform.h header file -declares the API that does the bulk of the actual processing. The -xsltutils.h header file declares the API for some -generic utility functions of the XSLT engine; among other things, -saving to a file, which is what we need it for. - - -If our input files contain entities through external subsets, we need -to tell libxslt to load them. The global variable -xmlLoadExtDtdDefaultValue, defined in -libxml/globals.h, is responsible for that. As the -variable is defined outside our program we must specify external -linkage: - - extern int xmlLoadExtDtdDefaultValue; - - - - -The program is called from the command line. We anticipate that the -user may not call it the right way, so we define a function for -describing its usage: - - static void usage(const char *name) { - printf("Usage: %s [options] stylesheet [stylesheet ...] file [file ...]\n", - name); - printf(" --out file: send output to file\n"); - printf(" --param name value: pass a (parameter,value) pair\n"); - } - - - - -Program Start - -We need to define a few variables that are used throughout the -program: - - int main(int argc, char **argv) { - int arg_indx; - const char *params[16 + 1]; - int params_indx = 0; - int stylesheet_indx = 0; - int file_indx = 0; - int i, j, k; - FILE *output_file = stdout; - xsltStylesheetPtr *stylesheets = - (xsltStylesheetPtr *) calloc(argc, sizeof(xsltStylesheetPtr)); - xmlDocPtr *files = (xmlDocPtr *) calloc(argc, sizeof(xmlDocPtr)); - int return_value = 0; - - - -The arg_indx integer is an index used to -iterate over the program arguments. The params -string array is used to collect the XSLT parameters. In XSLT, -additional information may be passed to the processor via -parameters. The user of the program specifies these in key-value pairs -in the command line following the --param -command line argument. We accept up to 8 such key-value pairs, which -we track with the params_indx integer. libxslt -expects the parameters array to be null-terminated, so we have to -allocate one extra place (16 + 1) for it. The -file_indx is an index to iterate over the files to -be processed. The i, j, -k integers are additional indices for iteration -purposes, and return_value is the value the program -returns to the operating system. We expect the result of the -transformation to be the standard output in most cases, but the user -may wish otherwise via the command line -option, so we need to keep track of the situation with the -output_file file pointer. - -In libxslt, XSLT stylesheets are internally stored in -xsltStylesheet structures; similarly, in -libxml XML documents are stored in xmlDoc -structures. xsltStylesheetPtr and xmlDocPtr -are simply typedefs of pointers to them. The user may specify any -number of stylesheets that will be applied to the documents one after -the other. To save time we parse the stylesheets and the documents as -we read them from the command line and keep the parsed representation -of them. The parsed results are kept in arrays. These are dynamically -allocated and sized to the number of arguments; this wastes some -space, but not much (the size of xmlStyleSheetPtr and -xmlDocPtr is the size of a pointer) and simplifies code -later on. The array memory is allocated with -calloc to ensure contents are initialised to -zero. - - - - -Arguments Collection - -If the program gets no arguments at all, we print the usage -description, set the program return value to 1 and exit. Instead of -returning directly we go to (literally) to the end of the program text -where some housekeeping takes place. - - - - = 16) { - fprintf(stderr, "too many params\n"); - return_value = 1; - goto finish; - } - } else if ((!strcmp(argv[arg_indx], "-o")) - || (!strcmp(argv[arg_indx], "--out"))) { - arg_indx++; - output_file = fopen(argv[arg_indx], "w"); - } else { - fprintf(stderr, "Unknown option %s\n", argv[arg_indx]); - usage(argv[0]); - return_value = 1; - goto finish; - } - } - params[params_indx] = 0; - ]]> - - - -If the user passes arguments we have to collect them. This is a -matter of iterating over the program argument list while we encounter -arguments starting with a dash. The XSLT parameters are put into the -params array and the output_file -is set to the user request, if any. After processing all the parameter -key-value pairs we set the last element of the params -array to null. - - - -Parsing - -The rest of the argument list is taken to be stylesheets and -files to be transformed. Stylesheets are identified by their suffix, -which is expected to be xsl (case sensitive). All other files are -assumed to be XML documents, regardless of suffix. - - - - - - - -Stylesheets are parsed using the -xsltParseStylesheetFile -function. xsltParseStylesheetFile takes as -argument a pointer to an xmlChar, a typedef of an -unsigned char; in effect, the filename of the stylesheet. The -resulting xsltStylesheetPtr is placed in the -stylesheets array. In the same vein, XML files are -parsed using the xmlParseFile function that takes -as argument the file's name; the resulting xmlDocPtr is -placed in the files array. - - - - -File Processing - -All stylesheets are applied to each file one after the -other. Stylesheets are applied with the -xsltApplyStylesheet function that takes as -argument the stylesheet to be applied, the file to be transformed and -any parameters we have collected. The in-memory representation of an -XML document takes space, which we free using the -xmlFreeDoc function. The file is then saved to the -specified output. - - - - - - - -To output an XML document we have in memory we use the -xlstSaveResultToFile function, where we specify -the destination, the document and the stylesheet that has been applied -to it. The stylesheet is required so that output-related information -contained in the stylesheet, such as the encoding to be used, is used -in output. If no transformation has taken place, which will happen -when the user specifies no stylesheets at all in the command line, we -use the xmlDocDump libxml function that saves the -source document to the file without further ado. - -As parsed stylesheets take up space in memory, we take care to -free that memory after use with a call to -xmlFreeStyleSheet. When all work is done, we -clean up all global variables used by the XSLT library using -xsltCleanupGlobals. Likewise, all global memory -allocated for the XML parser is reclaimed by a call to -xmlCleanupParser. Before returning we deallocate -the memory allocated for the holding the pointers to the XML documents -and stylesheets. - - - -*NIX Compiling and Linking - -Compiling and linking in a *NIX environment -is easy, as the required libraries are almost certain to be already in -place (remember that libxml and libxslt are used by the GNOME project, -so they are present in most installations). The program can be -dynamically linked so that its footprint is minimized, or statically -linked, so that it stands by itself, carrying all required code. - -For dynamic linking the following one liner will do: - - -gcc -o libxslt_pipes -Wall -I/usr/include/libxml2 -lxslt --lxml2 -L/usr/lib libxslt_pipes.c - - -We assume that the necessary header files are in /usr/include/libxml2 and that the -required libraries (libxslt.so, -libxml2.so) are in /usr/lib. - -In general, a program may need to link to additional libraries, -depending on the processing it actually performs. A good way to start -is to use the xslt-config script. The - option displays usage -information. Running - - - - xslt-config --cflags - - - -we get compile flags, while running - - - - xslt-config --libs - - - -we get the library settings for the linker. - -For static linking we must list more libraries than we did for -dynamic linking, as the libraries on which the libxsl and libxslt -libraries depend are also needed. Using xslt-config -on a particular installation we create the following one-liner: - - - -gcc -o libxslt_pipes -Wall -I/usr/include/libxml2 libxslt_pipes.c --static -L/usr/lib -lxslt -lxml2 -lz -lpthread -lm - - - -If we get warnings to the effect that some function in -statically linked applications requires at runtime the shared -libraries used from the glibc version used for linking, that means -that the binary is not completely static. Although we statically -linked against the GNU C runtime library glibc, glibc uses external -libraries to perform some of its functions. Same version libraries -must be present on the system we want the application to run. One way -to avoid this it to use an alternative C runtime, for example uClibc, which requires obtaining -and building a uClibc toolchain first (if the reason for trying to get -a statically linked version of the program is to embed it somewhere, -using uClibc might be a good idea anyway). - - - - -MS-Windows Compiling and -Linking - -Compiling and linking in MS-Windows requires -some attention. First, the MS-Windows ports must be -downloaded and installed in the programming workstation. The ports are -available in Igor -Zlatkoviæ's site. We need the ports for iconv, zlib, libxml, -and libxslt. In contrast to *NIX environments, we -cannot assume that the libraries needed will be present in other -computers where the program will be used. One solution is to -distribute the program along with the necessary dynamic -libraries. Another solution is to statically link the program so that -only a single executable file will have to be distributed. - -We assume that we have decompressed the downloaded ports and -have placed the required contents of their include directories in an include directory in our file system. The -required contents include everything apart from the libexslt directory of the libxslt port, -as we are not using EXLST (an initiative to provide extensions to -XSLT) in this project. In order to compile the program we have to make -sure that all necessary header files are included. When using the -Microsoft compiler this translates to adding the required - switches in the command line. If using a Visual -Studio product the same effect is attained by specifying additional -include directories in the compilation options. In the end, if the -headers have been copied in C:\include the command line must contain -. - -This being a C program, it needs to be compiled against an -implementation of the C libraries. Microsoft provides various -implementations. The ports, however, have been compiled against the -msvcrt.dll implementation, so it is wise to use -the same runtime in our project, lest we wish to come against -unexpected runtime crashes. The msvcrt.dll is a -multi-threaded implementation and is specified by giving - as a compiler option. Unfortunately, the -correspondence between the switch and -msvcrt.dll breaks after version 6 of the -Microsoft compiler. In version 7 and later (i.e., Visual Studio .NET), - links against a different DLL; in version 7.1 -this is msvcrt71.dll. The end result of this bit -of esoterica is that if you try to dynamically link your application -with a compiler whose version is greater than 6, your program is -likely to crash unexpectedly. Alternatively, you may wish to compile -all iconv, zlib, libxml and libxslt yourself, using the new runtime -library. This is not a tall order, and some details are given -below. - -There are three kinds of libraries in MS-Windows. Dynamically -Linked Libraries (DLLs), like msvcrt.dll we met -above, are used for dynamic linking; an application links to them at -runtime, so the application does not include the code contained in -them. Static libraries are used for static linking; an application -adds the libraries' code to its own code at link time. Import -libraries are used when building an application that uses DLLs. For -the application to be built, the linker must somehow find the -definitions of the functions that will be provided in runtime by the -DLLs, otherwise it will complain about unresolved references. Import -libraries contain function stubs that, for each DLL function we want -to call, know where to look for it in the DLL. In essence, in order to -use a DLL we must link against its corresponding import library. DLLs -have a .dll suffix; static and import libraries -both have a .lib suffix. In the MS-Windows ports -of libxml and libxslt static libraries are distinguished by their name -ending in _a.lib, while in the zlib port the -import library is zdll.lib and the static library -is zlib.lib. In what follows we assume we have a -lib directory in our filesystem -where we place the libraries we need for linking. - -If we want to link dynamically we must make sure the lib directory contains -iconv.lib, libxslt.lib, -libxml2.lib, and -zdll.lib. When using the Microsoft linker this -translates to adding the required -switch and the necessary libraries in the command line. In Visual -Studio we must specify an additional library directory for lib and put the necessary libraries in -the additional dependencies. In the end, the command line must include -, provided the libraries' -directory is C:\lib. In order -for the resulting executable to run, the ports DLLs must be present; -one way is to place all DLLs contained in the ports in the home -directory of our application, and make sure they are distributed -together. - -If we want to link statically we must make sure the lib directory contains -iconv_a.lib, libxslt_a.lib, -libxml2_a.lib, and -zlib.lib. Adding lib as a library directory and putting -the necessary libraries in the additional dependencies, we get a -command line that should include . The resulting executable is much bigger -than if we linked dynamically; it is, however, self-contained and can -be distributed more easily, in theory at least. In practice, however, -the executable is not completely static. We saw that the ports are -compiled against msvcrt.dll, so the program does -require that DLL at runtime. Moreover, since when using a version of -Microsoft developer tools with a version number greater than 6, we are -no longer using msvcrt.dll, but another runtime -like msvcrt71.dll, and we then need that DLL. In -contrast to msvcrt.dll it may not be present on -the target computer, so we may have to copy it along. - -Building the Ports in -MS-Windows - -The source code of the ports is readily available on the web, -one has to check the ports sites. Each port can be built without -problems in an MS-Windows environment using Microsoft development -tools. The necessary command line tools (compiler, linker, -nmake) must be available. This means running a -batch file called vcvars32.bat that comes with -Visual Studio (its exact location in the directory tree may vary -depending on the version of Visual Studio, but a file search will find -it anyway). Makefiles for the Microsoft tools are found in all -ports. They are distinguished by their suffix, e.g., -Makefile.msvc or -Makefile.msc. To build zlib it suffices to run -nmake against Makefile.msc -(i.e., with the option); similarly, to build -iconv it suffices to run nmake -against Makefile.msvc. Building libxml and -libxslt requires an extra configuration step; we must run the -configure.js configuration script with the -cscript command. configure.js -is found in the win32 directory -in the distributions. It is written in JScript, Microsoft's -implementation of the ECMA 262 language specification (ECMAScript -Edition 3), a JavaScript offspring. The configuration string takes a -number of parameters detailing our environment and needs; -cscript configure.js help documents -them. - -It is wise to read all documentation files in the source -distributions before starting; moreover, pay attention to the -dependencies between the ports. If we configure libxml and libxslt to -use iconv and zlib we must build these two first and make sure their -headers and libraries can be found by the compiler and the -linker when building libxml and libxslt. - - - - - -zlib, iconv and All That - -We saw that libxml and libxslt depend on various other -libraries, for instance zlib, iconv, and so forth. Taking a look into -them gives us clues on the capabilities of libxml and libxslt. - -zlib is a free general -purpose lossless data compression library. It is a venerable -workhorse; more than 500 applications -(both commercial and open source) seem to use the library. libxml uses -zlib so that it can read from or write to compressed files -directly. The xmlParseFile function can -transparently parse a compressed document to produce an -xmlDoc. If we want to create a compressed -document with libxml we can use an -xmlTextWriterPtr (obtained through -xmlNewTextWriterDoc), or another related -structure from libxml/xmlwriter.h, with -compression enabled. - -XML allows documents to use a variety of different character -encodings. iconv is a free -library for converting between different character encodings. libxml -provides a set of default converters for some encodings: UTF-8, UTF-16 -(little endian and big endian), ISO-8859-1, ASCII, and HTML (a -specific handler for the conversion of UTF-8 to ASCII with HTML -predefined entities like &copy; for the copyright sign). However, -when compiled with iconv support, libxml and libxslt can handle the -full range of encodings provided by iconv; these should cover most -needs. - -libxml and libxslt can be used in multi-threaded -applications. In MS-Windows they are linked against -MSVCRT.DLL (or one of its descendants, as we saw -above). In *NIX the pthreads -(POSIX threads) library is used. - - - -The Complete Program - - -The complete program listing is given below. The program is also -available online. - - - - - - - - - - -
    diff --git a/src/tools/docbook/libxslt/doc/xsa.xsl b/src/tools/docbook/libxslt/doc/xsa.xsl deleted file mode 100644 index 343ef34af5..0000000000 --- a/src/tools/docbook/libxslt/doc/xsa.xsl +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - Daniel Veillard - daniel@veillard.com - http://veillard.com/ - - - libxslt - - - http://xmlsoft.org/XSLT/ - - - - - - - - - - - - - - - - - - - - - - - at - - - - - - - diff --git a/src/tools/docbook/libxslt/doc/xslt.html b/src/tools/docbook/libxslt/doc/xslt.html deleted file mode 100644 index 4131e71ce4..0000000000 --- a/src/tools/docbook/libxslt/doc/xslt.html +++ /dev/null @@ -1,2383 +0,0 @@ - - - - The XSLT C library for Gnome - - - - - -

    The XSLT C library for Gnome

    - -

    libxslt

    - -

    Libxslt is the XSLTC -librarydeveloped for the Gnome project. XSLT itself is a an XML language to -definetransformation for XML. Libxslt is based on libxml2the XML C library developed for -theGnome project. It also implements most of the EXSLTset of processor-portable -extensionsfunctions and some of Saxon's evaluate and expressions -extensions.

    - -

    People can either embed the library in their application or use -xsltprocthe command line processing tool. This library is free software and -can bereused in commercial applications (see the intro)

    - -

    External documents:

    - - -

    - -

    Logo designed by Marc Liyanage.

    - -

    Introduction

    - -

    This document describes libxslt,the -XSLTC library developed for theGnomeproject.

    - -

    Here are some key points about libxslt:

    -
      -
    • Libxslt is a C implementation
    • -
    • Libxslt is based on libxml for XML parsing, tree manipulation and - XPathsupport
    • -
    • It is written in plain C, making as few assumptions as possible, - andsticking closely to ANSI C/POSIX for easy embedding. Should works - onLinux/Unix/Windows.
    • -
    • This library is released under the MITLicence
    • -
    • Though not designed primarily with performances in mind, libxslt - seemsto be a relatively fast processor.
    • -
    - -

    Documentation

    - -

    There are some on-line resources about using libxslt:

    -
      -
    1. Check the APIdocumentationautomatically - extracted from code comments (using theprogram apibuild.py, developed for - libxml, together with the xsl script'newapi.xsl' and the libxslt xsltproc - program).
    2. -
    3. Look at the mailing-listarchive.
    4. -
    5. Of course since libxslt is based on libxml, it's a good idea to atleast - read libxml description
    6. -
    - -

    Reporting bugs and getting help

    - -

    If you need help with the XSLT language itself, here are a number ofuseful -resources:

    - - -

    Well, bugs or missing features are always possible, and I will make apoint -of fixing them in a timely fashion. The best way to report a bug is touse the -Gnome -bugtracking database(make sure to use the "libxslt" module name). -Beforefiling a bug, check the list of -existinglibxslt bugsto make sure it hasn't already been filed. I look at -reportsthere regularly and it's good to have a reminder when a bug is still -open. Besure to specify that the bug is for the package libxslt.

    - -

    For small problems you can try to get help on IRC, the #xml channel -onirc.gnome.org (port 6667) usually have a few person subscribed which may -help(but there is no garantee and if a real issue is raised it should go on -themailing-list for archival).

    - -

    There is also a mailing-list xslt@gnome.orgfor libxslt, with an on-line archive. To -subscribeto this list, please visit the associated Webpageand -follow the instructions.

    - -

    Alternatively, you can just send the bug to the xslt@gnome.orglist, if it's really -libxsltrelated I will approve it.. Please do not send me mail directly -especiallyfor portability problem, it makes things really harder to track and -in somecases I'm not the best person to answer a given question, ask the -listinstead. Do not send code, I won't debug it(but patches -arereally appreciated!).

    - -

    Please note that with the current amount of virus and SPAM, sending mailto -the list without being subscribed won't work. There is *far too manybounces* -(in the order of a thousand a day !) I cannot approve them manuallyanymore. -If your mail to the list bounced waiting for administrator approval,it is -LOST ! Repost it and fix the problem triggering the error. Also pleasenote -that emails witha -legal warning asking to not copy or redistribute freely the informationsthey -containare NOTacceptable for the mailing-list,such -mail will as much as possible be discarded automatically, and are lesslikely -to be answered if they made it to the list, DO NOTpost to -the list from an email address where such legal requirements areautomatically -added, get private paying support if you can't shareinformations.

    - -

    Check the following too beforeposting:

    -
      -
    • use the search engineto get - informationsrelated to your problem.
    • -
    • make sure you are using a - recentversion, and that the problem still shows up in those
    • -
    • check the listarchivesto see if the - problem was reported already, in this casethere is probably a fix - available, similarly check the registeredopen - bugs
    • -
    • make sure you can reproduce the bug with xsltproc, a very useful - thingto do is run the transformation with -v argument and redirect - thestandard error to a file, then search in this file for the - transformationlogs just preceding the possible problem
    • -
    • Please send the command showing the error as well as the input - andstylesheet (as an attachment)
    • -
    - -

    Then send the bug with associated informations to reproduce it to the xslt@gnome.orglist; if it's really -libxsltrelated I will approve it. Please do not send mail to me directly, it -makesthings really hard to track and in some cases I am not the best person -toanswer a given question, ask on the list.

    - -

    To be really clear about support:

    -
      -
    • Support or help request MUST be sent tothe - list or on bugzillain case of problems, so that the Questionand - Answers can be shared publicly. Failing to do so carries the - implicitmessage "I want free support but I don't want to share the - benefits withothers" and is not welcome. I will automatically Carbon-Copy - thexslt@gnome.org mailing list for any technical reply made about libxml2 - orlibxslt.
    • -
    • There is no garantee for support,if - your question remains unanswered after a week, repost it, making sureyou - gave all the detail needed and the informations requested.
    • -
    • Failing to provide informations as requested or double checking - firstfor prior feedback also carries the implicit message "the time of - thelibrary maintainers is less valuable than my time" and might not - bewelcome.
    • -
    - -

    Of course, bugs reports with a suggested patch for fixing them -willprobably be processed faster.

    - -

    If you're looking for help, a quick look at the list archivemay -actuallyprovide the answer, I usually send source samples when answering -libxsltusage questions. The auto-generated -documentationisnot as polished as I would like (I need to learn more -about Docbook), butit's a good starting point.

    - -

    How to help

    - -

    You can help the project in various ways, the best thing to do first is -tosubscribe to the mailing-list as explained before, check the archives and the Gnome -bugdatabase::

    -
      -
    1. provide patches when you find problems
    2. -
    3. provide the diffs when you port libxslt to a new platform. They may - notbe integrated in all cases but help pinpointing portability - problemsand
    4. -
    5. provide documentation fixes (either as patches to the code comments - oras HTML diffs).
    6. -
    7. provide new documentations pieces (translations, examples, etc ...)
    8. -
    9. Check the TODO file and try to close one of the items
    10. -
    11. take one of the points raised in the archive or the bug database - andprovide a fix. Get in touch with - mebefore to avoid synchronization problems and check that the - suggestedfix will fit in nicely :-)
    12. -
    - -

    Downloads

    - -

    The latest versions of libxslt can be found on the xmlsoft.orgserver and on mirrors (France) or on the Gnome FTP serveras asourcearchive, -Antonin Sprinzl also provides a -mirror in Austria. (NOTE thatyou need the libxml2,libxml2-devel,libxsltand libxslt-develpackages -installed to compile applications using libxslt.) Igor Zlatkovicis now the maintainer -ofthe Windows port, he -providesbinaries. Gary -Penningtonprovides Solaris -binaries.Steve -Ballprovides Mac -Os Xbinaries.

    - -

    Contribs:

    - -

    I do accept external contributions, especially if compiling on -anotherplatform, get in touch with me to upload the package. I will keep them -in thecontrib directory

    - -

    Libxslt is also available from CVS:

    - - -

    FAQ

    -
      -
    1. Troubles compiling or linking programs using libxslt -

      Usually the problem comes from the fact that the compiler doesn't - getthe right compilation or linking flags. There is a small shell - scriptxslt-configwhich is installed as part of libxslt - usualinstall process which provides those flags. Use

      -

      xslt-config --cflags

      -

      to get the compilation flags and

      -

      xslt-config --libs

      -

      to get the linker flags. Usually this is done directly from - theMakefile as:

      -

      CFLAGS=`xslt-config --cflags`

      -

      LIBS=`xslt-config --libs`

      -

      Note also that if you use the EXSLT extensions from the program - thenyou should prepend -lexsltto the LIBS options

      -
    2. -
    3. passing parameters on the xsltproc command line doesn't work -

      xsltproc --param test alpha foo.xsl foo.xml

      -

      the param does not get passed and ends up as ""

      -

      In a nutshell do a double escaping at the shell prompt:

      -

      xsltproc --param test "'alpha'" foo.xsl foo.xml

      -

      i.e. the string value is surrounded by " and ' then terminated by 'and - ". Libxslt interpret the parameter values as XPath expressions, sothe - string ->alpha<- is intepreted as the node setmatching - this string. You really want ->'alpha'<- tobe passed - to the processor. And to allow this you need to escape thequotes at the - shell level using ->"'alpha'"<- .

      -

      or use

      -

      xsltproc --stringparam test alpha foo.xsl foo.xml

      -
    4. -
    5. Is there C++ bindings ? -

      Yes for example xmlwrapp, see the related pages about bindings

      -
    6. -
    - -

    News

    - -

    The change logdescribes the recents commitsto -the CVScode base.

    - -

    Those are the public releases made:

    - -

    1.1.17: Jun 6 2006

    -
      -
    • portability fixes: python detection
    • -
    • bug fixes: some regression tests, attribute/namespaces output (Kasimier - Buchcik), problem in mixed xsl:value-of and xsl:text uses (Kasimier)
    • -
    • improvements: internal refactoring (Kasimier Buchcik), use of the XPath - object cache in libxml2-2.6.25 (Kasimier)
    • -
    - -

    1.1.16: May 01 2006

    -
      -
    • portability fixes: EXSLT date/time on Solaris and IRIX (Albert - Chin),HP-UX build (Albert Chin),
    • -
    • build fixes: Python detection(Joseph Sacco), plugin configurei(Joel - Reed)
    • -
    • bug fixes: pattern compilation fix(William Brack), EXSLT date/timefix - (Thomas Broyer), EXSLT function bug, potential loop on variableeval, - startup race (Christopher Palmer), debug statement left in python(Nic - Ferrier), various cleanup based on Coverity reports), error onOut of - memory condition (Charles Hardin), various namespace prefixesfixes - (Kasimier Buchcik),
    • -
    • improvement: speed up sortingi, start of internals refactoring - (KasimierBuchcik)
    • -
    • documentation: man page fixes and updates (Daniel Leidert)
    • -
    - -

    1.1.15: Sep 04 2005

    -
      -
    • build fixes: Windows build cleanups and updates (Igor Zlatkovic),remove - jhbuild warnings
    • -
    • bug fixes: negative number formatting (William Brack), numberformatting - per mille definition (William Brack), XInclude default values(William), - text copy bugs (William), bug related to xmlXPathContext size,reuse - libxml2 memory management for text nodes, dictionnary text bug,forbid - variables in match (needs libxml2-2.6.21)
    • -
    • improvements: EXSLT dyn:map (Mark Vakoc),
    • -
    • documentation: EXSLT date and time functions namespace in man - (JonathanWakely)
    • -
    - -

    1.1.14: Apr 02 2005

    -
      -
    • bug fixes: text node on stylesheet document without a - dictionary(William Brack), more checking of XSLT syntax, calling - xsltInit()multiple times, mode values interning raised by Mark Vakoc, bug - inpattern matching with ancestors, bug in patterna matching with - cascadingselect, xinclude and document() problem, build outside of source - tree(Mike Castle)
    • -
    • improvement: added a --nodict mode to xsltproc to check problems - fordocuemtns without dictionnaries
    • -
    - -

    1.1.13: Mar 13 2005

    -
      -
    • build fixes: 64bits cleanup (William Brack), python 2.4 test - (William),LIBXSLT_VERSION_EXTRA on Windows (William), Windows makefiles - fixes (JoelReed), libgcrypt-devel requires for RPM spec.
    • -
    • bug fixes: exslt day-of-week-in-month (Sal Paradise), - xsl:call-templateshould not change the current template rule (William - Brack), evaluationof global variables (William Brack), RVT's in XPath - predicates (William),namespace URI on template names (Mark Vakoc), stat() - for Windows patch(Aleksey Gurtovoy), pattern expression fixes (William - Brack), out ofmemory detection misses (William), parserOptions - propagation (William),exclude-result-prefixes fix (William), // patten - fix (William).
    • -
    • extensions: module support (Joel Reed), dictionnary based - speedupstrying to get rid of xmlStrEqual as much as possible.
    • -
    • documentation: added Wiki (Joel Reed)
    • -
    - -

    1.1.12: Oct 29 2004

    -
      -
    • build fixes: warnings removal (William).
    • -
    • bug fixes: attribute document pointer fix (Mark Vakoc), exslt - datenegative periods (William Brack), generated tree structure - fixes,namespace lookup fix, use reentrant gmtime_r (William - Brack),exslt:funtion namespace fix (William), potential NULL pointer - reference(Dennis Dams, William), force string interning on - generateddocuments.
    • -
    • documentation: update of the second tutorial (Panagiotis Louridas), - addexslt doc in rpm packages, fix the xsltproc man page.
    • -
    - -

    1.1.11: Sep 29 2004

    -
      -
    • bug fixes: xsl:include problems (William Brack), UTF8 number - pattern(William), date-time validation (William), namespace fix - (William),various Exslt date fixes (William), error callback fixes, leak - withnamespaced global variable, attempt to fix a weird problem - #153137
    • -
    • improvements: exslt:date-sum tests (Derek Poon)
    • -
    • documentation: second tutorial by Panagiotis Lourida
    • -
    - -

    1.1.10: Aug 31 2004

    -
      -
    • build fix: NUL in c file blocking compilation on Solaris, Windows - build(Igor Zlatkovic)
    • -
    • fix: key initialization problem (William Brack)
    • -
    • documentation: fixed missing man page description for --path
    • -
    - -

    1.1.9: Aug 22 2004

    -
      -
    • build fixes: missing tests (William Brack), Python dependancies, - Pythonon 64bits boxes, --with-crypto flag (Rob Richards),
    • -
    • fixes: RVT key handling (William), Python binding (William and - SitsofeWheeler), key and XPath troubles (William), template priority on - imports(William), str:tokenize with empty strings (William), #default - namespacealias behaviour (William), doc ordering missing for main - document(William), 64bit bug (Andreas Schwab)
    • -
    • improvements: EXSLT date:sum added (Joel Reed), hook for - documentloading for David Hyatt, xsltproc --nodtdattr to avoid defaulting - DTDattributes, extend xsltproc --version with CVS stamp (William).
    • -
    • Documentation: web page problem reported by Oliver Stoeneberg
    • -
    - -

    1.1.8: July 5 2004

    -
      -
    • build fixes: Windows runtime options (Oliver Stoeneberg), Windowsbinary - package layout (Igor Zlatkovic), libgcrypt version test and - link(William)
    • -
    • documentation: fix libxslt namespace name in doc (William)
    • -
    • bug fixes: undefined namespace message (William Brack), search - engine(William), multiple namespace fixups (William), namespace fix for - keyevaluation (William), Python memory debug bindings,
    • -
    • improvements: crypto extensions for exslt (Joel Reed, William)
    • -
    - -

    1.1.7: May 17 2004

    -
      -
    • build fix: warning about localtime_r on Solaris
    • -
    • bug fix: UTF8 string tokenize (William Brack), subtle memorycorruption, - linefeed after comment at document level - (William),disable-output-escaping problem (William), pattern compilation - in deepimported stylesheets (William), namespace extension prefix - bug,libxslt.m4 bug (Edward Rudd), namespace lookup for attribute, - namespacedDOCTYPE name
    • -
    - -

    1.1.6: Apr 18 2004

    -
      -
    • 2 bug fixes about keys fixed one by Mark Vakoc
    • -
    - -

    1.1.5: Mar 23 2004

    -
      -
    • performance: use dictionnary lookup for variables
    • -
    • remove use of _private from source documents
    • -
    • cleanup of "make tests" output
    • -
    • bugfixes: AVT in local variables, use localtime_r to avoid - threadtroubles (William), dictionary handling bug (William), limited - number ofstubstitutions in AVT (William), tokenize fix for UTF-8 - (William),superfluous namespace (William), xsltproc error code - on<xsl:message> halt, OpenVMS fix, dictionnary reference - countingchange.
    • -
    - -

    1.1.4: Feb 23 2004

    -
      -
    • bugfixes: attributes without doc (Mariano Suárez-Alvarez), problem - withYelp, extension problem
    • -
    • display extension modules (Steve Little)
    • -
    • Windows compilation patch (Mark Vadoc), Mingw (Mikhail Grushinskiy)
    • -
    - -

    1.1.3: Feb 16 2004

    -
      -
    • Rewrote the Attribute Value Template code, new XPath - compilationinterfaces, dictionnary reuses for XSLT with potential for - seriousperformance improvements.
    • -
    • bug fixes: portability (William Brack), key() in node-set() - results(William), comment before doctype (William), math and node-set() - problems(William), cdata element and default namespace (William), - behaviour onunknown XSLT elements (Stefan Kost), priority of "//foo" - patterns(William), xsl:element and xsl:attribute QName check (William), - commentswith -- (William), attribute namespace (William), check for ?> - in PI(William)
    • -
    • Documentations: cleanup (John Fleck and William)
    • -
    • Python: patch for OS-X (Gianni Ceccarelli), enums export - (Stephanebidoul)
    • -
    - -

    1.1.2: Dec 24 2003

    -
      -
    • Documentation fixes (John Fleck, William Brack), EXSLT - documentation(William Brack)
    • -
    • Windows compilation fixes for MSVC and Mingw (Igor Zlatkovic)
    • -
    • Bug fixes: exslt:date returning NULL strings (William Brack),namespaces - output (William Brack), key and namespace definition problem,passing - options down to the document() parser, xsl:number fixes - (WilliamBrack)
    • -
    - -

    1.1.1: Dec 10 2003

    -
      -
    • code cleanup (William Brack)
    • -
    • Windows: Makefile improvements (Igor Zlatkovic)
    • -
    • documentation improvements: William Brack, libexslt man page - (JonathanWakely)
    • -
    • param in EXSLT functions (Shaun McCance)
    • -
    • XSLT debugging improvements (Mark Vakoc)
    • -
    • bug fixes: number formatting (Bjorn Reese), exslt:tokenize - (WilliamBrack), key selector parsing with | reported by Oleg - Paraschenko,xsl:element with computed namespaces (William Brack), - xslt:import/includerecursion detection (William Brack), exslt:function - used in keys (WilliamBrack), bug when CDATA_SECTION are foun in the tree - (William Brack),entities handling when using XInclude.
    • -
    - -

    1.1.0: Nov 4 2003

    -
      -
    • Removed DocBook SGML broken support
    • -
    • fix xsl:key to work with PIs
    • -
    • Makefile and build improvement (Graham Wilson), build cleanup - (WilliamBrack), macro fix (Justin Fletcher), build outside of source tree - (RoumenPetrov)
    • -
    • xsltproc option display fix (Alexey Efimov), --load-trace - (CrutcherDunnavant)
    • -
    • Python: never use stdout for error
    • -
    • extension memory error fix (Karl Eichwalder)
    • -
    • header path fixes (Steve Ball)
    • -
    • added saxon:line-number() to libexslt (Brett Kail)
    • -
    • Fix some tortuous template problems when using predicates - (WilliamBrack)
    • -
    • Debugger status patch (Kasimier Buchcik)
    • -
    • Use new libxml2-2.6.x APIs for faster processing
    • -
    • Make sure xsl:sort is empty
    • -
    • Fixed a bug in default processing of attributes
    • -
    • Removes the deprecated breakpoint library
    • -
    • detect invalid names on templates (William Brack)
    • -
    • fix exslt:document (and similar) base handling problem
    • -
    - -

    1.0.33: Sep 12 2003

    - -

    This is a bugfix only release

    -
      -
    • error message missing argument (William Brack)
    • -
    • mode not cascaded in template fallbacks (William Brack)
    • -
    • catch redefinition of parameter/variables (William Brack)
    • -
    • multiple keys with same namespace name (William Brack)
    • -
    • patch for compilation using MingW on Windows (Mikhail Grushinskiy)
    • -
    • header export macros for Windows (Igor Zlatkovic)
    • -
    • cdata-section-elements handling of namespaced names
    • -
    • compilation without libxml2 XPointer support (Mark Vadoc)
    • -
    • apply-templates crash (William Brack)
    • -
    • bug with imported templates (William Brack)
    • -
    • imported attribute-sets merging bug (DocBook) (William Brack)
    • -
    - -

    1.0.32: Aug 9 2003

    -
      -
    • bugfixes: xsltSaveResultToFile() python binding (Chris Jaeger), - EXSLTfunction (William Brack), RVT for globals (William Brack), EXSLT - date(William Brack), -

      speed of large text output, xsl:copy with attributes, strip-space - andnamespaces prefix, fix for --path xsltproc option, EXST:tokenize - (ShaunMcCance), EXSLT:seconds (William Brack), sort with multiple keys - (WilliamBrack), checking of { and } for attribute value templates - (WilliamBrack)

      -
    • -
    • Python bindings for extension elements (Sean Treadway)
    • -
    • EXSLT:split added (Shaun McCance)
    • -
    • portability fixes for HP-UX/Solaris/IRIX (William Brack)
    • -
    • doc cleanup
    • -
    - -

    1.0.31: Jul 6 2003

    -
      -
    • bugfixes: xsl:copy on namespace nodes, AVT for xsl:sort order, fix - forthe debugger (Keith Isdale), output filename limitation, trio.h - andtriodef.h added (Albert Chin), EXSLT node-set (Peter - Breitenlohner),xsltChoose and whitespace (Igor Zlatkovic), -

      stylesheet compilation (Igor Zlatkovic), NaN and sort (William - Brack),RVT bug introduced in 1.0.30

      -
    • -
    • avoid generating &quot; (fix in libxml2-2.5.8)
    • -
    • fix 64bit cleaness problem and compilation troubles introduced - in1.0.30
    • -
    • Windows makefile generation (Igor Zlatkovic)
    • -
    • HP-UX portability fix
    • -
    - -

    1.0.30: May 4 2003

    -
      -
    • Fixes and new APIs to handle Result Value Trees and avoid leaks
    • -
    • Fixes for: EXSLT math pow() function (Charles Bozeman), globalparameter - and global variables mismatch, a segfault on patterncompilation errors, - namespace copy in xsl:copy-of, python generatorproblem, OpenVMS trio - update, premature call to xsltFreeStackElem (Igor),current node when - templates applies to attributes
    • -
    - -

    1.0.29: Apr 1 2003

    -
      -
    • performance improvements especially for large flat documents
    • -
    • bug fixes: Result Value Tree handling, XML IDs, keys(), extra - namespacedeclarations with xsl:elements.
    • -
    • portability: python and trio fixes (Albert Chin), python on Solaris(Ben - Phillips)
    • -
    - -

    1.0.28: Mar 24 2003

    -
      -
    • fixed node() in patterns semantic.
    • -
    • fixed a memory access problem in format-number()
    • -
    • fixed stack overflow in recursive global variable or params
    • -
    • cleaned up Result Value Tree handling, and fixed a couple of old bugsin - the process
    • -
    - -

    1.0.27: Feb 24 2003

    -
      -
    • bug fixes: spurious xmlns:nsX="" generation, serialization bug - (inlibxml2), a namespace copy problem, errors in the RPM spec prereqs
    • -
    • Windows path canonicalization and document cache fix (Igor)
    • -
    - -

    1.0.26: Feb 10 2003

    -
      -
    • Fixed 3 serious bugs in document() and stylesheet compilation - whichcould lead to a crash
    • -
    - -

    1.0.25: Feb 5 2003

    -
      -
    • Bug fix: double-free for standalone stylesheets introduced in 1.0.24, - Csyntax pbm, 3 bugs reported by Eric van der Vlist
    • -
    • Some XPath and XInclude related problems were actually fixed - inlibxml2-2.5.2
    • -
    • Documentation: emphasize taht --docbook is not for XML docs.
    • -
    - -

    1.0.24: Jan 14 2003

    -
      -
    • bug fixes: imported global varables, python bindings (Stéphane - Bidoul),EXSLT memory leak (Charles Bozeman), namespace generation - onxsl:attribute, space handling with imports (Daniel - Stodden),extension-element-prefixes (Josh Parsons), comments within - xsl:text (MattSergeant), superfluous xmlns generation, XInclude related - bug fornumbering, EXSLT strings (Alexey Efimov), attribute-sets - computation onimports, extension module init and shutdown callbacks not - called
    • -
    • HP-UX portability (Alexey Efimov), Windows makefiles (Igor and - StephaneBidoul), VMS makefile updates (Craig A. Berry)
    • -
    • adds xsltGetProfileInformation() (Michael Rothwell)
    • -
    • fix the API generation scripts
    • -
    • API to provide the sorting routines (Richard Jinks)
    • -
    • added XML description of the EXSLT API
    • -
    • added ESXLT URI (un)escaping (Jörg Walter)
    • -
    • Some memory leaks have been found and fixed
    • -
    • document() now support fragment identifiers in URIs
    • -
    - -

    1.0.23: Nov 17 2002

    -
      -
    • Windows build cleanup (Igor)
    • -
    • Unix build and RPM packaging cleanup
    • -
    • Improvement of the python bindings: extension functions and - activatingEXSLT
    • -
    • various bug fixes: number formatting, portability for bounded - stringfunctions, CData nodes, key(), @*[...] patterns
    • -
    • Documentation improvements (John Fleck)
    • -
    • added libxslt.m4 (Thomas Schraitle)
    • -
    - -

    1.0.22: Oct 18 2002

    -
      -
    • Updates on the Windows Makefiles
    • -
    • Added a security module, and a related set of new options - toxsltproc
    • -
    • Allowed per transformation error handler.
    • -
    • Fixed a few bugs: node() semantic, URI escaping, media-type, - attributelists
    • -
    - -

    1.0.21: Sep 26 2002

    -
      -
    • Bug fixes: match="node()", date:difference() (Igor and CharlieBozeman), - disable-output-escaping
    • -
    • Python bindings: style.saveResultToString() from Ralf Mattes
    • -
    • Logos from Marc Liyanage
    • -
    • Mem leak fix from Nathan Myers
    • -
    • Makefile: DESTDIR fix from Christophe Merlet, AMD x86_64 - (Mandrake),Windows (Igor), Python detection
    • -
    • Documentation improvements: John Fleck
    • -
    - -

    1.0.20: Aug 23 2002

    -
      -
    • Windows makefile updates (Igor) and x86-64 (Frederic Crozat)
    • -
    • fixed HTML meta tag saving for Mac/IE users
    • -
    • possible leak patches from Nathan Myers
    • -
    • try to handle document('') as best as possible depending in - thecases
    • -
    • Fixed the DocBook stylesheets handling problem
    • -
    • Fixed a few XSLT reported errors
    • -
    - -

    1.0.19: July 6 2002

    -
      -
    • EXSLT: dynamic functions and date support bug fixes (Mark Vakoc)
    • -
    • xsl:number fix: Richard Jinks
    • -
    • xsl:format-numbers fix: Ken Neighbors
    • -
    • document('') fix: bug pointed by Eric van der Vlist
    • -
    • xsl:message with terminate="yes" fixes: William Brack
    • -
    • xsl:sort order support added: Ken Neighbors
    • -
    • a few other bug fixes, some of them requiring the latest version - oflibxml2
    • -
    - -

    1.0.18: May 27 2002

    -
      -
    • a number of bug fixes: attributes, extra namespace - declarations(DocBook), xsl:include crash (Igor), documentation (Christian - Cornelssen,Charles Bozeman and Geert Kloosterman), element-available - (RichardJinks)
    • -
    • xsltproc can now list teh registered extensions thanks to MarkVakoc
    • -
    • there is a new API to save directly to a stringxsltSaveResultToString() - by Morus Walter
    • -
    • specific error registration function for the python API
    • -
    - -

    1.0.17: April 29 2002

    -
      -
    • cleanup in code, XSLT debugger support and Makefiles for Windows - byIgor
    • -
    • a C++ portability fix by Mark Vakoc
    • -
    • EXSLT date improvement and regression tests by Charles Bozeman
    • -
    • attempt to fix a bug in xsltProcessUserParamInternal
    • -
    - -

    1.0.16: April 15 2002

    -
      -
    • Bug fixes: strip-space, URL in HTML output, error when xsltproc - can'tsave
    • -
    • portability fixes: OSF/1, IEEE on alphas, Windows, Python bindings
    • -
    - -

    1.0.15: Mar 25 2002

    -
      -
    • Bugfixes: XPath, python Makefile, recursive attribute sets, - @foo[..]templates
    • -
    • Debug of memory alocation with valgind
    • -
    • serious profiling leading to significant improvement for - DocBookprocessing
    • -
    • revamp of the Windows build
    • -
    - -

    1.0.14: Mar 18 2002

    -
      -
    • Improvement in the XPath engine (libxml2-2.4.18)
    • -
    • Nasty bug fix related to exslt:node-set
    • -
    • Fixed the python Makefiles, cleanup of doc comments, Windowsportability - fixes
    • -
    - -

    1.0.13: Mar 8 2002

    -
      -
    • a number of bug fixes including "namespace node have no parents"
    • -
    • Improvement of the Python bindings
    • -
    • Charles Bozeman provided fixes and regression tests for exslt - datefunctions.
    • -
    - -

    1.0.12: Feb 11 2002

    -
      -
    • Fixed the makefiles especially the python module ones
    • -
    • half a dozen bugs fixes including 2 old ones
    • -
    - -

    1.0.11: Feb 8 2002

    -
      -
    • Change of Licence to the MITLicence
    • -
    • Added a beta version of the Python bindings, including support toextend - the engine with functions written in Python
    • -
    • A number of bug fixes
    • -
    • Charlie Bozeman provided more EXSLT functions
    • -
    • Portability fixes
    • -
    - -

    1.0.10: Jan 14 2002

    -
      -
    • Windows fixes for Win32 from Igor
    • -
    • Fixed the Solaris compilation trouble (Albert)
    • -
    • Documentation changes and updates: John Fleck
    • -
    • Added a stringparam option to avoid escaping hell at the shelllevel
    • -
    • A few bug fixes
    • -
    - -

    1.0.9: Dec 7 2001

    -
      -
    • Makefile patches from Peter Williams
    • -
    • attempt to fix the compilation problem associated to prelinking
    • -
    • obsoleted libxsltbreakpoint now deprecated and frozen to 1.0.8 API
    • -
    • xsltproc return codes are now significant, John Fleck updated - thedocumentation
    • -
    • patch to allow as much as 40 steps in patterns (Marc Tardif), should - bemade dynamic really
    • -
    • fixed a bug raised by Nik Clayton when using doctypes with - HTMLoutput
    • -
    • patches from Keith Isdale to interface with xsltdebugger
    • -
    - -

    1.0.8: Nov 26 2001

    -
      -
    • fixed an annoying header problem, removed a few bugs and some - codecleanup
    • -
    • patches for Windows and update of Windows Makefiles by Igor
    • -
    • OpenVMS port instructions from John A Fotheringham
    • -
    • fixed some Makefiles annoyance and libraries prelinkinginformations
    • -
    - -

    1.0.7: Nov 10 2001

    -
      -
    • remove a compilation problem with LIBXSLT_PUBLIC
    • -
    • Finishing the integration steps for Keith Isdale debugger
    • -
    • fixes the handling of indent="no" on HTML output
    • -
    • fixes on the configure script and RPM spec file
    • -
    - -

    1.0.6: Oct 30 2001

    -
      -
    • bug fixes on number formatting (Thomas), date/time functions - (BruceMiller)
    • -
    • update of the Windows Makefiles (Igor)
    • -
    • fixed DOCTYPE generation rules for HTML output (me)
    • -
    - -

    1.0.5: Oct 10 2001

    -
      -
    • some portability fixes, including Windows makefile updates fromIgor
    • -
    • fixed a dozen bugs on XSLT and EXSLT (me and Thomas Broyer)
    • -
    • support for Saxon's evaluate and expressions extensions added - (initialcontribution from Darren Graves)
    • -
    • better handling of XPath evaluation errors
    • -
    - -

    1.0.4: Sep 12 2001

    -
      -
    • Documentation updates from John fleck
    • -
    • bug fixes (DocBook FO generation should be fixed) and - portabilityimprovements
    • -
    • Thomas Broyer improved the existing EXSLT support and added String,Time - and Date core functions support
    • -
    - -

    1.0.3: Aug 23 2001

    -
      -
    • XML Catalog support see the doc
    • -
    • New NaN/Infinity floating point code
    • -
    • A few bug fixes
    • -
    - -

    1.0.2: Aug 15 2001

    -
      -
    • lot of bug fixes, increased the testsuite
    • -
    • a large chunk of EXSLT is implemented
    • -
    • improvements on the extension framework
    • -
    • documentation improvements
    • -
    • Windows MSC projects files should be up-to-date
    • -
    • handle attributes inherited from the DTD by default
    • -
    - -

    1.0.1: July 24 2001

    -
      -
    • initial EXSLT framework
    • -
    • better error reporting
    • -
    • fixed the profiler on Windows
    • -
    • bug fixes
    • -
    - -

    1.0.0: July 10 2001

    -
      -
    • a lot of cleanup, a lot of regression tests added or fixed
    • -
    • added a documentation for writingextensions
    • -
    • fixed some variable evaluation problems (with William)
    • -
    • added profiling of stylesheet execution accessible as the - xsltproc--profile option
    • -
    • fixed element-available() and the implementation of the variouschunking - methods present, Norm Walsh provided a lot of feedback
    • -
    • exclude-result-prefixes and namespaces output should now work - asexpected
    • -
    • added support of embedded stylesheet as described in section 2.7 of - thespec
    • -
    - -

    0.14.0: July 5 2001

    -
      -
    • lot of bug fixes, and code cleanup
    • -
    • completion of the little XSLT-1.0 features left unimplemented
    • -
    • Added and implemented the extension API suggested by Thomas Broyer
    • -
    • the Windows MSC environment should be complete
    • -
    • tested and optimized with a really large document (DocBook - DefinitiveGuide) libxml/libxslt should really be faster on serious - workloads
    • -
    - -

    0.13.0: June 26 2001

    -
      -
    • lots of cleanups
    • -
    • fixed a C++ compilation problem
    • -
    • couple of fixes to xsltSaveTo()
    • -
    • try to fix Docbook-xslt-1.4 and chunking, updated the regression - testwith them
    • -
    • fixed pattern compilation and priorities problems
    • -
    • Patches for Windows and MSC project mostly contributed by Yon Derek
    • -
    • update to the Tutorial by John Fleck
    • -
    • William fixed bugs in templates and for-each functions
    • -
    • added a new interface xsltRunStylesheet() for a more flexible - output(incomplete), added -o option to xsltproc
    • -
    - -

    0.12.0: June 18 2001

    -
      -
    • fixed a dozen of bugs reported
    • -
    • HTML generation should be quite better (requires libxml-2.3.11 - upgradetoo)
    • -
    • William fixed some problems with document()
    • -
    • Fix namespace nodes selection and copy (requires libxml-2.3.11 - upgradetoo)
    • -
    • John Fleck added atutorial
    • -
    • Fixes for namespace handling when evaluating variables
    • -
    • XInclude global flag added to process XInclude on document() - ifrequested
    • -
    • made xsltproc --version more detailed
    • -
    - -

    0.11.0: June 1 2001

    - -

    Mostly a bug fix release.

    -
      -
    • integration of catalogs from xsltproc
    • -
    • added --version to xsltproc for bug reporting
    • -
    • fixed errors when handling ID in external parsed entities
    • -
    • document() should hopefully work correctly but ...
    • -
    • fixed bug with PI and comments processing
    • -
    • William fixed the XPath string functions when using unicode
    • -
    - -

    0.10.0: May 19 2001

    -
      -
    • cleanups to make stylesheet read-only (not 100% complete)
    • -
    • fixed URI resolution in document()
    • -
    • force all XPath expression to be compiled at stylesheet parsing - time,even if unused ...
    • -
    • Fixed HTML default output detection
    • -
    • Fixed double attribute generation #54446
    • -
    • Fixed {{ handling in attributes #54451
    • -
    • More tests and speedups for DocBook document transformations
    • -
    • Fixed a really bad race like bug in xsltCopyTreeList()
    • -
    • added a documentation on the libxslt internals
    • -
    • William Brack and Bjorn Reese improved format-number()
    • -
    • Fixed multiple sort, it should really work now
    • -
    • added a --docbook option for SGML DocBook input (hackish)
    • -
    • a number of other bug fixes and regression test added as people - weresubmitting them
    • -
    - -

    0.9.0: May 3 2001

    -
      -
    • lot of various bugfixes, extended the regression suite
    • -
    • xsltproc should work with multiple params
    • -
    • added an option to use xsltproc with HTML input
    • -
    • improved the stylesheet compilation, processing of complex - stylesheetsshould be faster
    • -
    • using the same stylesheet for concurrent processing on - multithreadedprograms should work now
    • -
    • fixed another batch of namespace handling problems
    • -
    • Implemented multiple level of sorting
    • -
    - -

    0.8.0: Apr 22 2001

    -
      -
    • fixed ansidecl.h problem
    • -
    • fixed unparsed-entity-uri() and generate-id()
    • -
    • sort semantic fixes and priority prob from William M. Brack
    • -
    • fixed namespace handling problems in XPath expression - computations(requires libxml-2.3.7)
    • -
    • fixes to current() and key()
    • -
    • other, smaller fixes, lots of testing with N Walsh DocBook - HTMLstylesheets
    • -
    - -

    0.7.0: Apr 10 2001

    -
      -
    • cleanup using stricter compiler flags
    • -
    • command line parameter passing
    • -
    • fix to xsltApplyTemplates from William M. Brack
    • -
    • added the XSLTMark in the regression tests as well as document()
    • -
    - -

    0.6.0: Mar 22 2001

    -
      -
    • another beta
    • -
    • requires 2.3.5, which provide XPath expression compilation support
    • -
    • document() extension should function properly
    • -
    • fixed a number or reported bugs
    • -
    - -

    0.5.0: Mar 10 2001

    -
      -
    • fifth beta
    • -
    • some optimization work, for the moment 2 XSLT transform cannot use - thesame stylesheet at the same time (to be fixed)
    • -
    • fixed problems with handling of tree results
    • -
    • fixed a reported strip-spaces problem
    • -
    • added more reported/fixed bugs to the test suite
    • -
    • incorporated William M. Brack fix for imports and global variables - aswell as patch for with-param support in apply-templates
    • -
    • a bug fix on for-each
    • -
    - -

    0.4.0: Mar 1 2001

    -
      -
    • fourth beta test, released at the same time of libxml2-2.3.3
    • -
    • bug fixes
    • -
    • some optimization
    • -
    • started implement extension support, not finished
    • -
    • implemented but not tested multiple file output
    • -
    - -

    0.3.0: Feb 24 2001

    -
      -
    • third beta test, released at the same time of libxml2-2.3.2
    • -
    • lot of bug fixes
    • -
    • some optimization
    • -
    • added DocBook XSL based testsuite
    • -
    - -

    0.2.0: Feb 15 2001

    -
      -
    • second beta version, released at the same time as libxml2-2.3.1
    • -
    • getting close to feature completion, lot of bug fixes, some in the - HTMLand XPath support of libxml
    • -
    • start becoming usable for real work. This version can now regeneratethe - XML 2e HTML from the original XML sources and the associatedstylesheets - (in section I of the - XMLREC)
    • -
    • Still misses extension element/function/prefixes support. Support - ofkey() and document() is not complete
    • -
    - -

    0.1.0: Feb 8 2001

    -
      -
    • first beta version, released at the same time as libxml2-2.3.0
    • -
    • lots of bug fixes, first "testing" version, but incomplete
    • -
    - -

    0.0.1: Jan 25 2001

    -
      -
    • first alpha version released at the same time as libxml2-2.2.12
    • -
    • Framework in place, should work on simple examples, but far from - beingfeature complete
    • -
    - -

    The xsltproc tool

    - -

    This program is the simplest way to use libxslt: from the command line. -Itis also used for doing the regression tests of the library.

    - -

    It takes as first argument the path or URL to an XSLT stylesheet, the -nextarguments are filenames or URIs of the inputs to be processed. The output -ofthe processing is redirected on the standard output. There is actually a -fewmore options available:

    -
    orchis:~ -> xsltproc
    -Usage: xsltproc [options] stylesheet file [file ...]
    -   Options:
    -      --version or -V: show the version of libxml and libxslt used
    -      --verbose or -v: show logs of what's happening
    -      --output file or -o file: save to a given file
    -      --timing: display the time used
    -      --repeat: run the transformation 20 times
    -      --debug: dump the tree of the result instead
    -      --novalid: skip the Dtd loading phase
    -      --noout: do not dump the result
    -      --maxdepth val : increase the maximum depth
    -      --html: the input document is(are) an HTML file(s)
    -      --docbook: the input document is SGML docbook
    -      --param name value : pass a (parameter,value) pair
    -      --nonet refuse to fetch DTDs or entities over network
    -      --warnnet warn against fetching over the network
    -      --catalogs : use the catalogs from $SGML_CATALOG_FILES
    -      --xinclude : do XInclude processing on document intput
    -      --profile or --norman : dump profiling informations 
    -orchis:~ ->
    - -

    DocBook

    - -

    The duck picture

    - -

    DocBookis -anXML/SGML vocabulary particularly well suited to books and papers -aboutcomputer hardware and software.

    - -

    xsltproc and libxslt are not specifically dependant on DocBook, but sincea -lot of people use xsltproc and libxml2 for DocBook formatting, here are afew -pointers and informations which may be helpful:

    - - -

    Do not use the --docbook option of xsltproc to process XML -DocBookdocuments, this option is only intended to provide some (limited) -support ofthe SGML version of DocBook.

    - -

    Points which are not DocBook specific but still worth mentionningagain:

    -
      -
    • if you think DocBook processing time is too slow, make sure you haveXML - Catalogs pointing to a local installation of the DTD of DocBook.Check the - XML Catalog pageto - understand more on this subject.
    • -
    • before processing a new document, use the command -

      xmllint --valid --noout path_to_document

      -

      to make sure that your input is valid DocBook. And fixes the - errorsbefore processing further. Note that XSLT processing may work - correctlywith some forms of validity errors left, but in general it can - givetroubles on output.

      -
    • -
    - -

    The programming API

    - -

    Okay this section is clearly incomplete. But integrating libxslt into -yourapplication should be relatively easy. First check the few steps -describedbelow, then for more detailed informations, look at thegenerated pagesfor the API and the sourceof -libxslt/xsltproc.c and the tutorial.

    - -

    Basically doing an XSLT transformation can be done in a few steps:

    -
      -
    1. configure the parser for XSLT: -

      xmlSubstituteEntitiesDefault(1);

      -

      xmlLoadExtDtdDefaultValue = 1;

      -
    2. -
    3. parse the stylesheet with xsltParseStylesheetFile()
    4. -
    5. parse the document with xmlParseFile()
    6. -
    7. apply the stylesheet using xsltApplyStylesheet()
    8. -
    9. save the result using xsltSaveResultToFile() if needed - setxmlIndentTreeOutput to 1
    10. -
    - -

    Steps 2,3, and 5 will probably need to be changed depending on -youprocessing needs and environment for example if reading/saving -from/tomemory, or if you want to apply XInclude processing to the stylesheet -orinput documents.

    - -

    Python and bindings

    - -

    There is a number of language bindings and wrappers available for -libxml2,the list below is not exhaustive. Please contact the xml-bindings@gnome.org(archives) inorder to -get updates to this list or to discuss the specific topic of libxml2or -libxslt wrappers or bindings:

    - - -

    The libxslt Python module depends on the libxml2 Pythonmodule.

    - -

    The distribution includes a set of Python bindings, which are garanteed -tobe maintained as part of the library in the future, though the -Pythoninterface have not yet reached the completeness of the C API.

    - -

    Stéphane -Bidoulmaintains a -Windows portof the Python bindings.

    - -

    Note to people interested in building bindings, the API is formalized asan XML API description filewhich allows toautomate -a large part of the Python bindings, this includes functiondescriptions, -enums, structures, typedefs, etc... The Python script used tobuild the -bindings is python/generator.py in the source distribution.

    - -

    To install the Python bindings there are 2 options:

    -
      -
    • If you use an RPM based distribution, simply install the libxml2-pythonRPMand - the libxslt-pythonRPM.
    • -
    • Otherwise use the libxml2-pythonmodule - distributioncorresponding to your installed version oflibxml2 and - libxslt. Note that to install it you will need both libxml2and libxslt - installed and run "python setup.py build install" in themodule tree.
    • -
    - -

    The distribution includes a set of examples and regression tests for -thepython bindings in the python/testsdirectory. Here are -someexcepts from those tests:

    - -

    basic.py:

    - -

    This is a basic test of XSLT interfaces: loading a stylesheet and -adocument, transforming the document and saving the result.

    -
    import libxml2
    -import libxslt
    -
    -styledoc = libxml2.parseFile("test.xsl")
    -style = libxslt.parseStylesheetDoc(styledoc)
    -doc = libxml2.parseFile("test.xml")
    -result = style.applyStylesheet(doc, None)
    -style.saveResultToFilename("foo", result, 0)
    -style.freeStylesheet()
    -doc.freeDoc()
    -result.freeDoc()
    - -

    The Python module is called libxslt, you will also need the libxml2 -modulefor the operations on XML trees. Let's have a look at the objects -manipulatedin that example and how is the processing done:

    -
      -
    • styledoc: is a libxml2 document tree. It is obtained - byparsing the XML file "test.xsl" containing the stylesheet.
    • -
    • style: this is a precompiled stylesheet ready to be usedby - the following transformations (note the plural form, - multipletransformations can resuse the same stylesheet).
    • -
    • doc: this is the document to apply the transformation - to.In this case it is simply generated by parsing it from a file but - anyother processing is possible as long as one get a libxml2 Doc. Note - thatHTML tree are suitable for XSLT processing in libxslt. This is - actuallyhow this page is generated !
    • -
    • result: this is a document generated by applying - thestylesheet to the document. Note that some of the stylesheet - informationsmay be related to the serialization of that document and as - in thisexample a specific saveResultToFilename() method of the stylesheet - shouldbe used to save it to a file (in that case to "foo").
    • -
    - -

    Also note the need to explicitely deallocate documents with -freeDoc()except for the stylesheet document which is freed when its compiled -form isgarbage collected.

    - -

    extfunc.py:

    - -

    This one is a far more complex test. It shows how to modify the -behaviourof an XSLT transformation by passing parameters and how to extend -the XSLTengine with functions defined in python:

    -
    import libxml2
    -import libxslt
    -import string
    -
    -nodeName = None
    -def f(ctx, str):
    -    global nodeName
    -
    -    #
    -    # Small check to verify the context is correcly accessed
    -    #
    -    try:
    -        pctxt = libxslt.xpathParserContext(_obj=ctx)
    -        ctxt = pctxt.context()
    -        tctxt = ctxt.transformContext()
    -        nodeName = tctxt.insertNode().name
    -    except:
    -        pass
    -
    -    return string.upper(str)
    -
    -libxslt.registerExtModuleFunction("foo", "http://example.com/foo", f)
    - -

    This code defines and register an extension function. Note that -thefunction can be bound to any name (foo) and how the binding is -alsoassociated to a namespace name "http://example.com/foo". From an XSLT -pointof view the function just returns an upper case version of the string -passedas a parameter. But the first part of the function also read some -contextualinformation from the current XSLT processing environement, in that -case itlooks for the current insertion node in the resulting output (either -theresulting document or the Result Value Tree being generated), and saves it -toa global variable for checking that the access actually worked.

    - -

    For more informations on the xpathParserContext and -transformContextobjects check the libray internals -description.The pctxt is actually an object from a class derived from -thelibxml2.xpathParserContext() with just a couple more properties including -thepossibility to look up the XSLT transformation context from the -XPathcontext.

    -
    styledoc = libxml2.parseDoc("""
    -<xsl:stylesheet version='1.0'
    -  xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
    -  xmlns:foo='http://example.com/foo'
    -  xsl:exclude-result-prefixes='foo'>
    -
    -  <xsl:param name='bar'>failure</xsl:param>
    -  <xsl:template match='/'>
    -    <article><xsl:value-of select='foo:foo($bar)'/></article>
    -  </xsl:template>
    -</xsl:stylesheet>
    -""")
    - -

    Here is a simple example of how to read an XML document from a -pythonstring with libxml2. Note how this stylesheet:

    -
      -
    • Uses a global parameter bar
    • -
    • Reference the extension function f
    • -
    • how the Namespace name "http://example.com/foo" has to be bound to - aprefix
    • -
    • how that prefix is excluded from the output
    • -
    • how the function is called from the select
    • -
    -
    style = libxslt.parseStylesheetDoc(styledoc)
    -doc = libxml2.parseDoc("<doc/>")
    -result = style.applyStylesheet(doc, { "bar": "'success'" })
    -style.freeStylesheet()
    -doc.freeDoc()
    - -

    that part is identical, to the basic example except that thetransformation -is passed a dictionnary of parameters. Note that the stringpassed "success" -had to be quoted, otherwise it is interpreted as an XPathquery for the childs -of root named "success".

    -
    root = result.children
    -if root.name != "article":
    -    print "Unexpected root node name"
    -    sys.exit(1)
    -if root.content != "SUCCESS":
    -    print "Unexpected root node content, extension function failed"
    -    sys.exit(1)
    -if nodeName != 'article':
    -    print "The function callback failed to access its context"
    -    sys.exit(1)
    -
    -result.freeDoc()
    - -

    That part just verifies that the transformation worked, that the -parametergot properly passed to the engine, that the function f() got called -and thatit properly accessed the context to find the name of the insertion -node.

    - -

    pyxsltproc.py:

    - -

    this module is a bit too long to be described there but it is basically -arewrite of the xsltproc command line interface of libxslt in Python. -Itprovides nearly all the functionalities of xsltproc and can be used as a -basemodule to write Python customized XSLT processors. One of the thing to -noticeare:

    -
    libxml2.lineNumbersDefault(1)
    -libxml2.substituteEntitiesDefault(1)
    - -

    those two calls in the main() function are needed to force the -libxml2processor to generate DOM trees compliant with the XPath data -model.

    - -

    Library internals

    - -

    Table of contents

    - - -

    Introduction

    - -

    This document describes the processing of libxslt, the XSLTC library developed for the Gnomeproject.

    - -

    Note: this documentation is by definition incomplete and I am not good -atspelling, grammar, so patches and suggestions are really welcome.

    - -

    Basics

    - -

    XSLT is a transformation language. It takes an input document and -astylesheet document and generates an output document:

    - -

    - -

    Libxslt is written in C. It relies on libxml, the XML C library for Gnome, -forthe following operations:

    -
      -
    • parsing files
    • -
    • building the in-memory DOM structure associated with the - documentshandled
    • -
    • the XPath implementation
    • -
    • serializing back the result document to XML and HTML. (Text is - handleddirectly.)
    • -
    - -

    Keep it simple stupid

    - -

    Libxslt is not very specialized. It is built under the assumption that -allnodes from the source and output document can fit in the virtual memory -ofthe system. There is a big trade-off there. It is fine for reasonably -sizeddocuments but may not be suitable for large sets of data. The gain is -that itcan be used in a relatively versatile way. The input or output may -never beserialized, but the size of documents it can handle are limited by -the sizeof the memory available.

    - -

    More specialized memory handling approaches are possible, like buildingthe -input tree from a serialization progressively as it is consumed,factoring -repetitive patterns, or even on-the-fly generation of the output asthe input -is parsed but it is possible only for a limited subset of thestylesheets. In -general the implementation of libxslt follows the followingpattern:

    -
      -
    • KISS (keep it simple stupid)
    • -
    • when there is a clear bottleneck optimize on top of this - simpleframework and refine only as much as is needed to reach the - expectedresult
    • -
    - -

    The result is not that bad, clearly one can do a better job but -morespecialized too. Most optimization like building the tree on-demand -wouldneed serious changes to the libxml XPath framework. An easy step would -be toserialize the output directly (or call a set of SAX-like output handler -tokeep this a flexible interface) and hence avoid the memory consumption of -theresult.

    - -

    The libxml nodes

    - -

    DOM-like trees, as used and generated by libxml and libxslt, arerelatively -complex. Most node types follow the given structure except a fewvariations -depending on the node type:

    - -

    description of a libxml node

    - -

    Nodes carry a nameand the node -typeindicates the kind of node it represents, the most -common ones are:

    -
      -
    • document nodes
    • -
    • element nodes
    • -
    • text nodes
    • -
    - -

    For the XSLT processing, entity nodes should not be generated (i.e. -theyshould be replaced by their content). Most nodes also contains the -following"navigation" informations:

    -
      -
    • the containing document
    • -
    • the parentnode
    • -
    • the first childrennode
    • -
    • the lastchildren node
    • -
    • the previous sibling
    • -
    • the following sibling (next)
    • -
    - -

    Elements nodes carries the list of attributes in the properties, -anattribute itself holds the navigation pointers and the children list -(theattribute value is not represented as a simple string to allow usage -ofentities references).

    - -

    The nspoints to the namespace declaration for -thenamespace associated to the node, nsDefis the linked -listof namespace declaration present on element nodes.

    - -

    Most nodes also carry an _privatepointer which can beused -by the application to hold specific data on this node.

    - -

    The XSLT processing steps

    - -

    There are a few steps which are clearly decoupled at the -interfacelevel:

    -
      -
    1. parse the stylesheet and generate a DOM tree
    2. -
    3. take the stylesheet tree and build a compiled version of it - (thecompilation phase)
    4. -
    5. take the input and generate a DOM tree
    6. -
    7. process the stylesheet against the input tree and generate an - outputtree
    8. -
    9. serialize the output tree
    10. -
    - -

    A few things should be noted here:

    -
      -
    • the steps 1/ 3/ and 5/ are optional
    • -
    • the stylesheet obtained at 2/ can be reused by multiple processing - 4/(and this should also work in threaded programs)
    • -
    • the tree provided in 2/ should never be freed using xmlFreeDoc, but - byfreeing the stylesheet.
    • -
    • the input tree 4/ is not modified except the _private field which maybe - used for labelling keys if used by the stylesheet
    • -
    - -

    The XSLT stylesheet compilation

    - -

    This is the second step described. It takes a stylesheet tree, -and"compiles" it. This associates to each node a structure stored in -the_private field and containing information computed in the stylesheet:

    - -

    - -

    One xsltStylesheet structure is generated per document parsed for -thestylesheet. XSLT documents allow includes and imports of other -documents,imports are stored in the importslist (hence -keeping thetree hierarchy of includes which is very important for a proper -XSLTprocessing model) and includes are stored in the -doclistlist. An imported stylesheet has a parent link to -allow browsing of thetree.

    - -

    The DOM tree associated to the document is stored in -doc.It is preprocessed to remove ignorable empty nodes and -all the nodes in theXSLT namespace are subject to precomputing. This usually -consist ofextracting all the context information from the context tree -(attributes,namespaces, XPath expressions), and storing them in an -xsltStylePreCompstructure associated to the _privatefield of -the node.

    - -

    A couple of notable exceptions to this are XSLT template nodes (more -onthis later) and attribute value templates. If they are actually -templates,the value cannot be computed at compilation time. (Some -preprocessing couldbe done like isolation and preparsing of the XPath -subexpressions but it'snot done, yet.)

    - -

    The xsltStylePreComp structure also allows storing of the precompiled -formof an XPath expression that can be associated to an XSLT element (more -onthis later).

    - -

    The XSLT template compilation

    - -

    A proper handling of templates lookup is one of the keys of fast -XSLTprocessing. (Given a node in the source document this is the process -offinding which templates should be applied to this node.) Libxslt follows -thehint suggested in the 5.2Patternssection of the XSLT -Recommendation, i.e. it doesn't evaluate itas an XPath expression but -tokenizes it and compiles it as a set of rules tobe evaluated on a candidate -node. There usually is an indication of the nodename in the last step of this -evaluation and this is used as a key check forthe match. As a result libxslt -builds a relatively more complex set ofstructures for the templates:

    - -

    - -

    Let's describe a bit more closely what is built. First the -xsltStylesheetstructure holds a pointer to the template hash table. All the -XSLT patternscompiled in this stylesheet are indexed by the value of the the -targetelement (or attribute, pi ...) name, so when a element or an attribute -"foo"needs to be processed the lookup is done using the name as a key.

    - -

    Each of the patterns is compiled into an xsltCompMatch structure. It -holdsthe set of rules based on the tokenization of the pattern stored in -reverseorder (matching is easier this way). It also holds some information -about theprevious matches used to speed up the process when one iterates over -a set ofsiblings. (This optimization may be defeated by trashing when -runningthreaded computation, it's unclear that this is a big deal in -practice.)Predicate expressions are not compiled at this stage, they may be -at run-timeif needed, but in this case they are compiled as full XPath -expressions (theuse of some fixed predicate can probably be optimized, they -are not yet).

    - -

    The xsltCompMatch are then stored in the hash table, the clash list -isitself sorted by priority of the template to implement "naturally" the -XSLTpriority rules.

    - -

    Associated to the compiled pattern is the xsltTemplate itself -containingthe information required for the processing of the pattern -including, ofcourse, a pointer to the list of elements used for building the -patternresult.

    - -

    Last but not least a number of patterns do not fit in the hash -tablebecause they are not associated to a name, this is the case for -patternsapplying to the root, any element, any attributes, text nodes, pi -nodes, keysetc. Those are stored independently in the stylesheet structure as -separatelinked lists of xsltCompMatch.

    - -

    The processing itself

    - -

    The processing is defined by the XSLT specification (the basis of -thealgorithm is explained in the -Introductionsection). Basically it works by taking the root of the input -document andapplying the following algorithm:

    -
      -
    1. Finding the template applying to it. This is a lookup in the - templatehash table, walking the hash list until the node satisfies all - the stepsof the pattern, then checking the appropriate(s) global - templates to seeif there isn't a higher priority rule to apply
    2. -
    3. If there is no template, apply the default rule (recurse on - thechildren)
    4. -
    5. else walk the content list of the selected templates, for each of them: -
        -
      • if the node is in the XSLT namespace then the node has a - _privatefield pointing to the preprocessed values, jump to the - specificcode
      • -
      • if the node is in an extension namespace, look up the - associatedbehavior
      • -
      • otherwise copy the node.
      • -
      -

      The closure is usually done through the - XSLTapply-templatesconstruct recursing by applying - theadequate template on the input node children or on the result of - anassociated XPath selection lookup.

      -
    6. -
    - -

    Note that large parts of the input tree may not be processed by a -givenstylesheet and that on the opposite some may be processed multiple -times.(This often is the case when a Table of Contents is built).

    - -

    The module transform.cis the one implementing most of -thislogic. xsltApplyStylesheet()is the entry point, -itallocates an xsltTransformContext containing the following:

    -
      -
    • a pointer to the stylesheet being processed
    • -
    • a stack of templates
    • -
    • a stack of variables and parameters
    • -
    • an XPath context
    • -
    • the template mode
    • -
    • current document
    • -
    • current input node
    • -
    • current selected node list
    • -
    • the current insertion points in the output document
    • -
    • a couple of hash tables for extension elements and functions
    • -
    - -

    Then a new document gets allocated (HTML or XML depending on the type -ofoutput), the user parameters and global variables and parameters -areevaluated. Then xsltProcessOneNode()which implements -the1-2-3 algorithm is called on the root element of the input. Step 1/ -isimplemented by calling xsltGetTemplate(), step 2/ -isimplemented by xsltDefaultProcessOneNode()and step 3/ -isimplemented by xsltApplyOneTemplate().

    - -

    XPath expression compilation

    - -

    The XPath support is actually implemented in the libxml module (where itis -reused by the XPointer implementation). XPath is a relatively -classicexpression language. The only uncommon feature is that it is working -on XMLtrees and hence has specific syntax and types to handle them.

    - -

    XPath expressions are compiled using xmlXPathCompile().It -will take an expression string in input and generate a structurecontaining -the parsed expression tree, for example the expression:

    -
    /doc/chapter[title='Introduction']
    - -

    will be compiled as

    -
    Compiled Expression : 10 elements
    -  SORT
    -    COLLECT  'child' 'name' 'node' chapter
    -      COLLECT  'child' 'name' 'node' doc
    -        ROOT
    -      PREDICATE
    -        SORT
    -          EQUAL =
    -            COLLECT  'child' 'name' 'node' title
    -              NODE
    -            ELEM Object is a string : Introduction
    -              COLLECT  'child' 'name' 'node' title
    -                NODE
    - -

    This can be tested using the testXPathcommand (in thelibxml -codebase) using the --treeoption.

    - -

    Again, the KISS approach is used. No optimization is done. This could bean -interesting thing to add. MichaelKay -describesa lot of possible and interesting optimizations done inSaxon -which would be possible at this level. I'm unsure they would providemuch gain -since the expressions tends to be relatively simple in general andstylesheets -are still hand generated. Optimizations at the interpretationsounds likely to -be more efficient.

    - -

    XPath interpretation

    - -

    The interpreter is implemented by -xmlXPathCompiledEval()which is the front-end to -xmlXPathCompOpEval()the functionimplementing the evaluation -of the expression tree. This evaluation followsthe KISS approach again. It's -recursive and callsxmlXPathNodeCollectAndTest()to collect -nodes set whenevaluating a COLLECTnode.

    - -

    An evaluation is done within the framework of an XPath context stored inan -xmlXPathContextstructure, in the framework of -atransformation the context is maintained within the XSLT context. Its -contentfollows the requirements from the XPath specification:

    -
      -
    • the current document
    • -
    • the current node
    • -
    • a hash table of defined variables (but not used by XSLT)
    • -
    • a hash table of defined functions
    • -
    • the proximity position (the place of the node in the current - nodelist)
    • -
    • the context size (the size of the current node list)
    • -
    • the array of namespace declarations in scope (there also is a - namespacehash table but it is not used in the XSLT transformation).
    • -
    - -

    For the purpose of XSLT an extrapointer has been -addedallowing to retrieve the XSLT transformation context. When an -XPathevaluation is about to be performed, an XPath parser context is -allocatedcontaining and XPath object stack (this is actually an XPath -evaluationcontext, this is a remain of the time where there was no separate -parsing andevaluation phase in the XPath implementation). Here is an overview -of the setof contexts associated to an XPath evaluation within an -XSLTtransformation:

    - -

    - -

    Clearly this is a bit too complex and confusing and should be refactoredat -the next set of binary incompatible releases of libxml. For example -thexmlXPathCtxt has a lot of unused parts and should probably be merged -withxmlXPathParserCtxt.

    - -

    Description of XPath Objects

    - -

    An XPath expression manipulates XPath objects. XPath defines the -defaulttypes boolean, numbers, strings and node sets. XSLT adds the result -treefragment type which is basically an unmodifiable node set.

    - -

    Implementation-wise, libxml follows again a KISS approach, -thexmlXPathObject is a structure containing a type description and the -variouspossibilities. (Using an enum could have gained some bytes.) In the -case ofnode sets (or result tree fragments), it points to a separate -xmlNodeSetobject which contains the list of pointers to the document -nodes:

    - -

    - -

    The XPath -API(andits 'internal'part) -includes a number of functions to create, copy, compare, convert orfree XPath -objects.

    - -

    XPath functions

    - -

    All the XPath functions available to the interpreter are registered in -thefunction hash table linked from the XPath context. They all share the -samesignature:

    -
    void xmlXPathFunc (xmlXPathParserContextPtr ctxt, int nargs);
    - -

    The first argument is the XPath interpretation context, holding -theinterpretation stack. The second argument defines the number of -objectspassed on the stack for the function to consume (last argument is on -top ofthe stack).

    - -

    Basically an XPath function does the following:

    -
      -
    • check nargsfor proper handling of errors or functionswith - variable numbers of parameters
    • -
    • pop the parameters from the stack using obj - =valuePop(ctxt);
    • -
    • do the function specific computation
    • -
    • push the result parameter on the stack using - valuePush(ctxt,res);
    • -
    • free up the input parameters - withxmlXPathFreeObject(obj);
    • -
    • return
    • -
    - -

    Sometime the work can be done directly by modifying in-situ the top -objecton the stack ctxt->value.

    - -

    The XSLT variables stack frame

    - -

    Not to be confused with XPath object stack, this stack holds the -XSLTvariables and parameters as they are defined through the recursive calls -ofcall-template, apply-templates and default templates. This is used to -definethe scope of variables being called.

    - -

    This part seems to be the most urgent attention right now, first it isdone -in a very inefficient way since the location of the variables andparameters -within the stylesheet tree is still done at run time (it reallyshould be done -statically at compile time), and I am still unsure that myunderstanding of -the template variables and parameter scope is actuallyright.

    - -

    This part of the documentation is still to be written once this part ofthe -code will be stable. TODO

    - -

    Extension support

    - -

    There is a separate document explaining how -theextension support works.

    - -

    Further reading

    - -

    Michael Kay wrote areally -interesting article on Saxon internalsand the work he did onperformance -issues. I wishes I had read it before starting libxslt design (Iwould -probably have avoided a few mistakes and progressed faster). A lot ofthe -ideas in his papers should be implemented or at least tried inlibxslt.

    - -

    The libxml documentation, especially the I/O interfacesand the memory management.

    - -

    TODOs

    - -

    redesign the XSLT stack frame handling. Far too much work is done -atexecution time. Similarly for the attribute value templates handling, -atleast the embedded subexpressions ought to be precompiled.

    - -

    Allow output to be saved to a SAX like output (this notion of SAX like -APIfor output should be added directly to libxml).

    - -

    Implement and test some of the optimization explained by Michael -Kayespecially:

    -
      -
    • static slot allocation on the stack frame
    • -
    • specific boolean interpretation of an XPath expression
    • -
    • some of the sorting optimization
    • -
    • Lazy evaluation of location path. (this may require more changes - butsounds really interesting. XT does this too.)
    • -
    • Optimization of an expression tree (This could be done as a - completelyindependent module.)
    • -
    - -

    - -

    Error reporting, there is a lot of case where the XSLT -specificationspecify that a given construct is an error are not checked -adequately bylibxslt. Basically one should do a complete pass on the XSLT -spec again andadd all tests to the stylesheet compilation. Using the DTD -provided in theappendix and making direct checks using the libxml validation -API sounds agood idea too (though one should take care of not raising errors -forelements/attributes in different namespaces).

    - -

    Double check all the places where the stylesheet compiled form might -bemodified at run time (extra removal of blanks nodes, hint on -thexsltCompMatch).

    - -

    - -

    Writing extensions

    - -

    Table of content

    - - -

    Introduction

    - -

    This document describes the work needed to write extensions to thestandard -XSLT library for use with libxslt, the -XSLTC library developed for the Gnomeproject.

    - -

    Before starting reading this document it is highly recommended to -getfamiliar with the libxslt internals.

    - -

    Note: this documentation is by definition incomplete and I am not good -atspelling, grammar, so patches and suggestions are really welcome.

    - -

    Basics

    - -

    The XSLT specificationprovidestwo -ways to extend an XSLT engine:

    - - -

    In both cases the extensions need to be associated to a new namespace,i.e. -an URI used as the name for the extension's namespace (there is no needto -have a resource there for this to work).

    - -

    libxslt provides a few extensions itself, either in the libxslt -namespace"http://xmlsoft.org/XSLT/namespace" or in namespaces for other well -knownextensions provided by other XSLT processors like Saxon, Xalan or XT.

    - -

    Extension modules

    - -

    Since extensions are bound to a namespace name, usually sets of -extensionscoming from a given source are using the same namespace name -defining inpractice a group of extensions providing elements, functions or -both. Fromthe libxslt point of view those are considered as an "extension -module", andmost of the APIs work at a module point of view.

    - -

    Registration of new functions or elements are bound to the activation -ofthe module. This is currently done by declaring the namespace as an -extensionby using the attribute extension-element-prefixeson -thexsl:stylesheetelement.

    - -

    An extension module is defined by 3 objects:

    -
      -
    • the namespace name associated
    • -
    • an initialization function
    • -
    • a shutdown function
    • -
    - -

    Registering a module

    - -

    Currently a libxslt module has to be compiled within the application -usinglibxslt. There is no code to load dynamically shared libraries -associated toa namespace (this may be added but is likely to become a -portabilitynightmare).

    - -

    The current way to register a module is to link the code implementing -itwith the application and to call a registration function:

    -
    int xsltRegisterExtModule(const xmlChar *URI,
    -                          xsltExtInitFunction initFunc,
    -                          xsltExtShutdownFunction shutdownFunc);
    - -

    The associated header is read by:

    -
    #include<libxslt/extensions.h>
    - -

    which also defines the type for the initialization and -shutdownfunctions

    - -

    Loading a module

    - -

    Once the module URI has been registered and if the XSLT processor -detectsthat a given stylesheet needs the functionalities of an extended -module, thisone is initialized.

    - -

    The xsltExtInitFunction type defines the interface for an -initializationfunction:

    -
    /**
    - * xsltExtInitFunction:
    - * @ctxt:  an XSLT transformation context
    - * @URI:  the namespace URI for the extension
    - *
    - * A function called at initialization time of an XSLT
    - * extension module
    - *
    - * Returns a pointer to the module specific data for this
    - * transformation
    - */
    -typedef void *(*xsltExtInitFunction)(xsltTransformContextPtr ctxt,
    -                                     const xmlChar *URI);
    - -

    There are 3 things to notice:

    -
      -
    • The function gets passed the namespace name URI as an argument. - Thisallows a single function to provide the initialization for - multiplelogical modules.
    • -
    • It also gets passed a transformation context. The initialization isdone - at run time before any processing occurs on the stylesheet but itwill be - invoked separately each time for each transformation.
    • -
    • It returns a pointer. This can be used to store module - specificinformation which can be retrieved later when a function or an - elementfrom the extension is used. An obvious example is a connection to - adatabase which should be kept and reused along with the - transformation.NULL is a perfectly valid return; there is no way to - indicate a failureat this level
    • -
    - -

    What this function is expected to do is:

    -
      -
    • prepare the context for this module (like opening the - databaseconnection)
    • -
    • register the extensions specific to this module
    • -
    - -

    Registering an extension function

    - -

    There is a single call to do this registration:

    -
    int xsltRegisterExtFunction(xsltTransformContextPtr ctxt,
    -                            const xmlChar *name,
    -                            const xmlChar *URI,
    -                            xmlXPathEvalFunc function);
    - -

    The registration is bound to a single transformation instance referred -byctxt, name is the UTF8 encoded name for the NCName of the function, and -URIis the namespace name for the extension (no checking is done, a module -couldregister functions or elements from a different namespace, but it is -notrecommended).

    - -

    Implementing an extension function

    - -

    The implementation of the function must have the signature of a -libxmlXPath function:

    -
    /**
    - * xmlXPathEvalFunc:
    - * @ctxt: an XPath parser context
    - * @nargs: the number of arguments passed to the function
    - *
    - * an XPath evaluation function, the parameters are on the
    - * XPath context stack
    - */
    -
    -typedef void (*xmlXPathEvalFunc)(xmlXPathParserContextPtr ctxt,
    -                                 int nargs);
    - -

    The context passed to an XPath function is not an XSLT context but an XPath context. However it is possible tofind -one from the other:

    -
      -
    • The function xsltXPathGetTransformContext provides this lookup facility: -
      xsltTransformContextPtr
      -         xsltXPathGetTransformContext
      -                          (xmlXPathParserContextPtr ctxt);
      -
    • -
    • The xmlXPathContextPtrassociated to - anxsltTransformContextis stored in the - xpathCtxtfield.
    • -
    - -

    The first thing an extension function may want to do is to check -thearguments passed on the stack, the nargsparameter will tell -howmany of them were provided on the XPath expression. The macro valuePop -willextract them from the XPath stack:

    -
    #include <libxml/xpath.h>
    -#include <libxml/xpathInternals.h>
    -
    -xmlXPathObjectPtr obj = valuePop(ctxt); 
    - -

    Note that ctxtis the XPath context not the XSLT one. It -isthen possible to examine the content of the value. Check the description of XPath -objectsifnecessary. The following is a common sequence checking whether -the argumentpassed is a string and converting it using the built-in -XPathstring()function if this is not the case:

    -
    if (obj->type != XPATH_STRING) {
    -    valuePush(ctxt, obj);
    -    xmlXPathStringFunction(ctxt, 1);
    -    obj = valuePop(ctxt);
    -}
    - -

    Most common XPath functions are available directly at the C level and -areexported either in <libxml/xpath.h>or -in<libxml/xpathInternals.h>.

    - -

    The extension function may also need to retrieve the data associated -tothis module instance (the database connection in the previous example) -thiscan be done using the xsltGetExtData:

    -
    void * xsltGetExtData(xsltTransformContextPtr ctxt,
    -                      const xmlChar *URI);
    - -

    Again the URI to be provided is the one which was used when registeringthe -module.

    - -

    Once the function finishes, don't forget to:

    -
      -
    • push the return value on the stack using - valuePush(ctxt,obj)
    • -
    • deallocate the parameters passed to the function - usingxmlXPathFreeObject(obj)
    • -
    - -

    Examples for extension functions

    - -

    The module libxslt/functions.c contains the sources of the XSLT -built-infunctions, including document(), key(), generate-id(), etc. as well -as a fullexample module at the end. Here is the test function implementation -for thelibxslt:test function:

    -
    /**
    - * xsltExtFunctionTest:
    - * @ctxt:  the XPath Parser context
    - * @nargs:  the number of arguments
    - *
    - * function libxslt:test() for testing the extensions support.
    - */
    -static void
    -xsltExtFunctionTest(xmlXPathParserContextPtr ctxt, int nargs)
    -{
    -    xsltTransformContextPtr tctxt;
    -    void *data;
    -
    -    tctxt = xsltXPathGetTransformContext(ctxt);
    -    if (tctxt == NULL) {
    -        xsltGenericError(xsltGenericErrorContext,
    -            "xsltExtFunctionTest: failed to get the transformation context\n");
    -        return;
    -    }
    -    data = xsltGetExtData(tctxt, (const xmlChar *) XSLT_DEFAULT_URL);
    -    if (data == NULL) {
    -        xsltGenericError(xsltGenericErrorContext,
    -            "xsltExtFunctionTest: failed to get module data\n");
    -        return;
    -    }
    -#ifdef WITH_XSLT_DEBUG_FUNCTION
    -    xsltGenericDebug(xsltGenericDebugContext,
    -                     "libxslt:test() called with %d args\n", nargs);
    -#endif
    -}
    - -

    Registering an extension element

    - -

    There is a single call to do this registration:

    -
    int xsltRegisterExtElement(xsltTransformContextPtr ctxt,
    -                           const xmlChar *name,
    -                           const xmlChar *URI,
    -                           xsltTransformFunction function);
    - -

    It is similar to the mechanism used to register an extension -function,except that the signature of an extension element implementation -isdifferent.

    - -

    The registration is bound to a single transformation instance referred -toby ctxt, name is the UTF8 encoded name for the NCName of the element, and -URIis the namespace name for the extension (no checking is done, a module -couldregister elements for a different namespace, but it is not -recommended).

    - -

    Implementing an extension element

    - -

    The implementation of the element must have the signature of an -XSLTtransformation function:

    -
    /** 
    - * xsltTransformFunction: 
    - * @ctxt: the XSLT transformation context
    - * @node: the input node
    - * @inst: the stylesheet node 
    - * @comp: the compiled information from the stylesheet 
    - * 
    - * signature of the function associated to elements part of the
    - * stylesheet language like xsl:if or xsl:apply-templates.
    - */ 
    -typedef void (*xsltTransformFunction)
    -                          (xsltTransformContextPtr ctxt,
    -                           xmlNodePtr node,
    -                           xmlNodePtr inst,
    -                           xsltStylePreCompPtr comp);
    - -

    The first argument is the XSLT transformation context. The second andthird -arguments are xmlNodePtr i.e. internal memory representation of XML nodes. They -arerespectively nodefrom the the input document being -transformedby the stylesheet and instthe extension element in -thestylesheet. The last argument is compa pointer to a -precompiledrepresentation of instbut usually for an extension -functionthis value is NULLby default (it could be added and -associatedto the instruction in inst->_private).

    - -

    The same functions are available from a function implementing an -extensionelement as in an extension function, -includingxsltGetExtData().

    - -

    The goal of an extension element being usually to enrich the -generatedoutput, it is expected that they will grow the currently generated -outputtree. This can be done by grabbing ctxt->insert which is the -currentlibxml node being generated (Note this can also be the intermediate -valuetree being built for example to initialize a variable, the processing -shouldbe similar). The functions for libxml tree manipulation from <libxml/tree.h>canbe -employed to extend or modify the tree, but it is required to preserve -theinsertion node and its ancestors since there are existing pointers to -thoseelements still in use in the XSLT template execution stack.

    - -

    Example for extension elements

    - -

    The module libxslt/transform.c contains the sources of the XSLT -built-inelements, including xsl:element, xsl:attribute, xsl:if, etc. There is -a smallbut full example in functions.c providing the implementation for -thelibxslt:test element, it will output a comment in the result tree:

    -
    /**
    - * xsltExtElementTest:
    - * @ctxt:  an XSLT processing context
    - * @node:  The current node
    - * @inst:  the instruction in the stylesheet
    - * @comp:  precomputed informations
    - *
    - * Process a libxslt:test node
    - */
    -static void
    -xsltExtElementTest(xsltTransformContextPtr ctxt, xmlNodePtr node,
    -                   xmlNodePtr inst,
    -                   xsltStylePreCompPtr comp)
    -{
    -    xmlNodePtr comment;
    -
    -    if (ctxt == NULL) {
    -        xsltGenericError(xsltGenericErrorContext,
    -                         "xsltExtElementTest: no transformation context\n");
    -        return;
    -    }
    -    if (node == NULL) {
    -        xsltGenericError(xsltGenericErrorContext,
    -                         "xsltExtElementTest: no current node\n");
    -        return;
    -    }
    -    if (inst == NULL) {
    -        xsltGenericError(xsltGenericErrorContext,
    -                         "xsltExtElementTest: no instruction\n");
    -        return;
    -    }
    -    if (ctxt->insert == NULL) {
    -        xsltGenericError(xsltGenericErrorContext,
    -                         "xsltExtElementTest: no insertion point\n");
    -        return;
    -    }
    -    comment =
    -        xmlNewComment((const xmlChar *)
    -                      "libxslt:test element test worked");
    -    xmlAddChild(ctxt->insert, comment);
    -}
    - -

    The shutdown of a module

    - -

    When the XSLT processor ends a transformation, the shutdown function (ifit -exists) for each of the modules initialized is called. -ThexsltExtShutdownFunction type defines the interface for a -shutdownfunction:

    -
    /**
    - * xsltExtShutdownFunction:
    - * @ctxt:  an XSLT transformation context
    - * @URI:  the namespace URI for the extension
    - * @data:  the data associated to this module
    - *
    - * A function called at shutdown time of an XSLT extension module
    - */
    -typedef void (*xsltExtShutdownFunction) (xsltTransformContextPtr ctxt,
    -                                         const xmlChar *URI,
    -                                         void *data);
    - -

    This is really similar to a module initialization function except a -thirdargument is passed, it's the value that was returned by the -initializationfunction. This allows the routine to deallocate resources from -the module forexample close the connection to the database to keep the same -example.

    - -

    Future work

    - -

    Well, some of the pieces missing:

    -
      -
    • a way to load shared libraries to instantiate new modules
    • -
    • a better detection of extension functions usage and their - registrationwithout having to use the extension prefix which ought to be - reserved toelement extensions.
    • -
    • more examples
    • -
    • implementations of the EXSLTcommonextension libraries, Thomas - Broyer nearly finished implementing them.
    • -
    - -

    - -

    Contributions

    - - -

    - -

    Daniel Veillard

    - - diff --git a/src/tools/docbook/libxslt/doc/xsltproc.1 b/src/tools/docbook/libxslt/doc/xsltproc.1 deleted file mode 100644 index f506946e5a..0000000000 --- a/src/tools/docbook/libxslt/doc/xsltproc.1 +++ /dev/null @@ -1,231 +0,0 @@ -.\" ** You probably do not want to edit this file directly ** -.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). -.\" Instead of manually editing it, you probably should edit the DocBook XML -.\" source for it and then use the DocBook XSL Stylesheets to regenerate it. -.TH "XSLTPROC" "1" "2006\-03\-05" "libxslt" "" -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.SH "NAME" -xsltproc \- command line XSLT processor -.SH "SYNOPSIS" -.HP 9 -\fBxsltproc\fR [[\fB\-V\fR \fB\-\-version\fR] [\fB\-v\fR \fB\-\-verbose\fR] [{\fB\-o\fR \fB\-\-output\fR} {\fIFILE\fR \fIDIRECTORY\fR}] \fB\-\-timing\fR \fB\-\-repeat\fR \fB\-\-debug\fR \fB\-\-novalid\fR \fB\-\-noout\fR \fB\-\-maxdepth\ \fR\fB\fIVALUE\fR\fR \fB\-\-html\fR \fB\-\-param\ \fR\fB\fIPARAMNAME\fR\fR\fB\ \fR\fB\fIPARAMVALUE\fR\fR\fB\ \fR \fB\-\-stringparam\ \fR\fB\fIPARAMNAME\fR\fR\fB\ \fR\fB\fIPARAMVALUE\fR\fR\fB\ \fR \fB\-\-nonet\fR \fB\-\-path\ "\fR\fB\fIPATH(S)\fR\fR\fB"\fR \fB\-\-load\-trace\fR \fB\-\-catalogs\fR \fB\-\-xinclude\fR [\fB\-\-profile\fR\ \fB\-\-norman\fR] \fB\-\-dumpextensions\fR \fB\-\-nowrite\fR \fB\-\-nomkdir\fR \fB\-\-writesubtree\ \fR\fB\fIPATH\fR\fR \fB\-\-nodtdattr\fR] [\fISTYLESHEET\fR] {\fIXML\-FILE\fR \-} -.SH "DESCRIPTION" -.PP -\fBxsltproc\fR -is a command line tool for applying -XSLT -stylesheets to -XML -documents. It is part of -\fBlibxslt\fR(3), the XSLT C library for GNOME. While it was developed as part of the GNOME project, it can operate independently of the GNOME desktop. -.PP -\fBxsltproc\fR -is invoked from the command line with the name of the stylesheet to be used followed by the name of the file or files to which the stylesheet is to be applied. It will use the standard input if a filename provided is -\fB\-\fR -. -.PP -If a stylesheet is included in an -XML -document with a Stylesheet Processing Instruction, no stylesheet need to be named at the command line. -\fBxsltproc\fR -will automatically detect the included stylesheet and use it. -.PP -By default, output is to -\fIstdout\fR. You can specify a file for output using the -\fB\-o\fR -or -\fB\-\-output\fR -option. -.PP -More information can be found at -.TP 3 -\(bu -\fBlibxml\fR(3) -web page -\fI\%http://www.xmlsoft.org/\fR -.TP -\(bu -W3C -XSLT -page -\fI\%http://www.w3.org/TR/xslt\fR -.SH "OPTIONS" -.PP -\fBxsltproc\fR -accepts the following options (in alphabetical order): -.TP -\fB\-\-catalogs\fR -Use the -SGML -catalog specified in -\fBSGML_CATALOG_FILES\fR -to resolve the location of external entities. By default, -\fBxsltproc\fR -looks for the catalog specified in -\fBXML_CATALOG_FILES\fR. If that is not specified, it uses -\fI/etc/xml/catalog\fR. -.TP -\fB\-\-debug\fR -Output an -XML -tree of the transformed document for debugging purposes. -.TP -\fB\-\-dumpextensions\fR -Dumps the list of all registered extensions on -\fIstdout\fR. -.TP -\fB\-\-html\fR -The input document is an -HTML -file. -.TP -\fB\-\-load\-trace\fR -Display all the documents loaded during the processing to -\fIstderr\fR. -.TP -\fB\-\-maxdepth \fR\fB\fIVALUE\fR\fR -Adjust the maximum depth of the template stack before -\fBlibxslt\fR(3) -concludes it is in an infinite loop. The default is 500. -.TP -\fB\-\-nodtdattr\fR -Do not apply default attributes from the document's -DTD. -.TP -\fB\-\-nomkdir\fR -Refuses to create directories. -.TP -\fB\-\-nonet\fR -Do not use the Internet to fetch -DTDs, entities or documents. -.TP -\fB\-\-noout\fR -Do not output the result. -.TP -\fB\-\-novalid\fR -Skip loading the document's -DTD. -.TP -\fB\-\-nowrite\fR -Refuses to write to any file or resource. -.TP -\fB\-o\fR or \fB\-\-output\fR \fIFILE\fR | \fIDIRECTORY\fR -Direct output to the given -\fIFILE\fR. Using the option with a -\fIDIRECTORY\fR -directs the output files to the specified directory. This can be useful for multiple outputs (also known as "chunking") or manpage processing. -\fBNote:\fR -The given directory -\fBmust\fR -already exist. -.TP -\fB\-\-param \fR\fB\fIPARAMNAME\fR\fR\fB \fR\fB\fIPARAMVALUE\fR\fR -Pass a parameter of name -\fIPARAMNAME\fR -and value -\fIPARAMVALUE\fR -to the stylesheet. You may pass multiple name/value pairs up to a maximum of 32. If the value being passed is a string rather than a node identifier, use -\fB\-\-stringparam\fR -instead. -.TP -\fB\-\-path "\fR\fB\fIPATH(S)\fR\fR\fB"\fR -Use the (space\- or colon\-separated) list of filesystem paths specified by -\fIPATHS\fR -to load -DTDs, entities or documents. Enclose space\-separated lists by quotation marks. -.TP -\fB\-\-profile\fR or \fB\-\-norman\fR -Output profiling information detailing the amount of time spent in each part of the stylesheet. This is useful in optimizing stylesheet performance. -.TP -\fB\-\-repeat\fR -Run the transformation 20 times. Used for timing tests. -.TP -\fB\-\-stringparam \fR\fB\fIPARAMNAME\fR\fR\fB \fR\fB\fIPARAMVALUE\fR\fR -Pass a paramenter of name -\fIPARAMNAME\fR -and value -\fIPARAMVALUE\fR -where -\fIPARAMVALUE\fR -is a string rather than a node identifier. -\fBNote:\fR -The string must be UTF\-8 encoded. -.TP -\fB\-\-timing\fR -Display the time used for parsing the stylesheet, parsing the document and applying the stylesheet and saving the result. Displayed in milliseconds. -.TP -\fB\-v\fR or \fB\-\-verbose\fR -Output each step taken by -\fBxsltproc\fR -in processing the stylesheet and the document. -.TP -\fB\-V\fR or \fB\-\-version\fR -Show the version of -\fBlibxml\fR(3) -and -\fBlibxslt\fR(3) -used. -.TP -\fB\-\-writesubtree \fR\fB\fIPATH\fR\fR -Allow file write only within the -\fIPATH\fR -subtree. -.TP -\fB\-\-xinclude\fR -Process the input document using the Xinclude specification. More details on this can be found in the Xinclude specification: -\fI\%http://www.w3.org/TR/xinclude/\fR -.SH "ENVIRONMENT" -.TP -\fBSGML_CATALOG_FILES\fR -to be written ... -.TP -\fBXML_CATALOG_FILES\fR -Catalog behavior can be changed by redirecting queries to the user's own set of catalogs. This can be done by setting the -\fBXML_CATALOG_FILES\fR -environment variable to a list of catalogs. An empty one should deactivate loading the default -\fI/etc/xml/catalog\fR -default catalog. -.SH "DIAGNOSTICS" -.PP -\fBxsltproc\fR's return codes provide information that can be used when calling it from scripts. -.TP -\fB0\fR -No error (normal operation) -.TP -\fB1\fR -No argument -.TP -\fB2\fR -Too many parameters -.TP -\fB3\fR -Unknown option -.TP -\fB4\fR -Failed to parse the stylesheet -.TP -\fB5\fR -Error in the stylesheet -.TP -\fB6\fR -Error in one of the documents -.TP -\fB7\fR -Unsupported xsl:output method -.TP -\fB8\fR -String parameter contains both quote and double\-quotes -.TP -\fB9\fR -Internal processing error -.TP -\fB10\fR -Processing was stopped by a terminating message -.SH "SEE ALSO" -.PP -\fBlibxslt\fR(3) -.SH "AUTHOR" -John Fleck . diff --git a/src/tools/docbook/libxslt/doc/xsltproc.html b/src/tools/docbook/libxslt/doc/xsltproc.html deleted file mode 100644 index 2aafaec956..0000000000 --- a/src/tools/docbook/libxslt/doc/xsltproc.html +++ /dev/null @@ -1,101 +0,0 @@ -xsltproc

    Name

    xsltproc — command line xslt processor

    Synopsis

    xsltproc [[-V] | [-v] | [-o file] | [--timing] | [--repeat] | [--debug] | [--novalid] | [--noout] | [--maxdepth val] | [--html] | [--param name value] | [--stringparam name value] | [--nonet] | [--path paths] | [--load-trace] | [--catalogs] | [--xinclude] | [--profile] | [--dumpextensions] | [--nowrite] | [--nomkdir] | [--writesubtree] | [--nodtdattr]] [stylesheet] [file1] [file2] [....]

    Introduction

    - xsltproc is a command line tool for applying - XSLT stylesheets to XML - documents. It is part of libxslt, the XSLT C - library for GNOME. While it was developed as part of the GNOME project, it - can operate independently of the GNOME desktop. -

    - xsltproc is invoked from the command line with - the name of the stylesheet to be used followed by the name of the file or - files to which the stylesheet is to be applied. It will use the standard - input if a filename provided is - . -

    - If a stylesheet is included in an XML document with a - Stylesheet Processing Instruction, no stylesheet need be named at the - command line. xsltproc will automatically - detect the included stylesheet and use it. -

    - By default, output is to stdout. You can specify a file for output using - the -o option. -

    Command Line Options

    -V or --version
    Show the version of - libxml and libxslt used. -
    - -v or --verbose
    Output each step taken - by xsltproc in processing the stylesheet and the document. -
    - -o or --output file
    Direct output to the file named - file. For multiple outputs, also known as - "chunking", -o directory/ directs the - output files to a specified directory. The directory must already exist. -
    - --timing
    Display the time used for parsing the - stylesheet, parsing the document and applying the stylesheet and saving - the result. Displayed in milliseconds. -
    - --repeat
    Run the transformation 20 times. Used for - timing tests. -
    - --debug
    Output an XML tree of the - transformed document for debugging purposes. -
    - --novalid
    Skip loading the document's DTD. -
    - --noout
    Do not output the result. -
    - --maxdepth value
    Adjust the - maximum depth of the template stack before - libxslt concludes it is in an infinite - loop. The default is 500. -
    - --html
    The input document is an HTML - file. -
    - --param name value
    Pass a parameter of name - name and value - value to the stylesheet. You may pass multiple - name/value pairs up to a maximum of 32. If the value being passed is a - string rather than a node identifier, use - --stringparam instead. -
    - --stringparam name value
    Pass a paramenter of name name and - value value where - value is a string rather than a node - identifier. (Note: The string must be utf-8.)
    - --nonet
    Do not use the Internet to fetch DTD's, - entities or documents. -
    --path paths
    - Use the list (separated by space or column) of filesystem paths - specified by paths to load - DTDs, entities or documents. -
    --load-trace
    - Display to stderr all the documents loaded during the processing. -
    - --catalogs
    Use the SGML catalog specified in - SGML_CATALOG_FILES to resolve the location of - external entities. By default, xsltproc - looks for the catalog specified in - XML_CATALOG_FILES. If that is not specified, it uses - /etc/xml/catalog. -
    - --xinclude
    Process the input document using the - Xinclude specification. More details on this can be found in the Xinclude - specification: http://www.w3.org/TR/xinclude/ -
    - --profile or --norman
    Output profiling - information detailing the amount of time spent in each part of the - stylesheet. This is useful in optimizing stylesheet performance. -
    - --dumpextensions
    Dumps the list of all registered extensions on stdout. -
    - --nowrite
    Refuses to write to any file or resource. -
    - --nomkdir
    Refuses to create directories. -
    - --writesubtree path
    Allow file write only within the - path subtree. -
    - --nodtdattr -
    Do not apply default attributes from the document's - DTD. -

    Return values

    xsltproc's return codes provide information - that can be used when calling it from scripts.

    0: normal

    1: no argument

    2: too many parameters

    3: unknown option

    4: failed to parse the stylesheet

    5: error in the stylesheet

    6: error in one of the documents

    7: unsupported xsl:output method

    8: string parameter contains both quote and double-quotes

    9: internal processing error

    10: processing was stopped by a terminating message

    More Information

    libxml web page: http://www.xmlsoft.org/

    W3C XSLT page: http://www.w3.org/TR/xslt

    diff --git a/src/tools/docbook/libxslt/doc/xsltproc.xml b/src/tools/docbook/libxslt/doc/xsltproc.xml deleted file mode 100644 index b1fa48615e..0000000000 --- a/src/tools/docbook/libxslt/doc/xsltproc.xml +++ /dev/null @@ -1,534 +0,0 @@ - - -xsltproc"> -]> - - - - - xsltproc Manual - libxslt - - 2001 - 2002 - - - John - Fleck - -
    - jfleck@inkstain.net -
    -
    -
    - - 2006-03-05 - - - -
    - - - xsltproc - 1 - - - - xsltproc - command line XSLT processor - - - - - xsltproc - - - - - - - - - - - - - - - - FILE - DIRECTORY - - - - - - - - - - - - - - - - - - - - - - - - - - - - - STYLESHEET - - XML-FILE - - - - - - - - DESCRIPTION - - &xsltproc; is a command line tool for applying XSLT - stylesheets to XML documents. It is part - of - libxslt - 3 - , the XSLT C library for GNOME. - While it was developed as part of the GNOME project, it can operate - independently of the GNOME desktop. - - - &xsltproc; is invoked from the command line with the name of the - stylesheet to be used followed by the name of the file or files to which - the stylesheet is to be applied. It will use the standard input if a - filename provided is - . - - - If a stylesheet is included in an XML document with a - Stylesheet Processing Instruction, no stylesheet need to be named at the - command line. &xsltproc; will automatically detect the included stylesheet - and use it. - - - By default, output is to stdout. - You can specify a file for output using - the or option. - - More information can be found at - - - - libxml - 3 - web page - - - - - W3C XSLT page - - - - - - - - OPTIONS - - &xsltproc; accepts the following options (in alphabetical order): - - - - - - - - Use the SGML catalog specified - in SGML_CATALOG_FILES to resolve the location of - external entities. By default, &xsltproc; looks for the catalog - specified in XML_CATALOG_FILES. If that is not - specified, it uses /etc/xml/catalog. - - - - - - - - - Output an XML tree of the transformed document - for debugging purposes. - - - - - - - - - Dumps the list of all registered extensions - on stdout. - - - - - - - - The input document is an HTML file. - - - - - - - - Display all the documents loaded during the processing - to stderr. - - - - - - - - - Adjust the maximum depth of the template stack - before - libxslt - 3 - concludes it is in an infinite loop. The default is 500. - - - - - - - - - Do not apply default attributes from the - document's DTD. - - - - - - - - Refuses to create directories. - - - - - - - - Do not use the Internet to fetch DTDs, entities - or documents. - - - - - - - - Do not output the result. - - - - - - - Skip loading the document's DTD. - - - - - - - Refuses to write to any file or resource. - - - - - - or - FILE | DIRECTORY - - - - Direct output to the given FILE. Using - the option with a DIRECTORY directs the - output files to the specified directory. This can be - useful for multiple outputs (also known as "chunking") or manpage - processing. Note: The given - directory must - already exist. - - - - - - - - - - - Pass a parameter of name PARAMNAME and - value PARAMVALUE to the stylesheet. You - may pass multiple name/value pairs up to a maximum of 32. If the - value being passed is a string rather than a node identifier, - use instead. - - - - - - - - - Use the (space- or colon-separated) list of filesystem paths specified - by PATHS to load DTDs, - entities or documents. Enclose space-separated lists by quotation marks. - - - - - - or - - - Output profiling information detailing the amount of time spent in - each part of the stylesheet. This is useful in optimizing stylesheet - performance. - - - - - - - - Run the transformation 20 times. Used for timing tests. - - - - - - - - - - Pass a paramenter of name PARAMNAME and - value PARAMVALUE - where PARAMVALUE is a string rather than a - node identifier. Note: The string - must be UTF-8 encoded. - - - - - - - - - Display the time used for parsing the stylesheet, parsing the document - and applying the stylesheet and saving the result. Displayed in - milliseconds. - - - - - - or - - - Output each step taken by &xsltproc; in processing the stylesheet - and the document. - - - - - - or - - - Show the version of - libxml - 3 - and - libxslt - 3 - used. - - - - - - - - - Allow file write only within the PATH - subtree. - - - - - - - - - Process the input document using the Xinclude specification. More - details on this can be found in the Xinclude - specification: - - - - - - - - - ENVIRONMENT - - - - SGML_CATALOG_FILES - - to be written ... - - - - - XML_CATALOG_FILES - - - Catalog behavior can be changed by redirecting queries to the user's - own set of catalogs. This can be done by setting - the XML_CATALOG_FILES environment variable to a list - of catalogs. An empty one should deactivate loading the - default /etc/xml/catalog default catalog. - - - - - - - - - DIAGNOSTICS - - &xsltproc;'s return codes provide information that can be used when - calling it from scripts. - - - - - 0 - - No error (normal operation) - - - - - 1 - - No argument - - - - - 2 - - Too many parameters - - - - - 3 - - Unknown option - - - - - 4 - - Failed to parse the stylesheet - - - - - 5 - - Error in the stylesheet - - - - - 6 - - Error in one of the documents - - - - - 7 - - Unsupported xsl:output method - - - - - 8 - - String parameter contains both quote and double-quotes - - - - - 9 - - Internal processing error - - - - - 10 - - Processing was stopped by a terminating message - - - - - - - - SEE ALSO - - - libxslt - 3 - - - - -
    diff --git a/src/tools/docbook/libxslt/doc/xsltproc2.html b/src/tools/docbook/libxslt/doc/xsltproc2.html deleted file mode 100644 index 48cd7d9be1..0000000000 --- a/src/tools/docbook/libxslt/doc/xsltproc2.html +++ /dev/null @@ -1,35 +0,0 @@ - - -The xsltproc tool
    Action against software patentsGnome2 LogoW3C logoRed Hat Logo
    Made with Libxslt Logo

    The XSLT C library for Gnome

    The xsltproc tool

    Main Menu
    Related links
    API Indexes

    This program is the simplest way to use libxslt: from the command line. -Itis also used for doing the regression tests of the library.

    It takes as first argument the path or URL to an XSLT stylesheet, the -nextarguments are filenames or URIs of the inputs to be processed. The output -ofthe processing is redirected on the standard output. There is actually a -fewmore options available:

    orchis:~ -> xsltproc
    -Usage: xsltproc [options] stylesheet file [file ...]
    -   Options:
    -      --version or -V: show the version of libxml and libxslt used
    -      --verbose or -v: show logs of what's happening
    -      --output file or -o file: save to a given file
    -      --timing: display the time used
    -      --repeat: run the transformation 20 times
    -      --debug: dump the tree of the result instead
    -      --novalid: skip the Dtd loading phase
    -      --noout: do not dump the result
    -      --maxdepth val : increase the maximum depth
    -      --html: the input document is(are) an HTML file(s)
    -      --docbook: the input document is SGML docbook
    -      --param name value : pass a (parameter,value) pair
    -      --nonet refuse to fetch DTDs or entities over network
    -      --warnnet warn against fetching over the network
    -      --catalogs : use the catalogs from $SGML_CATALOG_FILES
    -      --xinclude : do XInclude processing on document intput
    -      --profile or --norman : dump profiling informations 
    -orchis:~ ->

    Daniel Veillard

    diff --git a/src/tools/docbook/libxslt/examples/xsltICUSort.c b/src/tools/docbook/libxslt/examples/xsltICUSort.c deleted file mode 100644 index ba6ec4e610..0000000000 --- a/src/tools/docbook/libxslt/examples/xsltICUSort.c +++ /dev/null @@ -1,304 +0,0 @@ -/** - * xsltICUSort.c: module provided by Richard Jinks to provide a - * sort function replacement using ICU, it is not - * included in standard due to the size of the ICU - * library - * - * See http://mail.gnome.org/archives/xslt/2002-November/msg00093.html - * http://oss.software.ibm.com/icu/index.html - * - * Copyright Richard Jinks - */ -#define IN_LIBXSLT -#include "libxslt.h" - -#include - -#include "xslt.h" -#include "xsltInternals.h" -#include "xsltutils.h" -#include "transform.h" -#include "templates.h" - -#include -#include -#include -#include -#include - -/** - * xsltICUSortFunction: - * @ctxt: a XSLT process context - * @sorts: array of sort nodes - * @nbsorts: the number of sorts in the array - * - * reorder the current node list accordingly to the set of sorting - * requirement provided by the arry of nodes. - * uses the ICU library - */ -void -xsltICUSortFunction(xsltTransformContextPtr ctxt, xmlNodePtr *sorts, - int nbsorts) { - xmlXPathObjectPtr *resultsTab[XSLT_MAX_SORT]; - xmlXPathObjectPtr *results = NULL, *res; - xmlNodeSetPtr list = NULL; - int descending, number, desc, numb; - int len = 0; - int i, j, incr; - int tst; - int depth; - xmlNodePtr node; - xmlXPathObjectPtr tmp; - xsltStylePreCompPtr comp; - int tempstype[XSLT_MAX_SORT], temporder[XSLT_MAX_SORT]; - - /* Start ICU change */ - UCollator *coll = 0; - UConverter *conv; - UErrorCode status; - UChar *target,*target2; - int targetlen, target2len; - /* End ICU change */ - - if ((ctxt == NULL) || (sorts == NULL) || (nbsorts <= 0) || - (nbsorts >= XSLT_MAX_SORT)) - return; - if (sorts[0] == NULL) - return; - comp = sorts[0]->_private; - if (comp == NULL) - return; - - list = ctxt->nodeList; - if ((list == NULL) || (list->nodeNr <= 1)) - return; /* nothing to do */ - - for (j = 0; j < nbsorts; j++) { - comp = sorts[j]->_private; - tempstype[j] = 0; - if ((comp->stype == NULL) && (comp->has_stype != 0)) { - comp->stype = - xsltEvalAttrValueTemplate(ctxt, sorts[j], - (const xmlChar *) "data-type", - XSLT_NAMESPACE); - if (comp->stype != NULL) { - tempstype[j] = 1; - if (xmlStrEqual(comp->stype, (const xmlChar *) "text")) - comp->number = 0; - else if (xmlStrEqual(comp->stype, (const xmlChar *) "number")) - comp->number = 1; - else { - xsltTransformError(ctxt, NULL, sorts[j], - "xsltDoSortFunction: no support for data-type = %s\n", - comp->stype); - comp->number = 0; /* use default */ - } - } - } - temporder[j] = 0; - if ((comp->order == NULL) && (comp->has_order != 0)) { - comp->order = xsltEvalAttrValueTemplate(ctxt, sorts[j], - (const xmlChar *) "order", - XSLT_NAMESPACE); - if (comp->order != NULL) { - temporder[j] = 1; - if (xmlStrEqual(comp->order, (const xmlChar *) "ascending")) - comp->descending = 0; - else if (xmlStrEqual(comp->order, - (const xmlChar *) "descending")) - comp->descending = 1; - else { - xsltTransformError(ctxt, NULL, sorts[j], - "xsltDoSortFunction: invalid value %s for order\n", - comp->order); - comp->descending = 0; /* use default */ - } - } - } - } - - len = list->nodeNr; - - resultsTab[0] = xsltComputeSortResult(ctxt, sorts[0]); - for (i = 1;i < XSLT_MAX_SORT;i++) - resultsTab[i] = NULL; - - results = resultsTab[0]; - - comp = sorts[0]->_private; - descending = comp->descending; - number = comp->number; - if (results == NULL) - return; - - /* Start ICU change */ - status = U_ZERO_ERROR; - conv = ucnv_open("UTF8", &status); - if(U_FAILURE(status)) { - xsltTransformError(ctxt, NULL, NULL, "xsltICUSortFunction: Error opening converter\n"); - } - if(comp->has_lang) - coll = ucol_open(comp->lang, &status); - if(U_FAILURE(status) || !comp->has_lang) { - status = U_ZERO_ERROR; - coll = ucol_open("en", &status); - } - if(U_FAILURE(status)) { - xsltTransformError(ctxt, NULL, NULL, "xsltICUSortFunction: Error opening collator\n"); - } - if(comp->lower_first) - ucol_setAttribute(coll,UCOL_CASE_FIRST,UCOL_LOWER_FIRST,&status); - else - ucol_setAttribute(coll,UCOL_CASE_FIRST,UCOL_UPPER_FIRST,&status); - if(U_FAILURE(status)) { - xsltTransformError(ctxt, NULL, NULL, "xsltICUSortFunction: Error setting collator attribute\n"); - } - /* End ICU change */ - - /* Shell's sort of node-set */ - for (incr = len / 2; incr > 0; incr /= 2) { - for (i = incr; i < len; i++) { - j = i - incr; - if (results[i] == NULL) - continue; - - while (j >= 0) { - if (results[j] == NULL) - tst = 1; - else { - if (number) { - if (results[j]->floatval == results[j + incr]->floatval) - tst = 0; - else if (results[j]->floatval > - results[j + incr]->floatval) - tst = 1; - else tst = -1; - } else { -/* tst = xmlStrcmp(results[j]->stringval, - results[j + incr]->stringval); */ - /* Start ICU change */ - targetlen = xmlStrlen(results[j]->stringval) * 2; - target2len = xmlStrlen(results[j + incr]->stringval) * 2; - target = xmlMalloc(targetlen * sizeof(UChar)); - target2 = xmlMalloc(target2len * sizeof(UChar)); - targetlen = ucnv_toUChars(conv, target, targetlen, results[j]->stringval, -1, &status); - target2len = ucnv_toUChars(conv, target2, target2len, results[j+incr]->stringval, -1, &status); - tst = ucol_strcoll(coll, target, u_strlen(target), target2, u_strlen(target2)); - /* End ICU change */ - } - if (descending) - tst = -tst; - } - if (tst == 0) { - /* - * Okay we need to use multi level sorts - */ - depth = 1; - while (depth < nbsorts) { - if (sorts[depth] == NULL) - break; - comp = sorts[depth]->_private; - if (comp == NULL) - break; - desc = comp->descending; - numb = comp->number; - - /* - * Compute the result of the next level for the - * full set, this might be optimized ... or not - */ - if (resultsTab[depth] == NULL) - resultsTab[depth] = xsltComputeSortResult(ctxt, - sorts[depth]); - res = resultsTab[depth]; - if (res == NULL) - break; - if (res[j] == NULL) - tst = 1; - else { - if (numb) { - if (res[j]->floatval == res[j + incr]->floatval) - tst = 0; - else if (res[j]->floatval > - res[j + incr]->floatval) - tst = 1; - else tst = -1; - } else { -/* tst = xmlStrcmp(res[j]->stringval, - res[j + incr]->stringval); */ - /* Start ICU change */ - targetlen = xmlStrlen(res[j]->stringval) * 2; - target2len = xmlStrlen(res[j + incr]->stringval) * 2; - target = xmlMalloc(targetlen * sizeof(UChar)); - target2 = xmlMalloc(target2len * sizeof(UChar)); - targetlen = ucnv_toUChars(conv, target, targetlen, res[j]->stringval, -1, &status); - target2len = ucnv_toUChars(conv, target2, target2len, res[j+incr]->stringval, -1, &status); - tst = ucol_strcoll(coll, target, u_strlen(target), target2, u_strlen(target2)); - /* End ICU change */ - } - if (desc) - tst = -tst; - } - /* - * if we still can't differenciate at this level - * try one level deeper. - */ - if (tst != 0) - break; - depth++; - } - } - if (tst == 0) { - tst = results[j]->index > results[j + incr]->index; - } - if (tst > 0) { - tmp = results[j]; - results[j] = results[j + incr]; - results[j + incr] = tmp; - node = list->nodeTab[j]; - list->nodeTab[j] = list->nodeTab[j + incr]; - list->nodeTab[j + incr] = node; - depth = 1; - while (depth < nbsorts) { - if (sorts[depth] == NULL) - break; - if (resultsTab[depth] == NULL) - break; - res = resultsTab[depth]; - tmp = res[j]; - res[j] = res[j + incr]; - res[j + incr] = tmp; - depth++; - } - j -= incr; - } else - break; - } - } - } - - /* Start ICU change */ - ucol_close(coll); - ucnv_close(conv); - /* End ICU change */ - - for (j = 0; j < nbsorts; j++) { - comp = sorts[j]->_private; - if (tempstype[j] == 1) { - /* The data-type needs to be recomputed each time */ - xmlFree(comp->stype); - comp->stype = NULL; - } - if (temporder[j] == 1) { - /* The order needs to be recomputed each time */ - xmlFree(comp->order); - comp->order = NULL; - } - if (resultsTab[j] != NULL) { - for (i = 0;i < len;i++) - xmlXPathFreeObject(resultsTab[j][i]); - xmlFree(resultsTab[j]); - } - } -} - diff --git a/src/tools/docbook/libxslt/install-sh b/src/tools/docbook/libxslt/install-sh deleted file mode 100755 index e9de23842d..0000000000 --- a/src/tools/docbook/libxslt/install-sh +++ /dev/null @@ -1,251 +0,0 @@ -#!/bin/sh -# -# install - install a program, script, or datafile -# This comes from X11R5 (mit/util/scripts/install.sh). -# -# Copyright 1991 by the Massachusetts Institute of Technology -# -# Permission to use, copy, modify, distribute, and sell this software and its -# documentation for any purpose is hereby granted without fee, provided that -# the above copyright notice appear in all copies and that both that -# copyright notice and this permission notice appear in supporting -# documentation, and that the name of M.I.T. not be used in advertising or -# publicity pertaining to distribution of the software without specific, -# written prior permission. M.I.T. makes no representations about the -# suitability of this software for any purpose. It is provided "as is" -# without express or implied warranty. -# -# Calling this script install-sh is preferred over install.sh, to prevent -# `make' implicit rules from creating a file called install from it -# when there is no Makefile. -# -# This script is compatible with the BSD install script, but was written -# from scratch. It can only install one file at a time, a restriction -# shared with many OS's install programs. - - -# set DOITPROG to echo to test this script - -# Don't use :- since 4.3BSD and earlier shells don't like it. -doit="${DOITPROG-}" - - -# put in absolute paths if you don't have them in your path; or use env. vars. - -mvprog="${MVPROG-mv}" -cpprog="${CPPROG-cp}" -chmodprog="${CHMODPROG-chmod}" -chownprog="${CHOWNPROG-chown}" -chgrpprog="${CHGRPPROG-chgrp}" -stripprog="${STRIPPROG-strip}" -rmprog="${RMPROG-rm}" -mkdirprog="${MKDIRPROG-mkdir}" - -transformbasename="" -transform_arg="" -instcmd="$mvprog" -chmodcmd="$chmodprog 0755" -chowncmd="" -chgrpcmd="" -stripcmd="" -rmcmd="$rmprog -f" -mvcmd="$mvprog" -src="" -dst="" -dir_arg="" - -while [ x"$1" != x ]; do - case $1 in - -c) instcmd="$cpprog" - shift - continue;; - - -d) dir_arg=true - shift - continue;; - - -m) chmodcmd="$chmodprog $2" - shift - shift - continue;; - - -o) chowncmd="$chownprog $2" - shift - shift - continue;; - - -g) chgrpcmd="$chgrpprog $2" - shift - shift - continue;; - - -s) stripcmd="$stripprog" - shift - continue;; - - -t=*) transformarg=`echo $1 | sed 's/-t=//'` - shift - continue;; - - -b=*) transformbasename=`echo $1 | sed 's/-b=//'` - shift - continue;; - - *) if [ x"$src" = x ] - then - src=$1 - else - # this colon is to work around a 386BSD /bin/sh bug - : - dst=$1 - fi - shift - continue;; - esac -done - -if [ x"$src" = x ] -then - echo "install: no input file specified" - exit 1 -else - true -fi - -if [ x"$dir_arg" != x ]; then - dst=$src - src="" - - if [ -d $dst ]; then - instcmd=: - chmodcmd="" - else - instcmd=mkdir - fi -else - -# Waiting for this to be detected by the "$instcmd $src $dsttmp" command -# might cause directories to be created, which would be especially bad -# if $src (and thus $dsttmp) contains '*'. - - if [ -f $src -o -d $src ] - then - true - else - echo "install: $src does not exist" - exit 1 - fi - - if [ x"$dst" = x ] - then - echo "install: no destination specified" - exit 1 - else - true - fi - -# If destination is a directory, append the input filename; if your system -# does not like double slashes in filenames, you may need to add some logic - - if [ -d $dst ] - then - dst="$dst"/`basename $src` - else - true - fi -fi - -## this sed command emulates the dirname command -dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` - -# Make sure that the destination directory exists. -# this part is taken from Noah Friedman's mkinstalldirs script - -# Skip lots of stat calls in the usual case. -if [ ! -d "$dstdir" ]; then -defaultIFS=' -' -IFS="${IFS-${defaultIFS}}" - -oIFS="${IFS}" -# Some sh's can't handle IFS=/ for some reason. -IFS='%' -set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` -IFS="${oIFS}" - -pathcomp='' - -while [ $# -ne 0 ] ; do - pathcomp="${pathcomp}${1}" - shift - - if [ ! -d "${pathcomp}" ] ; - then - $mkdirprog "${pathcomp}" - else - true - fi - - pathcomp="${pathcomp}/" -done -fi - -if [ x"$dir_arg" != x ] -then - $doit $instcmd $dst && - - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi -else - -# If we're going to rename the final executable, determine the name now. - - if [ x"$transformarg" = x ] - then - dstfile=`basename $dst` - else - dstfile=`basename $dst $transformbasename | - sed $transformarg`$transformbasename - fi - -# don't allow the sed command to completely eliminate the filename - - if [ x"$dstfile" = x ] - then - dstfile=`basename $dst` - else - true - fi - -# Make a temp file name in the proper directory. - - dsttmp=$dstdir/#inst.$$# - -# Move or copy the file name to the temp name - - $doit $instcmd $src $dsttmp && - - trap "rm -f ${dsttmp}" 0 && - -# and set any options; do chmod last to preserve setuid bits - -# If any of these fail, we abort the whole thing. If we want to -# ignore errors from any of these, just make sure not to ignore -# errors from the above "$doit $instcmd $src $dsttmp" command. - - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && - -# Now rename the file to the real destination. - - $doit $rmcmd -f $dstdir/$dstfile && - $doit $mvcmd $dsttmp $dstdir/$dstfile - -fi && - - -exit 0 diff --git a/src/tools/docbook/libxslt/libexslt.pc.in b/src/tools/docbook/libxslt/libexslt.pc.in deleted file mode 100644 index 16676ff657..0000000000 --- a/src/tools/docbook/libxslt/libexslt.pc.in +++ /dev/null @@ -1,12 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - - -Name: libexslt -Version: @LIBEXSLT_VERSION@ -Description: EXSLT Extension library -Requires: libxml-2.0 -Libs: @EXSLT_LIBDIR@ @EXSLT_LIBS@ -Cflags: @EXSLT_INCLUDEDIR@ diff --git a/src/tools/docbook/libxslt/libxslt.m4 b/src/tools/docbook/libxslt/libxslt.m4 deleted file mode 100644 index c03ec4ffba..0000000000 --- a/src/tools/docbook/libxslt/libxslt.m4 +++ /dev/null @@ -1,191 +0,0 @@ -# Based on: -# Configure paths for LIBXML2 -# Toshio Kuratomi 2001-04-21 -# Adapted from: -# Configure paths for GLIB -# Owen Taylor 97-11-3 -# -# Modified to work with libxslt by Thomas Schraitle 2002/10/25 -# Fixed by Edward Rudd 2004/05/12 - -dnl AM_PATH_XSLT([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) -dnl Test for XML, and define XML_CFLAGS and XML_LIBS -dnl -AC_DEFUN([AM_PATH_XSLT],[ -AC_ARG_WITH(xslt-prefix, - [ --with-xslt-prefix=PFX Prefix where libxslt is installed (optional)], - xslt_config_prefix="$withval", xslt_config_prefix="") -AC_ARG_WITH(xslt-exec-prefix, - [ --with-xslt-exec-prefix=PFX Exec prefix where libxslt is installed (optional)], - xslt_config_exec_prefix="$withval", xslt_config_exec_prefix="") -AC_ARG_ENABLE(xslttest, - [ --disable-xslttest Do not try to compile and run a test LIBXSLT program],, - enable_xslttest=yes) - - if test x$xslt_config_exec_prefix != x ; then - xslt_config_args="$xslt_config_args --exec-prefix=$xslt_config_exec_prefix" - if test x${XSLT_CONFIG+set} != xset ; then - XSLT_CONFIG=$xslt_config_exec_prefix/bin/xslt-config - fi - fi - if test x$xslt_config_prefix != x ; then - xslt_config_args="$xslt_config_args --prefix=$xslt_config_prefix" - if test x${XSLT_CONFIG+set} != xset ; then - XSLT_CONFIG=$xslt_config_prefix/bin/xslt-config - fi - fi - - AC_PATH_PROG(XSLT_CONFIG, xslt-config, no) - min_xslt_version=ifelse([$1], ,1.0.0,[$1]) - AC_MSG_CHECKING(for libxslt - version >= $min_xslt_version) - no_xslt="" - if test "$XSLT_CONFIG" = "no" ; then - no_xslt=yes - else - XSLT_CFLAGS=`$XSLT_CONFIG $xslt_config_args --cflags` - XSLT_LIBS=`$XSLT_CONFIG $xslt_config_args --libs` - xslt_config_major_version=`$XSLT_CONFIG $xslt_config_args --version | \ - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` - xslt_config_minor_version=`$XSLT_CONFIG $xslt_config_args --version | \ - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` - xslt_config_micro_version=`$XSLT_CONFIG $xslt_config_args --version | \ - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` - if test "x$enable_xslttest" = "xyes" ; then - ac_save_CFLAGS="$CFLAGS" - ac_save_LIBS="$LIBS" - CFLAGS="$CFLAGS $XSLT_CFLAGS" - LIBS="$XSLT_LIBS $LIBS" -dnl -dnl Now check if the installed libxslt is sufficiently new. -dnl (Also sanity checks the results of xslt-config to some extent) -dnl - rm -f conf.xslttest - AC_TRY_RUN([ -#include -#include -#include -#include -#include -int -main() -{ - int xslt_major_version, xslt_minor_version, xslt_micro_version; - int major, minor, micro; - char *tmp_version; - - system("touch conf.xslttest"); - - /* Capture xslt-config output via autoconf/configure variables */ - /* HP/UX 9 (%@#!) writes to sscanf strings */ - tmp_version = (char *)strdup("$min_xslt_version"); - if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { - printf("%s, bad version string from xslt-config\n", "$min_xslt_version"); - exit(1); - } - free(tmp_version); - - /* Capture the version information from the header files */ - tmp_version = (char *)strdup(LIBXSLT_DOTTED_VERSION); - if (sscanf(tmp_version, "%d.%d.%d", &xslt_major_version, &xslt_minor_version, &xslt_micro_version) != 3) { - printf("%s, bad version string from libxslt includes\n", "LIBXSLT_DOTTED_VERSION"); - exit(1); - } - free(tmp_version); - - /* Compare xslt-config output to the libxslt headers */ - if ((xslt_major_version != $xslt_config_major_version) || - (xslt_minor_version != $xslt_config_minor_version) || - (xslt_micro_version != $xslt_config_micro_version)) - { - printf("*** libxslt header files (version %d.%d.%d) do not match\n", - xslt_major_version, xslt_minor_version, xslt_micro_version); - printf("*** xslt-config (version %d.%d.%d)\n", - $xslt_config_major_version, $xslt_config_minor_version, $xslt_config_micro_version); - return 1; - } -/* Compare the headers to the library to make sure we match */ - /* Less than ideal -- doesn't provide us with return value feedback, - * only exits if there's a serious mismatch between header and library. - */ - /* copied from LIBXML_TEST_VERSION; */ - xmlCheckVersion(LIBXML_VERSION); - - /* Test that the library is greater than our minimum version */ - if ((xslt_major_version > major) || - ((xslt_major_version == major) && (xslt_minor_version > minor)) || - ((xslt_major_version == major) && (xslt_minor_version == minor) && - (xslt_micro_version >= micro))) - { - return 0; - } - else - { - printf("\n*** An old version of libxslt (%d.%d.%d) was found.\n", - xslt_major_version, xslt_minor_version, xslt_micro_version); - printf("*** You need a version of libxslt newer than %d.%d.%d. The latest version of\n", - major, minor, micro); - printf("*** libxslt is always available from ftp://ftp.xmlsoft.org.\n"); - printf("***\n"); - printf("*** If you have already installed a sufficiently new version, this error\n"); - printf("*** probably means that the wrong copy of the xslt-config shell script is\n"); - printf("*** being found. The easiest way to fix this is to remove the old version\n"); - printf("*** of LIBXSLT, but you can also set the XSLT_CONFIG environment to point to the\n"); - printf("*** correct copy of xslt-config. (In this case, you will have to\n"); - printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); - printf("*** so that the correct libraries are found at run-time))\n"); - } - return 1; -} -],, no_xslt=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) - CFLAGS="$ac_save_CFLAGS" - LIBS="$ac_save_LIBS" - fi - fi - - if test "x$no_xslt" = x ; then - AC_MSG_RESULT(yes (version $xslt_config_major_version.$xslt_config_minor_version.$xslt_config_micro_version)) - ifelse([$2], , :, [$2]) - else - AC_MSG_RESULT(no) - if test "$XSLT_CONFIG" = "no" ; then - echo "*** The xslt-config script installed by LIBXSLT could not be found" - echo "*** If libxslt was installed in PREFIX, make sure PREFIX/bin is in" - echo "*** your path, or set the XSLT_CONFIG environment variable to the" - echo "*** full path to xslt-config." - else - if test -f conf.xslttest ; then - : - else - echo "*** Could not run libxslt test program, checking why..." - CFLAGS="$CFLAGS $XSLT_CFLAGS" - LIBS="$LIBS $XSLT_LIBS" - AC_TRY_LINK([ -#include -#include -], [ LIBXSLT_TEST_VERSION; return 0;], - [ echo "*** The test program compiled, but did not run. This usually means" - echo "*** that the run-time linker is not finding LIBXSLT or finding the wrong" - echo "*** version of LIBXSLT. If it is not finding LIBXSLT, you'll need to set your" - echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" - echo "*** to the installed location Also, make sure you have run ldconfig if that" - echo "*** is required on your system" - echo "***" - echo "*** If you have an old version installed, it is best to remove it, although" - echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], - [ echo "*** The test program failed to compile or link. See the file config.log for the" - echo "*** exact error that occured. This usually means LIBXSLT was incorrectly installed" - echo "*** or that you have moved LIBXSLT since it was installed. In the latter case, you" - echo "*** may want to edit the xslt-config script: $XSLT_CONFIG" ]) - CFLAGS="$ac_save_CFLAGS" - LIBS="$ac_save_LIBS" - fi - fi - - XSLT_CFLAGS="" - XSLT_LIBS="" - ifelse([$3], , :, [$3]) - fi - AC_SUBST(XSLT_CFLAGS) - AC_SUBST(XSLT_LIBS) - rm -f conf.xslttest -]) diff --git a/src/tools/docbook/libxslt/libxslt.pc.in b/src/tools/docbook/libxslt/libxslt.pc.in deleted file mode 100644 index 07304b267f..0000000000 --- a/src/tools/docbook/libxslt/libxslt.pc.in +++ /dev/null @@ -1,12 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - - -Name: libxslt -Version: @VERSION@ -Description: XSLT library version 2. -Requires: libxml-2.0 -Libs: @XSLT_LIBDIR@ @XSLT_LIBS@ -Cflags: @XSLT_INCLUDEDIR@ diff --git a/src/tools/docbook/libxslt/libxslt.spec b/src/tools/docbook/libxslt/libxslt.spec deleted file mode 100644 index f2f59111d6..0000000000 --- a/src/tools/docbook/libxslt/libxslt.spec +++ /dev/null @@ -1,125 +0,0 @@ -Summary: Library providing the Gnome XSLT engine -Name: libxslt -Version: 1.1.17 -Release: 1 -License: MIT -Group: Development/Libraries -Source: ftp://xmlsoft.org/XSLT/libxslt-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-root -URL: http://xmlsoft.org/XSLT/ -Requires: libxml2 >= 2.6.25 -BuildRequires: libxml2-devel >= 2.6.25 -BuildRequires: python python-devel -BuildRequires: libxml2-python -BuildRequires: libgcrypt-devel -Prefix: %{_prefix} -Docdir: %{_docdir} - -%description -This C library allows to transform XML files into other XML files -(or HTML, text, ...) using the standard XSLT stylesheet transformation -mechanism. To use it you need to have a version of libxml2 >= 2.6.25 -installed. The xsltproc command is a command line interface to the XSLT engine - -%package devel -Summary: Libraries, includes, etc. to embed the Gnome XSLT engine -Group: Development/Libraries -Requires: libxslt = %{version} -Requires: libxml2-devel >= 2.5.6 -Requires: libgcrypt-devel -Requires: pkgconfig - -%description devel -This C library allows to transform XML files into other XML files -(or HTML, text, ...) using the standard XSLT stylesheet transformation -mechanism. To use it you need to have a version of libxml2 >= 2.6.25 -installed. - -%package python -Summary: Python bindings for the libxslt library -Group: Development/Libraries -Requires: libxslt = %{version} -Requires: libxml2 >= 2.6.25 -Requires: libxml2-python >= 2.6.25 -Requires: %{_libdir}/python%(echo `python -c "import sys; print sys.version[0:3]"`) - -%description python -The libxslt-python package contains a module that permits applications -written in the Python programming language to use the interface -supplied by the libxslt library to apply XSLT transformations. - -This library allows to parse sytlesheets, uses the libxml2-python -to load and save XML and HTML files. Direct access to XPath and -the XSLT transformation context are possible to extend the XSLT language -with XPath functions written in Python. - -%prep -%setup -q - -%build -%configure -make -gzip -9 ChangeLog - -%install -rm -fr %{buildroot} - -%makeinstall - -rm -fr $RPM_BUILD_ROOT%{_libdir}/*.la \ - $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/libxsltmod*a - -%clean -rm -fr %{buildroot} - -%post -/sbin/ldconfig - -%postun -/sbin/ldconfig - -%files -%defattr(-, root, root) - -%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES -%doc doc/*.html doc/html doc/tutorial doc/tutorial2 doc/*.gif -%doc doc/EXSLT -%doc %{_mandir}/man1/xsltproc.1* -%{_libdir}/lib*.so.* -%{_libdir}/libxslt-plugins -%{prefix}/bin/xsltproc - -%files devel -%defattr(-, root, root) - -%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES -%doc doc/libxslt-api.xml -%doc doc/libxslt-refs.xml -%doc doc/EXSLT/libexslt-api.xml -%doc doc/EXSLT/libexslt-refs.xml -%doc %{_mandir}/man3/libxslt.3* -%doc %{_mandir}/man3/libexslt.3* -%{_libdir}/lib*.so -%{_libdir}/*a -%{_libdir}/*.sh -%{prefix}/share/aclocal/libxslt.m4 -%{prefix}/include/* -%{prefix}/bin/xslt-config -%{_libdir}/pkgconfig/libxslt.pc -%{_libdir}/pkgconfig/libexslt.pc - -%files python -%defattr(-, root, root) - -%doc AUTHORS ChangeLog.gz NEWS README Copyright FEATURES -%{_libdir}/python*/site-packages/libxslt.py* -%{_libdir}/python*/site-packages/libxsltmod* -%doc python/TODO -%doc python/libxsltclass.txt -%doc python/tests/*.py -%doc python/tests/*.xml -%doc python/tests/*.xsl - -%changelog -* Tue Jun 6 2006 Daniel Veillard -- upstream release 1.1.17 see http://xmlsoft.org/XSLT/news.html diff --git a/src/tools/docbook/libxslt/libxslt.spec.in b/src/tools/docbook/libxslt/libxslt.spec.in deleted file mode 100644 index aff0e2f4dc..0000000000 --- a/src/tools/docbook/libxslt/libxslt.spec.in +++ /dev/null @@ -1,125 +0,0 @@ -Summary: Library providing the Gnome XSLT engine -Name: libxslt -Version: @VERSION@ -Release: 1 -License: MIT -Group: Development/Libraries -Source: ftp://xmlsoft.org/XSLT/libxslt-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-root -URL: http://xmlsoft.org/XSLT/ -Requires: libxml2 >= @LIBXML_REQUIRED_VERSION@ -BuildRequires: libxml2-devel >= @LIBXML_REQUIRED_VERSION@ -BuildRequires: python python-devel -BuildRequires: libxml2-python -BuildRequires: libgcrypt-devel -Prefix: %{_prefix} -Docdir: %{_docdir} - -%description -This C library allows to transform XML files into other XML files -(or HTML, text, ...) using the standard XSLT stylesheet transformation -mechanism. To use it you need to have a version of libxml2 >= @LIBXML_REQUIRED_VERSION@ -installed. The xsltproc command is a command line interface to the XSLT engine - -%package devel -Summary: Libraries, includes, etc. to embed the Gnome XSLT engine -Group: Development/Libraries -Requires: libxslt = %{version} -Requires: libxml2-devel >= 2.5.6 -Requires: libgcrypt-devel -Requires: pkgconfig - -%description devel -This C library allows to transform XML files into other XML files -(or HTML, text, ...) using the standard XSLT stylesheet transformation -mechanism. To use it you need to have a version of libxml2 >= @LIBXML_REQUIRED_VERSION@ -installed. - -%package python -Summary: Python bindings for the libxslt library -Group: Development/Libraries -Requires: libxslt = %{version} -Requires: libxml2 >= @LIBXML_REQUIRED_VERSION@ -Requires: libxml2-python >= @LIBXML_REQUIRED_VERSION@ -Requires: %{_libdir}/python%(echo `python -c "import sys; print sys.version[0:3]"`) - -%description python -The libxslt-python package contains a module that permits applications -written in the Python programming language to use the interface -supplied by the libxslt library to apply XSLT transformations. - -This library allows to parse sytlesheets, uses the libxml2-python -to load and save XML and HTML files. Direct access to XPath and -the XSLT transformation context are possible to extend the XSLT language -with XPath functions written in Python. - -%prep -%setup -q - -%build -%configure -make -gzip -9 ChangeLog - -%install -rm -fr %{buildroot} - -%makeinstall - -rm -fr $RPM_BUILD_ROOT%{_libdir}/*.la \ - $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/libxsltmod*a - -%clean -rm -fr %{buildroot} - -%post -/sbin/ldconfig - -%postun -/sbin/ldconfig - -%files -%defattr(-, root, root) - -%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES -%doc doc/*.html doc/html doc/tutorial doc/tutorial2 doc/*.gif -%doc doc/EXSLT -%doc %{_mandir}/man1/xsltproc.1* -%{_libdir}/lib*.so.* -%{_libdir}/libxslt-plugins -%{prefix}/bin/xsltproc - -%files devel -%defattr(-, root, root) - -%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES -%doc doc/libxslt-api.xml -%doc doc/libxslt-refs.xml -%doc doc/EXSLT/libexslt-api.xml -%doc doc/EXSLT/libexslt-refs.xml -%doc %{_mandir}/man3/libxslt.3* -%doc %{_mandir}/man3/libexslt.3* -%{_libdir}/lib*.so -%{_libdir}/*a -%{_libdir}/*.sh -%{prefix}/share/aclocal/libxslt.m4 -%{prefix}/include/* -%{prefix}/bin/xslt-config -%{_libdir}/pkgconfig/libxslt.pc -%{_libdir}/pkgconfig/libexslt.pc - -%files python -%defattr(-, root, root) - -%doc AUTHORS ChangeLog.gz NEWS README Copyright FEATURES -%{_libdir}/python*/site-packages/libxslt.py* -%{_libdir}/python*/site-packages/libxsltmod* -%doc python/TODO -%doc python/libxsltclass.txt -%doc python/tests/*.py -%doc python/tests/*.xml -%doc python/tests/*.xsl - -%changelog -* @RELDATE@ Daniel Veillard -- upstream release @VERSION@ see http://xmlsoft.org/XSLT/news.html diff --git a/src/tools/docbook/libxslt/ltconfig b/src/tools/docbook/libxslt/ltconfig deleted file mode 100755 index c14d83c169..0000000000 --- a/src/tools/docbook/libxslt/ltconfig +++ /dev/null @@ -1,3114 +0,0 @@ -#! /bin/sh - -# ltconfig - Create a system-specific libtool. -# Copyright (C) 1996-1999 Free Software Foundation, Inc. -# Originally by Gordon Matzigkeit , 1996 -# -# This file is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# A lot of this script is taken from autoconf-2.10. - -# Check that we are running under the correct shell. -SHELL=${CONFIG_SHELL-/bin/sh} -echo=echo -if test "X$1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X$1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then - # Yippee, $echo works! - : -else - # Restart under the correct shell. - exec "$SHELL" "$0" --no-reexec ${1+"$@"} -fi - -if test "X$1" = X--fallback-echo; then - # used as fallback echo - shift - cat </dev/null`} - case X$UNAME in - *-DOS) PATH_SEPARATOR=';' ;; - *) PATH_SEPARATOR=':' ;; - esac -fi - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi - -if test "X${echo_test_string+set}" != Xset; then - # find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if (echo_test_string="`eval $cmd`") 2>/dev/null && - echo_test_string="`eval $cmd`" && - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null; then - break - fi - done -fi - -if test "X`($echo '\t') 2>/dev/null`" != 'X\t' || - test "X`($echo "$echo_test_string") 2>/dev/null`" != X"$echo_test_string"; then - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. - - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" - for dir in $PATH /usr/ucb; do - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - test "X`($dir/echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then - echo="$dir/echo" - break - fi - done - IFS="$save_ifs" - - if test "X$echo" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && - test "X`(print -r "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - echo='print -r' - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running ltconfig again with it. - ORIGINAL_CONFIG_SHELL="${CONFIG_SHELL-/bin/sh}" - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$0" --no-reexec ${1+"$@"} - else - # Try using printf. - echo='printf "%s\n"' - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - test "X`($echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then - # Cool, printf works - : - elif test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' && - test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then - CONFIG_SHELL="$ORIGINAL_CONFIG_SHELL" - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - echo="$CONFIG_SHELL $0 --fallback-echo" - elif test "X`("$CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' && - test "X`("$CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then - echo="$CONFIG_SHELL $0 --fallback-echo" - else - # maybe with a smaller string... - prev=: - - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null; then - break - fi - prev="$cmd" - done - - if test "$prev" != 'sed 50q "$0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec "${ORIGINAL_CONFIG_SHELL}" "$0" ${1+"$@"} - else - # Oops. We lost completely, so just stick with echo. - echo=echo - fi - fi - fi - fi -fi - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='sed -e s/^X//' -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# The name of this program. -progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'` - -# Constants: -PROGRAM=ltconfig -PACKAGE=libtool -VERSION=1.3.5 -TIMESTAMP=" (1.385.2.206 2000/05/27 11:12:27)" -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -rm="rm -f" - -help="Try \`$progname --help' for more information." - -# Global variables: -default_ofile=libtool -can_build_shared=yes -enable_shared=yes -# All known linkers require a `.a' archive for static linking (except M$VC, -# which needs '.lib'). -enable_static=yes -enable_fast_install=yes -enable_dlopen=unknown -enable_win32_dll=no -ltmain= -silent= -srcdir= -ac_config_guess= -ac_config_sub= -host= -nonopt= -ofile="$default_ofile" -verify_host=yes -with_gcc=no -with_gnu_ld=no -need_locks=yes -ac_ext=c -objext=o -libext=a -exeext= -cache_file= - -old_AR="$AR" -old_CC="$CC" -old_CFLAGS="$CFLAGS" -old_CPPFLAGS="$CPPFLAGS" -old_LDFLAGS="$LDFLAGS" -old_LD="$LD" -old_LN_S="$LN_S" -old_LIBS="$LIBS" -old_NM="$NM" -old_RANLIB="$RANLIB" -old_DLLTOOL="$DLLTOOL" -old_OBJDUMP="$OBJDUMP" -old_AS="$AS" - -# Parse the command line options. -args= -prev= -for option -do - case "$option" in - -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) optarg= ;; - esac - - # If the previous option needs an argument, assign it. - if test -n "$prev"; then - eval "$prev=\$option" - prev= - continue - fi - - case "$option" in - --help) cat <&2 - echo "$help" 1>&2 - exit 1 - ;; - - *) - if test -z "$ltmain"; then - ltmain="$option" - elif test -z "$host"; then -# This generates an unnecessary warning for sparc-sun-solaris4.1.3_U1 -# if test -n "`echo $option| sed 's/[-a-z0-9.]//g'`"; then -# echo "$progname: warning \`$option' is not a valid host type" 1>&2 -# fi - host="$option" - else - echo "$progname: too many arguments" 1>&2 - echo "$help" 1>&2 - exit 1 - fi ;; - esac -done - -if test -z "$ltmain"; then - echo "$progname: you must specify a LTMAIN file" 1>&2 - echo "$help" 1>&2 - exit 1 -fi - -if test ! -f "$ltmain"; then - echo "$progname: \`$ltmain' does not exist" 1>&2 - echo "$help" 1>&2 - exit 1 -fi - -# Quote any args containing shell metacharacters. -ltconfig_args= -for arg -do - case "$arg" in - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ltconfig_args="$ltconfig_args '$arg'" ;; - *) ltconfig_args="$ltconfig_args $arg" ;; - esac -done - -# A relevant subset of AC_INIT. - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 5 compiler messages saved in config.log -# 6 checking for... messages and results -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>>./config.log - -# NLS nuisances. -# Only set LANG and LC_ALL to C if already set. -# These must not be set unconditionally because not all systems understand -# e.g. LANG=C (notably SCO). -if test "X${LC_ALL+set}" = Xset; then LC_ALL=C; export LC_ALL; fi -if test "X${LANG+set}" = Xset; then LANG=C; export LANG; fi - -if test -n "$cache_file" && test -r "$cache_file"; then - echo "loading cache $cache_file within ltconfig" - . $cache_file -fi - -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - -if test -z "$srcdir"; then - # Assume the source directory is the same one as the path to LTMAIN. - srcdir=`$echo "X$ltmain" | $Xsed -e 's%/[^/]*$%%'` - test "$srcdir" = "$ltmain" && srcdir=. -fi - -trap "$rm conftest*; exit 1" 1 2 15 -if test "$verify_host" = yes; then - # Check for config.guess and config.sub. - ac_aux_dir= - for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do - if test -f $ac_dir/config.guess; then - ac_aux_dir=$ac_dir - break - fi - done - if test -z "$ac_aux_dir"; then - echo "$progname: cannot find config.guess in $srcdir $srcdir/.. $srcdir/../.." 1>&2 - echo "$help" 1>&2 - exit 1 - fi - ac_config_guess=$ac_aux_dir/config.guess - ac_config_sub=$ac_aux_dir/config.sub - - # Make sure we can run config.sub. - if $SHELL $ac_config_sub sun4 >/dev/null 2>&1; then : - else - echo "$progname: cannot run $ac_config_sub" 1>&2 - echo "$help" 1>&2 - exit 1 - fi - - echo $ac_n "checking host system type""... $ac_c" 1>&6 - - host_alias=$host - case "$host_alias" in - "") - if host_alias=`$SHELL $ac_config_guess`; then : - else - echo "$progname: cannot guess host type; you must specify one" 1>&2 - echo "$help" 1>&2 - exit 1 - fi ;; - esac - host=`$SHELL $ac_config_sub $host_alias` - echo "$ac_t$host" 1>&6 - - # Make sure the host verified. - test -z "$host" && exit 1 - -elif test -z "$host"; then - echo "$progname: you must specify a host type if you use \`--no-verify'" 1>&2 - echo "$help" 1>&2 - exit 1 -else - host_alias=$host -fi - -# Transform linux* to *-*-linux-gnu*, to support old configure scripts. -case "$host_os" in -linux-gnu*) ;; -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` -esac - -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - -case "$host_os" in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR cru $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -# Set a sane default for `AR'. -test -z "$AR" && AR=ar - -# Set a sane default for `OBJDUMP'. -test -z "$OBJDUMP" && OBJDUMP=objdump - -# If RANLIB is not set, then run the test. -if test "${RANLIB+set}" != "set"; then - result=no - - echo $ac_n "checking for ranlib... $ac_c" 1>&6 - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" - for dir in $PATH; do - test -z "$dir" && dir=. - if test -f $dir/ranlib || test -f $dir/ranlib$ac_exeext; then - RANLIB="ranlib" - result="ranlib" - break - fi - done - IFS="$save_ifs" - - echo "$ac_t$result" 1>&6 -fi - -if test -n "$RANLIB"; then - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" -fi - -# Set sane defaults for `DLLTOOL', `OBJDUMP', and `AS', used on cygwin. -test -z "$DLLTOOL" && DLLTOOL=dlltool -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$AS" && AS=as - -# Check to see if we are using GCC. -if test "$with_gcc" != yes || test -z "$CC"; then - # If CC is not set, then try to find GCC or a usable CC. - if test -z "$CC"; then - echo $ac_n "checking for gcc... $ac_c" 1>&6 - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" - for dir in $PATH; do - test -z "$dir" && dir=. - if test -f $dir/gcc || test -f $dir/gcc$ac_exeext; then - CC="gcc" - break - fi - done - IFS="$save_ifs" - - if test -n "$CC"; then - echo "$ac_t$CC" 1>&6 - else - echo "$ac_t"no 1>&6 - fi - fi - - # Not "gcc", so try "cc", rejecting "/usr/ucb/cc". - if test -z "$CC"; then - echo $ac_n "checking for cc... $ac_c" 1>&6 - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" - cc_rejected=no - for dir in $PATH; do - test -z "$dir" && dir=. - if test -f $dir/cc || test -f $dir/cc$ac_exeext; then - if test "$dir/cc" = "/usr/ucb/cc"; then - cc_rejected=yes - continue - fi - CC="cc" - break - fi - done - IFS="$save_ifs" - if test $cc_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same name, so the bogon will be chosen - # first if we set CC to just the name; use the full file name. - shift - set dummy "$dir/cc" "$@" - shift - CC="$@" - fi - fi - - if test -n "$CC"; then - echo "$ac_t$CC" 1>&6 - else - echo "$ac_t"no 1>&6 - fi - - if test -z "$CC"; then - echo "$progname: error: no acceptable cc found in \$PATH" 1>&2 - exit 1 - fi - fi - - # Now see if the compiler is really GCC. - with_gcc=no - echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6 - echo "$progname:581: checking whether we are using GNU C" >&5 - - $rm conftest.c - cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - with_gcc=yes - fi - $rm conftest.c - echo "$ac_t$with_gcc" 1>&6 -fi - -# Allow CC to be a program name with arguments. -set dummy $CC -compiler="$2" - -echo $ac_n "checking for object suffix... $ac_c" 1>&6 -$rm conftest* -echo 'int i = 1;' > conftest.c -echo "$progname:603: checking for object suffix" >& 5 -if { (eval echo $progname:604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then - # Append any warnings to the config.log. - cat conftest.err 1>&5 - - for ac_file in conftest.*; do - case $ac_file in - *.c) ;; - *) objext=`echo $ac_file | sed -e s/conftest.//` ;; - esac - done -else - cat conftest.err 1>&5 - echo "$progname: failed program was:" >&5 - cat conftest.c >&5 -fi -$rm conftest* -echo "$ac_t$objext" 1>&6 - -echo $ac_n "checking for executable suffix... $ac_c" 1>&6 -if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_cv_exeext="no" - $rm conftest* - echo 'main () { return 0; }' > conftest.c - echo "$progname:629: checking for executable suffix" >& 5 - if { (eval echo $progname:630: \"$ac_link\") 1>&5; (eval $ac_link) 2>conftest.err; }; then - # Append any warnings to the config.log. - cat conftest.err 1>&5 - - for ac_file in conftest.*; do - case $ac_file in - *.c | *.err | *.$objext ) ;; - *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;; - esac - done - else - cat conftest.err 1>&5 - echo "$progname: failed program was:" >&5 - cat conftest.c >&5 - fi - $rm conftest* -fi -if test "X$ac_cv_exeext" = Xno; then - exeext="" -else - exeext="$ac_cv_exeext" -fi -echo "$ac_t$ac_cv_exeext" 1>&6 - -echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6 -pic_flag= -special_shlib_compile_flags= -wl= -link_static_flag= -no_builtin_flag= - -if test "$with_gcc" = yes; then - wl='-Wl,' - link_static_flag='-static' - - case "$host_os" in - beos* | irix5* | irix6* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - aix*) - # Below there is a dirty hack to force normal static linking with -ldl - # The problem is because libdl dynamically linked with both libc and - # libC (AIX C++ library), which obviously doesn't included in libraries - # list by gcc. This cause undefined symbols with -static flags. - # This hack allows C programs to be linked with "-static -ldl", but - # we not sure about C++ programs. - link_static_flag="$link_static_flag ${wl}-lC" - ;; - cygwin* | mingw* | os2*) - # We can build DLLs from non-PIC. - ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - pic_flag='-m68020 -resident32 -malways-restore-a4' - ;; - sysv4*MP*) - if test -d /usr/nec; then - pic_flag=-Kconform_pic - fi - ;; - *) - pic_flag='-fPIC' - ;; - esac -else - # PORTME Check for PIC flags for the system compiler. - case "$host_os" in - aix3* | aix4*) - # All AIX code is PIC. - link_static_flag='-bnso -bI:/lib/syscalls.exp' - ;; - - hpux9* | hpux10* | hpux11*) - # Is there a better link_static_flag that works with the bundled CC? - wl='-Wl,' - link_static_flag="${wl}-a ${wl}archive" - pic_flag='+Z' - ;; - - irix5* | irix6*) - wl='-Wl,' - link_static_flag='-non_shared' - # PIC (with -KPIC) is the default. - ;; - - cygwin* | mingw* | os2*) - # We can build DLLs from non-PIC. - ;; - - osf3* | osf4* | osf5*) - # All OSF/1 code is PIC. - wl='-Wl,' - link_static_flag='-non_shared' - ;; - - sco3.2v5*) - pic_flag='-Kpic' - link_static_flag='-dn' - special_shlib_compile_flags='-belf' - ;; - - solaris*) - pic_flag='-KPIC' - link_static_flag='-Bstatic' - wl='-Wl,' - ;; - - sunos4*) - pic_flag='-PIC' - link_static_flag='-Bstatic' - wl='-Qoption ld ' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - pic_flag='-KPIC' - link_static_flag='-Bstatic' - wl='-Wl,' - ;; - - uts4*) - pic_flag='-pic' - link_static_flag='-Bstatic' - ;; - sysv4*MP*) - if test -d /usr/nec ;then - pic_flag='-Kconform_pic' - link_static_flag='-Bstatic' - fi - ;; - *) - can_build_shared=no - ;; - esac -fi - -if test -n "$pic_flag"; then - echo "$ac_t$pic_flag" 1>&6 - - # Check to make sure the pic_flag actually works. - echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6 - $rm conftest* - echo "int some_variable = 0;" > conftest.c - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $pic_flag -DPIC" - echo "$progname:776: checking if $compiler PIC flag $pic_flag works" >&5 - if { (eval echo $progname:777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then - # Append any warnings to the config.log. - cat conftest.err 1>&5 - - case "$host_os" in - hpux9* | hpux10* | hpux11*) - # On HP-UX, both CC and GCC only warn that PIC is supported... then they - # create non-PIC objects. So, if there were any warnings, we assume that - # PIC is not supported. - if test -s conftest.err; then - echo "$ac_t"no 1>&6 - can_build_shared=no - pic_flag= - else - echo "$ac_t"yes 1>&6 - pic_flag=" $pic_flag" - fi - ;; - *) - echo "$ac_t"yes 1>&6 - pic_flag=" $pic_flag" - ;; - esac - else - # Append any errors to the config.log. - cat conftest.err 1>&5 - can_build_shared=no - pic_flag= - echo "$ac_t"no 1>&6 - fi - CFLAGS="$save_CFLAGS" - $rm conftest* -else - echo "$ac_t"none 1>&6 -fi - -# Check to see if options -o and -c are simultaneously supported by compiler -echo $ac_n "checking if $compiler supports -c -o file.o... $ac_c" 1>&6 -$rm -r conftest 2>/dev/null -mkdir conftest -cd conftest -$rm conftest* -echo "int some_variable = 0;" > conftest.c -mkdir out -# According to Tom Tromey, Ian Lance Taylor reported there are C compilers -# that will create temporary files in the current directory regardless of -# the output directory. Thus, making CWD read-only will cause this test -# to fail, enabling locking or at least warning the user not to do parallel -# builds. -chmod -w . -save_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS -o out/conftest2.o" -echo "$progname:829: checking if $compiler supports -c -o file.o" >&5 -if { (eval echo $progname:830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.o; then - - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s out/conftest.err; then - echo "$ac_t"no 1>&6 - compiler_c_o=no - else - echo "$ac_t"yes 1>&6 - compiler_c_o=yes - fi -else - # Append any errors to the config.log. - cat out/conftest.err 1>&5 - compiler_c_o=no - echo "$ac_t"no 1>&6 -fi -CFLAGS="$save_CFLAGS" -chmod u+w . -$rm conftest* out/* -rmdir out -cd .. -rmdir conftest -$rm -r conftest 2>/dev/null - -if test x"$compiler_c_o" = x"yes"; then - # Check to see if we can write to a .lo - echo $ac_n "checking if $compiler supports -c -o file.lo... $ac_c" 1>&6 - $rm conftest* - echo "int some_variable = 0;" > conftest.c - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -c -o conftest.lo" - echo "$progname:862: checking if $compiler supports -c -o file.lo" >&5 -if { (eval echo $progname:863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.lo; then - - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - echo "$ac_t"no 1>&6 - compiler_o_lo=no - else - echo "$ac_t"yes 1>&6 - compiler_o_lo=yes - fi - else - # Append any errors to the config.log. - cat conftest.err 1>&5 - compiler_o_lo=no - echo "$ac_t"no 1>&6 - fi - CFLAGS="$save_CFLAGS" - $rm conftest* -else - compiler_o_lo=no -fi - -# Check to see if we can do hard links to lock some files if needed -hard_links="nottested" -if test "$compiler_c_o" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - echo $ac_n "checking if we can lock with hard links... $ac_c" 1>&6 - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - echo "$ac_t$hard_links" 1>&6 - $rm conftest* - if test "$hard_links" = no; then - echo "*** WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2 - need_locks=warn - fi -else - need_locks=no -fi - -if test "$with_gcc" = yes; then - # Check to see if options -fno-rtti -fno-exceptions are supported by compiler - echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions ... $ac_c" 1>&6 - $rm conftest* - echo "int some_variable = 0;" > conftest.c - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.c" - echo "$progname:914: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 - if { (eval echo $progname:915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then - - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - echo "$ac_t"no 1>&6 - compiler_rtti_exceptions=no - else - echo "$ac_t"yes 1>&6 - compiler_rtti_exceptions=yes - fi - else - # Append any errors to the config.log. - cat conftest.err 1>&5 - compiler_rtti_exceptions=no - echo "$ac_t"no 1>&6 - fi - CFLAGS="$save_CFLAGS" - $rm conftest* - - if test "$compiler_rtti_exceptions" = "yes"; then - no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' - else - no_builtin_flag=' -fno-builtin' - fi - -fi - -# Check for any special shared library compilation flags. -if test -n "$special_shlib_compile_flags"; then - echo "$progname: warning: \`$CC' requires \`$special_shlib_compile_flags' to build shared libraries" 1>&2 - if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$special_shlib_compile_flags[ ]" >/dev/null; then : - else - echo "$progname: add \`$special_shlib_compile_flags' to the CC or CFLAGS env variable and reconfigure" 1>&2 - can_build_shared=no - fi -fi - -echo $ac_n "checking if $compiler static flag $link_static_flag works... $ac_c" 1>&6 -$rm conftest* -echo 'main(){return(0);}' > conftest.c -save_LDFLAGS="$LDFLAGS" -LDFLAGS="$LDFLAGS $link_static_flag" -echo "$progname:958: checking if $compiler static flag $link_static_flag works" >&5 -if { (eval echo $progname:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - echo "$ac_t$link_static_flag" 1>&6 -else - echo "$ac_t"none 1>&6 - link_static_flag= -fi -LDFLAGS="$save_LDFLAGS" -$rm conftest* - -if test -z "$LN_S"; then - # Check to see if we can use ln -s, or we need hard links. - echo $ac_n "checking whether ln -s works... $ac_c" 1>&6 - $rm conftest.dat - if ln -s X conftest.dat 2>/dev/null; then - $rm conftest.dat - LN_S="ln -s" - else - LN_S=ln - fi - if test "$LN_S" = "ln -s"; then - echo "$ac_t"yes 1>&6 - else - echo "$ac_t"no 1>&6 - fi -fi - -# Make sure LD is an absolute path. -if test -z "$LD"; then - ac_prog=ld - if test "$with_gcc" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6 - echo "$progname:991: checking for ld used by GCC" >&5 - ac_prog=`($CC -print-prog-name=ld) 2>&5` - case "$ac_prog" in - # Accept absolute paths. - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we are not using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac - elif test "$with_gnu_ld" = yes; then - echo $ac_n "checking for GNU ld... $ac_c" 1>&6 - echo "$progname:1015: checking for GNU ld" >&5 - else - echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 - echo "$progname:1018: checking for non-GNU ld" >&5 - fi - - if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - if "$LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then - test "$with_gnu_ld" != no && break - else - test "$with_gnu_ld" != yes && break - fi - fi - done - IFS="$ac_save_ifs" - fi - - if test -n "$LD"; then - echo "$ac_t$LD" 1>&6 - else - echo "$ac_t"no 1>&6 - fi - - if test -z "$LD"; then - echo "$progname: error: no acceptable ld found in \$PATH" 1>&2 - exit 1 - fi -fi - -# Check to see if it really is or is not GNU ld. -echo $ac_n "checking if the linker ($LD) is GNU ld... $ac_c" 1>&6 -# I'd rather use --version here, but apparently some GNU ld's only accept -v. -if $LD -v 2>&1 &5; then - with_gnu_ld=yes -else - with_gnu_ld=no -fi -echo "$ac_t$with_gnu_ld" 1>&6 - -# See if the linker supports building shared libraries. -echo $ac_n "checking whether the linker ($LD) supports shared libraries... $ac_c" 1>&6 - -allow_undefined_flag= -no_undefined_flag= -need_lib_prefix=unknown -need_version=unknown -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -archive_cmds= -archive_expsym_cmds= -old_archive_from_new_cmds= -export_dynamic_flag_spec= -whole_archive_flag_spec= -thread_safe_flag_spec= -hardcode_libdir_flag_spec= -hardcode_libdir_separator= -hardcode_direct=no -hardcode_minus_L=no -hardcode_shlibpath_var=unsupported -runpath_var= -always_export_symbols=no -export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' -# include_expsyms should be a list of space-separated symbols to be *always* -# included in the symbol list -include_expsyms= -# exclude_expsyms can be an egrep regular expression of symbols to exclude -# it will be wrapped by ` (' and `)$', so one must not match beginning or -# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', -# as well as any symbol that contains `d'. -exclude_expsyms="_GLOBAL_OFFSET_TABLE_" -# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out -# platforms (ab)use it in PIC code, but their linkers get confused if -# the symbol is explicitly referenced. Since portable code cannot -# rely on this symbol name, it's probably fine to never include it in -# preloaded symbol tables. - -case "$host_os" in -cygwin* | mingw*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$with_gcc" != yes; then - with_gnu_ld=no - fi - ;; - -esac - -ld_shlibs=yes -if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # See if GNU ld supports shared libraries. - case "$host_os" in - aix3* | aix4*) - # On AIX, the GNU linker is very broken - ld_shlibs=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - ;; - - amigaos*) - archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can use - # them. - ld_shlibs=no - ;; - - beos*) - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds='$CC -nostart $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs=no - fi - ;; - - cygwin* | mingw*) - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - allow_undefined_flag=unsupported - always_export_symbols=yes - - # Extract the symbol export list from an `--export-all' def file, - # then regenerate the def file from the symbol export list, so that - # the compiled dll only exports the symbol export list. - # Be careful not to strip the DATA tag left by newer dlltools. - export_symbols_cmds='test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~ - test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~ - $DLLTOOL --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def $objdir/$soname-ltdll.$objext $libobjs $convenience~ - sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $objdir/$soname-def > $export_symbols' - - # If DATA tags from a recent dlltool are present, honour them! - archive_expsym_cmds='echo EXPORTS > $objdir/$soname-def~ - _lt_hint=1; - cat $export_symbols | while read symbol; do - set dummy \$symbol; - case \$# in - 2) echo " \$2 @ \$_lt_hint ; " >> $objdir/$soname-def;; - *) echo " \$2 @ \$_lt_hint \$3 ; " >> $objdir/$soname-def;; - esac; - _lt_hint=`expr 1 + \$_lt_hint`; - done~ - test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~ - test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~ - $CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~ - $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~ - $CC -Wl,--base-file,$objdir/$soname-base $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~ - $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~ - $CC $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts' - - old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a' - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib' - # can we support soname and/or expsyms with a.out? -oliva - fi - ;; - - solaris* | sysv5*) - if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - - sunos4*) - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts' - wlarc= - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - *) - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - - if test "$ld_shlibs" = yes; then - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec='${wl}--export-dynamic' - case $host_os in - cygwin* | mingw*) - # dlltool doesn't understand --whole-archive et. al. - whole_archive_flag_spec= - ;; - *) - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec= - fi - ;; - esac - fi -else - # PORTME fill in a description of your system's linker (not GNU ld) - case "$host_os" in - aix3*) - allow_undefined_flag=unsupported - always_export_symbols=yes - archive_expsym_cmds='$LD -o $objdir/$soname $libobjs $deplibs $linkopts -bE:$export_symbols -T512 -H512 -bM:SRE~$AR cru $lib $objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test "$with_gcc" = yes && test -z "$link_static_flag"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported - fi - ;; - - aix4*) - hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib' - hardcode_libdir_separator=':' - if test "$with_gcc" = yes; then - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - hardcode_direct=yes - else - # We have old collect2 - hardcode_direct=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - shared_flag='-shared' - else - shared_flag='${wl}-bM:SRE' - hardcode_direct=yes - fi - allow_undefined_flag=' ${wl}-berok' - archive_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}' - archive_expsym_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}' - case "$host_os" in aix4.[01]|aix4.[01].*) - # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on - always_export_symbols=yes ;; - esac - ;; - - amigaos*) - archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # see comment about different semantics on the GNU ld section - ld_shlibs=no - ;; - - cygwin* | mingw*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $linkopts `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_from_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib /OUT:$oldlib$oldobjs' - fix_srcfile_path='`cygpath -w $srcfile`' - ;; - - freebsd1*) - ld_shlibs=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd*) - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - hpux9* | hpux10* | hpux11*) - case "$host_os" in - hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;; - *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linkopts' ;; - esac - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - hardcode_minus_L=yes # Not in the search PATH, but as the default - # location of the library. - export_dynamic_flag_spec='${wl}-E' - ;; - - irix5* | irix6*) - if test "$with_gcc" = yes; then - archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' - else - archive_cmds='$LD -shared $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts' # a.out - else - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linkopts' # ELF - fi - hardcode_libdir_flag_spec='${wl}-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - openbsd*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $objdir/$libname.def~$echo DATA >> $objdir/$libname.def~$echo " SINGLE NONSHARED" >> $objdir/$libname.def~$echo EXPORTS >> $objdir/$libname.def~emxexp $libobjs >> $objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $linkopts $objdir/$libname.def' - old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def' - ;; - - osf3*) - if test "$with_gcc" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - - osf4* | osf5*) # As osf3* with the addition of the -msym flag - if test "$with_gcc" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - rhapsody*) - archive_cmds='$CC -bundle -undefined suppress -o $lib $libobjs $deplibs $linkopts' - hardcode_libdir_flags_spec='-L$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - sco3.2v5*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' - hardcode_shlibpath_var=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ;; - - solaris*) - no_undefined_flag=' -z text' - # $CC -shared without GNU ld will not create a library from C++ - # object files and a static libstdc++, better avoid it by now - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_shlibpath_var=no - case "$host_os" in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) # Supported since Solaris 2.6 (maybe 2.5.1?) - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; - esac - ;; - - sunos4*) - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - sysv4) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $linkopts' - else - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' - fi - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; - - sysv4.3*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' - hardcode_shlibpath_var=no - export_dynamic_flag_spec='-Bexport' - ;; - - sysv5*) - no_undefined_flag=' -z text' - # $CC -shared without GNU ld will not create a library from C++ - # object files and a static libstdc++, better avoid it by now - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp' - hardcode_libdir_flag_spec= - hardcode_shlibpath_var=no - runpath_var='LD_RUN_PATH' - ;; - - uts4*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - dgux*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' - hardcode_shlibpath_var=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs=yes - fi - ;; - - sysv4.2uw2*) - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linkopts' - hardcode_direct=yes - hardcode_minus_L=no - hardcode_shlibpath_var=no - hardcode_runpath_var=yes - runpath_var=LD_RUN_PATH - ;; - - unixware7*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; - - *) - ld_shlibs=no - ;; - esac -fi -echo "$ac_t$ld_shlibs" 1>&6 -test "$ld_shlibs" = no && can_build_shared=no - -if test -z "$NM"; then - echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6 - case "$NM" in - [\\/]* | [A-Za-z]:[\\/]*) ;; # Let the user override the test with a path. - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" - for ac_dir in $PATH /usr/ucb /usr/ccs/bin /bin; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then - NM="$ac_dir/nm -B" - break - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then - NM="$ac_dir/nm -p" - break - else - NM=${NM="$ac_dir/nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - fi - fi - done - IFS="$ac_save_ifs" - test -z "$NM" && NM=nm - ;; - esac - echo "$ac_t$NM" 1>&6 -fi - -# Check for command to grab the raw symbol name followed by C symbol from nm. -echo $ac_n "checking command to parse $NM output... $ac_c" 1>&6 - -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[BCDEGRST]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)' - -# Transform the above into a raw symbol and a C symbol. -symxfrm='\1 \2\3 \3' - -# Transform an extracted symbol line into a proper C declaration -global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" - -# Define system-specific variables. -case "$host_os" in -aix*) - symcode='[BCDT]' - ;; -cygwin* | mingw*) - symcode='[ABCDGISTW]' - ;; -hpux*) # Its linker distinguishes data from code symbols - global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'" - ;; -irix*) - symcode='[BCDEGRST]' - ;; -solaris*) - symcode='[BDT]' - ;; -sysv4) - symcode='[DFNSTU]' - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then - symcode='[ABCDGISTW]' -fi - -# Try without a prefix undercore, then with it. -for ac_symprfx in "" "_"; do - - # Write the raw and C identifiers. - global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$/$symxfrm/p'" - - # Check to see that the pipe works correctly. - pipe_works=no - $rm conftest* - cat > conftest.c <&5 - if { (eval echo $progname:1654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then - # Now try to grab the symbols. - nlist=conftest.nm - if { echo "$progname:1657: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then - - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if egrep ' nm_test_var$' "$nlist" >/dev/null; then - if egrep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.c -#ifdef __cplusplus -extern "C" { -#endif - -EOF - # Now generate the symbol file. - eval "$global_symbol_to_cdecl"' < "$nlist" >> conftest.c' - - cat <> conftest.c -#if defined (__STDC__) && __STDC__ -# define lt_ptr_t void * -#else -# define lt_ptr_t char * -# define const -#endif - -/* The mapping between symbol names and symbols. */ -const struct { - const char *name; - lt_ptr_t address; -} -lt_preloaded_symbols[] = -{ -EOF - sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.c - cat <<\EOF >> conftest.c - {0, (lt_ptr_t) 0} -}; - -#ifdef __cplusplus -} -#endif -EOF - # Now try linking the two files. - mv conftest.$objext conftstm.$objext - save_LIBS="$LIBS" - save_CFLAGS="$CFLAGS" - LIBS="conftstm.$objext" - CFLAGS="$CFLAGS$no_builtin_flag" - if { (eval echo $progname:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - pipe_works=yes - else - echo "$progname: failed program was:" >&5 - cat conftest.c >&5 - fi - LIBS="$save_LIBS" - else - echo "cannot find nm_test_func in $nlist" >&5 - fi - else - echo "cannot find nm_test_var in $nlist" >&5 - fi - else - echo "cannot run $global_symbol_pipe" >&5 - fi - else - echo "$progname: failed program was:" >&5 - cat conftest.c >&5 - fi - $rm conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break - else - global_symbol_pipe= - fi -done -if test "$pipe_works" = yes; then - echo "${ac_t}ok" 1>&6 -else - echo "${ac_t}failed" 1>&6 -fi - -if test -z "$global_symbol_pipe"; then - global_symbol_to_cdecl= -fi - -# Check hardcoding attributes. -echo $ac_n "checking how to hardcode library paths into programs... $ac_c" 1>&6 -hardcode_action= -if test -n "$hardcode_libdir_flag_spec" || \ - test -n "$runpath_var"; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$hardcode_shlibpath_var" != no && - test "$hardcode_minus_L" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action=unsupported -fi -echo "$ac_t$hardcode_action" 1>&6 - - -reload_flag= -reload_cmds='$LD$reload_flag -o $output$reload_objs' -echo $ac_n "checking for $LD option to reload object files... $ac_c" 1>&6 -# PORTME Some linkers may need a different reload flag. -reload_flag='-r' -echo "$ac_t$reload_flag" 1>&6 -test -n "$reload_flag" && reload_flag=" $reload_flag" - -# PORTME Fill in your ld.so characteristics -library_names_spec= -libname_spec='lib$name' -soname_spec= -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -file_magic_cmd= -file_magic_test_file= -deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# `unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [regex]' -- check by looking for files in library path -# which responds to the $file_magic_cmd with a given egrep regex. -# If you have `file' or equivalent on your system and you're not sure -# whether `pass_all' will *always* work, you probably want this one. -echo $ac_n "checking dynamic linker characteristics... $ac_c" 1>&6 -case "$host_os" in -aix3*) - version_type=linux - library_names_spec='${libname}${release}.so$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}.so$major' - ;; - -aix4*) - version_type=linux - # AIX has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - # We preserve .a as extension for shared libraries though AIX4.2 - # and later linker supports .so - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a' - shlibpath_var=LIBPATH - deplibs_check_method=pass_all - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}.so' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - deplibs_check_method=pass_all - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - -bsdi4*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' - file_magic_cmd=/usr/bin/file - file_magic_test_file=/shlib/libc.so - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - export_dynamic_flag_spec=-rdynamic - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw*) - version_type=windows - need_version=no - need_lib_prefix=no - if test "$with_gcc" = yes; then - library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.a' - else - library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' - fi - dynamic_linker='Win32 ld.exe' - deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - file_magic_cmd='${OBJDUMP} -f' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd*) - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` - version_type=freebsd-$objformat - case "$version_type" in - freebsd-elf*) - deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' - file_magic_cmd=/usr/bin/file - file_magic_test_file=`echo /usr/lib/libc.so*` - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - deplibs_check_method=unknown - library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case "$host_os" in - freebsd2* | freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - ;; - *) # from 3.2 on - shlibpath_overrides_runpath=no - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' - soname_spec='${libname}${release}.so$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - dynamic_linker="$host_os dld.sl" - version_type=sunos - need_lib_prefix=no - need_version=no - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' - soname_spec='${libname}${release}.sl$major' - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - case "$host_os" in - hpux10.20*) - # TODO: Does this work for hpux-11 too? - deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' - file_magic_cmd=/usr/bin/file - file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -irix5* | irix6*) - version_type=irix - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}.so.$major' - library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major ${libname}${release}.so $libname.so' - case "$host_os" in - irix5*) - libsuff= shlibsuff= - # this will be overridden with pass_all, but let us keep it just in case - deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" - ;; - *) - case "$LD" in # libtool.m4 will add one of these switches to LD - *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - file_magic_cmd=/usr/bin/file - file_magic_test_file=`echo /lib${libsuff}/libc.so*` - deplibs_check_method='pass_all' - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux-gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - deplibs_check_method=pass_all - - if test -f /lib/ld.so.1; then - dynamic_linker='GNU ld.so' - else - # Only the GNU ld.so supports shared libraries on MkLinux. - case "$host_cpu" in - powerpc*) dynamic_linker=no ;; - *) dynamic_linker='Linux ld.so' ;; - esac - fi - ;; - -netbsd*) - version_type=sunos - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' - soname_spec='${libname}${release}.so$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - ;; - -openbsd*) - version_type=sunos - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - need_version=no - fi - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - ;; - -os2*) - libname_spec='$name' - need_lib_prefix=no - library_names_spec='$libname.dll $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_version=no - soname_spec='${libname}${release}.so' - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' - shlibpath_var=LD_LIBRARY_PATH - # this will be overridden with pass_all, but let us keep it just in case - deplibs_check_method='file_magic COFF format alpha shared library' - file_magic_cmd=/usr/bin/file - file_magic_test_file=/shlib/libc.so - deplibs_check_method='pass_all' - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rhapsody*) - version_type=sunos - library_names_spec='${libname}.so' - soname_spec='${libname}.so' - shlibpath_var=DYLD_LIBRARY_PATH - deplibs_check_method=pass_all - ;; - -sco3.2v5*) - version_type=osf - soname_spec='${libname}${release}.so$major' - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - shlibpath_var=LD_LIBRARY_PATH - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - deplibs_check_method="file_magic ELF [0-9][0-9]-bit [LM]SB dynamic lib" - file_magic_cmd=/usr/bin/file - file_magic_test_file=/lib/libc.so - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - version_type=linux - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' - shlibpath_var=LD_LIBRARY_PATH - case "$host_vendor" in - sequent) - file_magic_cmd='/bin/file' - deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' - ;; - ncr) - deplibs_check_method='pass_all' - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' - file_magic_cmd=/usr/bin/file - file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - esac - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' - soname_spec='$libname.so.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -*) - dynamic_linker=no - ;; -esac -echo "$ac_t$dynamic_linker" 1>&6 -test "$dynamic_linker" = no && can_build_shared=no - -# Report the final consequences. -echo "checking if libtool supports shared libraries... $can_build_shared" 1>&6 - -# Only try to build win32 dlls if AC_LIBTOOL_WIN32_DLL was used in -# configure.in, otherwise build static only libraries. -case "$host_os" in -cygwin* | mingw* | os2*) - if test x$can_build_shared = xyes; then - test x$enable_win32_dll = xno && can_build_shared=no - echo "checking if package supports dlls... $can_build_shared" 1>&6 - fi -;; -esac - -if test -n "$file_magic_test_file" && test -n "$file_magic_cmd"; then - case "$deplibs_check_method" in - "file_magic "*) - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - egrep "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac -fi - -echo $ac_n "checking whether to build shared libraries... $ac_c" 1>&6 -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case "$host_os" in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - -aix4*) - test "$enable_shared" = yes && enable_static=no - ;; -esac - -echo "$ac_t$enable_shared" 1>&6 - -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes - -echo "checking whether to build static libraries... $enable_static" 1>&6 - -if test "$hardcode_action" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - -echo $ac_n "checking for objdir... $ac_c" 1>&6 -rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - objdir=_libs -fi -rmdir .libs 2>/dev/null -echo "$ac_t$objdir" 1>&6 - -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else -if eval "test \"`echo '$''{'lt_cv_dlopen'+set}'`\" != set"; then - lt_cv_dlopen=no lt_cv_dlopen_libs= -echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "$progname:2248: checking for dlopen in -ldl" >&5 -ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-ldl $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for dlopen""... $ac_c" 1>&6 -echo "$progname:2288: checking for dlopen" >&5 -if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_dlopen) || defined (__stub___dlopen) -choke me -#else -dlopen(); -#endif - -; return 0; } -EOF -if { (eval echo $progname:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_dlopen=yes" -else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_dlopen=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lt_cv_dlopen="dlopen" -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6 -echo "$progname:2335: checking for dld_link in -ldld" >&5 -ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-ldld $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for shl_load""... $ac_c" 1>&6 -echo "$progname:2375: checking for shl_load" >&5 -if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_shl_load) || defined (__stub___shl_load) -choke me -#else -shl_load(); -#endif - -; return 0; } -EOF -if { (eval echo $progname:2405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_shl_load=yes" -else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_shl_load=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lt_cv_dlopen="shl_load" -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 -echo "$progname:2423: checking for shl_load in -ldld" >&5 -ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-ldld $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" -else - echo "$ac_t""no" 1>&6 -fi - - -fi - - -fi - - -fi - - -fi - -fi - - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes - fi - - case "$lt_cv_dlopen" in - dlopen) -for ac_hdr in dlfcn.h; do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "$progname:2488: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int fnord = 0; -EOF -ac_try="$ac_compile >/dev/null 2>conftest.out" -{ (eval echo $progname:2498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi -done - - if test "x$ac_cv_header_dlfcn_h" = xyes; then - CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - fi - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - LIBS="$lt_cv_dlopen_libs $LIBS" - - echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6 -echo "$progname:2526: checking whether a program can dlopen itself" >&5 -if test "${lt_cv_dlopen_self+set}" = set; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - lt_cv_dlopen_self=cross - else - cat > conftest.c < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LTDL_GLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LTDL_GLOBAL DL_GLOBAL -# else -# define LTDL_GLOBAL 0 -# endif -#endif - -/* We may have to define LTDL_LAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LTDL_LAZY_OR_NOW -# ifdef RTLD_LAZY -# define LTDL_LAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LTDL_LAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LTDL_LAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LTDL_LAZY_OR_NOW DL_NOW -# else -# define LTDL_LAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -fnord() { int i=42;} -main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); - if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); - if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } - -EOF -if { (eval echo $progname:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null -then - lt_cv_dlopen_self=yes -else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - lt_cv_dlopen_self=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$lt_cv_dlopen_self" 1>&6 - - if test "$lt_cv_dlopen_self" = yes; then - LDFLAGS="$LDFLAGS $link_static_flag" - echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6 -echo "$progname:2599: checking whether a statically linked program can dlopen itself" >&5 -if test "${lt_cv_dlopen_self_static+set}" = set; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - lt_cv_dlopen_self_static=cross - else - cat > conftest.c < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LTDL_GLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LTDL_GLOBAL DL_GLOBAL -# else -# define LTDL_GLOBAL 0 -# endif -#endif - -/* We may have to define LTDL_LAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LTDL_LAZY_OR_NOW -# ifdef RTLD_LAZY -# define LTDL_LAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LTDL_LAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LTDL_LAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LTDL_LAZY_OR_NOW DL_NOW -# else -# define LTDL_LAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -fnord() { int i=42;} -main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); - if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); - if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } - -EOF -if { (eval echo $progname:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null -then - lt_cv_dlopen_self_static=yes -else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - lt_cv_dlopen_self_static=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6 -fi - ;; - esac - - case "$lt_cv_dlopen_self" in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case "$lt_cv_dlopen_self_static" in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi - -# Copy echo and quote the copy, instead of the original, because it is -# used later. -ltecho="$echo" -if test "X$ltecho" = "X$CONFIG_SHELL $0 --fallback-echo"; then - ltecho="$CONFIG_SHELL \$0 --fallback-echo" -fi -LTSHELL="$SHELL" - -LTCONFIG_VERSION="$VERSION" - -# Only quote variables if we're using ltmain.sh. -case "$ltmain" in -*.sh) - # Now quote all the things that may contain metacharacters. - for var in ltecho old_CC old_CFLAGS old_CPPFLAGS \ - old_LD old_LDFLAGS old_LIBS \ - old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS \ - AR CC LD LN_S NM LTSHELL LTCONFIG_VERSION \ - reload_flag reload_cmds wl \ - pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ - thread_safe_flag_spec whole_archive_flag_spec libname_spec \ - library_names_spec soname_spec \ - RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ - old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds postuninstall_cmds \ - file_magic_cmd export_symbols_cmds deplibs_check_method allow_undefined_flag no_undefined_flag \ - finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ - hardcode_libdir_flag_spec hardcode_libdir_separator \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do - - case "$var" in - reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case "$ltecho" in - *'\$0 --fallback-echo"') - ltecho=`$echo "X$ltecho" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - - trap "$rm \"$ofile\"; exit 1" 1 2 15 - echo "creating $ofile" - $rm "$ofile" - cat < "$ofile" -#! $SHELL - -# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) -# NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh. -# -# Copyright (C) 1996-1999 Free Software Foundation, Inc. -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="sed -e s/^X//" - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi - -### BEGIN LIBTOOL CONFIG -EOF - cfgfile="$ofile" - ;; - -*) - # Double-quote the variables that need it (for aesthetics). - for var in old_CC old_CFLAGS old_CPPFLAGS \ - old_LD old_LDFLAGS old_LIBS \ - old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS; do - eval "$var=\\\"\$var\\\"" - done - - # Just create a config file. - cfgfile="$ofile.cfg" - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 - echo "creating $cfgfile" - $rm "$cfgfile" - cat < "$cfgfile" -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Libtool configuration file. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) -EOF - ;; -esac - -cat <> "$cfgfile" -# Libtool was configured as follows, on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# -# CC=$old_CC CFLAGS=$old_CFLAGS CPPFLAGS=$old_CPPFLAGS \\ -# LD=$old_LD LDFLAGS=$old_LDFLAGS LIBS=$old_LIBS \\ -# NM=$old_NM RANLIB=$old_RANLIB LN_S=$old_LN_S \\ -# DLLTOOL=$old_DLLTOOL OBJDUMP=$old_OBJDUMP AS=$old_AS \\ -# $0$ltconfig_args -# -# Compiler and other test output produced by $progname, useful for -# debugging $progname, is in ./config.log if it exists. - -# The version of $progname that generated this script. -LTCONFIG_VERSION=$LTCONFIG_VERSION - -# Shell to use when invoking shell scripts. -SHELL=$LTSHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host - -# An echo program that does not interpret backslashes. -echo=$ltecho - -# The archiver. -AR=$AR - -# The default C compiler. -CC=$CC - -# The linker used to build libraries. -LD=$LD - -# Whether we need hard or soft links. -LN_S=$LN_S - -# A BSD-compatible nm program. -NM=$NM - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$reload_flag -reload_cmds=$reload_cmds - -# How to pass a linker flag through the compiler. -wl=$wl - -# Object file suffix (normally "o"). -objext="$objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$pic_flag - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$compiler_c_o - -# Can we write directly to a .lo ? -compiler_o_lo=$compiler_o_lo - -# Must we lock files when doing compilation ? -need_locks=$need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$link_static_flag - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$no_builtin_flag - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$export_dynamic_flag_spec - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$whole_archive_flag_spec - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$thread_safe_flag_spec - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$RANLIB -old_archive_cmds=$old_archive_cmds -old_postinstall_cmds=$old_postinstall_cmds -old_postuninstall_cmds=$old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$old_archive_from_new_cmds - -# Commands used to build and install a shared archive. -archive_cmds=$archive_cmds -archive_expsym_cmds=$archive_expsym_cmds -postinstall_cmds=$postinstall_cmds -postuninstall_cmds=$postuninstall_cmds - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$allow_undefined_flag - -# Flag that forces no undefined symbols. -no_undefined_flag=$no_undefined_flag - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$global_symbol_to_cdecl - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$hardcode_libdir_flag_spec - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$hardcode_libdir_separator - -# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path="$fix_srcfile_path" - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols - -# The commands to list exported symbols. -export_symbols_cmds=$export_symbols_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$exclude_expsyms - -# Symbols that must always be exported. -include_expsyms=$include_expsyms - -EOF - -case "$ltmain" in -*.sh) - echo '### END LIBTOOL CONFIG' >> "$ofile" - echo >> "$ofile" - case "$host_os" in - aix3*) - cat <<\EOF >> "$ofile" - -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -EOF - ;; - esac - - # Append the ltmain.sh script. - sed '$q' "$ltmain" >> "$ofile" || (rm -f "$ofile"; exit 1) - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - - chmod +x "$ofile" - ;; - -*) - # Compile the libtool program. - echo "FIXME: would compile $ltmain" - ;; -esac - -test -n "$cache_file" || exit 0 - -# AC_CACHE_SAVE -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -exit 0 - -# Local Variables: -# mode:shell-script -# sh-indentation:2 -# End: diff --git a/src/tools/docbook/libxslt/ltmain.sh b/src/tools/docbook/libxslt/ltmain.sh deleted file mode 100644 index 06823e057a..0000000000 --- a/src/tools/docbook/libxslt/ltmain.sh +++ /dev/null @@ -1,6863 +0,0 @@ -# ltmain.sh - Provide generalized library-building support services. -# NOTE: Changing this file will not affect anything until you rerun configure. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -basename="s,^.*/,,g" - -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh -# is ksh but when the shell is invoked as "sh" and the current value of -# the _XPG environment variable is not equal to 1 (one), the special -# positional parameter $0, within a function call, is the name of the -# function. -progpath="$0" - -# The name of this program: -progname=`echo "$progpath" | $SED $basename` -modename="$progname" - -# Global variables: -EXIT_SUCCESS=0 -EXIT_FAILURE=1 - -PROGRAM=ltmain.sh -PACKAGE=libtool -VERSION=1.5.22 -TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)" - -# See if we are running on zsh, and set the options which allow our -# commands through without removal of \ escapes. -if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST -fi - -# Check that we have a working $echo. -if test "X$1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X$1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then - # Yippee, $echo works! - : -else - # Restart under the correct shell, and then maybe $echo will work. - exec $SHELL "$progpath" --no-reexec ${1+"$@"} -fi - -if test "X$1" = X--fallback-echo; then - # used as fallback echo - shift - cat <&2 - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 - exit $EXIT_FAILURE -fi - -# Global variables. -mode=$default_mode -nonopt= -prev= -prevopt= -run= -show="$echo" -show_help= -execute_dlfiles= -duplicate_deps=no -preserve_args= -lo2o="s/\\.lo\$/.${objext}/" -o2lo="s/\\.${objext}\$/.lo/" - -##################################### -# Shell function definitions: -# This seems to be the best place for them - -# func_mktempdir [string] -# Make a temporary directory that won't clash with other running -# libtool processes, and avoids race conditions if possible. If -# given, STRING is the basename for that directory. -func_mktempdir () -{ - my_template="${TMPDIR-/tmp}/${1-$progname}" - - if test "$run" = ":"; then - # Return a directory name, but don't create it in dry-run mode - my_tmpdir="${my_template}-$$" - else - - # If mktemp works, use that first and foremost - my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` - - if test ! -d "$my_tmpdir"; then - # Failing that, at least try and use $RANDOM to avoid a race - my_tmpdir="${my_template}-${RANDOM-0}$$" - - save_mktempdir_umask=`umask` - umask 0077 - $mkdir "$my_tmpdir" - umask $save_mktempdir_umask - fi - - # If we're not in dry-run mode, bomb out on failure - test -d "$my_tmpdir" || { - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 - exit $EXIT_FAILURE - } - fi - - $echo "X$my_tmpdir" | $Xsed -} - - -# func_win32_libid arg -# return the library type of file 'arg' -# -# Need a lot of goo to handle *both* DLLs and import libs -# Has to be a shell function in order to 'eat' the argument -# that is supplied when $file_magic_command is called. -func_win32_libid () -{ - win32_libid_type="unknown" - win32_fileres=`file -L $1 2>/dev/null` - case $win32_fileres in - *ar\ archive\ import\ library*) # definitely import - win32_libid_type="x86 archive import" - ;; - *ar\ archive*) # could be an import, or static - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then - win32_nmres=`eval $NM -f posix -A $1 | \ - $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'` - case $win32_nmres in - import*) win32_libid_type="x86 archive import";; - *) win32_libid_type="x86 archive static";; - esac - fi - ;; - *DLL*) - win32_libid_type="x86 DLL" - ;; - *executable*) # but shell scripts are "executable" too... - case $win32_fileres in - *MS\ Windows\ PE\ Intel*) - win32_libid_type="x86 DLL" - ;; - esac - ;; - esac - $echo $win32_libid_type -} - - -# func_infer_tag arg -# Infer tagged configuration to use if any are available and -# if one wasn't chosen via the "--tag" command line option. -# Only attempt this if the compiler in the base compile -# command doesn't match the default compiler. -# arg is usually of the form 'gcc ...' -func_infer_tag () -{ - if test -n "$available_tags" && test -z "$tagname"; then - CC_quoted= - for arg in $CC; do - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - CC_quoted="$CC_quoted $arg" - done - case $@ in - # Blanks in the command may have been stripped by the calling shell, - # but not from the CC environment variable when configure was run. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; - # Blanks at the start of $base_compile will cause this to fail - # if we don't check for them as well. - *) - for z in $available_tags; do - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then - # Evaluate the configuration. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" - CC_quoted= - for arg in $CC; do - # Double-quote args containing other shell metacharacters. - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - CC_quoted="$CC_quoted $arg" - done - case "$@ " in - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) - # The compiler in the base compile command matches - # the one in the tagged configuration. - # Assume this is the tagged configuration we want. - tagname=$z - break - ;; - esac - fi - done - # If $tagname still isn't set, then no tagged configuration - # was found and let the user know that the "--tag" command - # line option must be used. - if test -z "$tagname"; then - $echo "$modename: unable to infer tagged configuration" - $echo "$modename: specify a tag with \`--tag'" 1>&2 - exit $EXIT_FAILURE -# else -# $echo "$modename: using $tagname tagged configuration" - fi - ;; - esac - fi -} - - -# func_extract_an_archive dir oldlib -func_extract_an_archive () -{ - f_ex_an_ar_dir="$1"; shift - f_ex_an_ar_oldlib="$1" - - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then - : - else - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 - exit $EXIT_FAILURE - fi -} - -# func_extract_archives gentop oldlib ... -func_extract_archives () -{ - my_gentop="$1"; shift - my_oldlibs=${1+"$@"} - my_oldobjs="" - my_xlib="" - my_xabs="" - my_xdir="" - my_status="" - - $show "${rm}r $my_gentop" - $run ${rm}r "$my_gentop" - $show "$mkdir $my_gentop" - $run $mkdir "$my_gentop" - my_status=$? - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then - exit $my_status - fi - - for my_xlib in $my_oldlibs; do - # Extract the objects. - case $my_xlib in - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; - *) my_xabs=`pwd`"/$my_xlib" ;; - esac - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` - my_xdir="$my_gentop/$my_xlib" - - $show "${rm}r $my_xdir" - $run ${rm}r "$my_xdir" - $show "$mkdir $my_xdir" - $run $mkdir "$my_xdir" - exit_status=$? - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then - exit $exit_status - fi - case $host in - *-darwin*) - $show "Extracting $my_xabs" - # Do not bother doing anything if just a dry run - if test -z "$run"; then - darwin_orig_dir=`pwd` - cd $my_xdir || exit $? - darwin_archive=$my_xabs - darwin_curdir=`pwd` - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` - if test -n "$darwin_arches"; then - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` - darwin_arch= - $show "$darwin_base_archive has multiple architectures $darwin_arches" - for darwin_arch in $darwin_arches ; do - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" - func_extract_an_archive "`pwd`" "${darwin_base_archive}" - cd "$darwin_curdir" - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" - done # $darwin_arches - ## Okay now we have a bunch of thin objects, gotta fatten them up :) - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` - darwin_file= - darwin_files= - for darwin_file in $darwin_filelist; do - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` - lipo -create -output "$darwin_file" $darwin_files - done # $darwin_filelist - ${rm}r unfat-$$ - cd "$darwin_orig_dir" - else - cd "$darwin_orig_dir" - func_extract_an_archive "$my_xdir" "$my_xabs" - fi # $darwin_arches - fi # $run - ;; - *) - func_extract_an_archive "$my_xdir" "$my_xabs" - ;; - esac - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` - done - func_extract_archives_result="$my_oldobjs" -} -# End of Shell function definitions -##################################### - -# Darwin sucks -eval std_shrext=\"$shrext_cmds\" - -disable_libs=no - -# Parse our command line options once, thoroughly. -while test "$#" -gt 0 -do - arg="$1" - shift - - case $arg in - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; - *) optarg= ;; - esac - - # If the previous option needs an argument, assign it. - if test -n "$prev"; then - case $prev in - execute_dlfiles) - execute_dlfiles="$execute_dlfiles $arg" - ;; - tag) - tagname="$arg" - preserve_args="${preserve_args}=$arg" - - # Check whether tagname contains only valid characters - case $tagname in - *[!-_A-Za-z0-9,/]*) - $echo "$progname: invalid tag name: $tagname" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - case $tagname in - CC) - # Don't test for the "default" C tag, as we know, it's there, but - # not specially marked. - ;; - *) - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then - taglist="$taglist $tagname" - # Evaluate the configuration. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" - else - $echo "$progname: ignoring unknown tag $tagname" 1>&2 - fi - ;; - esac - ;; - *) - eval "$prev=\$arg" - ;; - esac - - prev= - prevopt= - continue - fi - - # Have we seen a non-optional argument yet? - case $arg in - --help) - show_help=yes - ;; - - --version) - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" - $echo - $echo "Copyright (C) 2005 Free Software Foundation, Inc." - $echo "This is free software; see the source for copying conditions. There is NO" - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - exit $? - ;; - - --config) - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath - # Now print the configurations for the tags. - for tagname in $taglist; do - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" - done - exit $? - ;; - - --debug) - $echo "$progname: enabling shell trace mode" - set -x - preserve_args="$preserve_args $arg" - ;; - - --dry-run | -n) - run=: - ;; - - --features) - $echo "host: $host" - if test "$build_libtool_libs" = yes; then - $echo "enable shared libraries" - else - $echo "disable shared libraries" - fi - if test "$build_old_libs" = yes; then - $echo "enable static libraries" - else - $echo "disable static libraries" - fi - exit $? - ;; - - --finish) mode="finish" ;; - - --mode) prevopt="--mode" prev=mode ;; - --mode=*) mode="$optarg" ;; - - --preserve-dup-deps) duplicate_deps="yes" ;; - - --quiet | --silent) - show=: - preserve_args="$preserve_args $arg" - ;; - - --tag) - prevopt="--tag" - prev=tag - preserve_args="$preserve_args --tag" - ;; - --tag=*) - set tag "$optarg" ${1+"$@"} - shift - prev=tag - preserve_args="$preserve_args --tag" - ;; - - -dlopen) - prevopt="-dlopen" - prev=execute_dlfiles - ;; - - -*) - $echo "$modename: unrecognized option \`$arg'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - ;; - - *) - nonopt="$arg" - break - ;; - esac -done - -if test -n "$prevopt"; then - $echo "$modename: option \`$prevopt' requires an argument" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE -fi - -case $disable_libs in -no) - ;; -shared) - build_libtool_libs=no - build_old_libs=yes - ;; -static) - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` - ;; -esac - -# If this variable is set in any of the actions, the command in it -# will be execed at the end. This prevents here-documents from being -# left over by shells. -exec_cmd= - -if test -z "$show_help"; then - - # Infer the operation mode. - if test -z "$mode"; then - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 - case $nonopt in - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) - mode=link - for arg - do - case $arg in - -c) - mode=compile - break - ;; - esac - done - ;; - *db | *dbx | *strace | *truss) - mode=execute - ;; - *install*|cp|mv) - mode=install - ;; - *rm) - mode=uninstall - ;; - *) - # If we have no mode, but dlfiles were specified, then do execute mode. - test -n "$execute_dlfiles" && mode=execute - - # Just use the default operation mode. - if test -z "$mode"; then - if test -n "$nonopt"; then - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 - else - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 - fi - fi - ;; - esac - fi - - # Only execute mode is allowed to have -dlopen flags. - if test -n "$execute_dlfiles" && test "$mode" != execute; then - $echo "$modename: unrecognized option \`-dlopen'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # Change the help message to a mode-specific one. - generic_help="$help" - help="Try \`$modename --help --mode=$mode' for more information." - - # These modes are in order of execution frequency so that they run quickly. - case $mode in - # libtool compile mode - compile) - modename="$modename: compile" - # Get the compilation command and the source file. - base_compile= - srcfile="$nonopt" # always keep a non-empty value in "srcfile" - suppress_opt=yes - suppress_output= - arg_mode=normal - libobj= - later= - - for arg - do - case $arg_mode in - arg ) - # do not "continue". Instead, add this to base_compile - lastarg="$arg" - arg_mode=normal - ;; - - target ) - libobj="$arg" - arg_mode=normal - continue - ;; - - normal ) - # Accept any command-line options. - case $arg in - -o) - if test -n "$libobj" ; then - $echo "$modename: you cannot specify \`-o' more than once" 1>&2 - exit $EXIT_FAILURE - fi - arg_mode=target - continue - ;; - - -static | -prefer-pic | -prefer-non-pic) - later="$later $arg" - continue - ;; - - -no-suppress) - suppress_opt=no - continue - ;; - - -Xcompiler) - arg_mode=arg # the next one goes into the "base_compile" arg list - continue # The current "srcfile" will either be retained or - ;; # replaced later. I would guess that would be a bug. - - -Wc,*) - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` - lastarg= - save_ifs="$IFS"; IFS=',' - for arg in $args; do - IFS="$save_ifs" - - # Double-quote args containing other shell metacharacters. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - lastarg="$lastarg $arg" - done - IFS="$save_ifs" - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` - - # Add the arguments to base_compile. - base_compile="$base_compile $lastarg" - continue - ;; - - * ) - # Accept the current argument as the source file. - # The previous "srcfile" becomes the current argument. - # - lastarg="$srcfile" - srcfile="$arg" - ;; - esac # case $arg - ;; - esac # case $arg_mode - - # Aesthetically quote the previous argument. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` - - case $lastarg in - # Double-quote args containing other shell metacharacters. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, and some SunOS ksh mistreat backslash-escaping - # in scan sets (worked around with variable expansion), - # and furthermore cannot handle '|' '&' '(' ')' in scan sets - # at all, so we specify them separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - lastarg="\"$lastarg\"" - ;; - esac - - base_compile="$base_compile $lastarg" - done # for arg - - case $arg_mode in - arg) - $echo "$modename: you must specify an argument for -Xcompile" - exit $EXIT_FAILURE - ;; - target) - $echo "$modename: you must specify a target with \`-o'" 1>&2 - exit $EXIT_FAILURE - ;; - *) - # Get the name of the library object. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` - ;; - esac - - # Recognize several different file suffixes. - # If the user specifies -o file.o, it is replaced with file.lo - xform='[cCFSifmso]' - case $libobj in - *.ada) xform=ada ;; - *.adb) xform=adb ;; - *.ads) xform=ads ;; - *.asm) xform=asm ;; - *.c++) xform=c++ ;; - *.cc) xform=cc ;; - *.ii) xform=ii ;; - *.class) xform=class ;; - *.cpp) xform=cpp ;; - *.cxx) xform=cxx ;; - *.f90) xform=f90 ;; - *.for) xform=for ;; - *.java) xform=java ;; - esac - - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` - - case $libobj in - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; - *) - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - func_infer_tag $base_compile - - for arg in $later; do - case $arg in - -static) - build_old_libs=yes - continue - ;; - - -prefer-pic) - pic_mode=yes - continue - ;; - - -prefer-non-pic) - pic_mode=no - continue - ;; - esac - done - - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` - case $qlibobj in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - qlibobj="\"$qlibobj\"" ;; - esac - test "X$libobj" != "X$qlibobj" \ - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$obj"; then - xdir= - else - xdir=$xdir/ - fi - lobj=${xdir}$objdir/$objname - - if test -z "$base_compile"; then - $echo "$modename: you must specify a compilation command" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # Delete any leftover library objects. - if test "$build_old_libs" = yes; then - removelist="$obj $lobj $libobj ${libobj}T" - else - removelist="$lobj $libobj ${libobj}T" - fi - - $run $rm $removelist - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 - - # On Cygwin there's no "real" PIC flag so we must build both object types - case $host_os in - cygwin* | mingw* | pw32* | os2*) - pic_mode=default - ;; - esac - if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then - # non-PIC code in shared libraries is not supported - pic_mode=default - fi - - # Calculate the filename of the output object if compiler does - # not support -o with -c - if test "$compiler_c_o" = no; then - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} - lockfile="$output_obj.lock" - removelist="$removelist $output_obj $lockfile" - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 - else - output_obj= - need_locks=no - lockfile= - fi - - # Lock this critical section if it is needed - # We use this script file to make the link, it avoids creating a new file - if test "$need_locks" = yes; then - until $run ln "$progpath" "$lockfile" 2>/dev/null; do - $show "Waiting for $lockfile to be removed" - sleep 2 - done - elif test "$need_locks" = warn; then - if test -f "$lockfile"; then - $echo "\ -*** ERROR, $lockfile exists and contains: -`cat $lockfile 2>/dev/null` - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $run $rm $removelist - exit $EXIT_FAILURE - fi - $echo "$srcfile" > "$lockfile" - fi - - if test -n "$fix_srcfile_path"; then - eval srcfile=\"$fix_srcfile_path\" - fi - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` - case $qsrcfile in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - qsrcfile="\"$qsrcfile\"" ;; - esac - - $run $rm "$libobj" "${libobj}T" - - # Create a libtool object file (analogous to a ".la" file), - # but don't create it if we're doing a dry run. - test -z "$run" && cat > ${libobj}T </dev/null`" != "X$srcfile"; then - $echo "\ -*** ERROR, $lockfile contains: -`cat $lockfile 2>/dev/null` - -but it should contain: -$srcfile - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $run $rm $removelist - exit $EXIT_FAILURE - fi - - # Just move the object if needed, then go on to compile the next one - if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then - $show "$mv $output_obj $lobj" - if $run $mv $output_obj $lobj; then : - else - error=$? - $run $rm $removelist - exit $error - fi - fi - - # Append the name of the PIC object to the libtool object file. - test -z "$run" && cat >> ${libobj}T <> ${libobj}T </dev/null`" != "X$srcfile"; then - $echo "\ -*** ERROR, $lockfile contains: -`cat $lockfile 2>/dev/null` - -but it should contain: -$srcfile - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $run $rm $removelist - exit $EXIT_FAILURE - fi - - # Just move the object if needed - if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then - $show "$mv $output_obj $obj" - if $run $mv $output_obj $obj; then : - else - error=$? - $run $rm $removelist - exit $error - fi - fi - - # Append the name of the non-PIC object the libtool object file. - # Only append if the libtool object file exists. - test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 - fi - if test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - else - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=built - fi - build_libtool_libs=no - build_old_libs=yes - break - ;; - esac - done - - # See if our shared archives depend on static archives. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes - - # Go through the arguments, transforming them on the way. - while test "$#" -gt 0; do - arg="$1" - shift - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test - ;; - *) qarg=$arg ;; - esac - libtool_args="$libtool_args $qarg" - - # If the previous option needs an argument, assign it. - if test -n "$prev"; then - case $prev in - output) - compile_command="$compile_command @OUTPUT@" - finalize_command="$finalize_command @OUTPUT@" - ;; - esac - - case $prev in - dlfiles|dlprefiles) - if test "$preload" = no; then - # Add the symbol object into the linking commands. - compile_command="$compile_command @SYMFILE@" - finalize_command="$finalize_command @SYMFILE@" - preload=yes - fi - case $arg in - *.la | *.lo) ;; # We handle these cases below. - force) - if test "$dlself" = no; then - dlself=needless - export_dynamic=yes - fi - prev= - continue - ;; - self) - if test "$prev" = dlprefiles; then - dlself=yes - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then - dlself=yes - else - dlself=needless - export_dynamic=yes - fi - prev= - continue - ;; - *) - if test "$prev" = dlfiles; then - dlfiles="$dlfiles $arg" - else - dlprefiles="$dlprefiles $arg" - fi - prev= - continue - ;; - esac - ;; - expsyms) - export_symbols="$arg" - if test ! -f "$arg"; then - $echo "$modename: symbol file \`$arg' does not exist" - exit $EXIT_FAILURE - fi - prev= - continue - ;; - expsyms_regex) - export_symbols_regex="$arg" - prev= - continue - ;; - inst_prefix) - inst_prefix_dir="$arg" - prev= - continue - ;; - precious_regex) - precious_files_regex="$arg" - prev= - continue - ;; - release) - release="-$arg" - prev= - continue - ;; - objectlist) - if test -f "$arg"; then - save_arg=$arg - moreargs= - for fil in `cat $save_arg` - do -# moreargs="$moreargs $fil" - arg=$fil - # A libtool-controlled object. - - # Check to see that this really is a libtool object. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - pic_object= - non_pic_object= - - # Read the .lo file - # If there is no directory component, then add one. - case $arg in - */* | *\\*) . $arg ;; - *) . ./$arg ;; - esac - - if test -z "$pic_object" || \ - test -z "$non_pic_object" || - test "$pic_object" = none && \ - test "$non_pic_object" = none; then - $echo "$modename: cannot find name of object for \`$arg'" 1>&2 - exit $EXIT_FAILURE - fi - - # Extract subdirectory from the argument. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$arg"; then - xdir= - else - xdir="$xdir/" - fi - - if test "$pic_object" != none; then - # Prepend the subdirectory the object is found in. - pic_object="$xdir$pic_object" - - if test "$prev" = dlfiles; then - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then - dlfiles="$dlfiles $pic_object" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi - - # CHECK ME: I think I busted this. -Ossama - if test "$prev" = dlprefiles; then - # Preload the old-style object. - dlprefiles="$dlprefiles $pic_object" - prev= - fi - - # A PIC object. - libobjs="$libobjs $pic_object" - arg="$pic_object" - fi - - # Non-PIC object. - if test "$non_pic_object" != none; then - # Prepend the subdirectory the object is found in. - non_pic_object="$xdir$non_pic_object" - - # A standard non-PIC object - non_pic_objects="$non_pic_objects $non_pic_object" - if test -z "$pic_object" || test "$pic_object" = none ; then - arg="$non_pic_object" - fi - else - # If the PIC object exists, use it instead. - # $xdir was prepended to $pic_object above. - non_pic_object="$pic_object" - non_pic_objects="$non_pic_objects $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if test -z "$run"; then - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 - exit $EXIT_FAILURE - else - # Dry-run case. - - # Extract subdirectory from the argument. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$arg"; then - xdir= - else - xdir="$xdir/" - fi - - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` - libobjs="$libobjs $pic_object" - non_pic_objects="$non_pic_objects $non_pic_object" - fi - fi - done - else - $echo "$modename: link input file \`$save_arg' does not exist" - exit $EXIT_FAILURE - fi - arg=$save_arg - prev= - continue - ;; - rpath | xrpath) - # We need an absolute path. - case $arg in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - $echo "$modename: only absolute run-paths are allowed" 1>&2 - exit $EXIT_FAILURE - ;; - esac - if test "$prev" = rpath; then - case "$rpath " in - *" $arg "*) ;; - *) rpath="$rpath $arg" ;; - esac - else - case "$xrpath " in - *" $arg "*) ;; - *) xrpath="$xrpath $arg" ;; - esac - fi - prev= - continue - ;; - xcompiler) - compiler_flags="$compiler_flags $qarg" - prev= - compile_command="$compile_command $qarg" - finalize_command="$finalize_command $qarg" - continue - ;; - xlinker) - linker_flags="$linker_flags $qarg" - compiler_flags="$compiler_flags $wl$qarg" - prev= - compile_command="$compile_command $wl$qarg" - finalize_command="$finalize_command $wl$qarg" - continue - ;; - xcclinker) - linker_flags="$linker_flags $qarg" - compiler_flags="$compiler_flags $qarg" - prev= - compile_command="$compile_command $qarg" - finalize_command="$finalize_command $qarg" - continue - ;; - shrext) - shrext_cmds="$arg" - prev= - continue - ;; - darwin_framework|darwin_framework_skip) - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - prev= - continue - ;; - *) - eval "$prev=\"\$arg\"" - prev= - continue - ;; - esac - fi # test -n "$prev" - - prevarg="$arg" - - case $arg in - -all-static) - if test -n "$link_static_flag"; then - compile_command="$compile_command $link_static_flag" - finalize_command="$finalize_command $link_static_flag" - fi - continue - ;; - - -allow-undefined) - # FIXME: remove this flag sometime in the future. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 - continue - ;; - - -avoid-version) - avoid_version=yes - continue - ;; - - -dlopen) - prev=dlfiles - continue - ;; - - -dlpreopen) - prev=dlprefiles - continue - ;; - - -export-dynamic) - export_dynamic=yes - continue - ;; - - -export-symbols | -export-symbols-regex) - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then - $echo "$modename: more than one -exported-symbols argument is not allowed" - exit $EXIT_FAILURE - fi - if test "X$arg" = "X-export-symbols"; then - prev=expsyms - else - prev=expsyms_regex - fi - continue - ;; - - -framework|-arch|-isysroot) - case " $CC " in - *" ${arg} ${1} "* | *" ${arg} ${1} "*) - prev=darwin_framework_skip ;; - *) compiler_flags="$compiler_flags $arg" - prev=darwin_framework ;; - esac - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - continue - ;; - - -inst-prefix-dir) - prev=inst_prefix - continue - ;; - - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* - # so, if we see these flags be careful not to treat them like -L - -L[A-Z][A-Z]*:*) - case $with_gcc/$host in - no/*-*-irix* | /*-*-irix*) - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - ;; - esac - continue - ;; - - -L*) - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - absdir=`cd "$dir" && pwd` - if test -z "$absdir"; then - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 - absdir="$dir" - notinst_path="$notinst_path $dir" - fi - dir="$absdir" - ;; - esac - case "$deplibs " in - *" -L$dir "*) ;; - *) - deplibs="$deplibs -L$dir" - lib_search_path="$lib_search_path $dir" - ;; - esac - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$dir:"*) ;; - *) dllsearchpath="$dllsearchpath:$dir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - *) dllsearchpath="$dllsearchpath:$testbindir";; - esac - ;; - esac - continue - ;; - - -l*) - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) - # These systems don't actually have a C or math library (as such) - continue - ;; - *-*-os2*) - # These systems don't actually have a C library (as such) - test "X$arg" = "X-lc" && continue - ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc due to us having libc/libc_r. - test "X$arg" = "X-lc" && continue - ;; - *-*-rhapsody* | *-*-darwin1.[012]) - # Rhapsody C and math libraries are in the System framework - deplibs="$deplibs -framework System" - continue - ;; - *-*-sco3.2v5* | *-*-sco5v6*) - # Causes problems with __ctype - test "X$arg" = "X-lc" && continue - ;; - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) - # Compiler inserts libc in the correct place for threads to work - test "X$arg" = "X-lc" && continue - ;; - esac - elif test "X$arg" = "X-lc_r"; then - case $host in - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc_r directly, use -pthread flag. - continue - ;; - esac - fi - deplibs="$deplibs $arg" - continue - ;; - - # Tru64 UNIX uses -model [arg] to determine the layout of C++ - # classes, name mangling, and exception handling. - -model) - compile_command="$compile_command $arg" - compiler_flags="$compiler_flags $arg" - finalize_command="$finalize_command $arg" - prev=xcompiler - continue - ;; - - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) - compiler_flags="$compiler_flags $arg" - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - continue - ;; - - -module) - module=yes - continue - ;; - - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler - # -r[0-9][0-9]* specifies the processor on the SGI compiler - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler - # +DA*, +DD* enable 64-bit mode on the HP compiler - # -q* pass through compiler args for the IBM compiler - # -m* pass through architecture-specific compiler args for GCC - # -m*, -t[45]*, -txscale* pass through architecture-specific - # compiler args for GCC - # -pg pass through profiling flag for GCC - # @file GCC response files - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \ - -t[45]*|-txscale*|@*) - - # Unknown arguments in both finalize_command and compile_command need - # to be aesthetically quoted because they are evaled later. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - compiler_flags="$compiler_flags $arg" - continue - ;; - - -shrext) - prev=shrext - continue - ;; - - -no-fast-install) - fast_install=no - continue - ;; - - -no-install) - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) - # The PATH hackery in wrapper scripts is required on Windows - # in order for the loader to find any dlls it needs. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 - fast_install=no - ;; - *) no_install=yes ;; - esac - continue - ;; - - -no-undefined) - allow_undefined=no - continue - ;; - - -objectlist) - prev=objectlist - continue - ;; - - -o) prev=output ;; - - -precious-files-regex) - prev=precious_regex - continue - ;; - - -release) - prev=release - continue - ;; - - -rpath) - prev=rpath - continue - ;; - - -R) - prev=xrpath - continue - ;; - - -R*) - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - $echo "$modename: only absolute run-paths are allowed" 1>&2 - exit $EXIT_FAILURE - ;; - esac - case "$xrpath " in - *" $dir "*) ;; - *) xrpath="$xrpath $dir" ;; - esac - continue - ;; - - -static) - # The effects of -static are defined in a previous loop. - # We used to do the same as -all-static on platforms that - # didn't have a PIC flag, but the assumption that the effects - # would be equivalent was wrong. It would break on at least - # Digital Unix and AIX. - continue - ;; - - -thread-safe) - thread_safe=yes - continue - ;; - - -version-info) - prev=vinfo - continue - ;; - -version-number) - prev=vinfo - vinfo_number=yes - continue - ;; - - -Wc,*) - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` - arg= - save_ifs="$IFS"; IFS=',' - for flag in $args; do - IFS="$save_ifs" - case $flag in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - flag="\"$flag\"" - ;; - esac - arg="$arg $wl$flag" - compiler_flags="$compiler_flags $flag" - done - IFS="$save_ifs" - arg=`$echo "X$arg" | $Xsed -e "s/^ //"` - ;; - - -Wl,*) - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` - arg= - save_ifs="$IFS"; IFS=',' - for flag in $args; do - IFS="$save_ifs" - case $flag in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - flag="\"$flag\"" - ;; - esac - arg="$arg $wl$flag" - compiler_flags="$compiler_flags $wl$flag" - linker_flags="$linker_flags $flag" - done - IFS="$save_ifs" - arg=`$echo "X$arg" | $Xsed -e "s/^ //"` - ;; - - -Xcompiler) - prev=xcompiler - continue - ;; - - -Xlinker) - prev=xlinker - continue - ;; - - -XCClinker) - prev=xcclinker - continue - ;; - - # Some other compiler flag. - -* | +*) - # Unknown arguments in both finalize_command and compile_command need - # to be aesthetically quoted because they are evaled later. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - ;; - - *.$objext) - # A standard object. - objs="$objs $arg" - ;; - - *.lo) - # A libtool-controlled object. - - # Check to see that this really is a libtool object. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - pic_object= - non_pic_object= - - # Read the .lo file - # If there is no directory component, then add one. - case $arg in - */* | *\\*) . $arg ;; - *) . ./$arg ;; - esac - - if test -z "$pic_object" || \ - test -z "$non_pic_object" || - test "$pic_object" = none && \ - test "$non_pic_object" = none; then - $echo "$modename: cannot find name of object for \`$arg'" 1>&2 - exit $EXIT_FAILURE - fi - - # Extract subdirectory from the argument. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$arg"; then - xdir= - else - xdir="$xdir/" - fi - - if test "$pic_object" != none; then - # Prepend the subdirectory the object is found in. - pic_object="$xdir$pic_object" - - if test "$prev" = dlfiles; then - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then - dlfiles="$dlfiles $pic_object" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi - - # CHECK ME: I think I busted this. -Ossama - if test "$prev" = dlprefiles; then - # Preload the old-style object. - dlprefiles="$dlprefiles $pic_object" - prev= - fi - - # A PIC object. - libobjs="$libobjs $pic_object" - arg="$pic_object" - fi - - # Non-PIC object. - if test "$non_pic_object" != none; then - # Prepend the subdirectory the object is found in. - non_pic_object="$xdir$non_pic_object" - - # A standard non-PIC object - non_pic_objects="$non_pic_objects $non_pic_object" - if test -z "$pic_object" || test "$pic_object" = none ; then - arg="$non_pic_object" - fi - else - # If the PIC object exists, use it instead. - # $xdir was prepended to $pic_object above. - non_pic_object="$pic_object" - non_pic_objects="$non_pic_objects $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if test -z "$run"; then - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 - exit $EXIT_FAILURE - else - # Dry-run case. - - # Extract subdirectory from the argument. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$arg"; then - xdir= - else - xdir="$xdir/" - fi - - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` - libobjs="$libobjs $pic_object" - non_pic_objects="$non_pic_objects $non_pic_object" - fi - fi - ;; - - *.$libext) - # An archive. - deplibs="$deplibs $arg" - old_deplibs="$old_deplibs $arg" - continue - ;; - - *.la) - # A libtool-controlled library. - - if test "$prev" = dlfiles; then - # This library was specified with -dlopen. - dlfiles="$dlfiles $arg" - prev= - elif test "$prev" = dlprefiles; then - # The library was specified with -dlpreopen. - dlprefiles="$dlprefiles $arg" - prev= - else - deplibs="$deplibs $arg" - fi - continue - ;; - - # Some other compiler argument. - *) - # Unknown arguments in both finalize_command and compile_command need - # to be aesthetically quoted because they are evaled later. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - ;; - esac # arg - - # Now actually substitute the argument into the commands. - if test -n "$arg"; then - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - fi - done # argument parsing loop - - if test -n "$prev"; then - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then - eval arg=\"$export_dynamic_flag_spec\" - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - fi - - oldlibs= - # calculate the name of the file, without its directory - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` - libobjs_save="$libobjs" - - if test -n "$shlibpath_var"; then - # get the directories listed in $shlibpath_var - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` - else - shlib_search_path= - fi - eval sys_lib_search_path=\"$sys_lib_search_path_spec\" - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" - - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` - if test "X$output_objdir" = "X$output"; then - output_objdir="$objdir" - else - output_objdir="$output_objdir/$objdir" - fi - # Create the object directory. - if test ! -d "$output_objdir"; then - $show "$mkdir $output_objdir" - $run $mkdir $output_objdir - exit_status=$? - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then - exit $exit_status - fi - fi - - # Determine the type of output - case $output in - "") - $echo "$modename: you must specify an output file" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - ;; - *.$libext) linkmode=oldlib ;; - *.lo | *.$objext) linkmode=obj ;; - *.la) linkmode=lib ;; - *) linkmode=prog ;; # Anything else should be a program. - esac - - case $host in - *cygwin* | *mingw* | *pw32*) - # don't eliminate duplications in $postdeps and $predeps - duplicate_compiler_generated_deps=yes - ;; - *) - duplicate_compiler_generated_deps=$duplicate_deps - ;; - esac - specialdeplibs= - - libs= - # Find all interdependent deplibs by searching for libraries - # that are linked more than once (e.g. -la -lb -la) - for deplib in $deplibs; do - if test "X$duplicate_deps" = "Xyes" ; then - case "$libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - libs="$libs $deplib" - done - - if test "$linkmode" = lib; then - libs="$predeps $libs $compiler_lib_search_path $postdeps" - - # Compute libraries that are listed more than once in $predeps - # $postdeps and mark them as special (i.e., whose duplicates are - # not to be eliminated). - pre_post_deps= - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then - for pre_post_dep in $predeps $postdeps; do - case "$pre_post_deps " in - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; - esac - pre_post_deps="$pre_post_deps $pre_post_dep" - done - fi - pre_post_deps= - fi - - deplibs= - newdependency_libs= - newlib_search_path= - need_relink=no # whether we're linking any uninstalled libtool libraries - notinst_deplibs= # not-installed libtool libraries - case $linkmode in - lib) - passes="conv link" - for file in $dlfiles $dlprefiles; do - case $file in - *.la) ;; - *) - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 - exit $EXIT_FAILURE - ;; - esac - done - ;; - prog) - compile_deplibs= - finalize_deplibs= - alldeplibs=no - newdlfiles= - newdlprefiles= - passes="conv scan dlopen dlpreopen link" - ;; - *) passes="conv" - ;; - esac - for pass in $passes; do - if test "$linkmode,$pass" = "lib,link" || - test "$linkmode,$pass" = "prog,scan"; then - libs="$deplibs" - deplibs= - fi - if test "$linkmode" = prog; then - case $pass in - dlopen) libs="$dlfiles" ;; - dlpreopen) libs="$dlprefiles" ;; - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; - esac - fi - if test "$pass" = dlopen; then - # Collect dlpreopened libraries - save_deplibs="$deplibs" - deplibs= - fi - for deplib in $libs; do - lib= - found=no - case $deplib in - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - compiler_flags="$compiler_flags $deplib" - fi - continue - ;; - -l*) - if test "$linkmode" != lib && test "$linkmode" != prog; then - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 - continue - fi - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do - for search_ext in .la $std_shrext .so .a; do - # Search the libtool library - lib="$searchdir/lib${name}${search_ext}" - if test -f "$lib"; then - if test "$search_ext" = ".la"; then - found=yes - else - found=no - fi - break 2 - fi - done - done - if test "$found" != yes; then - # deplib doesn't seem to be a libtool library - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" - fi - continue - else # deplib is a libtool library - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, - # We need to do some special things here, and not later. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - case " $predeps $postdeps " in - *" $deplib "*) - if (${SED} -e '2q' $lib | - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - library_names= - old_library= - case $lib in - */* | *\\*) . $lib ;; - *) . ./$lib ;; - esac - for l in $old_library $library_names; do - ll="$l" - done - if test "X$ll" = "X$old_library" ; then # only static version available - found=no - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` - test "X$ladir" = "X$lib" && ladir="." - lib=$ladir/$old_library - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" - fi - continue - fi - fi - ;; - *) ;; - esac - fi - fi - ;; # -l - -L*) - case $linkmode in - lib) - deplibs="$deplib $deplibs" - test "$pass" = conv && continue - newdependency_libs="$deplib $newdependency_libs" - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` - ;; - prog) - if test "$pass" = conv; then - deplibs="$deplib $deplibs" - continue - fi - if test "$pass" = scan; then - deplibs="$deplib $deplibs" - else - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - fi - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` - ;; - *) - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 - ;; - esac # linkmode - continue - ;; # -L - -R*) - if test "$pass" = link; then - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` - # Make sure the xrpath contains only unique directories. - case "$xrpath " in - *" $dir "*) ;; - *) xrpath="$xrpath $dir" ;; - esac - fi - deplibs="$deplib $deplibs" - continue - ;; - *.la) lib="$deplib" ;; - *.$libext) - if test "$pass" = conv; then - deplibs="$deplib $deplibs" - continue - fi - case $linkmode in - lib) - valid_a_lib=no - case $deplibs_check_method in - match_pattern*) - set dummy $deplibs_check_method - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` - if eval $echo \"$deplib\" 2>/dev/null \ - | $SED 10q \ - | $EGREP "$match_pattern_regex" > /dev/null; then - valid_a_lib=yes - fi - ;; - pass_all) - valid_a_lib=yes - ;; - esac - if test "$valid_a_lib" != yes; then - $echo - $echo "*** Warning: Trying to link with static lib archive $deplib." - $echo "*** I have the capability to make that library automatically link in when" - $echo "*** you link to this library. But I can only do this if you have a" - $echo "*** shared version of the library, which you do not appear to have" - $echo "*** because the file extensions .$libext of this argument makes me believe" - $echo "*** that it is just a static archive that I should not used here." - else - $echo - $echo "*** Warning: Linking the shared library $output against the" - $echo "*** static library $deplib is not portable!" - deplibs="$deplib $deplibs" - fi - continue - ;; - prog) - if test "$pass" != link; then - deplibs="$deplib $deplibs" - else - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - fi - continue - ;; - esac # linkmode - ;; # *.$libext - *.lo | *.$objext) - if test "$pass" = conv; then - deplibs="$deplib $deplibs" - elif test "$linkmode" = prog; then - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then - # If there is no dlopen support or we're linking statically, - # we need to preload. - newdlprefiles="$newdlprefiles $deplib" - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - newdlfiles="$newdlfiles $deplib" - fi - fi - continue - ;; - %DEPLIBS%) - alldeplibs=yes - continue - ;; - esac # case $deplib - if test "$found" = yes || test -f "$lib"; then : - else - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2 - exit $EXIT_FAILURE - fi - - # Check to see that this really is a libtool archive. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : - else - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 - exit $EXIT_FAILURE - fi - - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` - test "X$ladir" = "X$lib" && ladir="." - - dlname= - dlopen= - dlpreopen= - libdir= - library_names= - old_library= - # If the library was installed with an old release of libtool, - # it will not redefine variables installed, or shouldnotlink - installed=yes - shouldnotlink=no - avoidtemprpath= - - - # Read the .la file - case $lib in - */* | *\\*) . $lib ;; - *) . ./$lib ;; - esac - - if test "$linkmode,$pass" = "lib,link" || - test "$linkmode,$pass" = "prog,scan" || - { test "$linkmode" != prog && test "$linkmode" != lib; }; then - test -n "$dlopen" && dlfiles="$dlfiles $dlopen" - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" - fi - - if test "$pass" = conv; then - # Only check for convenience libraries - deplibs="$lib $deplibs" - if test -z "$libdir"; then - if test -z "$old_library"; then - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 - exit $EXIT_FAILURE - fi - # It is a libtool convenience library, so add in its objects. - convenience="$convenience $ladir/$objdir/$old_library" - old_convenience="$old_convenience $ladir/$objdir/$old_library" - tmp_libs= - for deplib in $dependency_libs; do - deplibs="$deplib $deplibs" - if test "X$duplicate_deps" = "Xyes" ; then - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - tmp_libs="$tmp_libs $deplib" - done - elif test "$linkmode" != prog && test "$linkmode" != lib; then - $echo "$modename: \`$lib' is not a convenience library" 1>&2 - exit $EXIT_FAILURE - fi - continue - fi # $pass = conv - - - # Get the name of the library we link against. - linklib= - for l in $old_library $library_names; do - linklib="$l" - done - if test -z "$linklib"; then - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 - exit $EXIT_FAILURE - fi - - # This library was specified with -dlopen. - if test "$pass" = dlopen; then - if test -z "$libdir"; then - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 - exit $EXIT_FAILURE - fi - if test -z "$dlname" || - test "$dlopen_support" != yes || - test "$build_libtool_libs" = no; then - # If there is no dlname, no dlopen support or we're linking - # statically, we need to preload. We also need to preload any - # dependent libraries so libltdl's deplib preloader doesn't - # bomb out in the load deplibs phase. - dlprefiles="$dlprefiles $lib $dependency_libs" - else - newdlfiles="$newdlfiles $lib" - fi - continue - fi # $pass = dlopen - - # We need an absolute path. - case $ladir in - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; - *) - abs_ladir=`cd "$ladir" && pwd` - if test -z "$abs_ladir"; then - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 - abs_ladir="$ladir" - fi - ;; - esac - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` - - # Find the relevant object directory and library name. - if test "X$installed" = Xyes; then - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then - $echo "$modename: warning: library \`$lib' was moved." 1>&2 - dir="$ladir" - absdir="$abs_ladir" - libdir="$abs_ladir" - else - dir="$libdir" - absdir="$libdir" - fi - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes - else - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then - dir="$ladir" - absdir="$abs_ladir" - # Remove this search path later - notinst_path="$notinst_path $abs_ladir" - else - dir="$ladir/$objdir" - absdir="$abs_ladir/$objdir" - # Remove this search path later - notinst_path="$notinst_path $abs_ladir" - fi - fi # $installed = yes - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` - - # This library was specified with -dlpreopen. - if test "$pass" = dlpreopen; then - if test -z "$libdir"; then - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 - exit $EXIT_FAILURE - fi - # Prefer using a static library (so that no silly _DYNAMIC symbols - # are required to link). - if test -n "$old_library"; then - newdlprefiles="$newdlprefiles $dir/$old_library" - # Otherwise, use the dlname, so that lt_dlopen finds it. - elif test -n "$dlname"; then - newdlprefiles="$newdlprefiles $dir/$dlname" - else - newdlprefiles="$newdlprefiles $dir/$linklib" - fi - fi # $pass = dlpreopen - - if test -z "$libdir"; then - # Link the convenience library - if test "$linkmode" = lib; then - deplibs="$dir/$old_library $deplibs" - elif test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$dir/$old_library $compile_deplibs" - finalize_deplibs="$dir/$old_library $finalize_deplibs" - else - deplibs="$lib $deplibs" # used for prog,scan pass - fi - continue - fi - - - if test "$linkmode" = prog && test "$pass" != link; then - newlib_search_path="$newlib_search_path $ladir" - deplibs="$lib $deplibs" - - linkalldeplibs=no - if test "$link_all_deplibs" != no || test -z "$library_names" || - test "$build_libtool_libs" = no; then - linkalldeplibs=yes - fi - - tmp_libs= - for deplib in $dependency_libs; do - case $deplib in - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test - esac - # Need to link against all dependency_libs? - if test "$linkalldeplibs" = yes; then - deplibs="$deplib $deplibs" - else - # Need to hardcode shared library paths - # or/and link against static libraries - newdependency_libs="$deplib $newdependency_libs" - fi - if test "X$duplicate_deps" = "Xyes" ; then - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - tmp_libs="$tmp_libs $deplib" - done # for deplib - continue - fi # $linkmode = prog... - - if test "$linkmode,$pass" = "prog,link"; then - if test -n "$library_names" && - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then - # We need to hardcode the library path - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then - # Make sure the rpath contains only unique directories. - case "$temp_rpath " in - *" $dir "*) ;; - *" $absdir "*) ;; - *) temp_rpath="$temp_rpath $absdir" ;; - esac - fi - - # Hardcode the library path. - # Skip directories that are in the system default run-time - # search path. - case " $sys_lib_dlsearch_path " in - *" $absdir "*) ;; - *) - case "$compile_rpath " in - *" $absdir "*) ;; - *) compile_rpath="$compile_rpath $absdir" - esac - ;; - esac - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" - esac - ;; - esac - fi # $linkmode,$pass = prog,link... - - if test "$alldeplibs" = yes && - { test "$deplibs_check_method" = pass_all || - { test "$build_libtool_libs" = yes && - test -n "$library_names"; }; }; then - # We only need to search for static libraries - continue - fi - fi - - link_static=no # Whether the deplib will be linked statically - use_static_libs=$prefer_static_libs - if test "$use_static_libs" = built && test "$installed" = yes ; then - use_static_libs=no - fi - if test -n "$library_names" && - { test "$use_static_libs" = no || test -z "$old_library"; }; then - if test "$installed" = no; then - notinst_deplibs="$notinst_deplibs $lib" - need_relink=yes - fi - # This is a shared library - - # Warn about portability, can't link against -module's on - # some systems (darwin) - if test "$shouldnotlink" = yes && test "$pass" = link ; then - $echo - if test "$linkmode" = prog; then - $echo "*** Warning: Linking the executable $output against the loadable module" - else - $echo "*** Warning: Linking the shared library $output against the loadable module" - fi - $echo "*** $linklib is not portable!" - fi - if test "$linkmode" = lib && - test "$hardcode_into_libs" = yes; then - # Hardcode the library path. - # Skip directories that are in the system default run-time - # search path. - case " $sys_lib_dlsearch_path " in - *" $absdir "*) ;; - *) - case "$compile_rpath " in - *" $absdir "*) ;; - *) compile_rpath="$compile_rpath $absdir" - esac - ;; - esac - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" - esac - ;; - esac - fi - - if test -n "$old_archive_from_expsyms_cmds"; then - # figure out the soname - set dummy $library_names - realname="$2" - shift; shift - libname=`eval \\$echo \"$libname_spec\"` - # use dlname if we got it. it's perfectly good, no? - if test -n "$dlname"; then - soname="$dlname" - elif test -n "$soname_spec"; then - # bleh windows - case $host in - *cygwin* | mingw*) - major=`expr $current - $age` - versuffix="-$major" - ;; - esac - eval soname=\"$soname_spec\" - else - soname="$realname" - fi - - # Make a new name for the extract_expsyms_cmds to use - soroot="$soname" - soname=`$echo $soroot | ${SED} -e 's/^.*\///'` - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" - - # If the library has no export list, then create one now - if test -f "$output_objdir/$soname-def"; then : - else - $show "extracting exported symbol list from \`$soname'" - save_ifs="$IFS"; IFS='~' - cmds=$extract_expsyms_cmds - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - fi - - # Create $newlib - if test -f "$output_objdir/$newlib"; then :; else - $show "generating import library for \`$soname'" - save_ifs="$IFS"; IFS='~' - cmds=$old_archive_from_expsyms_cmds - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - fi - # make sure the library variables are pointing to the new library - dir=$output_objdir - linklib=$newlib - fi # test -n "$old_archive_from_expsyms_cmds" - - if test "$linkmode" = prog || test "$mode" != relink; then - add_shlibpath= - add_dir= - add= - lib_linked=yes - case $hardcode_action in - immediate | unsupported) - if test "$hardcode_direct" = no; then - add="$dir/$linklib" - case $host in - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; - *-*-sysv4*uw2*) add_dir="-L$dir" ;; - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ - *-*-unixware7*) add_dir="-L$dir" ;; - *-*-darwin* ) - # if the lib is a module then we can not link against - # it, someone is ignoring the new warnings I added - if /usr/bin/file -L $add 2> /dev/null | - $EGREP ": [^:]* bundle" >/dev/null ; then - $echo "** Warning, lib $linklib is a module, not a shared library" - if test -z "$old_library" ; then - $echo - $echo "** And there doesn't seem to be a static archive available" - $echo "** The link will probably fail, sorry" - else - add="$dir/$old_library" - fi - fi - esac - elif test "$hardcode_minus_L" = no; then - case $host in - *-*-sunos*) add_shlibpath="$dir" ;; - esac - add_dir="-L$dir" - add="-l$name" - elif test "$hardcode_shlibpath_var" = no; then - add_shlibpath="$dir" - add="-l$name" - else - lib_linked=no - fi - ;; - relink) - if test "$hardcode_direct" = yes; then - add="$dir/$linklib" - elif test "$hardcode_minus_L" = yes; then - add_dir="-L$dir" - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case $libdir in - [\\/]*) - add_dir="$add_dir -L$inst_prefix_dir$libdir" - ;; - esac - fi - add="-l$name" - elif test "$hardcode_shlibpath_var" = yes; then - add_shlibpath="$dir" - add="-l$name" - else - lib_linked=no - fi - ;; - *) lib_linked=no ;; - esac - - if test "$lib_linked" != yes; then - $echo "$modename: configuration error: unsupported hardcode properties" - exit $EXIT_FAILURE - fi - - if test -n "$add_shlibpath"; then - case :$compile_shlibpath: in - *":$add_shlibpath:"*) ;; - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; - esac - fi - if test "$linkmode" = prog; then - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" - test -n "$add" && compile_deplibs="$add $compile_deplibs" - else - test -n "$add_dir" && deplibs="$add_dir $deplibs" - test -n "$add" && deplibs="$add $deplibs" - if test "$hardcode_direct" != yes && \ - test "$hardcode_minus_L" != yes && \ - test "$hardcode_shlibpath_var" = yes; then - case :$finalize_shlibpath: in - *":$libdir:"*) ;; - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; - esac - fi - fi - fi - - if test "$linkmode" = prog || test "$mode" = relink; then - add_shlibpath= - add_dir= - add= - # Finalize command for both is simple: just hardcode it. - if test "$hardcode_direct" = yes; then - add="$libdir/$linklib" - elif test "$hardcode_minus_L" = yes; then - add_dir="-L$libdir" - add="-l$name" - elif test "$hardcode_shlibpath_var" = yes; then - case :$finalize_shlibpath: in - *":$libdir:"*) ;; - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; - esac - add="-l$name" - elif test "$hardcode_automatic" = yes; then - if test -n "$inst_prefix_dir" && - test -f "$inst_prefix_dir$libdir/$linklib" ; then - add="$inst_prefix_dir$libdir/$linklib" - else - add="$libdir/$linklib" - fi - else - # We cannot seem to hardcode it, guess we'll fake it. - add_dir="-L$libdir" - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case $libdir in - [\\/]*) - add_dir="$add_dir -L$inst_prefix_dir$libdir" - ;; - esac - fi - add="-l$name" - fi - - if test "$linkmode" = prog; then - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" - test -n "$add" && finalize_deplibs="$add $finalize_deplibs" - else - test -n "$add_dir" && deplibs="$add_dir $deplibs" - test -n "$add" && deplibs="$add $deplibs" - fi - fi - elif test "$linkmode" = prog; then - # Here we assume that one of hardcode_direct or hardcode_minus_L - # is not unsupported. This is valid on all known static and - # shared platforms. - if test "$hardcode_direct" != unsupported; then - test -n "$old_library" && linklib="$old_library" - compile_deplibs="$dir/$linklib $compile_deplibs" - finalize_deplibs="$dir/$linklib $finalize_deplibs" - else - compile_deplibs="-l$name -L$dir $compile_deplibs" - finalize_deplibs="-l$name -L$dir $finalize_deplibs" - fi - elif test "$build_libtool_libs" = yes; then - # Not a shared library - if test "$deplibs_check_method" != pass_all; then - # We're trying link a shared library against a static one - # but the system doesn't support it. - - # Just print a warning and add the library to dependency_libs so - # that the program can be linked against the static library. - $echo - $echo "*** Warning: This system can not link to static lib archive $lib." - $echo "*** I have the capability to make that library automatically link in when" - $echo "*** you link to this library. But I can only do this if you have a" - $echo "*** shared version of the library, which you do not appear to have." - if test "$module" = yes; then - $echo "*** But as you try to build a module library, libtool will still create " - $echo "*** a static module, that should work as long as the dlopening application" - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." - if test -z "$global_symbol_pipe"; then - $echo - $echo "*** However, this would only work if libtool was able to extract symbol" - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" - $echo "*** not find such a program. So, this module is probably useless." - $echo "*** \`nm' from GNU binutils and a full rebuild may help." - fi - if test "$build_old_libs" = no; then - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - fi - else - deplibs="$dir/$old_library $deplibs" - link_static=yes - fi - fi # link shared/static library? - - if test "$linkmode" = lib; then - if test -n "$dependency_libs" && - { test "$hardcode_into_libs" != yes || - test "$build_old_libs" = yes || - test "$link_static" = yes; }; then - # Extract -R from dependency_libs - temp_deplibs= - for libdir in $dependency_libs; do - case $libdir in - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` - case " $xrpath " in - *" $temp_xrpath "*) ;; - *) xrpath="$xrpath $temp_xrpath";; - esac;; - *) temp_deplibs="$temp_deplibs $libdir";; - esac - done - dependency_libs="$temp_deplibs" - fi - - newlib_search_path="$newlib_search_path $absdir" - # Link against this library - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" - # ... and its dependency_libs - tmp_libs= - for deplib in $dependency_libs; do - newdependency_libs="$deplib $newdependency_libs" - if test "X$duplicate_deps" = "Xyes" ; then - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - tmp_libs="$tmp_libs $deplib" - done - - if test "$link_all_deplibs" != no; then - # Add the search paths of all dependency libraries - for deplib in $dependency_libs; do - case $deplib in - -L*) path="$deplib" ;; - *.la) - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` - test "X$dir" = "X$deplib" && dir="." - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; - *) - absdir=`cd "$dir" && pwd` - if test -z "$absdir"; then - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 - absdir="$dir" - fi - ;; - esac - if grep "^installed=no" $deplib > /dev/null; then - path="$absdir/$objdir" - else - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` - if test -z "$libdir"; then - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 - exit $EXIT_FAILURE - fi - if test "$absdir" != "$libdir"; then - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 - fi - path="$absdir" - fi - depdepl= - case $host in - *-*-darwin*) - # we do not want to link against static libs, - # but need to link against shared - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` - if test -n "$deplibrary_names" ; then - for tmp in $deplibrary_names ; do - depdepl=$tmp - done - if test -f "$path/$depdepl" ; then - depdepl="$path/$depdepl" - fi - # do not add paths which are already there - case " $newlib_search_path " in - *" $path "*) ;; - *) newlib_search_path="$newlib_search_path $path";; - esac - fi - path="" - ;; - *) - path="-L$path" - ;; - esac - ;; - -l*) - case $host in - *-*-darwin*) - # Again, we only want to link against shared libraries - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` - for tmp in $newlib_search_path ; do - if test -f "$tmp/lib$tmp_libs.dylib" ; then - eval depdepl="$tmp/lib$tmp_libs.dylib" - break - fi - done - path="" - ;; - *) continue ;; - esac - ;; - *) continue ;; - esac - case " $deplibs " in - *" $path "*) ;; - *) deplibs="$path $deplibs" ;; - esac - case " $deplibs " in - *" $depdepl "*) ;; - *) deplibs="$depdepl $deplibs" ;; - esac - done - fi # link_all_deplibs != no - fi # linkmode = lib - done # for deplib in $libs - dependency_libs="$newdependency_libs" - if test "$pass" = dlpreopen; then - # Link the dlpreopened libraries before other libraries - for deplib in $save_deplibs; do - deplibs="$deplib $deplibs" - done - fi - if test "$pass" != dlopen; then - if test "$pass" != conv; then - # Make sure lib_search_path contains only unique directories. - lib_search_path= - for dir in $newlib_search_path; do - case "$lib_search_path " in - *" $dir "*) ;; - *) lib_search_path="$lib_search_path $dir" ;; - esac - done - newlib_search_path= - fi - - if test "$linkmode,$pass" != "prog,link"; then - vars="deplibs" - else - vars="compile_deplibs finalize_deplibs" - fi - for var in $vars dependency_libs; do - # Add libraries to $var in reverse order - eval tmp_libs=\"\$$var\" - new_libs= - for deplib in $tmp_libs; do - # FIXME: Pedantically, this is the right thing to do, so - # that some nasty dependency loop isn't accidentally - # broken: - #new_libs="$deplib $new_libs" - # Pragmatically, this seems to cause very few problems in - # practice: - case $deplib in - -L*) new_libs="$deplib $new_libs" ;; - -R*) ;; - *) - # And here is the reason: when a library appears more - # than once as an explicit dependence of a library, or - # is implicitly linked in more than once by the - # compiler, it is considered special, and multiple - # occurrences thereof are not removed. Compare this - # with having the same library being listed as a - # dependency of multiple other libraries: in this case, - # we know (pedantically, we assume) the library does not - # need to be listed more than once, so we keep only the - # last copy. This is not always right, but it is rare - # enough that we require users that really mean to play - # such unportable linking tricks to link the library - # using -Wl,-lname, so that libtool does not consider it - # for duplicate removal. - case " $specialdeplibs " in - *" $deplib "*) new_libs="$deplib $new_libs" ;; - *) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$deplib $new_libs" ;; - esac - ;; - esac - ;; - esac - done - tmp_libs= - for deplib in $new_libs; do - case $deplib in - -L*) - case " $tmp_libs " in - *" $deplib "*) ;; - *) tmp_libs="$tmp_libs $deplib" ;; - esac - ;; - *) tmp_libs="$tmp_libs $deplib" ;; - esac - done - eval $var=\"$tmp_libs\" - done # for var - fi - # Last step: remove runtime libs from dependency_libs - # (they stay in deplibs) - tmp_libs= - for i in $dependency_libs ; do - case " $predeps $postdeps $compiler_lib_search_path " in - *" $i "*) - i="" - ;; - esac - if test -n "$i" ; then - tmp_libs="$tmp_libs $i" - fi - done - dependency_libs=$tmp_libs - done # for pass - if test "$linkmode" = prog; then - dlfiles="$newdlfiles" - dlprefiles="$newdlprefiles" - fi - - case $linkmode in - oldlib) - if test -n "$deplibs"; then - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 - fi - - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 - fi - - if test -n "$rpath"; then - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 - fi - - if test -n "$xrpath"; then - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 - fi - - if test -n "$vinfo"; then - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 - fi - - if test -n "$release"; then - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 - fi - - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 - fi - - # Now set the variables for building old libraries. - build_libtool_libs=no - oldlibs="$output" - objs="$objs$old_deplibs" - ;; - - lib) - # Make sure we only generate libraries of the form `libNAME.la'. - case $outputname in - lib*) - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` - eval shared_ext=\"$shrext_cmds\" - eval libname=\"$libname_spec\" - ;; - *) - if test "$module" = no; then - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - if test "$need_lib_prefix" != no; then - # Add the "lib" prefix for modules if required - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` - eval shared_ext=\"$shrext_cmds\" - eval libname=\"$libname_spec\" - else - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` - fi - ;; - esac - - if test -n "$objs"; then - if test "$deplibs_check_method" != pass_all; then - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 - exit $EXIT_FAILURE - else - $echo - $echo "*** Warning: Linking the shared library $output against the non-libtool" - $echo "*** objects $objs is not portable!" - libobjs="$libobjs $objs" - fi - fi - - if test "$dlself" != no; then - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 - fi - - set dummy $rpath - if test "$#" -gt 2; then - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 - fi - install_libdir="$2" - - oldlibs= - if test -z "$rpath"; then - if test "$build_libtool_libs" = yes; then - # Building a libtool convenience library. - # Some compilers have problems with a `.al' extension so - # convenience libraries should have the same extension an - # archive normally would. - oldlibs="$output_objdir/$libname.$libext $oldlibs" - build_libtool_libs=convenience - build_old_libs=yes - fi - - if test -n "$vinfo"; then - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 - fi - - if test -n "$release"; then - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 - fi - else - - # Parse the version information argument. - save_ifs="$IFS"; IFS=':' - set dummy $vinfo 0 0 0 - IFS="$save_ifs" - - if test -n "$8"; then - $echo "$modename: too many parameters to \`-version-info'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # convert absolute version numbers to libtool ages - # this retains compatibility with .la files and attempts - # to make the code below a bit more comprehensible - - case $vinfo_number in - yes) - number_major="$2" - number_minor="$3" - number_revision="$4" - # - # There are really only two kinds -- those that - # use the current revision as the major version - # and those that subtract age and use age as - # a minor version. But, then there is irix - # which has an extra 1 added just for fun - # - case $version_type in - darwin|linux|osf|windows) - current=`expr $number_major + $number_minor` - age="$number_minor" - revision="$number_revision" - ;; - freebsd-aout|freebsd-elf|sunos) - current="$number_major" - revision="$number_minor" - age="0" - ;; - irix|nonstopux) - current=`expr $number_major + $number_minor - 1` - age="$number_minor" - revision="$number_minor" - ;; - esac - ;; - no) - current="$2" - revision="$3" - age="$4" - ;; - esac - - # Check that each of the things are valid numbers. - case $current in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - case $revision in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - case $age in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - if test "$age" -gt "$current"; then - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2 - exit $EXIT_FAILURE - fi - - # Calculate the version variables. - major= - versuffix= - verstring= - case $version_type in - none) ;; - - darwin) - # Like Linux, but with the current version available in - # verstring for coding it into the library header - major=.`expr $current - $age` - versuffix="$major.$age.$revision" - # Darwin ld doesn't like 0 for these options... - minor_current=`expr $current + 1` - verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" - ;; - - freebsd-aout) - major=".$current" - versuffix=".$current.$revision"; - ;; - - freebsd-elf) - major=".$current" - versuffix=".$current"; - ;; - - irix | nonstopux) - major=`expr $current - $age + 1` - - case $version_type in - nonstopux) verstring_prefix=nonstopux ;; - *) verstring_prefix=sgi ;; - esac - verstring="$verstring_prefix$major.$revision" - - # Add in all the interfaces that we are compatible with. - loop=$revision - while test "$loop" -ne 0; do - iface=`expr $revision - $loop` - loop=`expr $loop - 1` - verstring="$verstring_prefix$major.$iface:$verstring" - done - - # Before this point, $major must not contain `.'. - major=.$major - versuffix="$major.$revision" - ;; - - linux) - major=.`expr $current - $age` - versuffix="$major.$age.$revision" - ;; - - osf) - major=.`expr $current - $age` - versuffix=".$current.$age.$revision" - verstring="$current.$age.$revision" - - # Add in all the interfaces that we are compatible with. - loop=$age - while test "$loop" -ne 0; do - iface=`expr $current - $loop` - loop=`expr $loop - 1` - verstring="$verstring:${iface}.0" - done - - # Make executables depend on our current version. - verstring="$verstring:${current}.0" - ;; - - sunos) - major=".$current" - versuffix=".$current.$revision" - ;; - - windows) - # Use '-' rather than '.', since we only want one - # extension on DOS 8.3 filesystems. - major=`expr $current - $age` - versuffix="-$major" - ;; - - *) - $echo "$modename: unknown library version type \`$version_type'" 1>&2 - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 - exit $EXIT_FAILURE - ;; - esac - - # Clear the version info if we defaulted, and they specified a release. - if test -z "$vinfo" && test -n "$release"; then - major= - case $version_type in - darwin) - # we can't check for "0.0" in archive_cmds due to quoting - # problems, so we reset it completely - verstring= - ;; - *) - verstring="0.0" - ;; - esac - if test "$need_version" = no; then - versuffix= - else - versuffix=".0.0" - fi - fi - - # Remove version info from name if versioning should be avoided - if test "$avoid_version" = yes && test "$need_version" = no; then - major= - versuffix= - verstring="" - fi - - # Check to see if the archive will have undefined symbols. - if test "$allow_undefined" = yes; then - if test "$allow_undefined_flag" = unsupported; then - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 - build_libtool_libs=no - build_old_libs=yes - fi - else - # Don't allow undefined symbols. - allow_undefined_flag="$no_undefined_flag" - fi - fi - - if test "$mode" != relink; then - # Remove our outputs, but don't remove object files since they - # may have been created when compiling PIC objects. - removelist= - tempremovelist=`$echo "$output_objdir/*"` - for p in $tempremovelist; do - case $p in - *.$objext) - ;; - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) - if test "X$precious_files_regex" != "X"; then - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 - then - continue - fi - fi - removelist="$removelist $p" - ;; - *) ;; - esac - done - if test -n "$removelist"; then - $show "${rm}r $removelist" - $run ${rm}r $removelist - fi - fi - - # Now set the variables for building old libraries. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then - oldlibs="$oldlibs $output_objdir/$libname.$libext" - - # Transform .lo files to .o files. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` - fi - - # Eliminate all temporary directories. - for path in $notinst_path; do - lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` - deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` - dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"` - done - - if test -n "$xrpath"; then - # If the user specified any rpath flags, then add them. - temp_xrpath= - for libdir in $xrpath; do - temp_xrpath="$temp_xrpath -R$libdir" - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" ;; - esac - done - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then - dependency_libs="$temp_xrpath $dependency_libs" - fi - fi - - # Make sure dlfiles contains only unique files that won't be dlpreopened - old_dlfiles="$dlfiles" - dlfiles= - for lib in $old_dlfiles; do - case " $dlprefiles $dlfiles " in - *" $lib "*) ;; - *) dlfiles="$dlfiles $lib" ;; - esac - done - - # Make sure dlprefiles contains only unique files - old_dlprefiles="$dlprefiles" - dlprefiles= - for lib in $old_dlprefiles; do - case "$dlprefiles " in - *" $lib "*) ;; - *) dlprefiles="$dlprefiles $lib" ;; - esac - done - - if test "$build_libtool_libs" = yes; then - if test -n "$rpath"; then - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) - # these systems don't actually have a c library (as such)! - ;; - *-*-rhapsody* | *-*-darwin1.[012]) - # Rhapsody C library is in the System framework - deplibs="$deplibs -framework System" - ;; - *-*-netbsd*) - # Don't link with libc until the a.out ld.so is fixed. - ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc due to us having libc/libc_r. - ;; - *-*-sco3.2v5* | *-*-sco5v6*) - # Causes problems with __ctype - ;; - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) - # Compiler inserts libc in the correct place for threads to work - ;; - *) - # Add libc to deplibs on all other systems if necessary. - if test "$build_libtool_need_lc" = "yes"; then - deplibs="$deplibs -lc" - fi - ;; - esac - fi - - # Transform deplibs into only deplibs that can be linked in shared. - name_save=$name - libname_save=$libname - release_save=$release - versuffix_save=$versuffix - major_save=$major - # I'm not sure if I'm treating the release correctly. I think - # release should show up in the -l (ie -lgmp5) so we don't want to - # add it in twice. Is that correct? - release="" - versuffix="" - major="" - newdeplibs= - droppeddeps=no - case $deplibs_check_method in - pass_all) - # Don't check for shared/static. Everything works. - # This might be a little naive. We might want to check - # whether the library exists or not. But this is on - # osf3 & osf4 and I'm not really sure... Just - # implementing what was already the behavior. - newdeplibs=$deplibs - ;; - test_compile) - # This code stresses the "libraries are programs" paradigm to its - # limits. Maybe even breaks it. We compile a program, linking it - # against the deplibs as a proxy for the library. Then we can check - # whether they linked in statically or dynamically with ldd. - $rm conftest.c - cat > conftest.c </dev/null` - for potent_lib in $potential_libs; do - # Follow soft links. - if ls -lLd "$potent_lib" 2>/dev/null \ - | grep " -> " >/dev/null; then - continue - fi - # The statement above tries to avoid entering an - # endless loop below, in case of cyclic links. - # We might still enter an endless loop, since a link - # loop can be closed while we follow links, - # but so what? - potlib="$potent_lib" - while test -h "$potlib" 2>/dev/null; do - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` - case $potliblink in - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; - esac - done - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ - | ${SED} 10q \ - | $EGREP "$file_magic_regex" > /dev/null; then - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - break 2 - fi - done - done - fi - if test -n "$a_deplib" ; then - droppeddeps=yes - $echo - $echo "*** Warning: linker path does not have real file for library $a_deplib." - $echo "*** I have the capability to make that library automatically link in when" - $echo "*** you link to this library. But I can only do this if you have a" - $echo "*** shared version of the library, which you do not appear to have" - $echo "*** because I did check the linker path looking for a file starting" - if test -z "$potlib" ; then - $echo "*** with $libname but no candidates were found. (...for file magic test)" - else - $echo "*** with $libname and none of the candidates passed a file format test" - $echo "*** using a file magic. Last file checked: $potlib" - fi - fi - else - # Add a -L argument. - newdeplibs="$newdeplibs $a_deplib" - fi - done # Gone through all deplibs. - ;; - match_pattern*) - set dummy $deplibs_check_method - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` - for a_deplib in $deplibs; do - name=`expr $a_deplib : '-l\(.*\)'` - # If $name is empty we are operating on a -L argument. - if test -n "$name" && test "$name" != "0"; then - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - case " $predeps $postdeps " in - *" $a_deplib "*) - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - ;; - esac - fi - if test -n "$a_deplib" ; then - libname=`eval \\$echo \"$libname_spec\"` - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do - potential_libs=`ls $i/$libname[.-]* 2>/dev/null` - for potent_lib in $potential_libs; do - potlib="$potent_lib" # see symlink-check above in file_magic test - if eval $echo \"$potent_lib\" 2>/dev/null \ - | ${SED} 10q \ - | $EGREP "$match_pattern_regex" > /dev/null; then - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - break 2 - fi - done - done - fi - if test -n "$a_deplib" ; then - droppeddeps=yes - $echo - $echo "*** Warning: linker path does not have real file for library $a_deplib." - $echo "*** I have the capability to make that library automatically link in when" - $echo "*** you link to this library. But I can only do this if you have a" - $echo "*** shared version of the library, which you do not appear to have" - $echo "*** because I did check the linker path looking for a file starting" - if test -z "$potlib" ; then - $echo "*** with $libname but no candidates were found. (...for regex pattern test)" - else - $echo "*** with $libname and none of the candidates passed a file format test" - $echo "*** using a regex pattern. Last file checked: $potlib" - fi - fi - else - # Add a -L argument. - newdeplibs="$newdeplibs $a_deplib" - fi - done # Gone through all deplibs. - ;; - none | unknown | *) - newdeplibs="" - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ - -e 's/ -[LR][^ ]*//g'` - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - for i in $predeps $postdeps ; do - # can't use Xsed below, because $i might contain '/' - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` - done - fi - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ - | grep . >/dev/null; then - $echo - if test "X$deplibs_check_method" = "Xnone"; then - $echo "*** Warning: inter-library dependencies are not supported in this platform." - else - $echo "*** Warning: inter-library dependencies are not known to be supported." - fi - $echo "*** All declared inter-library dependencies are being dropped." - droppeddeps=yes - fi - ;; - esac - versuffix=$versuffix_save - major=$major_save - release=$release_save - libname=$libname_save - name=$name_save - - case $host in - *-*-rhapsody* | *-*-darwin1.[012]) - # On Rhapsody replace the C library is the System framework - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` - ;; - esac - - if test "$droppeddeps" = yes; then - if test "$module" = yes; then - $echo - $echo "*** Warning: libtool could not satisfy all declared inter-library" - $echo "*** dependencies of module $libname. Therefore, libtool will create" - $echo "*** a static module, that should work as long as the dlopening" - $echo "*** application is linked with the -dlopen flag." - if test -z "$global_symbol_pipe"; then - $echo - $echo "*** However, this would only work if libtool was able to extract symbol" - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" - $echo "*** not find such a program. So, this module is probably useless." - $echo "*** \`nm' from GNU binutils and a full rebuild may help." - fi - if test "$build_old_libs" = no; then - oldlibs="$output_objdir/$libname.$libext" - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - else - $echo "*** The inter-library dependencies that have been dropped here will be" - $echo "*** automatically added whenever a program is linked with this library" - $echo "*** or is declared to -dlopen it." - - if test "$allow_undefined" = no; then - $echo - $echo "*** Since this library must not contain undefined symbols," - $echo "*** because either the platform does not support them or" - $echo "*** it was explicitly requested with -no-undefined," - $echo "*** libtool will only create a static version of it." - if test "$build_old_libs" = no; then - oldlibs="$output_objdir/$libname.$libext" - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - fi - fi - fi - # Done checking deplibs! - deplibs=$newdeplibs - fi - - - # move library search paths that coincide with paths to not yet - # installed libraries to the beginning of the library search list - new_libs= - for path in $notinst_path; do - case " $new_libs " in - *" -L$path/$objdir "*) ;; - *) - case " $deplibs " in - *" -L$path/$objdir "*) - new_libs="$new_libs -L$path/$objdir" ;; - esac - ;; - esac - done - for deplib in $deplibs; do - case $deplib in - -L*) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$new_libs $deplib" ;; - esac - ;; - *) new_libs="$new_libs $deplib" ;; - esac - done - deplibs="$new_libs" - - - # All the library-specific variables (install_libdir is set above). - library_names= - old_library= - dlname= - - # Test again, we may have decided not to build it any more - if test "$build_libtool_libs" = yes; then - if test "$hardcode_into_libs" = yes; then - # Hardcode the library paths - hardcode_libdirs= - dep_rpath= - rpath="$finalize_rpath" - test "$mode" != relink && rpath="$compile_rpath$rpath" - for libdir in $rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - dep_rpath="$dep_rpath $flag" - fi - elif test -n "$runpath_var"; then - case "$perm_rpath " in - *" $libdir "*) ;; - *) perm_rpath="$perm_rpath $libdir" ;; - esac - fi - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - if test -n "$hardcode_libdir_flag_spec_ld"; then - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" - else - eval dep_rpath=\"$hardcode_libdir_flag_spec\" - fi - fi - if test -n "$runpath_var" && test -n "$perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $perm_rpath; do - rpath="$rpath$dir:" - done - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" - fi - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" - fi - - shlibpath="$finalize_shlibpath" - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" - if test -n "$shlibpath"; then - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" - fi - - # Get the real and link names of the library. - eval shared_ext=\"$shrext_cmds\" - eval library_names=\"$library_names_spec\" - set dummy $library_names - realname="$2" - shift; shift - - if test -n "$soname_spec"; then - eval soname=\"$soname_spec\" - else - soname="$realname" - fi - if test -z "$dlname"; then - dlname=$soname - fi - - lib="$output_objdir/$realname" - linknames= - for link - do - linknames="$linknames $link" - done - - # Use standard objects if they are pic - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - - # Prepare the list of exported symbols - if test -z "$export_symbols"; then - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then - $show "generating symbol list for \`$libname.la'" - export_symbols="$output_objdir/$libname.exp" - $run $rm $export_symbols - cmds=$export_symbols_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - if len=`expr "X$cmd" : ".*"` && - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then - $show "$cmd" - $run eval "$cmd" || exit $? - skipped_export=false - else - # The command line is too long to execute in one step. - $show "using reloadable object file for export list..." - skipped_export=: - # Break out early, otherwise skipped_export may be - # set to false by a later but shorter cmd. - break - fi - done - IFS="$save_ifs" - if test -n "$export_symbols_regex"; then - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' - $show "$mv \"${export_symbols}T\" \"$export_symbols\"" - $run eval '$mv "${export_symbols}T" "$export_symbols"' - fi - fi - fi - - if test -n "$export_symbols" && test -n "$include_expsyms"; then - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' - fi - - tmp_deplibs= - for test_deplib in $deplibs; do - case " $convenience " in - *" $test_deplib "*) ;; - *) - tmp_deplibs="$tmp_deplibs $test_deplib" - ;; - esac - done - deplibs="$tmp_deplibs" - - if test -n "$convenience"; then - if test -n "$whole_archive_flag_spec"; then - save_libobjs=$libobjs - eval libobjs=\"\$libobjs $whole_archive_flag_spec\" - else - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" - - func_extract_archives $gentop $convenience - libobjs="$libobjs $func_extract_archives_result" - fi - fi - - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then - eval flag=\"$thread_safe_flag_spec\" - linker_flags="$linker_flags $flag" - fi - - # Make a backup of the uninstalled library when relinking - if test "$mode" = relink; then - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? - fi - - # Do each of the archive commands. - if test "$module" = yes && test -n "$module_cmds" ; then - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then - eval test_cmds=\"$module_expsym_cmds\" - cmds=$module_expsym_cmds - else - eval test_cmds=\"$module_cmds\" - cmds=$module_cmds - fi - else - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then - eval test_cmds=\"$archive_expsym_cmds\" - cmds=$archive_expsym_cmds - else - eval test_cmds=\"$archive_cmds\" - cmds=$archive_cmds - fi - fi - - if test "X$skipped_export" != "X:" && - len=`expr "X$test_cmds" : ".*" 2>/dev/null` && - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then - : - else - # The command line is too long to link in one step, link piecewise. - $echo "creating reloadable object files..." - - # Save the value of $output and $libobjs because we want to - # use them later. If we have whole_archive_flag_spec, we - # want to use save_libobjs as it was before - # whole_archive_flag_spec was expanded, because we can't - # assume the linker understands whole_archive_flag_spec. - # This may have to be revisited, in case too many - # convenience libraries get linked in and end up exceeding - # the spec. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then - save_libobjs=$libobjs - fi - save_output=$output - output_la=`$echo "X$output" | $Xsed -e "$basename"` - - # Clear the reloadable object creation command queue and - # initialize k to one. - test_cmds= - concat_cmds= - objlist= - delfiles= - last_robj= - k=1 - output=$output_objdir/$output_la-${k}.$objext - # Loop over the list of objects to be linked. - for obj in $save_libobjs - do - eval test_cmds=\"$reload_cmds $objlist $last_robj\" - if test "X$objlist" = X || - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` && - test "$len" -le "$max_cmd_len"; }; then - objlist="$objlist $obj" - else - # The command $test_cmds is almost too long, add a - # command to the queue. - if test "$k" -eq 1 ; then - # The first file doesn't have a previous command to add. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\" - else - # All subsequent reloadable object files will link in - # the last one created. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" - fi - last_robj=$output_objdir/$output_la-${k}.$objext - k=`expr $k + 1` - output=$output_objdir/$output_la-${k}.$objext - objlist=$obj - len=1 - fi - done - # Handle the remaining objects by creating one last - # reloadable object file. All subsequent reloadable object - # files will link in the last one created. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" - - if ${skipped_export-false}; then - $show "generating symbol list for \`$libname.la'" - export_symbols="$output_objdir/$libname.exp" - $run $rm $export_symbols - libobjs=$output - # Append the command to create the export file. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" - fi - - # Set up a command to remove the reloadable object files - # after they are used. - i=0 - while test "$i" -lt "$k" - do - i=`expr $i + 1` - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" - done - - $echo "creating a temporary reloadable object file: $output" - - # Loop through the commands generated above and execute them. - save_ifs="$IFS"; IFS='~' - for cmd in $concat_cmds; do - IFS="$save_ifs" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - - libobjs=$output - # Restore the value of output. - output=$save_output - - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then - eval libobjs=\"\$libobjs $whole_archive_flag_spec\" - fi - # Expand the library linking commands again to reset the - # value of $libobjs for piecewise linking. - - # Do each of the archive commands. - if test "$module" = yes && test -n "$module_cmds" ; then - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then - cmds=$module_expsym_cmds - else - cmds=$module_cmds - fi - else - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then - cmds=$archive_expsym_cmds - else - cmds=$archive_cmds - fi - fi - - # Append the command to remove the reloadable object files - # to the just-reset $cmds. - eval cmds=\"\$cmds~\$rm $delfiles\" - fi - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || { - lt_exit=$? - - # Restore the uninstalled library and exit - if test "$mode" = relink; then - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' - fi - - exit $lt_exit - } - done - IFS="$save_ifs" - - # Restore the uninstalled library and exit - if test "$mode" = relink; then - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? - - if test -n "$convenience"; then - if test -z "$whole_archive_flag_spec"; then - $show "${rm}r $gentop" - $run ${rm}r "$gentop" - fi - fi - - exit $EXIT_SUCCESS - fi - - # Create links to the real library. - for linkname in $linknames; do - if test "$realname" != "$linkname"; then - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? - fi - done - - # If -module or -export-dynamic was specified, set the dlname. - if test "$module" = yes || test "$export_dynamic" = yes; then - # On all known operating systems, these are identical. - dlname="$soname" - fi - fi - ;; - - obj) - if test -n "$deplibs"; then - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 - fi - - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 - fi - - if test -n "$rpath"; then - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 - fi - - if test -n "$xrpath"; then - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 - fi - - if test -n "$vinfo"; then - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 - fi - - if test -n "$release"; then - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 - fi - - case $output in - *.lo) - if test -n "$objs$old_deplibs"; then - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 - exit $EXIT_FAILURE - fi - libobj="$output" - obj=`$echo "X$output" | $Xsed -e "$lo2o"` - ;; - *) - libobj= - obj="$output" - ;; - esac - - # Delete the old objects. - $run $rm $obj $libobj - - # Objects from convenience libraries. This assumes - # single-version convenience libraries. Whenever we create - # different ones for PIC/non-PIC, this we'll have to duplicate - # the extraction. - reload_conv_objs= - gentop= - # reload_cmds runs $LD directly, so let us get rid of - # -Wl from whole_archive_flag_spec - wl= - - if test -n "$convenience"; then - if test -n "$whole_archive_flag_spec"; then - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" - else - gentop="$output_objdir/${obj}x" - generated="$generated $gentop" - - func_extract_archives $gentop $convenience - reload_conv_objs="$reload_objs $func_extract_archives_result" - fi - fi - - # Create the old-style object. - reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test - - output="$obj" - cmds=$reload_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - - # Exit if we aren't doing a library object file. - if test -z "$libobj"; then - if test -n "$gentop"; then - $show "${rm}r $gentop" - $run ${rm}r $gentop - fi - - exit $EXIT_SUCCESS - fi - - if test "$build_libtool_libs" != yes; then - if test -n "$gentop"; then - $show "${rm}r $gentop" - $run ${rm}r $gentop - fi - - # Create an invalid libtool object if no PIC, so that we don't - # accidentally link it into a program. - # $show "echo timestamp > $libobj" - # $run eval "echo timestamp > $libobj" || exit $? - exit $EXIT_SUCCESS - fi - - if test -n "$pic_flag" || test "$pic_mode" != default; then - # Only do commands if we really have different PIC objects. - reload_objs="$libobjs $reload_conv_objs" - output="$libobj" - cmds=$reload_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - fi - - if test -n "$gentop"; then - $show "${rm}r $gentop" - $run ${rm}r $gentop - fi - - exit $EXIT_SUCCESS - ;; - - prog) - case $host in - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; - esac - if test -n "$vinfo"; then - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 - fi - - if test -n "$release"; then - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 - fi - - if test "$preload" = yes; then - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && - test "$dlopen_self_static" = unknown; then - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." - fi - fi - - case $host in - *-*-rhapsody* | *-*-darwin1.[012]) - # On Rhapsody replace the C library is the System framework - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` - ;; - esac - - case $host in - *darwin*) - # Don't allow lazy linking, it breaks C++ global constructors - if test "$tagname" = CXX ; then - compile_command="$compile_command ${wl}-bind_at_load" - finalize_command="$finalize_command ${wl}-bind_at_load" - fi - ;; - esac - - - # move library search paths that coincide with paths to not yet - # installed libraries to the beginning of the library search list - new_libs= - for path in $notinst_path; do - case " $new_libs " in - *" -L$path/$objdir "*) ;; - *) - case " $compile_deplibs " in - *" -L$path/$objdir "*) - new_libs="$new_libs -L$path/$objdir" ;; - esac - ;; - esac - done - for deplib in $compile_deplibs; do - case $deplib in - -L*) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$new_libs $deplib" ;; - esac - ;; - *) new_libs="$new_libs $deplib" ;; - esac - done - compile_deplibs="$new_libs" - - - compile_command="$compile_command $compile_deplibs" - finalize_command="$finalize_command $finalize_deplibs" - - if test -n "$rpath$xrpath"; then - # If the user specified any rpath flags, then add them. - for libdir in $rpath $xrpath; do - # This is the magic to use -rpath. - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" ;; - esac - done - fi - - # Now hardcode the library paths - rpath= - hardcode_libdirs= - for libdir in $compile_rpath $finalize_rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - rpath="$rpath $flag" - fi - elif test -n "$runpath_var"; then - case "$perm_rpath " in - *" $libdir "*) ;; - *) perm_rpath="$perm_rpath $libdir" ;; - esac - fi - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$libdir:"*) ;; - *) dllsearchpath="$dllsearchpath:$libdir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - *) dllsearchpath="$dllsearchpath:$testbindir";; - esac - ;; - esac - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - eval rpath=\" $hardcode_libdir_flag_spec\" - fi - compile_rpath="$rpath" - - rpath= - hardcode_libdirs= - for libdir in $finalize_rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - rpath="$rpath $flag" - fi - elif test -n "$runpath_var"; then - case "$finalize_perm_rpath " in - *" $libdir "*) ;; - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; - esac - fi - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - eval rpath=\" $hardcode_libdir_flag_spec\" - fi - finalize_rpath="$rpath" - - if test -n "$libobjs" && test "$build_old_libs" = yes; then - # Transform all the library objects into standard objects. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - fi - - dlsyms= - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - if test -n "$NM" && test -n "$global_symbol_pipe"; then - dlsyms="${outputname}S.c" - else - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 - fi - fi - - if test -n "$dlsyms"; then - case $dlsyms in - "") ;; - *.c) - # Discover the nlist of each of the dlfiles. - nlist="$output_objdir/${outputname}.nm" - - $show "$rm $nlist ${nlist}S ${nlist}T" - $run $rm "$nlist" "${nlist}S" "${nlist}T" - - # Parse the name list into a source file. - $show "creating $output_objdir/$dlsyms" - - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ - -#ifdef __cplusplus -extern \"C\" { -#endif - -/* Prevent the only kind of declaration conflicts we can make. */ -#define lt_preloaded_symbols some_other_symbol - -/* External symbol declarations for the compiler. */\ -" - - if test "$dlself" = yes; then - $show "generating symbol list for \`$output'" - - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" - - # Add our own program objects to the symbol list. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - for arg in $progfiles; do - $show "extracting global C symbols from \`$arg'" - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" - done - - if test -n "$exclude_expsyms"; then - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' - $run eval '$mv "$nlist"T "$nlist"' - fi - - if test -n "$export_symbols_regex"; then - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' - $run eval '$mv "$nlist"T "$nlist"' - fi - - # Prepare the list of exported symbols - if test -z "$export_symbols"; then - export_symbols="$output_objdir/$outputname.exp" - $run $rm $export_symbols - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' - case $host in - *cygwin* | *mingw* ) - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' - ;; - esac - else - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' - $run eval 'mv "$nlist"T "$nlist"' - case $host in - *cygwin* | *mingw* ) - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' - ;; - esac - fi - fi - - for arg in $dlprefiles; do - $show "extracting global C symbols from \`$arg'" - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` - $run eval '$echo ": $name " >> "$nlist"' - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" - done - - if test -z "$run"; then - # Make sure we have at least an empty file. - test -f "$nlist" || : > "$nlist" - - if test -n "$exclude_expsyms"; then - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T - $mv "$nlist"T "$nlist" - fi - - # Try sorting and uniquifying the output. - if grep -v "^: " < "$nlist" | - if sort -k 3 /dev/null 2>&1; then - sort -k 3 - else - sort +2 - fi | - uniq > "$nlist"S; then - : - else - grep -v "^: " < "$nlist" > "$nlist"S - fi - - if test -f "$nlist"S; then - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' - else - $echo '/* NONE */' >> "$output_objdir/$dlsyms" - fi - - $echo >> "$output_objdir/$dlsyms" "\ - -#undef lt_preloaded_symbols - -#if defined (__STDC__) && __STDC__ -# define lt_ptr void * -#else -# define lt_ptr char * -# define const -#endif - -/* The mapping between symbol names and symbols. */ -" - - case $host in - *cygwin* | *mingw* ) - $echo >> "$output_objdir/$dlsyms" "\ -/* DATA imports from DLLs on WIN32 can't be const, because - runtime relocations are performed -- see ld's documentation - on pseudo-relocs */ -struct { -" - ;; - * ) - $echo >> "$output_objdir/$dlsyms" "\ -const struct { -" - ;; - esac - - - $echo >> "$output_objdir/$dlsyms" "\ - const char *name; - lt_ptr address; -} -lt_preloaded_symbols[] = -{\ -" - - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" - - $echo >> "$output_objdir/$dlsyms" "\ - {0, (lt_ptr) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif\ -" - fi - - pic_flag_for_symtable= - case $host in - # compiling the symbol table file with pic_flag works around - # a FreeBSD bug that causes programs to crash when -lm is - # linked before any other PIC object. But we must not use - # pic_flag when linking with -static. The problem exists in - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) - case "$compile_command " in - *" -static "*) ;; - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; - esac;; - *-*-hpux*) - case "$compile_command " in - *" -static "*) ;; - *) pic_flag_for_symtable=" $pic_flag";; - esac - esac - - # Now compile the dynamic symbol file. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? - - # Clean up the generated files. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" - - # Transform the symbol file into the correct name. - case $host in - *cygwin* | *mingw* ) - if test -f "$output_objdir/${outputname}.def" ; then - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` - else - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` - fi - ;; - * ) - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` - ;; - esac - ;; - *) - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 - exit $EXIT_FAILURE - ;; - esac - else - # We keep going just in case the user didn't refer to - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe - # really was required. - - # Nullify the symbol file. - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` - fi - - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then - # Replace the output file specification. - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` - link_command="$compile_command$compile_rpath" - - # We have no uninstalled library dependencies, so finalize right now. - $show "$link_command" - $run eval "$link_command" - exit_status=$? - - # Delete the generated files. - if test -n "$dlsyms"; then - $show "$rm $output_objdir/${outputname}S.${objext}" - $run $rm "$output_objdir/${outputname}S.${objext}" - fi - - exit $exit_status - fi - - if test -n "$shlibpath_var"; then - # We should set the shlibpath_var - rpath= - for dir in $temp_rpath; do - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) - # Absolute path. - rpath="$rpath$dir:" - ;; - *) - # Relative path: add a thisdir entry. - rpath="$rpath\$thisdir/$dir:" - ;; - esac - done - temp_rpath="$rpath" - fi - - if test -n "$compile_shlibpath$finalize_shlibpath"; then - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" - fi - if test -n "$finalize_shlibpath"; then - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" - fi - - compile_var= - finalize_var= - if test -n "$runpath_var"; then - if test -n "$perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $perm_rpath; do - rpath="$rpath$dir:" - done - compile_var="$runpath_var=\"$rpath\$$runpath_var\" " - fi - if test -n "$finalize_perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $finalize_perm_rpath; do - rpath="$rpath$dir:" - done - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " - fi - fi - - if test "$no_install" = yes; then - # We don't need to create a wrapper script. - link_command="$compile_var$compile_command$compile_rpath" - # Replace the output file specification. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` - # Delete the old output file. - $run $rm $output - # Link the executable and exit - $show "$link_command" - $run eval "$link_command" || exit $? - exit $EXIT_SUCCESS - fi - - if test "$hardcode_action" = relink; then - # Fast installation is not supported - link_command="$compile_var$compile_command$compile_rpath" - relink_command="$finalize_var$finalize_command$finalize_rpath" - - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 - $echo "$modename: \`$output' will be relinked during installation" 1>&2 - else - if test "$fast_install" != no; then - link_command="$finalize_var$compile_command$finalize_rpath" - if test "$fast_install" = yes; then - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` - else - # fast_install is set to needless - relink_command= - fi - else - link_command="$compile_var$compile_command$compile_rpath" - relink_command="$finalize_var$finalize_command$finalize_rpath" - fi - fi - - # Replace the output file specification. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` - - # Delete the old output files. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname - - $show "$link_command" - $run eval "$link_command" || exit $? - - # Now create the wrapper script. - $show "creating $output" - - # Quote the relink command for shipping. - if test -n "$relink_command"; then - # Preserve any variables that may affect compiler behavior - for var in $variables_saved_for_relink; do - if eval test -z \"\${$var+set}\"; then - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" - elif eval var_value=\$$var; test -z "$var_value"; then - relink_command="$var=; export $var; $relink_command" - else - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` - relink_command="$var=\"$var_value\"; export $var; $relink_command" - fi - done - relink_command="(cd `pwd`; $relink_command)" - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` - fi - - # Quote $echo for shipping. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then - case $progpath in - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; - esac - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` - else - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` - fi - - # Only actually do things if our run command is non-null. - if test -z "$run"; then - # win32 will think the script is a binary if it has - # a .exe suffix, so we strip it off here. - case $output in - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; - esac - # test for cygwin because mv fails w/o .exe extensions - case $host in - *cygwin*) - exeext=.exe - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; - *) exeext= ;; - esac - case $host in - *cygwin* | *mingw* ) - output_name=`basename $output` - output_path=`dirname $output` - cwrappersource="$output_path/$objdir/lt-$output_name.c" - cwrapper="$output_path/$output_name.exe" - $rm $cwrappersource $cwrapper - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 - - cat > $cwrappersource <> $cwrappersource<<"EOF" -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#if defined(PATH_MAX) -# define LT_PATHMAX PATH_MAX -#elif defined(MAXPATHLEN) -# define LT_PATHMAX MAXPATHLEN -#else -# define LT_PATHMAX 1024 -#endif - -#ifndef DIR_SEPARATOR -# define DIR_SEPARATOR '/' -# define PATH_SEPARATOR ':' -#endif - -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ - defined (__OS2__) -# define HAVE_DOS_BASED_FILE_SYSTEM -# ifndef DIR_SEPARATOR_2 -# define DIR_SEPARATOR_2 '\\' -# endif -# ifndef PATH_SEPARATOR_2 -# define PATH_SEPARATOR_2 ';' -# endif -#endif - -#ifndef DIR_SEPARATOR_2 -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) -#else /* DIR_SEPARATOR_2 */ -# define IS_DIR_SEPARATOR(ch) \ - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) -#endif /* DIR_SEPARATOR_2 */ - -#ifndef PATH_SEPARATOR_2 -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) -#else /* PATH_SEPARATOR_2 */ -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) -#endif /* PATH_SEPARATOR_2 */ - -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) -#define XFREE(stale) do { \ - if (stale) { free ((void *) stale); stale = 0; } \ -} while (0) - -/* -DDEBUG is fairly common in CFLAGS. */ -#undef DEBUG -#if defined DEBUGWRAPPER -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) -#else -# define DEBUG(format, ...) -#endif - -const char *program_name = NULL; - -void * xmalloc (size_t num); -char * xstrdup (const char *string); -const char * base_name (const char *name); -char * find_executable(const char *wrapper); -int check_executable(const char *path); -char * strendzap(char *str, const char *pat); -void lt_fatal (const char *message, ...); - -int -main (int argc, char *argv[]) -{ - char **newargz; - int i; - - program_name = (char *) xstrdup (base_name (argv[0])); - DEBUG("(main) argv[0] : %s\n",argv[0]); - DEBUG("(main) program_name : %s\n",program_name); - newargz = XMALLOC(char *, argc+2); -EOF - - cat >> $cwrappersource <> $cwrappersource <<"EOF" - newargz[1] = find_executable(argv[0]); - if (newargz[1] == NULL) - lt_fatal("Couldn't find %s", argv[0]); - DEBUG("(main) found exe at : %s\n",newargz[1]); - /* we know the script has the same name, without the .exe */ - /* so make sure newargz[1] doesn't end in .exe */ - strendzap(newargz[1],".exe"); - for (i = 1; i < argc; i++) - newargz[i+1] = xstrdup(argv[i]); - newargz[argc+1] = NULL; - - for (i=0; i> $cwrappersource <> $cwrappersource <> $cwrappersource <<"EOF" - return 127; -} - -void * -xmalloc (size_t num) -{ - void * p = (void *) malloc (num); - if (!p) - lt_fatal ("Memory exhausted"); - - return p; -} - -char * -xstrdup (const char *string) -{ - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL -; -} - -const char * -base_name (const char *name) -{ - const char *base; - -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - /* Skip over the disk name in MSDOS pathnames. */ - if (isalpha ((unsigned char)name[0]) && name[1] == ':') - name += 2; -#endif - - for (base = name; *name; name++) - if (IS_DIR_SEPARATOR (*name)) - base = name + 1; - return base; -} - -int -check_executable(const char * path) -{ - struct stat st; - - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!"); - if ((!path) || (!*path)) - return 0; - - if ((stat (path, &st) >= 0) && - ( - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ -#if defined (S_IXOTH) - ((st.st_mode & S_IXOTH) == S_IXOTH) || -#endif -#if defined (S_IXGRP) - ((st.st_mode & S_IXGRP) == S_IXGRP) || -#endif - ((st.st_mode & S_IXUSR) == S_IXUSR)) - ) - return 1; - else - return 0; -} - -/* Searches for the full path of the wrapper. Returns - newly allocated full path name if found, NULL otherwise */ -char * -find_executable (const char* wrapper) -{ - int has_slash = 0; - const char* p; - const char* p_next; - /* static buffer for getcwd */ - char tmp[LT_PATHMAX + 1]; - int tmp_len; - char* concat_name; - - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"); - - if ((wrapper == NULL) || (*wrapper == '\0')) - return NULL; - - /* Absolute path? */ -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':') - { - concat_name = xstrdup (wrapper); - if (check_executable(concat_name)) - return concat_name; - XFREE(concat_name); - } - else - { -#endif - if (IS_DIR_SEPARATOR (wrapper[0])) - { - concat_name = xstrdup (wrapper); - if (check_executable(concat_name)) - return concat_name; - XFREE(concat_name); - } -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - } -#endif - - for (p = wrapper; *p; p++) - if (*p == '/') - { - has_slash = 1; - break; - } - if (!has_slash) - { - /* no slashes; search PATH */ - const char* path = getenv ("PATH"); - if (path != NULL) - { - for (p = path; *p; p = p_next) - { - const char* q; - size_t p_len; - for (q = p; *q; q++) - if (IS_PATH_SEPARATOR(*q)) - break; - p_len = q - p; - p_next = (*q == '\0' ? q : q + 1); - if (p_len == 0) - { - /* empty path: current directory */ - if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal ("getcwd failed"); - tmp_len = strlen(tmp); - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); - memcpy (concat_name, tmp, tmp_len); - concat_name[tmp_len] = '/'; - strcpy (concat_name + tmp_len + 1, wrapper); - } - else - { - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1); - memcpy (concat_name, p, p_len); - concat_name[p_len] = '/'; - strcpy (concat_name + p_len + 1, wrapper); - } - if (check_executable(concat_name)) - return concat_name; - XFREE(concat_name); - } - } - /* not found in PATH; assume curdir */ - } - /* Relative path | not found in path: prepend cwd */ - if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal ("getcwd failed"); - tmp_len = strlen(tmp); - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); - memcpy (concat_name, tmp, tmp_len); - concat_name[tmp_len] = '/'; - strcpy (concat_name + tmp_len + 1, wrapper); - - if (check_executable(concat_name)) - return concat_name; - XFREE(concat_name); - return NULL; -} - -char * -strendzap(char *str, const char *pat) -{ - size_t len, patlen; - - assert(str != NULL); - assert(pat != NULL); - - len = strlen(str); - patlen = strlen(pat); - - if (patlen <= len) - { - str += len - patlen; - if (strcmp(str, pat) == 0) - *str = '\0'; - } - return str; -} - -static void -lt_error_core (int exit_status, const char * mode, - const char * message, va_list ap) -{ - fprintf (stderr, "%s: %s: ", program_name, mode); - vfprintf (stderr, message, ap); - fprintf (stderr, ".\n"); - - if (exit_status >= 0) - exit (exit_status); -} - -void -lt_fatal (const char *message, ...) -{ - va_list ap; - va_start (ap, message); - lt_error_core (EXIT_FAILURE, "FATAL", message, ap); - va_end (ap); -} -EOF - # we should really use a build-platform specific compiler - # here, but OTOH, the wrappers (shell script and this C one) - # are only useful if you want to execute the "real" binary. - # Since the "real" binary is built for $host, then this - # wrapper might as well be built for $host, too. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource - ;; - esac - $rm $output - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 - - $echo > $output "\ -#! $SHELL - -# $output - temporary wrapper script for $objdir/$outputname -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP -# -# The $output program cannot be directly executed until all the libtool -# libraries that it depends on are installed. -# -# This wrapper script should never be moved out of the build directory. -# If it is, it will not operate correctly. - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='${SED} -e 1s/^X//' -sed_quote_subst='$sed_quote_subst' - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -relink_command=\"$relink_command\" - -# This environment variable determines our operation mode. -if test \"\$libtool_install_magic\" = \"$magic\"; then - # install mode needs the following variable: - notinst_deplibs='$notinst_deplibs' -else - # When we are sourced in execute mode, \$file and \$echo are already set. - if test \"\$libtool_execute_magic\" != \"$magic\"; then - echo=\"$qecho\" - file=\"\$0\" - # Make sure echo works. - if test \"X\$1\" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then - # Yippee, \$echo works! - : - else - # Restart under the correct shell, and then maybe \$echo will work. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} - fi - fi\ -" - $echo >> $output "\ - - # Find the directory that this script lives in. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` - test \"x\$thisdir\" = \"x\$file\" && thisdir=. - - # Follow symbolic links until we get to the real thisdir. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` - while test -n \"\$file\"; do - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` - - # If there was a directory component, then change thisdir. - if test \"x\$destdir\" != \"x\$file\"; then - case \"\$destdir\" in - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; - *) thisdir=\"\$thisdir/\$destdir\" ;; - esac - fi - - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` - done - - # Try to get the absolute directory name. - absdir=\`cd \"\$thisdir\" && pwd\` - test -n \"\$absdir\" && thisdir=\"\$absdir\" -" - - if test "$fast_install" = yes; then - $echo >> $output "\ - program=lt-'$outputname'$exeext - progdir=\"\$thisdir/$objdir\" - - if test ! -f \"\$progdir/\$program\" || \\ - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ - test \"X\$file\" != \"X\$progdir/\$program\"; }; then - - file=\"\$\$-\$program\" - - if test ! -d \"\$progdir\"; then - $mkdir \"\$progdir\" - else - $rm \"\$progdir/\$file\" - fi" - - $echo >> $output "\ - - # relink executable if necessary - if test -n \"\$relink_command\"; then - if relink_command_output=\`eval \$relink_command 2>&1\`; then : - else - $echo \"\$relink_command_output\" >&2 - $rm \"\$progdir/\$file\" - exit $EXIT_FAILURE - fi - fi - - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || - { $rm \"\$progdir/\$program\"; - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } - $rm \"\$progdir/\$file\" - fi" - else - $echo >> $output "\ - program='$outputname' - progdir=\"\$thisdir/$objdir\" -" - fi - - $echo >> $output "\ - - if test -f \"\$progdir/\$program\"; then" - - # Export our shlibpath_var if we have one. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then - $echo >> $output "\ - # Add our own library path to $shlibpath_var - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" - - # Some systems cannot cope with colon-terminated $shlibpath_var - # The second colon is a workaround for a bug in BeOS R4 sed - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` - - export $shlibpath_var -" - fi - - # fixup the dll searchpath if we need to. - if test -n "$dllsearchpath"; then - $echo >> $output "\ - # Add the dll search path components to the executable PATH - PATH=$dllsearchpath:\$PATH -" - fi - - $echo >> $output "\ - if test \"\$libtool_execute_magic\" != \"$magic\"; then - # Run the actual program with our arguments. -" - case $host in - # Backslashes separate directories on plain windows - *-*-mingw | *-*-os2*) - $echo >> $output "\ - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} -" - ;; - - *) - $echo >> $output "\ - exec \"\$progdir/\$program\" \${1+\"\$@\"} -" - ;; - esac - $echo >> $output "\ - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" - exit $EXIT_FAILURE - fi - else - # The program doesn't exist. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 - \$echo \"This script is just a wrapper for \$program.\" 1>&2 - $echo \"See the $PACKAGE documentation for more information.\" 1>&2 - exit $EXIT_FAILURE - fi -fi\ -" - chmod +x $output - fi - exit $EXIT_SUCCESS - ;; - esac - - # See if we need to build an old-fashioned archive. - for oldlib in $oldlibs; do - - if test "$build_libtool_libs" = convenience; then - oldobjs="$libobjs_save" - addlibs="$convenience" - build_libtool_libs=no - else - if test "$build_libtool_libs" = module; then - oldobjs="$libobjs_save" - build_libtool_libs=no - else - oldobjs="$old_deplibs $non_pic_objects" - fi - addlibs="$old_convenience" - fi - - if test -n "$addlibs"; then - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" - - func_extract_archives $gentop $addlibs - oldobjs="$oldobjs $func_extract_archives_result" - fi - - # Do each command in the archive commands. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then - cmds=$old_archive_from_new_cmds - else - # POSIX demands no paths to be encoded in archives. We have - # to avoid creating archives with duplicate basenames if we - # might have to extract them afterwards, e.g., when creating a - # static archive out of a convenience library, or when linking - # the entirety of a libtool archive into another (currently - # not supported by libtool). - if (for obj in $oldobjs - do - $echo "X$obj" | $Xsed -e 's%^.*/%%' - done | sort | sort -uc >/dev/null 2>&1); then - : - else - $echo "copying selected object files to avoid basename conflicts..." - - if test -z "$gentop"; then - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" - - $show "${rm}r $gentop" - $run ${rm}r "$gentop" - $show "$mkdir $gentop" - $run $mkdir "$gentop" - exit_status=$? - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then - exit $exit_status - fi - fi - - save_oldobjs=$oldobjs - oldobjs= - counter=1 - for obj in $save_oldobjs - do - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` - case " $oldobjs " in - " ") oldobjs=$obj ;; - *[\ /]"$objbase "*) - while :; do - # Make sure we don't pick an alternate name that also - # overlaps. - newobj=lt$counter-$objbase - counter=`expr $counter + 1` - case " $oldobjs " in - *[\ /]"$newobj "*) ;; - *) if test ! -f "$gentop/$newobj"; then break; fi ;; - esac - done - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" - $run ln "$obj" "$gentop/$newobj" || - $run cp "$obj" "$gentop/$newobj" - oldobjs="$oldobjs $gentop/$newobj" - ;; - *) oldobjs="$oldobjs $obj" ;; - esac - done - fi - - eval cmds=\"$old_archive_cmds\" - - if len=`expr "X$cmds" : ".*"` && - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then - cmds=$old_archive_cmds - else - # the command line is too long to link in one step, link in parts - $echo "using piecewise archive linking..." - save_RANLIB=$RANLIB - RANLIB=: - objlist= - concat_cmds= - save_oldobjs=$oldobjs - - # Is there a better way of finding the last object in the list? - for obj in $save_oldobjs - do - last_oldobj=$obj - done - for obj in $save_oldobjs - do - oldobjs="$objlist $obj" - objlist="$objlist $obj" - eval test_cmds=\"$old_archive_cmds\" - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` && - test "$len" -le "$max_cmd_len"; then - : - else - # the above command should be used before it gets too long - oldobjs=$objlist - if test "$obj" = "$last_oldobj" ; then - RANLIB=$save_RANLIB - fi - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" - objlist= - fi - done - RANLIB=$save_RANLIB - oldobjs=$objlist - if test "X$oldobjs" = "X" ; then - eval cmds=\"\$concat_cmds\" - else - eval cmds=\"\$concat_cmds~\$old_archive_cmds\" - fi - fi - fi - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - eval cmd=\"$cmd\" - IFS="$save_ifs" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - done - - if test -n "$generated"; then - $show "${rm}r$generated" - $run ${rm}r$generated - fi - - # Now create the libtool archive. - case $output in - *.la) - old_library= - test "$build_old_libs" = yes && old_library="$libname.$libext" - $show "creating $output" - - # Preserve any variables that may affect compiler behavior - for var in $variables_saved_for_relink; do - if eval test -z \"\${$var+set}\"; then - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" - elif eval var_value=\$$var; test -z "$var_value"; then - relink_command="$var=; export $var; $relink_command" - else - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` - relink_command="$var=\"$var_value\"; export $var; $relink_command" - fi - done - # Quote the link command for shipping. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` - if test "$hardcode_automatic" = yes ; then - relink_command= - fi - - - # Only create the output if not a dry run. - if test -z "$run"; then - for installed in no yes; do - if test "$installed" = yes; then - if test -z "$install_libdir"; then - break - fi - output="$output_objdir/$outputname"i - # Replace all uninstalled libtool libraries with the installed ones - newdependency_libs= - for deplib in $dependency_libs; do - case $deplib in - *.la) - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` - if test -z "$libdir"; then - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 - exit $EXIT_FAILURE - fi - newdependency_libs="$newdependency_libs $libdir/$name" - ;; - *) newdependency_libs="$newdependency_libs $deplib" ;; - esac - done - dependency_libs="$newdependency_libs" - newdlfiles= - for lib in $dlfiles; do - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` - if test -z "$libdir"; then - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 - exit $EXIT_FAILURE - fi - newdlfiles="$newdlfiles $libdir/$name" - done - dlfiles="$newdlfiles" - newdlprefiles= - for lib in $dlprefiles; do - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` - if test -z "$libdir"; then - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 - exit $EXIT_FAILURE - fi - newdlprefiles="$newdlprefiles $libdir/$name" - done - dlprefiles="$newdlprefiles" - else - newdlfiles= - for lib in $dlfiles; do - case $lib in - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; - *) abs=`pwd`"/$lib" ;; - esac - newdlfiles="$newdlfiles $abs" - done - dlfiles="$newdlfiles" - newdlprefiles= - for lib in $dlprefiles; do - case $lib in - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; - *) abs=`pwd`"/$lib" ;; - esac - newdlprefiles="$newdlprefiles $abs" - done - dlprefiles="$newdlprefiles" - fi - $rm $output - # place dlname in correct position for cygwin - tdlname=$dlname - case $host,$output,$installed,$module,$dlname in - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; - esac - $echo > $output "\ -# $outputname - a libtool library file -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='$tdlname' - -# Names of this library. -library_names='$library_names' - -# The name of the static archive. -old_library='$old_library' - -# Libraries that this one depends upon. -dependency_libs='$dependency_libs' - -# Version information for $libname. -current=$current -age=$age -revision=$revision - -# Is this an already installed library? -installed=$installed - -# Should we warn about portability when linking against -modules? -shouldnotlink=$module - -# Files to dlopen/dlpreopen -dlopen='$dlfiles' -dlpreopen='$dlprefiles' - -# Directory that this library needs to be installed in: -libdir='$install_libdir'" - if test "$installed" = no && test "$need_relink" = yes; then - $echo >> $output "\ -relink_command=\"$relink_command\"" - fi - done - fi - - # Do a symbolic link so that the libtool archive can be found in - # LD_LIBRARY_PATH before the program is installed. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? - ;; - esac - exit $EXIT_SUCCESS - ;; - - # libtool install mode - install) - modename="$modename: install" - - # There may be an optional sh(1) argument at the beginning of - # install_prog (especially on Windows NT). - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || - # Allow the use of GNU shtool's install command. - $echo "X$nonopt" | grep shtool > /dev/null; then - # Aesthetically quote it. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - install_prog="$arg " - arg="$1" - shift - else - install_prog= - arg=$nonopt - fi - - # The real first argument should be the name of the installation program. - # Aesthetically quote it. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - install_prog="$install_prog$arg" - - # We need to accept at least all the BSD install flags. - dest= - files= - opts= - prev= - install_type= - isdir=no - stripme= - for arg - do - if test -n "$dest"; then - files="$files $dest" - dest=$arg - continue - fi - - case $arg in - -d) isdir=yes ;; - -f) - case " $install_prog " in - *[\\\ /]cp\ *) ;; - *) prev=$arg ;; - esac - ;; - -g | -m | -o) prev=$arg ;; - -s) - stripme=" -s" - continue - ;; - -*) - ;; - *) - # If the previous option needed an argument, then skip it. - if test -n "$prev"; then - prev= - else - dest=$arg - continue - fi - ;; - esac - - # Aesthetically quote the argument. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - install_prog="$install_prog $arg" - done - - if test -z "$install_prog"; then - $echo "$modename: you must specify an install program" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - if test -n "$prev"; then - $echo "$modename: the \`$prev' option requires an argument" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - if test -z "$files"; then - if test -z "$dest"; then - $echo "$modename: no file or destination specified" 1>&2 - else - $echo "$modename: you must specify a destination" 1>&2 - fi - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # Strip any trailing slash from the destination. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` - - # Check to see that the destination is a directory. - test -d "$dest" && isdir=yes - if test "$isdir" = yes; then - destdir="$dest" - destname= - else - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` - test "X$destdir" = "X$dest" && destdir=. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` - - # Not a directory, so check to see that there is only one file specified. - set dummy $files - if test "$#" -gt 2; then - $echo "$modename: \`$dest' is not a directory" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - fi - case $destdir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - for file in $files; do - case $file in - *.lo) ;; - *) - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - ;; - esac - done - ;; - esac - - # This variable tells wrapper scripts just to set variables rather - # than running their programs. - libtool_install_magic="$magic" - - staticlibs= - future_libdirs= - current_libdirs= - for file in $files; do - - # Do each installation. - case $file in - *.$libext) - # Do the static libraries later. - staticlibs="$staticlibs $file" - ;; - - *.la) - # Check to see that this really is a libtool archive. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : - else - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - library_names= - old_library= - relink_command= - # If there is no directory component, then add one. - case $file in - */* | *\\*) . $file ;; - *) . ./$file ;; - esac - - # Add the libdir to current_libdirs if it is the destination. - if test "X$destdir" = "X$libdir"; then - case "$current_libdirs " in - *" $libdir "*) ;; - *) current_libdirs="$current_libdirs $libdir" ;; - esac - else - # Note the libdir as a future libdir. - case "$future_libdirs " in - *" $libdir "*) ;; - *) future_libdirs="$future_libdirs $libdir" ;; - esac - fi - - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ - test "X$dir" = "X$file/" && dir= - dir="$dir$objdir" - - if test -n "$relink_command"; then - # Determine the prefix the user has applied to our future dir. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` - - # Don't allow the user to place us outside of our expected - # location b/c this prevents finding dependent libraries that - # are installed to the same prefix. - # At present, this check doesn't affect windows .dll's that - # are installed into $libdir/../bin (currently, that works fine) - # but it's something to keep an eye on. - if test "$inst_prefix_dir" = "$destdir"; then - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 - exit $EXIT_FAILURE - fi - - if test -n "$inst_prefix_dir"; then - # Stick the inst_prefix_dir data into the link command. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` - else - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"` - fi - - $echo "$modename: warning: relinking \`$file'" 1>&2 - $show "$relink_command" - if $run eval "$relink_command"; then : - else - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 - exit $EXIT_FAILURE - fi - fi - - # See the names of the shared library. - set dummy $library_names - if test -n "$2"; then - realname="$2" - shift - shift - - srcname="$realname" - test -n "$relink_command" && srcname="$realname"T - - # Install the shared library and build the symlinks. - $show "$install_prog $dir/$srcname $destdir/$realname" - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? - if test -n "$stripme" && test -n "$striplib"; then - $show "$striplib $destdir/$realname" - $run eval "$striplib $destdir/$realname" || exit $? - fi - - if test "$#" -gt 0; then - # Delete the old symlinks, and create new ones. - # Try `ln -sf' first, because the `ln' binary might depend on - # the symlink we replace! Solaris /bin/ln does not understand -f, - # so we also need to try rm && ln -s. - for linkname - do - if test "$linkname" != "$realname"; then - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" - fi - done - fi - - # Do each command in the postinstall commands. - lib="$destdir/$realname" - cmds=$postinstall_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || { - lt_exit=$? - - # Restore the uninstalled library and exit - if test "$mode" = relink; then - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' - fi - - exit $lt_exit - } - done - IFS="$save_ifs" - fi - - # Install the pseudo-library for information purposes. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` - instname="$dir/$name"i - $show "$install_prog $instname $destdir/$name" - $run eval "$install_prog $instname $destdir/$name" || exit $? - - # Maybe install the static library, too. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" - ;; - - *.lo) - # Install (i.e. copy) a libtool object. - - # Figure out destination file name, if it wasn't already specified. - if test -n "$destname"; then - destfile="$destdir/$destname" - else - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` - destfile="$destdir/$destfile" - fi - - # Deduce the name of the destination old-style object file. - case $destfile in - *.lo) - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` - ;; - *.$objext) - staticdest="$destfile" - destfile= - ;; - *) - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - # Install the libtool object if requested. - if test -n "$destfile"; then - $show "$install_prog $file $destfile" - $run eval "$install_prog $file $destfile" || exit $? - fi - - # Install the old object if enabled. - if test "$build_old_libs" = yes; then - # Deduce the name of the old-style object file. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` - - $show "$install_prog $staticobj $staticdest" - $run eval "$install_prog \$staticobj \$staticdest" || exit $? - fi - exit $EXIT_SUCCESS - ;; - - *) - # Figure out destination file name, if it wasn't already specified. - if test -n "$destname"; then - destfile="$destdir/$destname" - else - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` - destfile="$destdir/$destfile" - fi - - # If the file is missing, and there is a .exe on the end, strip it - # because it is most likely a libtool script we actually want to - # install - stripped_ext="" - case $file in - *.exe) - if test ! -f "$file"; then - file=`$echo $file|${SED} 's,.exe$,,'` - stripped_ext=".exe" - fi - ;; - esac - - # Do a test to see if this is really a libtool program. - case $host in - *cygwin*|*mingw*) - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` - ;; - *) - wrapper=$file - ;; - esac - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then - notinst_deplibs= - relink_command= - - # Note that it is not necessary on cygwin/mingw to append a dot to - # foo even if both foo and FILE.exe exist: automatic-append-.exe - # behavior happens only for exec(3), not for open(2)! Also, sourcing - # `FILE.' does not work on cygwin managed mounts. - # - # If there is no directory component, then add one. - case $wrapper in - */* | *\\*) . ${wrapper} ;; - *) . ./${wrapper} ;; - esac - - # Check the variables that should have been set. - if test -z "$notinst_deplibs"; then - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 - exit $EXIT_FAILURE - fi - - finalize=yes - for lib in $notinst_deplibs; do - # Check to see that each library is installed. - libdir= - if test -f "$lib"; then - # If there is no directory component, then add one. - case $lib in - */* | *\\*) . $lib ;; - *) . ./$lib ;; - esac - fi - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test - if test -n "$libdir" && test ! -f "$libfile"; then - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 - finalize=no - fi - done - - relink_command= - # Note that it is not necessary on cygwin/mingw to append a dot to - # foo even if both foo and FILE.exe exist: automatic-append-.exe - # behavior happens only for exec(3), not for open(2)! Also, sourcing - # `FILE.' does not work on cygwin managed mounts. - # - # If there is no directory component, then add one. - case $wrapper in - */* | *\\*) . ${wrapper} ;; - *) . ./${wrapper} ;; - esac - - outputname= - if test "$fast_install" = no && test -n "$relink_command"; then - if test "$finalize" = yes && test -z "$run"; then - tmpdir=`func_mktempdir` - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` - outputname="$tmpdir/$file" - # Replace the output file specification. - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` - - $show "$relink_command" - if $run eval "$relink_command"; then : - else - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 - ${rm}r "$tmpdir" - continue - fi - file="$outputname" - else - $echo "$modename: warning: cannot relink \`$file'" 1>&2 - fi - else - # Install the binary that we compiled earlier. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` - fi - fi - - # remove .exe since cygwin /usr/bin/install will append another - # one anyway - case $install_prog,$host in - */usr/bin/install*,*cygwin*) - case $file:$destfile in - *.exe:*.exe) - # this is ok - ;; - *.exe:*) - destfile=$destfile.exe - ;; - *:*.exe) - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` - ;; - esac - ;; - esac - $show "$install_prog$stripme $file $destfile" - $run eval "$install_prog\$stripme \$file \$destfile" || exit $? - test -n "$outputname" && ${rm}r "$tmpdir" - ;; - esac - done - - for file in $staticlibs; do - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` - - # Set up the ranlib parameters. - oldlib="$destdir/$name" - - $show "$install_prog $file $oldlib" - $run eval "$install_prog \$file \$oldlib" || exit $? - - if test -n "$stripme" && test -n "$old_striplib"; then - $show "$old_striplib $oldlib" - $run eval "$old_striplib $oldlib" || exit $? - fi - - # Do each command in the postinstall commands. - cmds=$old_postinstall_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - done - - if test -n "$future_libdirs"; then - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 - fi - - if test -n "$current_libdirs"; then - # Maybe just do a dry run. - test -n "$run" && current_libdirs=" -n$current_libdirs" - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' - else - exit $EXIT_SUCCESS - fi - ;; - - # libtool finish mode - finish) - modename="$modename: finish" - libdirs="$nonopt" - admincmds= - - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then - for dir - do - libdirs="$libdirs $dir" - done - - for libdir in $libdirs; do - if test -n "$finish_cmds"; then - # Do each command in the finish commands. - cmds=$finish_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || admincmds="$admincmds - $cmd" - done - IFS="$save_ifs" - fi - if test -n "$finish_eval"; then - # Do the single finish_eval. - eval cmds=\"$finish_eval\" - $run eval "$cmds" || admincmds="$admincmds - $cmds" - fi - done - fi - - # Exit here if they wanted silent mode. - test "$show" = : && exit $EXIT_SUCCESS - - $echo "X----------------------------------------------------------------------" | $Xsed - $echo "Libraries have been installed in:" - for libdir in $libdirs; do - $echo " $libdir" - done - $echo - $echo "If you ever happen to want to link against installed libraries" - $echo "in a given directory, LIBDIR, you must either use libtool, and" - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" - $echo "flag during linking and do at least one of the following:" - if test -n "$shlibpath_var"; then - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" - $echo " during execution" - fi - if test -n "$runpath_var"; then - $echo " - add LIBDIR to the \`$runpath_var' environment variable" - $echo " during linking" - fi - if test -n "$hardcode_libdir_flag_spec"; then - libdir=LIBDIR - eval flag=\"$hardcode_libdir_flag_spec\" - - $echo " - use the \`$flag' linker flag" - fi - if test -n "$admincmds"; then - $echo " - have your system administrator run these commands:$admincmds" - fi - if test -f /etc/ld.so.conf; then - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" - fi - $echo - $echo "See any operating system documentation about shared libraries for" - $echo "more information, such as the ld(1) and ld.so(8) manual pages." - $echo "X----------------------------------------------------------------------" | $Xsed - exit $EXIT_SUCCESS - ;; - - # libtool execute mode - execute) - modename="$modename: execute" - - # The first argument is the command name. - cmd="$nonopt" - if test -z "$cmd"; then - $echo "$modename: you must specify a COMMAND" 1>&2 - $echo "$help" - exit $EXIT_FAILURE - fi - - # Handle -dlopen flags immediately. - for file in $execute_dlfiles; do - if test ! -f "$file"; then - $echo "$modename: \`$file' is not a file" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - dir= - case $file in - *.la) - # Check to see that this really is a libtool archive. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : - else - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # Read the libtool library. - dlname= - library_names= - - # If there is no directory component, then add one. - case $file in - */* | *\\*) . $file ;; - *) . ./$file ;; - esac - - # Skip this library if it cannot be dlopened. - if test -z "$dlname"; then - # Warn if it was a shared library. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" - continue - fi - - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` - test "X$dir" = "X$file" && dir=. - - if test -f "$dir/$objdir/$dlname"; then - dir="$dir/$objdir" - else - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 - exit $EXIT_FAILURE - fi - ;; - - *.lo) - # Just add the directory containing the .lo file. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` - test "X$dir" = "X$file" && dir=. - ;; - - *) - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 - continue - ;; - esac - - # Get the absolute pathname. - absdir=`cd "$dir" && pwd` - test -n "$absdir" && dir="$absdir" - - # Now add the directory to shlibpath_var. - if eval "test -z \"\$$shlibpath_var\""; then - eval "$shlibpath_var=\"\$dir\"" - else - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" - fi - done - - # This variable tells wrapper scripts just to set shlibpath_var - # rather than running their programs. - libtool_execute_magic="$magic" - - # Check if any of the arguments is a wrapper script. - args= - for file - do - case $file in - -*) ;; - *) - # Do a test to see if this is really a libtool program. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - # If there is no directory component, then add one. - case $file in - */* | *\\*) . $file ;; - *) . ./$file ;; - esac - - # Transform arg to wrapped name. - file="$progdir/$program" - fi - ;; - esac - # Quote arguments (to preserve shell metacharacters). - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` - args="$args \"$file\"" - done - - if test -z "$run"; then - if test -n "$shlibpath_var"; then - # Export the shlibpath_var. - eval "export $shlibpath_var" - fi - - # Restore saved environment variables - if test "${save_LC_ALL+set}" = set; then - LC_ALL="$save_LC_ALL"; export LC_ALL - fi - if test "${save_LANG+set}" = set; then - LANG="$save_LANG"; export LANG - fi - - # Now prepare to actually exec the command. - exec_cmd="\$cmd$args" - else - # Display what would be done. - if test -n "$shlibpath_var"; then - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" - $echo "export $shlibpath_var" - fi - $echo "$cmd$args" - exit $EXIT_SUCCESS - fi - ;; - - # libtool clean and uninstall mode - clean | uninstall) - modename="$modename: $mode" - rm="$nonopt" - files= - rmforce= - exit_status=0 - - # This variable tells wrapper scripts just to set variables rather - # than running their programs. - libtool_install_magic="$magic" - - for arg - do - case $arg in - -f) rm="$rm $arg"; rmforce=yes ;; - -*) rm="$rm $arg" ;; - *) files="$files $arg" ;; - esac - done - - if test -z "$rm"; then - $echo "$modename: you must specify an RM program" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - rmdirs= - - origobjdir="$objdir" - for file in $files; do - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` - if test "X$dir" = "X$file"; then - dir=. - objdir="$origobjdir" - else - objdir="$dir/$origobjdir" - fi - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` - test "$mode" = uninstall && objdir="$dir" - - # Remember objdir for removal later, being careful to avoid duplicates - if test "$mode" = clean; then - case " $rmdirs " in - *" $objdir "*) ;; - *) rmdirs="$rmdirs $objdir" ;; - esac - fi - - # Don't error if the file doesn't exist and rm -f was used. - if (test -L "$file") >/dev/null 2>&1 \ - || (test -h "$file") >/dev/null 2>&1 \ - || test -f "$file"; then - : - elif test -d "$file"; then - exit_status=1 - continue - elif test "$rmforce" = yes; then - continue - fi - - rmfiles="$file" - - case $name in - *.la) - # Possibly a libtool archive, so verify it. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - . $dir/$name - - # Delete the libtool libraries and symlinks. - for n in $library_names; do - rmfiles="$rmfiles $objdir/$n" - done - test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" - - case "$mode" in - clean) - case " $library_names " in - # " " in the beginning catches empty $dlname - *" $dlname "*) ;; - *) rmfiles="$rmfiles $objdir/$dlname" ;; - esac - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" - ;; - uninstall) - if test -n "$library_names"; then - # Do each command in the postuninstall commands. - cmds=$postuninstall_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" - if test "$?" -ne 0 && test "$rmforce" != yes; then - exit_status=1 - fi - done - IFS="$save_ifs" - fi - - if test -n "$old_library"; then - # Do each command in the old_postuninstall commands. - cmds=$old_postuninstall_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" - if test "$?" -ne 0 && test "$rmforce" != yes; then - exit_status=1 - fi - done - IFS="$save_ifs" - fi - # FIXME: should reinstall the best remaining shared library. - ;; - esac - fi - ;; - - *.lo) - # Possibly a libtool object, so verify it. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - - # Read the .lo file - . $dir/$name - - # Add PIC object to the list of files to remove. - if test -n "$pic_object" \ - && test "$pic_object" != none; then - rmfiles="$rmfiles $dir/$pic_object" - fi - - # Add non-PIC object to the list of files to remove. - if test -n "$non_pic_object" \ - && test "$non_pic_object" != none; then - rmfiles="$rmfiles $dir/$non_pic_object" - fi - fi - ;; - - *) - if test "$mode" = clean ; then - noexename=$name - case $file in - *.exe) - file=`$echo $file|${SED} 's,.exe$,,'` - noexename=`$echo $name|${SED} 's,.exe$,,'` - # $file with .exe has already been added to rmfiles, - # add $file without .exe - rmfiles="$rmfiles $file" - ;; - esac - # Do a test to see if this is a libtool program. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - relink_command= - . $dir/$noexename - - # note $name still contains .exe if it was in $file originally - # as does the version of $file that was added into $rmfiles - rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" - if test "$fast_install" = yes && test -n "$relink_command"; then - rmfiles="$rmfiles $objdir/lt-$name" - fi - if test "X$noexename" != "X$name" ; then - rmfiles="$rmfiles $objdir/lt-${noexename}.c" - fi - fi - fi - ;; - esac - $show "$rm $rmfiles" - $run $rm $rmfiles || exit_status=1 - done - objdir="$origobjdir" - - # Try to remove the ${objdir}s in the directories where we deleted files - for dir in $rmdirs; do - if test -d "$dir"; then - $show "rmdir $dir" - $run rmdir $dir >/dev/null 2>&1 - fi - done - - exit $exit_status - ;; - - "") - $echo "$modename: you must specify a MODE" 1>&2 - $echo "$generic_help" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - if test -z "$exec_cmd"; then - $echo "$modename: invalid operation mode \`$mode'" 1>&2 - $echo "$generic_help" 1>&2 - exit $EXIT_FAILURE - fi -fi # test -z "$show_help" - -if test -n "$exec_cmd"; then - eval exec $exec_cmd - exit $EXIT_FAILURE -fi - -# We need to display help for each of the modes. -case $mode in -"") $echo \ -"Usage: $modename [OPTION]... [MODE-ARG]... - -Provide generalized library-building support services. - - --config show all configuration variables - --debug enable verbose shell tracing --n, --dry-run display commands without modifying any files - --features display basic configuration information and exit - --finish same as \`--mode=finish' - --help display this help message and exit - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] - --quiet same as \`--silent' - --silent don't print informational messages - --tag=TAG use configuration variables from tag TAG - --version print version information - -MODE must be one of the following: - - clean remove files from the build directory - compile compile a source file into a libtool object - execute automatically set library path, then run a program - finish complete the installation of libtool libraries - install install libraries or executables - link create a library or an executable - uninstall remove libraries from an installed directory - -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for -a more detailed description of MODE. - -Report bugs to ." - exit $EXIT_SUCCESS - ;; - -clean) - $echo \ -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... - -Remove files from the build directory. - -RM is the name of the program to use to delete files associated with each FILE -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed -to RM. - -If FILE is a libtool library, object or program, all the files associated -with it are deleted. Otherwise, only FILE itself is deleted using RM." - ;; - -compile) - $echo \ -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE - -Compile a source file into a libtool library object. - -This mode accepts the following additional options: - - -o OUTPUT-FILE set the output file name to OUTPUT-FILE - -prefer-pic try to building PIC objects only - -prefer-non-pic try to building non-PIC objects only - -static always build a \`.o' file suitable for static linking - -COMPILE-COMMAND is a command to be used in creating a \`standard' object file -from the given SOURCEFILE. - -The output file name is determined by removing the directory component from -SOURCEFILE, then substituting the C source code suffix \`.c' with the -library object suffix, \`.lo'." - ;; - -execute) - $echo \ -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... - -Automatically set library path, then run a program. - -This mode accepts the following additional options: - - -dlopen FILE add the directory containing FILE to the library path - -This mode sets the library path environment variable according to \`-dlopen' -flags. - -If any of the ARGS are libtool executable wrappers, then they are translated -into their corresponding uninstalled binary, and any of their required library -directories are added to the library path. - -Then, COMMAND is executed, with ARGS as arguments." - ;; - -finish) - $echo \ -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]... - -Complete the installation of libtool libraries. - -Each LIBDIR is a directory that contains libtool libraries. - -The commands that this mode executes may require superuser privileges. Use -the \`--dry-run' option if you just want to see what would be executed." - ;; - -install) - $echo \ -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... - -Install executables or libraries. - -INSTALL-COMMAND is the installation command. The first component should be -either the \`install' or \`cp' program. - -The rest of the components are interpreted as arguments to that command (only -BSD-compatible install options are recognized)." - ;; - -link) - $echo \ -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND... - -Link object files or libraries together to form another library, or to -create an executable program. - -LINK-COMMAND is a command using the C compiler that you would use to create -a program from several object files. - -The following components of LINK-COMMAND are treated specially: - - -all-static do not do any dynamic linking at all - -avoid-version do not add a version suffix if possible - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) - -export-symbols SYMFILE - try to export only the symbols listed in SYMFILE - -export-symbols-regex REGEX - try to export only the symbols matching REGEX - -LLIBDIR search LIBDIR for required installed libraries - -lNAME OUTPUT-FILE requires the installed library libNAME - -module build a library that can dlopened - -no-fast-install disable the fast-install mode - -no-install link a not-installable executable - -no-undefined declare that a library does not refer to external symbols - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects - -objectlist FILE Use a list of object files found in FILE to specify objects - -precious-files-regex REGEX - don't remove output files matching REGEX - -release RELEASE specify package release information - -rpath LIBDIR the created library will eventually be installed in LIBDIR - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries - -static do not do any dynamic linking of libtool libraries - -version-info CURRENT[:REVISION[:AGE]] - specify library version info [each variable defaults to 0] - -All other options (arguments beginning with \`-') are ignored. - -Every other argument is treated as a filename. Files ending in \`.la' are -treated as uninstalled libtool libraries, other files are standard or library -object files. - -If the OUTPUT-FILE ends in \`.la', then a libtool library is created, -only library objects (\`.lo' files) may be specified, and \`-rpath' is -required, except when creating a convenience library. - -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created -using \`ar' and \`ranlib', or on Windows using \`lib'. - -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file -is created, otherwise an executable program is created." - ;; - -uninstall) - $echo \ -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... - -Remove libraries from an installation directory. - -RM is the name of the program to use to delete files associated with each FILE -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed -to RM. - -If FILE is a libtool library, all the files associated with it are deleted. -Otherwise, only FILE itself is deleted using RM." - ;; - -*) - $echo "$modename: invalid operation mode \`$mode'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - ;; -esac - -$echo -$echo "Try \`$modename --help' for more information about other modes." - -exit $? - -# The TAGs below are defined such that we never get into a situation -# in which we disable both kinds of libraries. Given conflicting -# choices, we go for a static library, that is the most portable, -# since we can't tell whether shared libraries were disabled because -# the user asked for that or because the platform doesn't support -# them. This is particularly important on AIX, because we don't -# support having both static and shared libraries enabled at the same -# time on that platform, so we default to a shared-only configuration. -# If a disable-shared tag is given, we'll fallback to a static-only -# configuration. But we'll never go from static-only to shared-only. - -# ### BEGIN LIBTOOL TAG CONFIG: disable-shared -disable_libs=shared -# ### END LIBTOOL TAG CONFIG: disable-shared - -# ### BEGIN LIBTOOL TAG CONFIG: disable-static -disable_libs=static -# ### END LIBTOOL TAG CONFIG: disable-static - -# Local Variables: -# mode:shell-script -# sh-indentation:2 -# End: diff --git a/src/tools/docbook/libxslt/missing b/src/tools/docbook/libxslt/missing deleted file mode 100755 index 6a37006e8f..0000000000 --- a/src/tools/docbook/libxslt/missing +++ /dev/null @@ -1,336 +0,0 @@ -#! /bin/sh -# Common stub for a few missing GNU programs while installing. -# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc. -# Originally by Fran,cois Pinard , 1996. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -if test $# -eq 0; then - echo 1>&2 "Try \`$0 --help' for more information" - exit 1 -fi - -run=: - -# In the cases where this matters, `missing' is being run in the -# srcdir already. -if test -f configure.ac; then - configure_ac=configure.ac -else - configure_ac=configure.in -fi - -case "$1" in ---run) - # Try to run requested program, and just exit if it succeeds. - run= - shift - "$@" && exit 0 - ;; -esac - -# If it does not exist, or fails to run (possibly an outdated version), -# try to emulate it. -case "$1" in - - -h|--h|--he|--hel|--help) - echo "\ -$0 [OPTION]... PROGRAM [ARGUMENT]... - -Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an -error status if there is no known handling for PROGRAM. - -Options: - -h, --help display this help and exit - -v, --version output version information and exit - --run try to run the given command, and emulate it if it fails - -Supported PROGRAM values: - aclocal touch file \`aclocal.m4' - autoconf touch file \`configure' - autoheader touch file \`config.h.in' - automake touch all \`Makefile.in' files - bison create \`y.tab.[ch]', if possible, from existing .[ch] - flex create \`lex.yy.c', if possible, from existing .c - help2man touch the output file - lex create \`lex.yy.c', if possible, from existing .c - makeinfo touch the output file - tar try tar, gnutar, gtar, then tar without non-portable flags - yacc create \`y.tab.[ch]', if possible, from existing .[ch]" - ;; - - -v|--v|--ve|--ver|--vers|--versi|--versio|--version) - echo "missing 0.4 - GNU automake" - ;; - - -*) - echo 1>&2 "$0: Unknown \`$1' option" - echo 1>&2 "Try \`$0 --help' for more information" - exit 1 - ;; - - aclocal*) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is missing on your system. You should only need it if - you modified \`acinclude.m4' or \`${configure_ac}'. You might want - to install the \`Automake' and \`Perl' packages. Grab them from - any GNU archive site." - touch aclocal.m4 - ;; - - autoconf) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is missing on your system. You should only need it if - you modified \`${configure_ac}'. You might want to install the - \`Autoconf' and \`GNU m4' packages. Grab them from any GNU - archive site." - touch configure - ;; - - autoheader) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is missing on your system. You should only need it if - you modified \`acconfig.h' or \`${configure_ac}'. You might want - to install the \`Autoconf' and \`GNU m4' packages. Grab them - from any GNU archive site." - files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` - test -z "$files" && files="config.h" - touch_files= - for f in $files; do - case "$f" in - *:*) touch_files="$touch_files "`echo "$f" | - sed -e 's/^[^:]*://' -e 's/:.*//'`;; - *) touch_files="$touch_files $f.in";; - esac - done - touch $touch_files - ;; - - automake*) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is missing on your system. You should only need it if - you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. - You might want to install the \`Automake' and \`Perl' packages. - Grab them from any GNU archive site." - find . -type f -name Makefile.am -print | - sed 's/\.am$/.in/' | - while read f; do touch "$f"; done - ;; - - autom4te) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is needed, and you do not seem to have it handy on your - system. You might have modified some files without having the - proper tools for further handling them. - You can get \`$1Help2man' as part of \`Autoconf' from any GNU - archive site." - - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` - if test -f "$file"; then - touch $file - else - test -z "$file" || exec >$file - echo "#! /bin/sh" - echo "# Created by GNU Automake missing as a replacement of" - echo "# $ $@" - echo "exit 0" - chmod +x $file - exit 1 - fi - ;; - - bison|yacc) - echo 1>&2 "\ -WARNING: \`$1' is missing on your system. You should only need it if - you modified a \`.y' file. You may need the \`Bison' package - in order for those modifications to take effect. You can get - \`Bison' from any GNU archive site." - rm -f y.tab.c y.tab.h - if [ $# -ne 1 ]; then - eval LASTARG="\${$#}" - case "$LASTARG" in - *.y) - SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" y.tab.c - fi - SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" y.tab.h - fi - ;; - esac - fi - if [ ! -f y.tab.h ]; then - echo >y.tab.h - fi - if [ ! -f y.tab.c ]; then - echo 'main() { return 0; }' >y.tab.c - fi - ;; - - lex|flex) - echo 1>&2 "\ -WARNING: \`$1' is missing on your system. You should only need it if - you modified a \`.l' file. You may need the \`Flex' package - in order for those modifications to take effect. You can get - \`Flex' from any GNU archive site." - rm -f lex.yy.c - if [ $# -ne 1 ]; then - eval LASTARG="\${$#}" - case "$LASTARG" in - *.l) - SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" lex.yy.c - fi - ;; - esac - fi - if [ ! -f lex.yy.c ]; then - echo 'main() { return 0; }' >lex.yy.c - fi - ;; - - help2man) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is missing on your system. You should only need it if - you modified a dependency of a manual page. You may need the - \`Help2man' package in order for those modifications to take - effect. You can get \`Help2man' from any GNU archive site." - - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` - if test -z "$file"; then - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` - fi - if [ -f "$file" ]; then - touch $file - else - test -z "$file" || exec >$file - echo ".ab help2man is required to generate this page" - exit 1 - fi - ;; - - makeinfo) - if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then - # We have makeinfo, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is missing on your system. You should only need it if - you modified a \`.texi' or \`.texinfo' file, or any other file - indirectly affecting the aspect of the manual. The spurious - call might also be the consequence of using a buggy \`make' (AIX, - DU, IRIX). You might want to install the \`Texinfo' package or - the \`GNU make' package. Grab either from any GNU archive site." - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` - if test -z "$file"; then - file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` - fi - touch $file - ;; - - tar) - shift - if test -n "$run"; then - echo 1>&2 "ERROR: \`tar' requires --run" - exit 1 - fi - - # We have already tried tar in the generic part. - # Look for gnutar/gtar before invocation to avoid ugly error - # messages. - if (gnutar --version > /dev/null 2>&1); then - gnutar "$@" && exit 0 - fi - if (gtar --version > /dev/null 2>&1); then - gtar "$@" && exit 0 - fi - firstarg="$1" - if shift; then - case "$firstarg" in - *o*) - firstarg=`echo "$firstarg" | sed s/o//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - case "$firstarg" in - *h*) - firstarg=`echo "$firstarg" | sed s/h//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - fi - - echo 1>&2 "\ -WARNING: I can't seem to be able to run \`tar' with the given arguments. - You may want to install GNU tar or Free paxutils, or check the - command line arguments." - exit 1 - ;; - - *) - echo 1>&2 "\ -WARNING: \`$1' is needed, and you do not seem to have it handy on your - system. You might have modified some files without having the - proper tools for further handling them. Check the \`README' file, - it often tells you about the needed prerequirements for installing - this package. You may also peek at any GNU archive site, in case - some other package would contain this missing \`$1' program." - exit 1 - ;; -esac - -exit 0 diff --git a/src/tools/docbook/libxslt/mkinstalldirs b/src/tools/docbook/libxslt/mkinstalldirs deleted file mode 100755 index 8ab885ec92..0000000000 --- a/src/tools/docbook/libxslt/mkinstalldirs +++ /dev/null @@ -1,99 +0,0 @@ -#! /bin/sh -# mkinstalldirs --- make directory hierarchy -# Author: Noah Friedman -# Created: 1993-05-16 -# Public domain - -errstatus=0 -dirmode="" - -usage="\ -Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." - -# process command line arguments -while test $# -gt 0 ; do - case "${1}" in - -h | --help | --h* ) # -h for help - echo "${usage}" 1>&2; exit 0 ;; - -m ) # -m PERM arg - shift - test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; } - dirmode="${1}" - shift ;; - -- ) shift; break ;; # stop option processing - -* ) echo "${usage}" 1>&2; exit 1 ;; # unknown option - * ) break ;; # first non-opt arg - esac -done - -for file -do - if test -d "$file"; then - shift - else - break - fi -done - -case $# in -0) exit 0 ;; -esac - -case $dirmode in -'') - if mkdir -p -- . 2>/dev/null; then - echo "mkdir -p -- $*" - exec mkdir -p -- "$@" - fi ;; -*) - if mkdir -m "$dirmode" -p -- . 2>/dev/null; then - echo "mkdir -m $dirmode -p -- $*" - exec mkdir -m "$dirmode" -p -- "$@" - fi ;; -esac - -for file -do - set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` - shift - - pathcomp= - for d - do - pathcomp="$pathcomp$d" - case "$pathcomp" in - -* ) pathcomp=./$pathcomp ;; - esac - - if test ! -d "$pathcomp"; then - echo "mkdir $pathcomp" - - mkdir "$pathcomp" || lasterr=$? - - if test ! -d "$pathcomp"; then - errstatus=$lasterr - else - if test ! -z "$dirmode"; then - echo "chmod $dirmode $pathcomp" - - lasterr="" - chmod "$dirmode" "$pathcomp" || lasterr=$? - - if test ! -z "$lasterr"; then - errstatus=$lasterr - fi - fi - fi - fi - - pathcomp="$pathcomp/" - done -done - -exit $errstatus - -# Local Variables: -# mode: shell-script -# sh-indentation: 3 -# End: -# mkinstalldirs ends here diff --git a/src/tools/docbook/libxslt/python/Makefile.am b/src/tools/docbook/libxslt/python/Makefile.am deleted file mode 100644 index b13c430879..0000000000 --- a/src/tools/docbook/libxslt/python/Makefile.am +++ /dev/null @@ -1,74 +0,0 @@ -# Makefile for libxml2 python library -AUTOMAKE_OPTIONS = 1.4 foreign - -SUBDIRS= . tests - -INCLUDES = \ - -I$(PYTHON_INCLUDES) \ - $(LIBXML_CFLAGS) \ - -I$(top_srcdir)/libxslt \ - -I$(top_srcdir) \ - -I../libexslt - -DOCS_DIR = $(datadir)/doc/libxslt-python-$(LIBXSLT_VERSION) -# libxsltclass.txt is generated -DOCS = TODO - -EXTRA_DIST = \ - libxslt.c \ - types.c \ - generator.py \ - libxml_wrap.h \ - libxslt_wrap.h \ - libxsl.py \ - libxslt-python-api.xml \ - $(DOCS) - -libxsltmod_la_LDFLAGS = -module -avoid-version -L$(top_builddir)/libxslt/.libs \ - -L$(top_builddir)/libexslt/.libs - -if WITH_PYTHON -mylibs = \ - $(top_builddir)/libxslt/libxslt.la \ - $(top_builddir)/libexslt/libexslt.la - -all-local: libxslt.py - -python_LTLIBRARIES = libxsltmod.la - -libxsltmod_la_SOURCES = libxslt.c types.c libxslt-py.c -libxsltmod_la_LIBADD = $(mylibs) - -libxslt.py: $(srcdir)/libxsl.py $(srcdir)/libxsltclass.py - cat $(srcdir)/libxsl.py $(srcdir)/libxsltclass.py > libxslt.py - -install-data-local: - $(mkinstalldirs) $(DESTDIR)$(pythondir) - @INSTALL@ -m 0644 libxslt.py $(DESTDIR)$(pythondir) - $(mkinstalldirs) $(DESTDIR)$(DOCS_DIR) - @(for doc in $(DOCS) ; \ - do @INSTALL@ -m 0644 $(srcdir)/$$doc $(DESTDIR)$(DOCS_DIR) ; done) - -GENERATE = generator.py -API_DESC = $(top_srcdir)/doc/libxslt-api.xml $(srcdir)/libxslt-python-api.xml -GENERATED= $(srcdir)/libxsltclass.py \ - $(srcdir)/libxslt-export.c \ - $(srcdir)/libxslt-py.c \ - $(srcdir)/libxslt-py.h \ - $(srcdir)/libxsltclass.txt - -$(GENERATED): gen_prog - -gen_prog: $(srcdir)/$(GENERATE) $(API_DESC) - cd $(srcdir) && $(PYTHON) $(GENERATE) - touch gen_prog - -$(libxsltmod_la_OBJECTS): $(GENERATED) - -else -all: -endif -tests test: all - cd tests && $(MAKE) tests - -CLEANFILES= $(GENERATED) *.o libxslt.so *.pyc libxslt.py gen_prog diff --git a/src/tools/docbook/libxslt/python/Makefile.in b/src/tools/docbook/libxslt/python/Makefile.in deleted file mode 100644 index 874c8258f0..0000000000 --- a/src/tools/docbook/libxslt/python/Makefile.in +++ /dev/null @@ -1,697 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = python -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in TODO -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -am__installdirs = "$(DESTDIR)$(pythondir)" -pythonLTLIBRARIES_INSTALL = $(INSTALL) -LTLIBRARIES = $(python_LTLIBRARIES) -@WITH_PYTHON_TRUE@am__DEPENDENCIES_1 = \ -@WITH_PYTHON_TRUE@ $(top_builddir)/libxslt/libxslt.la \ -@WITH_PYTHON_TRUE@ $(top_builddir)/libexslt/libexslt.la -@WITH_PYTHON_TRUE@libxsltmod_la_DEPENDENCIES = $(am__DEPENDENCIES_1) -am__libxsltmod_la_SOURCES_DIST = libxslt.c types.c libxslt-py.c -@WITH_PYTHON_TRUE@am_libxsltmod_la_OBJECTS = libxslt.lo types.lo \ -@WITH_PYTHON_TRUE@ libxslt-py.lo -libxsltmod_la_OBJECTS = $(am_libxsltmod_la_OBJECTS) -@WITH_PYTHON_TRUE@am_libxsltmod_la_rpath = -rpath $(pythondir) -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(libxsltmod_la_SOURCES) -DIST_SOURCES = $(am__libxsltmod_la_SOURCES_DIST) -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-exec-recursive install-info-recursive \ - install-recursive installcheck-recursive installdirs-recursive \ - pdf-recursive ps-recursive uninstall-info-recursive \ - uninstall-recursive -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXSLT_INCLUDEDIR = @EXSLT_INCLUDEDIR@ -EXSLT_LIBDIR = @EXSLT_LIBDIR@ -EXSLT_LIBS = @EXSLT_LIBS@ -EXTRA_LIBS = @EXTRA_LIBS@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -HTML_DIR = @HTML_DIR@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBEXSLT_MAJOR_VERSION = @LIBEXSLT_MAJOR_VERSION@ -LIBEXSLT_MICRO_VERSION = @LIBEXSLT_MICRO_VERSION@ -LIBEXSLT_MINOR_VERSION = @LIBEXSLT_MINOR_VERSION@ -LIBEXSLT_VERSION = @LIBEXSLT_VERSION@ -LIBEXSLT_VERSION_EXTRA = @LIBEXSLT_VERSION_EXTRA@ -LIBEXSLT_VERSION_INFO = @LIBEXSLT_VERSION_INFO@ -LIBEXSLT_VERSION_NUMBER = @LIBEXSLT_VERSION_NUMBER@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBXML_CFLAGS = @LIBXML_CFLAGS@ -LIBXML_LIBS = @LIBXML_LIBS@ -LIBXML_REQUIRED_VERSION = @LIBXML_REQUIRED_VERSION@ -LIBXML_SRC = @LIBXML_SRC@ -LIBXSLT_DEFAULT_PLUGINS_PATH = @LIBXSLT_DEFAULT_PLUGINS_PATH@ -LIBXSLT_MAJOR_MINOR_VERSION = @LIBXSLT_MAJOR_MINOR_VERSION@ -LIBXSLT_MAJOR_VERSION = @LIBXSLT_MAJOR_VERSION@ -LIBXSLT_MICRO_VERSION = @LIBXSLT_MICRO_VERSION@ -LIBXSLT_MINOR_VERSION = @LIBXSLT_MINOR_VERSION@ -LIBXSLT_VERSION = @LIBXSLT_VERSION@ -LIBXSLT_VERSION_EXTRA = @LIBXSLT_VERSION_EXTRA@ -LIBXSLT_VERSION_INFO = @LIBXSLT_VERSION_INFO@ -LIBXSLT_VERSION_NUMBER = @LIBXSLT_VERSION_NUMBER@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MV = @MV@ -M_LIBS = @M_LIBS@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -PYTHON = @PYTHON@ -PYTHONSODV = @PYTHONSODV@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@ -PYTHON_SUBDIR = @PYTHON_SUBDIR@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -RELDATE = @RELDATE@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STATIC_BINARIES = @STATIC_BINARIES@ -STRIP = @STRIP@ -TAR = @TAR@ -VERSION = @VERSION@ -WIN32_EXTRA_LDFLAGS = @WIN32_EXTRA_LDFLAGS@ -WIN32_EXTRA_LIBADD = @WIN32_EXTRA_LIBADD@ -WITH_CRYPTO = @WITH_CRYPTO@ -WITH_DEBUGGER = @WITH_DEBUGGER@ -WITH_MEM_DEBUG = @WITH_MEM_DEBUG@ -WITH_MODULES = @WITH_MODULES@ -WITH_MODULES_FALSE = @WITH_MODULES_FALSE@ -WITH_MODULES_TRUE = @WITH_MODULES_TRUE@ -WITH_PERL_FALSE = @WITH_PERL_FALSE@ -WITH_PERL_TRUE = @WITH_PERL_TRUE@ -WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@ -WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@ -WITH_TRIO = @WITH_TRIO@ -WITH_XSLT_DEBUG = @WITH_XSLT_DEBUG@ -XML_CONFIG = @XML_CONFIG@ -XSLTPROCDV = @XSLTPROCDV@ -XSLT_INCLUDEDIR = @XSLT_INCLUDEDIR@ -XSLT_LIBDIR = @XSLT_LIBDIR@ -XSLT_LIBS = @XSLT_LIBS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ - -# Makefile for libxml2 python library -AUTOMAKE_OPTIONS = 1.4 foreign -SUBDIRS = . tests -INCLUDES = \ - -I$(PYTHON_INCLUDES) \ - $(LIBXML_CFLAGS) \ - -I$(top_srcdir)/libxslt \ - -I$(top_srcdir) \ - -I../libexslt - -DOCS_DIR = $(datadir)/doc/libxslt-python-$(LIBXSLT_VERSION) -# libxsltclass.txt is generated -DOCS = TODO -EXTRA_DIST = \ - libxslt.c \ - types.c \ - generator.py \ - libxml_wrap.h \ - libxslt_wrap.h \ - libxsl.py \ - libxslt-python-api.xml \ - $(DOCS) - -libxsltmod_la_LDFLAGS = -module -avoid-version -L$(top_builddir)/libxslt/.libs \ - -L$(top_builddir)/libexslt/.libs - -@WITH_PYTHON_TRUE@mylibs = \ -@WITH_PYTHON_TRUE@ $(top_builddir)/libxslt/libxslt.la \ -@WITH_PYTHON_TRUE@ $(top_builddir)/libexslt/libexslt.la - -@WITH_PYTHON_TRUE@python_LTLIBRARIES = libxsltmod.la -@WITH_PYTHON_TRUE@libxsltmod_la_SOURCES = libxslt.c types.c libxslt-py.c -@WITH_PYTHON_TRUE@libxsltmod_la_LIBADD = $(mylibs) -@WITH_PYTHON_TRUE@GENERATE = generator.py -@WITH_PYTHON_TRUE@API_DESC = $(top_srcdir)/doc/libxslt-api.xml $(srcdir)/libxslt-python-api.xml -@WITH_PYTHON_TRUE@GENERATED = $(srcdir)/libxsltclass.py \ -@WITH_PYTHON_TRUE@ $(srcdir)/libxslt-export.c \ -@WITH_PYTHON_TRUE@ $(srcdir)/libxslt-py.c \ -@WITH_PYTHON_TRUE@ $(srcdir)/libxslt-py.h \ -@WITH_PYTHON_TRUE@ $(srcdir)/libxsltclass.txt - -CLEANFILES = $(GENERATED) *.o libxslt.so *.pyc libxslt.py gen_prog -all: all-recursive - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign python/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign python/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -install-pythonLTLIBRARIES: $(python_LTLIBRARIES) - @$(NORMAL_INSTALL) - test -z "$(pythondir)" || $(mkdir_p) "$(DESTDIR)$(pythondir)" - @list='$(python_LTLIBRARIES)'; for p in $$list; do \ - if test -f $$p; then \ - f=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=install $(pythonLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pythondir)/$$f'"; \ - $(LIBTOOL) --mode=install $(pythonLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pythondir)/$$f"; \ - else :; fi; \ - done - -uninstall-pythonLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @set -x; list='$(python_LTLIBRARIES)'; for p in $$list; do \ - p=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(pythondir)/$$p'"; \ - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(pythondir)/$$p"; \ - done - -clean-pythonLTLIBRARIES: - -test -z "$(python_LTLIBRARIES)" || rm -f $(python_LTLIBRARIES) - @list='$(python_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -libxsltmod.la: $(libxsltmod_la_OBJECTS) $(libxsltmod_la_DEPENDENCIES) - $(LINK) $(am_libxsltmod_la_rpath) $(libxsltmod_la_LDFLAGS) $(libxsltmod_la_OBJECTS) $(libxsltmod_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libxslt-py.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libxslt.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/types.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -mostlyclean-recursive clean-recursive distclean-recursive \ -maintainer-clean-recursive: - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(mkdir_p) "$(distdir)/$$subdir" \ - || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ - distdir) \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-recursive -@WITH_PYTHON_FALSE@all-local: -all-am: Makefile $(LTLIBRARIES) all-local -installdirs: installdirs-recursive -installdirs-am: - for dir in "$(DESTDIR)$(pythondir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -@WITH_PYTHON_FALSE@install-data-local: -clean: clean-recursive - -clean-am: clean-generic clean-libtool clean-pythonLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-recursive - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-libtool distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -info: info-recursive - -info-am: - -install-data-am: install-data-local install-pythonLTLIBRARIES - -install-exec-am: - -install-info: install-info-recursive - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-info-am uninstall-pythonLTLIBRARIES - -uninstall-info: uninstall-info-recursive - -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am all-local check \ - check-am clean clean-generic clean-libtool \ - clean-pythonLTLIBRARIES clean-recursive ctags ctags-recursive \ - distclean distclean-compile distclean-generic \ - distclean-libtool distclean-recursive distclean-tags distdir \ - dvi dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-data-local install-exec \ - install-exec-am install-info install-info-am install-man \ - install-pythonLTLIBRARIES install-strip installcheck \ - installcheck-am installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic maintainer-clean-recursive \ - mostlyclean mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ - tags tags-recursive uninstall uninstall-am uninstall-info-am \ - uninstall-pythonLTLIBRARIES - - -@WITH_PYTHON_TRUE@all-local: libxslt.py - -@WITH_PYTHON_TRUE@libxslt.py: $(srcdir)/libxsl.py $(srcdir)/libxsltclass.py -@WITH_PYTHON_TRUE@ cat $(srcdir)/libxsl.py $(srcdir)/libxsltclass.py > libxslt.py - -@WITH_PYTHON_TRUE@install-data-local: -@WITH_PYTHON_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pythondir) -@WITH_PYTHON_TRUE@ @INSTALL@ -m 0644 libxslt.py $(DESTDIR)$(pythondir) -@WITH_PYTHON_TRUE@ $(mkinstalldirs) $(DESTDIR)$(DOCS_DIR) -@WITH_PYTHON_TRUE@ @(for doc in $(DOCS) ; \ -@WITH_PYTHON_TRUE@ do @INSTALL@ -m 0644 $(srcdir)/$$doc $(DESTDIR)$(DOCS_DIR) ; done) - -@WITH_PYTHON_TRUE@$(GENERATED): gen_prog - -@WITH_PYTHON_TRUE@gen_prog: $(srcdir)/$(GENERATE) $(API_DESC) -@WITH_PYTHON_TRUE@ cd $(srcdir) && $(PYTHON) $(GENERATE) -@WITH_PYTHON_TRUE@ touch gen_prog - -@WITH_PYTHON_TRUE@$(libxsltmod_la_OBJECTS): $(GENERATED) - -@WITH_PYTHON_FALSE@all: -tests test: all - cd tests && $(MAKE) tests -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/tools/docbook/libxslt/python/TODO b/src/tools/docbook/libxslt/python/TODO deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/src/tools/docbook/libxslt/python/generator.py b/src/tools/docbook/libxslt/python/generator.py deleted file mode 100755 index 1327ce7f2b..0000000000 --- a/src/tools/docbook/libxslt/python/generator.py +++ /dev/null @@ -1,968 +0,0 @@ -#!/usr/bin/python -u -# -# generate python wrappers from the XML API description -# - -functions = {} -enums = {} # { enumType: { enumConstant: enumValue } } - -import string - -####################################################################### -# -# That part if purely the API acquisition phase from the -# XML API description -# -####################################################################### -import os -import xmllib -try: - import sgmlop -except ImportError: - sgmlop = None # accelerator not available - -debug = 0 - -if sgmlop: - class FastParser: - """sgmlop based XML parser. this is typically 15x faster - than SlowParser...""" - - def __init__(self, target): - - # setup callbacks - self.finish_starttag = target.start - self.finish_endtag = target.end - self.handle_data = target.data - - # activate parser - self.parser = sgmlop.XMLParser() - self.parser.register(self) - self.feed = self.parser.feed - self.entity = { - "amp": "&", "gt": ">", "lt": "<", - "apos": "'", "quot": '"' - } - - def close(self): - try: - self.parser.close() - finally: - self.parser = self.feed = None # nuke circular reference - - def handle_entityref(self, entity): - # entity - try: - self.handle_data(self.entity[entity]) - except KeyError: - self.handle_data("&%s;" % entity) - -else: - FastParser = None - - -class SlowParser(xmllib.XMLParser): - """slow but safe standard parser, based on the XML parser in - Python's standard library.""" - - def __init__(self, target): - self.unknown_starttag = target.start - self.handle_data = target.data - self.unknown_endtag = target.end - xmllib.XMLParser.__init__(self) - -def getparser(target = None): - # get the fastest available parser, and attach it to an - # unmarshalling object. return both objects. - if target == None: - target = docParser() - if FastParser: - return FastParser(target), target - return SlowParser(target), target - -class docParser: - def __init__(self): - self._methodname = None - self._data = [] - self.in_function = 0 - - def close(self): - if debug: - print "close" - - def getmethodname(self): - return self._methodname - - def data(self, text): - if debug: - print "data %s" % text - self._data.append(text) - - def start(self, tag, attrs): - if debug: - print "start %s, %s" % (tag, attrs) - if tag == 'function': - self._data = [] - self.in_function = 1 - self.function = None - self.function_args = [] - self.function_descr = None - self.function_return = None - self.function_file = None - if attrs.has_key('name'): - self.function = attrs['name'] - if attrs.has_key('file'): - self.function_file = attrs['file'] - elif tag == 'info': - self._data = [] - elif tag == 'arg': - if self.in_function == 1: - self.function_arg_name = None - self.function_arg_type = None - self.function_arg_info = None - if attrs.has_key('name'): - self.function_arg_name = attrs['name'] - if attrs.has_key('type'): - self.function_arg_type = attrs['type'] - if attrs.has_key('info'): - self.function_arg_info = attrs['info'] - elif tag == 'return': - if self.in_function == 1: - self.function_return_type = None - self.function_return_info = None - self.function_return_field = None - if attrs.has_key('type'): - self.function_return_type = attrs['type'] - if attrs.has_key('info'): - self.function_return_info = attrs['info'] - if attrs.has_key('field'): - self.function_return_field = attrs['field'] - elif tag == 'enum': - enum(attrs['type'],attrs['name'],attrs['value']) - - - - def end(self, tag): - if debug: - print "end %s" % tag - if tag == 'function': - if self.function != None: - function(self.function, self.function_descr, - self.function_return, self.function_args, - self.function_file) - self.in_function = 0 - elif tag == 'arg': - if self.in_function == 1: - self.function_args.append([self.function_arg_name, - self.function_arg_type, - self.function_arg_info]) - elif tag == 'return': - if self.in_function == 1: - self.function_return = [self.function_return_type, - self.function_return_info, - self.function_return_field] - elif tag == 'info': - str = '' - for c in self._data: - str = str + c - if self.in_function == 1: - self.function_descr = str - - -def function(name, desc, ret, args, file): - functions[name] = (desc, ret, args, file) - -def enum(type, name, value): - if not enums.has_key(type): - enums[type] = {} - enums[type][name] = value - -####################################################################### -# -# Some filtering rukes to drop functions/types which should not -# be exposed as-is on the Python interface -# -####################################################################### - -skipped_modules = { - 'xmlmemory': None, - 'DOCBparser': None, - 'SAX': None, - 'hash': None, - 'list': None, - 'threads': None, - 'xpointer': None, - 'transform': None, -} -skipped_types = { - 'int *': "usually a return type", - 'xmlSAXHandlerPtr': "not the proper interface for SAX", - 'htmlSAXHandlerPtr': "not the proper interface for SAX", - 'xmlRMutexPtr': "thread specific, skipped", - 'xmlMutexPtr': "thread specific, skipped", - 'xmlGlobalStatePtr': "thread specific, skipped", - 'xmlListPtr': "internal representation not suitable for python", - 'xmlBufferPtr': "internal representation not suitable for python", - 'FILE *': None, -} - -####################################################################### -# -# Table of remapping to/from the python type or class to the C -# counterpart. -# -####################################################################### - -py_types = { - 'void': (None, None, None, None, None), - 'int': ('i', None, "int", "int", "libxml_"), - 'long': ('i', None, "int", "int", "libxml_"), - 'double': ('d', None, "double", "double", "libxml_"), - 'unsigned int': ('i', None, "int", "int", "libxml_"), - 'xmlChar': ('c', None, "int", "int", "libxml_"), - 'unsigned char *': ('z', None, "charPtr", "char *", "libxml_"), - 'char *': ('z', None, "charPtr", "char *", "libxml_"), - 'const char *': ('z', None, "charPtrConst", "const char *", "libxml_"), - 'xmlChar *': ('z', None, "xmlCharPtr", "xmlChar *", "libxml_"), - 'const xmlChar *': ('z', None, "xmlCharPtrConst", "const xmlChar *", "libxml_"), - 'xmlNodePtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'const xmlNodePtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'xmlNode *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'const xmlNode *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'xmlDtdPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'const xmlDtdPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'xmlDtd *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'const xmlDtd *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'xmlAttrPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'const xmlAttrPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'xmlAttr *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'const xmlAttr *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'xmlEntityPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'const xmlEntityPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'xmlEntity *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'const xmlEntity *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'xmlElementPtr': ('O', "xmlElement", "xmlElementPtr", "xmlElementPtr", "libxml_"), - 'const xmlElementPtr': ('O', "xmlElement", "xmlElementPtr", "xmlElementPtr", "libxml_"), - 'xmlElement *': ('O', "xmlElement", "xmlElementPtr", "xmlElementPtr", "libxml_"), - 'const xmlElement *': ('O', "xmlElement", "xmlElementPtr", "xmlElementPtr", "libxml_"), - 'xmlAttributePtr': ('O', "xmlAttribute", "xmlAttributePtr", "xmlAttributePtr", "libxml_"), - 'const xmlAttributePtr': ('O', "xmlAttribute", "xmlAttributePtr", "xmlAttributePtr", "libxml_"), - 'xmlAttribute *': ('O', "xmlAttribute", "xmlAttributePtr", "xmlAttributePtr", "libxml_"), - 'const xmlAttribute *': ('O', "xmlAttribute", "xmlAttributePtr", "xmlAttributePtr", "libxml_"), - 'xmlNsPtr': ('O', "xmlNode", "xmlNsPtr", "xmlNsPtr", "libxml_"), - 'const xmlNsPtr': ('O', "xmlNode", "xmlNsPtr", "xmlNsPtr", "libxml_"), - 'xmlNs *': ('O', "xmlNode", "xmlNsPtr", "xmlNsPtr", "libxml_"), - 'const xmlNs *': ('O', "xmlNode", "xmlNsPtr", "xmlNsPtr", "libxml_"), - 'xmlDocPtr': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr", "libxml_"), - 'const xmlDocPtr': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr", "libxml_"), - 'xmlDoc *': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr", "libxml_"), - 'const xmlDoc *': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr", "libxml_"), - 'htmlDocPtr': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr", "libxml_"), - 'const htmlDocPtr': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr", "libxml_"), - 'htmlDoc *': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr", "libxml_"), - 'const htmlDoc *': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr", "libxml_"), - 'htmlNodePtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'const htmlNodePtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'htmlNode *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'const htmlNode *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr", "libxml_"), - 'xmlXPathContextPtr': ('O', "xmlXPathContext", "xmlXPathContextPtr", "xmlXPathContextPtr", "libxml_"), - 'xmlXPathParserContextPtr': ('O', "xmlXPathParserContext", "xmlXPathParserContextPtr", "xmlXPathParserContextPtr", "libxml_"), - 'xmlParserCtxtPtr': ('O', "parserCtxt", "xmlParserCtxtPtr", "xmlParserCtxtPtr", "libxml_"), - 'xmlParserCtxt *': ('O', "parserCtxt", "xmlParserCtxtPtr", "xmlParserCtxtPtr", "libxml_"), - 'htmlParserCtxtPtr': ('O', "parserCtxt", "xmlParserCtxtPtr", "xmlParserCtxtPtr", "libxml_"), - 'htmlParserCtxt *': ('O', "parserCtxt", "xmlParserCtxtPtr", "xmlParserCtxtPtr", "libxml_"), - 'xmlCatalogPtr': ('O', "catalog", "xmlCatalogPtr", "xmlCatalogPtr"), - 'FILE *': ('O', "File", "FILEPtr", "FILE *", "libxml_"), - 'xsltTransformContextPtr': ('O', "transformCtxt", "xsltTransformContextPtr", "xsltTransformContextPtr", "libxslt_"), - 'xsltTransformContext *': ('O', "transformCtxt", "xsltTransformContextPtr", "xsltTransformContextPtr", "libxslt_"), - 'xsltStylePreCompPtr': ('O', "compiledStyle", "xsltStylePreCompPtr", "xsltStylePreCompPtr", "libxslt_"), - 'xsltStylePreComp *': ('O', "compiledStyle", "xsltStylePreCompPtr", "xsltStylePreCompPtr", "libxslt_"), - 'xsltStylesheetPtr': ('O', "stylesheet", "xsltStylesheetPtr", "xsltStylesheetPtr", "libxslt_"), - 'xsltStylesheet *': ('O', "stylesheet", "xsltStylesheetPtr", "xsltStylesheetPtr", "libxslt_"), - 'xmlXPathContext *': ('O', "xpathContext", "xmlXPathContextPtr", "xmlXPathContextPtr", "libxslt_"), -} - -py_return_types = { - 'xmlXPathObjectPtr': ('O', "foo", "xmlXPathObjectPtr", "xmlXPathObjectPtr", "libxml_"), -} - -unknown_types = {} - -####################################################################### -# -# This part writes the C <-> Python stubs libxslt-py.[ch] and -# the table libxslt-export.c to add when registrering the Python module -# -####################################################################### - -def skip_function(name): - if name[0:12] == "xmlXPathWrap": - return 1 - if name == "xsltMatchPattern": - return 1 -# if name[0:11] == "xmlXPathNew": -# return 1 - return 0 - -def print_function_wrapper(name, output, export, include): - global py_types - global unknown_types - global functions - global skipped_modules - - try: - (desc, ret, args, file) = functions[name] - except: - print "failed to get function %s infos" - return - - if skipped_modules.has_key(file): - return 0 - if skip_function(name) == 1: - return 0 - - c_call = ""; - format="" - format_args="" - c_args="" - c_return="" - c_convert="" - for arg in args: - # This should be correct - if arg[1][0:6] == "const ": - arg[1] = arg[1][6:] - c_args = c_args + " %s %s;\n" % (arg[1], arg[0]) - if py_types.has_key(arg[1]): - (f, t, n, c, p) = py_types[arg[1]] - if f != None: - format = format + f - if t != None: - format_args = format_args + ", &pyobj_%s" % (arg[0]) - c_args = c_args + " PyObject *pyobj_%s;\n" % (arg[0]) - c_convert = c_convert + \ - " %s = (%s) Py%s_Get(pyobj_%s);\n" % (arg[0], - arg[1], t, arg[0]); - else: - format_args = format_args + ", &%s" % (arg[0]) - if c_call != "": - c_call = c_call + ", "; - c_call = c_call + "%s" % (arg[0]) - else: - if skipped_types.has_key(arg[1]): - return 0 - if unknown_types.has_key(arg[1]): - lst = unknown_types[arg[1]] - lst.append(name) - else: - unknown_types[arg[1]] = [name] - return -1 - if format != "": - format = format + ":%s" % (name) - - if ret[0] == 'void': - if file == "python_accessor": - if args[1][1] == "char *" or args[1][1] == "xmlChar *": - c_call = "\n if (%s->%s != NULL) xmlFree(%s->%s);\n" % ( - args[0][0], args[1][0], args[0][0], args[1][0]) - c_call = c_call + " %s->%s = xmlStrdup((const xmlChar *)%s);\n" % (args[0][0], - args[1][0], args[1][0]) - else: - c_call = "\n %s->%s = %s;\n" % (args[0][0], args[1][0], - args[1][0]) - else: - c_call = "\n %s(%s);\n" % (name, c_call); - ret_convert = " Py_INCREF(Py_None);\n return(Py_None);\n" - elif py_types.has_key(ret[0]): - (f, t, n, c, p) = py_types[ret[0]] - c_return = " %s c_retval;\n" % (ret[0]) - if file == "python_accessor" and ret[2] != None: - c_call = "\n c_retval = %s->%s;\n" % (args[0][0], ret[2]) - else: - c_call = "\n c_retval = %s(%s);\n" % (name, c_call); - ret_convert = " py_retval = %s%sWrap((%s) c_retval);\n" % (p,n,c) - ret_convert = ret_convert + " return(py_retval);\n" - elif py_return_types.has_key(ret[0]): - (f, t, n, c, p) = py_return_types[ret[0]] - c_return = " %s c_retval;\n" % (ret[0]) - if file == "python_accessor" and ret[2] != None: - c_call = "\n c_retval = %s->%s;\n" % (args[0][0], ret[2]) - else: - c_call = "\n c_retval = %s(%s);\n" % (name, c_call); - ret_convert = " py_retval = %s%sWrap((%s) c_retval);\n" % (p,n,c) - ret_convert = ret_convert + " return(py_retval);\n" - else: - if skipped_types.has_key(ret[0]): - return 0 - if unknown_types.has_key(ret[0]): - lst = unknown_types[ret[0]] - lst.append(name) - else: - unknown_types[ret[0]] = [name] - return -1 - - include.write("PyObject * ") - include.write("libxslt_%s(PyObject *self, PyObject *args);\n" % (name)) - - export.write(" { (char *)\"%s\", libxslt_%s, METH_VARARGS, NULL },\n" % (name, name)) - - if file == "python": - # Those have been manually generated - return 1 - if file == "python_accessor" and ret[0] != "void" and ret[2] == None: - # Those have been manually generated - return 1 - - output.write("PyObject *\n") - output.write("libxslt_%s(PyObject *self ATTRIBUTE_UNUSED," % (name)) - output.write(" PyObject *args") - if format == "": - output.write(" ATTRIBUTE_UNUSED") - output.write(") {\n") - if ret[0] != 'void': - output.write(" PyObject *py_retval;\n") - if c_return != "": - output.write(c_return) - if c_args != "": - output.write(c_args) - if format != "": - output.write("\n if (!PyArg_ParseTuple(args, (char *)\"%s\"%s))\n" % - (format, format_args)) - output.write(" return(NULL);\n") - if c_convert != "": - output.write(c_convert) - - output.write(c_call) - output.write(ret_convert) - output.write("}\n\n") - return 1 - -def buildStubs(): - global py_types - global py_return_types - global unknown_types - - try: - f = open("libxslt-api.xml") - data = f.read() - (parser, target) = getparser() - parser.feed(data) - parser.close() - except IOError, msg: - try: - f = open("../doc/libxslt-api.xml") - data = f.read() - (parser, target) = getparser() - parser.feed(data) - parser.close() - except IOError, msg: - print "../doc/libxslt-api.xml", ":", msg - - n = len(functions.keys()) - print "Found %d functions in libxslt-api.xml" % (n) - - py_types['pythonObject'] = ('O', "pythonObject", "pythonObject", - "pythonObject", "libxml_") - try: - f = open("libxslt-python-api.xml") - data = f.read() - (parser, target) = getparser() - parser.feed(data) - parser.close() - except IOError, msg: - print "libxslt-python-api.xml", ":", msg - - - print "Found %d functions in libxslt-python-api.xml" % ( - len(functions.keys()) - n) - nb_wrap = 0 - failed = 0 - skipped = 0 - - include = open("libxslt-py.h", "w") - include.write("/* Generated */\n\n") - export = open("libxslt-export.c", "w") - export.write("/* Generated */\n\n") - wrapper = open("libxslt-py.c", "w") - wrapper.write("/* Generated */\n\n") -# wrapper.write("#include \"config.h\"\n") - wrapper.write("#include \n") - wrapper.write("#include \"libxslt_wrap.h\"\n") - wrapper.write("#include \"libxslt-py.h\"\n\n") - for function in functions.keys(): - ret = print_function_wrapper(function, wrapper, export, include) - if ret < 0: - failed = failed + 1 - del functions[function] - if ret == 0: - skipped = skipped + 1 - del functions[function] - if ret == 1: - nb_wrap = nb_wrap + 1 - include.close() - export.close() - wrapper.close() - - print "Generated %d wrapper functions, %d failed, %d skipped\n" % (nb_wrap, - failed, skipped); - print "Missing type converters:" - for type in unknown_types.keys(): - print "%s:%d " % (type, len(unknown_types[type])), - print - -####################################################################### -# -# This part writes part of the Python front-end classes based on -# mapping rules between types and classes and also based on function -# renaming to get consistent function names at the Python level -# -####################################################################### - -# -# The type automatically remapped to generated classes -# -libxml2_classes_type = { - "xmlNodePtr": ("._o", "xmlNode(_obj=%s)", "xmlNode"), - "xmlNode *": ("._o", "xmlNode(_obj=%s)", "xmlNode"), - "xmlDocPtr": ("._o", "xmlDoc(_obj=%s)", "xmlDoc"), - "xmlDocPtr *": ("._o", "xmlDoc(_obj=%s)", "xmlDoc"), - "htmlDocPtr": ("._o", "xmlDoc(_obj=%s)", "xmlDoc"), - "htmlxmlDocPtr *": ("._o", "xmlDoc(_obj=%s)", "xmlDoc"), - "xmlAttrPtr": ("._o", "xmlAttr(_obj=%s)", "xmlAttr"), - "xmlAttr *": ("._o", "xmlAttr(_obj=%s)", "xmlAttr"), - "xmlNsPtr": ("._o", "xmlNs(_obj=%s)", "xmlNs"), - "xmlNs *": ("._o", "xmlNs(_obj=%s)", "xmlNs"), - "xmlDtdPtr": ("._o", "xmlDtd(_obj=%s)", "xmlDtd"), - "xmlDtd *": ("._o", "xmlDtd(_obj=%s)", "xmlDtd"), - "xmlEntityPtr": ("._o", "xmlEntity(_obj=%s)", "xmlEntity"), - "xmlEntity *": ("._o", "xmlEntity(_obj=%s)", "xmlEntity"), - "xmlElementPtr": ("._o", "xmlElement(_obj=%s)", "xmlElement"), - "xmlElement *": ("._o", "xmlElement(_obj=%s)", "xmlElement"), - "xmlAttributePtr": ("._o", "xmlAttribute(_obj=%s)", "xmlAttribute"), - "xmlAttribute *": ("._o", "xmlAttribute(_obj=%s)", "xmlAttribute"), - "xmlParserCtxtPtr": ("._o", "parserCtxt(_obj=%s)", "parserCtxt"), - "xmlParserCtxt *": ("._o", "parserCtxt(_obj=%s)", "parserCtxt"), - "xmlCatalogPtr": ("._o", "catalog(_obj=%s)", "catalog"), -} - -classes_type = { - "xsltTransformContextPtr": ("._o", "transformCtxt(_obj=%s)", "transformCtxt"), - "xsltTransformContext *": ("._o", "transformCtxt(_obj=%s)", "transformCtxt"), - "xsltStylesheetPtr": ("._o", "stylesheet(_obj=%s)", "stylesheet"), - "xsltStylesheet *": ("._o", "stylesheet(_obj=%s)", "stylesheet"), - "xmlXPathContextPtr": ("._o", "xpathContext(_obj=%s)", "xpathContext"), - "xmlXPathContext *": ("._o", "xpathContext(_obj=%s)", "xpathContext"), - "xmlXPathParserContextPtr": ("._o", "xpathParserContext(_obj=%s)", "xpathParserContext"), - "xmlXPathParserContext *": ("._o", "xpathParserContext(_obj=%s)", "xpathParserContext"), -} - -converter_type = { - "xmlXPathObjectPtr": "libxml2.xpathObjectRet(%s)", -} - -primary_classes = ["xpathParserContext", "xpathContext", "transformCtxt", "stylesheet"] - -classes_ancestor = { - "xpathContext" : "libxml2.xpathContext", - "xpathParserContext" : "libxml2.xpathParserContext", -} -classes_destructors = { - "xpathContext" : "pass" -} - -function_classes = {} -ctypes = [] -classes_list = [] - - -def nameFixup(name, classe, type, file): - listname = classe + "List" - ll = len(listname) - l = len(classe) - if name[0:l] == listname: - func = name[l:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:12] == "xmlParserGet" and file == "python_accessor": - func = name[12:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:12] == "xmlParserSet" and file == "python_accessor": - func = name[12:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:10] == "xmlNodeGet" and file == "python_accessor": - func = name[10:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:18] == "xsltXPathParserGet" and file == "python_accessor": - func = name[18:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:12] == "xsltXPathGet" and file == "python_accessor": - func = name[12:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:16] == "xsltTransformGet" and file == "python_accessor": - func = name[16:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:16] == "xsltTransformSet" and file == "python_accessor": - func = name[13:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:17] == "xsltStylesheetGet" and file == "python_accessor": - func = name[17:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:17] == "xsltStylesheetSet" and file == "python_accessor": - func = name[14:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:l] == classe: - func = name[l:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:7] == "libxml_": - func = name[7:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:8] == "libxslt_": - func = name[8:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:6] == "xmlGet": - func = name[6:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:3] == "xml": - func = name[3:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:7] == "xsltGet": - func = name[7:] - func = string.lower(func[0:1]) + func[1:] - elif name[0:4] == "xslt": - func = name[4:] - func = string.lower(func[0:1]) + func[1:] - else: - func = name - if func[0:5] == "xPath": - func = "xpath" + func[5:] - elif func[0:4] == "xPtr": - func = "xpointer" + func[4:] - elif func[0:8] == "xInclude": - func = "xinclude" + func[8:] - elif func[0:2] == "iD": - func = "ID" + func[2:] - elif func[0:3] == "uRI": - func = "URI" + func[3:] - elif func[0:4] == "uTF8": - func = "UTF8" + func[4:] - return func - -def functionCompare(info1, info2): - (index1, func1, name1, ret1, args1, file1) = info1 - (index2, func2, name2, ret2, args2, file2) = info2 - if file1 == file2: - if func1 < func2: - return -1 - if func1 > func2: - return 1 - if file1 == "python_accessor": - return -1 - if file2 == "python_accessor": - return 1 - if file1 < file2: - return -1 - if file1 > file2: - return 1 - return 0 - -def writeDoc(name, args, indent, output): - if functions[name][0] == None or functions[name][0] == "": - return - val = functions[name][0] - val = string.replace(val, "NULL", "None"); - output.write(indent) - output.write('"""') - while len(val) > 60: - str = val[0:60] - i = string.rfind(str, " "); - if i < 0: - i = 60 - str = val[0:i] - val = val[i:] - output.write(str) - output.write('\n '); - output.write(indent) - output.write(val); - output.write('"""\n') - -def buildWrappers(): - global ctypes - global py_types - global py_return_types - global unknown_types - global functions - global function_classes - global libxml2_classes_type - global classes_type - global classes_list - global converter_type - global primary_classes - global converter_type - global classes_ancestor - global converter_type - global primary_classes - global classes_ancestor - global classes_destructors - - function_classes["None"] = [] - for type in classes_type.keys(): - function_classes[classes_type[type][2]] = [] - - # - # Build the list of C types to look for ordered to start with - # primary classes - # - ctypes_processed = {} - classes_processed = {} - for classe in primary_classes: - classes_list.append(classe) - classes_processed[classe] = () - for type in classes_type.keys(): - tinfo = classes_type[type] - if tinfo[2] == classe: - ctypes.append(type) - ctypes_processed[type] = () - for type in classes_type.keys(): - if ctypes_processed.has_key(type): - continue - tinfo = classes_type[type] - if not classes_processed.has_key(tinfo[2]): - classes_list.append(tinfo[2]) - classes_processed[tinfo[2]] = () - - ctypes.append(type) - ctypes_processed[type] = () - - for name in functions.keys(): - found = 0; - (desc, ret, args, file) = functions[name] - for type in ctypes: - classe = classes_type[type][2] - - if name[0:4] == "xslt" and len(args) >= 1 and args[0][1] == type: - found = 1 - func = nameFixup(name, classe, type, file) - info = (0, func, name, ret, args, file) - function_classes[classe].append(info) - elif name[0:4] == "xslt" and len(args) >= 2 and args[1][1] == type: - found = 1 - func = nameFixup(name, classe, type, file) - info = (1, func, name, ret, args, file) - function_classes[classe].append(info) - elif name[0:4] == "xslt" and len(args) >= 3 and args[2][1] == type: - found = 1 - func = nameFixup(name, classe, type, file) - info = (2, func, name, ret, args, file) - function_classes[classe].append(info) - if found == 1: - continue - if name[0:8] == "xmlXPath": - continue - if name[0:6] == "xmlStr": - continue - if name[0:10] == "xmlCharStr": - continue - func = nameFixup(name, "None", file, file) - info = (0, func, name, ret, args, file) - function_classes['None'].append(info) - - classes = open("libxsltclass.py", "w") - txt = open("libxsltclass.txt", "w") - txt.write(" Generated Classes for libxslt-python\n\n") - - txt.write("#\n# Global functions of the module\n#\n\n") - if function_classes.has_key("None"): - flist = function_classes["None"] - flist.sort(functionCompare) - oldfile = "" - for info in flist: - (index, func, name, ret, args, file) = info - if file != oldfile: - classes.write("#\n# Functions from module %s\n#\n\n" % file) - txt.write("\n# functions from module %s\n" % file) - oldfile = file - classes.write("def %s(" % func) - txt.write("%s()\n" % func); - n = 0 - for arg in args: - if n != 0: - classes.write(", ") - classes.write("%s" % arg[0]) - n = n + 1 - classes.write("):\n") - writeDoc(name, args, ' ', classes); - - for arg in args: - if classes_type.has_key(arg[1]): - classes.write(" if %s == None: %s__o = None\n" % - (arg[0], arg[0])) - classes.write(" else: %s__o = %s%s\n" % - (arg[0], arg[0], classes_type[arg[1]][0])) - elif libxml2_classes_type.has_key(arg[1]): - classes.write(" if %s == None: %s__o = None\n" % - (arg[0], arg[0])) - classes.write(" else: %s__o = %s%s\n" % - (arg[0], arg[0], libxml2_classes_type[arg[1]][0])) - if ret[0] != "void": - classes.write(" ret = "); - else: - classes.write(" "); - classes.write("libxsltmod.%s(" % name) - n = 0 - for arg in args: - if n != 0: - classes.write(", "); - classes.write("%s" % arg[0]) - if classes_type.has_key(arg[1]): - classes.write("__o"); - if libxml2_classes_type.has_key(arg[1]): - classes.write("__o"); - n = n + 1 - classes.write(")\n"); - if ret[0] != "void": - if classes_type.has_key(ret[0]): - classes.write(" if ret == None: return None\n"); - classes.write(" return "); - classes.write(classes_type[ret[0]][1] % ("ret")); - classes.write("\n"); - elif libxml2_classes_type.has_key(ret[0]): - classes.write(" if ret == None: return None\n"); - classes.write(" return libxml2."); - classes.write(libxml2_classes_type[ret[0]][1] % ("ret")); - classes.write("\n"); - else: - classes.write(" return ret\n"); - classes.write("\n"); - - txt.write("\n\n#\n# Set of classes of the module\n#\n\n") - for classname in classes_list: - if classname == "None": - pass - else: - if classes_ancestor.has_key(classname): - txt.write("\n\nClass %s(%s)\n" % (classname, - classes_ancestor[classname])) - classes.write("class %s(%s):\n" % (classname, - classes_ancestor[classname])) - classes.write(" def __init__(self, _obj=None):\n") - classes.write(" self._o = None\n") - classes.write(" %s.__init__(self, _obj=_obj)\n\n" % ( - classes_ancestor[classname])) - if classes_ancestor[classname] == "xmlCore" or \ - classes_ancestor[classname] == "xmlNode": - classes.write(" def __repr__(self):\n") - format = "%s:%%s" % (classname) - classes.write(" return \"%s\" %% (self.name)\n\n" % ( - format)) - else: - txt.write("Class %s()\n" % (classname)) - classes.write("class %s:\n" % (classname)) - classes.write(" def __init__(self, _obj=None):\n") - classes.write(" if _obj != None:self._o = _obj;return\n") - classes.write(" self._o = None\n\n"); - if classes_destructors.has_key(classname): - classes.write(" def __del__(self):\n") - if classes_destructors[classname] == "pass": - classes.write(" pass\n") - else: - classes.write(" if self._o != None:\n") - classes.write(" libxsltmod.%s(self._o)\n" % - classes_destructors[classname]); - classes.write(" self._o = None\n\n"); - flist = function_classes[classname] - flist.sort(functionCompare) - oldfile = "" - for info in flist: - (index, func, name, ret, args, file) = info - if file != oldfile: - if file == "python_accessor": - classes.write(" # accessors for %s\n" % (classname)) - txt.write(" # accessors\n") - else: - classes.write(" #\n") - classes.write(" # %s functions from module %s\n" % ( - classname, file)) - txt.write("\n # functions from module %s\n" % file) - classes.write(" #\n\n") - oldfile = file - classes.write(" def %s(self" % func) - txt.write(" %s()\n" % func); - n = 0 - for arg in args: - if n != index: - classes.write(", %s" % arg[0]) - n = n + 1 - classes.write("):\n") - writeDoc(name, args, ' ', classes); - n = 0 - for arg in args: - if classes_type.has_key(arg[1]): - if n != index: - classes.write(" if %s == None: %s__o = None\n" % - (arg[0], arg[0])) - classes.write(" else: %s__o = %s%s\n" % - (arg[0], arg[0], classes_type[arg[1]][0])) - elif libxml2_classes_type.has_key(arg[1]): - classes.write(" if %s == None: %s__o = None\n" % - (arg[0], arg[0])) - classes.write(" else: %s__o = %s%s\n" % - (arg[0], arg[0], - libxml2_classes_type[arg[1]][0])) - n = n + 1 - if ret[0] != "void": - classes.write(" ret = "); - else: - classes.write(" "); - classes.write("libxsltmod.%s(" % name) - n = 0 - for arg in args: - if n != 0: - classes.write(", "); - if n != index: - classes.write("%s" % arg[0]) - if classes_type.has_key(arg[1]): - classes.write("__o"); - elif libxml2_classes_type.has_key(arg[1]): - classes.write("__o"); - else: - classes.write("self"); - if classes_type.has_key(arg[1]): - classes.write(classes_type[arg[1]][0]) - elif libxml2_classes_type.has_key(arg[1]): - classes.write(libxml2_classes_type[arg[1]][0]) - n = n + 1 - classes.write(")\n"); - if ret[0] != "void": - if classes_type.has_key(ret[0]): - classes.write(" if ret == None: return None\n"); - classes.write(" return "); - classes.write(classes_type[ret[0]][1] % ("ret")); - classes.write("\n"); - elif libxml2_classes_type.has_key(ret[0]): - classes.write(" if ret == None: return None\n"); - classes.write(" return libxml2."); - classes.write(libxml2_classes_type[ret[0]][1] % ("ret")); - classes.write("\n"); - elif converter_type.has_key(ret[0]): - classes.write(" if ret == None: return None\n"); - classes.write(" return "); - classes.write(converter_type[ret[0]] % ("ret")); - classes.write("\n"); - else: - classes.write(" return ret\n"); - classes.write("\n"); - - # - # Generate enum constants - # - for type,enum in enums.items(): - classes.write("# %s\n" % type) - items = enum.items() - items.sort(lambda i1,i2: cmp(long(i1[1]),long(i2[1]))) - for name,value in items: - classes.write("%s = %s\n" % (name,value)) - classes.write("\n"); - - txt.close() - classes.close() - -buildStubs() -buildWrappers() diff --git a/src/tools/docbook/libxslt/python/libxml_wrap.h b/src/tools/docbook/libxslt/python/libxml_wrap.h deleted file mode 100644 index 53777d9817..0000000000 --- a/src/tools/docbook/libxslt/python/libxml_wrap.h +++ /dev/null @@ -1,86 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#define PyxmlNode_Get(v) (((v) == Py_None) ? NULL : \ - (((PyxmlNode_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlNodePtr obj; -} PyxmlNode_Object; - -#define PyxmlXPathContext_Get(v) (((v) == Py_None) ? NULL : \ - (((PyxmlXPathContext_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlXPathContextPtr obj; -} PyxmlXPathContext_Object; - -#define PyxmlXPathParserContext_Get(v) (((v) == Py_None) ? NULL : \ - (((PyxmlXPathParserContext_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlXPathParserContextPtr obj; -} PyxmlXPathParserContext_Object; - -#define PyparserCtxt_Get(v) (((v) == Py_None) ? NULL : \ - (((PyparserCtxt_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlParserCtxtPtr obj; -} PyparserCtxt_Object; - -#define Pycatalog_Get(v) (((v) == Py_None) ? NULL : \ - (((Pycatalog_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xmlCatalogPtr obj; -} Pycatalog_Object; - -#define PyFile_Get(v) (((v) == Py_None) ? NULL : \ - (PyFile_Check(v) ? (PyFile_AsFile(v)) : stdout)) - -PyObject * libxml_intWrap(int val); -PyObject * libxml_longWrap(long val); -PyObject * libxml_xmlCharPtrWrap(xmlChar *str); -PyObject * libxml_constxmlCharPtrWrap(const xmlChar *str); -PyObject * libxml_charPtrWrap(char *str); -PyObject * libxml_constcharPtrWrap(const char *str); -PyObject * libxml_charPtrConstWrap(const char *str); -PyObject * libxml_xmlCharPtrConstWrap(const xmlChar *str); -PyObject * libxml_xmlDocPtrWrap(xmlDocPtr doc); -PyObject * libxml_xmlNodePtrWrap(xmlNodePtr node); -PyObject * libxml_xmlAttrPtrWrap(xmlAttrPtr attr); -PyObject * libxml_xmlNsPtrWrap(xmlNsPtr ns); -PyObject * libxml_xmlAttributePtrWrap(xmlAttributePtr ns); -PyObject * libxml_xmlElementPtrWrap(xmlElementPtr ns); -PyObject * libxml_doubleWrap(double val); -PyObject * libxml_xmlXPathContextPtrWrap(xmlXPathContextPtr ctxt); -PyObject * libxml_xmlParserCtxtPtrWrap(xmlParserCtxtPtr ctxt); -PyObject * libxml_xmlXPathParserContextPtrWrap(xmlXPathParserContextPtr ctxt); -PyObject * libxml_xmlXPathObjectPtrWrap(xmlXPathObjectPtr obj); -PyObject * libxml_xmlCatalogPtrWrap(xmlCatalogPtr obj); -PyObject * libxml_xmlURIPtrWrap(xmlURIPtr uri); -PyObject * libxml_xmlOutputBufferPtrWrap(xmlOutputBufferPtr buffer); -PyObject * libxml_xmlParserInputBufferPtrWrap(xmlParserInputBufferPtr buffer); -PyObject * libxml_xmlRegexpPtrWrap(xmlRegexpPtr regexp); - -xmlXPathObjectPtr libxml_xmlXPathObjectPtrConvert(PyObject * obj); diff --git a/src/tools/docbook/libxslt/python/libxsl.py b/src/tools/docbook/libxslt/python/libxsl.py deleted file mode 100644 index 56aa8f1c2e..0000000000 --- a/src/tools/docbook/libxslt/python/libxsl.py +++ /dev/null @@ -1,98 +0,0 @@ -# -# Both libxml2mod and libxsltmod have a dependancy on libxml2.so -# and they should share the same module, try to convince the python -# loader to work in that mode if feasible -# -import sys -if not hasattr(sys,'getdlopenflags'): - import libxml2mod - import libxsltmod - import libxml2 -else: - try: - from dl import RTLD_GLOBAL, RTLD_NOW - except ImportError: - RTLD_GLOBAL = -1 - RTLD_NOW = -1 - try: - import os - osname = os.uname()[0] - if osname == 'Linux' or osname == 'SunOS': - RTLD_GLOBAL = 0x00100 - RTLD_NOW = 0x00002 - elif osname == 'Darwin': - RTLD_GLOBAL = 0x8 - RTLD_NOW = 0x2 - # - # is there a better method ? - # -# else: -# print "libxslt could not guess RTLD_GLOBAL and RTLD_NOW " + \ -# "on this platform: %s" % (osname) - except: - pass -# print "libxslt could not guess RTLD_GLOBAL and RTLD_NOW " + \ -# "on this platform: %s" % (osname) - except: - RTLD_GLOBAL = -1 - RTLD_NOW = -1 - - if RTLD_GLOBAL != -1 and RTLD_NOW != -1: - try: - flags = sys.getdlopenflags() - sys.setdlopenflags(RTLD_GLOBAL | RTLD_NOW) - try: - import libxml2mod - import libxsltmod - import libxml2 - finally: - sys.setdlopenflags(flags) - except: - import libxml2mod - import libxsltmod - import libxml2 - else: - import libxml2mod - import libxsltmod - import libxml2 - -class extensionModule: - def _styleInit(self, style, URI): - return self.styleInit(stylesheet(_obj=style), URI) - - def _styleShutdown(self, style, URI, data): - return self.styleShutdown(stylesheet(_obj=style), URI, data) - - def _ctxtInit(self, ctxt, URI): - return self.ctxtInit(transformCtxt(_obj=ctxt), URI) - - def _ctxtShutdown(self, ctxt, URI, data): - return self.ctxtShutdown(transformCtxt(_obj=ctxt), URI, data) - - def styleInit(self, style, URI): - """Callback function when used in a newly compiled stylesheet, - the return value is passed in subsequent calls""" - pass - - def styleShutdown(self, style, URI, data): - """Callback function when a stylesheet using it is destroyed""" - pass - - def ctxtInit(self, ctxt, URI): - """Callback function when used in a new transformation process, - the return value is passed in subsequent calls""" - pass - - def ctxtShutdown(self, ctxt, URI, data): - """Callback function when a transformation using it finishes""" - pass - -def cleanup(): - """Cleanup all libxslt and libxml2 memory allocated""" - libxsltmod.xsltPythonCleanup() - libxml2.cleanupParser() - -# -# Everything below this point is automatically generated -# - diff --git a/src/tools/docbook/libxslt/python/libxslt-py.c b/src/tools/docbook/libxslt/python/libxslt-py.c deleted file mode 100644 index 462dedd057..0000000000 --- a/src/tools/docbook/libxslt/python/libxslt-py.c +++ /dev/null @@ -1,1953 +0,0 @@ -/* Generated */ - -#include -#include "libxslt_wrap.h" -#include "libxslt-py.h" - -PyObject * -libxslt_xsltTransformGetInstruction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltTransformGetInstruction", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = ctxt->inst; - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltParseStylesheetImportedDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xsltStylesheetPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltParseStylesheetImportedDoc", &pyobj_doc, &pyobj_style)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = xsltParseStylesheetImportedDoc(doc, style); - py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltGenerateIdFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xsltGenerateIdFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xsltGenerateIdFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltApplyAttributeSet(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr node; - PyObject *pyobj_node; - xmlNodePtr inst; - PyObject *pyobj_inst; - xmlChar * attributes; - - if (!PyArg_ParseTuple(args, (char *)"OOOz:xsltApplyAttributeSet", &pyobj_ctxt, &pyobj_node, &pyobj_inst, &attributes)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - inst = (xmlNodePtr) PyxmlNode_Get(pyobj_inst); - - xsltApplyAttributeSet(ctxt, node, inst, attributes); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltAttrListTemplateProcess(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlAttrPtr c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr target; - PyObject *pyobj_target; - xmlAttrPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xsltAttrListTemplateProcess", &pyobj_ctxt, &pyobj_target, &pyobj_cur)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - target = (xmlNodePtr) PyxmlNode_Get(pyobj_target); - cur = (xmlAttrPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xsltAttrListTemplateProcess(ctxt, target, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltParseStylesheetAttributeSet(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltParseStylesheetAttributeSet", &pyobj_style, &pyobj_cur)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xsltParseStylesheetAttributeSet(style, cur); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltUnparsedEntityURIFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xsltUnparsedEntityURIFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xsltUnparsedEntityURIFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltMessage(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr node; - PyObject *pyobj_node; - xmlNodePtr inst; - PyObject *pyobj_inst; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xsltMessage", &pyobj_ctxt, &pyobj_node, &pyobj_inst)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - inst = (xmlNodePtr) PyxmlNode_Get(pyobj_inst); - - xsltMessage(ctxt, node, inst); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltCreateRVT(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltCreateRVT", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = xsltCreateRVT(ctxt); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltParseStylesheetProcess(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xsltStylesheetPtr c_retval; - xsltStylesheetPtr ret; - PyObject *pyobj_ret; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltParseStylesheetProcess", &pyobj_ret, &pyobj_doc)) - return(NULL); - ret = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_ret); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xsltParseStylesheetProcess(ret, doc); - py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltGetDebuggerStatus(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - PyObject *py_retval; - int c_retval; - - c_retval = xsltGetDebuggerStatus(); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltStylesheetGetVersion(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltStylesheetGetVersion", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = style->version; - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltXPathGetTransformContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xsltTransformContextPtr c_retval; - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltXPathGetTransformContext", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - c_retval = ctxt->extra; - py_retval = libxslt_xsltTransformContextPtrWrap((xsltTransformContextPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltStylesheetGetImports(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xsltStylesheetPtr c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltStylesheetGetImports", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = style->imports; - py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltAttrTemplateValueProcess(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * str; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xsltAttrTemplateValueProcess", &pyobj_ctxt, &str)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = xsltAttrTemplateValueProcess(ctxt, str); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltNextImport(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xsltStylesheetPtr c_retval; - xsltStylesheetPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltNextImport", &pyobj_cur)) - return(NULL); - cur = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_cur); - - c_retval = xsltNextImport(cur); - py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltFreeCtxtExts(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltFreeCtxtExts", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - xsltFreeCtxtExts(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltNamespaceAlias(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltNamespaceAlias", &pyobj_style, &pyobj_node)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - xsltNamespaceAlias(style, node); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltTransformGetModeURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltTransformGetModeURI", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = ctxt->modeURI; - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltFreeDocuments(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltFreeDocuments", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - xsltFreeDocuments(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltDocumentFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xsltDocumentFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xsltDocumentFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltNewStylesheet(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - PyObject *py_retval; - xsltStylesheetPtr c_retval; - - c_retval = xsltNewStylesheet(); - py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltSetDebuggerStatus(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - int value; - - if (!PyArg_ParseTuple(args, (char *)"i:xsltSetDebuggerStatus", &value)) - return(NULL); - - xsltSetDebuggerStatus(value); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltCopyNamespaceList(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNsPtr c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr node; - PyObject *pyobj_node; - xmlNsPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xsltCopyNamespaceList", &pyobj_ctxt, &pyobj_node, &pyobj_cur)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - cur = (xmlNsPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xsltCopyNamespaceList(ctxt, node, cur); - py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltEvalGlobalVariables(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltEvalGlobalVariables", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = xsltEvalGlobalVariables(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltCleanupGlobals(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xsltCleanupGlobals(); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltParseTemplateContent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - xmlNodePtr templ; - PyObject *pyobj_templ; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltParseTemplateContent", &pyobj_style, &pyobj_templ)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - templ = (xmlNodePtr) PyxmlNode_Get(pyobj_templ); - - xsltParseTemplateContent(style, templ); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltEvalOneUserParam(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * name; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xsltEvalOneUserParam", &pyobj_ctxt, &name, &value)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = xsltEvalOneUserParam(ctxt, name, value); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltUnregisterExtModuleFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * name; - xmlChar * URI; - - if (!PyArg_ParseTuple(args, (char *)"zz:xsltUnregisterExtModuleFunction", &name, &URI)) - return(NULL); - - c_retval = xsltUnregisterExtModuleFunction(name, URI); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltFreeGlobalVariables(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltFreeGlobalVariables", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - xsltFreeGlobalVariables(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltSaveResultToFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - FILE * file; - PyObject *pyobj_file; - xmlDocPtr result; - PyObject *pyobj_result; - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xsltSaveResultToFile", &pyobj_file, &pyobj_result, &pyobj_style)) - return(NULL); - file = (FILE *) PyFile_Get(pyobj_file); - result = (xmlDocPtr) PyxmlNode_Get(pyobj_result); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = xsltSaveResultToFile(file, result, style); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltParseGlobalVariable(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltParseGlobalVariable", &pyobj_style, &pyobj_cur)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xsltParseGlobalVariable(style, cur); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltShutdownExts(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltShutdownExts", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - xsltShutdownExts(style); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltFindElemSpaceHandling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltFindElemSpaceHandling", &pyobj_ctxt, &pyobj_node)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xsltFindElemSpaceHandling(ctxt, node); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltStylesheetGetParent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xsltStylesheetPtr c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltStylesheetGetParent", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = style->parent; - py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltSaveResultToFd(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - int fd; - xmlDocPtr result; - PyObject *pyobj_result; - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"iOO:xsltSaveResultToFd", &fd, &pyobj_result, &pyobj_style)) - return(NULL); - result = (xmlDocPtr) PyxmlNode_Get(pyobj_result); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = xsltSaveResultToFd(fd, result, style); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltCopyNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNsPtr c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr node; - PyObject *pyobj_node; - xmlNsPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xsltCopyNamespace", &pyobj_ctxt, &pyobj_node, &pyobj_cur)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - cur = (xmlNsPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xsltCopyNamespace(ctxt, node, cur); - py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltCalibrateAdjust(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - long delta; - - if (!PyArg_ParseTuple(args, (char *)"i:xsltCalibrateAdjust", &delta)) - return(NULL); - - xsltCalibrateAdjust(delta); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltSaveProfiling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - FILE * output; - PyObject *pyobj_output; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltSaveProfiling", &pyobj_ctxt, &pyobj_output)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - output = (FILE *) PyFile_Get(pyobj_output); - - xsltSaveProfiling(ctxt, output); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltStylesheetGetMethod(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltStylesheetGetMethod", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = style->method; - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltFunctionNodeSet(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xsltFunctionNodeSet", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xsltFunctionNodeSet(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltCleanupTemplates(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltCleanupTemplates", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - xsltCleanupTemplates(style); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltCheckExtPrefix(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - xmlChar * prefix; - - if (!PyArg_ParseTuple(args, (char *)"Oz:xsltCheckExtPrefix", &pyobj_style, &prefix)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = xsltCheckExtPrefix(style, prefix); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltParseStylesheetFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xsltStylesheetPtr c_retval; - xmlChar * filename; - - if (!PyArg_ParseTuple(args, (char *)"z:xsltParseStylesheetFile", &filename)) - return(NULL); - - c_retval = xsltParseStylesheetFile(filename); - py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltElementAvailableFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xsltElementAvailableFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xsltElementAvailableFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltRegisterExtras(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltRegisterExtras", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - xsltRegisterExtras(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltFunctionAvailableFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xsltFunctionAvailableFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xsltFunctionAvailableFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltFormatNumberFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xsltFormatNumberFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xsltFormatNumberFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltEvalTemplateString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr node; - PyObject *pyobj_node; - xmlNodePtr parent; - PyObject *pyobj_parent; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xsltEvalTemplateString", &pyobj_ctxt, &pyobj_node, &pyobj_parent)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - parent = (xmlNodePtr) PyxmlNode_Get(pyobj_parent); - - c_retval = xsltEvalTemplateString(ctxt, node, parent); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltGetNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xmlNodePtr node; - PyObject *pyobj_node; - xmlChar * name; - xmlChar * nameSpace; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xsltGetNsProp", &pyobj_node, &name, &nameSpace)) - return(NULL); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xsltGetNsProp(node, name, nameSpace); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltAddKey(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - xmlChar * name; - xmlChar * nameURI; - xmlChar * match; - xmlChar * use; - xmlNodePtr inst; - PyObject *pyobj_inst; - - if (!PyArg_ParseTuple(args, (char *)"OzzzzO:xsltAddKey", &pyobj_style, &name, &nameURI, &match, &use, &pyobj_inst)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - inst = (xmlNodePtr) PyxmlNode_Get(pyobj_inst); - - c_retval = xsltAddKey(style, name, nameURI, match, use, inst); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltRegisterAllFunctions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltRegisterAllFunctions", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); - - xsltRegisterAllFunctions(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltAttrTemplateValueProcessNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * str; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *)"OzO:xsltAttrTemplateValueProcessNode", &pyobj_ctxt, &str, &pyobj_node)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xsltAttrTemplateValueProcessNode(ctxt, str, node); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltSystemPropertyFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xsltSystemPropertyFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xsltSystemPropertyFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltUnregisterExtModuleTopLevel(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * name; - xmlChar * URI; - - if (!PyArg_ParseTuple(args, (char *)"zz:xsltUnregisterExtModuleTopLevel", &name, &URI)) - return(NULL); - - c_retval = xsltUnregisterExtModuleTopLevel(name, URI); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltParseStylesheetImport(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltParseStylesheetImport", &pyobj_style, &pyobj_cur)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xsltParseStylesheetImport(style, cur); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltXPathParserGetContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathContextPtr c_retval; - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltXPathParserGetContext", &pyobj_ctxt)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - c_retval = ctxt->context; - py_retval = libxml_xmlXPathContextPtrWrap((xmlXPathContextPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltAllocateExtraCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltAllocateExtraCtxt", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = xsltAllocateExtraCtxt(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltTransformGetContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathContextPtr c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltTransformGetContext", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = ctxt->xpathCtxt; - py_retval = libxml_xmlXPathContextPtrWrap((xmlXPathContextPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltRegisterTestModule(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xsltRegisterTestModule(); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltFreeKeys(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltFreeKeys", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - xsltFreeKeys(style); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltParseStylesheetVariable(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltParseStylesheetVariable", &pyobj_ctxt, &pyobj_cur)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xsltParseStylesheetVariable(ctxt, cur); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltGetSpecialNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNsPtr c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - xmlChar * URI; - xmlChar * prefix; - xmlNodePtr out; - PyObject *pyobj_out; - - if (!PyArg_ParseTuple(args, (char *)"OOzzO:xsltGetSpecialNamespace", &pyobj_ctxt, &pyobj_cur, &URI, &prefix, &pyobj_out)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - out = (xmlNodePtr) PyxmlNode_Get(pyobj_out); - - c_retval = xsltGetSpecialNamespace(ctxt, cur, URI, prefix, out); - py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltLoadStylesheetPI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xsltStylesheetPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltLoadStylesheetPI", &pyobj_doc)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xsltLoadStylesheetPI(doc); - py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltStylesheetGetDoctypePublic(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltStylesheetGetDoctypePublic", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = style->doctypePublic; - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltAllocateExtra(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltAllocateExtra", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = xsltAllocateExtra(style); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltAttrTemplateProcess(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlAttrPtr c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr target; - PyObject *pyobj_target; - xmlAttrPtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xsltAttrTemplateProcess", &pyobj_ctxt, &pyobj_target, &pyobj_cur)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - target = (xmlNodePtr) PyxmlNode_Get(pyobj_target); - cur = (xmlAttrPtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xsltAttrTemplateProcess(ctxt, target, cur); - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltNeedElemSpaceHandling(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltNeedElemSpaceHandling", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = xsltNeedElemSpaceHandling(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltTransformGetOutputDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltTransformGetOutputDoc", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = ctxt->output; - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltInitCtxtExts(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltInitCtxtExts", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = xsltInitCtxtExts(ctxt); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltStylesheetGetEncoding(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltStylesheetGetEncoding", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = style->encoding; - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltTransformGetMode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltTransformGetMode", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = ctxt->mode; - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltTransformGetOutputURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const char * c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltTransformGetOutputURI", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = ctxt->outputFile; - py_retval = libxml_charPtrConstWrap((const char *) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltFreeExts(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltFreeExts", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - xsltFreeExts(style); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltParseGlobalParam(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltParseGlobalParam", &pyobj_style, &pyobj_cur)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xsltParseGlobalParam(style, cur); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltParseStylesheetParam(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltParseStylesheetParam", &pyobj_ctxt, &pyobj_cur)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xsltParseStylesheetParam(ctxt, cur); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltParseStylesheetOutput(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltParseStylesheetOutput", &pyobj_style, &pyobj_cur)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - xsltParseStylesheetOutput(style, cur); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltFreeStylePreComps(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltFreeStylePreComps", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - xsltFreeStylePreComps(style); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltFreeNamespaceAliasHashes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltFreeNamespaceAliasHashes", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - xsltFreeNamespaceAliasHashes(style); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltShutdownCtxtExts(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltShutdownCtxtExts", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - xsltShutdownCtxtExts(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltGetPlainNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNsPtr c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - xmlNsPtr ns; - PyObject *pyobj_ns; - xmlNodePtr out; - PyObject *pyobj_out; - - if (!PyArg_ParseTuple(args, (char *)"OOOO:xsltGetPlainNamespace", &pyobj_ctxt, &pyobj_cur, &pyobj_ns, &pyobj_out)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns); - out = (xmlNodePtr) PyxmlNode_Get(pyobj_out); - - c_retval = xsltGetPlainNamespace(ctxt, cur, ns, out); - py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltQuoteOneUserParam(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * name; - xmlChar * value; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xsltQuoteOneUserParam", &pyobj_ctxt, &name, &value)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = xsltQuoteOneUserParam(ctxt, name, value); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltUnregisterExtModule(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * URI; - - if (!PyArg_ParseTuple(args, (char *)"z:xsltUnregisterExtModule", &URI)) - return(NULL); - - c_retval = xsltUnregisterExtModule(URI); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltTransformGetInsertNode(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltTransformGetInsertNode", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = ctxt->insert; - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltStylesheetGetNext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xsltStylesheetPtr c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltStylesheetGetNext", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = style->next; - py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltUnregisterExtModuleElement(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * name; - xmlChar * URI; - - if (!PyArg_ParseTuple(args, (char *)"zz:xsltUnregisterExtModuleElement", &name, &URI)) - return(NULL); - - c_retval = xsltUnregisterExtModuleElement(name, URI); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltTimestamp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - PyObject *py_retval; - long c_retval; - - c_retval = xsltTimestamp(); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltParseStylesheetInclude(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - xmlNodePtr cur; - PyObject *pyobj_cur; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltParseStylesheetInclude", &pyobj_style, &pyobj_cur)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - - c_retval = xsltParseStylesheetInclude(style, cur); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltFreeTemplateHashes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltFreeTemplateHashes", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - xsltFreeTemplateHashes(style); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltSaveResultToFilename(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - char * URL; - xmlDocPtr result; - PyObject *pyobj_result; - xsltStylesheetPtr style; - PyObject *pyobj_style; - int compression; - - if (!PyArg_ParseTuple(args, (char *)"zOOi:xsltSaveResultToFilename", &URL, &pyobj_result, &pyobj_style, &compression)) - return(NULL); - result = (xmlDocPtr) PyxmlNode_Get(pyobj_result); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = xsltSaveResultToFilename(URL, result, style, compression); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltSetCtxtParseOptions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - int options; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xsltSetCtxtParseOptions", &pyobj_ctxt, &options)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = xsltSetCtxtParseOptions(ctxt, options); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltGetProfileInformation(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltGetProfileInformation", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = xsltGetProfileInformation(ctxt); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltFreeStyleDocuments(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltFreeStyleDocuments", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - xsltFreeStyleDocuments(style); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltRegisterPersistRVT(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr RVT; - PyObject *pyobj_RVT; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltRegisterPersistRVT", &pyobj_ctxt, &pyobj_RVT)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - RVT = (xmlDocPtr) PyxmlNode_Get(pyobj_RVT); - - c_retval = xsltRegisterPersistRVT(ctxt, RVT); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltResolveStylesheetAttributeSet(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltResolveStylesheetAttributeSet", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - xsltResolveStylesheetAttributeSet(style); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltGetNamespace(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNsPtr c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr cur; - PyObject *pyobj_cur; - xmlNsPtr ns; - PyObject *pyobj_ns; - xmlNodePtr out; - PyObject *pyobj_out; - - if (!PyArg_ParseTuple(args, (char *)"OOOO:xsltGetNamespace", &pyobj_ctxt, &pyobj_cur, &pyobj_ns, &pyobj_out)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - cur = (xmlNodePtr) PyxmlNode_Get(pyobj_cur); - ns = (xmlNsPtr) PyxmlNode_Get(pyobj_ns); - out = (xmlNodePtr) PyxmlNode_Get(pyobj_out); - - c_retval = xsltGetNamespace(ctxt, cur, ns, out); - py_retval = libxml_xmlNsPtrWrap((xmlNsPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltEvalAttrValueTemplate(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr node; - PyObject *pyobj_node; - xmlChar * name; - xmlChar * ns; - - if (!PyArg_ParseTuple(args, (char *)"OOzz:xsltEvalAttrValueTemplate", &pyobj_ctxt, &pyobj_node, &name, &ns)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xsltEvalAttrValueTemplate(ctxt, node, name, ns); - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltTransformGetCurrent(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlNodePtr c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltTransformGetCurrent", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = ctxt->node; - py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltRegisterTmpRVT(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlDocPtr RVT; - PyObject *pyobj_RVT; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltRegisterTmpRVT", &pyobj_ctxt, &pyobj_RVT)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - RVT = (xmlDocPtr) PyxmlNode_Get(pyobj_RVT); - - c_retval = xsltRegisterTmpRVT(ctxt, RVT); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltPrintErrorContext(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xsltStylesheetPtr style; - PyObject *pyobj_style; - xmlNodePtr node; - PyObject *pyobj_node; - - if (!PyArg_ParseTuple(args, (char *)"OOO:xsltPrintErrorContext", &pyobj_ctxt, &pyobj_style, &pyobj_node)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - xsltPrintErrorContext(ctxt, style, node); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltStylesheetGetDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltStylesheetGetDoc", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = style->doc; - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltGetCNsProp(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - xmlNodePtr node; - PyObject *pyobj_node; - xmlChar * name; - xmlChar * nameSpace; - - if (!PyArg_ParseTuple(args, (char *)"OOzz:xsltGetCNsProp", &pyobj_style, &pyobj_node, &name, &nameSpace)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - - c_retval = xsltGetCNsProp(style, node, name, nameSpace); - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltDebugDumpExtensions(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - FILE * output; - PyObject *pyobj_output; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltDebugDumpExtensions", &pyobj_output)) - return(NULL); - output = (FILE *) PyFile_Get(pyobj_output); - - xsltDebugDumpExtensions(output); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltStylePreCompute(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - xmlNodePtr inst; - PyObject *pyobj_inst; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltStylePreCompute", &pyobj_style, &pyobj_inst)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - inst = (xmlNodePtr) PyxmlNode_Get(pyobj_inst); - - xsltStylePreCompute(style, inst); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltFreeStylesheet(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr sheet; - PyObject *pyobj_sheet; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltFreeStylesheet", &pyobj_sheet)) - return(NULL); - sheet = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_sheet); - - xsltFreeStylesheet(sheet); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltFreeAttributeSetsHashes(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltFreeAttributeSetsHashes", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - xsltFreeAttributeSetsHashes(style); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltRegisterAllExtras(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xsltRegisterAllExtras(); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltTransformGetStyle(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xsltStylesheetPtr c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltTransformGetStyle", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = ctxt->style; - py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltCompileAttr(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltStylesheetPtr style; - PyObject *pyobj_style; - xmlAttrPtr attr; - PyObject *pyobj_attr; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltCompileAttr", &pyobj_style, &pyobj_attr)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - attr = (xmlAttrPtr) PyxmlNode_Get(pyobj_attr); - - xsltCompileAttr(style, attr); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltFreeRVTs(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltFreeRVTs", &pyobj_ctxt)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - xsltFreeRVTs(ctxt); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltIsBlank(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xmlChar * str; - - if (!PyArg_ParseTuple(args, (char *)"z:xsltIsBlank", &str)) - return(NULL); - - c_retval = xsltIsBlank(str); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltStylesheetGetDoctypeSystem(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - const xmlChar * c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltStylesheetGetDoctypeSystem", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = style->doctypeSystem; - py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltDebug(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlNodePtr node; - PyObject *pyobj_node; - xmlNodePtr inst; - PyObject *pyobj_inst; - xsltStylePreCompPtr comp; - PyObject *pyobj_comp; - - if (!PyArg_ParseTuple(args, (char *)"OOOO:xsltDebug", &pyobj_ctxt, &pyobj_node, &pyobj_inst, &pyobj_comp)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); - inst = (xmlNodePtr) PyxmlNode_Get(pyobj_inst); - comp = (xsltStylePreCompPtr) PycompiledStyle_Get(pyobj_comp); - - xsltDebug(ctxt, node, inst, comp); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltStylesheetGetMethodURI(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlChar * c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltStylesheetGetMethodURI", &pyobj_style)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = style->methodURI; - py_retval = libxml_xmlCharPtrWrap((xmlChar *) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltParseStylesheetDoc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xsltStylesheetPtr c_retval; - xmlDocPtr doc; - PyObject *pyobj_doc; - - if (!PyArg_ParseTuple(args, (char *)"O:xsltParseStylesheetDoc", &pyobj_doc)) - return(NULL); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xsltParseStylesheetDoc(doc); - py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xsltKeyFunction(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - xmlXPathParserContextPtr ctxt; - PyObject *pyobj_ctxt; - int nargs; - - if (!PyArg_ParseTuple(args, (char *)"Oi:xsltKeyFunction", &pyobj_ctxt, &nargs)) - return(NULL); - ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt); - - xsltKeyFunction(ctxt, nargs); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltRegisterExtPrefix(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - int c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - xmlChar * prefix; - xmlChar * URI; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xsltRegisterExtPrefix", &pyobj_style, &prefix, &URI)) - return(NULL); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - c_retval = xsltRegisterExtPrefix(style, prefix, URI); - py_retval = libxml_intWrap((int) c_retval); - return(py_retval); -} - -PyObject * -libxslt_xslDropCall(PyObject *self ATTRIBUTE_UNUSED, PyObject *args ATTRIBUTE_UNUSED) { - - xslDropCall(); - Py_INCREF(Py_None); - return(Py_None); -} - -PyObject * -libxslt_xsltVariableLookup(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlXPathObjectPtr c_retval; - xsltTransformContextPtr ctxt; - PyObject *pyobj_ctxt; - xmlChar * name; - xmlChar * ns_uri; - - if (!PyArg_ParseTuple(args, (char *)"Ozz:xsltVariableLookup", &pyobj_ctxt, &name, &ns_uri)) - return(NULL); - ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt); - - c_retval = xsltVariableLookup(ctxt, name, ns_uri); - py_retval = libxml_xmlXPathObjectPtrWrap((xmlXPathObjectPtr) c_retval); - return(py_retval); -} - diff --git a/src/tools/docbook/libxslt/python/libxslt-python-api.xml b/src/tools/docbook/libxslt/python/libxslt-python-api.xml deleted file mode 100644 index 4c411af671..0000000000 --- a/src/tools/docbook/libxslt/python/libxslt-python-api.xml +++ /dev/null @@ -1,184 +0,0 @@ - - - - - - - - - Have the stylesheet serialize the result of a transformation to a python string - - - - - - Apply the stylesheet to the document - - - - - - - Register a Python written function to for error reporting. The function is called back as f(ctx, error). - - - - - - Register a Python written element to the XSLT engine - - - - - - - - Register a Python written function to the XSLT engine - - - - - - - Register a Python written extension class to the XSLT engine - - - - - - Cleanup just libxslt (not libxml2) memory allocated - - - - - Get the xpathContext from an xpathParserContext - - - - - - Get the transformation context from an xpathContext - - - - - - Get the stylesheet from a transformation - - - - - Get the current() node of a transformation - - - - - Get the output document of a transformation - - - - - Get the output URI of a transformation if known - - - - - Get the insertion node in the output document - - - - - Get the instruction node in the stylesheet - - - - - Get the mode of a transformation - - - - - Get the mode URI of a transformation - - - - - Get the XPath context of a transformation - - - - - Get the private field of a transformation - - - - - Set the private field of a transformation - - - - - - - Get the parent of a stylesheet - - - - - Get the next sibling of a stylesheet - - - - - Get the imports of a stylesheet - - - - - Get the document of a stylesheet - - - - - Get the output method of a stylesheet - - - - - Get the output method URI of a stylesheet - - - - - Get the output version of a stylesheet - - - - - Get the output encoding of a stylesheet - - - - - Get the output PUBLIC of a stylesheet - - - - - Get the output SYSTEM of a stylesheet - - - - - Get the private field of a stylesheet - - - - - Set the private field of a stylesheet - - - - - - diff --git a/src/tools/docbook/libxslt/python/libxslt.c b/src/tools/docbook/libxslt/python/libxslt.c deleted file mode 100644 index 6433626e25..0000000000 --- a/src/tools/docbook/libxslt/python/libxslt.c +++ /dev/null @@ -1,902 +0,0 @@ -/* - libxslt.c: this modules implements the main part of the glue of the - * libxslt library and the Python interpreter. It provides the - * entry points where an automatically generated stub is either - * unpractical or would not match cleanly the Python model. - * - * If compiled with MERGED_MODULES, the entry point will be used to - * initialize both the libxml2 and the libxslt wrappers - * - * See Copyright for the status of this software. - * - * daniel@veillard.com - */ -#include -/* #include "config.h" */ -#include -#include -#include -#include "libexslt/exslt.h" -#include "libxslt_wrap.h" -#include "libxslt-py.h" - -#if (defined(_MSC_VER) || defined(__MINGW32__)) && !defined(vsnprintf) -#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a) -#elif defined(XSLT_NEED_TRIO) -#include "trio.h" -#define vsnprintf trio_vsnprintf -#endif - -/* #define DEBUG */ -/* #define DEBUG_XPATH */ -/* #define DEBUG_ERROR */ -/* #define DEBUG_MEMORY */ -/* #define DEBUG_EXTENSIONS */ -/* #define DEBUG_EXTENSIONS */ - -void initlibxsltmod(void); - -/************************************************************************ - * * - * Per type specific glue * - * * - ************************************************************************/ - -PyObject * -libxslt_xsltStylesheetPtrWrap(xsltStylesheetPtr style) { - PyObject *ret; - -#ifdef DEBUG - printf("libxslt_xsltStylesheetPtrWrap: style = %p\n", style); -#endif - if (style == NULL) { - Py_INCREF(Py_None); - return(Py_None); - } - ret = PyCObject_FromVoidPtrAndDesc((void *) style, - (char *)"xsltStylesheetPtr", NULL); - return(ret); -} - -PyObject * -libxslt_xsltTransformContextPtrWrap(xsltTransformContextPtr ctxt) { - PyObject *ret; - -#ifdef DEBUG - printf("libxslt_xsltTransformContextPtrWrap: ctxt = %p\n", ctxt); -#endif - if (ctxt == NULL) { - Py_INCREF(Py_None); - return(Py_None); - } - ret = PyCObject_FromVoidPtrAndDesc((void *) ctxt, - (char *)"xsltTransformContextPtr", NULL); - return(ret); -} - -PyObject * -libxslt_xsltElemPreCompPtrWrap(xsltElemPreCompPtr ctxt) { - PyObject *ret; - -#ifdef DEBUG - printf("libxslt_xsltElemPreCompPtrWrap: ctxt = %p\n", ctxt); -#endif - if (ctxt == NULL) { - Py_INCREF(Py_None); - return(Py_None); - } - ret = PyCObject_FromVoidPtrAndDesc((void *) ctxt, - (char *)"xsltElemPreCompPtr", NULL); - return(ret); -} - -/************************************************************************ - * * - * Extending the API * - * * - ************************************************************************/ - -static xmlHashTablePtr libxslt_extModuleFunctions = NULL; -static xmlHashTablePtr libxslt_extModuleElements = NULL; -static xmlHashTablePtr libxslt_extModuleElementPreComp = NULL; - -static void -deallocateCallback(void *payload, xmlChar *name ATTRIBUTE_UNUSED) { - PyObject *function = (PyObject *) payload; - -#ifdef DEBUG_EXTENSIONS - printf("deallocateCallback(%s) called\n", name); -#endif - - Py_XDECREF(function); -} - -static void -deallocateClasse(void *payload, xmlChar *name ATTRIBUTE_UNUSED) { - PyObject *class = (PyObject *) payload; - -#ifdef DEBUG_EXTENSIONS - printf("deallocateClasse(%s) called\n", name); -#endif - - Py_XDECREF(class); -} - - -/** - * libxslt_xsltElementPreCompCallback - * @style: the stylesheet - * @inst: the instruction in the stylesheet - * - * Callback for preprocessing of a custom element - */ -static xsltElemPreCompPtr -libxslt_xsltElementPreCompCallback(xsltStylesheetPtr style, xmlNodePtr inst, - xsltTransformFunction function) { - xsltElemPreCompPtr ret; - const xmlChar *name; - PyObject *args; - PyObject *result; - PyObject *pyobj_element_f; - PyObject *pyobj_precomp_f; - - const xmlChar *ns_uri; - - -#ifdef DEBUG_EXTENSIONS - printf("libxslt_xsltElementPreCompCallback called\n"); -#endif - - if (style == NULL) { - xsltTransformError(NULL, NULL, inst, - "libxslt_xsltElementPreCompCallback: no transformation context\n"); - return (NULL); - } - - if (inst == NULL) { - xsltTransformError(NULL, style, inst, - "libxslt_xsltElementPreCompCallback: no instruction\n"); - if (style != NULL) style->errors++; - return (NULL); - } - - if (style == NULL) - return (NULL); - - if (inst != NULL && inst->ns != NULL) { - name = inst->name; - ns_uri = inst->ns->href; - } else { - xsltTransformError(NULL, style, inst, - "libxslt_xsltElementPreCompCallback: internal error bad parameter\n"); - printf("libxslt_xsltElementPreCompCallback: internal error bad parameter\n"); - if (style != NULL) style->errors++; - return (NULL); - } - - /* - * Find the functions, they should be there it was there at lookup - */ - pyobj_precomp_f = xmlHashLookup2(libxslt_extModuleElementPreComp, - name, ns_uri); - if (pyobj_precomp_f == NULL) { - xsltTransformError(NULL, style, inst, - "libxslt_xsltElementPreCompCallback: internal error, could not find precompile python function!\n"); - if (style != NULL) style->errors++; - return (NULL); - } - - pyobj_element_f = xmlHashLookup2(libxslt_extModuleElements, - name, ns_uri); - if (pyobj_element_f == NULL) { - xsltTransformError(NULL, style, inst, - "libxslt_xsltElementPreCompCallback: internal error, could not find element python function!\n"); - if (style != NULL) style->errors++; - return (NULL); - } - - args = Py_BuildValue((char *)"(OOO)", - libxslt_xsltStylesheetPtrWrap(style), - libxml_xmlNodePtrWrap(inst), - pyobj_element_f); - - Py_INCREF(pyobj_precomp_f); /* Protect refcount against reentrant manipulation of callback hash */ - result = PyEval_CallObject(pyobj_precomp_f, args); - Py_DECREF(pyobj_precomp_f); - Py_DECREF(args); - - /* FIXME allow callbacks to return meaningful information to modify compile process */ - /* If error, do we need to check the result and throw exception? */ - - Py_XDECREF(result); - - ret = xsltNewElemPreComp (style, inst, function); - return (ret); -} - - -static void -libxslt_xsltElementTransformCallback(xsltTransformContextPtr ctxt, - xmlNodePtr node, - xmlNodePtr inst, - xsltElemPreCompPtr comp) -{ - PyObject *args, *result; - PyObject *func = NULL; - const xmlChar *name; - const xmlChar *ns_uri; - - if (ctxt == NULL) - return; - - if (inst != NULL && inst->name != NULL && inst->ns != NULL && inst->ns->href != NULL) { - name = inst->name; - ns_uri = inst->ns->href; - } else { - printf("libxslt_xsltElementTransformCallback: internal error bad parameter\n"); - return; - } - -#ifdef DEBUG_EXTENSIONS - printf("libxslt_xsltElementTransformCallback called name %s URI %s\n", name, ns_uri); -#endif - - /* - * Find the function, it should be there it was there at lookup - */ - func = xmlHashLookup2(libxslt_extModuleElements, - name, ns_uri); - if (func == NULL) { - printf("libxslt_xsltElementTransformCallback: internal error %s not found !\n", - name); - return; - } - - args = Py_BuildValue((char *)"OOOO", - libxslt_xsltTransformContextPtrWrap(ctxt), - libxml_xmlNodePtrWrap(node), - libxml_xmlNodePtrWrap(inst), - libxslt_xsltElemPreCompPtrWrap(comp)); - - Py_INCREF(func); /* Protect refcount against reentrant manipulation of callback hash */ - result = PyEval_CallObject(func, args); - Py_DECREF(func); - Py_DECREF(args); - - /* FIXME Check result of callobject and set exception if fail */ - - Py_XDECREF(result); -} - -PyObject * -libxslt_xsltRegisterExtModuleElement(PyObject *self ATTRIBUTE_UNUSED, - PyObject *args) { - PyObject *py_retval; - int ret = 0; - xmlChar *name; - xmlChar *ns_uri; - PyObject *pyobj_element_f; - PyObject *pyobj_precomp_f; - -#ifdef DEBUG_EXTENSIONS - printf("libxslt_xsltRegisterExtModuleElement called\n", - name, ns_uri); -#endif - - if (!PyArg_ParseTuple(args, (char *)"szOO:registerExtModuleElement", - &name, &ns_uri, &pyobj_precomp_f, &pyobj_element_f)) - return(NULL); - - if ((name == NULL) || (pyobj_element_f == NULL) || (pyobj_precomp_f == NULL)) { - py_retval = libxml_intWrap(-1); - return(py_retval); - } - -#ifdef DEBUG_EXTENSIONS - printf("libxslt_xsltRegisterExtModuleElement(%s, %s) called\n", - name, ns_uri); -#endif - - if (libxslt_extModuleElements == NULL) - libxslt_extModuleElements = xmlHashCreate(10); - - if (libxslt_extModuleElementPreComp == NULL) - libxslt_extModuleElementPreComp = xmlHashCreate(10); - - if (libxslt_extModuleElements == NULL || libxslt_extModuleElementPreComp == NULL) { - py_retval = libxml_intWrap(-1); - return(py_retval); - } - - ret = xmlHashAddEntry2(libxslt_extModuleElements, name, ns_uri, pyobj_element_f); - if (ret != 0) { - py_retval = libxml_intWrap(-1); - return(py_retval); - } - Py_XINCREF(pyobj_element_f); - - ret = xmlHashAddEntry2(libxslt_extModuleElementPreComp, name, ns_uri, pyobj_precomp_f); - if (ret != 0) { - xmlHashRemoveEntry2(libxslt_extModuleElements, name, ns_uri, deallocateCallback); - py_retval = libxml_intWrap(-1); - return(py_retval); - } - Py_XINCREF(pyobj_precomp_f); - - ret = xsltRegisterExtModuleElement(name, ns_uri, - libxslt_xsltElementPreCompCallback, - libxslt_xsltElementTransformCallback); - py_retval = libxml_intWrap((int) ret); - return(py_retval); -} -static void -libxslt_xmlXPathFuncCallback(xmlXPathParserContextPtr ctxt, int nargs) { - PyObject *list, *cur, *result; - xmlXPathObjectPtr obj; - xmlXPathContextPtr rctxt; - PyObject *current_function = NULL; - const xmlChar *name; - const xmlChar *ns_uri; - int i; - - if (ctxt == NULL) - return; - rctxt = ctxt->context; - if (rctxt == NULL) - return; - name = rctxt->function; - ns_uri = rctxt->functionURI; -#ifdef DEBUG_XPATH - printf("libxslt_xmlXPathFuncCallback called name %s URI %s\n", name, ns_uri); -#endif - - /* - * Find the function, it should be there it was there at lookup - */ - current_function = xmlHashLookup2(libxslt_extModuleFunctions, - name, ns_uri); - if (current_function == NULL) { - printf("libxslt_xmlXPathFuncCallback: internal error %s not found !\n", - name); - return; - } - - list = PyTuple_New(nargs + 1); - PyTuple_SetItem(list, 0, libxml_xmlXPathParserContextPtrWrap(ctxt)); - for (i = nargs - 1;i >= 0;i--) { - obj = valuePop(ctxt); - cur = libxml_xmlXPathObjectPtrWrap(obj); - PyTuple_SetItem(list, i + 1, cur); - } - - Py_INCREF(current_function); - result = PyEval_CallObject(current_function, list); - Py_DECREF(current_function); - Py_DECREF(list); - - /* Check for null in case of exception */ - if (result != NULL) { - obj = libxml_xmlXPathObjectPtrConvert(result); - valuePush(ctxt, obj); - } -} - -PyObject * -libxslt_xsltRegisterExtModuleFunction(PyObject *self ATTRIBUTE_UNUSED, - PyObject *args) { - PyObject *py_retval; - int ret = 0; - xmlChar *name; - xmlChar *ns_uri; - PyObject *pyobj_f; - - if (!PyArg_ParseTuple(args, (char *)"szO:registerExtModuleFunction", - &name, &ns_uri, &pyobj_f)) - return(NULL); - - if ((name == NULL) || (pyobj_f == NULL)) { - py_retval = libxml_intWrap(-1); - return(py_retval); - } - -#ifdef DEBUG_XPATH - printf("libxslt_xsltRegisterExtModuleFunction(%s, %s) called\n", - name, ns_uri); -#endif - - if (libxslt_extModuleFunctions == NULL) - libxslt_extModuleFunctions = xmlHashCreate(10); - if (libxslt_extModuleFunctions == NULL) { - py_retval = libxml_intWrap(-1); - return(py_retval); - } - ret = xmlHashAddEntry2(libxslt_extModuleFunctions, name, ns_uri, pyobj_f); - if (ret != 0) { - py_retval = libxml_intWrap(-1); - return(py_retval); - } - Py_XINCREF(pyobj_f); - - ret = xsltRegisterExtModuleFunction(name, ns_uri, - libxslt_xmlXPathFuncCallback); - py_retval = libxml_intWrap((int) ret); - return(py_retval); -} - -/************************************************************************ - * * - * Some customized front-ends * - * * - ************************************************************************/ - -PyObject * -libxslt_xsltApplyStylesheet(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; - xmlDocPtr c_retval; - xsltStylesheetPtr style; - PyObject *pyobj_style; - xmlDocPtr doc; - PyObject *pyobj_doc; - PyObject *pyobj_params; - const char **params = NULL; - int len = 0, i = 0, j; - PyObject *name; - PyObject *value; - - if (!PyArg_ParseTuple(args, (char *) "OOO:xsltApplyStylesheet", - &pyobj_style, &pyobj_doc, &pyobj_params)) - return(NULL); - - if (pyobj_params != Py_None) { - if (PyDict_Check(pyobj_params)) { - len = PyDict_Size(pyobj_params); - if (len > 0) { - params = (const char **) xmlMalloc((len + 1) * 2 * - sizeof(char *)); - if (params == NULL) { - printf("libxslt_xsltApplyStylesheet: out of memory\n"); - Py_INCREF(Py_None); - return(Py_None); - } - j = 0; - while (PyDict_Next(pyobj_params, &i, &name, &value)) { - const char *tmp; - int size; - - tmp = PyString_AS_STRING(name); - size = PyString_GET_SIZE(name); - params[j * 2] = (char *) xmlCharStrndup(tmp, size); - if (PyString_Check(value)) { - tmp = PyString_AS_STRING(value); - size = PyString_GET_SIZE(value); - params[(j * 2) + 1] = (char *) - xmlCharStrndup(tmp, size); - } else { - params[(j * 2) + 1] = NULL; - } - j = j + 1; - } - params[j * 2] = NULL; - params[(j * 2) + 1] = NULL; - } - } else { - printf("libxslt_xsltApplyStylesheet: parameters not a dict\n"); - Py_INCREF(Py_None); - return(Py_None); - } - } - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - doc = (xmlDocPtr) PyxmlNode_Get(pyobj_doc); - - c_retval = xsltApplyStylesheet(style, doc, params); - py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval); - if (params != NULL) { - if (len > 0) { - for (i = 0;i < 2 * len;i++) { - if (params[i] != NULL) - xmlFree((char *)params[i]); - } - xmlFree(params); - } - } - return(py_retval); -} - -PyObject * -libxslt_xsltSaveResultToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { - PyObject *py_retval; /* our final return value, a python string */ - xmlChar *buffer; - int size = 0; - int emitted = 0; - xmlDocPtr result; - PyObject *pyobj_result; - xsltStylesheetPtr style; - PyObject *pyobj_style; - - if (!PyArg_ParseTuple(args, (char *)"OO:xsltSaveResultToString", &pyobj_style, &pyobj_result)) - goto FAIL; - result = (xmlDocPtr) PyxmlNode_Get(pyobj_result); - style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style); - - - /* FIXME: We should probably add more restrictive error checking - * and raise an error instead of "just" returning NULL. - * FIXME: Documentation and code for xsltSaveResultToString diff - * -> emmitted will never be positive non-null. - */ - emitted = xsltSaveResultToString(&buffer, &size, result, style); - if(!buffer || emitted < 0) - goto FAIL; - /* We haven't tested the aberrant case of a transformation that - * renders to an empty string. For now we try to play it save. - */ - if(size) - { - buffer[size] = '\0'; - py_retval = PyString_FromString((char *) buffer); - xmlFree(buffer); - } - else - py_retval = PyString_FromString(""); - return(py_retval); - FAIL: - return(0); -} - - -/************************************************************************ - * * - * Error message callback * - * * - ************************************************************************/ - -static PyObject *libxslt_xsltPythonErrorFuncHandler = NULL; -static PyObject *libxslt_xsltPythonErrorFuncCtxt = NULL; - -static void -libxslt_xsltErrorFuncHandler(void *ctx ATTRIBUTE_UNUSED, const char *msg, - ...) -{ - int size; - int chars; - char *larger; - va_list ap; - char *str; - PyObject *list; - PyObject *message; - PyObject *result; - -#ifdef DEBUG_ERROR - printf("libxslt_xsltErrorFuncHandler(%p, %s, ...) called\n", ctx, msg); -#endif - - - if (libxslt_xsltPythonErrorFuncHandler == NULL) { - va_start(ap, msg); - vfprintf(stderr, msg, ap); - va_end(ap); - } else { - str = (char *) xmlMalloc(150); - if (str == NULL) - return; - - size = 150; - - while (1) { - va_start(ap, msg); - chars = vsnprintf(str, size, msg, ap); - va_end(ap); - if ((chars > -1) && (chars < size)) - break; - if (chars > -1) - size += chars + 1; - else - size += 100; - if ((larger = (char *) xmlRealloc(str, size)) == NULL) { - xmlFree(str); - return; - } - str = larger; - } - - list = PyTuple_New(2); - PyTuple_SetItem(list, 0, libxslt_xsltPythonErrorFuncCtxt); - Py_XINCREF(libxslt_xsltPythonErrorFuncCtxt); - message = libxml_charPtrWrap(str); - PyTuple_SetItem(list, 1, message); - result = PyEval_CallObject(libxslt_xsltPythonErrorFuncHandler, list); - Py_XDECREF(list); - Py_XDECREF(result); - } -} - -static void -libxslt_xsltErrorInitialize(void) -{ -#ifdef DEBUG_ERROR - printf("libxslt_xsltErrorInitialize() called\n"); -#endif - xmlSetGenericErrorFunc(NULL, libxslt_xsltErrorFuncHandler); - xsltSetGenericErrorFunc(NULL, libxslt_xsltErrorFuncHandler); -} - -PyObject * -libxslt_xsltRegisterErrorHandler(PyObject * self ATTRIBUTE_UNUSED, - PyObject * args) -{ - PyObject *py_retval; - PyObject *pyobj_f; - PyObject *pyobj_ctx; - - if (!PyArg_ParseTuple - (args, (char *) "OO:xmlRegisterErrorHandler", &pyobj_f, - &pyobj_ctx)) - return (NULL); - -#ifdef DEBUG_ERROR - printf("libxml_registerXPathFunction(%p, %p) called\n", pyobj_ctx, - pyobj_f); -#endif - - if (libxslt_xsltPythonErrorFuncHandler != NULL) { - Py_XDECREF(libxslt_xsltPythonErrorFuncHandler); - } - if (libxslt_xsltPythonErrorFuncCtxt != NULL) { - Py_XDECREF(libxslt_xsltPythonErrorFuncCtxt); - } - - Py_XINCREF(pyobj_ctx); - Py_XINCREF(pyobj_f); - - /* TODO: check f is a function ! */ - libxslt_xsltPythonErrorFuncHandler = pyobj_f; - libxslt_xsltPythonErrorFuncCtxt = pyobj_ctx; - - py_retval = libxml_intWrap(1); - return (py_retval); -} - -/************************************************************************ - * * - * Extension classes * - * * - ************************************************************************/ - -static xmlHashTablePtr libxslt_extModuleClasses = NULL; - -static void * -libxslt_xsltPythonExtModuleStyleInit(xsltStylesheetPtr style, - const xmlChar * URI) { - PyObject *result = NULL; - PyObject *class = NULL; - -#ifdef DEBUG_EXTENSIONS - printf("libxslt_xsltPythonExtModuleStyleInit(%p, %s) called\n", - style, URI); -#endif - - if ((style == NULL) || (URI == NULL)) - return(NULL); - - /* - * Find the function, it should be there it was there at lookup - */ - class = xmlHashLookup(libxslt_extModuleClasses, URI); - if (class == NULL) { - fprintf(stderr, "libxslt_xsltPythonExtModuleStyleInit: internal error %s not found !\n", URI); - return(NULL); - } - - if (PyObject_HasAttrString(class, (char *) "_styleInit")) { - result = PyObject_CallMethod(class, (char *) "_styleInit", - (char *) "Os", libxslt_xsltStylesheetPtrWrap(style), URI); - } - return((void *)result); -} -static void -libxslt_xsltPythonExtModuleStyleShutdown(xsltStylesheetPtr style, - const xmlChar * URI, void *data) { - PyObject *class = NULL; - PyObject *result; - -#ifdef DEBUG_EXTENSIONS - printf("libxslt_xsltPythonExtModuleStyleShutdown(%p, %s, %p) called\n", - style, URI, data); -#endif - - if ((style == NULL) || (URI == NULL)) - return; - - /* - * Find the function, it should be there it was there at lookup - */ - class = xmlHashLookup(libxslt_extModuleClasses, URI); - if (class == NULL) { - fprintf(stderr, "libxslt_xsltPythonExtModuleStyleShutdown: internal error %s not found !\n", URI); - return; - } - - if (PyObject_HasAttrString(class, (char *) "_styleShutdown")) { - result = PyObject_CallMethod(class, (char *) "_styleShutdown", - (char *) "OsO", libxslt_xsltStylesheetPtrWrap(style), - URI, (PyObject *) data); - Py_XDECREF(result); - Py_XDECREF((PyObject *)data); - } -} - -static void * -libxslt_xsltPythonExtModuleCtxtInit(xsltTransformContextPtr ctxt, - const xmlChar * URI) { - PyObject *result = NULL; - PyObject *class = NULL; - -#ifdef DEBUG_EXTENSIONS - printf("libxslt_xsltPythonExtModuleCtxtInit(%p, %s) called\n", - ctxt, URI); -#endif - - if ((ctxt == NULL) || (URI == NULL)) - return(NULL); - - /* - * Find the function, it should be there it was there at lookup - */ - class = xmlHashLookup(libxslt_extModuleClasses, URI); - if (class == NULL) { - fprintf(stderr, "libxslt_xsltPythonExtModuleCtxtInit: internal error %s not found !\n", URI); - return(NULL); - } - - if (PyObject_HasAttrString(class, (char *) "_ctxtInit")) { - result = PyObject_CallMethod(class, (char *) "_ctxtInit", - (char *) "Os", libxslt_xsltTransformContextPtrWrap(ctxt), - URI); - } - return((void *)result); -} -static void -libxslt_xsltPythonExtModuleCtxtShutdown(xsltTransformContextPtr ctxt, - const xmlChar * URI, void *data) { - PyObject *class = NULL; - PyObject *result; - -#ifdef DEBUG_EXTENSIONS - printf("libxslt_xsltPythonExtModuleCtxtShutdown(%p, %s, %p) called\n", - ctxt, URI, data); -#endif - - if ((ctxt == NULL) || (URI == NULL)) - return; - - /* - * Find the function, it should be there it was there at lookup - */ - class = xmlHashLookup(libxslt_extModuleClasses, URI); - if (class == NULL) { - fprintf(stderr, "libxslt_xsltPythonExtModuleCtxtShutdown: internal error %s not found !\n", URI); - return; - } - - if (PyObject_HasAttrString(class, (char *) "_ctxtShutdown")) { - result = PyObject_CallMethod(class, (char *) "_ctxtShutdown", - (char *) "OsO", libxslt_xsltTransformContextPtrWrap(ctxt), - URI, (PyObject *) data); - Py_XDECREF(result); - Py_XDECREF((PyObject *)data); - } -} - -PyObject * -libxslt_xsltRegisterExtensionClass(PyObject *self ATTRIBUTE_UNUSED, - PyObject *args) { - PyObject *py_retval; - int ret = 0; - xmlChar *ns_uri; - PyObject *pyobj_c; - - if (!PyArg_ParseTuple(args, (char *)"zO:registerExtensionClass", - &ns_uri, &pyobj_c)) - return(NULL); - - if ((ns_uri == NULL) || (pyobj_c == NULL)) { - py_retval = libxml_intWrap(-1); - return(py_retval); - } - -#ifdef DEBUG_EXTENSIONS - printf("libxslt_xsltRegisterExtensionClass(%s) called\n", ns_uri); -#endif - - if (libxslt_extModuleClasses == NULL) - libxslt_extModuleClasses = xmlHashCreate(10); - if (libxslt_extModuleClasses == NULL) { - py_retval = libxml_intWrap(-1); - return(py_retval); - } - ret = xmlHashAddEntry(libxslt_extModuleClasses, ns_uri, pyobj_c); - if (ret != 0) { - py_retval = libxml_intWrap(-1); - return(py_retval); - } - Py_XINCREF(pyobj_c); - - ret = xsltRegisterExtModuleFull(ns_uri, - (xsltExtInitFunction) libxslt_xsltPythonExtModuleCtxtInit, - (xsltExtShutdownFunction) libxslt_xsltPythonExtModuleCtxtShutdown, - (xsltStyleExtInitFunction) libxslt_xsltPythonExtModuleStyleInit, - (xsltStyleExtShutdownFunction) libxslt_xsltPythonExtModuleStyleShutdown); - py_retval = libxml_intWrap((int) ret); - if (ret < 0) { - Py_XDECREF(pyobj_c); - } - return(py_retval); -} - -/************************************************************************ - * * - * Integrated cleanup * - * * - ************************************************************************/ - -PyObject * -libxslt_xsltPythonCleanup(PyObject *self ATTRIBUTE_UNUSED, - PyObject *args ATTRIBUTE_UNUSED) { - - if (libxslt_extModuleFunctions != NULL) { - xmlHashFree(libxslt_extModuleFunctions, deallocateCallback); - } - if (libxslt_extModuleElements != NULL) { - xmlHashFree(libxslt_extModuleElements, deallocateCallback); - } - if (libxslt_extModuleElementPreComp != NULL) { - xmlHashFree(libxslt_extModuleElementPreComp, deallocateCallback); - } - if (libxslt_extModuleClasses != NULL) { - xmlHashFree(libxslt_extModuleClasses, deallocateClasse); - } - xsltCleanupGlobals(); - Py_INCREF(Py_None); - return(Py_None); -} - -/************************************************************************ - * * - * The registration stuff * - * * - ************************************************************************/ -static PyMethodDef libxsltMethods[] = { -#include "libxslt-export.c" - { NULL, NULL, 0, NULL } -}; - -#ifdef MERGED_MODULES -extern void initlibxml2mod(void); -#endif - -void initlibxsltmod(void) { - static int initialized = 0; - PyObject *m; - -#ifdef MERGED_MODULES - initlibxml2mod(); -#endif - - if (initialized != 0) - return; - m = Py_InitModule((char *)"libxsltmod", libxsltMethods); - initialized = 1; - /* - * Specific XSLT initializations - */ - libxslt_xsltErrorInitialize(); - xmlInitMemory(); - xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS; - xmlDefaultSAXHandler.cdataBlock = NULL; - /* - * Register the EXSLT extensions and the test module - */ - exsltRegisterAll(); -} - - diff --git a/src/tools/docbook/libxslt/python/libxslt_wrap.h b/src/tools/docbook/libxslt/python/libxslt_wrap.h deleted file mode 100644 index d1c79077d6..0000000000 --- a/src/tools/docbook/libxslt/python/libxslt_wrap.h +++ /dev/null @@ -1,49 +0,0 @@ -#include "libxml_wrap.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#define Pystylesheet_Get(v) (((v) == Py_None) ? NULL : \ - (((Pystylesheet_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xsltStylesheetPtr obj; -} Pystylesheet_Object; - -#define PytransformCtxt_Get(v) (((v) == Py_None) ? NULL : \ - (((PytransformCtxt_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xsltTransformContextPtr obj; -} PytransformCtxt_Object; - -#define PycompiledStyle_Get(v) (((v) == Py_None) ? NULL : \ - (((PycompiledStyle_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - xsltTransformContextPtr obj; -} PycompiledStyle_Object; - - -PyObject * libxslt_xsltStylesheetPtrWrap(xsltStylesheetPtr ctxt); -PyObject * libxslt_xsltTransformContextPtrWrap(xsltTransformContextPtr ctxt); -PyObject * libxslt_xsltStylePreCompPtrWrap(xsltStylePreCompPtr comp); -PyObject * libxslt_xsltElemPreCompPtrWrap(xsltElemPreCompPtr comp); diff --git a/src/tools/docbook/libxslt/python/tests/Makefile.am b/src/tools/docbook/libxslt/python/tests/Makefile.am deleted file mode 100644 index 245868812f..0000000000 --- a/src/tools/docbook/libxslt/python/tests/Makefile.am +++ /dev/null @@ -1,35 +0,0 @@ -EXAMPLE_DIR = $(datadir)/doc/libxslt-python-$(LIBXSLT_VERSION)/examples - -TESTSPY= \ - basic.py \ - exslt.py \ - extelem.py \ - extfunc.py - -XMLS= \ - test.xml \ - test.xsl - -EXTRAS= \ - pyxsltproc.py - -EXTRA_DIST = $(TESTSPY) $(XMLS) $(EXTRAS) - -if WITH_PYTHON -tests: $(TESTSPY) - -@(PYTHONPATH="`pwd`/..:`pwd`/../.libs:$(srcdir)/.."; \ - if test "x$(LIBXML_SRC)" != "x" ; then PYTHONPATH="$$PYTHONPATH:$(LIBXML_SRC)/python:$(LIBXML_SRC)/python/.libs"; fi; \ - export PYTHONPATH; \ - for test in $(TESTSPY) ; do echo "-- $$test" ; (cd $(srcdir) && $(PYTHON) $$test ); done) -else -tests: -endif - -clean: - rm -f *.pyc core - -install-data-local: - $(mkinstalldirs) $(DESTDIR)$(EXAMPLE_DIR) - -(for test in $(TESTSPY) $(XMLS) $(EXTRAS); \ - do @INSTALL@ -m 0644 $(srcdir)/$$test $(DESTDIR)$(EXAMPLE_DIR) ; done) - diff --git a/src/tools/docbook/libxslt/python/tests/Makefile.in b/src/tools/docbook/libxslt/python/tests/Makefile.in deleted file mode 100644 index 26872cd183..0000000000 --- a/src/tools/docbook/libxslt/python/tests/Makefile.in +++ /dev/null @@ -1,397 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = ../.. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = python/tests -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXSLT_INCLUDEDIR = @EXSLT_INCLUDEDIR@ -EXSLT_LIBDIR = @EXSLT_LIBDIR@ -EXSLT_LIBS = @EXSLT_LIBS@ -EXTRA_LIBS = @EXTRA_LIBS@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -HTML_DIR = @HTML_DIR@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBEXSLT_MAJOR_VERSION = @LIBEXSLT_MAJOR_VERSION@ -LIBEXSLT_MICRO_VERSION = @LIBEXSLT_MICRO_VERSION@ -LIBEXSLT_MINOR_VERSION = @LIBEXSLT_MINOR_VERSION@ -LIBEXSLT_VERSION = @LIBEXSLT_VERSION@ -LIBEXSLT_VERSION_EXTRA = @LIBEXSLT_VERSION_EXTRA@ -LIBEXSLT_VERSION_INFO = @LIBEXSLT_VERSION_INFO@ -LIBEXSLT_VERSION_NUMBER = @LIBEXSLT_VERSION_NUMBER@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBXML_CFLAGS = @LIBXML_CFLAGS@ -LIBXML_LIBS = @LIBXML_LIBS@ -LIBXML_REQUIRED_VERSION = @LIBXML_REQUIRED_VERSION@ -LIBXML_SRC = @LIBXML_SRC@ -LIBXSLT_DEFAULT_PLUGINS_PATH = @LIBXSLT_DEFAULT_PLUGINS_PATH@ -LIBXSLT_MAJOR_MINOR_VERSION = @LIBXSLT_MAJOR_MINOR_VERSION@ -LIBXSLT_MAJOR_VERSION = @LIBXSLT_MAJOR_VERSION@ -LIBXSLT_MICRO_VERSION = @LIBXSLT_MICRO_VERSION@ -LIBXSLT_MINOR_VERSION = @LIBXSLT_MINOR_VERSION@ -LIBXSLT_VERSION = @LIBXSLT_VERSION@ -LIBXSLT_VERSION_EXTRA = @LIBXSLT_VERSION_EXTRA@ -LIBXSLT_VERSION_INFO = @LIBXSLT_VERSION_INFO@ -LIBXSLT_VERSION_NUMBER = @LIBXSLT_VERSION_NUMBER@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MV = @MV@ -M_LIBS = @M_LIBS@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -PYTHON = @PYTHON@ -PYTHONSODV = @PYTHONSODV@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@ -PYTHON_SUBDIR = @PYTHON_SUBDIR@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -RELDATE = @RELDATE@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STATIC_BINARIES = @STATIC_BINARIES@ -STRIP = @STRIP@ -TAR = @TAR@ -VERSION = @VERSION@ -WIN32_EXTRA_LDFLAGS = @WIN32_EXTRA_LDFLAGS@ -WIN32_EXTRA_LIBADD = @WIN32_EXTRA_LIBADD@ -WITH_CRYPTO = @WITH_CRYPTO@ -WITH_DEBUGGER = @WITH_DEBUGGER@ -WITH_MEM_DEBUG = @WITH_MEM_DEBUG@ -WITH_MODULES = @WITH_MODULES@ -WITH_MODULES_FALSE = @WITH_MODULES_FALSE@ -WITH_MODULES_TRUE = @WITH_MODULES_TRUE@ -WITH_PERL_FALSE = @WITH_PERL_FALSE@ -WITH_PERL_TRUE = @WITH_PERL_TRUE@ -WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@ -WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@ -WITH_TRIO = @WITH_TRIO@ -WITH_XSLT_DEBUG = @WITH_XSLT_DEBUG@ -XML_CONFIG = @XML_CONFIG@ -XSLTPROCDV = @XSLTPROCDV@ -XSLT_INCLUDEDIR = @XSLT_INCLUDEDIR@ -XSLT_LIBDIR = @XSLT_LIBDIR@ -XSLT_LIBS = @XSLT_LIBS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -EXAMPLE_DIR = $(datadir)/doc/libxslt-python-$(LIBXSLT_VERSION)/examples -TESTSPY = \ - basic.py \ - exslt.py \ - extelem.py \ - extfunc.py - -XMLS = \ - test.xml \ - test.xsl - -EXTRAS = \ - pyxsltproc.py - -EXTRA_DIST = $(TESTSPY) $(XMLS) $(EXTRAS) -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu python/tests/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu python/tests/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-libtool - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: install-data-local - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - distclean distclean-generic distclean-libtool distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-data-local install-exec \ - install-exec-am install-info install-info-am install-man \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - uninstall uninstall-am uninstall-info-am - - -@WITH_PYTHON_TRUE@tests: $(TESTSPY) -@WITH_PYTHON_TRUE@ -@(PYTHONPATH="`pwd`/..:`pwd`/../.libs:$(srcdir)/.."; \ -@WITH_PYTHON_TRUE@ if test "x$(LIBXML_SRC)" != "x" ; then PYTHONPATH="$$PYTHONPATH:$(LIBXML_SRC)/python:$(LIBXML_SRC)/python/.libs"; fi; \ -@WITH_PYTHON_TRUE@ export PYTHONPATH; \ -@WITH_PYTHON_TRUE@ for test in $(TESTSPY) ; do echo "-- $$test" ; (cd $(srcdir) && $(PYTHON) $$test ); done) -@WITH_PYTHON_FALSE@tests: - -clean: - rm -f *.pyc core - -install-data-local: - $(mkinstalldirs) $(DESTDIR)$(EXAMPLE_DIR) - -(for test in $(TESTSPY) $(XMLS) $(EXTRAS); \ - do @INSTALL@ -m 0644 $(srcdir)/$$test $(DESTDIR)$(EXAMPLE_DIR) ; done) -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/tools/docbook/libxslt/python/tests/basic.py b/src/tools/docbook/libxslt/python/tests/basic.py deleted file mode 100755 index 89a57ac122..0000000000 --- a/src/tools/docbook/libxslt/python/tests/basic.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 -# Memory debug specific -libxml2.debugMemory(1) -import libxslt - - - -styledoc = libxml2.parseFile("test.xsl") -style = libxslt.parseStylesheetDoc(styledoc) -doc = libxml2.parseFile("test.xml") -result = style.applyStylesheet(doc, None) -style.saveResultToFilename("foo", result, 0) -stringval = style.saveResultToString(result) -if (len(stringval) != 68): - print "Error in saveResultToString" - sys.exit(255) -style.freeStylesheet() -doc.freeDoc() -result.freeDoc() - -# Memory debug specific -libxslt.cleanup() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxslt/python/tests/exslt.py b/src/tools/docbook/libxslt/python/tests/exslt.py deleted file mode 100755 index c64b2e4331..0000000000 --- a/src/tools/docbook/libxslt/python/tests/exslt.py +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/python -u -import sys -import libxml2 -# Memory debug specific -libxml2.debugMemory(1) -import libxslt - - -styledoc = libxml2.parseDoc( -""" - - - -; - str:tokenize('2001-06-03T11:40:23', '-T:') - ; - - str:tokenize('date math str') - ; - - - - -""") -style = libxslt.parseStylesheetDoc(styledoc) -doc = libxml2.parseDoc("") -result = style.applyStylesheet(doc, None) -stringval = style.saveResultToString(result) -style.freeStylesheet() -doc.freeDoc() -result.freeDoc() - -expect=""" -; - str:tokenize('2001-06-03T11:40:23', '-T:') - 20010603114023; - - str:tokenize('date math str') - datemathstr; - -""" - -if stringval != expect: - print "Exslt processing failed" - sys.exit(255) - -# Memory debug specific -libxslt.cleanup() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxslt/python/tests/extelem.py b/src/tools/docbook/libxslt/python/tests/extelem.py deleted file mode 100644 index 3364d01a4f..0000000000 --- a/src/tools/docbook/libxslt/python/tests/extelem.py +++ /dev/null @@ -1,89 +0,0 @@ -#!/usr/bin/python -u -import sys -import string -import StringIO -import libxml2 -# Memory debug specific -libxml2.debugMemory(1) -import libxslt - -EXT_URL="http://example.com/foo" - -insertNodeName = None -transformNodeName = None - -def compile_test(style, inst, func): - pass - -def transform_test(ctx, node, inst, comp): - global insertNodeName - - # - # Small check to verify the context is correcly accessed - # - try: - # - # FIXME add some more sanity checks - # - tctxt = libxslt.transformCtxt(_obj=ctx) - insertNodeName = tctxt.insertNode().name - - # FIXME find and confirm the note being replaced is called 'test' - # transformNodeName = libxml2.xmlNode(inst).name - except: - pass - - tctxt.insertNode().addContent('SUCCESS') - - - -styledoc = libxml2.parseDoc(""" - - - -
    FAILURE
    -
    somethingnestedeven
    -
    -
    -""" % EXT_URL) - -style = libxslt.parseStylesheetDoc(styledoc) -libxslt.registerExtModuleElement("test", EXT_URL, compile_test, transform_test) -doc = libxml2.parseDoc("") -result = style.applyStylesheet(doc, None) -style.freeStylesheet() -doc.freeDoc() - - -extensions = StringIO.StringIO() -libxslt.debugDumpExtensions(extensions) - -if 0 and extensions.buf.find(EXT_URL) < 0: - print "Element extension not registered (or dumping broken)" - sys.exit(1) - -root = result.children - -if root.name != "article": - print "Unexpected root node name" - sys.exit(1) -if root.content != "SUCCESS": - print "Unexpected root node content, extension function failed" - sys.exit(1) -if insertNodeName != 'article': - print "The function callback failed to access its context" - sys.exit(1) - -result.dump(sys.stdout) -result.freeDoc() - -# Memory debug specific -libxslt.cleanup() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxslt/python/tests/extfunc.py b/src/tools/docbook/libxslt/python/tests/extfunc.py deleted file mode 100755 index 0a55953172..0000000000 --- a/src/tools/docbook/libxslt/python/tests/extfunc.py +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/python -u -import sys -import string -import libxml2 -# Memory debug specific -libxml2.debugMemory(1) -import libxslt - -nodeName = None - -def f(ctx, str): - global nodeName - - # - # Small check to verify the context is correcly accessed - # - try: - pctxt = libxslt.xpathParserContext(_obj=ctx) - ctxt = pctxt.context() - tctxt = ctxt.transformContext() - nodeName = tctxt.insertNode().name - except: - pass - - return string.upper(str) - -libxslt.registerExtModuleFunction("foo", "http://example.com/foo", f) - -styledoc = libxml2.parseDoc(""" - - - failure - -
    -
    -
    -""") -style = libxslt.parseStylesheetDoc(styledoc) -doc = libxml2.parseDoc("") -result = style.applyStylesheet(doc, { "bar": "'success'" }) -style.freeStylesheet() -doc.freeDoc() - -root = result.children -if root.name != "article": - print "Unexpected root node name" - sys.exit(1) -if root.content != "SUCCESS": - print "Unexpected root node content, extension function failed" - sys.exit(1) -if nodeName != 'article': - print "The function callback failed to access its context" - sys.exit(1) - -result.freeDoc() - -# Memory debug specific -libxslt.cleanup() -if libxml2.debugMemory(1) == 0: - print "OK" -else: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() diff --git a/src/tools/docbook/libxslt/python/tests/pyxsltproc.py b/src/tools/docbook/libxslt/python/tests/pyxsltproc.py deleted file mode 100755 index 857009715b..0000000000 --- a/src/tools/docbook/libxslt/python/tests/pyxsltproc.py +++ /dev/null @@ -1,298 +0,0 @@ -#!/usr/bin/python -u -# -# The exercise of rewriting xsltproc on top of the python -# bindings, not complete yet and shows up the things missing -# from the existing python interfaces -# -import sys -import time -import posix -import string -import libxml2 -# Memory debug specific -libxml2.debugMemory(1) -import libxslt - -debug = 0 -repeat = 0 -timing = 0 -novalid = 0 -noout = 0 -docbook = 0 -html = 0 -xinclude = 0 -profile = 0 -params = {} -output = None -errorno = 0 - -# -# timing -# -begin = 0 -endtime = 0 -def startTimer(): - global begin - - begin = time.time() - -def endTimer(msg): - global begin - global endtime - - endtime = time.time() - print "%s took %d ms" % (msg, (endtime - begin) * 1000) - -def xsltProcess(doc, cur, filename): - global timing - global xinclude - global params - global html - - if xinclude: - if timing: - startTimer() - doc.XIncludeProcess() - if timing: - endTimer("XInclude processing %s" % (filename)) - - if timing: - startTimer() - if output == None: - if repeat != 0: - for j in range(1, repeat): - res = cur.applyStylesheet(doc, params) - res.freeDoc() - doc.freeDoc() - if html == 1: - doc = libxml2.htmlParseFile(filename, None) - else: - doc = libxml2.parseFile(filename, None) -# ctxt = libxslt.newTransformContext(doc) -# if ctxt == None: -# return - if profile: - print "TODO: Profiling not yet supported" - else: - res = cur.applyStylesheet(doc, params) - if timing: - if repeat != 0: - endTimer("Applying stylesheet %d times" % (repeat)) - else: - endTimer("Applying stylesheet") - doc.freeDoc() - if res == None: - print "no result for %s" % (filename) - return - if noout != 0: - res.freeDoc() - return - if debug == 1: - res.debugDumpDocument(None) - else: - if timing: - startTimer() - cur.saveResultToFilename("-", res, 0) - if timing: - endTimer("Saving result") - res.freeDoc() - else: - print "TODO: xsltRunStylesheet not yet mapped" - -def usage(name = 'pyxsltproc'): - print "Usage: %s [options] stylesheet file [file ...]" % (name) - print "a reimplementation of xsltproc(1) on top of libxslt-python" - print " Options:" - print "\t--version or -V: show the version of libxml and libxslt used" - print "\t--verbose or -v: show logs of what's happening" - print "\t--output file or -o file: save to a given file" - print "\t--timing: display the time used" - print "\t--repeat: run the transformation 20 times" - print "\t--debug: dump the tree of the result instead" - print "\t--novalid skip the Dtd loading phase" - print "\t--noout: do not dump the result" - print "\t--maxdepth val : increase the maximum depth" - print "\t--html: the input document is(are) an HTML file(s)" - print "\t--param name value : pass a (parameter,value) pair" - print "\t value is an XPath expression." - print "\t string values must be quoted like \"'string'\"" - print "\t or use stringparam to avoid it" - print "\t--stringparam name value : pass a (parameter,string value) pair" - print "\t--nonet refuse to fetch DTDs or entities over network" - print "\t--catalogs : use SGML catalogs from $SGML_CATALOG_FILES" - print "\t otherwise XML Catalogs starting from " - print "\t file:///etc/xml/catalog are activated by default" - print "\t--xinclude : do XInclude processing on document intput" - print "\t--profile or --norman : dump profiling informations " - print "\nProject libxslt home page: http://xmlsoft.org/XSLT/" - print "To report bugs and get help: http://xmlsoft.org/XSLT/bugs.html" - -def main(args = None): - global debug - global repeat - global timing - global novalid - global noout - global docbook - global html - global xinclude - global profile - global params - global output - global errorno - - done = 0 - cur = None - - if not args: - args = sys.argv[1:] - if len(args) <= 0: - usage(sys.argv[0]) - - - i = 0 - while i < len(args): - if args[i] == "-": - break - if args[i][0] != '-': - i = i + 1 - continue - if args[i] == "-timing" or args[i] == "--timing": - timing = 1 - elif args[i] == "-debug" or args[i] == "--debug": - debug = 1 - elif args[i] == "-verbose" or args[i] == "--verbose" or \ - args[i] == "-v": - print "TODO: xsltSetGenericDebugFunc() mapping missing" - elif args[i] == "-version" or args[i] == "--version" or \ - args[i] == "-V": - print "TODO: version informations mapping missing" - elif args[i] == "-verbose" or args[i] == "--verbose" or \ - args[i] == "-v": - if repeat == 0: - repeat = 20 - else: - repeat = 100 - elif args[i] == "-novalid" or args[i] == "--novalid": - print "TODO: xmlLoadExtDtdDefaultValue mapping missing" - novalid = 1 - elif args[i] == "-noout" or args[i] == "--noout": - noout = 1 - elif args[i] == "-html" or args[i] == "--html": - html = 1 - elif args[i] == "-nonet" or args[i] == "--nonet": - print "TODO: xmlSetExternalEntityLoader mapping missing" - nonet = 1 - elif args[i] == "-catalogs" or args[i] == "--catalogs": - try: - catalogs = posix.environ['SGML_CATALOG_FILES'] - except: - catalogs = None - if catalogs != none: - libxml2.xmlLoadCatalogs(catalogs) - else: - print "Variable $SGML_CATALOG_FILES not set" - elif args[i] == "-xinclude" or args[i] == "--xinclude": - xinclude = 1 - libxslt.setXIncludeDefault(1) - elif args[i] == "-param" or args[i] == "--param": - i = i + 1 - params[args[i]] = args[i + 1] - i = i + 1 - elif args[i] == "-stringparam" or args[i] == "--stringparam": - i = i + 1 - params[args[i]] = "'%s'" % (args[i + 1]) - i = i + 1 - elif args[i] == "-maxdepth" or args[i] == "--maxdepth": - print "TODO: xsltMaxDepth mapping missing" - else: - print "Unknown option %s" % (args[i]) - usage() - return(3) - - - - - i = i + 1 - - libxml2.lineNumbersDefault(1) - libxml2.substituteEntitiesDefault(1) - # TODO: xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS - # if novalid: - # TODO: xmlLoadExtDtdDefaultValue = 0 - - # TODO libxslt.exsltRegisterAll(); - libxslt.registerTestModule() - - i = 0 - while i < len(args) and done == 0: - if args[i] == "-maxdepth" or args[i] == "--maxdepth": - i = i + 2 - continue - if args[i] == "-o" or args[i] == "-output" or args[i] == "--output": - i = i + 2 - continue - if args[i] == "-param" or args[i] == "--param": - i = i + 3 - continue - if args[i] == "-stringparam" or args[i] == "--stringparam": - i = i + 3 - continue - if args[i] != "-" and args[i][0] == '-': - i = i + 1 - continue - if timing: - startTimer() - style = libxml2.parseFile(args[i]) - if timing: - endTimer("Parsing stylesheet %s" % (args[i])) - if style == None: - print "cannot parse %s" % (args[i]) - cur = None - errorno = 4 - done = 1 - else: - cur = libxslt.loadStylesheetPI(style) - if cur != None: - xsltProcess(style, cur, args[i]) - cur = None - else: - cur = libxslt.parseStylesheetDoc(style) - if cur == None: - style.freeDoc() - errorno = 5 - done = 1 - i = i + 1 - break - - while i < len(args) and done == 0 and cur != None: - if timing: - startTimer() - if html: - doc = libxml2.htmlParseFile(args[i], None) - else: - doc = libxml2.parseFile(args[i]) - if doc == None: - print "unable to parse %s" % (args[i]) - errorno = 6 - i = i + 1 - continue - if timing: - endTimer("Parsing document %s" % (args[i])) - xsltProcess(doc, cur, args[i]) - i = i + 1 - - if cur != None: - cur.freeStylesheet() - params = None - -if __name__ == "__main__": - main() - -# Memory debug specific -libxslt.cleanup() -if libxml2.debugMemory(1) != 0: - print "Memory leak %d bytes" % (libxml2.debugMemory(1)) - libxml2.dumpMemory() - -sys.exit(errorno) diff --git a/src/tools/docbook/libxslt/python/tests/test.xml b/src/tools/docbook/libxslt/python/tests/test.xml deleted file mode 100644 index 24110d9272..0000000000 --- a/src/tools/docbook/libxslt/python/tests/test.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/tools/docbook/libxslt/python/tests/test.xsl b/src/tools/docbook/libxslt/python/tests/test.xsl deleted file mode 100644 index 8d6ae3f67c..0000000000 --- a/src/tools/docbook/libxslt/python/tests/test.xsl +++ /dev/null @@ -1,9 +0,0 @@ - - - -
    - Hello World -
    -
    -
    diff --git a/src/tools/docbook/libxslt/python/types.c b/src/tools/docbook/libxslt/python/types.c deleted file mode 100644 index 53bdd5cc5b..0000000000 --- a/src/tools/docbook/libxslt/python/types.c +++ /dev/null @@ -1,561 +0,0 @@ -/* -xmlParserInputPtr xmlNoNetExternalEntityLoader(const char *URL, - const char *ID, - xmlParserCtxtPtr ctxt); - - * types.c: converter functions between the internal representation - * and the Python objects - * - * See Copyright for the status of this software. - * - * daniel@veillard.com - */ -#include "libxml_wrap.h" - -PyObject * -libxml_intWrap(int val) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_intWrap: val = %d\n", val); -#endif - ret = PyInt_FromLong((long) val); - return (ret); -} - -PyObject * -libxml_longWrap(long val) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_longWrap: val = %ld\n", val); -#endif - ret = PyInt_FromLong(val); - return (ret); -} - -PyObject * -libxml_doubleWrap(double val) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_doubleWrap: val = %f\n", val); -#endif - ret = PyFloat_FromDouble((double) val); - return (ret); -} - -PyObject * -libxml_charPtrWrap(char *str) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlcharPtrWrap: str = %s\n", str); -#endif - if (str == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - /* TODO: look at deallocation */ - ret = PyString_FromString(str); - xmlFree(str); - return (ret); -} - -PyObject * -libxml_charPtrConstWrap(const char *str) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlcharPtrWrap: str = %s\n", str); -#endif - if (str == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - /* TODO: look at deallocation */ - ret = PyString_FromString(str); - return (ret); -} - -PyObject * -libxml_xmlCharPtrWrap(xmlChar * str) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlCharPtrWrap: str = %s\n", str); -#endif - if (str == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - /* TODO: look at deallocation */ - ret = PyString_FromString((char *) str); - xmlFree(str); - return (ret); -} - -PyObject * -libxml_xmlCharPtrConstWrap(const xmlChar * str) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlCharPtrWrap: str = %s\n", str); -#endif - if (str == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - /* TODO: look at deallocation */ - ret = PyString_FromString((char *) str); - return (ret); -} - -PyObject * -libxml_constcharPtrWrap(const char *str) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlcharPtrWrap: str = %s\n", str); -#endif - if (str == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - /* TODO: look at deallocation */ - ret = PyString_FromString(str); - return (ret); -} - -PyObject * -libxml_constxmlCharPtrWrap(const xmlChar * str) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlCharPtrWrap: str = %s\n", str); -#endif - if (str == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - /* TODO: look at deallocation */ - ret = PyString_FromString((char *) str); - return (ret); -} - -PyObject * -libxml_xmlDocPtrWrap(xmlDocPtr doc) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlDocPtrWrap: doc = %p\n", doc); -#endif - if (doc == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - /* TODO: look at deallocation */ - ret = - PyCObject_FromVoidPtrAndDesc((void *) doc, (char *) "xmlDocPtr", - NULL); - return (ret); -} - -PyObject * -libxml_xmlNodePtrWrap(xmlNodePtr node) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlNodePtrWrap: node = %p\n", node); -#endif - if (node == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) node, (char *) "xmlNodePtr", - NULL); - return (ret); -} - -PyObject * -libxml_xmlURIPtrWrap(xmlURIPtr uri) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlURIPtrWrap: uri = %p\n", uri); -#endif - if (uri == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) uri, (char *) "xmlURIPtr", - NULL); - return (ret); -} - -PyObject * -libxml_xmlNsPtrWrap(xmlNsPtr ns) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlNsPtrWrap: node = %p\n", ns); -#endif - if (ns == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) ns, (char *) "xmlNsPtr", - NULL); - return (ret); -} - -PyObject * -libxml_xmlAttrPtrWrap(xmlAttrPtr attr) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlAttrNodePtrWrap: attr = %p\n", attr); -#endif - if (attr == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) attr, (char *) "xmlAttrPtr", - NULL); - return (ret); -} - -PyObject * -libxml_xmlAttributePtrWrap(xmlAttributePtr attr) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlAttributePtrWrap: attr = %p\n", attr); -#endif - if (attr == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) attr, - (char *) "xmlAttributePtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlElementPtrWrap(xmlElementPtr elem) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlElementNodePtrWrap: elem = %p\n", elem); -#endif - if (elem == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) elem, - (char *) "xmlElementPtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlXPathContextPtrWrap(xmlXPathContextPtr ctxt) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlXPathContextPtrWrap: ctxt = %p\n", ctxt); -#endif - if (ctxt == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) ctxt, - (char *) "xmlXPathContextPtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlXPathParserContextPtrWrap(xmlXPathParserContextPtr ctxt) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlXPathParserContextPtrWrap: ctxt = %p\n", ctxt); -#endif - if (ctxt == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = PyCObject_FromVoidPtrAndDesc((void *) ctxt, - (char *) "xmlXPathParserContextPtr", - NULL); - return (ret); -} - -PyObject * -libxml_xmlParserCtxtPtrWrap(xmlParserCtxtPtr ctxt) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlParserCtxtPtrWrap: ctxt = %p\n", ctxt); -#endif - if (ctxt == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) ctxt, - (char *) "xmlParserCtxtPtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlXPathObjectPtrWrap(xmlXPathObjectPtr obj) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlXPathObjectPtrWrap: ctxt = %p\n", obj); -#endif - if (obj == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - switch (obj->type) { - case XPATH_XSLT_TREE: { - if ((obj->nodesetval == NULL) || - (obj->nodesetval->nodeNr == 0) || - (obj->nodesetval->nodeTab == NULL)) { - ret = PyList_New(0); - } else { - int i, len = 0; - xmlNodePtr node; - - node = obj->nodesetval->nodeTab[0]->children; - while (node != NULL) { - len++; - node = node->next; - } - ret = PyList_New(len); - node = obj->nodesetval->nodeTab[0]->children; - for (i = 0;i < len;i++) { - PyList_SetItem(ret, i, libxml_xmlNodePtrWrap(node)); - node = node->next; - } - } - /* - * Return now, do not free the object passed down - */ - return (ret); - } - case XPATH_NODESET: - if ((obj->nodesetval == NULL) - || (obj->nodesetval->nodeNr == 0)) { - ret = PyList_New(0); - } else { - int i; - xmlNodePtr node; - - ret = PyList_New(obj->nodesetval->nodeNr); - for (i = 0; i < obj->nodesetval->nodeNr; i++) { - node = obj->nodesetval->nodeTab[i]; - /* TODO: try to cast directly to the proper node type */ - PyList_SetItem(ret, i, libxml_xmlNodePtrWrap(node)); - } - } - break; - case XPATH_BOOLEAN: - ret = PyInt_FromLong((long) obj->boolval); - break; - case XPATH_NUMBER: - ret = PyFloat_FromDouble(obj->floatval); - break; - case XPATH_STRING: - ret = PyString_FromString((char *) obj->stringval); - break; - case XPATH_POINT: - case XPATH_RANGE: - case XPATH_LOCATIONSET: - default: -#ifdef DEBUG - printf("Unable to convert XPath object type %d\n", obj->type); -#endif - Py_INCREF(Py_None); - ret = Py_None; - } - xmlXPathFreeObject(obj); - return (ret); -} - -xmlXPathObjectPtr -libxml_xmlXPathObjectPtrConvert(PyObject * obj) -{ - xmlXPathObjectPtr ret = NULL; - -#ifdef DEBUG - printf("libxml_xmlXPathObjectPtrConvert: obj = %p\n", obj); -#endif - if (obj == NULL) { - return (NULL); - } - if PyFloat_Check - (obj) { - ret = xmlXPathNewFloat((double) PyFloat_AS_DOUBLE(obj)); - } else if PyString_Check - (obj) { - xmlChar *str; - - str = xmlStrndup((const xmlChar *) PyString_AS_STRING(obj), - PyString_GET_SIZE(obj)); - ret = xmlXPathWrapString(str); - } else if PyList_Check - (obj) { - int i; - PyObject *node; - xmlNodePtr cur; - xmlNodeSetPtr set; - - set = xmlXPathNodeSetCreate(NULL); - - for (i = 0; i < PyList_Size(obj); i++) { - node = PyList_GetItem(obj, i); - if ((node == NULL) || (node->ob_type == NULL)) - continue; - - cur = NULL; - if (PyCObject_Check(node)) { -#ifdef DEBUG - printf("Got a CObject\n"); -#endif - cur = PyxmlNode_Get(node); - } else if (PyInstance_Check(node)) { - PyInstanceObject *inst = (PyInstanceObject *) node; - PyObject *name = inst->in_class->cl_name; - - if PyString_Check - (name) { - char *type = PyString_AS_STRING(name); - PyObject *wrapper; - - if (!strcmp(type, "xmlNode")) { - wrapper = - PyObject_GetAttrString(node, (char *) "_o"); - if (wrapper != NULL) { - cur = PyxmlNode_Get(wrapper); - } - } - } - } else { -#ifdef DEBUG - printf("Unknown object in Python return list\n"); -#endif - } - if (cur != NULL) { - xmlXPathNodeSetAdd(set, cur); - } - } - ret = xmlXPathWrapNodeSet(set); - } else { -#ifdef DEBUG - printf("Unable to convert Python Object to XPath"); -#endif - } - Py_DECREF(obj); - return (ret); -} - -PyObject * -libxml_xmlCatalogPtrWrap(xmlCatalogPtr catal) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlNodePtrWrap: catal = %p\n", catal); -#endif - if (catal == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) catal, - (char *) "xmlCatalogPtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlOutputBufferPtrWrap(xmlOutputBufferPtr buffer) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlOutputBufferPtrWrap: buffer = %p\n", buffer); -#endif - if (buffer == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) buffer, - (char *) "xmlOutputBufferPtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlParserInputBufferPtrWrap(xmlParserInputBufferPtr buffer) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlParserInputBufferPtrWrap: buffer = %p\n", buffer); -#endif - if (buffer == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) buffer, - (char *) "xmlParserInputBufferPtr", NULL); - return (ret); -} - -PyObject * -libxml_xmlRegexpPtrWrap(xmlRegexpPtr regexp) -{ - PyObject *ret; - -#ifdef DEBUG - printf("libxml_xmlRegexpPtrWrap: regexp = %p\n", regexp); -#endif - if (regexp == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = - PyCObject_FromVoidPtrAndDesc((void *) regexp, - (char *) "xmlRegexpPtr", NULL); - return (ret); -} diff --git a/src/tools/docbook/libxslt/tests/Makefile.am b/src/tools/docbook/libxslt/tests/Makefile.am deleted file mode 100644 index fb0fd559a6..0000000000 --- a/src/tools/docbook/libxslt/tests/Makefile.am +++ /dev/null @@ -1,26 +0,0 @@ -## Process this file with automake to produce Makefile.in - -SUBDIRS=docs REC1 REC2 REC general namespaces keys numbers documents \ - extensions reports xmlspec multiple xinclude XSLTMark docbook \ - exslt plugins - -all: - -# Each subdirectory has it's own Makefile to cater for the unique -# requirements of that subdirectory. In general, xsltproc will be -# run on the *.xsl / *.xml file combinations, and the output of that -# run will be compared with the "expected" output contained in *.out -# and (if errors are expected) in *.err -test tests: - @(cur=`pwd` ; for dir in $(SUBDIRS) ; do cd $$dir ; $(MAKE) CHECKER='$(CHECKER)' tests ; cd $$cur ; done) - -valgrind: - @echo '## Running the regression tests under Valgrind' - @echo '## Go get a cup of coffee it is gonna take a while ...' - $(MAKE) CHECKER='valgrind -q' tests - -full: tests docbook_tests - -docbook_tests: - @(cd docbook ; $(MAKE) full) - diff --git a/src/tools/docbook/libxslt/tests/Makefile.in b/src/tools/docbook/libxslt/tests/Makefile.in deleted file mode 100644 index d1243c6c24..0000000000 --- a/src/tools/docbook/libxslt/tests/Makefile.in +++ /dev/null @@ -1,550 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = tests -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-exec-recursive install-info-recursive \ - install-recursive installcheck-recursive installdirs-recursive \ - pdf-recursive ps-recursive uninstall-info-recursive \ - uninstall-recursive -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXSLT_INCLUDEDIR = @EXSLT_INCLUDEDIR@ -EXSLT_LIBDIR = @EXSLT_LIBDIR@ -EXSLT_LIBS = @EXSLT_LIBS@ -EXTRA_LIBS = @EXTRA_LIBS@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -HTML_DIR = @HTML_DIR@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBEXSLT_MAJOR_VERSION = @LIBEXSLT_MAJOR_VERSION@ -LIBEXSLT_MICRO_VERSION = @LIBEXSLT_MICRO_VERSION@ -LIBEXSLT_MINOR_VERSION = @LIBEXSLT_MINOR_VERSION@ -LIBEXSLT_VERSION = @LIBEXSLT_VERSION@ -LIBEXSLT_VERSION_EXTRA = @LIBEXSLT_VERSION_EXTRA@ -LIBEXSLT_VERSION_INFO = @LIBEXSLT_VERSION_INFO@ -LIBEXSLT_VERSION_NUMBER = @LIBEXSLT_VERSION_NUMBER@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBXML_CFLAGS = @LIBXML_CFLAGS@ -LIBXML_LIBS = @LIBXML_LIBS@ -LIBXML_REQUIRED_VERSION = @LIBXML_REQUIRED_VERSION@ -LIBXML_SRC = @LIBXML_SRC@ -LIBXSLT_DEFAULT_PLUGINS_PATH = @LIBXSLT_DEFAULT_PLUGINS_PATH@ -LIBXSLT_MAJOR_MINOR_VERSION = @LIBXSLT_MAJOR_MINOR_VERSION@ -LIBXSLT_MAJOR_VERSION = @LIBXSLT_MAJOR_VERSION@ -LIBXSLT_MICRO_VERSION = @LIBXSLT_MICRO_VERSION@ -LIBXSLT_MINOR_VERSION = @LIBXSLT_MINOR_VERSION@ -LIBXSLT_VERSION = @LIBXSLT_VERSION@ -LIBXSLT_VERSION_EXTRA = @LIBXSLT_VERSION_EXTRA@ -LIBXSLT_VERSION_INFO = @LIBXSLT_VERSION_INFO@ -LIBXSLT_VERSION_NUMBER = @LIBXSLT_VERSION_NUMBER@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MV = @MV@ -M_LIBS = @M_LIBS@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -PYTHON = @PYTHON@ -PYTHONSODV = @PYTHONSODV@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@ -PYTHON_SUBDIR = @PYTHON_SUBDIR@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -RELDATE = @RELDATE@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STATIC_BINARIES = @STATIC_BINARIES@ -STRIP = @STRIP@ -TAR = @TAR@ -VERSION = @VERSION@ -WIN32_EXTRA_LDFLAGS = @WIN32_EXTRA_LDFLAGS@ -WIN32_EXTRA_LIBADD = @WIN32_EXTRA_LIBADD@ -WITH_CRYPTO = @WITH_CRYPTO@ -WITH_DEBUGGER = @WITH_DEBUGGER@ -WITH_MEM_DEBUG = @WITH_MEM_DEBUG@ -WITH_MODULES = @WITH_MODULES@ -WITH_MODULES_FALSE = @WITH_MODULES_FALSE@ -WITH_MODULES_TRUE = @WITH_MODULES_TRUE@ -WITH_PERL_FALSE = @WITH_PERL_FALSE@ -WITH_PERL_TRUE = @WITH_PERL_TRUE@ -WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@ -WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@ -WITH_TRIO = @WITH_TRIO@ -WITH_XSLT_DEBUG = @WITH_XSLT_DEBUG@ -XML_CONFIG = @XML_CONFIG@ -XSLTPROCDV = @XSLTPROCDV@ -XSLT_INCLUDEDIR = @XSLT_INCLUDEDIR@ -XSLT_LIBDIR = @XSLT_LIBDIR@ -XSLT_LIBS = @XSLT_LIBS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -SUBDIRS = docs REC1 REC2 REC general namespaces keys numbers documents \ - extensions reports xmlspec multiple xinclude XSLTMark docbook \ - exslt plugins - -all: all-recursive - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu tests/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -mostlyclean-recursive clean-recursive distclean-recursive \ -maintainer-clean-recursive: - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(mkdir_p) "$(distdir)/$$subdir" \ - || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ - distdir) \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-recursive -all-am: Makefile -installdirs: installdirs-recursive -installdirs-am: -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-recursive - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-recursive - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-libtool \ - distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -info: info-recursive - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-recursive - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-info-am - -uninstall-info: uninstall-info-recursive - -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ - clean clean-generic clean-libtool clean-recursive ctags \ - ctags-recursive distclean distclean-generic distclean-libtool \ - distclean-recursive distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-exec install-exec-am install-info \ - install-info-am install-man install-strip installcheck \ - installcheck-am installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic maintainer-clean-recursive \ - mostlyclean mostlyclean-generic mostlyclean-libtool \ - mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ - uninstall uninstall-am uninstall-info-am - - -all: - -# Each subdirectory has it's own Makefile to cater for the unique -# requirements of that subdirectory. In general, xsltproc will be -# run on the *.xsl / *.xml file combinations, and the output of that -# run will be compared with the "expected" output contained in *.out -# and (if errors are expected) in *.err -test tests: - @(cur=`pwd` ; for dir in $(SUBDIRS) ; do cd $$dir ; $(MAKE) CHECKER='$(CHECKER)' tests ; cd $$cur ; done) - -valgrind: - @echo '## Running the regression tests under Valgrind' - @echo '## Go get a cup of coffee it is gonna take a while ...' - $(MAKE) CHECKER='valgrind -q' tests - -full: tests docbook_tests - -docbook_tests: - @(cd docbook ; $(MAKE) full) -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/tools/docbook/libxslt/tests/REC/Makefile.am b/src/tools/docbook/libxslt/tests/REC/Makefile.am deleted file mode 100644 index 1b42cbd87b..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/Makefile.am +++ /dev/null @@ -1,207 +0,0 @@ -## Process this file with automake to produce Makefile.in - -$(top_builddir)/xsltproc/xsltproc: - @(cd ../../xsltproc ; $(MAKE) xsltproc) - -EXTRA_DIST = \ - article.xsl bigfont.xsl \ - test-10-1.out test-10-1.xml test-10-1.xsl \ - test-11.2-1.out test-11.2-1.xml test-11.2-1.xsl \ - test-11.2-2.out test-11.2-2.xml test-11.2-2.xsl \ - test-11.2-3.out test-11.2-3.xml test-11.2-3.xsl \ - test-11.2-4.out test-11.2-4.xml test-11.2-4.xsl \ - test-11.2-5.out test-11.2-5.xml test-11.2-5.xsl \ - test-11.2-6.out test-11.2-6.xml test-11.2-6.xsl \ - test-12.2-1.out test-12.2-1.xml test-12.2-1.xsl \ - test-12.2-2.out test-12.2-2.xml test-12.2-2.xsl \ - test-15-1.out test-15-1.xml test-15-1.xsl \ - test-16.1-1.out test-16.1-1.xml test-16.1-1.xsl \ - test-16.1-2.out test-16.1-2.xml test-16.1-2.xsl \ - test-2.3-1.out test-2.3-1.xml test-2.3-1.xsl \ - test-2.3-2.out test-2.3-2.xml test-2.3-2.xsl \ - test-2.5-1.out test-2.5-1.xml test-2.5-1.xsl test-2.5-1.err \ - test-2.6.2-1.out test-2.6.2-1.xml test-2.6.2-1.xsl \ - test-5.2-1.out test-5.2-1.xml test-5.2-1.xsl \ - test-5.2-2.out test-5.2-2.xml test-5.2-2.xsl \ - test-5.2-3.out test-5.2-3.xml test-5.2-3.xsl \ - test-5.2-4.out test-5.2-4.xml test-5.2-4.xsl \ - test-5.2-5.out test-5.2-5.xml test-5.2-5.xsl \ - test-5.2-6.out test-5.2-6.xml test-5.2-6.xsl \ - test-5.2-7.out test-5.2-7.xml test-5.2-7.xsl \ - test-5.2-8.out test-5.2-8.xml test-5.2-8.xsl \ - test-5.2-9.out test-5.2-9.xml test-5.2-9.xsl \ - test-5.2-10.out test-5.2-10.xml test-5.2-10.xsl \ - test-5.2-11.out test-5.2-11.xml test-5.2-11.xsl \ - test-5.2-12.out test-5.2-12.xml test-5.2-12.xsl \ - test-5.2-13.out test-5.2-13.xml test-5.2-13.xsl \ - test-5.2-14.out test-5.2-14.xml test-5.2-14.xsl \ - test-5.2-15.out test-5.2-15.xml test-5.2-15.xsl \ - test-5.2-16.out test-5.2-16.xml test-5.2-16.xsl \ - test-5.2-17.out test-5.2-17.xml test-5.2-17.xsl \ - test-5.2-18.out test-5.2-18.xml test-5.2-18.xsl \ - test-5.3.out test-5.3.xml test-5.3.xsl \ - test-5.4-1.out test-5.4-1.xml test-5.4-1.xsl \ - test-5.4-2.out test-5.4-2.xml test-5.4-2.xsl \ - test-5.4-3.out test-5.4-3.xml test-5.4-3.xsl \ - test-5.4-4.out test-5.4-4.xml test-5.4-4.xsl \ - test-5.4-5.out test-5.4-5.xml test-5.4-5.xsl \ - test-5.8.out test-5.8.xml test-5.8.xsl \ - test-6.out test-6.xml test-6.xsl \ - test-7.1.1.out test-7.1.1.xml test-7.1.1.xsl \ - test-7.1.1-2.out test-7.1.1-2.xml test-7.1.1-2.xsl \ - test-7.1.1-3.out test-7.1.1-3.xml test-7.1.1-3.xsl \ - test-7.1.3.out test-7.1.3.xml test-7.1.3.xsl \ - test-7.1.4.out test-7.1.4.xml test-7.1.4.xsl \ - test-7.3.out test-7.3.xml test-7.3.xsl \ - test-7.4.out test-7.4.xml test-7.4.xsl \ - test-7.5-1.out test-7.5-1.xml test-7.5-1.xsl \ - test-7.6.1-1.out test-7.6.1-1.xml test-7.6.1-1.xsl \ - test-7.6.1-2.out test-7.6.1-2.xml test-7.6.1-2.xsl \ - test-7.6.1-3.out test-7.6.1-3.xml test-7.6.1-3.xsl \ - test-7.6.2-1.out test-7.6.2-1.xml test-7.6.2-1.xsl \ - test-7.7-1.out test-7.7-1.xml test-7.7-1.xsl \ - test-7.7-2.out test-7.7-2.xml test-7.7-2.xsl \ - test-7.7-3.out test-7.7-3.xml test-7.7-3.xsl \ - test-7.7-4.out test-7.7-4.xml test-7.7-4.xsl \ - test-7.7-5.out test-7.7-5.xml test-7.7-5.xsl \ - test-8-1.out test-8-1.xml test-8-1.xsl \ - test-9.1-1.out test-9.1-1.xml test-9.1-1.xsl \ - test-9.1-2.out test-9.1-2.xml test-9.1-2.xsl \ - test-9.2-1.xsl \ - stand-2.7-1.dtd stand-2.7-1.stand.out stand-2.7-1.xsl \ - stand-2.7-1.out stand-2.7-1.xml - - -all: - -valgrind: - @echo '## Running the regression tests under Valgrind' - $(MAKE) CHECKER='valgrind -q' tests - -test tests: $(top_builddir)/xsltproc/xsltproc - @(echo > .memdump) - @echo '## Running REC tests' - -@(for i in $(srcdir)/*.xsl ; do \ - name=`basename $$i .xsl` ; \ - if [ ! -f $(srcdir)/$$name.xml ] ; then \ - continue ; \ - fi ; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$$name.xsl $(srcdir)/$$name.xml \ - > $$name.res 2>$$name.bad ; \ - if [ ! -f $(srcdir)/$$name.out ] ; then \ - cp $$name.res $(srcdir)/$$name.out ; \ - if [ -s $$name.bad ] ; then \ - cp $$name.bad $(srcdir)/$$name.err ; \ - fi ; \ - else \ - if [ ! -s $$name.res ] ; then \ - echo "Fatal error, no $$name.res\n" ; \ - else \ - diff $(srcdir)/$$name.out $$name.res ; \ - if [ -s $$name.err ] ; then \ - diff $(srcdir)/$$name.err $$name.bad ; \ - else \ - diff /dev/null $$name.bad ; \ - fi ; \ - fi ; \ - fi ; \ - grep "MORY ALLO" .memdump | \ - grep -v "MEMORY ALLOCATED : 0" || true` ; \ - if [ -n "$$log" ] ; then \ - echo $$name result ; \ - echo $$log ; \ - fi ; \ - rm -f $$name.res $$name.bad ; \ - done) - @(for i in $(srcdir)/stand*.xml ; do \ - name=`basename $$i .xml` ; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$$name.xml > $$name.res 2>$$name.bad ;\ - if [ ! -f $(srcdir)/$$name.stand.out ] ; then \ - cp $$name.res $(srcdir)/$$name.stand.out ; \ - if [ -s $$name.bad ] ; then \ - cp $$name.bad $(srcdir)/$$name.stand.err ; \ - fi ; \ - else \ - if [ ! -s $$name.res ] ; then \ - echo "Fatal error, no $$name.res\n" ; \ - else \ - diff $(srcdir)/$$name.stand.out $$name.res ; \ - if [ -s $$name.stand.err ] ; then \ - diff $(srcdir)/$$name.stand.err $$name.bad ; \ - else \ - diff /dev/null $$name.bad; \ - fi ; \ - fi ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \ - if [ -n "$$log" ] ; then \ - echo $$name result ; \ - echo $$log ; \ - fi ; \ - rm -f $$name.res $$name.bad ; \ - done) - @echo '## Running REC tests without dictionaries' - -@(for i in $(srcdir)/*.xsl ; do \ - name=`basename $$i .xsl` ; \ - if [ ! -f $(srcdir)/$$name.xml ] ; then \ - continue ; \ - fi ; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nodict \ - $(srcdir)/$$name.xsl $(srcdir)/$$name.xml \ - > $$name.res 2>$$name.bad ; \ - if [ ! -f $(srcdir)/$$name.out ] ; then \ - cp $$name.res $(srcdir)/$$name.out ; \ - if [ -s $$name.bad ] ; then \ - cp $$name.bad $(srcdir)/$$name.err ; \ - fi ; \ - else \ - if [ ! -s $$name.res ] ; then \ - echo "Fatal error, no $$name.res\n" ; \ - else \ - diff $(srcdir)/$$name.out $$name.res ; \ - if [ -s $$name.err ] ; then \ - diff $(srcdir)/$$name.err $$name.bad ; \ - else \ - diff /dev/null $$name.bad ; \ - fi ; \ - fi ; \ - fi ; \ - grep "MORY ALLO" .memdump | \ - grep -v "MEMORY ALLOCATED : 0" || true` ; \ - if [ -n "$$log" ] ; then \ - echo $$name result ; \ - echo $$log ; \ - fi ; \ - rm -f $$name.res $$name.bad ; \ - done) - @(for i in $(srcdir)/stand*.xml ; do \ - name=`basename $$i .xml` ; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nodict \ - $(srcdir)/$$name.xml > $$name.res 2>$$name.bad ;\ - if [ ! -f $(srcdir)/$$name.stand.out ] ; then \ - cp $$name.res $(srcdir)/$$name.stand.out ; \ - if [ -s $$name.bad ] ; then \ - cp $$name.bad $(srcdir)/$$name.stand.err ; \ - fi ; \ - else \ - if [ ! -s $$name.res ] ; then \ - echo "Fatal error, no $$name.res\n" ; \ - else \ - diff $(srcdir)/$$name.stand.out $$name.res ; \ - if [ -s $$name.stand.err ] ; then \ - diff $(srcdir)/$$name.stand.err $$name.bad ; \ - else \ - diff /dev/null $$name.bad; \ - fi ; \ - fi ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \ - if [ -n "$$log" ] ; then \ - echo $$name result ; \ - echo $$log ; \ - fi ; \ - rm -f $$name.res $$name.bad ; \ - done) - diff --git a/src/tools/docbook/libxslt/tests/REC/Makefile.in b/src/tools/docbook/libxslt/tests/REC/Makefile.in deleted file mode 100644 index 9001a78a2c..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/Makefile.in +++ /dev/null @@ -1,573 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = ../.. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = tests/REC -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXSLT_INCLUDEDIR = @EXSLT_INCLUDEDIR@ -EXSLT_LIBDIR = @EXSLT_LIBDIR@ -EXSLT_LIBS = @EXSLT_LIBS@ -EXTRA_LIBS = @EXTRA_LIBS@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -HTML_DIR = @HTML_DIR@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBEXSLT_MAJOR_VERSION = @LIBEXSLT_MAJOR_VERSION@ -LIBEXSLT_MICRO_VERSION = @LIBEXSLT_MICRO_VERSION@ -LIBEXSLT_MINOR_VERSION = @LIBEXSLT_MINOR_VERSION@ -LIBEXSLT_VERSION = @LIBEXSLT_VERSION@ -LIBEXSLT_VERSION_EXTRA = @LIBEXSLT_VERSION_EXTRA@ -LIBEXSLT_VERSION_INFO = @LIBEXSLT_VERSION_INFO@ -LIBEXSLT_VERSION_NUMBER = @LIBEXSLT_VERSION_NUMBER@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBXML_CFLAGS = @LIBXML_CFLAGS@ -LIBXML_LIBS = @LIBXML_LIBS@ -LIBXML_REQUIRED_VERSION = @LIBXML_REQUIRED_VERSION@ -LIBXML_SRC = @LIBXML_SRC@ -LIBXSLT_DEFAULT_PLUGINS_PATH = @LIBXSLT_DEFAULT_PLUGINS_PATH@ -LIBXSLT_MAJOR_MINOR_VERSION = @LIBXSLT_MAJOR_MINOR_VERSION@ -LIBXSLT_MAJOR_VERSION = @LIBXSLT_MAJOR_VERSION@ -LIBXSLT_MICRO_VERSION = @LIBXSLT_MICRO_VERSION@ -LIBXSLT_MINOR_VERSION = @LIBXSLT_MINOR_VERSION@ -LIBXSLT_VERSION = @LIBXSLT_VERSION@ -LIBXSLT_VERSION_EXTRA = @LIBXSLT_VERSION_EXTRA@ -LIBXSLT_VERSION_INFO = @LIBXSLT_VERSION_INFO@ -LIBXSLT_VERSION_NUMBER = @LIBXSLT_VERSION_NUMBER@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MV = @MV@ -M_LIBS = @M_LIBS@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -PYTHON = @PYTHON@ -PYTHONSODV = @PYTHONSODV@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@ -PYTHON_SUBDIR = @PYTHON_SUBDIR@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -RELDATE = @RELDATE@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STATIC_BINARIES = @STATIC_BINARIES@ -STRIP = @STRIP@ -TAR = @TAR@ -VERSION = @VERSION@ -WIN32_EXTRA_LDFLAGS = @WIN32_EXTRA_LDFLAGS@ -WIN32_EXTRA_LIBADD = @WIN32_EXTRA_LIBADD@ -WITH_CRYPTO = @WITH_CRYPTO@ -WITH_DEBUGGER = @WITH_DEBUGGER@ -WITH_MEM_DEBUG = @WITH_MEM_DEBUG@ -WITH_MODULES = @WITH_MODULES@ -WITH_MODULES_FALSE = @WITH_MODULES_FALSE@ -WITH_MODULES_TRUE = @WITH_MODULES_TRUE@ -WITH_PERL_FALSE = @WITH_PERL_FALSE@ -WITH_PERL_TRUE = @WITH_PERL_TRUE@ -WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@ -WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@ -WITH_TRIO = @WITH_TRIO@ -WITH_XSLT_DEBUG = @WITH_XSLT_DEBUG@ -XML_CONFIG = @XML_CONFIG@ -XSLTPROCDV = @XSLTPROCDV@ -XSLT_INCLUDEDIR = @XSLT_INCLUDEDIR@ -XSLT_LIBDIR = @XSLT_LIBDIR@ -XSLT_LIBS = @XSLT_LIBS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -EXTRA_DIST = \ - article.xsl bigfont.xsl \ - test-10-1.out test-10-1.xml test-10-1.xsl \ - test-11.2-1.out test-11.2-1.xml test-11.2-1.xsl \ - test-11.2-2.out test-11.2-2.xml test-11.2-2.xsl \ - test-11.2-3.out test-11.2-3.xml test-11.2-3.xsl \ - test-11.2-4.out test-11.2-4.xml test-11.2-4.xsl \ - test-11.2-5.out test-11.2-5.xml test-11.2-5.xsl \ - test-11.2-6.out test-11.2-6.xml test-11.2-6.xsl \ - test-12.2-1.out test-12.2-1.xml test-12.2-1.xsl \ - test-12.2-2.out test-12.2-2.xml test-12.2-2.xsl \ - test-15-1.out test-15-1.xml test-15-1.xsl \ - test-16.1-1.out test-16.1-1.xml test-16.1-1.xsl \ - test-16.1-2.out test-16.1-2.xml test-16.1-2.xsl \ - test-2.3-1.out test-2.3-1.xml test-2.3-1.xsl \ - test-2.3-2.out test-2.3-2.xml test-2.3-2.xsl \ - test-2.5-1.out test-2.5-1.xml test-2.5-1.xsl test-2.5-1.err \ - test-2.6.2-1.out test-2.6.2-1.xml test-2.6.2-1.xsl \ - test-5.2-1.out test-5.2-1.xml test-5.2-1.xsl \ - test-5.2-2.out test-5.2-2.xml test-5.2-2.xsl \ - test-5.2-3.out test-5.2-3.xml test-5.2-3.xsl \ - test-5.2-4.out test-5.2-4.xml test-5.2-4.xsl \ - test-5.2-5.out test-5.2-5.xml test-5.2-5.xsl \ - test-5.2-6.out test-5.2-6.xml test-5.2-6.xsl \ - test-5.2-7.out test-5.2-7.xml test-5.2-7.xsl \ - test-5.2-8.out test-5.2-8.xml test-5.2-8.xsl \ - test-5.2-9.out test-5.2-9.xml test-5.2-9.xsl \ - test-5.2-10.out test-5.2-10.xml test-5.2-10.xsl \ - test-5.2-11.out test-5.2-11.xml test-5.2-11.xsl \ - test-5.2-12.out test-5.2-12.xml test-5.2-12.xsl \ - test-5.2-13.out test-5.2-13.xml test-5.2-13.xsl \ - test-5.2-14.out test-5.2-14.xml test-5.2-14.xsl \ - test-5.2-15.out test-5.2-15.xml test-5.2-15.xsl \ - test-5.2-16.out test-5.2-16.xml test-5.2-16.xsl \ - test-5.2-17.out test-5.2-17.xml test-5.2-17.xsl \ - test-5.2-18.out test-5.2-18.xml test-5.2-18.xsl \ - test-5.3.out test-5.3.xml test-5.3.xsl \ - test-5.4-1.out test-5.4-1.xml test-5.4-1.xsl \ - test-5.4-2.out test-5.4-2.xml test-5.4-2.xsl \ - test-5.4-3.out test-5.4-3.xml test-5.4-3.xsl \ - test-5.4-4.out test-5.4-4.xml test-5.4-4.xsl \ - test-5.4-5.out test-5.4-5.xml test-5.4-5.xsl \ - test-5.8.out test-5.8.xml test-5.8.xsl \ - test-6.out test-6.xml test-6.xsl \ - test-7.1.1.out test-7.1.1.xml test-7.1.1.xsl \ - test-7.1.1-2.out test-7.1.1-2.xml test-7.1.1-2.xsl \ - test-7.1.1-3.out test-7.1.1-3.xml test-7.1.1-3.xsl \ - test-7.1.3.out test-7.1.3.xml test-7.1.3.xsl \ - test-7.1.4.out test-7.1.4.xml test-7.1.4.xsl \ - test-7.3.out test-7.3.xml test-7.3.xsl \ - test-7.4.out test-7.4.xml test-7.4.xsl \ - test-7.5-1.out test-7.5-1.xml test-7.5-1.xsl \ - test-7.6.1-1.out test-7.6.1-1.xml test-7.6.1-1.xsl \ - test-7.6.1-2.out test-7.6.1-2.xml test-7.6.1-2.xsl \ - test-7.6.1-3.out test-7.6.1-3.xml test-7.6.1-3.xsl \ - test-7.6.2-1.out test-7.6.2-1.xml test-7.6.2-1.xsl \ - test-7.7-1.out test-7.7-1.xml test-7.7-1.xsl \ - test-7.7-2.out test-7.7-2.xml test-7.7-2.xsl \ - test-7.7-3.out test-7.7-3.xml test-7.7-3.xsl \ - test-7.7-4.out test-7.7-4.xml test-7.7-4.xsl \ - test-7.7-5.out test-7.7-5.xml test-7.7-5.xsl \ - test-8-1.out test-8-1.xml test-8-1.xsl \ - test-9.1-1.out test-9.1-1.xml test-9.1-1.xsl \ - test-9.1-2.out test-9.1-2.xml test-9.1-2.xsl \ - test-9.2-1.xsl \ - stand-2.7-1.dtd stand-2.7-1.stand.out stand-2.7-1.xsl \ - stand-2.7-1.out stand-2.7-1.xml - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/REC/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu tests/REC/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-libtool - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - distclean distclean-generic distclean-libtool distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-exec install-exec-am \ - install-info install-info-am install-man install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-info-am - - -$(top_builddir)/xsltproc/xsltproc: - @(cd ../../xsltproc ; $(MAKE) xsltproc) - -all: - -valgrind: - @echo '## Running the regression tests under Valgrind' - $(MAKE) CHECKER='valgrind -q' tests - -test tests: $(top_builddir)/xsltproc/xsltproc - @(echo > .memdump) - @echo '## Running REC tests' - -@(for i in $(srcdir)/*.xsl ; do \ - name=`basename $$i .xsl` ; \ - if [ ! -f $(srcdir)/$$name.xml ] ; then \ - continue ; \ - fi ; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$$name.xsl $(srcdir)/$$name.xml \ - > $$name.res 2>$$name.bad ; \ - if [ ! -f $(srcdir)/$$name.out ] ; then \ - cp $$name.res $(srcdir)/$$name.out ; \ - if [ -s $$name.bad ] ; then \ - cp $$name.bad $(srcdir)/$$name.err ; \ - fi ; \ - else \ - if [ ! -s $$name.res ] ; then \ - echo "Fatal error, no $$name.res\n" ; \ - else \ - diff $(srcdir)/$$name.out $$name.res ; \ - if [ -s $$name.err ] ; then \ - diff $(srcdir)/$$name.err $$name.bad ; \ - else \ - diff /dev/null $$name.bad ; \ - fi ; \ - fi ; \ - fi ; \ - grep "MORY ALLO" .memdump | \ - grep -v "MEMORY ALLOCATED : 0" || true` ; \ - if [ -n "$$log" ] ; then \ - echo $$name result ; \ - echo $$log ; \ - fi ; \ - rm -f $$name.res $$name.bad ; \ - done) - @(for i in $(srcdir)/stand*.xml ; do \ - name=`basename $$i .xml` ; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$$name.xml > $$name.res 2>$$name.bad ;\ - if [ ! -f $(srcdir)/$$name.stand.out ] ; then \ - cp $$name.res $(srcdir)/$$name.stand.out ; \ - if [ -s $$name.bad ] ; then \ - cp $$name.bad $(srcdir)/$$name.stand.err ; \ - fi ; \ - else \ - if [ ! -s $$name.res ] ; then \ - echo "Fatal error, no $$name.res\n" ; \ - else \ - diff $(srcdir)/$$name.stand.out $$name.res ; \ - if [ -s $$name.stand.err ] ; then \ - diff $(srcdir)/$$name.stand.err $$name.bad ; \ - else \ - diff /dev/null $$name.bad; \ - fi ; \ - fi ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \ - if [ -n "$$log" ] ; then \ - echo $$name result ; \ - echo $$log ; \ - fi ; \ - rm -f $$name.res $$name.bad ; \ - done) - @echo '## Running REC tests without dictionaries' - -@(for i in $(srcdir)/*.xsl ; do \ - name=`basename $$i .xsl` ; \ - if [ ! -f $(srcdir)/$$name.xml ] ; then \ - continue ; \ - fi ; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nodict \ - $(srcdir)/$$name.xsl $(srcdir)/$$name.xml \ - > $$name.res 2>$$name.bad ; \ - if [ ! -f $(srcdir)/$$name.out ] ; then \ - cp $$name.res $(srcdir)/$$name.out ; \ - if [ -s $$name.bad ] ; then \ - cp $$name.bad $(srcdir)/$$name.err ; \ - fi ; \ - else \ - if [ ! -s $$name.res ] ; then \ - echo "Fatal error, no $$name.res\n" ; \ - else \ - diff $(srcdir)/$$name.out $$name.res ; \ - if [ -s $$name.err ] ; then \ - diff $(srcdir)/$$name.err $$name.bad ; \ - else \ - diff /dev/null $$name.bad ; \ - fi ; \ - fi ; \ - fi ; \ - grep "MORY ALLO" .memdump | \ - grep -v "MEMORY ALLOCATED : 0" || true` ; \ - if [ -n "$$log" ] ; then \ - echo $$name result ; \ - echo $$log ; \ - fi ; \ - rm -f $$name.res $$name.bad ; \ - done) - @(for i in $(srcdir)/stand*.xml ; do \ - name=`basename $$i .xml` ; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nodict \ - $(srcdir)/$$name.xml > $$name.res 2>$$name.bad ;\ - if [ ! -f $(srcdir)/$$name.stand.out ] ; then \ - cp $$name.res $(srcdir)/$$name.stand.out ; \ - if [ -s $$name.bad ] ; then \ - cp $$name.bad $(srcdir)/$$name.stand.err ; \ - fi ; \ - else \ - if [ ! -s $$name.res ] ; then \ - echo "Fatal error, no $$name.res\n" ; \ - else \ - diff $(srcdir)/$$name.stand.out $$name.res ; \ - if [ -s $$name.stand.err ] ; then \ - diff $(srcdir)/$$name.stand.err $$name.bad ; \ - else \ - diff /dev/null $$name.bad; \ - fi ; \ - fi ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \ - if [ -n "$$log" ] ; then \ - echo $$name result ; \ - echo $$log ; \ - fi ; \ - rm -f $$name.res $$name.bad ; \ - done) -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/tools/docbook/libxslt/tests/REC/article.xsl b/src/tools/docbook/libxslt/tests/REC/article.xsl deleted file mode 100644 index 302652a760..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/article.xsl +++ /dev/null @@ -1,11 +0,0 @@ - - -

    - -
    - -

    -

    -
    -
    diff --git a/src/tools/docbook/libxslt/tests/REC/bigfont.xsl b/src/tools/docbook/libxslt/tests/REC/bigfont.xsl deleted file mode 100644 index c3a2bd1e37..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/bigfont.xsl +++ /dev/null @@ -1,6 +0,0 @@ - - - - - diff --git a/src/tools/docbook/libxslt/tests/REC/stand-2.7-1.dtd b/src/tools/docbook/libxslt/tests/REC/stand-2.7-1.dtd deleted file mode 100644 index c164fddeec..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/stand-2.7-1.dtd +++ /dev/null @@ -1,6 +0,0 @@ - - - diff --git a/src/tools/docbook/libxslt/tests/REC/stand-2.7-1.out b/src/tools/docbook/libxslt/tests/REC/stand-2.7-1.out deleted file mode 100644 index 80654782f6..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/stand-2.7-1.out +++ /dev/null @@ -1,4 +0,0 @@ - -SUCCESS -... - diff --git a/src/tools/docbook/libxslt/tests/REC/stand-2.7-1.stand.out b/src/tools/docbook/libxslt/tests/REC/stand-2.7-1.stand.out deleted file mode 100644 index 5c455bc8de..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/stand-2.7-1.stand.out +++ /dev/null @@ -1,4 +0,0 @@ - -SUCCESS -... - diff --git a/src/tools/docbook/libxslt/tests/REC/stand-2.7-1.xml b/src/tools/docbook/libxslt/tests/REC/stand-2.7-1.xml deleted file mode 100644 index 0998bb36c6..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/stand-2.7-1.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - -... - - - diff --git a/src/tools/docbook/libxslt/tests/REC/stand-2.7-1.xsl b/src/tools/docbook/libxslt/tests/REC/stand-2.7-1.xsl deleted file mode 100644 index 5a3726ee9a..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/stand-2.7-1.xsl +++ /dev/null @@ -1,8 +0,0 @@ - - - -SUCCESS - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-10-1.out b/src/tools/docbook/libxslt/tests/REC/test-10-1.out deleted file mode 100644 index 60426d4022..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-10-1.out +++ /dev/null @@ -1,2 +0,0 @@ - -
    • James Clark
    • Michael Kay
    • Daniel Veillard
    diff --git a/src/tools/docbook/libxslt/tests/REC/test-10-1.xml b/src/tools/docbook/libxslt/tests/REC/test-10-1.xml deleted file mode 100644 index e46e71d8c3..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-10-1.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - James - Clark - - - - - Daniel - Veillard - - - - - Michael - Kay - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-10-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-10-1.xsl deleted file mode 100644 index 4e952f7cca..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-10-1.xsl +++ /dev/null @@ -1,19 +0,0 @@ - - -
      - - - - -
    -
    - - -
  • - - - -
  • -
    -
    diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-1.out b/src/tools/docbook/libxslt/tests/REC/test-11.2-1.out deleted file mode 100644 index 661cc0790c..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-1.out +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-1.xml b/src/tools/docbook/libxslt/tests/REC/test-11.2-1.xml deleted file mode 100644 index 69d62f2c9a..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-1.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-11.2-1.xsl deleted file mode 100644 index f066e93188..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-1.xsl +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-2.out b/src/tools/docbook/libxslt/tests/REC/test-11.2-2.out deleted file mode 100644 index 661cc0790c..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-2.out +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-2.xml b/src/tools/docbook/libxslt/tests/REC/test-11.2-2.xml deleted file mode 100644 index 69d62f2c9a..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-2.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-2.xsl b/src/tools/docbook/libxslt/tests/REC/test-11.2-2.xsl deleted file mode 100644 index 680f5dff0d..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-2.xsl +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-3.out b/src/tools/docbook/libxslt/tests/REC/test-11.2-3.out deleted file mode 100644 index ba5c563213..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-3.out +++ /dev/null @@ -1,2 +0,0 @@ - -item1 diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-3.xml b/src/tools/docbook/libxslt/tests/REC/test-11.2-3.xml deleted file mode 100644 index 380664ca72..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-3.xml +++ /dev/null @@ -1,5 +0,0 @@ - -item1 -item2 -item3 - diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-3.xsl b/src/tools/docbook/libxslt/tests/REC/test-11.2-3.xsl deleted file mode 100644 index c41aac6457..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-3.xsl +++ /dev/null @@ -1,11 +0,0 @@ - - -2 - - - - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-4.out b/src/tools/docbook/libxslt/tests/REC/test-11.2-4.out deleted file mode 100644 index 23d6d824c0..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-4.out +++ /dev/null @@ -1,2 +0,0 @@ - -item2 diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-4.xml b/src/tools/docbook/libxslt/tests/REC/test-11.2-4.xml deleted file mode 100644 index 380664ca72..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-4.xml +++ /dev/null @@ -1,5 +0,0 @@ - -item1 -item2 -item3 - diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-4.xsl b/src/tools/docbook/libxslt/tests/REC/test-11.2-4.xsl deleted file mode 100644 index 27c37d2086..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-4.xsl +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-5.out b/src/tools/docbook/libxslt/tests/REC/test-11.2-5.out deleted file mode 100644 index 23d6d824c0..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-5.out +++ /dev/null @@ -1,2 +0,0 @@ - -item2 diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-5.xml b/src/tools/docbook/libxslt/tests/REC/test-11.2-5.xml deleted file mode 100644 index 380664ca72..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-5.xml +++ /dev/null @@ -1,5 +0,0 @@ - -item1 -item2 -item3 - diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-5.xsl b/src/tools/docbook/libxslt/tests/REC/test-11.2-5.xsl deleted file mode 100644 index 876c0efdea..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-5.xsl +++ /dev/null @@ -1,11 +0,0 @@ - - -2 - - - - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-6.out b/src/tools/docbook/libxslt/tests/REC/test-11.2-6.out deleted file mode 100644 index e62488f23c..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-6.out +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-6.xml b/src/tools/docbook/libxslt/tests/REC/test-11.2-6.xml deleted file mode 100644 index 69d62f2c9a..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-6.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/tools/docbook/libxslt/tests/REC/test-11.2-6.xsl b/src/tools/docbook/libxslt/tests/REC/test-11.2-6.xsl deleted file mode 100644 index 1a4a9a2095..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-11.2-6.xsl +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-12.2-1.out b/src/tools/docbook/libxslt/tests/REC/test-12.2-1.out deleted file mode 100644 index 77c975e6fd..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-12.2-1.out +++ /dev/null @@ -1,2 +0,0 @@ - -Success diff --git a/src/tools/docbook/libxslt/tests/REC/test-12.2-1.xml b/src/tools/docbook/libxslt/tests/REC/test-12.2-1.xml deleted file mode 100644 index b61bdaafb5..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-12.2-1.xml +++ /dev/null @@ -1,4 +0,0 @@ - -
    Success
    -
    Failed
    -
    diff --git a/src/tools/docbook/libxslt/tests/REC/test-12.2-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-12.2-1.xsl deleted file mode 100644 index daf297a006..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-12.2-1.xsl +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-12.2-2.out b/src/tools/docbook/libxslt/tests/REC/test-12.2-2.out deleted file mode 100644 index 62ec6a48ca..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-12.2-2.out +++ /dev/null @@ -1,7 +0,0 @@ - - - -Success - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-12.2-2.xml b/src/tools/docbook/libxslt/tests/REC/test-12.2-2.xml deleted file mode 100644 index b833b61765..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-12.2-2.xml +++ /dev/null @@ -1,4 +0,0 @@ - -
    -
    - diff --git a/src/tools/docbook/libxslt/tests/REC/test-12.2-2.xsl b/src/tools/docbook/libxslt/tests/REC/test-12.2-2.xsl deleted file mode 100644 index 68d1299c57..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-12.2-2.xsl +++ /dev/null @@ -1,11 +0,0 @@ - - - - - -Success - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-15-1.out b/src/tools/docbook/libxslt/tests/REC/test-15-1.out deleted file mode 100644 index 965f7cdd76..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-15-1.out +++ /dev/null @@ -1,2 +0,0 @@ - -SUCCESS diff --git a/src/tools/docbook/libxslt/tests/REC/test-15-1.xml b/src/tools/docbook/libxslt/tests/REC/test-15-1.xml deleted file mode 100644 index 69d62f2c9a..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-15-1.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/tools/docbook/libxslt/tests/REC/test-15-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-15-1.xsl deleted file mode 100644 index 71cdc23c94..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-15-1.xsl +++ /dev/null @@ -1,12 +0,0 @@ - - - - -SUCCESS - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-16.1-1.out b/src/tools/docbook/libxslt/tests/REC/test-16.1-1.out deleted file mode 100644 index 81e44acba2..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-16.1-1.out +++ /dev/null @@ -1,2 +0,0 @@ - -]]> diff --git a/src/tools/docbook/libxslt/tests/REC/test-16.1-1.xml b/src/tools/docbook/libxslt/tests/REC/test-16.1-1.xml deleted file mode 100644 index 69d62f2c9a..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-16.1-1.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/tools/docbook/libxslt/tests/REC/test-16.1-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-16.1-1.xsl deleted file mode 100644 index f82204ee21..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-16.1-1.xsl +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - -<foo> - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-16.1-2.out b/src/tools/docbook/libxslt/tests/REC/test-16.1-2.out deleted file mode 100644 index 81e44acba2..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-16.1-2.out +++ /dev/null @@ -1,2 +0,0 @@ - -]]> diff --git a/src/tools/docbook/libxslt/tests/REC/test-16.1-2.xml b/src/tools/docbook/libxslt/tests/REC/test-16.1-2.xml deleted file mode 100644 index 69d62f2c9a..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-16.1-2.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/tools/docbook/libxslt/tests/REC/test-16.1-2.xsl b/src/tools/docbook/libxslt/tests/REC/test-16.1-2.xsl deleted file mode 100644 index 1e296ecbc5..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-16.1-2.xsl +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - -]]> - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-2.3-1.out b/src/tools/docbook/libxslt/tests/REC/test-2.3-1.out deleted file mode 100644 index 4ea2afe9ce..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-2.3-1.out +++ /dev/null @@ -1,2 +0,0 @@ - -Expense Report Summary

    Total Amount: 1234

    diff --git a/src/tools/docbook/libxslt/tests/REC/test-2.3-1.xml b/src/tools/docbook/libxslt/tests/REC/test-2.3-1.xml deleted file mode 100644 index 12031e6750..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-2.3-1.xml +++ /dev/null @@ -1,3 +0,0 @@ - -1234 - diff --git a/src/tools/docbook/libxslt/tests/REC/test-2.3-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-2.3-1.xsl deleted file mode 100644 index 0bf42c15f7..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-2.3-1.xsl +++ /dev/null @@ -1,10 +0,0 @@ - - - Expense Report Summary - - -

    Total Amount:

    - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-2.3-2.out b/src/tools/docbook/libxslt/tests/REC/test-2.3-2.out deleted file mode 100644 index 4ea2afe9ce..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-2.3-2.out +++ /dev/null @@ -1,2 +0,0 @@ - -Expense Report Summary

    Total Amount: 1234

    diff --git a/src/tools/docbook/libxslt/tests/REC/test-2.3-2.xml b/src/tools/docbook/libxslt/tests/REC/test-2.3-2.xml deleted file mode 100644 index 12031e6750..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-2.3-2.xml +++ /dev/null @@ -1,3 +0,0 @@ - -1234 - diff --git a/src/tools/docbook/libxslt/tests/REC/test-2.3-2.xsl b/src/tools/docbook/libxslt/tests/REC/test-2.3-2.xsl deleted file mode 100644 index 9688a047eb..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-2.3-2.xsl +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Expense Report Summary - - -

    Total Amount:

    - - -
    -
    diff --git a/src/tools/docbook/libxslt/tests/REC/test-2.5-1.err b/src/tools/docbook/libxslt/tests/REC/test-2.5-1.err deleted file mode 100644 index 7fbacdd724..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-2.5-1.err +++ /dev/null @@ -1,4 +0,0 @@ -compilation error: file ./test-2.5-1.xsl line 6 element exciting-new-1.8-feature -xsltStylePreCompute: unknown xsl:exciting-new-1.8-feature -compilation error: file ./test-2.5-1.xsl line 2 element stylesheet -xsl:version: only 1.0 features are supported diff --git a/src/tools/docbook/libxslt/tests/REC/test-2.5-1.out b/src/tools/docbook/libxslt/tests/REC/test-2.5-1.out deleted file mode 100644 index c2f4077fc6..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-2.5-1.out +++ /dev/null @@ -1,7 +0,0 @@ - - - -XSLT 1.8 required - -

    Sorry, this stylesheet requires XSLT 1.8.

    - diff --git a/src/tools/docbook/libxslt/tests/REC/test-2.5-1.xml b/src/tools/docbook/libxslt/tests/REC/test-2.5-1.xml deleted file mode 100644 index 69d62f2c9a..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-2.5-1.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/tools/docbook/libxslt/tests/REC/test-2.5-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-2.5-1.xsl deleted file mode 100644 index 8121188c1a..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-2.5-1.xsl +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - XSLT 1.8 required - - -

    Sorry, this stylesheet requires XSLT 1.8.

    - - -
    -
    -
    -
    diff --git a/src/tools/docbook/libxslt/tests/REC/test-2.6.2-1.out b/src/tools/docbook/libxslt/tests/REC/test-2.6.2-1.out deleted file mode 100644 index f8bde65a7f..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-2.6.2-1.out +++ /dev/null @@ -1,2 +0,0 @@ - -

    The article title

    first para important stuff ...

    second para ...

    diff --git a/src/tools/docbook/libxslt/tests/REC/test-2.6.2-1.xml b/src/tools/docbook/libxslt/tests/REC/test-2.6.2-1.xml deleted file mode 100644 index 426ee7cf64..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-2.6.2-1.xml +++ /dev/null @@ -1,5 +0,0 @@ -
    -The article title -first para important stuff ... -second para ... -
    diff --git a/src/tools/docbook/libxslt/tests/REC/test-2.6.2-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-2.6.2-1.xsl deleted file mode 100644 index 122d7161e4..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-2.6.2-1.xsl +++ /dev/null @@ -1,8 +0,0 @@ - - - - - italic - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-1.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-1.out deleted file mode 100644 index ac71f0f6d7..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-1.out +++ /dev/null @@ -1,4 +0,0 @@ - - -Success - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-1.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-1.xml deleted file mode 100644 index 96441e9782..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-1.xml +++ /dev/null @@ -1 +0,0 @@ -Failed diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-1.xsl deleted file mode 100644 index ef80e9435e..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-1.xsl +++ /dev/null @@ -1,6 +0,0 @@ - - -Success - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-10.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-10.out deleted file mode 100644 index ac71f0f6d7..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-10.out +++ /dev/null @@ -1,4 +0,0 @@ - - -Success - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-10.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-10.xml deleted file mode 100644 index c4267ce081..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-10.xml +++ /dev/null @@ -1,5 +0,0 @@ - - -]> -Failed diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-10.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-10.xsl deleted file mode 100644 index 35b91b97d1..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-10.xsl +++ /dev/null @@ -1,6 +0,0 @@ - - -Success - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-11.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-11.out deleted file mode 100644 index 342571e0cd..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-11.out +++ /dev/null @@ -1,8 +0,0 @@ - - - - -Success - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-11.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-11.xml deleted file mode 100644 index 77011c0b18..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-11.xml +++ /dev/null @@ -1,5 +0,0 @@ - - -<para>Failed</para> -<para></para> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-11.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-11.xsl deleted file mode 100644 index 2aa527e06b..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-11.xsl +++ /dev/null @@ -1,6 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:template match="para[1]"> -Success -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-12.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-12.out deleted file mode 100644 index ac71f0f6d7..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-12.out +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0"?> - -Success - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-12.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-12.xml deleted file mode 100644 index 79ad78a7ad..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-12.xml +++ /dev/null @@ -1,5 +0,0 @@ -<doc> -<para>Failed</para> -<title/> -<para/> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-12.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-12.xsl deleted file mode 100644 index e96f92beca..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-12.xsl +++ /dev/null @@ -1,7 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:strip-space elements="doc"/> -<xsl:template match="*[position()=1 and self::para]"> -Success -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-13.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-13.out deleted file mode 100644 index 342571e0cd..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-13.out +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0"?> - - - -Success - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-13.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-13.xml deleted file mode 100644 index 7f7e867d69..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-13.xml +++ /dev/null @@ -1,5 +0,0 @@ -<doc> -<title/> -<para>Failed</para> -<title/> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-13.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-13.xsl deleted file mode 100644 index cae4dcc0b8..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-13.xsl +++ /dev/null @@ -1,6 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:template match="para[last()=1]"> -Success -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-14.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-14.out deleted file mode 100644 index aa7fe2d4bb..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-14.out +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0"?> - - - - -Success - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-14.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-14.xml deleted file mode 100644 index 17af328dd3..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-14.xml +++ /dev/null @@ -1,6 +0,0 @@ -<doc> -<items> -<item/> -<item>Failed</item> -</items> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-14.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-14.xsl deleted file mode 100644 index 4c104d0360..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-14.xsl +++ /dev/null @@ -1,6 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:template match="items/item[position()>1]"> -Success -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-15.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-15.out deleted file mode 100644 index ac71f0f6d7..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-15.out +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0"?> - -Success - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-15.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-15.xml deleted file mode 100644 index 9edc446eef..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-15.xml +++ /dev/null @@ -1 +0,0 @@ -<doc><item>Failed</item><item/></doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-15.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-15.xsl deleted file mode 100644 index 40b94a7d0c..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-15.xsl +++ /dev/null @@ -1,6 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:template match="item[position() mod 2 = 1]"> -Success -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-16.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-16.out deleted file mode 100644 index b91af735aa..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-16.out +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0"?> - - - - - -Success - - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-16.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-16.xml deleted file mode 100644 index 3900fa4a79..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-16.xml +++ /dev/null @@ -1,9 +0,0 @@ -<doc> -<p/> -<div class="appendix"> -<para> -<p>Failed</p> -</para> -</div> -</doc> - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-16.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-16.xsl deleted file mode 100644 index e2fbcdcd8b..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-16.xsl +++ /dev/null @@ -1,6 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:template match='div[@class="appendix"]//p'> -Success -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-17.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-17.out deleted file mode 100644 index 77c975e6fd..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-17.out +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version="1.0"?> -Success diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-17.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-17.xml deleted file mode 100644 index 1455206300..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-17.xml +++ /dev/null @@ -1 +0,0 @@ -<doc><para class="Failed"/></doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-17.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-17.xsl deleted file mode 100644 index 0e428dbb9c..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-17.xsl +++ /dev/null @@ -1,9 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:template match="/"> -<xsl:apply-templates select="/doc/para/@*"/> -</xsl:template> -<xsl:template match="@class"> -<xsl:text>Success</xsl:text> -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-18.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-18.out deleted file mode 100644 index 77c975e6fd..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-18.out +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version="1.0"?> -Success diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-18.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-18.xml deleted file mode 100644 index d6458709fe..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-18.xml +++ /dev/null @@ -1 +0,0 @@ -<doc><para attr="Failed"/></doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-18.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-18.xsl deleted file mode 100644 index 0669e93a19..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-18.xsl +++ /dev/null @@ -1,9 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:template match="/"> -<xsl:apply-templates select="/doc/para/@*"/> -</xsl:template> -<xsl:template match="@*"> -<xsl:text>Success</xsl:text> -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-2.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-2.out deleted file mode 100644 index ac71f0f6d7..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-2.out +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0"?> - -Success - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-2.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-2.xml deleted file mode 100644 index 6569dc7e9c..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-2.xml +++ /dev/null @@ -1 +0,0 @@ -<a>Failed</a> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-2.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-2.xsl deleted file mode 100644 index 3960fd4ff7..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-2.xsl +++ /dev/null @@ -1,6 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:template match="*"> -Success -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-3.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-3.out deleted file mode 100644 index ac71f0f6d7..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-3.out +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0"?> - -Success - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-3.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-3.xml deleted file mode 100644 index 01517be434..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-3.xml +++ /dev/null @@ -1 +0,0 @@ -<doc><appendix>Failed</appendix></doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-3.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-3.xsl deleted file mode 100644 index 0e9b2fefef..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-3.xsl +++ /dev/null @@ -1,6 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:template match="chapter|appendix"> -Success -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-4.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-4.out deleted file mode 100644 index ac71f0f6d7..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-4.out +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0"?> - -Success - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-4.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-4.xml deleted file mode 100644 index 9257c074ef..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-4.xml +++ /dev/null @@ -1 +0,0 @@ -<doc><olist><item>Failed</item></olist></doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-4.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-4.xsl deleted file mode 100644 index bc24df30b8..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-4.xsl +++ /dev/null @@ -1,6 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:template match="olist/item"> -Success -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-5.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-5.out deleted file mode 100644 index cc2e92e1a0..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-5.out +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0"?> - - - - - -Success - - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-5.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-5.xml deleted file mode 100644 index e7499bd054..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-5.xml +++ /dev/null @@ -1,8 +0,0 @@ -<doc> - <appendix> - <title/> - <content> - <para>Failed</para> - </content> - </appendix> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-5.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-5.xsl deleted file mode 100644 index e0acf193f6..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-5.xsl +++ /dev/null @@ -1,6 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:template match="appendix//para"> -Success -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-6.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-6.out deleted file mode 100644 index ac71f0f6d7..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-6.out +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0"?> - -Success - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-6.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-6.xml deleted file mode 100644 index e646c541f7..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-6.xml +++ /dev/null @@ -1 +0,0 @@ -<doc>Failure</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-6.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-6.xsl deleted file mode 100644 index f6663ac228..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-6.xsl +++ /dev/null @@ -1,6 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:template match="/"> -Success -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-7.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-7.out deleted file mode 100644 index ac71f0f6d7..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-7.out +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0"?> - -Success - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-7.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-7.xml deleted file mode 100644 index ce140601c0..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-7.xml +++ /dev/null @@ -1 +0,0 @@ -<doc>Failed</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-7.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-7.xsl deleted file mode 100644 index df279fc091..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-7.xsl +++ /dev/null @@ -1,6 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:template match="text()"> -Success -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-8.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-8.out deleted file mode 100644 index ac71f0f6d7..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-8.out +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0"?> - -Success - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-8.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-8.xml deleted file mode 100644 index e2edece321..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-8.xml +++ /dev/null @@ -1 +0,0 @@ -<doc><?failed?></doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-8.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-8.xsl deleted file mode 100644 index b6687bc2a8..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-8.xsl +++ /dev/null @@ -1,6 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:template match="processing-instruction()"> -Success -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-9.out b/src/tools/docbook/libxslt/tests/REC/test-5.2-9.out deleted file mode 100644 index ac71f0f6d7..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-9.out +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0"?> - -Success - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-9.xml b/src/tools/docbook/libxslt/tests/REC/test-5.2-9.xml deleted file mode 100644 index ce140601c0..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-9.xml +++ /dev/null @@ -1 +0,0 @@ -<doc>Failed</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.2-9.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.2-9.xsl deleted file mode 100644 index 5b7110c210..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.2-9.xsl +++ /dev/null @@ -1,6 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:template match="node()"> -Success -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.3.out b/src/tools/docbook/libxslt/tests/REC/test-5.3.out deleted file mode 100644 index 29eb6149fc..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.3.out +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0"?> - -This is an <fo:inline-sequence xmlns:fo="http://www.w3.org/1999/XSL/Format" font-weight="bold">important</fo:inline-sequence> point. - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.3.xml b/src/tools/docbook/libxslt/tests/REC/test-5.3.xml deleted file mode 100644 index 2a95ab30e2..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.3.xml +++ /dev/null @@ -1,3 +0,0 @@ -<doc> -This is an <emph>important</emph> point. -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.3.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.3.xsl deleted file mode 100644 index 481310429c..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.3.xsl +++ /dev/null @@ -1,9 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:fo="http://www.w3.org/1999/XSL/Format"> -<xsl:template match="emph"> - <fo:inline-sequence font-weight="bold"> - <xsl:apply-templates/> - </fo:inline-sequence> -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.4-1.out b/src/tools/docbook/libxslt/tests/REC/test-5.4-1.out deleted file mode 100644 index c89a4a1c0e..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.4-1.out +++ /dev/null @@ -1,7 +0,0 @@ -<?xml version="1.0"?> -<doc xmlns:fo="http://www.w3.org/1999/XSL/Format"> -<fo:block> -This is a chapter -</fo:block> -<fo:block>This is another chapter</fo:block> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.4-1.xml b/src/tools/docbook/libxslt/tests/REC/test-5.4-1.xml deleted file mode 100644 index 388cac7bb9..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.4-1.xml +++ /dev/null @@ -1,6 +0,0 @@ -<doc> -<chapter> -This is a chapter -</chapter> -<chapter>This is <em>another</em> chapter</chapter> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.4-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.4-1.xsl deleted file mode 100644 index 55b3974ee3..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.4-1.xsl +++ /dev/null @@ -1,14 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:fo="http://www.w3.org/1999/XSL/Format"> -<xsl:template match="chapter"> - <fo:block> - <xsl:apply-templates/> - </fo:block> -</xsl:template> -<xsl:template match="doc"> -<doc> - <xsl:apply-templates/> -</doc> -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.4-2.out b/src/tools/docbook/libxslt/tests/REC/test-5.4-2.out deleted file mode 100644 index fe0af52b33..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.4-2.out +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0"?> -<doc xmlns:fo="http://www.w3.org/1999/XSL/Format"> -<fo:inline-sequence>name1name2</fo:inline-sequence> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.4-2.xml b/src/tools/docbook/libxslt/tests/REC/test-5.4-2.xml deleted file mode 100644 index ea0f40a786..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.4-2.xml +++ /dev/null @@ -1,7 +0,0 @@ -<doc> -<author-group> -<author>name1</author> -<author>name2</author> -<info>skipped</info> -</author-group> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.4-2.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.4-2.xsl deleted file mode 100644 index cc43c5c510..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.4-2.xsl +++ /dev/null @@ -1,16 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:fo="http://www.w3.org/1999/XSL/Format"> -<xsl:template match="doc"> -<doc> - <xsl:apply-templates/> -</doc> -</xsl:template> - -<xsl:template match="author-group"> - <fo:inline-sequence> - <xsl:apply-templates select="author"/> - </fo:inline-sequence> -</xsl:template> - -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.4-3.out b/src/tools/docbook/libxslt/tests/REC/test-5.4-3.out deleted file mode 100644 index fe0af52b33..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.4-3.out +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0"?> -<doc xmlns:fo="http://www.w3.org/1999/XSL/Format"> -<fo:inline-sequence>name1name2</fo:inline-sequence> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.4-3.xml b/src/tools/docbook/libxslt/tests/REC/test-5.4-3.xml deleted file mode 100644 index 6cd54f5a52..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.4-3.xml +++ /dev/null @@ -1,7 +0,0 @@ -<doc> -<author-group> -<author><given-name>name1</given-name></author> -<author><given-name>name2</given-name></author> -<author>skipped</author> -</author-group> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.4-3.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.4-3.xsl deleted file mode 100644 index c367a82ab3..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.4-3.xsl +++ /dev/null @@ -1,16 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:fo="http://www.w3.org/1999/XSL/Format"> -<xsl:template match="doc"> -<doc> - <xsl:apply-templates/> -</doc> -</xsl:template> - -<xsl:template match="author-group"> - <fo:inline-sequence> - <xsl:apply-templates select="author/given-name"/> - </fo:inline-sequence> -</xsl:template> - -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.4-4.out b/src/tools/docbook/libxslt/tests/REC/test-5.4-4.out deleted file mode 100644 index caecb147bd..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.4-4.out +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0"?> -<doc xmlns:fo="http://www.w3.org/1999/XSL/Format"><fo:block> - Employee employee1 belongs to group - group1</fo:block><fo:block> - Employee employee3 belongs to group - group1</fo:block><fo:block> - Employee employee2 belongs to group - group2</fo:block></doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.4-4.xml b/src/tools/docbook/libxslt/tests/REC/test-5.4-4.xml deleted file mode 100644 index baf95dc8b6..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.4-4.xml +++ /dev/null @@ -1,17 +0,0 @@ -<doc> -<department> -<name>dept1</name> -<group> -<name>group1</name> -<employee><name>employee1</name></employee> -<employee><name>employee3</name></employee> -</group> -</department> -<department> -<name>dept2</name> -<group> -<name>group2</name> -<employee><name>employee2</name></employee> -</group> -</department> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.4-4.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.4-4.xsl deleted file mode 100644 index f530170fb8..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.4-4.xsl +++ /dev/null @@ -1,20 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:fo="http://www.w3.org/1999/XSL/Format"> -<xsl:template match="doc"> -<doc> - <xsl:apply-templates select="//employee"/> -</doc> -</xsl:template> - -<xsl:template match="employee"> - <fo:block> - Employee <xsl:apply-templates select="name"/> belongs to group - <xsl:apply-templates select="ancestor::department/group"/> - </fo:block> -</xsl:template> -<xsl:template match="group"> -<xsl:apply-templates select="name"/> -</xsl:template> - -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.4-5.out b/src/tools/docbook/libxslt/tests/REC/test-5.4-5.out deleted file mode 100644 index 1b24fa598c..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.4-5.out +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version="1.0"?> -div found div found diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.4-5.xml b/src/tools/docbook/libxslt/tests/REC/test-5.4-5.xml deleted file mode 100644 index 25c623b65e..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.4-5.xml +++ /dev/null @@ -1 +0,0 @@ -<doc><div><div></div></div></doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.4-5.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.4-5.xsl deleted file mode 100644 index d0d192e119..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.4-5.xsl +++ /dev/null @@ -1,10 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - -<xsl:template match="doc"> - <xsl:apply-templates select=".//div"/> -</xsl:template> -<xsl:template match="div"> -<xsl:text>div found </xsl:text> -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.8.out b/src/tools/docbook/libxslt/tests/REC/test-5.8.out deleted file mode 100644 index 409d2ef35b..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.8.out +++ /dev/null @@ -1,6 +0,0 @@ -<?xml version="1.0"?> - - - - elem content - diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.8.xml b/src/tools/docbook/libxslt/tests/REC/test-5.8.xml deleted file mode 100644 index d0154e3739..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.8.xml +++ /dev/null @@ -1,7 +0,0 @@ -<?tst-pi pi 1 ?> -<!-- comment 1 --> -<doc xmlns:unused="http://example.org/unused"> - <?tst-pi pi 2 ?> - <!-- comment 2 --> - <elem attr="attr value">elem content</elem> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-5.8.xsl b/src/tools/docbook/libxslt/tests/REC/test-5.8.xsl deleted file mode 100644 index 8425792d46..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-5.8.xsl +++ /dev/null @@ -1,4 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<!-- empty stylesheet --> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-6.out b/src/tools/docbook/libxslt/tests/REC/test-6.out deleted file mode 100644 index baa12e98be..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-6.out +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version="1.0"?> -doc found diff --git a/src/tools/docbook/libxslt/tests/REC/test-6.xml b/src/tools/docbook/libxslt/tests/REC/test-6.xml deleted file mode 100644 index 76c01080d8..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-6.xml +++ /dev/null @@ -1 +0,0 @@ -<doc><div></div></doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-6.xsl b/src/tools/docbook/libxslt/tests/REC/test-6.xsl deleted file mode 100644 index 707e1103ca..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-6.xsl +++ /dev/null @@ -1,11 +0,0 @@ -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - -<xsl:template match="doc"> - <xsl:call-template name="docfound"/> -</xsl:template> - -<xsl:template name="docfound"> -<xsl:text>doc found</xsl:text> -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.1.1-2.out b/src/tools/docbook/libxslt/tests/REC/test-7.1.1-2.out deleted file mode 100644 index 29c31b7056..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.1.1-2.out +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version="1.0"?> -<out>SUCCESS</out> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.1.1-2.xml b/src/tools/docbook/libxslt/tests/REC/test-7.1.1-2.xml deleted file mode 100644 index 69d62f2c9a..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.1.1-2.xml +++ /dev/null @@ -1 +0,0 @@ -<doc/> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.1.1-2.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.1.1-2.xsl deleted file mode 100644 index 12ca7be456..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.1.1-2.xsl +++ /dev/null @@ -1,13 +0,0 @@ -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:doc="http://example.org/doc" - exclude-result-prefixes="doc"> - -<doc:doc>Some ignored documentation the prefix should not show - up on the doc element</doc:doc> -<xsl:template match="/"> -<out>SUCCESS</out> -</xsl:template> - -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.1.1-3.out b/src/tools/docbook/libxslt/tests/REC/test-7.1.1-3.out deleted file mode 100644 index 29c31b7056..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.1.1-3.out +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version="1.0"?> -<out>SUCCESS</out> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.1.1-3.xml b/src/tools/docbook/libxslt/tests/REC/test-7.1.1-3.xml deleted file mode 100644 index 69d62f2c9a..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.1.1-3.xml +++ /dev/null @@ -1 +0,0 @@ -<doc/> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.1.1-3.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.1.1-3.xsl deleted file mode 100644 index 365a883d0e..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.1.1-3.xsl +++ /dev/null @@ -1,12 +0,0 @@ -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:doc="http://example.org/doc"> - -<doc:doc>Some ignored documentation the prefix should not show - up on the doc element</doc:doc> -<xsl:template match="/"> -<out xsl:exclude-result-prefixes="doc">SUCCESS</out> -</xsl:template> - -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.1.1.out b/src/tools/docbook/libxslt/tests/REC/test-7.1.1.out deleted file mode 100644 index f66406d691..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.1.1.out +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0"?> -<axsl:stylesheet xmlns:axsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> -<axsl:template match="p"><fo:block><axsl:apply-templates/></fo:block></axsl:template> -<axsl:template match="h1"><fo:block><axsl:apply-templates/></fo:block></axsl:template> -<axsl:template match="h2"><fo:block><axsl:apply-templates/></fo:block></axsl:template> -<axsl:template match="h3"><fo:block><axsl:apply-templates/></fo:block></axsl:template> -<axsl:template match="h4"><fo:block><axsl:apply-templates/></fo:block></axsl:template> -</axsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.1.1.xml b/src/tools/docbook/libxslt/tests/REC/test-7.1.1.xml deleted file mode 100644 index d88b575848..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.1.1.xml +++ /dev/null @@ -1,7 +0,0 @@ -<elements> -<block>p</block> -<block>h1</block> -<block>h2</block> -<block>h3</block> -<block>h4</block> -</elements> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.1.1.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.1.1.xsl deleted file mode 100644 index 10cc935952..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.1.1.xsl +++ /dev/null @@ -1,21 +0,0 @@ -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:fo="http://www.w3.org/1999/XSL/Format" - xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias"> - -<xsl:namespace-alias stylesheet-prefix="axsl" result-prefix="xsl"/> - -<xsl:template match="/"> - <axsl:stylesheet> - <xsl:apply-templates/> - </axsl:stylesheet> -</xsl:template> - -<xsl:template match="block"> - <axsl:template match="{.}"> - <fo:block><axsl:apply-templates/></fo:block> - </axsl:template> -</xsl:template> - -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.1.3.out b/src/tools/docbook/libxslt/tests/REC/test-7.1.3.out deleted file mode 100644 index dee0832274..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.1.3.out +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version="1.0"?> -<doc attr="value"/> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.1.3.xml b/src/tools/docbook/libxslt/tests/REC/test-7.1.3.xml deleted file mode 100644 index 69d62f2c9a..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.1.3.xml +++ /dev/null @@ -1 +0,0 @@ -<doc/> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.1.3.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.1.3.xsl deleted file mode 100644 index 36d5b7528d..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.1.3.xsl +++ /dev/null @@ -1,19 +0,0 @@ -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias"> - -<xsl:namespace-alias stylesheet-prefix="axsl" result-prefix="xsl"/> - -<xsl:template match="doc"> -<doc> -<xsl:attribute name="xmlns:xsl" namespace="whatever">http://www.w3.org/1999/XSL/Transform</xsl:attribute> -<xsl:attribute name="attr">value</xsl:attribute> -<!-- -<xsl:attribute name="a">x -y</xsl:attribute> ---> -</doc> -</xsl:template> - -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.1.4.out b/src/tools/docbook/libxslt/tests/REC/test-7.1.4.out deleted file mode 100644 index bd366cd35e..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.1.4.out +++ /dev/null @@ -1,6 +0,0 @@ -<?xml version="1.0"?> - - -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" quadding="start" font-size="12pt" font-weight="bold">this is the heading</fo:block> - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.1.4.xml b/src/tools/docbook/libxslt/tests/REC/test-7.1.4.xml deleted file mode 100644 index 50ab16a8dc..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.1.4.xml +++ /dev/null @@ -1,5 +0,0 @@ -<doc> -<chapter> -<heading>this is the heading</heading> -</chapter> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.1.4.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.1.4.xsl deleted file mode 100644 index 88c61b994e..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.1.4.xsl +++ /dev/null @@ -1,19 +0,0 @@ -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:fo="http://www.w3.org/1999/XSL/Format" - xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias"> - -<xsl:namespace-alias stylesheet-prefix="axsl" result-prefix="xsl"/> - -<xsl:template match="chapter/heading"> - <fo:block quadding="start" xsl:use-attribute-sets="title-style"> - <xsl:apply-templates/> - </fo:block> -</xsl:template> - -<xsl:attribute-set name="title-style"> - <xsl:attribute name="font-size">12pt</xsl:attribute> - <xsl:attribute name="font-weight">bold</xsl:attribute> -</xsl:attribute-set> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.3.out b/src/tools/docbook/libxslt/tests/REC/test-7.3.out deleted file mode 100644 index 923fbfa392..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.3.out +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version="1.0"?> -<doc><?xml-stylesheet href="book.css" type="text/css"?></doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.3.xml b/src/tools/docbook/libxslt/tests/REC/test-7.3.xml deleted file mode 100644 index 636923c5e3..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.3.xml +++ /dev/null @@ -1,2 +0,0 @@ -<doc> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.3.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.3.xsl deleted file mode 100644 index 2f5675c0c8..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.3.xsl +++ /dev/null @@ -1,14 +0,0 @@ -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias"> - -<xsl:namespace-alias stylesheet-prefix="axsl" result-prefix="xsl"/> - -<xsl:template match="doc"> -<doc> -<xsl:processing-instruction name="xml-stylesheet">href="book.css" type="text/css"</xsl:processing-instruction> -</doc> -</xsl:template> - -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.4.out b/src/tools/docbook/libxslt/tests/REC/test-7.4.out deleted file mode 100644 index cf037f2f17..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.4.out +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version="1.0"?> -<doc><!--This file is automatically generated. Do not edit!--></doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.4.xml b/src/tools/docbook/libxslt/tests/REC/test-7.4.xml deleted file mode 100644 index 636923c5e3..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.4.xml +++ /dev/null @@ -1,2 +0,0 @@ -<doc> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.4.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.4.xsl deleted file mode 100644 index 8e9cdff2d3..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.4.xsl +++ /dev/null @@ -1,14 +0,0 @@ -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias"> - -<xsl:namespace-alias stylesheet-prefix="axsl" result-prefix="xsl"/> - -<xsl:template match="doc"> -<doc> -<xsl:comment>This file is automatically generated. Do not edit!</xsl:comment> -</doc> -</xsl:template> - -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.5-1.out b/src/tools/docbook/libxslt/tests/REC/test-7.5-1.out deleted file mode 100644 index 450c3f1ac8..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.5-1.out +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0"?> -<doc attr="value"> - <child attr1="val" attr2="val2">content</child> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.5-1.xml b/src/tools/docbook/libxslt/tests/REC/test-7.5-1.xml deleted file mode 100644 index f3a0c0a0aa..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.5-1.xml +++ /dev/null @@ -1,3 +0,0 @@ -<doc attr="value"> - <child attr1="val" attr2="val2">content</child> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.5-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.5-1.xsl deleted file mode 100644 index b832f5fa35..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.5-1.xsl +++ /dev/null @@ -1,12 +0,0 @@ -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:fo="http://www.w3.org/1999/XSL/Format" - xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias"> - -<xsl:template match="@*|node()"> - <xsl:copy> - <xsl:apply-templates select="@*|node()"/> - </xsl:copy> -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-1.out b/src/tools/docbook/libxslt/tests/REC/test-7.6.1-1.out deleted file mode 100644 index c7d1d09ce1..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-1.out +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0"?> - - <p>Joe Bar</p> - <p>Boc Dude</p> - diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-1.xml b/src/tools/docbook/libxslt/tests/REC/test-7.6.1-1.xml deleted file mode 100644 index 2cc5097448..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-1.xml +++ /dev/null @@ -1,4 +0,0 @@ -<doc> - <person given-name="Joe" family-name="Bar"/> - <person given-name="Boc" family-name="Dude"/> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.6.1-1.xsl deleted file mode 100644 index b74aaf3d2c..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-1.xsl +++ /dev/null @@ -1,12 +0,0 @@ -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - -<xsl:template match="person"> - <p> - <xsl:value-of select="@given-name"/> - <xsl:text> </xsl:text> - <xsl:value-of select="@family-name"/> - </p> -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-2.out b/src/tools/docbook/libxslt/tests/REC/test-7.6.1-2.out deleted file mode 100644 index c7d1d09ce1..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-2.out +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0"?> - - <p>Joe Bar</p> - <p>Boc Dude</p> - diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-2.xml b/src/tools/docbook/libxslt/tests/REC/test-7.6.1-2.xml deleted file mode 100644 index f401c09da7..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-2.xml +++ /dev/null @@ -1,4 +0,0 @@ -<doc> - <person><given-name>Joe</given-name><family-name>Bar</family-name></person> - <person><given-name>Boc</given-name><family-name>Dude</family-name></person> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-2.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.6.1-2.xsl deleted file mode 100644 index 0bc12a6af2..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-2.xsl +++ /dev/null @@ -1,12 +0,0 @@ -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - -<xsl:template match="person"> - <p> - <xsl:value-of select="given-name"/> - <xsl:text> </xsl:text> - <xsl:value-of select="family-name"/> - </p> -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-3.out b/src/tools/docbook/libxslt/tests/REC/test-7.6.1-3.out deleted file mode 100644 index 2b004909df..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-3.out +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0"?> - - - - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">high</fo:block>secure-proc - - - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">low</fo:block>insecure-proc - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-3.xml b/src/tools/docbook/libxslt/tests/REC/test-7.6.1-3.xml deleted file mode 100644 index ed7d3de978..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-3.xml +++ /dev/null @@ -1,10 +0,0 @@ -<doc> - <chapter security="low"> - <para security="high"> - <procedure>secure-proc</procedure> - </para> - <para> - <procedure>insecure-proc</procedure> - </para> - </chapter> -</doc> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-3.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.6.1-3.xsl deleted file mode 100644 index edba6f58ce..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.6.1-3.xsl +++ /dev/null @@ -1,12 +0,0 @@ -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:fo="http://www.w3.org/1999/XSL/Format"> - -<xsl:template match="procedure"> - <fo:block> - <xsl:value-of select="ancestor-or-self::*[@security][1]/@security"/> - </fo:block> - <xsl:apply-templates/> -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.6.2-1.out b/src/tools/docbook/libxslt/tests/REC/test-7.6.2-1.out deleted file mode 100644 index 70a179bfc8..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.6.2-1.out +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version="1.0"?> -<img src="/images/headquarters.jpg" width="300"/> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.6.2-1.xml b/src/tools/docbook/libxslt/tests/REC/test-7.6.2-1.xml deleted file mode 100644 index c78bcf64ee..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.6.2-1.xml +++ /dev/null @@ -1,4 +0,0 @@ -<photograph> - <href>headquarters.jpg</href> - <size width="300"/> -</photograph> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.6.2-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.6.2-1.xsl deleted file mode 100644 index 4eb9a80593..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.6.2-1.xsl +++ /dev/null @@ -1,10 +0,0 @@ -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - -<xsl:variable name="image-dir">/images</xsl:variable> - -<xsl:template match="photograph"> -<img src="{$image-dir}/{href}" width="{size/@width}"/> -</xsl:template> -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.7-1.out b/src/tools/docbook/libxslt/tests/REC/test-7.7-1.out deleted file mode 100644 index 97d0ed6611..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.7-1.out +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version="1.0"?> -<p>1. First</p><p>2. Fourth</p><p>3. Second</p><p>4. Third</p> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.7-1.xml b/src/tools/docbook/libxslt/tests/REC/test-7.7-1.xml deleted file mode 100644 index ceacea5883..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.7-1.xml +++ /dev/null @@ -1,6 +0,0 @@ -<items> - <item>First</item> - <item>Second</item> - <item>Third</item> - <item>Fourth</item> -</items> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.7-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.7-1.xsl deleted file mode 100644 index 71778dbaff..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.7-1.xsl +++ /dev/null @@ -1,15 +0,0 @@ -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - -<xsl:template match="items"> - <xsl:for-each select="item"> - <xsl:sort select="."/> - <p> - <xsl:number value="position()" format="1. "/> - <xsl:value-of select="."/> - </p> - </xsl:for-each> -</xsl:template> - -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.7-2.out b/src/tools/docbook/libxslt/tests/REC/test-7.7-2.out deleted file mode 100644 index 772fddf446..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.7-2.out +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0"?> - - - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">1. First</fo:block> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">2. Second</fo:block> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">3. Third</fo:block> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">4. Fourth</fo:block> - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.7-2.xml b/src/tools/docbook/libxslt/tests/REC/test-7.7-2.xml deleted file mode 100644 index 06e9953823..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.7-2.xml +++ /dev/null @@ -1,8 +0,0 @@ -<list> - <ol> - <item>First</item> - <item>Second</item> - <item>Third</item> - <item>Fourth</item> - </ol> -</list> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.7-2.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.7-2.xsl deleted file mode 100644 index 99b369a2a9..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.7-2.xsl +++ /dev/null @@ -1,12 +0,0 @@ -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:fo="http://www.w3.org/1999/XSL/Format"> - -<xsl:template match="ol/item"> - <fo:block> - <xsl:number/><xsl:text>. </xsl:text><xsl:apply-templates/> - </fo:block> -</xsl:template> - -</xsl:stylesheet> diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.7-3.out b/src/tools/docbook/libxslt/tests/REC/test-7.7-3.out deleted file mode 100644 index 72814505af..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.7-3.out +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0"?> - - - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">1 First Chapter</fo:block> - Here is some text. - - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">1.1 First Chapter, First Section</fo:block> - More text here. - - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">1.1.1 First Chapter, First Section, First Subsection</fo:block> - - - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">1.1.2 First Chapter, First Section, Second Subsection</fo:block> - - - - - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">2 Second Chapter</fo:block> - - - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">A First Appendix</fo:block> - - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">A.1 First Appendix, First Section</fo:block> - - - - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">B Second Appendix</fo:block> - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.7-3.xml b/src/tools/docbook/libxslt/tests/REC/test-7.7-3.xml deleted file mode 100644 index cd42869f4b..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.7-3.xml +++ /dev/null @@ -1,28 +0,0 @@ -<book> - <chapter> - <title>First Chapter - Here is some text. -
    - First Chapter, First Section - More text here. - - First Chapter, First Section, First Subsection - - - First Chapter, First Section, Second Subsection - -
    - - - Second Chapter - - - First Appendix -
    - First Appendix, First Section -
    -
    - - Second Appendix - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.7-3.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.7-3.xsl deleted file mode 100644 index 3d4c9a8661..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.7-3.xsl +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.7-4.out b/src/tools/docbook/libxslt/tests/REC/test-7.7-4.out deleted file mode 100644 index 47d37bd93f..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.7-4.out +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - (1) A note here - (2) And here - - - - - - - (1) And another note here - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.7-4.xml b/src/tools/docbook/libxslt/tests/REC/test-7.7-4.xml deleted file mode 100644 index f7e8f9e021..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.7-4.xml +++ /dev/null @@ -1,15 +0,0 @@ - - -
    - - A note here - And here - - - -
    -
    - - And another note here - -
    diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.7-4.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.7-4.xsl deleted file mode 100644 index 5f15af19a6..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.7-4.xsl +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.7-5.out b/src/tools/docbook/libxslt/tests/REC/test-7.7-5.out deleted file mode 100644 index ed00fb7441..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.7-5.out +++ /dev/null @@ -1,10 +0,0 @@ - - - - - 1.1.1 one - 1.1.2 two - 1.1.3 three - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.7-5.xml b/src/tools/docbook/libxslt/tests/REC/test-7.7-5.xml deleted file mode 100644 index 8a5e753a45..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.7-5.xml +++ /dev/null @@ -1,9 +0,0 @@ -

    -

    -

    -

    one

    -

    two

    -

    three

    - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-7.7-5.xsl b/src/tools/docbook/libxslt/tests/REC/test-7.7-5.xsl deleted file mode 100644 index b3dfa995f4..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-7.7-5.xsl +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - . - - . - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-8-1.out b/src/tools/docbook/libxslt/tests/REC/test-8-1.out deleted file mode 100644 index 0cb800eecd..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-8-1.out +++ /dev/null @@ -1,18 +0,0 @@ - - - -Customers - - - - - - - - - - - - -
    .........
    .........
    - diff --git a/src/tools/docbook/libxslt/tests/REC/test-8-1.xml b/src/tools/docbook/libxslt/tests/REC/test-8-1.xml deleted file mode 100644 index 0a5244847e..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-8-1.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - ... - ... - ... - - - ... - ... - ... - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-8-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-8-1.xsl deleted file mode 100644 index 822eb7524c..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-8-1.xsl +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Customers - - - - - - - - - - - - - -
    - - - -
    - - -
    -
    diff --git a/src/tools/docbook/libxslt/tests/REC/test-9.1-1.out b/src/tools/docbook/libxslt/tests/REC/test-9.1-1.out deleted file mode 100644 index 4db8388a6b..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-9.1-1.out +++ /dev/null @@ -1,2 +0,0 @@ - -name1, name2, name3 diff --git a/src/tools/docbook/libxslt/tests/REC/test-9.1-1.xml b/src/tools/docbook/libxslt/tests/REC/test-9.1-1.xml deleted file mode 100644 index 8223037db1..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-9.1-1.xml +++ /dev/null @@ -1,5 +0,0 @@ - - name1 - name2 - name3 - diff --git a/src/tools/docbook/libxslt/tests/REC/test-9.1-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-9.1-1.xsl deleted file mode 100644 index 1d1fcbd092..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-9.1-1.xsl +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - , - - diff --git a/src/tools/docbook/libxslt/tests/REC/test-9.1-2.out b/src/tools/docbook/libxslt/tests/REC/test-9.1-2.out deleted file mode 100644 index 7f6754f538..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-9.1-2.out +++ /dev/null @@ -1,8 +0,0 @@ - -item1 -item2 -item3 -item4 -item5 -item6 -
    diff --git a/src/tools/docbook/libxslt/tests/REC/test-9.1-2.xml b/src/tools/docbook/libxslt/tests/REC/test-9.1-2.xml deleted file mode 100644 index 846e3fa5d9..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-9.1-2.xml +++ /dev/null @@ -1,8 +0,0 @@ - - item1 - item2 - item3 - item4 - item5 - item6 - diff --git a/src/tools/docbook/libxslt/tests/REC/test-9.1-2.xsl b/src/tools/docbook/libxslt/tests/REC/test-9.1-2.xsl deleted file mode 100644 index 03a1b64a2e..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-9.1-2.xsl +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - -
    -
    - - - - - yellow - - - - -
    diff --git a/src/tools/docbook/libxslt/tests/REC/test-9.2-1.xsl b/src/tools/docbook/libxslt/tests/REC/test-9.2-1.xsl deleted file mode 100644 index 7070e131f5..0000000000 --- a/src/tools/docbook/libxslt/tests/REC/test-9.2-1.xsl +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - . - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/REC1/Makefile.am b/src/tools/docbook/libxslt/tests/REC1/Makefile.am deleted file mode 100644 index 3b00f0be30..0000000000 --- a/src/tools/docbook/libxslt/tests/REC1/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -## Process this file with automake to produce Makefile.in - -$(top_builddir)/xsltproc/xsltproc: - @(cd ../../xsltproc ; $(MAKE) xsltproc) - -EXTRA_DIST = doc.xsl doc.xml doc.dtd result.xml - -all: - -valgrind: - @echo '## Running the regression tests under Valgrind' - $(MAKE) CHECKER='valgrind -q' tests - -# No special stuff here, just a single test that either works or doesn't! -test tests: $(top_builddir)/xsltproc/xsltproc - @echo '## Running REC1 tests' - @(echo > .memdump) - @($(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/doc.xsl $(srcdir)/doc.xml > doc.res ; \ - diff $(srcdir)/result.xml doc.res ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true; \ - rm -f doc.res) - diff --git a/src/tools/docbook/libxslt/tests/REC1/Makefile.in b/src/tools/docbook/libxslt/tests/REC1/Makefile.in deleted file mode 100644 index 13e57d1084..0000000000 --- a/src/tools/docbook/libxslt/tests/REC1/Makefile.in +++ /dev/null @@ -1,389 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = ../.. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = tests/REC1 -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXSLT_INCLUDEDIR = @EXSLT_INCLUDEDIR@ -EXSLT_LIBDIR = @EXSLT_LIBDIR@ -EXSLT_LIBS = @EXSLT_LIBS@ -EXTRA_LIBS = @EXTRA_LIBS@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -HTML_DIR = @HTML_DIR@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBEXSLT_MAJOR_VERSION = @LIBEXSLT_MAJOR_VERSION@ -LIBEXSLT_MICRO_VERSION = @LIBEXSLT_MICRO_VERSION@ -LIBEXSLT_MINOR_VERSION = @LIBEXSLT_MINOR_VERSION@ -LIBEXSLT_VERSION = @LIBEXSLT_VERSION@ -LIBEXSLT_VERSION_EXTRA = @LIBEXSLT_VERSION_EXTRA@ -LIBEXSLT_VERSION_INFO = @LIBEXSLT_VERSION_INFO@ -LIBEXSLT_VERSION_NUMBER = @LIBEXSLT_VERSION_NUMBER@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBXML_CFLAGS = @LIBXML_CFLAGS@ -LIBXML_LIBS = @LIBXML_LIBS@ -LIBXML_REQUIRED_VERSION = @LIBXML_REQUIRED_VERSION@ -LIBXML_SRC = @LIBXML_SRC@ -LIBXSLT_DEFAULT_PLUGINS_PATH = @LIBXSLT_DEFAULT_PLUGINS_PATH@ -LIBXSLT_MAJOR_MINOR_VERSION = @LIBXSLT_MAJOR_MINOR_VERSION@ -LIBXSLT_MAJOR_VERSION = @LIBXSLT_MAJOR_VERSION@ -LIBXSLT_MICRO_VERSION = @LIBXSLT_MICRO_VERSION@ -LIBXSLT_MINOR_VERSION = @LIBXSLT_MINOR_VERSION@ -LIBXSLT_VERSION = @LIBXSLT_VERSION@ -LIBXSLT_VERSION_EXTRA = @LIBXSLT_VERSION_EXTRA@ -LIBXSLT_VERSION_INFO = @LIBXSLT_VERSION_INFO@ -LIBXSLT_VERSION_NUMBER = @LIBXSLT_VERSION_NUMBER@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MV = @MV@ -M_LIBS = @M_LIBS@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -PYTHON = @PYTHON@ -PYTHONSODV = @PYTHONSODV@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@ -PYTHON_SUBDIR = @PYTHON_SUBDIR@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -RELDATE = @RELDATE@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STATIC_BINARIES = @STATIC_BINARIES@ -STRIP = @STRIP@ -TAR = @TAR@ -VERSION = @VERSION@ -WIN32_EXTRA_LDFLAGS = @WIN32_EXTRA_LDFLAGS@ -WIN32_EXTRA_LIBADD = @WIN32_EXTRA_LIBADD@ -WITH_CRYPTO = @WITH_CRYPTO@ -WITH_DEBUGGER = @WITH_DEBUGGER@ -WITH_MEM_DEBUG = @WITH_MEM_DEBUG@ -WITH_MODULES = @WITH_MODULES@ -WITH_MODULES_FALSE = @WITH_MODULES_FALSE@ -WITH_MODULES_TRUE = @WITH_MODULES_TRUE@ -WITH_PERL_FALSE = @WITH_PERL_FALSE@ -WITH_PERL_TRUE = @WITH_PERL_TRUE@ -WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@ -WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@ -WITH_TRIO = @WITH_TRIO@ -WITH_XSLT_DEBUG = @WITH_XSLT_DEBUG@ -XML_CONFIG = @XML_CONFIG@ -XSLTPROCDV = @XSLTPROCDV@ -XSLT_INCLUDEDIR = @XSLT_INCLUDEDIR@ -XSLT_LIBDIR = @XSLT_LIBDIR@ -XSLT_LIBS = @XSLT_LIBS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -EXTRA_DIST = doc.xsl doc.xml doc.dtd result.xml -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/REC1/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu tests/REC1/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-libtool - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - distclean distclean-generic distclean-libtool distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-exec install-exec-am \ - install-info install-info-am install-man install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-info-am - - -$(top_builddir)/xsltproc/xsltproc: - @(cd ../../xsltproc ; $(MAKE) xsltproc) - -all: - -valgrind: - @echo '## Running the regression tests under Valgrind' - $(MAKE) CHECKER='valgrind -q' tests - -# No special stuff here, just a single test that either works or doesn't! -test tests: $(top_builddir)/xsltproc/xsltproc - @echo '## Running REC1 tests' - @(echo > .memdump) - @($(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/doc.xsl $(srcdir)/doc.xml > doc.res ; \ - diff $(srcdir)/result.xml doc.res ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true; \ - rm -f doc.res) -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/tools/docbook/libxslt/tests/REC1/doc.dtd b/src/tools/docbook/libxslt/tests/REC1/doc.dtd deleted file mode 100644 index f06b4dc4f1..0000000000 --- a/src/tools/docbook/libxslt/tests/REC1/doc.dtd +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/REC1/doc.xml b/src/tools/docbook/libxslt/tests/REC1/doc.xml deleted file mode 100644 index 0bad25448c..0000000000 --- a/src/tools/docbook/libxslt/tests/REC1/doc.xml +++ /dev/null @@ -1,17 +0,0 @@ - - -Document Title - -Chapter Title -
    -Section Title -This is a test. -This is a note. -
    -
    -Another Section Title -This is another test. -This is another note. -
    -
    -
    diff --git a/src/tools/docbook/libxslt/tests/REC1/doc.xsl b/src/tools/docbook/libxslt/tests/REC1/doc.xsl deleted file mode 100644 index bcc60a4db7..0000000000 --- a/src/tools/docbook/libxslt/tests/REC1/doc.xsl +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - <xsl:value-of select="title"/> - - - - - - - - - -

    - -

    -
    - - -

    - -

    -
    - - -

    - -

    -
    - - -

    - -

    -
    - - -

    - NOTE: - -

    -
    - - - - - - - -
    diff --git a/src/tools/docbook/libxslt/tests/REC1/result.xml b/src/tools/docbook/libxslt/tests/REC1/result.xml deleted file mode 100644 index 4e7836b334..0000000000 --- a/src/tools/docbook/libxslt/tests/REC1/result.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - Document Title - - -

    Document Title

    -

    Chapter Title

    -

    Section Title

    -

    This is a test.

    -

    NOTE: This is a note.

    -

    Another Section Title

    -

    This is another test.

    -

    NOTE: This is another note.

    - - diff --git a/src/tools/docbook/libxslt/tests/REC2/Makefile.am b/src/tools/docbook/libxslt/tests/REC2/Makefile.am deleted file mode 100644 index 06c679bdb4..0000000000 --- a/src/tools/docbook/libxslt/tests/REC2/Makefile.am +++ /dev/null @@ -1,30 +0,0 @@ -## Process this file with automake to produce Makefile.in - -$(top_builddir)/xsltproc/xsltproc: - @(cd ../../xsltproc ; $(MAKE) xsltproc) - -EXTRA_DIST = data.xml vrml.xsl vrml.xml svg.xsl svg.xml html.xsl html.xml - -all: - -valgrind: - @echo '## Running the regression tests under Valgrind' - $(MAKE) CHECKER='valgrind -q' tests - -# Just 3 specific files tested, they either work or don't! -test tests: $(top_builddir)/xsltproc/xsltproc - @echo '## Running REC2 tests' - @(echo > .memdump) - @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/vrml.xsl $(srcdir)/data.xml > vrml.res ; \ - diff $(srcdir)/vrml.xml vrml.res ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ - rm -f vrml.res) - @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/svg.xsl $(srcdir)/data.xml > svg.res ; \ - diff $(srcdir)/svg.xml svg.res ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ - rm -f svg.res) - @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/html.xsl $(srcdir)/data.xml > html.res ; \ - diff $(srcdir)/html.xml html.res ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ - rm -f html.res) - diff --git a/src/tools/docbook/libxslt/tests/REC2/Makefile.in b/src/tools/docbook/libxslt/tests/REC2/Makefile.in deleted file mode 100644 index 0db300c90c..0000000000 --- a/src/tools/docbook/libxslt/tests/REC2/Makefile.in +++ /dev/null @@ -1,396 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = ../.. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = tests/REC2 -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXSLT_INCLUDEDIR = @EXSLT_INCLUDEDIR@ -EXSLT_LIBDIR = @EXSLT_LIBDIR@ -EXSLT_LIBS = @EXSLT_LIBS@ -EXTRA_LIBS = @EXTRA_LIBS@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -HTML_DIR = @HTML_DIR@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBEXSLT_MAJOR_VERSION = @LIBEXSLT_MAJOR_VERSION@ -LIBEXSLT_MICRO_VERSION = @LIBEXSLT_MICRO_VERSION@ -LIBEXSLT_MINOR_VERSION = @LIBEXSLT_MINOR_VERSION@ -LIBEXSLT_VERSION = @LIBEXSLT_VERSION@ -LIBEXSLT_VERSION_EXTRA = @LIBEXSLT_VERSION_EXTRA@ -LIBEXSLT_VERSION_INFO = @LIBEXSLT_VERSION_INFO@ -LIBEXSLT_VERSION_NUMBER = @LIBEXSLT_VERSION_NUMBER@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBXML_CFLAGS = @LIBXML_CFLAGS@ -LIBXML_LIBS = @LIBXML_LIBS@ -LIBXML_REQUIRED_VERSION = @LIBXML_REQUIRED_VERSION@ -LIBXML_SRC = @LIBXML_SRC@ -LIBXSLT_DEFAULT_PLUGINS_PATH = @LIBXSLT_DEFAULT_PLUGINS_PATH@ -LIBXSLT_MAJOR_MINOR_VERSION = @LIBXSLT_MAJOR_MINOR_VERSION@ -LIBXSLT_MAJOR_VERSION = @LIBXSLT_MAJOR_VERSION@ -LIBXSLT_MICRO_VERSION = @LIBXSLT_MICRO_VERSION@ -LIBXSLT_MINOR_VERSION = @LIBXSLT_MINOR_VERSION@ -LIBXSLT_VERSION = @LIBXSLT_VERSION@ -LIBXSLT_VERSION_EXTRA = @LIBXSLT_VERSION_EXTRA@ -LIBXSLT_VERSION_INFO = @LIBXSLT_VERSION_INFO@ -LIBXSLT_VERSION_NUMBER = @LIBXSLT_VERSION_NUMBER@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MV = @MV@ -M_LIBS = @M_LIBS@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -PYTHON = @PYTHON@ -PYTHONSODV = @PYTHONSODV@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@ -PYTHON_SUBDIR = @PYTHON_SUBDIR@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -RELDATE = @RELDATE@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STATIC_BINARIES = @STATIC_BINARIES@ -STRIP = @STRIP@ -TAR = @TAR@ -VERSION = @VERSION@ -WIN32_EXTRA_LDFLAGS = @WIN32_EXTRA_LDFLAGS@ -WIN32_EXTRA_LIBADD = @WIN32_EXTRA_LIBADD@ -WITH_CRYPTO = @WITH_CRYPTO@ -WITH_DEBUGGER = @WITH_DEBUGGER@ -WITH_MEM_DEBUG = @WITH_MEM_DEBUG@ -WITH_MODULES = @WITH_MODULES@ -WITH_MODULES_FALSE = @WITH_MODULES_FALSE@ -WITH_MODULES_TRUE = @WITH_MODULES_TRUE@ -WITH_PERL_FALSE = @WITH_PERL_FALSE@ -WITH_PERL_TRUE = @WITH_PERL_TRUE@ -WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@ -WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@ -WITH_TRIO = @WITH_TRIO@ -WITH_XSLT_DEBUG = @WITH_XSLT_DEBUG@ -XML_CONFIG = @XML_CONFIG@ -XSLTPROCDV = @XSLTPROCDV@ -XSLT_INCLUDEDIR = @XSLT_INCLUDEDIR@ -XSLT_LIBDIR = @XSLT_LIBDIR@ -XSLT_LIBS = @XSLT_LIBS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -EXTRA_DIST = data.xml vrml.xsl vrml.xml svg.xsl svg.xml html.xsl html.xml -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/REC2/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu tests/REC2/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-libtool - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - distclean distclean-generic distclean-libtool distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-exec install-exec-am \ - install-info install-info-am install-man install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-info-am - - -$(top_builddir)/xsltproc/xsltproc: - @(cd ../../xsltproc ; $(MAKE) xsltproc) - -all: - -valgrind: - @echo '## Running the regression tests under Valgrind' - $(MAKE) CHECKER='valgrind -q' tests - -# Just 3 specific files tested, they either work or don't! -test tests: $(top_builddir)/xsltproc/xsltproc - @echo '## Running REC2 tests' - @(echo > .memdump) - @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/vrml.xsl $(srcdir)/data.xml > vrml.res ; \ - diff $(srcdir)/vrml.xml vrml.res ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ - rm -f vrml.res) - @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/svg.xsl $(srcdir)/data.xml > svg.res ; \ - diff $(srcdir)/svg.xml svg.res ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ - rm -f svg.res) - @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/html.xsl $(srcdir)/data.xml > html.res ; \ - diff $(srcdir)/html.xml html.res ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ - rm -f html.res) -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/tools/docbook/libxslt/tests/REC2/data.xml b/src/tools/docbook/libxslt/tests/REC2/data.xml deleted file mode 100644 index a54374175b..0000000000 --- a/src/tools/docbook/libxslt/tests/REC2/data.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - 10 - 9 - 7 - - - - 4 - 3 - 4 - - - - 6 - -1.5 - 2 - - - diff --git a/src/tools/docbook/libxslt/tests/REC2/html.xml b/src/tools/docbook/libxslt/tests/REC2/html.xml deleted file mode 100644 index 94ed6c59bc..0000000000 --- a/src/tools/docbook/libxslt/tests/REC2/html.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - -Sales Results By Division - - - - - - - - - - - - - - - - - - - - - - - - - - -
    DivisionRevenueGrowthBonus
    North1097
    West6-1.52
    South434
    - diff --git a/src/tools/docbook/libxslt/tests/REC2/html.xsl b/src/tools/docbook/libxslt/tests/REC2/html.xsl deleted file mode 100644 index 1ca301343c..0000000000 --- a/src/tools/docbook/libxslt/tests/REC2/html.xsl +++ /dev/null @@ -1,43 +0,0 @@ - - - Sales Results By Division - - - - - - - - - - - - - - - - - - - -
    DivisionRevenueGrowthBonus
    - - - - - - - - color:red - - - - - -
    - - diff --git a/src/tools/docbook/libxslt/tests/REC2/svg.xml b/src/tools/docbook/libxslt/tests/REC2/svg.xml deleted file mode 100644 index fdaca22724..0000000000 --- a/src/tools/docbook/libxslt/tests/REC2/svg.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Revenue - Division - - North - 10 - - South - 4 - - West - 6 - - diff --git a/src/tools/docbook/libxslt/tests/REC2/svg.xsl b/src/tools/docbook/libxslt/tests/REC2/svg.xsl deleted file mode 100644 index cac685bd14..0000000000 --- a/src/tools/docbook/libxslt/tests/REC2/svg.xsl +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - Revenue - Division - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/REC2/vrml.xml b/src/tools/docbook/libxslt/tests/REC2/vrml.xml deleted file mode 100644 index c9ba69f5b5..0000000000 --- a/src/tools/docbook/libxslt/tests/REC2/vrml.xml +++ /dev/null @@ -1,38 +0,0 @@ -#VRML V2.0 utf8 - -# externproto definition of a single bar element -EXTERNPROTO bar [ - field SFInt32 x - field SFInt32 y - field SFInt32 z - field SFString name - ] - "http://www.vrml.org/WorkingGroups/dbwork/barProto.wrl" - -# inline containing the graph axes -Inline { - url "http://www.vrml.org/WorkingGroups/dbwork/barAxes.wrl" - } - - -bar { - x 10 - y 9 - z 7 - name "North" - } - -bar { - x 4 - y 3 - z 4 - name "South" - } - -bar { - x 6 - y -1.5 - z 2 - name "West" - } - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/REC2/vrml.xsl b/src/tools/docbook/libxslt/tests/REC2/vrml.xsl deleted file mode 100644 index 8c2e33e3c0..0000000000 --- a/src/tools/docbook/libxslt/tests/REC2/vrml.xsl +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - #VRML V2.0 utf8 - -# externproto definition of a single bar element -EXTERNPROTO bar [ - field SFInt32 x - field SFInt32 y - field SFInt32 z - field SFString name - ] - "http://www.vrml.org/WorkingGroups/dbwork/barProto.wrl" - -# inline containing the graph axes -Inline { - url "http://www.vrml.org/WorkingGroups/dbwork/barAxes.wrl" - } - - -bar { - x - y - z - name "" - } - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/Makefile.am b/src/tools/docbook/libxslt/tests/XSLTMark/Makefile.am deleted file mode 100644 index 5f68d024e2..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/Makefile.am +++ /dev/null @@ -1,740 +0,0 @@ -## Process this file with automake to produce Makefile.in -%.out : % - -EXTRA_DIST = \ - dbgen.pl \ - alphabetize.out alphabetize.ref alphabetize.xsl \ - attsets.out attsets.ref attsets.xsl \ - avts.out avts.ref avts.xsl \ - axis.out axis.ref axis.xml axis.xsl \ - backwards.out backwards.ref backwards.xsl \ - bottles.out bottles.ref bottles.xml bottles.xsl \ - breadth.out breadth.ref breadth.xml \ - brutal.out brutal.ref brutal.xml brutal.xsl \ - chart.out chart.ref chart.xml chart.xsl \ - creation.out creation.ref creation.xsl \ - current.out current.ref current.xml current.xsl \ - dbonerow.out dbonerow.ref dbonerow.xsl \ - dbtail.out dbtail.ref dbtail.xsl \ - decoy.out decoy.xsl \ - depth.out depth.ref depth.xml \ - encrypt.out encrypt.ref encrypt.xsl \ - find.xsl \ - functions.out functions.ref functions.xsl \ - game.out game.ref game.xml game.xsl \ - gettysburg.xml \ - html.out html.ref html.xml html.xsl \ - identity.out identity.ref identity.xml identity.xsl \ - inventory.out inventory.ref inventory.xml inventory.xsl \ - metric.out metric.ref metric.xml metric.xsl \ - number.out number.xml number.xsl \ - oddtemplate.out oddtemplate.ref oddtemplate.xml oddtemplate.xsl \ - patterns.out patterns.ref patterns.xsl \ - prettyprint.out prettyprint.ref prettyprint.xsl \ - priority.out priority.ref priority.xml priority.xsl \ - products.out products.ref products.xml products.xsl \ - queens.out queens.ref queens.xml queens.xsl \ - reverser.out reverser.ref reverser.xsl \ - stringsort.out stringsort.ref stringsort.xsl \ - summarize.out summarize.ref summarize.xsl \ - total.out total.ref total.xsl \ - tower.out tower.ref tower.xml tower.xsl tower2.xsl \ - trend.out trend.ref trend.xml trend.xsl \ - union.out union.ref union.xml union.xsl \ - xpath.out xpath.ref xpath.xml xpath.xsl \ - xslbench1.out xslbench1.xml xslbench1.xsl \ - xslbench2.out xslbench2.xsl \ - xslbench3.out xslbench3.xsl \ - xslbenchdream.xml - -ALL_TESTS= alphabetize attsets avts axis backwards bottles breadth brutal chart \ - creation current dbonerow dbtail decoy depth encrypt functions game \ - html identity inventory metric number oddtemplate patterns prettyprint \ - priority products queens reverser stringsort summarize total tower trend \ - union xpath xslbench1 xslbench2 xslbench3 - - -$(top_builddir)/xsltproc/xsltproc: - @(cd ../../xsltproc ; $(MAKE) xsltproc) - -all: - -test tests: - @echo '## Running XSLTMark tests' - @for i in $(ALL_TESTS); do $(MAKE) $$i; done - -valgrind: - @echo '## Running the regression tests under Valgrind' - $(MAKE) CHECKER='valgrind -q' tests - -clean: - rm -f *.tmp *~ core db100.xml db1000.xml db10000.xml - - -if WITH_PERL -db100.xml: $(srcdir)/dbgen.pl - $(PERL) $(srcdir)/dbgen.pl 100 > db100.xml - -db1000.xml: $(srcdir)/dbgen.pl - $(PERL) $(srcdir)/dbgen.pl 1000 > db1000.xml - -db10000.xml: $(srcdir)/dbgen.pl - $(PERL) $(srcdir)/dbgen.pl 10000 > db10000.xml - -alphabetize: db100.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -avts: db100.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -creation: db100.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -dbonerow: db10000.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -dbtail: db100.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -decoy: db100.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -encrypt: db100.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -functions: db100.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -identity: db1000.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -patterns: db100.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -prettyprint: db100.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -stringsort: db1000.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp -else - -alphabetize: -avts: -creation: -dbonerow: -dbtail: -decoy: -encrypt: -functions: -identity: -patterns: -prettyprint: -stringsort: - -endif - -attsets: chart.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -axis: axis.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -backwards: game.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -bottles: bottles.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -brutal: brutal.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -chart: chart.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -current: current.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -game: game.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -html: html.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -inventory: inventory.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -metric: metric.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -number: number.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -oddtemplate: oddtemplate.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -priority: priority.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -products: products.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -queens: queens.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -reverser: gettysburg.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -summarize: queens.xsl - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -total: chart.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -tower: tower.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -trend: trend.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -union: union.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -xpath: xpath.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -xslbench1: xslbench1.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -xslbench2: xslbenchdream.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -xslbench3: xslbenchdream.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -breadth: - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/find.xsl $@.xml > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -depth: - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/find.xsl $@.xml > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/Makefile.in b/src/tools/docbook/libxslt/tests/XSLTMark/Makefile.in deleted file mode 100644 index 1a6d4ccf15..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/Makefile.in +++ /dev/null @@ -1,1096 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = ../.. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = tests/XSLTMark -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXSLT_INCLUDEDIR = @EXSLT_INCLUDEDIR@ -EXSLT_LIBDIR = @EXSLT_LIBDIR@ -EXSLT_LIBS = @EXSLT_LIBS@ -EXTRA_LIBS = @EXTRA_LIBS@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -HTML_DIR = @HTML_DIR@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBEXSLT_MAJOR_VERSION = @LIBEXSLT_MAJOR_VERSION@ -LIBEXSLT_MICRO_VERSION = @LIBEXSLT_MICRO_VERSION@ -LIBEXSLT_MINOR_VERSION = @LIBEXSLT_MINOR_VERSION@ -LIBEXSLT_VERSION = @LIBEXSLT_VERSION@ -LIBEXSLT_VERSION_EXTRA = @LIBEXSLT_VERSION_EXTRA@ -LIBEXSLT_VERSION_INFO = @LIBEXSLT_VERSION_INFO@ -LIBEXSLT_VERSION_NUMBER = @LIBEXSLT_VERSION_NUMBER@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBXML_CFLAGS = @LIBXML_CFLAGS@ -LIBXML_LIBS = @LIBXML_LIBS@ -LIBXML_REQUIRED_VERSION = @LIBXML_REQUIRED_VERSION@ -LIBXML_SRC = @LIBXML_SRC@ -LIBXSLT_DEFAULT_PLUGINS_PATH = @LIBXSLT_DEFAULT_PLUGINS_PATH@ -LIBXSLT_MAJOR_MINOR_VERSION = @LIBXSLT_MAJOR_MINOR_VERSION@ -LIBXSLT_MAJOR_VERSION = @LIBXSLT_MAJOR_VERSION@ -LIBXSLT_MICRO_VERSION = @LIBXSLT_MICRO_VERSION@ -LIBXSLT_MINOR_VERSION = @LIBXSLT_MINOR_VERSION@ -LIBXSLT_VERSION = @LIBXSLT_VERSION@ -LIBXSLT_VERSION_EXTRA = @LIBXSLT_VERSION_EXTRA@ -LIBXSLT_VERSION_INFO = @LIBXSLT_VERSION_INFO@ -LIBXSLT_VERSION_NUMBER = @LIBXSLT_VERSION_NUMBER@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MV = @MV@ -M_LIBS = @M_LIBS@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -PYTHON = @PYTHON@ -PYTHONSODV = @PYTHONSODV@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@ -PYTHON_SUBDIR = @PYTHON_SUBDIR@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -RELDATE = @RELDATE@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STATIC_BINARIES = @STATIC_BINARIES@ -STRIP = @STRIP@ -TAR = @TAR@ -VERSION = @VERSION@ -WIN32_EXTRA_LDFLAGS = @WIN32_EXTRA_LDFLAGS@ -WIN32_EXTRA_LIBADD = @WIN32_EXTRA_LIBADD@ -WITH_CRYPTO = @WITH_CRYPTO@ -WITH_DEBUGGER = @WITH_DEBUGGER@ -WITH_MEM_DEBUG = @WITH_MEM_DEBUG@ -WITH_MODULES = @WITH_MODULES@ -WITH_MODULES_FALSE = @WITH_MODULES_FALSE@ -WITH_MODULES_TRUE = @WITH_MODULES_TRUE@ -WITH_PERL_FALSE = @WITH_PERL_FALSE@ -WITH_PERL_TRUE = @WITH_PERL_TRUE@ -WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@ -WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@ -WITH_TRIO = @WITH_TRIO@ -WITH_XSLT_DEBUG = @WITH_XSLT_DEBUG@ -XML_CONFIG = @XML_CONFIG@ -XSLTPROCDV = @XSLTPROCDV@ -XSLT_INCLUDEDIR = @XSLT_INCLUDEDIR@ -XSLT_LIBDIR = @XSLT_LIBDIR@ -XSLT_LIBS = @XSLT_LIBS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -EXTRA_DIST = \ - dbgen.pl \ - alphabetize.out alphabetize.ref alphabetize.xsl \ - attsets.out attsets.ref attsets.xsl \ - avts.out avts.ref avts.xsl \ - axis.out axis.ref axis.xml axis.xsl \ - backwards.out backwards.ref backwards.xsl \ - bottles.out bottles.ref bottles.xml bottles.xsl \ - breadth.out breadth.ref breadth.xml \ - brutal.out brutal.ref brutal.xml brutal.xsl \ - chart.out chart.ref chart.xml chart.xsl \ - creation.out creation.ref creation.xsl \ - current.out current.ref current.xml current.xsl \ - dbonerow.out dbonerow.ref dbonerow.xsl \ - dbtail.out dbtail.ref dbtail.xsl \ - decoy.out decoy.xsl \ - depth.out depth.ref depth.xml \ - encrypt.out encrypt.ref encrypt.xsl \ - find.xsl \ - functions.out functions.ref functions.xsl \ - game.out game.ref game.xml game.xsl \ - gettysburg.xml \ - html.out html.ref html.xml html.xsl \ - identity.out identity.ref identity.xml identity.xsl \ - inventory.out inventory.ref inventory.xml inventory.xsl \ - metric.out metric.ref metric.xml metric.xsl \ - number.out number.xml number.xsl \ - oddtemplate.out oddtemplate.ref oddtemplate.xml oddtemplate.xsl \ - patterns.out patterns.ref patterns.xsl \ - prettyprint.out prettyprint.ref prettyprint.xsl \ - priority.out priority.ref priority.xml priority.xsl \ - products.out products.ref products.xml products.xsl \ - queens.out queens.ref queens.xml queens.xsl \ - reverser.out reverser.ref reverser.xsl \ - stringsort.out stringsort.ref stringsort.xsl \ - summarize.out summarize.ref summarize.xsl \ - total.out total.ref total.xsl \ - tower.out tower.ref tower.xml tower.xsl tower2.xsl \ - trend.out trend.ref trend.xml trend.xsl \ - union.out union.ref union.xml union.xsl \ - xpath.out xpath.ref xpath.xml xpath.xsl \ - xslbench1.out xslbench1.xml xslbench1.xsl \ - xslbench2.out xslbench2.xsl \ - xslbench3.out xslbench3.xsl \ - xslbenchdream.xml - -ALL_TESTS = alphabetize attsets avts axis backwards bottles breadth brutal chart \ - creation current dbonerow dbtail decoy depth encrypt functions game \ - html identity inventory metric number oddtemplate patterns prettyprint \ - priority products queens reverser stringsort summarize total tower trend \ - union xpath xslbench1 xslbench2 xslbench3 - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/XSLTMark/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu tests/XSLTMark/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-libtool - -dvi: dvi-am - -dvi-am: - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - distclean distclean-generic distclean-libtool distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-exec install-exec-am \ - install-info install-info-am install-man install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-info-am - -%.out : % - -$(top_builddir)/xsltproc/xsltproc: - @(cd ../../xsltproc ; $(MAKE) xsltproc) - -all: - -test tests: - @echo '## Running XSLTMark tests' - @for i in $(ALL_TESTS); do $(MAKE) $$i; done - -valgrind: - @echo '## Running the regression tests under Valgrind' - $(MAKE) CHECKER='valgrind -q' tests - -clean: - rm -f *.tmp *~ core db100.xml db1000.xml db10000.xml - -@WITH_PERL_TRUE@db100.xml: $(srcdir)/dbgen.pl -@WITH_PERL_TRUE@ $(PERL) $(srcdir)/dbgen.pl 100 > db100.xml - -@WITH_PERL_TRUE@db1000.xml: $(srcdir)/dbgen.pl -@WITH_PERL_TRUE@ $(PERL) $(srcdir)/dbgen.pl 1000 > db1000.xml - -@WITH_PERL_TRUE@db10000.xml: $(srcdir)/dbgen.pl -@WITH_PERL_TRUE@ $(PERL) $(srcdir)/dbgen.pl 10000 > db10000.xml - -@WITH_PERL_TRUE@alphabetize: db100.xml -@WITH_PERL_TRUE@ @(echo > .memdump) -@WITH_PERL_TRUE@ @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ -@WITH_PERL_TRUE@ $(srcdir)/$@.xsl $< > $@.tmp; \ -@WITH_PERL_TRUE@ if [ ! -f $(srcdir)/$@.out ] ; then \ -@WITH_PERL_TRUE@ cp $@.tmp $(srcdir)/$@.out ; \ -@WITH_PERL_TRUE@ else \ -@WITH_PERL_TRUE@ diff $(srcdir)/$@.out $@.tmp ; \ -@WITH_PERL_TRUE@ fi ; \ -@WITH_PERL_TRUE@ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` -@WITH_PERL_TRUE@ @if [ -n "$$log" ] ; then \ -@WITH_PERL_TRUE@ echo $@ result ; \ -@WITH_PERL_TRUE@ echo $$log ; \ -@WITH_PERL_TRUE@ fi -@WITH_PERL_TRUE@ @rm -f $@.tmp - -@WITH_PERL_TRUE@avts: db100.xml -@WITH_PERL_TRUE@ @(echo > .memdump) -@WITH_PERL_TRUE@ @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ -@WITH_PERL_TRUE@ $(srcdir)/$@.xsl $< > $@.tmp; \ -@WITH_PERL_TRUE@ if [ ! -f $(srcdir)/$@.out ] ; then \ -@WITH_PERL_TRUE@ cp $@.tmp $(srcdir)/$@.out ; \ -@WITH_PERL_TRUE@ else \ -@WITH_PERL_TRUE@ diff $(srcdir)/$@.out $@.tmp ; \ -@WITH_PERL_TRUE@ fi ; \ -@WITH_PERL_TRUE@ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` -@WITH_PERL_TRUE@ @if [ -n "$$log" ] ; then \ -@WITH_PERL_TRUE@ echo $@ result ; \ -@WITH_PERL_TRUE@ echo $$log ; \ -@WITH_PERL_TRUE@ fi -@WITH_PERL_TRUE@ @rm -f $@.tmp - -@WITH_PERL_TRUE@creation: db100.xml -@WITH_PERL_TRUE@ @(echo > .memdump) -@WITH_PERL_TRUE@ @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ -@WITH_PERL_TRUE@ $(srcdir)/$@.xsl $< > $@.tmp; \ -@WITH_PERL_TRUE@ if [ ! -f $(srcdir)/$@.out ] ; then \ -@WITH_PERL_TRUE@ cp $@.tmp $(srcdir)/$@.out ; \ -@WITH_PERL_TRUE@ else \ -@WITH_PERL_TRUE@ diff $(srcdir)/$@.out $@.tmp ; \ -@WITH_PERL_TRUE@ fi ; \ -@WITH_PERL_TRUE@ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` -@WITH_PERL_TRUE@ @if [ -n "$$log" ] ; then \ -@WITH_PERL_TRUE@ echo $@ result ; \ -@WITH_PERL_TRUE@ echo $$log ; \ -@WITH_PERL_TRUE@ fi -@WITH_PERL_TRUE@ @rm -f $@.tmp - -@WITH_PERL_TRUE@dbonerow: db10000.xml -@WITH_PERL_TRUE@ @(echo > .memdump) -@WITH_PERL_TRUE@ @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ -@WITH_PERL_TRUE@ $(srcdir)/$@.xsl $< > $@.tmp; \ -@WITH_PERL_TRUE@ if [ ! -f $(srcdir)/$@.out ] ; then \ -@WITH_PERL_TRUE@ cp $@.tmp $(srcdir)/$@.out ; \ -@WITH_PERL_TRUE@ else \ -@WITH_PERL_TRUE@ diff $(srcdir)/$@.out $@.tmp ; \ -@WITH_PERL_TRUE@ fi ; \ -@WITH_PERL_TRUE@ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` -@WITH_PERL_TRUE@ @if [ -n "$$log" ] ; then \ -@WITH_PERL_TRUE@ echo $@ result ; \ -@WITH_PERL_TRUE@ echo $$log ; \ -@WITH_PERL_TRUE@ fi -@WITH_PERL_TRUE@ @rm -f $@.tmp - -@WITH_PERL_TRUE@dbtail: db100.xml -@WITH_PERL_TRUE@ @(echo > .memdump) -@WITH_PERL_TRUE@ @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ -@WITH_PERL_TRUE@ $(srcdir)/$@.xsl $< > $@.tmp; \ -@WITH_PERL_TRUE@ if [ ! -f $(srcdir)/$@.out ] ; then \ -@WITH_PERL_TRUE@ cp $@.tmp $(srcdir)/$@.out ; \ -@WITH_PERL_TRUE@ else \ -@WITH_PERL_TRUE@ diff $(srcdir)/$@.out $@.tmp ; \ -@WITH_PERL_TRUE@ fi ; \ -@WITH_PERL_TRUE@ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` -@WITH_PERL_TRUE@ @if [ -n "$$log" ] ; then \ -@WITH_PERL_TRUE@ echo $@ result ; \ -@WITH_PERL_TRUE@ echo $$log ; \ -@WITH_PERL_TRUE@ fi -@WITH_PERL_TRUE@ @rm -f $@.tmp - -@WITH_PERL_TRUE@decoy: db100.xml -@WITH_PERL_TRUE@ @(echo > .memdump) -@WITH_PERL_TRUE@ @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ -@WITH_PERL_TRUE@ $(srcdir)/$@.xsl $< > $@.tmp; \ -@WITH_PERL_TRUE@ if [ ! -f $(srcdir)/$@.out ] ; then \ -@WITH_PERL_TRUE@ cp $@.tmp $(srcdir)/$@.out ; \ -@WITH_PERL_TRUE@ else \ -@WITH_PERL_TRUE@ diff $(srcdir)/$@.out $@.tmp ; \ -@WITH_PERL_TRUE@ fi ; \ -@WITH_PERL_TRUE@ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` -@WITH_PERL_TRUE@ @if [ -n "$$log" ] ; then \ -@WITH_PERL_TRUE@ echo $@ result ; \ -@WITH_PERL_TRUE@ echo $$log ; \ -@WITH_PERL_TRUE@ fi -@WITH_PERL_TRUE@ @rm -f $@.tmp - -@WITH_PERL_TRUE@encrypt: db100.xml -@WITH_PERL_TRUE@ @(echo > .memdump) -@WITH_PERL_TRUE@ @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ -@WITH_PERL_TRUE@ $(srcdir)/$@.xsl $< > $@.tmp; \ -@WITH_PERL_TRUE@ if [ ! -f $(srcdir)/$@.out ] ; then \ -@WITH_PERL_TRUE@ cp $@.tmp $(srcdir)/$@.out ; \ -@WITH_PERL_TRUE@ else \ -@WITH_PERL_TRUE@ diff $(srcdir)/$@.out $@.tmp ; \ -@WITH_PERL_TRUE@ fi ; \ -@WITH_PERL_TRUE@ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` -@WITH_PERL_TRUE@ @if [ -n "$$log" ] ; then \ -@WITH_PERL_TRUE@ echo $@ result ; \ -@WITH_PERL_TRUE@ echo $$log ; \ -@WITH_PERL_TRUE@ fi -@WITH_PERL_TRUE@ @rm -f $@.tmp - -@WITH_PERL_TRUE@functions: db100.xml -@WITH_PERL_TRUE@ @(echo > .memdump) -@WITH_PERL_TRUE@ @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ -@WITH_PERL_TRUE@ $(srcdir)/$@.xsl $< > $@.tmp; \ -@WITH_PERL_TRUE@ if [ ! -f $(srcdir)/$@.out ] ; then \ -@WITH_PERL_TRUE@ cp $@.tmp $(srcdir)/$@.out ; \ -@WITH_PERL_TRUE@ else \ -@WITH_PERL_TRUE@ diff $(srcdir)/$@.out $@.tmp ; \ -@WITH_PERL_TRUE@ fi ; \ -@WITH_PERL_TRUE@ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` -@WITH_PERL_TRUE@ @if [ -n "$$log" ] ; then \ -@WITH_PERL_TRUE@ echo $@ result ; \ -@WITH_PERL_TRUE@ echo $$log ; \ -@WITH_PERL_TRUE@ fi -@WITH_PERL_TRUE@ @rm -f $@.tmp - -@WITH_PERL_TRUE@identity: db1000.xml -@WITH_PERL_TRUE@ @(echo > .memdump) -@WITH_PERL_TRUE@ @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ -@WITH_PERL_TRUE@ $(srcdir)/$@.xsl $< > $@.tmp; \ -@WITH_PERL_TRUE@ if [ ! -f $(srcdir)/$@.out ] ; then \ -@WITH_PERL_TRUE@ cp $@.tmp $(srcdir)/$@.out ; \ -@WITH_PERL_TRUE@ else \ -@WITH_PERL_TRUE@ diff $(srcdir)/$@.out $@.tmp ; \ -@WITH_PERL_TRUE@ fi ; \ -@WITH_PERL_TRUE@ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` -@WITH_PERL_TRUE@ @if [ -n "$$log" ] ; then \ -@WITH_PERL_TRUE@ echo $@ result ; \ -@WITH_PERL_TRUE@ echo $$log ; \ -@WITH_PERL_TRUE@ fi -@WITH_PERL_TRUE@ @rm -f $@.tmp - -@WITH_PERL_TRUE@patterns: db100.xml -@WITH_PERL_TRUE@ @(echo > .memdump) -@WITH_PERL_TRUE@ @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ -@WITH_PERL_TRUE@ $(srcdir)/$@.xsl $< > $@.tmp; \ -@WITH_PERL_TRUE@ if [ ! -f $(srcdir)/$@.out ] ; then \ -@WITH_PERL_TRUE@ cp $@.tmp $(srcdir)/$@.out ; \ -@WITH_PERL_TRUE@ else \ -@WITH_PERL_TRUE@ diff $(srcdir)/$@.out $@.tmp ; \ -@WITH_PERL_TRUE@ fi ; \ -@WITH_PERL_TRUE@ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` -@WITH_PERL_TRUE@ @if [ -n "$$log" ] ; then \ -@WITH_PERL_TRUE@ echo $@ result ; \ -@WITH_PERL_TRUE@ echo $$log ; \ -@WITH_PERL_TRUE@ fi -@WITH_PERL_TRUE@ @rm -f $@.tmp - -@WITH_PERL_TRUE@prettyprint: db100.xml -@WITH_PERL_TRUE@ @(echo > .memdump) -@WITH_PERL_TRUE@ @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ -@WITH_PERL_TRUE@ $(srcdir)/$@.xsl $< > $@.tmp; \ -@WITH_PERL_TRUE@ if [ ! -f $(srcdir)/$@.out ] ; then \ -@WITH_PERL_TRUE@ cp $@.tmp $(srcdir)/$@.out ; \ -@WITH_PERL_TRUE@ else \ -@WITH_PERL_TRUE@ diff $(srcdir)/$@.out $@.tmp ; \ -@WITH_PERL_TRUE@ fi ; \ -@WITH_PERL_TRUE@ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` -@WITH_PERL_TRUE@ @if [ -n "$$log" ] ; then \ -@WITH_PERL_TRUE@ echo $@ result ; \ -@WITH_PERL_TRUE@ echo $$log ; \ -@WITH_PERL_TRUE@ fi -@WITH_PERL_TRUE@ @rm -f $@.tmp - -@WITH_PERL_TRUE@stringsort: db1000.xml -@WITH_PERL_TRUE@ @(echo > .memdump) -@WITH_PERL_TRUE@ @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ -@WITH_PERL_TRUE@ $(srcdir)/$@.xsl $< > $@.tmp; \ -@WITH_PERL_TRUE@ if [ ! -f $(srcdir)/$@.out ] ; then \ -@WITH_PERL_TRUE@ cp $@.tmp $(srcdir)/$@.out ; \ -@WITH_PERL_TRUE@ else \ -@WITH_PERL_TRUE@ diff $(srcdir)/$@.out $@.tmp ; \ -@WITH_PERL_TRUE@ fi ; \ -@WITH_PERL_TRUE@ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` -@WITH_PERL_TRUE@ @if [ -n "$$log" ] ; then \ -@WITH_PERL_TRUE@ echo $@ result ; \ -@WITH_PERL_TRUE@ echo $$log ; \ -@WITH_PERL_TRUE@ fi -@WITH_PERL_TRUE@ @rm -f $@.tmp - -@WITH_PERL_FALSE@alphabetize: -@WITH_PERL_FALSE@avts: -@WITH_PERL_FALSE@creation: -@WITH_PERL_FALSE@dbonerow: -@WITH_PERL_FALSE@dbtail: -@WITH_PERL_FALSE@decoy: -@WITH_PERL_FALSE@encrypt: -@WITH_PERL_FALSE@functions: -@WITH_PERL_FALSE@identity: -@WITH_PERL_FALSE@patterns: -@WITH_PERL_FALSE@prettyprint: -@WITH_PERL_FALSE@stringsort: - -attsets: chart.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -axis: axis.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -backwards: game.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -bottles: bottles.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -brutal: brutal.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -chart: chart.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -current: current.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -game: game.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -html: html.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -inventory: inventory.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -metric: metric.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -number: number.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -oddtemplate: oddtemplate.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -priority: priority.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -products: products.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -queens: queens.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -reverser: gettysburg.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -summarize: queens.xsl - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -total: chart.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -tower: tower.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -trend: trend.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -union: union.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -xpath: xpath.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -xslbench1: xslbench1.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -xslbench2: xslbenchdream.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -xslbench3: xslbenchdream.xml - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$@.xsl $< > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -breadth: - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/find.xsl $@.xml > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp - -depth: - @(echo > .memdump) - @log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/find.xsl $@.xml > $@.tmp; \ - if [ ! -f $(srcdir)/$@.out ] ; then \ - cp $@.tmp $(srcdir)/$@.out ; \ - else \ - diff $(srcdir)/$@.out $@.tmp ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` - @if [ -n "$$log" ] ; then \ - echo $@ result ; \ - echo $$log ; \ - fi - @rm -f $@.tmp -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/alphabetize.out b/src/tools/docbook/libxslt/tests/XSLTMark/alphabetize.out deleted file mode 100644 index d14f342a2c..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/alphabetize.out +++ /dev/null @@ -1,2 +0,0 @@ - -AnytownAl0000AranowAL1 Any St.22000AnytownBob0001AranowAL2 Any St.22000AnytownCharles0002AranowAL3 Any St.22000AnytownDavid0003AranowAL4 Any St.22000AnytownEgon0004AranowAL5 Any St.22000AnytownFarbood0005AranowAL6 Any St.22000AnytownGeorge0006AranowAL7 Any St.22000AnytownHank0007AranowAL8 Any St.22000AnytownInki0008AranowAL9 Any St.22000AnytownJames0009AranowAL10 Any St.22000AnytownAl0010BarkerAL11 Any St.22000AnytownBob0011BarkerAL12 Any St.22000AnytownCharles0012BarkerAL13 Any St.22000AnytownDavid0013BarkerAL14 Any St.22000AnytownEgon0014BarkerAL15 Any St.22000AnytownFarbood0015BarkerAL16 Any St.22000AnytownGeorge0016BarkerAL17 Any St.22000AnytownHank0017BarkerAL18 Any St.22000AnytownInki0018BarkerAL19 Any St.22000AnytownJames0019BarkerAL20 Any St.22000AnytownAl0020CorsettiAL21 Any St.22000AnytownBob0021CorsettiAL22 Any St.22000AnytownCharles0022CorsettiAL23 Any St.22000AnytownDavid0023CorsettiAL24 Any St.22000AnytownEgon0024CorsettiAL25 Any St.22000AnytownFarbood0025CorsettiAL26 Any St.22000AnytownGeorge0026CorsettiAL27 Any St.22000AnytownHank0027CorsettiAL28 Any St.22000AnytownInki0028CorsettiAL29 Any St.22000AnytownJames0029CorsettiAL30 Any St.22000AnytownAl0030DershowitzAL31 Any St.22000AnytownBob0031DershowitzAL32 Any St.22000AnytownCharles0032DershowitzAL33 Any St.22000AnytownDavid0033DershowitzAL34 Any St.22000AnytownEgon0034DershowitzAL35 Any St.22000AnytownFarbood0035DershowitzAL36 Any St.22000AnytownGeorge0036DershowitzAL37 Any St.22000AnytownHank0037DershowitzAL38 Any St.22000AnytownInki0038DershowitzAL39 Any St.22000AnytownJames0039DershowitzAL40 Any St.22000AnytownAl0040EnglemanAL41 Any St.22000AnytownBob0041EnglemanAL42 Any St.22000AnytownCharles0042EnglemanAL43 Any St.22000AnytownDavid0043EnglemanAL44 Any St.22000AnytownEgon0044EnglemanAL45 Any St.22000AnytownFarbood0045EnglemanAL46 Any St.22000AnytownGeorge0046EnglemanAL47 Any St.22000AnytownHank0047EnglemanAL48 Any St.22000AnytownInki0048EnglemanAL49 Any St.22000AnytownJames0049EnglemanAL50 Any St.22000AnytownAl0050FranklinAL51 Any St.22000AnytownBob0051FranklinAL52 Any St.22000AnytownCharles0052FranklinAL53 Any St.22000AnytownDavid0053FranklinAL54 Any St.22000AnytownEgon0054FranklinAL55 Any St.22000AnytownFarbood0055FranklinAL56 Any St.22000AnytownGeorge0056FranklinAL57 Any St.22000AnytownHank0057FranklinAL58 Any St.22000AnytownInki0058FranklinAL59 Any St.22000AnytownJames0059FranklinAL60 Any St.22000AnytownAl0060GriceAL61 Any St.22000AnytownBob0061GriceAL62 Any St.22000AnytownCharles0062GriceAL63 Any St.22000AnytownDavid0063GriceAL64 Any St.22000AnytownEgon0064GriceAL65 Any St.22000AnytownFarbood0065GriceAL66 Any St.22000AnytownGeorge0066GriceAL67 Any St.22000AnytownHank0067GriceAL68 Any St.22000AnytownInki0068GriceAL69 Any St.22000AnytownJames0069GriceAL70 Any St.22000AnytownAl0070HaverfordAL71 Any St.22000AnytownBob0071HaverfordAL72 Any St.22000AnytownCharles0072HaverfordAL73 Any St.22000AnytownDavid0073HaverfordAL74 Any St.22000AnytownEgon0074HaverfordAL75 Any St.22000AnytownFarbood0075HaverfordAL76 Any St.22000AnytownGeorge0076HaverfordAL77 Any St.22000AnytownHank0077HaverfordAL78 Any St.22000AnytownInki0078HaverfordAL79 Any St.22000AnytownJames0079HaverfordAL80 Any St.22000AnytownAl0080IlvedsonAL81 Any St.22000AnytownBob0081IlvedsonAL82 Any St.22000AnytownCharles0082IlvedsonAL83 Any St.22000AnytownDavid0083IlvedsonAL84 Any St.22000AnytownEgon0084IlvedsonAL85 Any St.22000AnytownFarbood0085IlvedsonAL86 Any St.22000AnytownGeorge0086IlvedsonAL87 Any St.22000AnytownHank0087IlvedsonAL88 Any St.22000AnytownInki0088IlvedsonAL89 Any St.22000AnytownJames0089IlvedsonAL90 Any St.22000AnytownAl0090JonesAL91 Any St.22000AnytownBob0091JonesAL92 Any St.22000AnytownCharles0092JonesAL93 Any St.22000AnytownDavid0093JonesAL94 Any St.22000AnytownEgon0094JonesAL95 Any St.22000AnytownFarbood0095JonesAL96 Any St.22000AnytownGeorge0096JonesAL97 Any St.22000AnytownHank0097JonesAL98 Any St.22000AnytownInki0098JonesAL99 Any St.22000AnytownJames0099JonesAL100 Any St.22000
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/alphabetize.ref b/src/tools/docbook/libxslt/tests/XSLTMark/alphabetize.ref deleted file mode 100644 index 19ee75c45c..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/alphabetize.ref +++ /dev/null @@ -1,2502 +0,0 @@ - - - -Anytown - - -Al - - -0000 - - -Aranow - - -AL - - -1 -Any -St. - - -22000 - - - - -Anytown - - -Bob - - -0001 - - -Aranow - - -AL - - -2 -Any -St. - - -22000 - - - - -Anytown - - -Charles - - -0002 - - -Aranow - - -AL - - -3 -Any -St. - - -22000 - - - - -Anytown - - -David - - -0003 - - -Aranow - - -AL - - -4 -Any -St. - - -22000 - - - - -Anytown - - -Egon - - -0004 - - -Aranow - - -AL - - -5 -Any -St. - - -22000 - - - - -Anytown - - -Farbood - - -0005 - - -Aranow - - -AL - - -6 -Any -St. - - -22000 - - - - -Anytown - - -George - - -0006 - - -Aranow - - -AL - - -7 -Any -St. - - -22000 - - - - -Anytown - - -Hank - - -0007 - - -Aranow - - -AL - - -8 -Any -St. - - -22000 - - - - -Anytown - - -Inki - - -0008 - - -Aranow - - -AL - - -9 -Any -St. - - -22000 - - - - -Anytown - - -James - - -0009 - - -Aranow - - -AL - - -10 -Any -St. - - -22000 - - - - -Anytown - - -Al - - -0010 - - -Barker - - -AL - - -11 -Any -St. - - -22000 - - - - -Anytown - - -Bob - - -0011 - - -Barker - - -AL - - -12 -Any -St. - - -22000 - - - - -Anytown - - -Charles - - -0012 - - -Barker - - -AL - - -13 -Any -St. - - -22000 - - - - -Anytown - - -David - - -0013 - - -Barker - - -AL - - -14 -Any -St. - - -22000 - - - - -Anytown - - -Egon - - -0014 - - -Barker - - -AL - - -15 -Any -St. - - -22000 - - - - -Anytown - - -Farbood - - -0015 - - -Barker - - -AL - - -16 -Any -St. - - -22000 - - - - -Anytown - - -George - - -0016 - - -Barker - - -AL - - -17 -Any -St. - - -22000 - - - - -Anytown - - -Hank - - -0017 - - -Barker - - -AL - - -18 -Any -St. - - -22000 - - - - -Anytown - - -Inki - - -0018 - - -Barker - - -AL - - -19 -Any -St. - - -22000 - - - - -Anytown - - -James - - -0019 - - -Barker - - -AL - - -20 -Any -St. - - -22000 - - - - -Anytown - - -Al - - -0020 - - -Corsetti - - -AL - - -21 -Any -St. - - -22000 - - - - -Anytown - - -Bob - - -0021 - - -Corsetti - - -AL - - -22 -Any -St. - - -22000 - - - - -Anytown - - -Charles - - -0022 - - -Corsetti - - -AL - - -23 -Any -St. - - -22000 - - - - -Anytown - - -David - - -0023 - - -Corsetti - - -AL - - -24 -Any -St. - - -22000 - - - - -Anytown - - -Egon - - -0024 - - -Corsetti - - -AL - - -25 -Any -St. - - -22000 - - - - -Anytown - - -Farbood - - -0025 - - -Corsetti - - -AL - - -26 -Any -St. - - -22000 - - - - -Anytown - - -George - - -0026 - - -Corsetti - - -AL - - -27 -Any -St. - - -22000 - - - - -Anytown - - -Hank - - -0027 - - -Corsetti - - -AL - - -28 -Any -St. - - -22000 - - - - -Anytown - - -Inki - - -0028 - - -Corsetti - - -AL - - -29 -Any -St. - - -22000 - - - - -Anytown - - -James - - -0029 - - -Corsetti - - -AL - - -30 -Any -St. - - -22000 - - - - -Anytown - - -Al - - -0030 - - -Dershowitz - - -AL - - -31 -Any -St. - - -22000 - - - - -Anytown - - -Bob - - -0031 - - -Dershowitz - - -AL - - -32 -Any -St. - - -22000 - - - - -Anytown - - -Charles - - -0032 - - -Dershowitz - - -AL - - -33 -Any -St. - - -22000 - - - - -Anytown - - -David - - -0033 - - -Dershowitz - - -AL - - -34 -Any -St. - - -22000 - - - - -Anytown - - -Egon - - -0034 - - -Dershowitz - - -AL - - -35 -Any -St. - - -22000 - - - - -Anytown - - -Farbood - - -0035 - - -Dershowitz - - -AL - - -36 -Any -St. - - -22000 - - - - -Anytown - - -George - - -0036 - - -Dershowitz - - -AL - - -37 -Any -St. - - -22000 - - - - -Anytown - - -Hank - - -0037 - - -Dershowitz - - -AL - - -38 -Any -St. - - -22000 - - - - -Anytown - - -Inki - - -0038 - - -Dershowitz - - -AL - - -39 -Any -St. - - -22000 - - - - -Anytown - - -James - - -0039 - - -Dershowitz - - -AL - - -40 -Any -St. - - -22000 - - - - -Anytown - - -Al - - -0040 - - -Engleman - - -AL - - -41 -Any -St. - - -22000 - - - - -Anytown - - -Bob - - -0041 - - -Engleman - - -AL - - -42 -Any -St. - - -22000 - - - - -Anytown - - -Charles - - -0042 - - -Engleman - - -AL - - -43 -Any -St. - - -22000 - - - - -Anytown - - -David - - -0043 - - -Engleman - - -AL - - -44 -Any -St. - - -22000 - - - - -Anytown - - -Egon - - -0044 - - -Engleman - - -AL - - -45 -Any -St. - - -22000 - - - - -Anytown - - -Farbood - - -0045 - - -Engleman - - -AL - - -46 -Any -St. - - -22000 - - - - -Anytown - - -George - - -0046 - - -Engleman - - -AL - - -47 -Any -St. - - -22000 - - - - -Anytown - - -Hank - - -0047 - - -Engleman - - -AL - - -48 -Any -St. - - -22000 - - - - -Anytown - - -Inki - - -0048 - - -Engleman - - -AL - - -49 -Any -St. - - -22000 - - - - -Anytown - - -James - - -0049 - - -Engleman - - -AL - - -50 -Any -St. - - -22000 - - - - -Anytown - - -Al - - -0050 - - -Franklin - - -AL - - -51 -Any -St. - - -22000 - - - - -Anytown - - -Bob - - -0051 - - -Franklin - - -AL - - -52 -Any -St. - - -22000 - - - - -Anytown - - -Charles - - -0052 - - -Franklin - - -AL - - -53 -Any -St. - - -22000 - - - - -Anytown - - -David - - -0053 - - -Franklin - - -AL - - -54 -Any -St. - - -22000 - - - - -Anytown - - -Egon - - -0054 - - -Franklin - - -AL - - -55 -Any -St. - - -22000 - - - - -Anytown - - -Farbood - - -0055 - - -Franklin - - -AL - - -56 -Any -St. - - -22000 - - - - -Anytown - - -George - - -0056 - - -Franklin - - -AL - - -57 -Any -St. - - -22000 - - - - -Anytown - - -Hank - - -0057 - - -Franklin - - -AL - - -58 -Any -St. - - -22000 - - - - -Anytown - - -Inki - - -0058 - - -Franklin - - -AL - - -59 -Any -St. - - -22000 - - - - -Anytown - - -James - - -0059 - - -Franklin - - -AL - - -60 -Any -St. - - -22000 - - - - -Anytown - - -Al - - -0060 - - -Grice - - -AL - - -61 -Any -St. - - -22000 - - - - -Anytown - - -Bob - - -0061 - - -Grice - - -AL - - -62 -Any -St. - - -22000 - - - - -Anytown - - -Charles - - -0062 - - -Grice - - -AL - - -63 -Any -St. - - -22000 - - - - -Anytown - - -David - - -0063 - - -Grice - - -AL - - -64 -Any -St. - - -22000 - - - - -Anytown - - -Egon - - -0064 - - -Grice - - -AL - - -65 -Any -St. - - -22000 - - - - -Anytown - - -Farbood - - -0065 - - -Grice - - -AL - - -66 -Any -St. - - -22000 - - - - -Anytown - - -George - - -0066 - - -Grice - - -AL - - -67 -Any -St. - - -22000 - - - - -Anytown - - -Hank - - -0067 - - -Grice - - -AL - - -68 -Any -St. - - -22000 - - - - -Anytown - - -Inki - - -0068 - - -Grice - - -AL - - -69 -Any -St. - - -22000 - - - - -Anytown - - -James - - -0069 - - -Grice - - -AL - - -70 -Any -St. - - -22000 - - - - -Anytown - - -Al - - -0070 - - -Haverford - - -AL - - -71 -Any -St. - - -22000 - - - - -Anytown - - -Bob - - -0071 - - -Haverford - - -AL - - -72 -Any -St. - - -22000 - - - - -Anytown - - -Charles - - -0072 - - -Haverford - - -AL - - -73 -Any -St. - - -22000 - - - - -Anytown - - -David - - -0073 - - -Haverford - - -AL - - -74 -Any -St. - - -22000 - - - - -Anytown - - -Egon - - -0074 - - -Haverford - - -AL - - -75 -Any -St. - - -22000 - - - - -Anytown - - -Farbood - - -0075 - - -Haverford - - -AL - - -76 -Any -St. - - -22000 - - - - -Anytown - - -George - - -0076 - - -Haverford - - -AL - - -77 -Any -St. - - -22000 - - - - -Anytown - - -Hank - - -0077 - - -Haverford - - -AL - - -78 -Any -St. - - -22000 - - - - -Anytown - - -Inki - - -0078 - - -Haverford - - -AL - - -79 -Any -St. - - -22000 - - - - -Anytown - - -James - - -0079 - - -Haverford - - -AL - - -80 -Any -St. - - -22000 - - - - -Anytown - - -Al - - -0080 - - -Ilvedson - - -AL - - -81 -Any -St. - - -22000 - - - - -Anytown - - -Bob - - -0081 - - -Ilvedson - - -AL - - -82 -Any -St. - - -22000 - - - - -Anytown - - -Charles - - -0082 - - -Ilvedson - - -AL - - -83 -Any -St. - - -22000 - - - - -Anytown - - -David - - -0083 - - -Ilvedson - - -AL - - -84 -Any -St. - - -22000 - - - - -Anytown - - -Egon - - -0084 - - -Ilvedson - - -AL - - -85 -Any -St. - - -22000 - - - - -Anytown - - -Farbood - - -0085 - - -Ilvedson - - -AL - - -86 -Any -St. - - -22000 - - - - -Anytown - - -George - - -0086 - - -Ilvedson - - -AL - - -87 -Any -St. - - -22000 - - - - -Anytown - - -Hank - - -0087 - - -Ilvedson - - -AL - - -88 -Any -St. - - -22000 - - - - -Anytown - - -Inki - - -0088 - - -Ilvedson - - -AL - - -89 -Any -St. - - -22000 - - - - -Anytown - - -James - - -0089 - - -Ilvedson - - -AL - - -90 -Any -St. - - -22000 - - - - -Anytown - - -Al - - -0090 - - -Jones - - -AL - - -91 -Any -St. - - -22000 - - - - -Anytown - - -Bob - - -0091 - - -Jones - - -AL - - -92 -Any -St. - - -22000 - - - - -Anytown - - -Charles - - -0092 - - -Jones - - -AL - - -93 -Any -St. - - -22000 - - - - -Anytown - - -David - - -0093 - - -Jones - - -AL - - -94 -Any -St. - - -22000 - - - - -Anytown - - -Egon - - -0094 - - -Jones - - -AL - - -95 -Any -St. - - -22000 - - - - -Anytown - - -Farbood - - -0095 - - -Jones - - -AL - - -96 -Any -St. - - -22000 - - - - -Anytown - - -George - - -0096 - - -Jones - - -AL - - -97 -Any -St. - - -22000 - - - - -Anytown - - -Hank - - -0097 - - -Jones - - -AL - - -98 -Any -St. - - -22000 - - - - -Anytown - - -Inki - - -0098 - - -Jones - - -AL - - -99 -Any -St. - - -22000 - - - - -Anytown - - -James - - -0099 - - -Jones - - -AL - - -100 -Any -St. - - -22000 - - -
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/alphabetize.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/alphabetize.xsl deleted file mode 100644 index e77b459239..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/alphabetize.xsl +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/attsets.out b/src/tools/docbook/libxslt/tests/XSLTMark/attsets.out deleted file mode 100644 index e658357b5e..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/attsets.out +++ /dev/null @@ -1,63 +0,0 @@ - - - - 1997 - - west - 32 - - - central - 11 - - - east - 19 - - - - 1998 - - west - 35 - - - central - 12 - - - east - 25 - - - - 1999 - - west - 36 - - - central - 12 - - - east - 31 - - - - 2000 - - west - 37 - - - central - 11 - - - east - 40 - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/attsets.ref b/src/tools/docbook/libxslt/tests/XSLTMark/attsets.ref deleted file mode 100644 index 90dfc9483b..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/attsets.ref +++ /dev/null @@ -1,118 +0,0 @@ - - - -1997 - - - -west - - -32 - - - - -central - - -11 - - - - -east - - -19 - - - - - -1998 - - - -west - - -35 - - - - -central - - -12 - - - - -east - - -25 - - - - - -1999 - - - -west - - -36 - - - - -central - - -12 - - - - -east - - -31 - - - - - -2000 - - - -west - - -37 - - - - -central - - -11 - - - - -east - - -40 - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/attsets.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/attsets.xsl deleted file mode 100644 index f8ffb61720..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/attsets.xsl +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - foo - bar - - - - baz - quux - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/avts.out b/src/tools/docbook/libxslt/tests/XSLTMark/avts.out deleted file mode 100644 index a04dfe3a57..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/avts.out +++ /dev/null @@ -1,103 +0,0 @@ - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/avts.ref b/src/tools/docbook/libxslt/tests/XSLTMark/avts.ref deleted file mode 100644 index 9521feb079..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/avts.ref +++ /dev/null @@ -1,102 +0,0 @@ - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/avts.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/avts.xsl deleted file mode 100644 index 9ba102b754..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/avts.xsl +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - -
    -
    - - -
    - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/axis.out b/src/tools/docbook/libxslt/tests/XSLTMark/axis.out deleted file mode 100644 index c5584500e4..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/axis.out +++ /dev/null @@ -1,52 +0,0 @@ - -a - b - c - d - e - f - g - h - i - j - n - o - p - q - r - da - b - c - d - e - f - g - h - i - j - k - l - m - n - o - p - q - r - s - t -ek - l - n - o - p - q - r - tm - n - o - p - q - r - s - t - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/axis.ref b/src/tools/docbook/libxslt/tests/XSLTMark/axis.ref deleted file mode 100644 index 35ca527352..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/axis.ref +++ /dev/null @@ -1,70 +0,0 @@ - -a -b -c -d -e -f -g -h -i -j - -n -o -p -q -r - - -d - - - - -a -b -c -d -e -f -g -h -i -j -k -l -m -n -o -p -q -r -s -t - - -e - -k -l - -n -o -p -q -r - - -t - - -m -n -o -p -q -r -s -t - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/axis.xml b/src/tools/docbook/libxslt/tests/XSLTMark/axis.xml deleted file mode 100644 index cbbea1c0da..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/axis.xml +++ /dev/null @@ -1,22 +0,0 @@ - -a - b - c - d - e - f - g - h - i - j - k - l - m - n - o - p - q - r - s - t - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/axis.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/axis.xsl deleted file mode 100644 index 61149c2360..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/axis.xsl +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/backwards.out b/src/tools/docbook/libxslt/tests/XSLTMark/backwards.out deleted file mode 100644 index f2f8e076a0..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/backwards.out +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - 0 - 2 - 0 - - - 0 - 2 - 1 - - 9 - - - - 0 - 2 - 0 - - - 0 - 3 - 0 - - 8 - - - - 0 - 4 - 2 - - - 0 - 2 - 0 - - 7 - - - - 0 - 1 - 0 - - - 0 - 5 - 2 - - 6 - - - - 0 - 1 - 0 - - - 0 - 1 - 0 - - 5 - - - - 0 - 1 - 0 - - - 0 - 0 - 0 - - 4 - - - - 0 - 4 - 1 - - - 0 - 3 - 1 - - 3 - - - - 0 - 1 - 0 - - - 1 - 2 - 1 - - 2 - - - - 0 - 1 - 0 - - - 0 - 2 - 0 - - 1 - - - Whosits - Foobars - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/backwards.ref b/src/tools/docbook/libxslt/tests/XSLTMark/backwards.ref deleted file mode 100644 index adb2f32879..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/backwards.ref +++ /dev/null @@ -1,255 +0,0 @@ - - - - - - -0 - - -2 - - -0 - - - - -0 - - -2 - - -1 - - - -9 - - - - - -0 - - -2 - - -0 - - - - -0 - - -3 - - -0 - - - -8 - - - - - -0 - - -4 - - -2 - - - - -0 - - -2 - - -0 - - - -7 - - - - - -0 - - -1 - - -0 - - - - -0 - - -5 - - -2 - - - -6 - - - - - -0 - - -1 - - -0 - - - - -0 - - -1 - - -0 - - - -5 - - - - - -0 - - -1 - - -0 - - - - -0 - - -0 - - -0 - - - -4 - - - - - -0 - - -4 - - -1 - - - - -0 - - -3 - - -1 - - - -3 - - - - - -0 - - -1 - - -0 - - - - -1 - - -2 - - -1 - - - -2 - - - - - -0 - - -1 - - -0 - - - - -0 - - -2 - - -0 - - - -1 - - - - -Whosits - - -Foobars - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/backwards.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/backwards.xsl deleted file mode 100644 index 0955a8ad10..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/backwards.xsl +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/bottles.out b/src/tools/docbook/libxslt/tests/XSLTMark/bottles.out deleted file mode 100644 index f6ce7da888..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/bottles.out +++ /dev/null @@ -1,499 +0,0 @@ -99 bottles of beer on the wall, -99 bottles of beer! -Take one down, pass it around; -98 bottles of beer on the wall. - -98 bottles of beer on the wall, -98 bottles of beer! -Take one down, pass it around; -97 bottles of beer on the wall. - -97 bottles of beer on the wall, -97 bottles of beer! -Take one down, pass it around; -96 bottles of beer on the wall. - -96 bottles of beer on the wall, -96 bottles of beer! -Take one down, pass it around; -95 bottles of beer on the wall. - -95 bottles of beer on the wall, -95 bottles of beer! -Take one down, pass it around; -94 bottles of beer on the wall. - -94 bottles of beer on the wall, -94 bottles of beer! -Take one down, pass it around; -93 bottles of beer on the wall. - -93 bottles of beer on the wall, -93 bottles of beer! -Take one down, pass it around; -92 bottles of beer on the wall. - -92 bottles of beer on the wall, -92 bottles of beer! -Take one down, pass it around; -91 bottles of beer on the wall. - -91 bottles of beer on the wall, -91 bottles of beer! -Take one down, pass it around; -90 bottles of beer on the wall. - -90 bottles of beer on the wall, -90 bottles of beer! -Take one down, pass it around; -89 bottles of beer on the wall. - -89 bottles of beer on the wall, -89 bottles of beer! -Take one down, pass it around; -88 bottles of beer on the wall. - -88 bottles of beer on the wall, -88 bottles of beer! -Take one down, pass it around; -87 bottles of beer on the wall. - -87 bottles of beer on the wall, -87 bottles of beer! -Take one down, pass it around; -86 bottles of beer on the wall. - -86 bottles of beer on the wall, -86 bottles of beer! -Take one down, pass it around; -85 bottles of beer on the wall. - -85 bottles of beer on the wall, -85 bottles of beer! -Take one down, pass it around; -84 bottles of beer on the wall. - -84 bottles of beer on the wall, -84 bottles of beer! -Take one down, pass it around; -83 bottles of beer on the wall. - -83 bottles of beer on the wall, -83 bottles of beer! -Take one down, pass it around; -82 bottles of beer on the wall. - -82 bottles of beer on the wall, -82 bottles of beer! -Take one down, pass it around; -81 bottles of beer on the wall. - -81 bottles of beer on the wall, -81 bottles of beer! -Take one down, pass it around; -80 bottles of beer on the wall. - -80 bottles of beer on the wall, -80 bottles of beer! -Take one down, pass it around; -79 bottles of beer on the wall. - -79 bottles of beer on the wall, -79 bottles of beer! -Take one down, pass it around; -78 bottles of beer on the wall. - -78 bottles of beer on the wall, -78 bottles of beer! -Take one down, pass it around; -77 bottles of beer on the wall. - -77 bottles of beer on the wall, -77 bottles of beer! -Take one down, pass it around; -76 bottles of beer on the wall. - -76 bottles of beer on the wall, -76 bottles of beer! -Take one down, pass it around; -75 bottles of beer on the wall. - -75 bottles of beer on the wall, -75 bottles of beer! -Take one down, pass it around; -74 bottles of beer on the wall. - -74 bottles of beer on the wall, -74 bottles of beer! -Take one down, pass it around; -73 bottles of beer on the wall. - -73 bottles of beer on the wall, -73 bottles of beer! -Take one down, pass it around; -72 bottles of beer on the wall. - -72 bottles of beer on the wall, -72 bottles of beer! -Take one down, pass it around; -71 bottles of beer on the wall. - -71 bottles of beer on the wall, -71 bottles of beer! -Take one down, pass it around; -70 bottles of beer on the wall. - -70 bottles of beer on the wall, -70 bottles of beer! -Take one down, pass it around; -69 bottles of beer on the wall. - -69 bottles of beer on the wall, -69 bottles of beer! -Take one down, pass it around; -68 bottles of beer on the wall. - -68 bottles of beer on the wall, -68 bottles of beer! -Take one down, pass it around; -67 bottles of beer on the wall. - -67 bottles of beer on the wall, -67 bottles of beer! -Take one down, pass it around; -66 bottles of beer on the wall. - -66 bottles of beer on the wall, -66 bottles of beer! -Take one down, pass it around; -65 bottles of beer on the wall. - -65 bottles of beer on the wall, -65 bottles of beer! -Take one down, pass it around; -64 bottles of beer on the wall. - -64 bottles of beer on the wall, -64 bottles of beer! -Take one down, pass it around; -63 bottles of beer on the wall. - -63 bottles of beer on the wall, -63 bottles of beer! -Take one down, pass it around; -62 bottles of beer on the wall. - -62 bottles of beer on the wall, -62 bottles of beer! -Take one down, pass it around; -61 bottles of beer on the wall. - -61 bottles of beer on the wall, -61 bottles of beer! -Take one down, pass it around; -60 bottles of beer on the wall. - -60 bottles of beer on the wall, -60 bottles of beer! -Take one down, pass it around; -59 bottles of beer on the wall. - -59 bottles of beer on the wall, -59 bottles of beer! -Take one down, pass it around; -58 bottles of beer on the wall. - -58 bottles of beer on the wall, -58 bottles of beer! -Take one down, pass it around; -57 bottles of beer on the wall. - -57 bottles of beer on the wall, -57 bottles of beer! -Take one down, pass it around; -56 bottles of beer on the wall. - -56 bottles of beer on the wall, -56 bottles of beer! -Take one down, pass it around; -55 bottles of beer on the wall. - -55 bottles of beer on the wall, -55 bottles of beer! -Take one down, pass it around; -54 bottles of beer on the wall. - -54 bottles of beer on the wall, -54 bottles of beer! -Take one down, pass it around; -53 bottles of beer on the wall. - -53 bottles of beer on the wall, -53 bottles of beer! -Take one down, pass it around; -52 bottles of beer on the wall. - -52 bottles of beer on the wall, -52 bottles of beer! -Take one down, pass it around; -51 bottles of beer on the wall. - -51 bottles of beer on the wall, -51 bottles of beer! -Take one down, pass it around; -50 bottles of beer on the wall. - -50 bottles of beer on the wall, -50 bottles of beer! -Take one down, pass it around; -49 bottles of beer on the wall. - -49 bottles of beer on the wall, -49 bottles of beer! -Take one down, pass it around; -48 bottles of beer on the wall. - -48 bottles of beer on the wall, -48 bottles of beer! -Take one down, pass it around; -47 bottles of beer on the wall. - -47 bottles of beer on the wall, -47 bottles of beer! -Take one down, pass it around; -46 bottles of beer on the wall. - -46 bottles of beer on the wall, -46 bottles of beer! -Take one down, pass it around; -45 bottles of beer on the wall. - -45 bottles of beer on the wall, -45 bottles of beer! -Take one down, pass it around; -44 bottles of beer on the wall. - -44 bottles of beer on the wall, -44 bottles of beer! -Take one down, pass it around; -43 bottles of beer on the wall. - -43 bottles of beer on the wall, -43 bottles of beer! -Take one down, pass it around; -42 bottles of beer on the wall. - -42 bottles of beer on the wall, -42 bottles of beer! -Take one down, pass it around; -41 bottles of beer on the wall. - -41 bottles of beer on the wall, -41 bottles of beer! -Take one down, pass it around; -40 bottles of beer on the wall. - -40 bottles of beer on the wall, -40 bottles of beer! -Take one down, pass it around; -39 bottles of beer on the wall. - -39 bottles of beer on the wall, -39 bottles of beer! -Take one down, pass it around; -38 bottles of beer on the wall. - -38 bottles of beer on the wall, -38 bottles of beer! -Take one down, pass it around; -37 bottles of beer on the wall. - -37 bottles of beer on the wall, -37 bottles of beer! -Take one down, pass it around; -36 bottles of beer on the wall. - -36 bottles of beer on the wall, -36 bottles of beer! -Take one down, pass it around; -35 bottles of beer on the wall. - -35 bottles of beer on the wall, -35 bottles of beer! -Take one down, pass it around; -34 bottles of beer on the wall. - -34 bottles of beer on the wall, -34 bottles of beer! -Take one down, pass it around; -33 bottles of beer on the wall. - -33 bottles of beer on the wall, -33 bottles of beer! -Take one down, pass it around; -32 bottles of beer on the wall. - -32 bottles of beer on the wall, -32 bottles of beer! -Take one down, pass it around; -31 bottles of beer on the wall. - -31 bottles of beer on the wall, -31 bottles of beer! -Take one down, pass it around; -30 bottles of beer on the wall. - -30 bottles of beer on the wall, -30 bottles of beer! -Take one down, pass it around; -29 bottles of beer on the wall. - -29 bottles of beer on the wall, -29 bottles of beer! -Take one down, pass it around; -28 bottles of beer on the wall. - -28 bottles of beer on the wall, -28 bottles of beer! -Take one down, pass it around; -27 bottles of beer on the wall. - -27 bottles of beer on the wall, -27 bottles of beer! -Take one down, pass it around; -26 bottles of beer on the wall. - -26 bottles of beer on the wall, -26 bottles of beer! -Take one down, pass it around; -25 bottles of beer on the wall. - -25 bottles of beer on the wall, -25 bottles of beer! -Take one down, pass it around; -24 bottles of beer on the wall. - -24 bottles of beer on the wall, -24 bottles of beer! -Take one down, pass it around; -23 bottles of beer on the wall. - -23 bottles of beer on the wall, -23 bottles of beer! -Take one down, pass it around; -22 bottles of beer on the wall. - -22 bottles of beer on the wall, -22 bottles of beer! -Take one down, pass it around; -21 bottles of beer on the wall. - -21 bottles of beer on the wall, -21 bottles of beer! -Take one down, pass it around; -20 bottles of beer on the wall. - -20 bottles of beer on the wall, -20 bottles of beer! -Take one down, pass it around; -19 bottles of beer on the wall. - -19 bottles of beer on the wall, -19 bottles of beer! -Take one down, pass it around; -18 bottles of beer on the wall. - -18 bottles of beer on the wall, -18 bottles of beer! -Take one down, pass it around; -17 bottles of beer on the wall. - -17 bottles of beer on the wall, -17 bottles of beer! -Take one down, pass it around; -16 bottles of beer on the wall. - -16 bottles of beer on the wall, -16 bottles of beer! -Take one down, pass it around; -15 bottles of beer on the wall. - -15 bottles of beer on the wall, -15 bottles of beer! -Take one down, pass it around; -14 bottles of beer on the wall. - -14 bottles of beer on the wall, -14 bottles of beer! -Take one down, pass it around; -13 bottles of beer on the wall. - -13 bottles of beer on the wall, -13 bottles of beer! -Take one down, pass it around; -12 bottles of beer on the wall. - -12 bottles of beer on the wall, -12 bottles of beer! -Take one down, pass it around; -11 bottles of beer on the wall. - -11 bottles of beer on the wall, -11 bottles of beer! -Take one down, pass it around; -10 bottles of beer on the wall. - -10 bottles of beer on the wall, -10 bottles of beer! -Take one down, pass it around; -9 bottles of beer on the wall. - -9 bottles of beer on the wall, -9 bottles of beer! -Take one down, pass it around; -8 bottles of beer on the wall. - -8 bottles of beer on the wall, -8 bottles of beer! -Take one down, pass it around; -7 bottles of beer on the wall. - -7 bottles of beer on the wall, -7 bottles of beer! -Take one down, pass it around; -6 bottles of beer on the wall. - -6 bottles of beer on the wall, -6 bottles of beer! -Take one down, pass it around; -5 bottles of beer on the wall. - -5 bottles of beer on the wall, -5 bottles of beer! -Take one down, pass it around; -4 bottles of beer on the wall. - -4 bottles of beer on the wall, -4 bottles of beer! -Take one down, pass it around; -3 bottles of beer on the wall. - -3 bottles of beer on the wall, -3 bottles of beer! -Take one down, pass it around; -2 bottles of beer on the wall. - -2 bottles of beer on the wall, -2 bottles of beer! -Take one down, pass it around; -1 bottle of beer on the wall. - -1 bottle of beer on the wall, -1 bottle of beer! -Take one down, pass it around; -0 bottles of beer on the wall. - -0 bottles of beer on the wall, -0 bottles of beer! -Go into town, buy a new round -Get some more bottles of beer on the wall! diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/bottles.ref b/src/tools/docbook/libxslt/tests/XSLTMark/bottles.ref deleted file mode 100644 index e8e2eb6cc9..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/bottles.ref +++ /dev/null @@ -1,2405 +0,0 @@ - -99 -bottles -of -beer -on -the -wall, -99 -bottles -of -beer! -Take -one -down, -pass -it -around; -98 -bottles -of -beer -on -the -wall. -98 -bottles -of -beer -on -the -wall, -98 -bottles -of -beer! -Take -one -down, -pass -it -around; -97 -bottles -of -beer -on -the -wall. -97 -bottles -of -beer -on -the -wall, -97 -bottles -of -beer! -Take -one -down, -pass -it -around; -96 -bottles -of -beer -on -the -wall. -96 -bottles -of -beer -on -the -wall, -96 -bottles -of -beer! -Take -one -down, -pass -it -around; -95 -bottles -of -beer -on -the -wall. -95 -bottles -of -beer -on -the -wall, -95 -bottles -of -beer! -Take -one -down, -pass -it -around; -94 -bottles -of -beer -on -the -wall. -94 -bottles -of -beer -on -the -wall, -94 -bottles -of -beer! -Take -one -down, -pass -it -around; -93 -bottles -of -beer -on -the -wall. -93 -bottles -of -beer -on -the -wall, -93 -bottles -of -beer! -Take -one -down, -pass -it -around; -92 -bottles -of -beer -on -the -wall. -92 -bottles -of -beer -on -the -wall, -92 -bottles -of -beer! -Take -one -down, -pass -it -around; -91 -bottles -of -beer -on -the -wall. -91 -bottles -of -beer -on -the -wall, -91 -bottles -of -beer! -Take -one -down, -pass -it -around; -90 -bottles -of -beer -on -the -wall. -90 -bottles -of -beer -on -the -wall, -90 -bottles -of -beer! -Take -one -down, -pass -it -around; -89 -bottles -of -beer -on -the -wall. -89 -bottles -of -beer -on -the -wall, -89 -bottles -of -beer! -Take -one -down, -pass -it -around; -88 -bottles -of -beer -on -the -wall. -88 -bottles -of -beer -on -the -wall, -88 -bottles -of -beer! -Take -one -down, -pass -it -around; -87 -bottles -of -beer -on -the -wall. -87 -bottles -of -beer -on -the -wall, -87 -bottles -of -beer! -Take -one -down, -pass -it -around; -86 -bottles -of -beer -on -the -wall. -86 -bottles -of -beer -on -the -wall, -86 -bottles -of -beer! -Take -one -down, -pass -it -around; -85 -bottles -of -beer -on -the -wall. -85 -bottles -of -beer -on -the -wall, -85 -bottles -of -beer! -Take -one -down, -pass -it -around; -84 -bottles -of -beer -on -the -wall. -84 -bottles -of -beer -on -the -wall, -84 -bottles -of -beer! -Take -one -down, -pass -it -around; -83 -bottles -of -beer -on -the -wall. -83 -bottles -of -beer -on -the -wall, -83 -bottles -of -beer! -Take -one -down, -pass -it -around; -82 -bottles -of -beer -on -the -wall. -82 -bottles -of -beer -on -the -wall, -82 -bottles -of -beer! -Take -one -down, -pass -it -around; -81 -bottles -of -beer -on -the -wall. -81 -bottles -of -beer -on -the -wall, -81 -bottles -of -beer! -Take -one -down, -pass -it -around; -80 -bottles -of -beer -on -the -wall. -80 -bottles -of -beer -on -the -wall, -80 -bottles -of -beer! -Take -one -down, -pass -it -around; -79 -bottles -of -beer -on -the -wall. -79 -bottles -of -beer -on -the -wall, -79 -bottles -of -beer! -Take -one -down, -pass -it -around; -78 -bottles -of -beer -on -the -wall. -78 -bottles -of -beer -on -the -wall, -78 -bottles -of -beer! -Take -one -down, -pass -it -around; -77 -bottles -of -beer -on -the -wall. -77 -bottles -of -beer -on -the -wall, -77 -bottles -of -beer! -Take -one -down, -pass -it -around; -76 -bottles -of -beer -on -the -wall. -76 -bottles -of -beer -on -the -wall, -76 -bottles -of -beer! -Take -one -down, -pass -it -around; -75 -bottles -of -beer -on -the -wall. -75 -bottles -of -beer -on -the -wall, -75 -bottles -of -beer! -Take -one -down, -pass -it -around; -74 -bottles -of -beer -on -the -wall. -74 -bottles -of -beer -on -the -wall, -74 -bottles -of -beer! -Take -one -down, -pass -it -around; -73 -bottles -of -beer -on -the -wall. -73 -bottles -of -beer -on -the -wall, -73 -bottles -of -beer! -Take -one -down, -pass -it -around; -72 -bottles -of -beer -on -the -wall. -72 -bottles -of -beer -on -the -wall, -72 -bottles -of -beer! -Take -one -down, -pass -it -around; -71 -bottles -of -beer -on -the -wall. -71 -bottles -of -beer -on -the -wall, -71 -bottles -of -beer! -Take -one -down, -pass -it -around; -70 -bottles -of -beer -on -the -wall. -70 -bottles -of -beer -on -the -wall, -70 -bottles -of -beer! -Take -one -down, -pass -it -around; -69 -bottles -of -beer -on -the -wall. -69 -bottles -of -beer -on -the -wall, -69 -bottles -of -beer! -Take -one -down, -pass -it -around; -68 -bottles -of -beer -on -the -wall. -68 -bottles -of -beer -on -the -wall, -68 -bottles -of -beer! -Take -one -down, -pass -it -around; -67 -bottles -of -beer -on -the -wall. -67 -bottles -of -beer -on -the -wall, -67 -bottles -of -beer! -Take -one -down, -pass -it -around; -66 -bottles -of -beer -on -the -wall. -66 -bottles -of -beer -on -the -wall, -66 -bottles -of -beer! -Take -one -down, -pass -it -around; -65 -bottles -of -beer -on -the -wall. -65 -bottles -of -beer -on -the -wall, -65 -bottles -of -beer! -Take -one -down, -pass -it -around; -64 -bottles -of -beer -on -the -wall. -64 -bottles -of -beer -on -the -wall, -64 -bottles -of -beer! -Take -one -down, -pass -it -around; -63 -bottles -of -beer -on -the -wall. -63 -bottles -of -beer -on -the -wall, -63 -bottles -of -beer! -Take -one -down, -pass -it -around; -62 -bottles -of -beer -on -the -wall. -62 -bottles -of -beer -on -the -wall, -62 -bottles -of -beer! -Take -one -down, -pass -it -around; -61 -bottles -of -beer -on -the -wall. -61 -bottles -of -beer -on -the -wall, -61 -bottles -of -beer! -Take -one -down, -pass -it -around; -60 -bottles -of -beer -on -the -wall. -60 -bottles -of -beer -on -the -wall, -60 -bottles -of -beer! -Take -one -down, -pass -it -around; -59 -bottles -of -beer -on -the -wall. -59 -bottles -of -beer -on -the -wall, -59 -bottles -of -beer! -Take -one -down, -pass -it -around; -58 -bottles -of -beer -on -the -wall. -58 -bottles -of -beer -on -the -wall, -58 -bottles -of -beer! -Take -one -down, -pass -it -around; -57 -bottles -of -beer -on -the -wall. -57 -bottles -of -beer -on -the -wall, -57 -bottles -of -beer! -Take -one -down, -pass -it -around; -56 -bottles -of -beer -on -the -wall. -56 -bottles -of -beer -on -the -wall, -56 -bottles -of -beer! -Take -one -down, -pass -it -around; -55 -bottles -of -beer -on -the -wall. -55 -bottles -of -beer -on -the -wall, -55 -bottles -of -beer! -Take -one -down, -pass -it -around; -54 -bottles -of -beer -on -the -wall. -54 -bottles -of -beer -on -the -wall, -54 -bottles -of -beer! -Take -one -down, -pass -it -around; -53 -bottles -of -beer -on -the -wall. -53 -bottles -of -beer -on -the -wall, -53 -bottles -of -beer! -Take -one -down, -pass -it -around; -52 -bottles -of -beer -on -the -wall. -52 -bottles -of -beer -on -the -wall, -52 -bottles -of -beer! -Take -one -down, -pass -it -around; -51 -bottles -of -beer -on -the -wall. -51 -bottles -of -beer -on -the -wall, -51 -bottles -of -beer! -Take -one -down, -pass -it -around; -50 -bottles -of -beer -on -the -wall. -50 -bottles -of -beer -on -the -wall, -50 -bottles -of -beer! -Take -one -down, -pass -it -around; -49 -bottles -of -beer -on -the -wall. -49 -bottles -of -beer -on -the -wall, -49 -bottles -of -beer! -Take -one -down, -pass -it -around; -48 -bottles -of -beer -on -the -wall. -48 -bottles -of -beer -on -the -wall, -48 -bottles -of -beer! -Take -one -down, -pass -it -around; -47 -bottles -of -beer -on -the -wall. -47 -bottles -of -beer -on -the -wall, -47 -bottles -of -beer! -Take -one -down, -pass -it -around; -46 -bottles -of -beer -on -the -wall. -46 -bottles -of -beer -on -the -wall, -46 -bottles -of -beer! -Take -one -down, -pass -it -around; -45 -bottles -of -beer -on -the -wall. -45 -bottles -of -beer -on -the -wall, -45 -bottles -of -beer! -Take -one -down, -pass -it -around; -44 -bottles -of -beer -on -the -wall. -44 -bottles -of -beer -on -the -wall, -44 -bottles -of -beer! -Take -one -down, -pass -it -around; -43 -bottles -of -beer -on -the -wall. -43 -bottles -of -beer -on -the -wall, -43 -bottles -of -beer! -Take -one -down, -pass -it -around; -42 -bottles -of -beer -on -the -wall. -42 -bottles -of -beer -on -the -wall, -42 -bottles -of -beer! -Take -one -down, -pass -it -around; -41 -bottles -of -beer -on -the -wall. -41 -bottles -of -beer -on -the -wall, -41 -bottles -of -beer! -Take -one -down, -pass -it -around; -40 -bottles -of -beer -on -the -wall. -40 -bottles -of -beer -on -the -wall, -40 -bottles -of -beer! -Take -one -down, -pass -it -around; -39 -bottles -of -beer -on -the -wall. -39 -bottles -of -beer -on -the -wall, -39 -bottles -of -beer! -Take -one -down, -pass -it -around; -38 -bottles -of -beer -on -the -wall. -38 -bottles -of -beer -on -the -wall, -38 -bottles -of -beer! -Take -one -down, -pass -it -around; -37 -bottles -of -beer -on -the -wall. -37 -bottles -of -beer -on -the -wall, -37 -bottles -of -beer! -Take -one -down, -pass -it -around; -36 -bottles -of -beer -on -the -wall. -36 -bottles -of -beer -on -the -wall, -36 -bottles -of -beer! -Take -one -down, -pass -it -around; -35 -bottles -of -beer -on -the -wall. -35 -bottles -of -beer -on -the -wall, -35 -bottles -of -beer! -Take -one -down, -pass -it -around; -34 -bottles -of -beer -on -the -wall. -34 -bottles -of -beer -on -the -wall, -34 -bottles -of -beer! -Take -one -down, -pass -it -around; -33 -bottles -of -beer -on -the -wall. -33 -bottles -of -beer -on -the -wall, -33 -bottles -of -beer! -Take -one -down, -pass -it -around; -32 -bottles -of -beer -on -the -wall. -32 -bottles -of -beer -on -the -wall, -32 -bottles -of -beer! -Take -one -down, -pass -it -around; -31 -bottles -of -beer -on -the -wall. -31 -bottles -of -beer -on -the -wall, -31 -bottles -of -beer! -Take -one -down, -pass -it -around; -30 -bottles -of -beer -on -the -wall. -30 -bottles -of -beer -on -the -wall, -30 -bottles -of -beer! -Take -one -down, -pass -it -around; -29 -bottles -of -beer -on -the -wall. -29 -bottles -of -beer -on -the -wall, -29 -bottles -of -beer! -Take -one -down, -pass -it -around; -28 -bottles -of -beer -on -the -wall. -28 -bottles -of -beer -on -the -wall, -28 -bottles -of -beer! -Take -one -down, -pass -it -around; -27 -bottles -of -beer -on -the -wall. -27 -bottles -of -beer -on -the -wall, -27 -bottles -of -beer! -Take -one -down, -pass -it -around; -26 -bottles -of -beer -on -the -wall. -26 -bottles -of -beer -on -the -wall, -26 -bottles -of -beer! -Take -one -down, -pass -it -around; -25 -bottles -of -beer -on -the -wall. -25 -bottles -of -beer -on -the -wall, -25 -bottles -of -beer! -Take -one -down, -pass -it -around; -24 -bottles -of -beer -on -the -wall. -24 -bottles -of -beer -on -the -wall, -24 -bottles -of -beer! -Take -one -down, -pass -it -around; -23 -bottles -of -beer -on -the -wall. -23 -bottles -of -beer -on -the -wall, -23 -bottles -of -beer! -Take -one -down, -pass -it -around; -22 -bottles -of -beer -on -the -wall. -22 -bottles -of -beer -on -the -wall, -22 -bottles -of -beer! -Take -one -down, -pass -it -around; -21 -bottles -of -beer -on -the -wall. -21 -bottles -of -beer -on -the -wall, -21 -bottles -of -beer! -Take -one -down, -pass -it -around; -20 -bottles -of -beer -on -the -wall. -20 -bottles -of -beer -on -the -wall, -20 -bottles -of -beer! -Take -one -down, -pass -it -around; -19 -bottles -of -beer -on -the -wall. -19 -bottles -of -beer -on -the -wall, -19 -bottles -of -beer! -Take -one -down, -pass -it -around; -18 -bottles -of -beer -on -the -wall. -18 -bottles -of -beer -on -the -wall, -18 -bottles -of -beer! -Take -one -down, -pass -it -around; -17 -bottles -of -beer -on -the -wall. -17 -bottles -of -beer -on -the -wall, -17 -bottles -of -beer! -Take -one -down, -pass -it -around; -16 -bottles -of -beer -on -the -wall. -16 -bottles -of -beer -on -the -wall, -16 -bottles -of -beer! -Take -one -down, -pass -it -around; -15 -bottles -of -beer -on -the -wall. -15 -bottles -of -beer -on -the -wall, -15 -bottles -of -beer! -Take -one -down, -pass -it -around; -14 -bottles -of -beer -on -the -wall. -14 -bottles -of -beer -on -the -wall, -14 -bottles -of -beer! -Take -one -down, -pass -it -around; -13 -bottles -of -beer -on -the -wall. -13 -bottles -of -beer -on -the -wall, -13 -bottles -of -beer! -Take -one -down, -pass -it -around; -12 -bottles -of -beer -on -the -wall. -12 -bottles -of -beer -on -the -wall, -12 -bottles -of -beer! -Take -one -down, -pass -it -around; -11 -bottles -of -beer -on -the -wall. -11 -bottles -of -beer -on -the -wall, -11 -bottles -of -beer! -Take -one -down, -pass -it -around; -10 -bottles -of -beer -on -the -wall. -10 -bottles -of -beer -on -the -wall, -10 -bottles -of -beer! -Take -one -down, -pass -it -around; -9 -bottles -of -beer -on -the -wall. -9 -bottles -of -beer -on -the -wall, -9 -bottles -of -beer! -Take -one -down, -pass -it -around; -8 -bottles -of -beer -on -the -wall. -8 -bottles -of -beer -on -the -wall, -8 -bottles -of -beer! -Take -one -down, -pass -it -around; -7 -bottles -of -beer -on -the -wall. -7 -bottles -of -beer -on -the -wall, -7 -bottles -of -beer! -Take -one -down, -pass -it -around; -6 -bottles -of -beer -on -the -wall. -6 -bottles -of -beer -on -the -wall, -6 -bottles -of -beer! -Take -one -down, -pass -it -around; -5 -bottles -of -beer -on -the -wall. -5 -bottles -of -beer -on -the -wall, -5 -bottles -of -beer! -Take -one -down, -pass -it -around; -4 -bottles -of -beer -on -the -wall. -4 -bottles -of -beer -on -the -wall, -4 -bottles -of -beer! -Take -one -down, -pass -it -around; -3 -bottles -of -beer -on -the -wall. -3 -bottles -of -beer -on -the -wall, -3 -bottles -of -beer! -Take -one -down, -pass -it -around; -2 -bottles -of -beer -on -the -wall. -2 -bottles -of -beer -on -the -wall, -2 -bottles -of -beer! -Take -one -down, -pass -it -around; -1 -bottle -of -beer -on -the -wall. -1 -bottle -of -beer -on -the -wall, -1 -bottle -of -beer! -Take -one -down, -pass -it -around; -0 -bottles -of -beer -on -the -wall. -0 -bottles -of -beer -on -the -wall, -0 -bottles -of -beer! -Go -into -town, -buy -a -new -round -Get -some -more -bottles -of -beer -on -the -wall! - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/bottles.xml b/src/tools/docbook/libxslt/tests/XSLTMark/bottles.xml deleted file mode 100644 index be7044880e..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/bottles.xml +++ /dev/null @@ -1,3 +0,0 @@ - - -99 diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/bottles.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/bottles.xsl deleted file mode 100644 index 4b63ea96ed..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/bottles.xsl +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - 1 bottle - - - - - - - - - - - - 0 bottles of beer on the wall, -0 bottles of beer! -Go into town, buy a new round -Get some more bottles of beer on the wall! - - - - - - - of beer on the wall, - - - - - of beer! -Take one down, pass it around; - - - - - of beer on the wall. - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/breadth.out b/src/tools/docbook/libxslt/tests/XSLTMark/breadth.out deleted file mode 100644 index 02c0dfabca..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/breadth.out +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/breadth.ref b/src/tools/docbook/libxslt/tests/XSLTMark/breadth.ref deleted file mode 100644 index bb6b1ef7db..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/breadth.ref +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/breadth.xml b/src/tools/docbook/libxslt/tests/XSLTMark/breadth.xml deleted file mode 100644 index f34cbabf64..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/breadth.xml +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/brutal.out b/src/tools/docbook/libxslt/tests/XSLTMark/brutal.out deleted file mode 100644 index 48b6e3b775..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/brutal.out +++ /dev/null @@ -1,165 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Warehouse: - Virginia -
    SkuQuantityDescription
    2201 - - - -
    12..
    sprocket
    2202 - - - -
    19..
    widget
    2203 - - - -
    0..
    cog
    2204 - - - -
    11..
    whoozit
    2205 - - - -
    42..
    whatchamidigger
    2209 - - - -
    0..
    doohickey
    Total:84 instances of - 6 kinds of items. -
    - Warehouse: - Pluto -
    SkuQuantityDescription
    2201 - - - -
    4..
    sprocket
    2204 - - - -
    4..
    whoozit
    2210 - - - -
    0..
    flange
    2210 - - - -
    5..
    knick knack
    2214 - - - -
    74..
    squeegie
    Total:87 instances of - 5 kinds of items. -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    Need to Reorder:
    - Virginia - 22030cog
    - Virginia - 22090doohickey
    - Pluto - 22100flange
    Total:3 items -
    - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/brutal.ref b/src/tools/docbook/libxslt/tests/XSLTMark/brutal.ref deleted file mode 100644 index 1b14b9b6b6..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/brutal.ref +++ /dev/null @@ -1,380 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -Warehouse: -Virginia -
    -Sku - -Quantity - -Description -
    -2201 - - - - - - - -
    -12 - -. - -. -
    -
    -sprocket -
    -2202 - - - - - - - -
    -19 - -. - -. -
    -
    -widget -
    -2203 - - - - - - - -
    -0 - -. - -. -
    -
    -cog -
    -2204 - - - - - - - -
    -11 - -. - -. -
    -
    -whoozit -
    -2205 - - - - - - - -
    -42 - -. - -. -
    -
    -whatchamidigger -
    -2209 - - - - - - - -
    -0 - -. - -. -
    -
    -doohickey -
    -Total: - -84 -instances -of -6 -kinds -of -items. -
    -Warehouse: -Pluto -
    -Sku - -Quantity - -Description -
    -2201 - - - - - - - -
    -4 - -. - -. -
    -
    -sprocket -
    -2204 - - - - - - - -
    -4 - -. - -. -
    -
    -whoozit -
    -2210 - - - - - - - -
    -0 - -. - -. -
    -
    -flange -
    -2210 - - - - - - - -
    -5 - -. - -. -
    -
    -knick -knack -
    -2214 - - - - - - - -
    -74 - -. - -. -
    -
    -squeegie -
    -Total: - -87 -instances -of -5 -kinds -of -items. -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -Need -to -Reorder: -
    -Virginia - -2203 - -0 - -cog -
    -Virginia - -2209 - -0 - -doohickey -
    -Pluto - -2210 - -0 - -flange -
    -Total: - -3 -items -
    - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/brutal.xml b/src/tools/docbook/libxslt/tests/XSLTMark/brutal.xml deleted file mode 100644 index 1bf9d29cdf..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/brutal.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - Virginia - - - - 2201 - sprocket - 12 - - - 2203 - cog - 0 - - - 2202 - widget - 19 - - - 2209 - doohickey - 0 - - - 2205 - whatchamidigger - 42 - - - 2204 - whoozit - 11 - - - - - - Pluto - - - - 2201 - sprocket - 4 - - - 2210 - flange - 0 - - - 2214 - squeegie - 74 - - - 2204 - whoozit - 4 - - - 2210 - knick knack - 5 - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/brutal.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/brutal.xsl deleted file mode 100644 index 920cb8e922..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/brutal.xsl +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Warehouse: -
    SkuQuantityDescription
    Total: - instances of - kinds of items. -
    - - - - - - - - - - - - - - -
    Need to Reorder:
    Total: - items -
    - -
    - - - - - - - - - tablecell - - - - - - - - - -
    - - ..
    - - - - -
    - - - - - - tablecell - - - - - - - - - -
    - -
    - - - -
    - - - - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/chart.out b/src/tools/docbook/libxslt/tests/XSLTMark/chart.out deleted file mode 100644 index 715e799c4e..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/chart.out +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - -
    Sales By Region
    - - - - - - -
    - - -
     
     
    - - -
     
     
    - - -
     
     
    1997
    - - - - - - -
    - - -
     
     
    - - -
     
     
    - - -
     
     
    1998
    - - - - - - -
    - - -
     
     
    - - -
     
     
    - - -
     
     
    1999
    - - - - - - -
    - - -
     
     
    - - -
     
     
    - - -
     
     
    2000
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/chart.ref b/src/tools/docbook/libxslt/tests/XSLTMark/chart.ref deleted file mode 100644 index 05e671a59e..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/chart.ref +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - - - - - - - -
    -Sales -By -Region -
    - - - - - - - - - -
    - - - - - - - -
    -  -
    -  -
    -
    - - - - - - - -
    -  -
    -  -
    -
    - - - - - - - -
    -  -
    -  -
    -
    -1997 -
    -
    - - - - - - - - - -
    - - - - - - - -
    -  -
    -  -
    -
    - - - - - - - -
    -  -
    -  -
    -
    - - - - - - - -
    -  -
    -  -
    -
    -1998 -
    -
    - - - - - - - - - -
    - - - - - - - -
    -  -
    -  -
    -
    - - - - - - - -
    -  -
    -  -
    -
    - - - - - - - -
    -  -
    -  -
    -
    -1999 -
    -
    - - - - - - - - - -
    - - - - - - - -
    -  -
    -  -
    -
    - - - - - - - -
    -  -
    -  -
    -
    - - - - - - - -
    -  -
    -  -
    -
    -2000 -
    -
    - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/chart.xml b/src/tools/docbook/libxslt/tests/XSLTMark/chart.xml deleted file mode 100644 index d08a027ebf..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/chart.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - 1997 - - west - 32 - - - central - 11 - - - east - 19 - - - - 1998 - - west - 35 - - - central - 12 - - - east - 25 - - - - 1999 - - west - 36 - - - central - 12 - - - east - 31 - - - - 2000 - - west - 37 - - - central - 11 - - - east - 40 - - - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/chart.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/chart.xsl deleted file mode 100644 index e8abaece5a..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/chart.xsl +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - -
    Sales By Region
    - - - - - - #0000ff - #ff00ff - #00ff00 - - - - - - - - -
    - - - - - - - - -
    - &#160; -
    - &#160; -
    -
    - -
    -
    - - - -
    - -
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/creation.out b/src/tools/docbook/libxslt/tests/XSLTMark/creation.out deleted file mode 100644 index 07529164d3..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/creation.out +++ /dev/null @@ -1,903 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/creation.ref b/src/tools/docbook/libxslt/tests/XSLTMark/creation.ref deleted file mode 100644 index ce1c6e3c10..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/creation.ref +++ /dev/null @@ -1,902 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/creation.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/creation.xsl deleted file mode 100644 index 4fa9432a34..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/creation.xsl +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - -
    -
    - - - - - - - - - - - - - - -
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/current.out b/src/tools/docbook/libxslt/tests/XSLTMark/current.out deleted file mode 100644 index 1e76632012..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/current.out +++ /dev/null @@ -1,14 +0,0 @@ - - - - foobazbaz - barbazbaz - - - - foo - bar - baz - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/current.ref b/src/tools/docbook/libxslt/tests/XSLTMark/current.ref deleted file mode 100644 index 62d13cbc17..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/current.ref +++ /dev/null @@ -1,41 +0,0 @@ - - - -foo - - - - -baz - - - - -baz - - - - -bar - - - - -baz - - - - -baz - - - -foo - - -bar - - -baz - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/current.xml b/src/tools/docbook/libxslt/tests/XSLTMark/current.xml deleted file mode 100644 index 0033b23ad2..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/current.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/current.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/current.xsl deleted file mode 100644 index b5f837e3b7..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/current.xsl +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/dbgen.pl b/src/tools/docbook/libxslt/tests/XSLTMark/dbgen.pl deleted file mode 100755 index 1383d6e979..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/dbgen.pl +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/perl - -$size = shift; - -if ($size eq "") -{ - die "usage: dbgen.pl [size]\n"; -} - -@firstnames = ("Al", "Bob", "Charles", "David", "Egon", "Farbood", - "George", "Hank", "Inki", "James"); -@lastnames = ("Aranow", "Barker", "Corsetti", "Dershowitz", "Engleman", - "Franklin", "Grice", "Haverford", "Ilvedson", "Jones"); -@states = ("AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "FL", "GA", - "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", - "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", - "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC", - "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY"); - -print "\n"; -print "\n"; -print "\n"; - -for ($i=0; $i<$size; $i++) -{ - $first = $firstnames [$i % 10]; - $last = $lastnames [($i / 10) % 10]; - $state = $states [($i / 100) % 50]; - $zip = 22000 + $i / 5000; - - printf " \n"; - printf " %04d\n", $i; - printf " $first\n", $i; - printf " $last\n", $i; - printf " %d Any St.\n", ($i % 100) + 1; - printf " Anytown\n"; - printf " $state\n"; - printf " %d\n", $zip; - printf " \n"; -} - -print "
    \n"; - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/dbonerow.out b/src/tools/docbook/libxslt/tests/XSLTMark/dbonerow.out deleted file mode 100644 index 1f1dc4d829..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/dbonerow.out +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    personel record #0432
    - First Name: - Charles
    - Last Name: - Dershowitz
    - Street: - 33 Any St.
    - City: - Anytown
    - State: - CA
    - Zip - 22000
    - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/dbonerow.ref b/src/tools/docbook/libxslt/tests/XSLTMark/dbonerow.ref deleted file mode 100644 index d97fb21b19..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/dbonerow.ref +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -personel -record -#0432 - -
    -First -Name: - -Charles -
    -Last -Name: - -Dershowitz -
    -Street: - -33 -Any -St. -
    -City: - -Anytown -
    -State: - -CA -
    -Zip - -22000 -
    - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/dbonerow.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/dbonerow.xsl deleted file mode 100644 index ce817026cc..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/dbonerow.xsl +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - -
    - First Name: - - -
    - Last Name: - - -
    - Street: - - -
    - City: - - -
    - State: - - -
    - Zip - - -
    - - -
    - - - -
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/dbtail.out b/src/tools/docbook/libxslt/tests/XSLTMark/dbtail.out deleted file mode 100644 index 7a4a9c0c43..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/dbtail.out +++ /dev/null @@ -1,2 +0,0 @@ - -AlAranowBobAranowCharlesAranowDavidAranowEgonAranowFarboodAranowGeorgeAranowHankAranowInkiAranowJamesAranowAlBarkerBobBarkerCharlesBarkerDavidBarkerEgonBarkerFarboodBarkerGeorgeBarkerHankBarkerInkiBarkerJamesBarkerAlCorsettiBobCorsettiCharlesCorsettiDavidCorsettiEgonCorsettiFarboodCorsettiGeorgeCorsettiHankCorsettiInkiCorsettiJamesCorsettiAlDershowitzBobDershowitzCharlesDershowitzDavidDershowitzEgonDershowitzFarboodDershowitzGeorgeDershowitzHankDershowitzInkiDershowitzJamesDershowitzAlEnglemanBobEnglemanCharlesEnglemanDavidEnglemanEgonEnglemanFarboodEnglemanGeorgeEnglemanHankEnglemanInkiEnglemanJamesEnglemanAlFranklinBobFranklinCharlesFranklinDavidFranklinEgonFranklinFarboodFranklinGeorgeFranklinHankFranklinInkiFranklinJamesFranklinAlGriceBobGriceCharlesGriceDavidGriceEgonGriceFarboodGriceGeorgeGriceHankGriceInkiGriceJamesGriceAlHaverfordBobHaverfordCharlesHaverfordDavidHaverfordEgonHaverfordFarboodHaverfordGeorgeHaverfordHankHaverfordInkiHaverfordJamesHaverfordAlIlvedsonBobIlvedsonCharlesIlvedsonDavidIlvedsonEgonIlvedsonFarboodIlvedsonGeorgeIlvedsonHankIlvedsonInkiIlvedsonJamesIlvedsonAlJonesBobJonesCharlesJonesDavidJonesEgonJonesFarboodJonesGeorgeJonesHankJonesInkiJonesJamesJones diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/dbtail.ref b/src/tools/docbook/libxslt/tests/XSLTMark/dbtail.ref deleted file mode 100644 index b0b74d0bb7..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/dbtail.ref +++ /dev/null @@ -1,802 +0,0 @@ - - - -Al - - -Aranow - - - - -Bob - - -Aranow - - - - -Charles - - -Aranow - - - - -David - - -Aranow - - - - -Egon - - -Aranow - - - - -Farbood - - -Aranow - - - - -George - - -Aranow - - - - -Hank - - -Aranow - - - - -Inki - - -Aranow - - - - -James - - -Aranow - - - - -Al - - -Barker - - - - -Bob - - -Barker - - - - -Charles - - -Barker - - - - -David - - -Barker - - - - -Egon - - -Barker - - - - -Farbood - - -Barker - - - - -George - - -Barker - - - - -Hank - - -Barker - - - - -Inki - - -Barker - - - - -James - - -Barker - - - - -Al - - -Corsetti - - - - -Bob - - -Corsetti - - - - -Charles - - -Corsetti - - - - -David - - -Corsetti - - - - -Egon - - -Corsetti - - - - -Farbood - - -Corsetti - - - - -George - - -Corsetti - - - - -Hank - - -Corsetti - - - - -Inki - - -Corsetti - - - - -James - - -Corsetti - - - - -Al - - -Dershowitz - - - - -Bob - - -Dershowitz - - - - -Charles - - -Dershowitz - - - - -David - - -Dershowitz - - - - -Egon - - -Dershowitz - - - - -Farbood - - -Dershowitz - - - - -George - - -Dershowitz - - - - -Hank - - -Dershowitz - - - - -Inki - - -Dershowitz - - - - -James - - -Dershowitz - - - - -Al - - -Engleman - - - - -Bob - - -Engleman - - - - -Charles - - -Engleman - - - - -David - - -Engleman - - - - -Egon - - -Engleman - - - - -Farbood - - -Engleman - - - - -George - - -Engleman - - - - -Hank - - -Engleman - - - - -Inki - - -Engleman - - - - -James - - -Engleman - - - - -Al - - -Franklin - - - - -Bob - - -Franklin - - - - -Charles - - -Franklin - - - - -David - - -Franklin - - - - -Egon - - -Franklin - - - - -Farbood - - -Franklin - - - - -George - - -Franklin - - - - -Hank - - -Franklin - - - - -Inki - - -Franklin - - - - -James - - -Franklin - - - - -Al - - -Grice - - - - -Bob - - -Grice - - - - -Charles - - -Grice - - - - -David - - -Grice - - - - -Egon - - -Grice - - - - -Farbood - - -Grice - - - - -George - - -Grice - - - - -Hank - - -Grice - - - - -Inki - - -Grice - - - - -James - - -Grice - - - - -Al - - -Haverford - - - - -Bob - - -Haverford - - - - -Charles - - -Haverford - - - - -David - - -Haverford - - - - -Egon - - -Haverford - - - - -Farbood - - -Haverford - - - - -George - - -Haverford - - - - -Hank - - -Haverford - - - - -Inki - - -Haverford - - - - -James - - -Haverford - - - - -Al - - -Ilvedson - - - - -Bob - - -Ilvedson - - - - -Charles - - -Ilvedson - - - - -David - - -Ilvedson - - - - -Egon - - -Ilvedson - - - - -Farbood - - -Ilvedson - - - - -George - - -Ilvedson - - - - -Hank - - -Ilvedson - - - - -Inki - - -Ilvedson - - - - -James - - -Ilvedson - - - - -Al - - -Jones - - - - -Bob - - -Jones - - - - -Charles - - -Jones - - - - -David - - -Jones - - - - -Egon - - -Jones - - - - -Farbood - - -Jones - - - - -George - - -Jones - - - - -Hank - - -Jones - - - - -Inki - - -Jones - - - - -James - - -Jones - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/dbtail.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/dbtail.xsl deleted file mode 100644 index c99b92a18d..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/dbtail.xsl +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/decoy.out b/src/tools/docbook/libxslt/tests/XSLTMark/decoy.out deleted file mode 100644 index f0788599e6..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/decoy.out +++ /dev/null @@ -1,903 +0,0 @@ - - - - 0000 - Al - Aranow - 1 Any St. - Anytown - AL - 22000 - - - 0001 - Bob - Aranow - 2 Any St. - Anytown - AL - 22000 - - - 0002 - Charles - Aranow - 3 Any St. - Anytown - AL - 22000 - - - 0003 - David - Aranow - 4 Any St. - Anytown - AL - 22000 - - - 0004 - Egon - Aranow - 5 Any St. - Anytown - AL - 22000 - - - 0005 - Farbood - Aranow - 6 Any St. - Anytown - AL - 22000 - - - 0006 - George - Aranow - 7 Any St. - Anytown - AL - 22000 - - - 0007 - Hank - Aranow - 8 Any St. - Anytown - AL - 22000 - - - 0008 - Inki - Aranow - 9 Any St. - Anytown - AL - 22000 - - - 0009 - James - Aranow - 10 Any St. - Anytown - AL - 22000 - - - 0010 - Al - Barker - 11 Any St. - Anytown - AL - 22000 - - - 0011 - Bob - Barker - 12 Any St. - Anytown - AL - 22000 - - - 0012 - Charles - Barker - 13 Any St. - Anytown - AL - 22000 - - - 0013 - David - Barker - 14 Any St. - Anytown - AL - 22000 - - - 0014 - Egon - Barker - 15 Any St. - Anytown - AL - 22000 - - - 0015 - Farbood - Barker - 16 Any St. - Anytown - AL - 22000 - - - 0016 - George - Barker - 17 Any St. - Anytown - AL - 22000 - - - 0017 - Hank - Barker - 18 Any St. - Anytown - AL - 22000 - - - 0018 - Inki - Barker - 19 Any St. - Anytown - AL - 22000 - - - 0019 - James - Barker - 20 Any St. - Anytown - AL - 22000 - - - 0020 - Al - Corsetti - 21 Any St. - Anytown - AL - 22000 - - - 0021 - Bob - Corsetti - 22 Any St. - Anytown - AL - 22000 - - - 0022 - Charles - Corsetti - 23 Any St. - Anytown - AL - 22000 - - - 0023 - David - Corsetti - 24 Any St. - Anytown - AL - 22000 - - - 0024 - Egon - Corsetti - 25 Any St. - Anytown - AL - 22000 - - - 0025 - Farbood - Corsetti - 26 Any St. - Anytown - AL - 22000 - - - 0026 - George - Corsetti - 27 Any St. - Anytown - AL - 22000 - - - 0027 - Hank - Corsetti - 28 Any St. - Anytown - AL - 22000 - - - 0028 - Inki - Corsetti - 29 Any St. - Anytown - AL - 22000 - - - 0029 - James - Corsetti - 30 Any St. - Anytown - AL - 22000 - - - 0030 - Al - Dershowitz - 31 Any St. - Anytown - AL - 22000 - - - 0031 - Bob - Dershowitz - 32 Any St. - Anytown - AL - 22000 - - - 0032 - Charles - Dershowitz - 33 Any St. - Anytown - AL - 22000 - - - 0033 - David - Dershowitz - 34 Any St. - Anytown - AL - 22000 - - - 0034 - Egon - Dershowitz - 35 Any St. - Anytown - AL - 22000 - - - 0035 - Farbood - Dershowitz - 36 Any St. - Anytown - AL - 22000 - - - 0036 - George - Dershowitz - 37 Any St. - Anytown - AL - 22000 - - - 0037 - Hank - Dershowitz - 38 Any St. - Anytown - AL - 22000 - - - 0038 - Inki - Dershowitz - 39 Any St. - Anytown - AL - 22000 - - - 0039 - James - Dershowitz - 40 Any St. - Anytown - AL - 22000 - - - 0040 - Al - Engleman - 41 Any St. - Anytown - AL - 22000 - - - 0041 - Bob - Engleman - 42 Any St. - Anytown - AL - 22000 - - - 0042 - Charles - Engleman - 43 Any St. - Anytown - AL - 22000 - - - 0043 - David - Engleman - 44 Any St. - Anytown - AL - 22000 - - - 0044 - Egon - Engleman - 45 Any St. - Anytown - AL - 22000 - - - 0045 - Farbood - Engleman - 46 Any St. - Anytown - AL - 22000 - - - 0046 - George - Engleman - 47 Any St. - Anytown - AL - 22000 - - - 0047 - Hank - Engleman - 48 Any St. - Anytown - AL - 22000 - - - 0048 - Inki - Engleman - 49 Any St. - Anytown - AL - 22000 - - - 0049 - James - Engleman - 50 Any St. - Anytown - AL - 22000 - - - 0050 - Al - Franklin - 51 Any St. - Anytown - AL - 22000 - - - 0051 - Bob - Franklin - 52 Any St. - Anytown - AL - 22000 - - - 0052 - Charles - Franklin - 53 Any St. - Anytown - AL - 22000 - - - 0053 - David - Franklin - 54 Any St. - Anytown - AL - 22000 - - - 0054 - Egon - Franklin - 55 Any St. - Anytown - AL - 22000 - - - 0055 - Farbood - Franklin - 56 Any St. - Anytown - AL - 22000 - - - 0056 - George - Franklin - 57 Any St. - Anytown - AL - 22000 - - - 0057 - Hank - Franklin - 58 Any St. - Anytown - AL - 22000 - - - 0058 - Inki - Franklin - 59 Any St. - Anytown - AL - 22000 - - - 0059 - James - Franklin - 60 Any St. - Anytown - AL - 22000 - - - 0060 - Al - Grice - 61 Any St. - Anytown - AL - 22000 - - - 0061 - Bob - Grice - 62 Any St. - Anytown - AL - 22000 - - - 0062 - Charles - Grice - 63 Any St. - Anytown - AL - 22000 - - - 0063 - David - Grice - 64 Any St. - Anytown - AL - 22000 - - - 0064 - Egon - Grice - 65 Any St. - Anytown - AL - 22000 - - - 0065 - Farbood - Grice - 66 Any St. - Anytown - AL - 22000 - - - 0066 - George - Grice - 67 Any St. - Anytown - AL - 22000 - - - 0067 - Hank - Grice - 68 Any St. - Anytown - AL - 22000 - - - 0068 - Inki - Grice - 69 Any St. - Anytown - AL - 22000 - - - 0069 - James - Grice - 70 Any St. - Anytown - AL - 22000 - - - 0070 - Al - Haverford - 71 Any St. - Anytown - AL - 22000 - - - 0071 - Bob - Haverford - 72 Any St. - Anytown - AL - 22000 - - - 0072 - Charles - Haverford - 73 Any St. - Anytown - AL - 22000 - - - 0073 - David - Haverford - 74 Any St. - Anytown - AL - 22000 - - - 0074 - Egon - Haverford - 75 Any St. - Anytown - AL - 22000 - - - 0075 - Farbood - Haverford - 76 Any St. - Anytown - AL - 22000 - - - 0076 - George - Haverford - 77 Any St. - Anytown - AL - 22000 - - - 0077 - Hank - Haverford - 78 Any St. - Anytown - AL - 22000 - - - 0078 - Inki - Haverford - 79 Any St. - Anytown - AL - 22000 - - - 0079 - James - Haverford - 80 Any St. - Anytown - AL - 22000 - - - 0080 - Al - Ilvedson - 81 Any St. - Anytown - AL - 22000 - - - 0081 - Bob - Ilvedson - 82 Any St. - Anytown - AL - 22000 - - - 0082 - Charles - Ilvedson - 83 Any St. - Anytown - AL - 22000 - - - 0083 - David - Ilvedson - 84 Any St. - Anytown - AL - 22000 - - - 0084 - Egon - Ilvedson - 85 Any St. - Anytown - AL - 22000 - - - 0085 - Farbood - Ilvedson - 86 Any St. - Anytown - AL - 22000 - - - 0086 - George - Ilvedson - 87 Any St. - Anytown - AL - 22000 - - - 0087 - Hank - Ilvedson - 88 Any St. - Anytown - AL - 22000 - - - 0088 - Inki - Ilvedson - 89 Any St. - Anytown - AL - 22000 - - - 0089 - James - Ilvedson - 90 Any St. - Anytown - AL - 22000 - - - 0090 - Al - Jones - 91 Any St. - Anytown - AL - 22000 - - - 0091 - Bob - Jones - 92 Any St. - Anytown - AL - 22000 - - - 0092 - Charles - Jones - 93 Any St. - Anytown - AL - 22000 - - - 0093 - David - Jones - 94 Any St. - Anytown - AL - 22000 - - - 0094 - Egon - Jones - 95 Any St. - Anytown - AL - 22000 - - - 0095 - Farbood - Jones - 96 Any St. - Anytown - AL - 22000 - - - 0096 - George - Jones - 97 Any St. - Anytown - AL - 22000 - - - 0097 - Hank - Jones - 98 Any St. - Anytown - AL - 22000 - - - 0098 - Inki - Jones - 99 Any St. - Anytown - AL - 22000 - - - 0099 - James - Jones - 100 Any St. - Anytown - AL - 22000 - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/decoy.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/decoy.xsl deleted file mode 100644 index 5adb95ba92..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/decoy.xsl +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/depth.out b/src/tools/docbook/libxslt/tests/XSLTMark/depth.out deleted file mode 100644 index fa0b578f99..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/depth.out +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/depth.ref b/src/tools/docbook/libxslt/tests/XSLTMark/depth.ref deleted file mode 100644 index b05e476282..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/depth.ref +++ /dev/null @@ -1,399 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/depth.xml b/src/tools/docbook/libxslt/tests/XSLTMark/depth.xml deleted file mode 100644 index 4433cd263e..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/depth.xml +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/encrypt.out b/src/tools/docbook/libxslt/tests/XSLTMark/encrypt.out deleted file mode 100644 index 7170aa89d0..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/encrypt.out +++ /dev/null @@ -1,903 +0,0 @@ - - - - 0000 - Ny - Nenabj - 1 Nal Fg. - Nalgbja - NY - 22000 - - - 0001 - Obo - Nenabj - 2 Nal Fg. - Nalgbja - NY - 22000 - - - 0002 - Puneyrf - Nenabj - 3 Nal Fg. - Nalgbja - NY - 22000 - - - 0003 - Qnivq - Nenabj - 4 Nal Fg. - Nalgbja - NY - 22000 - - - 0004 - Rtba - Nenabj - 5 Nal Fg. - Nalgbja - NY - 22000 - - - 0005 - Sneobbq - Nenabj - 6 Nal Fg. - Nalgbja - NY - 22000 - - - 0006 - Trbetr - Nenabj - 7 Nal Fg. - Nalgbja - NY - 22000 - - - 0007 - Unax - Nenabj - 8 Nal Fg. - Nalgbja - NY - 22000 - - - 0008 - Vaxv - Nenabj - 9 Nal Fg. - Nalgbja - NY - 22000 - - - 0009 - Wnzrf - Nenabj - 10 Nal Fg. - Nalgbja - NY - 22000 - - - 0010 - Ny - Onexre - 11 Nal Fg. - Nalgbja - NY - 22000 - - - 0011 - Obo - Onexre - 12 Nal Fg. - Nalgbja - NY - 22000 - - - 0012 - Puneyrf - Onexre - 13 Nal Fg. - Nalgbja - NY - 22000 - - - 0013 - Qnivq - Onexre - 14 Nal Fg. - Nalgbja - NY - 22000 - - - 0014 - Rtba - Onexre - 15 Nal Fg. - Nalgbja - NY - 22000 - - - 0015 - Sneobbq - Onexre - 16 Nal Fg. - Nalgbja - NY - 22000 - - - 0016 - Trbetr - Onexre - 17 Nal Fg. - Nalgbja - NY - 22000 - - - 0017 - Unax - Onexre - 18 Nal Fg. - Nalgbja - NY - 22000 - - - 0018 - Vaxv - Onexre - 19 Nal Fg. - Nalgbja - NY - 22000 - - - 0019 - Wnzrf - Onexre - 20 Nal Fg. - Nalgbja - NY - 22000 - - - 0020 - Ny - Pbefrggv - 21 Nal Fg. - Nalgbja - NY - 22000 - - - 0021 - Obo - Pbefrggv - 22 Nal Fg. - Nalgbja - NY - 22000 - - - 0022 - Puneyrf - Pbefrggv - 23 Nal Fg. - Nalgbja - NY - 22000 - - - 0023 - Qnivq - Pbefrggv - 24 Nal Fg. - Nalgbja - NY - 22000 - - - 0024 - Rtba - Pbefrggv - 25 Nal Fg. - Nalgbja - NY - 22000 - - - 0025 - Sneobbq - Pbefrggv - 26 Nal Fg. - Nalgbja - NY - 22000 - - - 0026 - Trbetr - Pbefrggv - 27 Nal Fg. - Nalgbja - NY - 22000 - - - 0027 - Unax - Pbefrggv - 28 Nal Fg. - Nalgbja - NY - 22000 - - - 0028 - Vaxv - Pbefrggv - 29 Nal Fg. - Nalgbja - NY - 22000 - - - 0029 - Wnzrf - Pbefrggv - 30 Nal Fg. - Nalgbja - NY - 22000 - - - 0030 - Ny - Qrefubjvgm - 31 Nal Fg. - Nalgbja - NY - 22000 - - - 0031 - Obo - Qrefubjvgm - 32 Nal Fg. - Nalgbja - NY - 22000 - - - 0032 - Puneyrf - Qrefubjvgm - 33 Nal Fg. - Nalgbja - NY - 22000 - - - 0033 - Qnivq - Qrefubjvgm - 34 Nal Fg. - Nalgbja - NY - 22000 - - - 0034 - Rtba - Qrefubjvgm - 35 Nal Fg. - Nalgbja - NY - 22000 - - - 0035 - Sneobbq - Qrefubjvgm - 36 Nal Fg. - Nalgbja - NY - 22000 - - - 0036 - Trbetr - Qrefubjvgm - 37 Nal Fg. - Nalgbja - NY - 22000 - - - 0037 - Unax - Qrefubjvgm - 38 Nal Fg. - Nalgbja - NY - 22000 - - - 0038 - Vaxv - Qrefubjvgm - 39 Nal Fg. - Nalgbja - NY - 22000 - - - 0039 - Wnzrf - Qrefubjvgm - 40 Nal Fg. - Nalgbja - NY - 22000 - - - 0040 - Ny - Ratyrzna - 41 Nal Fg. - Nalgbja - NY - 22000 - - - 0041 - Obo - Ratyrzna - 42 Nal Fg. - Nalgbja - NY - 22000 - - - 0042 - Puneyrf - Ratyrzna - 43 Nal Fg. - Nalgbja - NY - 22000 - - - 0043 - Qnivq - Ratyrzna - 44 Nal Fg. - Nalgbja - NY - 22000 - - - 0044 - Rtba - Ratyrzna - 45 Nal Fg. - Nalgbja - NY - 22000 - - - 0045 - Sneobbq - Ratyrzna - 46 Nal Fg. - Nalgbja - NY - 22000 - - - 0046 - Trbetr - Ratyrzna - 47 Nal Fg. - Nalgbja - NY - 22000 - - - 0047 - Unax - Ratyrzna - 48 Nal Fg. - Nalgbja - NY - 22000 - - - 0048 - Vaxv - Ratyrzna - 49 Nal Fg. - Nalgbja - NY - 22000 - - - 0049 - Wnzrf - Ratyrzna - 50 Nal Fg. - Nalgbja - NY - 22000 - - - 0050 - Ny - Senaxyva - 51 Nal Fg. - Nalgbja - NY - 22000 - - - 0051 - Obo - Senaxyva - 52 Nal Fg. - Nalgbja - NY - 22000 - - - 0052 - Puneyrf - Senaxyva - 53 Nal Fg. - Nalgbja - NY - 22000 - - - 0053 - Qnivq - Senaxyva - 54 Nal Fg. - Nalgbja - NY - 22000 - - - 0054 - Rtba - Senaxyva - 55 Nal Fg. - Nalgbja - NY - 22000 - - - 0055 - Sneobbq - Senaxyva - 56 Nal Fg. - Nalgbja - NY - 22000 - - - 0056 - Trbetr - Senaxyva - 57 Nal Fg. - Nalgbja - NY - 22000 - - - 0057 - Unax - Senaxyva - 58 Nal Fg. - Nalgbja - NY - 22000 - - - 0058 - Vaxv - Senaxyva - 59 Nal Fg. - Nalgbja - NY - 22000 - - - 0059 - Wnzrf - Senaxyva - 60 Nal Fg. - Nalgbja - NY - 22000 - - - 0060 - Ny - Tevpr - 61 Nal Fg. - Nalgbja - NY - 22000 - - - 0061 - Obo - Tevpr - 62 Nal Fg. - Nalgbja - NY - 22000 - - - 0062 - Puneyrf - Tevpr - 63 Nal Fg. - Nalgbja - NY - 22000 - - - 0063 - Qnivq - Tevpr - 64 Nal Fg. - Nalgbja - NY - 22000 - - - 0064 - Rtba - Tevpr - 65 Nal Fg. - Nalgbja - NY - 22000 - - - 0065 - Sneobbq - Tevpr - 66 Nal Fg. - Nalgbja - NY - 22000 - - - 0066 - Trbetr - Tevpr - 67 Nal Fg. - Nalgbja - NY - 22000 - - - 0067 - Unax - Tevpr - 68 Nal Fg. - Nalgbja - NY - 22000 - - - 0068 - Vaxv - Tevpr - 69 Nal Fg. - Nalgbja - NY - 22000 - - - 0069 - Wnzrf - Tevpr - 70 Nal Fg. - Nalgbja - NY - 22000 - - - 0070 - Ny - Uniresbeq - 71 Nal Fg. - Nalgbja - NY - 22000 - - - 0071 - Obo - Uniresbeq - 72 Nal Fg. - Nalgbja - NY - 22000 - - - 0072 - Puneyrf - Uniresbeq - 73 Nal Fg. - Nalgbja - NY - 22000 - - - 0073 - Qnivq - Uniresbeq - 74 Nal Fg. - Nalgbja - NY - 22000 - - - 0074 - Rtba - Uniresbeq - 75 Nal Fg. - Nalgbja - NY - 22000 - - - 0075 - Sneobbq - Uniresbeq - 76 Nal Fg. - Nalgbja - NY - 22000 - - - 0076 - Trbetr - Uniresbeq - 77 Nal Fg. - Nalgbja - NY - 22000 - - - 0077 - Unax - Uniresbeq - 78 Nal Fg. - Nalgbja - NY - 22000 - - - 0078 - Vaxv - Uniresbeq - 79 Nal Fg. - Nalgbja - NY - 22000 - - - 0079 - Wnzrf - Uniresbeq - 80 Nal Fg. - Nalgbja - NY - 22000 - - - 0080 - Ny - Vyirqfba - 81 Nal Fg. - Nalgbja - NY - 22000 - - - 0081 - Obo - Vyirqfba - 82 Nal Fg. - Nalgbja - NY - 22000 - - - 0082 - Puneyrf - Vyirqfba - 83 Nal Fg. - Nalgbja - NY - 22000 - - - 0083 - Qnivq - Vyirqfba - 84 Nal Fg. - Nalgbja - NY - 22000 - - - 0084 - Rtba - Vyirqfba - 85 Nal Fg. - Nalgbja - NY - 22000 - - - 0085 - Sneobbq - Vyirqfba - 86 Nal Fg. - Nalgbja - NY - 22000 - - - 0086 - Trbetr - Vyirqfba - 87 Nal Fg. - Nalgbja - NY - 22000 - - - 0087 - Unax - Vyirqfba - 88 Nal Fg. - Nalgbja - NY - 22000 - - - 0088 - Vaxv - Vyirqfba - 89 Nal Fg. - Nalgbja - NY - 22000 - - - 0089 - Wnzrf - Vyirqfba - 90 Nal Fg. - Nalgbja - NY - 22000 - - - 0090 - Ny - Wbarf - 91 Nal Fg. - Nalgbja - NY - 22000 - - - 0091 - Obo - Wbarf - 92 Nal Fg. - Nalgbja - NY - 22000 - - - 0092 - Puneyrf - Wbarf - 93 Nal Fg. - Nalgbja - NY - 22000 - - - 0093 - Qnivq - Wbarf - 94 Nal Fg. - Nalgbja - NY - 22000 - - - 0094 - Rtba - Wbarf - 95 Nal Fg. - Nalgbja - NY - 22000 - - - 0095 - Sneobbq - Wbarf - 96 Nal Fg. - Nalgbja - NY - 22000 - - - 0096 - Trbetr - Wbarf - 97 Nal Fg. - Nalgbja - NY - 22000 - - - 0097 - Unax - Wbarf - 98 Nal Fg. - Nalgbja - NY - 22000 - - - 0098 - Vaxv - Wbarf - 99 Nal Fg. - Nalgbja - NY - 22000 - - - 0099 - Wnzrf - Wbarf - 100 Nal Fg. - Nalgbja - NY - 22000 - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/encrypt.ref b/src/tools/docbook/libxslt/tests/XSLTMark/encrypt.ref deleted file mode 100644 index d87b3f02f9..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/encrypt.ref +++ /dev/null @@ -1,2502 +0,0 @@ - - - -0000 - - -Ny - - -Nenabj - - -1 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0001 - - -Obo - - -Nenabj - - -2 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0002 - - -Puneyrf - - -Nenabj - - -3 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0003 - - -Qnivq - - -Nenabj - - -4 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0004 - - -Rtba - - -Nenabj - - -5 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0005 - - -Sneobbq - - -Nenabj - - -6 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0006 - - -Trbetr - - -Nenabj - - -7 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0007 - - -Unax - - -Nenabj - - -8 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0008 - - -Vaxv - - -Nenabj - - -9 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0009 - - -Wnzrf - - -Nenabj - - -10 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0010 - - -Ny - - -Onexre - - -11 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0011 - - -Obo - - -Onexre - - -12 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0012 - - -Puneyrf - - -Onexre - - -13 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0013 - - -Qnivq - - -Onexre - - -14 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0014 - - -Rtba - - -Onexre - - -15 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0015 - - -Sneobbq - - -Onexre - - -16 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0016 - - -Trbetr - - -Onexre - - -17 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0017 - - -Unax - - -Onexre - - -18 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0018 - - -Vaxv - - -Onexre - - -19 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0019 - - -Wnzrf - - -Onexre - - -20 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0020 - - -Ny - - -Pbefrggv - - -21 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0021 - - -Obo - - -Pbefrggv - - -22 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0022 - - -Puneyrf - - -Pbefrggv - - -23 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0023 - - -Qnivq - - -Pbefrggv - - -24 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0024 - - -Rtba - - -Pbefrggv - - -25 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0025 - - -Sneobbq - - -Pbefrggv - - -26 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0026 - - -Trbetr - - -Pbefrggv - - -27 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0027 - - -Unax - - -Pbefrggv - - -28 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0028 - - -Vaxv - - -Pbefrggv - - -29 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0029 - - -Wnzrf - - -Pbefrggv - - -30 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0030 - - -Ny - - -Qrefubjvgm - - -31 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0031 - - -Obo - - -Qrefubjvgm - - -32 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0032 - - -Puneyrf - - -Qrefubjvgm - - -33 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0033 - - -Qnivq - - -Qrefubjvgm - - -34 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0034 - - -Rtba - - -Qrefubjvgm - - -35 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0035 - - -Sneobbq - - -Qrefubjvgm - - -36 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0036 - - -Trbetr - - -Qrefubjvgm - - -37 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0037 - - -Unax - - -Qrefubjvgm - - -38 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0038 - - -Vaxv - - -Qrefubjvgm - - -39 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0039 - - -Wnzrf - - -Qrefubjvgm - - -40 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0040 - - -Ny - - -Ratyrzna - - -41 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0041 - - -Obo - - -Ratyrzna - - -42 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0042 - - -Puneyrf - - -Ratyrzna - - -43 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0043 - - -Qnivq - - -Ratyrzna - - -44 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0044 - - -Rtba - - -Ratyrzna - - -45 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0045 - - -Sneobbq - - -Ratyrzna - - -46 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0046 - - -Trbetr - - -Ratyrzna - - -47 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0047 - - -Unax - - -Ratyrzna - - -48 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0048 - - -Vaxv - - -Ratyrzna - - -49 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0049 - - -Wnzrf - - -Ratyrzna - - -50 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0050 - - -Ny - - -Senaxyva - - -51 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0051 - - -Obo - - -Senaxyva - - -52 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0052 - - -Puneyrf - - -Senaxyva - - -53 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0053 - - -Qnivq - - -Senaxyva - - -54 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0054 - - -Rtba - - -Senaxyva - - -55 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0055 - - -Sneobbq - - -Senaxyva - - -56 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0056 - - -Trbetr - - -Senaxyva - - -57 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0057 - - -Unax - - -Senaxyva - - -58 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0058 - - -Vaxv - - -Senaxyva - - -59 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0059 - - -Wnzrf - - -Senaxyva - - -60 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0060 - - -Ny - - -Tevpr - - -61 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0061 - - -Obo - - -Tevpr - - -62 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0062 - - -Puneyrf - - -Tevpr - - -63 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0063 - - -Qnivq - - -Tevpr - - -64 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0064 - - -Rtba - - -Tevpr - - -65 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0065 - - -Sneobbq - - -Tevpr - - -66 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0066 - - -Trbetr - - -Tevpr - - -67 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0067 - - -Unax - - -Tevpr - - -68 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0068 - - -Vaxv - - -Tevpr - - -69 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0069 - - -Wnzrf - - -Tevpr - - -70 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0070 - - -Ny - - -Uniresbeq - - -71 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0071 - - -Obo - - -Uniresbeq - - -72 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0072 - - -Puneyrf - - -Uniresbeq - - -73 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0073 - - -Qnivq - - -Uniresbeq - - -74 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0074 - - -Rtba - - -Uniresbeq - - -75 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0075 - - -Sneobbq - - -Uniresbeq - - -76 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0076 - - -Trbetr - - -Uniresbeq - - -77 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0077 - - -Unax - - -Uniresbeq - - -78 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0078 - - -Vaxv - - -Uniresbeq - - -79 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0079 - - -Wnzrf - - -Uniresbeq - - -80 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0080 - - -Ny - - -Vyirqfba - - -81 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0081 - - -Obo - - -Vyirqfba - - -82 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0082 - - -Puneyrf - - -Vyirqfba - - -83 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0083 - - -Qnivq - - -Vyirqfba - - -84 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0084 - - -Rtba - - -Vyirqfba - - -85 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0085 - - -Sneobbq - - -Vyirqfba - - -86 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0086 - - -Trbetr - - -Vyirqfba - - -87 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0087 - - -Unax - - -Vyirqfba - - -88 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0088 - - -Vaxv - - -Vyirqfba - - -89 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0089 - - -Wnzrf - - -Vyirqfba - - -90 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0090 - - -Ny - - -Wbarf - - -91 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0091 - - -Obo - - -Wbarf - - -92 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0092 - - -Puneyrf - - -Wbarf - - -93 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0093 - - -Qnivq - - -Wbarf - - -94 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0094 - - -Rtba - - -Wbarf - - -95 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0095 - - -Sneobbq - - -Wbarf - - -96 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0096 - - -Trbetr - - -Wbarf - - -97 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0097 - - -Unax - - -Wbarf - - -98 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0098 - - -Vaxv - - -Wbarf - - -99 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - - -0099 - - -Wnzrf - - -Wbarf - - -100 -Nal -Fg. - - -Nalgbja - - -NY - - -22000 - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/encrypt.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/encrypt.xsl deleted file mode 100644 index 0e3a3813ec..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/encrypt.xsl +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/find.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/find.xsl deleted file mode 100644 index 6943aa07a7..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/find.xsl +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/functions.out b/src/tools/docbook/libxslt/tests/XSLTMark/functions.out deleted file mode 100644 index 748b57a8da..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/functions.out +++ /dev/null @@ -1,103 +0,0 @@ - - - Al Aranow2Ny000now - Bob Aranow3Obo004now - Charles Aranow7Puneyrf107now - David Aranow5Qnivq3010now - Egon Aranow4Rtba6013now - Farbood Aranow7Sneobbq10016now - George Aranow6Trbetr15019now - Hank Aranow4Unax21022now - Inki Aranow4Vaxv28026now - James Aranow5Wnzrf36029now - Al Barker2Ny45032ker22000er - Bob Barker3Obo55035ker22000er - Charles Barker7Puneyrf66038ker22000er - David Barker5Qnivq78041ker22000er - Egon Barker4Rtba91044ker22000er - Farbood Barker7Sneobbq105048ker22000er - George Barker6Trbetr120051ker22000er - Hank Barker4Unax136154ker22000er - Inki Barker4Vaxv153157ker22000er - James Barker5Wnzrf171160ker22000er - Al Corsetti2Ny190163set - Bob Corsetti3Obo210166set - Charles Corsetti7Puneyrf231170set - David Corsetti5Qnivq253173set - Egon Corsetti4Rtba276176set - Farbood Corsetti7Sneobbq300179set - George Corsetti6Trbetr325182set - Hank Corsetti4Unax351185set - Inki Corsetti4Vaxv378188set - James Corsetti5Wnzrf406192set - Al Dershowitz2Ny435195sho - Bob Dershowitz3Obo465198sho - Charles Dershowitz7Puneyrf4961101sho - David Dershowitz5Qnivq5281104sho - Egon Dershowitz4Rtba5612107sho - Farbood Dershowitz7Sneobbq5952110sho - George Dershowitz6Trbetr6302114sho - Hank Dershowitz4Unax6662117sho - Inki Dershowitz4Vaxv7032120sho - James Dershowitz5Wnzrf7412123sho - Al Engleman2Ny7802126lem - Bob Engleman3Obo8202129lem - Charles Engleman7Puneyrf8612132lem - David Engleman5Qnivq9032136lem - Egon Engleman4Rtba9462139lem - Farbood Engleman7Sneobbq9902142lem - George Engleman6Trbetr10352145lem - Hank Engleman4Unax10812148lem - Inki Engleman4Vaxv11282151lem - James Engleman5Wnzrf11762154lem - Al Franklin2Ny12252158nkllin - Bob Franklin3Obo12753161nkllin - Charles Franklin7Puneyrf13263164nkllin - David Franklin5Qnivq13783167nkllin - Egon Franklin4Rtba14313170nkllin - Farbood Franklin7Sneobbq14853173nkllin - George Franklin6Trbetr15403176nkllin - Hank Franklin4Unax15963180nkllin - Inki Franklin4Vaxv16533183nkllin - James Franklin5Wnzrf17113186nkllin - Al Grice2Ny17703189ce - Bob Grice3Obo18303192ce - Charles Grice7Puneyrf18913195ce - David Grice5Qnivq19533198ce - Egon Grice4Rtba20163202ce - Farbood Grice7Sneobbq20803205ce - George Grice6Trbetr21453208ce - Hank Grice4Unax22113211ce - Inki Grice4Vaxv22784214ce - James Grice5Wnzrf23464217ce - Al Haverford2Ny24154220erf - Bob Haverford3Obo24854224erf - Charles Haverford7Puneyrf25564227erf - David Haverford5Qnivq26284230erf - Egon Haverford4Rtba27014233erf - Farbood Haverford7Sneobbq27754236erf - George Haverford6Trbetr28504239erf - Hank Haverford4Unax29264242erf - Inki Haverford4Vaxv30034246erf - James Haverford5Wnzrf30814249erf - Al Ilvedson2Ny31604252eds - Bob Ilvedson3Obo32404255eds - Charles Ilvedson7Puneyrf33214258eds - David Ilvedson5Qnivq34034261eds - Egon Ilvedson4Rtba34864264eds - Farbood Ilvedson7Sneobbq35705268eds - George Ilvedson6Trbetr36555271eds - Hank Ilvedson4Unax37415274eds - Inki Ilvedson4Vaxv38285277eds - James Ilvedson5Wnzrf39165280eds - Al Jones2Ny40055283es - Bob Jones3Obo40955286es - Charles Jones7Puneyrf41865290es - David Jones5Qnivq42785293es - Egon Jones4Rtba43715296es - Farbood Jones7Sneobbq44655299es - George Jones6Trbetr45605302es - Hank Jones4Unax46565305es - Inki Jones4Vaxv47535308es - James Jones5Wnzrf48515312es - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/functions.ref b/src/tools/docbook/libxslt/tests/XSLTMark/functions.ref deleted file mode 100644 index ea8124aa3d..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/functions.ref +++ /dev/null @@ -1,542 +0,0 @@ - - -Al -Aranow2Ny000now - - - -Bob -Aranow3Obo004now - - - -Charles -Aranow7Puneyrf107now - - - -David -Aranow5Qnivq3010now - - - -Egon -Aranow4Rtba6013now - - - -Farbood -Aranow7Sneobbq10016now - - - -George -Aranow6Trbetr15019now - - - -Hank -Aranow4Unax21022now - - - -Inki -Aranow4Vaxv28026now - - - -James -Aranow5Wnzrf36029now - - - -Al -Barker2Ny45032ker - - -22000er - - -Bob -Barker3Obo55035ker - - -22000er - - -Charles -Barker7Puneyrf66038ker - - -22000er - - -David -Barker5Qnivq78041ker - - -22000er - - -Egon -Barker4Rtba91044ker - - -22000er - - -Farbood -Barker7Sneobbq105048ker - - -22000er - - -George -Barker6Trbetr120051ker - - -22000er - - -Hank -Barker4Unax136154ker - - -22000er - - -Inki -Barker4Vaxv153157ker - - -22000er - - -James -Barker5Wnzrf171160ker - - -22000er - - -Al -Corsetti2Ny190163set - - - -Bob -Corsetti3Obo210166set - - - -Charles -Corsetti7Puneyrf231170set - - - -David -Corsetti5Qnivq253173set - - - -Egon -Corsetti4Rtba276176set - - - -Farbood -Corsetti7Sneobbq300179set - - - -George -Corsetti6Trbetr325182set - - - -Hank -Corsetti4Unax351185set - - - -Inki -Corsetti4Vaxv378188set - - - -James -Corsetti5Wnzrf406192set - - - -Al -Dershowitz2Ny435195sho - - - -Bob -Dershowitz3Obo465198sho - - - -Charles -Dershowitz7Puneyrf4961101sho - - - -David -Dershowitz5Qnivq5281104sho - - - -Egon -Dershowitz4Rtba5612107sho - - - -Farbood -Dershowitz7Sneobbq5952110sho - - - -George -Dershowitz6Trbetr6302114sho - - - -Hank -Dershowitz4Unax6662117sho - - - -Inki -Dershowitz4Vaxv7032120sho - - - -James -Dershowitz5Wnzrf7412123sho - - - -Al -Engleman2Ny7802126lem - - - -Bob -Engleman3Obo8202129lem - - - -Charles -Engleman7Puneyrf8612132lem - - - -David -Engleman5Qnivq9032136lem - - - -Egon -Engleman4Rtba9462139lem - - - -Farbood -Engleman7Sneobbq9902142lem - - - -George -Engleman6Trbetr10352145lem - - - -Hank -Engleman4Unax10812148lem - - - -Inki -Engleman4Vaxv11282151lem - - - -James -Engleman5Wnzrf11762154lem - - - -Al -Franklin2Ny12252158nkl - - -lin - - -Bob -Franklin3Obo12753161nkl - - -lin - - -Charles -Franklin7Puneyrf13263164nkl - - -lin - - -David -Franklin5Qnivq13783167nkl - - -lin - - -Egon -Franklin4Rtba14313170nkl - - -lin - - -Farbood -Franklin7Sneobbq14853173nkl - - -lin - - -George -Franklin6Trbetr15403176nkl - - -lin - - -Hank -Franklin4Unax15963180nkl - - -lin - - -Inki -Franklin4Vaxv16533183nkl - - -lin - - -James -Franklin5Wnzrf17113186nkl - - -lin - - -Al -Grice2Ny17703189ce - - - -Bob -Grice3Obo18303192ce - - - -Charles -Grice7Puneyrf18913195ce - - - -David -Grice5Qnivq19533198ce - - - -Egon -Grice4Rtba20163202ce - - - -Farbood -Grice7Sneobbq20803205ce - - - -George -Grice6Trbetr21453208ce - - - -Hank -Grice4Unax22113211ce - - - -Inki -Grice4Vaxv22784214ce - - - -James -Grice5Wnzrf23464217ce - - - -Al -Haverford2Ny24154220erf - - - -Bob -Haverford3Obo24854224erf - - - -Charles -Haverford7Puneyrf25564227erf - - - -David -Haverford5Qnivq26284230erf - - - -Egon -Haverford4Rtba27014233erf - - - -Farbood -Haverford7Sneobbq27754236erf - - - -George -Haverford6Trbetr28504239erf - - - -Hank -Haverford4Unax29264242erf - - - -Inki -Haverford4Vaxv30034246erf - - - -James -Haverford5Wnzrf30814249erf - - - -Al -Ilvedson2Ny31604252eds - - - -Bob -Ilvedson3Obo32404255eds - - - -Charles -Ilvedson7Puneyrf33214258eds - - - -David -Ilvedson5Qnivq34034261eds - - - -Egon -Ilvedson4Rtba34864264eds - - - -Farbood -Ilvedson7Sneobbq35705268eds - - - -George -Ilvedson6Trbetr36555271eds - - - -Hank -Ilvedson4Unax37415274eds - - - -Inki -Ilvedson4Vaxv38285277eds - - - -James -Ilvedson5Wnzrf39165280eds - - - -Al -Jones2Ny40055283es - - - -Bob -Jones3Obo40955286es - - - -Charles -Jones7Puneyrf41865290es - - - -David -Jones5Qnivq42785293es - - - -Egon -Jones4Rtba43715296es - - - -Farbood -Jones7Sneobbq44655299es - - - -George -Jones6Trbetr45605302es - - - -Hank -Jones4Unax46565305es - - - -Inki -Jones4Vaxv47535308es - - - -James -Jones5Wnzrf48515312es - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/functions.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/functions.xsl deleted file mode 100644 index 26c3ea6653..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/functions.xsl +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/game.out b/src/tools/docbook/libxslt/tests/XSLTMark/game.out deleted file mode 100644 index 60e0eb6dfd..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/game.out +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Inning123456789final
    Foobars0110020015
    Whosits0010002003
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/game.ref b/src/tools/docbook/libxslt/tests/XSLTMark/game.ref deleted file mode 100644 index 5213d1a13a..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/game.ref +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -Inning - -1 - -2 - -3 - -4 - -5 - -6 - -7 - -8 - -9 - -final -
    - -Foobars - - -0 - -1 - -1 - -0 - -0 - -2 - -0 - -0 - -1 - -5 -
    - -Whosits - - -0 - -0 - -1 - -0 - -0 - -0 - -2 - -0 - -0 - -3 -
    - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/game.xml b/src/tools/docbook/libxslt/tests/XSLTMark/game.xml deleted file mode 100644 index d50bbf50fa..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/game.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - - - Foobars - Whosits - - - 1 - - 0 - 2 - 0 - - - 0 - 1 - 0 - - - - 2 - - 1 - 2 - 1 - - - 0 - 1 - 0 - - - - 3 - - 1 - 3 - 0 - - - 1 - 4 - 0 - - - - 4 - - 0 - 0 - 0 - - - 0 - 1 - 0 - - - - 5 - - 0 - 1 - 0 - - - 0 - 1 - 0 - - - - 6 - - 2 - 5 - 0 - - - 0 - 1 - 0 - - - - 7 - - 0 - 2 - 0 - - - 2 - 4 - 0 - - - - 8 - - 0 - 3 - 0 - - - 0 - 2 - 0 - - - - 9 - - 1 - 2 - 0 - - - 0 - 2 - 0 - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/game.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/game.xsl deleted file mode 100644 index 6202f0dc7d..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/game.xsl +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - Inning - - - - - - final - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - -
    - -
    \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/gettysburg.xml b/src/tools/docbook/libxslt/tests/XSLTMark/gettysburg.xml deleted file mode 100644 index d9490ef257..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/gettysburg.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - -Four score and seven years ago our fathers brought forth, upon this -continent, a new nation, conceived in liberty, and dedicated to the -proposition that "all men are created equal" - -Now we are engaged in a great civil war, testing whether that nation, -or any nation so conceived, and so dedicated, can long endure. We are -met on a great battle field of that war. We come to dedicate a portion -of it, as a final resting place for those who died here, that the -nation might live. This we may, in all propriety do. But, in a larger -sense, we can not dedicate -- we can not consecrate -- we can not -hallow, this ground -- The brave men, living and dead, who struggled -here, have hallowed it, far above our poor power to add or -detract. The world will little note, nor long remember what we say -here; while it can never forget what they did here. - -It is rather for us, the living, we here be dedicated to the great -task remaining before us -- that, from these honored dead we take -increased devotion to that cause for which they here, gave the last -full measure of devotion -- that we here highly resolve these dead -shall not have died in vain; that the nation, shall have a new birth -of freedom, and that government of the people by the people for the -people, shall not perish from the earth. - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/html.out b/src/tools/docbook/libxslt/tests/XSLTMark/html.out deleted file mode 100644 index 94ed6c59bc..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/html.out +++ /dev/null @@ -1,32 +0,0 @@ - - - -Sales Results By Division - - - - - - - - - - - - - - - - - - - - - - - - - - -
    DivisionRevenueGrowthBonus
    North1097
    West6-1.52
    South434
    - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/html.ref b/src/tools/docbook/libxslt/tests/XSLTMark/html.ref deleted file mode 100644 index 7ff0b43c04..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/html.ref +++ /dev/null @@ -1,76 +0,0 @@ - - - -Sales -Results -By -Division - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -Division - -Revenue - -Growth - -Bonus -
    - -North - - -10 - -9 - -7 -
    - -West - - -6 - --1.5 - -2 -
    - -South - - -4 - -3 - -4 -
    - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/html.xml b/src/tools/docbook/libxslt/tests/XSLTMark/html.xml deleted file mode 100644 index 98df4fda85..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/html.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - -10 -9 -7 - - - -4 -3 -4 - - - -6 --1.5 -2 - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/html.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/html.xsl deleted file mode 100644 index 13b42c6042..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/html.xsl +++ /dev/null @@ -1,44 +0,0 @@ - - - -Sales Results By Division - - - - - - - - - - - - - - - - - - - -
    DivisionRevenueGrowthBonus
    - - - - - - - -color:red - - - - - -
    - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/identity.out b/src/tools/docbook/libxslt/tests/XSLTMark/identity.out deleted file mode 100644 index bc14b7e53e..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/identity.out +++ /dev/null @@ -1,9003 +0,0 @@ - - - - 0000 - Al - Aranow - 1 Any St. - Anytown - AL - 22000 - - - 0001 - Bob - Aranow - 2 Any St. - Anytown - AL - 22000 - - - 0002 - Charles - Aranow - 3 Any St. - Anytown - AL - 22000 - - - 0003 - David - Aranow - 4 Any St. - Anytown - AL - 22000 - - - 0004 - Egon - Aranow - 5 Any St. - Anytown - AL - 22000 - - - 0005 - Farbood - Aranow - 6 Any St. - Anytown - AL - 22000 - - - 0006 - George - Aranow - 7 Any St. - Anytown - AL - 22000 - - - 0007 - Hank - Aranow - 8 Any St. - Anytown - AL - 22000 - - - 0008 - Inki - Aranow - 9 Any St. - Anytown - AL - 22000 - - - 0009 - James - Aranow - 10 Any St. - Anytown - AL - 22000 - - - 0010 - Al - Barker - 11 Any St. - Anytown - AL - 22000 - - - 0011 - Bob - Barker - 12 Any St. - Anytown - AL - 22000 - - - 0012 - Charles - Barker - 13 Any St. - Anytown - AL - 22000 - - - 0013 - David - Barker - 14 Any St. - Anytown - AL - 22000 - - - 0014 - Egon - Barker - 15 Any St. - Anytown - AL - 22000 - - - 0015 - Farbood - Barker - 16 Any St. - Anytown - AL - 22000 - - - 0016 - George - Barker - 17 Any St. - Anytown - AL - 22000 - - - 0017 - Hank - Barker - 18 Any St. - Anytown - AL - 22000 - - - 0018 - Inki - Barker - 19 Any St. - Anytown - AL - 22000 - - - 0019 - James - Barker - 20 Any St. - Anytown - AL - 22000 - - - 0020 - Al - Corsetti - 21 Any St. - Anytown - AL - 22000 - - - 0021 - Bob - Corsetti - 22 Any St. - Anytown - AL - 22000 - - - 0022 - Charles - Corsetti - 23 Any St. - Anytown - AL - 22000 - - - 0023 - David - Corsetti - 24 Any St. - Anytown - AL - 22000 - - - 0024 - Egon - Corsetti - 25 Any St. - Anytown - AL - 22000 - - - 0025 - Farbood - Corsetti - 26 Any St. - Anytown - AL - 22000 - - - 0026 - George - Corsetti - 27 Any St. - Anytown - AL - 22000 - - - 0027 - Hank - Corsetti - 28 Any St. - Anytown - AL - 22000 - - - 0028 - Inki - Corsetti - 29 Any St. - Anytown - AL - 22000 - - - 0029 - James - Corsetti - 30 Any St. - Anytown - AL - 22000 - - - 0030 - Al - Dershowitz - 31 Any St. - Anytown - AL - 22000 - - - 0031 - Bob - Dershowitz - 32 Any St. - Anytown - AL - 22000 - - - 0032 - Charles - Dershowitz - 33 Any St. - Anytown - AL - 22000 - - - 0033 - David - Dershowitz - 34 Any St. - Anytown - AL - 22000 - - - 0034 - Egon - Dershowitz - 35 Any St. - Anytown - AL - 22000 - - - 0035 - Farbood - Dershowitz - 36 Any St. - Anytown - AL - 22000 - - - 0036 - George - Dershowitz - 37 Any St. - Anytown - AL - 22000 - - - 0037 - Hank - Dershowitz - 38 Any St. - Anytown - AL - 22000 - - - 0038 - Inki - Dershowitz - 39 Any St. - Anytown - AL - 22000 - - - 0039 - James - Dershowitz - 40 Any St. - Anytown - AL - 22000 - - - 0040 - Al - Engleman - 41 Any St. - Anytown - AL - 22000 - - - 0041 - Bob - Engleman - 42 Any St. - Anytown - AL - 22000 - - - 0042 - Charles - Engleman - 43 Any St. - Anytown - AL - 22000 - - - 0043 - David - Engleman - 44 Any St. - Anytown - AL - 22000 - - - 0044 - Egon - Engleman - 45 Any St. - Anytown - AL - 22000 - - - 0045 - Farbood - Engleman - 46 Any St. - Anytown - AL - 22000 - - - 0046 - George - Engleman - 47 Any St. - Anytown - AL - 22000 - - - 0047 - Hank - Engleman - 48 Any St. - Anytown - AL - 22000 - - - 0048 - Inki - Engleman - 49 Any St. - Anytown - AL - 22000 - - - 0049 - James - Engleman - 50 Any St. - Anytown - AL - 22000 - - - 0050 - Al - Franklin - 51 Any St. - Anytown - AL - 22000 - - - 0051 - Bob - Franklin - 52 Any St. - Anytown - AL - 22000 - - - 0052 - Charles - Franklin - 53 Any St. - Anytown - AL - 22000 - - - 0053 - David - Franklin - 54 Any St. - Anytown - AL - 22000 - - - 0054 - Egon - Franklin - 55 Any St. - Anytown - AL - 22000 - - - 0055 - Farbood - Franklin - 56 Any St. - Anytown - AL - 22000 - - - 0056 - George - Franklin - 57 Any St. - Anytown - AL - 22000 - - - 0057 - Hank - Franklin - 58 Any St. - Anytown - AL - 22000 - - - 0058 - Inki - Franklin - 59 Any St. - Anytown - AL - 22000 - - - 0059 - James - Franklin - 60 Any St. - Anytown - AL - 22000 - - - 0060 - Al - Grice - 61 Any St. - Anytown - AL - 22000 - - - 0061 - Bob - Grice - 62 Any St. - Anytown - AL - 22000 - - - 0062 - Charles - Grice - 63 Any St. - Anytown - AL - 22000 - - - 0063 - David - Grice - 64 Any St. - Anytown - AL - 22000 - - - 0064 - Egon - Grice - 65 Any St. - Anytown - AL - 22000 - - - 0065 - Farbood - Grice - 66 Any St. - Anytown - AL - 22000 - - - 0066 - George - Grice - 67 Any St. - Anytown - AL - 22000 - - - 0067 - Hank - Grice - 68 Any St. - Anytown - AL - 22000 - - - 0068 - Inki - Grice - 69 Any St. - Anytown - AL - 22000 - - - 0069 - James - Grice - 70 Any St. - Anytown - AL - 22000 - - - 0070 - Al - Haverford - 71 Any St. - Anytown - AL - 22000 - - - 0071 - Bob - Haverford - 72 Any St. - Anytown - AL - 22000 - - - 0072 - Charles - Haverford - 73 Any St. - Anytown - AL - 22000 - - - 0073 - David - Haverford - 74 Any St. - Anytown - AL - 22000 - - - 0074 - Egon - Haverford - 75 Any St. - Anytown - AL - 22000 - - - 0075 - Farbood - Haverford - 76 Any St. - Anytown - AL - 22000 - - - 0076 - George - Haverford - 77 Any St. - Anytown - AL - 22000 - - - 0077 - Hank - Haverford - 78 Any St. - Anytown - AL - 22000 - - - 0078 - Inki - Haverford - 79 Any St. - Anytown - AL - 22000 - - - 0079 - James - Haverford - 80 Any St. - Anytown - AL - 22000 - - - 0080 - Al - Ilvedson - 81 Any St. - Anytown - AL - 22000 - - - 0081 - Bob - Ilvedson - 82 Any St. - Anytown - AL - 22000 - - - 0082 - Charles - Ilvedson - 83 Any St. - Anytown - AL - 22000 - - - 0083 - David - Ilvedson - 84 Any St. - Anytown - AL - 22000 - - - 0084 - Egon - Ilvedson - 85 Any St. - Anytown - AL - 22000 - - - 0085 - Farbood - Ilvedson - 86 Any St. - Anytown - AL - 22000 - - - 0086 - George - Ilvedson - 87 Any St. - Anytown - AL - 22000 - - - 0087 - Hank - Ilvedson - 88 Any St. - Anytown - AL - 22000 - - - 0088 - Inki - Ilvedson - 89 Any St. - Anytown - AL - 22000 - - - 0089 - James - Ilvedson - 90 Any St. - Anytown - AL - 22000 - - - 0090 - Al - Jones - 91 Any St. - Anytown - AL - 22000 - - - 0091 - Bob - Jones - 92 Any St. - Anytown - AL - 22000 - - - 0092 - Charles - Jones - 93 Any St. - Anytown - AL - 22000 - - - 0093 - David - Jones - 94 Any St. - Anytown - AL - 22000 - - - 0094 - Egon - Jones - 95 Any St. - Anytown - AL - 22000 - - - 0095 - Farbood - Jones - 96 Any St. - Anytown - AL - 22000 - - - 0096 - George - Jones - 97 Any St. - Anytown - AL - 22000 - - - 0097 - Hank - Jones - 98 Any St. - Anytown - AL - 22000 - - - 0098 - Inki - Jones - 99 Any St. - Anytown - AL - 22000 - - - 0099 - James - Jones - 100 Any St. - Anytown - AL - 22000 - - - 0100 - Al - Aranow - 1 Any St. - Anytown - AK - 22000 - - - 0101 - Bob - Aranow - 2 Any St. - Anytown - AK - 22000 - - - 0102 - Charles - Aranow - 3 Any St. - Anytown - AK - 22000 - - - 0103 - David - Aranow - 4 Any St. - Anytown - AK - 22000 - - - 0104 - Egon - Aranow - 5 Any St. - Anytown - AK - 22000 - - - 0105 - Farbood - Aranow - 6 Any St. - Anytown - AK - 22000 - - - 0106 - George - Aranow - 7 Any St. - Anytown - AK - 22000 - - - 0107 - Hank - Aranow - 8 Any St. - Anytown - AK - 22000 - - - 0108 - Inki - Aranow - 9 Any St. - Anytown - AK - 22000 - - - 0109 - James - Aranow - 10 Any St. - Anytown - AK - 22000 - - - 0110 - Al - Barker - 11 Any St. - Anytown - AK - 22000 - - - 0111 - Bob - Barker - 12 Any St. - Anytown - AK - 22000 - - - 0112 - Charles - Barker - 13 Any St. - Anytown - AK - 22000 - - - 0113 - David - Barker - 14 Any St. - Anytown - AK - 22000 - - - 0114 - Egon - Barker - 15 Any St. - Anytown - AK - 22000 - - - 0115 - Farbood - Barker - 16 Any St. - Anytown - AK - 22000 - - - 0116 - George - Barker - 17 Any St. - Anytown - AK - 22000 - - - 0117 - Hank - Barker - 18 Any St. - Anytown - AK - 22000 - - - 0118 - Inki - Barker - 19 Any St. - Anytown - AK - 22000 - - - 0119 - James - Barker - 20 Any St. - Anytown - AK - 22000 - - - 0120 - Al - Corsetti - 21 Any St. - Anytown - AK - 22000 - - - 0121 - Bob - Corsetti - 22 Any St. - Anytown - AK - 22000 - - - 0122 - Charles - Corsetti - 23 Any St. - Anytown - AK - 22000 - - - 0123 - David - Corsetti - 24 Any St. - Anytown - AK - 22000 - - - 0124 - Egon - Corsetti - 25 Any St. - Anytown - AK - 22000 - - - 0125 - Farbood - Corsetti - 26 Any St. - Anytown - AK - 22000 - - - 0126 - George - Corsetti - 27 Any St. - Anytown - AK - 22000 - - - 0127 - Hank - Corsetti - 28 Any St. - Anytown - AK - 22000 - - - 0128 - Inki - Corsetti - 29 Any St. - Anytown - AK - 22000 - - - 0129 - James - Corsetti - 30 Any St. - Anytown - AK - 22000 - - - 0130 - Al - Dershowitz - 31 Any St. - Anytown - AK - 22000 - - - 0131 - Bob - Dershowitz - 32 Any St. - Anytown - AK - 22000 - - - 0132 - Charles - Dershowitz - 33 Any St. - Anytown - AK - 22000 - - - 0133 - David - Dershowitz - 34 Any St. - Anytown - AK - 22000 - - - 0134 - Egon - Dershowitz - 35 Any St. - Anytown - AK - 22000 - - - 0135 - Farbood - Dershowitz - 36 Any St. - Anytown - AK - 22000 - - - 0136 - George - Dershowitz - 37 Any St. - Anytown - AK - 22000 - - - 0137 - Hank - Dershowitz - 38 Any St. - Anytown - AK - 22000 - - - 0138 - Inki - Dershowitz - 39 Any St. - Anytown - AK - 22000 - - - 0139 - James - Dershowitz - 40 Any St. - Anytown - AK - 22000 - - - 0140 - Al - Engleman - 41 Any St. - Anytown - AK - 22000 - - - 0141 - Bob - Engleman - 42 Any St. - Anytown - AK - 22000 - - - 0142 - Charles - Engleman - 43 Any St. - Anytown - AK - 22000 - - - 0143 - David - Engleman - 44 Any St. - Anytown - AK - 22000 - - - 0144 - Egon - Engleman - 45 Any St. - Anytown - AK - 22000 - - - 0145 - Farbood - Engleman - 46 Any St. - Anytown - AK - 22000 - - - 0146 - George - Engleman - 47 Any St. - Anytown - AK - 22000 - - - 0147 - Hank - Engleman - 48 Any St. - Anytown - AK - 22000 - - - 0148 - Inki - Engleman - 49 Any St. - Anytown - AK - 22000 - - - 0149 - James - Engleman - 50 Any St. - Anytown - AK - 22000 - - - 0150 - Al - Franklin - 51 Any St. - Anytown - AK - 22000 - - - 0151 - Bob - Franklin - 52 Any St. - Anytown - AK - 22000 - - - 0152 - Charles - Franklin - 53 Any St. - Anytown - AK - 22000 - - - 0153 - David - Franklin - 54 Any St. - Anytown - AK - 22000 - - - 0154 - Egon - Franklin - 55 Any St. - Anytown - AK - 22000 - - - 0155 - Farbood - Franklin - 56 Any St. - Anytown - AK - 22000 - - - 0156 - George - Franklin - 57 Any St. - Anytown - AK - 22000 - - - 0157 - Hank - Franklin - 58 Any St. - Anytown - AK - 22000 - - - 0158 - Inki - Franklin - 59 Any St. - Anytown - AK - 22000 - - - 0159 - James - Franklin - 60 Any St. - Anytown - AK - 22000 - - - 0160 - Al - Grice - 61 Any St. - Anytown - AK - 22000 - - - 0161 - Bob - Grice - 62 Any St. - Anytown - AK - 22000 - - - 0162 - Charles - Grice - 63 Any St. - Anytown - AK - 22000 - - - 0163 - David - Grice - 64 Any St. - Anytown - AK - 22000 - - - 0164 - Egon - Grice - 65 Any St. - Anytown - AK - 22000 - - - 0165 - Farbood - Grice - 66 Any St. - Anytown - AK - 22000 - - - 0166 - George - Grice - 67 Any St. - Anytown - AK - 22000 - - - 0167 - Hank - Grice - 68 Any St. - Anytown - AK - 22000 - - - 0168 - Inki - Grice - 69 Any St. - Anytown - AK - 22000 - - - 0169 - James - Grice - 70 Any St. - Anytown - AK - 22000 - - - 0170 - Al - Haverford - 71 Any St. - Anytown - AK - 22000 - - - 0171 - Bob - Haverford - 72 Any St. - Anytown - AK - 22000 - - - 0172 - Charles - Haverford - 73 Any St. - Anytown - AK - 22000 - - - 0173 - David - Haverford - 74 Any St. - Anytown - AK - 22000 - - - 0174 - Egon - Haverford - 75 Any St. - Anytown - AK - 22000 - - - 0175 - Farbood - Haverford - 76 Any St. - Anytown - AK - 22000 - - - 0176 - George - Haverford - 77 Any St. - Anytown - AK - 22000 - - - 0177 - Hank - Haverford - 78 Any St. - Anytown - AK - 22000 - - - 0178 - Inki - Haverford - 79 Any St. - Anytown - AK - 22000 - - - 0179 - James - Haverford - 80 Any St. - Anytown - AK - 22000 - - - 0180 - Al - Ilvedson - 81 Any St. - Anytown - AK - 22000 - - - 0181 - Bob - Ilvedson - 82 Any St. - Anytown - AK - 22000 - - - 0182 - Charles - Ilvedson - 83 Any St. - Anytown - AK - 22000 - - - 0183 - David - Ilvedson - 84 Any St. - Anytown - AK - 22000 - - - 0184 - Egon - Ilvedson - 85 Any St. - Anytown - AK - 22000 - - - 0185 - Farbood - Ilvedson - 86 Any St. - Anytown - AK - 22000 - - - 0186 - George - Ilvedson - 87 Any St. - Anytown - AK - 22000 - - - 0187 - Hank - Ilvedson - 88 Any St. - Anytown - AK - 22000 - - - 0188 - Inki - Ilvedson - 89 Any St. - Anytown - AK - 22000 - - - 0189 - James - Ilvedson - 90 Any St. - Anytown - AK - 22000 - - - 0190 - Al - Jones - 91 Any St. - Anytown - AK - 22000 - - - 0191 - Bob - Jones - 92 Any St. - Anytown - AK - 22000 - - - 0192 - Charles - Jones - 93 Any St. - Anytown - AK - 22000 - - - 0193 - David - Jones - 94 Any St. - Anytown - AK - 22000 - - - 0194 - Egon - Jones - 95 Any St. - Anytown - AK - 22000 - - - 0195 - Farbood - Jones - 96 Any St. - Anytown - AK - 22000 - - - 0196 - George - Jones - 97 Any St. - Anytown - AK - 22000 - - - 0197 - Hank - Jones - 98 Any St. - Anytown - AK - 22000 - - - 0198 - Inki - Jones - 99 Any St. - Anytown - AK - 22000 - - - 0199 - James - Jones - 100 Any St. - Anytown - AK - 22000 - - - 0200 - Al - Aranow - 1 Any St. - Anytown - AZ - 22000 - - - 0201 - Bob - Aranow - 2 Any St. - Anytown - AZ - 22000 - - - 0202 - Charles - Aranow - 3 Any St. - Anytown - AZ - 22000 - - - 0203 - David - Aranow - 4 Any St. - Anytown - AZ - 22000 - - - 0204 - Egon - Aranow - 5 Any St. - Anytown - AZ - 22000 - - - 0205 - Farbood - Aranow - 6 Any St. - Anytown - AZ - 22000 - - - 0206 - George - Aranow - 7 Any St. - Anytown - AZ - 22000 - - - 0207 - Hank - Aranow - 8 Any St. - Anytown - AZ - 22000 - - - 0208 - Inki - Aranow - 9 Any St. - Anytown - AZ - 22000 - - - 0209 - James - Aranow - 10 Any St. - Anytown - AZ - 22000 - - - 0210 - Al - Barker - 11 Any St. - Anytown - AZ - 22000 - - - 0211 - Bob - Barker - 12 Any St. - Anytown - AZ - 22000 - - - 0212 - Charles - Barker - 13 Any St. - Anytown - AZ - 22000 - - - 0213 - David - Barker - 14 Any St. - Anytown - AZ - 22000 - - - 0214 - Egon - Barker - 15 Any St. - Anytown - AZ - 22000 - - - 0215 - Farbood - Barker - 16 Any St. - Anytown - AZ - 22000 - - - 0216 - George - Barker - 17 Any St. - Anytown - AZ - 22000 - - - 0217 - Hank - Barker - 18 Any St. - Anytown - AZ - 22000 - - - 0218 - Inki - Barker - 19 Any St. - Anytown - AZ - 22000 - - - 0219 - James - Barker - 20 Any St. - Anytown - AZ - 22000 - - - 0220 - Al - Corsetti - 21 Any St. - Anytown - AZ - 22000 - - - 0221 - Bob - Corsetti - 22 Any St. - Anytown - AZ - 22000 - - - 0222 - Charles - Corsetti - 23 Any St. - Anytown - AZ - 22000 - - - 0223 - David - Corsetti - 24 Any St. - Anytown - AZ - 22000 - - - 0224 - Egon - Corsetti - 25 Any St. - Anytown - AZ - 22000 - - - 0225 - Farbood - Corsetti - 26 Any St. - Anytown - AZ - 22000 - - - 0226 - George - Corsetti - 27 Any St. - Anytown - AZ - 22000 - - - 0227 - Hank - Corsetti - 28 Any St. - Anytown - AZ - 22000 - - - 0228 - Inki - Corsetti - 29 Any St. - Anytown - AZ - 22000 - - - 0229 - James - Corsetti - 30 Any St. - Anytown - AZ - 22000 - - - 0230 - Al - Dershowitz - 31 Any St. - Anytown - AZ - 22000 - - - 0231 - Bob - Dershowitz - 32 Any St. - Anytown - AZ - 22000 - - - 0232 - Charles - Dershowitz - 33 Any St. - Anytown - AZ - 22000 - - - 0233 - David - Dershowitz - 34 Any St. - Anytown - AZ - 22000 - - - 0234 - Egon - Dershowitz - 35 Any St. - Anytown - AZ - 22000 - - - 0235 - Farbood - Dershowitz - 36 Any St. - Anytown - AZ - 22000 - - - 0236 - George - Dershowitz - 37 Any St. - Anytown - AZ - 22000 - - - 0237 - Hank - Dershowitz - 38 Any St. - Anytown - AZ - 22000 - - - 0238 - Inki - Dershowitz - 39 Any St. - Anytown - AZ - 22000 - - - 0239 - James - Dershowitz - 40 Any St. - Anytown - AZ - 22000 - - - 0240 - Al - Engleman - 41 Any St. - Anytown - AZ - 22000 - - - 0241 - Bob - Engleman - 42 Any St. - Anytown - AZ - 22000 - - - 0242 - Charles - Engleman - 43 Any St. - Anytown - AZ - 22000 - - - 0243 - David - Engleman - 44 Any St. - Anytown - AZ - 22000 - - - 0244 - Egon - Engleman - 45 Any St. - Anytown - AZ - 22000 - - - 0245 - Farbood - Engleman - 46 Any St. - Anytown - AZ - 22000 - - - 0246 - George - Engleman - 47 Any St. - Anytown - AZ - 22000 - - - 0247 - Hank - Engleman - 48 Any St. - Anytown - AZ - 22000 - - - 0248 - Inki - Engleman - 49 Any St. - Anytown - AZ - 22000 - - - 0249 - James - Engleman - 50 Any St. - Anytown - AZ - 22000 - - - 0250 - Al - Franklin - 51 Any St. - Anytown - AZ - 22000 - - - 0251 - Bob - Franklin - 52 Any St. - Anytown - AZ - 22000 - - - 0252 - Charles - Franklin - 53 Any St. - Anytown - AZ - 22000 - - - 0253 - David - Franklin - 54 Any St. - Anytown - AZ - 22000 - - - 0254 - Egon - Franklin - 55 Any St. - Anytown - AZ - 22000 - - - 0255 - Farbood - Franklin - 56 Any St. - Anytown - AZ - 22000 - - - 0256 - George - Franklin - 57 Any St. - Anytown - AZ - 22000 - - - 0257 - Hank - Franklin - 58 Any St. - Anytown - AZ - 22000 - - - 0258 - Inki - Franklin - 59 Any St. - Anytown - AZ - 22000 - - - 0259 - James - Franklin - 60 Any St. - Anytown - AZ - 22000 - - - 0260 - Al - Grice - 61 Any St. - Anytown - AZ - 22000 - - - 0261 - Bob - Grice - 62 Any St. - Anytown - AZ - 22000 - - - 0262 - Charles - Grice - 63 Any St. - Anytown - AZ - 22000 - - - 0263 - David - Grice - 64 Any St. - Anytown - AZ - 22000 - - - 0264 - Egon - Grice - 65 Any St. - Anytown - AZ - 22000 - - - 0265 - Farbood - Grice - 66 Any St. - Anytown - AZ - 22000 - - - 0266 - George - Grice - 67 Any St. - Anytown - AZ - 22000 - - - 0267 - Hank - Grice - 68 Any St. - Anytown - AZ - 22000 - - - 0268 - Inki - Grice - 69 Any St. - Anytown - AZ - 22000 - - - 0269 - James - Grice - 70 Any St. - Anytown - AZ - 22000 - - - 0270 - Al - Haverford - 71 Any St. - Anytown - AZ - 22000 - - - 0271 - Bob - Haverford - 72 Any St. - Anytown - AZ - 22000 - - - 0272 - Charles - Haverford - 73 Any St. - Anytown - AZ - 22000 - - - 0273 - David - Haverford - 74 Any St. - Anytown - AZ - 22000 - - - 0274 - Egon - Haverford - 75 Any St. - Anytown - AZ - 22000 - - - 0275 - Farbood - Haverford - 76 Any St. - Anytown - AZ - 22000 - - - 0276 - George - Haverford - 77 Any St. - Anytown - AZ - 22000 - - - 0277 - Hank - Haverford - 78 Any St. - Anytown - AZ - 22000 - - - 0278 - Inki - Haverford - 79 Any St. - Anytown - AZ - 22000 - - - 0279 - James - Haverford - 80 Any St. - Anytown - AZ - 22000 - - - 0280 - Al - Ilvedson - 81 Any St. - Anytown - AZ - 22000 - - - 0281 - Bob - Ilvedson - 82 Any St. - Anytown - AZ - 22000 - - - 0282 - Charles - Ilvedson - 83 Any St. - Anytown - AZ - 22000 - - - 0283 - David - Ilvedson - 84 Any St. - Anytown - AZ - 22000 - - - 0284 - Egon - Ilvedson - 85 Any St. - Anytown - AZ - 22000 - - - 0285 - Farbood - Ilvedson - 86 Any St. - Anytown - AZ - 22000 - - - 0286 - George - Ilvedson - 87 Any St. - Anytown - AZ - 22000 - - - 0287 - Hank - Ilvedson - 88 Any St. - Anytown - AZ - 22000 - - - 0288 - Inki - Ilvedson - 89 Any St. - Anytown - AZ - 22000 - - - 0289 - James - Ilvedson - 90 Any St. - Anytown - AZ - 22000 - - - 0290 - Al - Jones - 91 Any St. - Anytown - AZ - 22000 - - - 0291 - Bob - Jones - 92 Any St. - Anytown - AZ - 22000 - - - 0292 - Charles - Jones - 93 Any St. - Anytown - AZ - 22000 - - - 0293 - David - Jones - 94 Any St. - Anytown - AZ - 22000 - - - 0294 - Egon - Jones - 95 Any St. - Anytown - AZ - 22000 - - - 0295 - Farbood - Jones - 96 Any St. - Anytown - AZ - 22000 - - - 0296 - George - Jones - 97 Any St. - Anytown - AZ - 22000 - - - 0297 - Hank - Jones - 98 Any St. - Anytown - AZ - 22000 - - - 0298 - Inki - Jones - 99 Any St. - Anytown - AZ - 22000 - - - 0299 - James - Jones - 100 Any St. - Anytown - AZ - 22000 - - - 0300 - Al - Aranow - 1 Any St. - Anytown - AR - 22000 - - - 0301 - Bob - Aranow - 2 Any St. - Anytown - AR - 22000 - - - 0302 - Charles - Aranow - 3 Any St. - Anytown - AR - 22000 - - - 0303 - David - Aranow - 4 Any St. - Anytown - AR - 22000 - - - 0304 - Egon - Aranow - 5 Any St. - Anytown - AR - 22000 - - - 0305 - Farbood - Aranow - 6 Any St. - Anytown - AR - 22000 - - - 0306 - George - Aranow - 7 Any St. - Anytown - AR - 22000 - - - 0307 - Hank - Aranow - 8 Any St. - Anytown - AR - 22000 - - - 0308 - Inki - Aranow - 9 Any St. - Anytown - AR - 22000 - - - 0309 - James - Aranow - 10 Any St. - Anytown - AR - 22000 - - - 0310 - Al - Barker - 11 Any St. - Anytown - AR - 22000 - - - 0311 - Bob - Barker - 12 Any St. - Anytown - AR - 22000 - - - 0312 - Charles - Barker - 13 Any St. - Anytown - AR - 22000 - - - 0313 - David - Barker - 14 Any St. - Anytown - AR - 22000 - - - 0314 - Egon - Barker - 15 Any St. - Anytown - AR - 22000 - - - 0315 - Farbood - Barker - 16 Any St. - Anytown - AR - 22000 - - - 0316 - George - Barker - 17 Any St. - Anytown - AR - 22000 - - - 0317 - Hank - Barker - 18 Any St. - Anytown - AR - 22000 - - - 0318 - Inki - Barker - 19 Any St. - Anytown - AR - 22000 - - - 0319 - James - Barker - 20 Any St. - Anytown - AR - 22000 - - - 0320 - Al - Corsetti - 21 Any St. - Anytown - AR - 22000 - - - 0321 - Bob - Corsetti - 22 Any St. - Anytown - AR - 22000 - - - 0322 - Charles - Corsetti - 23 Any St. - Anytown - AR - 22000 - - - 0323 - David - Corsetti - 24 Any St. - Anytown - AR - 22000 - - - 0324 - Egon - Corsetti - 25 Any St. - Anytown - AR - 22000 - - - 0325 - Farbood - Corsetti - 26 Any St. - Anytown - AR - 22000 - - - 0326 - George - Corsetti - 27 Any St. - Anytown - AR - 22000 - - - 0327 - Hank - Corsetti - 28 Any St. - Anytown - AR - 22000 - - - 0328 - Inki - Corsetti - 29 Any St. - Anytown - AR - 22000 - - - 0329 - James - Corsetti - 30 Any St. - Anytown - AR - 22000 - - - 0330 - Al - Dershowitz - 31 Any St. - Anytown - AR - 22000 - - - 0331 - Bob - Dershowitz - 32 Any St. - Anytown - AR - 22000 - - - 0332 - Charles - Dershowitz - 33 Any St. - Anytown - AR - 22000 - - - 0333 - David - Dershowitz - 34 Any St. - Anytown - AR - 22000 - - - 0334 - Egon - Dershowitz - 35 Any St. - Anytown - AR - 22000 - - - 0335 - Farbood - Dershowitz - 36 Any St. - Anytown - AR - 22000 - - - 0336 - George - Dershowitz - 37 Any St. - Anytown - AR - 22000 - - - 0337 - Hank - Dershowitz - 38 Any St. - Anytown - AR - 22000 - - - 0338 - Inki - Dershowitz - 39 Any St. - Anytown - AR - 22000 - - - 0339 - James - Dershowitz - 40 Any St. - Anytown - AR - 22000 - - - 0340 - Al - Engleman - 41 Any St. - Anytown - AR - 22000 - - - 0341 - Bob - Engleman - 42 Any St. - Anytown - AR - 22000 - - - 0342 - Charles - Engleman - 43 Any St. - Anytown - AR - 22000 - - - 0343 - David - Engleman - 44 Any St. - Anytown - AR - 22000 - - - 0344 - Egon - Engleman - 45 Any St. - Anytown - AR - 22000 - - - 0345 - Farbood - Engleman - 46 Any St. - Anytown - AR - 22000 - - - 0346 - George - Engleman - 47 Any St. - Anytown - AR - 22000 - - - 0347 - Hank - Engleman - 48 Any St. - Anytown - AR - 22000 - - - 0348 - Inki - Engleman - 49 Any St. - Anytown - AR - 22000 - - - 0349 - James - Engleman - 50 Any St. - Anytown - AR - 22000 - - - 0350 - Al - Franklin - 51 Any St. - Anytown - AR - 22000 - - - 0351 - Bob - Franklin - 52 Any St. - Anytown - AR - 22000 - - - 0352 - Charles - Franklin - 53 Any St. - Anytown - AR - 22000 - - - 0353 - David - Franklin - 54 Any St. - Anytown - AR - 22000 - - - 0354 - Egon - Franklin - 55 Any St. - Anytown - AR - 22000 - - - 0355 - Farbood - Franklin - 56 Any St. - Anytown - AR - 22000 - - - 0356 - George - Franklin - 57 Any St. - Anytown - AR - 22000 - - - 0357 - Hank - Franklin - 58 Any St. - Anytown - AR - 22000 - - - 0358 - Inki - Franklin - 59 Any St. - Anytown - AR - 22000 - - - 0359 - James - Franklin - 60 Any St. - Anytown - AR - 22000 - - - 0360 - Al - Grice - 61 Any St. - Anytown - AR - 22000 - - - 0361 - Bob - Grice - 62 Any St. - Anytown - AR - 22000 - - - 0362 - Charles - Grice - 63 Any St. - Anytown - AR - 22000 - - - 0363 - David - Grice - 64 Any St. - Anytown - AR - 22000 - - - 0364 - Egon - Grice - 65 Any St. - Anytown - AR - 22000 - - - 0365 - Farbood - Grice - 66 Any St. - Anytown - AR - 22000 - - - 0366 - George - Grice - 67 Any St. - Anytown - AR - 22000 - - - 0367 - Hank - Grice - 68 Any St. - Anytown - AR - 22000 - - - 0368 - Inki - Grice - 69 Any St. - Anytown - AR - 22000 - - - 0369 - James - Grice - 70 Any St. - Anytown - AR - 22000 - - - 0370 - Al - Haverford - 71 Any St. - Anytown - AR - 22000 - - - 0371 - Bob - Haverford - 72 Any St. - Anytown - AR - 22000 - - - 0372 - Charles - Haverford - 73 Any St. - Anytown - AR - 22000 - - - 0373 - David - Haverford - 74 Any St. - Anytown - AR - 22000 - - - 0374 - Egon - Haverford - 75 Any St. - Anytown - AR - 22000 - - - 0375 - Farbood - Haverford - 76 Any St. - Anytown - AR - 22000 - - - 0376 - George - Haverford - 77 Any St. - Anytown - AR - 22000 - - - 0377 - Hank - Haverford - 78 Any St. - Anytown - AR - 22000 - - - 0378 - Inki - Haverford - 79 Any St. - Anytown - AR - 22000 - - - 0379 - James - Haverford - 80 Any St. - Anytown - AR - 22000 - - - 0380 - Al - Ilvedson - 81 Any St. - Anytown - AR - 22000 - - - 0381 - Bob - Ilvedson - 82 Any St. - Anytown - AR - 22000 - - - 0382 - Charles - Ilvedson - 83 Any St. - Anytown - AR - 22000 - - - 0383 - David - Ilvedson - 84 Any St. - Anytown - AR - 22000 - - - 0384 - Egon - Ilvedson - 85 Any St. - Anytown - AR - 22000 - - - 0385 - Farbood - Ilvedson - 86 Any St. - Anytown - AR - 22000 - - - 0386 - George - Ilvedson - 87 Any St. - Anytown - AR - 22000 - - - 0387 - Hank - Ilvedson - 88 Any St. - Anytown - AR - 22000 - - - 0388 - Inki - Ilvedson - 89 Any St. - Anytown - AR - 22000 - - - 0389 - James - Ilvedson - 90 Any St. - Anytown - AR - 22000 - - - 0390 - Al - Jones - 91 Any St. - Anytown - AR - 22000 - - - 0391 - Bob - Jones - 92 Any St. - Anytown - AR - 22000 - - - 0392 - Charles - Jones - 93 Any St. - Anytown - AR - 22000 - - - 0393 - David - Jones - 94 Any St. - Anytown - AR - 22000 - - - 0394 - Egon - Jones - 95 Any St. - Anytown - AR - 22000 - - - 0395 - Farbood - Jones - 96 Any St. - Anytown - AR - 22000 - - - 0396 - George - Jones - 97 Any St. - Anytown - AR - 22000 - - - 0397 - Hank - Jones - 98 Any St. - Anytown - AR - 22000 - - - 0398 - Inki - Jones - 99 Any St. - Anytown - AR - 22000 - - - 0399 - James - Jones - 100 Any St. - Anytown - AR - 22000 - - - 0400 - Al - Aranow - 1 Any St. - Anytown - CA - 22000 - - - 0401 - Bob - Aranow - 2 Any St. - Anytown - CA - 22000 - - - 0402 - Charles - Aranow - 3 Any St. - Anytown - CA - 22000 - - - 0403 - David - Aranow - 4 Any St. - Anytown - CA - 22000 - - - 0404 - Egon - Aranow - 5 Any St. - Anytown - CA - 22000 - - - 0405 - Farbood - Aranow - 6 Any St. - Anytown - CA - 22000 - - - 0406 - George - Aranow - 7 Any St. - Anytown - CA - 22000 - - - 0407 - Hank - Aranow - 8 Any St. - Anytown - CA - 22000 - - - 0408 - Inki - Aranow - 9 Any St. - Anytown - CA - 22000 - - - 0409 - James - Aranow - 10 Any St. - Anytown - CA - 22000 - - - 0410 - Al - Barker - 11 Any St. - Anytown - CA - 22000 - - - 0411 - Bob - Barker - 12 Any St. - Anytown - CA - 22000 - - - 0412 - Charles - Barker - 13 Any St. - Anytown - CA - 22000 - - - 0413 - David - Barker - 14 Any St. - Anytown - CA - 22000 - - - 0414 - Egon - Barker - 15 Any St. - Anytown - CA - 22000 - - - 0415 - Farbood - Barker - 16 Any St. - Anytown - CA - 22000 - - - 0416 - George - Barker - 17 Any St. - Anytown - CA - 22000 - - - 0417 - Hank - Barker - 18 Any St. - Anytown - CA - 22000 - - - 0418 - Inki - Barker - 19 Any St. - Anytown - CA - 22000 - - - 0419 - James - Barker - 20 Any St. - Anytown - CA - 22000 - - - 0420 - Al - Corsetti - 21 Any St. - Anytown - CA - 22000 - - - 0421 - Bob - Corsetti - 22 Any St. - Anytown - CA - 22000 - - - 0422 - Charles - Corsetti - 23 Any St. - Anytown - CA - 22000 - - - 0423 - David - Corsetti - 24 Any St. - Anytown - CA - 22000 - - - 0424 - Egon - Corsetti - 25 Any St. - Anytown - CA - 22000 - - - 0425 - Farbood - Corsetti - 26 Any St. - Anytown - CA - 22000 - - - 0426 - George - Corsetti - 27 Any St. - Anytown - CA - 22000 - - - 0427 - Hank - Corsetti - 28 Any St. - Anytown - CA - 22000 - - - 0428 - Inki - Corsetti - 29 Any St. - Anytown - CA - 22000 - - - 0429 - James - Corsetti - 30 Any St. - Anytown - CA - 22000 - - - 0430 - Al - Dershowitz - 31 Any St. - Anytown - CA - 22000 - - - 0431 - Bob - Dershowitz - 32 Any St. - Anytown - CA - 22000 - - - 0432 - Charles - Dershowitz - 33 Any St. - Anytown - CA - 22000 - - - 0433 - David - Dershowitz - 34 Any St. - Anytown - CA - 22000 - - - 0434 - Egon - Dershowitz - 35 Any St. - Anytown - CA - 22000 - - - 0435 - Farbood - Dershowitz - 36 Any St. - Anytown - CA - 22000 - - - 0436 - George - Dershowitz - 37 Any St. - Anytown - CA - 22000 - - - 0437 - Hank - Dershowitz - 38 Any St. - Anytown - CA - 22000 - - - 0438 - Inki - Dershowitz - 39 Any St. - Anytown - CA - 22000 - - - 0439 - James - Dershowitz - 40 Any St. - Anytown - CA - 22000 - - - 0440 - Al - Engleman - 41 Any St. - Anytown - CA - 22000 - - - 0441 - Bob - Engleman - 42 Any St. - Anytown - CA - 22000 - - - 0442 - Charles - Engleman - 43 Any St. - Anytown - CA - 22000 - - - 0443 - David - Engleman - 44 Any St. - Anytown - CA - 22000 - - - 0444 - Egon - Engleman - 45 Any St. - Anytown - CA - 22000 - - - 0445 - Farbood - Engleman - 46 Any St. - Anytown - CA - 22000 - - - 0446 - George - Engleman - 47 Any St. - Anytown - CA - 22000 - - - 0447 - Hank - Engleman - 48 Any St. - Anytown - CA - 22000 - - - 0448 - Inki - Engleman - 49 Any St. - Anytown - CA - 22000 - - - 0449 - James - Engleman - 50 Any St. - Anytown - CA - 22000 - - - 0450 - Al - Franklin - 51 Any St. - Anytown - CA - 22000 - - - 0451 - Bob - Franklin - 52 Any St. - Anytown - CA - 22000 - - - 0452 - Charles - Franklin - 53 Any St. - Anytown - CA - 22000 - - - 0453 - David - Franklin - 54 Any St. - Anytown - CA - 22000 - - - 0454 - Egon - Franklin - 55 Any St. - Anytown - CA - 22000 - - - 0455 - Farbood - Franklin - 56 Any St. - Anytown - CA - 22000 - - - 0456 - George - Franklin - 57 Any St. - Anytown - CA - 22000 - - - 0457 - Hank - Franklin - 58 Any St. - Anytown - CA - 22000 - - - 0458 - Inki - Franklin - 59 Any St. - Anytown - CA - 22000 - - - 0459 - James - Franklin - 60 Any St. - Anytown - CA - 22000 - - - 0460 - Al - Grice - 61 Any St. - Anytown - CA - 22000 - - - 0461 - Bob - Grice - 62 Any St. - Anytown - CA - 22000 - - - 0462 - Charles - Grice - 63 Any St. - Anytown - CA - 22000 - - - 0463 - David - Grice - 64 Any St. - Anytown - CA - 22000 - - - 0464 - Egon - Grice - 65 Any St. - Anytown - CA - 22000 - - - 0465 - Farbood - Grice - 66 Any St. - Anytown - CA - 22000 - - - 0466 - George - Grice - 67 Any St. - Anytown - CA - 22000 - - - 0467 - Hank - Grice - 68 Any St. - Anytown - CA - 22000 - - - 0468 - Inki - Grice - 69 Any St. - Anytown - CA - 22000 - - - 0469 - James - Grice - 70 Any St. - Anytown - CA - 22000 - - - 0470 - Al - Haverford - 71 Any St. - Anytown - CA - 22000 - - - 0471 - Bob - Haverford - 72 Any St. - Anytown - CA - 22000 - - - 0472 - Charles - Haverford - 73 Any St. - Anytown - CA - 22000 - - - 0473 - David - Haverford - 74 Any St. - Anytown - CA - 22000 - - - 0474 - Egon - Haverford - 75 Any St. - Anytown - CA - 22000 - - - 0475 - Farbood - Haverford - 76 Any St. - Anytown - CA - 22000 - - - 0476 - George - Haverford - 77 Any St. - Anytown - CA - 22000 - - - 0477 - Hank - Haverford - 78 Any St. - Anytown - CA - 22000 - - - 0478 - Inki - Haverford - 79 Any St. - Anytown - CA - 22000 - - - 0479 - James - Haverford - 80 Any St. - Anytown - CA - 22000 - - - 0480 - Al - Ilvedson - 81 Any St. - Anytown - CA - 22000 - - - 0481 - Bob - Ilvedson - 82 Any St. - Anytown - CA - 22000 - - - 0482 - Charles - Ilvedson - 83 Any St. - Anytown - CA - 22000 - - - 0483 - David - Ilvedson - 84 Any St. - Anytown - CA - 22000 - - - 0484 - Egon - Ilvedson - 85 Any St. - Anytown - CA - 22000 - - - 0485 - Farbood - Ilvedson - 86 Any St. - Anytown - CA - 22000 - - - 0486 - George - Ilvedson - 87 Any St. - Anytown - CA - 22000 - - - 0487 - Hank - Ilvedson - 88 Any St. - Anytown - CA - 22000 - - - 0488 - Inki - Ilvedson - 89 Any St. - Anytown - CA - 22000 - - - 0489 - James - Ilvedson - 90 Any St. - Anytown - CA - 22000 - - - 0490 - Al - Jones - 91 Any St. - Anytown - CA - 22000 - - - 0491 - Bob - Jones - 92 Any St. - Anytown - CA - 22000 - - - 0492 - Charles - Jones - 93 Any St. - Anytown - CA - 22000 - - - 0493 - David - Jones - 94 Any St. - Anytown - CA - 22000 - - - 0494 - Egon - Jones - 95 Any St. - Anytown - CA - 22000 - - - 0495 - Farbood - Jones - 96 Any St. - Anytown - CA - 22000 - - - 0496 - George - Jones - 97 Any St. - Anytown - CA - 22000 - - - 0497 - Hank - Jones - 98 Any St. - Anytown - CA - 22000 - - - 0498 - Inki - Jones - 99 Any St. - Anytown - CA - 22000 - - - 0499 - James - Jones - 100 Any St. - Anytown - CA - 22000 - - - 0500 - Al - Aranow - 1 Any St. - Anytown - CO - 22000 - - - 0501 - Bob - Aranow - 2 Any St. - Anytown - CO - 22000 - - - 0502 - Charles - Aranow - 3 Any St. - Anytown - CO - 22000 - - - 0503 - David - Aranow - 4 Any St. - Anytown - CO - 22000 - - - 0504 - Egon - Aranow - 5 Any St. - Anytown - CO - 22000 - - - 0505 - Farbood - Aranow - 6 Any St. - Anytown - CO - 22000 - - - 0506 - George - Aranow - 7 Any St. - Anytown - CO - 22000 - - - 0507 - Hank - Aranow - 8 Any St. - Anytown - CO - 22000 - - - 0508 - Inki - Aranow - 9 Any St. - Anytown - CO - 22000 - - - 0509 - James - Aranow - 10 Any St. - Anytown - CO - 22000 - - - 0510 - Al - Barker - 11 Any St. - Anytown - CO - 22000 - - - 0511 - Bob - Barker - 12 Any St. - Anytown - CO - 22000 - - - 0512 - Charles - Barker - 13 Any St. - Anytown - CO - 22000 - - - 0513 - David - Barker - 14 Any St. - Anytown - CO - 22000 - - - 0514 - Egon - Barker - 15 Any St. - Anytown - CO - 22000 - - - 0515 - Farbood - Barker - 16 Any St. - Anytown - CO - 22000 - - - 0516 - George - Barker - 17 Any St. - Anytown - CO - 22000 - - - 0517 - Hank - Barker - 18 Any St. - Anytown - CO - 22000 - - - 0518 - Inki - Barker - 19 Any St. - Anytown - CO - 22000 - - - 0519 - James - Barker - 20 Any St. - Anytown - CO - 22000 - - - 0520 - Al - Corsetti - 21 Any St. - Anytown - CO - 22000 - - - 0521 - Bob - Corsetti - 22 Any St. - Anytown - CO - 22000 - - - 0522 - Charles - Corsetti - 23 Any St. - Anytown - CO - 22000 - - - 0523 - David - Corsetti - 24 Any St. - Anytown - CO - 22000 - - - 0524 - Egon - Corsetti - 25 Any St. - Anytown - CO - 22000 - - - 0525 - Farbood - Corsetti - 26 Any St. - Anytown - CO - 22000 - - - 0526 - George - Corsetti - 27 Any St. - Anytown - CO - 22000 - - - 0527 - Hank - Corsetti - 28 Any St. - Anytown - CO - 22000 - - - 0528 - Inki - Corsetti - 29 Any St. - Anytown - CO - 22000 - - - 0529 - James - Corsetti - 30 Any St. - Anytown - CO - 22000 - - - 0530 - Al - Dershowitz - 31 Any St. - Anytown - CO - 22000 - - - 0531 - Bob - Dershowitz - 32 Any St. - Anytown - CO - 22000 - - - 0532 - Charles - Dershowitz - 33 Any St. - Anytown - CO - 22000 - - - 0533 - David - Dershowitz - 34 Any St. - Anytown - CO - 22000 - - - 0534 - Egon - Dershowitz - 35 Any St. - Anytown - CO - 22000 - - - 0535 - Farbood - Dershowitz - 36 Any St. - Anytown - CO - 22000 - - - 0536 - George - Dershowitz - 37 Any St. - Anytown - CO - 22000 - - - 0537 - Hank - Dershowitz - 38 Any St. - Anytown - CO - 22000 - - - 0538 - Inki - Dershowitz - 39 Any St. - Anytown - CO - 22000 - - - 0539 - James - Dershowitz - 40 Any St. - Anytown - CO - 22000 - - - 0540 - Al - Engleman - 41 Any St. - Anytown - CO - 22000 - - - 0541 - Bob - Engleman - 42 Any St. - Anytown - CO - 22000 - - - 0542 - Charles - Engleman - 43 Any St. - Anytown - CO - 22000 - - - 0543 - David - Engleman - 44 Any St. - Anytown - CO - 22000 - - - 0544 - Egon - Engleman - 45 Any St. - Anytown - CO - 22000 - - - 0545 - Farbood - Engleman - 46 Any St. - Anytown - CO - 22000 - - - 0546 - George - Engleman - 47 Any St. - Anytown - CO - 22000 - - - 0547 - Hank - Engleman - 48 Any St. - Anytown - CO - 22000 - - - 0548 - Inki - Engleman - 49 Any St. - Anytown - CO - 22000 - - - 0549 - James - Engleman - 50 Any St. - Anytown - CO - 22000 - - - 0550 - Al - Franklin - 51 Any St. - Anytown - CO - 22000 - - - 0551 - Bob - Franklin - 52 Any St. - Anytown - CO - 22000 - - - 0552 - Charles - Franklin - 53 Any St. - Anytown - CO - 22000 - - - 0553 - David - Franklin - 54 Any St. - Anytown - CO - 22000 - - - 0554 - Egon - Franklin - 55 Any St. - Anytown - CO - 22000 - - - 0555 - Farbood - Franklin - 56 Any St. - Anytown - CO - 22000 - - - 0556 - George - Franklin - 57 Any St. - Anytown - CO - 22000 - - - 0557 - Hank - Franklin - 58 Any St. - Anytown - CO - 22000 - - - 0558 - Inki - Franklin - 59 Any St. - Anytown - CO - 22000 - - - 0559 - James - Franklin - 60 Any St. - Anytown - CO - 22000 - - - 0560 - Al - Grice - 61 Any St. - Anytown - CO - 22000 - - - 0561 - Bob - Grice - 62 Any St. - Anytown - CO - 22000 - - - 0562 - Charles - Grice - 63 Any St. - Anytown - CO - 22000 - - - 0563 - David - Grice - 64 Any St. - Anytown - CO - 22000 - - - 0564 - Egon - Grice - 65 Any St. - Anytown - CO - 22000 - - - 0565 - Farbood - Grice - 66 Any St. - Anytown - CO - 22000 - - - 0566 - George - Grice - 67 Any St. - Anytown - CO - 22000 - - - 0567 - Hank - Grice - 68 Any St. - Anytown - CO - 22000 - - - 0568 - Inki - Grice - 69 Any St. - Anytown - CO - 22000 - - - 0569 - James - Grice - 70 Any St. - Anytown - CO - 22000 - - - 0570 - Al - Haverford - 71 Any St. - Anytown - CO - 22000 - - - 0571 - Bob - Haverford - 72 Any St. - Anytown - CO - 22000 - - - 0572 - Charles - Haverford - 73 Any St. - Anytown - CO - 22000 - - - 0573 - David - Haverford - 74 Any St. - Anytown - CO - 22000 - - - 0574 - Egon - Haverford - 75 Any St. - Anytown - CO - 22000 - - - 0575 - Farbood - Haverford - 76 Any St. - Anytown - CO - 22000 - - - 0576 - George - Haverford - 77 Any St. - Anytown - CO - 22000 - - - 0577 - Hank - Haverford - 78 Any St. - Anytown - CO - 22000 - - - 0578 - Inki - Haverford - 79 Any St. - Anytown - CO - 22000 - - - 0579 - James - Haverford - 80 Any St. - Anytown - CO - 22000 - - - 0580 - Al - Ilvedson - 81 Any St. - Anytown - CO - 22000 - - - 0581 - Bob - Ilvedson - 82 Any St. - Anytown - CO - 22000 - - - 0582 - Charles - Ilvedson - 83 Any St. - Anytown - CO - 22000 - - - 0583 - David - Ilvedson - 84 Any St. - Anytown - CO - 22000 - - - 0584 - Egon - Ilvedson - 85 Any St. - Anytown - CO - 22000 - - - 0585 - Farbood - Ilvedson - 86 Any St. - Anytown - CO - 22000 - - - 0586 - George - Ilvedson - 87 Any St. - Anytown - CO - 22000 - - - 0587 - Hank - Ilvedson - 88 Any St. - Anytown - CO - 22000 - - - 0588 - Inki - Ilvedson - 89 Any St. - Anytown - CO - 22000 - - - 0589 - James - Ilvedson - 90 Any St. - Anytown - CO - 22000 - - - 0590 - Al - Jones - 91 Any St. - Anytown - CO - 22000 - - - 0591 - Bob - Jones - 92 Any St. - Anytown - CO - 22000 - - - 0592 - Charles - Jones - 93 Any St. - Anytown - CO - 22000 - - - 0593 - David - Jones - 94 Any St. - Anytown - CO - 22000 - - - 0594 - Egon - Jones - 95 Any St. - Anytown - CO - 22000 - - - 0595 - Farbood - Jones - 96 Any St. - Anytown - CO - 22000 - - - 0596 - George - Jones - 97 Any St. - Anytown - CO - 22000 - - - 0597 - Hank - Jones - 98 Any St. - Anytown - CO - 22000 - - - 0598 - Inki - Jones - 99 Any St. - Anytown - CO - 22000 - - - 0599 - James - Jones - 100 Any St. - Anytown - CO - 22000 - - - 0600 - Al - Aranow - 1 Any St. - Anytown - CT - 22000 - - - 0601 - Bob - Aranow - 2 Any St. - Anytown - CT - 22000 - - - 0602 - Charles - Aranow - 3 Any St. - Anytown - CT - 22000 - - - 0603 - David - Aranow - 4 Any St. - Anytown - CT - 22000 - - - 0604 - Egon - Aranow - 5 Any St. - Anytown - CT - 22000 - - - 0605 - Farbood - Aranow - 6 Any St. - Anytown - CT - 22000 - - - 0606 - George - Aranow - 7 Any St. - Anytown - CT - 22000 - - - 0607 - Hank - Aranow - 8 Any St. - Anytown - CT - 22000 - - - 0608 - Inki - Aranow - 9 Any St. - Anytown - CT - 22000 - - - 0609 - James - Aranow - 10 Any St. - Anytown - CT - 22000 - - - 0610 - Al - Barker - 11 Any St. - Anytown - CT - 22000 - - - 0611 - Bob - Barker - 12 Any St. - Anytown - CT - 22000 - - - 0612 - Charles - Barker - 13 Any St. - Anytown - CT - 22000 - - - 0613 - David - Barker - 14 Any St. - Anytown - CT - 22000 - - - 0614 - Egon - Barker - 15 Any St. - Anytown - CT - 22000 - - - 0615 - Farbood - Barker - 16 Any St. - Anytown - CT - 22000 - - - 0616 - George - Barker - 17 Any St. - Anytown - CT - 22000 - - - 0617 - Hank - Barker - 18 Any St. - Anytown - CT - 22000 - - - 0618 - Inki - Barker - 19 Any St. - Anytown - CT - 22000 - - - 0619 - James - Barker - 20 Any St. - Anytown - CT - 22000 - - - 0620 - Al - Corsetti - 21 Any St. - Anytown - CT - 22000 - - - 0621 - Bob - Corsetti - 22 Any St. - Anytown - CT - 22000 - - - 0622 - Charles - Corsetti - 23 Any St. - Anytown - CT - 22000 - - - 0623 - David - Corsetti - 24 Any St. - Anytown - CT - 22000 - - - 0624 - Egon - Corsetti - 25 Any St. - Anytown - CT - 22000 - - - 0625 - Farbood - Corsetti - 26 Any St. - Anytown - CT - 22000 - - - 0626 - George - Corsetti - 27 Any St. - Anytown - CT - 22000 - - - 0627 - Hank - Corsetti - 28 Any St. - Anytown - CT - 22000 - - - 0628 - Inki - Corsetti - 29 Any St. - Anytown - CT - 22000 - - - 0629 - James - Corsetti - 30 Any St. - Anytown - CT - 22000 - - - 0630 - Al - Dershowitz - 31 Any St. - Anytown - CT - 22000 - - - 0631 - Bob - Dershowitz - 32 Any St. - Anytown - CT - 22000 - - - 0632 - Charles - Dershowitz - 33 Any St. - Anytown - CT - 22000 - - - 0633 - David - Dershowitz - 34 Any St. - Anytown - CT - 22000 - - - 0634 - Egon - Dershowitz - 35 Any St. - Anytown - CT - 22000 - - - 0635 - Farbood - Dershowitz - 36 Any St. - Anytown - CT - 22000 - - - 0636 - George - Dershowitz - 37 Any St. - Anytown - CT - 22000 - - - 0637 - Hank - Dershowitz - 38 Any St. - Anytown - CT - 22000 - - - 0638 - Inki - Dershowitz - 39 Any St. - Anytown - CT - 22000 - - - 0639 - James - Dershowitz - 40 Any St. - Anytown - CT - 22000 - - - 0640 - Al - Engleman - 41 Any St. - Anytown - CT - 22000 - - - 0641 - Bob - Engleman - 42 Any St. - Anytown - CT - 22000 - - - 0642 - Charles - Engleman - 43 Any St. - Anytown - CT - 22000 - - - 0643 - David - Engleman - 44 Any St. - Anytown - CT - 22000 - - - 0644 - Egon - Engleman - 45 Any St. - Anytown - CT - 22000 - - - 0645 - Farbood - Engleman - 46 Any St. - Anytown - CT - 22000 - - - 0646 - George - Engleman - 47 Any St. - Anytown - CT - 22000 - - - 0647 - Hank - Engleman - 48 Any St. - Anytown - CT - 22000 - - - 0648 - Inki - Engleman - 49 Any St. - Anytown - CT - 22000 - - - 0649 - James - Engleman - 50 Any St. - Anytown - CT - 22000 - - - 0650 - Al - Franklin - 51 Any St. - Anytown - CT - 22000 - - - 0651 - Bob - Franklin - 52 Any St. - Anytown - CT - 22000 - - - 0652 - Charles - Franklin - 53 Any St. - Anytown - CT - 22000 - - - 0653 - David - Franklin - 54 Any St. - Anytown - CT - 22000 - - - 0654 - Egon - Franklin - 55 Any St. - Anytown - CT - 22000 - - - 0655 - Farbood - Franklin - 56 Any St. - Anytown - CT - 22000 - - - 0656 - George - Franklin - 57 Any St. - Anytown - CT - 22000 - - - 0657 - Hank - Franklin - 58 Any St. - Anytown - CT - 22000 - - - 0658 - Inki - Franklin - 59 Any St. - Anytown - CT - 22000 - - - 0659 - James - Franklin - 60 Any St. - Anytown - CT - 22000 - - - 0660 - Al - Grice - 61 Any St. - Anytown - CT - 22000 - - - 0661 - Bob - Grice - 62 Any St. - Anytown - CT - 22000 - - - 0662 - Charles - Grice - 63 Any St. - Anytown - CT - 22000 - - - 0663 - David - Grice - 64 Any St. - Anytown - CT - 22000 - - - 0664 - Egon - Grice - 65 Any St. - Anytown - CT - 22000 - - - 0665 - Farbood - Grice - 66 Any St. - Anytown - CT - 22000 - - - 0666 - George - Grice - 67 Any St. - Anytown - CT - 22000 - - - 0667 - Hank - Grice - 68 Any St. - Anytown - CT - 22000 - - - 0668 - Inki - Grice - 69 Any St. - Anytown - CT - 22000 - - - 0669 - James - Grice - 70 Any St. - Anytown - CT - 22000 - - - 0670 - Al - Haverford - 71 Any St. - Anytown - CT - 22000 - - - 0671 - Bob - Haverford - 72 Any St. - Anytown - CT - 22000 - - - 0672 - Charles - Haverford - 73 Any St. - Anytown - CT - 22000 - - - 0673 - David - Haverford - 74 Any St. - Anytown - CT - 22000 - - - 0674 - Egon - Haverford - 75 Any St. - Anytown - CT - 22000 - - - 0675 - Farbood - Haverford - 76 Any St. - Anytown - CT - 22000 - - - 0676 - George - Haverford - 77 Any St. - Anytown - CT - 22000 - - - 0677 - Hank - Haverford - 78 Any St. - Anytown - CT - 22000 - - - 0678 - Inki - Haverford - 79 Any St. - Anytown - CT - 22000 - - - 0679 - James - Haverford - 80 Any St. - Anytown - CT - 22000 - - - 0680 - Al - Ilvedson - 81 Any St. - Anytown - CT - 22000 - - - 0681 - Bob - Ilvedson - 82 Any St. - Anytown - CT - 22000 - - - 0682 - Charles - Ilvedson - 83 Any St. - Anytown - CT - 22000 - - - 0683 - David - Ilvedson - 84 Any St. - Anytown - CT - 22000 - - - 0684 - Egon - Ilvedson - 85 Any St. - Anytown - CT - 22000 - - - 0685 - Farbood - Ilvedson - 86 Any St. - Anytown - CT - 22000 - - - 0686 - George - Ilvedson - 87 Any St. - Anytown - CT - 22000 - - - 0687 - Hank - Ilvedson - 88 Any St. - Anytown - CT - 22000 - - - 0688 - Inki - Ilvedson - 89 Any St. - Anytown - CT - 22000 - - - 0689 - James - Ilvedson - 90 Any St. - Anytown - CT - 22000 - - - 0690 - Al - Jones - 91 Any St. - Anytown - CT - 22000 - - - 0691 - Bob - Jones - 92 Any St. - Anytown - CT - 22000 - - - 0692 - Charles - Jones - 93 Any St. - Anytown - CT - 22000 - - - 0693 - David - Jones - 94 Any St. - Anytown - CT - 22000 - - - 0694 - Egon - Jones - 95 Any St. - Anytown - CT - 22000 - - - 0695 - Farbood - Jones - 96 Any St. - Anytown - CT - 22000 - - - 0696 - George - Jones - 97 Any St. - Anytown - CT - 22000 - - - 0697 - Hank - Jones - 98 Any St. - Anytown - CT - 22000 - - - 0698 - Inki - Jones - 99 Any St. - Anytown - CT - 22000 - - - 0699 - James - Jones - 100 Any St. - Anytown - CT - 22000 - - - 0700 - Al - Aranow - 1 Any St. - Anytown - DE - 22000 - - - 0701 - Bob - Aranow - 2 Any St. - Anytown - DE - 22000 - - - 0702 - Charles - Aranow - 3 Any St. - Anytown - DE - 22000 - - - 0703 - David - Aranow - 4 Any St. - Anytown - DE - 22000 - - - 0704 - Egon - Aranow - 5 Any St. - Anytown - DE - 22000 - - - 0705 - Farbood - Aranow - 6 Any St. - Anytown - DE - 22000 - - - 0706 - George - Aranow - 7 Any St. - Anytown - DE - 22000 - - - 0707 - Hank - Aranow - 8 Any St. - Anytown - DE - 22000 - - - 0708 - Inki - Aranow - 9 Any St. - Anytown - DE - 22000 - - - 0709 - James - Aranow - 10 Any St. - Anytown - DE - 22000 - - - 0710 - Al - Barker - 11 Any St. - Anytown - DE - 22000 - - - 0711 - Bob - Barker - 12 Any St. - Anytown - DE - 22000 - - - 0712 - Charles - Barker - 13 Any St. - Anytown - DE - 22000 - - - 0713 - David - Barker - 14 Any St. - Anytown - DE - 22000 - - - 0714 - Egon - Barker - 15 Any St. - Anytown - DE - 22000 - - - 0715 - Farbood - Barker - 16 Any St. - Anytown - DE - 22000 - - - 0716 - George - Barker - 17 Any St. - Anytown - DE - 22000 - - - 0717 - Hank - Barker - 18 Any St. - Anytown - DE - 22000 - - - 0718 - Inki - Barker - 19 Any St. - Anytown - DE - 22000 - - - 0719 - James - Barker - 20 Any St. - Anytown - DE - 22000 - - - 0720 - Al - Corsetti - 21 Any St. - Anytown - DE - 22000 - - - 0721 - Bob - Corsetti - 22 Any St. - Anytown - DE - 22000 - - - 0722 - Charles - Corsetti - 23 Any St. - Anytown - DE - 22000 - - - 0723 - David - Corsetti - 24 Any St. - Anytown - DE - 22000 - - - 0724 - Egon - Corsetti - 25 Any St. - Anytown - DE - 22000 - - - 0725 - Farbood - Corsetti - 26 Any St. - Anytown - DE - 22000 - - - 0726 - George - Corsetti - 27 Any St. - Anytown - DE - 22000 - - - 0727 - Hank - Corsetti - 28 Any St. - Anytown - DE - 22000 - - - 0728 - Inki - Corsetti - 29 Any St. - Anytown - DE - 22000 - - - 0729 - James - Corsetti - 30 Any St. - Anytown - DE - 22000 - - - 0730 - Al - Dershowitz - 31 Any St. - Anytown - DE - 22000 - - - 0731 - Bob - Dershowitz - 32 Any St. - Anytown - DE - 22000 - - - 0732 - Charles - Dershowitz - 33 Any St. - Anytown - DE - 22000 - - - 0733 - David - Dershowitz - 34 Any St. - Anytown - DE - 22000 - - - 0734 - Egon - Dershowitz - 35 Any St. - Anytown - DE - 22000 - - - 0735 - Farbood - Dershowitz - 36 Any St. - Anytown - DE - 22000 - - - 0736 - George - Dershowitz - 37 Any St. - Anytown - DE - 22000 - - - 0737 - Hank - Dershowitz - 38 Any St. - Anytown - DE - 22000 - - - 0738 - Inki - Dershowitz - 39 Any St. - Anytown - DE - 22000 - - - 0739 - James - Dershowitz - 40 Any St. - Anytown - DE - 22000 - - - 0740 - Al - Engleman - 41 Any St. - Anytown - DE - 22000 - - - 0741 - Bob - Engleman - 42 Any St. - Anytown - DE - 22000 - - - 0742 - Charles - Engleman - 43 Any St. - Anytown - DE - 22000 - - - 0743 - David - Engleman - 44 Any St. - Anytown - DE - 22000 - - - 0744 - Egon - Engleman - 45 Any St. - Anytown - DE - 22000 - - - 0745 - Farbood - Engleman - 46 Any St. - Anytown - DE - 22000 - - - 0746 - George - Engleman - 47 Any St. - Anytown - DE - 22000 - - - 0747 - Hank - Engleman - 48 Any St. - Anytown - DE - 22000 - - - 0748 - Inki - Engleman - 49 Any St. - Anytown - DE - 22000 - - - 0749 - James - Engleman - 50 Any St. - Anytown - DE - 22000 - - - 0750 - Al - Franklin - 51 Any St. - Anytown - DE - 22000 - - - 0751 - Bob - Franklin - 52 Any St. - Anytown - DE - 22000 - - - 0752 - Charles - Franklin - 53 Any St. - Anytown - DE - 22000 - - - 0753 - David - Franklin - 54 Any St. - Anytown - DE - 22000 - - - 0754 - Egon - Franklin - 55 Any St. - Anytown - DE - 22000 - - - 0755 - Farbood - Franklin - 56 Any St. - Anytown - DE - 22000 - - - 0756 - George - Franklin - 57 Any St. - Anytown - DE - 22000 - - - 0757 - Hank - Franklin - 58 Any St. - Anytown - DE - 22000 - - - 0758 - Inki - Franklin - 59 Any St. - Anytown - DE - 22000 - - - 0759 - James - Franklin - 60 Any St. - Anytown - DE - 22000 - - - 0760 - Al - Grice - 61 Any St. - Anytown - DE - 22000 - - - 0761 - Bob - Grice - 62 Any St. - Anytown - DE - 22000 - - - 0762 - Charles - Grice - 63 Any St. - Anytown - DE - 22000 - - - 0763 - David - Grice - 64 Any St. - Anytown - DE - 22000 - - - 0764 - Egon - Grice - 65 Any St. - Anytown - DE - 22000 - - - 0765 - Farbood - Grice - 66 Any St. - Anytown - DE - 22000 - - - 0766 - George - Grice - 67 Any St. - Anytown - DE - 22000 - - - 0767 - Hank - Grice - 68 Any St. - Anytown - DE - 22000 - - - 0768 - Inki - Grice - 69 Any St. - Anytown - DE - 22000 - - - 0769 - James - Grice - 70 Any St. - Anytown - DE - 22000 - - - 0770 - Al - Haverford - 71 Any St. - Anytown - DE - 22000 - - - 0771 - Bob - Haverford - 72 Any St. - Anytown - DE - 22000 - - - 0772 - Charles - Haverford - 73 Any St. - Anytown - DE - 22000 - - - 0773 - David - Haverford - 74 Any St. - Anytown - DE - 22000 - - - 0774 - Egon - Haverford - 75 Any St. - Anytown - DE - 22000 - - - 0775 - Farbood - Haverford - 76 Any St. - Anytown - DE - 22000 - - - 0776 - George - Haverford - 77 Any St. - Anytown - DE - 22000 - - - 0777 - Hank - Haverford - 78 Any St. - Anytown - DE - 22000 - - - 0778 - Inki - Haverford - 79 Any St. - Anytown - DE - 22000 - - - 0779 - James - Haverford - 80 Any St. - Anytown - DE - 22000 - - - 0780 - Al - Ilvedson - 81 Any St. - Anytown - DE - 22000 - - - 0781 - Bob - Ilvedson - 82 Any St. - Anytown - DE - 22000 - - - 0782 - Charles - Ilvedson - 83 Any St. - Anytown - DE - 22000 - - - 0783 - David - Ilvedson - 84 Any St. - Anytown - DE - 22000 - - - 0784 - Egon - Ilvedson - 85 Any St. - Anytown - DE - 22000 - - - 0785 - Farbood - Ilvedson - 86 Any St. - Anytown - DE - 22000 - - - 0786 - George - Ilvedson - 87 Any St. - Anytown - DE - 22000 - - - 0787 - Hank - Ilvedson - 88 Any St. - Anytown - DE - 22000 - - - 0788 - Inki - Ilvedson - 89 Any St. - Anytown - DE - 22000 - - - 0789 - James - Ilvedson - 90 Any St. - Anytown - DE - 22000 - - - 0790 - Al - Jones - 91 Any St. - Anytown - DE - 22000 - - - 0791 - Bob - Jones - 92 Any St. - Anytown - DE - 22000 - - - 0792 - Charles - Jones - 93 Any St. - Anytown - DE - 22000 - - - 0793 - David - Jones - 94 Any St. - Anytown - DE - 22000 - - - 0794 - Egon - Jones - 95 Any St. - Anytown - DE - 22000 - - - 0795 - Farbood - Jones - 96 Any St. - Anytown - DE - 22000 - - - 0796 - George - Jones - 97 Any St. - Anytown - DE - 22000 - - - 0797 - Hank - Jones - 98 Any St. - Anytown - DE - 22000 - - - 0798 - Inki - Jones - 99 Any St. - Anytown - DE - 22000 - - - 0799 - James - Jones - 100 Any St. - Anytown - DE - 22000 - - - 0800 - Al - Aranow - 1 Any St. - Anytown - FL - 22000 - - - 0801 - Bob - Aranow - 2 Any St. - Anytown - FL - 22000 - - - 0802 - Charles - Aranow - 3 Any St. - Anytown - FL - 22000 - - - 0803 - David - Aranow - 4 Any St. - Anytown - FL - 22000 - - - 0804 - Egon - Aranow - 5 Any St. - Anytown - FL - 22000 - - - 0805 - Farbood - Aranow - 6 Any St. - Anytown - FL - 22000 - - - 0806 - George - Aranow - 7 Any St. - Anytown - FL - 22000 - - - 0807 - Hank - Aranow - 8 Any St. - Anytown - FL - 22000 - - - 0808 - Inki - Aranow - 9 Any St. - Anytown - FL - 22000 - - - 0809 - James - Aranow - 10 Any St. - Anytown - FL - 22000 - - - 0810 - Al - Barker - 11 Any St. - Anytown - FL - 22000 - - - 0811 - Bob - Barker - 12 Any St. - Anytown - FL - 22000 - - - 0812 - Charles - Barker - 13 Any St. - Anytown - FL - 22000 - - - 0813 - David - Barker - 14 Any St. - Anytown - FL - 22000 - - - 0814 - Egon - Barker - 15 Any St. - Anytown - FL - 22000 - - - 0815 - Farbood - Barker - 16 Any St. - Anytown - FL - 22000 - - - 0816 - George - Barker - 17 Any St. - Anytown - FL - 22000 - - - 0817 - Hank - Barker - 18 Any St. - Anytown - FL - 22000 - - - 0818 - Inki - Barker - 19 Any St. - Anytown - FL - 22000 - - - 0819 - James - Barker - 20 Any St. - Anytown - FL - 22000 - - - 0820 - Al - Corsetti - 21 Any St. - Anytown - FL - 22000 - - - 0821 - Bob - Corsetti - 22 Any St. - Anytown - FL - 22000 - - - 0822 - Charles - Corsetti - 23 Any St. - Anytown - FL - 22000 - - - 0823 - David - Corsetti - 24 Any St. - Anytown - FL - 22000 - - - 0824 - Egon - Corsetti - 25 Any St. - Anytown - FL - 22000 - - - 0825 - Farbood - Corsetti - 26 Any St. - Anytown - FL - 22000 - - - 0826 - George - Corsetti - 27 Any St. - Anytown - FL - 22000 - - - 0827 - Hank - Corsetti - 28 Any St. - Anytown - FL - 22000 - - - 0828 - Inki - Corsetti - 29 Any St. - Anytown - FL - 22000 - - - 0829 - James - Corsetti - 30 Any St. - Anytown - FL - 22000 - - - 0830 - Al - Dershowitz - 31 Any St. - Anytown - FL - 22000 - - - 0831 - Bob - Dershowitz - 32 Any St. - Anytown - FL - 22000 - - - 0832 - Charles - Dershowitz - 33 Any St. - Anytown - FL - 22000 - - - 0833 - David - Dershowitz - 34 Any St. - Anytown - FL - 22000 - - - 0834 - Egon - Dershowitz - 35 Any St. - Anytown - FL - 22000 - - - 0835 - Farbood - Dershowitz - 36 Any St. - Anytown - FL - 22000 - - - 0836 - George - Dershowitz - 37 Any St. - Anytown - FL - 22000 - - - 0837 - Hank - Dershowitz - 38 Any St. - Anytown - FL - 22000 - - - 0838 - Inki - Dershowitz - 39 Any St. - Anytown - FL - 22000 - - - 0839 - James - Dershowitz - 40 Any St. - Anytown - FL - 22000 - - - 0840 - Al - Engleman - 41 Any St. - Anytown - FL - 22000 - - - 0841 - Bob - Engleman - 42 Any St. - Anytown - FL - 22000 - - - 0842 - Charles - Engleman - 43 Any St. - Anytown - FL - 22000 - - - 0843 - David - Engleman - 44 Any St. - Anytown - FL - 22000 - - - 0844 - Egon - Engleman - 45 Any St. - Anytown - FL - 22000 - - - 0845 - Farbood - Engleman - 46 Any St. - Anytown - FL - 22000 - - - 0846 - George - Engleman - 47 Any St. - Anytown - FL - 22000 - - - 0847 - Hank - Engleman - 48 Any St. - Anytown - FL - 22000 - - - 0848 - Inki - Engleman - 49 Any St. - Anytown - FL - 22000 - - - 0849 - James - Engleman - 50 Any St. - Anytown - FL - 22000 - - - 0850 - Al - Franklin - 51 Any St. - Anytown - FL - 22000 - - - 0851 - Bob - Franklin - 52 Any St. - Anytown - FL - 22000 - - - 0852 - Charles - Franklin - 53 Any St. - Anytown - FL - 22000 - - - 0853 - David - Franklin - 54 Any St. - Anytown - FL - 22000 - - - 0854 - Egon - Franklin - 55 Any St. - Anytown - FL - 22000 - - - 0855 - Farbood - Franklin - 56 Any St. - Anytown - FL - 22000 - - - 0856 - George - Franklin - 57 Any St. - Anytown - FL - 22000 - - - 0857 - Hank - Franklin - 58 Any St. - Anytown - FL - 22000 - - - 0858 - Inki - Franklin - 59 Any St. - Anytown - FL - 22000 - - - 0859 - James - Franklin - 60 Any St. - Anytown - FL - 22000 - - - 0860 - Al - Grice - 61 Any St. - Anytown - FL - 22000 - - - 0861 - Bob - Grice - 62 Any St. - Anytown - FL - 22000 - - - 0862 - Charles - Grice - 63 Any St. - Anytown - FL - 22000 - - - 0863 - David - Grice - 64 Any St. - Anytown - FL - 22000 - - - 0864 - Egon - Grice - 65 Any St. - Anytown - FL - 22000 - - - 0865 - Farbood - Grice - 66 Any St. - Anytown - FL - 22000 - - - 0866 - George - Grice - 67 Any St. - Anytown - FL - 22000 - - - 0867 - Hank - Grice - 68 Any St. - Anytown - FL - 22000 - - - 0868 - Inki - Grice - 69 Any St. - Anytown - FL - 22000 - - - 0869 - James - Grice - 70 Any St. - Anytown - FL - 22000 - - - 0870 - Al - Haverford - 71 Any St. - Anytown - FL - 22000 - - - 0871 - Bob - Haverford - 72 Any St. - Anytown - FL - 22000 - - - 0872 - Charles - Haverford - 73 Any St. - Anytown - FL - 22000 - - - 0873 - David - Haverford - 74 Any St. - Anytown - FL - 22000 - - - 0874 - Egon - Haverford - 75 Any St. - Anytown - FL - 22000 - - - 0875 - Farbood - Haverford - 76 Any St. - Anytown - FL - 22000 - - - 0876 - George - Haverford - 77 Any St. - Anytown - FL - 22000 - - - 0877 - Hank - Haverford - 78 Any St. - Anytown - FL - 22000 - - - 0878 - Inki - Haverford - 79 Any St. - Anytown - FL - 22000 - - - 0879 - James - Haverford - 80 Any St. - Anytown - FL - 22000 - - - 0880 - Al - Ilvedson - 81 Any St. - Anytown - FL - 22000 - - - 0881 - Bob - Ilvedson - 82 Any St. - Anytown - FL - 22000 - - - 0882 - Charles - Ilvedson - 83 Any St. - Anytown - FL - 22000 - - - 0883 - David - Ilvedson - 84 Any St. - Anytown - FL - 22000 - - - 0884 - Egon - Ilvedson - 85 Any St. - Anytown - FL - 22000 - - - 0885 - Farbood - Ilvedson - 86 Any St. - Anytown - FL - 22000 - - - 0886 - George - Ilvedson - 87 Any St. - Anytown - FL - 22000 - - - 0887 - Hank - Ilvedson - 88 Any St. - Anytown - FL - 22000 - - - 0888 - Inki - Ilvedson - 89 Any St. - Anytown - FL - 22000 - - - 0889 - James - Ilvedson - 90 Any St. - Anytown - FL - 22000 - - - 0890 - Al - Jones - 91 Any St. - Anytown - FL - 22000 - - - 0891 - Bob - Jones - 92 Any St. - Anytown - FL - 22000 - - - 0892 - Charles - Jones - 93 Any St. - Anytown - FL - 22000 - - - 0893 - David - Jones - 94 Any St. - Anytown - FL - 22000 - - - 0894 - Egon - Jones - 95 Any St. - Anytown - FL - 22000 - - - 0895 - Farbood - Jones - 96 Any St. - Anytown - FL - 22000 - - - 0896 - George - Jones - 97 Any St. - Anytown - FL - 22000 - - - 0897 - Hank - Jones - 98 Any St. - Anytown - FL - 22000 - - - 0898 - Inki - Jones - 99 Any St. - Anytown - FL - 22000 - - - 0899 - James - Jones - 100 Any St. - Anytown - FL - 22000 - - - 0900 - Al - Aranow - 1 Any St. - Anytown - GA - 22000 - - - 0901 - Bob - Aranow - 2 Any St. - Anytown - GA - 22000 - - - 0902 - Charles - Aranow - 3 Any St. - Anytown - GA - 22000 - - - 0903 - David - Aranow - 4 Any St. - Anytown - GA - 22000 - - - 0904 - Egon - Aranow - 5 Any St. - Anytown - GA - 22000 - - - 0905 - Farbood - Aranow - 6 Any St. - Anytown - GA - 22000 - - - 0906 - George - Aranow - 7 Any St. - Anytown - GA - 22000 - - - 0907 - Hank - Aranow - 8 Any St. - Anytown - GA - 22000 - - - 0908 - Inki - Aranow - 9 Any St. - Anytown - GA - 22000 - - - 0909 - James - Aranow - 10 Any St. - Anytown - GA - 22000 - - - 0910 - Al - Barker - 11 Any St. - Anytown - GA - 22000 - - - 0911 - Bob - Barker - 12 Any St. - Anytown - GA - 22000 - - - 0912 - Charles - Barker - 13 Any St. - Anytown - GA - 22000 - - - 0913 - David - Barker - 14 Any St. - Anytown - GA - 22000 - - - 0914 - Egon - Barker - 15 Any St. - Anytown - GA - 22000 - - - 0915 - Farbood - Barker - 16 Any St. - Anytown - GA - 22000 - - - 0916 - George - Barker - 17 Any St. - Anytown - GA - 22000 - - - 0917 - Hank - Barker - 18 Any St. - Anytown - GA - 22000 - - - 0918 - Inki - Barker - 19 Any St. - Anytown - GA - 22000 - - - 0919 - James - Barker - 20 Any St. - Anytown - GA - 22000 - - - 0920 - Al - Corsetti - 21 Any St. - Anytown - GA - 22000 - - - 0921 - Bob - Corsetti - 22 Any St. - Anytown - GA - 22000 - - - 0922 - Charles - Corsetti - 23 Any St. - Anytown - GA - 22000 - - - 0923 - David - Corsetti - 24 Any St. - Anytown - GA - 22000 - - - 0924 - Egon - Corsetti - 25 Any St. - Anytown - GA - 22000 - - - 0925 - Farbood - Corsetti - 26 Any St. - Anytown - GA - 22000 - - - 0926 - George - Corsetti - 27 Any St. - Anytown - GA - 22000 - - - 0927 - Hank - Corsetti - 28 Any St. - Anytown - GA - 22000 - - - 0928 - Inki - Corsetti - 29 Any St. - Anytown - GA - 22000 - - - 0929 - James - Corsetti - 30 Any St. - Anytown - GA - 22000 - - - 0930 - Al - Dershowitz - 31 Any St. - Anytown - GA - 22000 - - - 0931 - Bob - Dershowitz - 32 Any St. - Anytown - GA - 22000 - - - 0932 - Charles - Dershowitz - 33 Any St. - Anytown - GA - 22000 - - - 0933 - David - Dershowitz - 34 Any St. - Anytown - GA - 22000 - - - 0934 - Egon - Dershowitz - 35 Any St. - Anytown - GA - 22000 - - - 0935 - Farbood - Dershowitz - 36 Any St. - Anytown - GA - 22000 - - - 0936 - George - Dershowitz - 37 Any St. - Anytown - GA - 22000 - - - 0937 - Hank - Dershowitz - 38 Any St. - Anytown - GA - 22000 - - - 0938 - Inki - Dershowitz - 39 Any St. - Anytown - GA - 22000 - - - 0939 - James - Dershowitz - 40 Any St. - Anytown - GA - 22000 - - - 0940 - Al - Engleman - 41 Any St. - Anytown - GA - 22000 - - - 0941 - Bob - Engleman - 42 Any St. - Anytown - GA - 22000 - - - 0942 - Charles - Engleman - 43 Any St. - Anytown - GA - 22000 - - - 0943 - David - Engleman - 44 Any St. - Anytown - GA - 22000 - - - 0944 - Egon - Engleman - 45 Any St. - Anytown - GA - 22000 - - - 0945 - Farbood - Engleman - 46 Any St. - Anytown - GA - 22000 - - - 0946 - George - Engleman - 47 Any St. - Anytown - GA - 22000 - - - 0947 - Hank - Engleman - 48 Any St. - Anytown - GA - 22000 - - - 0948 - Inki - Engleman - 49 Any St. - Anytown - GA - 22000 - - - 0949 - James - Engleman - 50 Any St. - Anytown - GA - 22000 - - - 0950 - Al - Franklin - 51 Any St. - Anytown - GA - 22000 - - - 0951 - Bob - Franklin - 52 Any St. - Anytown - GA - 22000 - - - 0952 - Charles - Franklin - 53 Any St. - Anytown - GA - 22000 - - - 0953 - David - Franklin - 54 Any St. - Anytown - GA - 22000 - - - 0954 - Egon - Franklin - 55 Any St. - Anytown - GA - 22000 - - - 0955 - Farbood - Franklin - 56 Any St. - Anytown - GA - 22000 - - - 0956 - George - Franklin - 57 Any St. - Anytown - GA - 22000 - - - 0957 - Hank - Franklin - 58 Any St. - Anytown - GA - 22000 - - - 0958 - Inki - Franklin - 59 Any St. - Anytown - GA - 22000 - - - 0959 - James - Franklin - 60 Any St. - Anytown - GA - 22000 - - - 0960 - Al - Grice - 61 Any St. - Anytown - GA - 22000 - - - 0961 - Bob - Grice - 62 Any St. - Anytown - GA - 22000 - - - 0962 - Charles - Grice - 63 Any St. - Anytown - GA - 22000 - - - 0963 - David - Grice - 64 Any St. - Anytown - GA - 22000 - - - 0964 - Egon - Grice - 65 Any St. - Anytown - GA - 22000 - - - 0965 - Farbood - Grice - 66 Any St. - Anytown - GA - 22000 - - - 0966 - George - Grice - 67 Any St. - Anytown - GA - 22000 - - - 0967 - Hank - Grice - 68 Any St. - Anytown - GA - 22000 - - - 0968 - Inki - Grice - 69 Any St. - Anytown - GA - 22000 - - - 0969 - James - Grice - 70 Any St. - Anytown - GA - 22000 - - - 0970 - Al - Haverford - 71 Any St. - Anytown - GA - 22000 - - - 0971 - Bob - Haverford - 72 Any St. - Anytown - GA - 22000 - - - 0972 - Charles - Haverford - 73 Any St. - Anytown - GA - 22000 - - - 0973 - David - Haverford - 74 Any St. - Anytown - GA - 22000 - - - 0974 - Egon - Haverford - 75 Any St. - Anytown - GA - 22000 - - - 0975 - Farbood - Haverford - 76 Any St. - Anytown - GA - 22000 - - - 0976 - George - Haverford - 77 Any St. - Anytown - GA - 22000 - - - 0977 - Hank - Haverford - 78 Any St. - Anytown - GA - 22000 - - - 0978 - Inki - Haverford - 79 Any St. - Anytown - GA - 22000 - - - 0979 - James - Haverford - 80 Any St. - Anytown - GA - 22000 - - - 0980 - Al - Ilvedson - 81 Any St. - Anytown - GA - 22000 - - - 0981 - Bob - Ilvedson - 82 Any St. - Anytown - GA - 22000 - - - 0982 - Charles - Ilvedson - 83 Any St. - Anytown - GA - 22000 - - - 0983 - David - Ilvedson - 84 Any St. - Anytown - GA - 22000 - - - 0984 - Egon - Ilvedson - 85 Any St. - Anytown - GA - 22000 - - - 0985 - Farbood - Ilvedson - 86 Any St. - Anytown - GA - 22000 - - - 0986 - George - Ilvedson - 87 Any St. - Anytown - GA - 22000 - - - 0987 - Hank - Ilvedson - 88 Any St. - Anytown - GA - 22000 - - - 0988 - Inki - Ilvedson - 89 Any St. - Anytown - GA - 22000 - - - 0989 - James - Ilvedson - 90 Any St. - Anytown - GA - 22000 - - - 0990 - Al - Jones - 91 Any St. - Anytown - GA - 22000 - - - 0991 - Bob - Jones - 92 Any St. - Anytown - GA - 22000 - - - 0992 - Charles - Jones - 93 Any St. - Anytown - GA - 22000 - - - 0993 - David - Jones - 94 Any St. - Anytown - GA - 22000 - - - 0994 - Egon - Jones - 95 Any St. - Anytown - GA - 22000 - - - 0995 - Farbood - Jones - 96 Any St. - Anytown - GA - 22000 - - - 0996 - George - Jones - 97 Any St. - Anytown - GA - 22000 - - - 0997 - Hank - Jones - 98 Any St. - Anytown - GA - 22000 - - - 0998 - Inki - Jones - 99 Any St. - Anytown - GA - 22000 - - - 0999 - James - Jones - 100 Any St. - Anytown - GA - 22000 - -
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/identity.ref b/src/tools/docbook/libxslt/tests/XSLTMark/identity.ref deleted file mode 100644 index 548a53c4e1..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/identity.ref +++ /dev/null @@ -1,25002 +0,0 @@ - - - -0000 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0001 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0002 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0003 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0004 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0005 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0006 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0007 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0008 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0009 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0010 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0011 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0012 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0013 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0014 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0015 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0016 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0017 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0018 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0019 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0020 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0021 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0022 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0023 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0024 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0025 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0026 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0027 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0028 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0029 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0030 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0031 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0032 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0033 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0034 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0035 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0036 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0037 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0038 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0039 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0040 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0041 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0042 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0043 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0044 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0045 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0046 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0047 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0048 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0049 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0050 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0051 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0052 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0053 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0054 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0055 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0056 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0057 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0058 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0059 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0060 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0061 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0062 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0063 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0064 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0065 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0066 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0067 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0068 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0069 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0070 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0071 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0072 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0073 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0074 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0075 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0076 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0077 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0078 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0079 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0080 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0081 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0082 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0083 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0084 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0085 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0086 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0087 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0088 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0089 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0090 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0091 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0092 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0093 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0094 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0095 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0096 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0097 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0098 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0099 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0100 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0101 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0102 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0103 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0104 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0105 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0106 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0107 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0108 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0109 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0110 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0111 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0112 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0113 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0114 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0115 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0116 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0117 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0118 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0119 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0120 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0121 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0122 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0123 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0124 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0125 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0126 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0127 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0128 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0129 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0130 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0131 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0132 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0133 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0134 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0135 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0136 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0137 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0138 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0139 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0140 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0141 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0142 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0143 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0144 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0145 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0146 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0147 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0148 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0149 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0150 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0151 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0152 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0153 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0154 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0155 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0156 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0157 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0158 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0159 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0160 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0161 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0162 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0163 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0164 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0165 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0166 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0167 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0168 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0169 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0170 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0171 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0172 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0173 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0174 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0175 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0176 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0177 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0178 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0179 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0180 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0181 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0182 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0183 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0184 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0185 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0186 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0187 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0188 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0189 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0190 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0191 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0192 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0193 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0194 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0195 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0196 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0197 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0198 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0199 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0200 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0201 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0202 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0203 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0204 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0205 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0206 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0207 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0208 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0209 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0210 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0211 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0212 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0213 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0214 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0215 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0216 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0217 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0218 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0219 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0220 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0221 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0222 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0223 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0224 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0225 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0226 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0227 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0228 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0229 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0230 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0231 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0232 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0233 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0234 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0235 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0236 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0237 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0238 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0239 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0240 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0241 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0242 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0243 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0244 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0245 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0246 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0247 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0248 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0249 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0250 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0251 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0252 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0253 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0254 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0255 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0256 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0257 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0258 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0259 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0260 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0261 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0262 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0263 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0264 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0265 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0266 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0267 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0268 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0269 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0270 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0271 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0272 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0273 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0274 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0275 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0276 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0277 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0278 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0279 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0280 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0281 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0282 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0283 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0284 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0285 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0286 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0287 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0288 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0289 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0290 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0291 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0292 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0293 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0294 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0295 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0296 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0297 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0298 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0299 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0300 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0301 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0302 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0303 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0304 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0305 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0306 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0307 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0308 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0309 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0310 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0311 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0312 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0313 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0314 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0315 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0316 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0317 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0318 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0319 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0320 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0321 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0322 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0323 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0324 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0325 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0326 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0327 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0328 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0329 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0330 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0331 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0332 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0333 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0334 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0335 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0336 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0337 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0338 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0339 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0340 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0341 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0342 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0343 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0344 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0345 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0346 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0347 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0348 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0349 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0350 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0351 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0352 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0353 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0354 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0355 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0356 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0357 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0358 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0359 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0360 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0361 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0362 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0363 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0364 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0365 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0366 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0367 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0368 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0369 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0370 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0371 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0372 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0373 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0374 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0375 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0376 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0377 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0378 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0379 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0380 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0381 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0382 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0383 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0384 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0385 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0386 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0387 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0388 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0389 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0390 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0391 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0392 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0393 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0394 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0395 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0396 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0397 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0398 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0399 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0400 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0401 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0402 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0403 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0404 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0405 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0406 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0407 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0408 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0409 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0410 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0411 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0412 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0413 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0414 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0415 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0416 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0417 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0418 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0419 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0420 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0421 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0422 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0423 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0424 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0425 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0426 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0427 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0428 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0429 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0430 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0431 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0432 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0433 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0434 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0435 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0436 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0437 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0438 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0439 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0440 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0441 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0442 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0443 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0444 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0445 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0446 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0447 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0448 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0449 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0450 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0451 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0452 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0453 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0454 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0455 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0456 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0457 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0458 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0459 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0460 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0461 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0462 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0463 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0464 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0465 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0466 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0467 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0468 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0469 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0470 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0471 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0472 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0473 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0474 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0475 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0476 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0477 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0478 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0479 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0480 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0481 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0482 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0483 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0484 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0485 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0486 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0487 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0488 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0489 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0490 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0491 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0492 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0493 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0494 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0495 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0496 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0497 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0498 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0499 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0500 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0501 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0502 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0503 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0504 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0505 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0506 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0507 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0508 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0509 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0510 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0511 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0512 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0513 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0514 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0515 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0516 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0517 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0518 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0519 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0520 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0521 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0522 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0523 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0524 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0525 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0526 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0527 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0528 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0529 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0530 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0531 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0532 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0533 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0534 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0535 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0536 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0537 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0538 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0539 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0540 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0541 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0542 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0543 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0544 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0545 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0546 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0547 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0548 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0549 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0550 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0551 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0552 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0553 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0554 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0555 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0556 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0557 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0558 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0559 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0560 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0561 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0562 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0563 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0564 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0565 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0566 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0567 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0568 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0569 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0570 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0571 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0572 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0573 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0574 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0575 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0576 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0577 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0578 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0579 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0580 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0581 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0582 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0583 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0584 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0585 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0586 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0587 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0588 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0589 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0590 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0591 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0592 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0593 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0594 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0595 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0596 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0597 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0598 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0599 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0600 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0601 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0602 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0603 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0604 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0605 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0606 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0607 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0608 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0609 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0610 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0611 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0612 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0613 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0614 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0615 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0616 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0617 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0618 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0619 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0620 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0621 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0622 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0623 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0624 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0625 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0626 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0627 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0628 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0629 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0630 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0631 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0632 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0633 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0634 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0635 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0636 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0637 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0638 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0639 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0640 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0641 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0642 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0643 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0644 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0645 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0646 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0647 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0648 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0649 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0650 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0651 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0652 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0653 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0654 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0655 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0656 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0657 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0658 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0659 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0660 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0661 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0662 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0663 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0664 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0665 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0666 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0667 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0668 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0669 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0670 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0671 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0672 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0673 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0674 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0675 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0676 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0677 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0678 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0679 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0680 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0681 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0682 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0683 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0684 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0685 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0686 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0687 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0688 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0689 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0690 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0691 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0692 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0693 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0694 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0695 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0696 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0697 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0698 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0699 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0700 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0701 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0702 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0703 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0704 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0705 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0706 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0707 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0708 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0709 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0710 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0711 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0712 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0713 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0714 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0715 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0716 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0717 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0718 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0719 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0720 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0721 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0722 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0723 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0724 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0725 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0726 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0727 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0728 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0729 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0730 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0731 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0732 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0733 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0734 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0735 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0736 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0737 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0738 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0739 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0740 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0741 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0742 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0743 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0744 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0745 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0746 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0747 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0748 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0749 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0750 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0751 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0752 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0753 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0754 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0755 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0756 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0757 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0758 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0759 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0760 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0761 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0762 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0763 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0764 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0765 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0766 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0767 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0768 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0769 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0770 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0771 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0772 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0773 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0774 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0775 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0776 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0777 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0778 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0779 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0780 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0781 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0782 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0783 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0784 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0785 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0786 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0787 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0788 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0789 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0790 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0791 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0792 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0793 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0794 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0795 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0796 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0797 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0798 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0799 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0800 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0801 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0802 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0803 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0804 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0805 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0806 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0807 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0808 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0809 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0810 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0811 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0812 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0813 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0814 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0815 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0816 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0817 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0818 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0819 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0820 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0821 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0822 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0823 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0824 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0825 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0826 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0827 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0828 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0829 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0830 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0831 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0832 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0833 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0834 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0835 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0836 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0837 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0838 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0839 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0840 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0841 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0842 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0843 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0844 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0845 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0846 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0847 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0848 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0849 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0850 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0851 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0852 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0853 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0854 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0855 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0856 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0857 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0858 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0859 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0860 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0861 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0862 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0863 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0864 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0865 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0866 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0867 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0868 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0869 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0870 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0871 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0872 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0873 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0874 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0875 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0876 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0877 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0878 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0879 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0880 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0881 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0882 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0883 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0884 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0885 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0886 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0887 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0888 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0889 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0890 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0891 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0892 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0893 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0894 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0895 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0896 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0897 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0898 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0899 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0900 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0901 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0902 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0903 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0904 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0905 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0906 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0907 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0908 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0909 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0910 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0911 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0912 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0913 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0914 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0915 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0916 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0917 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0918 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0919 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0920 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0921 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0922 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0923 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0924 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0925 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0926 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0927 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0928 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0929 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0930 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0931 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0932 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0933 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0934 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0935 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0936 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0937 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0938 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0939 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0940 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0941 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0942 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0943 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0944 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0945 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0946 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0947 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0948 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0949 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0950 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0951 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0952 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0953 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0954 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0955 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0956 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0957 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0958 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0959 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0960 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0961 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0962 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0963 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0964 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0965 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0966 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0967 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0968 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0969 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0970 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0971 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0972 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0973 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0974 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0975 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0976 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0977 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0978 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0979 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0980 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0981 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0982 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0983 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0984 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0985 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0986 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0987 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0988 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0989 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0990 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0991 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0992 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0993 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0994 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0995 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0996 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0997 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0998 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0999 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -GA - - -22000 - - -
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/identity.xml b/src/tools/docbook/libxslt/tests/XSLTMark/identity.xml deleted file mode 100644 index f1be2a9c4c..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/identity.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/identity.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/identity.xsl deleted file mode 100644 index 6af02799a4..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/identity.xsl +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/inventory.out b/src/tools/docbook/libxslt/tests/XSLTMark/inventory.out deleted file mode 100644 index db8cd4e6c7..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/inventory.out +++ /dev/null @@ -1,2 +0,0 @@ - -DetroitSprockets14Widgets11Whozits15Whatchamacallems9Grommits0Foobars12BostonSprockets0Widgets32Whozits4Whatchamacallems6Grommits0Foobars8LondonSprockets8Widgets22Whozits0Whatchamacallems18Grommits4Foobars13New YorkSprockets16Widgets3Whozits24Whatchamacallems17Grommits3Foobars6ParisSprockets10Widgets0Whozits28Whatchamacallems9Grommits1Foobars1 diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/inventory.ref b/src/tools/docbook/libxslt/tests/XSLTMark/inventory.ref deleted file mode 100644 index 43d9d94187..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/inventory.ref +++ /dev/null @@ -1,278 +0,0 @@ - - - -Detroit - - - - -Sprockets - - -14 - - - - -Widgets - - -11 - - - - -Whozits - - -15 - - - - -Whatchamacallems - - -9 - - - - -Grommits - - -0 - - - - -Foobars - - -12 - - - - - - -Boston - - - - -Sprockets - - -0 - - - - -Widgets - - -32 - - - - -Whozits - - -4 - - - - -Whatchamacallems - - -6 - - - - -Grommits - - -0 - - - - -Foobars - - -8 - - - - - - -London - - - - -Sprockets - - -8 - - - - -Widgets - - -22 - - - - -Whozits - - -0 - - - - -Whatchamacallems - - -18 - - - - -Grommits - - -4 - - - - -Foobars - - -13 - - - - - - -New -York - - - - -Sprockets - - -16 - - - - -Widgets - - -3 - - - - -Whozits - - -24 - - - - -Whatchamacallems - - -17 - - - - -Grommits - - -3 - - - - -Foobars - - -6 - - - - - - -Paris - - - - -Sprockets - - -10 - - - - -Widgets - - -0 - - - - -Whozits - - -28 - - - - -Whatchamacallems - - -9 - - - - -Grommits - - -1 - - - - -Foobars - - -1 - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/inventory.xml b/src/tools/docbook/libxslt/tests/XSLTMark/inventory.xml deleted file mode 100644 index ec54f3e353..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/inventory.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Detroit
    Sprockets14
    Widgets11
    Whozits15
    Whatchamacallems9
    Grommits0
    Foobars12
    Boston
    Sprockets0
    Widgets32
    Whozits4
    Whatchamacallems6
    Grommits0
    Foobars8
    London
    Sprockets8
    Widgets22
    Whozits0
    Whatchamacallems18
    Grommits4
    Foobars13
    New York
    Sprockets16
    Widgets3
    Whozits24
    Whatchamacallems17
    Grommits3
    Foobars6
    Paris
    Sprockets10
    Widgets0
    Whozits28
    Whatchamacallems9
    Grommits1
    Foobars1
    - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/inventory.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/inventory.xsl deleted file mode 100644 index 8f1b34e70f..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/inventory.xsl +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/metric.out b/src/tools/docbook/libxslt/tests/XSLTMark/metric.out deleted file mode 100644 index fedb378379..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/metric.out +++ /dev/null @@ -1,15 +0,0 @@ - - 12362180 - 521.6472 - 276683.33 - 0.0001367014 - 1.275588 - 1332004.8 - 95012.3884199 - 0.00250598521 - 39370 - 8.612395272 - 0.04702523 - 0.000089353006 - 3031490 - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/metric.ref b/src/tools/docbook/libxslt/tests/XSLTMark/metric.ref deleted file mode 100644 index e17201e8d5..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/metric.ref +++ /dev/null @@ -1,41 +0,0 @@ - - -12362180 - - -521.6472 - - -276683.33 - - -0.0001367014 - - -1.275588 - - -1332004.8 - - -95012.38841989999 - - -0.00250598521 - - -39370 - - -8.612395272 - - -0.047025229999999994 - - -0.000089353006 - - -3031490 - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/metric.xml b/src/tools/docbook/libxslt/tests/XSLTMark/metric.xml deleted file mode 100644 index da68767922..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/metric.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - 314 - - - 159 - - - 253 - - - 22 - - - 32.4 - - - 406 - - - 86879.59 - - - 4.033 - - - 1.0 - - - 2625.09 - - - 4.3 - - - 14.38 - - - 77 - - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/metric.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/metric.xsl deleted file mode 100644 index 361d725f1a..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/metric.xsl +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/number.out b/src/tools/docbook/libxslt/tests/XSLTMark/number.out deleted file mode 100644 index c22afcfe50..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/number.out +++ /dev/null @@ -1,70 +0,0 @@ - -ONE 22 -TWO 0,00,22 -THREE %2200.00 -FOUR ?22000.00 -FIVE 00,022 -SIX abc22.00123 -SEVEN -22 -EIGHT -22 -NINE -22 - -ONE 22.22 -TWO 0,00,22.22 -THREE %2222.00 -FOUR ?22220.00 -FIVE 00,022.22 -SIX abc22.22123 -SEVEN -22 -EIGHT -22 -NINE -22 - -ONE 1,23.46 -TWO 0,01,23.46 -THREE %12345.60 -FOUR ?123456.00 -FIVE 00,123.46 -SIX abc123.46123 -SEVEN -123 -EIGHT -123 -NINE -123 - -ONE -7,77,77.78 -TWO -7,77,77.78 -THREE -%7777777.78 -FOUR -?77777777.77 -FIVE -77,777.78 -SIX -abc77777.78123 -SEVEN 77778 -EIGHT --77778 -NINE --77778 - -ONE -61,23.03 -TWO -0,61,23.03 -THREE -%612303.00 -FOUR -?6123030.00 -FIVE -06,123.03 -SIX -abc6123.03123 -SEVEN 6123 -EIGHT --6123 -NINE --6123 - -ONE 00 -TWO 0,00,00 -THREE %0.00 -FOUR ?0.00 -FIVE 00,000 -SIX abc0.00123 -SEVEN -0 -EIGHT -0 -NINE -0 - -ONE 00 -TWO 0,00,00 -THREE %0.00 -FOUR ?0.00 -FIVE 00,000 -SIX abc0.00123 -SEVEN -0 -EIGHT -0 -NINE -0 diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/number.xml b/src/tools/docbook/libxslt/tests/XSLTMark/number.xml deleted file mode 100644 index 0e3c13e987..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/number.xml +++ /dev/null @@ -1,9 +0,0 @@ - -22 -22.22 -123.456 --77777.77777 --6123.03 -0.0 --0.0 - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/number.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/number.xsl deleted file mode 100644 index d77ab69f73..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/number.xsl +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - -ONE - -TWO - -THREE - -FOUR - -FIVE - -SIX - -SEVEN - -EIGHT - -NINE - - - - - - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/oddtemplate.out b/src/tools/docbook/libxslt/tests/XSLTMark/oddtemplate.out deleted file mode 100644 index c1b6208cde..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/oddtemplate.out +++ /dev/null @@ -1,15 +0,0 @@ - - - 1 - 2 - 3 - 4 - 5 - - 6 - 7 - 8 - 9 - - 10 - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/oddtemplate.ref b/src/tools/docbook/libxslt/tests/XSLTMark/oddtemplate.ref deleted file mode 100644 index 800949c59e..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/oddtemplate.ref +++ /dev/null @@ -1,22 +0,0 @@ - - -1 - - -2 - - -3 - -4 -5 -6 - -7 - -8 -9 - -10 - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/oddtemplate.xml b/src/tools/docbook/libxslt/tests/XSLTMark/oddtemplate.xml deleted file mode 100644 index 8bad12f791..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/oddtemplate.xml +++ /dev/null @@ -1,14 +0,0 @@ - - 1 - 2 - 3 - 4 - 5 - - 6 - 7 - 8 - 9 - - 10 - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/oddtemplate.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/oddtemplate.xsl deleted file mode 100644 index 28a2abee03..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/oddtemplate.xsl +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/patterns.out b/src/tools/docbook/libxslt/tests/XSLTMark/patterns.out deleted file mode 100644 index f0788599e6..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/patterns.out +++ /dev/null @@ -1,903 +0,0 @@ - - - - 0000 - Al - Aranow - 1 Any St. - Anytown - AL - 22000 - - - 0001 - Bob - Aranow - 2 Any St. - Anytown - AL - 22000 - - - 0002 - Charles - Aranow - 3 Any St. - Anytown - AL - 22000 - - - 0003 - David - Aranow - 4 Any St. - Anytown - AL - 22000 - - - 0004 - Egon - Aranow - 5 Any St. - Anytown - AL - 22000 - - - 0005 - Farbood - Aranow - 6 Any St. - Anytown - AL - 22000 - - - 0006 - George - Aranow - 7 Any St. - Anytown - AL - 22000 - - - 0007 - Hank - Aranow - 8 Any St. - Anytown - AL - 22000 - - - 0008 - Inki - Aranow - 9 Any St. - Anytown - AL - 22000 - - - 0009 - James - Aranow - 10 Any St. - Anytown - AL - 22000 - - - 0010 - Al - Barker - 11 Any St. - Anytown - AL - 22000 - - - 0011 - Bob - Barker - 12 Any St. - Anytown - AL - 22000 - - - 0012 - Charles - Barker - 13 Any St. - Anytown - AL - 22000 - - - 0013 - David - Barker - 14 Any St. - Anytown - AL - 22000 - - - 0014 - Egon - Barker - 15 Any St. - Anytown - AL - 22000 - - - 0015 - Farbood - Barker - 16 Any St. - Anytown - AL - 22000 - - - 0016 - George - Barker - 17 Any St. - Anytown - AL - 22000 - - - 0017 - Hank - Barker - 18 Any St. - Anytown - AL - 22000 - - - 0018 - Inki - Barker - 19 Any St. - Anytown - AL - 22000 - - - 0019 - James - Barker - 20 Any St. - Anytown - AL - 22000 - - - 0020 - Al - Corsetti - 21 Any St. - Anytown - AL - 22000 - - - 0021 - Bob - Corsetti - 22 Any St. - Anytown - AL - 22000 - - - 0022 - Charles - Corsetti - 23 Any St. - Anytown - AL - 22000 - - - 0023 - David - Corsetti - 24 Any St. - Anytown - AL - 22000 - - - 0024 - Egon - Corsetti - 25 Any St. - Anytown - AL - 22000 - - - 0025 - Farbood - Corsetti - 26 Any St. - Anytown - AL - 22000 - - - 0026 - George - Corsetti - 27 Any St. - Anytown - AL - 22000 - - - 0027 - Hank - Corsetti - 28 Any St. - Anytown - AL - 22000 - - - 0028 - Inki - Corsetti - 29 Any St. - Anytown - AL - 22000 - - - 0029 - James - Corsetti - 30 Any St. - Anytown - AL - 22000 - - - 0030 - Al - Dershowitz - 31 Any St. - Anytown - AL - 22000 - - - 0031 - Bob - Dershowitz - 32 Any St. - Anytown - AL - 22000 - - - 0032 - Charles - Dershowitz - 33 Any St. - Anytown - AL - 22000 - - - 0033 - David - Dershowitz - 34 Any St. - Anytown - AL - 22000 - - - 0034 - Egon - Dershowitz - 35 Any St. - Anytown - AL - 22000 - - - 0035 - Farbood - Dershowitz - 36 Any St. - Anytown - AL - 22000 - - - 0036 - George - Dershowitz - 37 Any St. - Anytown - AL - 22000 - - - 0037 - Hank - Dershowitz - 38 Any St. - Anytown - AL - 22000 - - - 0038 - Inki - Dershowitz - 39 Any St. - Anytown - AL - 22000 - - - 0039 - James - Dershowitz - 40 Any St. - Anytown - AL - 22000 - - - 0040 - Al - Engleman - 41 Any St. - Anytown - AL - 22000 - - - 0041 - Bob - Engleman - 42 Any St. - Anytown - AL - 22000 - - - 0042 - Charles - Engleman - 43 Any St. - Anytown - AL - 22000 - - - 0043 - David - Engleman - 44 Any St. - Anytown - AL - 22000 - - - 0044 - Egon - Engleman - 45 Any St. - Anytown - AL - 22000 - - - 0045 - Farbood - Engleman - 46 Any St. - Anytown - AL - 22000 - - - 0046 - George - Engleman - 47 Any St. - Anytown - AL - 22000 - - - 0047 - Hank - Engleman - 48 Any St. - Anytown - AL - 22000 - - - 0048 - Inki - Engleman - 49 Any St. - Anytown - AL - 22000 - - - 0049 - James - Engleman - 50 Any St. - Anytown - AL - 22000 - - - 0050 - Al - Franklin - 51 Any St. - Anytown - AL - 22000 - - - 0051 - Bob - Franklin - 52 Any St. - Anytown - AL - 22000 - - - 0052 - Charles - Franklin - 53 Any St. - Anytown - AL - 22000 - - - 0053 - David - Franklin - 54 Any St. - Anytown - AL - 22000 - - - 0054 - Egon - Franklin - 55 Any St. - Anytown - AL - 22000 - - - 0055 - Farbood - Franklin - 56 Any St. - Anytown - AL - 22000 - - - 0056 - George - Franklin - 57 Any St. - Anytown - AL - 22000 - - - 0057 - Hank - Franklin - 58 Any St. - Anytown - AL - 22000 - - - 0058 - Inki - Franklin - 59 Any St. - Anytown - AL - 22000 - - - 0059 - James - Franklin - 60 Any St. - Anytown - AL - 22000 - - - 0060 - Al - Grice - 61 Any St. - Anytown - AL - 22000 - - - 0061 - Bob - Grice - 62 Any St. - Anytown - AL - 22000 - - - 0062 - Charles - Grice - 63 Any St. - Anytown - AL - 22000 - - - 0063 - David - Grice - 64 Any St. - Anytown - AL - 22000 - - - 0064 - Egon - Grice - 65 Any St. - Anytown - AL - 22000 - - - 0065 - Farbood - Grice - 66 Any St. - Anytown - AL - 22000 - - - 0066 - George - Grice - 67 Any St. - Anytown - AL - 22000 - - - 0067 - Hank - Grice - 68 Any St. - Anytown - AL - 22000 - - - 0068 - Inki - Grice - 69 Any St. - Anytown - AL - 22000 - - - 0069 - James - Grice - 70 Any St. - Anytown - AL - 22000 - - - 0070 - Al - Haverford - 71 Any St. - Anytown - AL - 22000 - - - 0071 - Bob - Haverford - 72 Any St. - Anytown - AL - 22000 - - - 0072 - Charles - Haverford - 73 Any St. - Anytown - AL - 22000 - - - 0073 - David - Haverford - 74 Any St. - Anytown - AL - 22000 - - - 0074 - Egon - Haverford - 75 Any St. - Anytown - AL - 22000 - - - 0075 - Farbood - Haverford - 76 Any St. - Anytown - AL - 22000 - - - 0076 - George - Haverford - 77 Any St. - Anytown - AL - 22000 - - - 0077 - Hank - Haverford - 78 Any St. - Anytown - AL - 22000 - - - 0078 - Inki - Haverford - 79 Any St. - Anytown - AL - 22000 - - - 0079 - James - Haverford - 80 Any St. - Anytown - AL - 22000 - - - 0080 - Al - Ilvedson - 81 Any St. - Anytown - AL - 22000 - - - 0081 - Bob - Ilvedson - 82 Any St. - Anytown - AL - 22000 - - - 0082 - Charles - Ilvedson - 83 Any St. - Anytown - AL - 22000 - - - 0083 - David - Ilvedson - 84 Any St. - Anytown - AL - 22000 - - - 0084 - Egon - Ilvedson - 85 Any St. - Anytown - AL - 22000 - - - 0085 - Farbood - Ilvedson - 86 Any St. - Anytown - AL - 22000 - - - 0086 - George - Ilvedson - 87 Any St. - Anytown - AL - 22000 - - - 0087 - Hank - Ilvedson - 88 Any St. - Anytown - AL - 22000 - - - 0088 - Inki - Ilvedson - 89 Any St. - Anytown - AL - 22000 - - - 0089 - James - Ilvedson - 90 Any St. - Anytown - AL - 22000 - - - 0090 - Al - Jones - 91 Any St. - Anytown - AL - 22000 - - - 0091 - Bob - Jones - 92 Any St. - Anytown - AL - 22000 - - - 0092 - Charles - Jones - 93 Any St. - Anytown - AL - 22000 - - - 0093 - David - Jones - 94 Any St. - Anytown - AL - 22000 - - - 0094 - Egon - Jones - 95 Any St. - Anytown - AL - 22000 - - - 0095 - Farbood - Jones - 96 Any St. - Anytown - AL - 22000 - - - 0096 - George - Jones - 97 Any St. - Anytown - AL - 22000 - - - 0097 - Hank - Jones - 98 Any St. - Anytown - AL - 22000 - - - 0098 - Inki - Jones - 99 Any St. - Anytown - AL - 22000 - - - 0099 - James - Jones - 100 Any St. - Anytown - AL - 22000 - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/patterns.ref b/src/tools/docbook/libxslt/tests/XSLTMark/patterns.ref deleted file mode 100644 index afba292e8f..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/patterns.ref +++ /dev/null @@ -1,2502 +0,0 @@ - - - -0000 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0001 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0002 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0003 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0004 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0005 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0006 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0007 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0008 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0009 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0010 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0011 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0012 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0013 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0014 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0015 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0016 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0017 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0018 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0019 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0020 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0021 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0022 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0023 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0024 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0025 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0026 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0027 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0028 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0029 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0030 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0031 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0032 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0033 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0034 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0035 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0036 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0037 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0038 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0039 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0040 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0041 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0042 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0043 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0044 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0045 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0046 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0047 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0048 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0049 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0050 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0051 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0052 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0053 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0054 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0055 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0056 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0057 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0058 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0059 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0060 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0061 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0062 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0063 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0064 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0065 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0066 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0067 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0068 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0069 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0070 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0071 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0072 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0073 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0074 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0075 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0076 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0077 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0078 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0079 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0080 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0081 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0082 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0083 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0084 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0085 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0086 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0087 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0088 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0089 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0090 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0091 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0092 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0093 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0094 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0095 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0096 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0097 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0098 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0099 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -AL - - -22000 - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/patterns.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/patterns.xsl deleted file mode 100644 index 1ca7f4e2bc..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/patterns.xsl +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/prettyprint.out b/src/tools/docbook/libxslt/tests/XSLTMark/prettyprint.out deleted file mode 100644 index 0d679ad400..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/prettyprint.out +++ /dev/null @@ -1,3211 +0,0 @@ - - -
    -  <table>
    -     
    -     <row>
    -        
    -        <id>
    -           0000
    -        </id>
    -        
    -        <firstname>
    -           Al
    -        </firstname>
    -        
    -        <lastname>
    -           Aranow
    -        </lastname>
    -        
    -        <street>
    -           1 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0001
    -        </id>
    -        
    -        <firstname>
    -           Bob
    -        </firstname>
    -        
    -        <lastname>
    -           Aranow
    -        </lastname>
    -        
    -        <street>
    -           2 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0002
    -        </id>
    -        
    -        <firstname>
    -           Charles
    -        </firstname>
    -        
    -        <lastname>
    -           Aranow
    -        </lastname>
    -        
    -        <street>
    -           3 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0003
    -        </id>
    -        
    -        <firstname>
    -           David
    -        </firstname>
    -        
    -        <lastname>
    -           Aranow
    -        </lastname>
    -        
    -        <street>
    -           4 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0004
    -        </id>
    -        
    -        <firstname>
    -           Egon
    -        </firstname>
    -        
    -        <lastname>
    -           Aranow
    -        </lastname>
    -        
    -        <street>
    -           5 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0005
    -        </id>
    -        
    -        <firstname>
    -           Farbood
    -        </firstname>
    -        
    -        <lastname>
    -           Aranow
    -        </lastname>
    -        
    -        <street>
    -           6 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0006
    -        </id>
    -        
    -        <firstname>
    -           George
    -        </firstname>
    -        
    -        <lastname>
    -           Aranow
    -        </lastname>
    -        
    -        <street>
    -           7 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0007
    -        </id>
    -        
    -        <firstname>
    -           Hank
    -        </firstname>
    -        
    -        <lastname>
    -           Aranow
    -        </lastname>
    -        
    -        <street>
    -           8 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0008
    -        </id>
    -        
    -        <firstname>
    -           Inki
    -        </firstname>
    -        
    -        <lastname>
    -           Aranow
    -        </lastname>
    -        
    -        <street>
    -           9 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0009
    -        </id>
    -        
    -        <firstname>
    -           James
    -        </firstname>
    -        
    -        <lastname>
    -           Aranow
    -        </lastname>
    -        
    -        <street>
    -           10 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0010
    -        </id>
    -        
    -        <firstname>
    -           Al
    -        </firstname>
    -        
    -        <lastname>
    -           Barker
    -        </lastname>
    -        
    -        <street>
    -           11 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0011
    -        </id>
    -        
    -        <firstname>
    -           Bob
    -        </firstname>
    -        
    -        <lastname>
    -           Barker
    -        </lastname>
    -        
    -        <street>
    -           12 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0012
    -        </id>
    -        
    -        <firstname>
    -           Charles
    -        </firstname>
    -        
    -        <lastname>
    -           Barker
    -        </lastname>
    -        
    -        <street>
    -           13 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0013
    -        </id>
    -        
    -        <firstname>
    -           David
    -        </firstname>
    -        
    -        <lastname>
    -           Barker
    -        </lastname>
    -        
    -        <street>
    -           14 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0014
    -        </id>
    -        
    -        <firstname>
    -           Egon
    -        </firstname>
    -        
    -        <lastname>
    -           Barker
    -        </lastname>
    -        
    -        <street>
    -           15 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0015
    -        </id>
    -        
    -        <firstname>
    -           Farbood
    -        </firstname>
    -        
    -        <lastname>
    -           Barker
    -        </lastname>
    -        
    -        <street>
    -           16 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0016
    -        </id>
    -        
    -        <firstname>
    -           George
    -        </firstname>
    -        
    -        <lastname>
    -           Barker
    -        </lastname>
    -        
    -        <street>
    -           17 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0017
    -        </id>
    -        
    -        <firstname>
    -           Hank
    -        </firstname>
    -        
    -        <lastname>
    -           Barker
    -        </lastname>
    -        
    -        <street>
    -           18 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0018
    -        </id>
    -        
    -        <firstname>
    -           Inki
    -        </firstname>
    -        
    -        <lastname>
    -           Barker
    -        </lastname>
    -        
    -        <street>
    -           19 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0019
    -        </id>
    -        
    -        <firstname>
    -           James
    -        </firstname>
    -        
    -        <lastname>
    -           Barker
    -        </lastname>
    -        
    -        <street>
    -           20 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0020
    -        </id>
    -        
    -        <firstname>
    -           Al
    -        </firstname>
    -        
    -        <lastname>
    -           Corsetti
    -        </lastname>
    -        
    -        <street>
    -           21 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0021
    -        </id>
    -        
    -        <firstname>
    -           Bob
    -        </firstname>
    -        
    -        <lastname>
    -           Corsetti
    -        </lastname>
    -        
    -        <street>
    -           22 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0022
    -        </id>
    -        
    -        <firstname>
    -           Charles
    -        </firstname>
    -        
    -        <lastname>
    -           Corsetti
    -        </lastname>
    -        
    -        <street>
    -           23 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0023
    -        </id>
    -        
    -        <firstname>
    -           David
    -        </firstname>
    -        
    -        <lastname>
    -           Corsetti
    -        </lastname>
    -        
    -        <street>
    -           24 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0024
    -        </id>
    -        
    -        <firstname>
    -           Egon
    -        </firstname>
    -        
    -        <lastname>
    -           Corsetti
    -        </lastname>
    -        
    -        <street>
    -           25 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0025
    -        </id>
    -        
    -        <firstname>
    -           Farbood
    -        </firstname>
    -        
    -        <lastname>
    -           Corsetti
    -        </lastname>
    -        
    -        <street>
    -           26 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0026
    -        </id>
    -        
    -        <firstname>
    -           George
    -        </firstname>
    -        
    -        <lastname>
    -           Corsetti
    -        </lastname>
    -        
    -        <street>
    -           27 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0027
    -        </id>
    -        
    -        <firstname>
    -           Hank
    -        </firstname>
    -        
    -        <lastname>
    -           Corsetti
    -        </lastname>
    -        
    -        <street>
    -           28 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0028
    -        </id>
    -        
    -        <firstname>
    -           Inki
    -        </firstname>
    -        
    -        <lastname>
    -           Corsetti
    -        </lastname>
    -        
    -        <street>
    -           29 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0029
    -        </id>
    -        
    -        <firstname>
    -           James
    -        </firstname>
    -        
    -        <lastname>
    -           Corsetti
    -        </lastname>
    -        
    -        <street>
    -           30 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0030
    -        </id>
    -        
    -        <firstname>
    -           Al
    -        </firstname>
    -        
    -        <lastname>
    -           Dershowitz
    -        </lastname>
    -        
    -        <street>
    -           31 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0031
    -        </id>
    -        
    -        <firstname>
    -           Bob
    -        </firstname>
    -        
    -        <lastname>
    -           Dershowitz
    -        </lastname>
    -        
    -        <street>
    -           32 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0032
    -        </id>
    -        
    -        <firstname>
    -           Charles
    -        </firstname>
    -        
    -        <lastname>
    -           Dershowitz
    -        </lastname>
    -        
    -        <street>
    -           33 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0033
    -        </id>
    -        
    -        <firstname>
    -           David
    -        </firstname>
    -        
    -        <lastname>
    -           Dershowitz
    -        </lastname>
    -        
    -        <street>
    -           34 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0034
    -        </id>
    -        
    -        <firstname>
    -           Egon
    -        </firstname>
    -        
    -        <lastname>
    -           Dershowitz
    -        </lastname>
    -        
    -        <street>
    -           35 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0035
    -        </id>
    -        
    -        <firstname>
    -           Farbood
    -        </firstname>
    -        
    -        <lastname>
    -           Dershowitz
    -        </lastname>
    -        
    -        <street>
    -           36 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0036
    -        </id>
    -        
    -        <firstname>
    -           George
    -        </firstname>
    -        
    -        <lastname>
    -           Dershowitz
    -        </lastname>
    -        
    -        <street>
    -           37 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0037
    -        </id>
    -        
    -        <firstname>
    -           Hank
    -        </firstname>
    -        
    -        <lastname>
    -           Dershowitz
    -        </lastname>
    -        
    -        <street>
    -           38 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0038
    -        </id>
    -        
    -        <firstname>
    -           Inki
    -        </firstname>
    -        
    -        <lastname>
    -           Dershowitz
    -        </lastname>
    -        
    -        <street>
    -           39 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0039
    -        </id>
    -        
    -        <firstname>
    -           James
    -        </firstname>
    -        
    -        <lastname>
    -           Dershowitz
    -        </lastname>
    -        
    -        <street>
    -           40 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0040
    -        </id>
    -        
    -        <firstname>
    -           Al
    -        </firstname>
    -        
    -        <lastname>
    -           Engleman
    -        </lastname>
    -        
    -        <street>
    -           41 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0041
    -        </id>
    -        
    -        <firstname>
    -           Bob
    -        </firstname>
    -        
    -        <lastname>
    -           Engleman
    -        </lastname>
    -        
    -        <street>
    -           42 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0042
    -        </id>
    -        
    -        <firstname>
    -           Charles
    -        </firstname>
    -        
    -        <lastname>
    -           Engleman
    -        </lastname>
    -        
    -        <street>
    -           43 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0043
    -        </id>
    -        
    -        <firstname>
    -           David
    -        </firstname>
    -        
    -        <lastname>
    -           Engleman
    -        </lastname>
    -        
    -        <street>
    -           44 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0044
    -        </id>
    -        
    -        <firstname>
    -           Egon
    -        </firstname>
    -        
    -        <lastname>
    -           Engleman
    -        </lastname>
    -        
    -        <street>
    -           45 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0045
    -        </id>
    -        
    -        <firstname>
    -           Farbood
    -        </firstname>
    -        
    -        <lastname>
    -           Engleman
    -        </lastname>
    -        
    -        <street>
    -           46 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0046
    -        </id>
    -        
    -        <firstname>
    -           George
    -        </firstname>
    -        
    -        <lastname>
    -           Engleman
    -        </lastname>
    -        
    -        <street>
    -           47 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0047
    -        </id>
    -        
    -        <firstname>
    -           Hank
    -        </firstname>
    -        
    -        <lastname>
    -           Engleman
    -        </lastname>
    -        
    -        <street>
    -           48 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0048
    -        </id>
    -        
    -        <firstname>
    -           Inki
    -        </firstname>
    -        
    -        <lastname>
    -           Engleman
    -        </lastname>
    -        
    -        <street>
    -           49 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0049
    -        </id>
    -        
    -        <firstname>
    -           James
    -        </firstname>
    -        
    -        <lastname>
    -           Engleman
    -        </lastname>
    -        
    -        <street>
    -           50 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0050
    -        </id>
    -        
    -        <firstname>
    -           Al
    -        </firstname>
    -        
    -        <lastname>
    -           Franklin
    -        </lastname>
    -        
    -        <street>
    -           51 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0051
    -        </id>
    -        
    -        <firstname>
    -           Bob
    -        </firstname>
    -        
    -        <lastname>
    -           Franklin
    -        </lastname>
    -        
    -        <street>
    -           52 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0052
    -        </id>
    -        
    -        <firstname>
    -           Charles
    -        </firstname>
    -        
    -        <lastname>
    -           Franklin
    -        </lastname>
    -        
    -        <street>
    -           53 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0053
    -        </id>
    -        
    -        <firstname>
    -           David
    -        </firstname>
    -        
    -        <lastname>
    -           Franklin
    -        </lastname>
    -        
    -        <street>
    -           54 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0054
    -        </id>
    -        
    -        <firstname>
    -           Egon
    -        </firstname>
    -        
    -        <lastname>
    -           Franklin
    -        </lastname>
    -        
    -        <street>
    -           55 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0055
    -        </id>
    -        
    -        <firstname>
    -           Farbood
    -        </firstname>
    -        
    -        <lastname>
    -           Franklin
    -        </lastname>
    -        
    -        <street>
    -           56 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0056
    -        </id>
    -        
    -        <firstname>
    -           George
    -        </firstname>
    -        
    -        <lastname>
    -           Franklin
    -        </lastname>
    -        
    -        <street>
    -           57 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0057
    -        </id>
    -        
    -        <firstname>
    -           Hank
    -        </firstname>
    -        
    -        <lastname>
    -           Franklin
    -        </lastname>
    -        
    -        <street>
    -           58 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0058
    -        </id>
    -        
    -        <firstname>
    -           Inki
    -        </firstname>
    -        
    -        <lastname>
    -           Franklin
    -        </lastname>
    -        
    -        <street>
    -           59 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0059
    -        </id>
    -        
    -        <firstname>
    -           James
    -        </firstname>
    -        
    -        <lastname>
    -           Franklin
    -        </lastname>
    -        
    -        <street>
    -           60 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0060
    -        </id>
    -        
    -        <firstname>
    -           Al
    -        </firstname>
    -        
    -        <lastname>
    -           Grice
    -        </lastname>
    -        
    -        <street>
    -           61 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0061
    -        </id>
    -        
    -        <firstname>
    -           Bob
    -        </firstname>
    -        
    -        <lastname>
    -           Grice
    -        </lastname>
    -        
    -        <street>
    -           62 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0062
    -        </id>
    -        
    -        <firstname>
    -           Charles
    -        </firstname>
    -        
    -        <lastname>
    -           Grice
    -        </lastname>
    -        
    -        <street>
    -           63 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0063
    -        </id>
    -        
    -        <firstname>
    -           David
    -        </firstname>
    -        
    -        <lastname>
    -           Grice
    -        </lastname>
    -        
    -        <street>
    -           64 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0064
    -        </id>
    -        
    -        <firstname>
    -           Egon
    -        </firstname>
    -        
    -        <lastname>
    -           Grice
    -        </lastname>
    -        
    -        <street>
    -           65 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0065
    -        </id>
    -        
    -        <firstname>
    -           Farbood
    -        </firstname>
    -        
    -        <lastname>
    -           Grice
    -        </lastname>
    -        
    -        <street>
    -           66 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0066
    -        </id>
    -        
    -        <firstname>
    -           George
    -        </firstname>
    -        
    -        <lastname>
    -           Grice
    -        </lastname>
    -        
    -        <street>
    -           67 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0067
    -        </id>
    -        
    -        <firstname>
    -           Hank
    -        </firstname>
    -        
    -        <lastname>
    -           Grice
    -        </lastname>
    -        
    -        <street>
    -           68 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0068
    -        </id>
    -        
    -        <firstname>
    -           Inki
    -        </firstname>
    -        
    -        <lastname>
    -           Grice
    -        </lastname>
    -        
    -        <street>
    -           69 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0069
    -        </id>
    -        
    -        <firstname>
    -           James
    -        </firstname>
    -        
    -        <lastname>
    -           Grice
    -        </lastname>
    -        
    -        <street>
    -           70 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0070
    -        </id>
    -        
    -        <firstname>
    -           Al
    -        </firstname>
    -        
    -        <lastname>
    -           Haverford
    -        </lastname>
    -        
    -        <street>
    -           71 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0071
    -        </id>
    -        
    -        <firstname>
    -           Bob
    -        </firstname>
    -        
    -        <lastname>
    -           Haverford
    -        </lastname>
    -        
    -        <street>
    -           72 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0072
    -        </id>
    -        
    -        <firstname>
    -           Charles
    -        </firstname>
    -        
    -        <lastname>
    -           Haverford
    -        </lastname>
    -        
    -        <street>
    -           73 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0073
    -        </id>
    -        
    -        <firstname>
    -           David
    -        </firstname>
    -        
    -        <lastname>
    -           Haverford
    -        </lastname>
    -        
    -        <street>
    -           74 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0074
    -        </id>
    -        
    -        <firstname>
    -           Egon
    -        </firstname>
    -        
    -        <lastname>
    -           Haverford
    -        </lastname>
    -        
    -        <street>
    -           75 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0075
    -        </id>
    -        
    -        <firstname>
    -           Farbood
    -        </firstname>
    -        
    -        <lastname>
    -           Haverford
    -        </lastname>
    -        
    -        <street>
    -           76 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0076
    -        </id>
    -        
    -        <firstname>
    -           George
    -        </firstname>
    -        
    -        <lastname>
    -           Haverford
    -        </lastname>
    -        
    -        <street>
    -           77 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0077
    -        </id>
    -        
    -        <firstname>
    -           Hank
    -        </firstname>
    -        
    -        <lastname>
    -           Haverford
    -        </lastname>
    -        
    -        <street>
    -           78 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0078
    -        </id>
    -        
    -        <firstname>
    -           Inki
    -        </firstname>
    -        
    -        <lastname>
    -           Haverford
    -        </lastname>
    -        
    -        <street>
    -           79 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0079
    -        </id>
    -        
    -        <firstname>
    -           James
    -        </firstname>
    -        
    -        <lastname>
    -           Haverford
    -        </lastname>
    -        
    -        <street>
    -           80 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0080
    -        </id>
    -        
    -        <firstname>
    -           Al
    -        </firstname>
    -        
    -        <lastname>
    -           Ilvedson
    -        </lastname>
    -        
    -        <street>
    -           81 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0081
    -        </id>
    -        
    -        <firstname>
    -           Bob
    -        </firstname>
    -        
    -        <lastname>
    -           Ilvedson
    -        </lastname>
    -        
    -        <street>
    -           82 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0082
    -        </id>
    -        
    -        <firstname>
    -           Charles
    -        </firstname>
    -        
    -        <lastname>
    -           Ilvedson
    -        </lastname>
    -        
    -        <street>
    -           83 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0083
    -        </id>
    -        
    -        <firstname>
    -           David
    -        </firstname>
    -        
    -        <lastname>
    -           Ilvedson
    -        </lastname>
    -        
    -        <street>
    -           84 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0084
    -        </id>
    -        
    -        <firstname>
    -           Egon
    -        </firstname>
    -        
    -        <lastname>
    -           Ilvedson
    -        </lastname>
    -        
    -        <street>
    -           85 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0085
    -        </id>
    -        
    -        <firstname>
    -           Farbood
    -        </firstname>
    -        
    -        <lastname>
    -           Ilvedson
    -        </lastname>
    -        
    -        <street>
    -           86 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0086
    -        </id>
    -        
    -        <firstname>
    -           George
    -        </firstname>
    -        
    -        <lastname>
    -           Ilvedson
    -        </lastname>
    -        
    -        <street>
    -           87 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0087
    -        </id>
    -        
    -        <firstname>
    -           Hank
    -        </firstname>
    -        
    -        <lastname>
    -           Ilvedson
    -        </lastname>
    -        
    -        <street>
    -           88 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0088
    -        </id>
    -        
    -        <firstname>
    -           Inki
    -        </firstname>
    -        
    -        <lastname>
    -           Ilvedson
    -        </lastname>
    -        
    -        <street>
    -           89 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0089
    -        </id>
    -        
    -        <firstname>
    -           James
    -        </firstname>
    -        
    -        <lastname>
    -           Ilvedson
    -        </lastname>
    -        
    -        <street>
    -           90 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0090
    -        </id>
    -        
    -        <firstname>
    -           Al
    -        </firstname>
    -        
    -        <lastname>
    -           Jones
    -        </lastname>
    -        
    -        <street>
    -           91 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0091
    -        </id>
    -        
    -        <firstname>
    -           Bob
    -        </firstname>
    -        
    -        <lastname>
    -           Jones
    -        </lastname>
    -        
    -        <street>
    -           92 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0092
    -        </id>
    -        
    -        <firstname>
    -           Charles
    -        </firstname>
    -        
    -        <lastname>
    -           Jones
    -        </lastname>
    -        
    -        <street>
    -           93 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0093
    -        </id>
    -        
    -        <firstname>
    -           David
    -        </firstname>
    -        
    -        <lastname>
    -           Jones
    -        </lastname>
    -        
    -        <street>
    -           94 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0094
    -        </id>
    -        
    -        <firstname>
    -           Egon
    -        </firstname>
    -        
    -        <lastname>
    -           Jones
    -        </lastname>
    -        
    -        <street>
    -           95 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0095
    -        </id>
    -        
    -        <firstname>
    -           Farbood
    -        </firstname>
    -        
    -        <lastname>
    -           Jones
    -        </lastname>
    -        
    -        <street>
    -           96 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0096
    -        </id>
    -        
    -        <firstname>
    -           George
    -        </firstname>
    -        
    -        <lastname>
    -           Jones
    -        </lastname>
    -        
    -        <street>
    -           97 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0097
    -        </id>
    -        
    -        <firstname>
    -           Hank
    -        </firstname>
    -        
    -        <lastname>
    -           Jones
    -        </lastname>
    -        
    -        <street>
    -           98 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0098
    -        </id>
    -        
    -        <firstname>
    -           Inki
    -        </firstname>
    -        
    -        <lastname>
    -           Jones
    -        </lastname>
    -        
    -        <street>
    -           99 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -     <row>
    -        
    -        <id>
    -           0099
    -        </id>
    -        
    -        <firstname>
    -           James
    -        </firstname>
    -        
    -        <lastname>
    -           Jones
    -        </lastname>
    -        
    -        <street>
    -           100 Any St.
    -        </street>
    -        
    -        <city>
    -           Anytown
    -        </city>
    -        
    -        <state>
    -           AL
    -        </state>
    -        
    -        <zip>
    -           22000
    -        </zip>
    -        
    -     </row>
    -     
    -  </table>
    - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/prettyprint.ref b/src/tools/docbook/libxslt/tests/XSLTMark/prettyprint.ref deleted file mode 100644 index aef8c4d216..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/prettyprint.ref +++ /dev/null @@ -1,8931 +0,0 @@ - - - -
    -
    -<table>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0000
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Al
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Aranow
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -1
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0001
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Bob
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Aranow
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -2
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0002
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Charles
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Aranow
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -3
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0003
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -David
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Aranow
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -4
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0004
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Egon
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Aranow
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -5
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0005
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Farbood
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Aranow
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -6
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0006
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -George
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Aranow
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -7
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0007
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Hank
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Aranow
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -8
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0008
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Inki
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Aranow
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -9
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0009
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -James
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Aranow
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -10
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0010
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Al
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Barker
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -11
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0011
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Bob
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Barker
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -12
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0012
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Charles
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Barker
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -13
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0013
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -David
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Barker
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -14
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0014
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Egon
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Barker
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -15
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0015
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Farbood
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Barker
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -16
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0016
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -George
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Barker
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -17
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0017
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Hank
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Barker
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -18
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0018
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Inki
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Barker
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -19
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0019
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -James
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Barker
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -20
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0020
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Al
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Corsetti
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -21
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0021
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Bob
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Corsetti
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -22
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0022
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Charles
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Corsetti
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -23
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0023
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -David
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Corsetti
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -24
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0024
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Egon
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Corsetti
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -25
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0025
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Farbood
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Corsetti
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -26
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0026
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -George
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Corsetti
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -27
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0027
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Hank
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Corsetti
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -28
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0028
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Inki
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Corsetti
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -29
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0029
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -James
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Corsetti
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -30
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0030
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Al
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Dershowitz
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -31
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0031
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Bob
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Dershowitz
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -32
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0032
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Charles
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Dershowitz
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -33
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0033
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -David
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Dershowitz
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -34
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0034
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Egon
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Dershowitz
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -35
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0035
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Farbood
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Dershowitz
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -36
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0036
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -George
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Dershowitz
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -37
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0037
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Hank
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Dershowitz
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -38
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0038
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Inki
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Dershowitz
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -39
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0039
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -James
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Dershowitz
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -40
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0040
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Al
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Engleman
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -41
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0041
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Bob
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Engleman
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -42
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0042
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Charles
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Engleman
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -43
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0043
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -David
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Engleman
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -44
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0044
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Egon
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Engleman
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -45
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0045
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Farbood
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Engleman
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -46
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0046
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -George
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Engleman
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -47
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0047
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Hank
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Engleman
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -48
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0048
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Inki
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Engleman
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -49
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0049
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -James
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Engleman
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -50
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0050
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Al
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Franklin
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -51
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0051
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Bob
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Franklin
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -52
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0052
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Charles
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Franklin
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -53
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0053
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -David
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Franklin
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -54
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0054
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Egon
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Franklin
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -55
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0055
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Farbood
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Franklin
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -56
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0056
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -George
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Franklin
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -57
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0057
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Hank
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Franklin
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -58
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0058
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Inki
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Franklin
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -59
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0059
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -James
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Franklin
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -60
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0060
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Al
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Grice
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -61
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0061
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Bob
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Grice
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -62
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0062
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Charles
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Grice
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -63
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0063
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -David
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Grice
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -64
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0064
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Egon
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Grice
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -65
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0065
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Farbood
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Grice
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -66
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0066
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -George
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Grice
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -67
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0067
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Hank
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Grice
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -68
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0068
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Inki
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Grice
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -69
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0069
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -James
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Grice
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -70
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0070
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Al
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Haverford
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -71
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0071
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Bob
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Haverford
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -72
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0072
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Charles
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Haverford
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -73
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0073
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -David
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Haverford
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -74
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0074
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Egon
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Haverford
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -75
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0075
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Farbood
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Haverford
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -76
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0076
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -George
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Haverford
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -77
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0077
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Hank
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Haverford
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -78
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0078
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Inki
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Haverford
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -79
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0079
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -James
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Haverford
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -80
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0080
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Al
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Ilvedson
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -81
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0081
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Bob
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Ilvedson
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -82
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0082
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Charles
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Ilvedson
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -83
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0083
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -David
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Ilvedson
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -84
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0084
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Egon
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Ilvedson
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -85
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0085
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Farbood
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Ilvedson
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -86
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0086
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -George
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Ilvedson
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -87
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0087
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Hank
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Ilvedson
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -88
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0088
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Inki
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Ilvedson
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -89
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0089
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -James
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Ilvedson
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -90
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0090
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Al
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Jones
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -91
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0091
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Bob
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Jones
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -92
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0092
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Charles
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Jones
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -93
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0093
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -David
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Jones
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -94
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0094
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Egon
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Jones
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -95
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0095
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Farbood
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Jones
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -96
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0096
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -George
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Jones
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -97
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0097
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Hank
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Jones
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -98
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0098
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -Inki
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Jones
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -99
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -<row>
    -
    -
    -
    -
    -<id>
    -
    -
    -0099
    -
    -
    -</id>
    -
    -
    -
    -
    -<firstname>
    -
    -
    -James
    -
    -
    -</firstname>
    -
    -
    -
    -
    -<lastname>
    -
    -
    -Jones
    -
    -
    -</lastname>
    -
    -
    -
    -
    -<street>
    -
    -
    -100
    -Any
    -St.
    -
    -
    -</street>
    -
    -
    -
    -
    -<city>
    -
    -
    -Anytown
    -
    -
    -</city>
    -
    -
    -
    -
    -<state>
    -
    -
    -AL
    -
    -
    -</state>
    -
    -
    -
    -
    -<zip>
    -
    -
    -22000
    -
    -
    -</zip>
    -
    -
    -
    -
    -</row>
    -
    -
    -
    -
    -</table>
    -
    -
    - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/prettyprint.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/prettyprint.xsl deleted file mode 100644 index 8d440d8fc2..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/prettyprint.xsl +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -          
    -            
    -              
    -                1
    -              
    -            
    -                        
    -        
    - - -
    - -
    - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/priority.out b/src/tools/docbook/libxslt/tests/XSLTMark/priority.out deleted file mode 100644 index 6e8d9f3b9b..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/priority.out +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/priority.ref b/src/tools/docbook/libxslt/tests/XSLTMark/priority.ref deleted file mode 100644 index e8218318c6..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/priority.ref +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/priority.xml b/src/tools/docbook/libxslt/tests/XSLTMark/priority.xml deleted file mode 100644 index 12e12d1e84..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/priority.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/priority.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/priority.xsl deleted file mode 100644 index 6c1e7456b8..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/priority.xsl +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/products.out b/src/tools/docbook/libxslt/tests/XSLTMark/products.out deleted file mode 100644 index 197d280831..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/products.out +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    thingamabob1003, 1007, 1011
    whatchamadigger1005, 1013, 1014
    whozit1001, 1012
    squeegie1002, 1006, 1016
    thingamadiggy1009, 1015
    whatzit1004, 1010
    whatchacallit1008, 1017
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/products.ref b/src/tools/docbook/libxslt/tests/XSLTMark/products.ref deleted file mode 100644 index 80854199a4..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/products.ref +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -thingamabob - -1003, -1007, -1011 -
    -whatchamadigger - -1005, -1013, -1014 -
    -whozit - -1001, -1012 -
    -squeegie - -1002, -1006, -1016 -
    -thingamadiggy - -1009, -1015 -
    -whatzit - -1004, -1010 -
    -whatchacallit - -1008, -1017 -
    - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/products.xml b/src/tools/docbook/libxslt/tests/XSLTMark/products.xml deleted file mode 100644 index c1132cc5d4..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/products.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - 1001 - 3 - - - 1002 - 4 - - - 1003 - 1 - - - 1004 - 6 - - - 1005 - 2 - - - 1006 - 4 - - - 1007 - 1 - - - 1008 - 7 - - - 1009 - 5 - - - 1010 - 6 - - - 1011 - 1 - - - 1012 - 3 - - - 1013 - 2 - - - 1014 - 2 - - - 1015 - 5 - - - 1016 - 4 - - - 1017 - 7 - - - - - - 1 - thingamabob - - - 2 - whatchamadigger - - - 3 - whozit - - - 4 - squeegie - - - 5 - thingamadiggy - - - 6 - whatzit - - - 7 - whatchacallit - - - - - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/products.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/products.xsl deleted file mode 100644 index 7396ce08b2..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/products.xsl +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - , - - - - - - - - - - - - - - - - - - - -
    - -
    - -
    \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/queens.out b/src/tools/docbook/libxslt/tests/XSLTMark/queens.out deleted file mode 100644 index 0af47027e1..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/queens.out +++ /dev/null @@ -1,2 +0,0 @@ - -

    -Q----
    ---Q--
    -----Q
    Q-----
    --Q---
    ----Q-

    --Q---
    -----Q
    -Q----
    ----Q-
    Q-----
    ---Q--

    ---Q--
    Q-----
    ----Q-
    -Q----
    -----Q
    --Q---

    ----Q-
    --Q---
    Q-----
    -----Q
    ---Q--
    -Q----
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/queens.ref b/src/tools/docbook/libxslt/tests/XSLTMark/queens.ref deleted file mode 100644 index c73daa4a43..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/queens.ref +++ /dev/null @@ -1,494 +0,0 @@ - -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -- - -Q - -- - -- - -- - -- -
    -- - -- - -- - -Q - -- - -- -
    -- - -- - -- - -- - -- - -Q -
    -Q - -- - -- - -- - -- - -- -
    -- - -- - -Q - -- - -- - -- -
    -- - -- - -- - -- - -Q - -- -
    -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -- - -- - -Q - -- - -- - -- -
    -- - -- - -- - -- - -- - -Q -
    -- - -Q - -- - -- - -- - -- -
    -- - -- - -- - -- - -Q - -- -
    -Q - -- - -- - -- - -- - -- -
    -- - -- - -- - -Q - -- - -- -
    -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -- - -- - -- - -Q - -- - -- -
    -Q - -- - -- - -- - -- - -- -
    -- - -- - -- - -- - -Q - -- -
    -- - -Q - -- - -- - -- - -- -
    -- - -- - -- - -- - -- - -Q -
    -- - -- - -Q - -- - -- - -- -
    -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -- - -- - -- - -- - -Q - -- -
    -- - -- - -Q - -- - -- - -- -
    -Q - -- - -- - -- - -- - -- -
    -- - -- - -- - -- - -- - -Q -
    -- - -- - -- - -Q - -- - -- -
    -- - -Q - -- - -- - -- - -- -
    - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/queens.xml b/src/tools/docbook/libxslt/tests/XSLTMark/queens.xml deleted file mode 100644 index 59d47644e1..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/queens.xml +++ /dev/null @@ -1 +0,0 @@ -6 \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/queens.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/queens.xsl deleted file mode 100644 index 7630d981a8..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/queens.xsl +++ /dev/null @@ -1,199 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Q - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/reverser.out b/src/tools/docbook/libxslt/tests/XSLTMark/reverser.out deleted file mode 100644 index 8669ccdbbf..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/reverser.out +++ /dev/null @@ -1,2 +0,0 @@ - -earth. the from perish not shall people, the for people the by people the of government that and freedom, of birth new a have shall nation, the that vain; in died have not shall dead these resolve highly here we that -- devotion of measure full last the gave here, they which for cause that to devotion increased take we dead honored these from that, -- us before remaining task great the to dedicated be here we living, the us, for rather is It here. did they what forget never can it while here; say we what remember long nor note, little will world The detract. or add to power poor our above far it, hallowed have here, struggled who dead, and living men, brave The -- ground this hallow, not can we -- consecrate not can we -- dedicate not can we sense, larger a in But, do. propriety all in may, we This live. might nation the that here, died who those for place resting final a as it, of portion a dedicate to come We war. that of field battle great a on met are We endure. long can dedicated, so and conceived, so nation any or nation, that whether testing war, civil great a in engaged are we Now equal" created are men "all that proposition the to dedicated and liberty, in conceived nation, new a continent, this upon forth, brought fathers our ago years seven and score Four diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/reverser.ref b/src/tools/docbook/libxslt/tests/XSLTMark/reverser.ref deleted file mode 100644 index abda25463d..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/reverser.ref +++ /dev/null @@ -1,245 +0,0 @@ - -earth. -the -from -perish -not -shall -people, -the -for -people -the -by -people -the -of -government -that -and -freedom, -of -birth -new -a -have -shall -nation, -the -that -vain; -in -died -have -not -shall -dead -these -resolve -highly -here -we -that --- -devotion -of -measure -full -last -the -gave -here, -they -which -for -cause -that -to -devotion -increased -take -we -dead -honored -these -from -that, --- -us -before -remaining -task -great -the -to -dedicated -be -here -we -living, -the -us, -for -rather -is -It -here. -did -they -what -forget -never -can -it -while -here; -say -we -what -remember -long -nor -note, -little -will -world -The -detract. -or -add -to -power -poor -our -above -far -it, -hallowed -have -here, -struggled -who -dead, -and -living -men, -brave -The --- -ground -this -hallow, -not -can -we --- -consecrate -not -can -we --- -dedicate -not -can -we -sense, -larger -a -in -But, -do. -propriety -all -in -may, -we -This -live. -might -nation -the -that -here, -died -who -those -for -place -resting -final -a -as -it, -of -portion -a -dedicate -to -come -We -war. -that -of -field -battle -great -a -on -met -are -We -endure. -long -can -dedicated, -so -and -conceived, -so -nation -any -or -nation, -that -whether -testing -war, -civil -great -a -in -engaged -are -we -Now -equal" -created -are -men -"all -that -proposition -the -to -dedicated -and -liberty, -in -conceived -nation, -new -a -continent, -this -upon -forth, -brought -fathers -our -ago -years -seven -and -score -Four - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/reverser.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/reverser.xsl deleted file mode 100644 index a4bb593d57..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/reverser.xsl +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/stringsort.out b/src/tools/docbook/libxslt/tests/XSLTMark/stringsort.out deleted file mode 100644 index 2bf8cace84..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/stringsort.out +++ /dev/null @@ -1,8002 +0,0 @@ - - - 0000 - Al - Aranow - 1 Any St. - Anytown - AL - 22000 - - 0010 - Al - Barker - 11 Any St. - Anytown - AL - 22000 - - 0020 - Al - Corsetti - 21 Any St. - Anytown - AL - 22000 - - 0030 - Al - Dershowitz - 31 Any St. - Anytown - AL - 22000 - - 0040 - Al - Engleman - 41 Any St. - Anytown - AL - 22000 - - 0050 - Al - Franklin - 51 Any St. - Anytown - AL - 22000 - - 0060 - Al - Grice - 61 Any St. - Anytown - AL - 22000 - - 0070 - Al - Haverford - 71 Any St. - Anytown - AL - 22000 - - 0080 - Al - Ilvedson - 81 Any St. - Anytown - AL - 22000 - - 0090 - Al - Jones - 91 Any St. - Anytown - AL - 22000 - - 0100 - Al - Aranow - 1 Any St. - Anytown - AK - 22000 - - 0110 - Al - Barker - 11 Any St. - Anytown - AK - 22000 - - 0120 - Al - Corsetti - 21 Any St. - Anytown - AK - 22000 - - 0130 - Al - Dershowitz - 31 Any St. - Anytown - AK - 22000 - - 0140 - Al - Engleman - 41 Any St. - Anytown - AK - 22000 - - 0150 - Al - Franklin - 51 Any St. - Anytown - AK - 22000 - - 0160 - Al - Grice - 61 Any St. - Anytown - AK - 22000 - - 0170 - Al - Haverford - 71 Any St. - Anytown - AK - 22000 - - 0180 - Al - Ilvedson - 81 Any St. - Anytown - AK - 22000 - - 0190 - Al - Jones - 91 Any St. - Anytown - AK - 22000 - - 0200 - Al - Aranow - 1 Any St. - Anytown - AZ - 22000 - - 0210 - Al - Barker - 11 Any St. - Anytown - AZ - 22000 - - 0220 - Al - Corsetti - 21 Any St. - Anytown - AZ - 22000 - - 0230 - Al - Dershowitz - 31 Any St. - Anytown - AZ - 22000 - - 0240 - Al - Engleman - 41 Any St. - Anytown - AZ - 22000 - - 0250 - Al - Franklin - 51 Any St. - Anytown - AZ - 22000 - - 0260 - Al - Grice - 61 Any St. - Anytown - AZ - 22000 - - 0270 - Al - Haverford - 71 Any St. - Anytown - AZ - 22000 - - 0280 - Al - Ilvedson - 81 Any St. - Anytown - AZ - 22000 - - 0290 - Al - Jones - 91 Any St. - Anytown - AZ - 22000 - - 0300 - Al - Aranow - 1 Any St. - Anytown - AR - 22000 - - 0310 - Al - Barker - 11 Any St. - Anytown - AR - 22000 - - 0320 - Al - Corsetti - 21 Any St. - Anytown - AR - 22000 - - 0330 - Al - Dershowitz - 31 Any St. - Anytown - AR - 22000 - - 0340 - Al - Engleman - 41 Any St. - Anytown - AR - 22000 - - 0350 - Al - Franklin - 51 Any St. - Anytown - AR - 22000 - - 0360 - Al - Grice - 61 Any St. - Anytown - AR - 22000 - - 0370 - Al - Haverford - 71 Any St. - Anytown - AR - 22000 - - 0380 - Al - Ilvedson - 81 Any St. - Anytown - AR - 22000 - - 0390 - Al - Jones - 91 Any St. - Anytown - AR - 22000 - - 0400 - Al - Aranow - 1 Any St. - Anytown - CA - 22000 - - 0410 - Al - Barker - 11 Any St. - Anytown - CA - 22000 - - 0420 - Al - Corsetti - 21 Any St. - Anytown - CA - 22000 - - 0430 - Al - Dershowitz - 31 Any St. - Anytown - CA - 22000 - - 0440 - Al - Engleman - 41 Any St. - Anytown - CA - 22000 - - 0450 - Al - Franklin - 51 Any St. - Anytown - CA - 22000 - - 0460 - Al - Grice - 61 Any St. - Anytown - CA - 22000 - - 0470 - Al - Haverford - 71 Any St. - Anytown - CA - 22000 - - 0480 - Al - Ilvedson - 81 Any St. - Anytown - CA - 22000 - - 0490 - Al - Jones - 91 Any St. - Anytown - CA - 22000 - - 0500 - Al - Aranow - 1 Any St. - Anytown - CO - 22000 - - 0510 - Al - Barker - 11 Any St. - Anytown - CO - 22000 - - 0520 - Al - Corsetti - 21 Any St. - Anytown - CO - 22000 - - 0530 - Al - Dershowitz - 31 Any St. - Anytown - CO - 22000 - - 0540 - Al - Engleman - 41 Any St. - Anytown - CO - 22000 - - 0550 - Al - Franklin - 51 Any St. - Anytown - CO - 22000 - - 0560 - Al - Grice - 61 Any St. - Anytown - CO - 22000 - - 0570 - Al - Haverford - 71 Any St. - Anytown - CO - 22000 - - 0580 - Al - Ilvedson - 81 Any St. - Anytown - CO - 22000 - - 0590 - Al - Jones - 91 Any St. - Anytown - CO - 22000 - - 0600 - Al - Aranow - 1 Any St. - Anytown - CT - 22000 - - 0610 - Al - Barker - 11 Any St. - Anytown - CT - 22000 - - 0620 - Al - Corsetti - 21 Any St. - Anytown - CT - 22000 - - 0630 - Al - Dershowitz - 31 Any St. - Anytown - CT - 22000 - - 0640 - Al - Engleman - 41 Any St. - Anytown - CT - 22000 - - 0650 - Al - Franklin - 51 Any St. - Anytown - CT - 22000 - - 0660 - Al - Grice - 61 Any St. - Anytown - CT - 22000 - - 0670 - Al - Haverford - 71 Any St. - Anytown - CT - 22000 - - 0680 - Al - Ilvedson - 81 Any St. - Anytown - CT - 22000 - - 0690 - Al - Jones - 91 Any St. - Anytown - CT - 22000 - - 0700 - Al - Aranow - 1 Any St. - Anytown - DE - 22000 - - 0710 - Al - Barker - 11 Any St. - Anytown - DE - 22000 - - 0720 - Al - Corsetti - 21 Any St. - Anytown - DE - 22000 - - 0730 - Al - Dershowitz - 31 Any St. - Anytown - DE - 22000 - - 0740 - Al - Engleman - 41 Any St. - Anytown - DE - 22000 - - 0750 - Al - Franklin - 51 Any St. - Anytown - DE - 22000 - - 0760 - Al - Grice - 61 Any St. - Anytown - DE - 22000 - - 0770 - Al - Haverford - 71 Any St. - Anytown - DE - 22000 - - 0780 - Al - Ilvedson - 81 Any St. - Anytown - DE - 22000 - - 0790 - Al - Jones - 91 Any St. - Anytown - DE - 22000 - - 0800 - Al - Aranow - 1 Any St. - Anytown - FL - 22000 - - 0810 - Al - Barker - 11 Any St. - Anytown - FL - 22000 - - 0820 - Al - Corsetti - 21 Any St. - Anytown - FL - 22000 - - 0830 - Al - Dershowitz - 31 Any St. - Anytown - FL - 22000 - - 0840 - Al - Engleman - 41 Any St. - Anytown - FL - 22000 - - 0850 - Al - Franklin - 51 Any St. - Anytown - FL - 22000 - - 0860 - Al - Grice - 61 Any St. - Anytown - FL - 22000 - - 0870 - Al - Haverford - 71 Any St. - Anytown - FL - 22000 - - 0880 - Al - Ilvedson - 81 Any St. - Anytown - FL - 22000 - - 0890 - Al - Jones - 91 Any St. - Anytown - FL - 22000 - - 0900 - Al - Aranow - 1 Any St. - Anytown - GA - 22000 - - 0910 - Al - Barker - 11 Any St. - Anytown - GA - 22000 - - 0920 - Al - Corsetti - 21 Any St. - Anytown - GA - 22000 - - 0930 - Al - Dershowitz - 31 Any St. - Anytown - GA - 22000 - - 0940 - Al - Engleman - 41 Any St. - Anytown - GA - 22000 - - 0950 - Al - Franklin - 51 Any St. - Anytown - GA - 22000 - - 0960 - Al - Grice - 61 Any St. - Anytown - GA - 22000 - - 0970 - Al - Haverford - 71 Any St. - Anytown - GA - 22000 - - 0980 - Al - Ilvedson - 81 Any St. - Anytown - GA - 22000 - - 0990 - Al - Jones - 91 Any St. - Anytown - GA - 22000 - - 0001 - Bob - Aranow - 2 Any St. - Anytown - AL - 22000 - - 0011 - Bob - Barker - 12 Any St. - Anytown - AL - 22000 - - 0021 - Bob - Corsetti - 22 Any St. - Anytown - AL - 22000 - - 0031 - Bob - Dershowitz - 32 Any St. - Anytown - AL - 22000 - - 0041 - Bob - Engleman - 42 Any St. - Anytown - AL - 22000 - - 0051 - Bob - Franklin - 52 Any St. - Anytown - AL - 22000 - - 0061 - Bob - Grice - 62 Any St. - Anytown - AL - 22000 - - 0071 - Bob - Haverford - 72 Any St. - Anytown - AL - 22000 - - 0081 - Bob - Ilvedson - 82 Any St. - Anytown - AL - 22000 - - 0091 - Bob - Jones - 92 Any St. - Anytown - AL - 22000 - - 0101 - Bob - Aranow - 2 Any St. - Anytown - AK - 22000 - - 0111 - Bob - Barker - 12 Any St. - Anytown - AK - 22000 - - 0121 - Bob - Corsetti - 22 Any St. - Anytown - AK - 22000 - - 0131 - Bob - Dershowitz - 32 Any St. - Anytown - AK - 22000 - - 0141 - Bob - Engleman - 42 Any St. - Anytown - AK - 22000 - - 0151 - Bob - Franklin - 52 Any St. - Anytown - AK - 22000 - - 0161 - Bob - Grice - 62 Any St. - Anytown - AK - 22000 - - 0171 - Bob - Haverford - 72 Any St. - Anytown - AK - 22000 - - 0181 - Bob - Ilvedson - 82 Any St. - Anytown - AK - 22000 - - 0191 - Bob - Jones - 92 Any St. - Anytown - AK - 22000 - - 0201 - Bob - Aranow - 2 Any St. - Anytown - AZ - 22000 - - 0211 - Bob - Barker - 12 Any St. - Anytown - AZ - 22000 - - 0221 - Bob - Corsetti - 22 Any St. - Anytown - AZ - 22000 - - 0231 - Bob - Dershowitz - 32 Any St. - Anytown - AZ - 22000 - - 0241 - Bob - Engleman - 42 Any St. - Anytown - AZ - 22000 - - 0251 - Bob - Franklin - 52 Any St. - Anytown - AZ - 22000 - - 0261 - Bob - Grice - 62 Any St. - Anytown - AZ - 22000 - - 0271 - Bob - Haverford - 72 Any St. - Anytown - AZ - 22000 - - 0281 - Bob - Ilvedson - 82 Any St. - Anytown - AZ - 22000 - - 0291 - Bob - Jones - 92 Any St. - Anytown - AZ - 22000 - - 0301 - Bob - Aranow - 2 Any St. - Anytown - AR - 22000 - - 0311 - Bob - Barker - 12 Any St. - Anytown - AR - 22000 - - 0321 - Bob - Corsetti - 22 Any St. - Anytown - AR - 22000 - - 0331 - Bob - Dershowitz - 32 Any St. - Anytown - AR - 22000 - - 0341 - Bob - Engleman - 42 Any St. - Anytown - AR - 22000 - - 0351 - Bob - Franklin - 52 Any St. - Anytown - AR - 22000 - - 0361 - Bob - Grice - 62 Any St. - Anytown - AR - 22000 - - 0371 - Bob - Haverford - 72 Any St. - Anytown - AR - 22000 - - 0381 - Bob - Ilvedson - 82 Any St. - Anytown - AR - 22000 - - 0391 - Bob - Jones - 92 Any St. - Anytown - AR - 22000 - - 0401 - Bob - Aranow - 2 Any St. - Anytown - CA - 22000 - - 0411 - Bob - Barker - 12 Any St. - Anytown - CA - 22000 - - 0421 - Bob - Corsetti - 22 Any St. - Anytown - CA - 22000 - - 0431 - Bob - Dershowitz - 32 Any St. - Anytown - CA - 22000 - - 0441 - Bob - Engleman - 42 Any St. - Anytown - CA - 22000 - - 0451 - Bob - Franklin - 52 Any St. - Anytown - CA - 22000 - - 0461 - Bob - Grice - 62 Any St. - Anytown - CA - 22000 - - 0471 - Bob - Haverford - 72 Any St. - Anytown - CA - 22000 - - 0481 - Bob - Ilvedson - 82 Any St. - Anytown - CA - 22000 - - 0491 - Bob - Jones - 92 Any St. - Anytown - CA - 22000 - - 0501 - Bob - Aranow - 2 Any St. - Anytown - CO - 22000 - - 0511 - Bob - Barker - 12 Any St. - Anytown - CO - 22000 - - 0521 - Bob - Corsetti - 22 Any St. - Anytown - CO - 22000 - - 0531 - Bob - Dershowitz - 32 Any St. - Anytown - CO - 22000 - - 0541 - Bob - Engleman - 42 Any St. - Anytown - CO - 22000 - - 0551 - Bob - Franklin - 52 Any St. - Anytown - CO - 22000 - - 0561 - Bob - Grice - 62 Any St. - Anytown - CO - 22000 - - 0571 - Bob - Haverford - 72 Any St. - Anytown - CO - 22000 - - 0581 - Bob - Ilvedson - 82 Any St. - Anytown - CO - 22000 - - 0591 - Bob - Jones - 92 Any St. - Anytown - CO - 22000 - - 0601 - Bob - Aranow - 2 Any St. - Anytown - CT - 22000 - - 0611 - Bob - Barker - 12 Any St. - Anytown - CT - 22000 - - 0621 - Bob - Corsetti - 22 Any St. - Anytown - CT - 22000 - - 0631 - Bob - Dershowitz - 32 Any St. - Anytown - CT - 22000 - - 0641 - Bob - Engleman - 42 Any St. - Anytown - CT - 22000 - - 0651 - Bob - Franklin - 52 Any St. - Anytown - CT - 22000 - - 0661 - Bob - Grice - 62 Any St. - Anytown - CT - 22000 - - 0671 - Bob - Haverford - 72 Any St. - Anytown - CT - 22000 - - 0681 - Bob - Ilvedson - 82 Any St. - Anytown - CT - 22000 - - 0691 - Bob - Jones - 92 Any St. - Anytown - CT - 22000 - - 0701 - Bob - Aranow - 2 Any St. - Anytown - DE - 22000 - - 0711 - Bob - Barker - 12 Any St. - Anytown - DE - 22000 - - 0721 - Bob - Corsetti - 22 Any St. - Anytown - DE - 22000 - - 0731 - Bob - Dershowitz - 32 Any St. - Anytown - DE - 22000 - - 0741 - Bob - Engleman - 42 Any St. - Anytown - DE - 22000 - - 0751 - Bob - Franklin - 52 Any St. - Anytown - DE - 22000 - - 0761 - Bob - Grice - 62 Any St. - Anytown - DE - 22000 - - 0771 - Bob - Haverford - 72 Any St. - Anytown - DE - 22000 - - 0781 - Bob - Ilvedson - 82 Any St. - Anytown - DE - 22000 - - 0791 - Bob - Jones - 92 Any St. - Anytown - DE - 22000 - - 0801 - Bob - Aranow - 2 Any St. - Anytown - FL - 22000 - - 0811 - Bob - Barker - 12 Any St. - Anytown - FL - 22000 - - 0821 - Bob - Corsetti - 22 Any St. - Anytown - FL - 22000 - - 0831 - Bob - Dershowitz - 32 Any St. - Anytown - FL - 22000 - - 0841 - Bob - Engleman - 42 Any St. - Anytown - FL - 22000 - - 0851 - Bob - Franklin - 52 Any St. - Anytown - FL - 22000 - - 0861 - Bob - Grice - 62 Any St. - Anytown - FL - 22000 - - 0871 - Bob - Haverford - 72 Any St. - Anytown - FL - 22000 - - 0881 - Bob - Ilvedson - 82 Any St. - Anytown - FL - 22000 - - 0891 - Bob - Jones - 92 Any St. - Anytown - FL - 22000 - - 0901 - Bob - Aranow - 2 Any St. - Anytown - GA - 22000 - - 0911 - Bob - Barker - 12 Any St. - Anytown - GA - 22000 - - 0921 - Bob - Corsetti - 22 Any St. - Anytown - GA - 22000 - - 0931 - Bob - Dershowitz - 32 Any St. - Anytown - GA - 22000 - - 0941 - Bob - Engleman - 42 Any St. - Anytown - GA - 22000 - - 0951 - Bob - Franklin - 52 Any St. - Anytown - GA - 22000 - - 0961 - Bob - Grice - 62 Any St. - Anytown - GA - 22000 - - 0971 - Bob - Haverford - 72 Any St. - Anytown - GA - 22000 - - 0981 - Bob - Ilvedson - 82 Any St. - Anytown - GA - 22000 - - 0991 - Bob - Jones - 92 Any St. - Anytown - GA - 22000 - - 0002 - Charles - Aranow - 3 Any St. - Anytown - AL - 22000 - - 0012 - Charles - Barker - 13 Any St. - Anytown - AL - 22000 - - 0022 - Charles - Corsetti - 23 Any St. - Anytown - AL - 22000 - - 0032 - Charles - Dershowitz - 33 Any St. - Anytown - AL - 22000 - - 0042 - Charles - Engleman - 43 Any St. - Anytown - AL - 22000 - - 0052 - Charles - Franklin - 53 Any St. - Anytown - AL - 22000 - - 0062 - Charles - Grice - 63 Any St. - Anytown - AL - 22000 - - 0072 - Charles - Haverford - 73 Any St. - Anytown - AL - 22000 - - 0082 - Charles - Ilvedson - 83 Any St. - Anytown - AL - 22000 - - 0092 - Charles - Jones - 93 Any St. - Anytown - AL - 22000 - - 0102 - Charles - Aranow - 3 Any St. - Anytown - AK - 22000 - - 0112 - Charles - Barker - 13 Any St. - Anytown - AK - 22000 - - 0122 - Charles - Corsetti - 23 Any St. - Anytown - AK - 22000 - - 0132 - Charles - Dershowitz - 33 Any St. - Anytown - AK - 22000 - - 0142 - Charles - Engleman - 43 Any St. - Anytown - AK - 22000 - - 0152 - Charles - Franklin - 53 Any St. - Anytown - AK - 22000 - - 0162 - Charles - Grice - 63 Any St. - Anytown - AK - 22000 - - 0172 - Charles - Haverford - 73 Any St. - Anytown - AK - 22000 - - 0182 - Charles - Ilvedson - 83 Any St. - Anytown - AK - 22000 - - 0192 - Charles - Jones - 93 Any St. - Anytown - AK - 22000 - - 0202 - Charles - Aranow - 3 Any St. - Anytown - AZ - 22000 - - 0212 - Charles - Barker - 13 Any St. - Anytown - AZ - 22000 - - 0222 - Charles - Corsetti - 23 Any St. - Anytown - AZ - 22000 - - 0232 - Charles - Dershowitz - 33 Any St. - Anytown - AZ - 22000 - - 0242 - Charles - Engleman - 43 Any St. - Anytown - AZ - 22000 - - 0252 - Charles - Franklin - 53 Any St. - Anytown - AZ - 22000 - - 0262 - Charles - Grice - 63 Any St. - Anytown - AZ - 22000 - - 0272 - Charles - Haverford - 73 Any St. - Anytown - AZ - 22000 - - 0282 - Charles - Ilvedson - 83 Any St. - Anytown - AZ - 22000 - - 0292 - Charles - Jones - 93 Any St. - Anytown - AZ - 22000 - - 0302 - Charles - Aranow - 3 Any St. - Anytown - AR - 22000 - - 0312 - Charles - Barker - 13 Any St. - Anytown - AR - 22000 - - 0322 - Charles - Corsetti - 23 Any St. - Anytown - AR - 22000 - - 0332 - Charles - Dershowitz - 33 Any St. - Anytown - AR - 22000 - - 0342 - Charles - Engleman - 43 Any St. - Anytown - AR - 22000 - - 0352 - Charles - Franklin - 53 Any St. - Anytown - AR - 22000 - - 0362 - Charles - Grice - 63 Any St. - Anytown - AR - 22000 - - 0372 - Charles - Haverford - 73 Any St. - Anytown - AR - 22000 - - 0382 - Charles - Ilvedson - 83 Any St. - Anytown - AR - 22000 - - 0392 - Charles - Jones - 93 Any St. - Anytown - AR - 22000 - - 0402 - Charles - Aranow - 3 Any St. - Anytown - CA - 22000 - - 0412 - Charles - Barker - 13 Any St. - Anytown - CA - 22000 - - 0422 - Charles - Corsetti - 23 Any St. - Anytown - CA - 22000 - - 0432 - Charles - Dershowitz - 33 Any St. - Anytown - CA - 22000 - - 0442 - Charles - Engleman - 43 Any St. - Anytown - CA - 22000 - - 0452 - Charles - Franklin - 53 Any St. - Anytown - CA - 22000 - - 0462 - Charles - Grice - 63 Any St. - Anytown - CA - 22000 - - 0472 - Charles - Haverford - 73 Any St. - Anytown - CA - 22000 - - 0482 - Charles - Ilvedson - 83 Any St. - Anytown - CA - 22000 - - 0492 - Charles - Jones - 93 Any St. - Anytown - CA - 22000 - - 0502 - Charles - Aranow - 3 Any St. - Anytown - CO - 22000 - - 0512 - Charles - Barker - 13 Any St. - Anytown - CO - 22000 - - 0522 - Charles - Corsetti - 23 Any St. - Anytown - CO - 22000 - - 0532 - Charles - Dershowitz - 33 Any St. - Anytown - CO - 22000 - - 0542 - Charles - Engleman - 43 Any St. - Anytown - CO - 22000 - - 0552 - Charles - Franklin - 53 Any St. - Anytown - CO - 22000 - - 0562 - Charles - Grice - 63 Any St. - Anytown - CO - 22000 - - 0572 - Charles - Haverford - 73 Any St. - Anytown - CO - 22000 - - 0582 - Charles - Ilvedson - 83 Any St. - Anytown - CO - 22000 - - 0592 - Charles - Jones - 93 Any St. - Anytown - CO - 22000 - - 0602 - Charles - Aranow - 3 Any St. - Anytown - CT - 22000 - - 0612 - Charles - Barker - 13 Any St. - Anytown - CT - 22000 - - 0622 - Charles - Corsetti - 23 Any St. - Anytown - CT - 22000 - - 0632 - Charles - Dershowitz - 33 Any St. - Anytown - CT - 22000 - - 0642 - Charles - Engleman - 43 Any St. - Anytown - CT - 22000 - - 0652 - Charles - Franklin - 53 Any St. - Anytown - CT - 22000 - - 0662 - Charles - Grice - 63 Any St. - Anytown - CT - 22000 - - 0672 - Charles - Haverford - 73 Any St. - Anytown - CT - 22000 - - 0682 - Charles - Ilvedson - 83 Any St. - Anytown - CT - 22000 - - 0692 - Charles - Jones - 93 Any St. - Anytown - CT - 22000 - - 0702 - Charles - Aranow - 3 Any St. - Anytown - DE - 22000 - - 0712 - Charles - Barker - 13 Any St. - Anytown - DE - 22000 - - 0722 - Charles - Corsetti - 23 Any St. - Anytown - DE - 22000 - - 0732 - Charles - Dershowitz - 33 Any St. - Anytown - DE - 22000 - - 0742 - Charles - Engleman - 43 Any St. - Anytown - DE - 22000 - - 0752 - Charles - Franklin - 53 Any St. - Anytown - DE - 22000 - - 0762 - Charles - Grice - 63 Any St. - Anytown - DE - 22000 - - 0772 - Charles - Haverford - 73 Any St. - Anytown - DE - 22000 - - 0782 - Charles - Ilvedson - 83 Any St. - Anytown - DE - 22000 - - 0792 - Charles - Jones - 93 Any St. - Anytown - DE - 22000 - - 0802 - Charles - Aranow - 3 Any St. - Anytown - FL - 22000 - - 0812 - Charles - Barker - 13 Any St. - Anytown - FL - 22000 - - 0822 - Charles - Corsetti - 23 Any St. - Anytown - FL - 22000 - - 0832 - Charles - Dershowitz - 33 Any St. - Anytown - FL - 22000 - - 0842 - Charles - Engleman - 43 Any St. - Anytown - FL - 22000 - - 0852 - Charles - Franklin - 53 Any St. - Anytown - FL - 22000 - - 0862 - Charles - Grice - 63 Any St. - Anytown - FL - 22000 - - 0872 - Charles - Haverford - 73 Any St. - Anytown - FL - 22000 - - 0882 - Charles - Ilvedson - 83 Any St. - Anytown - FL - 22000 - - 0892 - Charles - Jones - 93 Any St. - Anytown - FL - 22000 - - 0902 - Charles - Aranow - 3 Any St. - Anytown - GA - 22000 - - 0912 - Charles - Barker - 13 Any St. - Anytown - GA - 22000 - - 0922 - Charles - Corsetti - 23 Any St. - Anytown - GA - 22000 - - 0932 - Charles - Dershowitz - 33 Any St. - Anytown - GA - 22000 - - 0942 - Charles - Engleman - 43 Any St. - Anytown - GA - 22000 - - 0952 - Charles - Franklin - 53 Any St. - Anytown - GA - 22000 - - 0962 - Charles - Grice - 63 Any St. - Anytown - GA - 22000 - - 0972 - Charles - Haverford - 73 Any St. - Anytown - GA - 22000 - - 0982 - Charles - Ilvedson - 83 Any St. - Anytown - GA - 22000 - - 0992 - Charles - Jones - 93 Any St. - Anytown - GA - 22000 - - 0003 - David - Aranow - 4 Any St. - Anytown - AL - 22000 - - 0013 - David - Barker - 14 Any St. - Anytown - AL - 22000 - - 0023 - David - Corsetti - 24 Any St. - Anytown - AL - 22000 - - 0033 - David - Dershowitz - 34 Any St. - Anytown - AL - 22000 - - 0043 - David - Engleman - 44 Any St. - Anytown - AL - 22000 - - 0053 - David - Franklin - 54 Any St. - Anytown - AL - 22000 - - 0063 - David - Grice - 64 Any St. - Anytown - AL - 22000 - - 0073 - David - Haverford - 74 Any St. - Anytown - AL - 22000 - - 0083 - David - Ilvedson - 84 Any St. - Anytown - AL - 22000 - - 0093 - David - Jones - 94 Any St. - Anytown - AL - 22000 - - 0103 - David - Aranow - 4 Any St. - Anytown - AK - 22000 - - 0113 - David - Barker - 14 Any St. - Anytown - AK - 22000 - - 0123 - David - Corsetti - 24 Any St. - Anytown - AK - 22000 - - 0133 - David - Dershowitz - 34 Any St. - Anytown - AK - 22000 - - 0143 - David - Engleman - 44 Any St. - Anytown - AK - 22000 - - 0153 - David - Franklin - 54 Any St. - Anytown - AK - 22000 - - 0163 - David - Grice - 64 Any St. - Anytown - AK - 22000 - - 0173 - David - Haverford - 74 Any St. - Anytown - AK - 22000 - - 0183 - David - Ilvedson - 84 Any St. - Anytown - AK - 22000 - - 0193 - David - Jones - 94 Any St. - Anytown - AK - 22000 - - 0203 - David - Aranow - 4 Any St. - Anytown - AZ - 22000 - - 0213 - David - Barker - 14 Any St. - Anytown - AZ - 22000 - - 0223 - David - Corsetti - 24 Any St. - Anytown - AZ - 22000 - - 0233 - David - Dershowitz - 34 Any St. - Anytown - AZ - 22000 - - 0243 - David - Engleman - 44 Any St. - Anytown - AZ - 22000 - - 0253 - David - Franklin - 54 Any St. - Anytown - AZ - 22000 - - 0263 - David - Grice - 64 Any St. - Anytown - AZ - 22000 - - 0273 - David - Haverford - 74 Any St. - Anytown - AZ - 22000 - - 0283 - David - Ilvedson - 84 Any St. - Anytown - AZ - 22000 - - 0293 - David - Jones - 94 Any St. - Anytown - AZ - 22000 - - 0303 - David - Aranow - 4 Any St. - Anytown - AR - 22000 - - 0313 - David - Barker - 14 Any St. - Anytown - AR - 22000 - - 0323 - David - Corsetti - 24 Any St. - Anytown - AR - 22000 - - 0333 - David - Dershowitz - 34 Any St. - Anytown - AR - 22000 - - 0343 - David - Engleman - 44 Any St. - Anytown - AR - 22000 - - 0353 - David - Franklin - 54 Any St. - Anytown - AR - 22000 - - 0363 - David - Grice - 64 Any St. - Anytown - AR - 22000 - - 0373 - David - Haverford - 74 Any St. - Anytown - AR - 22000 - - 0383 - David - Ilvedson - 84 Any St. - Anytown - AR - 22000 - - 0393 - David - Jones - 94 Any St. - Anytown - AR - 22000 - - 0403 - David - Aranow - 4 Any St. - Anytown - CA - 22000 - - 0413 - David - Barker - 14 Any St. - Anytown - CA - 22000 - - 0423 - David - Corsetti - 24 Any St. - Anytown - CA - 22000 - - 0433 - David - Dershowitz - 34 Any St. - Anytown - CA - 22000 - - 0443 - David - Engleman - 44 Any St. - Anytown - CA - 22000 - - 0453 - David - Franklin - 54 Any St. - Anytown - CA - 22000 - - 0463 - David - Grice - 64 Any St. - Anytown - CA - 22000 - - 0473 - David - Haverford - 74 Any St. - Anytown - CA - 22000 - - 0483 - David - Ilvedson - 84 Any St. - Anytown - CA - 22000 - - 0493 - David - Jones - 94 Any St. - Anytown - CA - 22000 - - 0503 - David - Aranow - 4 Any St. - Anytown - CO - 22000 - - 0513 - David - Barker - 14 Any St. - Anytown - CO - 22000 - - 0523 - David - Corsetti - 24 Any St. - Anytown - CO - 22000 - - 0533 - David - Dershowitz - 34 Any St. - Anytown - CO - 22000 - - 0543 - David - Engleman - 44 Any St. - Anytown - CO - 22000 - - 0553 - David - Franklin - 54 Any St. - Anytown - CO - 22000 - - 0563 - David - Grice - 64 Any St. - Anytown - CO - 22000 - - 0573 - David - Haverford - 74 Any St. - Anytown - CO - 22000 - - 0583 - David - Ilvedson - 84 Any St. - Anytown - CO - 22000 - - 0593 - David - Jones - 94 Any St. - Anytown - CO - 22000 - - 0603 - David - Aranow - 4 Any St. - Anytown - CT - 22000 - - 0613 - David - Barker - 14 Any St. - Anytown - CT - 22000 - - 0623 - David - Corsetti - 24 Any St. - Anytown - CT - 22000 - - 0633 - David - Dershowitz - 34 Any St. - Anytown - CT - 22000 - - 0643 - David - Engleman - 44 Any St. - Anytown - CT - 22000 - - 0653 - David - Franklin - 54 Any St. - Anytown - CT - 22000 - - 0663 - David - Grice - 64 Any St. - Anytown - CT - 22000 - - 0673 - David - Haverford - 74 Any St. - Anytown - CT - 22000 - - 0683 - David - Ilvedson - 84 Any St. - Anytown - CT - 22000 - - 0693 - David - Jones - 94 Any St. - Anytown - CT - 22000 - - 0703 - David - Aranow - 4 Any St. - Anytown - DE - 22000 - - 0713 - David - Barker - 14 Any St. - Anytown - DE - 22000 - - 0723 - David - Corsetti - 24 Any St. - Anytown - DE - 22000 - - 0733 - David - Dershowitz - 34 Any St. - Anytown - DE - 22000 - - 0743 - David - Engleman - 44 Any St. - Anytown - DE - 22000 - - 0753 - David - Franklin - 54 Any St. - Anytown - DE - 22000 - - 0763 - David - Grice - 64 Any St. - Anytown - DE - 22000 - - 0773 - David - Haverford - 74 Any St. - Anytown - DE - 22000 - - 0783 - David - Ilvedson - 84 Any St. - Anytown - DE - 22000 - - 0793 - David - Jones - 94 Any St. - Anytown - DE - 22000 - - 0803 - David - Aranow - 4 Any St. - Anytown - FL - 22000 - - 0813 - David - Barker - 14 Any St. - Anytown - FL - 22000 - - 0823 - David - Corsetti - 24 Any St. - Anytown - FL - 22000 - - 0833 - David - Dershowitz - 34 Any St. - Anytown - FL - 22000 - - 0843 - David - Engleman - 44 Any St. - Anytown - FL - 22000 - - 0853 - David - Franklin - 54 Any St. - Anytown - FL - 22000 - - 0863 - David - Grice - 64 Any St. - Anytown - FL - 22000 - - 0873 - David - Haverford - 74 Any St. - Anytown - FL - 22000 - - 0883 - David - Ilvedson - 84 Any St. - Anytown - FL - 22000 - - 0893 - David - Jones - 94 Any St. - Anytown - FL - 22000 - - 0903 - David - Aranow - 4 Any St. - Anytown - GA - 22000 - - 0913 - David - Barker - 14 Any St. - Anytown - GA - 22000 - - 0923 - David - Corsetti - 24 Any St. - Anytown - GA - 22000 - - 0933 - David - Dershowitz - 34 Any St. - Anytown - GA - 22000 - - 0943 - David - Engleman - 44 Any St. - Anytown - GA - 22000 - - 0953 - David - Franklin - 54 Any St. - Anytown - GA - 22000 - - 0963 - David - Grice - 64 Any St. - Anytown - GA - 22000 - - 0973 - David - Haverford - 74 Any St. - Anytown - GA - 22000 - - 0983 - David - Ilvedson - 84 Any St. - Anytown - GA - 22000 - - 0993 - David - Jones - 94 Any St. - Anytown - GA - 22000 - - 0004 - Egon - Aranow - 5 Any St. - Anytown - AL - 22000 - - 0014 - Egon - Barker - 15 Any St. - Anytown - AL - 22000 - - 0024 - Egon - Corsetti - 25 Any St. - Anytown - AL - 22000 - - 0034 - Egon - Dershowitz - 35 Any St. - Anytown - AL - 22000 - - 0044 - Egon - Engleman - 45 Any St. - Anytown - AL - 22000 - - 0054 - Egon - Franklin - 55 Any St. - Anytown - AL - 22000 - - 0064 - Egon - Grice - 65 Any St. - Anytown - AL - 22000 - - 0074 - Egon - Haverford - 75 Any St. - Anytown - AL - 22000 - - 0084 - Egon - Ilvedson - 85 Any St. - Anytown - AL - 22000 - - 0094 - Egon - Jones - 95 Any St. - Anytown - AL - 22000 - - 0104 - Egon - Aranow - 5 Any St. - Anytown - AK - 22000 - - 0114 - Egon - Barker - 15 Any St. - Anytown - AK - 22000 - - 0124 - Egon - Corsetti - 25 Any St. - Anytown - AK - 22000 - - 0134 - Egon - Dershowitz - 35 Any St. - Anytown - AK - 22000 - - 0144 - Egon - Engleman - 45 Any St. - Anytown - AK - 22000 - - 0154 - Egon - Franklin - 55 Any St. - Anytown - AK - 22000 - - 0164 - Egon - Grice - 65 Any St. - Anytown - AK - 22000 - - 0174 - Egon - Haverford - 75 Any St. - Anytown - AK - 22000 - - 0184 - Egon - Ilvedson - 85 Any St. - Anytown - AK - 22000 - - 0194 - Egon - Jones - 95 Any St. - Anytown - AK - 22000 - - 0204 - Egon - Aranow - 5 Any St. - Anytown - AZ - 22000 - - 0214 - Egon - Barker - 15 Any St. - Anytown - AZ - 22000 - - 0224 - Egon - Corsetti - 25 Any St. - Anytown - AZ - 22000 - - 0234 - Egon - Dershowitz - 35 Any St. - Anytown - AZ - 22000 - - 0244 - Egon - Engleman - 45 Any St. - Anytown - AZ - 22000 - - 0254 - Egon - Franklin - 55 Any St. - Anytown - AZ - 22000 - - 0264 - Egon - Grice - 65 Any St. - Anytown - AZ - 22000 - - 0274 - Egon - Haverford - 75 Any St. - Anytown - AZ - 22000 - - 0284 - Egon - Ilvedson - 85 Any St. - Anytown - AZ - 22000 - - 0294 - Egon - Jones - 95 Any St. - Anytown - AZ - 22000 - - 0304 - Egon - Aranow - 5 Any St. - Anytown - AR - 22000 - - 0314 - Egon - Barker - 15 Any St. - Anytown - AR - 22000 - - 0324 - Egon - Corsetti - 25 Any St. - Anytown - AR - 22000 - - 0334 - Egon - Dershowitz - 35 Any St. - Anytown - AR - 22000 - - 0344 - Egon - Engleman - 45 Any St. - Anytown - AR - 22000 - - 0354 - Egon - Franklin - 55 Any St. - Anytown - AR - 22000 - - 0364 - Egon - Grice - 65 Any St. - Anytown - AR - 22000 - - 0374 - Egon - Haverford - 75 Any St. - Anytown - AR - 22000 - - 0384 - Egon - Ilvedson - 85 Any St. - Anytown - AR - 22000 - - 0394 - Egon - Jones - 95 Any St. - Anytown - AR - 22000 - - 0404 - Egon - Aranow - 5 Any St. - Anytown - CA - 22000 - - 0414 - Egon - Barker - 15 Any St. - Anytown - CA - 22000 - - 0424 - Egon - Corsetti - 25 Any St. - Anytown - CA - 22000 - - 0434 - Egon - Dershowitz - 35 Any St. - Anytown - CA - 22000 - - 0444 - Egon - Engleman - 45 Any St. - Anytown - CA - 22000 - - 0454 - Egon - Franklin - 55 Any St. - Anytown - CA - 22000 - - 0464 - Egon - Grice - 65 Any St. - Anytown - CA - 22000 - - 0474 - Egon - Haverford - 75 Any St. - Anytown - CA - 22000 - - 0484 - Egon - Ilvedson - 85 Any St. - Anytown - CA - 22000 - - 0494 - Egon - Jones - 95 Any St. - Anytown - CA - 22000 - - 0504 - Egon - Aranow - 5 Any St. - Anytown - CO - 22000 - - 0514 - Egon - Barker - 15 Any St. - Anytown - CO - 22000 - - 0524 - Egon - Corsetti - 25 Any St. - Anytown - CO - 22000 - - 0534 - Egon - Dershowitz - 35 Any St. - Anytown - CO - 22000 - - 0544 - Egon - Engleman - 45 Any St. - Anytown - CO - 22000 - - 0554 - Egon - Franklin - 55 Any St. - Anytown - CO - 22000 - - 0564 - Egon - Grice - 65 Any St. - Anytown - CO - 22000 - - 0574 - Egon - Haverford - 75 Any St. - Anytown - CO - 22000 - - 0584 - Egon - Ilvedson - 85 Any St. - Anytown - CO - 22000 - - 0594 - Egon - Jones - 95 Any St. - Anytown - CO - 22000 - - 0604 - Egon - Aranow - 5 Any St. - Anytown - CT - 22000 - - 0614 - Egon - Barker - 15 Any St. - Anytown - CT - 22000 - - 0624 - Egon - Corsetti - 25 Any St. - Anytown - CT - 22000 - - 0634 - Egon - Dershowitz - 35 Any St. - Anytown - CT - 22000 - - 0644 - Egon - Engleman - 45 Any St. - Anytown - CT - 22000 - - 0654 - Egon - Franklin - 55 Any St. - Anytown - CT - 22000 - - 0664 - Egon - Grice - 65 Any St. - Anytown - CT - 22000 - - 0674 - Egon - Haverford - 75 Any St. - Anytown - CT - 22000 - - 0684 - Egon - Ilvedson - 85 Any St. - Anytown - CT - 22000 - - 0694 - Egon - Jones - 95 Any St. - Anytown - CT - 22000 - - 0704 - Egon - Aranow - 5 Any St. - Anytown - DE - 22000 - - 0714 - Egon - Barker - 15 Any St. - Anytown - DE - 22000 - - 0724 - Egon - Corsetti - 25 Any St. - Anytown - DE - 22000 - - 0734 - Egon - Dershowitz - 35 Any St. - Anytown - DE - 22000 - - 0744 - Egon - Engleman - 45 Any St. - Anytown - DE - 22000 - - 0754 - Egon - Franklin - 55 Any St. - Anytown - DE - 22000 - - 0764 - Egon - Grice - 65 Any St. - Anytown - DE - 22000 - - 0774 - Egon - Haverford - 75 Any St. - Anytown - DE - 22000 - - 0784 - Egon - Ilvedson - 85 Any St. - Anytown - DE - 22000 - - 0794 - Egon - Jones - 95 Any St. - Anytown - DE - 22000 - - 0804 - Egon - Aranow - 5 Any St. - Anytown - FL - 22000 - - 0814 - Egon - Barker - 15 Any St. - Anytown - FL - 22000 - - 0824 - Egon - Corsetti - 25 Any St. - Anytown - FL - 22000 - - 0834 - Egon - Dershowitz - 35 Any St. - Anytown - FL - 22000 - - 0844 - Egon - Engleman - 45 Any St. - Anytown - FL - 22000 - - 0854 - Egon - Franklin - 55 Any St. - Anytown - FL - 22000 - - 0864 - Egon - Grice - 65 Any St. - Anytown - FL - 22000 - - 0874 - Egon - Haverford - 75 Any St. - Anytown - FL - 22000 - - 0884 - Egon - Ilvedson - 85 Any St. - Anytown - FL - 22000 - - 0894 - Egon - Jones - 95 Any St. - Anytown - FL - 22000 - - 0904 - Egon - Aranow - 5 Any St. - Anytown - GA - 22000 - - 0914 - Egon - Barker - 15 Any St. - Anytown - GA - 22000 - - 0924 - Egon - Corsetti - 25 Any St. - Anytown - GA - 22000 - - 0934 - Egon - Dershowitz - 35 Any St. - Anytown - GA - 22000 - - 0944 - Egon - Engleman - 45 Any St. - Anytown - GA - 22000 - - 0954 - Egon - Franklin - 55 Any St. - Anytown - GA - 22000 - - 0964 - Egon - Grice - 65 Any St. - Anytown - GA - 22000 - - 0974 - Egon - Haverford - 75 Any St. - Anytown - GA - 22000 - - 0984 - Egon - Ilvedson - 85 Any St. - Anytown - GA - 22000 - - 0994 - Egon - Jones - 95 Any St. - Anytown - GA - 22000 - - 0005 - Farbood - Aranow - 6 Any St. - Anytown - AL - 22000 - - 0015 - Farbood - Barker - 16 Any St. - Anytown - AL - 22000 - - 0025 - Farbood - Corsetti - 26 Any St. - Anytown - AL - 22000 - - 0035 - Farbood - Dershowitz - 36 Any St. - Anytown - AL - 22000 - - 0045 - Farbood - Engleman - 46 Any St. - Anytown - AL - 22000 - - 0055 - Farbood - Franklin - 56 Any St. - Anytown - AL - 22000 - - 0065 - Farbood - Grice - 66 Any St. - Anytown - AL - 22000 - - 0075 - Farbood - Haverford - 76 Any St. - Anytown - AL - 22000 - - 0085 - Farbood - Ilvedson - 86 Any St. - Anytown - AL - 22000 - - 0095 - Farbood - Jones - 96 Any St. - Anytown - AL - 22000 - - 0105 - Farbood - Aranow - 6 Any St. - Anytown - AK - 22000 - - 0115 - Farbood - Barker - 16 Any St. - Anytown - AK - 22000 - - 0125 - Farbood - Corsetti - 26 Any St. - Anytown - AK - 22000 - - 0135 - Farbood - Dershowitz - 36 Any St. - Anytown - AK - 22000 - - 0145 - Farbood - Engleman - 46 Any St. - Anytown - AK - 22000 - - 0155 - Farbood - Franklin - 56 Any St. - Anytown - AK - 22000 - - 0165 - Farbood - Grice - 66 Any St. - Anytown - AK - 22000 - - 0175 - Farbood - Haverford - 76 Any St. - Anytown - AK - 22000 - - 0185 - Farbood - Ilvedson - 86 Any St. - Anytown - AK - 22000 - - 0195 - Farbood - Jones - 96 Any St. - Anytown - AK - 22000 - - 0205 - Farbood - Aranow - 6 Any St. - Anytown - AZ - 22000 - - 0215 - Farbood - Barker - 16 Any St. - Anytown - AZ - 22000 - - 0225 - Farbood - Corsetti - 26 Any St. - Anytown - AZ - 22000 - - 0235 - Farbood - Dershowitz - 36 Any St. - Anytown - AZ - 22000 - - 0245 - Farbood - Engleman - 46 Any St. - Anytown - AZ - 22000 - - 0255 - Farbood - Franklin - 56 Any St. - Anytown - AZ - 22000 - - 0265 - Farbood - Grice - 66 Any St. - Anytown - AZ - 22000 - - 0275 - Farbood - Haverford - 76 Any St. - Anytown - AZ - 22000 - - 0285 - Farbood - Ilvedson - 86 Any St. - Anytown - AZ - 22000 - - 0295 - Farbood - Jones - 96 Any St. - Anytown - AZ - 22000 - - 0305 - Farbood - Aranow - 6 Any St. - Anytown - AR - 22000 - - 0315 - Farbood - Barker - 16 Any St. - Anytown - AR - 22000 - - 0325 - Farbood - Corsetti - 26 Any St. - Anytown - AR - 22000 - - 0335 - Farbood - Dershowitz - 36 Any St. - Anytown - AR - 22000 - - 0345 - Farbood - Engleman - 46 Any St. - Anytown - AR - 22000 - - 0355 - Farbood - Franklin - 56 Any St. - Anytown - AR - 22000 - - 0365 - Farbood - Grice - 66 Any St. - Anytown - AR - 22000 - - 0375 - Farbood - Haverford - 76 Any St. - Anytown - AR - 22000 - - 0385 - Farbood - Ilvedson - 86 Any St. - Anytown - AR - 22000 - - 0395 - Farbood - Jones - 96 Any St. - Anytown - AR - 22000 - - 0405 - Farbood - Aranow - 6 Any St. - Anytown - CA - 22000 - - 0415 - Farbood - Barker - 16 Any St. - Anytown - CA - 22000 - - 0425 - Farbood - Corsetti - 26 Any St. - Anytown - CA - 22000 - - 0435 - Farbood - Dershowitz - 36 Any St. - Anytown - CA - 22000 - - 0445 - Farbood - Engleman - 46 Any St. - Anytown - CA - 22000 - - 0455 - Farbood - Franklin - 56 Any St. - Anytown - CA - 22000 - - 0465 - Farbood - Grice - 66 Any St. - Anytown - CA - 22000 - - 0475 - Farbood - Haverford - 76 Any St. - Anytown - CA - 22000 - - 0485 - Farbood - Ilvedson - 86 Any St. - Anytown - CA - 22000 - - 0495 - Farbood - Jones - 96 Any St. - Anytown - CA - 22000 - - 0505 - Farbood - Aranow - 6 Any St. - Anytown - CO - 22000 - - 0515 - Farbood - Barker - 16 Any St. - Anytown - CO - 22000 - - 0525 - Farbood - Corsetti - 26 Any St. - Anytown - CO - 22000 - - 0535 - Farbood - Dershowitz - 36 Any St. - Anytown - CO - 22000 - - 0545 - Farbood - Engleman - 46 Any St. - Anytown - CO - 22000 - - 0555 - Farbood - Franklin - 56 Any St. - Anytown - CO - 22000 - - 0565 - Farbood - Grice - 66 Any St. - Anytown - CO - 22000 - - 0575 - Farbood - Haverford - 76 Any St. - Anytown - CO - 22000 - - 0585 - Farbood - Ilvedson - 86 Any St. - Anytown - CO - 22000 - - 0595 - Farbood - Jones - 96 Any St. - Anytown - CO - 22000 - - 0605 - Farbood - Aranow - 6 Any St. - Anytown - CT - 22000 - - 0615 - Farbood - Barker - 16 Any St. - Anytown - CT - 22000 - - 0625 - Farbood - Corsetti - 26 Any St. - Anytown - CT - 22000 - - 0635 - Farbood - Dershowitz - 36 Any St. - Anytown - CT - 22000 - - 0645 - Farbood - Engleman - 46 Any St. - Anytown - CT - 22000 - - 0655 - Farbood - Franklin - 56 Any St. - Anytown - CT - 22000 - - 0665 - Farbood - Grice - 66 Any St. - Anytown - CT - 22000 - - 0675 - Farbood - Haverford - 76 Any St. - Anytown - CT - 22000 - - 0685 - Farbood - Ilvedson - 86 Any St. - Anytown - CT - 22000 - - 0695 - Farbood - Jones - 96 Any St. - Anytown - CT - 22000 - - 0705 - Farbood - Aranow - 6 Any St. - Anytown - DE - 22000 - - 0715 - Farbood - Barker - 16 Any St. - Anytown - DE - 22000 - - 0725 - Farbood - Corsetti - 26 Any St. - Anytown - DE - 22000 - - 0735 - Farbood - Dershowitz - 36 Any St. - Anytown - DE - 22000 - - 0745 - Farbood - Engleman - 46 Any St. - Anytown - DE - 22000 - - 0755 - Farbood - Franklin - 56 Any St. - Anytown - DE - 22000 - - 0765 - Farbood - Grice - 66 Any St. - Anytown - DE - 22000 - - 0775 - Farbood - Haverford - 76 Any St. - Anytown - DE - 22000 - - 0785 - Farbood - Ilvedson - 86 Any St. - Anytown - DE - 22000 - - 0795 - Farbood - Jones - 96 Any St. - Anytown - DE - 22000 - - 0805 - Farbood - Aranow - 6 Any St. - Anytown - FL - 22000 - - 0815 - Farbood - Barker - 16 Any St. - Anytown - FL - 22000 - - 0825 - Farbood - Corsetti - 26 Any St. - Anytown - FL - 22000 - - 0835 - Farbood - Dershowitz - 36 Any St. - Anytown - FL - 22000 - - 0845 - Farbood - Engleman - 46 Any St. - Anytown - FL - 22000 - - 0855 - Farbood - Franklin - 56 Any St. - Anytown - FL - 22000 - - 0865 - Farbood - Grice - 66 Any St. - Anytown - FL - 22000 - - 0875 - Farbood - Haverford - 76 Any St. - Anytown - FL - 22000 - - 0885 - Farbood - Ilvedson - 86 Any St. - Anytown - FL - 22000 - - 0895 - Farbood - Jones - 96 Any St. - Anytown - FL - 22000 - - 0905 - Farbood - Aranow - 6 Any St. - Anytown - GA - 22000 - - 0915 - Farbood - Barker - 16 Any St. - Anytown - GA - 22000 - - 0925 - Farbood - Corsetti - 26 Any St. - Anytown - GA - 22000 - - 0935 - Farbood - Dershowitz - 36 Any St. - Anytown - GA - 22000 - - 0945 - Farbood - Engleman - 46 Any St. - Anytown - GA - 22000 - - 0955 - Farbood - Franklin - 56 Any St. - Anytown - GA - 22000 - - 0965 - Farbood - Grice - 66 Any St. - Anytown - GA - 22000 - - 0975 - Farbood - Haverford - 76 Any St. - Anytown - GA - 22000 - - 0985 - Farbood - Ilvedson - 86 Any St. - Anytown - GA - 22000 - - 0995 - Farbood - Jones - 96 Any St. - Anytown - GA - 22000 - - 0006 - George - Aranow - 7 Any St. - Anytown - AL - 22000 - - 0016 - George - Barker - 17 Any St. - Anytown - AL - 22000 - - 0026 - George - Corsetti - 27 Any St. - Anytown - AL - 22000 - - 0036 - George - Dershowitz - 37 Any St. - Anytown - AL - 22000 - - 0046 - George - Engleman - 47 Any St. - Anytown - AL - 22000 - - 0056 - George - Franklin - 57 Any St. - Anytown - AL - 22000 - - 0066 - George - Grice - 67 Any St. - Anytown - AL - 22000 - - 0076 - George - Haverford - 77 Any St. - Anytown - AL - 22000 - - 0086 - George - Ilvedson - 87 Any St. - Anytown - AL - 22000 - - 0096 - George - Jones - 97 Any St. - Anytown - AL - 22000 - - 0106 - George - Aranow - 7 Any St. - Anytown - AK - 22000 - - 0116 - George - Barker - 17 Any St. - Anytown - AK - 22000 - - 0126 - George - Corsetti - 27 Any St. - Anytown - AK - 22000 - - 0136 - George - Dershowitz - 37 Any St. - Anytown - AK - 22000 - - 0146 - George - Engleman - 47 Any St. - Anytown - AK - 22000 - - 0156 - George - Franklin - 57 Any St. - Anytown - AK - 22000 - - 0166 - George - Grice - 67 Any St. - Anytown - AK - 22000 - - 0176 - George - Haverford - 77 Any St. - Anytown - AK - 22000 - - 0186 - George - Ilvedson - 87 Any St. - Anytown - AK - 22000 - - 0196 - George - Jones - 97 Any St. - Anytown - AK - 22000 - - 0206 - George - Aranow - 7 Any St. - Anytown - AZ - 22000 - - 0216 - George - Barker - 17 Any St. - Anytown - AZ - 22000 - - 0226 - George - Corsetti - 27 Any St. - Anytown - AZ - 22000 - - 0236 - George - Dershowitz - 37 Any St. - Anytown - AZ - 22000 - - 0246 - George - Engleman - 47 Any St. - Anytown - AZ - 22000 - - 0256 - George - Franklin - 57 Any St. - Anytown - AZ - 22000 - - 0266 - George - Grice - 67 Any St. - Anytown - AZ - 22000 - - 0276 - George - Haverford - 77 Any St. - Anytown - AZ - 22000 - - 0286 - George - Ilvedson - 87 Any St. - Anytown - AZ - 22000 - - 0296 - George - Jones - 97 Any St. - Anytown - AZ - 22000 - - 0306 - George - Aranow - 7 Any St. - Anytown - AR - 22000 - - 0316 - George - Barker - 17 Any St. - Anytown - AR - 22000 - - 0326 - George - Corsetti - 27 Any St. - Anytown - AR - 22000 - - 0336 - George - Dershowitz - 37 Any St. - Anytown - AR - 22000 - - 0346 - George - Engleman - 47 Any St. - Anytown - AR - 22000 - - 0356 - George - Franklin - 57 Any St. - Anytown - AR - 22000 - - 0366 - George - Grice - 67 Any St. - Anytown - AR - 22000 - - 0376 - George - Haverford - 77 Any St. - Anytown - AR - 22000 - - 0386 - George - Ilvedson - 87 Any St. - Anytown - AR - 22000 - - 0396 - George - Jones - 97 Any St. - Anytown - AR - 22000 - - 0406 - George - Aranow - 7 Any St. - Anytown - CA - 22000 - - 0416 - George - Barker - 17 Any St. - Anytown - CA - 22000 - - 0426 - George - Corsetti - 27 Any St. - Anytown - CA - 22000 - - 0436 - George - Dershowitz - 37 Any St. - Anytown - CA - 22000 - - 0446 - George - Engleman - 47 Any St. - Anytown - CA - 22000 - - 0456 - George - Franklin - 57 Any St. - Anytown - CA - 22000 - - 0466 - George - Grice - 67 Any St. - Anytown - CA - 22000 - - 0476 - George - Haverford - 77 Any St. - Anytown - CA - 22000 - - 0486 - George - Ilvedson - 87 Any St. - Anytown - CA - 22000 - - 0496 - George - Jones - 97 Any St. - Anytown - CA - 22000 - - 0506 - George - Aranow - 7 Any St. - Anytown - CO - 22000 - - 0516 - George - Barker - 17 Any St. - Anytown - CO - 22000 - - 0526 - George - Corsetti - 27 Any St. - Anytown - CO - 22000 - - 0536 - George - Dershowitz - 37 Any St. - Anytown - CO - 22000 - - 0546 - George - Engleman - 47 Any St. - Anytown - CO - 22000 - - 0556 - George - Franklin - 57 Any St. - Anytown - CO - 22000 - - 0566 - George - Grice - 67 Any St. - Anytown - CO - 22000 - - 0576 - George - Haverford - 77 Any St. - Anytown - CO - 22000 - - 0586 - George - Ilvedson - 87 Any St. - Anytown - CO - 22000 - - 0596 - George - Jones - 97 Any St. - Anytown - CO - 22000 - - 0606 - George - Aranow - 7 Any St. - Anytown - CT - 22000 - - 0616 - George - Barker - 17 Any St. - Anytown - CT - 22000 - - 0626 - George - Corsetti - 27 Any St. - Anytown - CT - 22000 - - 0636 - George - Dershowitz - 37 Any St. - Anytown - CT - 22000 - - 0646 - George - Engleman - 47 Any St. - Anytown - CT - 22000 - - 0656 - George - Franklin - 57 Any St. - Anytown - CT - 22000 - - 0666 - George - Grice - 67 Any St. - Anytown - CT - 22000 - - 0676 - George - Haverford - 77 Any St. - Anytown - CT - 22000 - - 0686 - George - Ilvedson - 87 Any St. - Anytown - CT - 22000 - - 0696 - George - Jones - 97 Any St. - Anytown - CT - 22000 - - 0706 - George - Aranow - 7 Any St. - Anytown - DE - 22000 - - 0716 - George - Barker - 17 Any St. - Anytown - DE - 22000 - - 0726 - George - Corsetti - 27 Any St. - Anytown - DE - 22000 - - 0736 - George - Dershowitz - 37 Any St. - Anytown - DE - 22000 - - 0746 - George - Engleman - 47 Any St. - Anytown - DE - 22000 - - 0756 - George - Franklin - 57 Any St. - Anytown - DE - 22000 - - 0766 - George - Grice - 67 Any St. - Anytown - DE - 22000 - - 0776 - George - Haverford - 77 Any St. - Anytown - DE - 22000 - - 0786 - George - Ilvedson - 87 Any St. - Anytown - DE - 22000 - - 0796 - George - Jones - 97 Any St. - Anytown - DE - 22000 - - 0806 - George - Aranow - 7 Any St. - Anytown - FL - 22000 - - 0816 - George - Barker - 17 Any St. - Anytown - FL - 22000 - - 0826 - George - Corsetti - 27 Any St. - Anytown - FL - 22000 - - 0836 - George - Dershowitz - 37 Any St. - Anytown - FL - 22000 - - 0846 - George - Engleman - 47 Any St. - Anytown - FL - 22000 - - 0856 - George - Franklin - 57 Any St. - Anytown - FL - 22000 - - 0866 - George - Grice - 67 Any St. - Anytown - FL - 22000 - - 0876 - George - Haverford - 77 Any St. - Anytown - FL - 22000 - - 0886 - George - Ilvedson - 87 Any St. - Anytown - FL - 22000 - - 0896 - George - Jones - 97 Any St. - Anytown - FL - 22000 - - 0906 - George - Aranow - 7 Any St. - Anytown - GA - 22000 - - 0916 - George - Barker - 17 Any St. - Anytown - GA - 22000 - - 0926 - George - Corsetti - 27 Any St. - Anytown - GA - 22000 - - 0936 - George - Dershowitz - 37 Any St. - Anytown - GA - 22000 - - 0946 - George - Engleman - 47 Any St. - Anytown - GA - 22000 - - 0956 - George - Franklin - 57 Any St. - Anytown - GA - 22000 - - 0966 - George - Grice - 67 Any St. - Anytown - GA - 22000 - - 0976 - George - Haverford - 77 Any St. - Anytown - GA - 22000 - - 0986 - George - Ilvedson - 87 Any St. - Anytown - GA - 22000 - - 0996 - George - Jones - 97 Any St. - Anytown - GA - 22000 - - 0007 - Hank - Aranow - 8 Any St. - Anytown - AL - 22000 - - 0017 - Hank - Barker - 18 Any St. - Anytown - AL - 22000 - - 0027 - Hank - Corsetti - 28 Any St. - Anytown - AL - 22000 - - 0037 - Hank - Dershowitz - 38 Any St. - Anytown - AL - 22000 - - 0047 - Hank - Engleman - 48 Any St. - Anytown - AL - 22000 - - 0057 - Hank - Franklin - 58 Any St. - Anytown - AL - 22000 - - 0067 - Hank - Grice - 68 Any St. - Anytown - AL - 22000 - - 0077 - Hank - Haverford - 78 Any St. - Anytown - AL - 22000 - - 0087 - Hank - Ilvedson - 88 Any St. - Anytown - AL - 22000 - - 0097 - Hank - Jones - 98 Any St. - Anytown - AL - 22000 - - 0107 - Hank - Aranow - 8 Any St. - Anytown - AK - 22000 - - 0117 - Hank - Barker - 18 Any St. - Anytown - AK - 22000 - - 0127 - Hank - Corsetti - 28 Any St. - Anytown - AK - 22000 - - 0137 - Hank - Dershowitz - 38 Any St. - Anytown - AK - 22000 - - 0147 - Hank - Engleman - 48 Any St. - Anytown - AK - 22000 - - 0157 - Hank - Franklin - 58 Any St. - Anytown - AK - 22000 - - 0167 - Hank - Grice - 68 Any St. - Anytown - AK - 22000 - - 0177 - Hank - Haverford - 78 Any St. - Anytown - AK - 22000 - - 0187 - Hank - Ilvedson - 88 Any St. - Anytown - AK - 22000 - - 0197 - Hank - Jones - 98 Any St. - Anytown - AK - 22000 - - 0207 - Hank - Aranow - 8 Any St. - Anytown - AZ - 22000 - - 0217 - Hank - Barker - 18 Any St. - Anytown - AZ - 22000 - - 0227 - Hank - Corsetti - 28 Any St. - Anytown - AZ - 22000 - - 0237 - Hank - Dershowitz - 38 Any St. - Anytown - AZ - 22000 - - 0247 - Hank - Engleman - 48 Any St. - Anytown - AZ - 22000 - - 0257 - Hank - Franklin - 58 Any St. - Anytown - AZ - 22000 - - 0267 - Hank - Grice - 68 Any St. - Anytown - AZ - 22000 - - 0277 - Hank - Haverford - 78 Any St. - Anytown - AZ - 22000 - - 0287 - Hank - Ilvedson - 88 Any St. - Anytown - AZ - 22000 - - 0297 - Hank - Jones - 98 Any St. - Anytown - AZ - 22000 - - 0307 - Hank - Aranow - 8 Any St. - Anytown - AR - 22000 - - 0317 - Hank - Barker - 18 Any St. - Anytown - AR - 22000 - - 0327 - Hank - Corsetti - 28 Any St. - Anytown - AR - 22000 - - 0337 - Hank - Dershowitz - 38 Any St. - Anytown - AR - 22000 - - 0347 - Hank - Engleman - 48 Any St. - Anytown - AR - 22000 - - 0357 - Hank - Franklin - 58 Any St. - Anytown - AR - 22000 - - 0367 - Hank - Grice - 68 Any St. - Anytown - AR - 22000 - - 0377 - Hank - Haverford - 78 Any St. - Anytown - AR - 22000 - - 0387 - Hank - Ilvedson - 88 Any St. - Anytown - AR - 22000 - - 0397 - Hank - Jones - 98 Any St. - Anytown - AR - 22000 - - 0407 - Hank - Aranow - 8 Any St. - Anytown - CA - 22000 - - 0417 - Hank - Barker - 18 Any St. - Anytown - CA - 22000 - - 0427 - Hank - Corsetti - 28 Any St. - Anytown - CA - 22000 - - 0437 - Hank - Dershowitz - 38 Any St. - Anytown - CA - 22000 - - 0447 - Hank - Engleman - 48 Any St. - Anytown - CA - 22000 - - 0457 - Hank - Franklin - 58 Any St. - Anytown - CA - 22000 - - 0467 - Hank - Grice - 68 Any St. - Anytown - CA - 22000 - - 0477 - Hank - Haverford - 78 Any St. - Anytown - CA - 22000 - - 0487 - Hank - Ilvedson - 88 Any St. - Anytown - CA - 22000 - - 0497 - Hank - Jones - 98 Any St. - Anytown - CA - 22000 - - 0507 - Hank - Aranow - 8 Any St. - Anytown - CO - 22000 - - 0517 - Hank - Barker - 18 Any St. - Anytown - CO - 22000 - - 0527 - Hank - Corsetti - 28 Any St. - Anytown - CO - 22000 - - 0537 - Hank - Dershowitz - 38 Any St. - Anytown - CO - 22000 - - 0547 - Hank - Engleman - 48 Any St. - Anytown - CO - 22000 - - 0557 - Hank - Franklin - 58 Any St. - Anytown - CO - 22000 - - 0567 - Hank - Grice - 68 Any St. - Anytown - CO - 22000 - - 0577 - Hank - Haverford - 78 Any St. - Anytown - CO - 22000 - - 0587 - Hank - Ilvedson - 88 Any St. - Anytown - CO - 22000 - - 0597 - Hank - Jones - 98 Any St. - Anytown - CO - 22000 - - 0607 - Hank - Aranow - 8 Any St. - Anytown - CT - 22000 - - 0617 - Hank - Barker - 18 Any St. - Anytown - CT - 22000 - - 0627 - Hank - Corsetti - 28 Any St. - Anytown - CT - 22000 - - 0637 - Hank - Dershowitz - 38 Any St. - Anytown - CT - 22000 - - 0647 - Hank - Engleman - 48 Any St. - Anytown - CT - 22000 - - 0657 - Hank - Franklin - 58 Any St. - Anytown - CT - 22000 - - 0667 - Hank - Grice - 68 Any St. - Anytown - CT - 22000 - - 0677 - Hank - Haverford - 78 Any St. - Anytown - CT - 22000 - - 0687 - Hank - Ilvedson - 88 Any St. - Anytown - CT - 22000 - - 0697 - Hank - Jones - 98 Any St. - Anytown - CT - 22000 - - 0707 - Hank - Aranow - 8 Any St. - Anytown - DE - 22000 - - 0717 - Hank - Barker - 18 Any St. - Anytown - DE - 22000 - - 0727 - Hank - Corsetti - 28 Any St. - Anytown - DE - 22000 - - 0737 - Hank - Dershowitz - 38 Any St. - Anytown - DE - 22000 - - 0747 - Hank - Engleman - 48 Any St. - Anytown - DE - 22000 - - 0757 - Hank - Franklin - 58 Any St. - Anytown - DE - 22000 - - 0767 - Hank - Grice - 68 Any St. - Anytown - DE - 22000 - - 0777 - Hank - Haverford - 78 Any St. - Anytown - DE - 22000 - - 0787 - Hank - Ilvedson - 88 Any St. - Anytown - DE - 22000 - - 0797 - Hank - Jones - 98 Any St. - Anytown - DE - 22000 - - 0807 - Hank - Aranow - 8 Any St. - Anytown - FL - 22000 - - 0817 - Hank - Barker - 18 Any St. - Anytown - FL - 22000 - - 0827 - Hank - Corsetti - 28 Any St. - Anytown - FL - 22000 - - 0837 - Hank - Dershowitz - 38 Any St. - Anytown - FL - 22000 - - 0847 - Hank - Engleman - 48 Any St. - Anytown - FL - 22000 - - 0857 - Hank - Franklin - 58 Any St. - Anytown - FL - 22000 - - 0867 - Hank - Grice - 68 Any St. - Anytown - FL - 22000 - - 0877 - Hank - Haverford - 78 Any St. - Anytown - FL - 22000 - - 0887 - Hank - Ilvedson - 88 Any St. - Anytown - FL - 22000 - - 0897 - Hank - Jones - 98 Any St. - Anytown - FL - 22000 - - 0907 - Hank - Aranow - 8 Any St. - Anytown - GA - 22000 - - 0917 - Hank - Barker - 18 Any St. - Anytown - GA - 22000 - - 0927 - Hank - Corsetti - 28 Any St. - Anytown - GA - 22000 - - 0937 - Hank - Dershowitz - 38 Any St. - Anytown - GA - 22000 - - 0947 - Hank - Engleman - 48 Any St. - Anytown - GA - 22000 - - 0957 - Hank - Franklin - 58 Any St. - Anytown - GA - 22000 - - 0967 - Hank - Grice - 68 Any St. - Anytown - GA - 22000 - - 0977 - Hank - Haverford - 78 Any St. - Anytown - GA - 22000 - - 0987 - Hank - Ilvedson - 88 Any St. - Anytown - GA - 22000 - - 0997 - Hank - Jones - 98 Any St. - Anytown - GA - 22000 - - 0008 - Inki - Aranow - 9 Any St. - Anytown - AL - 22000 - - 0018 - Inki - Barker - 19 Any St. - Anytown - AL - 22000 - - 0028 - Inki - Corsetti - 29 Any St. - Anytown - AL - 22000 - - 0038 - Inki - Dershowitz - 39 Any St. - Anytown - AL - 22000 - - 0048 - Inki - Engleman - 49 Any St. - Anytown - AL - 22000 - - 0058 - Inki - Franklin - 59 Any St. - Anytown - AL - 22000 - - 0068 - Inki - Grice - 69 Any St. - Anytown - AL - 22000 - - 0078 - Inki - Haverford - 79 Any St. - Anytown - AL - 22000 - - 0088 - Inki - Ilvedson - 89 Any St. - Anytown - AL - 22000 - - 0098 - Inki - Jones - 99 Any St. - Anytown - AL - 22000 - - 0108 - Inki - Aranow - 9 Any St. - Anytown - AK - 22000 - - 0118 - Inki - Barker - 19 Any St. - Anytown - AK - 22000 - - 0128 - Inki - Corsetti - 29 Any St. - Anytown - AK - 22000 - - 0138 - Inki - Dershowitz - 39 Any St. - Anytown - AK - 22000 - - 0148 - Inki - Engleman - 49 Any St. - Anytown - AK - 22000 - - 0158 - Inki - Franklin - 59 Any St. - Anytown - AK - 22000 - - 0168 - Inki - Grice - 69 Any St. - Anytown - AK - 22000 - - 0178 - Inki - Haverford - 79 Any St. - Anytown - AK - 22000 - - 0188 - Inki - Ilvedson - 89 Any St. - Anytown - AK - 22000 - - 0198 - Inki - Jones - 99 Any St. - Anytown - AK - 22000 - - 0208 - Inki - Aranow - 9 Any St. - Anytown - AZ - 22000 - - 0218 - Inki - Barker - 19 Any St. - Anytown - AZ - 22000 - - 0228 - Inki - Corsetti - 29 Any St. - Anytown - AZ - 22000 - - 0238 - Inki - Dershowitz - 39 Any St. - Anytown - AZ - 22000 - - 0248 - Inki - Engleman - 49 Any St. - Anytown - AZ - 22000 - - 0258 - Inki - Franklin - 59 Any St. - Anytown - AZ - 22000 - - 0268 - Inki - Grice - 69 Any St. - Anytown - AZ - 22000 - - 0278 - Inki - Haverford - 79 Any St. - Anytown - AZ - 22000 - - 0288 - Inki - Ilvedson - 89 Any St. - Anytown - AZ - 22000 - - 0298 - Inki - Jones - 99 Any St. - Anytown - AZ - 22000 - - 0308 - Inki - Aranow - 9 Any St. - Anytown - AR - 22000 - - 0318 - Inki - Barker - 19 Any St. - Anytown - AR - 22000 - - 0328 - Inki - Corsetti - 29 Any St. - Anytown - AR - 22000 - - 0338 - Inki - Dershowitz - 39 Any St. - Anytown - AR - 22000 - - 0348 - Inki - Engleman - 49 Any St. - Anytown - AR - 22000 - - 0358 - Inki - Franklin - 59 Any St. - Anytown - AR - 22000 - - 0368 - Inki - Grice - 69 Any St. - Anytown - AR - 22000 - - 0378 - Inki - Haverford - 79 Any St. - Anytown - AR - 22000 - - 0388 - Inki - Ilvedson - 89 Any St. - Anytown - AR - 22000 - - 0398 - Inki - Jones - 99 Any St. - Anytown - AR - 22000 - - 0408 - Inki - Aranow - 9 Any St. - Anytown - CA - 22000 - - 0418 - Inki - Barker - 19 Any St. - Anytown - CA - 22000 - - 0428 - Inki - Corsetti - 29 Any St. - Anytown - CA - 22000 - - 0438 - Inki - Dershowitz - 39 Any St. - Anytown - CA - 22000 - - 0448 - Inki - Engleman - 49 Any St. - Anytown - CA - 22000 - - 0458 - Inki - Franklin - 59 Any St. - Anytown - CA - 22000 - - 0468 - Inki - Grice - 69 Any St. - Anytown - CA - 22000 - - 0478 - Inki - Haverford - 79 Any St. - Anytown - CA - 22000 - - 0488 - Inki - Ilvedson - 89 Any St. - Anytown - CA - 22000 - - 0498 - Inki - Jones - 99 Any St. - Anytown - CA - 22000 - - 0508 - Inki - Aranow - 9 Any St. - Anytown - CO - 22000 - - 0518 - Inki - Barker - 19 Any St. - Anytown - CO - 22000 - - 0528 - Inki - Corsetti - 29 Any St. - Anytown - CO - 22000 - - 0538 - Inki - Dershowitz - 39 Any St. - Anytown - CO - 22000 - - 0548 - Inki - Engleman - 49 Any St. - Anytown - CO - 22000 - - 0558 - Inki - Franklin - 59 Any St. - Anytown - CO - 22000 - - 0568 - Inki - Grice - 69 Any St. - Anytown - CO - 22000 - - 0578 - Inki - Haverford - 79 Any St. - Anytown - CO - 22000 - - 0588 - Inki - Ilvedson - 89 Any St. - Anytown - CO - 22000 - - 0598 - Inki - Jones - 99 Any St. - Anytown - CO - 22000 - - 0608 - Inki - Aranow - 9 Any St. - Anytown - CT - 22000 - - 0618 - Inki - Barker - 19 Any St. - Anytown - CT - 22000 - - 0628 - Inki - Corsetti - 29 Any St. - Anytown - CT - 22000 - - 0638 - Inki - Dershowitz - 39 Any St. - Anytown - CT - 22000 - - 0648 - Inki - Engleman - 49 Any St. - Anytown - CT - 22000 - - 0658 - Inki - Franklin - 59 Any St. - Anytown - CT - 22000 - - 0668 - Inki - Grice - 69 Any St. - Anytown - CT - 22000 - - 0678 - Inki - Haverford - 79 Any St. - Anytown - CT - 22000 - - 0688 - Inki - Ilvedson - 89 Any St. - Anytown - CT - 22000 - - 0698 - Inki - Jones - 99 Any St. - Anytown - CT - 22000 - - 0708 - Inki - Aranow - 9 Any St. - Anytown - DE - 22000 - - 0718 - Inki - Barker - 19 Any St. - Anytown - DE - 22000 - - 0728 - Inki - Corsetti - 29 Any St. - Anytown - DE - 22000 - - 0738 - Inki - Dershowitz - 39 Any St. - Anytown - DE - 22000 - - 0748 - Inki - Engleman - 49 Any St. - Anytown - DE - 22000 - - 0758 - Inki - Franklin - 59 Any St. - Anytown - DE - 22000 - - 0768 - Inki - Grice - 69 Any St. - Anytown - DE - 22000 - - 0778 - Inki - Haverford - 79 Any St. - Anytown - DE - 22000 - - 0788 - Inki - Ilvedson - 89 Any St. - Anytown - DE - 22000 - - 0798 - Inki - Jones - 99 Any St. - Anytown - DE - 22000 - - 0808 - Inki - Aranow - 9 Any St. - Anytown - FL - 22000 - - 0818 - Inki - Barker - 19 Any St. - Anytown - FL - 22000 - - 0828 - Inki - Corsetti - 29 Any St. - Anytown - FL - 22000 - - 0838 - Inki - Dershowitz - 39 Any St. - Anytown - FL - 22000 - - 0848 - Inki - Engleman - 49 Any St. - Anytown - FL - 22000 - - 0858 - Inki - Franklin - 59 Any St. - Anytown - FL - 22000 - - 0868 - Inki - Grice - 69 Any St. - Anytown - FL - 22000 - - 0878 - Inki - Haverford - 79 Any St. - Anytown - FL - 22000 - - 0888 - Inki - Ilvedson - 89 Any St. - Anytown - FL - 22000 - - 0898 - Inki - Jones - 99 Any St. - Anytown - FL - 22000 - - 0908 - Inki - Aranow - 9 Any St. - Anytown - GA - 22000 - - 0918 - Inki - Barker - 19 Any St. - Anytown - GA - 22000 - - 0928 - Inki - Corsetti - 29 Any St. - Anytown - GA - 22000 - - 0938 - Inki - Dershowitz - 39 Any St. - Anytown - GA - 22000 - - 0948 - Inki - Engleman - 49 Any St. - Anytown - GA - 22000 - - 0958 - Inki - Franklin - 59 Any St. - Anytown - GA - 22000 - - 0968 - Inki - Grice - 69 Any St. - Anytown - GA - 22000 - - 0978 - Inki - Haverford - 79 Any St. - Anytown - GA - 22000 - - 0988 - Inki - Ilvedson - 89 Any St. - Anytown - GA - 22000 - - 0998 - Inki - Jones - 99 Any St. - Anytown - GA - 22000 - - 0009 - James - Aranow - 10 Any St. - Anytown - AL - 22000 - - 0019 - James - Barker - 20 Any St. - Anytown - AL - 22000 - - 0029 - James - Corsetti - 30 Any St. - Anytown - AL - 22000 - - 0039 - James - Dershowitz - 40 Any St. - Anytown - AL - 22000 - - 0049 - James - Engleman - 50 Any St. - Anytown - AL - 22000 - - 0059 - James - Franklin - 60 Any St. - Anytown - AL - 22000 - - 0069 - James - Grice - 70 Any St. - Anytown - AL - 22000 - - 0079 - James - Haverford - 80 Any St. - Anytown - AL - 22000 - - 0089 - James - Ilvedson - 90 Any St. - Anytown - AL - 22000 - - 0099 - James - Jones - 100 Any St. - Anytown - AL - 22000 - - 0109 - James - Aranow - 10 Any St. - Anytown - AK - 22000 - - 0119 - James - Barker - 20 Any St. - Anytown - AK - 22000 - - 0129 - James - Corsetti - 30 Any St. - Anytown - AK - 22000 - - 0139 - James - Dershowitz - 40 Any St. - Anytown - AK - 22000 - - 0149 - James - Engleman - 50 Any St. - Anytown - AK - 22000 - - 0159 - James - Franklin - 60 Any St. - Anytown - AK - 22000 - - 0169 - James - Grice - 70 Any St. - Anytown - AK - 22000 - - 0179 - James - Haverford - 80 Any St. - Anytown - AK - 22000 - - 0189 - James - Ilvedson - 90 Any St. - Anytown - AK - 22000 - - 0199 - James - Jones - 100 Any St. - Anytown - AK - 22000 - - 0209 - James - Aranow - 10 Any St. - Anytown - AZ - 22000 - - 0219 - James - Barker - 20 Any St. - Anytown - AZ - 22000 - - 0229 - James - Corsetti - 30 Any St. - Anytown - AZ - 22000 - - 0239 - James - Dershowitz - 40 Any St. - Anytown - AZ - 22000 - - 0249 - James - Engleman - 50 Any St. - Anytown - AZ - 22000 - - 0259 - James - Franklin - 60 Any St. - Anytown - AZ - 22000 - - 0269 - James - Grice - 70 Any St. - Anytown - AZ - 22000 - - 0279 - James - Haverford - 80 Any St. - Anytown - AZ - 22000 - - 0289 - James - Ilvedson - 90 Any St. - Anytown - AZ - 22000 - - 0299 - James - Jones - 100 Any St. - Anytown - AZ - 22000 - - 0309 - James - Aranow - 10 Any St. - Anytown - AR - 22000 - - 0319 - James - Barker - 20 Any St. - Anytown - AR - 22000 - - 0329 - James - Corsetti - 30 Any St. - Anytown - AR - 22000 - - 0339 - James - Dershowitz - 40 Any St. - Anytown - AR - 22000 - - 0349 - James - Engleman - 50 Any St. - Anytown - AR - 22000 - - 0359 - James - Franklin - 60 Any St. - Anytown - AR - 22000 - - 0369 - James - Grice - 70 Any St. - Anytown - AR - 22000 - - 0379 - James - Haverford - 80 Any St. - Anytown - AR - 22000 - - 0389 - James - Ilvedson - 90 Any St. - Anytown - AR - 22000 - - 0399 - James - Jones - 100 Any St. - Anytown - AR - 22000 - - 0409 - James - Aranow - 10 Any St. - Anytown - CA - 22000 - - 0419 - James - Barker - 20 Any St. - Anytown - CA - 22000 - - 0429 - James - Corsetti - 30 Any St. - Anytown - CA - 22000 - - 0439 - James - Dershowitz - 40 Any St. - Anytown - CA - 22000 - - 0449 - James - Engleman - 50 Any St. - Anytown - CA - 22000 - - 0459 - James - Franklin - 60 Any St. - Anytown - CA - 22000 - - 0469 - James - Grice - 70 Any St. - Anytown - CA - 22000 - - 0479 - James - Haverford - 80 Any St. - Anytown - CA - 22000 - - 0489 - James - Ilvedson - 90 Any St. - Anytown - CA - 22000 - - 0499 - James - Jones - 100 Any St. - Anytown - CA - 22000 - - 0509 - James - Aranow - 10 Any St. - Anytown - CO - 22000 - - 0519 - James - Barker - 20 Any St. - Anytown - CO - 22000 - - 0529 - James - Corsetti - 30 Any St. - Anytown - CO - 22000 - - 0539 - James - Dershowitz - 40 Any St. - Anytown - CO - 22000 - - 0549 - James - Engleman - 50 Any St. - Anytown - CO - 22000 - - 0559 - James - Franklin - 60 Any St. - Anytown - CO - 22000 - - 0569 - James - Grice - 70 Any St. - Anytown - CO - 22000 - - 0579 - James - Haverford - 80 Any St. - Anytown - CO - 22000 - - 0589 - James - Ilvedson - 90 Any St. - Anytown - CO - 22000 - - 0599 - James - Jones - 100 Any St. - Anytown - CO - 22000 - - 0609 - James - Aranow - 10 Any St. - Anytown - CT - 22000 - - 0619 - James - Barker - 20 Any St. - Anytown - CT - 22000 - - 0629 - James - Corsetti - 30 Any St. - Anytown - CT - 22000 - - 0639 - James - Dershowitz - 40 Any St. - Anytown - CT - 22000 - - 0649 - James - Engleman - 50 Any St. - Anytown - CT - 22000 - - 0659 - James - Franklin - 60 Any St. - Anytown - CT - 22000 - - 0669 - James - Grice - 70 Any St. - Anytown - CT - 22000 - - 0679 - James - Haverford - 80 Any St. - Anytown - CT - 22000 - - 0689 - James - Ilvedson - 90 Any St. - Anytown - CT - 22000 - - 0699 - James - Jones - 100 Any St. - Anytown - CT - 22000 - - 0709 - James - Aranow - 10 Any St. - Anytown - DE - 22000 - - 0719 - James - Barker - 20 Any St. - Anytown - DE - 22000 - - 0729 - James - Corsetti - 30 Any St. - Anytown - DE - 22000 - - 0739 - James - Dershowitz - 40 Any St. - Anytown - DE - 22000 - - 0749 - James - Engleman - 50 Any St. - Anytown - DE - 22000 - - 0759 - James - Franklin - 60 Any St. - Anytown - DE - 22000 - - 0769 - James - Grice - 70 Any St. - Anytown - DE - 22000 - - 0779 - James - Haverford - 80 Any St. - Anytown - DE - 22000 - - 0789 - James - Ilvedson - 90 Any St. - Anytown - DE - 22000 - - 0799 - James - Jones - 100 Any St. - Anytown - DE - 22000 - - 0809 - James - Aranow - 10 Any St. - Anytown - FL - 22000 - - 0819 - James - Barker - 20 Any St. - Anytown - FL - 22000 - - 0829 - James - Corsetti - 30 Any St. - Anytown - FL - 22000 - - 0839 - James - Dershowitz - 40 Any St. - Anytown - FL - 22000 - - 0849 - James - Engleman - 50 Any St. - Anytown - FL - 22000 - - 0859 - James - Franklin - 60 Any St. - Anytown - FL - 22000 - - 0869 - James - Grice - 70 Any St. - Anytown - FL - 22000 - - 0879 - James - Haverford - 80 Any St. - Anytown - FL - 22000 - - 0889 - James - Ilvedson - 90 Any St. - Anytown - FL - 22000 - - 0899 - James - Jones - 100 Any St. - Anytown - FL - 22000 - - 0909 - James - Aranow - 10 Any St. - Anytown - GA - 22000 - - 0919 - James - Barker - 20 Any St. - Anytown - GA - 22000 - - 0929 - James - Corsetti - 30 Any St. - Anytown - GA - 22000 - - 0939 - James - Dershowitz - 40 Any St. - Anytown - GA - 22000 - - 0949 - James - Engleman - 50 Any St. - Anytown - GA - 22000 - - 0959 - James - Franklin - 60 Any St. - Anytown - GA - 22000 - - 0969 - James - Grice - 70 Any St. - Anytown - GA - 22000 - - 0979 - James - Haverford - 80 Any St. - Anytown - GA - 22000 - - 0989 - James - Ilvedson - 90 Any St. - Anytown - GA - 22000 - - 0999 - James - Jones - 100 Any St. - Anytown - GA - 22000 -
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/stringsort.ref b/src/tools/docbook/libxslt/tests/XSLTMark/stringsort.ref deleted file mode 100644 index b991973da3..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/stringsort.ref +++ /dev/null @@ -1,25002 +0,0 @@ - - - -0000 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0010 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0020 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0030 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0040 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0050 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0060 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0070 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0080 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0090 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0100 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0110 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0120 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0130 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0140 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0150 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0160 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0170 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0180 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0190 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0200 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0210 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0220 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0230 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0240 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0250 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0260 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0270 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0280 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0290 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0300 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0310 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0320 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0330 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0340 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0350 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0360 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0370 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0380 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0390 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0400 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0410 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0420 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0430 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0440 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0450 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0460 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0470 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0480 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0490 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0500 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0510 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0520 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0530 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0540 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0550 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0560 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0570 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0580 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0590 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0600 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0610 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0620 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0630 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0640 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0650 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0660 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0670 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0680 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0690 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0700 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0710 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0720 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0730 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0740 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0750 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0760 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0770 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0780 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0790 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0800 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0810 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0820 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0830 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0840 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0850 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0860 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0870 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0880 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0890 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0900 - - -Al - - -Aranow - - -1 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0910 - - -Al - - -Barker - - -11 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0920 - - -Al - - -Corsetti - - -21 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0930 - - -Al - - -Dershowitz - - -31 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0940 - - -Al - - -Engleman - - -41 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0950 - - -Al - - -Franklin - - -51 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0960 - - -Al - - -Grice - - -61 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0970 - - -Al - - -Haverford - - -71 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0980 - - -Al - - -Ilvedson - - -81 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0990 - - -Al - - -Jones - - -91 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0001 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0011 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0021 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0031 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0041 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0051 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0061 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0071 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0081 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0091 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0101 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0111 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0121 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0131 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0141 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0151 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0161 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0171 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0181 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0191 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0201 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0211 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0221 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0231 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0241 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0251 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0261 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0271 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0281 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0291 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0301 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0311 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0321 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0331 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0341 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0351 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0361 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0371 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0381 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0391 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0401 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0411 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0421 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0431 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0441 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0451 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0461 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0471 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0481 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0491 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0501 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0511 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0521 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0531 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0541 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0551 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0561 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0571 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0581 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0591 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0601 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0611 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0621 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0631 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0641 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0651 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0661 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0671 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0681 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0691 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0701 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0711 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0721 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0731 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0741 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0751 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0761 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0771 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0781 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0791 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0801 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0811 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0821 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0831 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0841 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0851 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0861 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0871 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0881 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0891 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0901 - - -Bob - - -Aranow - - -2 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0911 - - -Bob - - -Barker - - -12 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0921 - - -Bob - - -Corsetti - - -22 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0931 - - -Bob - - -Dershowitz - - -32 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0941 - - -Bob - - -Engleman - - -42 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0951 - - -Bob - - -Franklin - - -52 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0961 - - -Bob - - -Grice - - -62 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0971 - - -Bob - - -Haverford - - -72 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0981 - - -Bob - - -Ilvedson - - -82 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0991 - - -Bob - - -Jones - - -92 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0002 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0012 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0022 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0032 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0042 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0052 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0062 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0072 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0082 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0092 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0102 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0112 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0122 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0132 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0142 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0152 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0162 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0172 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0182 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0192 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0202 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0212 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0222 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0232 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0242 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0252 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0262 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0272 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0282 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0292 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0302 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0312 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0322 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0332 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0342 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0352 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0362 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0372 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0382 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0392 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0402 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0412 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0422 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0432 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0442 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0452 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0462 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0472 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0482 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0492 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0502 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0512 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0522 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0532 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0542 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0552 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0562 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0572 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0582 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0592 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0602 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0612 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0622 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0632 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0642 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0652 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0662 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0672 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0682 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0692 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0702 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0712 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0722 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0732 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0742 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0752 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0762 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0772 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0782 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0792 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0802 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0812 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0822 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0832 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0842 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0852 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0862 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0872 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0882 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0892 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0902 - - -Charles - - -Aranow - - -3 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0912 - - -Charles - - -Barker - - -13 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0922 - - -Charles - - -Corsetti - - -23 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0932 - - -Charles - - -Dershowitz - - -33 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0942 - - -Charles - - -Engleman - - -43 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0952 - - -Charles - - -Franklin - - -53 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0962 - - -Charles - - -Grice - - -63 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0972 - - -Charles - - -Haverford - - -73 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0982 - - -Charles - - -Ilvedson - - -83 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0992 - - -Charles - - -Jones - - -93 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0003 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0013 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0023 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0033 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0043 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0053 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0063 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0073 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0083 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0093 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0103 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0113 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0123 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0133 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0143 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0153 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0163 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0173 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0183 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0193 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0203 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0213 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0223 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0233 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0243 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0253 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0263 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0273 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0283 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0293 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0303 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0313 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0323 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0333 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0343 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0353 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0363 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0373 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0383 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0393 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0403 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0413 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0423 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0433 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0443 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0453 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0463 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0473 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0483 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0493 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0503 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0513 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0523 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0533 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0543 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0553 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0563 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0573 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0583 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0593 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0603 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0613 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0623 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0633 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0643 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0653 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0663 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0673 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0683 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0693 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0703 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0713 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0723 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0733 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0743 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0753 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0763 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0773 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0783 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0793 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0803 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0813 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0823 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0833 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0843 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0853 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0863 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0873 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0883 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0893 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0903 - - -David - - -Aranow - - -4 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0913 - - -David - - -Barker - - -14 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0923 - - -David - - -Corsetti - - -24 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0933 - - -David - - -Dershowitz - - -34 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0943 - - -David - - -Engleman - - -44 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0953 - - -David - - -Franklin - - -54 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0963 - - -David - - -Grice - - -64 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0973 - - -David - - -Haverford - - -74 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0983 - - -David - - -Ilvedson - - -84 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0993 - - -David - - -Jones - - -94 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0004 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0014 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0024 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0034 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0044 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0054 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0064 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0074 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0084 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0094 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0104 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0114 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0124 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0134 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0144 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0154 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0164 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0174 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0184 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0194 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0204 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0214 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0224 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0234 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0244 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0254 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0264 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0274 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0284 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0294 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0304 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0314 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0324 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0334 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0344 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0354 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0364 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0374 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0384 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0394 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0404 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0414 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0424 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0434 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0444 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0454 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0464 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0474 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0484 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0494 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0504 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0514 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0524 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0534 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0544 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0554 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0564 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0574 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0584 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0594 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0604 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0614 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0624 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0634 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0644 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0654 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0664 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0674 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0684 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0694 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0704 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0714 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0724 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0734 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0744 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0754 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0764 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0774 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0784 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0794 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0804 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0814 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0824 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0834 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0844 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0854 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0864 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0874 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0884 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0894 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0904 - - -Egon - - -Aranow - - -5 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0914 - - -Egon - - -Barker - - -15 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0924 - - -Egon - - -Corsetti - - -25 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0934 - - -Egon - - -Dershowitz - - -35 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0944 - - -Egon - - -Engleman - - -45 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0954 - - -Egon - - -Franklin - - -55 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0964 - - -Egon - - -Grice - - -65 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0974 - - -Egon - - -Haverford - - -75 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0984 - - -Egon - - -Ilvedson - - -85 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0994 - - -Egon - - -Jones - - -95 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0005 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0015 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0025 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0035 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0045 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0055 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0065 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0075 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0085 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0095 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0105 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0115 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0125 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0135 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0145 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0155 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0165 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0175 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0185 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0195 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0205 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0215 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0225 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0235 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0245 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0255 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0265 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0275 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0285 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0295 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0305 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0315 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0325 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0335 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0345 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0355 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0365 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0375 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0385 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0395 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0405 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0415 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0425 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0435 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0445 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0455 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0465 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0475 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0485 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0495 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0505 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0515 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0525 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0535 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0545 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0555 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0565 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0575 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0585 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0595 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0605 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0615 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0625 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0635 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0645 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0655 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0665 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0675 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0685 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0695 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0705 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0715 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0725 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0735 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0745 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0755 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0765 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0775 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0785 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0795 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0805 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0815 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0825 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0835 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0845 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0855 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0865 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0875 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0885 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0895 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0905 - - -Farbood - - -Aranow - - -6 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0915 - - -Farbood - - -Barker - - -16 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0925 - - -Farbood - - -Corsetti - - -26 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0935 - - -Farbood - - -Dershowitz - - -36 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0945 - - -Farbood - - -Engleman - - -46 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0955 - - -Farbood - - -Franklin - - -56 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0965 - - -Farbood - - -Grice - - -66 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0975 - - -Farbood - - -Haverford - - -76 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0985 - - -Farbood - - -Ilvedson - - -86 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0995 - - -Farbood - - -Jones - - -96 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0006 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0016 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0026 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0036 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0046 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0056 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0066 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0076 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0086 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0096 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0106 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0116 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0126 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0136 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0146 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0156 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0166 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0176 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0186 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0196 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0206 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0216 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0226 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0236 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0246 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0256 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0266 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0276 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0286 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0296 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0306 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0316 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0326 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0336 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0346 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0356 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0366 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0376 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0386 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0396 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0406 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0416 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0426 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0436 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0446 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0456 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0466 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0476 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0486 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0496 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0506 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0516 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0526 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0536 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0546 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0556 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0566 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0576 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0586 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0596 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0606 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0616 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0626 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0636 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0646 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0656 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0666 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0676 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0686 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0696 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0706 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0716 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0726 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0736 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0746 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0756 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0766 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0776 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0786 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0796 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0806 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0816 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0826 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0836 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0846 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0856 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0866 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0876 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0886 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0896 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0906 - - -George - - -Aranow - - -7 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0916 - - -George - - -Barker - - -17 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0926 - - -George - - -Corsetti - - -27 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0936 - - -George - - -Dershowitz - - -37 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0946 - - -George - - -Engleman - - -47 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0956 - - -George - - -Franklin - - -57 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0966 - - -George - - -Grice - - -67 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0976 - - -George - - -Haverford - - -77 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0986 - - -George - - -Ilvedson - - -87 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0996 - - -George - - -Jones - - -97 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0007 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0017 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0027 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0037 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0047 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0057 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0067 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0077 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0087 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0097 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0107 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0117 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0127 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0137 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0147 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0157 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0167 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0177 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0187 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0197 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0207 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0217 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0227 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0237 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0247 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0257 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0267 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0277 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0287 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0297 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0307 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0317 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0327 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0337 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0347 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0357 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0367 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0377 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0387 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0397 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0407 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0417 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0427 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0437 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0447 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0457 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0467 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0477 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0487 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0497 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0507 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0517 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0527 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0537 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0547 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0557 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0567 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0577 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0587 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0597 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0607 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0617 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0627 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0637 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0647 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0657 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0667 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0677 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0687 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0697 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0707 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0717 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0727 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0737 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0747 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0757 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0767 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0777 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0787 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0797 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0807 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0817 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0827 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0837 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0847 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0857 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0867 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0877 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0887 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0897 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0907 - - -Hank - - -Aranow - - -8 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0917 - - -Hank - - -Barker - - -18 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0927 - - -Hank - - -Corsetti - - -28 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0937 - - -Hank - - -Dershowitz - - -38 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0947 - - -Hank - - -Engleman - - -48 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0957 - - -Hank - - -Franklin - - -58 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0967 - - -Hank - - -Grice - - -68 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0977 - - -Hank - - -Haverford - - -78 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0987 - - -Hank - - -Ilvedson - - -88 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0997 - - -Hank - - -Jones - - -98 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0008 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0018 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0028 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0038 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0048 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0058 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0068 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0078 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0088 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0098 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0108 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0118 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0128 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0138 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0148 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0158 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0168 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0178 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0188 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0198 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0208 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0218 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0228 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0238 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0248 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0258 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0268 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0278 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0288 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0298 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0308 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0318 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0328 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0338 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0348 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0358 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0368 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0378 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0388 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0398 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0408 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0418 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0428 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0438 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0448 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0458 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0468 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0478 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0488 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0498 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0508 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0518 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0528 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0538 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0548 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0558 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0568 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0578 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0588 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0598 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0608 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0618 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0628 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0638 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0648 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0658 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0668 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0678 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0688 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0698 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0708 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0718 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0728 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0738 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0748 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0758 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0768 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0778 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0788 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0798 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0808 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0818 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0828 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0838 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0848 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0858 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0868 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0878 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0888 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0898 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0908 - - -Inki - - -Aranow - - -9 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0918 - - -Inki - - -Barker - - -19 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0928 - - -Inki - - -Corsetti - - -29 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0938 - - -Inki - - -Dershowitz - - -39 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0948 - - -Inki - - -Engleman - - -49 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0958 - - -Inki - - -Franklin - - -59 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0968 - - -Inki - - -Grice - - -69 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0978 - - -Inki - - -Haverford - - -79 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0988 - - -Inki - - -Ilvedson - - -89 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0998 - - -Inki - - -Jones - - -99 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0009 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0019 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0029 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0039 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0049 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0059 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0069 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0079 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0089 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0099 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -AL - - -22000 - - - - -0109 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0119 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0129 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0139 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0149 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0159 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0169 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0179 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0189 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0199 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -AK - - -22000 - - - - -0209 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0219 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0229 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0239 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0249 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0259 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0269 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0279 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0289 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0299 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -AZ - - -22000 - - - - -0309 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0319 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0329 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0339 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0349 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0359 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0369 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0379 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0389 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0399 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -AR - - -22000 - - - - -0409 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0419 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0429 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0439 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0449 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0459 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0469 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0479 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0489 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0499 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -CA - - -22000 - - - - -0509 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0519 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0529 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0539 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0549 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0559 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0569 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0579 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0589 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0599 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -CO - - -22000 - - - - -0609 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0619 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0629 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0639 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0649 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0659 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0669 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0679 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0689 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0699 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -CT - - -22000 - - - - -0709 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0719 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0729 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0739 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0749 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0759 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0769 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0779 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0789 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0799 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -DE - - -22000 - - - - -0809 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0819 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0829 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0839 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0849 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0859 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0869 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0879 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0889 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0899 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -FL - - -22000 - - - - -0909 - - -James - - -Aranow - - -10 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0919 - - -James - - -Barker - - -20 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0929 - - -James - - -Corsetti - - -30 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0939 - - -James - - -Dershowitz - - -40 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0949 - - -James - - -Engleman - - -50 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0959 - - -James - - -Franklin - - -60 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0969 - - -James - - -Grice - - -70 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0979 - - -James - - -Haverford - - -80 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0989 - - -James - - -Ilvedson - - -90 -Any -St. - - -Anytown - - -GA - - -22000 - - - - -0999 - - -James - - -Jones - - -100 -Any -St. - - -Anytown - - -GA - - -22000 - - -
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/stringsort.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/stringsort.xsl deleted file mode 100644 index 06f558888f..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/stringsort.xsl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - -
    -
    - - - - - - - -
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/summarize.out b/src/tools/docbook/libxslt/tests/XSLTMark/summarize.out deleted file mode 100644 index cb6e2aab62..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/summarize.out +++ /dev/null @@ -1,9 +0,0 @@ - -

    239 nodes, - 100 elements, - 137 text nodes, - 131 attributes. - Recognized as xslt stylesheet:7 templates, - 1 variables, - 2 value-of's, - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/summarize.ref b/src/tools/docbook/libxslt/tests/XSLTMark/summarize.ref deleted file mode 100644 index 6226d739c4..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/summarize.ref +++ /dev/null @@ -1,29 +0,0 @@ - - -239 -nodes, -100 -elements, -137 -text -nodes, -131 -attributes. - - - -Recognized -as -xslt -stylesheet: - - -7 -templates, -1 -variables, -2 -value-of's, - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/summarize.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/summarize.xsl deleted file mode 100644 index 70058d2d1f..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/summarize.xsl +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - nodes, - elements, - text nodes, - attributes. - - - - - - - - - - - - Recognized as xslt stylesheet: - - templates, - variables, - value-of's, - - - - - - - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/total.out b/src/tools/docbook/libxslt/tests/XSLTMark/total.out deleted file mode 100644 index 15a354c2a9..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/total.out +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -
    Total Sales
    199762
    199872
    199979
    200088
    Grand Total301
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/total.ref b/src/tools/docbook/libxslt/tests/XSLTMark/total.ref deleted file mode 100644 index 99bd1bba49..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/total.ref +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - -
    -Total -Sales -
    -1997 - -62 -
    -1998 - -72 -
    -1999 - -79 -
    -2000 - -88 -
    -Grand -Total - -301 -
    - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/total.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/total.xsl deleted file mode 100644 index bf3e75ad3f..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/total.xsl +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - -
    Total Sales
    - - - -
    Grand Total - -
    - -
    -
    \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/tower.out b/src/tools/docbook/libxslt/tests/XSLTMark/tower.out deleted file mode 100644 index 4b2572571f..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/tower.out +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/tower.ref b/src/tools/docbook/libxslt/tests/XSLTMark/tower.ref deleted file mode 100644 index f8ca6643d2..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/tower.ref +++ /dev/null @@ -1,5122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/tower.xml b/src/tools/docbook/libxslt/tests/XSLTMark/tower.xml deleted file mode 100644 index 20b352729b..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/tower.xml +++ /dev/null @@ -1,3 +0,0 @@ - - -10 diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/tower.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/tower.xsl deleted file mode 100644 index ead003cf41..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/tower.xsl +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/tower2.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/tower2.xsl deleted file mode 100644 index 6e365e49d1..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/tower2.xsl +++ /dev/null @@ -1,194 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/trend.out b/src/tools/docbook/libxslt/tests/XSLTMark/trend.out deleted file mode 100644 index 7360ddfd77..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/trend.out +++ /dev/null @@ -1,121 +0,0 @@ - - - 4233NaN - 3444-8 - 35411 - 3242-3 - 674335 - 3452-33 - 455511 - 785433 - 6056-18 - 63613 - 5666-7 - 62636 - 67655 - 71674 - 6572-6 - 74759 - 80766 - 83783 - 85802 - 8382-2 - 84821 - 7984-5 - 82843 - 85853 - 87862 - 90873 - 91871 - 93852 - 8882-5 - 8480-4 - 7277-12 - 6672-6 - 73637 - 6158-12 - 5851-3 - 4249-16 - 3943-3 - 3039-9 - 37327 - 3229-5 - 2826-4 - 2228-6 - 1826-4 - 19251 - 342215 - 2127-13 - 27316 - 2538-2 - 394114 - 504811 - 615411 - 66625 - 73697 - 7177-2 - 80809 - 908410 - 92792 - 93721 - 99646 - 4264-57 - 3461-8 - 35511 - 3242-3 - 674335 - 3452-33 - 455511 - 785433 - 6056-18 - 63613 - 5666-7 - 62636 - 67655 - 71674 - 6572-6 - 74759 - 80766 - 83783 - 85802 - 8382-2 - 84821 - 7984-5 - 82843 - 85853 - 87862 - 90873 - 91871 - 93852 - 8882-5 - 8480-4 - 7277-12 - 6672-6 - 73637 - 6158-12 - 5851-3 - 4249-16 - 3943-3 - 3039-9 - 37327 - 3229-5 - 2826-4 - 2228-6 - 1826-4 - 19251 - 342215 - 2127-13 - 27316 - 2538-2 - 394114 - 504811 - 615411 - 66625 - 73697 - 7177-2 - 80809 - 908410 - 92862 - 93901 - 99916 - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/trend.ref b/src/tools/docbook/libxslt/tests/XSLTMark/trend.ref deleted file mode 100644 index 8fe0552c52..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/trend.ref +++ /dev/null @@ -1,1300 +0,0 @@ - - - -42 - - -33 - - -NaN - - - - -34 - - -44 - - --8 - - - - -35 - - -41 - - -1 - - - - -32 - - -42 - - --3 - - - - -67 - - -43 - - -35 - - - - -34 - - -52 - - --33 - - - - -45 - - -55 - - -11 - - - - -78 - - -54 - - -33 - - - - -60 - - -56 - - --18 - - - - -63 - - -61 - - -3 - - - - -56 - - -66 - - --7 - - - - -62 - - -63 - - -6 - - - - -67 - - -65 - - -5 - - - - -71 - - -67 - - -4 - - - - -65 - - -72 - - --6 - - - - -74 - - -75 - - -9 - - - - -80 - - -76 - - -6 - - - - -83 - - -78 - - -3 - - - - -85 - - -80 - - -2 - - - - -83 - - -82 - - --2 - - - - -84 - - -82 - - -1 - - - - -79 - - -84 - - --5 - - - - -82 - - -84 - - -3 - - - - -85 - - -85 - - -3 - - - - -87 - - -86 - - -2 - - - - -90 - - -87 - - -3 - - - - -91 - - -87 - - -1 - - - - -93 - - -85 - - -2 - - - - -88 - - -82 - - --5 - - - - -84 - - -80 - - --4 - - - - -72 - - -77 - - --12 - - - - -66 - - -72 - - --6 - - - - -73 - - -63 - - -7 - - - - -61 - - -58 - - --12 - - - - -58 - - -51 - - --3 - - - - -42 - - -49 - - --16 - - - - -39 - - -43 - - --3 - - - - -30 - - -39 - - --9 - - - - -37 - - -32 - - -7 - - - - -32 - - -29 - - --5 - - - - -28 - - -26 - - --4 - - - - -22 - - -28 - - --6 - - - - -18 - - -26 - - --4 - - - - -19 - - -25 - - -1 - - - - -34 - - -22 - - -15 - - - - -21 - - -27 - - --13 - - - - -27 - - -31 - - -6 - - - - -25 - - -38 - - --2 - - - - -39 - - -41 - - -14 - - - - -50 - - -48 - - -11 - - - - -61 - - -54 - - -11 - - - - -66 - - -62 - - -5 - - - - -73 - - -69 - - -7 - - - - -71 - - -77 - - --2 - - - - -80 - - -80 - - -9 - - - - -90 - - -84 - - -10 - - - - -92 - - -79 - - -2 - - - - -93 - - -72 - - -1 - - - - -99 - - -64 - - -6 - - - - -42 - - -64 - - --57 - - - - -34 - - -61 - - --8 - - - - -35 - - -51 - - -1 - - - - -32 - - -42 - - --3 - - - - -67 - - -43 - - -35 - - - - -34 - - -52 - - --33 - - - - -45 - - -55 - - -11 - - - - -78 - - -54 - - -33 - - - - -60 - - -56 - - --18 - - - - -63 - - -61 - - -3 - - - - -56 - - -66 - - --7 - - - - -62 - - -63 - - -6 - - - - -67 - - -65 - - -5 - - - - -71 - - -67 - - -4 - - - - -65 - - -72 - - --6 - - - - -74 - - -75 - - -9 - - - - -80 - - -76 - - -6 - - - - -83 - - -78 - - -3 - - - - -85 - - -80 - - -2 - - - - -83 - - -82 - - --2 - - - - -84 - - -82 - - -1 - - - - -79 - - -84 - - --5 - - - - -82 - - -84 - - -3 - - - - -85 - - -85 - - -3 - - - - -87 - - -86 - - -2 - - - - -90 - - -87 - - -3 - - - - -91 - - -87 - - -1 - - - - -93 - - -85 - - -2 - - - - -88 - - -82 - - --5 - - - - -84 - - -80 - - --4 - - - - -72 - - -77 - - --12 - - - - -66 - - -72 - - --6 - - - - -73 - - -63 - - -7 - - - - -61 - - -58 - - --12 - - - - -58 - - -51 - - --3 - - - - -42 - - -49 - - --16 - - - - -39 - - -43 - - --3 - - - - -30 - - -39 - - --9 - - - - -37 - - -32 - - -7 - - - - -32 - - -29 - - --5 - - - - -28 - - -26 - - --4 - - - - -22 - - -28 - - --6 - - - - -18 - - -26 - - --4 - - - - -19 - - -25 - - -1 - - - - -34 - - -22 - - -15 - - - - -21 - - -27 - - --13 - - - - -27 - - -31 - - -6 - - - - -25 - - -38 - - --2 - - - - -39 - - -41 - - -14 - - - - -50 - - -48 - - -11 - - - - -61 - - -54 - - -11 - - - - -66 - - -62 - - -5 - - - - -73 - - -69 - - -7 - - - - -71 - - -77 - - --2 - - - - -80 - - -80 - - -9 - - - - -90 - - -84 - - -10 - - - - -92 - - -86 - - -2 - - - - -93 - - -90 - - -1 - - - - -99 - - -91 - - -6 - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/trend.xml b/src/tools/docbook/libxslt/tests/XSLTMark/trend.xml deleted file mode 100644 index 14769ecffe..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/trend.xml +++ /dev/null @@ -1,121 +0,0 @@ - - - 42 - 34 - 35 - 32 - 67 - 34 - 45 - 78 - 60 - 63 - 56 - 62 - 67 - 71 - 65 - 74 - 80 - 83 - 85 - 83 - 84 - 79 - 82 - 85 - 87 - 90 - 91 - 93 - 88 - 84 - 72 - 66 - 73 - 61 - 58 - 42 - 39 - 30 - 37 - 32 - 28 - 22 - 18 - 19 - 34 - 21 - 27 - 25 - 39 - 50 - 61 - 66 - 73 - 71 - 80 - 90 - 92 - 93 - 99 - 42 - 34 - 35 - 32 - 67 - 34 - 45 - 78 - 60 - 63 - 56 - 62 - 67 - 71 - 65 - 74 - 80 - 83 - 85 - 83 - 84 - 79 - 82 - 85 - 87 - 90 - 91 - 93 - 88 - 84 - 72 - 66 - 73 - 61 - 58 - 42 - 39 - 30 - 37 - 32 - 28 - 22 - 18 - 19 - 34 - 21 - 27 - 25 - 39 - 50 - 61 - 66 - 73 - 71 - 80 - 90 - 92 - 93 - 99 - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/trend.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/trend.xsl deleted file mode 100644 index 138f703162..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/trend.xsl +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/union.out b/src/tools/docbook/libxslt/tests/XSLTMark/union.out deleted file mode 100644 index bfbdf29f35..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/union.out +++ /dev/null @@ -1,8 +0,0 @@ - - -x2xxxb -a3xxxx -a5xxxb -x7xxxb -a8xxxx - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/union.ref b/src/tools/docbook/libxslt/tests/XSLTMark/union.ref deleted file mode 100644 index 56d3c7a419..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/union.ref +++ /dev/null @@ -1,17 +0,0 @@ - - -x2xxxb - - -a3xxxx - - -a5xxxb - - -x7xxxb - - -a8xxxx - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/union.xml b/src/tools/docbook/libxslt/tests/XSLTMark/union.xml deleted file mode 100644 index 5555589c84..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/union.xml +++ /dev/null @@ -1,11 +0,0 @@ - - x1xxxx - x2xxxb - a3xxxx - x4xxxx - a5xxxb - x6xxxx - x7xxxb - a8xxxx - - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/union.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/union.xsl deleted file mode 100644 index 42f7eefc11..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/union.xsl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/xpath.out b/src/tools/docbook/libxslt/tests/XSLTMark/xpath.out deleted file mode 100644 index baff0c07ba..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/xpath.out +++ /dev/null @@ -1,19 +0,0 @@ - - - foo1 - barg1 - nar1 - - - - - nomba - bar2 - nar2 - nyargh - gurf - hurk - nar2 - foo2 - barg2 - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/xpath.ref b/src/tools/docbook/libxslt/tests/XSLTMark/xpath.ref deleted file mode 100644 index 4f37380e97..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/xpath.ref +++ /dev/null @@ -1,20 +0,0 @@ - - -foo1 - -barg1 -nar1 - - -nomba - -bar2 - -nar2 -nyargh -gurf -hurk -nar2 -foo2 -barg2 - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/xpath.xml b/src/tools/docbook/libxslt/tests/XSLTMark/xpath.xml deleted file mode 100644 index 3b196f6192..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/xpath.xml +++ /dev/null @@ -1,18 +0,0 @@ - - foo1 - barg1 - nar1 - - - - - nomba - bar2 - nar2 - nyargh - gurf - hurk - nar2 - foo2 - barg2 - \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/xpath.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/xpath.xsl deleted file mode 100644 index b8a3777d05..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/xpath.xsl +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/xslbench1.out b/src/tools/docbook/libxslt/tests/XSLTMark/xslbench1.out deleted file mode 100644 index 40cac787d3..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/xslbench1.out +++ /dev/null @@ -1,139 +0,0 @@ - - - -TFI Technology Products - - - - - - - - - - - - - - - - - - - - - -
    -TFI Technology Products -
    - - - - - - -
      -

    -
      -

    -Products
    Downloads
    Buy Now
    About TFI
    News Room -

    -
      -

    Keep up to date!
    Submit your e-mail address below. -

    -
      -

     

    -

     

    -

    Copyright © -
    1998-2000 -
    TFI Technology Ltd -
    Mail Us

    -
    - - - -
     
    -
    - - - - - - - - - - - - - - - - -
    Row1 - Text1Row1 - Text2
    Row2 - Text1Row2 - Text2
    Row3 - Text1Row3 - Text2
    Row4 - Text1Row4 - Text2
    -

    hbar.gif (979 bytes)

    -
    - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/xslbench1.xml b/src/tools/docbook/libxslt/tests/XSLTMark/xslbench1.xml deleted file mode 100644 index 9e3f9ba60c..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/xslbench1.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - Row1 - Text1 - Row1 - Text2 - - - Row2 - Text1 - Row2 - Text2 - - - Row3 - Text1 - Row3 - Text2 - - - Row4 - Text1 - Row4 - Text2 - -
    \ No newline at end of file diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/xslbench1.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/xslbench1.xsl deleted file mode 100644 index b0b375c282..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/xslbench1.xsl +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - - - - - TFI Technology Products - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - TFI Technology Products - -
    - - - - - - - - - - - - - -
      -

    - -

    -
      -

    - - Products -
    -
    - - Downloads -
    -
    - - Buy Now -
    -
    - - About TFI -
    -
    - - News Room - -

    -
      -
    -

    - - Keep up to date! -
    Submit your e-mail address below. -
    - - -
    -
    -

    -
    -
      -

     

    -

     

    -

    - Copyright © -
    1998-2000 -
    TFI Technology Ltd -
    - Mail Us -
    -

    -
    -
    - - - - - - -
    -  
    - -

    - hbar.gif (979 bytes) -

    - -
    - -
    - -
    - -
    - - - - - -
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/xslbench2.out b/src/tools/docbook/libxslt/tests/XSLTMark/xslbench2.out deleted file mode 100644 index 12693e59c7..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/xslbench2.out +++ /dev/null @@ -1,3227 +0,0 @@ - - - -A Midsummer Night's Dream - - -

    A Midsummer Night's Dream

    - -ASCII text placed in the public domain by Moby Lexical Tools, 1992. -SGML markup by Jon Bosak, 1992-1994. -XML version by Jon Bosak, 1996-1999. -The XML markup in this version is Copyright © 1999 Jon Bosak. -This work may freely be distributed on condition that it not be -modified or altered in any way. -

    Parts - Dramatis Personae

    -

    THESEUS, Duke of Athens.

    -

    EGEUS, father to Hermia.

    -

    LYSANDER

    -

    DEMETRIUS

    -

    PHILOSTRATE, master of the revels to Theseus.

    -

    QUINCE, a carpenter.

    -

    SNUG, a joiner.

    -

    BOTTOM, a weaver.

    -

    FLUTE, a bellows-mender.

    -

    SNOUT, a tinker.

    -

    STARVELING, a tailor.

    -

    HIPPOLYTA, queen of the Amazons, betrothed to Theseus.

    -

    HERMIA, daughter to Egeus, in love with Lysander.

    -

    HELENA, in love with Demetrius.

    -

    OBERON, king of the fairies.

    -

    TITANIA, queen of the fairies.

    -

    PUCK, or Robin Goodfellow.

    -

    PEASEBLOSSOM

    -

    COBWEB

    -

    MOTH

    -

    MUSTARDSEED

    -

    Other fairies attending their King and Queen.

    -

    Attendants on Theseus and Hippolyta.

    -

    ACT I

    -

    SCENE I. Athens. The palace of THESEUS.

    -

    THESEUS

    -Now, fair Hippolyta, our nuptial hour
    -Draws on apace; four happy days bring in
    -Another moon: but, O, methinks, how slow
    -This old moon wanes! she lingers my desires,
    -Like to a step-dame or a dowager
    -Long withering out a young man revenue.
    - -

    HIPPOLYTA

    -Four days will quickly steep themselves in night;
    -Four nights will quickly dream away the time;
    -And then the moon, like to a silver bow
    -New-bent in heaven, shall behold the night
    -Of our solemnities.
    - -

    THESEUS

    -Go, Philostrate,
    -Stir up the Athenian youth to merriments;
    -Awake the pert and nimble spirit of mirth;
    -Turn melancholy forth to funerals;
    -The pale companion is not for our pomp.
    -Exit PHILOSTRATE -Hippolyta, I woo'd thee with my sword,
    -And won thy love, doing thee injuries;
    -But I will wed thee in another key,
    -With pomp, with triumph and with revelling.
    - -

    EGEUS

    -Happy be Theseus, our renowned duke!
    - -

    THESEUS

    -Thanks, good Egeus: what's the news with thee?
    - -

    EGEUS

    -Full of vexation come I, with complaint
    -Against my child, my daughter Hermia.
    -Stand forth, Demetrius. My noble lord,
    -This man hath my consent to marry her.
    -Stand forth, Lysander: and my gracious duke,
    -This man hath bewitch'd the bosom of my child;
    -Thou, thou, Lysander, thou hast given her rhymes,
    -And interchanged love-tokens with my child:
    -Thou hast by moonlight at her window sung,
    -With feigning voice verses of feigning love,
    -And stolen the impression of her fantasy
    -With bracelets of thy hair, rings, gawds, conceits,
    -Knacks, trifles, nosegays, sweetmeats, messengers
    -Of strong prevailment in unharden'd youth:
    -With cunning hast thou filch'd my daughter's heart,
    -Turn'd her obedience, which is due to me,
    -To stubborn harshness: and, my gracious duke,
    -Be it so she; will not here before your grace
    -Consent to marry with Demetrius,
    -I beg the ancient privilege of Athens,
    -As she is mine, I may dispose of her:
    -Which shall be either to this gentleman
    -Or to her death, according to our law
    -Immediately provided in that case.
    - -

    THESEUS

    -What say you, Hermia? be advised fair maid:
    -To you your father should be as a god;
    -One that composed your beauties, yea, and one
    -To whom you are but as a form in wax
    -By him imprinted and within his power
    -To leave the figure or disfigure it.
    -Demetrius is a worthy gentleman.
    - -

    HERMIA

    -So is Lysander.
    - -

    THESEUS

    -In himself he is;
    -But in this kind, wanting your father's voice,
    -The other must be held the worthier.
    - -

    HERMIA

    -I would my father look'd but with my eyes.
    - -

    THESEUS

    -Rather your eyes must with his judgment look.
    - -

    HERMIA

    -I do entreat your grace to pardon me.
    -I know not by what power I am made bold,
    -Nor how it may concern my modesty,
    -In such a presence here to plead my thoughts;
    -But I beseech your grace that I may know
    -The worst that may befall me in this case,
    -If I refuse to wed Demetrius.
    - -

    THESEUS

    -Either to die the death or to abjure
    -For ever the society of men.
    -Therefore, fair Hermia, question your desires;
    -Know of your youth, examine well your blood,
    -Whether, if you yield not to your father's choice,
    -You can endure the livery of a nun,
    -For aye to be in shady cloister mew'd,
    -To live a barren sister all your life,
    -Chanting faint hymns to the cold fruitless moon.
    -Thrice-blessed they that master so their blood,
    -To undergo such maiden pilgrimage;
    -But earthlier happy is the rose distill'd,
    -Than that which withering on the virgin thorn
    -Grows, lives and dies in single blessedness.
    - -

    HERMIA

    -So will I grow, so live, so die, my lord,
    -Ere I will my virgin patent up
    -Unto his lordship, whose unwished yoke
    -My soul consents not to give sovereignty.
    - -

    THESEUS

    -Take time to pause; and, by the nest new moon--
    -The sealing-day betwixt my love and me,
    -For everlasting bond of fellowship--
    -Upon that day either prepare to die
    -For disobedience to your father's will,
    -Or else to wed Demetrius, as he would;
    -Or on Diana's altar to protest
    -For aye austerity and single life.
    - -

    DEMETRIUS

    -Relent, sweet Hermia: and, Lysander, yield
    -Thy crazed title to my certain right.
    - -

    LYSANDER

    -You have her father's love, Demetrius;
    -Let me have Hermia's: do you marry him.
    - -

    EGEUS

    -Scornful Lysander! true, he hath my love,
    -And what is mine my love shall render him.
    -And she is mine, and all my right of her
    -I do estate unto Demetrius.
    - -

    LYSANDER

    -I am, my lord, as well derived as he,
    -As well possess'd; my love is more than his;
    -My fortunes every way as fairly rank'd,
    -If not with vantage, as Demetrius';
    -And, which is more than all these boasts can be,
    -I am beloved of beauteous Hermia:
    -Why should not I then prosecute my right?
    -Demetrius, I'll avouch it to his head,
    -Made love to Nedar's daughter, Helena,
    -And won her soul; and she, sweet lady, dotes,
    -Devoutly dotes, dotes in idolatry,
    -Upon this spotted and inconstant man.
    - -

    THESEUS

    -I must confess that I have heard so much,
    -And with Demetrius thought to have spoke thereof;
    -But, being over-full of self-affairs,
    -My mind did lose it. But, Demetrius, come;
    -And come, Egeus; you shall go with me,
    -I have some private schooling for you both.
    -For you, fair Hermia, look you arm yourself
    -To fit your fancies to your father's will;
    -Or else the law of Athens yields you up--
    -Which by no means we may extenuate--
    -To death, or to a vow of single life.
    -Come, my Hippolyta: what cheer, my love?
    -Demetrius and Egeus, go along:
    -I must employ you in some business
    -Against our nuptial and confer with you
    -Of something nearly that concerns yourselves.
    - -

    EGEUS

    -With duty and desire we follow you.
    - -

    LYSANDER

    -How now, my love! why is your cheek so pale?
    -How chance the roses there do fade so fast?
    - -

    HERMIA

    -Belike for want of rain, which I could well
    -Beteem them from the tempest of my eyes.
    - -

    LYSANDER

    -Ay me! for aught that I could ever read,
    -Could ever hear by tale or history,
    -The course of true love never did run smooth;
    -But, either it was different in blood,--
    - -

    HERMIA

    -O cross! too high to be enthrall'd to low.
    - -

    LYSANDER

    -Or else misgraffed in respect of years,--
    - -

    HERMIA

    -O spite! too old to be engaged to young.
    - -

    LYSANDER

    -Or else it stood upon the choice of friends,--
    - -

    HERMIA

    -O hell! to choose love by another's eyes.
    - -

    LYSANDER

    -Or, if there were a sympathy in choice,
    -War, death, or sickness did lay siege to it,
    -Making it momentany as a sound,
    -Swift as a shadow, short as any dream;
    -Brief as the lightning in the collied night,
    -That, in a spleen, unfolds both heaven and earth,
    -And ere a man hath power to say 'Behold!'
    -The jaws of darkness do devour it up:
    -So quick bright things come to confusion.
    - -

    HERMIA

    -If then true lovers have been ever cross'd,
    -It stands as an edict in destiny:
    -Then let us teach our trial patience,
    -Because it is a customary cross,
    -As due to love as thoughts and dreams and sighs,
    -Wishes and tears, poor fancy's followers.
    - -

    LYSANDER

    -A good persuasion: therefore, hear me, Hermia.
    -I have a widow aunt, a dowager
    -Of great revenue, and she hath no child:
    -From Athens is her house remote seven leagues;
    -And she respects me as her only son.
    -There, gentle Hermia, may I marry thee;
    -And to that place the sharp Athenian law
    -Cannot pursue us. If thou lovest me then,
    -Steal forth thy father's house to-morrow night;
    -And in the wood, a league without the town,
    -Where I did meet thee once with Helena,
    -To do observance to a morn of May,
    -There will I stay for thee.
    - -

    HERMIA

    -My good Lysander!
    -I swear to thee, by Cupid's strongest bow,
    -By his best arrow with the golden head,
    -By the simplicity of Venus' doves,
    -By that which knitteth souls and prospers loves,
    -And by that fire which burn'd the Carthage queen,
    -When the false Troyan under sail was seen,
    -By all the vows that ever men have broke,
    -In number more than ever women spoke,
    -In that same place thou hast appointed me,
    -To-morrow truly will I meet with thee.
    - -

    LYSANDER

    -Keep promise, love. Look, here comes Helena.
    - -

    HERMIA

    -God speed fair Helena! whither away?
    - -

    HELENA

    -Call you me fair? that fair again unsay.
    -Demetrius loves your fair: O happy fair!
    -Your eyes are lode-stars; and your tongue's sweet air
    -More tuneable than lark to shepherd's ear,
    -When wheat is green, when hawthorn buds appear.
    -Sickness is catching: O, were favour so,
    -Yours would I catch, fair Hermia, ere I go;
    -My ear should catch your voice, my eye your eye,
    -My tongue should catch your tongue's sweet melody.
    -Were the world mine, Demetrius being bated,
    -The rest I'd give to be to you translated.
    -O, teach me how you look, and with what art
    -You sway the motion of Demetrius' heart.
    - -

    HERMIA

    -I frown upon him, yet he loves me still.
    - -

    HELENA

    -O that your frowns would teach my smiles such skill!
    - -

    HERMIA

    -I give him curses, yet he gives me love.
    - -

    HELENA

    -O that my prayers could such affection move!
    - -

    HERMIA

    -The more I hate, the more he follows me.
    - -

    HELENA

    -The more I love, the more he hateth me.
    - -

    HERMIA

    -His folly, Helena, is no fault of mine.
    - -

    HELENA

    -None, but your beauty: would that fault were mine!
    - -

    HERMIA

    -Take comfort: he no more shall see my face;
    -Lysander and myself will fly this place.
    -Before the time I did Lysander see,
    -Seem'd Athens as a paradise to me:
    -O, then, what graces in my love do dwell,
    -That he hath turn'd a heaven unto a hell!
    - -

    LYSANDER

    -Helen, to you our minds we will unfold:
    -To-morrow night, when Phoebe doth behold
    -Her silver visage in the watery glass,
    -Decking with liquid pearl the bladed grass,
    -A time that lovers' flights doth still conceal,
    -Through Athens' gates have we devised to steal.
    - -

    HERMIA

    -And in the wood, where often you and I
    -Upon faint primrose-beds were wont to lie,
    -Emptying our bosoms of their counsel sweet,
    -There my Lysander and myself shall meet;
    -And thence from Athens turn away our eyes,
    -To seek new friends and stranger companies.
    -Farewell, sweet playfellow: pray thou for us;
    -And good luck grant thee thy Demetrius!
    -Keep word, Lysander: we must starve our sight
    -From lovers' food till morrow deep midnight.
    - -

    LYSANDER

    -I will, my Hermia.
    -Exit HERMIA -Helena, adieu:
    -As you on him, Demetrius dote on you!
    - -

    HELENA

    -How happy some o'er other some can be!
    -Through Athens I am thought as fair as she.
    -But what of that? Demetrius thinks not so;
    -He will not know what all but he do know:
    -And as he errs, doting on Hermia's eyes,
    -So I, admiring of his qualities:
    -Things base and vile, folding no quantity,
    -Love can transpose to form and dignity:
    -Love looks not with the eyes, but with the mind;
    -And therefore is wing'd Cupid painted blind:
    -Nor hath Love's mind of any judgement taste;
    -Wings and no eyes figure unheedy haste:
    -And therefore is Love said to be a child,
    -Because in choice he is so oft beguiled.
    -As waggish boys in game themselves forswear,
    -So the boy Love is perjured every where:
    -For ere Demetrius look'd on Hermia's eyne,
    -He hail'd down oaths that he was only mine;
    -And when this hail some heat from Hermia felt,
    -So he dissolved, and showers of oaths did melt.
    -I will go tell him of fair Hermia's flight:
    -Then to the wood will he to-morrow night
    -Pursue her; and for this intelligence
    -If I have thanks, it is a dear expense:
    -But herein mean I to enrich my pain,
    -To have his sight thither and back again.
    -

    SCENE II. Athens. QUINCE'S house.

    -

    QUINCE

    -Is all our company here?
    - -

    BOTTOM

    -You were best to call them generally, man by man,
    -according to the scrip.
    - -

    QUINCE

    -Here is the scroll of every man's name, which is
    -thought fit, through all Athens, to play in our
    -interlude before the duke and the duchess, on his
    -wedding-day at night.
    - -

    BOTTOM

    -First, good Peter Quince, say what the play treats
    -on, then read the names of the actors, and so grow
    -to a point.
    - -

    QUINCE

    -Marry, our play is, The most lamentable comedy, and
    -most cruel death of Pyramus and Thisby.
    - -

    BOTTOM

    -A very good piece of work, I assure you, and a
    -merry. Now, good Peter Quince, call forth your
    -actors by the scroll. Masters, spread yourselves.
    - -

    QUINCE

    -Answer as I call you. Nick Bottom, the weaver.
    - -

    BOTTOM

    -Ready. Name what part I am for, and proceed.
    - -

    QUINCE

    -You, Nick Bottom, are set down for Pyramus.
    - -

    BOTTOM

    -What is Pyramus? a lover, or a tyrant?
    - -

    QUINCE

    -A lover, that kills himself most gallant for love.
    - -

    BOTTOM

    -That will ask some tears in the true performing of
    -it: if I do it, let the audience look to their
    -eyes; I will move storms, I will condole in some
    -measure. To the rest: yet my chief humour is for a
    -tyrant: I could play Ercles rarely, or a part to
    -tear a cat in, to make all split.
    -The raging rocks
    -And shivering shocks
    -Shall break the locks
    -Of prison gates;
    -And Phibbus' car
    -Shall shine from far
    -And make and mar
    -The foolish Fates.
    -This was lofty! Now name the rest of the players.
    -This is Ercles' vein, a tyrant's vein; a lover is
    -more condoling.
    - -

    QUINCE

    -Francis Flute, the bellows-mender.
    - -

    FLUTE

    -Here, Peter Quince.
    - -

    QUINCE

    -Flute, you must take Thisby on you.
    - -

    FLUTE

    -What is Thisby? a wandering knight?
    - -

    QUINCE

    -It is the lady that Pyramus must love.
    - -

    FLUTE

    -Nay, faith, let me not play a woman; I have a beard coming.
    - -

    QUINCE

    -That's all one: you shall play it in a mask, and
    -you may speak as small as you will.
    - -

    BOTTOM

    -An I may hide my face, let me play Thisby too, I'll
    -speak in a monstrous little voice. 'Thisne,
    -Thisne;' 'Ah, Pyramus, lover dear! thy Thisby dear,
    -and lady dear!'
    - -

    QUINCE

    -No, no; you must play Pyramus: and, Flute, you Thisby.
    - -

    BOTTOM

    -Well, proceed.
    - -

    QUINCE

    -Robin Starveling, the tailor.
    - -

    STARVELING

    -Here, Peter Quince.
    - -

    QUINCE

    -Robin Starveling, you must play Thisby's mother.
    -Tom Snout, the tinker.
    - -

    SNOUT

    -Here, Peter Quince.
    - -

    QUINCE

    -You, Pyramus' father: myself, Thisby's father:
    -Snug, the joiner; you, the lion's part: and, I
    -hope, here is a play fitted.
    - -

    SNUG

    -Have you the lion's part written? pray you, if it
    -be, give it me, for I am slow of study.
    - -

    QUINCE

    -You may do it extempore, for it is nothing but roaring.
    - -

    BOTTOM

    -Let me play the lion too: I will roar, that I will
    -do any man's heart good to hear me; I will roar,
    -that I will make the duke say 'Let him roar again,
    -let him roar again.'
    - -

    QUINCE

    -An you should do it too terribly, you would fright
    -the duchess and the ladies, that they would shriek;
    -and that were enough to hang us all.
    - -

    ALL

    -That would hang us, every mother's son.
    - -

    BOTTOM

    -I grant you, friends, if that you should fright the
    -ladies out of their wits, they would have no more
    -discretion but to hang us: but I will aggravate my
    -voice so that I will roar you as gently as any
    -sucking dove; I will roar you an 'twere any
    -nightingale.
    - -

    QUINCE

    -You can play no part but Pyramus; for Pyramus is a
    -sweet-faced man; a proper man, as one shall see in a
    -summer's day; a most lovely gentleman-like man:
    -therefore you must needs play Pyramus.
    - -

    BOTTOM

    -Well, I will undertake it. What beard were I best
    -to play it in?
    - -

    QUINCE

    -Why, what you will.
    - -

    BOTTOM

    -I will discharge it in either your straw-colour
    -beard, your orange-tawny beard, your purple-in-grain
    -beard, or your French-crown-colour beard, your
    -perfect yellow.
    - -

    QUINCE

    -Some of your French crowns have no hair at all, and
    -then you will play bare-faced. But, masters, here
    -are your parts: and I am to entreat you, request
    -you and desire you, to con them by to-morrow night;
    -and meet me in the palace wood, a mile without the
    -town, by moonlight; there will we rehearse, for if
    -we meet in the city, we shall be dogged with
    -company, and our devices known. In the meantime I
    -will draw a bill of properties, such as our play
    -wants. I pray you, fail me not.
    - -

    BOTTOM

    -We will meet; and there we may rehearse most
    -obscenely and courageously. Take pains; be perfect: adieu.
    - -

    QUINCE

    -At the duke's oak we meet.
    - -

    BOTTOM

    -Enough; hold or cut bow-strings.
    -

    ACT II

    -

    SCENE I. A wood near Athens.

    -

    PUCK

    -How now, spirit! whither wander you?
    - -

    Fairy

    -Over hill, over dale,
    -Thorough bush, thorough brier,
    -Over park, over pale,
    -Thorough flood, thorough fire,
    -I do wander everywhere,
    -Swifter than the moon's sphere;
    -And I serve the fairy queen,
    -To dew her orbs upon the green.
    -The cowslips tall her pensioners be:
    -In their gold coats spots you see;
    -Those be rubies, fairy favours,
    -In those freckles live their savours:
    -I must go seek some dewdrops here
    -And hang a pearl in every cowslip's ear.
    -Farewell, thou lob of spirits; I'll be gone:
    -Our queen and all our elves come here anon.
    - -

    PUCK

    -The king doth keep his revels here to-night:
    -Take heed the queen come not within his sight;
    -For Oberon is passing fell and wrath,
    -Because that she as her attendant hath
    -A lovely boy, stolen from an Indian king;
    -She never had so sweet a changeling;
    -And jealous Oberon would have the child
    -Knight of his train, to trace the forests wild;
    -But she perforce withholds the loved boy,
    -Crowns him with flowers and makes him all her joy:
    -And now they never meet in grove or green,
    -By fountain clear, or spangled starlight sheen,
    -But, they do square, that all their elves for fear
    -Creep into acorn-cups and hide them there.
    - -

    Fairy

    -Either I mistake your shape and making quite,
    -Or else you are that shrewd and knavish sprite
    -Call'd Robin Goodfellow: are not you he
    -That frights the maidens of the villagery;
    -Skim milk, and sometimes labour in the quern
    -And bootless make the breathless housewife churn;
    -And sometime make the drink to bear no barm;
    -Mislead night-wanderers, laughing at their harm?
    -Those that Hobgoblin call you and sweet Puck,
    -You do their work, and they shall have good luck:
    -Are not you he?
    - -

    PUCK

    -Thou speak'st aright;
    -I am that merry wanderer of the night.
    -I jest to Oberon and make him smile
    -When I a fat and bean-fed horse beguile,
    -Neighing in likeness of a filly foal:
    -And sometime lurk I in a gossip's bowl,
    -In very likeness of a roasted crab,
    -And when she drinks, against her lips I bob
    -And on her wither'd dewlap pour the ale.
    -The wisest aunt, telling the saddest tale,
    -Sometime for three-foot stool mistaketh me;
    -Then slip I from her bum, down topples she,
    -And 'tailor' cries, and falls into a cough;
    -And then the whole quire hold their hips and laugh,
    -And waxen in their mirth and neeze and swear
    -A merrier hour was never wasted there.
    -But, room, fairy! here comes Oberon.
    - -

    Fairy

    -And here my mistress. Would that he were gone!
    - -

    OBERON

    -Ill met by moonlight, proud Titania.
    - -

    TITANIA

    -What, jealous Oberon! Fairies, skip hence:
    -I have forsworn his bed and company.
    - -

    OBERON

    -Tarry, rash wanton: am not I thy lord?
    - -

    TITANIA

    -Then I must be thy lady: but I know
    -When thou hast stolen away from fairy land,
    -And in the shape of Corin sat all day,
    -Playing on pipes of corn and versing love
    -To amorous Phillida. Why art thou here,
    -Come from the farthest Steppe of India?
    -But that, forsooth, the bouncing Amazon,
    -Your buskin'd mistress and your warrior love,
    -To Theseus must be wedded, and you come
    -To give their bed joy and prosperity.
    - -

    OBERON

    -How canst thou thus for shame, Titania,
    -Glance at my credit with Hippolyta,
    -Knowing I know thy love to Theseus?
    -Didst thou not lead him through the glimmering night
    -From Perigenia, whom he ravished?
    -And make him with fair AEgle break his faith,
    -With Ariadne and Antiopa?
    - -

    TITANIA

    -These are the forgeries of jealousy:
    -And never, since the middle summer's spring,
    -Met we on hill, in dale, forest or mead,
    -By paved fountain or by rushy brook,
    -Or in the beached margent of the sea,
    -To dance our ringlets to the whistling wind,
    -But with thy brawls thou hast disturb'd our sport.
    -Therefore the winds, piping to us in vain,
    -As in revenge, have suck'd up from the sea
    -Contagious fogs; which falling in the land
    -Have every pelting river made so proud
    -That they have overborne their continents:
    -The ox hath therefore stretch'd his yoke in vain,
    -The ploughman lost his sweat, and the green corn
    -Hath rotted ere his youth attain'd a beard;
    -The fold stands empty in the drowned field,
    -And crows are fatted with the murrion flock;
    -The nine men's morris is fill'd up with mud,
    -And the quaint mazes in the wanton green
    -For lack of tread are undistinguishable:
    -The human mortals want their winter here;
    -No night is now with hymn or carol blest:
    -Therefore the moon, the governess of floods,
    -Pale in her anger, washes all the air,
    -That rheumatic diseases do abound:
    -And thorough this distemperature we see
    -The seasons alter: hoary-headed frosts
    -Far in the fresh lap of the crimson rose,
    -And on old Hiems' thin and icy crown
    -An odorous chaplet of sweet summer buds
    -Is, as in mockery, set: the spring, the summer,
    -The childing autumn, angry winter, change
    -Their wonted liveries, and the mazed world,
    -By their increase, now knows not which is which:
    -And this same progeny of evils comes
    -From our debate, from our dissension;
    -We are their parents and original.
    - -

    OBERON

    -Do you amend it then; it lies in you:
    -Why should Titania cross her Oberon?
    -I do but beg a little changeling boy,
    -To be my henchman.
    - -

    TITANIA

    -Set your heart at rest:
    -The fairy land buys not the child of me.
    -His mother was a votaress of my order:
    -And, in the spiced Indian air, by night,
    -Full often hath she gossip'd by my side,
    -And sat with me on Neptune's yellow sands,
    -Marking the embarked traders on the flood,
    -When we have laugh'd to see the sails conceive
    -And grow big-bellied with the wanton wind;
    -Which she, with pretty and with swimming gait
    -Following,--her womb then rich with my young squire,--
    -Would imitate, and sail upon the land,
    -To fetch me trifles, and return again,
    -As from a voyage, rich with merchandise.
    -But she, being mortal, of that boy did die;
    -And for her sake do I rear up her boy,
    -And for her sake I will not part with him.
    - -

    OBERON

    -How long within this wood intend you stay?
    - -

    TITANIA

    -Perchance till after Theseus' wedding-day.
    -If you will patiently dance in our round
    -And see our moonlight revels, go with us;
    -If not, shun me, and I will spare your haunts.
    - -

    OBERON

    -Give me that boy, and I will go with thee.
    - -

    TITANIA

    -Not for thy fairy kingdom. Fairies, away!
    -We shall chide downright, if I longer stay.
    - -

    OBERON

    -Well, go thy way: thou shalt not from this grove
    -Till I torment thee for this injury.
    -My gentle Puck, come hither. Thou rememberest
    -Since once I sat upon a promontory,
    -And heard a mermaid on a dolphin's back
    -Uttering such dulcet and harmonious breath
    -That the rude sea grew civil at her song
    -And certain stars shot madly from their spheres,
    -To hear the sea-maid's music.
    - -

    PUCK

    -I remember.
    - -

    OBERON

    -That very time I saw, but thou couldst not,
    -Flying between the cold moon and the earth,
    -Cupid all arm'd: a certain aim he took
    -At a fair vestal throned by the west,
    -And loosed his love-shaft smartly from his bow,
    -As it should pierce a hundred thousand hearts;
    -But I might see young Cupid's fiery shaft
    -Quench'd in the chaste beams of the watery moon,
    -And the imperial votaress passed on,
    -In maiden meditation, fancy-free.
    -Yet mark'd I where the bolt of Cupid fell:
    -It fell upon a little western flower,
    -Before milk-white, now purple with love's wound,
    -And maidens call it love-in-idleness.
    -Fetch me that flower; the herb I shew'd thee once:
    -The juice of it on sleeping eye-lids laid
    -Will make or man or woman madly dote
    -Upon the next live creature that it sees.
    -Fetch me this herb; and be thou here again
    -Ere the leviathan can swim a league.
    - -

    PUCK

    -I'll put a girdle round about the earth
    -In forty minutes.
    - -

    OBERON

    -Having once this juice,
    -I'll watch Titania when she is asleep,
    -And drop the liquor of it in her eyes.
    -The next thing then she waking looks upon,
    -Be it on lion, bear, or wolf, or bull,
    -On meddling monkey, or on busy ape,
    -She shall pursue it with the soul of love:
    -And ere I take this charm from off her sight,
    -As I can take it with another herb,
    -I'll make her render up her page to me.
    -But who comes here? I am invisible;
    -And I will overhear their conference.
    - -

    DEMETRIUS

    -I love thee not, therefore pursue me not.
    -Where is Lysander and fair Hermia?
    -The one I'll slay, the other slayeth me.
    -Thou told'st me they were stolen unto this wood;
    -And here am I, and wode within this wood,
    -Because I cannot meet my Hermia.
    -Hence, get thee gone, and follow me no more.
    - -

    HELENA

    -You draw me, you hard-hearted adamant;
    -But yet you draw not iron, for my heart
    -Is true as steel: leave you your power to draw,
    -And I shall have no power to follow you.
    - -

    DEMETRIUS

    -Do I entice you? do I speak you fair?
    -Or, rather, do I not in plainest truth
    -Tell you, I do not, nor I cannot love you?
    - -

    HELENA

    -And even for that do I love you the more.
    -I am your spaniel; and, Demetrius,
    -The more you beat me, I will fawn on you:
    -Use me but as your spaniel, spurn me, strike me,
    -Neglect me, lose me; only give me leave,
    -Unworthy as I am, to follow you.
    -What worser place can I beg in your love,--
    -And yet a place of high respect with me,--
    -Than to be used as you use your dog?
    - -

    DEMETRIUS

    -Tempt not too much the hatred of my spirit;
    -For I am sick when I do look on thee.
    - -

    HELENA

    -And I am sick when I look not on you.
    - -

    DEMETRIUS

    -You do impeach your modesty too much,
    -To leave the city and commit yourself
    -Into the hands of one that loves you not;
    -To trust the opportunity of night
    -And the ill counsel of a desert place
    -With the rich worth of your virginity.
    - -

    HELENA

    -Your virtue is my privilege: for that
    -It is not night when I do see your face,
    -Therefore I think I am not in the night;
    -Nor doth this wood lack worlds of company,
    -For you in my respect are all the world:
    -Then how can it be said I am alone,
    -When all the world is here to look on me?
    - -

    DEMETRIUS

    -I'll run from thee and hide me in the brakes,
    -And leave thee to the mercy of wild beasts.
    - -

    HELENA

    -The wildest hath not such a heart as you.
    -Run when you will, the story shall be changed:
    -Apollo flies, and Daphne holds the chase;
    -The dove pursues the griffin; the mild hind
    -Makes speed to catch the tiger; bootless speed,
    -When cowardice pursues and valour flies.
    - -

    DEMETRIUS

    -I will not stay thy questions; let me go:
    -Or, if thou follow me, do not believe
    -But I shall do thee mischief in the wood.
    - -

    HELENA

    -Ay, in the temple, in the town, the field,
    -You do me mischief. Fie, Demetrius!
    -Your wrongs do set a scandal on my sex:
    -We cannot fight for love, as men may do;
    -We should be wood and were not made to woo.
    -Exit DEMETRIUS -I'll follow thee and make a heaven of hell,
    -To die upon the hand I love so well.
    - -

    OBERON

    -Fare thee well, nymph: ere he do leave this grove,
    -Thou shalt fly him and he shall seek thy love.
    -Re-enter PUCK -Hast thou the flower there? Welcome, wanderer.
    - -

    PUCK

    -Ay, there it is.
    - -

    OBERON

    -I pray thee, give it me.
    -I know a bank where the wild thyme blows,
    -Where oxlips and the nodding violet grows,
    -Quite over-canopied with luscious woodbine,
    -With sweet musk-roses and with eglantine:
    -There sleeps Titania sometime of the night,
    -Lull'd in these flowers with dances and delight;
    -And there the snake throws her enamell'd skin,
    -Weed wide enough to wrap a fairy in:
    -And with the juice of this I'll streak her eyes,
    -And make her full of hateful fantasies.
    -Take thou some of it, and seek through this grove:
    -A sweet Athenian lady is in love
    -With a disdainful youth: anoint his eyes;
    -But do it when the next thing he espies
    -May be the lady: thou shalt know the man
    -By the Athenian garments he hath on.
    -Effect it with some care, that he may prove
    -More fond on her than she upon her love:
    -And look thou meet me ere the first cock crow.
    - -

    PUCK

    -Fear not, my lord, your servant shall do so.
    -

    SCENE II. Another part of the wood.

    -

    TITANIA

    -Come, now a roundel and a fairy song;
    -Then, for the third part of a minute, hence;
    -Some to kill cankers in the musk-rose buds,
    -Some war with rere-mice for their leathern wings,
    -To make my small elves coats, and some keep back
    -The clamorous owl that nightly hoots and wonders
    -At our quaint spirits. Sing me now asleep;
    -Then to your offices and let me rest.
    -The Fairies sing -You spotted snakes with double tongue,
    -Thorny hedgehogs, be not seen;
    -Newts and blind-worms, do no wrong,
    -Come not near our fairy queen.
    -Philomel, with melody
    -Sing in our sweet lullaby;
    -Lulla, lulla, lullaby, lulla, lulla, lullaby:
    -Never harm,
    -Nor spell nor charm,
    -Come our lovely lady nigh;
    -So, good night, with lullaby.
    -Weaving spiders, come not here;
    -Hence, you long-legg'd spinners, hence!
    -Beetles black, approach not near;
    -Worm nor snail, do no offence.
    -Philomel, with melody, &c.
    - -

    Fairy

    -Hence, away! now all is well:
    -One aloof stand sentinel.
    - -

    OBERON

    -What thou seest when thou dost wake,
    -Do it for thy true-love take,
    -Love and languish for his sake:
    -Be it ounce, or cat, or bear,
    -Pard, or boar with bristled hair,
    -In thy eye that shall appear
    -When thou wakest, it is thy dear:
    -Wake when some vile thing is near.
    - -

    LYSANDER

    -Fair love, you faint with wandering in the wood;
    -And to speak troth, I have forgot our way:
    -We'll rest us, Hermia, if you think it good,
    -And tarry for the comfort of the day.
    - -

    HERMIA

    -Be it so, Lysander: find you out a bed;
    -For I upon this bank will rest my head.
    - -

    LYSANDER

    -One turf shall serve as pillow for us both;
    -One heart, one bed, two bosoms and one troth.
    - -

    HERMIA

    -Nay, good Lysander; for my sake, my dear,
    -Lie further off yet, do not lie so near.
    - -

    LYSANDER

    -O, take the sense, sweet, of my innocence!
    -Love takes the meaning in love's conference.
    -I mean, that my heart unto yours is knit
    -So that but one heart we can make of it;
    -Two bosoms interchained with an oath;
    -So then two bosoms and a single troth.
    -Then by your side no bed-room me deny;
    -For lying so, Hermia, I do not lie.
    - -

    HERMIA

    -Lysander riddles very prettily:
    -Now much beshrew my manners and my pride,
    -If Hermia meant to say Lysander lied.
    -But, gentle friend, for love and courtesy
    -Lie further off; in human modesty,
    -Such separation as may well be said
    -Becomes a virtuous bachelor and a maid,
    -So far be distant; and, good night, sweet friend:
    -Thy love ne'er alter till thy sweet life end!
    - -

    LYSANDER

    -Amen, amen, to that fair prayer, say I;
    -And then end life when I end loyalty!
    -Here is my bed: sleep give thee all his rest!
    - -

    HERMIA

    -With half that wish the wisher's eyes be press'd!
    - -

    PUCK

    -Through the forest have I gone.
    -But Athenian found I none,
    -On whose eyes I might approve
    -This flower's force in stirring love.
    -Night and silence.--Who is here?
    -Weeds of Athens he doth wear:
    -This is he, my master said,
    -Despised the Athenian maid;
    -And here the maiden, sleeping sound,
    -On the dank and dirty ground.
    -Pretty soul! she durst not lie
    -Near this lack-love, this kill-courtesy.
    -Churl, upon thy eyes I throw
    -All the power this charm doth owe.
    -When thou wakest, let love forbid
    -Sleep his seat on thy eyelid:
    -So awake when I am gone;
    -For I must now to Oberon.
    - -

    HELENA

    -Stay, though thou kill me, sweet Demetrius.
    - -

    DEMETRIUS

    -I charge thee, hence, and do not haunt me thus.
    - -

    HELENA

    -O, wilt thou darkling leave me? do not so.
    - -

    DEMETRIUS

    -Stay, on thy peril: I alone will go.
    - -

    HELENA

    -O, I am out of breath in this fond chase!
    -The more my prayer, the lesser is my grace.
    -Happy is Hermia, wheresoe'er she lies;
    -For she hath blessed and attractive eyes.
    -How came her eyes so bright? Not with salt tears:
    -If so, my eyes are oftener wash'd than hers.
    -No, no, I am as ugly as a bear;
    -For beasts that meet me run away for fear:
    -Therefore no marvel though Demetrius
    -Do, as a monster fly my presence thus.
    -What wicked and dissembling glass of mine
    -Made me compare with Hermia's sphery eyne?
    -But who is here? Lysander! on the ground!
    -Dead? or asleep? I see no blood, no wound.
    -Lysander if you live, good sir, awake.
    - -

    LYSANDER

    -Awaking And run through fire I will for thy sweet sake.
    -Transparent Helena! Nature shows art,
    -That through thy bosom makes me see thy heart.
    -Where is Demetrius? O, how fit a word
    -Is that vile name to perish on my sword!
    - -

    HELENA

    -Do not say so, Lysander; say not so
    -What though he love your Hermia? Lord, what though?
    -Yet Hermia still loves you: then be content.
    - -

    LYSANDER

    -Content with Hermia! No; I do repent
    -The tedious minutes I with her have spent.
    -Not Hermia but Helena I love:
    -Who will not change a raven for a dove?
    -The will of man is by his reason sway'd;
    -And reason says you are the worthier maid.
    -Things growing are not ripe until their season
    -So I, being young, till now ripe not to reason;
    -And touching now the point of human skill,
    -Reason becomes the marshal to my will
    -And leads me to your eyes, where I o'erlook
    -Love's stories written in love's richest book.
    - -

    HELENA

    -Wherefore was I to this keen mockery born?
    -When at your hands did I deserve this scorn?
    -Is't not enough, is't not enough, young man,
    -That I did never, no, nor never can,
    -Deserve a sweet look from Demetrius' eye,
    -But you must flout my insufficiency?
    -Good troth, you do me wrong, good sooth, you do,
    -In such disdainful manner me to woo.
    -But fare you well: perforce I must confess
    -I thought you lord of more true gentleness.
    -O, that a lady, of one man refused.
    -Should of another therefore be abused!
    - -

    LYSANDER

    -She sees not Hermia. Hermia, sleep thou there:
    -And never mayst thou come Lysander near!
    -For as a surfeit of the sweetest things
    -The deepest loathing to the stomach brings,
    -Or as tie heresies that men do leave
    -Are hated most of those they did deceive,
    -So thou, my surfeit and my heresy,
    -Of all be hated, but the most of me!
    -And, all my powers, address your love and might
    -To honour Helen and to be her knight!
    - -

    HERMIA

    -Awaking Help me, Lysander, help me! do thy best
    -To pluck this crawling serpent from my breast!
    -Ay me, for pity! what a dream was here!
    -Lysander, look how I do quake with fear:
    -Methought a serpent eat my heart away,
    -And you sat smiling at his cruel pray.
    -Lysander! what, removed? Lysander! lord!
    -What, out of hearing? gone? no sound, no word?
    -Alack, where are you speak, an if you hear;
    -Speak, of all loves! I swoon almost with fear.
    -No? then I well perceive you all not nigh
    -Either death or you I'll find immediately.
    -

    ACT III

    -

    SCENE I. The wood. TITANIA lying asleep.

    -

    BOTTOM

    -Are we all met?
    - -

    QUINCE

    -Pat, pat; and here's a marvellous convenient place
    -for our rehearsal. This green plot shall be our
    -stage, this hawthorn-brake our tiring-house; and we
    -will do it in action as we will do it before the duke.
    - -

    BOTTOM

    -Peter Quince,--
    - -

    QUINCE

    -What sayest thou, bully Bottom?
    - -

    BOTTOM

    -There are things in this comedy of Pyramus and
    -Thisby that will never please. First, Pyramus must
    -draw a sword to kill himself; which the ladies
    -cannot abide. How answer you that?
    - -

    SNOUT

    -By'r lakin, a parlous fear.
    - -

    STARVELING

    -I believe we must leave the killing out, when all is done.
    - -

    BOTTOM

    -Not a whit: I have a device to make all well.
    -Write me a prologue; and let the prologue seem to
    -say, we will do no harm with our swords, and that
    -Pyramus is not killed indeed; and, for the more
    -better assurance, tell them that I, Pyramus, am not
    -Pyramus, but Bottom the weaver: this will put them
    -out of fear.
    - -

    QUINCE

    -Well, we will have such a prologue; and it shall be
    -written in eight and six.
    - -

    BOTTOM

    -No, make it two more; let it be written in eight and eight.
    - -

    SNOUT

    -Will not the ladies be afeard of the lion?
    - -

    STARVELING

    -I fear it, I promise you.
    - -

    BOTTOM

    -Masters, you ought to consider with yourselves: to
    -bring in--God shield us!--a lion among ladies, is a
    -most dreadful thing; for there is not a more fearful
    -wild-fowl than your lion living; and we ought to
    -look to 't.
    - -

    SNOUT

    -Therefore another prologue must tell he is not a lion.
    - -

    BOTTOM

    -Nay, you must name his name, and half his face must
    -be seen through the lion's neck: and he himself
    -must speak through, saying thus, or to the same
    -defect,--'Ladies,'--or 'Fair-ladies--I would wish
    -You,'--or 'I would request you,'--or 'I would
    -entreat you,--not to fear, not to tremble: my life
    -for yours. If you think I come hither as a lion, it
    -were pity of my life: no I am no such thing; I am a
    -man as other men are;' and there indeed let him name
    -his name, and tell them plainly he is Snug the joiner.
    - -

    QUINCE

    -Well it shall be so. But there is two hard things;
    -that is, to bring the moonlight into a chamber; for,
    -you know, Pyramus and Thisby meet by moonlight.
    - -

    SNOUT

    -Doth the moon shine that night we play our play?
    - -

    BOTTOM

    -A calendar, a calendar! look in the almanac; find
    -out moonshine, find out moonshine.
    - -

    QUINCE

    -Yes, it doth shine that night.
    - -

    BOTTOM

    -Why, then may you leave a casement of the great
    -chamber window, where we play, open, and the moon
    -may shine in at the casement.
    - -

    QUINCE

    -Ay; or else one must come in with a bush of thorns
    -and a lanthorn, and say he comes to disfigure, or to
    -present, the person of Moonshine. Then, there is
    -another thing: we must have a wall in the great
    -chamber; for Pyramus and Thisby says the story, did
    -talk through the chink of a wall.
    - -

    SNOUT

    -You can never bring in a wall. What say you, Bottom?
    - -

    BOTTOM

    -Some man or other must present Wall: and let him
    -have some plaster, or some loam, or some rough-cast
    -about him, to signify wall; and let him hold his
    -fingers thus, and through that cranny shall Pyramus
    -and Thisby whisper.
    - -

    QUINCE

    -If that may be, then all is well. Come, sit down,
    -every mother's son, and rehearse your parts.
    -Pyramus, you begin: when you have spoken your
    -speech, enter into that brake: and so every one
    -according to his cue.
    - -

    PUCK

    -What hempen home-spuns have we swaggering here,
    -So near the cradle of the fairy queen?
    -What, a play toward! I'll be an auditor;
    -An actor too, perhaps, if I see cause.
    - -

    QUINCE

    -Speak, Pyramus. Thisby, stand forth.
    - -

    BOTTOM

    -Thisby, the flowers of odious savours sweet,--
    - -

    QUINCE

    -Odours, odours.
    - -

    BOTTOM

    ---odours savours sweet:
    -So hath thy breath, my dearest Thisby dear.
    -But hark, a voice! stay thou but here awhile,
    -And by and by I will to thee appear.
    - -

    PUCK

    -A stranger Pyramus than e'er played here.
    - -

    FLUTE

    -Must I speak now?
    - -

    QUINCE

    -Ay, marry, must you; for you must understand he goes
    -but to see a noise that he heard, and is to come again.
    - -

    FLUTE

    -Most radiant Pyramus, most lily-white of hue,
    -Of colour like the red rose on triumphant brier,
    -Most brisky juvenal and eke most lovely Jew,
    -As true as truest horse that yet would never tire,
    -I'll meet thee, Pyramus, at Ninny's tomb.
    - -

    QUINCE

    -'Ninus' tomb,' man: why, you must not speak that
    -yet; that you answer to Pyramus: you speak all your
    -part at once, cues and all Pyramus enter: your cue
    -is past; it is, 'never tire.'
    - -

    FLUTE

    -O,--As true as truest horse, that yet would
    -never tire.
    - -

    BOTTOM

    -If I were fair, Thisby, I were only thine.
    - -

    QUINCE

    -O monstrous! O strange! we are haunted. Pray,
    -masters! fly, masters! Help!
    - -

    PUCK

    -I'll follow you, I'll lead you about a round,
    -Through bog, through bush, through brake, through brier:
    -Sometime a horse I'll be, sometime a hound,
    -A hog, a headless bear, sometime a fire;
    -And neigh, and bark, and grunt, and roar, and burn,
    -Like horse, hound, hog, bear, fire, at every turn.
    - -

    BOTTOM

    -Why do they run away? this is a knavery of them to
    -make me afeard.
    - -

    SNOUT

    -O Bottom, thou art changed! what do I see on thee?
    - -

    BOTTOM

    -What do you see? you see an asshead of your own, do
    -you?
    - -

    QUINCE

    -Bless thee, Bottom! bless thee! thou art
    -translated.
    - -

    BOTTOM

    -I see their knavery: this is to make an ass of me;
    -to fright me, if they could. But I will not stir
    -from this place, do what they can: I will walk up
    -and down here, and I will sing, that they shall hear
    -I am not afraid.
    -Sings -The ousel cock so black of hue,
    -With orange-tawny bill,
    -The throstle with his note so true,
    -The wren with little quill,--
    - -

    TITANIA

    -Awaking What angel wakes me from my flowery bed?
    - -

    BOTTOM

    -Sings
    -The finch, the sparrow and the lark,
    -The plain-song cuckoo gray,
    -Whose note full many a man doth mark,
    -And dares not answer nay;--
    -for, indeed, who would set his wit to so foolish
    -a bird? who would give a bird the lie, though he cry
    -'cuckoo' never so?
    - -

    TITANIA

    -I pray thee, gentle mortal, sing again:
    -Mine ear is much enamour'd of thy note;
    -So is mine eye enthralled to thy shape;
    -And thy fair virtue's force perforce doth move me
    -On the first view to say, to swear, I love thee.
    - -

    BOTTOM

    -Methinks, mistress, you should have little reason
    -for that: and yet, to say the truth, reason and
    -love keep little company together now-a-days; the
    -more the pity that some honest neighbours will not
    -make them friends. Nay, I can gleek upon occasion.
    - -

    TITANIA

    -Thou art as wise as thou art beautiful.
    - -

    BOTTOM

    -Not so, neither: but if I had wit enough to get out
    -of this wood, I have enough to serve mine own turn.
    - -

    TITANIA

    -Out of this wood do not desire to go:
    -Thou shalt remain here, whether thou wilt or no.
    -I am a spirit of no common rate;
    -The summer still doth tend upon my state;
    -And I do love thee: therefore, go with me;
    -I'll give thee fairies to attend on thee,
    -And they shall fetch thee jewels from the deep,
    -And sing while thou on pressed flowers dost sleep;
    -And I will purge thy mortal grossness so
    -That thou shalt like an airy spirit go.
    -Peaseblossom! Cobweb! Moth! and Mustardseed!
    - -

    PEASEBLOSSOM

    -Ready.
    - -

    COBWEB

    -And I.
    - -

    MOTH

    -And I.
    - -

    MUSTARDSEED

    -And I.
    - -

    ALL

    -Where shall we go?
    - -

    TITANIA

    -Be kind and courteous to this gentleman;
    -Hop in his walks and gambol in his eyes;
    -Feed him with apricocks and dewberries,
    -With purple grapes, green figs, and mulberries;
    -The honey-bags steal from the humble-bees,
    -And for night-tapers crop their waxen thighs
    -And light them at the fiery glow-worm's eyes,
    -To have my love to bed and to arise;
    -And pluck the wings from Painted butterflies
    -To fan the moonbeams from his sleeping eyes:
    -Nod to him, elves, and do him courtesies.
    - -

    PEASEBLOSSOM

    -Hail, mortal!
    - -

    COBWEB

    -Hail!
    - -

    MOTH

    -Hail!
    - -

    MUSTARDSEED

    -Hail!
    - -

    BOTTOM

    -I cry your worship's mercy, heartily: I beseech your
    -worship's name.
    - -

    COBWEB

    -Cobweb.
    - -

    BOTTOM

    -I shall desire you of more acquaintance, good Master
    -Cobweb: if I cut my finger, I shall make bold with
    -you. Your name, honest gentleman?
    - -

    PEASEBLOSSOM

    -Peaseblossom.
    - -

    BOTTOM

    -I pray you, commend me to Mistress Squash, your
    -mother, and to Master Peascod, your father. Good
    -Master Peaseblossom, I shall desire you of more
    -acquaintance too. Your name, I beseech you, sir?
    - -

    MUSTARDSEED

    -Mustardseed.
    - -

    BOTTOM

    -Good Master Mustardseed, I know your patience well:
    -that same cowardly, giant-like ox-beef hath
    -devoured many a gentleman of your house: I promise
    -you your kindred had made my eyes water ere now. I
    -desire your more acquaintance, good Master
    -Mustardseed.
    - -

    TITANIA

    -Come, wait upon him; lead him to my bower.
    -The moon methinks looks with a watery eye;
    -And when she weeps, weeps every little flower,
    -Lamenting some enforced chastity.
    -Tie up my love's tongue bring him silently.
    -

    SCENE II. Another part of the wood.

    -

    OBERON

    -I wonder if Titania be awaked;
    -Then, what it was that next came in her eye,
    -Which she must dote on in extremity.
    -Enter PUCK -Here comes my messenger.
    -How now, mad spirit!
    -What night-rule now about this haunted grove?
    - -

    PUCK

    -My mistress with a monster is in love.
    -Near to her close and consecrated bower,
    -While she was in her dull and sleeping hour,
    -A crew of patches, rude mechanicals,
    -That work for bread upon Athenian stalls,
    -Were met together to rehearse a play
    -Intended for great Theseus' nuptial-day.
    -The shallowest thick-skin of that barren sort,
    -Who Pyramus presented, in their sport
    -Forsook his scene and enter'd in a brake
    -When I did him at this advantage take,
    -An ass's nole I fixed on his head:
    -Anon his Thisbe must be answered,
    -And forth my mimic comes. When they him spy,
    -As wild geese that the creeping fowler eye,
    -Or russet-pated choughs, many in sort,
    -Rising and cawing at the gun's report,
    -Sever themselves and madly sweep the sky,
    -So, at his sight, away his fellows fly;
    -And, at our stamp, here o'er and o'er one falls;
    -He murder cries and help from Athens calls.
    -Their sense thus weak, lost with their fears
    -thus strong,
    -Made senseless things begin to do them wrong;
    -For briers and thorns at their apparel snatch;
    -Some sleeves, some hats, from yielders all
    -things catch.
    -I led them on in this distracted fear,
    -And left sweet Pyramus translated there:
    -When in that moment, so it came to pass,
    -Titania waked and straightway loved an ass.
    - -

    OBERON

    -This falls out better than I could devise.
    -But hast thou yet latch'd the Athenian's eyes
    -With the love-juice, as I did bid thee do?
    - -

    PUCK

    -I took him sleeping,--that is finish'd too,--
    -And the Athenian woman by his side:
    -That, when he waked, of force she must be eyed.
    - -

    OBERON

    -Stand close: this is the same Athenian.
    - -

    PUCK

    -This is the woman, but not this the man.
    - -

    DEMETRIUS

    -O, why rebuke you him that loves you so?
    -Lay breath so bitter on your bitter foe.
    - -

    HERMIA

    -Now I but chide; but I should use thee worse,
    -For thou, I fear, hast given me cause to curse,
    -If thou hast slain Lysander in his sleep,
    -Being o'er shoes in blood, plunge in the deep,
    -And kill me too.
    -The sun was not so true unto the day
    -As he to me: would he have stolen away
    -From sleeping Hermia? I'll believe as soon
    -This whole earth may be bored and that the moon
    -May through the centre creep and so displease
    -Her brother's noontide with Antipodes.
    -It cannot be but thou hast murder'd him;
    -So should a murderer look, so dead, so grim.
    - -

    DEMETRIUS

    -So should the murder'd look, and so should I,
    -Pierced through the heart with your stern cruelty:
    -Yet you, the murderer, look as bright, as clear,
    -As yonder Venus in her glimmering sphere.
    - -

    HERMIA

    -What's this to my Lysander? where is he?
    -Ah, good Demetrius, wilt thou give him me?
    - -

    DEMETRIUS

    -I had rather give his carcass to my hounds.
    - -

    HERMIA

    -Out, dog! out, cur! thou drivest me past the bounds
    -Of maiden's patience. Hast thou slain him, then?
    -Henceforth be never number'd among men!
    -O, once tell true, tell true, even for my sake!
    -Durst thou have look'd upon him being awake,
    -And hast thou kill'd him sleeping? O brave touch!
    -Could not a worm, an adder, do so much?
    -An adder did it; for with doubler tongue
    -Than thine, thou serpent, never adder stung.
    - -

    DEMETRIUS

    -You spend your passion on a misprised mood:
    -I am not guilty of Lysander's blood;
    -Nor is he dead, for aught that I can tell.
    - -

    HERMIA

    -I pray thee, tell me then that he is well.
    - -

    DEMETRIUS

    -An if I could, what should I get therefore?
    - -

    HERMIA

    -A privilege never to see me more.
    -And from thy hated presence part I so:
    -See me no more, whether he be dead or no.
    - -

    DEMETRIUS

    -There is no following her in this fierce vein:
    -Here therefore for a while I will remain.
    -So sorrow's heaviness doth heavier grow
    -For debt that bankrupt sleep doth sorrow owe:
    -Which now in some slight measure it will pay,
    -If for his tender here I make some stay.
    - -

    OBERON

    -What hast thou done? thou hast mistaken quite
    -And laid the love-juice on some true-love's sight:
    -Of thy misprision must perforce ensue
    -Some true love turn'd and not a false turn'd true.
    - -

    PUCK

    -Then fate o'er-rules, that, one man holding troth,
    -A million fail, confounding oath on oath.
    - -

    OBERON

    -About the wood go swifter than the wind,
    -And Helena of Athens look thou find:
    -All fancy-sick she is and pale of cheer,
    -With sighs of love, that costs the fresh blood dear:
    -By some illusion see thou bring her here:
    -I'll charm his eyes against she do appear.
    - -

    PUCK

    -I go, I go; look how I go,
    -Swifter than arrow from the Tartar's bow.
    - -

    OBERON

    -Flower of this purple dye,
    -Hit with Cupid's archery,
    -Sink in apple of his eye.
    -When his love he doth espy,
    -Let her shine as gloriously
    -As the Venus of the sky.
    -When thou wakest, if she be by,
    -Beg of her for remedy.
    - -

    PUCK

    -Captain of our fairy band,
    -Helena is here at hand;
    -And the youth, mistook by me,
    -Pleading for a lover's fee.
    -Shall we their fond pageant see?
    -Lord, what fools these mortals be!
    - -

    OBERON

    -Stand aside: the noise they make
    -Will cause Demetrius to awake.
    - -

    PUCK

    -Then will two at once woo one;
    -That must needs be sport alone;
    -And those things do best please me
    -That befal preposterously.
    - -

    LYSANDER

    -Why should you think that I should woo in scorn?
    -Scorn and derision never come in tears:
    -Look, when I vow, I weep; and vows so born,
    -In their nativity all truth appears.
    -How can these things in me seem scorn to you,
    -Bearing the badge of faith, to prove them true?
    - -

    HELENA

    -You do advance your cunning more and more.
    -When truth kills truth, O devilish-holy fray!
    -These vows are Hermia's: will you give her o'er?
    -Weigh oath with oath, and you will nothing weigh:
    -Your vows to her and me, put in two scales,
    -Will even weigh, and both as light as tales.
    - -

    LYSANDER

    -I had no judgment when to her I swore.
    - -

    HELENA

    -Nor none, in my mind, now you give her o'er.
    - -

    LYSANDER

    -Demetrius loves her, and he loves not you.
    - -

    DEMETRIUS

    -Awaking O Helena, goddess, nymph, perfect, divine!
    -To what, my love, shall I compare thine eyne?
    -Crystal is muddy. O, how ripe in show
    -Thy lips, those kissing cherries, tempting grow!
    -That pure congealed white, high Taurus snow,
    -Fann'd with the eastern wind, turns to a crow
    -When thou hold'st up thy hand: O, let me kiss
    -This princess of pure white, this seal of bliss!
    - -

    HELENA

    -O spite! O hell! I see you all are bent
    -To set against me for your merriment:
    -If you we re civil and knew courtesy,
    -You would not do me thus much injury.
    -Can you not hate me, as I know you do,
    -But you must join in souls to mock me too?
    -If you were men, as men you are in show,
    -You would not use a gentle lady so;
    -To vow, and swear, and superpraise my parts,
    -When I am sure you hate me with your hearts.
    -You both are rivals, and love Hermia;
    -And now both rivals, to mock Helena:
    -A trim exploit, a manly enterprise,
    -To conjure tears up in a poor maid's eyes
    -With your derision! none of noble sort
    -Would so offend a virgin, and extort
    -A poor soul's patience, all to make you sport.
    - -

    LYSANDER

    -You are unkind, Demetrius; be not so;
    -For you love Hermia; this you know I know:
    -And here, with all good will, with all my heart,
    -In Hermia's love I yield you up my part;
    -And yours of Helena to me bequeath,
    -Whom I do love and will do till my death.
    - -

    HELENA

    -Never did mockers waste more idle breath.
    - -

    DEMETRIUS

    -Lysander, keep thy Hermia; I will none:
    -If e'er I loved her, all that love is gone.
    -My heart to her but as guest-wise sojourn'd,
    -And now to Helen is it home return'd,
    -There to remain.
    - -

    LYSANDER

    -Helen, it is not so.
    - -

    DEMETRIUS

    -Disparage not the faith thou dost not know,
    -Lest, to thy peril, thou aby it dear.
    -Look, where thy love comes; yonder is thy dear.
    - -

    HERMIA

    -Dark night, that from the eye his function takes,
    -The ear more quick of apprehension makes;
    -Wherein it doth impair the seeing sense,
    -It pays the hearing double recompense.
    -Thou art not by mine eye, Lysander, found;
    -Mine ear, I thank it, brought me to thy sound
    -But why unkindly didst thou leave me so?
    - -

    LYSANDER

    -Why should he stay, whom love doth press to go?
    - -

    HERMIA

    -What love could press Lysander from my side?
    - -

    LYSANDER

    -Lysander's love, that would not let him bide,
    -Fair Helena, who more engilds the night
    -Than all you fiery oes and eyes of light.
    -Why seek'st thou me? could not this make thee know,
    -The hate I bear thee made me leave thee so?
    - -

    HERMIA

    -You speak not as you think: it cannot be.
    - -

    HELENA

    -Lo, she is one of this confederacy!
    -Now I perceive they have conjoin'd all three
    -To fashion this false sport, in spite of me.
    -Injurious Hermia! most ungrateful maid!
    -Have you conspired, have you with these contrived
    -To bait me with this foul derision?
    -Is all the counsel that we two have shared,
    -The sisters' vows, the hours that we have spent,
    -When we have chid the hasty-footed time
    -For parting us,--O, is it all forgot?
    -All school-days' friendship, childhood innocence?
    -We, Hermia, like two artificial gods,
    -Have with our needles created both one flower,
    -Both on one sampler, sitting on one cushion,
    -Both warbling of one song, both in one key,
    -As if our hands, our sides, voices and minds,
    -Had been incorporate. So we grow together,
    -Like to a double cherry, seeming parted,
    -But yet an union in partition;
    -Two lovely berries moulded on one stem;
    -So, with two seeming bodies, but one heart;
    -Two of the first, like coats in heraldry,
    -Due but to one and crowned with one crest.
    -And will you rent our ancient love asunder,
    -To join with men in scorning your poor friend?
    -It is not friendly, 'tis not maidenly:
    -Our sex, as well as I, may chide you for it,
    -Though I alone do feel the injury.
    - -

    HERMIA

    -I am amazed at your passionate words.
    -I scorn you not: it seems that you scorn me.
    - -

    HELENA

    -Have you not set Lysander, as in scorn,
    -To follow me and praise my eyes and face?
    -And made your other love, Demetrius,
    -Who even but now did spurn me with his foot,
    -To call me goddess, nymph, divine and rare,
    -Precious, celestial? Wherefore speaks he this
    -To her he hates? and wherefore doth Lysander
    -Deny your love, so rich within his soul,
    -And tender me, forsooth, affection,
    -But by your setting on, by your consent?
    -What thought I be not so in grace as you,
    -So hung upon with love, so fortunate,
    -But miserable most, to love unloved?
    -This you should pity rather than despise.
    - -

    HERNIA

    -I understand not what you mean by this.
    - -

    HELENA

    -Ay, do, persever, counterfeit sad looks,
    -Make mouths upon me when I turn my back;
    -Wink each at other; hold the sweet jest up:
    -This sport, well carried, shall be chronicled.
    -If you have any pity, grace, or manners,
    -You would not make me such an argument.
    -But fare ye well: 'tis partly my own fault;
    -Which death or absence soon shall remedy.
    - -

    LYSANDER

    -Stay, gentle Helena; hear my excuse:
    -My love, my life my soul, fair Helena!
    - -

    HELENA

    -O excellent!
    - -

    HERMIA

    -Sweet, do not scorn her so.
    - -

    DEMETRIUS

    -If she cannot entreat, I can compel.
    - -

    LYSANDER

    -Thou canst compel no more than she entreat:
    -Thy threats have no more strength than her weak prayers.
    -Helen, I love thee; by my life, I do:
    -I swear by that which I will lose for thee,
    -To prove him false that says I love thee not.
    - -

    DEMETRIUS

    -I say I love thee more than he can do.
    - -

    LYSANDER

    -If thou say so, withdraw, and prove it too.
    - -

    DEMETRIUS

    -Quick, come!
    - -

    HERMIA

    -Lysander, whereto tends all this?
    - -

    LYSANDER

    -Away, you Ethiope!
    - -

    DEMETRIUS

    -No, no; he'll
    -Seem to break loose; take on as you would follow,
    -But yet come not: you are a tame man, go!
    - -

    LYSANDER

    -Hang off, thou cat, thou burr! vile thing, let loose,
    -Or I will shake thee from me like a serpent!
    - -

    HERMIA

    -Why are you grown so rude? what change is this?
    -Sweet love,--
    - -

    LYSANDER

    -Thy love! out, tawny Tartar, out!
    -Out, loathed medicine! hated potion, hence!
    - -

    HERMIA

    -Do you not jest?
    - -

    HELENA

    -Yes, sooth; and so do you.
    - -

    LYSANDER

    -Demetrius, I will keep my word with thee.
    - -

    DEMETRIUS

    -I would I had your bond, for I perceive
    -A weak bond holds you: I'll not trust your word.
    - -

    LYSANDER

    -What, should I hurt her, strike her, kill her dead?
    -Although I hate her, I'll not harm her so.
    - -

    HERMIA

    -What, can you do me greater harm than hate?
    -Hate me! wherefore? O me! what news, my love!
    -Am not I Hermia? are not you Lysander?
    -I am as fair now as I was erewhile.
    -Since night you loved me; yet since night you left
    -me:
    -Why, then you left me--O, the gods forbid!--
    -In earnest, shall I say?
    - -

    LYSANDER

    -Ay, by my life;
    -And never did desire to see thee more.
    -Therefore be out of hope, of question, of doubt;
    -Be certain, nothing truer; 'tis no jest
    -That I do hate thee and love Helena.
    - -

    HERMIA

    -O me! you juggler! you canker-blossom!
    -You thief of love! what, have you come by night
    -And stolen my love's heart from him?
    - -

    HELENA

    -Fine, i'faith!
    -Have you no modesty, no maiden shame,
    -No touch of bashfulness? What, will you tear
    -Impatient answers from my gentle tongue?
    -Fie, fie! you counterfeit, you puppet, you!
    - -

    HERMIA

    -Puppet? why so? ay, that way goes the game.
    -Now I perceive that she hath made compare
    -Between our statures; she hath urged her height;
    -And with her personage, her tall personage,
    -Her height, forsooth, she hath prevail'd with him.
    -And are you grown so high in his esteem;
    -Because I am so dwarfish and so low?
    -How low am I, thou painted maypole? speak;
    -How low am I? I am not yet so low
    -But that my nails can reach unto thine eyes.
    - -

    HELENA

    -I pray you, though you mock me, gentlemen,
    -Let her not hurt me: I was never curst;
    -I have no gift at all in shrewishness;
    -I am a right maid for my cowardice:
    -Let her not strike me. You perhaps may think,
    -Because she is something lower than myself,
    -That I can match her.
    - -

    HERMIA

    -Lower! hark, again.
    - -

    HELENA

    -Good Hermia, do not be so bitter with me.
    -I evermore did love you, Hermia,
    -Did ever keep your counsels, never wrong'd you;
    -Save that, in love unto Demetrius,
    -I told him of your stealth unto this wood.
    -He follow'd you; for love I follow'd him;
    -But he hath chid me hence and threaten'd me
    -To strike me, spurn me, nay, to kill me too:
    -And now, so you will let me quiet go,
    -To Athens will I bear my folly back
    -And follow you no further: let me go:
    -You see how simple and how fond I am.
    - -

    HERMIA

    -Why, get you gone: who is't that hinders you?
    - -

    HELENA

    -A foolish heart, that I leave here behind.
    - -

    HERMIA

    -What, with Lysander?
    - -

    HELENA

    -With Demetrius.
    - -

    LYSANDER

    -Be not afraid; she shall not harm thee, Helena.
    - -

    DEMETRIUS

    -No, sir, she shall not, though you take her part.
    - -

    HELENA

    -O, when she's angry, she is keen and shrewd!
    -She was a vixen when she went to school;
    -And though she be but little, she is fierce.
    - -

    HERMIA

    -'Little' again! nothing but 'low' and 'little'!
    -Why will you suffer her to flout me thus?
    -Let me come to her.
    - -

    LYSANDER

    -Get you gone, you dwarf;
    -You minimus, of hindering knot-grass made;
    -You bead, you acorn.
    - -

    DEMETRIUS

    -You are too officious
    -In her behalf that scorns your services.
    -Let her alone: speak not of Helena;
    -Take not her part; for, if thou dost intend
    -Never so little show of love to her,
    -Thou shalt aby it.
    - -

    LYSANDER

    -Now she holds me not;
    -Now follow, if thou darest, to try whose right,
    -Of thine or mine, is most in Helena.
    - -

    DEMETRIUS

    -Follow! nay, I'll go with thee, cheek by jole.
    - -

    HERMIA

    -You, mistress, all this coil is 'long of you:
    -Nay, go not back.
    - -

    HELENA

    -I will not trust you, I,
    -Nor longer stay in your curst company.
    -Your hands than mine are quicker for a fray,
    -My legs are longer though, to run away.
    - -

    HERMIA

    -I am amazed, and know not what to say.
    - -

    OBERON

    -This is thy negligence: still thou mistakest,
    -Or else committ'st thy knaveries wilfully.
    - -

    PUCK

    -Believe me, king of shadows, I mistook.
    -Did not you tell me I should know the man
    -By the Athenian garment be had on?
    -And so far blameless proves my enterprise,
    -That I have 'nointed an Athenian's eyes;
    -And so far am I glad it so did sort
    -As this their jangling I esteem a sport.
    - -

    OBERON

    -Thou see'st these lovers seek a place to fight:
    -Hie therefore, Robin, overcast the night;
    -The starry welkin cover thou anon
    -With drooping fog as black as Acheron,
    -And lead these testy rivals so astray
    -As one come not within another's way.
    -Like to Lysander sometime frame thy tongue,
    -Then stir Demetrius up with bitter wrong;
    -And sometime rail thou like Demetrius;
    -And from each other look thou lead them thus,
    -Till o'er their brows death-counterfeiting sleep
    -With leaden legs and batty wings doth creep:
    -Then crush this herb into Lysander's eye;
    -Whose liquor hath this virtuous property,
    -To take from thence all error with his might,
    -And make his eyeballs roll with wonted sight.
    -When they next wake, all this derision
    -Shall seem a dream and fruitless vision,
    -And back to Athens shall the lovers wend,
    -With league whose date till death shall never end.
    -Whiles I in this affair do thee employ,
    -I'll to my queen and beg her Indian boy;
    -And then I will her charmed eye release
    -From monster's view, and all things shall be peace.
    - -

    PUCK

    -My fairy lord, this must be done with haste,
    -For night's swift dragons cut the clouds full fast,
    -And yonder shines Aurora's harbinger;
    -At whose approach, ghosts, wandering here and there,
    -Troop home to churchyards: damned spirits all,
    -That in crossways and floods have burial,
    -Already to their wormy beds are gone;
    -For fear lest day should look their shames upon,
    -They willfully themselves exile from light
    -And must for aye consort with black-brow'd night.
    - -

    OBERON

    -But we are spirits of another sort:
    -I with the morning's love have oft made sport,
    -And, like a forester, the groves may tread,
    -Even till the eastern gate, all fiery-red,
    -Opening on Neptune with fair blessed beams,
    -Turns into yellow gold his salt green streams.
    -But, notwithstanding, haste; make no delay:
    -We may effect this business yet ere day.
    - -

    PUCK

    -Up and down, up and down,
    -I will lead them up and down:
    -I am fear'd in field and town:
    -Goblin, lead them up and down.
    -Here comes one.
    - -

    LYSANDER

    -Where art thou, proud Demetrius? speak thou now.
    - -

    PUCK

    -Here, villain; drawn and ready. Where art thou?
    - -

    LYSANDER

    -I will be with thee straight.
    - -

    PUCK

    -Follow me, then,
    -To plainer ground.
    - -

    DEMETRIUS

    -Lysander! speak again:
    -Thou runaway, thou coward, art thou fled?
    -Speak! In some bush? Where dost thou hide thy head?
    - -

    PUCK

    -Thou coward, art thou bragging to the stars,
    -Telling the bushes that thou look'st for wars,
    -And wilt not come? Come, recreant; come, thou child;
    -I'll whip thee with a rod: he is defiled
    -That draws a sword on thee.
    - -

    DEMETRIUS

    -Yea, art thou there?
    - -

    PUCK

    -Follow my voice: we'll try no manhood here.
    - -

    LYSANDER

    -He goes before me and still dares me on:
    -When I come where he calls, then he is gone.
    -The villain is much lighter-heel'd than I:
    -I follow'd fast, but faster he did fly;
    -That fallen am I in dark uneven way,
    -And here will rest me.
    -Lies down -Come, thou gentle day!
    -For if but once thou show me thy grey light,
    -I'll find Demetrius and revenge this spite.
    - -

    PUCK

    -Ho, ho, ho! Coward, why comest thou not?
    - -

    DEMETRIUS

    -Abide me, if thou darest; for well I wot
    -Thou runn'st before me, shifting every place,
    -And darest not stand, nor look me in the face.
    -Where art thou now?
    - -

    PUCK

    -Come hither: I am here.
    - -

    DEMETRIUS

    -Nay, then, thou mock'st me. Thou shalt buy this dear,
    -If ever I thy face by daylight see:
    -Now, go thy way. Faintness constraineth me
    -To measure out my length on this cold bed.
    -By day's approach look to be visited.
    - -

    HELENA

    -O weary night, O long and tedious night,
    -Abate thy hour! Shine comforts from the east,
    -That I may back to Athens by daylight,
    -From these that my poor company detest:
    -And sleep, that sometimes shuts up sorrow's eye,
    -Steal me awhile from mine own company.
    - -

    PUCK

    -Yet but three? Come one more;
    -Two of both kinds make up four.
    -Here she comes, curst and sad:
    -Cupid is a knavish lad,
    -Thus to make poor females mad.
    - -

    HERMIA

    -Never so weary, never so in woe,
    -Bedabbled with the dew and torn with briers,
    -I can no further crawl, no further go;
    -My legs can keep no pace with my desires.
    -Here will I rest me till the break of day.
    -Heavens shield Lysander, if they mean a fray!
    - -

    PUCK

    -On the ground
    -Sleep sound:
    -I'll apply
    -To your eye,
    -Gentle lover, remedy.
    -Squeezing the juice on LYSANDER's eyes -When thou wakest,
    -Thou takest
    -True delight
    -In the sight
    -Of thy former lady's eye:
    -And the country proverb known,
    -That every man should take his own,
    -In your waking shall be shown:
    -Jack shall have Jill;
    -Nought shall go ill;
    -The man shall have his mare again, and all shall be well.
    -

    ACT IV

    -

    SCENE I. The same. LYSANDER, DEMETRIUS, HELENA, and HERMIA lying asleep.

    -

    TITANIA

    -Come, sit thee down upon this flowery bed,
    -While I thy amiable cheeks do coy,
    -And stick musk-roses in thy sleek smooth head,
    -And kiss thy fair large ears, my gentle joy.
    - -

    BOTTOM

    -Where's Peaseblossom?
    - -

    PEASEBLOSSOM

    -Ready.
    - -

    BOTTOM

    -Scratch my head Peaseblossom. Where's Mounsieur Cobweb?
    - -

    COBWEB

    -Ready.
    - -

    BOTTOM

    -Mounsieur Cobweb, good mounsieur, get you your
    -weapons in your hand, and kill me a red-hipped
    -humble-bee on the top of a thistle; and, good
    -mounsieur, bring me the honey-bag. Do not fret
    -yourself too much in the action, mounsieur; and,
    -good mounsieur, have a care the honey-bag break not;
    -I would be loath to have you overflown with a
    -honey-bag, signior. Where's Mounsieur Mustardseed?
    - -

    MUSTARDSEED

    -Ready.
    - -

    BOTTOM

    -Give me your neaf, Mounsieur Mustardseed. Pray you,
    -leave your courtesy, good mounsieur.
    - -

    MUSTARDSEED

    -What's your Will?
    - -

    BOTTOM

    -Nothing, good mounsieur, but to help Cavalery Cobweb
    -to scratch. I must to the barber's, monsieur; for
    -methinks I am marvellous hairy about the face; and I
    -am such a tender ass, if my hair do but tickle me,
    -I must scratch.
    - -

    TITANIA

    -What, wilt thou hear some music,
    -my sweet love?
    - -

    BOTTOM

    -I have a reasonable good ear in music. Let's have
    -the tongs and the bones.
    - -

    TITANIA

    -Or say, sweet love, what thou desirest to eat.
    - -

    BOTTOM

    -Truly, a peck of provender: I could munch your good
    -dry oats. Methinks I have a great desire to a bottle
    -of hay: good hay, sweet hay, hath no fellow.
    - -

    TITANIA

    -I have a venturous fairy that shall seek
    -The squirrel's hoard, and fetch thee new nuts.
    - -

    BOTTOM

    -I had rather have a handful or two of dried peas.
    -But, I pray you, let none of your people stir me: I
    -have an exposition of sleep come upon me.
    - -

    TITANIA

    -Sleep thou, and I will wind thee in my arms.
    -Fairies, begone, and be all ways away.
    -Exeunt fairies -So doth the woodbine the sweet honeysuckle
    -Gently entwist; the female ivy so
    -Enrings the barky fingers of the elm.
    -O, how I love thee! how I dote on thee!
    - -

    OBERON

    -Advancing Welcome, good Robin.
    -See'st thou this sweet sight?
    -Her dotage now I do begin to pity:
    -For, meeting her of late behind the wood,
    -Seeking sweet favours from this hateful fool,
    -I did upbraid her and fall out with her;
    -For she his hairy temples then had rounded
    -With a coronet of fresh and fragrant flowers;
    -And that same dew, which sometime on the buds
    -Was wont to swell like round and orient pearls,
    -Stood now within the pretty flowerets' eyes
    -Like tears that did their own disgrace bewail.
    -When I had at my pleasure taunted her
    -And she in mild terms begg'd my patience,
    -I then did ask of her her changeling child;
    -Which straight she gave me, and her fairy sent
    -To bear him to my bower in fairy land.
    -And now I have the boy, I will undo
    -This hateful imperfection of her eyes:
    -And, gentle Puck, take this transformed scalp
    -From off the head of this Athenian swain;
    -That, he awaking when the other do,
    -May all to Athens back again repair
    -And think no more of this night's accidents
    -But as the fierce vexation of a dream.
    -But first I will release the fairy queen.
    -Be as thou wast wont to be;
    -See as thou wast wont to see:
    -Dian's bud o'er Cupid's flower
    -Hath such force and blessed power.
    -Now, my Titania; wake you, my sweet queen.
    - -

    TITANIA

    -My Oberon! what visions have I seen!
    -Methought I was enamour'd of an ass.
    - -

    OBERON

    -There lies your love.
    - -

    TITANIA

    -How came these things to pass?
    -O, how mine eyes do loathe his visage now!
    - -

    OBERON

    -Silence awhile. Robin, take off this head.
    -Titania, music call; and strike more dead
    -Than common sleep of all these five the sense.
    - -

    TITANIA

    -Music, ho! music, such as charmeth sleep!
    - -

    PUCK

    -Now, when thou wakest, with thine
    -own fool's eyes peep.
    - -

    OBERON

    -Sound, music! Come, my queen, take hands with me,
    -And rock the ground whereon these sleepers be.
    -Now thou and I are new in amity,
    -And will to-morrow midnight solemnly
    -Dance in Duke Theseus' house triumphantly,
    -And bless it to all fair prosperity:
    -There shall the pairs of faithful lovers be
    -Wedded, with Theseus, all in jollity.
    - -

    PUCK

    -Fairy king, attend, and mark:
    -I do hear the morning lark.
    - -

    OBERON

    -Then, my queen, in silence sad,
    -Trip we after the night's shade:
    -We the globe can compass soon,
    -Swifter than the wandering moon.
    - -

    TITANIA

    -Come, my lord, and in our flight
    -Tell me how it came this night
    -That I sleeping here was found
    -With these mortals on the ground.
    -Exeunt - -

    THESEUS

    -Go, one of you, find out the forester;
    -For now our observation is perform'd;
    -And since we have the vaward of the day,
    -My love shall hear the music of my hounds.
    -Uncouple in the western valley; let them go:
    -Dispatch, I say, and find the forester.
    -Exit an Attendant -We will, fair queen, up to the mountain's top,
    -And mark the musical confusion
    -Of hounds and echo in conjunction.
    - -

    HIPPOLYTA

    -I was with Hercules and Cadmus once,
    -When in a wood of Crete they bay'd the bear
    -With hounds of Sparta: never did I hear
    -Such gallant chiding: for, besides the groves,
    -The skies, the fountains, every region near
    -Seem'd all one mutual cry: I never heard
    -So musical a discord, such sweet thunder.
    - -

    THESEUS

    -My hounds are bred out of the Spartan kind,
    -So flew'd, so sanded, and their heads are hung
    -With ears that sweep away the morning dew;
    -Crook-knee'd, and dew-lapp'd like Thessalian bulls;
    -Slow in pursuit, but match'd in mouth like bells,
    -Each under each. A cry more tuneable
    -Was never holla'd to, nor cheer'd with horn,
    -In Crete, in Sparta, nor in Thessaly:
    -Judge when you hear. But, soft! what nymphs are these?
    - -

    EGEUS

    -My lord, this is my daughter here asleep;
    -And this, Lysander; this Demetrius is;
    -This Helena, old Nedar's Helena:
    -I wonder of their being here together.
    - -

    THESEUS

    -No doubt they rose up early to observe
    -The rite of May, and hearing our intent,
    -Came here in grace our solemnity.
    -But speak, Egeus; is not this the day
    -That Hermia should give answer of her choice?
    - -

    EGEUS

    -It is, my lord.
    - -

    THESEUS

    -Go, bid the huntsmen wake them with their horns.
    -Horns and shout within. LYSANDER, DEMETRIUS, -HELENA, and HERMIA wake and start up -Good morrow, friends. Saint Valentine is past:
    -Begin these wood-birds but to couple now?
    - -

    LYSANDER

    -Pardon, my lord.
    - -

    THESEUS

    -I pray you all, stand up.
    -I know you two are rival enemies:
    -How comes this gentle concord in the world,
    -That hatred is so far from jealousy,
    -To sleep by hate, and fear no enmity?
    - -

    LYSANDER

    -My lord, I shall reply amazedly,
    -Half sleep, half waking: but as yet, I swear,
    -I cannot truly say how I came here;
    -But, as I think,--for truly would I speak,
    -And now do I bethink me, so it is,--
    -I came with Hermia hither: our intent
    -Was to be gone from Athens, where we might,
    -Without the peril of the Athenian law.
    - -

    EGEUS

    -Enough, enough, my lord; you have enough:
    -I beg the law, the law, upon his head.
    -They would have stolen away; they would, Demetrius,
    -Thereby to have defeated you and me,
    -You of your wife and me of my consent,
    -Of my consent that she should be your wife.
    - -

    DEMETRIUS

    -My lord, fair Helen told me of their stealth,
    -Of this their purpose hither to this wood;
    -And I in fury hither follow'd them,
    -Fair Helena in fancy following me.
    -But, my good lord, I wot not by what power,--
    -But by some power it is,--my love to Hermia,
    -Melted as the snow, seems to me now
    -As the remembrance of an idle gaud
    -Which in my childhood I did dote upon;
    -And all the faith, the virtue of my heart,
    -The object and the pleasure of mine eye,
    -Is only Helena. To her, my lord,
    -Was I betroth'd ere I saw Hermia:
    -But, like in sickness, did I loathe this food;
    -But, as in health, come to my natural taste,
    -Now I do wish it, love it, long for it,
    -And will for evermore be true to it.
    - -

    THESEUS

    -Fair lovers, you are fortunately met:
    -Of this discourse we more will hear anon.
    -Egeus, I will overbear your will;
    -For in the temple by and by with us
    -These couples shall eternally be knit:
    -And, for the morning now is something worn,
    -Our purposed hunting shall be set aside.
    -Away with us to Athens; three and three,
    -We'll hold a feast in great solemnity.
    -Come, Hippolyta.
    - -

    DEMETRIUS

    -These things seem small and undistinguishable,
    - -

    HERMIA

    -Methinks I see these things with parted eye,
    -When every thing seems double.
    - -

    HELENA

    -So methinks:
    -And I have found Demetrius like a jewel,
    -Mine own, and not mine own.
    - -

    DEMETRIUS

    -Are you sure
    -That we are awake? It seems to me
    -That yet we sleep, we dream. Do not you think
    -The duke was here, and bid us follow him?
    - -

    HERMIA

    -Yea; and my father.
    - -

    HELENA

    -And Hippolyta.
    - -

    LYSANDER

    -And he did bid us follow to the temple.
    - -

    DEMETRIUS

    -Why, then, we are awake: let's follow him
    -And by the way let us recount our dreams.
    - -

    BOTTOM

    -Awaking When my cue comes, call me, and I will
    -answer: my next is, 'Most fair Pyramus.' Heigh-ho!
    -Peter Quince! Flute, the bellows-mender! Snout,
    -the tinker! Starveling! God's my life, stolen
    -hence, and left me asleep! I have had a most rare
    -vision. I have had a dream, past the wit of man to
    -say what dream it was: man is but an ass, if he go
    -about to expound this dream. Methought I was--there
    -is no man can tell what. Methought I was,--and
    -methought I had,--but man is but a patched fool, if
    -he will offer to say what methought I had. The eye
    -of man hath not heard, the ear of man hath not
    -seen, man's hand is not able to taste, his tongue
    -to conceive, nor his heart to report, what my dream
    -was. I will get Peter Quince to write a ballad of
    -this dream: it shall be called Bottom's Dream,
    -because it hath no bottom; and I will sing it in the
    -latter end of a play, before the duke:
    -peradventure, to make it the more gracious, I shall
    -sing it at her death.
    -

    SCENE II. Athens. QUINCE'S house.

    -

    QUINCE

    -Have you sent to Bottom's house? is he come home yet?
    - -

    STARVELING

    -He cannot be heard of. Out of doubt he is
    -transported.
    - -

    FLUTE

    -If he come not, then the play is marred: it goes
    -not forward, doth it?
    - -

    QUINCE

    -It is not possible: you have not a man in all
    -Athens able to discharge Pyramus but he.
    - -

    FLUTE

    -No, he hath simply the best wit of any handicraft
    -man in Athens.
    - -

    QUINCE

    -Yea and the best person too; and he is a very
    -paramour for a sweet voice.
    - -

    FLUTE

    -You must say 'paragon:' a paramour is, God bless us,
    -a thing of naught.
    - -

    SNUG

    -Masters, the duke is coming from the temple, and
    -there is two or three lords and ladies more married:
    -if our sport had gone forward, we had all been made
    -men.
    - -

    FLUTE

    -O sweet bully Bottom! Thus hath he lost sixpence a
    -day during his life; he could not have 'scaped
    -sixpence a day: an the duke had not given him
    -sixpence a day for playing Pyramus, I'll be hanged;
    -he would have deserved it: sixpence a day in
    -Pyramus, or nothing.
    - -

    BOTTOM

    -Where are these lads? where are these hearts?
    - -

    QUINCE

    -Bottom! O most courageous day! O most happy hour!
    - -

    BOTTOM

    -Masters, I am to discourse wonders: but ask me not
    -what; for if I tell you, I am no true Athenian. I
    -will tell you every thing, right as it fell out.
    - -

    QUINCE

    -Let us hear, sweet Bottom.
    - -

    BOTTOM

    -Not a word of me. All that I will tell you is, that
    -the duke hath dined. Get your apparel together,
    -good strings to your beards, new ribbons to your
    -pumps; meet presently at the palace; every man look
    -o'er his part; for the short and the long is, our
    -play is preferred. In any case, let Thisby have
    -clean linen; and let not him that plays the lion
    -pair his nails, for they shall hang out for the
    -lion's claws. And, most dear actors, eat no onions
    -nor garlic, for we are to utter sweet breath; and I
    -do not doubt but to hear them say, it is a sweet
    -comedy. No more words: away! go, away!
    -

    ACT V

    -

    SCENE I. Athens. The palace of THESEUS.

    -

    HIPPOLYTA

    -'Tis strange my Theseus, that these
    -lovers speak of.
    - -

    THESEUS

    -More strange than true: I never may believe
    -These antique fables, nor these fairy toys.
    -Lovers and madmen have such seething brains,
    -Such shaping fantasies, that apprehend
    -More than cool reason ever comprehends.
    -The lunatic, the lover and the poet
    -Are of imagination all compact:
    -One sees more devils than vast hell can hold,
    -That is, the madman: the lover, all as frantic,
    -Sees Helen's beauty in a brow of Egypt:
    -The poet's eye, in fine frenzy rolling,
    -Doth glance from heaven to earth, from earth to heaven;
    -And as imagination bodies forth
    -The forms of things unknown, the poet's pen
    -Turns them to shapes and gives to airy nothing
    -A local habitation and a name.
    -Such tricks hath strong imagination,
    -That if it would but apprehend some joy,
    -It comprehends some bringer of that joy;
    -Or in the night, imagining some fear,
    -How easy is a bush supposed a bear!
    - -

    HIPPOLYTA

    -But all the story of the night told over,
    -And all their minds transfigured so together,
    -More witnesseth than fancy's images
    -And grows to something of great constancy;
    -But, howsoever, strange and admirable.
    - -

    THESEUS

    -Here come the lovers, full of joy and mirth.
    -Enter LYSANDER, DEMETRIUS, HERMIA, and HELENA -Joy, gentle friends! joy and fresh days of love
    -Accompany your hearts!
    - -

    LYSANDER

    -More than to us
    -Wait in your royal walks, your board, your bed!
    - -

    THESEUS

    -Come now; what masques, what dances shall we have,
    -To wear away this long age of three hours
    -Between our after-supper and bed-time?
    -Where is our usual manager of mirth?
    -What revels are in hand? Is there no play,
    -To ease the anguish of a torturing hour?
    -Call Philostrate.
    - -

    PHILOSTRATE

    -Here, mighty Theseus.
    - -

    THESEUS

    -Say, what abridgement have you for this evening?
    -What masque? what music? How shall we beguile
    -The lazy time, if not with some delight?
    - -

    PHILOSTRATE

    -There is a brief how many sports are ripe:
    -Make choice of which your highness will see first.
    - -

    THESEUS

    -Reads 'The battle with the Centaurs, to be sung
    -By an Athenian eunuch to the harp.'
    -We'll none of that: that have I told my love,
    -In glory of my kinsman Hercules.
    -Reads -'The riot of the tipsy Bacchanals,
    -Tearing the Thracian singer in their rage.'
    -That is an old device; and it was play'd
    -When I from Thebes came last a conqueror.
    -Reads -'The thrice three Muses mourning for the death
    -Of Learning, late deceased in beggary.'
    -That is some satire, keen and critical,
    -Not sorting with a nuptial ceremony.
    -Reads -'A tedious brief scene of young Pyramus
    -And his love Thisbe; very tragical mirth.'
    -Merry and tragical! tedious and brief!
    -That is, hot ice and wondrous strange snow.
    -How shall we find the concord of this discord?
    - -

    PHILOSTRATE

    -A play there is, my lord, some ten words long,
    -Which is as brief as I have known a play;
    -But by ten words, my lord, it is too long,
    -Which makes it tedious; for in all the play
    -There is not one word apt, one player fitted:
    -And tragical, my noble lord, it is;
    -For Pyramus therein doth kill himself.
    -Which, when I saw rehearsed, I must confess,
    -Made mine eyes water; but more merry tears
    -The passion of loud laughter never shed.
    - -

    THESEUS

    -What are they that do play it?
    - -

    PHILOSTRATE

    -Hard-handed men that work in Athens here,
    -Which never labour'd in their minds till now,
    -And now have toil'd their unbreathed memories
    -With this same play, against your nuptial.
    - -

    THESEUS

    -And we will hear it.
    - -

    PHILOSTRATE

    -No, my noble lord;
    -It is not for you: I have heard it over,
    -And it is nothing, nothing in the world;
    -Unless you can find sport in their intents,
    -Extremely stretch'd and conn'd with cruel pain,
    -To do you service.
    - -

    THESEUS

    -I will hear that play;
    -For never anything can be amiss,
    -When simpleness and duty tender it.
    -Go, bring them in: and take your places, ladies.
    - -

    HIPPOLYTA

    -I love not to see wretchedness o'er charged
    -And duty in his service perishing.
    - -

    THESEUS

    -Why, gentle sweet, you shall see no such thing.
    - -

    HIPPOLYTA

    -He says they can do nothing in this kind.
    - -

    THESEUS

    -The kinder we, to give them thanks for nothing.
    -Our sport shall be to take what they mistake:
    -And what poor duty cannot do, noble respect
    -Takes it in might, not merit.
    -Where I have come, great clerks have purposed
    -To greet me with premeditated welcomes;
    -Where I have seen them shiver and look pale,
    -Make periods in the midst of sentences,
    -Throttle their practised accent in their fears
    -And in conclusion dumbly have broke off,
    -Not paying me a welcome. Trust me, sweet,
    -Out of this silence yet I pick'd a welcome;
    -And in the modesty of fearful duty
    -I read as much as from the rattling tongue
    -Of saucy and audacious eloquence.
    -Love, therefore, and tongue-tied simplicity
    -In least speak most, to my capacity.
    - -

    PHILOSTRATE

    -So please your grace, the Prologue is address'd.
    - -

    THESEUS

    -Let him approach.
    - -

    Prologue

    -If we offend, it is with our good will.
    -That you should think, we come not to offend,
    -But with good will. To show our simple skill,
    -That is the true beginning of our end.
    -Consider then we come but in despite.
    -We do not come as minding to contest you,
    -Our true intent is. All for your delight
    -We are not here. That you should here repent you,
    -The actors are at hand and by their show
    -You shall know all that you are like to know.
    - -

    THESEUS

    -This fellow doth not stand upon points.
    - -

    LYSANDER

    -He hath rid his prologue like a rough colt; he knows
    -not the stop. A good moral, my lord: it is not
    -enough to speak, but to speak true.
    - -

    HIPPOLYTA

    -Indeed he hath played on his prologue like a child
    -on a recorder; a sound, but not in government.
    - -

    THESEUS

    -His speech, was like a tangled chain; nothing
    -impaired, but all disordered. Who is next?
    - -

    Prologue

    -Gentles, perchance you wonder at this show;
    -But wonder on, till truth make all things plain.
    -This man is Pyramus, if you would know;
    -This beauteous lady Thisby is certain.
    -This man, with lime and rough-cast, doth present
    -Wall, that vile Wall which did these lovers sunder;
    -And through Wall's chink, poor souls, they are content
    -To whisper. At the which let no man wonder.
    -This man, with lanthorn, dog, and bush of thorn,
    -Presenteth Moonshine; for, if you will know,
    -By moonshine did these lovers think no scorn
    -To meet at Ninus' tomb, there, there to woo.
    -This grisly beast, which Lion hight by name,
    -The trusty Thisby, coming first by night,
    -Did scare away, or rather did affright;
    -And, as she fled, her mantle she did fall,
    -Which Lion vile with bloody mouth did stain.
    -Anon comes Pyramus, sweet youth and tall,
    -And finds his trusty Thisby's mantle slain:
    -Whereat, with blade, with bloody blameful blade,
    -He bravely broach'd is boiling bloody breast;
    -And Thisby, tarrying in mulberry shade,
    -His dagger drew, and died. For all the rest,
    -Let Lion, Moonshine, Wall, and lovers twain
    -At large discourse, while here they do remain.
    - -

    THESEUS

    -I wonder if the lion be to speak.
    - -

    DEMETRIUS

    -No wonder, my lord: one lion may, when many asses do.
    - -

    Wall

    -In this same interlude it doth befall
    -That I, one Snout by name, present a wall;
    -And such a wall, as I would have you think,
    -That had in it a crannied hole or chink,
    -Through which the lovers, Pyramus and Thisby,
    -Did whisper often very secretly.
    -This loam, this rough-cast and this stone doth show
    -That I am that same wall; the truth is so:
    -And this the cranny is, right and sinister,
    -Through which the fearful lovers are to whisper.
    - -

    THESEUS

    -Would you desire lime and hair to speak better?
    - -

    DEMETRIUS

    -It is the wittiest partition that ever I heard
    -discourse, my lord.
    - -

    THESEUS

    -Pyramus draws near the wall: silence!
    - -

    Pyramus

    -O grim-look'd night! O night with hue so black!
    -O night, which ever art when day is not!
    -O night, O night! alack, alack, alack,
    -I fear my Thisby's promise is forgot!
    -And thou, O wall, O sweet, O lovely wall,
    -That stand'st between her father's ground and mine!
    -Thou wall, O wall, O sweet and lovely wall,
    -Show me thy chink, to blink through with mine eyne!
    -Wall holds up his fingers -Thanks, courteous wall: Jove shield thee well for this!
    -But what see I? No Thisby do I see.
    -O wicked wall, through whom I see no bliss!
    -Cursed be thy stones for thus deceiving me!
    - -

    THESEUS

    -The wall, methinks, being sensible, should curse again.
    - -

    Pyramus

    -No, in truth, sir, he should not. 'Deceiving me'
    -is Thisby's cue: she is to enter now, and I am to
    -spy her through the wall. You shall see, it will
    -fall pat as I told you. Yonder she comes.
    - -

    Thisbe

    -O wall, full often hast thou heard my moans,
    -For parting my fair Pyramus and me!
    -My cherry lips have often kiss'd thy stones,
    -Thy stones with lime and hair knit up in thee.
    - -

    Pyramus

    -I see a voice: now will I to the chink,
    -To spy an I can hear my Thisby's face. Thisby!
    - -

    Thisbe

    -My love thou art, my love I think.
    - -

    Pyramus

    -Think what thou wilt, I am thy lover's grace;
    -And, like Limander, am I trusty still.
    - -

    Thisbe

    -And I like Helen, till the Fates me kill.
    - -

    Pyramus

    -Not Shafalus to Procrus was so true.
    - -

    Thisbe

    -As Shafalus to Procrus, I to you.
    - -

    Pyramus

    -O kiss me through the hole of this vile wall!
    - -

    Thisbe

    -I kiss the wall's hole, not your lips at all.
    - -

    Pyramus

    -Wilt thou at Ninny's tomb meet me straightway?
    - -

    Thisbe

    -'Tide life, 'tide death, I come without delay.
    - -

    Wall

    -Thus have I, Wall, my part discharged so;
    -And, being done, thus Wall away doth go.
    - -

    THESEUS

    -Now is the mural down between the two neighbours.
    - -

    DEMETRIUS

    -No remedy, my lord, when walls are so wilful to hear
    -without warning.
    - -

    HIPPOLYTA

    -This is the silliest stuff that ever I heard.
    - -

    THESEUS

    -The best in this kind are but shadows; and the worst
    -are no worse, if imagination amend them.
    - -

    HIPPOLYTA

    -It must be your imagination then, and not theirs.
    - -

    THESEUS

    -If we imagine no worse of them than they of
    -themselves, they may pass for excellent men. Here
    -come two noble beasts in, a man and a lion.
    - -

    Lion

    -You, ladies, you, whose gentle hearts do fear
    -The smallest monstrous mouse that creeps on floor,
    -May now perchance both quake and tremble here,
    -When lion rough in wildest rage doth roar.
    -Then know that I, one Snug the joiner, am
    -A lion-fell, nor else no lion's dam;
    -For, if I should as lion come in strife
    -Into this place, 'twere pity on my life.
    - -

    THESEUS

    -A very gentle beast, of a good conscience.
    - -

    DEMETRIUS

    -The very best at a beast, my lord, that e'er I saw.
    - -

    LYSANDER

    -This lion is a very fox for his valour.
    - -

    THESEUS

    -True; and a goose for his discretion.
    - -

    DEMETRIUS

    -Not so, my lord; for his valour cannot carry his
    -discretion; and the fox carries the goose.
    - -

    THESEUS

    -His discretion, I am sure, cannot carry his valour;
    -for the goose carries not the fox. It is well:
    -leave it to his discretion, and let us listen to the moon.
    - -

    Moonshine

    -This lanthorn doth the horned moon present;--
    - -

    DEMETRIUS

    -He should have worn the horns on his head.
    - -

    THESEUS

    -He is no crescent, and his horns are
    -invisible within the circumference.
    - -

    Moonshine

    -This lanthorn doth the horned moon present;
    -Myself the man i' the moon do seem to be.
    - -

    THESEUS

    -This is the greatest error of all the rest: the man
    -should be put into the lanthorn. How is it else the
    -man i' the moon?
    - -

    DEMETRIUS

    -He dares not come there for the candle; for, you
    -see, it is already in snuff.
    - -

    HIPPOLYTA

    -I am aweary of this moon: would he would change!
    - -

    THESEUS

    -It appears, by his small light of discretion, that
    -he is in the wane; but yet, in courtesy, in all
    -reason, we must stay the time.
    - -

    LYSANDER

    -Proceed, Moon.
    - -

    Moonshine

    -All that I have to say, is, to tell you that the
    -lanthorn is the moon; I, the man in the moon; this
    -thorn-bush, my thorn-bush; and this dog, my dog.
    - -

    DEMETRIUS

    -Why, all these should be in the lanthorn; for all
    -these are in the moon. But, silence! here comes Thisbe.
    - -

    Thisbe

    -This is old Ninny's tomb. Where is my love?
    - -

    Lion

    -Roaring Oh--
    - -

    DEMETRIUS

    -Well roared, Lion.
    - -

    THESEUS

    -Well run, Thisbe.
    - -

    HIPPOLYTA

    -Well shone, Moon. Truly, the moon shines with a
    -good grace.
    - -

    THESEUS

    -Well moused, Lion.
    - -

    LYSANDER

    -And so the lion vanished.
    - -

    DEMETRIUS

    -And then came Pyramus.
    - -

    Pyramus

    -Sweet Moon, I thank thee for thy sunny beams;
    -I thank thee, Moon, for shining now so bright;
    -For, by thy gracious, golden, glittering gleams,
    -I trust to take of truest Thisby sight.
    -But stay, O spite!
    -But mark, poor knight,
    -What dreadful dole is here!
    -Eyes, do you see?
    -How can it be?
    -O dainty duck! O dear!
    -Thy mantle good,
    -What, stain'd with blood!
    -Approach, ye Furies fell!
    -O Fates, come, come,
    -Cut thread and thrum;
    -Quail, crush, conclude, and quell!
    - -

    THESEUS

    -This passion, and the death of a dear friend, would
    -go near to make a man look sad.
    - -

    HIPPOLYTA

    -Beshrew my heart, but I pity the man.
    - -

    Pyramus

    -O wherefore, Nature, didst thou lions frame?
    -Since lion vile hath here deflower'd my dear:
    -Which is--no, no--which was the fairest dame
    -That lived, that loved, that liked, that look'd
    -with cheer.
    -Come, tears, confound;
    -Out, sword, and wound
    -The pap of Pyramus;
    -Ay, that left pap,
    -Where heart doth hop:
    -Stabs himself -Thus die I, thus, thus, thus.
    -Now am I dead,
    -Now am I fled;
    -My soul is in the sky:
    -Tongue, lose thy light;
    -Moon take thy flight:
    -Exit Moonshine -Now die, die, die, die, die.
    - -

    DEMETRIUS

    -No die, but an ace, for him; for he is but one.
    - -

    LYSANDER

    -Less than an ace, man; for he is dead; he is nothing.
    - -

    THESEUS

    -With the help of a surgeon he might yet recover, and
    -prove an ass.
    - -

    HIPPOLYTA

    -How chance Moonshine is gone before Thisbe comes
    -back and finds her lover?
    - -

    THESEUS

    -She will find him by starlight. Here she comes; and
    -her passion ends the play.
    - -

    HIPPOLYTA

    -Methinks she should not use a long one for such a
    -Pyramus: I hope she will be brief.
    - -

    DEMETRIUS

    -A mote will turn the balance, which Pyramus, which
    -Thisbe, is the better; he for a man, God warrant us;
    -she for a woman, God bless us.
    - -

    LYSANDER

    -She hath spied him already with those sweet eyes.
    - -

    DEMETRIUS

    -And thus she means, videlicet:--
    - -

    Thisbe

    -Asleep, my love?
    -What, dead, my dove?
    -O Pyramus, arise!
    -Speak, speak. Quite dumb?
    -Dead, dead? A tomb
    -Must cover thy sweet eyes.
    -These My lips,
    -This cherry nose,
    -These yellow cowslip cheeks,
    -Are gone, are gone:
    -Lovers, make moan:
    -His eyes were green as leeks.
    -O Sisters Three,
    -Come, come to me,
    -With hands as pale as milk;
    -Lay them in gore,
    -Since you have shore
    -With shears his thread of silk.
    -Tongue, not a word:
    -Come, trusty sword;
    -Come, blade, my breast imbrue:
    -Stabs herself -And, farewell, friends;
    -Thus Thisby ends:
    -Adieu, adieu, adieu.
    - -

    THESEUS

    -Moonshine and Lion are left to bury the dead.
    - -

    DEMETRIUS

    -Ay, and Wall too.
    - -

    BOTTOM

    -Starting up No assure you; the wall is down that
    -parted their fathers. Will it please you to see the
    -epilogue, or to hear a Bergomask dance between two
    -of our company?
    - -

    THESEUS

    -No epilogue, I pray you; for your play needs no
    -excuse. Never excuse; for when the players are all
    -dead, there needs none to be blamed. Marry, if he
    -that writ it had played Pyramus and hanged himself
    -in Thisbe's garter, it would have been a fine
    -tragedy: and so it is, truly; and very notably
    -discharged. But come, your Bergomask: let your
    -epilogue alone.
    -A dance -The iron tongue of midnight hath told twelve:
    -Lovers, to bed; 'tis almost fairy time.
    -I fear we shall out-sleep the coming morn
    -As much as we this night have overwatch'd.
    -This palpable-gross play hath well beguiled
    -The heavy gait of night. Sweet friends, to bed.
    -A fortnight hold we this solemnity,
    -In nightly revels and new jollity.
    - -

    PUCK

    -Now the hungry lion roars,
    -And the wolf behowls the moon;
    -Whilst the heavy ploughman snores,
    -All with weary task fordone.
    -Now the wasted brands do glow,
    -Whilst the screech-owl, screeching loud,
    -Puts the wretch that lies in woe
    -In remembrance of a shroud.
    -Now it is the time of night
    -That the graves all gaping wide,
    -Every one lets forth his sprite,
    -In the church-way paths to glide:
    -And we fairies, that do run
    -By the triple Hecate's team,
    -From the presence of the sun,
    -Following darkness like a dream,
    -Now are frolic: not a mouse
    -Shall disturb this hallow'd house:
    -I am sent with broom before,
    -To sweep the dust behind the door.
    - -

    OBERON

    -Through the house give gathering light,
    -By the dead and drowsy fire:
    -Every elf and fairy sprite
    -Hop as light as bird from brier;
    -And this ditty, after me,
    -Sing, and dance it trippingly.
    - -

    TITANIA

    -First, rehearse your song by rote
    -To each word a warbling note:
    -Hand in hand, with fairy grace,
    -Will we sing, and bless this place.
    - -

    OBERON

    -Now, until the break of day,
    -Through this house each fairy stray.
    -To the best bride-bed will we,
    -Which by us shall blessed be;
    -And the issue there create
    -Ever shall be fortunate.
    -So shall all the couples three
    -Ever true in loving be;
    -And the blots of Nature's hand
    -Shall not in their issue stand;
    -Never mole, hare lip, nor scar,
    -Nor mark prodigious, such as are
    -Despised in nativity,
    -Shall upon their children be.
    -With this field-dew consecrate,
    -Every fairy take his gait;
    -And each several chamber bless,
    -Through this palace, with sweet peace;
    -And the owner of it blest
    -Ever shall in safety rest.
    -Trip away; make no stay;
    -Meet me all by break of day.
    - -

    PUCK

    -If we shadows have offended,
    -Think but this, and all is mended,
    -That you have but slumber'd here
    -While these visions did appear.
    -And this weak and idle theme,
    -No more yielding but a dream,
    -Gentles, do not reprehend:
    -if you pardon, we will mend:
    -And, as I am an honest Puck,
    -If we have unearned luck
    -Now to 'scape the serpent's tongue,
    -We will make amends ere long;
    -Else the Puck a liar call;
    -So, good night unto you all.
    -Give me your hands, if we be friends,
    -And Robin shall restore amends.
    - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/xslbench2.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/xslbench2.xsl deleted file mode 100644 index 40991bbe40..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/xslbench2.xsl +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - <xsl:value-of select="/PLAY/TITLE"/> - - - -

    - - -
    - - - -

    Parts -

    - -
    - -

    - -

    - -
    - -

    -
    - -

    - -
    - -
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/xslbench3.out b/src/tools/docbook/libxslt/tests/XSLTMark/xslbench3.out deleted file mode 100644 index c3ce54f0d0..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/xslbench3.out +++ /dev/null @@ -1,47 +0,0 @@ - - - -A Midsummer Night's Dream - - -

    A Midsummer Night's Dream

    -ACT I - SCENE I. Athens. The palace of THESEUS. - Has 49 speeches - with an average of 5 - line(s) each. -
    ACT I - SCENE II. Athens. QUINCE'S house. - Has 41 speeches - with an average of 2 - line(s) each. -
    ACT II - SCENE I. A wood near Athens. - Has 39 speeches - with an average of 7 - line(s) each. -
    ACT II - SCENE II. Another part of the wood. - Has 23 speeches - with an average of 7 - line(s) each. -
    ACT III - SCENE I. The wood. TITANIA lying asleep. - Has 68 speeches - with an average of 3 - line(s) each. -
    ACT III - SCENE II. Another part of the wood. - Has 112 speeches - with an average of 4 - line(s) each. -
    ACT IV - SCENE I. The same. LYSANDER, DEMETRIUS, HELENA, and HERMIA lying asleep. - Has 50 speeches - with an average of 4 - line(s) each. -
    ACT IV - SCENE II. Athens. QUINCE'S house. - Has 14 speeches - with an average of 3 - line(s) each. -
    ACT V - SCENE I. Athens. The palace of THESEUS. - Has 104 speeches - with an average of 4 - line(s) each. -
    -
    - - diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/xslbench3.xsl b/src/tools/docbook/libxslt/tests/XSLTMark/xslbench3.xsl deleted file mode 100644 index df1bdb75ee..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/xslbench3.xsl +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - <xsl:value-of select="/PLAY/TITLE"/> - - - -

    - - - - - - - Has speeches - with an average of - line(s) each. -
    -
    -
    -
    - - - -
    - -
    diff --git a/src/tools/docbook/libxslt/tests/XSLTMark/xslbenchdream.xml b/src/tools/docbook/libxslt/tests/XSLTMark/xslbenchdream.xml deleted file mode 100644 index 73e5359d9f..0000000000 --- a/src/tools/docbook/libxslt/tests/XSLTMark/xslbenchdream.xml +++ /dev/null @@ -1,4477 +0,0 @@ - - - -A Midsummer Night's Dream - - -

    ASCII text placed in the public domain by Moby Lexical Tools, 1992.

    -

    SGML markup by Jon Bosak, 1992-1994.

    -

    XML version by Jon Bosak, 1996-1999.

    -

    The XML markup in this version is Copyright © 1999 Jon Bosak. -This work may freely be distributed on condition that it not be -modified or altered in any way.

    -
    - - -Dramatis Personae - -THESEUS, Duke of Athens. -EGEUS, father to Hermia. - - -LYSANDER -DEMETRIUS -in love with Hermia. - - -PHILOSTRATE, master of the revels to Theseus. -QUINCE, a carpenter. -SNUG, a joiner. -BOTTOM, a weaver. -FLUTE, a bellows-mender. -SNOUT, a tinker. -STARVELING, a tailor. -HIPPOLYTA, queen of the Amazons, betrothed to Theseus. -HERMIA, daughter to Egeus, in love with Lysander. -HELENA, in love with Demetrius. -OBERON, king of the fairies. -TITANIA, queen of the fairies. -PUCK, or Robin Goodfellow. - - -PEASEBLOSSOM -COBWEB -MOTH -MUSTARDSEED -fairies. - - -Other fairies attending their King and Queen. -Attendants on Theseus and Hippolyta. - - -SCENE Athens, and a wood near it. - -A MIDSUMMER NIGHT'S DREAM - -ACT I - -SCENE I. Athens. The palace of THESEUS. -Enter THESEUS, HIPPOLYTA, PHILOSTRATE, and -Attendants - - -THESEUS -Now, fair Hippolyta, our nuptial hour -Draws on apace; four happy days bring in -Another moon: but, O, methinks, how slow -This old moon wanes! she lingers my desires, -Like to a step-dame or a dowager -Long withering out a young man revenue. - - - -HIPPOLYTA -Four days will quickly steep themselves in night; -Four nights will quickly dream away the time; -And then the moon, like to a silver bow -New-bent in heaven, shall behold the night -Of our solemnities. - - - -THESEUS -Go, Philostrate, -Stir up the Athenian youth to merriments; -Awake the pert and nimble spirit of mirth; -Turn melancholy forth to funerals; -The pale companion is not for our pomp. -Exit PHILOSTRATE -Hippolyta, I woo'd thee with my sword, -And won thy love, doing thee injuries; -But I will wed thee in another key, -With pomp, with triumph and with revelling. - - -Enter EGEUS, HERMIA, LYSANDER, and DEMETRIUS - - -EGEUS -Happy be Theseus, our renowned duke! - - - -THESEUS -Thanks, good Egeus: what's the news with thee? - - - -EGEUS -Full of vexation come I, with complaint -Against my child, my daughter Hermia. -Stand forth, Demetrius. My noble lord, -This man hath my consent to marry her. -Stand forth, Lysander: and my gracious duke, -This man hath bewitch'd the bosom of my child; -Thou, thou, Lysander, thou hast given her rhymes, -And interchanged love-tokens with my child: -Thou hast by moonlight at her window sung, -With feigning voice verses of feigning love, -And stolen the impression of her fantasy -With bracelets of thy hair, rings, gawds, conceits, -Knacks, trifles, nosegays, sweetmeats, messengers -Of strong prevailment in unharden'd youth: -With cunning hast thou filch'd my daughter's heart, -Turn'd her obedience, which is due to me, -To stubborn harshness: and, my gracious duke, -Be it so she; will not here before your grace -Consent to marry with Demetrius, -I beg the ancient privilege of Athens, -As she is mine, I may dispose of her: -Which shall be either to this gentleman -Or to her death, according to our law -Immediately provided in that case. - - - -THESEUS -What say you, Hermia? be advised fair maid: -To you your father should be as a god; -One that composed your beauties, yea, and one -To whom you are but as a form in wax -By him imprinted and within his power -To leave the figure or disfigure it. -Demetrius is a worthy gentleman. - - - -HERMIA -So is Lysander. - - - -THESEUS -In himself he is; -But in this kind, wanting your father's voice, -The other must be held the worthier. - - - -HERMIA -I would my father look'd but with my eyes. - - - -THESEUS -Rather your eyes must with his judgment look. - - - -HERMIA -I do entreat your grace to pardon me. -I know not by what power I am made bold, -Nor how it may concern my modesty, -In such a presence here to plead my thoughts; -But I beseech your grace that I may know -The worst that may befall me in this case, -If I refuse to wed Demetrius. - - - -THESEUS -Either to die the death or to abjure -For ever the society of men. -Therefore, fair Hermia, question your desires; -Know of your youth, examine well your blood, -Whether, if you yield not to your father's choice, -You can endure the livery of a nun, -For aye to be in shady cloister mew'd, -To live a barren sister all your life, -Chanting faint hymns to the cold fruitless moon. -Thrice-blessed they that master so their blood, -To undergo such maiden pilgrimage; -But earthlier happy is the rose distill'd, -Than that which withering on the virgin thorn -Grows, lives and dies in single blessedness. - - - -HERMIA -So will I grow, so live, so die, my lord, -Ere I will my virgin patent up -Unto his lordship, whose unwished yoke -My soul consents not to give sovereignty. - - - -THESEUS -Take time to pause; and, by the nest new moon-- -The sealing-day betwixt my love and me, -For everlasting bond of fellowship-- -Upon that day either prepare to die -For disobedience to your father's will, -Or else to wed Demetrius, as he would; -Or on Diana's altar to protest -For aye austerity and single life. - - - -DEMETRIUS -Relent, sweet Hermia: and, Lysander, yield -Thy crazed title to my certain right. - - - -LYSANDER -You have her father's love, Demetrius; -Let me have Hermia's: do you marry him. - - - -EGEUS -Scornful Lysander! true, he hath my love, -And what is mine my love shall render him. -And she is mine, and all my right of her -I do estate unto Demetrius. - - - -LYSANDER -I am, my lord, as well derived as he, -As well possess'd; my love is more than his; -My fortunes every way as fairly rank'd, -If not with vantage, as Demetrius'; -And, which is more than all these boasts can be, -I am beloved of beauteous Hermia: -Why should not I then prosecute my right? -Demetrius, I'll avouch it to his head, -Made love to Nedar's daughter, Helena, -And won her soul; and she, sweet lady, dotes, -Devoutly dotes, dotes in idolatry, -Upon this spotted and inconstant man. - - - -THESEUS -I must confess that I have heard so much, -And with Demetrius thought to have spoke thereof; -But, being over-full of self-affairs, -My mind did lose it. But, Demetrius, come; -And come, Egeus; you shall go with me, -I have some private schooling for you both. -For you, fair Hermia, look you arm yourself -To fit your fancies to your father's will; -Or else the law of Athens yields you up-- -Which by no means we may extenuate-- -To death, or to a vow of single life. -Come, my Hippolyta: what cheer, my love? -Demetrius and Egeus, go along: -I must employ you in some business -Against our nuptial and confer with you -Of something nearly that concerns yourselves. - - - -EGEUS -With duty and desire we follow you. - - -Exeunt all but LYSANDER and HERMIA - - -LYSANDER -How now, my love! why is your cheek so pale? -How chance the roses there do fade so fast? - - - -HERMIA -Belike for want of rain, which I could well -Beteem them from the tempest of my eyes. - - - -LYSANDER -Ay me! for aught that I could ever read, -Could ever hear by tale or history, -The course of true love never did run smooth; -But, either it was different in blood,-- - - - -HERMIA -O cross! too high to be enthrall'd to low. - - - -LYSANDER -Or else misgraffed in respect of years,-- - - - -HERMIA -O spite! too old to be engaged to young. - - - -LYSANDER -Or else it stood upon the choice of friends,-- - - - -HERMIA -O hell! to choose love by another's eyes. - - - -LYSANDER -Or, if there were a sympathy in choice, -War, death, or sickness did lay siege to it, -Making it momentany as a sound, -Swift as a shadow, short as any dream; -Brief as the lightning in the collied night, -That, in a spleen, unfolds both heaven and earth, -And ere a man hath power to say 'Behold!' -The jaws of darkness do devour it up: -So quick bright things come to confusion. - - - -HERMIA -If then true lovers have been ever cross'd, -It stands as an edict in destiny: -Then let us teach our trial patience, -Because it is a customary cross, -As due to love as thoughts and dreams and sighs, -Wishes and tears, poor fancy's followers. - - - -LYSANDER -A good persuasion: therefore, hear me, Hermia. -I have a widow aunt, a dowager -Of great revenue, and she hath no child: -From Athens is her house remote seven leagues; -And she respects me as her only son. -There, gentle Hermia, may I marry thee; -And to that place the sharp Athenian law -Cannot pursue us. If thou lovest me then, -Steal forth thy father's house to-morrow night; -And in the wood, a league without the town, -Where I did meet thee once with Helena, -To do observance to a morn of May, -There will I stay for thee. - - - -HERMIA -My good Lysander! -I swear to thee, by Cupid's strongest bow, -By his best arrow with the golden head, -By the simplicity of Venus' doves, -By that which knitteth souls and prospers loves, -And by that fire which burn'd the Carthage queen, -When the false Troyan under sail was seen, -By all the vows that ever men have broke, -In number more than ever women spoke, -In that same place thou hast appointed me, -To-morrow truly will I meet with thee. - - - -LYSANDER -Keep promise, love. Look, here comes Helena. - - -Enter HELENA - - -HERMIA -God speed fair Helena! whither away? - - - -HELENA -Call you me fair? that fair again unsay. -Demetrius loves your fair: O happy fair! -Your eyes are lode-stars; and your tongue's sweet air -More tuneable than lark to shepherd's ear, -When wheat is green, when hawthorn buds appear. -Sickness is catching: O, were favour so, -Yours would I catch, fair Hermia, ere I go; -My ear should catch your voice, my eye your eye, -My tongue should catch your tongue's sweet melody. -Were the world mine, Demetrius being bated, -The rest I'd give to be to you translated. -O, teach me how you look, and with what art -You sway the motion of Demetrius' heart. - - - -HERMIA -I frown upon him, yet he loves me still. - - - -HELENA -O that your frowns would teach my smiles such skill! - - - -HERMIA -I give him curses, yet he gives me love. - - - -HELENA -O that my prayers could such affection move! - - - -HERMIA -The more I hate, the more he follows me. - - - -HELENA -The more I love, the more he hateth me. - - - -HERMIA -His folly, Helena, is no fault of mine. - - - -HELENA -None, but your beauty: would that fault were mine! - - - -HERMIA -Take comfort: he no more shall see my face; -Lysander and myself will fly this place. -Before the time I did Lysander see, -Seem'd Athens as a paradise to me: -O, then, what graces in my love do dwell, -That he hath turn'd a heaven unto a hell! - - - -LYSANDER -Helen, to you our minds we will unfold: -To-morrow night, when Phoebe doth behold -Her silver visage in the watery glass, -Decking with liquid pearl the bladed grass, -A time that lovers' flights doth still conceal, -Through Athens' gates have we devised to steal. - - - -HERMIA -And in the wood, where often you and I -Upon faint primrose-beds were wont to lie, -Emptying our bosoms of their counsel sweet, -There my Lysander and myself shall meet; -And thence from Athens turn away our eyes, -To seek new friends and stranger companies. -Farewell, sweet playfellow: pray thou for us; -And good luck grant thee thy Demetrius! -Keep word, Lysander: we must starve our sight -From lovers' food till morrow deep midnight. - - - -LYSANDER -I will, my Hermia. -Exit HERMIA -Helena, adieu: -As you on him, Demetrius dote on you! - - -Exit - - -HELENA -How happy some o'er other some can be! -Through Athens I am thought as fair as she. -But what of that? Demetrius thinks not so; -He will not know what all but he do know: -And as he errs, doting on Hermia's eyes, -So I, admiring of his qualities: -Things base and vile, folding no quantity, -Love can transpose to form and dignity: -Love looks not with the eyes, but with the mind; -And therefore is wing'd Cupid painted blind: -Nor hath Love's mind of any judgement taste; -Wings and no eyes figure unheedy haste: -And therefore is Love said to be a child, -Because in choice he is so oft beguiled. -As waggish boys in game themselves forswear, -So the boy Love is perjured every where: -For ere Demetrius look'd on Hermia's eyne, -He hail'd down oaths that he was only mine; -And when this hail some heat from Hermia felt, -So he dissolved, and showers of oaths did melt. -I will go tell him of fair Hermia's flight: -Then to the wood will he to-morrow night -Pursue her; and for this intelligence -If I have thanks, it is a dear expense: -But herein mean I to enrich my pain, -To have his sight thither and back again. - - -Exit - - -SCENE II. Athens. QUINCE'S house. -Enter QUINCE, SNUG, BOTTOM, FLUTE, SNOUT, and -STARVELING - - -QUINCE -Is all our company here? - - - -BOTTOM -You were best to call them generally, man by man, -according to the scrip. - - - -QUINCE -Here is the scroll of every man's name, which is -thought fit, through all Athens, to play in our -interlude before the duke and the duchess, on his -wedding-day at night. - - - -BOTTOM -First, good Peter Quince, say what the play treats -on, then read the names of the actors, and so grow -to a point. - - - -QUINCE -Marry, our play is, The most lamentable comedy, and -most cruel death of Pyramus and Thisby. - - - -BOTTOM -A very good piece of work, I assure you, and a -merry. Now, good Peter Quince, call forth your -actors by the scroll. Masters, spread yourselves. - - - -QUINCE -Answer as I call you. Nick Bottom, the weaver. - - - -BOTTOM -Ready. Name what part I am for, and proceed. - - - -QUINCE -You, Nick Bottom, are set down for Pyramus. - - - -BOTTOM -What is Pyramus? a lover, or a tyrant? - - - -QUINCE -A lover, that kills himself most gallant for love. - - - -BOTTOM -That will ask some tears in the true performing of -it: if I do it, let the audience look to their -eyes; I will move storms, I will condole in some -measure. To the rest: yet my chief humour is for a -tyrant: I could play Ercles rarely, or a part to -tear a cat in, to make all split. -The raging rocks -And shivering shocks -Shall break the locks -Of prison gates; -And Phibbus' car -Shall shine from far -And make and mar -The foolish Fates. -This was lofty! Now name the rest of the players. -This is Ercles' vein, a tyrant's vein; a lover is -more condoling. - - - -QUINCE -Francis Flute, the bellows-mender. - - - -FLUTE -Here, Peter Quince. - - - -QUINCE -Flute, you must take Thisby on you. - - - -FLUTE -What is Thisby? a wandering knight? - - - -QUINCE -It is the lady that Pyramus must love. - - - -FLUTE -Nay, faith, let me not play a woman; I have a beard coming. - - - -QUINCE -That's all one: you shall play it in a mask, and -you may speak as small as you will. - - - -BOTTOM -An I may hide my face, let me play Thisby too, I'll -speak in a monstrous little voice. 'Thisne, -Thisne;' 'Ah, Pyramus, lover dear! thy Thisby dear, -and lady dear!' - - - -QUINCE -No, no; you must play Pyramus: and, Flute, you Thisby. - - - -BOTTOM -Well, proceed. - - - -QUINCE -Robin Starveling, the tailor. - - - -STARVELING -Here, Peter Quince. - - - -QUINCE -Robin Starveling, you must play Thisby's mother. -Tom Snout, the tinker. - - - -SNOUT -Here, Peter Quince. - - - -QUINCE -You, Pyramus' father: myself, Thisby's father: -Snug, the joiner; you, the lion's part: and, I -hope, here is a play fitted. - - - -SNUG -Have you the lion's part written? pray you, if it -be, give it me, for I am slow of study. - - - -QUINCE -You may do it extempore, for it is nothing but roaring. - - - -BOTTOM -Let me play the lion too: I will roar, that I will -do any man's heart good to hear me; I will roar, -that I will make the duke say 'Let him roar again, -let him roar again.' - - - -QUINCE -An you should do it too terribly, you would fright -the duchess and the ladies, that they would shriek; -and that were enough to hang us all. - - - -ALL -That would hang us, every mother's son. - - - -BOTTOM -I grant you, friends, if that you should fright the -ladies out of their wits, they would have no more -discretion but to hang us: but I will aggravate my -voice so that I will roar you as gently as any -sucking dove; I will roar you an 'twere any -nightingale. - - - -QUINCE -You can play no part but Pyramus; for Pyramus is a -sweet-faced man; a proper man, as one shall see in a -summer's day; a most lovely gentleman-like man: -therefore you must needs play Pyramus. - - - -BOTTOM -Well, I will undertake it. What beard were I best -to play it in? - - - -QUINCE -Why, what you will. - - - -BOTTOM -I will discharge it in either your straw-colour -beard, your orange-tawny beard, your purple-in-grain -beard, or your French-crown-colour beard, your -perfect yellow. - - - -QUINCE -Some of your French crowns have no hair at all, and -then you will play bare-faced. But, masters, here -are your parts: and I am to entreat you, request -you and desire you, to con them by to-morrow night; -and meet me in the palace wood, a mile without the -town, by moonlight; there will we rehearse, for if -we meet in the city, we shall be dogged with -company, and our devices known. In the meantime I -will draw a bill of properties, such as our play -wants. I pray you, fail me not. - - - -BOTTOM -We will meet; and there we may rehearse most -obscenely and courageously. Take pains; be perfect: adieu. - - - -QUINCE -At the duke's oak we meet. - - - -BOTTOM -Enough; hold or cut bow-strings. - - -Exeunt - - - - -ACT II - -SCENE I. A wood near Athens. -Enter, from opposite sides, a Fairy, and PUCK - - -PUCK -How now, spirit! whither wander you? - - - -Fairy -Over hill, over dale, -Thorough bush, thorough brier, -Over park, over pale, -Thorough flood, thorough fire, -I do wander everywhere, -Swifter than the moon's sphere; -And I serve the fairy queen, -To dew her orbs upon the green. -The cowslips tall her pensioners be: -In their gold coats spots you see; -Those be rubies, fairy favours, -In those freckles live their savours: -I must go seek some dewdrops here -And hang a pearl in every cowslip's ear. -Farewell, thou lob of spirits; I'll be gone: -Our queen and all our elves come here anon. - - - -PUCK -The king doth keep his revels here to-night: -Take heed the queen come not within his sight; -For Oberon is passing fell and wrath, -Because that she as her attendant hath -A lovely boy, stolen from an Indian king; -She never had so sweet a changeling; -And jealous Oberon would have the child -Knight of his train, to trace the forests wild; -But she perforce withholds the loved boy, -Crowns him with flowers and makes him all her joy: -And now they never meet in grove or green, -By fountain clear, or spangled starlight sheen, -But, they do square, that all their elves for fear -Creep into acorn-cups and hide them there. - - - -Fairy -Either I mistake your shape and making quite, -Or else you are that shrewd and knavish sprite -Call'd Robin Goodfellow: are not you he -That frights the maidens of the villagery; -Skim milk, and sometimes labour in the quern -And bootless make the breathless housewife churn; -And sometime make the drink to bear no barm; -Mislead night-wanderers, laughing at their harm? -Those that Hobgoblin call you and sweet Puck, -You do their work, and they shall have good luck: -Are not you he? - - - -PUCK -Thou speak'st aright; -I am that merry wanderer of the night. -I jest to Oberon and make him smile -When I a fat and bean-fed horse beguile, -Neighing in likeness of a filly foal: -And sometime lurk I in a gossip's bowl, -In very likeness of a roasted crab, -And when she drinks, against her lips I bob -And on her wither'd dewlap pour the ale. -The wisest aunt, telling the saddest tale, -Sometime for three-foot stool mistaketh me; -Then slip I from her bum, down topples she, -And 'tailor' cries, and falls into a cough; -And then the whole quire hold their hips and laugh, -And waxen in their mirth and neeze and swear -A merrier hour was never wasted there. -But, room, fairy! here comes Oberon. - - - -Fairy -And here my mistress. Would that he were gone! - - -Enter, from one side, OBERON, with his train; -from the other, TITANIA, with hers - - -OBERON -Ill met by moonlight, proud Titania. - - - -TITANIA -What, jealous Oberon! Fairies, skip hence: -I have forsworn his bed and company. - - - -OBERON -Tarry, rash wanton: am not I thy lord? - - - -TITANIA -Then I must be thy lady: but I know -When thou hast stolen away from fairy land, -And in the shape of Corin sat all day, -Playing on pipes of corn and versing love -To amorous Phillida. Why art thou here, -Come from the farthest Steppe of India? -But that, forsooth, the bouncing Amazon, -Your buskin'd mistress and your warrior love, -To Theseus must be wedded, and you come -To give their bed joy and prosperity. - - - -OBERON -How canst thou thus for shame, Titania, -Glance at my credit with Hippolyta, -Knowing I know thy love to Theseus? -Didst thou not lead him through the glimmering night -From Perigenia, whom he ravished? -And make him with fair AEgle break his faith, -With Ariadne and Antiopa? - - - -TITANIA -These are the forgeries of jealousy: -And never, since the middle summer's spring, -Met we on hill, in dale, forest or mead, -By paved fountain or by rushy brook, -Or in the beached margent of the sea, -To dance our ringlets to the whistling wind, -But with thy brawls thou hast disturb'd our sport. -Therefore the winds, piping to us in vain, -As in revenge, have suck'd up from the sea -Contagious fogs; which falling in the land -Have every pelting river made so proud -That they have overborne their continents: -The ox hath therefore stretch'd his yoke in vain, -The ploughman lost his sweat, and the green corn -Hath rotted ere his youth attain'd a beard; -The fold stands empty in the drowned field, -And crows are fatted with the murrion flock; -The nine men's morris is fill'd up with mud, -And the quaint mazes in the wanton green -For lack of tread are undistinguishable: -The human mortals want their winter here; -No night is now with hymn or carol blest: -Therefore the moon, the governess of floods, -Pale in her anger, washes all the air, -That rheumatic diseases do abound: -And thorough this distemperature we see -The seasons alter: hoary-headed frosts -Far in the fresh lap of the crimson rose, -And on old Hiems' thin and icy crown -An odorous chaplet of sweet summer buds -Is, as in mockery, set: the spring, the summer, -The childing autumn, angry winter, change -Their wonted liveries, and the mazed world, -By their increase, now knows not which is which: -And this same progeny of evils comes -From our debate, from our dissension; -We are their parents and original. - - - -OBERON -Do you amend it then; it lies in you: -Why should Titania cross her Oberon? -I do but beg a little changeling boy, -To be my henchman. - - - -TITANIA -Set your heart at rest: -The fairy land buys not the child of me. -His mother was a votaress of my order: -And, in the spiced Indian air, by night, -Full often hath she gossip'd by my side, -And sat with me on Neptune's yellow sands, -Marking the embarked traders on the flood, -When we have laugh'd to see the sails conceive -And grow big-bellied with the wanton wind; -Which she, with pretty and with swimming gait -Following,--her womb then rich with my young squire,-- -Would imitate, and sail upon the land, -To fetch me trifles, and return again, -As from a voyage, rich with merchandise. -But she, being mortal, of that boy did die; -And for her sake do I rear up her boy, -And for her sake I will not part with him. - - - -OBERON -How long within this wood intend you stay? - - - -TITANIA -Perchance till after Theseus' wedding-day. -If you will patiently dance in our round -And see our moonlight revels, go with us; -If not, shun me, and I will spare your haunts. - - - -OBERON -Give me that boy, and I will go with thee. - - - -TITANIA -Not for thy fairy kingdom. Fairies, away! -We shall chide downright, if I longer stay. - - -Exit TITANIA with her train - - -OBERON -Well, go thy way: thou shalt not from this grove -Till I torment thee for this injury. -My gentle Puck, come hither. Thou rememberest -Since once I sat upon a promontory, -And heard a mermaid on a dolphin's back -Uttering such dulcet and harmonious breath -That the rude sea grew civil at her song -And certain stars shot madly from their spheres, -To hear the sea-maid's music. - - - -PUCK -I remember. - - - -OBERON -That very time I saw, but thou couldst not, -Flying between the cold moon and the earth, -Cupid all arm'd: a certain aim he took -At a fair vestal throned by the west, -And loosed his love-shaft smartly from his bow, -As it should pierce a hundred thousand hearts; -But I might see young Cupid's fiery shaft -Quench'd in the chaste beams of the watery moon, -And the imperial votaress passed on, -In maiden meditation, fancy-free. -Yet mark'd I where the bolt of Cupid fell: -It fell upon a little western flower, -Before milk-white, now purple with love's wound, -And maidens call it love-in-idleness. -Fetch me that flower; the herb I shew'd thee once: -The juice of it on sleeping eye-lids laid -Will make or man or woman madly dote -Upon the next live creature that it sees. -Fetch me this herb; and be thou here again -Ere the leviathan can swim a league. - - - -PUCK -I'll put a girdle round about the earth -In forty minutes. - - -Exit - - -OBERON -Having once this juice, -I'll watch Titania when she is asleep, -And drop the liquor of it in her eyes. -The next thing then she waking looks upon, -Be it on lion, bear, or wolf, or bull, -On meddling monkey, or on busy ape, -She shall pursue it with the soul of love: -And ere I take this charm from off her sight, -As I can take it with another herb, -I'll make her render up her page to me. -But who comes here? I am invisible; -And I will overhear their conference. - - -Enter DEMETRIUS, HELENA, following him - - -DEMETRIUS -I love thee not, therefore pursue me not. -Where is Lysander and fair Hermia? -The one I'll slay, the other slayeth me. -Thou told'st me they were stolen unto this wood; -And here am I, and wode within this wood, -Because I cannot meet my Hermia. -Hence, get thee gone, and follow me no more. - - - -HELENA -You draw me, you hard-hearted adamant; -But yet you draw not iron, for my heart -Is true as steel: leave you your power to draw, -And I shall have no power to follow you. - - - -DEMETRIUS -Do I entice you? do I speak you fair? -Or, rather, do I not in plainest truth -Tell you, I do not, nor I cannot love you? - - - -HELENA -And even for that do I love you the more. -I am your spaniel; and, Demetrius, -The more you beat me, I will fawn on you: -Use me but as your spaniel, spurn me, strike me, -Neglect me, lose me; only give me leave, -Unworthy as I am, to follow you. -What worser place can I beg in your love,-- -And yet a place of high respect with me,-- -Than to be used as you use your dog? - - - -DEMETRIUS -Tempt not too much the hatred of my spirit; -For I am sick when I do look on thee. - - - -HELENA -And I am sick when I look not on you. - - - -DEMETRIUS -You do impeach your modesty too much, -To leave the city and commit yourself -Into the hands of one that loves you not; -To trust the opportunity of night -And the ill counsel of a desert place -With the rich worth of your virginity. - - - -HELENA -Your virtue is my privilege: for that -It is not night when I do see your face, -Therefore I think I am not in the night; -Nor doth this wood lack worlds of company, -For you in my respect are all the world: -Then how can it be said I am alone, -When all the world is here to look on me? - - - -DEMETRIUS -I'll run from thee and hide me in the brakes, -And leave thee to the mercy of wild beasts. - - - -HELENA -The wildest hath not such a heart as you. -Run when you will, the story shall be changed: -Apollo flies, and Daphne holds the chase; -The dove pursues the griffin; the mild hind -Makes speed to catch the tiger; bootless speed, -When cowardice pursues and valour flies. - - - -DEMETRIUS -I will not stay thy questions; let me go: -Or, if thou follow me, do not believe -But I shall do thee mischief in the wood. - - - -HELENA -Ay, in the temple, in the town, the field, -You do me mischief. Fie, Demetrius! -Your wrongs do set a scandal on my sex: -We cannot fight for love, as men may do; -We should be wood and were not made to woo. -Exit DEMETRIUS -I'll follow thee and make a heaven of hell, -To die upon the hand I love so well. - - -Exit - - -OBERON -Fare thee well, nymph: ere he do leave this grove, -Thou shalt fly him and he shall seek thy love. -Re-enter PUCK -Hast thou the flower there? Welcome, wanderer. - - - -PUCK -Ay, there it is. - - - -OBERON -I pray thee, give it me. -I know a bank where the wild thyme blows, -Where oxlips and the nodding violet grows, -Quite over-canopied with luscious woodbine, -With sweet musk-roses and with eglantine: -There sleeps Titania sometime of the night, -Lull'd in these flowers with dances and delight; -And there the snake throws her enamell'd skin, -Weed wide enough to wrap a fairy in: -And with the juice of this I'll streak her eyes, -And make her full of hateful fantasies. -Take thou some of it, and seek through this grove: -A sweet Athenian lady is in love -With a disdainful youth: anoint his eyes; -But do it when the next thing he espies -May be the lady: thou shalt know the man -By the Athenian garments he hath on. -Effect it with some care, that he may prove -More fond on her than she upon her love: -And look thou meet me ere the first cock crow. - - - -PUCK -Fear not, my lord, your servant shall do so. - - -Exeunt - - -SCENE II. Another part of the wood. -Enter TITANIA, with her train - - -TITANIA -Come, now a roundel and a fairy song; -Then, for the third part of a minute, hence; -Some to kill cankers in the musk-rose buds, -Some war with rere-mice for their leathern wings, -To make my small elves coats, and some keep back -The clamorous owl that nightly hoots and wonders -At our quaint spirits. Sing me now asleep; -Then to your offices and let me rest. -The Fairies sing -You spotted snakes with double tongue, -Thorny hedgehogs, be not seen; -Newts and blind-worms, do no wrong, -Come not near our fairy queen. -Philomel, with melody -Sing in our sweet lullaby; -Lulla, lulla, lullaby, lulla, lulla, lullaby: -Never harm, -Nor spell nor charm, -Come our lovely lady nigh; -So, good night, with lullaby. -Weaving spiders, come not here; -Hence, you long-legg'd spinners, hence! -Beetles black, approach not near; -Worm nor snail, do no offence. -Philomel, with melody, &c. - - - -Fairy -Hence, away! now all is well: -One aloof stand sentinel. - - -Exeunt Fairies. TITANIA sleeps -Enter OBERON and squeezes the flower on TITANIA's eyelids - - -OBERON -What thou seest when thou dost wake, -Do it for thy true-love take, -Love and languish for his sake: -Be it ounce, or cat, or bear, -Pard, or boar with bristled hair, -In thy eye that shall appear -When thou wakest, it is thy dear: -Wake when some vile thing is near. - - -Exit -Enter LYSANDER and HERMIA - - -LYSANDER -Fair love, you faint with wandering in the wood; -And to speak troth, I have forgot our way: -We'll rest us, Hermia, if you think it good, -And tarry for the comfort of the day. - - - -HERMIA -Be it so, Lysander: find you out a bed; -For I upon this bank will rest my head. - - - -LYSANDER -One turf shall serve as pillow for us both; -One heart, one bed, two bosoms and one troth. - - - -HERMIA -Nay, good Lysander; for my sake, my dear, -Lie further off yet, do not lie so near. - - - -LYSANDER -O, take the sense, sweet, of my innocence! -Love takes the meaning in love's conference. -I mean, that my heart unto yours is knit -So that but one heart we can make of it; -Two bosoms interchained with an oath; -So then two bosoms and a single troth. -Then by your side no bed-room me deny; -For lying so, Hermia, I do not lie. - - - -HERMIA -Lysander riddles very prettily: -Now much beshrew my manners and my pride, -If Hermia meant to say Lysander lied. -But, gentle friend, for love and courtesy -Lie further off; in human modesty, -Such separation as may well be said -Becomes a virtuous bachelor and a maid, -So far be distant; and, good night, sweet friend: -Thy love ne'er alter till thy sweet life end! - - - -LYSANDER -Amen, amen, to that fair prayer, say I; -And then end life when I end loyalty! -Here is my bed: sleep give thee all his rest! - - - -HERMIA -With half that wish the wisher's eyes be press'd! - - -They sleep -Enter PUCK - - -PUCK -Through the forest have I gone. -But Athenian found I none, -On whose eyes I might approve -This flower's force in stirring love. -Night and silence.--Who is here? -Weeds of Athens he doth wear: -This is he, my master said, -Despised the Athenian maid; -And here the maiden, sleeping sound, -On the dank and dirty ground. -Pretty soul! she durst not lie -Near this lack-love, this kill-courtesy. -Churl, upon thy eyes I throw -All the power this charm doth owe. -When thou wakest, let love forbid -Sleep his seat on thy eyelid: -So awake when I am gone; -For I must now to Oberon. - - -Exit -Enter DEMETRIUS and HELENA, running - - -HELENA -Stay, though thou kill me, sweet Demetrius. - - - -DEMETRIUS -I charge thee, hence, and do not haunt me thus. - - - -HELENA -O, wilt thou darkling leave me? do not so. - - - -DEMETRIUS -Stay, on thy peril: I alone will go. - - -Exit - - -HELENA -O, I am out of breath in this fond chase! -The more my prayer, the lesser is my grace. -Happy is Hermia, wheresoe'er she lies; -For she hath blessed and attractive eyes. -How came her eyes so bright? Not with salt tears: -If so, my eyes are oftener wash'd than hers. -No, no, I am as ugly as a bear; -For beasts that meet me run away for fear: -Therefore no marvel though Demetrius -Do, as a monster fly my presence thus. -What wicked and dissembling glass of mine -Made me compare with Hermia's sphery eyne? -But who is here? Lysander! on the ground! -Dead? or asleep? I see no blood, no wound. -Lysander if you live, good sir, awake. - - - -LYSANDER -Awaking And run through fire I will for thy sweet sake. -Transparent Helena! Nature shows art, -That through thy bosom makes me see thy heart. -Where is Demetrius? O, how fit a word -Is that vile name to perish on my sword! - - - -HELENA -Do not say so, Lysander; say not so -What though he love your Hermia? Lord, what though? -Yet Hermia still loves you: then be content. - - - -LYSANDER -Content with Hermia! No; I do repent -The tedious minutes I with her have spent. -Not Hermia but Helena I love: -Who will not change a raven for a dove? -The will of man is by his reason sway'd; -And reason says you are the worthier maid. -Things growing are not ripe until their season -So I, being young, till now ripe not to reason; -And touching now the point of human skill, -Reason becomes the marshal to my will -And leads me to your eyes, where I o'erlook -Love's stories written in love's richest book. - - - -HELENA -Wherefore was I to this keen mockery born? -When at your hands did I deserve this scorn? -Is't not enough, is't not enough, young man, -That I did never, no, nor never can, -Deserve a sweet look from Demetrius' eye, -But you must flout my insufficiency? -Good troth, you do me wrong, good sooth, you do, -In such disdainful manner me to woo. -But fare you well: perforce I must confess -I thought you lord of more true gentleness. -O, that a lady, of one man refused. -Should of another therefore be abused! - - -Exit - - -LYSANDER -She sees not Hermia. Hermia, sleep thou there: -And never mayst thou come Lysander near! -For as a surfeit of the sweetest things -The deepest loathing to the stomach brings, -Or as tie heresies that men do leave -Are hated most of those they did deceive, -So thou, my surfeit and my heresy, -Of all be hated, but the most of me! -And, all my powers, address your love and might -To honour Helen and to be her knight! - - -Exit - - -HERMIA -Awaking Help me, Lysander, help me! do thy best -To pluck this crawling serpent from my breast! -Ay me, for pity! what a dream was here! -Lysander, look how I do quake with fear: -Methought a serpent eat my heart away, -And you sat smiling at his cruel pray. -Lysander! what, removed? Lysander! lord! -What, out of hearing? gone? no sound, no word? -Alack, where are you speak, an if you hear; -Speak, of all loves! I swoon almost with fear. -No? then I well perceive you all not nigh -Either death or you I'll find immediately. - - -Exit - - - - -ACT III - -SCENE I. The wood. TITANIA lying asleep. -Enter QUINCE, SNUG, BOTTOM, FLUTE, SNOUT, and -STARVELING - - -BOTTOM -Are we all met? - - - -QUINCE -Pat, pat; and here's a marvellous convenient place -for our rehearsal. This green plot shall be our -stage, this hawthorn-brake our tiring-house; and we -will do it in action as we will do it before the duke. - - - -BOTTOM -Peter Quince,-- - - - -QUINCE -What sayest thou, bully Bottom? - - - -BOTTOM -There are things in this comedy of Pyramus and -Thisby that will never please. First, Pyramus must -draw a sword to kill himself; which the ladies -cannot abide. How answer you that? - - - -SNOUT -By'r lakin, a parlous fear. - - - -STARVELING -I believe we must leave the killing out, when all is done. - - - -BOTTOM -Not a whit: I have a device to make all well. -Write me a prologue; and let the prologue seem to -say, we will do no harm with our swords, and that -Pyramus is not killed indeed; and, for the more -better assurance, tell them that I, Pyramus, am not -Pyramus, but Bottom the weaver: this will put them -out of fear. - - - -QUINCE -Well, we will have such a prologue; and it shall be -written in eight and six. - - - -BOTTOM -No, make it two more; let it be written in eight and eight. - - - -SNOUT -Will not the ladies be afeard of the lion? - - - -STARVELING -I fear it, I promise you. - - - -BOTTOM -Masters, you ought to consider with yourselves: to -bring in--God shield us!--a lion among ladies, is a -most dreadful thing; for there is not a more fearful -wild-fowl than your lion living; and we ought to -look to 't. - - - -SNOUT -Therefore another prologue must tell he is not a lion. - - - -BOTTOM -Nay, you must name his name, and half his face must -be seen through the lion's neck: and he himself -must speak through, saying thus, or to the same -defect,--'Ladies,'--or 'Fair-ladies--I would wish -You,'--or 'I would request you,'--or 'I would -entreat you,--not to fear, not to tremble: my life -for yours. If you think I come hither as a lion, it -were pity of my life: no I am no such thing; I am a -man as other men are;' and there indeed let him name -his name, and tell them plainly he is Snug the joiner. - - - -QUINCE -Well it shall be so. But there is two hard things; -that is, to bring the moonlight into a chamber; for, -you know, Pyramus and Thisby meet by moonlight. - - - -SNOUT -Doth the moon shine that night we play our play? - - - -BOTTOM -A calendar, a calendar! look in the almanac; find -out moonshine, find out moonshine. - - - -QUINCE -Yes, it doth shine that night. - - - -BOTTOM -Why, then may you leave a casement of the great -chamber window, where we play, open, and the moon -may shine in at the casement. - - - -QUINCE -Ay; or else one must come in with a bush of thorns -and a lanthorn, and say he comes to disfigure, or to -present, the person of Moonshine. Then, there is -another thing: we must have a wall in the great -chamber; for Pyramus and Thisby says the story, did -talk through the chink of a wall. - - - -SNOUT -You can never bring in a wall. What say you, Bottom? - - - -BOTTOM -Some man or other must present Wall: and let him -have some plaster, or some loam, or some rough-cast -about him, to signify wall; and let him hold his -fingers thus, and through that cranny shall Pyramus -and Thisby whisper. - - - -QUINCE -If that may be, then all is well. Come, sit down, -every mother's son, and rehearse your parts. -Pyramus, you begin: when you have spoken your -speech, enter into that brake: and so every one -according to his cue. - - -Enter PUCK behind - - -PUCK -What hempen home-spuns have we swaggering here, -So near the cradle of the fairy queen? -What, a play toward! I'll be an auditor; -An actor too, perhaps, if I see cause. - - - -QUINCE -Speak, Pyramus. Thisby, stand forth. - - - -BOTTOM -Thisby, the flowers of odious savours sweet,-- - - - -QUINCE -Odours, odours. - - - -BOTTOM ---odours savours sweet: -So hath thy breath, my dearest Thisby dear. -But hark, a voice! stay thou but here awhile, -And by and by I will to thee appear. - - -Exit - - -PUCK -A stranger Pyramus than e'er played here. - - -Exit - - -FLUTE -Must I speak now? - - - -QUINCE -Ay, marry, must you; for you must understand he goes -but to see a noise that he heard, and is to come again. - - - -FLUTE -Most radiant Pyramus, most lily-white of hue, -Of colour like the red rose on triumphant brier, -Most brisky juvenal and eke most lovely Jew, -As true as truest horse that yet would never tire, -I'll meet thee, Pyramus, at Ninny's tomb. - - - -QUINCE -'Ninus' tomb,' man: why, you must not speak that -yet; that you answer to Pyramus: you speak all your -part at once, cues and all Pyramus enter: your cue -is past; it is, 'never tire.' - - - -FLUTE -O,--As true as truest horse, that yet would -never tire. - - -Re-enter PUCK, and BOTTOM with an ass's head - - -BOTTOM -If I were fair, Thisby, I were only thine. - - - -QUINCE -O monstrous! O strange! we are haunted. Pray, -masters! fly, masters! Help! - - -Exeunt QUINCE, SNUG, FLUTE, SNOUT, and STARVELING - - -PUCK -I'll follow you, I'll lead you about a round, -Through bog, through bush, through brake, through brier: -Sometime a horse I'll be, sometime a hound, -A hog, a headless bear, sometime a fire; -And neigh, and bark, and grunt, and roar, and burn, -Like horse, hound, hog, bear, fire, at every turn. - - -Exit - - -BOTTOM -Why do they run away? this is a knavery of them to -make me afeard. - - -Re-enter SNOUT - - -SNOUT -O Bottom, thou art changed! what do I see on thee? - - - -BOTTOM -What do you see? you see an asshead of your own, do -you? - - -Exit SNOUT -Re-enter QUINCE - - -QUINCE -Bless thee, Bottom! bless thee! thou art -translated. - - -Exit - - -BOTTOM -I see their knavery: this is to make an ass of me; -to fright me, if they could. But I will not stir -from this place, do what they can: I will walk up -and down here, and I will sing, that they shall hear -I am not afraid. -Sings -The ousel cock so black of hue, -With orange-tawny bill, -The throstle with his note so true, -The wren with little quill,-- - - - -TITANIA -Awaking What angel wakes me from my flowery bed? - - - -BOTTOM -Sings -The finch, the sparrow and the lark, -The plain-song cuckoo gray, -Whose note full many a man doth mark, -And dares not answer nay;-- -for, indeed, who would set his wit to so foolish -a bird? who would give a bird the lie, though he cry -'cuckoo' never so? - - - -TITANIA -I pray thee, gentle mortal, sing again: -Mine ear is much enamour'd of thy note; -So is mine eye enthralled to thy shape; -And thy fair virtue's force perforce doth move me -On the first view to say, to swear, I love thee. - - - -BOTTOM -Methinks, mistress, you should have little reason -for that: and yet, to say the truth, reason and -love keep little company together now-a-days; the -more the pity that some honest neighbours will not -make them friends. Nay, I can gleek upon occasion. - - - -TITANIA -Thou art as wise as thou art beautiful. - - - -BOTTOM -Not so, neither: but if I had wit enough to get out -of this wood, I have enough to serve mine own turn. - - - -TITANIA -Out of this wood do not desire to go: -Thou shalt remain here, whether thou wilt or no. -I am a spirit of no common rate; -The summer still doth tend upon my state; -And I do love thee: therefore, go with me; -I'll give thee fairies to attend on thee, -And they shall fetch thee jewels from the deep, -And sing while thou on pressed flowers dost sleep; -And I will purge thy mortal grossness so -That thou shalt like an airy spirit go. -Peaseblossom! Cobweb! Moth! and Mustardseed! - - -Enter PEASEBLOSSOM, COBWEB, MOTH, and MUSTARDSEED - - -PEASEBLOSSOM -Ready. - - - -COBWEB -And I. - - - -MOTH -And I. - - - -MUSTARDSEED -And I. - - - -ALL -Where shall we go? - - - -TITANIA -Be kind and courteous to this gentleman; -Hop in his walks and gambol in his eyes; -Feed him with apricocks and dewberries, -With purple grapes, green figs, and mulberries; -The honey-bags steal from the humble-bees, -And for night-tapers crop their waxen thighs -And light them at the fiery glow-worm's eyes, -To have my love to bed and to arise; -And pluck the wings from Painted butterflies -To fan the moonbeams from his sleeping eyes: -Nod to him, elves, and do him courtesies. - - - -PEASEBLOSSOM -Hail, mortal! - - - -COBWEB -Hail! - - - -MOTH -Hail! - - - -MUSTARDSEED -Hail! - - - -BOTTOM -I cry your worship's mercy, heartily: I beseech your -worship's name. - - - -COBWEB -Cobweb. - - - -BOTTOM -I shall desire you of more acquaintance, good Master -Cobweb: if I cut my finger, I shall make bold with -you. Your name, honest gentleman? - - - -PEASEBLOSSOM -Peaseblossom. - - - -BOTTOM -I pray you, commend me to Mistress Squash, your -mother, and to Master Peascod, your father. Good -Master Peaseblossom, I shall desire you of more -acquaintance too. Your name, I beseech you, sir? - - - -MUSTARDSEED -Mustardseed. - - - -BOTTOM -Good Master Mustardseed, I know your patience well: -that same cowardly, giant-like ox-beef hath -devoured many a gentleman of your house: I promise -you your kindred had made my eyes water ere now. I -desire your more acquaintance, good Master -Mustardseed. - - - -TITANIA -Come, wait upon him; lead him to my bower. -The moon methinks looks with a watery eye; -And when she weeps, weeps every little flower, -Lamenting some enforced chastity. -Tie up my love's tongue bring him silently. - - -Exeunt - - -SCENE II. Another part of the wood. -Enter OBERON - - -OBERON -I wonder if Titania be awaked; -Then, what it was that next came in her eye, -Which she must dote on in extremity. -Enter PUCK -Here comes my messenger. -How now, mad spirit! -What night-rule now about this haunted grove? - - - -PUCK -My mistress with a monster is in love. -Near to her close and consecrated bower, -While she was in her dull and sleeping hour, -A crew of patches, rude mechanicals, -That work for bread upon Athenian stalls, -Were met together to rehearse a play -Intended for great Theseus' nuptial-day. -The shallowest thick-skin of that barren sort, -Who Pyramus presented, in their sport -Forsook his scene and enter'd in a brake -When I did him at this advantage take, -An ass's nole I fixed on his head: -Anon his Thisbe must be answered, -And forth my mimic comes. When they him spy, -As wild geese that the creeping fowler eye, -Or russet-pated choughs, many in sort, -Rising and cawing at the gun's report, -Sever themselves and madly sweep the sky, -So, at his sight, away his fellows fly; -And, at our stamp, here o'er and o'er one falls; -He murder cries and help from Athens calls. -Their sense thus weak, lost with their fears -thus strong, -Made senseless things begin to do them wrong; -For briers and thorns at their apparel snatch; -Some sleeves, some hats, from yielders all -things catch. -I led them on in this distracted fear, -And left sweet Pyramus translated there: -When in that moment, so it came to pass, -Titania waked and straightway loved an ass. - - - -OBERON -This falls out better than I could devise. -But hast thou yet latch'd the Athenian's eyes -With the love-juice, as I did bid thee do? - - - -PUCK -I took him sleeping,--that is finish'd too,-- -And the Athenian woman by his side: -That, when he waked, of force she must be eyed. - - -Enter HERMIA and DEMETRIUS - - -OBERON -Stand close: this is the same Athenian. - - - -PUCK -This is the woman, but not this the man. - - - -DEMETRIUS -O, why rebuke you him that loves you so? -Lay breath so bitter on your bitter foe. - - - -HERMIA -Now I but chide; but I should use thee worse, -For thou, I fear, hast given me cause to curse, -If thou hast slain Lysander in his sleep, -Being o'er shoes in blood, plunge in the deep, -And kill me too. -The sun was not so true unto the day -As he to me: would he have stolen away -From sleeping Hermia? I'll believe as soon -This whole earth may be bored and that the moon -May through the centre creep and so displease -Her brother's noontide with Antipodes. -It cannot be but thou hast murder'd him; -So should a murderer look, so dead, so grim. - - - -DEMETRIUS -So should the murder'd look, and so should I, -Pierced through the heart with your stern cruelty: -Yet you, the murderer, look as bright, as clear, -As yonder Venus in her glimmering sphere. - - - -HERMIA -What's this to my Lysander? where is he? -Ah, good Demetrius, wilt thou give him me? - - - -DEMETRIUS -I had rather give his carcass to my hounds. - - - -HERMIA -Out, dog! out, cur! thou drivest me past the bounds -Of maiden's patience. Hast thou slain him, then? -Henceforth be never number'd among men! -O, once tell true, tell true, even for my sake! -Durst thou have look'd upon him being awake, -And hast thou kill'd him sleeping? O brave touch! -Could not a worm, an adder, do so much? -An adder did it; for with doubler tongue -Than thine, thou serpent, never adder stung. - - - -DEMETRIUS -You spend your passion on a misprised mood: -I am not guilty of Lysander's blood; -Nor is he dead, for aught that I can tell. - - - -HERMIA -I pray thee, tell me then that he is well. - - - -DEMETRIUS -An if I could, what should I get therefore? - - - -HERMIA -A privilege never to see me more. -And from thy hated presence part I so: -See me no more, whether he be dead or no. - - -Exit - - -DEMETRIUS -There is no following her in this fierce vein: -Here therefore for a while I will remain. -So sorrow's heaviness doth heavier grow -For debt that bankrupt sleep doth sorrow owe: -Which now in some slight measure it will pay, -If for his tender here I make some stay. - - -Lies down and sleeps - - -OBERON -What hast thou done? thou hast mistaken quite -And laid the love-juice on some true-love's sight: -Of thy misprision must perforce ensue -Some true love turn'd and not a false turn'd true. - - - -PUCK -Then fate o'er-rules, that, one man holding troth, -A million fail, confounding oath on oath. - - - -OBERON -About the wood go swifter than the wind, -And Helena of Athens look thou find: -All fancy-sick she is and pale of cheer, -With sighs of love, that costs the fresh blood dear: -By some illusion see thou bring her here: -I'll charm his eyes against she do appear. - - - -PUCK -I go, I go; look how I go, -Swifter than arrow from the Tartar's bow. - - -Exit - - -OBERON -Flower of this purple dye, -Hit with Cupid's archery, -Sink in apple of his eye. -When his love he doth espy, -Let her shine as gloriously -As the Venus of the sky. -When thou wakest, if she be by, -Beg of her for remedy. - - -Re-enter PUCK - - -PUCK -Captain of our fairy band, -Helena is here at hand; -And the youth, mistook by me, -Pleading for a lover's fee. -Shall we their fond pageant see? -Lord, what fools these mortals be! - - - -OBERON -Stand aside: the noise they make -Will cause Demetrius to awake. - - - -PUCK -Then will two at once woo one; -That must needs be sport alone; -And those things do best please me -That befal preposterously. - - -Enter LYSANDER and HELENA - - -LYSANDER -Why should you think that I should woo in scorn? -Scorn and derision never come in tears: -Look, when I vow, I weep; and vows so born, -In their nativity all truth appears. -How can these things in me seem scorn to you, -Bearing the badge of faith, to prove them true? - - - -HELENA -You do advance your cunning more and more. -When truth kills truth, O devilish-holy fray! -These vows are Hermia's: will you give her o'er? -Weigh oath with oath, and you will nothing weigh: -Your vows to her and me, put in two scales, -Will even weigh, and both as light as tales. - - - -LYSANDER -I had no judgment when to her I swore. - - - -HELENA -Nor none, in my mind, now you give her o'er. - - - -LYSANDER -Demetrius loves her, and he loves not you. - - - -DEMETRIUS -Awaking O Helena, goddess, nymph, perfect, divine! -To what, my love, shall I compare thine eyne? -Crystal is muddy. O, how ripe in show -Thy lips, those kissing cherries, tempting grow! -That pure congealed white, high Taurus snow, -Fann'd with the eastern wind, turns to a crow -When thou hold'st up thy hand: O, let me kiss -This princess of pure white, this seal of bliss! - - - -HELENA -O spite! O hell! I see you all are bent -To set against me for your merriment: -If you we re civil and knew courtesy, -You would not do me thus much injury. -Can you not hate me, as I know you do, -But you must join in souls to mock me too? -If you were men, as men you are in show, -You would not use a gentle lady so; -To vow, and swear, and superpraise my parts, -When I am sure you hate me with your hearts. -You both are rivals, and love Hermia; -And now both rivals, to mock Helena: -A trim exploit, a manly enterprise, -To conjure tears up in a poor maid's eyes -With your derision! none of noble sort -Would so offend a virgin, and extort -A poor soul's patience, all to make you sport. - - - -LYSANDER -You are unkind, Demetrius; be not so; -For you love Hermia; this you know I know: -And here, with all good will, with all my heart, -In Hermia's love I yield you up my part; -And yours of Helena to me bequeath, -Whom I do love and will do till my death. - - - -HELENA -Never did mockers waste more idle breath. - - - -DEMETRIUS -Lysander, keep thy Hermia; I will none: -If e'er I loved her, all that love is gone. -My heart to her but as guest-wise sojourn'd, -And now to Helen is it home return'd, -There to remain. - - - -LYSANDER -Helen, it is not so. - - - -DEMETRIUS -Disparage not the faith thou dost not know, -Lest, to thy peril, thou aby it dear. -Look, where thy love comes; yonder is thy dear. - - -Re-enter HERMIA - - -HERMIA -Dark night, that from the eye his function takes, -The ear more quick of apprehension makes; -Wherein it doth impair the seeing sense, -It pays the hearing double recompense. -Thou art not by mine eye, Lysander, found; -Mine ear, I thank it, brought me to thy sound -But why unkindly didst thou leave me so? - - - -LYSANDER -Why should he stay, whom love doth press to go? - - - -HERMIA -What love could press Lysander from my side? - - - -LYSANDER -Lysander's love, that would not let him bide, -Fair Helena, who more engilds the night -Than all you fiery oes and eyes of light. -Why seek'st thou me? could not this make thee know, -The hate I bear thee made me leave thee so? - - - -HERMIA -You speak not as you think: it cannot be. - - - -HELENA -Lo, she is one of this confederacy! -Now I perceive they have conjoin'd all three -To fashion this false sport, in spite of me. -Injurious Hermia! most ungrateful maid! -Have you conspired, have you with these contrived -To bait me with this foul derision? -Is all the counsel that we two have shared, -The sisters' vows, the hours that we have spent, -When we have chid the hasty-footed time -For parting us,--O, is it all forgot? -All school-days' friendship, childhood innocence? -We, Hermia, like two artificial gods, -Have with our needles created both one flower, -Both on one sampler, sitting on one cushion, -Both warbling of one song, both in one key, -As if our hands, our sides, voices and minds, -Had been incorporate. So we grow together, -Like to a double cherry, seeming parted, -But yet an union in partition; -Two lovely berries moulded on one stem; -So, with two seeming bodies, but one heart; -Two of the first, like coats in heraldry, -Due but to one and crowned with one crest. -And will you rent our ancient love asunder, -To join with men in scorning your poor friend? -It is not friendly, 'tis not maidenly: -Our sex, as well as I, may chide you for it, -Though I alone do feel the injury. - - - -HERMIA -I am amazed at your passionate words. -I scorn you not: it seems that you scorn me. - - - -HELENA -Have you not set Lysander, as in scorn, -To follow me and praise my eyes and face? -And made your other love, Demetrius, -Who even but now did spurn me with his foot, -To call me goddess, nymph, divine and rare, -Precious, celestial? Wherefore speaks he this -To her he hates? and wherefore doth Lysander -Deny your love, so rich within his soul, -And tender me, forsooth, affection, -But by your setting on, by your consent? -What thought I be not so in grace as you, -So hung upon with love, so fortunate, -But miserable most, to love unloved? -This you should pity rather than despise. - - - -HERNIA -I understand not what you mean by this. - - - -HELENA -Ay, do, persever, counterfeit sad looks, -Make mouths upon me when I turn my back; -Wink each at other; hold the sweet jest up: -This sport, well carried, shall be chronicled. -If you have any pity, grace, or manners, -You would not make me such an argument. -But fare ye well: 'tis partly my own fault; -Which death or absence soon shall remedy. - - - -LYSANDER -Stay, gentle Helena; hear my excuse: -My love, my life my soul, fair Helena! - - - -HELENA -O excellent! - - - -HERMIA -Sweet, do not scorn her so. - - - -DEMETRIUS -If she cannot entreat, I can compel. - - - -LYSANDER -Thou canst compel no more than she entreat: -Thy threats have no more strength than her weak prayers. -Helen, I love thee; by my life, I do: -I swear by that which I will lose for thee, -To prove him false that says I love thee not. - - - -DEMETRIUS -I say I love thee more than he can do. - - - -LYSANDER -If thou say so, withdraw, and prove it too. - - - -DEMETRIUS -Quick, come! - - - -HERMIA -Lysander, whereto tends all this? - - - -LYSANDER -Away, you Ethiope! - - - -DEMETRIUS -No, no; he'll -Seem to break loose; take on as you would follow, -But yet come not: you are a tame man, go! - - - -LYSANDER -Hang off, thou cat, thou burr! vile thing, let loose, -Or I will shake thee from me like a serpent! - - - -HERMIA -Why are you grown so rude? what change is this? -Sweet love,-- - - - -LYSANDER -Thy love! out, tawny Tartar, out! -Out, loathed medicine! hated potion, hence! - - - -HERMIA -Do you not jest? - - - -HELENA -Yes, sooth; and so do you. - - - -LYSANDER -Demetrius, I will keep my word with thee. - - - -DEMETRIUS -I would I had your bond, for I perceive -A weak bond holds you: I'll not trust your word. - - - -LYSANDER -What, should I hurt her, strike her, kill her dead? -Although I hate her, I'll not harm her so. - - - -HERMIA -What, can you do me greater harm than hate? -Hate me! wherefore? O me! what news, my love! -Am not I Hermia? are not you Lysander? -I am as fair now as I was erewhile. -Since night you loved me; yet since night you left -me: -Why, then you left me--O, the gods forbid!-- -In earnest, shall I say? - - - -LYSANDER -Ay, by my life; -And never did desire to see thee more. -Therefore be out of hope, of question, of doubt; -Be certain, nothing truer; 'tis no jest -That I do hate thee and love Helena. - - - -HERMIA -O me! you juggler! you canker-blossom! -You thief of love! what, have you come by night -And stolen my love's heart from him? - - - -HELENA -Fine, i'faith! -Have you no modesty, no maiden shame, -No touch of bashfulness? What, will you tear -Impatient answers from my gentle tongue? -Fie, fie! you counterfeit, you puppet, you! - - - -HERMIA -Puppet? why so? ay, that way goes the game. -Now I perceive that she hath made compare -Between our statures; she hath urged her height; -And with her personage, her tall personage, -Her height, forsooth, she hath prevail'd with him. -And are you grown so high in his esteem; -Because I am so dwarfish and so low? -How low am I, thou painted maypole? speak; -How low am I? I am not yet so low -But that my nails can reach unto thine eyes. - - - -HELENA -I pray you, though you mock me, gentlemen, -Let her not hurt me: I was never curst; -I have no gift at all in shrewishness; -I am a right maid for my cowardice: -Let her not strike me. You perhaps may think, -Because she is something lower than myself, -That I can match her. - - - -HERMIA -Lower! hark, again. - - - -HELENA -Good Hermia, do not be so bitter with me. -I evermore did love you, Hermia, -Did ever keep your counsels, never wrong'd you; -Save that, in love unto Demetrius, -I told him of your stealth unto this wood. -He follow'd you; for love I follow'd him; -But he hath chid me hence and threaten'd me -To strike me, spurn me, nay, to kill me too: -And now, so you will let me quiet go, -To Athens will I bear my folly back -And follow you no further: let me go: -You see how simple and how fond I am. - - - -HERMIA -Why, get you gone: who is't that hinders you? - - - -HELENA -A foolish heart, that I leave here behind. - - - -HERMIA -What, with Lysander? - - - -HELENA -With Demetrius. - - - -LYSANDER -Be not afraid; she shall not harm thee, Helena. - - - -DEMETRIUS -No, sir, she shall not, though you take her part. - - - -HELENA -O, when she's angry, she is keen and shrewd! -She was a vixen when she went to school; -And though she be but little, she is fierce. - - - -HERMIA -'Little' again! nothing but 'low' and 'little'! -Why will you suffer her to flout me thus? -Let me come to her. - - - -LYSANDER -Get you gone, you dwarf; -You minimus, of hindering knot-grass made; -You bead, you acorn. - - - -DEMETRIUS -You are too officious -In her behalf that scorns your services. -Let her alone: speak not of Helena; -Take not her part; for, if thou dost intend -Never so little show of love to her, -Thou shalt aby it. - - - -LYSANDER -Now she holds me not; -Now follow, if thou darest, to try whose right, -Of thine or mine, is most in Helena. - - - -DEMETRIUS -Follow! nay, I'll go with thee, cheek by jole. - - -Exeunt LYSANDER and DEMETRIUS - - -HERMIA -You, mistress, all this coil is 'long of you: -Nay, go not back. - - - -HELENA -I will not trust you, I, -Nor longer stay in your curst company. -Your hands than mine are quicker for a fray, -My legs are longer though, to run away. - - -Exit - - -HERMIA -I am amazed, and know not what to say. - - -Exit - - -OBERON -This is thy negligence: still thou mistakest, -Or else committ'st thy knaveries wilfully. - - - -PUCK -Believe me, king of shadows, I mistook. -Did not you tell me I should know the man -By the Athenian garment be had on? -And so far blameless proves my enterprise, -That I have 'nointed an Athenian's eyes; -And so far am I glad it so did sort -As this their jangling I esteem a sport. - - - -OBERON -Thou see'st these lovers seek a place to fight: -Hie therefore, Robin, overcast the night; -The starry welkin cover thou anon -With drooping fog as black as Acheron, -And lead these testy rivals so astray -As one come not within another's way. -Like to Lysander sometime frame thy tongue, -Then stir Demetrius up with bitter wrong; -And sometime rail thou like Demetrius; -And from each other look thou lead them thus, -Till o'er their brows death-counterfeiting sleep -With leaden legs and batty wings doth creep: -Then crush this herb into Lysander's eye; -Whose liquor hath this virtuous property, -To take from thence all error with his might, -And make his eyeballs roll with wonted sight. -When they next wake, all this derision -Shall seem a dream and fruitless vision, -And back to Athens shall the lovers wend, -With league whose date till death shall never end. -Whiles I in this affair do thee employ, -I'll to my queen and beg her Indian boy; -And then I will her charmed eye release -From monster's view, and all things shall be peace. - - - -PUCK -My fairy lord, this must be done with haste, -For night's swift dragons cut the clouds full fast, -And yonder shines Aurora's harbinger; -At whose approach, ghosts, wandering here and there, -Troop home to churchyards: damned spirits all, -That in crossways and floods have burial, -Already to their wormy beds are gone; -For fear lest day should look their shames upon, -They willfully themselves exile from light -And must for aye consort with black-brow'd night. - - - -OBERON -But we are spirits of another sort: -I with the morning's love have oft made sport, -And, like a forester, the groves may tread, -Even till the eastern gate, all fiery-red, -Opening on Neptune with fair blessed beams, -Turns into yellow gold his salt green streams. -But, notwithstanding, haste; make no delay: -We may effect this business yet ere day. - - -Exit - - -PUCK -Up and down, up and down, -I will lead them up and down: -I am fear'd in field and town: -Goblin, lead them up and down. -Here comes one. - - -Re-enter LYSANDER - - -LYSANDER -Where art thou, proud Demetrius? speak thou now. - - - -PUCK -Here, villain; drawn and ready. Where art thou? - - - -LYSANDER -I will be with thee straight. - - - -PUCK -Follow me, then, -To plainer ground. - - -Exit LYSANDER, as following the voice -Re-enter DEMETRIUS - - -DEMETRIUS -Lysander! speak again: -Thou runaway, thou coward, art thou fled? -Speak! In some bush? Where dost thou hide thy head? - - - -PUCK -Thou coward, art thou bragging to the stars, -Telling the bushes that thou look'st for wars, -And wilt not come? Come, recreant; come, thou child; -I'll whip thee with a rod: he is defiled -That draws a sword on thee. - - - -DEMETRIUS -Yea, art thou there? - - - -PUCK -Follow my voice: we'll try no manhood here. - - -Exeunt -Re-enter LYSANDER - - -LYSANDER -He goes before me and still dares me on: -When I come where he calls, then he is gone. -The villain is much lighter-heel'd than I: -I follow'd fast, but faster he did fly; -That fallen am I in dark uneven way, -And here will rest me. -Lies down -Come, thou gentle day! -For if but once thou show me thy grey light, -I'll find Demetrius and revenge this spite. - - -Sleeps -Re-enter PUCK and DEMETRIUS - - -PUCK -Ho, ho, ho! Coward, why comest thou not? - - - -DEMETRIUS -Abide me, if thou darest; for well I wot -Thou runn'st before me, shifting every place, -And darest not stand, nor look me in the face. -Where art thou now? - - - -PUCK -Come hither: I am here. - - - -DEMETRIUS -Nay, then, thou mock'st me. Thou shalt buy this dear, -If ever I thy face by daylight see: -Now, go thy way. Faintness constraineth me -To measure out my length on this cold bed. -By day's approach look to be visited. - - -Lies down and sleeps -Re-enter HELENA - - -HELENA -O weary night, O long and tedious night, -Abate thy hour! Shine comforts from the east, -That I may back to Athens by daylight, -From these that my poor company detest: -And sleep, that sometimes shuts up sorrow's eye, -Steal me awhile from mine own company. - - -Lies down and sleeps - - -PUCK -Yet but three? Come one more; -Two of both kinds make up four. -Here she comes, curst and sad: -Cupid is a knavish lad, -Thus to make poor females mad. - - -Re-enter HERMIA - - -HERMIA -Never so weary, never so in woe, -Bedabbled with the dew and torn with briers, -I can no further crawl, no further go; -My legs can keep no pace with my desires. -Here will I rest me till the break of day. -Heavens shield Lysander, if they mean a fray! - - -Lies down and sleeps - - -PUCK -On the ground -Sleep sound: -I'll apply -To your eye, -Gentle lover, remedy. -Squeezing the juice on LYSANDER's eyes -When thou wakest, -Thou takest -True delight -In the sight -Of thy former lady's eye: -And the country proverb known, -That every man should take his own, -In your waking shall be shown: -Jack shall have Jill; -Nought shall go ill; -The man shall have his mare again, and all shall be well. - - -Exit - - - - -ACT IV - -SCENE I. The same. LYSANDER, DEMETRIUS, HELENA, and HERMIA lying asleep. -Enter TITANIA and BOTTOM; PEASEBLOSSOM, COBWEB, MOTH, -MUSTARDSEED, and other Fairies attending; OBERON -behind unseen - - -TITANIA -Come, sit thee down upon this flowery bed, -While I thy amiable cheeks do coy, -And stick musk-roses in thy sleek smooth head, -And kiss thy fair large ears, my gentle joy. - - - -BOTTOM -Where's Peaseblossom? - - - -PEASEBLOSSOM -Ready. - - - -BOTTOM -Scratch my head Peaseblossom. Where's Mounsieur Cobweb? - - - -COBWEB -Ready. - - - -BOTTOM -Mounsieur Cobweb, good mounsieur, get you your -weapons in your hand, and kill me a red-hipped -humble-bee on the top of a thistle; and, good -mounsieur, bring me the honey-bag. Do not fret -yourself too much in the action, mounsieur; and, -good mounsieur, have a care the honey-bag break not; -I would be loath to have you overflown with a -honey-bag, signior. Where's Mounsieur Mustardseed? - - - -MUSTARDSEED -Ready. - - - -BOTTOM -Give me your neaf, Mounsieur Mustardseed. Pray you, -leave your courtesy, good mounsieur. - - - -MUSTARDSEED -What's your Will? - - - -BOTTOM -Nothing, good mounsieur, but to help Cavalery Cobweb -to scratch. I must to the barber's, monsieur; for -methinks I am marvellous hairy about the face; and I -am such a tender ass, if my hair do but tickle me, -I must scratch. - - - -TITANIA -What, wilt thou hear some music, -my sweet love? - - - -BOTTOM -I have a reasonable good ear in music. Let's have -the tongs and the bones. - - - -TITANIA -Or say, sweet love, what thou desirest to eat. - - - -BOTTOM -Truly, a peck of provender: I could munch your good -dry oats. Methinks I have a great desire to a bottle -of hay: good hay, sweet hay, hath no fellow. - - - -TITANIA -I have a venturous fairy that shall seek -The squirrel's hoard, and fetch thee new nuts. - - - -BOTTOM -I had rather have a handful or two of dried peas. -But, I pray you, let none of your people stir me: I -have an exposition of sleep come upon me. - - - -TITANIA -Sleep thou, and I will wind thee in my arms. -Fairies, begone, and be all ways away. -Exeunt fairies -So doth the woodbine the sweet honeysuckle -Gently entwist; the female ivy so -Enrings the barky fingers of the elm. -O, how I love thee! how I dote on thee! - - -They sleep -Enter PUCK - - -OBERON -Advancing Welcome, good Robin. -See'st thou this sweet sight? -Her dotage now I do begin to pity: -For, meeting her of late behind the wood, -Seeking sweet favours from this hateful fool, -I did upbraid her and fall out with her; -For she his hairy temples then had rounded -With a coronet of fresh and fragrant flowers; -And that same dew, which sometime on the buds -Was wont to swell like round and orient pearls, -Stood now within the pretty flowerets' eyes -Like tears that did their own disgrace bewail. -When I had at my pleasure taunted her -And she in mild terms begg'd my patience, -I then did ask of her her changeling child; -Which straight she gave me, and her fairy sent -To bear him to my bower in fairy land. -And now I have the boy, I will undo -This hateful imperfection of her eyes: -And, gentle Puck, take this transformed scalp -From off the head of this Athenian swain; -That, he awaking when the other do, -May all to Athens back again repair -And think no more of this night's accidents -But as the fierce vexation of a dream. -But first I will release the fairy queen. -Be as thou wast wont to be; -See as thou wast wont to see: -Dian's bud o'er Cupid's flower -Hath such force and blessed power. -Now, my Titania; wake you, my sweet queen. - - - -TITANIA -My Oberon! what visions have I seen! -Methought I was enamour'd of an ass. - - - -OBERON -There lies your love. - - - -TITANIA -How came these things to pass? -O, how mine eyes do loathe his visage now! - - - -OBERON -Silence awhile. Robin, take off this head. -Titania, music call; and strike more dead -Than common sleep of all these five the sense. - - - -TITANIA -Music, ho! music, such as charmeth sleep! - - -Music, still - - -PUCK -Now, when thou wakest, with thine -own fool's eyes peep. - - - -OBERON -Sound, music! Come, my queen, take hands with me, -And rock the ground whereon these sleepers be. -Now thou and I are new in amity, -And will to-morrow midnight solemnly -Dance in Duke Theseus' house triumphantly, -And bless it to all fair prosperity: -There shall the pairs of faithful lovers be -Wedded, with Theseus, all in jollity. - - - -PUCK -Fairy king, attend, and mark: -I do hear the morning lark. - - - -OBERON -Then, my queen, in silence sad, -Trip we after the night's shade: -We the globe can compass soon, -Swifter than the wandering moon. - - - -TITANIA -Come, my lord, and in our flight -Tell me how it came this night -That I sleeping here was found -With these mortals on the ground. -Exeunt - - -Horns winded within -Enter THESEUS, HIPPOLYTA, EGEUS, and train - - -THESEUS -Go, one of you, find out the forester; -For now our observation is perform'd; -And since we have the vaward of the day, -My love shall hear the music of my hounds. -Uncouple in the western valley; let them go: -Dispatch, I say, and find the forester. -Exit an Attendant -We will, fair queen, up to the mountain's top, -And mark the musical confusion -Of hounds and echo in conjunction. - - - -HIPPOLYTA -I was with Hercules and Cadmus once, -When in a wood of Crete they bay'd the bear -With hounds of Sparta: never did I hear -Such gallant chiding: for, besides the groves, -The skies, the fountains, every region near -Seem'd all one mutual cry: I never heard -So musical a discord, such sweet thunder. - - - -THESEUS -My hounds are bred out of the Spartan kind, -So flew'd, so sanded, and their heads are hung -With ears that sweep away the morning dew; -Crook-knee'd, and dew-lapp'd like Thessalian bulls; -Slow in pursuit, but match'd in mouth like bells, -Each under each. A cry more tuneable -Was never holla'd to, nor cheer'd with horn, -In Crete, in Sparta, nor in Thessaly: -Judge when you hear. But, soft! what nymphs are these? - - - -EGEUS -My lord, this is my daughter here asleep; -And this, Lysander; this Demetrius is; -This Helena, old Nedar's Helena: -I wonder of their being here together. - - - -THESEUS -No doubt they rose up early to observe -The rite of May, and hearing our intent, -Came here in grace our solemnity. -But speak, Egeus; is not this the day -That Hermia should give answer of her choice? - - - -EGEUS -It is, my lord. - - - -THESEUS -Go, bid the huntsmen wake them with their horns. -Horns and shout within. LYSANDER, DEMETRIUS, -HELENA, and HERMIA wake and start up -Good morrow, friends. Saint Valentine is past: -Begin these wood-birds but to couple now? - - - -LYSANDER -Pardon, my lord. - - - -THESEUS -I pray you all, stand up. -I know you two are rival enemies: -How comes this gentle concord in the world, -That hatred is so far from jealousy, -To sleep by hate, and fear no enmity? - - - -LYSANDER -My lord, I shall reply amazedly, -Half sleep, half waking: but as yet, I swear, -I cannot truly say how I came here; -But, as I think,--for truly would I speak, -And now do I bethink me, so it is,-- -I came with Hermia hither: our intent -Was to be gone from Athens, where we might, -Without the peril of the Athenian law. - - - -EGEUS -Enough, enough, my lord; you have enough: -I beg the law, the law, upon his head. -They would have stolen away; they would, Demetrius, -Thereby to have defeated you and me, -You of your wife and me of my consent, -Of my consent that she should be your wife. - - - -DEMETRIUS -My lord, fair Helen told me of their stealth, -Of this their purpose hither to this wood; -And I in fury hither follow'd them, -Fair Helena in fancy following me. -But, my good lord, I wot not by what power,-- -But by some power it is,--my love to Hermia, -Melted as the snow, seems to me now -As the remembrance of an idle gaud -Which in my childhood I did dote upon; -And all the faith, the virtue of my heart, -The object and the pleasure of mine eye, -Is only Helena. To her, my lord, -Was I betroth'd ere I saw Hermia: -But, like in sickness, did I loathe this food; -But, as in health, come to my natural taste, -Now I do wish it, love it, long for it, -And will for evermore be true to it. - - - -THESEUS -Fair lovers, you are fortunately met: -Of this discourse we more will hear anon. -Egeus, I will overbear your will; -For in the temple by and by with us -These couples shall eternally be knit: -And, for the morning now is something worn, -Our purposed hunting shall be set aside. -Away with us to Athens; three and three, -We'll hold a feast in great solemnity. -Come, Hippolyta. - - -Exeunt THESEUS, HIPPOLYTA, EGEUS, and train - - -DEMETRIUS -These things seem small and undistinguishable, - - - -HERMIA -Methinks I see these things with parted eye, -When every thing seems double. - - - -HELENA -So methinks: -And I have found Demetrius like a jewel, -Mine own, and not mine own. - - - -DEMETRIUS -Are you sure -That we are awake? It seems to me -That yet we sleep, we dream. Do not you think -The duke was here, and bid us follow him? - - - -HERMIA -Yea; and my father. - - - -HELENA -And Hippolyta. - - - -LYSANDER -And he did bid us follow to the temple. - - - -DEMETRIUS -Why, then, we are awake: let's follow him -And by the way let us recount our dreams. - - -Exeunt - - -BOTTOM -Awaking When my cue comes, call me, and I will -answer: my next is, 'Most fair Pyramus.' Heigh-ho! -Peter Quince! Flute, the bellows-mender! Snout, -the tinker! Starveling! God's my life, stolen -hence, and left me asleep! I have had a most rare -vision. I have had a dream, past the wit of man to -say what dream it was: man is but an ass, if he go -about to expound this dream. Methought I was--there -is no man can tell what. Methought I was,--and -methought I had,--but man is but a patched fool, if -he will offer to say what methought I had. The eye -of man hath not heard, the ear of man hath not -seen, man's hand is not able to taste, his tongue -to conceive, nor his heart to report, what my dream -was. I will get Peter Quince to write a ballad of -this dream: it shall be called Bottom's Dream, -because it hath no bottom; and I will sing it in the -latter end of a play, before the duke: -peradventure, to make it the more gracious, I shall -sing it at her death. - - -Exit - - -SCENE II. Athens. QUINCE'S house. -Enter QUINCE, FLUTE, SNOUT, and STARVELING - - -QUINCE -Have you sent to Bottom's house? is he come home yet? - - - -STARVELING -He cannot be heard of. Out of doubt he is -transported. - - - -FLUTE -If he come not, then the play is marred: it goes -not forward, doth it? - - - -QUINCE -It is not possible: you have not a man in all -Athens able to discharge Pyramus but he. - - - -FLUTE -No, he hath simply the best wit of any handicraft -man in Athens. - - - -QUINCE -Yea and the best person too; and he is a very -paramour for a sweet voice. - - - -FLUTE -You must say 'paragon:' a paramour is, God bless us, -a thing of naught. - - -Enter SNUG - - -SNUG -Masters, the duke is coming from the temple, and -there is two or three lords and ladies more married: -if our sport had gone forward, we had all been made -men. - - - -FLUTE -O sweet bully Bottom! Thus hath he lost sixpence a -day during his life; he could not have 'scaped -sixpence a day: an the duke had not given him -sixpence a day for playing Pyramus, I'll be hanged; -he would have deserved it: sixpence a day in -Pyramus, or nothing. - - -Enter BOTTOM - - -BOTTOM -Where are these lads? where are these hearts? - - - -QUINCE -Bottom! O most courageous day! O most happy hour! - - - -BOTTOM -Masters, I am to discourse wonders: but ask me not -what; for if I tell you, I am no true Athenian. I -will tell you every thing, right as it fell out. - - - -QUINCE -Let us hear, sweet Bottom. - - - -BOTTOM -Not a word of me. All that I will tell you is, that -the duke hath dined. Get your apparel together, -good strings to your beards, new ribbons to your -pumps; meet presently at the palace; every man look -o'er his part; for the short and the long is, our -play is preferred. In any case, let Thisby have -clean linen; and let not him that plays the lion -pair his nails, for they shall hang out for the -lion's claws. And, most dear actors, eat no onions -nor garlic, for we are to utter sweet breath; and I -do not doubt but to hear them say, it is a sweet -comedy. No more words: away! go, away! - - -Exeunt - - - - -ACT V - -SCENE I. Athens. The palace of THESEUS. -Enter THESEUS, HIPPOLYTA, PHILOSTRATE, Lords and -Attendants - - -HIPPOLYTA -'Tis strange my Theseus, that these -lovers speak of. - - - -THESEUS -More strange than true: I never may believe -These antique fables, nor these fairy toys. -Lovers and madmen have such seething brains, -Such shaping fantasies, that apprehend -More than cool reason ever comprehends. -The lunatic, the lover and the poet -Are of imagination all compact: -One sees more devils than vast hell can hold, -That is, the madman: the lover, all as frantic, -Sees Helen's beauty in a brow of Egypt: -The poet's eye, in fine frenzy rolling, -Doth glance from heaven to earth, from earth to heaven; -And as imagination bodies forth -The forms of things unknown, the poet's pen -Turns them to shapes and gives to airy nothing -A local habitation and a name. -Such tricks hath strong imagination, -That if it would but apprehend some joy, -It comprehends some bringer of that joy; -Or in the night, imagining some fear, -How easy is a bush supposed a bear! - - - -HIPPOLYTA -But all the story of the night told over, -And all their minds transfigured so together, -More witnesseth than fancy's images -And grows to something of great constancy; -But, howsoever, strange and admirable. - - - -THESEUS -Here come the lovers, full of joy and mirth. -Enter LYSANDER, DEMETRIUS, HERMIA, and HELENA -Joy, gentle friends! joy and fresh days of love -Accompany your hearts! - - - -LYSANDER -More than to us -Wait in your royal walks, your board, your bed! - - - -THESEUS -Come now; what masques, what dances shall we have, -To wear away this long age of three hours -Between our after-supper and bed-time? -Where is our usual manager of mirth? -What revels are in hand? Is there no play, -To ease the anguish of a torturing hour? -Call Philostrate. - - - -PHILOSTRATE -Here, mighty Theseus. - - - -THESEUS -Say, what abridgement have you for this evening? -What masque? what music? How shall we beguile -The lazy time, if not with some delight? - - - -PHILOSTRATE -There is a brief how many sports are ripe: -Make choice of which your highness will see first. - - -Giving a paper - - -THESEUS -Reads 'The battle with the Centaurs, to be sung -By an Athenian eunuch to the harp.' -We'll none of that: that have I told my love, -In glory of my kinsman Hercules. -Reads -'The riot of the tipsy Bacchanals, -Tearing the Thracian singer in their rage.' -That is an old device; and it was play'd -When I from Thebes came last a conqueror. -Reads -'The thrice three Muses mourning for the death -Of Learning, late deceased in beggary.' -That is some satire, keen and critical, -Not sorting with a nuptial ceremony. -Reads -'A tedious brief scene of young Pyramus -And his love Thisbe; very tragical mirth.' -Merry and tragical! tedious and brief! -That is, hot ice and wondrous strange snow. -How shall we find the concord of this discord? - - - -PHILOSTRATE -A play there is, my lord, some ten words long, -Which is as brief as I have known a play; -But by ten words, my lord, it is too long, -Which makes it tedious; for in all the play -There is not one word apt, one player fitted: -And tragical, my noble lord, it is; -For Pyramus therein doth kill himself. -Which, when I saw rehearsed, I must confess, -Made mine eyes water; but more merry tears -The passion of loud laughter never shed. - - - -THESEUS -What are they that do play it? - - - -PHILOSTRATE -Hard-handed men that work in Athens here, -Which never labour'd in their minds till now, -And now have toil'd their unbreathed memories -With this same play, against your nuptial. - - - -THESEUS -And we will hear it. - - - -PHILOSTRATE -No, my noble lord; -It is not for you: I have heard it over, -And it is nothing, nothing in the world; -Unless you can find sport in their intents, -Extremely stretch'd and conn'd with cruel pain, -To do you service. - - - -THESEUS -I will hear that play; -For never anything can be amiss, -When simpleness and duty tender it. -Go, bring them in: and take your places, ladies. - - -Exit PHILOSTRATE - - -HIPPOLYTA -I love not to see wretchedness o'er charged -And duty in his service perishing. - - - -THESEUS -Why, gentle sweet, you shall see no such thing. - - - -HIPPOLYTA -He says they can do nothing in this kind. - - - -THESEUS -The kinder we, to give them thanks for nothing. -Our sport shall be to take what they mistake: -And what poor duty cannot do, noble respect -Takes it in might, not merit. -Where I have come, great clerks have purposed -To greet me with premeditated welcomes; -Where I have seen them shiver and look pale, -Make periods in the midst of sentences, -Throttle their practised accent in their fears -And in conclusion dumbly have broke off, -Not paying me a welcome. Trust me, sweet, -Out of this silence yet I pick'd a welcome; -And in the modesty of fearful duty -I read as much as from the rattling tongue -Of saucy and audacious eloquence. -Love, therefore, and tongue-tied simplicity -In least speak most, to my capacity. - - -Re-enter PHILOSTRATE - - -PHILOSTRATE -So please your grace, the Prologue is address'd. - - - -THESEUS -Let him approach. - - -Flourish of trumpets -Enter QUINCE for the Prologue - - -Prologue -If we offend, it is with our good will. -That you should think, we come not to offend, -But with good will. To show our simple skill, -That is the true beginning of our end. -Consider then we come but in despite. -We do not come as minding to contest you, -Our true intent is. All for your delight -We are not here. That you should here repent you, -The actors are at hand and by their show -You shall know all that you are like to know. - - - -THESEUS -This fellow doth not stand upon points. - - - -LYSANDER -He hath rid his prologue like a rough colt; he knows -not the stop. A good moral, my lord: it is not -enough to speak, but to speak true. - - - -HIPPOLYTA -Indeed he hath played on his prologue like a child -on a recorder; a sound, but not in government. - - - -THESEUS -His speech, was like a tangled chain; nothing -impaired, but all disordered. Who is next? - - -Enter Pyramus and Thisbe, Wall, Moonshine, and Lion - - -Prologue -Gentles, perchance you wonder at this show; -But wonder on, till truth make all things plain. -This man is Pyramus, if you would know; -This beauteous lady Thisby is certain. -This man, with lime and rough-cast, doth present -Wall, that vile Wall which did these lovers sunder; -And through Wall's chink, poor souls, they are content -To whisper. At the which let no man wonder. -This man, with lanthorn, dog, and bush of thorn, -Presenteth Moonshine; for, if you will know, -By moonshine did these lovers think no scorn -To meet at Ninus' tomb, there, there to woo. -This grisly beast, which Lion hight by name, -The trusty Thisby, coming first by night, -Did scare away, or rather did affright; -And, as she fled, her mantle she did fall, -Which Lion vile with bloody mouth did stain. -Anon comes Pyramus, sweet youth and tall, -And finds his trusty Thisby's mantle slain: -Whereat, with blade, with bloody blameful blade, -He bravely broach'd is boiling bloody breast; -And Thisby, tarrying in mulberry shade, -His dagger drew, and died. For all the rest, -Let Lion, Moonshine, Wall, and lovers twain -At large discourse, while here they do remain. - - -Exeunt Prologue, Thisbe, Lion, and Moonshine - - -THESEUS -I wonder if the lion be to speak. - - - -DEMETRIUS -No wonder, my lord: one lion may, when many asses do. - - - -Wall -In this same interlude it doth befall -That I, one Snout by name, present a wall; -And such a wall, as I would have you think, -That had in it a crannied hole or chink, -Through which the lovers, Pyramus and Thisby, -Did whisper often very secretly. -This loam, this rough-cast and this stone doth show -That I am that same wall; the truth is so: -And this the cranny is, right and sinister, -Through which the fearful lovers are to whisper. - - - -THESEUS -Would you desire lime and hair to speak better? - - - -DEMETRIUS -It is the wittiest partition that ever I heard -discourse, my lord. - - -Enter Pyramus - - -THESEUS -Pyramus draws near the wall: silence! - - - -Pyramus -O grim-look'd night! O night with hue so black! -O night, which ever art when day is not! -O night, O night! alack, alack, alack, -I fear my Thisby's promise is forgot! -And thou, O wall, O sweet, O lovely wall, -That stand'st between her father's ground and mine! -Thou wall, O wall, O sweet and lovely wall, -Show me thy chink, to blink through with mine eyne! -Wall holds up his fingers -Thanks, courteous wall: Jove shield thee well for this! -But what see I? No Thisby do I see. -O wicked wall, through whom I see no bliss! -Cursed be thy stones for thus deceiving me! - - - -THESEUS -The wall, methinks, being sensible, should curse again. - - - -Pyramus -No, in truth, sir, he should not. 'Deceiving me' -is Thisby's cue: she is to enter now, and I am to -spy her through the wall. You shall see, it will -fall pat as I told you. Yonder she comes. - - -Enter Thisbe - - -Thisbe -O wall, full often hast thou heard my moans, -For parting my fair Pyramus and me! -My cherry lips have often kiss'd thy stones, -Thy stones with lime and hair knit up in thee. - - - -Pyramus -I see a voice: now will I to the chink, -To spy an I can hear my Thisby's face. Thisby! - - - -Thisbe -My love thou art, my love I think. - - - -Pyramus -Think what thou wilt, I am thy lover's grace; -And, like Limander, am I trusty still. - - - -Thisbe -And I like Helen, till the Fates me kill. - - - -Pyramus -Not Shafalus to Procrus was so true. - - - -Thisbe -As Shafalus to Procrus, I to you. - - - -Pyramus -O kiss me through the hole of this vile wall! - - - -Thisbe -I kiss the wall's hole, not your lips at all. - - - -Pyramus -Wilt thou at Ninny's tomb meet me straightway? - - - -Thisbe -'Tide life, 'tide death, I come without delay. - - -Exeunt Pyramus and Thisbe - - -Wall -Thus have I, Wall, my part discharged so; -And, being done, thus Wall away doth go. - - -Exit - - -THESEUS -Now is the mural down between the two neighbours. - - - -DEMETRIUS -No remedy, my lord, when walls are so wilful to hear -without warning. - - - -HIPPOLYTA -This is the silliest stuff that ever I heard. - - - -THESEUS -The best in this kind are but shadows; and the worst -are no worse, if imagination amend them. - - - -HIPPOLYTA -It must be your imagination then, and not theirs. - - - -THESEUS -If we imagine no worse of them than they of -themselves, they may pass for excellent men. Here -come two noble beasts in, a man and a lion. - - -Enter Lion and Moonshine - - -Lion -You, ladies, you, whose gentle hearts do fear -The smallest monstrous mouse that creeps on floor, -May now perchance both quake and tremble here, -When lion rough in wildest rage doth roar. -Then know that I, one Snug the joiner, am -A lion-fell, nor else no lion's dam; -For, if I should as lion come in strife -Into this place, 'twere pity on my life. - - - -THESEUS -A very gentle beast, of a good conscience. - - - -DEMETRIUS -The very best at a beast, my lord, that e'er I saw. - - - -LYSANDER -This lion is a very fox for his valour. - - - -THESEUS -True; and a goose for his discretion. - - - -DEMETRIUS -Not so, my lord; for his valour cannot carry his -discretion; and the fox carries the goose. - - - -THESEUS -His discretion, I am sure, cannot carry his valour; -for the goose carries not the fox. It is well: -leave it to his discretion, and let us listen to the moon. - - - -Moonshine -This lanthorn doth the horned moon present;-- - - - -DEMETRIUS -He should have worn the horns on his head. - - - -THESEUS -He is no crescent, and his horns are -invisible within the circumference. - - - -Moonshine -This lanthorn doth the horned moon present; -Myself the man i' the moon do seem to be. - - - -THESEUS -This is the greatest error of all the rest: the man -should be put into the lanthorn. How is it else the -man i' the moon? - - - -DEMETRIUS -He dares not come there for the candle; for, you -see, it is already in snuff. - - - -HIPPOLYTA -I am aweary of this moon: would he would change! - - - -THESEUS -It appears, by his small light of discretion, that -he is in the wane; but yet, in courtesy, in all -reason, we must stay the time. - - - -LYSANDER -Proceed, Moon. - - - -Moonshine -All that I have to say, is, to tell you that the -lanthorn is the moon; I, the man in the moon; this -thorn-bush, my thorn-bush; and this dog, my dog. - - - -DEMETRIUS -Why, all these should be in the lanthorn; for all -these are in the moon. But, silence! here comes Thisbe. - - -Enter Thisbe - - -Thisbe -This is old Ninny's tomb. Where is my love? - - - -Lion -Roaring Oh-- - - -Thisbe runs off - - -DEMETRIUS -Well roared, Lion. - - - -THESEUS -Well run, Thisbe. - - - -HIPPOLYTA -Well shone, Moon. Truly, the moon shines with a -good grace. - - -The Lion shakes Thisbe's mantle, and exit - - -THESEUS -Well moused, Lion. - - - -LYSANDER -And so the lion vanished. - - - -DEMETRIUS -And then came Pyramus. - - -Enter Pyramus - - -Pyramus -Sweet Moon, I thank thee for thy sunny beams; -I thank thee, Moon, for shining now so bright; -For, by thy gracious, golden, glittering gleams, -I trust to take of truest Thisby sight. -But stay, O spite! -But mark, poor knight, -What dreadful dole is here! -Eyes, do you see? -How can it be? -O dainty duck! O dear! -Thy mantle good, -What, stain'd with blood! -Approach, ye Furies fell! -O Fates, come, come, -Cut thread and thrum; -Quail, crush, conclude, and quell! - - - -THESEUS -This passion, and the death of a dear friend, would -go near to make a man look sad. - - - -HIPPOLYTA -Beshrew my heart, but I pity the man. - - - -Pyramus -O wherefore, Nature, didst thou lions frame? -Since lion vile hath here deflower'd my dear: -Which is--no, no--which was the fairest dame -That lived, that loved, that liked, that look'd -with cheer. -Come, tears, confound; -Out, sword, and wound -The pap of Pyramus; -Ay, that left pap, -Where heart doth hop: -Stabs himself -Thus die I, thus, thus, thus. -Now am I dead, -Now am I fled; -My soul is in the sky: -Tongue, lose thy light; -Moon take thy flight: -Exit Moonshine -Now die, die, die, die, die. - - -Dies - - -DEMETRIUS -No die, but an ace, for him; for he is but one. - - - -LYSANDER -Less than an ace, man; for he is dead; he is nothing. - - - -THESEUS -With the help of a surgeon he might yet recover, and -prove an ass. - - - -HIPPOLYTA -How chance Moonshine is gone before Thisbe comes -back and finds her lover? - - - -THESEUS -She will find him by starlight. Here she comes; and -her passion ends the play. - - -Re-enter Thisbe - - -HIPPOLYTA -Methinks she should not use a long one for such a -Pyramus: I hope she will be brief. - - - -DEMETRIUS -A mote will turn the balance, which Pyramus, which -Thisbe, is the better; he for a man, God warrant us; -she for a woman, God bless us. - - - -LYSANDER -She hath spied him already with those sweet eyes. - - - -DEMETRIUS -And thus she means, videlicet:-- - - - -Thisbe -Asleep, my love? -What, dead, my dove? -O Pyramus, arise! -Speak, speak. Quite dumb? -Dead, dead? A tomb -Must cover thy sweet eyes. -These My lips, -This cherry nose, -These yellow cowslip cheeks, -Are gone, are gone: -Lovers, make moan: -His eyes were green as leeks. -O Sisters Three, -Come, come to me, -With hands as pale as milk; -Lay them in gore, -Since you have shore -With shears his thread of silk. -Tongue, not a word: -Come, trusty sword; -Come, blade, my breast imbrue: -Stabs herself -And, farewell, friends; -Thus Thisby ends: -Adieu, adieu, adieu. - - -Dies - - -THESEUS -Moonshine and Lion are left to bury the dead. - - - -DEMETRIUS -Ay, and Wall too. - - - -BOTTOM -Starting up No assure you; the wall is down that -parted their fathers. Will it please you to see the -epilogue, or to hear a Bergomask dance between two -of our company? - - - -THESEUS -No epilogue, I pray you; for your play needs no -excuse. Never excuse; for when the players are all -dead, there needs none to be blamed. Marry, if he -that writ it had played Pyramus and hanged himself -in Thisbe's garter, it would have been a fine -tragedy: and so it is, truly; and very notably -discharged. But come, your Bergomask: let your -epilogue alone. -A dance -The iron tongue of midnight hath told twelve: -Lovers, to bed; 'tis almost fairy time. -I fear we shall out-sleep the coming morn -As much as we this night have overwatch'd. -This palpable-gross play hath well beguiled -The heavy gait of night. Sweet friends, to bed. -A fortnight hold we this solemnity, -In nightly revels and new jollity. - - -Exeunt -Enter PUCK - - -PUCK -Now the hungry lion roars, -And the wolf behowls the moon; -Whilst the heavy ploughman snores, -All with weary task fordone. -Now the wasted brands do glow, -Whilst the screech-owl, screeching loud, -Puts the wretch that lies in woe -In remembrance of a shroud. -Now it is the time of night -That the graves all gaping wide, -Every one lets forth his sprite, -In the church-way paths to glide: -And we fairies, that do run -By the triple Hecate's team, -From the presence of the sun, -Following darkness like a dream, -Now are frolic: not a mouse -Shall disturb this hallow'd house: -I am sent with broom before, -To sweep the dust behind the door. - - -Enter OBERON and TITANIA with their train - - -OBERON -Through the house give gathering light, -By the dead and drowsy fire: -Every elf and fairy sprite -Hop as light as bird from brier; -And this ditty, after me, -Sing, and dance it trippingly. - - - -TITANIA -First, rehearse your song by rote -To each word a warbling note: -Hand in hand, with fairy grace, -Will we sing, and bless this place. - - -Song and dance - - -OBERON -Now, until the break of day, -Through this house each fairy stray. -To the best bride-bed will we, -Which by us shall blessed be; -And the issue there create -Ever shall be fortunate. -So shall all the couples three -Ever true in loving be; -And the blots of Nature's hand -Shall not in their issue stand; -Never mole, hare lip, nor scar, -Nor mark prodigious, such as are -Despised in nativity, -Shall upon their children be. -With this field-dew consecrate, -Every fairy take his gait; -And each several chamber bless, -Through this palace, with sweet peace; -And the owner of it blest -Ever shall in safety rest. -Trip away; make no stay; -Meet me all by break of day. - - -Exeunt OBERON, TITANIA, and train - - -PUCK -If we shadows have offended, -Think but this, and all is mended, -That you have but slumber'd here -While these visions did appear. -And this weak and idle theme, -No more yielding but a dream, -Gentles, do not reprehend: -if you pardon, we will mend: -And, as I am an honest Puck, -If we have unearned luck -Now to 'scape the serpent's tongue, -We will make amends ere long; -Else the Puck a liar call; -So, good night unto you all. -Give me your hands, if we be friends, -And Robin shall restore amends. - - - -
    diff --git a/src/tools/docbook/libxslt/tests/docbook/ChangeLog b/src/tools/docbook/libxslt/tests/docbook/ChangeLog deleted file mode 100644 index d9dc09b0f5..0000000000 --- a/src/tools/docbook/libxslt/tests/docbook/ChangeLog +++ /dev/null @@ -1,34 +0,0 @@ -2001-06-14 Norman Walsh - - * VERSION: Version 1.40 released. - -2001-05-24 Norman Walsh - - * VERSION: Version 1.39 released. - -2001-05-21 Norman Walsh - - * VERSION: Version 1.38 released. - -2001-04-20 Norman Walsh - - * VERSION: Version 1.37 released. - -2001-04-15 Norman Walsh - - * Makefile, README: Make distribution hacks - -2001-04-04 Norman Walsh - - * VERSION: Version 1.36 released. - -2001-04-03 Norman Walsh - - * .cvsignore, Makefile: Misc. cleanup in preparation for making a distrib - -2001-04-02 Norman Walsh - - * BUGS, Makefile, README.CVS, TODO, VERSION: New file. - - * Makefile: Make common files - diff --git a/src/tools/docbook/libxslt/tests/docbook/Makefile.am b/src/tools/docbook/libxslt/tests/docbook/Makefile.am deleted file mode 100644 index b223f4fed2..0000000000 --- a/src/tools/docbook/libxslt/tests/docbook/Makefile.am +++ /dev/null @@ -1,189 +0,0 @@ -## Process this file with automake to produce Makefile.in - -all: - -tests: - @echo -n '## Running docbook tests: ' - $(MAKE) single - $(MAKE) xtchunk - -valgrind: - @echo '## Running the regression tests under Valgrind' - $(MAKE) CHECKER='valgrind -q' tests - -$(top_builddir)/xsltproc/xsltproc: - @(cd ../../xsltproc ; $(MAKE) xsltproc) - -EXTRA_DIST = README VERSION - -full: tests htmltests xhtmltests fotests - -# -# a single tests to check that stuff ain't broken -# -single: - @(echo > .memdump) - @(for i in $(srcdir)/test/gdp-handbook.xml ; do \ - echo -n "$(basename $$i) : html " ; \ - out=$(srcdir)/result/html/`basename $$i .xml`.tst; \ - html=$(srcdir)/result/html/`basename $$i .xml`.html; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nonet \ - $(srcdir)/html/docbook.xsl $$i > $$out ; \ - if [ -f $$html ] ; then \ - grep -v id < $$html > $$html.noid ; \ - grep -v id < $$out > $$out.noid ; \ - diff $$html.noid $$out.noid ; \ - rm -f $$html.noid $$out.noid ; \ - else \ - mv $$out $$html ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \ - if [ -n "$$log" ] ; then \ - echo ; \ - echo result ; \ - echo $$log ; \ - fi ; \ - rm -f $$out ; \ - echo -n "fo " ; \ - out=$(srcdir)/result/fo/`basename $$i .xml`.tst; \ - fo=$(srcdir)/result/fo/`basename $$i .xml`.fo; \ - msg=$(srcdir)/result/fo/`basename $$i .xml`.msg; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nonet \ - $(srcdir)/fo/docbook.xsl $$i > $$out 2> $$msg ; \ - if [ -f $$fo ] ; then \ - grep -v id < $$fo > $$fo.noid ; \ - grep -v id < $$out > $$out.noid ; \ - diff $$fo.noid $$out.noid ; \ - rm -f $$fo.noid $$out.noid ; \ - else \ - mv $$out $$fo ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \ - if [ -n "$$log" ] ; then \ - echo ; \ - echo result ; \ - echo $$log ; \ - fi ; \ - rm -f $$out $$msg ; \ - echo -n "xhtml " ; \ - out=$(srcdir)/result/xhtml/`basename $$i .xml`.tst; \ - xhtml=$(srcdir)/result/xhtml/`basename $$i .xml`.xhtml; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nonet \ - $(srcdir)/xhtml/docbook.xsl $$i > $$out ; \ - if [ -f $$xhtml ] ; then \ - grep -v id < $$xhtml > $$xhtml.noid ; \ - grep -v id < $$out > $$out.noid ; \ - diff $$xhtml.noid $$out.noid ; \ - rm -f $$xhtml.noid $$out.noid ; \ - else \ - mv $$out $$xhtml ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \ - if [ -n "$$log" ] ; then \ - echo ; \ - echo result ; \ - echo $$log ; \ - fi ; \ - rm -f $$out ; \ - done ) - -xtchunk: - @(echo > .memdump) - @echo -n html-chunking - @(for i in $(srcdir)/test/gdp-handbook.xml ; do \ - base=`basename $$i .xml` ; \ - html=$(srcdir)/result/html/$$base.html; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - -o $(srcdir)/result/xtchunk/html/gdp-handbook \ - $(srcdir)/html/xtchunk.xsl $$i 2> $$base.err ; \ - if [ -f $(srcdir)/result/html/$$base.err ] ; then \ - diff $(srcdir)/result/html/$$base.err $$base.err ; \ - rm $$base.err ; \ - else \ - mv $$base.err $(srcdir)/result/html/$$base.err ; \ - fi ; \ - for html in $(srcdir)/result/xtchunk/html/*.html ; do \ - orig=$(srcdir)/result/xtchunk/html/\`basename $$html .html\`.orig ;\ - if [ -f $$orig ] ; then \ - grep -v id < $$html > $$html.noid ; \ - grep -v id < $$orig > $$orig.noid ; \ - diff $$orig.noid $$html.noid ; \ - rm -f $$html.noid $$orig.noid $$html; \ - else \ - mv $$html $$orig ; \ - fi ; \ - done ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \ - if [ -n "$$log" ] ; then \ - echo ; \ - echo result ; \ - echo $$log ; \ - fi ; \ - rm -f $(srcdir)/result/xtchunk/html/gdp-handbook ; \ - done ) - @echo - -# -# The full set of tests -# -htmltests: $(top_builddir)/xsltproc/xsltproc - @(echo > .memdump) - @echo "##" - @echo "## HTML stylesheets regression tests" - @echo "##" - @(for i in $(srcdir)/test/*.xml ; do \ - echo $$i ; \ - out=$(srcdir)/result/html/`basename $$i .xml`.tst; \ - html=$(srcdir)/result/html/`basename $$i .xml`.html; \ - $(CHECKER) $(top_builddir)/xsltproc/xsltproc --nonet $(srcdir)/html/docbook.xsl $$i > $$out ; \ - if [ -f $$html ] ; then \ - grep -v id < $$html > $$html.noid ; \ - grep -v id < $$out > $$out.noid ; \ - diff $$html.noid $$out.noid ; \ - rm -f $$html.noid $$out.noid ; \ - else mv $$out $$html ; fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ - rm -f $$out ; done ) - -fotests: $(top_builddir)/xsltproc/xsltproc - @(echo > .memdump) - @echo "##" - @echo "## XSL FO stylesheets regression tests" - @echo "##" - @(for i in $(srcdir)/test/*.xml ; do \ - echo $$i ; \ - out=$(srcdir)/result/fo/`basename $$i .xml`.tst; \ - fo=$(srcdir)/result/fo/`basename $$i .xml`.fo; \ - msg=$(srcdir)/result/fo/`basename $$i .xml`.msg; \ - $(CHECKER) $(top_builddir)/xsltproc/xsltproc --nonet $(srcdir)/fo/docbook.xsl $$i > $$out 2> $$msg ; \ - if [ -f $$fo ] ; then \ - grep -v id < $$fo > $$fo.noid ; \ - grep -v id < $$out > $$out.noid ; \ - diff $$fo.noid $$out.noid ; \ - rm -f $$fo.noid $$out.noid ; \ - else mv $$out $$fo ; fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ - rm -f $$out $$msg ; \ - done ) - -xhtmltests: $(top_builddir)/xsltproc/xsltproc - @(echo > .memdump) - @echo "##" - @echo "## XHTML stylesheets regression tests" - @echo "##" - @(for i in $(srcdir)/test/*.xml ; do \ - echo $$i ; \ - out=$(srcdir)/result/xhtml/`basename $$i .xml`.tst; \ - xhtml=$(srcdir)/result/xhtml/`basename $$i .xml`.xhtml; \ - $(CHECKER) $(top_builddir)/xsltproc/xsltproc --nonet $(srcdir)/xhtml/docbook.xsl $$i > $$out ; \ - if [ -f $$xhtml ] ; then \ - grep -v id < $$xhtml > $$xhtml.noid ; \ - grep -v id < $$out > $$out.noid ; \ - diff $$xhtml.noid $$out.noid ; \ - rm -f $$xhtml.noid $$out.noid ; \ - else mv $$out $$xhtml ; fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ - rm -f $$out ; done ) - -dist-hook: - @(cd $(srcdir) ; tar -cf - --exclude CVS common html dtd lib xhtml fo doc images template htmlhelp result test) | (cd $(distdir); tar xf -) diff --git a/src/tools/docbook/libxslt/tests/docbook/Makefile.in b/src/tools/docbook/libxslt/tests/docbook/Makefile.in deleted file mode 100644 index 02b13c6e5d..0000000000 --- a/src/tools/docbook/libxslt/tests/docbook/Makefile.in +++ /dev/null @@ -1,560 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = ../.. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = tests/docbook -DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - ChangeLog TODO -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXSLT_INCLUDEDIR = @EXSLT_INCLUDEDIR@ -EXSLT_LIBDIR = @EXSLT_LIBDIR@ -EXSLT_LIBS = @EXSLT_LIBS@ -EXTRA_LIBS = @EXTRA_LIBS@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -HTML_DIR = @HTML_DIR@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBEXSLT_MAJOR_VERSION = @LIBEXSLT_MAJOR_VERSION@ -LIBEXSLT_MICRO_VERSION = @LIBEXSLT_MICRO_VERSION@ -LIBEXSLT_MINOR_VERSION = @LIBEXSLT_MINOR_VERSION@ -LIBEXSLT_VERSION = @LIBEXSLT_VERSION@ -LIBEXSLT_VERSION_EXTRA = @LIBEXSLT_VERSION_EXTRA@ -LIBEXSLT_VERSION_INFO = @LIBEXSLT_VERSION_INFO@ -LIBEXSLT_VERSION_NUMBER = @LIBEXSLT_VERSION_NUMBER@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBXML_CFLAGS = @LIBXML_CFLAGS@ -LIBXML_LIBS = @LIBXML_LIBS@ -LIBXML_REQUIRED_VERSION = @LIBXML_REQUIRED_VERSION@ -LIBXML_SRC = @LIBXML_SRC@ -LIBXSLT_DEFAULT_PLUGINS_PATH = @LIBXSLT_DEFAULT_PLUGINS_PATH@ -LIBXSLT_MAJOR_MINOR_VERSION = @LIBXSLT_MAJOR_MINOR_VERSION@ -LIBXSLT_MAJOR_VERSION = @LIBXSLT_MAJOR_VERSION@ -LIBXSLT_MICRO_VERSION = @LIBXSLT_MICRO_VERSION@ -LIBXSLT_MINOR_VERSION = @LIBXSLT_MINOR_VERSION@ -LIBXSLT_VERSION = @LIBXSLT_VERSION@ -LIBXSLT_VERSION_EXTRA = @LIBXSLT_VERSION_EXTRA@ -LIBXSLT_VERSION_INFO = @LIBXSLT_VERSION_INFO@ -LIBXSLT_VERSION_NUMBER = @LIBXSLT_VERSION_NUMBER@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MV = @MV@ -M_LIBS = @M_LIBS@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -PYTHON = @PYTHON@ -PYTHONSODV = @PYTHONSODV@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@ -PYTHON_SUBDIR = @PYTHON_SUBDIR@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -RELDATE = @RELDATE@ -RM = @RM@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STATIC_BINARIES = @STATIC_BINARIES@ -STRIP = @STRIP@ -TAR = @TAR@ -VERSION = @VERSION@ -WIN32_EXTRA_LDFLAGS = @WIN32_EXTRA_LDFLAGS@ -WIN32_EXTRA_LIBADD = @WIN32_EXTRA_LIBADD@ -WITH_CRYPTO = @WITH_CRYPTO@ -WITH_DEBUGGER = @WITH_DEBUGGER@ -WITH_MEM_DEBUG = @WITH_MEM_DEBUG@ -WITH_MODULES = @WITH_MODULES@ -WITH_MODULES_FALSE = @WITH_MODULES_FALSE@ -WITH_MODULES_TRUE = @WITH_MODULES_TRUE@ -WITH_PERL_FALSE = @WITH_PERL_FALSE@ -WITH_PERL_TRUE = @WITH_PERL_TRUE@ -WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@ -WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@ -WITH_TRIO = @WITH_TRIO@ -WITH_XSLT_DEBUG = @WITH_XSLT_DEBUG@ -XML_CONFIG = @XML_CONFIG@ -XSLTPROCDV = @XSLTPROCDV@ -XSLT_INCLUDEDIR = @XSLT_INCLUDEDIR@ -XSLT_LIBDIR = @XSLT_LIBDIR@ -XSLT_LIBS = @XSLT_LIBS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -EXTRA_DIST = README VERSION -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/docbook/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu tests/docbook/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$(top_distdir)" distdir="$(distdir)" \ - dist-hook -check-am: all-am -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-libtool - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - dist-hook distclean distclean-generic distclean-libtool \ - distdir dvi dvi-am html html-am info info-am install \ - install-am install-data install-data-am install-exec \ - install-exec-am install-info install-info-am install-man \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - uninstall uninstall-am uninstall-info-am - - -all: - -tests: - @echo -n '## Running docbook tests: ' - $(MAKE) single - $(MAKE) xtchunk - -valgrind: - @echo '## Running the regression tests under Valgrind' - $(MAKE) CHECKER='valgrind -q' tests - -$(top_builddir)/xsltproc/xsltproc: - @(cd ../../xsltproc ; $(MAKE) xsltproc) - -full: tests htmltests xhtmltests fotests - -# -# a single tests to check that stuff ain't broken -# -single: - @(echo > .memdump) - @(for i in $(srcdir)/test/gdp-handbook.xml ; do \ - echo -n "$(basename $$i) : html " ; \ - out=$(srcdir)/result/html/`basename $$i .xml`.tst; \ - html=$(srcdir)/result/html/`basename $$i .xml`.html; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nonet \ - $(srcdir)/html/docbook.xsl $$i > $$out ; \ - if [ -f $$html ] ; then \ - grep -v id < $$html > $$html.noid ; \ - grep -v id < $$out > $$out.noid ; \ - diff $$html.noid $$out.noid ; \ - rm -f $$html.noid $$out.noid ; \ - else \ - mv $$out $$html ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \ - if [ -n "$$log" ] ; then \ - echo ; \ - echo result ; \ - echo $$log ; \ - fi ; \ - rm -f $$out ; \ - echo -n "fo " ; \ - out=$(srcdir)/result/fo/`basename $$i .xml`.tst; \ - fo=$(srcdir)/result/fo/`basename $$i .xml`.fo; \ - msg=$(srcdir)/result/fo/`basename $$i .xml`.msg; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nonet \ - $(srcdir)/fo/docbook.xsl $$i > $$out 2> $$msg ; \ - if [ -f $$fo ] ; then \ - grep -v id < $$fo > $$fo.noid ; \ - grep -v id < $$out > $$out.noid ; \ - diff $$fo.noid $$out.noid ; \ - rm -f $$fo.noid $$out.noid ; \ - else \ - mv $$out $$fo ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \ - if [ -n "$$log" ] ; then \ - echo ; \ - echo result ; \ - echo $$log ; \ - fi ; \ - rm -f $$out $$msg ; \ - echo -n "xhtml " ; \ - out=$(srcdir)/result/xhtml/`basename $$i .xml`.tst; \ - xhtml=$(srcdir)/result/xhtml/`basename $$i .xml`.xhtml; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nonet \ - $(srcdir)/xhtml/docbook.xsl $$i > $$out ; \ - if [ -f $$xhtml ] ; then \ - grep -v id < $$xhtml > $$xhtml.noid ; \ - grep -v id < $$out > $$out.noid ; \ - diff $$xhtml.noid $$out.noid ; \ - rm -f $$xhtml.noid $$out.noid ; \ - else \ - mv $$out $$xhtml ; \ - fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \ - if [ -n "$$log" ] ; then \ - echo ; \ - echo result ; \ - echo $$log ; \ - fi ; \ - rm -f $$out ; \ - done ) - -xtchunk: - @(echo > .memdump) - @echo -n html-chunking - @(for i in $(srcdir)/test/gdp-handbook.xml ; do \ - base=`basename $$i .xml` ; \ - html=$(srcdir)/result/html/$$base.html; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - -o $(srcdir)/result/xtchunk/html/gdp-handbook \ - $(srcdir)/html/xtchunk.xsl $$i 2> $$base.err ; \ - if [ -f $(srcdir)/result/html/$$base.err ] ; then \ - diff $(srcdir)/result/html/$$base.err $$base.err ; \ - rm $$base.err ; \ - else \ - mv $$base.err $(srcdir)/result/html/$$base.err ; \ - fi ; \ - for html in $(srcdir)/result/xtchunk/html/*.html ; do \ - orig=$(srcdir)/result/xtchunk/html/\`basename $$html .html\`.orig ;\ - if [ -f $$orig ] ; then \ - grep -v id < $$html > $$html.noid ; \ - grep -v id < $$orig > $$orig.noid ; \ - diff $$orig.noid $$html.noid ; \ - rm -f $$html.noid $$orig.noid $$html; \ - else \ - mv $$html $$orig ; \ - fi ; \ - done ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \ - if [ -n "$$log" ] ; then \ - echo ; \ - echo result ; \ - echo $$log ; \ - fi ; \ - rm -f $(srcdir)/result/xtchunk/html/gdp-handbook ; \ - done ) - @echo - -# -# The full set of tests -# -htmltests: $(top_builddir)/xsltproc/xsltproc - @(echo > .memdump) - @echo "##" - @echo "## HTML stylesheets regression tests" - @echo "##" - @(for i in $(srcdir)/test/*.xml ; do \ - echo $$i ; \ - out=$(srcdir)/result/html/`basename $$i .xml`.tst; \ - html=$(srcdir)/result/html/`basename $$i .xml`.html; \ - $(CHECKER) $(top_builddir)/xsltproc/xsltproc --nonet $(srcdir)/html/docbook.xsl $$i > $$out ; \ - if [ -f $$html ] ; then \ - grep -v id < $$html > $$html.noid ; \ - grep -v id < $$out > $$out.noid ; \ - diff $$html.noid $$out.noid ; \ - rm -f $$html.noid $$out.noid ; \ - else mv $$out $$html ; fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ - rm -f $$out ; done ) - -fotests: $(top_builddir)/xsltproc/xsltproc - @(echo > .memdump) - @echo "##" - @echo "## XSL FO stylesheets regression tests" - @echo "##" - @(for i in $(srcdir)/test/*.xml ; do \ - echo $$i ; \ - out=$(srcdir)/result/fo/`basename $$i .xml`.tst; \ - fo=$(srcdir)/result/fo/`basename $$i .xml`.fo; \ - msg=$(srcdir)/result/fo/`basename $$i .xml`.msg; \ - $(CHECKER) $(top_builddir)/xsltproc/xsltproc --nonet $(srcdir)/fo/docbook.xsl $$i > $$out 2> $$msg ; \ - if [ -f $$fo ] ; then \ - grep -v id < $$fo > $$fo.noid ; \ - grep -v id < $$out > $$out.noid ; \ - diff $$fo.noid $$out.noid ; \ - rm -f $$fo.noid $$out.noid ; \ - else mv $$out $$fo ; fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ - rm -f $$out $$msg ; \ - done ) - -xhtmltests: $(top_builddir)/xsltproc/xsltproc - @(echo > .memdump) - @echo "##" - @echo "## XHTML stylesheets regression tests" - @echo "##" - @(for i in $(srcdir)/test/*.xml ; do \ - echo $$i ; \ - out=$(srcdir)/result/xhtml/`basename $$i .xml`.tst; \ - xhtml=$(srcdir)/result/xhtml/`basename $$i .xml`.xhtml; \ - $(CHECKER) $(top_builddir)/xsltproc/xsltproc --nonet $(srcdir)/xhtml/docbook.xsl $$i > $$out ; \ - if [ -f $$xhtml ] ; then \ - grep -v id < $$xhtml > $$xhtml.noid ; \ - grep -v id < $$out > $$out.noid ; \ - diff $$xhtml.noid $$out.noid ; \ - rm -f $$xhtml.noid $$out.noid ; \ - else mv $$out $$xhtml ; fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ - rm -f $$out ; done ) - -dist-hook: - @(cd $(srcdir) ; tar -cf - --exclude CVS common html dtd lib xhtml fo doc images template htmlhelp result test) | (cd $(distdir); tar xf -) -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/tools/docbook/libxslt/tests/docbook/README b/src/tools/docbook/libxslt/tests/docbook/README deleted file mode 100644 index bc46878af1..0000000000 --- a/src/tools/docbook/libxslt/tests/docbook/README +++ /dev/null @@ -1,104 +0,0 @@ -README for the DocBook Stylesheets - -These are XSL stylesheets for the DocBook XML DTD. (They would -also work for the DocBook DTD, modulo certain namecase problems -and the fact that there aren't (yet) any XSL implementations -that work with SGML source documents.) - -As of version 1.0, most of the elements in DocBook are handled -in some way or another, usually reasonably, but there's still -lots of work to be done. - -For more information, see http://docbook.sourceforge.net/ - -Manifest --------- - -README this file -TODO planned features not yet implemented (may be incomplete :-) -BUGS known problems (may also be incomplete :-) -VERSION the current version number (note that this is an XSL stylesheet, - included by both fo/docbook.xsl and html/docbook.xsl) -WhatsNew changes since the last public release (for a complete list - of changes, see the ChangeLog file(s)) -common/ contains code common to both stylesheets -doc/ documentation -docsrc/ documentation sources -extensions/ Java extensions -fo/ stylesheets that produce XSL FO -html/ stylesheets that produce HTML -htmlhelp/ stylesheets that produce HTML Help -images/ images -javahelp/ stylesheets that produce Java Help -lib/ contains schema-independent functions -template/ contains templates for building stylesheet customization layers -xhtml/ stylesheets that produce XHTML - -Changes -------- - -See the ChangeLog in each directory for additional information -about the specific changes. - -See WhatsNew for changes since the last release. - -Installation ------------- - -Unpack the distribution somewhere. - -Use ---- - -Process your DocBook documents with one of the following stylesheets -using your favorite XSLT processor: - - xhtml/docbook.xsl produces an XHTML result tree - html/docbook.xsl produces an HTML result tree - fo/docbook.xsl produces an FO result tree - -Copyright ---------- - -Copyright (C) 1999, 2000, 2001 Norman Walsh - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the ``Software''), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -Except as contained in this notice, the names of individuals -credited with contribution to this software shall not be used in -advertising or otherwise to promote the sale, use or other -dealings in this Software without prior written authorization -from the individuals in question. - -Any stylesheet derived from this Software that is publically -distributed will be identified with a different name and the -version strings in any derived Software will be changed so that -no possibility of confusion between the derived package and this -Software will exist. - -Warranty --------- - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL NORMAN WALSH OR ANY OTHER -CONTRIBUTOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - -Contacting the Author ---------------------- - -These stylesheets are maintained by Norman Walsh, . diff --git a/src/tools/docbook/libxslt/tests/docbook/TODO b/src/tools/docbook/libxslt/tests/docbook/TODO deleted file mode 100644 index 526aca8bf6..0000000000 --- a/src/tools/docbook/libxslt/tests/docbook/TODO +++ /dev/null @@ -1,4 +0,0 @@ -Documentation -Continued lists -Bibliography support needs improvement - diff --git a/src/tools/docbook/libxslt/tests/docbook/VERSION b/src/tools/docbook/libxslt/tests/docbook/VERSION deleted file mode 100644 index 2e8656ca5e..0000000000 --- a/src/tools/docbook/libxslt/tests/docbook/VERSION +++ /dev/null @@ -1,6 +0,0 @@ - - -1.40 - - diff --git a/src/tools/docbook/libxslt/tests/docbook/common/ChangeLog b/src/tools/docbook/libxslt/tests/docbook/common/ChangeLog deleted file mode 100644 index 812bdf8b5e..0000000000 --- a/src/tools/docbook/libxslt/tests/docbook/common/ChangeLog +++ /dev/null @@ -1,69 +0,0 @@ -2001-06-14 Norman Walsh - - * subtitles.xsl: Support subtitle on article - -2001-05-23 Norman Walsh - - * common.xsl: Fix dup. template bug with is.graphic.* - - * gentext.xsl: Workaround article/appendix formatting bug (HACK) - - * labels.xsl: Label appendixes correctly in books and articles - -2001-05-21 Norman Walsh - - * labels.xsl: Tweak for section labels in articles - -2001-05-12 Norman Walsh - - * common.xsl: Added refsect* to the section.level template - -2001-05-04 Norman Walsh - - * .cvsignore, Makefile, l10n.xml: Add Serbian localization - -2001-04-21 Norman Walsh - - * common.xsl: My first crude attempts at support for qandaset - -2001-04-19 Norman Walsh - - * gentext.xsl, titles.xsl: Fix bug #417193, make sure allow-anchors is properly propagated through substitute-markup - -2001-04-18 Norman Walsh - - * titles.xsl: Suppress indexterms in no.anchor.mode - -2001-04-17 Norman Walsh - - * labels.xsl: Move label.from.part parameter into param.xsl; default it to 0 so that chapters and appendixes are numbered monotonically throughout a book by default. Moved param.xsl up in the include list, just for good measure - -2001-04-16 Norman Walsh - - * gentext.xsl: Fix bug in processing of subtitle content - - * labels.xsl: Only label.from.part if there actually is a part - - * titles.xsl: Don't put ulink, link, olink, or xref in titles if anchor's aren't allowed - -2001-04-15 Norman Walsh - - * gentext.xsl: Localize the textonly calculations by creating a object.title.markup.textonly mode - -2001-04-03 Norman Walsh - - * gentext.xsl, labels.xsl, titles.xsl: Fix bug 412487, make XSL-generated callout marks honor callout mark parameters - - * titles.xsl: Restore no.anchor.mode and suppress footnotes in no.anchor.mode - -2001-04-02 Norman Walsh - - * .cvsignore, Makefile: New file. - - * common.xsl, gentext.xsl, l10n.xml, l10n.xsl, labels.xsl, subtitles.xsl, titles.xsl: - New file. - - * gentext.xsl: Commented out debugging messages - - * l10n.dtd: New file. - diff --git a/src/tools/docbook/libxslt/tests/docbook/common/LostLog b/src/tools/docbook/libxslt/tests/docbook/common/LostLog deleted file mode 100644 index dba73a538e..0000000000 --- a/src/tools/docbook/libxslt/tests/docbook/common/LostLog +++ /dev/null @@ -1,167 +0,0 @@ -2000-08-29 Norman Walsh - - * nl.xml: Updated - -2000-08-08 Norman Walsh - - * et.xml, id.xml, sl.xml: Fixed language attribute - - * hu.xml: Fixup encoding problems; fix language attribute - - * l10n.dtd, l10n.xml: Added DTD - -2000-07-21 Norman Walsh - - * common.xsl: Fixed hierarchical section numbering - - * et.xml, hu.xml, id.xml, l10n.xml, sl.xml, zh_cn.xml: - Added first cut at ET, HU, ID, SL, and ZH (CN) localizations - - * nl.xml: Updated - -2000-06-25 Norman Walsh - - * common.xsl: Moved graphic extension stuff into common - -2000-04-19 Norman Walsh - - * common.xsl: Moved IDREF checking code into common.xsl - - * fr.xml: Fixed typo in gentext key - -2000-04-06 Norman Walsh - - * common.xsl: Generalized title.content; added DocBook 4.0 elements to strip-space - -2000-04-03 Norman Walsh - - * it.xml: Fixed revisedby - -2000-03-23 Norman Walsh - - * common.xsl: Change boolean stylesheet variables to use 0/1 instead of true()/false() to avoid representation issues when setting them from the command line - - * common.xsl: Started adding documentation and fixed formal object numbering - -2000-02-18 Norman Walsh - - * en.xml: Changed quote characters to avoid Netscape irritation with ldquo - and rdquo. - -2000-02-16 Norman Walsh - - * common.xsl: Added filename.extension and mediaobject.filename named templates - - * l10n.xsl: Tweaked URI for conformance with some broken XSLT processors - -2000-02-07 Norman Walsh - - * common.xsl: Fiddled with label punctuation; added some xref-related string functions - - * en.xml: Sorted terms; added sect1-5 - - * l10n.xsl: Added gentext.xref.text - - * no.xml: Fixed capitalization of keys - -2000-01-27 Norman Walsh - - * common.xsl: Support section.label.includes.component.label - - * de.xml: Fixed RevisedBy - -2000-01-14 Norman Walsh - - * ca.xml, cs.xml, da.xml, de.xml, el.xml, en.xml, es.xml, fi.xml, fr.xml, it.xml, ja.xml, nl.xml, no.xml, pl.xml, pt.xml, pt_br.xml, ro.xml, ru.xml, sk.xml, sv.xml: - Fixed typos; added HTML navigation keys - - * l10n.xml: Added Brazilian Portuguese - - * l10n.xsl: Support country subclassing of languages; added gentext for HTML navigation - - * pt_br.xml: New file. - -2000-01-11 Norman Walsh - - * l10n.xsl: Fix relative URI for l10n.xml - -2000-01-10 Norman Walsh - - * ca.xml, common.xsl, cs.xml, da.xml, de.xml, el.xml, en.xml, es.xml, fi.xml, fr.xml, it.xml, ja.xml, l10n.xml, l10n.xsl, nl.xml, no.xml, pl.xml, pt.xml, ro.xml, ru.xml, sk.xml, sv.xml: - First cut at I18N/L10N - - * ca.xml, cs.xml, da.xml, de.xml, el.xml, es.xml, fi.xml, it.xml, ja.xml, nl.xml, no.xml, pl.xml, pt.xml, ro.xml, ru.xml, sk.xml, sv.xml: - Added L10N for dingbats - - * common.xsl: Fix gentext space in title.ref - - * l10n.xml: Added ca - - * l10n.xsl: Fix editedby and by gentext calls - -1999-12-28 Norman Walsh - - * common.xsl: Added modes for generating element labels and titles; added stylesheet version - - * common.xsl: Support bibliography, glossary, and index titles - - * l10n.xsl: Added stylesheet version - -1999-10-20 Norman Walsh - - * common.xsl, l10n.xsl: Update URI in all the included modules - -1999-08-19 Norman Walsh - - * common.xsl: Added xsl:preserve-space - -1999-07-27 Norman Walsh - - * common.xsl, l10n.xsl: Updated to July spec - -1999-07-15 Norman Walsh - - * common.xsl: Moved strip-space into common - -1999-07-06 Norman Walsh - - * common.xsl: Removed section.title; it was bogus - - * l10n.xsl: Added appendix and reference - -1999-07-02 Norman Walsh - - * dbl10n.xsl, l10n.xsl: Renamed - - * l10n.xsl: Added glosssee and glossseealso - -1999-06-14 Norman Walsh - - * common.xsl: Added section.autolabel support; fixed bug in person.name.list - - * dbl10n.xsl: Added revhistory and revision to element.name - -1999-06-09 Norman Walsh - - * common.xsl: Removed section.heading and formal.object.heading--they used markup - - * dbl10n.xsl: Added a few entries and sorted them - - * inline.xsl: removed - -1999-06-03 Norman Walsh - - * common.xsl: Top-level headings now include the clear: all CSS style property - - * dbl10n.xsl: Added a few more element names - -1999-05-20 Norman Walsh - - * common.xsl, dbl10n.xsl, inline.xsl: Many updates - - * dbl10n.xsl: Updates - -1999-05-19 Norman Walsh - - * common.xsl, dbl10n.xsl, inline.xsl: New file. - diff --git a/src/tools/docbook/libxslt/tests/docbook/common/Makefile b/src/tools/docbook/libxslt/tests/docbook/common/Makefile deleted file mode 100644 index 43901b6859..0000000000 --- a/src/tools/docbook/libxslt/tests/docbook/common/Makefile +++ /dev/null @@ -1,203 +0,0 @@ -# Generated automatically from Makefile.in by configure. -# Makefile.in generated automatically by automake 1.4 from Makefile.am - -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -SHELL = /bin/sh - -srcdir = . -top_srcdir = ../../.. -prefix = /usr -exec_prefix = ${prefix} - -bindir = ${exec_prefix}/bin -sbindir = ${exec_prefix}/sbin -libexecdir = ${exec_prefix}/libexec -datadir = ${prefix}/share -sysconfdir = ${prefix}/etc -sharedstatedir = ${prefix}/com -localstatedir = ${prefix}/var -libdir = ${exec_prefix}/lib -infodir = ${prefix}/info -mandir = ${prefix}/man -includedir = ${prefix}/include -oldincludedir = /usr/include - -DESTDIR = - -pkgdatadir = $(datadir)/libxslt -pkglibdir = $(libdir)/libxslt -pkgincludedir = $(includedir)/libxslt - -top_builddir = ../../.. - -ACLOCAL = aclocal -AUTOCONF = autoconf -AUTOMAKE = automake -AUTOHEADER = autoheader - -INSTALL = /usr/bin/install -c -INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS) -INSTALL_DATA = ${INSTALL} -m 644 -INSTALL_SCRIPT = ${INSTALL_PROGRAM} -transform = s,x,x, - -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -host_alias = i686-pc-linux -host_triplet = i686-pc-linux-gnu -AS = @AS@ -CC = gcc -CFLAGS = -Wall -g -O -ansi -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -CPPFLAGS = -DLLTOOL = @DLLTOOL@ -EXTRA_LIBS = -L/usr/lib -lxml2 -lz -lm -lm -LDFLAGS = -LIBTOOL = $(SHELL) $(top_builddir)/libtool -LIBXML_CFLAGS = -I/usr/include/libxml -I/usr/include -LIBXML_LIBS = -L/usr/lib -lxml2 -lz -lm -LIBXSLT_MAJOR_VERSION = 0 -LIBXSLT_MICRO_VERSION = 0 -LIBXSLT_MINOR_VERSION = 9 -LIBXSLT_VERSION = 0.9.0 -LIBXSLT_VERSION_INFO = 9:0:9 -LIBXSLT_VERSION_NUMBER = 900 -LN_S = ln -s -MAINT = -MAKEINFO = makeinfo -OBJDUMP = @OBJDUMP@ -PACKAGE = libxslt -RANLIB = ranlib -VERSION = 0.9.0 -WITH_MEM_DEBUG = 1 -WITH_XSLT_DEBUG = 1 -XML_CONFIG = xml2-config -XSLT_INCLUDEDIR = -I${includedir} -XSLT_LIBDIR = -L${libdir} -XSLT_LIBS = -lxslt -L/usr/lib -lxml2 -lz -lm -lm - -EXTRA_DIST = ChangeLog LostLog ca.xml common.xsl cs.xml da.xml de.xml el.xml en.xml es.xml et.xml fi.xml fr.xml hu.xml id.xml it.xml ja.xml ko.xml l10n.dtd l10n.xml l10n.xsl nl.xml no.xml pl.xml pt.xml pt_br.xml ro.xml ru.xml sk.xml sl.xml sv.xml zh_cn.xml zh_tw.xml - -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = ../../../config.h -CONFIG_CLEAN_FILES = -DIST_COMMON = ChangeLog Makefile.am Makefile.in - - -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - -TAR = gtar -GZIP_ENV = --best -all: all-redirect -.SUFFIXES: -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/docbook/common/Makefile - -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) - cd $(top_builddir) \ - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status - -tags: TAGS -TAGS: - - -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) - -subdir = tests/docbook/common - -distdir: $(DISTFILES) - here=`cd $(top_builddir) && pwd`; \ - top_distdir=`cd $(top_distdir) && pwd`; \ - distdir=`cd $(distdir) && pwd`; \ - cd $(top_srcdir) \ - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu tests/docbook/common/Makefile - @for file in $(DISTFILES); do \ - d=$(srcdir); \ - if test -d $$d/$$file; then \ - cp -pr $$d/$$file $(distdir)/$$file; \ - else \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file || :; \ - fi; \ - done -info-am: -info: info-am -dvi-am: -dvi: dvi-am -check-am: all-am -check: check-am -installcheck-am: -installcheck: installcheck-am -install-exec-am: -install-exec: install-exec-am - -install-data-am: -install-data: install-data-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am -install: install-am -uninstall-am: -uninstall: uninstall-am -all-am: Makefile -all-redirect: all-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install -installdirs: - - -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -rm -f Makefile $(CONFIG_CLEAN_FILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -maintainer-clean-generic: -mostlyclean-am: mostlyclean-generic - -mostlyclean: mostlyclean-am - -clean-am: clean-generic mostlyclean-am - -clean: clean-am - -distclean-am: distclean-generic clean-am - -rm -f libtool - -distclean: distclean-am - -maintainer-clean-am: maintainer-clean-generic distclean-am - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - -maintainer-clean: maintainer-clean-am - -.PHONY: tags distdir info-am info dvi-am dvi check check-am \ -installcheck-am installcheck install-exec-am install-exec \ -install-data-am install-data install-am install uninstall-am uninstall \ -all-redirect all-am all installdirs mostlyclean-generic \ -distclean-generic clean-generic maintainer-clean-generic clean \ -mostlyclean distclean maintainer-clean - - -all: - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/tools/docbook/libxslt/tests/docbook/common/Makefile.in b/src/tools/docbook/libxslt/tests/docbook/common/Makefile.in deleted file mode 100644 index a4e164ce1f..0000000000 --- a/src/tools/docbook/libxslt/tests/docbook/common/Makefile.in +++ /dev/null @@ -1,203 +0,0 @@ -# Makefile.in generated automatically by automake 1.4 from Makefile.am - -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -SHELL = @SHELL@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -bindir = @bindir@ -sbindir = @sbindir@ -libexecdir = @libexecdir@ -datadir = @datadir@ -sysconfdir = @sysconfdir@ -sharedstatedir = @sharedstatedir@ -localstatedir = @localstatedir@ -libdir = @libdir@ -infodir = @infodir@ -mandir = @mandir@ -includedir = @includedir@ -oldincludedir = /usr/include - -DESTDIR = - -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ - -top_builddir = ../../.. - -ACLOCAL = @ACLOCAL@ -AUTOCONF = @AUTOCONF@ -AUTOMAKE = @AUTOMAKE@ -AUTOHEADER = @AUTOHEADER@ - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -transform = @program_transform_name@ - -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -host_alias = @host_alias@ -host_triplet = @host@ -AS = @AS@ -CC = @CC@ -CFLAGS = @CFLAGS@ -CPPFLAGS = @CPPFLAGS@ -DLLTOOL = @DLLTOOL@ -EXTRA_LIBS = @EXTRA_LIBS@ -LDFLAGS = @LDFLAGS@ -LIBTOOL = @LIBTOOL@ -LIBXML_CFLAGS = @LIBXML_CFLAGS@ -LIBXML_LIBS = @LIBXML_LIBS@ -LIBXSLT_MAJOR_VERSION = @LIBXSLT_MAJOR_VERSION@ -LIBXSLT_MICRO_VERSION = @LIBXSLT_MICRO_VERSION@ -LIBXSLT_MINOR_VERSION = @LIBXSLT_MINOR_VERSION@ -LIBXSLT_VERSION = @LIBXSLT_VERSION@ -LIBXSLT_VERSION_INFO = @LIBXSLT_VERSION_INFO@ -LIBXSLT_VERSION_NUMBER = @LIBXSLT_VERSION_NUMBER@ -LN_S = @LN_S@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -OBJDUMP = @OBJDUMP@ -PACKAGE = @PACKAGE@ -RANLIB = @RANLIB@ -VERSION = @VERSION@ -WITH_MEM_DEBUG = @WITH_MEM_DEBUG@ -WITH_XSLT_DEBUG = @WITH_XSLT_DEBUG@ -XML_CONFIG = @XML_CONFIG@ -XSLT_INCLUDEDIR = @XSLT_INCLUDEDIR@ -XSLT_LIBDIR = @XSLT_LIBDIR@ -XSLT_LIBS = @XSLT_LIBS@ - -EXTRA_DIST = ChangeLog LostLog ca.xml common.xsl cs.xml da.xml de.xml el.xml en.xml es.xml et.xml fi.xml fr.xml hu.xml id.xml it.xml ja.xml ko.xml l10n.dtd l10n.xml l10n.xsl nl.xml no.xml pl.xml pt.xml pt_br.xml ro.xml ru.xml sk.xml sl.xml sv.xml zh_cn.xml zh_tw.xml - -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = ../../../config.h -CONFIG_CLEAN_FILES = -DIST_COMMON = ChangeLog Makefile.am Makefile.in - - -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - -TAR = gtar -GZIP_ENV = --best -all: all-redirect -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/docbook/common/Makefile - -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) - cd $(top_builddir) \ - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status - -tags: TAGS -TAGS: - - -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) - -subdir = tests/docbook/common - -distdir: $(DISTFILES) - here=`cd $(top_builddir) && pwd`; \ - top_distdir=`cd $(top_distdir) && pwd`; \ - distdir=`cd $(distdir) && pwd`; \ - cd $(top_srcdir) \ - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu tests/docbook/common/Makefile - @for file in $(DISTFILES); do \ - d=$(srcdir); \ - if test -d $$d/$$file; then \ - cp -pr $$d/$$file $(distdir)/$$file; \ - else \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file || :; \ - fi; \ - done -info-am: -info: info-am -dvi-am: -dvi: dvi-am -check-am: all-am -check: check-am -installcheck-am: -installcheck: installcheck-am -install-exec-am: -install-exec: install-exec-am - -install-data-am: -install-data: install-data-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am -install: install-am -uninstall-am: -uninstall: uninstall-am -all-am: Makefile -all-redirect: all-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install -installdirs: - - -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -rm -f Makefile $(CONFIG_CLEAN_FILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -maintainer-clean-generic: -mostlyclean-am: mostlyclean-generic - -mostlyclean: mostlyclean-am - -clean-am: clean-generic mostlyclean-am - -clean: clean-am - -distclean-am: distclean-generic clean-am - -rm -f libtool - -distclean: distclean-am - -maintainer-clean-am: maintainer-clean-generic distclean-am - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - -maintainer-clean: maintainer-clean-am - -.PHONY: tags distdir info-am info dvi-am dvi check check-am \ -installcheck-am installcheck install-exec-am install-exec \ -install-data-am install-data install-am install uninstall-am uninstall \ -all-redirect all-am all installdirs mostlyclean-generic \ -distclean-generic clean-generic maintainer-clean-generic clean \ -mostlyclean distclean maintainer-clean - - -all: - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/tools/docbook/libxslt/tests/docbook/common/ca.xml b/src/tools/docbook/libxslt/tests/docbook/common/ca.xml deleted file mode 100644 index 2ba30f9c80..0000000000 --- a/src/tools/docbook/libxslt/tests/docbook/common/ca.xml +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -